Add a rel attribute on previous page, current page and next page controls. They are respectivement customizable thanks to props prevPageRel, selectedPageRel and nextPageRel. To disable the rel attribute, set them to null. (see: AdeleD/react-paginate#391)
A new prop disabledLinkClassName has been added. It allows to add a custom class on disabled previous and next controls. Default to undefined (no class added).
tabindex is now set to -1 on disabled controls (disable previous/next buttons; active page button). (see: AdeleD/react-paginate#219)
Add a warning when providing an initialPage prop value that is greater than the maximum page index from pageCount prop.
Add a warning when providing a forcePage prop value that is greater than the maximum page index from pageCount prop.
The href generated from hrefBuilder prop is now also set on active page control <a> tag. (see #242)
A new prop hrefAllControls has been added. It allows to enable hrefBuilder for all controls.
Add a warning when providing both initialPage and forcePage props. You should only provides forcePage when the component is controlled. (see: AdeleD/react-paginate#290)
v7.1.4
A new prop renderOnZeroPageCount has been added. It allows to define what to display when pageCount is zero. By default, it lets the main pagination boxes be displayed (Previous / Next). To display nothing, just provides renderOnZeroPageCount={null}. (see: AdeleD/react-paginate#377)
A new prop className has been added, which is an alias to containerClassName and is usefull for integration with CSS-in-JS frameworks like styled-components. (see: AdeleD/react-paginate#321)
Add a rel attribute on previous page, current page and next page controls. They are respectivement customizable thanks to props prevPageRel, selectedPageRel and nextPageRel. To disable the rel attribute, set them to null. (see: AdeleD/react-paginate#391)
A new prop disabledLinkClassName has been added. It allows to add a custom class on disabled previous and next controls. Default to undefined (no class added).
tabindex is now set to -1 on disabled controls (disable previous/next buttons; active page button). (see: AdeleD/react-paginate#219)
Add a warning when providing an initialPage prop value that is greater than the maximum page index from pageCount prop.
Add a warning when providing a forcePage prop value that is greater than the maximum page index from pageCount prop.
The href generated from hrefBuilder prop is now also set on active page control <a> tag. (see #242)
A new prop hrefAllControls has been added. It allows to enable hrefBuilder for all controls.
Add a warning when providing both initialPage and forcePage props. You should only provides forcePage when the component is controlled. (see: AdeleD/react-paginate#290)
>= 7.1.4
A new prop renderOnZeroPageCount has been added. It allows to define what to display when pageCount is zero. By default, it lets the main pagination boxes be displayed (Previous / Next). To display nothing, just provides renderOnZeroPageCount={null}. (see: AdeleD/react-paginate#377)
A new prop className has been added, which is an alias to containerClassName and is usefull for integration with CSS-in-JS frameworks like styled-components. (see: AdeleD/react-paginate#321)
Add a warning when a non integer is provided for pageCount
>= 7.1.3
Remove react-hot-loader from production build.
>= 7.1.2
A new prop pageLabelBuilder has been added. It allows to customize pages labels of the component. By default, the page number is displayed (see: AdeleD/react-paginate#334).
Add a rel attribute on previous/next buttons. Rel attributes are customizable thanks to props 'prevRel' and 'nextRel' (see: AdeleD/react-paginate#326).
Upgrade devDependencies packages jest-cli and webpack-cli.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps react-paginate from 6.5.0 to 8.0.0.
Release notes
Sourced from react-paginate's releases.
Changelog
Sourced from react-paginate's changelog.
Commits
049841c
Build dist files3fbdf8e
Fix typos67cabb1
Rename this release as v8, as we have lot of changes, some changing the outpu...d41cb4d
Closes #270 Do not create break for only one page623941e
Merge branch 'mmcbruno-master'4240127
Add changelog + build128e905
Merge branch 'master' of https://github.com/mmcbruno/react-paginate into mmcb...28f5c96
Closes #242 Allows to set href on all controls857f48e
Fix dot not set undefined class77d588a
By default href (from hrefBuilder) is also set on active page controlDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)