{"_id":"@rc-component/drawer","_rev":"4537488","name":"@rc-component/drawer","description":"drawer component for react","dist-tags":{"latest":"1.4.2"},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"time":{"modified":"2026-04-09T15:01:27.000Z","created":"2025-02-26T09:16:03.944Z","1.4.2":"2026-02-06T08:41:31.298Z","1.4.1":"2026-01-27T05:47:48.071Z","1.4.0":"2026-01-04T03:47:39.459Z","1.3.0":"2025-11-25T10:28:32.579Z","1.2.0":"2025-09-03T07:30:21.640Z","1.1.0":"2025-05-19T06:47:09.811Z","1.0.0":"2025-02-26T09:16:03.944Z"},"users":{},"author":{"name":"155259966@qq.com"},"repository":{"type":"git","url":"git+https://github.com/react-component/drawer.git"},"versions":{"1.4.2":{"name":"@rc-component/drawer","version":"1.4.2","description":"drawer component for react","keywords":["react","react-component","react-drawer","drawer","drawer-menu","rc-drawer-menu","react-drawer-menu","animation","drawer-motion","drawer-animation"],"homepage":"https://github.com/react-component/drawer","bugs":{"url":"https://github.com/react-component/drawer/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/drawer.git"},"license":"MIT","author":{"name":"155259966@qq.com"},"main":"./lib/index","module":"./es/index","scripts":{"build":"dumi build","compile":"father build && lessc assets/index.less assets/index.css","lint":"eslint src/ --ext .tsx,.ts","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","start":"dumi dev","test":"rc-test","prettier":"prettier --write .","prepare":"husky"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/portal":"^2.1.3","@rc-component/util":"^1.9.0","clsx":"^2.1.1"},"devDependencies":{"@ant-design/icons":"^5.3.0","@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^6.2.0","@testing-library/react":"^16.3.0","@types/jest":"^29.5.11","@types/node":"^25.0.0","@types/raf":"^3.4.0","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","@types/warning":"^3.0.0","antd":"^5.12.7","dumi":"^2.2.0","eslint":"^8.56.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","glob":"^10.3.10","husky":"^9.0.10","less":"^4.2.0","lint-staged":"^16.1.5","prettier":"^3.0.0","rc-test":"^7.0.9","react":"^19.0.0","react-dom":"^19.0.0","stylelint":"^17.1.0","stylelint-config-standard-less":"^4.0.0","typescript":"^5.3.3"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"lint-staged":{"*.{js,jsx,ts,tsx}":"eslint --fix","*.{css,less}":"stylelint --fix","*.{js,jsx,ts,tsx,json,less,css,md}":"prettier --write"},"gitHead":"759da9a3e7d6c5aba33a426b91ebe367c8f0d220","types":"./lib/index.d.ts","_id":"@rc-component/drawer@1.4.2","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"shasum":"eb13a6556fb67be28407295c89401b01549224e0","size":12311,"noattachment":false,"key":"/@rc-component/drawer/-/@rc-component/drawer-1.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/drawer/download/@rc-component/drawer-1.4.2.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/drawer_1.4.2_1770367291104_0.7846560781602863"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-06T08:41:31.298Z","publish_time":1770367291298,"_source_registry_name":"default","_cnpm_publish_time":1770367291298},"1.4.1":{"name":"@rc-component/drawer","version":"1.4.1","description":"drawer component for react","keywords":["react","react-component","react-drawer","drawer","drawer-menu","rc-drawer-menu","react-drawer-menu","animation","drawer-motion","drawer-animation"],"homepage":"https://github.com/react-component/drawer","bugs":{"url":"https://github.com/react-component/drawer/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/drawer.git"},"license":"MIT","author":{"name":"155259966@qq.com"},"main":"./lib/index","module":"./es/index","scripts":{"build":"dumi build","compile":"father build && lessc assets/index.less assets/index.css","lint":"eslint src/ --ext .tsx,.ts","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","start":"dumi dev","test":"rc-test","prettier":"prettier --write .","prepare":"husky"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/portal":"^2.1.3","@rc-component/util":"^1.7.0","clsx":"^2.1.1"},"devDependencies":{"@ant-design/icons":"^5.3.0","@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^6.2.0","@testing-library/react":"^16.3.0","@types/jest":"^29.5.11","@types/node":"^25.0.0","@types/raf":"^3.4.0","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","@types/warning":"^3.0.0","antd":"^5.12.7","dumi":"^2.2.0","eslint":"^8.56.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","glob":"^10.3.10","husky":"^9.0.10","less":"^4.2.0","lint-staged":"^16.1.5","prettier":"^3.0.0","rc-test":"^7.0.9","react":"^19.0.0","react-dom":"^19.0.0","stylelint":"^16.2.1","stylelint-config-standard-less":"^4.0.0","typescript":"^5.3.3"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"lint-staged":{"*.{js,jsx,ts,tsx}":"eslint --fix","*.{css,less}":"stylelint --fix","*.{js,jsx,ts,tsx,json,less,css,md}":"prettier --write"},"_id":"@rc-component/drawer@1.4.1","gitHead":"bab18ccb72702f06aa5211bf9010f00de85b3a33","types":"./lib/index.d.ts","_nodeVersion":"22.8.0","_npmVersion":"11.6.0","dist":{"shasum":"df1173ce8e387fd558f73dcc18500f3c778a5ff7","size":12250,"noattachment":false,"key":"/@rc-component/drawer/-/@rc-component/drawer-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/drawer/download/@rc-component/drawer-1.4.1.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/drawer_1.4.1_1769492867921_0.8983502998086692"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-27T05:47:48.071Z","publish_time":1769492868071,"_source_registry_name":"default","_cnpm_publish_time":1769492868071},"1.4.0":{"name":"@rc-component/drawer","version":"1.4.0","description":"drawer component for react","keywords":["react","react-component","react-drawer","drawer","drawer-menu","rc-drawer-menu","react-drawer-menu","animation","drawer-motion","drawer-animation"],"homepage":"https://github.com/react-component/drawer","bugs":{"url":"https://github.com/react-component/drawer/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/drawer.git"},"license":"MIT","author":{"name":"155259966@qq.com"},"main":"./lib/index","module":"./es/index","scripts":{"build":"dumi build","compile":"father build && lessc assets/index.less assets/index.css","lint":"eslint src/ --ext .tsx,.ts","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","start":"dumi dev","test":"rc-test","prettier":"prettier --write .","prepare":"husky"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/portal":"^2.1.3","@rc-component/util":"^1.2.1","clsx":"^2.1.1"},"devDependencies":{"@ant-design/icons":"^5.3.0","@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^6.2.0","@testing-library/react":"^16.3.0","@types/jest":"^29.5.11","@types/node":"^25.0.0","@types/raf":"^3.4.0","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","@types/warning":"^3.0.0","antd":"^5.12.7","dumi":"^2.2.0","eslint":"^8.56.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","glob":"^10.3.10","husky":"^9.0.10","less":"^4.2.0","lint-staged":"^16.1.5","prettier":"^3.0.0","rc-test":"^7.0.9","react":"^19.0.0","react-dom":"^19.0.0","stylelint":"^16.2.1","stylelint-config-standard-less":"^4.0.0","typescript":"^5.3.3"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"lint-staged":{"*.{js,jsx,ts,tsx}":"eslint --fix","*.{css,less}":"stylelint --fix","*.{js,jsx,ts,tsx,json,less,css,md}":"prettier --write"},"gitHead":"925f9f55dde91a84c762da9c13db5ce7ee1592e7","types":"./lib/index.d.ts","_id":"@rc-component/drawer@1.4.0","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"shasum":"aad9002307899b3b2a31e7c2160c44f38421e026","size":12251,"noattachment":false,"key":"/@rc-component/drawer/-/@rc-component/drawer-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/drawer/download/@rc-component/drawer-1.4.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/drawer_1.4.0_1767498459285_0.6366828999331617"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-04T03:47:39.459Z","publish_time":1767498459459,"_source_registry_name":"default","_cnpm_publish_time":1767498459459},"1.3.0":{"name":"@rc-component/drawer","version":"1.3.0","description":"drawer component for react","keywords":["react","react-component","react-drawer","drawer","drawer-menu","rc-drawer-menu","react-drawer-menu","animation","drawer-motion","drawer-animation"],"homepage":"https://github.com/react-component/drawer","bugs":{"url":"https://github.com/react-component/drawer/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/drawer.git"},"license":"MIT","author":{"name":"155259966@qq.com"},"main":"./lib/index","module":"./es/index","scripts":{"build":"dumi build","compile":"father build && lessc assets/index.less assets/index.css","lint":"eslint src/ --ext .tsx,.ts","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","start":"dumi dev","test":"rc-test","prettier":"prettier --write .","prepare":"husky"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/portal":"^2.0.0","@rc-component/util":"^1.2.1","clsx":"^2.1.1"},"devDependencies":{"@ant-design/icons":"^5.3.0","@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^6.2.0","@testing-library/react":"^16.3.0","@types/jest":"^29.5.11","@types/node":"^24.3.0","@types/raf":"^3.4.0","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","@types/warning":"^3.0.0","antd":"^5.12.7","dumi":"^2.2.0","eslint":"^8.56.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","glob":"^10.3.10","husky":"^9.0.10","less":"^4.2.0","lint-staged":"^16.1.5","prettier":"^3.0.0","rc-test":"^7.0.9","react":"^19.0.0","react-dom":"^19.0.0","stylelint":"^16.2.1","stylelint-config-standard-less":"^3.0.1","typescript":"^5.3.3"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"lint-staged":{"*.{js,jsx,ts,tsx}":"eslint --fix","*.{css,less}":"stylelint --fix","*.{js,jsx,ts,tsx,json,less,css,md}":"prettier --write"},"_id":"@rc-component/drawer@1.3.0","gitHead":"77b011bd143ec3d649e1bd457b8b2a332c191172","types":"./lib/index.d.ts","_nodeVersion":"22.8.0","_npmVersion":"11.6.0","dist":{"shasum":"629e789f6199bbc2e2de467bc0dde59ed0817da2","size":12125,"noattachment":false,"key":"/@rc-component/drawer/-/@rc-component/drawer-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/drawer/download/@rc-component/drawer-1.3.0.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/drawer_1.3.0_1764066512367_0.053641600945386614"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-25T10:28:32.579Z","publish_time":1764066512579,"_source_registry_name":"default","_cnpm_publish_time":1764066512579},"1.2.0":{"name":"@rc-component/drawer","version":"1.2.0","description":"drawer component for react","keywords":["react","react-component","react-drawer","drawer","drawer-menu","rc-drawer-menu","react-drawer-menu","animation","drawer-motion","drawer-animation"],"homepage":"https://github.com/react-component/drawer","bugs":{"url":"https://github.com/react-component/drawer/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/drawer.git"},"license":"MIT","author":{"name":"155259966@qq.com"},"main":"./lib/index","module":"./es/index","scripts":{"build":"dumi build","compile":"father build && lessc assets/index.less assets/index.css","lint":"eslint src/ --ext .tsx,.ts","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","start":"dumi dev","test":"rc-test","prettier":"prettier --write .","prepare":"husky"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/portal":"^2.0.0","@rc-component/util":"^1.2.1","classnames":"^2.2.6"},"devDependencies":{"@ant-design/icons":"^5.3.0","@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^6.2.0","@testing-library/react":"^16.3.0","@types/classnames":"^2.2.9","@types/jest":"^29.5.11","@types/node":"^24.3.0","@types/raf":"^3.4.0","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","@types/warning":"^3.0.0","antd":"^5.12.7","dumi":"^2.2.0","eslint":"^8.56.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","glob":"^10.3.10","husky":"^9.0.10","less":"^4.2.0","lint-staged":"^16.1.5","prettier":"^3.0.0","rc-test":"^7.0.9","react":"^19.0.0","react-dom":"^19.0.0","stylelint":"^16.2.1","stylelint-config-standard-less":"^3.0.1","typescript":"^5.3.3"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"lint-staged":{"*.{js,jsx,ts,tsx}":"eslint --fix","*.{css,less}":"stylelint --fix","*.{js,jsx,ts,tsx,json,less,css,md}":"prettier --write"},"_id":"@rc-component/drawer@1.2.0","gitHead":"d84d7ac34f98fde70e0e176259e225450499a594","types":"./lib/index.d.ts","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"shasum":"4e1b08beed21f02a8e31f47ea741ef14dcf5eff4","size":12095,"noattachment":false,"key":"/@rc-component/drawer/-/@rc-component/drawer-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/drawer/download/@rc-component/drawer-1.2.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/drawer_1.2.0_1756884621473_0.563612540647817"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-03T07:30:21.640Z","publish_time":1756884621640,"_source_registry_name":"default","_cnpm_publish_time":1756884621640},"1.1.0":{"name":"@rc-component/drawer","version":"1.1.0","description":"drawer component for react","keywords":["react","react-component","react-drawer","drawer","drawer-menu","rc-drawer-menu","react-drawer-menu","animation","drawer-motion","drawer-animation"],"homepage":"https://github.com/react-component/drawer","bugs":{"url":"https://github.com/react-component/drawer/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/drawer.git"},"license":"MIT","author":{"name":"155259966@qq.com"},"main":"./lib/index","module":"./es/index","scripts":{"build":"dumi build","compile":"father build && lessc assets/index.less assets/index.css","lint":"eslint src/ --ext .tsx,.ts","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","start":"dumi dev","test":"rc-test","prettier":"prettier --write .","prepare":"husky"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/portal":"^2.0.0","@rc-component/util":"^1.2.1","classnames":"^2.2.6"},"devDependencies":{"@ant-design/icons":"^5.3.0","@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^6.2.0","@testing-library/react":"^15.0.7","@types/classnames":"^2.2.9","@types/jest":"^29.5.11","@types/node":"^22.15.18","@types/raf":"^3.4.0","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","@types/warning":"^3.0.0","antd":"^5.12.7","dumi":"^2.2.0","eslint":"^8.56.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","glob":"^10.3.10","husky":"^9.0.10","less":"^4.2.0","lint-staged":"^15.2.2","prettier":"^3.0.0","rc-test":"^7.0.9","react":"^19.0.0","react-dom":"^19.0.0","stylelint":"^16.2.1","stylelint-config-standard-less":"^3.0.1","typescript":"^5.3.3"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"lint-staged":{"*.{js,jsx,ts,tsx}":"eslint --fix","*.{css,less}":"stylelint --fix","*.{js,jsx,ts,tsx,json,less,css,md}":"prettier --write"},"_id":"@rc-component/drawer@1.1.0","gitHead":"283ead8aad52b93d4496345e773a19e097401c16","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"8c09b18bccd771c4ded7c7db5423c6d276ed728f","size":9253,"noattachment":false,"key":"/@rc-component/drawer/-/@rc-component/drawer-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/drawer/download/@rc-component/drawer-1.1.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/drawer_1.1.0_1747637229643_0.2187638144379216"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-19T06:47:09.811Z","publish_time":1747637229811,"_source_registry_name":"default","_cnpm_publish_time":1747637229811},"1.0.0":{"name":"@rc-component/drawer","version":"1.0.0","description":"drawer component for react","keywords":["react","react-component","react-drawer","drawer","drawer-menu","rc-drawer-menu","react-drawer-menu","animation","drawer-motion","drawer-animation"],"homepage":"https://github.com/react-component/drawer","bugs":{"url":"https://github.com/react-component/drawer/issues"},"repository":{"type":"git","url":"git+https://github.com/react-component/drawer.git"},"license":"MIT","author":{"name":"155259966@qq.com"},"main":"./lib/index","module":"./es/index","scripts":{"build":"dumi build","compile":"father build && lessc assets/index.less assets/index.css","lint":"eslint src/ --ext .tsx,.ts","now-build":"npm run build","prepublishOnly":"npm run compile && rc-np","start":"dumi dev","test":"rc-test","prettier":"prettier --write .","prepare":"husky"},"dependencies":{"@rc-component/motion":"^1.1.4","@rc-component/portal":"^2.0.0","@rc-component/util":"^1.2.1","classnames":"^2.2.6"},"devDependencies":{"@ant-design/icons":"^5.3.0","@rc-component/father-plugin":"^2.0.2","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^6.2.0","@testing-library/react":"^14.0.0","@types/classnames":"^2.2.9","@types/jest":"^29.5.11","@types/raf":"^3.4.0","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","@types/warning":"^3.0.0","antd":"^5.12.7","dumi":"^2.2.0","eslint":"^8.56.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^51.0.1","father":"^4.0.0","glob":"^10.3.10","husky":"^9.0.10","less":"^4.2.0","lint-staged":"^15.2.2","prettier":"^3.0.0","rc-test":"^7.0.9","react":"^19.0.0","react-dom":"^19.0.0","stylelint":"^16.2.1","stylelint-config-standard-less":"^3.0.1","typescript":"^5.3.3"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"lint-staged":{"*.{js,jsx,ts,tsx}":"eslint --fix","*.{css,less}":"stylelint --fix","*.{js,jsx,ts,tsx,json,less,css,md}":"prettier --write"},"_id":"@rc-component/drawer@1.0.0","gitHead":"5b54804095683c38ea5a01de33223e5ee2d9fbb1","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"afaa9f3b679dedb6e68ecbf1b15d902d8c04aa61","size":9242,"noattachment":false,"key":"/@rc-component/drawer/-/@rc-component/drawer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/drawer/download/@rc-component/drawer-1.0.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/drawer_1.0.0_1740561363731_0.9749426025447894"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-26T09:16:03.944Z","publish_time":1740561363944,"_source_registry_name":"default","_cnpm_publish_time":1740561363944}},"readme":"# @rc-component/drawer\n\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n[![build status][github-actions-image]][github-actions-url]\n[![codecov][codecov-image]][codecov-url]\n[![dumi][dumi-image]][dumi-url]\n\n[npm-image]: http://img.shields.io/npm/v/@rc-component/drawer.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/@rc-component/drawer\n[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\n[dumi-url]: https://github.com/umijs/dumi\n[github-actions-image]: https://github.com/react-component/drawer/actions/workflows/react-component-ci.yml/badge.svg\n[github-actions-url]: https://github.com/react-component/drawer/actions/workflows/react-component-ci.yml\n[download-image]: https://img.shields.io/npm/dm/@rc-component/drawer.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/drawer\n[codecov-image]: https://codecov.io/gh/react-component/drawer/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/react-component/drawer\n\n\n## Example\n\nhttps://drawer-react-component.vercel.app/\n\n## Usage\n\n```js\nimport Drawer from '@rc-component/drawer';\nimport React from 'react';\nimport ReactDom from 'react-dom';\n\nReactDom.render(\n  <Drawer>\n    {menu children}\n  </Drawer>\n, mountNode);\n```\n\n## Install\n\n[![@rc-component/drawer](https://nodei.co/npm/@rc-component/drawer.png)](https://npmjs.org/package/@rc-component/drawer)\n\n## Browser Support\n\n| ![IE](https://github.com/alrra/browser-logos/blob/master/src/edge/edge_48x48.png?raw=true) | ![Chrome](https://github.com/alrra/browser-logos/blob/master/src/chrome/chrome_48x48.png?raw=true) | ![Firefox](https://github.com/alrra/browser-logos/blob/master/src/firefox/firefox_48x48.png?raw=true) | ![Opera](https://github.com/alrra/browser-logos/blob/master/src/opera/opera_48x48.png?raw=true) | ![Safari](https://github.com/alrra/browser-logos/blob/master/src/safari/safari_48x48.png?raw=true) |\n| ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |\n| IE 10+ ✔                                                                                  | Chrome 31.0+ ✔                                                                                    | Firefox 31.0+ ✔                                                                                      | Opera 30.0+ ✔                                                                                  | Safari 7.0+ ✔                                                                                     |\n\n## API\n\n| props              | type                                                                        | default                                | description                                                                   |\n| ------------------ | --------------------------------------------------------------------------- | -------------------------------------- | ----------------------------------------------------------------------------- |\n| className          | string                                                                      | null                                   | -                                                                             |\n| classNames         | { mask?: string; content?: string; wrapper?: string; }                      | -                                      | pass className to target area                                                 |\n| styles             | { mask?: CSSProperties; content?: CSSProperties; wrapper?: CSSProperties; } | `rc-drawer`                            | pass style to target area                                                     |\n| prefixCls          | string                                                                      | 'drawer'                               | prefix class                                                                  |\n| width              | string \\| number                                                            | null                                   | drawer content wrapper width, drawer level transition width                   |\n| height             | string \\| number                                                            | null                                   | drawer content wrapper height, drawer level transition height                 |\n| defaultWidth       | string \\| number                                                            | null                                   | default width for uncontrolled resizable drawer                               |\n| defaultHeight      | string \\| number                                                            | null                                   | default height for uncontrolled resizable drawer                              |\n| open               | boolean                                                                     | false                                  | open or close menu                                                            |\n| defaultOpen        | boolean                                                                     | false                                  | default open menu                                                             |\n| placement          | string                                                                      | `left`                                 | `left` `top` `right` `bottom`                                                 |\n| level              | string \\| array                                                             | `all`                                  | With the drawer level element. `all`/ null / className / id / tagName / array |\n| levelMove          | number \\| array \\| func                                                     | null                                   | level move value. default is drawer width                                     |\n| duration           | string                                                                      | `.3s`                                  | level animation duration                                                      |\n| ease               | string                                                                      | `cubic-bezier(0.78, 0.14, 0.15, 0.86)` | level animation timing function                                               |\n| getContainer       | string \\| func \\| HTMLElement                                               | `body`                                 | Return the mount node for Drawer. if is `null` use React.creactElement        |\n| showMask           | boolean                                                                     | true                                   | mask is show                                                                  |\n| maskClosable       | boolean                                                                     | true                                   | Clicking on the mask (area outside the Drawer) to close the Drawer or not.    |\n| maskStyle          | CSSProperties                                                               | null                                   | mask style                                                                    |\n| afterOpenChange    | func                                                                        | null                                   | transition end callback(open)                                                 |\n| onClose            | func                                                                        | null                                   | close click function                                                          |\n| keyboard           | boolean                                                                     | true                                   | Whether support press esc to close                                            |\n| autoFocus          | boolean                                                                     | true                                   | Whether focusing on the drawer after it opened                                |\n| resizable          | { onResize?: (size: number) => void; onResizeStart?: () => void; onResizeEnd?: () => void; } | -                                      | Resizable configuration with optional callbacks                                |\n| onMouseEnter       | React.MouseEventHandler\\<HTMLDivElement\\>                                   | -                                      | Trigger when mouse enter drawer panel                                         |\n| onMouseOver        | React.MouseEventHandler\\<HTMLDivElement\\>                                   | -                                      | Trigger when mouse over drawer panel                                          |\n| onMouseLeave       | React.MouseEventHandler\\<HTMLDivElement\\>                                   | -                                      | Trigger when mouse leave drawer panel                                         |\n| onClick            | React.MouseEventHandler\\<HTMLDivElement\\>                                   | -                                      | Trigger when mouse click drawer panel                                         |\n| onKeyDown          | React.MouseEventHandler\\<HTMLDivElement\\>                                   | -                                      | Trigger when mouse keydown on drawer panel                                    |\n| onKeyUp            | React.MouseEventHandler\\<HTMLDivElement\\>                                   | -                                      | Trigger when mouse keyup on drawer panel                                      |\n\n> 2.0 Rename `onMaskClick` -> `onClose`, add `maskClosable`.\n\n## Development\n\n```\nnpm install\nnpm start\n```\n","_attachments":{},"homepage":"https://github.com/react-component/drawer","bugs":{"url":"https://github.com/react-component/drawer/issues"},"license":"MIT"}