{"name":"rc-checkbox","version":"3.0.0","description":"checkbox ui component for react","keywords":["react","react-component","react-checkbox","checkbox"],"homepage":"http://github.com/react-component/checkbox","bugs":{"url":"http://github.com/react-component/checkbox/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/checkbox.git"},"license":"MIT","main":"lib/index.js","module":"es/index.js","typings":"es/index.d.ts","scripts":{"build":"dumi build","compile":"father build && lessc assets/index.less assets/index.css","coverage":"jest --coverage","gh-pages":"npm run build && father doc deploy -d .docs","lint":"eslint . --ext='jsx'","prepare":"husky install && dumi setup","prepublishOnly":"npm run compile && np --yolo --no-publish","start":"dumi dev","test":"jest"},"lint-staged":{"*.{js,jsx,less,md,json}":["prettier --write"],"*.ts?(x)":["prettier --parser=typescript --write"]},"dependencies":{"@babel/runtime":"^7.10.1","classnames":"^2.3.2","rc-util":"^5.25.2"},"devDependencies":{"@rc-component/father-plugin":"^1.0.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0 ","@testing-library/user-event":"^14.4.3","@types/classnames":"^2.3.1","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/react-dom":"^18.0.9","@umijs/fabric":"^3.0.0","@umijs/test":"^4.0.34","coveralls":"^3.0.6","dumi":"^2.0.12","eslint":"^7.0.0","father":"^4.1.1","husky":"8.0.2","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","less":"^3.11.1","lint-staged":"^13.1.0","np":"^6.2.3","react":"^18.2.0","react-dom":"^18.2.0","ts-node":"^10.9.1","typescript":"^4.9.4"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"gitHead":"ac97e7ea17093ed08801cf8f44799e170801ef77","_id":"rc-checkbox@3.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-tOEs1+wWDUei7DuP2EsJCZfam5vxMjKTCGcZdXVgsiOcNszc41Esycbo31P0/jFwUAPmd5oPYFWkcnFUCTLZxA==","shasum":"6b426d16c7d2ed9fee219a1dfb14d2c504a45300","tarball":"http://registry-npm.ywwl.com/rc-checkbox/download/rc-checkbox-3.0.0.tgz","fileCount":8,"unpackedSize":20548,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH7MPx8/30SAzoeipc92IAEIVSIOK2gRUXVlVQgJqceoAiEA+V3dD3ckzUIV7Wyy8LDMlRMIXHjCiMqTE5YYP0xoRCI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBylpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTKQ//bSF2QOl0MZf8WplzsoVEJ3mFMwM1m5BrUV13x13NsXnwl1LU\r\nSZd/jC8c23xBJrWPyoPrUh6mfYRIU+TcSSLhWP08GEBdnQB5lhO1lDghHDaQ\r\n8mNXGk+sNTb2R4P+eSUfOex6/xKMUvGw0jVuWvd4zfAdFXwzA3VniiGPqKn7\r\nT1wzKP24GjJqo+KojCvtehXBo9hUdiWmReJr8QJVGtx/r97HgtJcuwj30PT+\r\nhyV8b7E1ljCst2Z6+ZWy/tPgPqJ+8jVCzhRVKIJ8q9s5xKWo3IE4sUELrrNK\r\ncNkqyr3vDQAEMDAL3/WuZDs7UsJIzKf0zm644GvHNeIs4s1lO1diVnf7Oop7\r\nEW3sekDl2hPBKzF8QMfDfybcGBpkx+FruuCOaUJkg8u6/RiLtdv2NY7R9l5D\r\nx/5m7bVTrtq9fbh2emXjlfVRy6AKkoIEew+uHfixBtt3jVWUWUxLQuwVhhwe\r\nufhQMTJ+MpG0TVjN29Byd20g6bUMa0HS4cA0zo48Q8xYmPjXAocjgvY0Vee3\r\njp6CA+Ft0wmmq0HMecCRxN+dwUEaix0owf46Rzh/qLgdMJ4dTHZWpJZqZdtN\r\ndipGKzF4feROwmP8GLrfUiqtzI//UvMz7htxifgzNle9oMs5eludwF8RfGy4\r\nGbAFp9xWVKbPUx6D3lyoVX9H+23McgGlAdY=\r\n=ocNk\r\n-----END PGP SIGNATURE-----\r\n","size":5411,"noattachment":false,"key":"/rc-checkbox/-/rc-checkbox-3.0.0.tgz"},"_npmUser":{"name":"madccc","email":"1075746765@qq.com"},"directories":{},"maintainers":[{"name":"afc163","email":"afc163@gmail.com"},{"name":"yiminghe","email":"yiminghe@gmail.com"},{"name":"raohai","email":"surgesoft@gmail.com"},{"name":"madccc","email":"1075746765@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rc-checkbox_3.0.0_1678190953643_0.10017723223900399"},"_hasShrinkwrap":false,"readme":"# rc-checkbox\n\n---\n\nCheckbox ui component for react.\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[![bundle size][bundlephobia-image]][bundlephobia-url]\n[![dumi][dumi-image]][dumi-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-checkbox.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-checkbox\n[travis-image]: https://img.shields.io/travis/react-component/checkbox/master?style=flat-square\n[travis-url]: https://travis-ci.com/react-component/checkbox\n[github-actions-image]: https://github.com/react-component/checkbox/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/checkbox/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/checkbox/master.svg?style=flat-square\n[codecov-url]: https://app.codecov.io/gh/react-component/checkbox\n[david-url]: https://david-dm.org/react-component/checkbox\n[david-image]: https://david-dm.org/react-component/checkbox/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/checkbox?type=dev\n[david-dev-image]: https://david-dm.org/react-component/checkbox/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/rc-checkbox.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-checkbox\n[bundlephobia-url]: https://bundlephobia.com/package/rc-checkbox\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-checkbox\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-checkbox](https://nodei.co/npm/rc-checkbox.png)](https://npmjs.org/package/rc-checkbox)\n\n## Usage\n\n```js\nimport checkbox from 'rc-checkbox';\n\nexport default () => <checkbox />;\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<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>prefixCls</td>\n      <td>String</td>\n      <td>rc-checkbox</td>\n      <td></td>\n    </tr>\n    <tr>\n      <td>className</td>\n      <td>String</td>\n      <td>''</td>\n      <td>additional class name of root node</td>\n    </tr>\n      <tr>\n      <td>name</td>\n      <td>String</td>\n      <td></td>\n      <td>same with native input checkbox</td>\n    </tr>\n    <tr>\n      <td>checked</td>\n      <td>enum: 0,1,2</td>\n      <td></td>\n      <td></td>\n    </tr>\n    <tr>\n      <td>defaultChecked</td>\n      <td>enum: 0,1,2</td>\n      <td>0</td>\n      <td>same with native input checkbox</td>\n    <tr>\n      <td>onChange</td>\n      <td>Function(e:Event, checked:Number)</td>\n      <td></td>\n      <td>called when checkbox is changed. e is native event, checked is original checked state.</td>\n    </tr>\n  </tbody>\n</table>\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\nOnline demo: http://react-component.github.io/checkbox/\n\n## License\n\nrc-checkbox is released under the MIT license.\n","publish_time":1678190953820,"_cnpm_publish_time":1678190953820,"dist-tags":{"latest":"3.5.0"}}