{"name":"rc-rate","version":"2.13.1","description":"React Star Rate Component","engines":{"node":">=8.x"},"keywords":["react","react-component","react-rate","rate"],"homepage":"https://github.com/react-component/rate","repository":{"type":"git","url":"git+https://github.com/react-component/rate.git"},"bugs":{"url":"https://github.com/react-component/rate/issues"},"license":"MIT","main":"./lib/index","module":"./es/index","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","prepare":"dumi setup","prepublishOnly":"npm run compile && np --yolo --no-publish","postpublish":"npm run docs:build && npm run docs:deploy","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","test":"rc-test","coverage":"rc-test --coverage","now-build":"npm run docs:build"},"dependencies":{"@babel/runtime":"^7.10.1","classnames":"^2.2.5","rc-util":"^5.0.1"},"devDependencies":{"@rc-component/father-plugin":"^1.0.0","@types/classnames":"^2.2.9","@types/jest":"^29.5.1","@types/react":"^17.0.15","@types/react-dom":"^17.0.9","@umijs/fabric":"^3.0.0","cheerio":"1.0.0-rc.12","cross-env":"^7.0.0","dumi":"^2.1.2","enzyme":"^3.1.1","enzyme-adapter-react-16":"^1.15.6","enzyme-to-json":"^3.1.2","eslint":"^7.1.0","father":"^4.0.0","gh-pages":"^3.1.0","less":"^3.0.0","np":"^7.0.0","rc-test":"^7.0.15","rc-tooltip":"^5.0.1","react":"^16.0.0","react-dom":"^16.0.0","typescript":"^5.0.4"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_id":"rc-rate@2.13.1","gitHead":"1ec5a9dcbd58e0a88eb78d02a2c2e8d81b39995c","types":"./lib/index.d.ts","_nodeVersion":"22.8.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-QUhQ9ivQ8Gy7mtMZPAjLbxBt5y9GRp65VcUyGUMF3N3fhiftivPHdpuDIaWIMOTEprAjZPC08bls1dQB+I1F2Q==","shasum":"29af7a3d4768362e9d4388f955a8b6389526b7fd","tarball":"http://registry-npm.ywwl.com/rc-rate/download/rc-rate-2.13.1.tgz","fileCount":24,"unpackedSize":40563,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDqFYxTTUKdbCmSDU0Ben952nR3WIkHbMejyOoUTx1D1AIhAMSJnAa6Tk7bXsfEIi6NDRHpDJDtLxOhrxBynxSLrPHx"}],"size":8585,"noattachment":false,"key":"/rc-rate/-/rc-rate-2.13.1.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"maintainers":[{"name":"benjycui","email":"benjytrys@gmail.com"},{"name":"yesmeck","email":"yesmeck@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"yiminghe","email":"yiminghe@gmail.com"},{"name":"yutingzhao1991","email":"yutingzhao1991@sina.cn"},{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"xrkffgg","email":"xrkffgg@hotmail.com"},{"name":"madccc","email":"1075746765@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rc-rate_2.13.1_1739157425043_0.12678495165123227"},"_hasShrinkwrap":false,"readme":"# rc-rate\n\nReact Rate Component\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-rate.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-rate\n[github-actions-image]: https://github.com/react-component/rate/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/rate/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/rate/master.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/react-component/rate/branch/master\n[david-url]: https://david-dm.org/react-component/rate\n[david-image]: https://david-dm.org/react-component/rate/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/rate?type=dev\n[david-dev-image]: https://david-dm.org/react-component/rate/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/rc-rate.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-rate\n[bundlephobia-url]: https://bundlephobia.com/result?p=rc-rate\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-rate\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## Screenshots\n\n<img src=\"https://img.alicdn.com/tps/TB1ijlpLVXXXXb8XpXXXXXXXXXX-466-172.png\" width=\"288\"/>\n\n## Changelog\n\n- [CHANGELOG](./CHANGELOG.md)\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Example\n\n- Local: http://localhost:9001/\n\n- Online: http://react-component.github.io/rate/\n\n## install\n\n[![rc-rate](https://nodei.co/npm/rc-rate.png)](https://npmjs.org/package/rc-rate)\n\n## Usage\n\n```js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport Rate from 'rc-rate';\n\nReactDOM.render(\n  <Rate />,\n  document.getElementById('root')\n)\n```\n\n### with [styled-components](https://github.com/styled-components/styled-components)\n```js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport Rate from 'rc-rate';\nimport styled from 'styled-components';\n\nconst StyledRate = styled(Rate)`\n  &.rc-rate {\n    font-size: ${({ size }) => size}px;\n  }\n`\n\nReactDOM.render(\n  <StyledRate size=\"24\" />,\n  document.getElementById('root')\n)\n```\n\n## API\n\n### props\n\n| name          | type                              | default       | description                                           |\n| ------------- | --------------------------------- | ------------- | ----------------------------------------------------- |\n| count         | number                            | 5             | Star numbers                                          |\n| value         | number                            | -             | Controlled value                                      |\n| defaultValue  | number                            | 0             | Initial value                                         |\n| allowHalf     | boolean                           | false         | Support half star                                     |\n| allowClear    | boolean                           | true          | Reset when click again                                |\n| style         | object                            | {}            |                                                       |\n| onChange      | function                          | (value) => {} | `onChange` will be triggered when click               |\n| onHoverChange | function                          | (value) => {} | `onHoverChange` will be triggered when hover on stars |\n| character     | ReactNode \\| (props) => ReactNode | ★             | The each character of rate                            |\n| disabled      | boolean                           | false         |                                                       |\n| direction     | string                            | `ltr`         | The direction of rate                                 |\n\n## Test Case\n\n```\nnpm test\nnpm run chrome-test\n```\n\n## Coverage\n\n```\nnpm run coverage\n```\n\nopen coverage/ dir\n\n## License\n\nrc-rate is released under the MIT license.\n","publish_time":1739157425267,"_cnpm_publish_time":1739157425267,"dist-tags":{"latest":"2.13.1"}}