@amateescu/portal-ui-components 0.0.28 → 0.0.30-beta
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/Box-ZFRI9JCw.js +102 -0
- package/dist/Button-CNfTnafe.js +676 -0
- package/dist/ButtonBase-DWpUn0eT.js +965 -0
- package/dist/CircularProgress-D6RyizwS.js +247 -0
- package/dist/{EllipsisOutlined-DZsCEqiL.js → EllipsisOutlined-CzFuvGH_.js} +3 -3
- package/dist/{PurePanel-iUNZWTe_.js → PurePanel-CxlAi3G7.js} +3 -3
- package/dist/{Skeleton-CfEiGUkR.js → Skeleton-dypyF9G2.js} +2 -2
- package/dist/{UserInfoDropdown-CoZutJAR.js → UserInfoDropdown-DPyds49a.js} +763 -769
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
- package/dist/components/CustomButton/CustomButton.js +1 -1
- package/dist/components/CustomButton/CustomButton.stories.d.ts +1 -0
- package/dist/components/CustomButton/CustomButton.stories.js +21 -7
- package/dist/components/CustomFooter/CustomFooter.js +1 -1
- package/dist/components/CustomPagination/CustomPagination.js +484 -372
- package/dist/components/ErrorModal/ErrorModal.js +1 -1
- package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
- package/dist/components/InfoModal/InfoModal.js +1 -1
- package/dist/components/InfoModal/InfoModal.stories.js +1 -1
- package/dist/components/KpiCard/KpiCard.js +355 -351
- package/dist/components/LoadingAnimation/LoadingAnimation.js +6 -215
- package/dist/components/Login/Login.js +4638 -3844
- package/dist/components/Login/Login.stories.js +15693 -14785
- package/dist/components/SideMenu/SideMenu.js +1 -1
- package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{context-Crxhk7DD.js → context-Bk4VnwMB.js} +7 -7
- package/dist/createSimplePaletteValueFilter-rq2_biPF.js +3443 -0
- package/dist/createSvgIcon-jB7EUYpq.js +248 -0
- package/dist/{index-BxiDYyNJ.js → index-DLbr86ak.js} +511 -513
- package/dist/{index-DpDv68WZ.js → index-xh_JY2OQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
- package/dist/useSlot-CT4096EK.js +188 -0
- package/package.json +31 -31
- package/dist/Box-C1OwXVV-.js +0 -68
- package/dist/Button-CIvE-fcO.js +0 -355
- package/dist/ButtonBase-BeQnmGXr.js +0 -966
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/createSvgIcon-Db107M0j.js +0 -250
- package/dist/generateUtilityClasses-DY-qyzNG.js +0 -3427
- package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +0 -46
|
@@ -1,139 +1,140 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as l, jsxs as ot } from "react/jsx-runtime";
|
|
2
|
+
import * as c from "react";
|
|
3
3
|
import '../../assets/theme.css';/* empty css */
|
|
4
|
-
import { GridPagination as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { B as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return
|
|
4
|
+
import { GridPagination as nt } from "@mui/x-data-grid";
|
|
5
|
+
import { g as Q, a as X, u as Y, s as R, c as A, b as T, d as Z, m as F, i as S, e as _, P as e } from "../../createSimplePaletteValueFilter-rq2_biPF.js";
|
|
6
|
+
import { u as st, a as rt, b as j, i as B } from "../../useSlot-CT4096EK.js";
|
|
7
|
+
import { c as E } from "../../createSvgIcon-jB7EUYpq.js";
|
|
8
|
+
import { B as it } from "../../ButtonBase-DWpUn0eT.js";
|
|
9
|
+
const H = (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: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), q = (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: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), J = (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: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), K = (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: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
10
|
+
function lt(t) {
|
|
11
|
+
return Q("MuiPagination", t);
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function ca(a = {}) {
|
|
13
|
+
X("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
14
|
+
function pt(t = {}) {
|
|
16
15
|
const {
|
|
17
|
-
boundaryCount:
|
|
18
|
-
componentName:
|
|
16
|
+
boundaryCount: a = 1,
|
|
17
|
+
componentName: o = "usePagination",
|
|
19
18
|
count: n = 1,
|
|
20
19
|
defaultPage: v = 1,
|
|
21
20
|
disabled: p = !1,
|
|
22
21
|
hideNextButton: f = !1,
|
|
23
|
-
hidePrevButton:
|
|
24
|
-
onChange:
|
|
25
|
-
page:
|
|
26
|
-
showFirstButton:
|
|
27
|
-
showLastButton:
|
|
28
|
-
siblingCount:
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
hidePrevButton: b = !1,
|
|
23
|
+
onChange: y,
|
|
24
|
+
page: P,
|
|
25
|
+
showFirstButton: L = !1,
|
|
26
|
+
showLastButton: z = !1,
|
|
27
|
+
siblingCount: C = 1,
|
|
28
|
+
...w
|
|
29
|
+
} = t, [d, u] = st({
|
|
30
|
+
controlled: P,
|
|
31
31
|
default: v,
|
|
32
|
-
name:
|
|
32
|
+
name: o,
|
|
33
33
|
state: "page"
|
|
34
|
-
}),
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
const
|
|
34
|
+
}), O = (s, r) => {
|
|
35
|
+
P || u(r), y && y(s, r);
|
|
36
|
+
}, $ = (s, r) => {
|
|
37
|
+
const I = r - s + 1;
|
|
38
38
|
return Array.from({
|
|
39
|
-
length:
|
|
40
|
-
}, (
|
|
41
|
-
},
|
|
39
|
+
length: I
|
|
40
|
+
}, (V, W) => s + W);
|
|
41
|
+
}, g = $(1, Math.min(a, n)), M = $(Math.max(n - a + 1, a + 1), n), m = Math.max(
|
|
42
42
|
Math.min(
|
|
43
43
|
// Natural start
|
|
44
|
-
|
|
44
|
+
d - C,
|
|
45
45
|
// Lower boundary when page is high
|
|
46
|
-
n -
|
|
46
|
+
n - a - C * 2 - 1
|
|
47
47
|
),
|
|
48
48
|
// Greater than startPages
|
|
49
|
-
|
|
50
|
-
),
|
|
49
|
+
a + 2
|
|
50
|
+
), x = Math.min(
|
|
51
51
|
Math.max(
|
|
52
52
|
// Natural end
|
|
53
|
-
|
|
53
|
+
d + C,
|
|
54
54
|
// Upper boundary when page is low
|
|
55
|
-
|
|
55
|
+
a + C * 2 + 2
|
|
56
56
|
),
|
|
57
57
|
// Less than endPages
|
|
58
|
-
|
|
59
|
-
),
|
|
60
|
-
...
|
|
61
|
-
...
|
|
62
|
-
...
|
|
58
|
+
n - a - 1
|
|
59
|
+
), N = [
|
|
60
|
+
...L ? ["first"] : [],
|
|
61
|
+
...b ? [] : ["previous"],
|
|
62
|
+
...g,
|
|
63
63
|
// Start ellipsis
|
|
64
64
|
// eslint-disable-next-line no-nested-ternary
|
|
65
|
-
...
|
|
65
|
+
...m > a + 2 ? ["start-ellipsis"] : a + 1 < n - a ? [a + 1] : [],
|
|
66
66
|
// Sibling pages
|
|
67
|
-
|
|
67
|
+
...$(m, x),
|
|
68
68
|
// End ellipsis
|
|
69
69
|
// eslint-disable-next-line no-nested-ternary
|
|
70
|
-
...
|
|
71
|
-
...
|
|
70
|
+
...x < n - a - 1 ? ["end-ellipsis"] : n - a > a ? [n - a] : [],
|
|
71
|
+
...M,
|
|
72
72
|
...f ? [] : ["next"],
|
|
73
|
-
...
|
|
74
|
-
],
|
|
73
|
+
...z ? ["last"] : []
|
|
74
|
+
], h = (s) => {
|
|
75
75
|
switch (s) {
|
|
76
76
|
case "first":
|
|
77
77
|
return 1;
|
|
78
78
|
case "previous":
|
|
79
|
-
return
|
|
79
|
+
return d - 1;
|
|
80
80
|
case "next":
|
|
81
|
-
return
|
|
81
|
+
return d + 1;
|
|
82
82
|
case "last":
|
|
83
83
|
return n;
|
|
84
84
|
default:
|
|
85
85
|
return null;
|
|
86
86
|
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
87
|
+
};
|
|
88
|
+
return {
|
|
89
|
+
items: N.map((s) => typeof s == "number" ? {
|
|
90
|
+
onClick: (r) => {
|
|
91
|
+
O(r, s);
|
|
92
|
+
},
|
|
93
|
+
type: "page",
|
|
94
|
+
page: s,
|
|
95
|
+
selected: s === d,
|
|
96
|
+
disabled: p,
|
|
97
|
+
"aria-current": s === d ? "page" : void 0
|
|
98
|
+
} : {
|
|
99
|
+
onClick: (r) => {
|
|
100
|
+
O(r, h(s));
|
|
101
|
+
},
|
|
102
|
+
type: s,
|
|
103
|
+
page: h(s),
|
|
104
|
+
selected: !1,
|
|
105
|
+
disabled: p || !s.includes("ellipsis") && (s === "next" || s === "last" ? d >= n : d <= 1)
|
|
106
|
+
}),
|
|
107
|
+
...w
|
|
108
|
+
};
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
110
|
+
function ct(t) {
|
|
111
|
+
return Q("MuiPaginationItem", t);
|
|
111
112
|
}
|
|
112
|
-
const
|
|
113
|
+
const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), dt = E(/* @__PURE__ */ l("path", {
|
|
113
114
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
114
|
-
}), "FirstPage"),
|
|
115
|
+
}), "FirstPage"), ut = E(/* @__PURE__ */ l("path", {
|
|
115
116
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
116
|
-
}), "LastPage"),
|
|
117
|
+
}), "LastPage"), gt = E(/* @__PURE__ */ l("path", {
|
|
117
118
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
118
|
-
}), "NavigateBefore"),
|
|
119
|
+
}), "NavigateBefore"), vt = E(/* @__PURE__ */ l("path", {
|
|
119
120
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
120
|
-
}), "NavigateNext"),
|
|
121
|
+
}), "NavigateNext"), tt = (t, a) => {
|
|
121
122
|
const {
|
|
122
|
-
ownerState:
|
|
123
|
-
} =
|
|
124
|
-
return [
|
|
125
|
-
},
|
|
123
|
+
ownerState: o
|
|
124
|
+
} = t;
|
|
125
|
+
return [a.root, a[o.variant], a[`size${T(o.size)}`], o.variant === "text" && a[`text${T(o.color)}`], o.variant === "outlined" && a[`outlined${T(o.color)}`], o.shape === "rounded" && a.rounded, o.type === "page" && a.page, (o.type === "start-ellipsis" || o.type === "end-ellipsis") && a.ellipsis, (o.type === "previous" || o.type === "next") && a.previousNext, (o.type === "first" || o.type === "last") && a.firstLast];
|
|
126
|
+
}, ft = (t) => {
|
|
126
127
|
const {
|
|
127
|
-
classes:
|
|
128
|
-
color:
|
|
128
|
+
classes: a,
|
|
129
|
+
color: o,
|
|
129
130
|
disabled: n,
|
|
130
131
|
selected: v,
|
|
131
132
|
size: p,
|
|
132
133
|
shape: f,
|
|
133
|
-
type:
|
|
134
|
-
variant:
|
|
135
|
-
} =
|
|
136
|
-
root: ["root", `size${
|
|
134
|
+
type: b,
|
|
135
|
+
variant: y
|
|
136
|
+
} = t, P = {
|
|
137
|
+
root: ["root", `size${T(p)}`, y, f, o !== "standard" && `color${T(o)}`, o !== "standard" && `${y}${T(o)}`, n && "disabled", v && "selected", {
|
|
137
138
|
page: "page",
|
|
138
139
|
first: "firstLast",
|
|
139
140
|
last: "firstLast",
|
|
@@ -141,47 +142,58 @@ const u = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
141
142
|
"end-ellipsis": "ellipsis",
|
|
142
143
|
previous: "previousNext",
|
|
143
144
|
next: "previousNext"
|
|
144
|
-
}[
|
|
145
|
+
}[b]],
|
|
145
146
|
icon: ["icon"]
|
|
146
147
|
};
|
|
147
|
-
return
|
|
148
|
-
},
|
|
148
|
+
return Z(P, ct, a);
|
|
149
|
+
}, bt = R("div", {
|
|
149
150
|
name: "MuiPaginationItem",
|
|
150
151
|
slot: "Root",
|
|
151
|
-
overridesResolver:
|
|
152
|
-
})(({
|
|
153
|
-
theme:
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
overridesResolver: tt
|
|
153
|
+
})(F(({
|
|
154
|
+
theme: t
|
|
155
|
+
}) => ({
|
|
156
|
+
...t.typography.body2,
|
|
156
157
|
borderRadius: 32 / 2,
|
|
157
158
|
textAlign: "center",
|
|
158
159
|
boxSizing: "border-box",
|
|
159
160
|
minWidth: 32,
|
|
160
161
|
padding: "0 6px",
|
|
161
162
|
margin: "0 3px",
|
|
162
|
-
color: (
|
|
163
|
+
color: (t.vars || t).palette.text.primary,
|
|
163
164
|
height: "auto",
|
|
164
|
-
[`&.${
|
|
165
|
-
opacity: (
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
165
|
+
[`&.${i.disabled}`]: {
|
|
166
|
+
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
167
|
+
},
|
|
168
|
+
variants: [{
|
|
169
|
+
props: {
|
|
170
|
+
size: "small"
|
|
171
|
+
},
|
|
172
|
+
style: {
|
|
173
|
+
minWidth: 26,
|
|
174
|
+
borderRadius: 26 / 2,
|
|
175
|
+
margin: "0 1px",
|
|
176
|
+
padding: "0 4px"
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
props: {
|
|
180
|
+
size: "large"
|
|
181
|
+
},
|
|
182
|
+
style: {
|
|
183
|
+
minWidth: 40,
|
|
184
|
+
borderRadius: 40 / 2,
|
|
185
|
+
padding: "0 10px",
|
|
186
|
+
fontSize: t.typography.pxToRem(15)
|
|
187
|
+
}
|
|
188
|
+
}]
|
|
189
|
+
}))), yt = R(it, {
|
|
178
190
|
name: "MuiPaginationItem",
|
|
179
191
|
slot: "Root",
|
|
180
|
-
overridesResolver:
|
|
181
|
-
})(({
|
|
182
|
-
theme:
|
|
183
|
-
|
|
184
|
-
|
|
192
|
+
overridesResolver: tt
|
|
193
|
+
})(F(({
|
|
194
|
+
theme: t
|
|
195
|
+
}) => ({
|
|
196
|
+
...t.typography.body2,
|
|
185
197
|
borderRadius: 32 / 2,
|
|
186
198
|
textAlign: "center",
|
|
187
199
|
boxSizing: "border-box",
|
|
@@ -189,169 +201,253 @@ const u = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
189
201
|
height: 32,
|
|
190
202
|
padding: "0 6px",
|
|
191
203
|
margin: "0 3px",
|
|
192
|
-
color: (
|
|
193
|
-
[`&.${
|
|
194
|
-
backgroundColor: (
|
|
204
|
+
color: (t.vars || t).palette.text.primary,
|
|
205
|
+
[`&.${i.focusVisible}`]: {
|
|
206
|
+
backgroundColor: (t.vars || t).palette.action.focus
|
|
195
207
|
},
|
|
196
|
-
[`&.${
|
|
197
|
-
opacity: (
|
|
208
|
+
[`&.${i.disabled}`]: {
|
|
209
|
+
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
198
210
|
},
|
|
199
|
-
transition:
|
|
200
|
-
duration:
|
|
211
|
+
transition: t.transitions.create(["color", "background-color"], {
|
|
212
|
+
duration: t.transitions.duration.short
|
|
201
213
|
}),
|
|
202
214
|
"&:hover": {
|
|
203
|
-
backgroundColor: (
|
|
215
|
+
backgroundColor: (t.vars || t).palette.action.hover,
|
|
204
216
|
// Reset on touch devices, it doesn't add specificity
|
|
205
217
|
"@media (hover: none)": {
|
|
206
218
|
backgroundColor: "transparent"
|
|
207
219
|
}
|
|
208
220
|
},
|
|
209
|
-
[`&.${
|
|
210
|
-
backgroundColor: (
|
|
221
|
+
[`&.${i.selected}`]: {
|
|
222
|
+
backgroundColor: (t.vars || t).palette.action.selected,
|
|
211
223
|
"&:hover": {
|
|
212
|
-
backgroundColor:
|
|
224
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
213
225
|
// Reset on touch devices, it doesn't add specificity
|
|
214
226
|
"@media (hover: none)": {
|
|
215
|
-
backgroundColor: (
|
|
227
|
+
backgroundColor: (t.vars || t).palette.action.selected
|
|
216
228
|
}
|
|
217
229
|
},
|
|
218
|
-
[`&.${
|
|
219
|
-
backgroundColor:
|
|
230
|
+
[`&.${i.focusVisible}`]: {
|
|
231
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
220
232
|
},
|
|
221
|
-
[`&.${
|
|
233
|
+
[`&.${i.disabled}`]: {
|
|
222
234
|
opacity: 1,
|
|
223
|
-
color: (
|
|
224
|
-
backgroundColor: (
|
|
235
|
+
color: (t.vars || t).palette.action.disabled,
|
|
236
|
+
backgroundColor: (t.vars || t).palette.action.selected
|
|
225
237
|
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
borderRadius: 26 / 2,
|
|
231
|
-
margin: "0 1px",
|
|
232
|
-
padding: "0 4px"
|
|
233
|
-
}, t.size === "large" && {
|
|
234
|
-
minWidth: 40,
|
|
235
|
-
height: 40,
|
|
236
|
-
borderRadius: 40 / 2,
|
|
237
|
-
padding: "0 10px",
|
|
238
|
-
fontSize: a.typography.pxToRem(15)
|
|
239
|
-
}, t.shape === "rounded" && {
|
|
240
|
-
borderRadius: (a.vars || a).shape.borderRadius
|
|
241
|
-
}), ({
|
|
242
|
-
theme: a,
|
|
243
|
-
ownerState: t
|
|
244
|
-
}) => l({}, t.variant === "text" && {
|
|
245
|
-
[`&.${u.selected}`]: l({}, t.color !== "standard" && {
|
|
246
|
-
color: (a.vars || a).palette[t.color].contrastText,
|
|
247
|
-
backgroundColor: (a.vars || a).palette[t.color].main,
|
|
248
|
-
"&:hover": {
|
|
249
|
-
backgroundColor: (a.vars || a).palette[t.color].dark,
|
|
250
|
-
// Reset on touch devices, it doesn't add specificity
|
|
251
|
-
"@media (hover: none)": {
|
|
252
|
-
backgroundColor: (a.vars || a).palette[t.color].main
|
|
253
|
-
}
|
|
238
|
+
},
|
|
239
|
+
variants: [{
|
|
240
|
+
props: {
|
|
241
|
+
size: "small"
|
|
254
242
|
},
|
|
255
|
-
|
|
256
|
-
|
|
243
|
+
style: {
|
|
244
|
+
minWidth: 26,
|
|
245
|
+
height: 26,
|
|
246
|
+
borderRadius: 26 / 2,
|
|
247
|
+
margin: "0 1px",
|
|
248
|
+
padding: "0 4px"
|
|
257
249
|
}
|
|
258
250
|
}, {
|
|
259
|
-
|
|
260
|
-
|
|
251
|
+
props: {
|
|
252
|
+
size: "large"
|
|
253
|
+
},
|
|
254
|
+
style: {
|
|
255
|
+
minWidth: 40,
|
|
256
|
+
height: 40,
|
|
257
|
+
borderRadius: 40 / 2,
|
|
258
|
+
padding: "0 10px",
|
|
259
|
+
fontSize: t.typography.pxToRem(15)
|
|
261
260
|
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
"@media (hover: none)": {
|
|
273
|
-
backgroundColor: "transparent"
|
|
274
|
-
}
|
|
261
|
+
}, {
|
|
262
|
+
props: {
|
|
263
|
+
shape: "rounded"
|
|
264
|
+
},
|
|
265
|
+
style: {
|
|
266
|
+
borderRadius: (t.vars || t).shape.borderRadius
|
|
267
|
+
}
|
|
268
|
+
}, {
|
|
269
|
+
props: {
|
|
270
|
+
variant: "outlined"
|
|
275
271
|
},
|
|
276
|
-
|
|
277
|
-
|
|
272
|
+
style: {
|
|
273
|
+
border: t.vars ? `1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
274
|
+
[`&.${i.selected}`]: {
|
|
275
|
+
[`&.${i.disabled}`]: {
|
|
276
|
+
borderColor: (t.vars || t).palette.action.disabledBackground,
|
|
277
|
+
color: (t.vars || t).palette.action.disabled
|
|
278
|
+
}
|
|
279
|
+
}
|
|
278
280
|
}
|
|
279
281
|
}, {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
282
|
+
props: {
|
|
283
|
+
variant: "text"
|
|
284
|
+
},
|
|
285
|
+
style: {
|
|
286
|
+
[`&.${i.selected}`]: {
|
|
287
|
+
[`&.${i.disabled}`]: {
|
|
288
|
+
color: (t.vars || t).palette.action.disabled
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}, ...Object.entries(t.palette).filter(_(["dark", "contrastText"])).map(([a]) => ({
|
|
293
|
+
props: {
|
|
294
|
+
variant: "text",
|
|
295
|
+
color: a
|
|
296
|
+
},
|
|
297
|
+
style: {
|
|
298
|
+
[`&.${i.selected}`]: {
|
|
299
|
+
color: (t.vars || t).palette[a].contrastText,
|
|
300
|
+
backgroundColor: (t.vars || t).palette[a].main,
|
|
301
|
+
"&:hover": {
|
|
302
|
+
backgroundColor: (t.vars || t).palette[a].dark,
|
|
303
|
+
// Reset on touch devices, it doesn't add specificity
|
|
304
|
+
"@media (hover: none)": {
|
|
305
|
+
backgroundColor: (t.vars || t).palette[a].main
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
[`&.${i.focusVisible}`]: {
|
|
309
|
+
backgroundColor: (t.vars || t).palette[a].dark
|
|
310
|
+
},
|
|
311
|
+
[`&.${i.disabled}`]: {
|
|
312
|
+
color: (t.vars || t).palette.action.disabled
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
})), ...Object.entries(t.palette).filter(_(["light"])).map(([a]) => ({
|
|
317
|
+
props: {
|
|
318
|
+
variant: "outlined",
|
|
319
|
+
color: a
|
|
320
|
+
},
|
|
321
|
+
style: {
|
|
322
|
+
[`&.${i.selected}`]: {
|
|
323
|
+
color: (t.vars || t).palette[a].main,
|
|
324
|
+
border: `1px solid ${t.vars ? `rgba(${t.vars.palette[a].mainChannel} / 0.5)` : S(t.palette[a].main, 0.5)}`,
|
|
325
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.activatedOpacity})` : S(t.palette[a].main, t.palette.action.activatedOpacity),
|
|
326
|
+
"&:hover": {
|
|
327
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette[a].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity),
|
|
328
|
+
// Reset on touch devices, it doesn't add specificity
|
|
329
|
+
"@media (hover: none)": {
|
|
330
|
+
backgroundColor: "transparent"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
[`&.${i.focusVisible}`]: {
|
|
334
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette[a].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity)
|
|
335
|
+
}
|
|
336
|
+
}
|
|
283
337
|
}
|
|
284
|
-
})
|
|
285
|
-
})),
|
|
338
|
+
}))]
|
|
339
|
+
}))), xt = R("div", {
|
|
286
340
|
name: "MuiPaginationItem",
|
|
287
341
|
slot: "Icon",
|
|
288
|
-
overridesResolver: (
|
|
289
|
-
})(({
|
|
290
|
-
theme:
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
342
|
+
overridesResolver: (t, a) => a.icon
|
|
343
|
+
})(F(({
|
|
344
|
+
theme: t
|
|
345
|
+
}) => ({
|
|
346
|
+
fontSize: t.typography.pxToRem(20),
|
|
347
|
+
margin: "0 -8px",
|
|
348
|
+
variants: [{
|
|
349
|
+
props: {
|
|
350
|
+
size: "small"
|
|
351
|
+
},
|
|
352
|
+
style: {
|
|
353
|
+
fontSize: t.typography.pxToRem(18)
|
|
354
|
+
}
|
|
355
|
+
}, {
|
|
356
|
+
props: {
|
|
357
|
+
size: "large"
|
|
358
|
+
},
|
|
359
|
+
style: {
|
|
360
|
+
fontSize: t.typography.pxToRem(22)
|
|
361
|
+
}
|
|
362
|
+
}]
|
|
363
|
+
}))), U = /* @__PURE__ */ c.forwardRef(function(a, o) {
|
|
364
|
+
const n = Y({
|
|
365
|
+
props: a,
|
|
302
366
|
name: "MuiPaginationItem"
|
|
303
367
|
}), {
|
|
304
368
|
className: v,
|
|
305
369
|
color: p = "standard",
|
|
306
370
|
component: f,
|
|
307
|
-
components:
|
|
308
|
-
disabled:
|
|
309
|
-
page:
|
|
310
|
-
selected:
|
|
311
|
-
shape:
|
|
312
|
-
size:
|
|
313
|
-
slots:
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
371
|
+
components: b = {},
|
|
372
|
+
disabled: y = !1,
|
|
373
|
+
page: P,
|
|
374
|
+
selected: L = !1,
|
|
375
|
+
shape: z = "circular",
|
|
376
|
+
size: C = "medium",
|
|
377
|
+
slots: w = {},
|
|
378
|
+
slotProps: d = {},
|
|
379
|
+
type: u = "page",
|
|
380
|
+
variant: O = "text",
|
|
381
|
+
...$
|
|
382
|
+
} = n, g = {
|
|
383
|
+
...n,
|
|
317
384
|
color: p,
|
|
318
|
-
disabled:
|
|
319
|
-
selected:
|
|
320
|
-
shape:
|
|
321
|
-
size:
|
|
322
|
-
type:
|
|
323
|
-
variant:
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
385
|
+
disabled: y,
|
|
386
|
+
selected: L,
|
|
387
|
+
shape: z,
|
|
388
|
+
size: C,
|
|
389
|
+
type: u,
|
|
390
|
+
variant: O
|
|
391
|
+
}, M = rt(), m = ft(g), x = {
|
|
392
|
+
slots: {
|
|
393
|
+
previous: w.previous ?? b.previous,
|
|
394
|
+
next: w.next ?? b.next,
|
|
395
|
+
first: w.first ?? b.first,
|
|
396
|
+
last: w.last ?? b.last
|
|
397
|
+
},
|
|
398
|
+
slotProps: d
|
|
399
|
+
}, [N, h] = j("previous", {
|
|
400
|
+
elementType: gt,
|
|
401
|
+
externalForwardedProps: x,
|
|
402
|
+
ownerState: g
|
|
403
|
+
}), [k, s] = j("next", {
|
|
404
|
+
elementType: vt,
|
|
405
|
+
externalForwardedProps: x,
|
|
406
|
+
ownerState: g
|
|
407
|
+
}), [r, I] = j("first", {
|
|
408
|
+
elementType: dt,
|
|
409
|
+
externalForwardedProps: x,
|
|
410
|
+
ownerState: g
|
|
411
|
+
}), [V, W] = j("last", {
|
|
412
|
+
elementType: ut,
|
|
413
|
+
externalForwardedProps: x,
|
|
414
|
+
ownerState: g
|
|
415
|
+
}), D = M ? {
|
|
416
|
+
previous: "next",
|
|
417
|
+
next: "previous",
|
|
418
|
+
first: "last",
|
|
419
|
+
last: "first"
|
|
420
|
+
}[u] : u, G = {
|
|
421
|
+
previous: N,
|
|
422
|
+
next: k,
|
|
423
|
+
first: r,
|
|
424
|
+
last: V
|
|
425
|
+
}[D], at = {
|
|
426
|
+
previous: h,
|
|
427
|
+
next: s,
|
|
428
|
+
first: I,
|
|
429
|
+
last: W
|
|
430
|
+
}[D];
|
|
431
|
+
return u === "start-ellipsis" || u === "end-ellipsis" ? /* @__PURE__ */ l(bt, {
|
|
432
|
+
ref: o,
|
|
433
|
+
ownerState: g,
|
|
434
|
+
className: A(m.root, v),
|
|
339
435
|
children: "…"
|
|
340
|
-
}) : /* @__PURE__ */
|
|
341
|
-
ref:
|
|
342
|
-
ownerState:
|
|
436
|
+
}) : /* @__PURE__ */ ot(yt, {
|
|
437
|
+
ref: o,
|
|
438
|
+
ownerState: g,
|
|
343
439
|
component: f,
|
|
344
|
-
disabled:
|
|
345
|
-
className:
|
|
346
|
-
|
|
347
|
-
children: [
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
440
|
+
disabled: y,
|
|
441
|
+
className: A(m.root, v),
|
|
442
|
+
...$,
|
|
443
|
+
children: [u === "page" && P, G ? /* @__PURE__ */ l(xt, {
|
|
444
|
+
...at,
|
|
445
|
+
className: m.icon,
|
|
446
|
+
as: G
|
|
351
447
|
}) : null]
|
|
352
|
-
})
|
|
448
|
+
});
|
|
353
449
|
});
|
|
354
|
-
process.env.NODE_ENV !== "production" && (
|
|
450
|
+
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
355
451
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
356
452
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
357
453
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -359,27 +455,27 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
359
455
|
/**
|
|
360
456
|
* @ignore
|
|
361
457
|
*/
|
|
362
|
-
children:
|
|
458
|
+
children: e.node,
|
|
363
459
|
/**
|
|
364
460
|
* Override or extend the styles applied to the component.
|
|
365
461
|
*/
|
|
366
|
-
classes:
|
|
462
|
+
classes: e.object,
|
|
367
463
|
/**
|
|
368
464
|
* @ignore
|
|
369
465
|
*/
|
|
370
|
-
className:
|
|
466
|
+
className: e.string,
|
|
371
467
|
/**
|
|
372
468
|
* The active color.
|
|
373
469
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
374
470
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
375
471
|
* @default 'standard'
|
|
376
472
|
*/
|
|
377
|
-
color:
|
|
473
|
+
color: e.oneOfType([e.oneOf(["primary", "secondary", "standard"]), e.string]),
|
|
378
474
|
/**
|
|
379
475
|
* The component used for the root node.
|
|
380
476
|
* Either a string to use a HTML element or a component.
|
|
381
477
|
*/
|
|
382
|
-
component:
|
|
478
|
+
component: e.elementType,
|
|
383
479
|
/**
|
|
384
480
|
* The components used for each slot inside.
|
|
385
481
|
*
|
|
@@ -387,87 +483,95 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
387
483
|
* It's recommended to use the `slots` prop instead.
|
|
388
484
|
*
|
|
389
485
|
* @default {}
|
|
486
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
390
487
|
*/
|
|
391
|
-
components:
|
|
392
|
-
first:
|
|
393
|
-
last:
|
|
394
|
-
next:
|
|
395
|
-
previous:
|
|
488
|
+
components: e.shape({
|
|
489
|
+
first: e.elementType,
|
|
490
|
+
last: e.elementType,
|
|
491
|
+
next: e.elementType,
|
|
492
|
+
previous: e.elementType
|
|
396
493
|
}),
|
|
397
494
|
/**
|
|
398
495
|
* If `true`, the component is disabled.
|
|
399
496
|
* @default false
|
|
400
497
|
*/
|
|
401
|
-
disabled:
|
|
498
|
+
disabled: e.bool,
|
|
402
499
|
/**
|
|
403
500
|
* The current page number.
|
|
404
501
|
*/
|
|
405
|
-
page:
|
|
502
|
+
page: e.node,
|
|
406
503
|
/**
|
|
407
504
|
* If `true` the pagination item is selected.
|
|
408
505
|
* @default false
|
|
409
506
|
*/
|
|
410
|
-
selected:
|
|
507
|
+
selected: e.bool,
|
|
411
508
|
/**
|
|
412
509
|
* The shape of the pagination item.
|
|
413
510
|
* @default 'circular'
|
|
414
511
|
*/
|
|
415
|
-
shape:
|
|
512
|
+
shape: e.oneOf(["circular", "rounded"]),
|
|
416
513
|
/**
|
|
417
514
|
* The size of the component.
|
|
418
515
|
* @default 'medium'
|
|
419
516
|
*/
|
|
420
|
-
size:
|
|
517
|
+
size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
|
|
518
|
+
/**
|
|
519
|
+
* The props used for each slot inside.
|
|
520
|
+
* @default {}
|
|
521
|
+
*/
|
|
522
|
+
slotProps: e.shape({
|
|
523
|
+
first: e.oneOfType([e.func, e.object]),
|
|
524
|
+
last: e.oneOfType([e.func, e.object]),
|
|
525
|
+
next: e.oneOfType([e.func, e.object]),
|
|
526
|
+
previous: e.oneOfType([e.func, e.object])
|
|
527
|
+
}),
|
|
421
528
|
/**
|
|
422
529
|
* The components used for each slot inside.
|
|
423
|
-
*
|
|
424
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
425
|
-
*
|
|
426
530
|
* @default {}
|
|
427
531
|
*/
|
|
428
|
-
slots:
|
|
429
|
-
first:
|
|
430
|
-
last:
|
|
431
|
-
next:
|
|
432
|
-
previous:
|
|
532
|
+
slots: e.shape({
|
|
533
|
+
first: e.elementType,
|
|
534
|
+
last: e.elementType,
|
|
535
|
+
next: e.elementType,
|
|
536
|
+
previous: e.elementType
|
|
433
537
|
}),
|
|
434
538
|
/**
|
|
435
539
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
436
540
|
*/
|
|
437
|
-
sx:
|
|
541
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
438
542
|
/**
|
|
439
543
|
* The type of pagination item.
|
|
440
544
|
* @default 'page'
|
|
441
545
|
*/
|
|
442
|
-
type:
|
|
546
|
+
type: e.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
|
|
443
547
|
/**
|
|
444
548
|
* The variant to use.
|
|
445
549
|
* @default 'text'
|
|
446
550
|
*/
|
|
447
|
-
variant:
|
|
551
|
+
variant: e.oneOfType([e.oneOf(["outlined", "text"]), e.string])
|
|
448
552
|
});
|
|
449
|
-
const
|
|
553
|
+
const mt = (t) => {
|
|
450
554
|
const {
|
|
451
|
-
classes:
|
|
452
|
-
variant:
|
|
453
|
-
} =
|
|
454
|
-
return
|
|
455
|
-
root: ["root",
|
|
555
|
+
classes: a,
|
|
556
|
+
variant: o
|
|
557
|
+
} = t;
|
|
558
|
+
return Z({
|
|
559
|
+
root: ["root", o],
|
|
456
560
|
ul: ["ul"]
|
|
457
|
-
},
|
|
458
|
-
},
|
|
561
|
+
}, lt, a);
|
|
562
|
+
}, Pt = R("nav", {
|
|
459
563
|
name: "MuiPagination",
|
|
460
564
|
slot: "Root",
|
|
461
|
-
overridesResolver: (
|
|
565
|
+
overridesResolver: (t, a) => {
|
|
462
566
|
const {
|
|
463
|
-
ownerState:
|
|
464
|
-
} =
|
|
465
|
-
return [
|
|
567
|
+
ownerState: o
|
|
568
|
+
} = t;
|
|
569
|
+
return [a.root, a[o.variant]];
|
|
466
570
|
}
|
|
467
|
-
})({}),
|
|
571
|
+
})({}), Ct = R("ul", {
|
|
468
572
|
name: "MuiPagination",
|
|
469
573
|
slot: "Ul",
|
|
470
|
-
overridesResolver: (
|
|
574
|
+
overridesResolver: (t, a) => a.ul
|
|
471
575
|
})({
|
|
472
576
|
display: "flex",
|
|
473
577
|
flexWrap: "wrap",
|
|
@@ -476,73 +580,81 @@ const ba = ["boundaryCount", "className", "color", "count", "defaultPage", "disa
|
|
|
476
580
|
margin: 0,
|
|
477
581
|
listStyle: "none"
|
|
478
582
|
});
|
|
479
|
-
function
|
|
480
|
-
return
|
|
583
|
+
function wt(t, a, o) {
|
|
584
|
+
return t === "page" ? `${o ? "" : "Go to "}page ${a}` : `Go to ${t} page`;
|
|
481
585
|
}
|
|
482
|
-
const
|
|
483
|
-
const n =
|
|
484
|
-
props:
|
|
586
|
+
const et = /* @__PURE__ */ c.forwardRef(function(a, o) {
|
|
587
|
+
const n = Y({
|
|
588
|
+
props: a,
|
|
485
589
|
name: "MuiPagination"
|
|
486
590
|
}), {
|
|
487
591
|
boundaryCount: v = 1,
|
|
488
592
|
className: p,
|
|
489
593
|
color: f = "standard",
|
|
490
|
-
count:
|
|
491
|
-
defaultPage:
|
|
492
|
-
disabled:
|
|
493
|
-
getItemAriaLabel:
|
|
494
|
-
hideNextButton:
|
|
495
|
-
hidePrevButton:
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
594
|
+
count: b = 1,
|
|
595
|
+
defaultPage: y = 1,
|
|
596
|
+
disabled: P = !1,
|
|
597
|
+
getItemAriaLabel: L = wt,
|
|
598
|
+
hideNextButton: z = !1,
|
|
599
|
+
hidePrevButton: C = !1,
|
|
600
|
+
onChange: w,
|
|
601
|
+
page: d,
|
|
602
|
+
renderItem: u = (r) => /* @__PURE__ */ l(U, {
|
|
603
|
+
...r
|
|
604
|
+
}),
|
|
605
|
+
shape: O = "circular",
|
|
606
|
+
showFirstButton: $ = !1,
|
|
607
|
+
showLastButton: g = !1,
|
|
608
|
+
siblingCount: M = 1,
|
|
609
|
+
size: m = "medium",
|
|
610
|
+
variant: x = "text",
|
|
611
|
+
...N
|
|
612
|
+
} = n, {
|
|
613
|
+
items: h
|
|
614
|
+
} = pt({
|
|
615
|
+
...n,
|
|
506
616
|
componentName: "Pagination"
|
|
507
|
-
})
|
|
617
|
+
}), k = {
|
|
618
|
+
...n,
|
|
508
619
|
boundaryCount: v,
|
|
509
620
|
color: f,
|
|
510
|
-
count:
|
|
511
|
-
defaultPage:
|
|
512
|
-
disabled:
|
|
513
|
-
getItemAriaLabel:
|
|
514
|
-
hideNextButton:
|
|
515
|
-
hidePrevButton:
|
|
516
|
-
renderItem:
|
|
517
|
-
shape:
|
|
518
|
-
showFirstButton:
|
|
519
|
-
showLastButton:
|
|
520
|
-
siblingCount:
|
|
521
|
-
size:
|
|
621
|
+
count: b,
|
|
622
|
+
defaultPage: y,
|
|
623
|
+
disabled: P,
|
|
624
|
+
getItemAriaLabel: L,
|
|
625
|
+
hideNextButton: z,
|
|
626
|
+
hidePrevButton: C,
|
|
627
|
+
renderItem: u,
|
|
628
|
+
shape: O,
|
|
629
|
+
showFirstButton: $,
|
|
630
|
+
showLastButton: g,
|
|
631
|
+
siblingCount: M,
|
|
632
|
+
size: m,
|
|
522
633
|
variant: x
|
|
523
|
-
}
|
|
524
|
-
return /* @__PURE__ */
|
|
634
|
+
}, s = mt(k);
|
|
635
|
+
return /* @__PURE__ */ l(Pt, {
|
|
525
636
|
"aria-label": "pagination navigation",
|
|
526
|
-
className:
|
|
527
|
-
ownerState:
|
|
528
|
-
ref:
|
|
529
|
-
|
|
530
|
-
children: /* @__PURE__ */
|
|
531
|
-
className:
|
|
532
|
-
ownerState:
|
|
533
|
-
children:
|
|
534
|
-
children:
|
|
637
|
+
className: A(s.root, p),
|
|
638
|
+
ownerState: k,
|
|
639
|
+
ref: o,
|
|
640
|
+
...N,
|
|
641
|
+
children: /* @__PURE__ */ l(Ct, {
|
|
642
|
+
className: s.ul,
|
|
643
|
+
ownerState: k,
|
|
644
|
+
children: h.map((r, I) => /* @__PURE__ */ l("li", {
|
|
645
|
+
children: u({
|
|
646
|
+
...r,
|
|
535
647
|
color: f,
|
|
536
|
-
"aria-label":
|
|
537
|
-
shape:
|
|
538
|
-
size:
|
|
648
|
+
"aria-label": L(r.type, r.page, r.selected),
|
|
649
|
+
shape: O,
|
|
650
|
+
size: m,
|
|
539
651
|
variant: x
|
|
540
|
-
})
|
|
541
|
-
},
|
|
652
|
+
})
|
|
653
|
+
}, I))
|
|
542
654
|
})
|
|
543
|
-
})
|
|
655
|
+
});
|
|
544
656
|
});
|
|
545
|
-
process.env.NODE_ENV !== "production" && (
|
|
657
|
+
process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
546
658
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
547
659
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
548
660
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -551,135 +663,135 @@ process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
|
551
663
|
* Number of always visible pages at the beginning and end.
|
|
552
664
|
* @default 1
|
|
553
665
|
*/
|
|
554
|
-
boundaryCount:
|
|
666
|
+
boundaryCount: B,
|
|
555
667
|
/**
|
|
556
668
|
* Override or extend the styles applied to the component.
|
|
557
669
|
*/
|
|
558
|
-
classes:
|
|
670
|
+
classes: e.object,
|
|
559
671
|
/**
|
|
560
672
|
* @ignore
|
|
561
673
|
*/
|
|
562
|
-
className:
|
|
674
|
+
className: e.string,
|
|
563
675
|
/**
|
|
564
676
|
* The active color.
|
|
565
677
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
566
678
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
567
679
|
* @default 'standard'
|
|
568
680
|
*/
|
|
569
|
-
color:
|
|
681
|
+
color: e.oneOfType([e.oneOf(["primary", "secondary", "standard"]), e.string]),
|
|
570
682
|
/**
|
|
571
683
|
* The total number of pages.
|
|
572
684
|
* @default 1
|
|
573
685
|
*/
|
|
574
|
-
count:
|
|
686
|
+
count: B,
|
|
575
687
|
/**
|
|
576
688
|
* The page selected by default when the component is uncontrolled.
|
|
577
689
|
* @default 1
|
|
578
690
|
*/
|
|
579
|
-
defaultPage:
|
|
691
|
+
defaultPage: B,
|
|
580
692
|
/**
|
|
581
693
|
* If `true`, the component is disabled.
|
|
582
694
|
* @default false
|
|
583
695
|
*/
|
|
584
|
-
disabled:
|
|
696
|
+
disabled: e.bool,
|
|
585
697
|
/**
|
|
586
698
|
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
587
699
|
* This is important for screen reader users.
|
|
588
700
|
*
|
|
589
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
701
|
+
* For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
|
|
590
702
|
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
|
|
591
|
-
* @param {number} page The page number to format.
|
|
592
|
-
* @param {
|
|
703
|
+
* @param {number | null} page The page number to format.
|
|
704
|
+
* @param {boolean} selected If true, the current page is selected.
|
|
593
705
|
* @returns {string}
|
|
594
706
|
*/
|
|
595
|
-
getItemAriaLabel:
|
|
707
|
+
getItemAriaLabel: e.func,
|
|
596
708
|
/**
|
|
597
709
|
* If `true`, hide the next-page button.
|
|
598
710
|
* @default false
|
|
599
711
|
*/
|
|
600
|
-
hideNextButton:
|
|
712
|
+
hideNextButton: e.bool,
|
|
601
713
|
/**
|
|
602
714
|
* If `true`, hide the previous-page button.
|
|
603
715
|
* @default false
|
|
604
716
|
*/
|
|
605
|
-
hidePrevButton:
|
|
717
|
+
hidePrevButton: e.bool,
|
|
606
718
|
/**
|
|
607
719
|
* Callback fired when the page is changed.
|
|
608
720
|
*
|
|
609
721
|
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
610
722
|
* @param {number} page The page selected.
|
|
611
723
|
*/
|
|
612
|
-
onChange:
|
|
724
|
+
onChange: e.func,
|
|
613
725
|
/**
|
|
614
726
|
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
615
727
|
*/
|
|
616
|
-
page:
|
|
728
|
+
page: B,
|
|
617
729
|
/**
|
|
618
730
|
* Render the item.
|
|
619
731
|
* @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
|
|
620
732
|
* @returns {ReactNode}
|
|
621
733
|
* @default (item) => <PaginationItem {...item} />
|
|
622
734
|
*/
|
|
623
|
-
renderItem:
|
|
735
|
+
renderItem: e.func,
|
|
624
736
|
/**
|
|
625
737
|
* The shape of the pagination items.
|
|
626
738
|
* @default 'circular'
|
|
627
739
|
*/
|
|
628
|
-
shape:
|
|
740
|
+
shape: e.oneOf(["circular", "rounded"]),
|
|
629
741
|
/**
|
|
630
742
|
* If `true`, show the first-page button.
|
|
631
743
|
* @default false
|
|
632
744
|
*/
|
|
633
|
-
showFirstButton:
|
|
745
|
+
showFirstButton: e.bool,
|
|
634
746
|
/**
|
|
635
747
|
* If `true`, show the last-page button.
|
|
636
748
|
* @default false
|
|
637
749
|
*/
|
|
638
|
-
showLastButton:
|
|
750
|
+
showLastButton: e.bool,
|
|
639
751
|
/**
|
|
640
752
|
* Number of always visible pages before and after the current page.
|
|
641
753
|
* @default 1
|
|
642
754
|
*/
|
|
643
|
-
siblingCount:
|
|
755
|
+
siblingCount: B,
|
|
644
756
|
/**
|
|
645
757
|
* The size of the component.
|
|
646
758
|
* @default 'medium'
|
|
647
759
|
*/
|
|
648
|
-
size:
|
|
760
|
+
size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
|
|
649
761
|
/**
|
|
650
762
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
651
763
|
*/
|
|
652
|
-
sx:
|
|
764
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
653
765
|
/**
|
|
654
766
|
* The variant to use.
|
|
655
767
|
* @default 'text'
|
|
656
768
|
*/
|
|
657
|
-
variant:
|
|
769
|
+
variant: e.oneOfType([e.oneOf(["outlined", "text"]), e.string])
|
|
658
770
|
});
|
|
659
|
-
function
|
|
660
|
-
isRtl:
|
|
661
|
-
pageCount:
|
|
662
|
-
page:
|
|
771
|
+
function Ot({
|
|
772
|
+
isRtl: t,
|
|
773
|
+
pageCount: a,
|
|
774
|
+
page: o,
|
|
663
775
|
onPageChange: n,
|
|
664
776
|
className: v
|
|
665
777
|
}) {
|
|
666
|
-
return /* @__PURE__ */
|
|
667
|
-
|
|
778
|
+
return /* @__PURE__ */ l(
|
|
779
|
+
et,
|
|
668
780
|
{
|
|
669
781
|
showFirstButton: !0,
|
|
670
782
|
showLastButton: !0,
|
|
671
783
|
className: v,
|
|
672
|
-
count:
|
|
673
|
-
page:
|
|
784
|
+
count: a,
|
|
785
|
+
page: o + 1,
|
|
674
786
|
onChange: (p, f) => {
|
|
675
787
|
n(p, f - 1);
|
|
676
788
|
},
|
|
677
789
|
boundaryCount: 0,
|
|
678
790
|
siblingCount: 1,
|
|
679
|
-
renderItem: (p) => /* @__PURE__ */
|
|
680
|
-
|
|
791
|
+
renderItem: (p) => /* @__PURE__ */ l(
|
|
792
|
+
U,
|
|
681
793
|
{
|
|
682
|
-
slots: { previous:
|
|
794
|
+
slots: { previous: t ? J : K, next: t ? K : J, first: t ? q : H, last: t ? H : q },
|
|
683
795
|
...p
|
|
684
796
|
}
|
|
685
797
|
),
|
|
@@ -699,10 +811,10 @@ function Pa({
|
|
|
699
811
|
}
|
|
700
812
|
);
|
|
701
813
|
}
|
|
702
|
-
function
|
|
703
|
-
return /* @__PURE__ */
|
|
814
|
+
function Mt({ isRtl: t, pageCount: a }) {
|
|
815
|
+
return /* @__PURE__ */ l(nt, { ActionsComponent: (o) => /* @__PURE__ */ l(Ot, { isRtl: t, pageCount: a, ...o }) });
|
|
704
816
|
}
|
|
705
817
|
export {
|
|
706
|
-
|
|
707
|
-
|
|
818
|
+
Mt as CustomPagination,
|
|
819
|
+
Ot as Pagination
|
|
708
820
|
};
|