@amateescu/portal-ui-components 0.0.34 → 0.0.37-beta0
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/README.md +113 -0
- package/dist/{Button-xgiLW4_3.js → Button-BM72-1G6.js} +107 -106
- package/dist/ButtonBase-D6nf3ymf.js +990 -0
- package/dist/{CircularProgress-Dq_bUtxt.js → CircularProgress-BlQFR6DW.js} +107 -80
- package/dist/Clear-BauR3cPE.js +8 -0
- package/dist/DefaultPropsProvider-BtPfTrMq.js +3449 -0
- package/dist/UserInfoDropdown-rBF0pwlq.js +23 -0
- package/dist/assets/PassportConfirmationModal.css +1 -0
- package/dist/assets/PassportErrorModal.css +1 -0
- package/dist/assets/PassportKpiCard.css +1 -0
- package/dist/assets/PassportTabHeader.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.d.ts +3 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.d.ts.map +1 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.js +31 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.stories.d.ts +23 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.stories.d.ts.map +1 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.types.d.ts +8 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.types.d.ts.map +1 -0
- package/dist/components/InfoModal/InfoModal.d.ts +2 -1
- package/dist/components/InfoModal/InfoModal.d.ts.map +1 -0
- package/dist/components/InfoModal/InfoModal.js +26 -15
- package/dist/components/InfoModal/InfoModal.stories.d.ts +1 -0
- package/dist/components/InfoModal/InfoModal.stories.d.ts.map +1 -0
- package/dist/components/InfoModal/InfoModal.types.d.ts +1 -0
- package/dist/components/InfoModal/InfoModal.types.d.ts.map +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.d.ts +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.d.ts.map +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.js +66 -6
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts.map +1 -0
- package/dist/components/Login/Login.d.ts +2 -1
- package/dist/components/Login/Login.d.ts.map +1 -0
- package/dist/components/Login/Login.js +43 -8870
- package/dist/components/Login/Login.stories.d.ts +3 -2
- package/dist/components/Login/Login.stories.d.ts.map +1 -0
- package/dist/components/Login/Login.types.d.ts +1 -0
- package/dist/components/Login/Login.types.d.ts.map +1 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.d.ts +3 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.d.ts.map +1 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.js +41 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.stories.d.ts +22 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.stories.d.ts.map +1 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.types.d.ts +14 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.types.d.ts.map +1 -0
- package/dist/components/PassportButton/PassportButton.d.ts +4 -0
- package/dist/components/PassportButton/PassportButton.d.ts.map +1 -0
- package/dist/components/{CustomButton/CustomButton.js → PassportButton/PassportButton.js} +10 -6
- package/dist/components/{CustomButton/CustomButton.stories.d.ts → PassportButton/PassportButton.stories.d.ts} +2 -1
- package/dist/components/PassportButton/PassportButton.stories.d.ts.map +1 -0
- package/dist/components/PassportButton/PassportButton.types.d.ts +9 -0
- package/dist/components/PassportButton/PassportButton.types.d.ts.map +1 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.d.ts +9 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.d.ts.map +1 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.js +108 -0
- package/dist/components/{ErrorModal/ErrorModal.stories.d.ts → PassportConfirmationModal/PassportConfirmationModal.stories.d.ts} +1 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.stories.d.ts.map +1 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.d.ts +3 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.d.ts.map +1 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.js +1514 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.stories.d.ts +25 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.stories.d.ts.map +1 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.types.d.ts +15 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.types.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.d.ts +3 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +5419 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.stories.d.ts +30 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.stories.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.types.d.ts +16 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.types.d.ts.map +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.d.ts +3 -0
- package/dist/components/PassportDropdown/PassportDropdown.d.ts.map +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.js +37 -0
- package/dist/components/PassportDropdown/PassportDropdown.stories.d.ts +25 -0
- package/dist/components/PassportDropdown/PassportDropdown.stories.d.ts.map +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.types.d.ts +14 -0
- package/dist/components/PassportDropdown/PassportDropdown.types.d.ts.map +1 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.d.ts +8 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.d.ts.map +1 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.js +68 -0
- package/dist/components/{ConfirmationModal/ConfirmationModal.stories.d.ts → PassportErrorModal/PassportErrorModal.stories.d.ts} +1 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.stories.d.ts.map +1 -0
- package/dist/components/PassportFooter/PassportFooter.d.ts +3 -0
- package/dist/components/PassportFooter/PassportFooter.d.ts.map +1 -0
- package/dist/components/PassportFooter/PassportFooter.js +56 -0
- package/dist/components/{CustomFooter/CustomFooter.stories.d.ts → PassportFooter/PassportFooter.stories.d.ts} +1 -0
- package/dist/components/PassportFooter/PassportFooter.stories.d.ts.map +1 -0
- package/dist/components/{CustomFooter/CustomFooter.types.d.ts → PassportFooter/PassportFooter.types.d.ts} +3 -2
- package/dist/components/PassportFooter/PassportFooter.types.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.d.ts +3 -0
- package/dist/components/PassportInput/PassportInput.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.js +51 -0
- package/dist/components/PassportInput/PassportInput.stories.d.ts +24 -0
- package/dist/components/PassportInput/PassportInput.stories.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.types.d.ts +9 -0
- package/dist/components/PassportInput/PassportInput.types.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.types.js +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.d.ts +3 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.d.ts.map +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.js +43 -0
- package/dist/components/{KpiCard/KpiCard.stories.d.ts → PassportKpiCard/PassportKpiCard.stories.d.ts} +3 -2
- package/dist/components/PassportKpiCard/PassportKpiCard.stories.d.ts.map +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.types.d.ts +11 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.types.d.ts.map +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.types.js +1 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.d.ts +3 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.d.ts.map +1 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.js +22 -0
- package/dist/components/{KpiWrapper/KpiWrapper.stories.d.ts → PassportKpiWrapper/PassportKpiWrapper.stories.d.ts} +6 -5
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.stories.d.ts.map +1 -0
- package/dist/components/{KpiWrapper/KpiWrapper.types.d.ts → PassportKpiWrapper/PassportKpiWrapper.types.d.ts} +2 -1
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.types.d.ts.map +1 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.types.js +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.d.ts +3 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.d.ts.map +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.js +72 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.stories.d.ts +24 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.stories.d.ts.map +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.types.d.ts +12 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.types.d.ts.map +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.types.js +1 -0
- package/dist/components/PassportPagination/PassportPagination.d.ts +3 -0
- package/dist/components/PassportPagination/PassportPagination.d.ts.map +1 -0
- package/dist/components/{CustomPagination/CustomPagination.js → PassportPagination/PassportPagination.js} +215 -218
- package/dist/components/{CustomPagination/CustomPagination.stories.d.ts → PassportPagination/PassportPagination.stories.d.ts} +3 -2
- package/dist/components/PassportPagination/PassportPagination.stories.d.ts.map +1 -0
- package/dist/components/{CustomPagination/CustomPagination.types.d.ts → PassportPagination/PassportPagination.types.d.ts} +2 -1
- package/dist/components/PassportPagination/PassportPagination.types.d.ts.map +1 -0
- package/dist/components/PassportPagination/PassportPagination.types.js +1 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.d.ts +7 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.d.ts.map +1 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.js +14 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.stories.d.ts +21 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.stories.d.ts.map +1 -0
- package/dist/components/PassportTextField/PassportTextField.d.ts +3 -0
- package/dist/components/PassportTextField/PassportTextField.d.ts.map +1 -0
- package/dist/components/PassportTextField/PassportTextField.js +23 -0
- package/dist/components/PassportTextField/PassportTextField.stories.d.ts +22 -0
- package/dist/components/PassportTextField/PassportTextField.stories.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.js +89 -41
- package/dist/components/SideMenu/SideMenu.stories.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.stories.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.types.d.ts.map +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.d.ts.map +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.js +3 -3
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts.map +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.types.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.types.d.ts.map +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.d.ts.map +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +3 -2
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts.map +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.types.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.types.d.ts.map +1 -0
- package/dist/components/index.d.ts +17 -7
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +45 -28
- package/dist/createSimplePaletteValueFilter-Bz8RuRaa.js +23 -0
- package/dist/{createSvgIcon-CgFXfzFk.js → createSvgIcon-B-eIQ7rU.js} +118 -124
- package/dist/extendSxProp-QNe1Nf_s.js +51 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +63 -46
- package/dist/mock.d.ts +1 -0
- package/dist/mock.d.ts.map +1 -0
- package/dist/portal-utils/chunkArray.d.ts +1 -0
- package/dist/portal-utils/chunkArray.d.ts.map +1 -0
- package/dist/portal-utils/cn.d.ts +1 -0
- package/dist/portal-utils/cn.d.ts.map +1 -0
- package/dist/portal-utils/formatters.d.ts +1 -0
- package/dist/portal-utils/formatters.d.ts.map +1 -0
- package/dist/portal-utils/formatters.js +291 -334
- package/dist/portal-utils/index.d.ts +2 -1
- package/dist/portal-utils/index.d.ts.map +1 -0
- package/dist/portal-utils/loggerService.d.ts +1 -0
- package/dist/portal-utils/loggerService.d.ts.map +1 -0
- package/dist/portal-utils/pageCount.d.ts +1 -0
- package/dist/portal-utils/pageCount.d.ts.map +1 -0
- package/dist/types/BusinessDayRange.d.ts +1 -0
- package/dist/types/BusinessDayRange.d.ts.map +1 -0
- package/dist/types/Column.d.ts +1 -0
- package/dist/types/Column.d.ts.map +1 -0
- package/dist/types/CultureStore.d.ts +1 -0
- package/dist/types/CultureStore.d.ts.map +1 -0
- package/dist/types/CustomSvg.d.ts +1 -0
- package/dist/types/CustomSvg.d.ts.map +1 -0
- package/dist/types/LoginRequest.d.ts +1 -0
- package/dist/types/LoginRequest.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/useMobilePicker-hk2kq6ev.js +19662 -0
- package/dist/useSlot-CXnK24LX.js +189 -0
- package/package.json +43 -42
- package/dist/Box-D-aleOLf.js +0 -102
- package/dist/ButtonBase-DUKuDCWw.js +0 -966
- package/dist/EllipsisOutlined-CmR4hXJ_.js +0 -2467
- package/dist/InvencoGVR-qnTq-d6S.js +0 -5
- package/dist/PurePanel-CykVuv66.js +0 -2213
- package/dist/Skeleton-BBwDqRB3.js +0 -568
- package/dist/UserInfoDropdown-Bf6STdbW.js +0 -3790
- package/dist/VModalIcon-D7L4bQLO.js +0 -5
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/assets/ConfirmationModal.css +0 -1
- package/dist/assets/KpiCard.css +0 -1
- package/dist/assets/globals.css +0 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -2
- package/dist/components/ConfirmationModal/ConfirmationModal.js +0 -51
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +0 -36
- package/dist/components/ConfirmationModal/ConfirmationModal.types.d.ts +0 -11
- package/dist/components/CustomButton/CustomButton.d.ts +0 -3
- package/dist/components/CustomButton/CustomButton.stories.js +0 -42
- package/dist/components/CustomButton/CustomeButton.types.d.ts +0 -8
- package/dist/components/CustomFooter/CustomFooter.d.ts +0 -2
- package/dist/components/CustomFooter/CustomFooter.js +0 -32
- package/dist/components/CustomFooter/CustomFooter.stories.js +0 -40
- package/dist/components/CustomPagination/CustomPagination.d.ts +0 -3
- package/dist/components/CustomPagination/CustomPagination.stories.js +0 -25
- package/dist/components/ErrorModal/ErrorModal.d.ts +0 -2
- package/dist/components/ErrorModal/ErrorModal.js +0 -40
- package/dist/components/ErrorModal/ErrorModal.stories.js +0 -33
- package/dist/components/ErrorModal/ErrorModal.types.d.ts +0 -8
- package/dist/components/InfoModal/InfoModal.stories.js +0 -33
- package/dist/components/KpiCard/KpiCard.d.ts +0 -2
- package/dist/components/KpiCard/KpiCard.js +0 -2406
- package/dist/components/KpiCard/KpiCard.stories.js +0 -26
- package/dist/components/KpiCard/KpiCard.types.d.ts +0 -8
- package/dist/components/KpiWrapper/KpiWrapper.d.ts +0 -2
- package/dist/components/KpiWrapper/KpiWrapper.js +0 -11
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +0 -56
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.js +0 -14
- package/dist/components/Login/Login.stories.js +0 -24209
- package/dist/components/SideMenu/SideMenu.stories.js +0 -81
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.js +0 -23
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +0 -36
- package/dist/context-4ttylmIf.js +0 -7356
- package/dist/createSimplePaletteValueFilter-evt-Xthj.js +0 -3444
- package/dist/index-BBBjHj3B.js +0 -411
- package/dist/index-Dz00OoV7.js +0 -1687
- package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
- package/dist/useSlot-Baxtq84W.js +0 -188
- /package/dist/assets/{ErrorModal.css → InfoModal.css} +0 -0
- /package/dist/assets/{CustomFooter.css → PassportFooter.css} +0 -0
- /package/dist/assets/{KpiWrapper.css → PassportKpiWrapper.css} +0 -0
- /package/dist/components/{ConfirmationModal/ConfirmationModal.types.js → DebouncedPassportInput/DebouncedPassportInput.types.js} +0 -0
- /package/dist/components/{CustomButton/CustomeButton.types.js → PassportAutocomplete/PassportAutocomplete.types.js} +0 -0
- /package/dist/components/{CustomFooter/CustomFooter.types.js → PassportButton/PassportButton.types.js} +0 -0
- /package/dist/components/{CustomPagination/CustomPagination.types.js → PassportDatePicker/PassportDatePicker.types.js} +0 -0
- /package/dist/components/{ErrorModal/ErrorModal.types.js → PassportDateTimePicker/PassportDateTimePicker.types.js} +0 -0
- /package/dist/components/{KpiCard/KpiCard.types.js → PassportDropdown/PassportDropdown.types.js} +0 -0
- /package/dist/components/{KpiWrapper/KpiWrapper.types.js → PassportFooter/PassportFooter.types.js} +0 -0
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
import { jsx as s, jsxs as ot } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { g as
|
|
5
|
-
import { u as rt, a as
|
|
6
|
-
import { c as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
function
|
|
10
|
-
return
|
|
2
|
+
import { PaginationItem as at } from "@mui/material";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import { g as J, a as K, u as Q, s as B, c as W, b as h, d as X, m as F, P as e } from "../../DefaultPropsProvider-BtPfTrMq.js";
|
|
5
|
+
import { u as rt, a as nt, b as R, i as N } from "../../useSlot-CXnK24LX.js";
|
|
6
|
+
import { c as D } from "../../createSimplePaletteValueFilter-Bz8RuRaa.js";
|
|
7
|
+
import { c as j } from "../../createSvgIcon-B-eIQ7rU.js";
|
|
8
|
+
import { B as st } from "../../ButtonBase-D6nf3ymf.js";
|
|
9
|
+
function it(t) {
|
|
10
|
+
return J("MuiPagination", t);
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
function
|
|
12
|
+
K("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
13
|
+
function lt(t = {}) {
|
|
14
14
|
const {
|
|
15
|
-
boundaryCount:
|
|
16
|
-
componentName:
|
|
17
|
-
count:
|
|
15
|
+
boundaryCount: o = 1,
|
|
16
|
+
componentName: a = "usePagination",
|
|
17
|
+
count: r = 1,
|
|
18
18
|
defaultPage: v = 1,
|
|
19
|
-
disabled:
|
|
19
|
+
disabled: p = !1,
|
|
20
20
|
hideNextButton: f = !1,
|
|
21
21
|
hidePrevButton: y = !1,
|
|
22
22
|
onChange: b,
|
|
23
23
|
page: P,
|
|
24
|
-
showFirstButton:
|
|
25
|
-
showLastButton:
|
|
26
|
-
siblingCount:
|
|
27
|
-
...
|
|
24
|
+
showFirstButton: S = !1,
|
|
25
|
+
showLastButton: $ = !1,
|
|
26
|
+
siblingCount: w = 1,
|
|
27
|
+
...C
|
|
28
28
|
} = t, [d, u] = rt({
|
|
29
29
|
controlled: P,
|
|
30
30
|
default: v,
|
|
31
|
-
name:
|
|
31
|
+
name: a,
|
|
32
32
|
state: "page"
|
|
33
|
-
}),
|
|
34
|
-
P || u(i), b && b(
|
|
35
|
-
},
|
|
36
|
-
const I = i -
|
|
33
|
+
}), L = (n, i) => {
|
|
34
|
+
P || u(i), b && b(n, i);
|
|
35
|
+
}, k = (n, i) => {
|
|
36
|
+
const I = i - n + 1;
|
|
37
37
|
return Array.from({
|
|
38
38
|
length: I
|
|
39
|
-
}, (
|
|
40
|
-
}, g =
|
|
39
|
+
}, (A, E) => n + E);
|
|
40
|
+
}, g = k(1, Math.min(o, r)), z = k(Math.max(r - o + 1, o + 1), r), m = Math.max(
|
|
41
41
|
Math.min(
|
|
42
42
|
// Natural start
|
|
43
|
-
d -
|
|
43
|
+
d - w,
|
|
44
44
|
// Lower boundary when page is high
|
|
45
|
-
|
|
45
|
+
r - o - w * 2 - 1
|
|
46
46
|
),
|
|
47
47
|
// Greater than startPages
|
|
48
|
-
|
|
48
|
+
o + 2
|
|
49
49
|
), x = Math.min(
|
|
50
50
|
Math.max(
|
|
51
51
|
// Natural end
|
|
52
|
-
d +
|
|
52
|
+
d + w,
|
|
53
53
|
// Upper boundary when page is low
|
|
54
|
-
|
|
54
|
+
o + w * 2 + 2
|
|
55
55
|
),
|
|
56
56
|
// Less than endPages
|
|
57
|
-
|
|
58
|
-
),
|
|
59
|
-
...
|
|
57
|
+
r - o - 1
|
|
58
|
+
), M = [
|
|
59
|
+
...S ? ["first"] : [],
|
|
60
60
|
...y ? [] : ["previous"],
|
|
61
61
|
...g,
|
|
62
62
|
// Start ellipsis
|
|
63
63
|
// eslint-disable-next-line no-nested-ternary
|
|
64
|
-
...m >
|
|
64
|
+
...m > o + 2 ? ["start-ellipsis"] : o + 1 < r - o ? [o + 1] : [],
|
|
65
65
|
// Sibling pages
|
|
66
|
-
|
|
66
|
+
...k(m, x),
|
|
67
67
|
// End ellipsis
|
|
68
68
|
// eslint-disable-next-line no-nested-ternary
|
|
69
|
-
...x <
|
|
70
|
-
...
|
|
69
|
+
...x < r - o - 1 ? ["end-ellipsis"] : r - o > o ? [r - o] : [],
|
|
70
|
+
...z,
|
|
71
71
|
...f ? [] : ["next"],
|
|
72
|
-
|
|
73
|
-
],
|
|
74
|
-
switch (
|
|
72
|
+
...$ ? ["last"] : []
|
|
73
|
+
], O = (n) => {
|
|
74
|
+
switch (n) {
|
|
75
75
|
case "first":
|
|
76
76
|
return 1;
|
|
77
77
|
case "previous":
|
|
@@ -79,61 +79,61 @@ function ct(t = {}) {
|
|
|
79
79
|
case "next":
|
|
80
80
|
return d + 1;
|
|
81
81
|
case "last":
|
|
82
|
-
return
|
|
82
|
+
return r;
|
|
83
83
|
default:
|
|
84
84
|
return null;
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
return {
|
|
88
|
-
items:
|
|
88
|
+
items: M.map((n) => typeof n == "number" ? {
|
|
89
89
|
onClick: (i) => {
|
|
90
|
-
|
|
90
|
+
L(i, n);
|
|
91
91
|
},
|
|
92
92
|
type: "page",
|
|
93
|
-
page:
|
|
94
|
-
selected:
|
|
95
|
-
disabled:
|
|
96
|
-
"aria-current":
|
|
93
|
+
page: n,
|
|
94
|
+
selected: n === d,
|
|
95
|
+
disabled: p,
|
|
96
|
+
"aria-current": n === d ? "page" : void 0
|
|
97
97
|
} : {
|
|
98
98
|
onClick: (i) => {
|
|
99
|
-
|
|
99
|
+
L(i, O(n));
|
|
100
100
|
},
|
|
101
|
-
type:
|
|
102
|
-
page:
|
|
101
|
+
type: n,
|
|
102
|
+
page: O(n),
|
|
103
103
|
selected: !1,
|
|
104
|
-
disabled:
|
|
104
|
+
disabled: p || !n.includes("ellipsis") && (n === "next" || n === "last" ? d >= r : d <= 1)
|
|
105
105
|
}),
|
|
106
|
-
...
|
|
106
|
+
...C
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
function pt(t) {
|
|
110
|
-
return
|
|
110
|
+
return J("MuiPaginationItem", t);
|
|
111
111
|
}
|
|
112
|
-
const l =
|
|
112
|
+
const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), ct = j(/* @__PURE__ */ s("path", {
|
|
113
113
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
114
|
-
}), "FirstPage"),
|
|
114
|
+
}), "FirstPage"), dt = j(/* @__PURE__ */ s("path", {
|
|
115
115
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
116
|
-
}), "LastPage"),
|
|
116
|
+
}), "LastPage"), ut = j(/* @__PURE__ */ s("path", {
|
|
117
117
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
118
|
-
}), "NavigateBefore"),
|
|
118
|
+
}), "NavigateBefore"), gt = j(/* @__PURE__ */ s("path", {
|
|
119
119
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
120
|
-
}), "NavigateNext"),
|
|
120
|
+
}), "NavigateNext"), Y = (t, o) => {
|
|
121
121
|
const {
|
|
122
|
-
ownerState:
|
|
122
|
+
ownerState: a
|
|
123
123
|
} = t;
|
|
124
|
-
return [
|
|
125
|
-
},
|
|
124
|
+
return [o.root, o[a.variant], o[`size${h(a.size)}`], a.variant === "text" && o[`text${h(a.color)}`], a.variant === "outlined" && o[`outlined${h(a.color)}`], a.shape === "rounded" && o.rounded, a.type === "page" && o.page, (a.type === "start-ellipsis" || a.type === "end-ellipsis") && o.ellipsis, (a.type === "previous" || a.type === "next") && o.previousNext, (a.type === "first" || a.type === "last") && o.firstLast];
|
|
125
|
+
}, vt = (t) => {
|
|
126
126
|
const {
|
|
127
|
-
classes:
|
|
128
|
-
color:
|
|
129
|
-
disabled:
|
|
127
|
+
classes: o,
|
|
128
|
+
color: a,
|
|
129
|
+
disabled: r,
|
|
130
130
|
selected: v,
|
|
131
|
-
size:
|
|
131
|
+
size: p,
|
|
132
132
|
shape: f,
|
|
133
133
|
type: y,
|
|
134
134
|
variant: b
|
|
135
135
|
} = t, P = {
|
|
136
|
-
root: ["root", `size${
|
|
136
|
+
root: ["root", `size${h(p)}`, b, f, a !== "standard" && `color${h(a)}`, a !== "standard" && `${b}${h(a)}`, r && "disabled", v && "selected", {
|
|
137
137
|
page: "page",
|
|
138
138
|
first: "firstLast",
|
|
139
139
|
last: "firstLast",
|
|
@@ -144,11 +144,11 @@ const l = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
144
144
|
}[y]],
|
|
145
145
|
icon: ["icon"]
|
|
146
146
|
};
|
|
147
|
-
return
|
|
148
|
-
},
|
|
147
|
+
return X(P, pt, o);
|
|
148
|
+
}, ft = B("div", {
|
|
149
149
|
name: "MuiPaginationItem",
|
|
150
150
|
slot: "Root",
|
|
151
|
-
overridesResolver:
|
|
151
|
+
overridesResolver: Y
|
|
152
152
|
})(F(({
|
|
153
153
|
theme: t
|
|
154
154
|
}) => ({
|
|
@@ -185,10 +185,10 @@ const l = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
185
185
|
fontSize: t.typography.pxToRem(15)
|
|
186
186
|
}
|
|
187
187
|
}]
|
|
188
|
-
}))),
|
|
188
|
+
}))), yt = B(st, {
|
|
189
189
|
name: "MuiPaginationItem",
|
|
190
190
|
slot: "Root",
|
|
191
|
-
overridesResolver:
|
|
191
|
+
overridesResolver: Y
|
|
192
192
|
})(F(({
|
|
193
193
|
theme: t
|
|
194
194
|
}) => ({
|
|
@@ -220,14 +220,14 @@ const l = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
220
220
|
[`&.${l.selected}`]: {
|
|
221
221
|
backgroundColor: (t.vars || t).palette.action.selected,
|
|
222
222
|
"&:hover": {
|
|
223
|
-
backgroundColor: t.vars
|
|
223
|
+
backgroundColor: t.alpha((t.vars || t).palette.action.selected, `${(t.vars || t).palette.action.selectedOpacity} + ${(t.vars || t).palette.action.hoverOpacity}`),
|
|
224
224
|
// Reset on touch devices, it doesn't add specificity
|
|
225
225
|
"@media (hover: none)": {
|
|
226
226
|
backgroundColor: (t.vars || t).palette.action.selected
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
[`&.${l.focusVisible}`]: {
|
|
230
|
-
backgroundColor: t.vars
|
|
230
|
+
backgroundColor: t.alpha((t.vars || t).palette.action.selected, `${(t.vars || t).palette.action.selectedOpacity} + ${(t.vars || t).palette.action.focusOpacity}`)
|
|
231
231
|
},
|
|
232
232
|
[`&.${l.disabled}`]: {
|
|
233
233
|
opacity: 1,
|
|
@@ -269,7 +269,7 @@ const l = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
269
269
|
variant: "outlined"
|
|
270
270
|
},
|
|
271
271
|
style: {
|
|
272
|
-
border: t.vars ? `1px solid
|
|
272
|
+
border: t.vars ? `1px solid ${t.alpha(t.vars.palette.common.onBackground, 0.23)}` : `1px solid ${t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
273
273
|
[`&.${l.selected}`]: {
|
|
274
274
|
[`&.${l.disabled}`]: {
|
|
275
275
|
borderColor: (t.vars || t).palette.action.disabledBackground,
|
|
@@ -288,54 +288,54 @@ const l = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
}, ...Object.entries(t.palette).filter(
|
|
291
|
+
}, ...Object.entries(t.palette).filter(D(["dark", "contrastText"])).map(([o]) => ({
|
|
292
292
|
props: {
|
|
293
293
|
variant: "text",
|
|
294
|
-
color:
|
|
294
|
+
color: o
|
|
295
295
|
},
|
|
296
296
|
style: {
|
|
297
297
|
[`&.${l.selected}`]: {
|
|
298
|
-
color: (t.vars || t).palette[
|
|
299
|
-
backgroundColor: (t.vars || t).palette[
|
|
298
|
+
color: (t.vars || t).palette[o].contrastText,
|
|
299
|
+
backgroundColor: (t.vars || t).palette[o].main,
|
|
300
300
|
"&:hover": {
|
|
301
|
-
backgroundColor: (t.vars || t).palette[
|
|
301
|
+
backgroundColor: (t.vars || t).palette[o].dark,
|
|
302
302
|
// Reset on touch devices, it doesn't add specificity
|
|
303
303
|
"@media (hover: none)": {
|
|
304
|
-
backgroundColor: (t.vars || t).palette[
|
|
304
|
+
backgroundColor: (t.vars || t).palette[o].main
|
|
305
305
|
}
|
|
306
306
|
},
|
|
307
307
|
[`&.${l.focusVisible}`]: {
|
|
308
|
-
backgroundColor: (t.vars || t).palette[
|
|
308
|
+
backgroundColor: (t.vars || t).palette[o].dark
|
|
309
309
|
},
|
|
310
310
|
[`&.${l.disabled}`]: {
|
|
311
311
|
color: (t.vars || t).palette.action.disabled
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
})), ...Object.entries(t.palette).filter(
|
|
315
|
+
})), ...Object.entries(t.palette).filter(D(["light"])).map(([o]) => ({
|
|
316
316
|
props: {
|
|
317
317
|
variant: "outlined",
|
|
318
|
-
color:
|
|
318
|
+
color: o
|
|
319
319
|
},
|
|
320
320
|
style: {
|
|
321
321
|
[`&.${l.selected}`]: {
|
|
322
|
-
color: (t.vars || t).palette[
|
|
323
|
-
border: `1px solid ${t.
|
|
324
|
-
backgroundColor: t.
|
|
322
|
+
color: (t.vars || t).palette[o].main,
|
|
323
|
+
border: `1px solid ${t.alpha((t.vars || t).palette[o].main, 0.5)}`,
|
|
324
|
+
backgroundColor: t.alpha((t.vars || t).palette[o].main, (t.vars || t).palette.action.activatedOpacity),
|
|
325
325
|
"&:hover": {
|
|
326
|
-
backgroundColor: t.vars
|
|
326
|
+
backgroundColor: t.alpha((t.vars || t).palette[o].main, `${(t.vars || t).palette.action.activatedOpacity} + ${(t.vars || t).palette.action.focusOpacity}`),
|
|
327
327
|
// Reset on touch devices, it doesn't add specificity
|
|
328
328
|
"@media (hover: none)": {
|
|
329
329
|
backgroundColor: "transparent"
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
[`&.${l.focusVisible}`]: {
|
|
333
|
-
backgroundColor: t.vars
|
|
333
|
+
backgroundColor: t.alpha((t.vars || t).palette[o].main, `${(t.vars || t).palette.action.activatedOpacity} + ${(t.vars || t).palette.action.focusOpacity}`)
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
}))]
|
|
338
|
-
}))),
|
|
338
|
+
}))), bt = B("div", {
|
|
339
339
|
name: "MuiPaginationItem",
|
|
340
340
|
slot: "Icon"
|
|
341
341
|
})(F(({
|
|
@@ -358,94 +358,94 @@ const l = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
358
358
|
fontSize: t.typography.pxToRem(22)
|
|
359
359
|
}
|
|
360
360
|
}]
|
|
361
|
-
}))),
|
|
362
|
-
const
|
|
363
|
-
props:
|
|
361
|
+
}))), Z = /* @__PURE__ */ c.forwardRef(function(o, a) {
|
|
362
|
+
const r = Q({
|
|
363
|
+
props: o,
|
|
364
364
|
name: "MuiPaginationItem"
|
|
365
365
|
}), {
|
|
366
366
|
className: v,
|
|
367
|
-
color:
|
|
367
|
+
color: p = "standard",
|
|
368
368
|
component: f,
|
|
369
369
|
components: y = {},
|
|
370
370
|
disabled: b = !1,
|
|
371
371
|
page: P,
|
|
372
|
-
selected:
|
|
373
|
-
shape:
|
|
374
|
-
size:
|
|
375
|
-
slots:
|
|
372
|
+
selected: S = !1,
|
|
373
|
+
shape: $ = "circular",
|
|
374
|
+
size: w = "medium",
|
|
375
|
+
slots: C = {},
|
|
376
376
|
slotProps: d = {},
|
|
377
377
|
type: u = "page",
|
|
378
|
-
variant:
|
|
379
|
-
|
|
380
|
-
} =
|
|
381
|
-
...
|
|
382
|
-
color:
|
|
378
|
+
variant: L = "text",
|
|
379
|
+
...k
|
|
380
|
+
} = r, g = {
|
|
381
|
+
...r,
|
|
382
|
+
color: p,
|
|
383
383
|
disabled: b,
|
|
384
|
-
selected:
|
|
385
|
-
shape:
|
|
386
|
-
size:
|
|
384
|
+
selected: S,
|
|
385
|
+
shape: $,
|
|
386
|
+
size: w,
|
|
387
387
|
type: u,
|
|
388
|
-
variant:
|
|
389
|
-
},
|
|
388
|
+
variant: L
|
|
389
|
+
}, z = nt(), m = vt(g), x = {
|
|
390
390
|
slots: {
|
|
391
|
-
previous:
|
|
392
|
-
next:
|
|
393
|
-
first:
|
|
394
|
-
last:
|
|
391
|
+
previous: C.previous ?? y.previous,
|
|
392
|
+
next: C.next ?? y.next,
|
|
393
|
+
first: C.first ?? y.first,
|
|
394
|
+
last: C.last ?? y.last
|
|
395
395
|
},
|
|
396
396
|
slotProps: d
|
|
397
|
-
}, [
|
|
398
|
-
elementType:
|
|
397
|
+
}, [M, O] = R("previous", {
|
|
398
|
+
elementType: ut,
|
|
399
399
|
externalForwardedProps: x,
|
|
400
400
|
ownerState: g
|
|
401
|
-
}), [
|
|
402
|
-
elementType:
|
|
401
|
+
}), [T, n] = R("next", {
|
|
402
|
+
elementType: gt,
|
|
403
403
|
externalForwardedProps: x,
|
|
404
404
|
ownerState: g
|
|
405
|
-
}), [i, I] =
|
|
406
|
-
elementType:
|
|
405
|
+
}), [i, I] = R("first", {
|
|
406
|
+
elementType: ct,
|
|
407
407
|
externalForwardedProps: x,
|
|
408
408
|
ownerState: g
|
|
409
|
-
}), [
|
|
410
|
-
elementType:
|
|
409
|
+
}), [A, E] = R("last", {
|
|
410
|
+
elementType: dt,
|
|
411
411
|
externalForwardedProps: x,
|
|
412
412
|
ownerState: g
|
|
413
|
-
}),
|
|
413
|
+
}), U = z ? {
|
|
414
414
|
previous: "next",
|
|
415
415
|
next: "previous",
|
|
416
416
|
first: "last",
|
|
417
417
|
last: "first"
|
|
418
|
-
}[u] : u,
|
|
419
|
-
previous:
|
|
420
|
-
next:
|
|
418
|
+
}[u] : u, V = {
|
|
419
|
+
previous: M,
|
|
420
|
+
next: T,
|
|
421
421
|
first: i,
|
|
422
|
-
last:
|
|
423
|
-
}[
|
|
424
|
-
previous:
|
|
425
|
-
next:
|
|
422
|
+
last: A
|
|
423
|
+
}[U], et = {
|
|
424
|
+
previous: O,
|
|
425
|
+
next: n,
|
|
426
426
|
first: I,
|
|
427
|
-
last:
|
|
428
|
-
}[
|
|
429
|
-
return u === "start-ellipsis" || u === "end-ellipsis" ? /* @__PURE__ */ s(
|
|
430
|
-
ref:
|
|
427
|
+
last: E
|
|
428
|
+
}[U];
|
|
429
|
+
return u === "start-ellipsis" || u === "end-ellipsis" ? /* @__PURE__ */ s(ft, {
|
|
430
|
+
ref: a,
|
|
431
431
|
ownerState: g,
|
|
432
|
-
className:
|
|
432
|
+
className: W(m.root, v),
|
|
433
433
|
children: "…"
|
|
434
|
-
}) : /* @__PURE__ */ ot(
|
|
435
|
-
ref:
|
|
434
|
+
}) : /* @__PURE__ */ ot(yt, {
|
|
435
|
+
ref: a,
|
|
436
436
|
ownerState: g,
|
|
437
437
|
component: f,
|
|
438
438
|
disabled: b,
|
|
439
|
-
className:
|
|
440
|
-
|
|
441
|
-
children: [u === "page" && P,
|
|
442
|
-
...
|
|
439
|
+
className: W(m.root, v),
|
|
440
|
+
...k,
|
|
441
|
+
children: [u === "page" && P, V ? /* @__PURE__ */ s(bt, {
|
|
442
|
+
...et,
|
|
443
443
|
className: m.icon,
|
|
444
|
-
as:
|
|
444
|
+
as: V
|
|
445
445
|
}) : null]
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
|
-
process.env.NODE_ENV !== "production" && (
|
|
448
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
449
449
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
450
450
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
451
451
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -548,25 +548,25 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
|
548
548
|
*/
|
|
549
549
|
variant: e.oneOfType([e.oneOf(["outlined", "text"]), e.string])
|
|
550
550
|
});
|
|
551
|
-
const
|
|
551
|
+
const xt = (t) => {
|
|
552
552
|
const {
|
|
553
|
-
classes:
|
|
554
|
-
variant:
|
|
553
|
+
classes: o,
|
|
554
|
+
variant: a
|
|
555
555
|
} = t;
|
|
556
|
-
return
|
|
557
|
-
root: ["root",
|
|
556
|
+
return X({
|
|
557
|
+
root: ["root", a],
|
|
558
558
|
ul: ["ul"]
|
|
559
|
-
},
|
|
560
|
-
},
|
|
559
|
+
}, it, o);
|
|
560
|
+
}, mt = B("nav", {
|
|
561
561
|
name: "MuiPagination",
|
|
562
562
|
slot: "Root",
|
|
563
|
-
overridesResolver: (t,
|
|
563
|
+
overridesResolver: (t, o) => {
|
|
564
564
|
const {
|
|
565
|
-
ownerState:
|
|
565
|
+
ownerState: a
|
|
566
566
|
} = t;
|
|
567
|
-
return [
|
|
567
|
+
return [o.root, o[a.variant]];
|
|
568
568
|
}
|
|
569
|
-
})({}),
|
|
569
|
+
})({}), Pt = B("ul", {
|
|
570
570
|
name: "MuiPagination",
|
|
571
571
|
slot: "Ul"
|
|
572
572
|
})({
|
|
@@ -577,73 +577,73 @@ const mt = (t) => {
|
|
|
577
577
|
margin: 0,
|
|
578
578
|
listStyle: "none"
|
|
579
579
|
});
|
|
580
|
-
function wt(t,
|
|
581
|
-
return t === "page" ? `${
|
|
580
|
+
function wt(t, o, a) {
|
|
581
|
+
return t === "page" ? `${a ? "" : "Go to "}page ${o}` : `Go to ${t} page`;
|
|
582
582
|
}
|
|
583
|
-
const
|
|
584
|
-
const
|
|
585
|
-
props:
|
|
583
|
+
const tt = /* @__PURE__ */ c.forwardRef(function(o, a) {
|
|
584
|
+
const r = Q({
|
|
585
|
+
props: o,
|
|
586
586
|
name: "MuiPagination"
|
|
587
587
|
}), {
|
|
588
588
|
boundaryCount: v = 1,
|
|
589
|
-
className:
|
|
589
|
+
className: p,
|
|
590
590
|
color: f = "standard",
|
|
591
591
|
count: y = 1,
|
|
592
592
|
defaultPage: b = 1,
|
|
593
593
|
disabled: P = !1,
|
|
594
|
-
getItemAriaLabel:
|
|
595
|
-
hideNextButton:
|
|
596
|
-
hidePrevButton:
|
|
597
|
-
onChange:
|
|
594
|
+
getItemAriaLabel: S = wt,
|
|
595
|
+
hideNextButton: $ = !1,
|
|
596
|
+
hidePrevButton: w = !1,
|
|
597
|
+
onChange: C,
|
|
598
598
|
page: d,
|
|
599
|
-
renderItem: u = (i) => /* @__PURE__ */ s(
|
|
599
|
+
renderItem: u = (i) => /* @__PURE__ */ s(Z, {
|
|
600
600
|
...i
|
|
601
601
|
}),
|
|
602
|
-
shape:
|
|
603
|
-
showFirstButton:
|
|
602
|
+
shape: L = "circular",
|
|
603
|
+
showFirstButton: k = !1,
|
|
604
604
|
showLastButton: g = !1,
|
|
605
|
-
siblingCount:
|
|
605
|
+
siblingCount: z = 1,
|
|
606
606
|
size: m = "medium",
|
|
607
607
|
variant: x = "text",
|
|
608
|
-
...
|
|
609
|
-
} =
|
|
610
|
-
items:
|
|
611
|
-
} =
|
|
612
|
-
...
|
|
608
|
+
...M
|
|
609
|
+
} = r, {
|
|
610
|
+
items: O
|
|
611
|
+
} = lt({
|
|
612
|
+
...r,
|
|
613
613
|
componentName: "Pagination"
|
|
614
|
-
}),
|
|
615
|
-
...
|
|
614
|
+
}), T = {
|
|
615
|
+
...r,
|
|
616
616
|
boundaryCount: v,
|
|
617
617
|
color: f,
|
|
618
618
|
count: y,
|
|
619
619
|
defaultPage: b,
|
|
620
620
|
disabled: P,
|
|
621
|
-
getItemAriaLabel:
|
|
622
|
-
hideNextButton:
|
|
623
|
-
hidePrevButton:
|
|
621
|
+
getItemAriaLabel: S,
|
|
622
|
+
hideNextButton: $,
|
|
623
|
+
hidePrevButton: w,
|
|
624
624
|
renderItem: u,
|
|
625
|
-
shape:
|
|
626
|
-
showFirstButton:
|
|
625
|
+
shape: L,
|
|
626
|
+
showFirstButton: k,
|
|
627
627
|
showLastButton: g,
|
|
628
|
-
siblingCount:
|
|
628
|
+
siblingCount: z,
|
|
629
629
|
size: m,
|
|
630
630
|
variant: x
|
|
631
|
-
},
|
|
632
|
-
return /* @__PURE__ */ s(
|
|
631
|
+
}, n = xt(T);
|
|
632
|
+
return /* @__PURE__ */ s(mt, {
|
|
633
633
|
"aria-label": "pagination navigation",
|
|
634
|
-
className:
|
|
635
|
-
ownerState:
|
|
636
|
-
ref:
|
|
637
|
-
...
|
|
638
|
-
children: /* @__PURE__ */ s(
|
|
639
|
-
className:
|
|
640
|
-
ownerState:
|
|
641
|
-
children:
|
|
634
|
+
className: W(n.root, p),
|
|
635
|
+
ownerState: T,
|
|
636
|
+
ref: a,
|
|
637
|
+
...M,
|
|
638
|
+
children: /* @__PURE__ */ s(Pt, {
|
|
639
|
+
className: n.ul,
|
|
640
|
+
ownerState: T,
|
|
641
|
+
children: O.map((i, I) => /* @__PURE__ */ s("li", {
|
|
642
642
|
children: u({
|
|
643
643
|
...i,
|
|
644
644
|
color: f,
|
|
645
|
-
"aria-label":
|
|
646
|
-
shape:
|
|
645
|
+
"aria-label": S(i.type, i.page, i.selected),
|
|
646
|
+
shape: L,
|
|
647
647
|
size: m,
|
|
648
648
|
variant: x
|
|
649
649
|
})
|
|
@@ -651,7 +651,7 @@ const et = /* @__PURE__ */ p.forwardRef(function(a, o) {
|
|
|
651
651
|
})
|
|
652
652
|
});
|
|
653
653
|
});
|
|
654
|
-
process.env.NODE_ENV !== "production" && (
|
|
654
|
+
process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
655
655
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
656
656
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
657
657
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -660,7 +660,7 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
660
660
|
* Number of always visible pages at the beginning and end.
|
|
661
661
|
* @default 1
|
|
662
662
|
*/
|
|
663
|
-
boundaryCount:
|
|
663
|
+
boundaryCount: N,
|
|
664
664
|
/**
|
|
665
665
|
* Override or extend the styles applied to the component.
|
|
666
666
|
*/
|
|
@@ -680,12 +680,12 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
680
680
|
* The total number of pages.
|
|
681
681
|
* @default 1
|
|
682
682
|
*/
|
|
683
|
-
count:
|
|
683
|
+
count: N,
|
|
684
684
|
/**
|
|
685
685
|
* The page selected by default when the component is uncontrolled.
|
|
686
686
|
* @default 1
|
|
687
687
|
*/
|
|
688
|
-
defaultPage:
|
|
688
|
+
defaultPage: N,
|
|
689
689
|
/**
|
|
690
690
|
* If `true`, the component is disabled.
|
|
691
691
|
* @default false
|
|
@@ -722,7 +722,7 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
722
722
|
/**
|
|
723
723
|
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
724
724
|
*/
|
|
725
|
-
page:
|
|
725
|
+
page: N,
|
|
726
726
|
/**
|
|
727
727
|
* Render the item.
|
|
728
728
|
* @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
|
|
@@ -749,7 +749,7 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
749
749
|
* Number of always visible pages before and after the current page.
|
|
750
750
|
* @default 1
|
|
751
751
|
*/
|
|
752
|
-
siblingCount:
|
|
752
|
+
siblingCount: N,
|
|
753
753
|
/**
|
|
754
754
|
* The size of the component.
|
|
755
755
|
* @default 'medium'
|
|
@@ -765,36 +765,37 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
765
765
|
*/
|
|
766
766
|
variant: e.oneOfType([e.oneOf(["outlined", "text"]), e.string])
|
|
767
767
|
});
|
|
768
|
-
|
|
768
|
+
const G = (t) => /* @__PURE__ */ c.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ c.createElement("path", { id: "vector", d: "M17.5 5L10.5 12L17.5 19M7.5 5L7.5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), _ = (t) => /* @__PURE__ */ c.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ c.createElement("path", { id: "vector", d: "M7.5 4.99998L14.5 12L7.5 19M17.5 4.99998L17.5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), H = (t) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), q = (t) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
769
|
+
function $t({
|
|
769
770
|
isRtl: t,
|
|
770
|
-
pageCount:
|
|
771
|
-
page:
|
|
772
|
-
onPageChange:
|
|
771
|
+
pageCount: o,
|
|
772
|
+
page: a,
|
|
773
|
+
onPageChange: r,
|
|
773
774
|
className: v
|
|
774
775
|
}) {
|
|
775
776
|
return /* @__PURE__ */ s(
|
|
776
|
-
|
|
777
|
+
tt,
|
|
777
778
|
{
|
|
778
779
|
showFirstButton: !0,
|
|
779
780
|
showLastButton: !0,
|
|
780
781
|
className: v,
|
|
781
|
-
count:
|
|
782
|
-
page:
|
|
783
|
-
onChange: (
|
|
784
|
-
|
|
782
|
+
count: o,
|
|
783
|
+
page: a + 1,
|
|
784
|
+
onChange: (p, f) => {
|
|
785
|
+
r(p, f - 1);
|
|
785
786
|
},
|
|
786
787
|
boundaryCount: 0,
|
|
787
788
|
siblingCount: 1,
|
|
788
|
-
renderItem: (
|
|
789
|
-
|
|
789
|
+
renderItem: (p) => /* @__PURE__ */ s(
|
|
790
|
+
at,
|
|
790
791
|
{
|
|
791
792
|
slots: {
|
|
792
|
-
previous: () => t ? /* @__PURE__ */ s(
|
|
793
|
-
next: () => t ? /* @__PURE__ */ s(
|
|
794
|
-
first: () => t ? /* @__PURE__ */ s(
|
|
795
|
-
last: () => t ? /* @__PURE__ */ s(
|
|
793
|
+
previous: () => t ? /* @__PURE__ */ s(H, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(q, { color: "var(--color-primary)" }),
|
|
794
|
+
next: () => t ? /* @__PURE__ */ s(q, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(H, { color: "var(--color-primary)" }),
|
|
795
|
+
first: () => t ? /* @__PURE__ */ s(_, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(G, { color: "var(--color-primary)" }),
|
|
796
|
+
last: () => t ? /* @__PURE__ */ s(G, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(_, { color: "var(--color-primary)" })
|
|
796
797
|
},
|
|
797
|
-
...
|
|
798
|
+
...p
|
|
798
799
|
}
|
|
799
800
|
),
|
|
800
801
|
sx: {
|
|
@@ -813,10 +814,6 @@ function Ot({
|
|
|
813
814
|
}
|
|
814
815
|
);
|
|
815
816
|
}
|
|
816
|
-
function zt({ isRtl: t, pageCount: a }) {
|
|
817
|
-
return /* @__PURE__ */ s(nt, { ActionsComponent: (o) => /* @__PURE__ */ s(Ot, { isRtl: t, pageCount: a, ...o }) });
|
|
818
|
-
}
|
|
819
817
|
export {
|
|
820
|
-
|
|
821
|
-
Ot as Pagination
|
|
818
|
+
$t as PassportPagination
|
|
822
819
|
};
|