{"_id":"@rc-component/menu","_rev":"4537578","name":"@rc-component/menu","description":"menu ui component for react","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"time":{"modified":"2026-04-09T15:01:46.000Z","created":"2025-02-25T03:50:14.486Z","1.2.0":"2025-12-04T04:34:16.165Z","1.1.5":"2025-11-26T04:03:00.099Z","1.1.4":"2025-09-10T02:08:50.666Z","1.1.3":"2025-04-22T03:44:31.878Z","1.1.2":"2025-04-09T03:34:55.914Z","1.1.1":"2025-04-09T02:50:04.995Z","1.1.0":"2025-04-03T09:17:33.999Z","1.0.1":"2025-02-26T03:11:57.237Z","1.0.0":"2025-02-25T03:50:14.486Z"},"users":{},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"versions":{"1.2.0":{"name":"@rc-component/menu","version":"1.2.0","description":"menu ui component for react","keywords":["react","react-component","menu","ui","react-menu"],"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"license":"MIT","maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"main":"./lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts,.jsx,.js","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","postpublish":"tnpm sync @rc-component/menu","start":"dumi dev","test":"rc-test","prepare":"husky && dumi setup"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/overflow":"^1.0.0","@rc-component/trigger":"^3.0.0","@rc-component/util":"^1.3.0","clsx":"^2.1.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.0.0","@types/jest":"^30.0.0","@types/node":"^24.7.1","@types/react":"^18.2.14","@types/react-dom":"^18.3.7","@types/warning":"^3.0.0","@umijs/fabric":"^4.0.1","dumi":"^2.1.17","eslint":"^8.55.0","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^9.1.6","less":"^4.1.3","lint-staged":"^16.2.4","prettier":"^3.3.3","rc-test":"^7.0.14","react":"^18.3.1","react-dom":"^18.3.1","typescript":"^5.1.6"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_id":"@rc-component/menu@1.2.0","gitHead":"a3ae2697e86755bcdbd6c85de567a29a50fde71c","types":"./lib/index.d.ts","_nodeVersion":"22.8.0","_npmVersion":"11.6.0","dist":{"shasum":"3ec1afd2030b2f3d7917f54eb9a9d6e5d5d1d84a","size":33345,"noattachment":false,"key":"/@rc-component/menu/-/@rc-component/menu-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/menu/download/@rc-component/menu-1.2.0.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/menu_1.2.0_1764822855974_0.4257199218115819"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-04T04:34:16.165Z","publish_time":1764822856165,"_source_registry_name":"default","_cnpm_publish_time":1764822856165},"1.1.5":{"name":"@rc-component/menu","version":"1.1.5","description":"menu ui component for react","keywords":["react","react-component","menu","ui","react-menu"],"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"license":"MIT","maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"main":"./lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts,.jsx,.js","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","postpublish":"tnpm sync @rc-component/menu","start":"dumi dev","test":"rc-test","prepare":"husky && dumi setup"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/trigger":"^3.0.0","@rc-component/util":"^1.3.0","clsx":"^2.1.1","rc-overflow":"^1.3.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.0.0","@types/jest":"^30.0.0","@types/node":"^24.7.1","@types/react":"^18.2.14","@types/react-dom":"^18.3.7","@types/warning":"^3.0.0","@umijs/fabric":"^4.0.1","dumi":"^2.1.17","eslint":"^8.55.0","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^9.1.6","less":"^4.1.3","lint-staged":"^16.2.4","prettier":"^3.3.3","rc-test":"^7.0.14","react":"^18.3.1","react-dom":"^18.3.1","typescript":"^5.1.6"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_id":"@rc-component/menu@1.1.5","gitHead":"1c76aa8c4336314aa931ba0727395de6ef206d1a","types":"./lib/index.d.ts","_nodeVersion":"22.8.0","_npmVersion":"11.6.0","dist":{"shasum":"cee27d828867ba90c8a5cf17be2feae7dab4abb8","size":33354,"noattachment":false,"key":"/@rc-component/menu/-/@rc-component/menu-1.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/menu/download/@rc-component/menu-1.1.5.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/menu_1.1.5_1764129779910_0.32655648144910465"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-26T04:03:00.099Z","publish_time":1764129780099,"_source_registry_name":"default","_cnpm_publish_time":1764129780099},"1.1.4":{"name":"@rc-component/menu","version":"1.1.4","description":"menu ui component for react","keywords":["react","react-component","menu","ui","react-menu"],"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"license":"MIT","maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"main":"./lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts,.jsx,.js","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","postpublish":"tnpm sync @rc-component/menu","start":"dumi dev","test":"rc-test","prepare":"husky && dumi setup"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/trigger":"^3.0.0","@rc-component/util":"^1.3.0","classnames":"2.x","rc-overflow":"^1.3.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.0.0","@types/jest":"^29.5.2","@types/node":"^22.3.0","@types/react":"^18.2.14","@types/react-dom":"^18.2.6","@types/warning":"^3.0.0","cross-env":"^7.0.0","dumi":"^2.1.17","eslint":"^8.55.0","eslint-plugin-jest":"^28.8.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^9.1.6","less":"^4.1.3","lint-staged":"^15.2.10","prettier":"^3.3.3","rc-test":"^7.0.14","react":"^18.3.1","react-dom":"^18.3.1","regenerator-runtime":"^0.14.0","typescript":"^5.1.6"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_id":"@rc-component/menu@1.1.4","gitHead":"657a92c6c32aef3ddad1f5b4e613e0091d665cf0","types":"./lib/index.d.ts","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"shasum":"75639a13b5e0e8afefe084fd70240922d45619af","size":33427,"noattachment":false,"key":"/@rc-component/menu/-/@rc-component/menu-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/menu/download/@rc-component/menu-1.1.4.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/menu_1.1.4_1757470130467_0.36158660230656325"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-10T02:08:50.666Z","publish_time":1757470130666,"_source_registry_name":"default","_cnpm_publish_time":1757470130666},"1.1.3":{"name":"@rc-component/menu","version":"1.1.3","description":"menu ui component for react","keywords":["react","react-component","menu","ui","react-menu"],"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"license":"MIT","maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"main":"./lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts,.jsx,.js","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","postpublish":"tnpm sync @rc-component/menu","start":"dumi dev","test":"rc-test","prepare":"husky && dumi setup"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/trigger":"^3.0.0","@rc-component/util":"^1.0.0","classnames":"2.x","rc-overflow":"^1.3.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.0.0","@types/jest":"^29.5.2","@types/node":"^22.3.0","@types/react":"^18.2.14","@types/react-dom":"^18.2.6","@types/warning":"^3.0.0","cross-env":"^7.0.0","dumi":"^2.1.17","eslint":"^8.55.0","eslint-plugin-jest":"^28.8.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^9.1.6","less":"^4.1.3","lint-staged":"^15.2.10","prettier":"^3.3.3","rc-test":"^7.0.14","react":"^18.3.1","react-dom":"^18.3.1","regenerator-runtime":"^0.14.0","typescript":"^5.1.6"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_id":"@rc-component/menu@1.1.3","gitHead":"c1b586d6c64520519022b92fdd78d126a0513e81","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"25f06311eb25f869b386c72670332c3dc4a23b3c","size":33661,"noattachment":false,"key":"/@rc-component/menu/-/@rc-component/menu-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/menu/download/@rc-component/menu-1.1.3.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/menu_1.1.3_1745293471680_0.8296928321784143"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-22T03:44:31.878Z","publish_time":1745293471878,"_source_registry_name":"default","_cnpm_publish_time":1745293471878},"1.1.2":{"name":"@rc-component/menu","version":"1.1.2","description":"menu ui component for react","keywords":["react","react-component","menu","ui","react-menu"],"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"license":"MIT","maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"main":"./lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts,.jsx,.js","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","postpublish":"tnpm sync @rc-component/menu","start":"dumi dev","test":"rc-test","prepare":"husky && dumi setup"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/trigger":"^3.0.0","@rc-component/util":"^1.0.0","classnames":"2.x","rc-overflow":"^1.3.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.0.0","@types/jest":"^29.5.2","@types/node":"^22.3.0","@types/react":"^18.2.14","@types/react-dom":"^18.2.6","@types/warning":"^3.0.0","cross-env":"^7.0.0","dumi":"^2.1.17","eslint":"^8.55.0","eslint-plugin-jest":"^28.8.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^9.1.6","less":"^4.1.3","lint-staged":"^15.2.10","prettier":"^3.3.3","rc-test":"^7.0.14","react":"^18.3.1","react-dom":"^18.3.1","regenerator-runtime":"^0.14.0","typescript":"^5.1.6"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_id":"@rc-component/menu@1.1.2","gitHead":"b7fd486db00c67cff3ac08bd6e4715020e881660","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"be784a94d561c51e3ac6fd89810782fec95aa50b","size":33635,"noattachment":false,"key":"/@rc-component/menu/-/@rc-component/menu-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/menu/download/@rc-component/menu-1.1.2.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/menu_1.1.2_1744169695697_0.06679774784113235"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-09T03:34:55.914Z","publish_time":1744169695914,"_source_registry_name":"default","_cnpm_publish_time":1744169695914},"1.1.1":{"name":"@rc-component/menu","version":"1.1.1","description":"menu ui component for react","keywords":["react","react-component","menu","ui","react-menu"],"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"license":"MIT","maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"main":"./lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts,.jsx,.js","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","postpublish":"tnpm sync @rc-component/menu","start":"dumi dev","test":"rc-test","prepare":"husky && dumi setup"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/trigger":"^3.0.0","@rc-component/util":"^1.0.0","classnames":"2.x","rc-overflow":"^1.3.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.0.0","@types/jest":"^29.5.2","@types/node":"^22.3.0","@types/react":"^18.2.14","@types/react-dom":"^18.2.6","@types/warning":"^3.0.0","cross-env":"^7.0.0","dumi":"^2.1.17","eslint":"^8.55.0","eslint-plugin-jest":"^28.8.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^9.1.6","less":"^4.1.3","lint-staged":"^15.2.10","prettier":"^3.3.3","rc-test":"^7.0.14","react":"^18.3.1","react-dom":"^18.3.1","regenerator-runtime":"^0.14.0","typescript":"^5.1.6"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_id":"@rc-component/menu@1.1.1","gitHead":"1b56a31eac364f300cf52ebcc972658e4e7cb7ea","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"0e57f2c90cc33798b2f242b7aaba8af2f31bbf01","size":33474,"noattachment":false,"key":"/@rc-component/menu/-/@rc-component/menu-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/menu/download/@rc-component/menu-1.1.1.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/menu_1.1.1_1744167004790_0.1897024074134528"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-09T02:50:04.995Z","publish_time":1744167004995,"_source_registry_name":"default","_cnpm_publish_time":1744167004995},"1.1.0":{"name":"@rc-component/menu","version":"1.1.0","description":"menu ui component for react","keywords":["react","react-component","menu","ui","react-menu"],"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"license":"MIT","maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"main":"./lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts,.jsx,.js","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","postpublish":"tnpm sync @rc-component/menu","start":"dumi dev","test":"rc-test","prepare":"husky && dumi setup"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/trigger":"^3.0.0","@rc-component/util":"^1.0.0","classnames":"2.x","rc-overflow":"^1.3.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.0.0","@types/jest":"^29.5.2","@types/node":"^22.3.0","@types/react":"^18.2.14","@types/react-dom":"^18.2.6","@types/warning":"^3.0.0","cross-env":"^7.0.0","dumi":"^2.1.17","eslint":"^8.55.0","eslint-plugin-jest":"^28.8.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^9.1.6","less":"^4.1.3","lint-staged":"^15.2.10","prettier":"^3.3.3","rc-test":"^7.0.14","react":"^18.3.1","react-dom":"^18.3.1","regenerator-runtime":"^0.14.0","typescript":"^5.1.6"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_id":"@rc-component/menu@1.1.0","gitHead":"9e586001368f9d9d1df00091951bd00826c59452","types":"./lib/index.d.ts","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"shasum":"ee86496841ca4cd0e3acf3a75c2164fa9b90c33e","size":33549,"noattachment":false,"key":"/@rc-component/menu/-/@rc-component/menu-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/menu/download/@rc-component/menu-1.1.0.tgz"},"_npmUser":{"name":"madccc","email":"1075746765@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/menu_1.1.0_1743671853820_0.32664412004713816"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-03T09:17:33.999Z","publish_time":1743671853999,"_source_registry_name":"default","_cnpm_publish_time":1743671853999},"1.0.1":{"name":"@rc-component/menu","version":"1.0.1","description":"menu ui component for react","keywords":["react","react-component","menu","ui","react-menu"],"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"license":"MIT","maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"main":"./lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts,.jsx,.js","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","postpublish":"tnpm sync @rc-component/menu","start":"dumi dev","test":"rc-test","prepare":"husky && dumi setup"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/trigger":"^3.0.0","@rc-component/util":"^1.0.0","classnames":"2.x","rc-overflow":"^1.3.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.0.0","@types/jest":"^29.5.2","@types/node":"^22.3.0","@types/react":"^18.2.14","@types/react-dom":"^18.2.6","@types/warning":"^3.0.0","cross-env":"^7.0.0","dumi":"^2.1.17","eslint":"^8.55.0","eslint-plugin-jest":"^28.8.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^9.1.6","less":"^4.1.3","lint-staged":"^15.2.10","prettier":"^3.3.3","rc-test":"^7.0.14","react":"^18.3.1","react-dom":"^18.3.1","regenerator-runtime":"^0.14.0","typescript":"^5.1.6"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_id":"@rc-component/menu@1.0.1","gitHead":"d37a782a7b4b14001ae9b575ac03878ce0c262cf","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"72645e46fc28c6814a65844f183ec1b429cf017c","size":33292,"noattachment":false,"key":"/@rc-component/menu/-/@rc-component/menu-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/menu/download/@rc-component/menu-1.0.1.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/menu_1.0.1_1740539517031_0.3173179303702487"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-26T03:11:57.237Z","publish_time":1740539517237,"_source_registry_name":"default","_cnpm_publish_time":1740539517237},"1.0.0":{"name":"@rc-component/menu","version":"1.0.0","description":"menu ui component for react","keywords":["react","react-component","menu","ui","react-menu"],"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/menu.git"},"license":"MIT","maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"main":"./lib/index","module":"./es/index","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","lint":"eslint src/ --ext .tsx,.ts,.jsx,.js","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","postpublish":"tnpm sync @rc-component/menu","start":"dumi dev","test":"rc-test","prepare":"husky && dumi setup"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/trigger":"^3.0.0","@rc-component/util":"^1.0.0","classnames":"2.x","rc-overflow":"^1.3.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^16.0.0","@types/jest":"^29.5.2","@types/node":"^22.3.0","@types/react":"^18.2.14","@types/react-dom":"^18.2.6","@types/warning":"^3.0.0","cross-env":"^7.0.0","dumi":"^2.1.17","eslint":"^8.55.0","eslint-plugin-jest":"^28.8.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","gh-pages":"^6.1.0","husky":"^9.1.6","less":"^4.1.3","lint-staged":"^15.2.10","prettier":"^3.3.3","rc-test":"^7.0.14","react":"^18.3.1","react-dom":"^18.3.1","regenerator-runtime":"^0.14.0","typescript":"^5.1.6"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"lint-staged":{"*":"prettier --write --ignore-unknown"},"_id":"@rc-component/menu@1.0.0","gitHead":"eda49a3af885caa5a4e74df90acda218976ed6be","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"4024368411eafc9fdbf92da92dc50249e890beca","size":33225,"noattachment":false,"key":"/@rc-component/menu/-/@rc-component/menu-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/menu/download/@rc-component/menu-1.0.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/menu_1.0.0_1740455414327_0.7371565353214893"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-25T03:50:14.486Z","publish_time":1740455414486,"_source_registry_name":"default","_cnpm_publish_time":1740455414486}},"readme":"# @rc-component/menu\n\n---\n\nReact Menu Component. port from https://github.com/kissyteam/menu\n\n[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![bundle size][bundlephobia-image]][bundlephobia-url] [![dumi][dumi-image]][dumi-url]\n\n[npm-image]: https://img.shields.io/npm/v/@rc-component/menu.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@rc-component/menu\n[github-actions-image]: https://github.com/react-component/menu/actions/workflows/main.yml/badge.svg\n[github-actions-url]: https://github.com/react-component/menu/actions/workflows/main.yml\n[circleci-image]: https://img.shields.io/circleci/react-component/menu/master?style=flat-square\n[circleci-url]: https://circleci.com/gh/react-component/menu\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/footer/master.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/react-component/footer/branch/master\n[coveralls-image]: https://img.shields.io/coveralls/react-component/menu.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/react-component/menu?branch=master\n[david-url]: https://david-dm.org/react-component/menu\n[david-image]: https://david-dm.org/react-component/menu/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/menu?type=dev\n[david-dev-image]: https://david-dm.org/react-component/menu/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/@rc-component/menu.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/menu\n[bundlephobia-url]: https://bundlephobia.com/result?p=@rc-component/menu\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/menu\n[dumi-url]: https://github.com/umijs/dumi\n[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\n\n## Install\n\n[![@rc-component/menu](https://nodei.co/npm/@rc-component/menu.png)](https://npmjs.org/package/@rc-component/menu)\n\n## Usage\n\n```js\nimport Menu, { SubMenu, MenuItem } from '@rc-component/menu';\n\nReactDOM.render(\n  <Menu>\n    <MenuItem>1</MenuItem>\n    <SubMenu title=\"2\">\n      <MenuItem>2-1</MenuItem>\n    </SubMenu>\n  </Menu>,\n  container,\n);\n```\n\n## Compatibility\n\n| [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png\" alt=\"IE / Edge\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>IE / Edge | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>Safari | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png\" alt=\"Electron\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>Electron |\n| --- | --- | --- | --- | --- |\n| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |\n\n## API\n\n### Menu props\n\n<table class=\"table table-bordered table-striped\">\n    <thead>\n    <tr>\n        <th style=\"width: 100px;\">name</th>\n        <th style=\"width: 50px;\">type</th>\n        <th style=\"width: 50px;\">default</th>\n        <th>description</th>\n    </tr>\n    </thead>\n    <tbody>\n        <tr>\n          <td>ref</td>\n          <td>React.HTMLLIElement</td>\n          <td></td>\n          <td>get dom node</td>\n        </tr>\n        <tr>\n          <td>className</td>\n          <td>String</td>\n          <td></td>\n          <td>additional css class of root dom node</td>\n        </tr>\n        <tr>\n          <td>mode</td>\n          <td>String</td>\n          <th>vertical</th>\n          <td>one of [\"horizontal\",\"inline\",\"vertical-left\",\"vertical-right\"]</td>\n        </tr>\n        <tr>\n            <td>activeKey</td>\n            <td>String</td>\n            <th></th>\n            <td>initial and current active menu item's key.</td>\n        </tr>\n        <tr>\n            <td>defaultActiveFirst</td>\n            <td>Boolean</td>\n            <th>false</th>\n            <td>whether active first menu item when show if activeKey is not set or invalid</td>\n        </tr>\n        <tr>\n            <td>multiple</td>\n            <td>Boolean</td>\n            <th>false</th>\n            <td>whether allow multiple select</td>\n        </tr>\n        <tr>\n            <td>selectable</td>\n            <td>Boolean</td>\n            <th>true</th>\n            <td>allow selecting menu items</td>\n        </tr>\n        <tr>\n            <td>selectedKeys</td>\n            <td>String[]</td>\n            <th>[]</th>\n            <td>selected keys of items</td>\n        </tr>\n        <tr>\n            <td>defaultSelectedKeys</td>\n            <td>String[]</td>\n            <th>[]</th>\n            <td>initial selected keys of items</td>\n        </tr>\n        <tr>\n            <td>openKeys</td>\n            <td>String[]</td>\n            <th>[]</th>\n            <td>open keys of SubMenuItem</td>\n        </tr>\n        <tr>\n            <td>defaultOpenKeys</td>\n            <td>String[]</td>\n            <th>[]</th>\n            <td>initial open keys of SubMenuItem</td>\n        </tr>\n        <tr>\n            <td>onSelect</td>\n            <td>function({key:String, item:ReactComponent, domEvent:Event, selectedKeys:String[]})</td>\n            <th></th>\n            <td>called when select a menu item</td>\n        </tr>\n        <tr>\n            <td>onClick</td>\n            <td>function({key:String, item:ReactComponent, domEvent:Event, keyPath: String[]})</td>\n            <th></th>\n            <td>called when click a menu item</td>\n        </tr>\n        <tr>\n            <td>onOpenChange</td>\n            <td>(openKeys:String[]) => void</td>\n            <th></th>\n            <td>called when open/close sub menu</td>\n        </tr>\n        <tr>\n            <td>onDeselect</td>\n            <td>function({key:String, item:ReactComponent, domEvent:Event, selectedKeys:String[]})</td>\n            <th></th>\n            <td>called when deselect a menu item. only called when allow multiple</td>\n        </tr>\n        <tr>\n            <td>triggerSubMenuAction</td>\n            <td>Enum { hover, click }</td>\n            <th>hover</th>\n            <td>which action can trigger submenu open/close</td>\n        </tr>\n        <tr>\n            <td>openAnimation</td>\n            <td>{enter:function,leave:function}|String</td>\n            <th></th>\n            <td>animate when sub menu open or close. see @rc-component/motion for object type.</td>\n        </tr>\n        <tr>\n            <td>openTransition</td>\n            <td>String</td>\n            <th></th>\n            <td>css transitionName when sub menu open or close</td>\n        </tr>\n        <tr>\n            <td>subMenuOpenDelay</td>\n            <td>Number</td>\n            <th>0</th>\n            <td>delay time to show popup sub menu. unit: s</td>\n        </tr>\n        <tr>\n            <td>subMenuCloseDelay</td>\n            <td>Number</td>\n            <th>0.1</th>\n            <td>delay time to hide popup sub menu. unit: s</td>\n        </tr>\n        <tr>\n            <td>forceSubMenuRender</td>\n            <td>Boolean</td>\n            <th>false</th>\n            <td>whether to render submenu even if it is not visible</td>\n        </tr>\n        <tr>\n            <td>getPopupContainer</td>\n            <td>Function(menuDOMNode): HTMLElement</td>\n            <th>() => document.body</th>\n            <td>Where to render the DOM node of popup menu when the mode is horizontal or vertical</td>\n        </tr>\n        <tr>\n            <td>builtinPlacements</td>\n            <td>Object of alignConfigs for <a href=\"https://github.com/yiminghe/dom-align\">dom-align</a></td>\n            <th>see <a href=\"./src/placements.ts\">placements.ts</a></th>\n            <td>Describes how the popup menus should be positioned</td>\n        </tr>\n        <tr>\n            <td>itemIcon</td>\n            <td>ReactNode | (props: MenuItemProps) => ReactNode</td>\n            <th></th>\n            <td>Specify the menu item icon.</td>\n        </tr>\n        <tr>\n            <td>expandIcon</td>\n            <td>ReactNode | (props: SubMenuProps & { isSubMenu: boolean }) => ReactNode</td>\n            <th></th>\n            <td>Specify the menu item icon.</td>\n        </tr>\n        <tr>\n            <td>direction</td>\n            <td>String</td>\n            <th></th>\n            <td>Layout direction of menu component, it supports RTL direction too.</td>\n        </tr>\n        <tr>\n            <td>inlineIndent</td>\n            <td>Number</td>\n            <th>24</th>\n            <td>Padding level multiplier. Right or left padding depends on param \"direction\".</td>\n        </tr>\n    </tbody>\n</table>\n\n### Menu.Item props\n\n<table class=\"table table-bordered table-striped\">\n    <thead>\n    <tr>\n        <th style=\"width: 100px;\">name</th>\n        <th style=\"width: 50px;\">type</th>\n        <th style=\"width: 50px;\">default</th>\n        <th>description</th>\n    </tr>\n    </thead>\n    <tbody>\n        <tr>\n          <td>className</td>\n          <td>String</td>\n          <td></td>\n          <td>additional css class of root dom node</td>\n        </tr>\n        <tr>\n            <td>disabled</td>\n            <td>Boolean</td>\n            <th>false</th>\n            <td>no effect for click or keydown for this item</td>\n        </tr>\n        <tr>\n            <td>extra</td>\n            <td>React.ReactNode</td>\n            <th></th>\n            <td>Specify menu item extra node.</td>\n        </tr>\n        <tr>\n            <td>key</td>\n            <td>Object</td>\n            <th></th>\n            <td>corresponding to activeKey</td>\n        </tr>\n        <tr>\n            <td>onMouseEnter</td>\n            <td>Function({eventKey, domEvent})</td>\n            <th></th>\n            <td></td>\n        </tr>\n        <tr>\n            <td>onMouseLeave</td>\n            <td>Function({eventKey, domEvent})</td>\n            <th></th>\n            <td></td>\n        </tr>\n        <tr>\n            <td>itemIcon</td>\n            <td>ReactNode | (props: MenuItemProps) => ReactNode</td>\n            <th></th>\n            <td>Specify the menu item icon.</td>\n        </tr>\n    </tbody>\n</table>\n\n### Menu.SubMenu props\n\n<table class=\"table table-bordered table-striped\">\n    <thead>\n    <tr>\n        <th style=\"width: 100px;\">name</th>\n        <th style=\"width: 50px;\">type</th>\n        <th style=\"width: 50px;\">default</th>\n        <th>description</th>\n    </tr>\n    </thead>\n    <tbody>\n        <tr>\n          <td>ref</td>\n          <td>React.HTMLLIElement</td>\n          <td></td>\n          <td>get dom node</td>\n        </tr>\n        <tr>\n          <td>popupClassName</td>\n          <td>String</td>\n          <td></td>\n          <td>additional css class of root dom node</td>\n        </tr>\n        <tr>\n          <td>popupStyle</td>\n          <td>CSSProperties</td>\n          <td></td>\n          <td>additional css style of root dom node</td>\n        </tr>\n        <tr>\n          <td>title</td>\n          <td>String/ReactElement</td>\n          <td></td>\n          <td>sub menu's content</td>\n        </tr>\n        <tr>\n          <td>overflowedIndicator</td>\n          <td>String/ReactElement</td>\n          <td>···</td>\n          <td>overflow indicator when menu overlows in horizontal mode</td>\n        </tr>\n        <tr>\n            <td>key</td>\n            <td>Object</td>\n            <th></th>\n            <td>corresponding to activeKey</td>\n        </tr>\n        <tr>\n            <td>disabled</td>\n            <td>Boolean</td>\n            <th>false</th>\n            <td>no effect for click or keydown for this item</td>\n        </tr>\n        <tr>\n            <td>onMouseEnter</td>\n            <td>Function({eventKey, domEvent})</td>\n            <th></th>\n            <td></td>\n        </tr>\n        <tr>\n            <td>onMouseLeave</td>\n            <td>Function({eventKey, domEvent})</td>\n            <th></th>\n            <td></td>\n        </tr>\n        <tr>\n            <td>onTitleMouseEnter</td>\n            <td>Function({eventKey, domEvent})</td>\n            <th></th>\n            <td></td>\n        </tr>\n        <tr>\n            <td>onTitleMouseLeave</td>\n            <td>Function({eventKey, domEvent})</td>\n            <th></th>\n            <td></td>\n        </tr>\n        <tr>\n            <td>onTitleClick</td>\n            <td>Function({eventKey, domEvent})</td>\n            <th></th>\n            <td></td>\n        </tr>\n        <tr>\n            <td>popupOffset</td>\n            <td>Array</td>\n            <th></th>\n            <td>The offset of the popup submenu, in an x, y coordinate array. e.g.: `[0,15]`</td>\n        </tr>\n        <tr>\n            <td>expandIcon</td>\n            <td>ReactNode | (props: SubMenuProps) => ReactNode</td>\n            <th></th>\n            <td>Specify the menu item icon.</td>\n        </tr>\n        <tr>\n            <td>itemIcon</td>\n            <td>ReactNode | (props: SubMenuProps & { isSubMenu: boolean }) => ReactNode</td>\n            <th></th>\n            <td>Specify the menu item icon.</td>\n        </tr>\n    </tbody>\n</table>\n\n### Menu.Divider props\n\nnone\n\n### Menu.ItemGroup props\n\n<table class=\"table table-bordered table-striped\">\n    <thead>\n    <tr>\n        <th style=\"width: 100px;\">name</th>\n        <th style=\"width: 50px;\">type</th>\n        <th style=\"width: 50px;\">default</th>\n        <th>description</th>\n    </tr>\n    </thead>\n    <tbody>\n        <tr>\n          <td>ref</td>\n          <td>React.HTMLLIElement</td>\n          <td></td>\n          <td>get dom node</td>\n        </tr>\n        <tr>\n            <td>title</td>\n            <td>String|React.Element</td>\n            <th></th>\n            <td>title of item group</td>\n        </tr>\n        <tr>\n            <td>children</td>\n            <td>React.Element[]</td>\n            <th></th>\n            <td>MenuItems belonged to this group</td>\n        </tr>\n    </tbody>\n</table>\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\nhttp://localhost:8001/examples/index.md\n\nonline example: http://react-component.github.io/menu/examples/\n\n## Test Case\n\n```\nnpm test\nnpm run chrome-test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\nopen coverage/ dir\n\n## License\n\n@rc-component/menu is released under the MIT license.\n","_attachments":{},"homepage":"http://github.com/react-component/menu","bugs":{"url":"http://github.com/react-component/menu/issues"},"license":"MIT"}