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