{"name":"rc-pagination","version":"5.0.0-0","keywords":["react","react-component","react-pagination","pagination","antd","pager"],"license":"MIT","_id":"rc-pagination@5.0.0-0","homepage":"https://react-component.github.io/pagination","bugs":{"url":"http://github.com/react-component/pagination/issues"},"cnpm":{"mode":"npm"},"dist":{"shasum":"800b93d7ca3b362731acb91016fea3eb346de1ca","tarball":"http://registry-npm.ywwl.com/rc-pagination/download/rc-pagination-5.0.0-0.tgz","fileCount":309,"integrity":"sha512-wwdxlgTM+b3I6mNUF2NRSqVHx4ovlh/ZASIEvrzrQOek2ONXBV2aJn1D6a+hxurhUoiHnXsGS2GphAq2tAoMYw==","signatures":[{"sig":"MEYCIQCeM9P6zDFUIAdU1GjKVqapC4jt0nqQlKMgu3GZqSzGDgIhAIPAC5+zSnUMavFp9Wekfp4bD/gCS3F3ijlPXkxFQAxp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":170118,"size":27496,"noattachment":false,"key":"/rc-pagination/-/rc-pagination-5.0.0-0.tgz"},"main":"./lib/index","tnpm":{"mode":"npm"},"types":"./lib/index.d.ts","module":"./es/index","gitHead":"96c3daa2bd46ecd1d536a63b07700666db41285d","scripts":{"lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","test":"rc-test","start":"dumi dev","compile":"father build && lessc assets/index.less assets/index.css","prepare":"husky","coverage":"rc-test --coverage","gh-pages":"npm run docs:build && npm run docs:deploy","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","now-build":"npm run docs:build","docs:build":"dumi build","docs:deploy":"gh-pages -d docs-dist","prepublishOnly":"npm run compile && np --yolo --no-publish && npm run gh-pages"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-component/pagination.git","type":"git"},"_npmVersion":"10.8.2","description":"pagination ui component for react","directories":{},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"_nodeVersion":"22.5.1","dependencies":{"rc-util":"^5.38.0","classnames":"^2.3.2","@babel/runtime":"^7.10.1"},"_hasShrinkwrap":false,"devDependencies":{"np":"^10.0.5","dumi":"^2.1.2","glob":"^10.3.10","less":"^4.1.3","husky":"^9.0.11","react":"^18.2.0","eslint":"^8.54.0","father":"^4.0.0","rc-test":"^7.0.15","gh-pages":"^6.1.0","prettier":"^3.1.0","coveralls":"^3.0.6","cross-env":"^7.0.0","rc-select":"^14.16.4","react-dom":"^18.2.0","@types/jest":"^29.2.2","lint-staged":"^15.0.2","@types/react":"^18.0.0","@umijs/fabric":"^4.0.1","@types/react-dom":"^18.0.0","eslint-plugin-jest":"^27.6.0","identity-obj-proxy":"^3.0.0","eslint-plugin-unicorn":"^55.0.0","@testing-library/react":"^16.0.1","@testing-library/jest-dom":"^6.1.5","@rc-component/father-plugin":"^1.0.0","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"_npmOperationalInternal":{"tmp":"tmp/rc-pagination_5.0.0-0_1733821666434_0.6198421301109327","host":"s3://npm-registry-packages-npm-production"},"readme":"# rc-pagination\n\nReact Pagination 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-pagination.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-pagination\n[github-actions-image]: https://github.com/react-component/pagination/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/pagination/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/pagination/master.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/react-component/pagination/branch/master\n[david-url]: https://david-dm.org/react-component/pagination\n[david-image]: https://david-dm.org/react-component/pagination/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/pagination?type=dev\n[david-dev-image]: https://david-dm.org/react-component/pagination/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/rc-pagination.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-pagination\n[bundlephobia-url]: https://bundlephobia.com/result?p=rc-pagination\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-pagination\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## Development\n\n```\nnpm install\nnpm start\n```\n\n## Examples\n\nOnline example: `https://pagination-react-component.vercel.app`\nLocal example: `npm run start` then `http://localhost:9001`\n\n## Install\n\n[![rc-pagination](https://nodei.co/npm/rc-pagination.png)](https://npmjs.org/package/rc-pagination)\n\n## Usage\n\n```js\nimport Pagination from 'rc-pagination';\n\nReactDOM.render(<Pagination />, container);\n```\n\n## API\n\n// prettier-ignore\n| Parameter | Description | Type | Default |\n| --- | --- | --- | --- |\n| disabled | disable pagination | Bool | - |\n| align | align of pagination | start \\| center \\| end | undefined |\n| defaultCurrent | uncontrolled current page | Number | 1 |\n| current | current page | Number | undefined |\n| total | items total count | Number | 0 |\n| defaultPageSize | default items per page | Number | 10 |\n| pageSize | items per page | Number | 10 |\n| onChange | page change callback | Function(current, pageSize) | - |\n| showSizeChanger | show pageSize changer | boolean \\| [SelectProps](https://github.com/react-component/select/blob/561f8b7d69fd5dd2cd7d917c88976cca4e539a9d/src/Select.tsx#L112) | `false` when total less than `totalBoundaryShowSizeChanger`, `true` when otherwise |\n| totalBoundaryShowSizeChanger | when total larger than it, `showSizeChanger` will be true | number | 50 |\n| pageSizeOptions | specify the sizeChanger selections | Array<String> | ['10', '20', '50', '100'] |\n| onShowSizeChange | pageSize change callback | Function(current, size) | - |\n| hideOnSinglePage | hide on single page | Bool | false |\n| showPrevNextJumpers | show jump-prev, jump-next | Bool | true |\n| showQuickJumper | show quick goto jumper | Bool / Object | false / {goButton: true} |\n| showTotal | show total records and range | Function(total, [from, to]) | - |\n| className | className of pagination | String | - |\n| simple | when set, show simple pager | Bool / { readOnly?: boolean; } | - |\n| locale | to set l10n config | Object | [zh_CN](https://github.com/react-component/pagination/blob/master/src/locale/zh_CN.js) |\n| style | the style of pagination | Object | {} |\n| showLessItems | show less page items | Bool | false |\n| showTitle | show page items title | Bool | true |\n| itemRender | custom page item renderer | Function(current, type: 'page' \\| 'prev' \\| 'next' \\| 'jump-prev' \\| 'jump-next', element): React.ReactNode \\| `(current, type, element) => element` | |\n| prevIcon | specify the default previous icon | ReactNode \\| (props: PaginationProps) => ReactNode | |\n| nextIcon | specify the default next icon | ReactNode \\| (props: PaginationProps) => ReactNode | |\n| jumpPrevIcon | specify the default previous icon | ReactNode \\| (props: PaginationProps) => ReactNode | |\n| jumpNextIcon | specify the default next icon | ReactNode \\| (props: PaginationProps) => ReactNode | |\n\n## License\n\nrc-pagination is released under the MIT license.\n","publish_time":1733821666623,"maintainers":[{"name":"ibigbug","email":"xiaobayuwei@gmail.com"},{"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":"paranoidjk","email":"hust2012jiangkai@gmail.com"},{"name":"zombiej","email":"smith3816@gmail.com"},{"name":"shaodahong","email":"337097324@qq.com"},{"name":"madccc","email":"1075746765@qq.com"}],"_cnpm_publish_time":1733821666623,"dist-tags":{"latest":"5.1.0"}}