Changelog - @caspeco/casper-ui-library
5.0.0
What’s Changed
Library changes
-
[BREAKING] UTF-1257 Update paginator by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/452
Removed props:
localeString- renamed tolocalepageSizeOptions- no longer usedpageCount- calculated automatically, replaced byitemCountcanPreviousPage- calculated automaticallycanNextPage- calculated automaticallysetPageSize- no longer usedsetPageIndex- renamed toonPageChange
Added props:
locale- replaceslocaleStringitemCount- the total number of items (instead ofpageCount)onPageChange- invoked when the page index changes- All
ThemeStyleProps- passed down to the<Box>ancestor for easier styling
Example migration:
Before After <PaginatorlocaleString="en-US"pageSize={pageSize}pageIndex={pageIndex}pageCount={pageCount}pageSizeOptions={[5, 10]}canPreviousPage={pageIndex > 0}canNextPage={pageIndex < pageCount - 1}setPageSize={(e) => {setPageSize(e);setPageIndex(0);}}setPageIndex={(e) => {setPageIndex(e);}}/><Paginatorlocale="en-US"pageSize={pageSize} // optional, default = 10pageIndex={pageIndex} // optional if starting on index 0itemCount={data.length}onPageChange={setPageIndex}/>
Full Changelog: https://github.com/Caspeco/casper-ui-library/compare/4.1.1...5.0.0
4.1.1
What’s Changed
Library changes
- Fix types for Box, Button, Stack & use correct docs links by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/450
Documentation changes
- Re-order imports and fix combobox example width by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/449
Full Changelog: https://github.com/Caspeco/casper-ui-library/compare/4.1.0...4.1.1
4.1.0
What’s Changed
Library changes
- UTF-1256: Double backspace for item deletion by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/448
Dependencies
- Bump the non-major-updates group with 3 updates by @dependabot[bot] in https://github.com/Caspeco/casper-ui-library/pull/446
Other changes
- Simplify labels by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/447
Full Changelog: https://github.com/Caspeco/casper-ui-library/compare/4.0.1...4.1.0
4.0.1
What’s Changed
Library changes
- Bump to 4.0.1 by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/445
Dependencies
- Bump vite from 6.3.5 to 7.1.2 by @dependabot[bot] in https://github.com/Caspeco/casper-ui-library/pull/440
- Bump fs-extra from 11.3.0 to 11.3.1 in the non-major-updates group by @dependabot[bot] in https://github.com/Caspeco/casper-ui-library/pull/438
Documentation changes
- Add changelog by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/444
Other changes
- Fix dependabot by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/437
- Fix links to props & docs improvements by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/442
New Contributors
- @dependabot[bot] made their first contribution in https://github.com/Caspeco/casper-ui-library/pull/440
Full Changelog: https://github.com/Caspeco/casper-ui-library/compare/4.0.0...4.0.1
4.0.0
What’s Changed
Library changes
- Bump deps and release 4.0.0 by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/436
Other changes
- Fix links by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/435
Full Changelog: https://github.com/Caspeco/casper-ui-library/compare/0.0.5...4.0.0
0.0.5
What’s Changed
Library changes
- Remove bit 🔥 by @MarcusCaspeco in https://github.com/Caspeco/casper-ui-library/pull/381
Full Changelog: https://github.com/Caspeco/casper-ui-library/compare/0.0.4...0.0.5
0.0.4
What’s Changed
Initial npm release
Full Changelog: https://github.com/Caspeco/casper-ui-library/commits/0.0.4