@rolster/react-components 19.8.18 → 19.8.19
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.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/esm/components/molecules/Pagination/Pagination.d.ts +2 -7
- package/dist/esm/components/molecules/Pagination/Pagination.js +2 -2
- package/dist/esm/components/molecules/Pagination/Pagination.js.map +1 -1
- package/package.json +3 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -1981,7 +1981,7 @@ function RlsNavbarMenuComponent({ options, onOption }) {
|
|
|
1981
1981
|
}
|
|
1982
1982
|
const RlsNavbarMenu = require$$0.memo(RlsNavbarMenuComponent);
|
|
1983
1983
|
|
|
1984
|
-
function
|
|
1984
|
+
function RlsPaginationButton({ page, onSelect }) {
|
|
1985
1985
|
const className = renderClassStatus('rls-pagination__page', {
|
|
1986
1986
|
active: page.active
|
|
1987
1987
|
});
|
|
@@ -2035,7 +2035,7 @@ function RlsPaginationComponent({ suggestions, count, filter, onPagination, posi
|
|
|
2035
2035
|
const goLastPagination = require$$0.useCallback(() => {
|
|
2036
2036
|
refreshPagination(controller.current?.goLastPage());
|
|
2037
2037
|
}, [refreshPagination]);
|
|
2038
|
-
return (jsxRuntimeExports.jsxs("div", { className: "rls-pagination", children: [jsxRuntimeExports.jsxs("div", { className: "rls-pagination__actions", children: [jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goFirstPagination, disabled: template?.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrowhead-left" }) }), jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goPreviousPagination, disabled: template?.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrow-ios-left" }) })] }), jsxRuntimeExports.jsxs("div", { className: "rls-pagination__body", children: [jsxRuntimeExports.jsx("div", { className: "rls-pagination__pages", children: template?.pages.map((page) => (jsxRuntimeExports.jsx(
|
|
2038
|
+
return (jsxRuntimeExports.jsxs("div", { className: "rls-pagination", children: [jsxRuntimeExports.jsxs("div", { className: "rls-pagination__actions", children: [jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goFirstPagination, disabled: template?.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrowhead-left" }) }), jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goPreviousPagination, disabled: template?.firstPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrow-ios-left" }) })] }), jsxRuntimeExports.jsxs("div", { className: "rls-pagination__body", children: [jsxRuntimeExports.jsx("div", { className: "rls-pagination__pages", children: template?.pages.map((page) => (jsxRuntimeExports.jsx(RlsPaginationButton, { page: page, onSelect: goToPagination }, page.value))) }), jsxRuntimeExports.jsx("div", { className: "rls-pagination__description", children: template?.description }), jsxRuntimeExports.jsx("span", { className: "rls-pagination__count", children: suggestions.length })] }), jsxRuntimeExports.jsxs("div", { className: "rls-pagination__actions", children: [jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goNextPagination, disabled: template?.lastPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrow-ios-right" }) }), jsxRuntimeExports.jsx("button", { className: "rls-pagination__action", onClick: goLastPagination, disabled: template?.lastPage, children: jsxRuntimeExports.jsx(RlsIcon, { value: "arrowhead-right" }) })] })] }));
|
|
2039
2039
|
}
|
|
2040
2040
|
const RlsPagination = require$$0.memo(RlsPaginationComponent);
|
|
2041
2041
|
|