Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Releases: niconiahi/chakra-paginator

v0.7.2

26 May 02:48
Compare
Choose a tag to compare

Docs

  • Add missing usePaginator API
  • Divided the full example into many parts, highly improving readibility of the documentation
  • Add table of content
  • Added separation between sections

Fixes

  • Correct usePaginator types

v0.7.1...v0.7.2

v0.7.1

11 May 23:11
Compare
Choose a tag to compare

Fixes

  • Exports usePagintor custom hook

v0.7.0...v0.7.1

v0.7.0

11 May 23:03
Compare
Choose a tag to compare

Features

Add new usePaginator custom hook!

It allows you to easily calculate pagination values that you may need to pass to Paginator component.
Altough you are not constrained to use it at all, it's just for you to remove repetitive code that you may end up having

v0.6.5...v0.7.0

v0.6.5

11 May 20:41
Compare
Choose a tag to compare

Fixes

  • Now pagesQuantity can be undefined, keeping in mind that some async action may be needed to determine this number. When this is the case, pages will be an empty array, so nothing will be render
  • Updated the README to contain a real world example scenario and how I would solve that
  • Updated the Codesandox to include the already mentioned example

v0.6.3

24 Feb 20:29
Compare
Choose a tag to compare
  • chore: Improve examples to show currentPage usage

Manual set of currentPage with restrictions

24 Feb 19:59
Compare
Choose a tag to compare

Now you can manually set the currentProp but:

  1. It has to be 1 or higher
  2. It has to be less than the pageCount (can't go over the last one)
  3. It has to be a whole number
  4. Console errors will show up when invalid pages are being passed down

v0.5.3

30 Jan 15:18
Compare
Choose a tag to compare
  • Set the bundled code to be Common JS (cjs) #13

v0.5.2

30 Jan 15:16
Compare
Choose a tag to compare
  • Improve HTML structure according to ARIA specifications founded for paginations

v0.5.1

26 Jan 13:52
Compare
Choose a tag to compare
  • Attemp to recover app health on build with configuration on ts

v0.5.0

26 Jan 05:11
Compare
Choose a tag to compare
  • Add Container component
  • Improve codebase