@amateescu/portal-ui-components 0.0.7-beta3 → 0.0.7-beta4
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/{ButtonBase-CHdm_9Jj.js → ButtonBase-BGF0RYEt.js} +19 -30
- package/dist/Skeleton-DAEfQTU0.js +25004 -0
- package/dist/components/CustomButton/index.js +359 -9
- package/dist/components/CustomPagination/index.js +570 -326
- package/dist/components/InfoModal/index.js +150 -152
- package/dist/components/KpiCard/index.js +21 -23
- package/dist/components/LoadingAnimation/index.js +254 -38
- package/dist/components/TotalDataGrid/index.js +27 -20397
- package/dist/{generateUtilityClasses-BzhjuzcK.js → generateUtilityClasses-DHfaG5wY.js} +753 -795
- package/package.json +1 -1
- package/dist/Button-toPW5zuy.js +0 -355
- package/dist/CircularProgress-CrVlDhIx.js +0 -214
- package/dist/GridPagination-DrNedBid.js +0 -7690
- package/dist/Skeleton-DsmxphyA.js +0 -5899
- package/dist/index-D2lG1Jv0.js +0 -19089
- package/dist/toPropertyKey-Dgu5PCQm.js +0 -26
- package/dist/useTheme-CvjG_1hx.js +0 -17
|
@@ -1,132 +1,376 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { B as
|
|
7
|
-
function
|
|
8
|
-
|
|
1
|
+
import { jsxs as Q, jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { GridPagination as ne } from "@mui/x-data-grid";
|
|
3
|
+
import { _ as w, a as f } from "../../index-kNWC7pFF.js";
|
|
4
|
+
import * as m from "react";
|
|
5
|
+
import { P as t, g as U, a as D, u as F, c as O, b as W, s as B, f as V, e as S } from "../../generateUtilityClasses-DHfaG5wY.js";
|
|
6
|
+
import { B as ae } from "../../ButtonBase-BGF0RYEt.js";
|
|
7
|
+
function ie({
|
|
8
|
+
controlled: e,
|
|
9
|
+
default: o,
|
|
10
|
+
name: n,
|
|
11
|
+
state: a = "value"
|
|
12
|
+
}) {
|
|
13
|
+
const {
|
|
14
|
+
current: i
|
|
15
|
+
} = m.useRef(e !== void 0), [l, u] = m.useState(o), s = i ? e : l;
|
|
16
|
+
if (process.env.NODE_ENV !== "production") {
|
|
17
|
+
m.useEffect(() => {
|
|
18
|
+
i !== (e !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${a} state of ${n} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
19
|
+
`));
|
|
20
|
+
}, [a, n, e]);
|
|
21
|
+
const {
|
|
22
|
+
current: c
|
|
23
|
+
} = m.useRef(o);
|
|
24
|
+
m.useEffect(() => {
|
|
25
|
+
!i && !Object.is(c, o) && console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
26
|
+
`));
|
|
27
|
+
}, [JSON.stringify(o)]);
|
|
28
|
+
}
|
|
29
|
+
const g = m.useCallback((c) => {
|
|
30
|
+
i || u(c);
|
|
31
|
+
}, []);
|
|
32
|
+
return [s, g];
|
|
33
|
+
}
|
|
34
|
+
function re(e) {
|
|
35
|
+
const o = typeof e;
|
|
36
|
+
switch (o) {
|
|
37
|
+
case "number":
|
|
38
|
+
return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
|
|
39
|
+
case "object":
|
|
40
|
+
return e === null ? "null" : e.constructor.name;
|
|
41
|
+
default:
|
|
42
|
+
return o;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function se(e) {
|
|
46
|
+
return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
|
|
47
|
+
}
|
|
48
|
+
const le = Number.isInteger || se;
|
|
49
|
+
function X(e, o, n, a) {
|
|
50
|
+
const i = e[o];
|
|
51
|
+
if (i == null || !le(i)) {
|
|
52
|
+
const l = re(i);
|
|
53
|
+
return new RangeError(`Invalid ${a} \`${o}\` of type \`${l}\` supplied to \`${n}\`, expected \`integer\`.`);
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
function Y(e, o, ...n) {
|
|
58
|
+
return e[o] === void 0 ? null : X(e, o, ...n);
|
|
9
59
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
60
|
+
function j() {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
Y.isRequired = X;
|
|
64
|
+
j.isRequired = j;
|
|
65
|
+
const L = process.env.NODE_ENV === "production" ? j : Y, ce = /* @__PURE__ */ m.createContext();
|
|
66
|
+
process.env.NODE_ENV !== "production" && (t.node, t.bool);
|
|
67
|
+
const de = () => {
|
|
68
|
+
const e = m.useContext(ce);
|
|
69
|
+
return e ?? !1;
|
|
70
|
+
};
|
|
71
|
+
function pe(e) {
|
|
72
|
+
return U("MuiSvgIcon", e);
|
|
73
|
+
}
|
|
74
|
+
D("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
75
|
+
const ue = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], ge = (e) => {
|
|
13
76
|
const {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
77
|
+
color: o,
|
|
78
|
+
fontSize: n,
|
|
79
|
+
classes: a
|
|
80
|
+
} = e, i = {
|
|
81
|
+
root: ["root", o !== "inherit" && `color${O(o)}`, `fontSize${O(n)}`]
|
|
82
|
+
};
|
|
83
|
+
return W(i, pe, a);
|
|
84
|
+
}, fe = B("svg", {
|
|
85
|
+
name: "MuiSvgIcon",
|
|
86
|
+
slot: "Root",
|
|
87
|
+
overridesResolver: (e, o) => {
|
|
88
|
+
const {
|
|
89
|
+
ownerState: n
|
|
90
|
+
} = e;
|
|
91
|
+
return [o.root, n.color !== "inherit" && o[`color${O(n.color)}`], o[`fontSize${O(n.fontSize)}`]];
|
|
92
|
+
}
|
|
93
|
+
})(({
|
|
94
|
+
theme: e,
|
|
95
|
+
ownerState: o
|
|
96
|
+
}) => {
|
|
97
|
+
var n, a, i, l, u, s, g, c, y, x, v, d, r;
|
|
98
|
+
return {
|
|
99
|
+
userSelect: "none",
|
|
100
|
+
width: "1em",
|
|
101
|
+
height: "1em",
|
|
102
|
+
display: "inline-block",
|
|
103
|
+
// the <svg> will define the property that has `currentColor`
|
|
104
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
105
|
+
fill: o.hasSvgAsChild ? void 0 : "currentColor",
|
|
106
|
+
flexShrink: 0,
|
|
107
|
+
transition: (n = e.transitions) == null || (a = n.create) == null ? void 0 : a.call(n, "fill", {
|
|
108
|
+
duration: (i = e.transitions) == null || (i = i.duration) == null ? void 0 : i.shorter
|
|
109
|
+
}),
|
|
110
|
+
fontSize: {
|
|
111
|
+
inherit: "inherit",
|
|
112
|
+
small: ((l = e.typography) == null || (u = l.pxToRem) == null ? void 0 : u.call(l, 20)) || "1.25rem",
|
|
113
|
+
medium: ((s = e.typography) == null || (g = s.pxToRem) == null ? void 0 : g.call(s, 24)) || "1.5rem",
|
|
114
|
+
large: ((c = e.typography) == null || (y = c.pxToRem) == null ? void 0 : y.call(c, 35)) || "2.1875rem"
|
|
115
|
+
}[o.fontSize],
|
|
116
|
+
// TODO v5 deprecate, v6 remove for sx
|
|
117
|
+
color: (x = (v = (e.vars || e).palette) == null || (v = v[o.color]) == null ? void 0 : v.main) != null ? x : {
|
|
118
|
+
action: (d = (e.vars || e).palette) == null || (d = d.action) == null ? void 0 : d.active,
|
|
119
|
+
disabled: (r = (e.vars || e).palette) == null || (r = r.action) == null ? void 0 : r.disabled,
|
|
120
|
+
inherit: void 0
|
|
121
|
+
}[o.color]
|
|
122
|
+
};
|
|
123
|
+
}), E = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
124
|
+
const a = F({
|
|
125
|
+
props: o,
|
|
126
|
+
name: "MuiSvgIcon"
|
|
127
|
+
}), {
|
|
128
|
+
children: i,
|
|
129
|
+
className: l,
|
|
130
|
+
color: u = "inherit",
|
|
131
|
+
component: s = "svg",
|
|
132
|
+
fontSize: g = "medium",
|
|
133
|
+
htmlColor: c,
|
|
134
|
+
inheritViewBox: y = !1,
|
|
135
|
+
titleAccess: x,
|
|
136
|
+
viewBox: v = "0 0 24 24"
|
|
137
|
+
} = a, d = w(a, ue), r = /* @__PURE__ */ m.isValidElement(i) && i.type === "svg", P = f({}, a, {
|
|
138
|
+
color: u,
|
|
139
|
+
component: s,
|
|
140
|
+
fontSize: g,
|
|
141
|
+
instanceFontSize: o.fontSize,
|
|
142
|
+
inheritViewBox: y,
|
|
143
|
+
viewBox: v,
|
|
144
|
+
hasSvgAsChild: r
|
|
145
|
+
}), N = {};
|
|
146
|
+
y || (N.viewBox = v);
|
|
147
|
+
const h = ge(P);
|
|
148
|
+
return /* @__PURE__ */ Q(fe, f({
|
|
149
|
+
as: s,
|
|
150
|
+
className: V(h.root, l),
|
|
151
|
+
focusable: "false",
|
|
152
|
+
color: c,
|
|
153
|
+
"aria-hidden": x ? void 0 : !0,
|
|
154
|
+
role: x ? "img" : void 0,
|
|
155
|
+
ref: n
|
|
156
|
+
}, N, d, r && i.props, {
|
|
157
|
+
ownerState: P,
|
|
158
|
+
children: [r ? i.props.children : i, x ? /* @__PURE__ */ b("title", {
|
|
159
|
+
children: x
|
|
160
|
+
}) : null]
|
|
161
|
+
}));
|
|
162
|
+
});
|
|
163
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
164
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
165
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
166
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
167
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
168
|
+
/**
|
|
169
|
+
* Node passed into the SVG element.
|
|
170
|
+
*/
|
|
171
|
+
children: t.node,
|
|
172
|
+
/**
|
|
173
|
+
* Override or extend the styles applied to the component.
|
|
174
|
+
*/
|
|
175
|
+
classes: t.object,
|
|
176
|
+
/**
|
|
177
|
+
* @ignore
|
|
178
|
+
*/
|
|
179
|
+
className: t.string,
|
|
180
|
+
/**
|
|
181
|
+
* The color of the component.
|
|
182
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
183
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
184
|
+
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
185
|
+
* @default 'inherit'
|
|
186
|
+
*/
|
|
187
|
+
color: t.oneOfType([t.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
|
|
188
|
+
/**
|
|
189
|
+
* The component used for the root node.
|
|
190
|
+
* Either a string to use a HTML element or a component.
|
|
191
|
+
*/
|
|
192
|
+
component: t.elementType,
|
|
193
|
+
/**
|
|
194
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
195
|
+
* @default 'medium'
|
|
196
|
+
*/
|
|
197
|
+
fontSize: t.oneOfType([t.oneOf(["inherit", "large", "medium", "small"]), t.string]),
|
|
198
|
+
/**
|
|
199
|
+
* Applies a color attribute to the SVG element.
|
|
200
|
+
*/
|
|
201
|
+
htmlColor: t.string,
|
|
202
|
+
/**
|
|
203
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
204
|
+
* prop will be ignored.
|
|
205
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
206
|
+
* `component`'s viewBox to the root node.
|
|
207
|
+
* @default false
|
|
208
|
+
*/
|
|
209
|
+
inheritViewBox: t.bool,
|
|
210
|
+
/**
|
|
211
|
+
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
212
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
213
|
+
* If you are having issues with blurry icons you should investigate this prop.
|
|
214
|
+
*/
|
|
215
|
+
shapeRendering: t.string,
|
|
216
|
+
/**
|
|
217
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
218
|
+
*/
|
|
219
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
220
|
+
/**
|
|
221
|
+
* Provides a human-readable title for the element that contains it.
|
|
222
|
+
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
223
|
+
*/
|
|
224
|
+
titleAccess: t.string,
|
|
225
|
+
/**
|
|
226
|
+
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
227
|
+
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
228
|
+
* and you pass viewBox="0 0 50 20",
|
|
229
|
+
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
230
|
+
* to bottom right (50,20) and each unit will be worth 10px.
|
|
231
|
+
* @default '0 0 24 24'
|
|
232
|
+
*/
|
|
233
|
+
viewBox: t.string
|
|
234
|
+
});
|
|
235
|
+
E.muiName = "SvgIcon";
|
|
236
|
+
function A(e, o) {
|
|
237
|
+
function n(a, i) {
|
|
238
|
+
return /* @__PURE__ */ b(E, f({
|
|
239
|
+
"data-testid": `${o}Icon`,
|
|
240
|
+
ref: i
|
|
241
|
+
}, a, {
|
|
242
|
+
children: e
|
|
243
|
+
}));
|
|
244
|
+
}
|
|
245
|
+
return process.env.NODE_ENV !== "production" && (n.displayName = `${o}Icon`), n.muiName = E.muiName, /* @__PURE__ */ m.memo(/* @__PURE__ */ m.forwardRef(n));
|
|
246
|
+
}
|
|
247
|
+
function ve(e) {
|
|
248
|
+
return U("MuiPagination", e);
|
|
249
|
+
}
|
|
250
|
+
D("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
251
|
+
const be = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
|
|
252
|
+
function ye(e = {}) {
|
|
253
|
+
const {
|
|
254
|
+
boundaryCount: o = 1,
|
|
255
|
+
componentName: n = "usePagination",
|
|
256
|
+
count: a = 1,
|
|
257
|
+
defaultPage: i = 1,
|
|
258
|
+
disabled: l = !1,
|
|
19
259
|
hideNextButton: u = !1,
|
|
20
|
-
hidePrevButton:
|
|
260
|
+
hidePrevButton: s = !1,
|
|
21
261
|
onChange: g,
|
|
22
|
-
page:
|
|
23
|
-
showFirstButton:
|
|
24
|
-
showLastButton:
|
|
25
|
-
siblingCount:
|
|
26
|
-
} =
|
|
27
|
-
controlled:
|
|
28
|
-
default:
|
|
29
|
-
name:
|
|
262
|
+
page: c,
|
|
263
|
+
showFirstButton: y = !1,
|
|
264
|
+
showLastButton: x = !1,
|
|
265
|
+
siblingCount: v = 1
|
|
266
|
+
} = e, d = w(e, be), [r, P] = ie({
|
|
267
|
+
controlled: c,
|
|
268
|
+
default: i,
|
|
269
|
+
name: n,
|
|
30
270
|
state: "page"
|
|
31
|
-
}), N = (
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
const
|
|
271
|
+
}), N = (p, I) => {
|
|
272
|
+
c || P(I), g && g(p, I);
|
|
273
|
+
}, h = (p, I) => {
|
|
274
|
+
const oe = I - p + 1;
|
|
35
275
|
return Array.from({
|
|
36
|
-
length:
|
|
37
|
-
}, (
|
|
38
|
-
},
|
|
276
|
+
length: oe
|
|
277
|
+
}, (Se, te) => p + te);
|
|
278
|
+
}, R = h(1, Math.min(o, a)), C = h(Math.max(a - o + 1, o + 1), a), M = Math.max(
|
|
39
279
|
Math.min(
|
|
40
280
|
// Natural start
|
|
41
|
-
|
|
281
|
+
r - v,
|
|
42
282
|
// Lower boundary when page is high
|
|
43
|
-
|
|
283
|
+
a - o - v * 2 - 1
|
|
44
284
|
),
|
|
45
285
|
// Greater than startPages
|
|
46
|
-
|
|
47
|
-
),
|
|
286
|
+
o + 2
|
|
287
|
+
), T = Math.min(
|
|
48
288
|
Math.max(
|
|
49
289
|
// Natural end
|
|
50
|
-
|
|
290
|
+
r + v,
|
|
51
291
|
// Upper boundary when page is low
|
|
52
|
-
|
|
292
|
+
o + v * 2 + 2
|
|
53
293
|
),
|
|
54
294
|
// Less than endPages
|
|
55
|
-
|
|
56
|
-
),
|
|
57
|
-
...
|
|
58
|
-
...
|
|
59
|
-
...
|
|
295
|
+
C.length > 0 ? C[0] - 2 : a - 1
|
|
296
|
+
), _ = [
|
|
297
|
+
...y ? ["first"] : [],
|
|
298
|
+
...s ? [] : ["previous"],
|
|
299
|
+
...R,
|
|
60
300
|
// Start ellipsis
|
|
61
301
|
// eslint-disable-next-line no-nested-ternary
|
|
62
|
-
...
|
|
302
|
+
...M > o + 2 ? ["start-ellipsis"] : o + 1 < a - o ? [o + 1] : [],
|
|
63
303
|
// Sibling pages
|
|
64
|
-
...
|
|
304
|
+
...h(M, T),
|
|
65
305
|
// End ellipsis
|
|
66
306
|
// eslint-disable-next-line no-nested-ternary
|
|
67
|
-
|
|
68
|
-
...
|
|
307
|
+
...T < a - o - 1 ? ["end-ellipsis"] : a - o > o ? [a - o] : [],
|
|
308
|
+
...C,
|
|
69
309
|
...u ? [] : ["next"],
|
|
70
|
-
...
|
|
71
|
-
],
|
|
72
|
-
switch (
|
|
310
|
+
...x ? ["last"] : []
|
|
311
|
+
], k = (p) => {
|
|
312
|
+
switch (p) {
|
|
73
313
|
case "first":
|
|
74
314
|
return 1;
|
|
75
315
|
case "previous":
|
|
76
|
-
return
|
|
316
|
+
return r - 1;
|
|
77
317
|
case "next":
|
|
78
|
-
return
|
|
318
|
+
return r + 1;
|
|
79
319
|
case "last":
|
|
80
|
-
return
|
|
320
|
+
return a;
|
|
81
321
|
default:
|
|
82
322
|
return null;
|
|
83
323
|
}
|
|
84
|
-
},
|
|
85
|
-
onClick: (
|
|
86
|
-
N(
|
|
324
|
+
}, z = _.map((p) => typeof p == "number" ? {
|
|
325
|
+
onClick: (I) => {
|
|
326
|
+
N(I, p);
|
|
87
327
|
},
|
|
88
328
|
type: "page",
|
|
89
|
-
page:
|
|
90
|
-
selected:
|
|
91
|
-
disabled:
|
|
92
|
-
"aria-current":
|
|
329
|
+
page: p,
|
|
330
|
+
selected: p === r,
|
|
331
|
+
disabled: l,
|
|
332
|
+
"aria-current": p === r ? "true" : void 0
|
|
93
333
|
} : {
|
|
94
|
-
onClick: (
|
|
95
|
-
N(
|
|
334
|
+
onClick: (I) => {
|
|
335
|
+
N(I, k(p));
|
|
96
336
|
},
|
|
97
|
-
type:
|
|
98
|
-
page:
|
|
337
|
+
type: p,
|
|
338
|
+
page: k(p),
|
|
99
339
|
selected: !1,
|
|
100
|
-
disabled:
|
|
340
|
+
disabled: l || p.indexOf("ellipsis") === -1 && (p === "next" || p === "last" ? r >= a : r <= 1)
|
|
101
341
|
});
|
|
102
|
-
return
|
|
103
|
-
items:
|
|
342
|
+
return f({
|
|
343
|
+
items: z
|
|
104
344
|
}, d);
|
|
105
345
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
346
|
+
function me(e) {
|
|
347
|
+
return U("MuiPaginationItem", e);
|
|
108
348
|
}
|
|
109
|
-
const
|
|
349
|
+
const $ = D("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), q = A(/* @__PURE__ */ b("path", {
|
|
350
|
+
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
351
|
+
}), "FirstPage"), H = A(/* @__PURE__ */ b("path", {
|
|
352
|
+
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
353
|
+
}), "LastPage"), J = A(/* @__PURE__ */ b("path", {
|
|
110
354
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
111
|
-
}), "NavigateBefore"),
|
|
355
|
+
}), "NavigateBefore"), K = A(/* @__PURE__ */ b("path", {
|
|
112
356
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
113
|
-
}), "NavigateNext"),
|
|
357
|
+
}), "NavigateNext"), xe = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], Z = (e, o) => {
|
|
114
358
|
const {
|
|
115
|
-
ownerState:
|
|
116
|
-
} =
|
|
117
|
-
return [
|
|
118
|
-
},
|
|
359
|
+
ownerState: n
|
|
360
|
+
} = e;
|
|
361
|
+
return [o.root, o[n.variant], o[`size${O(n.size)}`], n.variant === "text" && o[`text${O(n.color)}`], n.variant === "outlined" && o[`outlined${O(n.color)}`], n.shape === "rounded" && o.rounded, n.type === "page" && o.page, (n.type === "start-ellipsis" || n.type === "end-ellipsis") && o.ellipsis, (n.type === "previous" || n.type === "next") && o.previousNext, (n.type === "first" || n.type === "last") && o.firstLast];
|
|
362
|
+
}, he = (e) => {
|
|
119
363
|
const {
|
|
120
|
-
classes:
|
|
121
|
-
color:
|
|
122
|
-
disabled:
|
|
123
|
-
selected:
|
|
124
|
-
size:
|
|
364
|
+
classes: o,
|
|
365
|
+
color: n,
|
|
366
|
+
disabled: a,
|
|
367
|
+
selected: i,
|
|
368
|
+
size: l,
|
|
125
369
|
shape: u,
|
|
126
|
-
type:
|
|
370
|
+
type: s,
|
|
127
371
|
variant: g
|
|
128
|
-
} =
|
|
129
|
-
root: ["root", `size${
|
|
372
|
+
} = e, c = {
|
|
373
|
+
root: ["root", `size${O(l)}`, g, u, n !== "standard" && `color${O(n)}`, n !== "standard" && `${g}${O(n)}`, a && "disabled", i && "selected", {
|
|
130
374
|
page: "page",
|
|
131
375
|
first: "firstLast",
|
|
132
376
|
last: "firstLast",
|
|
@@ -134,47 +378,47 @@ const v = S("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
134
378
|
"end-ellipsis": "ellipsis",
|
|
135
379
|
previous: "previousNext",
|
|
136
380
|
next: "previousNext"
|
|
137
|
-
}[
|
|
381
|
+
}[s]],
|
|
138
382
|
icon: ["icon"]
|
|
139
383
|
};
|
|
140
|
-
return
|
|
141
|
-
},
|
|
384
|
+
return W(c, me, o);
|
|
385
|
+
}, $e = B("div", {
|
|
142
386
|
name: "MuiPaginationItem",
|
|
143
387
|
slot: "Root",
|
|
144
|
-
overridesResolver:
|
|
388
|
+
overridesResolver: Z
|
|
145
389
|
})(({
|
|
146
|
-
theme:
|
|
147
|
-
ownerState:
|
|
148
|
-
}) =>
|
|
390
|
+
theme: e,
|
|
391
|
+
ownerState: o
|
|
392
|
+
}) => f({}, e.typography.body2, {
|
|
149
393
|
borderRadius: 32 / 2,
|
|
150
394
|
textAlign: "center",
|
|
151
395
|
boxSizing: "border-box",
|
|
152
396
|
minWidth: 32,
|
|
153
397
|
padding: "0 6px",
|
|
154
398
|
margin: "0 3px",
|
|
155
|
-
color: (
|
|
399
|
+
color: (e.vars || e).palette.text.primary,
|
|
156
400
|
height: "auto",
|
|
157
|
-
[`&.${
|
|
158
|
-
opacity: (
|
|
401
|
+
[`&.${$.disabled}`]: {
|
|
402
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
159
403
|
}
|
|
160
|
-
},
|
|
404
|
+
}, o.size === "small" && {
|
|
161
405
|
minWidth: 26,
|
|
162
406
|
borderRadius: 26 / 2,
|
|
163
407
|
margin: "0 1px",
|
|
164
408
|
padding: "0 4px"
|
|
165
|
-
},
|
|
409
|
+
}, o.size === "large" && {
|
|
166
410
|
minWidth: 40,
|
|
167
411
|
borderRadius: 40 / 2,
|
|
168
412
|
padding: "0 10px",
|
|
169
|
-
fontSize:
|
|
170
|
-
})),
|
|
413
|
+
fontSize: e.typography.pxToRem(15)
|
|
414
|
+
})), Ce = B(ae, {
|
|
171
415
|
name: "MuiPaginationItem",
|
|
172
416
|
slot: "Root",
|
|
173
|
-
overridesResolver:
|
|
417
|
+
overridesResolver: Z
|
|
174
418
|
})(({
|
|
175
|
-
theme:
|
|
176
|
-
ownerState:
|
|
177
|
-
}) =>
|
|
419
|
+
theme: e,
|
|
420
|
+
ownerState: o
|
|
421
|
+
}) => f({}, e.typography.body2, {
|
|
178
422
|
borderRadius: 32 / 2,
|
|
179
423
|
textAlign: "center",
|
|
180
424
|
boxSizing: "border-box",
|
|
@@ -182,169 +426,169 @@ const v = S("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
182
426
|
height: 32,
|
|
183
427
|
padding: "0 6px",
|
|
184
428
|
margin: "0 3px",
|
|
185
|
-
color: (
|
|
186
|
-
[`&.${
|
|
187
|
-
backgroundColor: (
|
|
429
|
+
color: (e.vars || e).palette.text.primary,
|
|
430
|
+
[`&.${$.focusVisible}`]: {
|
|
431
|
+
backgroundColor: (e.vars || e).palette.action.focus
|
|
188
432
|
},
|
|
189
|
-
[`&.${
|
|
190
|
-
opacity: (
|
|
433
|
+
[`&.${$.disabled}`]: {
|
|
434
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
191
435
|
},
|
|
192
|
-
transition:
|
|
193
|
-
duration:
|
|
436
|
+
transition: e.transitions.create(["color", "background-color"], {
|
|
437
|
+
duration: e.transitions.duration.short
|
|
194
438
|
}),
|
|
195
439
|
"&:hover": {
|
|
196
|
-
backgroundColor: (
|
|
440
|
+
backgroundColor: (e.vars || e).palette.action.hover,
|
|
197
441
|
// Reset on touch devices, it doesn't add specificity
|
|
198
442
|
"@media (hover: none)": {
|
|
199
443
|
backgroundColor: "transparent"
|
|
200
444
|
}
|
|
201
445
|
},
|
|
202
|
-
[`&.${
|
|
203
|
-
backgroundColor: (
|
|
446
|
+
[`&.${$.selected}`]: {
|
|
447
|
+
backgroundColor: (e.vars || e).palette.action.selected,
|
|
204
448
|
"&:hover": {
|
|
205
|
-
backgroundColor:
|
|
449
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : S(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
206
450
|
// Reset on touch devices, it doesn't add specificity
|
|
207
451
|
"@media (hover: none)": {
|
|
208
|
-
backgroundColor: (
|
|
452
|
+
backgroundColor: (e.vars || e).palette.action.selected
|
|
209
453
|
}
|
|
210
454
|
},
|
|
211
|
-
[`&.${
|
|
212
|
-
backgroundColor:
|
|
455
|
+
[`&.${$.focusVisible}`]: {
|
|
456
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : S(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
213
457
|
},
|
|
214
|
-
[`&.${
|
|
458
|
+
[`&.${$.disabled}`]: {
|
|
215
459
|
opacity: 1,
|
|
216
|
-
color: (
|
|
217
|
-
backgroundColor: (
|
|
460
|
+
color: (e.vars || e).palette.action.disabled,
|
|
461
|
+
backgroundColor: (e.vars || e).palette.action.selected
|
|
218
462
|
}
|
|
219
463
|
}
|
|
220
|
-
},
|
|
464
|
+
}, o.size === "small" && {
|
|
221
465
|
minWidth: 26,
|
|
222
466
|
height: 26,
|
|
223
467
|
borderRadius: 26 / 2,
|
|
224
468
|
margin: "0 1px",
|
|
225
469
|
padding: "0 4px"
|
|
226
|
-
},
|
|
470
|
+
}, o.size === "large" && {
|
|
227
471
|
minWidth: 40,
|
|
228
472
|
height: 40,
|
|
229
473
|
borderRadius: 40 / 2,
|
|
230
474
|
padding: "0 10px",
|
|
231
|
-
fontSize:
|
|
232
|
-
},
|
|
233
|
-
borderRadius: (
|
|
475
|
+
fontSize: e.typography.pxToRem(15)
|
|
476
|
+
}, o.shape === "rounded" && {
|
|
477
|
+
borderRadius: (e.vars || e).shape.borderRadius
|
|
234
478
|
}), ({
|
|
235
|
-
theme:
|
|
236
|
-
ownerState:
|
|
237
|
-
}) =>
|
|
238
|
-
[`&.${
|
|
239
|
-
color: (
|
|
240
|
-
backgroundColor: (
|
|
479
|
+
theme: e,
|
|
480
|
+
ownerState: o
|
|
481
|
+
}) => f({}, o.variant === "text" && {
|
|
482
|
+
[`&.${$.selected}`]: f({}, o.color !== "standard" && {
|
|
483
|
+
color: (e.vars || e).palette[o.color].contrastText,
|
|
484
|
+
backgroundColor: (e.vars || e).palette[o.color].main,
|
|
241
485
|
"&:hover": {
|
|
242
|
-
backgroundColor: (
|
|
486
|
+
backgroundColor: (e.vars || e).palette[o.color].dark,
|
|
243
487
|
// Reset on touch devices, it doesn't add specificity
|
|
244
488
|
"@media (hover: none)": {
|
|
245
|
-
backgroundColor: (
|
|
489
|
+
backgroundColor: (e.vars || e).palette[o.color].main
|
|
246
490
|
}
|
|
247
491
|
},
|
|
248
|
-
[`&.${
|
|
249
|
-
backgroundColor: (
|
|
492
|
+
[`&.${$.focusVisible}`]: {
|
|
493
|
+
backgroundColor: (e.vars || e).palette[o.color].dark
|
|
250
494
|
}
|
|
251
495
|
}, {
|
|
252
|
-
[`&.${
|
|
253
|
-
color: (
|
|
496
|
+
[`&.${$.disabled}`]: {
|
|
497
|
+
color: (e.vars || e).palette.action.disabled
|
|
254
498
|
}
|
|
255
499
|
})
|
|
256
|
-
},
|
|
257
|
-
border:
|
|
258
|
-
[`&.${
|
|
259
|
-
color: (
|
|
260
|
-
border: `1px solid ${
|
|
261
|
-
backgroundColor:
|
|
500
|
+
}, o.variant === "outlined" && {
|
|
501
|
+
border: e.vars ? `1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${e.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
502
|
+
[`&.${$.selected}`]: f({}, o.color !== "standard" && {
|
|
503
|
+
color: (e.vars || e).palette[o.color].main,
|
|
504
|
+
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / 0.5)` : S(e.palette[o.color].main, 0.5)}`,
|
|
505
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})` : S(e.palette[o.color].main, e.palette.action.activatedOpacity),
|
|
262
506
|
"&:hover": {
|
|
263
|
-
backgroundColor:
|
|
507
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : S(e.palette[o.color].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity),
|
|
264
508
|
// Reset on touch devices, it doesn't add specificity
|
|
265
509
|
"@media (hover: none)": {
|
|
266
510
|
backgroundColor: "transparent"
|
|
267
511
|
}
|
|
268
512
|
},
|
|
269
|
-
[`&.${
|
|
270
|
-
backgroundColor:
|
|
513
|
+
[`&.${$.focusVisible}`]: {
|
|
514
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : S(e.palette[o.color].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity)
|
|
271
515
|
}
|
|
272
516
|
}, {
|
|
273
|
-
[`&.${
|
|
274
|
-
borderColor: (
|
|
275
|
-
color: (
|
|
517
|
+
[`&.${$.disabled}`]: {
|
|
518
|
+
borderColor: (e.vars || e).palette.action.disabledBackground,
|
|
519
|
+
color: (e.vars || e).palette.action.disabled
|
|
276
520
|
}
|
|
277
521
|
})
|
|
278
|
-
})),
|
|
522
|
+
})), Oe = B("div", {
|
|
279
523
|
name: "MuiPaginationItem",
|
|
280
524
|
slot: "Icon",
|
|
281
|
-
overridesResolver: (
|
|
525
|
+
overridesResolver: (e, o) => o.icon
|
|
282
526
|
})(({
|
|
283
|
-
theme:
|
|
284
|
-
ownerState:
|
|
285
|
-
}) =>
|
|
286
|
-
fontSize:
|
|
527
|
+
theme: e,
|
|
528
|
+
ownerState: o
|
|
529
|
+
}) => f({
|
|
530
|
+
fontSize: e.typography.pxToRem(20),
|
|
287
531
|
margin: "0 -8px"
|
|
288
|
-
},
|
|
289
|
-
fontSize:
|
|
290
|
-
},
|
|
291
|
-
fontSize:
|
|
292
|
-
})),
|
|
293
|
-
const
|
|
294
|
-
props:
|
|
532
|
+
}, o.size === "small" && {
|
|
533
|
+
fontSize: e.typography.pxToRem(18)
|
|
534
|
+
}, o.size === "large" && {
|
|
535
|
+
fontSize: e.typography.pxToRem(22)
|
|
536
|
+
})), G = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
537
|
+
const a = F({
|
|
538
|
+
props: o,
|
|
295
539
|
name: "MuiPaginationItem"
|
|
296
540
|
}), {
|
|
297
|
-
className:
|
|
298
|
-
color:
|
|
541
|
+
className: i,
|
|
542
|
+
color: l = "standard",
|
|
299
543
|
component: u,
|
|
300
|
-
components:
|
|
544
|
+
components: s = {},
|
|
301
545
|
disabled: g = !1,
|
|
302
|
-
page:
|
|
303
|
-
selected:
|
|
304
|
-
shape:
|
|
305
|
-
size:
|
|
546
|
+
page: c,
|
|
547
|
+
selected: y = !1,
|
|
548
|
+
shape: x = "circular",
|
|
549
|
+
size: v = "medium",
|
|
306
550
|
slots: d = {},
|
|
307
|
-
type:
|
|
308
|
-
variant:
|
|
309
|
-
} =
|
|
310
|
-
color:
|
|
551
|
+
type: r = "page",
|
|
552
|
+
variant: P = "text"
|
|
553
|
+
} = a, N = w(a, xe), h = f({}, a, {
|
|
554
|
+
color: l,
|
|
311
555
|
disabled: g,
|
|
312
|
-
selected:
|
|
313
|
-
shape:
|
|
314
|
-
size:
|
|
315
|
-
type:
|
|
316
|
-
variant:
|
|
317
|
-
}),
|
|
318
|
-
previous: d.next ||
|
|
319
|
-
next: d.previous ||
|
|
320
|
-
last: d.first ||
|
|
321
|
-
first: d.last ||
|
|
556
|
+
selected: y,
|
|
557
|
+
shape: x,
|
|
558
|
+
size: v,
|
|
559
|
+
type: r,
|
|
560
|
+
variant: P
|
|
561
|
+
}), R = de(), C = he(h), T = (R ? {
|
|
562
|
+
previous: d.next || s.next || K,
|
|
563
|
+
next: d.previous || s.previous || J,
|
|
564
|
+
last: d.first || s.first || q,
|
|
565
|
+
first: d.last || s.last || H
|
|
322
566
|
} : {
|
|
323
|
-
previous: d.previous ||
|
|
324
|
-
next: d.next ||
|
|
325
|
-
first: d.first ||
|
|
326
|
-
last: d.last ||
|
|
327
|
-
})[
|
|
328
|
-
return
|
|
329
|
-
ref:
|
|
330
|
-
ownerState:
|
|
331
|
-
className:
|
|
567
|
+
previous: d.previous || s.previous || J,
|
|
568
|
+
next: d.next || s.next || K,
|
|
569
|
+
first: d.first || s.first || q,
|
|
570
|
+
last: d.last || s.last || H
|
|
571
|
+
})[r];
|
|
572
|
+
return r === "start-ellipsis" || r === "end-ellipsis" ? /* @__PURE__ */ b($e, {
|
|
573
|
+
ref: n,
|
|
574
|
+
ownerState: h,
|
|
575
|
+
className: V(C.root, i),
|
|
332
576
|
children: "…"
|
|
333
|
-
}) : /* @__PURE__ */
|
|
334
|
-
ref:
|
|
335
|
-
ownerState:
|
|
577
|
+
}) : /* @__PURE__ */ Q(Ce, f({
|
|
578
|
+
ref: n,
|
|
579
|
+
ownerState: h,
|
|
336
580
|
component: u,
|
|
337
581
|
disabled: g,
|
|
338
|
-
className:
|
|
582
|
+
className: V(C.root, i)
|
|
339
583
|
}, N, {
|
|
340
|
-
children: [
|
|
341
|
-
as:
|
|
342
|
-
ownerState:
|
|
343
|
-
className:
|
|
584
|
+
children: [r === "page" && c, T ? /* @__PURE__ */ b(Oe, {
|
|
585
|
+
as: T,
|
|
586
|
+
ownerState: h,
|
|
587
|
+
className: C.icon
|
|
344
588
|
}) : null]
|
|
345
589
|
}));
|
|
346
590
|
});
|
|
347
|
-
process.env.NODE_ENV !== "production" && (
|
|
591
|
+
process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
348
592
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
349
593
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
350
594
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -352,27 +596,27 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
352
596
|
/**
|
|
353
597
|
* @ignore
|
|
354
598
|
*/
|
|
355
|
-
children:
|
|
599
|
+
children: t.node,
|
|
356
600
|
/**
|
|
357
601
|
* Override or extend the styles applied to the component.
|
|
358
602
|
*/
|
|
359
|
-
classes:
|
|
603
|
+
classes: t.object,
|
|
360
604
|
/**
|
|
361
605
|
* @ignore
|
|
362
606
|
*/
|
|
363
|
-
className:
|
|
607
|
+
className: t.string,
|
|
364
608
|
/**
|
|
365
609
|
* The active color.
|
|
366
610
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
367
611
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
368
612
|
* @default 'standard'
|
|
369
613
|
*/
|
|
370
|
-
color:
|
|
614
|
+
color: t.oneOfType([t.oneOf(["primary", "secondary", "standard"]), t.string]),
|
|
371
615
|
/**
|
|
372
616
|
* The component used for the root node.
|
|
373
617
|
* Either a string to use a HTML element or a component.
|
|
374
618
|
*/
|
|
375
|
-
component:
|
|
619
|
+
component: t.elementType,
|
|
376
620
|
/**
|
|
377
621
|
* The components used for each slot inside.
|
|
378
622
|
*
|
|
@@ -381,36 +625,36 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
381
625
|
*
|
|
382
626
|
* @default {}
|
|
383
627
|
*/
|
|
384
|
-
components:
|
|
385
|
-
first:
|
|
386
|
-
last:
|
|
387
|
-
next:
|
|
388
|
-
previous:
|
|
628
|
+
components: t.shape({
|
|
629
|
+
first: t.elementType,
|
|
630
|
+
last: t.elementType,
|
|
631
|
+
next: t.elementType,
|
|
632
|
+
previous: t.elementType
|
|
389
633
|
}),
|
|
390
634
|
/**
|
|
391
635
|
* If `true`, the component is disabled.
|
|
392
636
|
* @default false
|
|
393
637
|
*/
|
|
394
|
-
disabled:
|
|
638
|
+
disabled: t.bool,
|
|
395
639
|
/**
|
|
396
640
|
* The current page number.
|
|
397
641
|
*/
|
|
398
|
-
page:
|
|
642
|
+
page: t.node,
|
|
399
643
|
/**
|
|
400
644
|
* If `true` the pagination item is selected.
|
|
401
645
|
* @default false
|
|
402
646
|
*/
|
|
403
|
-
selected:
|
|
647
|
+
selected: t.bool,
|
|
404
648
|
/**
|
|
405
649
|
* The shape of the pagination item.
|
|
406
650
|
* @default 'circular'
|
|
407
651
|
*/
|
|
408
|
-
shape:
|
|
652
|
+
shape: t.oneOf(["circular", "rounded"]),
|
|
409
653
|
/**
|
|
410
654
|
* The size of the component.
|
|
411
655
|
* @default 'medium'
|
|
412
656
|
*/
|
|
413
|
-
size:
|
|
657
|
+
size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
|
|
414
658
|
/**
|
|
415
659
|
* The components used for each slot inside.
|
|
416
660
|
*
|
|
@@ -418,49 +662,49 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
418
662
|
*
|
|
419
663
|
* @default {}
|
|
420
664
|
*/
|
|
421
|
-
slots:
|
|
422
|
-
first:
|
|
423
|
-
last:
|
|
424
|
-
next:
|
|
425
|
-
previous:
|
|
665
|
+
slots: t.shape({
|
|
666
|
+
first: t.elementType,
|
|
667
|
+
last: t.elementType,
|
|
668
|
+
next: t.elementType,
|
|
669
|
+
previous: t.elementType
|
|
426
670
|
}),
|
|
427
671
|
/**
|
|
428
672
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
429
673
|
*/
|
|
430
|
-
sx:
|
|
674
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
431
675
|
/**
|
|
432
676
|
* The type of pagination item.
|
|
433
677
|
* @default 'page'
|
|
434
678
|
*/
|
|
435
|
-
type:
|
|
679
|
+
type: t.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
|
|
436
680
|
/**
|
|
437
681
|
* The variant to use.
|
|
438
682
|
* @default 'text'
|
|
439
683
|
*/
|
|
440
|
-
variant:
|
|
684
|
+
variant: t.oneOfType([t.oneOf(["outlined", "text"]), t.string])
|
|
441
685
|
});
|
|
442
|
-
const
|
|
686
|
+
const Ne = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], Pe = (e) => {
|
|
443
687
|
const {
|
|
444
|
-
classes:
|
|
445
|
-
variant:
|
|
446
|
-
} =
|
|
447
|
-
return
|
|
448
|
-
root: ["root",
|
|
688
|
+
classes: o,
|
|
689
|
+
variant: n
|
|
690
|
+
} = e;
|
|
691
|
+
return W({
|
|
692
|
+
root: ["root", n],
|
|
449
693
|
ul: ["ul"]
|
|
450
|
-
},
|
|
451
|
-
},
|
|
694
|
+
}, ve, o);
|
|
695
|
+
}, ze = B("nav", {
|
|
452
696
|
name: "MuiPagination",
|
|
453
697
|
slot: "Root",
|
|
454
|
-
overridesResolver: (
|
|
698
|
+
overridesResolver: (e, o) => {
|
|
455
699
|
const {
|
|
456
|
-
ownerState:
|
|
457
|
-
} =
|
|
458
|
-
return [
|
|
700
|
+
ownerState: n
|
|
701
|
+
} = e;
|
|
702
|
+
return [o.root, o[n.variant]];
|
|
459
703
|
}
|
|
460
|
-
})({}),
|
|
704
|
+
})({}), Ie = B("ul", {
|
|
461
705
|
name: "MuiPagination",
|
|
462
706
|
slot: "Ul",
|
|
463
|
-
overridesResolver: (
|
|
707
|
+
overridesResolver: (e, o) => o.ul
|
|
464
708
|
})({
|
|
465
709
|
display: "flex",
|
|
466
710
|
flexWrap: "wrap",
|
|
@@ -469,73 +713,73 @@ const ua = ["boundaryCount", "className", "color", "count", "defaultPage", "disa
|
|
|
469
713
|
margin: 0,
|
|
470
714
|
listStyle: "none"
|
|
471
715
|
});
|
|
472
|
-
function
|
|
473
|
-
return
|
|
716
|
+
function Te(e, o, n) {
|
|
717
|
+
return e === "page" ? `${n ? "" : "Go to "}page ${o}` : `Go to ${e} page`;
|
|
474
718
|
}
|
|
475
|
-
const
|
|
476
|
-
const
|
|
477
|
-
props:
|
|
719
|
+
const ee = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
720
|
+
const a = F({
|
|
721
|
+
props: o,
|
|
478
722
|
name: "MuiPagination"
|
|
479
723
|
}), {
|
|
480
|
-
boundaryCount:
|
|
481
|
-
className:
|
|
724
|
+
boundaryCount: i = 1,
|
|
725
|
+
className: l,
|
|
482
726
|
color: u = "standard",
|
|
483
|
-
count:
|
|
727
|
+
count: s = 1,
|
|
484
728
|
defaultPage: g = 1,
|
|
485
|
-
disabled:
|
|
486
|
-
getItemAriaLabel:
|
|
487
|
-
hideNextButton:
|
|
488
|
-
hidePrevButton:
|
|
489
|
-
renderItem: d = (
|
|
490
|
-
shape:
|
|
491
|
-
showFirstButton:
|
|
729
|
+
disabled: c = !1,
|
|
730
|
+
getItemAriaLabel: y = Te,
|
|
731
|
+
hideNextButton: x = !1,
|
|
732
|
+
hidePrevButton: v = !1,
|
|
733
|
+
renderItem: d = (z) => /* @__PURE__ */ b(G, f({}, z)),
|
|
734
|
+
shape: r = "circular",
|
|
735
|
+
showFirstButton: P = !1,
|
|
492
736
|
showLastButton: N = !1,
|
|
493
|
-
siblingCount:
|
|
494
|
-
size:
|
|
495
|
-
variant:
|
|
496
|
-
} =
|
|
497
|
-
items:
|
|
498
|
-
} =
|
|
737
|
+
siblingCount: h = 1,
|
|
738
|
+
size: R = "medium",
|
|
739
|
+
variant: C = "text"
|
|
740
|
+
} = a, M = w(a, Ne), {
|
|
741
|
+
items: T
|
|
742
|
+
} = ye(f({}, a, {
|
|
499
743
|
componentName: "Pagination"
|
|
500
|
-
})),
|
|
501
|
-
boundaryCount:
|
|
744
|
+
})), _ = f({}, a, {
|
|
745
|
+
boundaryCount: i,
|
|
502
746
|
color: u,
|
|
503
|
-
count:
|
|
747
|
+
count: s,
|
|
504
748
|
defaultPage: g,
|
|
505
|
-
disabled:
|
|
506
|
-
getItemAriaLabel:
|
|
507
|
-
hideNextButton:
|
|
508
|
-
hidePrevButton:
|
|
749
|
+
disabled: c,
|
|
750
|
+
getItemAriaLabel: y,
|
|
751
|
+
hideNextButton: x,
|
|
752
|
+
hidePrevButton: v,
|
|
509
753
|
renderItem: d,
|
|
510
|
-
shape:
|
|
511
|
-
showFirstButton:
|
|
754
|
+
shape: r,
|
|
755
|
+
showFirstButton: P,
|
|
512
756
|
showLastButton: N,
|
|
513
|
-
siblingCount:
|
|
514
|
-
size:
|
|
515
|
-
variant:
|
|
516
|
-
}),
|
|
517
|
-
return /* @__PURE__ */ b(
|
|
757
|
+
siblingCount: h,
|
|
758
|
+
size: R,
|
|
759
|
+
variant: C
|
|
760
|
+
}), k = Pe(_);
|
|
761
|
+
return /* @__PURE__ */ b(ze, f({
|
|
518
762
|
"aria-label": "pagination navigation",
|
|
519
|
-
className:
|
|
520
|
-
ownerState:
|
|
521
|
-
ref:
|
|
522
|
-
},
|
|
523
|
-
children: /* @__PURE__ */ b(
|
|
524
|
-
className:
|
|
525
|
-
ownerState:
|
|
526
|
-
children:
|
|
527
|
-
children: d(
|
|
763
|
+
className: V(k.root, l),
|
|
764
|
+
ownerState: _,
|
|
765
|
+
ref: n
|
|
766
|
+
}, M, {
|
|
767
|
+
children: /* @__PURE__ */ b(Ie, {
|
|
768
|
+
className: k.ul,
|
|
769
|
+
ownerState: _,
|
|
770
|
+
children: T.map((z, p) => /* @__PURE__ */ b("li", {
|
|
771
|
+
children: d(f({}, z, {
|
|
528
772
|
color: u,
|
|
529
|
-
"aria-label":
|
|
530
|
-
shape:
|
|
531
|
-
size:
|
|
532
|
-
variant:
|
|
773
|
+
"aria-label": y(z.type, z.page, z.selected),
|
|
774
|
+
shape: r,
|
|
775
|
+
size: R,
|
|
776
|
+
variant: C
|
|
533
777
|
}))
|
|
534
|
-
},
|
|
778
|
+
}, p))
|
|
535
779
|
})
|
|
536
780
|
}));
|
|
537
781
|
});
|
|
538
|
-
process.env.NODE_ENV !== "production" && (
|
|
782
|
+
process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
539
783
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
540
784
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
541
785
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -544,37 +788,37 @@ process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
|
544
788
|
* Number of always visible pages at the beginning and end.
|
|
545
789
|
* @default 1
|
|
546
790
|
*/
|
|
547
|
-
boundaryCount:
|
|
791
|
+
boundaryCount: L,
|
|
548
792
|
/**
|
|
549
793
|
* Override or extend the styles applied to the component.
|
|
550
794
|
*/
|
|
551
|
-
classes:
|
|
795
|
+
classes: t.object,
|
|
552
796
|
/**
|
|
553
797
|
* @ignore
|
|
554
798
|
*/
|
|
555
|
-
className:
|
|
799
|
+
className: t.string,
|
|
556
800
|
/**
|
|
557
801
|
* The active color.
|
|
558
802
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
559
803
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
560
804
|
* @default 'standard'
|
|
561
805
|
*/
|
|
562
|
-
color:
|
|
806
|
+
color: t.oneOfType([t.oneOf(["primary", "secondary", "standard"]), t.string]),
|
|
563
807
|
/**
|
|
564
808
|
* The total number of pages.
|
|
565
809
|
* @default 1
|
|
566
810
|
*/
|
|
567
|
-
count:
|
|
811
|
+
count: L,
|
|
568
812
|
/**
|
|
569
813
|
* The page selected by default when the component is uncontrolled.
|
|
570
814
|
* @default 1
|
|
571
815
|
*/
|
|
572
|
-
defaultPage:
|
|
816
|
+
defaultPage: L,
|
|
573
817
|
/**
|
|
574
818
|
* If `true`, the component is disabled.
|
|
575
819
|
* @default false
|
|
576
820
|
*/
|
|
577
|
-
disabled:
|
|
821
|
+
disabled: t.bool,
|
|
578
822
|
/**
|
|
579
823
|
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
580
824
|
* This is important for screen reader users.
|
|
@@ -585,99 +829,99 @@ process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
|
585
829
|
* @param {bool} selected If true, the current page is selected.
|
|
586
830
|
* @returns {string}
|
|
587
831
|
*/
|
|
588
|
-
getItemAriaLabel:
|
|
832
|
+
getItemAriaLabel: t.func,
|
|
589
833
|
/**
|
|
590
834
|
* If `true`, hide the next-page button.
|
|
591
835
|
* @default false
|
|
592
836
|
*/
|
|
593
|
-
hideNextButton:
|
|
837
|
+
hideNextButton: t.bool,
|
|
594
838
|
/**
|
|
595
839
|
* If `true`, hide the previous-page button.
|
|
596
840
|
* @default false
|
|
597
841
|
*/
|
|
598
|
-
hidePrevButton:
|
|
842
|
+
hidePrevButton: t.bool,
|
|
599
843
|
/**
|
|
600
844
|
* Callback fired when the page is changed.
|
|
601
845
|
*
|
|
602
846
|
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
603
847
|
* @param {number} page The page selected.
|
|
604
848
|
*/
|
|
605
|
-
onChange:
|
|
849
|
+
onChange: t.func,
|
|
606
850
|
/**
|
|
607
851
|
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
608
852
|
*/
|
|
609
|
-
page:
|
|
853
|
+
page: L,
|
|
610
854
|
/**
|
|
611
855
|
* Render the item.
|
|
612
856
|
* @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
|
|
613
857
|
* @returns {ReactNode}
|
|
614
858
|
* @default (item) => <PaginationItem {...item} />
|
|
615
859
|
*/
|
|
616
|
-
renderItem:
|
|
860
|
+
renderItem: t.func,
|
|
617
861
|
/**
|
|
618
862
|
* The shape of the pagination items.
|
|
619
863
|
* @default 'circular'
|
|
620
864
|
*/
|
|
621
|
-
shape:
|
|
865
|
+
shape: t.oneOf(["circular", "rounded"]),
|
|
622
866
|
/**
|
|
623
867
|
* If `true`, show the first-page button.
|
|
624
868
|
* @default false
|
|
625
869
|
*/
|
|
626
|
-
showFirstButton:
|
|
870
|
+
showFirstButton: t.bool,
|
|
627
871
|
/**
|
|
628
872
|
* If `true`, show the last-page button.
|
|
629
873
|
* @default false
|
|
630
874
|
*/
|
|
631
|
-
showLastButton:
|
|
875
|
+
showLastButton: t.bool,
|
|
632
876
|
/**
|
|
633
877
|
* Number of always visible pages before and after the current page.
|
|
634
878
|
* @default 1
|
|
635
879
|
*/
|
|
636
|
-
siblingCount:
|
|
880
|
+
siblingCount: L,
|
|
637
881
|
/**
|
|
638
882
|
* The size of the component.
|
|
639
883
|
* @default 'medium'
|
|
640
884
|
*/
|
|
641
|
-
size:
|
|
885
|
+
size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
|
|
642
886
|
/**
|
|
643
887
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
644
888
|
*/
|
|
645
|
-
sx:
|
|
889
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
646
890
|
/**
|
|
647
891
|
* The variant to use.
|
|
648
892
|
* @default 'text'
|
|
649
893
|
*/
|
|
650
|
-
variant:
|
|
894
|
+
variant: t.oneOfType([t.oneOf(["outlined", "text"]), t.string])
|
|
651
895
|
});
|
|
652
|
-
function
|
|
653
|
-
isRtl:
|
|
654
|
-
pageCount:
|
|
655
|
-
arrowFirstIcon:
|
|
656
|
-
arrowLastIcon:
|
|
657
|
-
nextIcon:
|
|
658
|
-
previousIcon:
|
|
896
|
+
function Re({
|
|
897
|
+
isRtl: e,
|
|
898
|
+
pageCount: o,
|
|
899
|
+
arrowFirstIcon: n,
|
|
900
|
+
arrowLastIcon: a,
|
|
901
|
+
nextIcon: i,
|
|
902
|
+
previousIcon: l,
|
|
659
903
|
page: u,
|
|
660
|
-
onPageChange:
|
|
904
|
+
onPageChange: s,
|
|
661
905
|
className: g
|
|
662
906
|
}) {
|
|
663
907
|
return /* @__PURE__ */ b(
|
|
664
|
-
|
|
908
|
+
ee,
|
|
665
909
|
{
|
|
666
910
|
showFirstButton: !0,
|
|
667
911
|
showLastButton: !0,
|
|
668
912
|
className: g,
|
|
669
|
-
count:
|
|
913
|
+
count: o,
|
|
670
914
|
page: u + 1,
|
|
671
|
-
onChange: (
|
|
672
|
-
|
|
915
|
+
onChange: (c, y) => {
|
|
916
|
+
s(c, y - 1);
|
|
673
917
|
},
|
|
674
918
|
boundaryCount: 0,
|
|
675
919
|
siblingCount: 1,
|
|
676
|
-
renderItem: (
|
|
677
|
-
|
|
920
|
+
renderItem: (c) => /* @__PURE__ */ b(
|
|
921
|
+
G,
|
|
678
922
|
{
|
|
679
|
-
slots: { previous:
|
|
680
|
-
...
|
|
923
|
+
slots: { previous: e ? i : l, next: e ? l : i, first: e ? a : n, last: e ? n : a },
|
|
924
|
+
...c
|
|
681
925
|
}
|
|
682
926
|
),
|
|
683
927
|
sx: {
|
|
@@ -696,9 +940,9 @@ function ya({
|
|
|
696
940
|
}
|
|
697
941
|
);
|
|
698
942
|
}
|
|
699
|
-
function
|
|
700
|
-
return /* @__PURE__ */ b(
|
|
943
|
+
function Ve({ isRtl: e, pageCount: o, arrowFirstIcon: n, arrowLastIcon: a, nextIcon: i, previousIcon: l }) {
|
|
944
|
+
return /* @__PURE__ */ b(ne, { ActionsComponent: (u) => /* @__PURE__ */ b(Re, { isRtl: e, pageCount: o, arrowFirstIcon: n, arrowLastIcon: a, nextIcon: i, previousIcon: l, ...u }) });
|
|
701
945
|
}
|
|
702
946
|
export {
|
|
703
|
-
|
|
947
|
+
Ve as CustomPagination
|
|
704
948
|
};
|