{"name":"rc-pagination","version":"4.2.0","description":"pagination ui component for react","keywords":["react","react-component","react-pagination","pagination","antd","pager"],"main":"./lib/index","module":"./es/index","homepage":"https://react-component.github.io/pagination","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/pagination.git"},"bugs":{"url":"http://github.com/react-component/pagination/issues"},"license":"MIT","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d docs-dist","gh-pages":"npm run docs:build && npm run docs:deploy","compile":"father build && lessc assets/index.less assets/index.css","prepublishOnly":"npm run compile && np --yolo --no-publish && npm run gh-pages","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","prepare":"husky install"},"dependencies":{"@babel/runtime":"^7.10.1","classnames":"^2.3.2","rc-util":"^5.38.0"},"devDependencies":{"@rc-component/father-plugin":"^1.0.0","@testing-library/jest-dom":"^6.1.5","@testing-library/react":"^15.0.4","@types/jest":"^29.2.2","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@umijs/fabric":"^4.0.1","coveralls":"^3.0.6","cross-env":"^7.0.0","dumi":"^2.1.2","eslint":"^8.54.0","eslint-plugin-jest":"^27.6.0","eslint-plugin-unicorn":"^52.0.0","father":"^4.0.0","gh-pages":"^6.1.0","glob":"^10.3.10","husky":"^9.0.11","identity-obj-proxy":"^3.0.0","less":"^4.1.3","lint-staged":"^15.0.2","np":"^10.0.5","prettier":"^3.1.0","rc-select":"^14.1.2","rc-test":"^7.0.15","react":"^18.2.0","react-dom":"^18.2.0"},"peerDependencies":{"react":">=16.9.0","react-dom":">=16.9.0"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write","git add"]},"_id":"rc-pagination@4.2.0","gitHead":"8a2b7fa3869922b47d155156675cfc6b84082878","types":"./lib/index.d.ts","_nodeVersion":"20.14.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-V6qeANJsT6tmOcZ4XiUmj8JXjRLbkusuufpuoBw2GiAn94fIixYjFLmbruD1Sbhn8fPLDnWawPp4CN37zQorvw==","shasum":"b7222b429dec38f6c74e139a30ae7765e9a0b8a6","tarball":"http://registry-npm.ywwl.com/rc-pagination/download/rc-pagination-4.2.0.tgz","fileCount":309,"unpackedSize":174165,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVYThUm5xk8e1bQmVw1jpF8v6mM9DxTM0dRVkBLEZ+ZgIgONDar9P4ZeugTnPSLp1/y/oX1wnb39NIdaJgLc2mHVg="}],"size":27327,"noattachment":false,"key":"/rc-pagination/-/rc-pagination-4.2.0.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rc-pagination_4.2.0_1719046612817_0.40987068021946205"},"_hasShrinkwrap":false,"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| 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                                     | Bool                                                                                                                                                 | `false` when total less then `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":1719046612973,"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":1719046612973,"dist-tags":{"latest":"5.1.0"}}