@hexure/ui 1.13.48 → 1.13.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/BulkActionBar/BulkActionBar.d.ts +1 -0
- package/dist/cjs/types/components/Pagination/Pagination.d.ts +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/BulkActionBar/BulkActionBar.d.ts +1 -0
- package/dist/esm/types/components/Pagination/Pagination.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2358,7 +2358,7 @@ const Wrapper$3 = styled.nav `
|
|
|
2358
2358
|
column-gap: 10px;
|
|
2359
2359
|
`;
|
|
2360
2360
|
const Pagination = (_a) => {
|
|
2361
|
-
var { currentPage = 1, onClick, pageCount = 0, dataItemid } = _a, accessibleProps = __rest(_a, ["currentPage", "onClick", "pageCount", "dataItemid"]);
|
|
2361
|
+
var { currentPage = 1, onClick, pageCount = 0, dataItemid, type = null } = _a, accessibleProps = __rest(_a, ["currentPage", "onClick", "pageCount", "dataItemid", "type"]);
|
|
2362
2362
|
const is_first_page = currentPage === 1;
|
|
2363
2363
|
const is_last_page = currentPage === pageCount;
|
|
2364
2364
|
const handlePrevClick = () => {
|
|
@@ -2379,12 +2379,12 @@ const Pagination = (_a) => {
|
|
|
2379
2379
|
};
|
|
2380
2380
|
const baseId = dataItemid || 'pagination';
|
|
2381
2381
|
return (React.createElement(Wrapper$3, Object.assign({}, accessibleProps, { "data-itemid": `${baseId}-wrapper` }),
|
|
2382
|
-
React.createElement(Button, { "data-itemid": `${baseId}-prev-button`, disabled: is_first_page, icon: js.mdiChevronLeft, onClick: handlePrevClick, small: true }),
|
|
2382
|
+
React.createElement(Button, { "data-itemid": `${baseId}-prev-button`, disabled: is_first_page, icon: js.mdiChevronLeft, onClick: handlePrevClick, small: true, type: type }),
|
|
2383
2383
|
React.createElement(Select, { "data-itemid": `${baseId}-select`, onChange: handlePageChange, options: Array.from(Array(pageCount).keys(), p => p + 1).map(p => ({
|
|
2384
2384
|
label: `Page ${p}`,
|
|
2385
2385
|
value: `${p}`,
|
|
2386
2386
|
})), value: `${currentPage}` }),
|
|
2387
|
-
React.createElement(Button, { "data-itemid": `${baseId}-next-button`, disabled: is_last_page, icon: js.mdiChevronRight, onClick: handleNextClick, small: true })));
|
|
2387
|
+
React.createElement(Button, { "data-itemid": `${baseId}-next-button`, disabled: is_last_page, icon: js.mdiChevronRight, onClick: handleNextClick, small: true, type: type })));
|
|
2388
2388
|
};
|
|
2389
2389
|
|
|
2390
2390
|
const Wrapper$2 = styled.label `
|