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