{"versions":{"1.0.0":{"name":"@rc-component/collapse","version":"1.0.0","description":"rc-collapse ui component for react","keywords":["react","react-component","react-rc-collapse","rc-collapse","collapse","accordion"],"homepage":"http://github.com/react-component/collapse","bugs":{"url":"http://github.com/react-component/collapse/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/collapse.git"},"license":"MIT","main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"npm run docs:build && gh-pages -d .doc","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prepare":"husky","now-build":"npm run docs:build","prepublishOnly":"npm run compile && np --yolo --no-publish","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","postpublish":"npm run docs:deploy","start":"dumi dev","test":"rc-test"},"lint-staged":{"**/*.{ts,tsx,js,jsx,json,md}":"npm run prettier"},"dependencies":{"@babel/runtime":"^7.10.1","@rc-component/util":"^1.0.1","classnames":"2.x","rc-motion":"^2.3.4"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^14.1.2","@testing-library/user-event":"^14.5.2","@types/classnames":"^2.2.9","@types/jest":"^29.4.0","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@umijs/fabric":"^4.0.0","dumi":"^2.1.1","eslint":"^8.55.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^49.0.0","father":"^4.1.3","gh-pages":"^6.2.0","husky":"^9.0.0","jest":"^29.1.2","less":"^4.2.0","lint-staged":"^15.0.2","np":"^9.1.0","prettier":"^3.0.3","rc-test":"^7.0.14","react":"^18.2.0","react-dom":"^18.2.0","typescript":"^5.0.0"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_id":"@rc-component/collapse@1.0.0","gitHead":"f0b2c7f1fce6ca96ded0d744640702dd4815729e","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-kX10vC/fBHK7IMkokIMVJqu0oomeL2/QBWnIuUTCR+HBH/IRw8wOeCTqN1OSXulEHj3AJmUDMqoe3fFz9K+LkA==","shasum":"e7b0583e4993d1aa612b178658c321997961fbe0","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@rc-component/collapse/-/collapse-1.0.0.tgz","fileCount":28,"unpackedSize":43947,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEB3kCFXvrZqVcx2vFdX8E/t3JFT6iQoQYSjpDyBhFD5AiEAhV8DRorn1227hvipMaKMksAuZsjzkl4B3i/nPvMVNwI="}],"size":8878},"_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/collapse_1.0.0_1736409670347_0.9565358750306905"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-09T08:01:10.507Z","publish_time":1736409670507,"_source_registry_name":"default","contributors":[]},"1.0.1":{"name":"@rc-component/collapse","version":"1.0.1","description":"rc-collapse ui component for react","keywords":["react","react-component","react-rc-collapse","rc-collapse","collapse","accordion"],"homepage":"http://github.com/react-component/collapse","bugs":{"url":"http://github.com/react-component/collapse/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/collapse.git"},"license":"MIT","main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"npm run docs:build && gh-pages -d .doc","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prepare":"husky","now-build":"npm run docs:build","prepublishOnly":"npm run compile && np --yolo --no-publish","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","postpublish":"npm run docs:deploy","start":"dumi dev","test":"rc-test"},"lint-staged":{"**/*.{ts,tsx,js,jsx,json,md}":"npm run prettier"},"dependencies":{"@babel/runtime":"^7.10.1","@rc-component/util":"^1.0.1","classnames":"2.x","rc-motion":"^2.3.4"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^14.1.2","@testing-library/user-event":"^14.5.2","@types/classnames":"^2.2.9","@types/jest":"^29.4.0","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@umijs/fabric":"^4.0.0","dumi":"^2.1.1","eslint":"^8.55.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^49.0.0","father":"^4.1.3","gh-pages":"^6.2.0","husky":"^9.0.0","jest":"^29.1.2","less":"^4.2.0","lint-staged":"^15.0.2","np":"^9.1.0","prettier":"^3.0.3","rc-test":"^7.0.14","react":"^18.2.0","react-dom":"^18.2.0","typescript":"^5.0.0"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_id":"@rc-component/collapse@1.0.1","gitHead":"74a99fee9d4dc52ff71b6d51604bf530fba9073a","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/rJgqSm1k2DPf4on+BWxUY9V9nPTk7BJ+KWTJIt+62ePx6JnGT1y2BTOVcX1rkQzYSDp44wEHCGqfP39EJPrcw==","shasum":"5200d918568b1d8f62cd6fe70ee290bdd776cb3c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@rc-component/collapse/-/collapse-1.0.1.tgz","fileCount":28,"unpackedSize":44845,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICnIxVTNMhct3cb/XS+Ouh9RoSsmtqHThovE1F6rfQIvAiBgguXYV13NS0Cg8RVwg334LUeNy75ogGOrgnuJnnBhNg=="}],"size":8920},"_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/collapse_1.0.1_1736844362507_0.32821586561667515"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-14T08:46:02.688Z","publish_time":1736844362688,"_source_registry_name":"default","contributors":[]},"1.1.0":{"name":"@rc-component/collapse","version":"1.1.0","description":"rc-collapse ui component for react","keywords":["react","react-component","react-rc-collapse","rc-collapse","collapse","accordion"],"homepage":"http://github.com/react-component/collapse","bugs":{"url":"http://github.com/react-component/collapse/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/collapse.git"},"license":"MIT","main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"npm run docs:build && gh-pages -d dist","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prepare":"husky","now-build":"npm run docs:build","prepublishOnly":"npm run compile && rc-np","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","postpublish":"npm run docs:deploy","start":"dumi dev","test":"rc-test"},"lint-staged":{"**/*.{ts,tsx,js,jsx,json,md}":"npm run prettier"},"dependencies":{"@babel/runtime":"^7.10.1","@rc-component/motion":"^1.1.4","@rc-component/util":"^1.0.1","classnames":"2.x"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.4","@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^16.3.0","@testing-library/user-event":"^14.5.2","@types/classnames":"^2.2.9","@types/jest":"^29.4.0","@types/node":"^22.15.18","@types/react":"^19.1.4","@types/react-dom":"^19.1.5","@umijs/fabric":"^4.0.0","dumi":"^2.1.1","eslint":"^8.55.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^49.0.0","father":"^4.1.3","gh-pages":"^6.2.0","husky":"^9.0.0","jest":"^29.1.2","less":"^4.2.0","lint-staged":"^15.0.2","prettier":"^3.0.3","rc-test":"^7.0.14","react":"^19.1.0","react-dom":"^19.1.0","typescript":"^5.0.0"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_id":"@rc-component/collapse@1.1.0","gitHead":"da6f7fac24b614dc8ce64219fec75cfcbc05c089","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-+A4l89Xb5butHEHAF2td3mO1PEP6exqw4QATXuMWkb91zc6vhhtcEERP6Bpwqj6Ixacr87Y3hfE4pFgYS8PV7A==","shasum":"87764d8b4ad255be2dc6ea171553fa2ca64c7c50","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@rc-component/collapse/-/collapse-1.1.0.tgz","fileCount":28,"unpackedSize":44790,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDR39NFq5FZIrK5AyxQk2HDuNxOG0yY5CKAJOtM1XAjNQIgfUH6d5JNlIlaDEEOdvcVEU2/j0i+6k9YCqEFNvLIrFE="}],"size":8944},"_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/collapse_1.1.0_1747625764415_0.47077693966920786"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-19T03:36:04.646Z","publish_time":1747625764646,"_source_registry_name":"default","contributors":[]},"1.1.1":{"name":"@rc-component/collapse","version":"1.1.1","description":"rc-collapse ui component for react","keywords":["react","react-component","react-rc-collapse","rc-collapse","collapse","accordion"],"homepage":"http://github.com/react-component/collapse","bugs":{"url":"http://github.com/react-component/collapse/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/collapse.git"},"license":"MIT","main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"npm run docs:build && gh-pages -d dist","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prepare":"husky","now-build":"npm run docs:build","prepublishOnly":"npm run compile && rc-np","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","postpublish":"npm run docs:deploy","start":"dumi dev","test":"rc-test"},"lint-staged":{"**/*.{ts,tsx,js,jsx,json,md}":"npm run prettier"},"dependencies":{"@babel/runtime":"^7.10.1","@rc-component/motion":"^1.1.4","@rc-component/util":"^1.3.0","classnames":"2.x"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.4","@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^16.3.0","@testing-library/user-event":"^14.5.2","@types/classnames":"^2.2.9","@types/jest":"^29.4.0","@types/node":"^24.2.0","@types/react":"^19.1.4","@types/react-dom":"^19.1.5","@umijs/fabric":"^4.0.0","dumi":"^2.1.1","eslint":"^8.55.0","eslint-plugin-jest":"^28.11.0","eslint-plugin-unicorn":"^49.0.0","father":"^4.1.3","gh-pages":"^6.2.0","husky":"^9.0.0","jest":"^30.0.3","less":"^4.2.0","lint-staged":"^16.0.0","prettier":"^3.0.3","rc-test":"^7.0.14","react":"^19.1.0","react-dom":"^19.1.0","typescript":"^5.0.0"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_id":"@rc-component/collapse@1.1.1","gitHead":"b6f4f5b8fc4c12c02e34db11367a39addecc7fda","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-m/E99iY8ItON58UIjfUXtV/p4TESy8DoUu4cIARyN+pAtNYqwk+9FpsjJtN/7sXlcdmFoTIcOh0z09eoS1dKhw==","shasum":"857bbf38803b9fb12b97ae4c9a9f9cb12db2c7d8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@rc-component/collapse/-/collapse-1.1.1.tgz","fileCount":28,"unpackedSize":44824,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAHPQCTZSfWkP3RuAX3/S4oI8TaVC7vUNmJIrUbLLdG0AiATc2hIJ263qVx42L2ukfCpyesfVMG9BXb4W8xznNFVVA=="}],"size":9016},"_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"},{"name":"anonymous","email":"wasd2144@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/collapse_1.1.1_1758094534096_0.23250313448917548"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-17T07:35:34.282Z","publish_time":1758094534282,"_source_registry_name":"default","contributors":[]},"1.1.2":{"name":"@rc-component/collapse","version":"1.1.2","description":"rc-collapse ui component for react","keywords":["react","react-component","react-rc-collapse","rc-collapse","collapse","accordion"],"homepage":"http://github.com/react-component/collapse","bugs":{"url":"http://github.com/react-component/collapse/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/collapse.git"},"license":"MIT","main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"npm run docs:build && gh-pages -d dist","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prepare":"husky","now-build":"npm run docs:build","prepublishOnly":"npm run compile && rc-np","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","postpublish":"npm run docs:deploy","start":"dumi dev","test":"rc-test"},"lint-staged":{"**/*.{ts,tsx,js,jsx,json,md}":"npm run prettier"},"dependencies":{"@babel/runtime":"^7.10.1","@rc-component/motion":"^1.1.4","@rc-component/util":"^1.3.0","clsx":"^2.1.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.4","@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^16.3.0","@types/jest":"^29.4.0","@types/node":"^24.2.0","@types/react":"^19.1.4","@types/react-dom":"^19.1.5","@umijs/fabric":"^4.0.0","dumi":"^2.1.1","eslint":"^8.55.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-unicorn":"^49.0.0","father":"^4.1.3","gh-pages":"^6.2.0","husky":"^9.0.0","jest":"^30.0.3","less":"^4.2.0","lint-staged":"^16.0.0","prettier":"^3.0.3","rc-test":"^7.0.14","react":"^19.1.0","react-dom":"^19.1.0","typescript":"^5.0.0"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_id":"@rc-component/collapse@1.1.2","gitHead":"ae299406f3cb7273cd505516f33dd7db61b7bb28","_nodeVersion":"22.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-ilBYk1dLLJHu5Q74dF28vwtKUYQ42ZXIIDmqTuVy4rD8JQVvkXOs+KixVNbweyuIEtJYJ7+t+9GVD9dPc6N02w==","shasum":"7e0ff96a8292600bf774584257c9dc283891aea3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@rc-component/collapse/-/collapse-1.1.2.tgz","fileCount":28,"unpackedSize":44600,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFnU++Z0Gsv/7NDzxp9KUjt7Ca8HQVIShmK8D1l0gclpAiEAkjv/LCy0N6cOL0ZumpkpeyYCbteF27oNPVEtU20Muik="}],"size":9015},"_npmUser":{"name":"anonymous","email":"afc163@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"},{"name":"anonymous","email":"wasd2144@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/collapse_1.1.2_1764299799976_0.5069314892824128"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-28T03:16:40.172Z","publish_time":1764299800172,"_source_registry_name":"default","contributors":[]},"1.2.0":{"name":"@rc-component/collapse","version":"1.2.0","description":"rc-collapse ui component for react","keywords":["react","react-component","react-rc-collapse","rc-collapse","collapse","accordion"],"homepage":"http://github.com/react-component/collapse","bugs":{"url":"http://github.com/react-component/collapse/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/collapse.git"},"license":"MIT","main":"./lib/index","module":"./es/index","typings":"es/index.d.ts","scripts":{"compile":"father build && lessc assets/index.less assets/index.css","coverage":"rc-test --coverage","docs:build":"dumi build","docs:deploy":"npm run docs:build && gh-pages -d dist","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prepare":"husky","now-build":"npm run docs:build","prepublishOnly":"npm run compile && rc-np","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","postpublish":"npm run docs:deploy","start":"dumi dev","test":"rc-test"},"lint-staged":{"**/*.{ts,tsx,js,jsx,json,md}":"npm run prettier"},"dependencies":{"@babel/runtime":"^7.10.1","@rc-component/motion":"^1.1.4","@rc-component/util":"^1.3.0","clsx":"^2.1.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.4","@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^16.3.0","@types/jest":"^29.4.0","@types/node":"^24.2.0","@types/react":"^19.1.4","@types/react-dom":"^19.1.5","@umijs/fabric":"^4.0.0","dumi":"^2.1.1","eslint":"^8.55.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-unicorn":"^49.0.0","father":"^4.1.3","gh-pages":"^6.2.0","husky":"^9.0.0","jest":"^30.0.3","less":"^4.2.0","lint-staged":"^16.0.0","prettier":"^3.0.3","rc-test":"^7.0.14","react":"^19.1.0","react-dom":"^19.1.0","typescript":"^5.0.0"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"gitHead":"41fb47344cd7e2a918551b75e4e7fa07f1e4451d","_id":"@rc-component/collapse@1.2.0","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"integrity":"sha512-ZRYSKSS39qsFx93p26bde7JUZJshsUBEQRlRXPuJYlAiNX0vyYlF5TsAm8JZN3LcF8XvKikdzPbgAtXSbkLUkw==","shasum":"f4f041c0d0e97298b83aad8491fde9fe75b3ac48","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@rc-component/collapse/-/collapse-1.2.0.tgz","fileCount":28,"unpackedSize":45952,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDP/kXRglhkVGBNNYHRlNjiphPOwCQe+3qDEP6lM7Sd9gIgbH7Aj/ECdxV7ncy4Gmhccr9bx/2ohkhY58xkrtGRMDI="}],"size":9229},"_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"},{"name":"anonymous","email":"wasd2144@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/collapse_1.2.0_1767715027542_0.640473781296981"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-06T15:57:07.676Z","publish_time":1767715027676,"_source_registry_name":"default","contributors":[]},"1.3.0":{"_id":"@rc-component/collapse@1.3.0","bugs":{"url":"https://github.com/react-component/collapse/issues"},"dist":{"shasum":"2afd82116c590b07c5b852981e258ca1b4d8eeb3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@rc-component/collapse/-/collapse-1.3.0.tgz","fileCount":30,"integrity":"sha512-1pFv7V080Y2ba+MlW6R5arBbxz4EipC7YZmbyHT9ecfWtb1FPCBz9aOKKuX5cBBqdpM+jGDSNORuW4OM/QWIcg==","signatures":[{"sig":"MEQCICrs1y4E02N3BIP0aerVNc5l+GxmVXoW02MecIbXeHcxAiBrRMaVoBomnECiUFLBC/EPYiNo9UfH7wATEUi9Spaj2w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCvfW0ju2krfN5q6FpJTgf97Ij07poQlKikjWnyDqcEawIgFu8Cp+zojIqP27TccWjR/ycefzgIaTHBWkSsmBMBugI="}],"unpackedSize":51915,"size":10900},"main":"./lib/index","name":"@rc-component/collapse","types":"./es/index.d.ts","module":"./es/index","gitHead":"5b797c44ca9ef19ad317f048ab311b06e855012a","license":"MIT","scripts":{"tsc":"tsc --noEmit","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"rc-test","build":"npm run docs:build","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky","coverage":"rc-test --coverage","prettier":"prettier --write --ignore-unknown .","docs:build":"dumi build","docs:deploy":"gh-pages -d docs-dist","postpublish":"npm run docs:build:gh-pages && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","docs:build:gh-pages":"GH_PAGES=1 npm run docs:build"},"version":"1.3.0","_npmUser":{"name":"anonymous","email":"smith3816@gmail.com"},"homepage":"https://react-component.github.io/collapse","keywords":["react","react-component","react-rc-collapse","rc-collapse","collapse","accordion"],"repository":{"url":"git+https://github.com/react-component/collapse.git","type":"git"},"_npmVersion":"11.19.1","description":"rc-collapse ui component for react","directories":{},"lint-staged":{"*":"prettier --write --ignore-unknown"},"maintainers":[{"name":"anonymous","email":"smith3816@gmail.com"},{"name":"anonymous","email":"afc163@gmail.com"},{"name":"anonymous","email":"1075746765@qq.com"},{"name":"anonymous","email":"scdzwyxst@gmail.com"},{"name":"anonymous","email":"wasd2144@hotmail.com"}],"_nodeVersion":"26.9.0","dependencies":{"clsx":"^2.1.1","@babel/runtime":"^8.0.0","@rc-component/util":"^1.13.0","@rc-component/motion":"^1.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.4.38","jest":"^30.4.2","less":"^4.6.7","husky":"^9.1.7","react":"^19.2.7","eslint":"^10.6.0","father":"^4.6.24","globals":"^17.7.0","rc-test":"^7.1.3","gh-pages":"^6.3.0","prettier":"^3.9.4","react-dom":"^19.2.7","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/jest":"^30.0.0","@types/node":"^26.0.1","lint-staged":"^17.0.8","@types/react":"^19.2.17","@eslint/compat":"^2.1.0","@rc-component/np":"^1.0.4","@types/react-dom":"^19.2.3","typescript-eslint":"^8.62.1","eslint-plugin-jest":"^29.15.4","eslint-plugin-react":"^7.37.5","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.2","eslint-config-prettier":"^10.1.8","@testing-library/jest-dom":"^6.9.1","eslint-plugin-react-hooks":"^7.1.1","@rc-component/father-plugin":"^2.2.0"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/collapse_1.3.0_1793632571110_0.7625273959923711"},"_cnpmcore_publish_time":"2026-11-02T15:16:11.202Z","publish_time":1793632571202,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.3.0"},"name":"@rc-component/collapse","time":{"created":"2025-01-09T08:02:24.952Z","modified":"2026-11-02T15:16:26.634Z","1.0.0":"2025-01-09T08:01:10.507Z","1.0.1":"2025-01-14T08:46:02.688Z","1.1.0":"2025-05-19T03:36:04.646Z","1.1.1":"2025-09-17T07:35:34.282Z","1.1.2":"2025-11-28T03:16:40.172Z","1.2.0":"2026-01-06T15:57:07.676Z","1.3.0":"2026-11-02T15:16:11.202Z"},"readme":"<div align=\"center\">\n  <h1>@rc-component/collapse</h1>\n  <p><sub><a href=\"https://ant.design\"><img alt=\"Ant Design\" height=\"14\" src=\"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg\" style=\"vertical-align: -0.125em;\" /></a> Part of the Ant Design ecosystem.</sub></p>\n  <p>🪗 A flexible collapse and accordion component for React.</p>\n\n  <p>\n    <a href=\"https://npmjs.org/package/@rc-component/collapse\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/@rc-component/collapse.svg?style=flat-square\"></a>\n    <a href=\"https://npmjs.org/package/@rc-component/collapse\"><img alt=\"npm downloads\" src=\"https://img.shields.io/npm/dm/@rc-component/collapse.svg?style=flat-square\"></a>\n    <a href=\"https://github.com/react-component/collapse/actions/workflows/react-component-ci.yml\"><img alt=\"build status\" src=\"https://github.com/react-component/collapse/actions/workflows/react-component-ci.yml/badge.svg\"></a>\n    <a href=\"https://app.codecov.io/gh/react-component/collapse\"><img alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/react-component/collapse/master.svg?style=flat-square\"></a>\n    <a href=\"https://bundlephobia.com/package/@rc-component/collapse\"><img alt=\"bundle size\" src=\"https://img.shields.io/bundlephobia/minzip/@rc-component/collapse?style=flat-square\"></a>\n    <a href=\"https://github.com/umijs/dumi\"><img alt=\"dumi\" src=\"https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\"></a>\n  </p>\n</div>\n\n<p align=\"center\">English | <a href=\"./README.zh-CN.md\">简体中文</a></p>\n\n## Highlights\n\n- Supports accordion and multi-panel collapse modes.\n- Prefer the `items` API for declarative panel configuration.\n- Keeps `Collapse.Panel` for compatibility. It is deprecated and will be removed in v4.\n- Supports custom expand icons, semantic class names, semantic styles, and motion.\n\n## Install\n\n```bash\nnpm install @rc-component/collapse\n```\n\n## Usage\n\n```tsx | pure\nimport Collapse from '@rc-component/collapse';\nimport '@rc-component/collapse/assets/index.css';\n\nexport default function App() {\n  return (\n    <Collapse\n      defaultActiveKey=\"1\"\n      items={[\n        {\n          key: '1',\n          label: 'First panel',\n          children: 'First panel content',\n        },\n        {\n          key: '2',\n          label: 'Second panel',\n          children: 'Second panel content',\n        },\n      ]}\n    />\n  );\n}\n```\n\n## Examples\n\nRun the local dumi site:\n\n```bash\nnpm install\nnpm start\n```\n\nThen open `http://localhost:8000`.\n\n## API\n\n### Collapse\n\n| Property | Description | Type | Default |\n| --- | --- | --- | --- |\n| accordion | Only one panel can be opened at a time | boolean | false |\n| activeKey | Current active panel key | `React.Key \\| React.Key[]` | - |\n| className | Additional class name | string | - |\n| classNames | Semantic class names | `Partial<Record<SemanticName, string>>` | - |\n| collapsible | Specify whether panel trigger area is collapsible | `header` \\| `icon` \\| `disabled` | - |\n| defaultActiveKey | Initial active panel key | `React.Key \\| React.Key[]` | - |\n| destroyOnHidden | Destroy inactive panel content | boolean | false |\n| expandIcon | Custom expand icon | `(props: object) => React.ReactNode` | - |\n| items | Collapse items content | `ItemType[]` | - |\n| openMotion | Custom open motion | `CSSMotionProps` | - |\n| prefixCls | Component class name prefix | string | `rc-collapse` |\n| style | Inline style | object | - |\n| styles | Semantic styles | `Partial<Record<SemanticName, React.CSSProperties>>` | - |\n| onChange | Callback when active panels change | `(key: React.Key[]) => void` | - |\n\n### ItemType\n\n| Property | Description | Type | Default |\n| --- | --- | --- | --- |\n| key | Panel key | `React.Key` | - |\n| label | Panel header content | `React.ReactNode` | - |\n| ref | Panel DOM ref | `React.RefObject<HTMLDivElement>` | - |\n| children | Panel body content | `React.ReactNode` | - |\n| className | Additional panel class name | string | - |\n| classNames | Semantic class names | `Partial<Record<SemanticName, string>>` | - |\n| collapsible | Specify whether the panel is collapsible | `header` \\| `icon` \\| `disabled` | - |\n| destroyOnHidden | Destroy inactive panel content | boolean | false |\n| extra | Extra content in the panel header | `React.ReactNode` | - |\n| forceRender | Render panel content before it is opened | boolean | false |\n| showArrow | Show arrow beside header | boolean | true |\n| style | Inline panel style | object | - |\n| styles | Semantic styles | `Partial<Record<SemanticName, React.CSSProperties>>` | - |\n| onItemClick | Callback when this panel is clicked | `(panelKey: React.Key) => void` | - |\n\n### Collapse.Panel\n\n`Collapse.Panel` is deprecated. Use `items` instead.\n\n## Development\n\n```bash\nnpm install\nnpm start\n```\n\nThe dumi site runs at `http://localhost:8000` by default.\n\n```bash\nnpm test\nnpm run tsc\nnpm run lint\nnpm run compile\nnpm run build\n```\n\n## Release\n\n```bash\nnpm run prepublishOnly\n```\n\nThe release flow is handled by `@rc-component/np` through the `rc-np` command after the package build.\n\n## License\n\n@rc-component/collapse is released under the [MIT](./LICENSE) license.","users":{}}