{"_id":"@rc-component/segmented","_rev":"9-fae2ebc65ba1e8431c8e12440ea9b7f6","name":"@rc-component/segmented","dist-tags":{"latest":"1.4.0"},"versions":{"1.0.0":{"name":"@rc-component/segmented","version":"1.0.0","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"license":"MIT","_id":"@rc-component/segmented@1.0.0","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"}],"homepage":"https://react-component.github.io/segmented","bugs":{"url":"http://github.com/react-component/segmented/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"3357474a89a78d1d1406491f77f19837b59c82aa","tarball":"https://registry.npmjs.org/@rc-component/segmented/-/segmented-1.0.0.tgz","fileCount":14,"integrity":"sha512-1gVFEj74jD1uWZ5Oln4Ml0emQrIExH6DnQKozfDyfmLI4r/xa4Vwig7rH4B7GLW8PTGuG8K1AKLIGAEn+VqKcg==","signatures":[{"sig":"MEUCIQCrQAK1Piu4t2Tf5AGUFjDap+/Mi3NUfjJVEyu1n0hXuQIgBx1doENRVoIXM6rwiGrR3RYn/09wmzU+6JG/f+Fb0V0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41280},"main":"./lib/index","tnpm":{"mode":"npm"},"types":"./es/index.d.ts","module":"./es/index","gitHead":"bdc6c153a4c7bcd582e09373777e8e1b010cb09e","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"jest","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky install","coverage":"jest --coverage","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","docs:build":"dumi build","type:check":"tsc --noEmit","docs:deploy":"gh-pages -d .doc","pretty-quick":"pretty-quick","prepublishOnly":"npm run compile"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/segmented.git","type":"git"},"_npmVersion":"10.8.2","description":"React segmented controls used in ant.design","directories":{},"_nodeVersion":"22.5.1","dependencies":{"rc-motion":"^2.4.4","classnames":"^2.2.1","@babel/runtime":"^7.11.1","@rc-component/util":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"np":"^7.0.0","dumi":"^2.1.2","jest":"^29.3.1","less":"^3.10.3","husky":"^8.0.0","react":"^18.0.0","eslint":"^7.0.0","father":"^4.1.1","ts-node":"^10.9.1","cssstyle":"^2.3.0","gh-pages":"^3.1.0","prettier":"^2.0.5","coveralls":"^3.0.6","cross-env":"^7.0.3","react-dom":"^18.0.0","typescript":"^5.3.0","@types/jest":"^29.2.4","@umijs/test":"^4.0.36","@types/react":"^18.3.11","pretty-quick":"^3.0.0","@umijs/fabric":"^3.0.0","@types/react-dom":"^18.3.1","@types/classnames":"^2.2.9","@testing-library/react":"^14.2.1","jest-environment-jsdom":"^29.3.1","@testing-library/jest-dom":"^5.16.5","@rc-component/father-plugin":"^2.0.1","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/segmented_1.0.0_1737015059072_0.22329329800128161","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@rc-component/segmented","version":"1.1.0","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"license":"MIT","_id":"@rc-component/segmented@1.1.0","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"}],"homepage":"https://react-component.github.io/segmented","bugs":{"url":"http://github.com/react-component/segmented/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"18769d1218b6d0f54d1f21176df4b0119337412c","tarball":"https://registry.npmjs.org/@rc-component/segmented/-/segmented-1.1.0.tgz","fileCount":14,"integrity":"sha512-qQ+hEjxIj7x8eliWF6lja1G2hvEg4soX//yck3q/Ji3oOqTgWR07p/CPqGrXZ58IlvX1E03M2q/kqcvBnkmWwQ==","signatures":[{"sig":"MEUCIFUk+ndU6bt6Ewh/NzTTD0jZ2qcW7TKHWBiYKOaMPENVAiEAlmBMW/tnCFbRYXj98FX9lYp3Qi/VGauxOEsIQENR1x8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41338},"main":"./lib/index","tnpm":{"mode":"npm"},"types":"./es/index.d.ts","module":"./es/index","gitHead":"17b4ba309c51068888bcf511bc52e564fbfe3df4","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"jest","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky install","coverage":"jest --coverage","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","docs:build":"dumi build","type:check":"tsc --noEmit","docs:deploy":"gh-pages -d .doc","pretty-quick":"pretty-quick","prepublishOnly":"npm run compile && rc-np"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/segmented.git","type":"git"},"_npmVersion":"10.8.2","description":"React segmented controls used in ant.design","directories":{},"_nodeVersion":"22.5.1","dependencies":{"rc-motion":"^2.4.4","classnames":"^2.2.1","@babel/runtime":"^7.11.1","@rc-component/util":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.1.2","jest":"^29.3.1","less":"^3.10.3","husky":"^8.0.0","react":"^18.0.0","eslint":"^7.0.0","father":"^4.1.1","ts-node":"^10.9.1","cssstyle":"^2.3.0","gh-pages":"^3.1.0","prettier":"^2.0.5","coveralls":"^3.0.6","cross-env":"^7.0.3","react-dom":"^18.0.0","typescript":"^5.3.0","@types/jest":"^29.2.4","@umijs/test":"^4.0.36","@types/react":"^18.3.11","pretty-quick":"^3.0.0","@umijs/fabric":"^3.0.0","@rc-component/np":"^1.0.0","@types/react-dom":"^18.3.1","@types/classnames":"^2.2.9","@testing-library/react":"^14.2.1","jest-environment-jsdom":"^29.3.1","@testing-library/jest-dom":"^5.16.5","@rc-component/father-plugin":"^2.0.1","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/segmented_1.1.0_1737712509045_0.20260942105851698","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@rc-component/segmented","version":"1.2.0","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"license":"MIT","_id":"@rc-component/segmented@1.2.0","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"}],"homepage":"https://react-component.github.io/segmented","bugs":{"url":"http://github.com/react-component/segmented/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"5fd5d026f0de061eea2dc52adfe2fccd9b6d4eb4","tarball":"https://registry.npmjs.org/@rc-component/segmented/-/segmented-1.2.0.tgz","fileCount":14,"integrity":"sha512-K4K98YD/9bHC+tut5la0lvwq7BBby5uNo+A96E4ihk5uUxUg5n/D9A/1dKS4zwmpn80l5sBpn3Lzv3HvelS4VA==","signatures":[{"sig":"MEQCIC//bC/fBx+WBQn3h5PVSpy0Mgpc5UR73y03V2RgQsgKAiA0OKPfrfGbtSHcVcsm0HS7a/m+TMmucdHvpw0kk23zgA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42494},"main":"./lib/index","tnpm":{"mode":"npm"},"types":"./es/index.d.ts","module":"./es/index","gitHead":"c578293caf02bd9e00f36c8722e4957902a01006","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"jest","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky install","coverage":"jest --coverage","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","docs:build":"dumi build","type:check":"tsc --noEmit","docs:deploy":"gh-pages -d .doc","pretty-quick":"pretty-quick","prepublishOnly":"npm run compile && rc-np"},"_npmUser":{"name":"zombiej","actor":{"name":"zombiej","type":"user","email":"smith3816@gmail.com"},"email":"smith3816@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/segmented.git","type":"git"},"_npmVersion":"10.9.2","description":"React segmented controls used in ant.design","directories":{},"_nodeVersion":"22.15.1","dependencies":{"rc-motion":"^2.4.4","classnames":"^2.2.1","@babel/runtime":"^7.11.1","@rc-component/util":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.1.2","jest":"^29.3.1","less":"^3.10.3","husky":"^8.0.0","react":"^18.0.0","eslint":"^7.0.0","father":"^4.1.1","ts-node":"^10.9.1","cssstyle":"^2.3.0","gh-pages":"^3.1.0","prettier":"^2.0.5","coveralls":"^3.0.6","cross-env":"^7.0.3","react-dom":"^18.0.0","typescript":"^5.3.0","@types/jest":"^29.2.4","@umijs/test":"^4.0.36","@types/react":"^18.3.11","pretty-quick":"^3.0.0","@umijs/fabric":"^3.0.0","@rc-component/np":"^1.0.0","@types/react-dom":"^18.3.1","@types/classnames":"^2.2.9","@testing-library/react":"^14.2.1","jest-environment-jsdom":"^29.3.1","@testing-library/jest-dom":"^5.16.5","@rc-component/father-plugin":"^2.0.1","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/segmented_1.2.0_1751445429584_0.4385155284919804","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@rc-component/segmented","version":"1.2.1","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"license":"MIT","_id":"@rc-component/segmented@1.2.1","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"}],"homepage":"https://react-component.github.io/segmented","bugs":{"url":"http://github.com/react-component/segmented/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"593aca445e24cf22ae1d6a3c04cf9a45b5e1a1be","tarball":"https://registry.npmjs.org/@rc-component/segmented/-/segmented-1.2.1.tgz","fileCount":14,"integrity":"sha512-1VopCYyugbn7xi0awKE5kRKfnaYqaGqHGNPYuFnLVVJgWSl3x5Rtk7BCfaUJfRKuEEFQdZbf85UDqKfByGrpmw==","signatures":[{"sig":"MEYCIQCk/bREZqcFbJEC8u8LWMkU9uToNJ8xqOD4eSGIH2HnegIhANqjVOY4NNlY+TpubD9kNtxO8qqqycMR5OWf+4ylOw+A","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42222},"main":"./lib/index","tnpm":{"mode":"npm"},"types":"./es/index.d.ts","module":"./es/index","gitHead":"13dcd71b941c0ed37cdbcf1a087170af94f4838c","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"jest","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky install","coverage":"jest --coverage","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","docs:build":"dumi build","type:check":"tsc --noEmit","docs:deploy":"gh-pages -d .doc","pretty-quick":"pretty-quick","prepublishOnly":"npm run compile && rc-np"},"_npmUser":{"name":"zombiej","actor":{"name":"zombiej","type":"user","email":"smith3816@gmail.com"},"email":"smith3816@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/segmented.git","type":"git"},"_npmVersion":"10.9.2","description":"React segmented controls used in ant.design","directories":{},"_nodeVersion":"22.15.1","dependencies":{"rc-motion":"^2.4.4","classnames":"^2.2.1","@babel/runtime":"^7.11.1","@rc-component/util":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.1.2","jest":"^29.3.1","less":"^3.10.3","husky":"^8.0.0","react":"^18.0.0","eslint":"^7.0.0","father":"^4.1.1","ts-node":"^10.9.1","cssstyle":"^2.3.0","gh-pages":"^3.1.0","prettier":"^2.0.5","coveralls":"^3.0.6","cross-env":"^7.0.3","react-dom":"^18.0.0","typescript":"^5.3.0","@types/jest":"^29.2.4","@umijs/test":"^4.0.36","@types/react":"^18.3.11","pretty-quick":"^3.0.0","@umijs/fabric":"^3.0.0","@rc-component/np":"^1.0.0","@types/react-dom":"^18.3.1","@types/classnames":"^2.2.9","@testing-library/react":"^14.2.1","jest-environment-jsdom":"^29.3.1","@testing-library/jest-dom":"^5.16.5","@rc-component/father-plugin":"^2.0.1","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/segmented_1.2.1_1751515072739_0.3188225838146175","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@rc-component/segmented","version":"1.2.2","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"license":"MIT","_id":"@rc-component/segmented@1.2.2","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"},{"name":"chenshuai2144","email":"wasd2144@hotmail.com"}],"homepage":"https://react-component.github.io/segmented","bugs":{"url":"http://github.com/react-component/segmented/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"f95926340587f170551bfdade9c618f28c6bbd2e","tarball":"https://registry.npmjs.org/@rc-component/segmented/-/segmented-1.2.2.tgz","fileCount":14,"integrity":"sha512-VgGRpsYEZ0nOmC/uOFLM0DuoglYFBtcR9T4htCU/3tsmiG3zM9D1I6pU7gaqebPI2eecibxL1W1aGuARsgMWHQ==","signatures":[{"sig":"MEYCIQDailMNl5CQxz5xtMmjrKc8J+ATlSvV9v7GoEQ5uze8hwIhAINZe2NRIv8KizF7HlOaDY4AjSv8CXhw2sGC5/KDibvJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42222},"main":"./lib/index","tnpm":{"mode":"npm"},"types":"./es/index.d.ts","module":"./es/index","gitHead":"46aa19e116405622c4dabfc50c2fc2b102969a96","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"jest","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky install","coverage":"jest --coverage","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","docs:build":"dumi build","type:check":"tsc --noEmit","docs:deploy":"gh-pages -d .doc","pretty-quick":"pretty-quick","prepublishOnly":"npm run compile && rc-np"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/segmented.git","type":"git"},"_npmVersion":"10.9.2","description":"React segmented controls used in ant.design","directories":{},"_nodeVersion":"22.15.1","dependencies":{"rc-motion":"^2.4.4","classnames":"^2.2.1","@babel/runtime":"^7.11.1","@rc-component/util":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.1.2","jest":"^29.3.1","less":"^3.10.3","husky":"^8.0.0","react":"^18.0.0","eslint":"^7.0.0","father":"^4.1.1","ts-node":"^10.9.1","cssstyle":"^2.3.0","gh-pages":"^3.1.0","prettier":"^2.0.5","coveralls":"^3.0.6","cross-env":"^7.0.3","react-dom":"^18.0.0","typescript":"^5.3.0","@types/jest":"^29.2.4","@umijs/test":"^4.0.36","@types/react":"^18.3.11","pretty-quick":"^3.0.0","@umijs/fabric":"^3.0.0","@rc-component/np":"^1.0.0","@types/react-dom":"^18.3.1","@types/classnames":"^2.2.9","@testing-library/react":"^14.2.1","jest-environment-jsdom":"^29.3.1","@testing-library/jest-dom":"^5.16.5","@rc-component/father-plugin":"^2.0.1","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/segmented_1.2.2_1757494083378_0.47275362008847455","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"name":"@rc-component/segmented","version":"1.2.3","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"license":"MIT","_id":"@rc-component/segmented@1.2.3","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"},{"name":"chenshuai2144","email":"wasd2144@hotmail.com"}],"homepage":"https://react-component.github.io/segmented","bugs":{"url":"http://github.com/react-component/segmented/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"3a1b8d5daa2ecba6876062abb01424bbd512ef79","tarball":"https://registry.npmjs.org/@rc-component/segmented/-/segmented-1.2.3.tgz","fileCount":14,"integrity":"sha512-L7G4S6zUpqHclOXK0wKKN2/VyqHa9tfDNxkoFjWOTPtQ0ROFaBwZhbf1+9sdZfIFkxJkpcShAmDOMEIBaFFqkw==","signatures":[{"sig":"MEUCIH320huamKjCVkNlnm+LYzcJM4QOCRln8DBuTfRvUE++AiEArclduhgQp9kc6U3x2vWSryqVSOQKtI5GYl0tT3bUDIc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42186},"main":"./lib/index","tnpm":{"mode":"npm"},"types":"./es/index.d.ts","module":"./es/index","gitHead":"6fc03b2582e70eb20bf86de93535d68e5de883bf","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"jest","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky install","coverage":"jest --coverage","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","docs:build":"dumi build","type:check":"tsc --noEmit","docs:deploy":"gh-pages -d .doc","pretty-quick":"pretty-quick","prepublishOnly":"npm run compile && rc-np"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/segmented.git","type":"git"},"_npmVersion":"11.6.0","description":"React segmented controls used in ant.design","directories":{},"_nodeVersion":"22.8.0","dependencies":{"clsx":"^2.1.1","@babel/runtime":"^7.11.1","@rc-component/util":"^1.3.0","@rc-component/motion":"^1.1.4"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.1.2","jest":"^29.3.1","less":"^3.10.3","husky":"^8.0.0","react":"^18.0.0","eslint":"^7.0.0","father":"^4.1.1","ts-node":"^10.9.1","gh-pages":"^3.1.0","prettier":"^2.0.5","react-dom":"^18.0.0","typescript":"^5.3.0","@types/jest":"^29.2.4","@types/node":"^24.5.2","@umijs/test":"^4.0.36","@types/react":"^18.3.11","pretty-quick":"^3.0.0","@umijs/fabric":"^3.0.0","@rc-component/np":"^1.0.0","@types/react-dom":"^18.3.1","@testing-library/react":"^14.2.1","jest-environment-jsdom":"^29.3.1","@testing-library/jest-dom":"^5.16.5","@rc-component/father-plugin":"^2.0.1","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/segmented_1.2.3_1764042677056_0.6777861327272314","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@rc-component/segmented","version":"1.3.0","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"license":"MIT","_id":"@rc-component/segmented@1.3.0","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"},{"name":"chenshuai2144","email":"wasd2144@hotmail.com"}],"homepage":"https://react-component.github.io/segmented","bugs":{"url":"http://github.com/react-component/segmented/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"46f5e3f34630a246e02fe20fd501ed448eb64c17","tarball":"https://registry.npmjs.org/@rc-component/segmented/-/segmented-1.3.0.tgz","fileCount":14,"integrity":"sha512-5J/bJ01mbDnoA6P/FW8SxUvKn+OgUSTZJPzCNnTBntG50tzoP7DydGhqxp7ggZXZls7me3mc2EQDXakU3iTVFg==","signatures":[{"sig":"MEUCIQC0UuWRu/eOyRKj8XHrqZJUABwKXt7RcGrR3U/ThvygiAIgNS3CWKiCt5L/q4pL+X12Z5q1MXae14ii3JkGufcNzSM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42262},"main":"./lib/index","tnpm":{"mode":"npm"},"types":"./es/index.d.ts","module":"./es/index","gitHead":"0a35404d91ac9a5090b0947c44bcc6787174019d","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"jest","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky install","coverage":"jest --coverage","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","docs:build":"dumi build","type:check":"tsc --noEmit","docs:deploy":"gh-pages -d .doc","pretty-quick":"pretty-quick","prepublishOnly":"npm run compile && rc-np"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/segmented.git","type":"git"},"_npmVersion":"11.6.0","description":"React segmented controls used in ant.design","directories":{},"_nodeVersion":"22.8.0","dependencies":{"clsx":"^2.1.1","@babel/runtime":"^7.11.1","@rc-component/util":"^1.3.0","@rc-component/motion":"^1.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"dumi":"^2.1.2","jest":"^29.3.1","less":"^3.10.3","husky":"^8.0.0","react":"^18.0.0","eslint":"^7.0.0","father":"^4.1.1","ts-node":"^10.9.1","gh-pages":"^3.1.0","prettier":"^2.0.5","react-dom":"^18.0.0","typescript":"^5.3.0","@types/jest":"^29.2.4","@types/node":"^24.5.2","@umijs/test":"^4.0.36","@types/react":"^18.3.11","pretty-quick":"^3.0.0","@umijs/fabric":"^3.0.0","@rc-component/np":"^1.0.0","@types/react-dom":"^18.3.1","@testing-library/react":"^14.2.1","jest-environment-jsdom":"^29.3.1","@testing-library/jest-dom":"^6.9.1","@rc-component/father-plugin":"^2.0.1","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/segmented_1.3.0_1766030537625_0.002121856865509253","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"_id":"@rc-component/segmented@1.4.0","bugs":{"url":"https://github.com/react-component/segmented/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"1d9f051dbb74232986bdb7de39d1708e0774622b","tarball":"https://registry.npmjs.org/@rc-component/segmented/-/segmented-1.4.0.tgz","fileCount":16,"integrity":"sha512-NZlpKGSplOYlmF5ukUF1fCLr0ns5WfjNoqMlMkf4AHP0iu90wyiP7hn2qZKRHEuRlG4CvEEz/lF9qRiYnLTofQ==","signatures":[{"sig":"MEUCIQC0PhIyejdK5lDOyKxAHFe19leREIt5AWkwTZ5qdY+OWAIgYRyPIDhMPFAoc+UpaLRogKYBZ5i3+1lbSNmm5zkIt48=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHyTmK0xonqSR9ikuR29HsROAc1rsFZGdeb3t0eX4zurAiAqHxubGoMrU1nvtqHuxkzLgk4SGnH10jQgRs50NC0tPQ=="}],"unpackedSize":50968},"main":"./lib/index","name":"@rc-component/segmented","tnpm":{"mode":"npm"},"types":"./es/index.d.ts","module":"./es/index","gitHead":"8cbec0b3a0a4097b683a55b39b565ea1e249b47f","license":"MIT","scripts":{"tsc":"tsc --noEmit","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"jest","build":"npm run compile && npm run docs:build","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky","coverage":"jest --coverage","gh-pages":"npm run compile && cross-env GH_PAGES=1 npm run docs:build && npm run docs:deploy","prettier":"prettier --write --ignore-unknown .","docs:build":"dumi build","type:check":"tsc --noEmit","docs:deploy":"gh-pages -d docs-dist","prepublishOnly":"npm run compile && rc-np"},"version":"1.4.0","_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"homepage":"https://react-component.github.io/segmented","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"repository":{"url":"git+https://github.com/react-component/segmented.git","type":"git"},"_npmVersion":"11.17.0","description":"React segmented controls used in ant.design","directories":{},"lint-staged":{"*":"prettier --write --ignore-unknown"},"maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"},{"name":"chenshuai2144","email":"wasd2144@hotmail.com"}],"_nodeVersion":"24.19.0","dependencies":{"clsx":"^2.1.1","@babel/runtime":"^8.0.0","@rc-component/util":"^1.11.1","@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","ts-node":"^10.9.1","gh-pages":"^6.3.0","prettier":"^3.9.4","cross-env":"^10.1.0","react-dom":"^19.2.7","@eslint/js":"^10.0.1","typescript":"^6.0.3","@types/jest":"^30.0.0","@types/node":"^26.0.1","@umijs/test":"^4.6.68","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","jest-environment-jsdom":"^30.4.1","@testing-library/jest-dom":"^6.9.1","eslint-plugin-react-hooks":"^7.1.1","@rc-component/father-plugin":"^2.2.0","@testing-library/user-event":"^14.6.1"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/segmented_1.4.0_1787035922176_0.8993039181397422"}}},"time":{"created":"2025-01-16T08:10:58.928Z","modified":"2026-08-18T06:52:02.515Z","1.0.0":"2025-01-16T08:10:59.254Z","1.1.0":"2025-01-24T09:55:09.202Z","1.2.0":"2025-07-02T08:37:09.742Z","1.2.1":"2025-07-03T03:57:52.964Z","1.2.2":"2025-09-10T08:48:03.545Z","1.2.3":"2025-11-25T03:51:17.322Z","1.3.0":"2025-12-18T04:02:17.770Z","1.4.0":"2026-08-18T06:52:02.277Z"},"bugs":{"url":"https://github.com/react-component/segmented/issues"},"license":"MIT","homepage":"https://react-component.github.io/segmented","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"repository":{"url":"git+https://github.com/react-component/segmented.git","type":"git"},"description":"React segmented controls used in ant.design","maintainers":[{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"},{"name":"peachscript","email":"scdzwyxst@gmail.com"},{"name":"chenshuai2144","email":"wasd2144@hotmail.com"}],"readme":"<div align=\"center\">\n  <h1>@rc-component/segmented</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> Ant Design 生态的一部分。</sub></p>\n  <p>🧩 React 分段控制器组件。</p>\n\n  <p>\n    <a href=\"https://npmjs.org/package/@rc-component/segmented\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/@rc-component/segmented.svg?style=flat-square\"></a>\n    <a href=\"https://npmjs.org/package/@rc-component/segmented\"><img alt=\"npm downloads\" src=\"https://img.shields.io/npm/dm/@rc-component/segmented.svg?style=flat-square\"></a>\n    <a href=\"https://github.com/react-component/segmented/actions/workflows/react-component-ci.yml\"><img alt=\"build status\" src=\"https://github.com/react-component/segmented/actions/workflows/react-component-ci.yml/badge.svg\"></a>\n    <a href=\"https://app.codecov.io/gh/react-component/segmented\"><img alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/react-component/segmented/master.svg?style=flat-square\"></a>\n    <a href=\"https://bundlephobia.com/package/@rc-component/segmented\"><img alt=\"bundle size\" src=\"https://img.shields.io/bundlephobia/minzip/@rc-component/segmented?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\"><a href=\"./README.md\">English</a> | 简体中文</p>\n\n## 特性\n\n- 支持字符串、数字和带标签的选项记录。\n- 支持受控和非受控的取值流程。\n- 包括键盘导航、RTL、垂直布局和禁用选项。\n- 引入用于项目和标签定制的语义 `classNames` 和 `styles` 插槽。\n\n## 安装\n\n```bash\nnpm install @rc-component/segmented\n```\n\n## 使用\n\n```tsx pure\nimport Segmented from '@rc-component/segmented';\nimport '@rc-component/segmented/assets/index.css';\n\nexport default () => (\n  <Segmented\n    options={['Daily', 'Weekly', 'Monthly']}\n    defaultValue=\"Weekly\"\n    onChange={(value) => {\n      console.log(value);\n    }}\n  />\n);\n```\n\n在线预览：https://segmented.react-component.vercel.app/\n\n## 示例\n\n运行本地 dumi 站点：\n\n```bash\nnpm install\nnpm start\n```\n\n然后打开 `http://localhost:8000`。\n\n## API\n\n### Segmented\n\n| 名称           | 类型                                                                     | 默认值           | 说明                         |\n| -------------- | ------------------------------------------------------------------------ | ---------------- | ---------------------------- |\n| `className`    | string                                                                   | `''`             | 附加 className。             |\n| `classNames`   | Partial<Record<'item' \\| 'label', string>>                               | -                | 内部插槽的语义化 className。 |\n| `defaultValue` | string \\| number                                                         | 第一个选项值     | 初始选中值。                 |\n| `direction`    | `'ltr'` \\| `'rtl'`                                                       | -                | 布局方向。                   |\n| `disabled`     | boolean                                                                  | false            | 禁用所有选项。               |\n| `itemRender`   | `(node: ReactNode, info: { item: SegmentedLabeledOption }) => ReactNode` | identity         | 自定义选项项渲染器。         |\n| `motionName`   | string                                                                   | `'thumb-motion'` | 活动拇指的动画 className。   |\n| `name`         | string                                                                   | -                | 单选组名称。                 |\n| `onChange`     | `(value: string \\| number) => void`                                      | -                | 当所选值更改时触发。         |\n| `options`      | Array<string \\| number \\| SegmentedLabeledOption>                        | -                | 可用选项，必填。             |\n| `prefixCls`    | string                                                                   | `'rc-segmented'` | className 前缀。             |\n| `style`        | React.CSSProperties                                                      | -                | 根样式。                     |\n| `styles`       | Partial<Record<'item' \\| 'label', React.CSSProperties>>                  | -                | 内部插槽的语义化样式。       |\n| `value`        | string \\| number                                                         | -                | 受控选中值。                 |\n| `vertical`     | boolean                                                                  | false            | 垂直渲染选项。               |\n\n其他合法的 `div` 属性会透传给根元素。\n\n### SegmentedLabeledOption\n\n| 名称        | 类型             | 默认值   | 说明             |\n| ----------- | ---------------- | -------- | ---------------- |\n| `className` | string           | -        | 选项 className。 |\n| `disabled`  | boolean          | false    | 禁用此选项。     |\n| `label`     | ReactNode        | -        | 展示的选项内容。 |\n| `title`     | string           | 源自标签 | 标签的原生标题。 |\n| `value`     | string \\| number | -        | 选项值。         |\n\n## 本地开发\n\n```bash\nnpm install\nnpm start\nnpm test\nnpm run tsc\nnpm run compile\nnpm run build\n```\n\ndumi 站点默认运行在 `http://localhost:8000`。\n\n## 发布\n\n```bash\nnpm run prepublishOnly\n```\n\n包构建完成后，发布流程由 `@rc-component/np` 通过 `rc-np` 命令处理。\n\n## 许可证\n\n@rc-component/segmented 基于 [MIT](./LICENSE) 许可证发布。\n","readmeFilename":"README.zh-CN.md"}