{"name":"rc-checkbox","version":"2.1.5","description":"checkbox ui component for react","keywords":["react","react-component","react-checkbox","checkbox"],"main":"lib/index","module":"es/index","files":["lib","es","assets/*.css"],"homepage":"http://github.com/react-component/checkbox","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/checkbox.git"},"bugs":{"url":"http://github.com/react-component/checkbox/issues"},"licenses":"MIT","config":{"port":8001},"scripts":{"build":"rc-tools run build","gh-pages":"rc-tools run gh-pages","start":"rc-tools run server","compile":"rc-tools run compile --babel-runtime","pub":"rc-tools run pub --babel-runtime","lint":"rc-tools run lint","test":"jest","coverage":"jest --coverage && cat ./coverage/lcov.info | coveralls","prepublish":"rc-tools run guard"},"jest":{"setupFiles":["./tests/setup.js"],"collectCoverageFrom":["src/*"],"transform":{"\\.tsx?$":"./node_modules/rc-tools/scripts/jestPreprocessor.js","\\.jsx?$":"./node_modules/rc-tools/scripts/jestPreprocessor.js"}},"dependencies":{"babel-runtime":"^6.23.0","classnames":"2.x","prop-types":"15.x","rc-util":"^4.0.4"},"devDependencies":{"core-js":"^2.5.1","coveralls":"^3.0.0","enzyme":"^3.1.0","enzyme-adapter-react-16":"^1.0.1","jest":"^21.2.1","pre-commit":"1.x","rc-tools":"^7.0.3","react":"^16.0.0","react-dom":"^16.0.0","react-test-renderer":"^16.0.0"},"pre-commit":["lint"],"gitHead":"b3b17afe247060fe8435db1b868dd0d183b9d098","_id":"rc-checkbox@2.1.5","_npmVersion":"5.5.1","_nodeVersion":"8.9.4","_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"dist":{"integrity":"sha512-WXKnZV6ipS3Jsmd7mVenVUQf+ictgWZW0RqiH+7MeYdzGj/SL4g/S6MZgRdgzaBS2tGBCp4bvhGcyZLns6uQxw==","shasum":"411858448c0ee2a797ef8544dac63bcaeef722ef","tarball":"http://registry-npm.ywwl.com/rc-checkbox/download/rc-checkbox-2.1.5.tgz","fileCount":9,"unpackedSize":20453,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE0cCAvE7cJ40NVQWFRwrlziANJEaUQFufek8CgE+Ct6AiEAqed+dUVhYlMCnkQ/azn62qXIVYnGO+RlKdnSpNZ1O7E="}],"size":5258,"noattachment":false,"key":"/rc-checkbox/-/rc-checkbox-2.1.5.tgz"},"maintainers":[{"email":"afc163@gmail.com","name":"afc163"},{"email":"hust2012jiangkai@gmail.com","name":"paranoidjk"},{"email":"surgesoft@gmail.com","name":"raohai"},{"email":"sliuqin@gmail.com","name":"sliuqin"},{"email":"yesmeck@gmail.com","name":"yesmeck"},{"email":"yiminghe@gmail.com","name":"yiminghe"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rc-checkbox_2.1.5_1519460127035_0.18247739843901067"},"_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":1519460127093,"_cnpm_publish_time":1519460127093,"dist-tags":{"latest":"3.5.0"}}