@amateescu/portal-ui-components 0.0.7-beta2 → 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.d.ts +7 -9
- package/dist/components/CustomPagination/index.js +530 -287
- 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/dist/types/CustomSvg.d.ts +5 -0
- package/dist/types/CustomSvg.js +1 -0
- package/package.json +1 -1
- package/dist/Button-toPW5zuy.js +0 -355
- package/dist/CircularProgress-CrVlDhIx.js +0 -214
- package/dist/GridPagination-DX1ANwBF.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 { _, a as
|
|
4
|
-
import * as
|
|
5
|
-
import { g as
|
|
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);
|
|
59
|
+
}
|
|
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) => {
|
|
76
|
+
const {
|
|
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));
|
|
9
246
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 = {}) {
|
|
13
253
|
const {
|
|
14
254
|
boundaryCount: o = 1,
|
|
15
|
-
componentName:
|
|
16
|
-
count:
|
|
17
|
-
defaultPage:
|
|
18
|
-
disabled:
|
|
19
|
-
hideNextButton:
|
|
20
|
-
hidePrevButton:
|
|
21
|
-
onChange:
|
|
22
|
-
page:
|
|
23
|
-
showFirstButton:
|
|
24
|
-
showLastButton:
|
|
25
|
-
siblingCount:
|
|
26
|
-
} =
|
|
27
|
-
controlled:
|
|
28
|
-
default:
|
|
29
|
-
name:
|
|
255
|
+
componentName: n = "usePagination",
|
|
256
|
+
count: a = 1,
|
|
257
|
+
defaultPage: i = 1,
|
|
258
|
+
disabled: l = !1,
|
|
259
|
+
hideNextButton: u = !1,
|
|
260
|
+
hidePrevButton: s = !1,
|
|
261
|
+
onChange: g,
|
|
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
286
|
o + 2
|
|
47
|
-
),
|
|
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
|
-
o +
|
|
292
|
+
o + v * 2 + 2
|
|
53
293
|
),
|
|
54
294
|
// Less than endPages
|
|
55
|
-
C.length > 0 ? C[0] - 2 :
|
|
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
|
-
...
|
|
307
|
+
...T < a - o - 1 ? ["end-ellipsis"] : a - o > o ? [a - o] : [],
|
|
68
308
|
...C,
|
|
69
|
-
...
|
|
70
|
-
|
|
71
|
-
],
|
|
72
|
-
switch (
|
|
309
|
+
...u ? [] : ["next"],
|
|
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:
|
|
104
|
-
},
|
|
342
|
+
return f({
|
|
343
|
+
items: z
|
|
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 [o.root, o[
|
|
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
364
|
classes: o,
|
|
121
|
-
color:
|
|
122
|
-
disabled:
|
|
123
|
-
selected:
|
|
124
|
-
size:
|
|
125
|
-
shape:
|
|
126
|
-
type:
|
|
127
|
-
variant:
|
|
128
|
-
} =
|
|
129
|
-
root: ["root", `size${
|
|
365
|
+
color: n,
|
|
366
|
+
disabled: a,
|
|
367
|
+
selected: i,
|
|
368
|
+
size: l,
|
|
369
|
+
shape: u,
|
|
370
|
+
type: s,
|
|
371
|
+
variant: g
|
|
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,28 +378,28 @@ const g = q("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:
|
|
390
|
+
theme: e,
|
|
147
391
|
ownerState: o
|
|
148
|
-
}) =>
|
|
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,
|
|
@@ -166,15 +410,15 @@ const g = q("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
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:
|
|
419
|
+
theme: e,
|
|
176
420
|
ownerState: o
|
|
177
|
-
}) =>
|
|
421
|
+
}) => f({}, e.typography.body2, {
|
|
178
422
|
borderRadius: 32 / 2,
|
|
179
423
|
textAlign: "center",
|
|
180
424
|
boxSizing: "border-box",
|
|
@@ -182,39 +426,39 @@ const g = q("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" && {
|
|
@@ -228,123 +472,123 @@ const g = q("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
228
472
|
height: 40,
|
|
229
473
|
borderRadius: 40 / 2,
|
|
230
474
|
padding: "0 10px",
|
|
231
|
-
fontSize:
|
|
475
|
+
fontSize: e.typography.pxToRem(15)
|
|
232
476
|
}, o.shape === "rounded" && {
|
|
233
|
-
borderRadius: (
|
|
477
|
+
borderRadius: (e.vars || e).shape.borderRadius
|
|
234
478
|
}), ({
|
|
235
|
-
theme:
|
|
479
|
+
theme: e,
|
|
236
480
|
ownerState: o
|
|
237
|
-
}) =>
|
|
238
|
-
[`&.${
|
|
239
|
-
color: (
|
|
240
|
-
backgroundColor: (
|
|
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
500
|
}, o.variant === "outlined" && {
|
|
257
|
-
border:
|
|
258
|
-
[`&.${
|
|
259
|
-
color: (
|
|
260
|
-
border: `1px solid ${
|
|
261
|
-
backgroundColor:
|
|
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:
|
|
527
|
+
theme: e,
|
|
284
528
|
ownerState: o
|
|
285
|
-
}) =>
|
|
286
|
-
fontSize:
|
|
529
|
+
}) => f({
|
|
530
|
+
fontSize: e.typography.pxToRem(20),
|
|
287
531
|
margin: "0 -8px"
|
|
288
532
|
}, o.size === "small" && {
|
|
289
|
-
fontSize:
|
|
533
|
+
fontSize: e.typography.pxToRem(18)
|
|
290
534
|
}, o.size === "large" && {
|
|
291
|
-
fontSize:
|
|
292
|
-
})),
|
|
293
|
-
const
|
|
535
|
+
fontSize: e.typography.pxToRem(22)
|
|
536
|
+
})), G = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
537
|
+
const a = F({
|
|
294
538
|
props: o,
|
|
295
539
|
name: "MuiPaginationItem"
|
|
296
540
|
}), {
|
|
297
|
-
className:
|
|
298
|
-
color:
|
|
299
|
-
component:
|
|
300
|
-
components:
|
|
301
|
-
disabled:
|
|
302
|
-
page:
|
|
303
|
-
selected:
|
|
304
|
-
shape:
|
|
305
|
-
size:
|
|
306
|
-
slots:
|
|
307
|
-
type:
|
|
308
|
-
variant:
|
|
309
|
-
} =
|
|
310
|
-
color:
|
|
311
|
-
disabled:
|
|
312
|
-
selected:
|
|
313
|
-
shape:
|
|
314
|
-
size:
|
|
315
|
-
type:
|
|
316
|
-
variant:
|
|
317
|
-
}),
|
|
318
|
-
previous:
|
|
319
|
-
next:
|
|
320
|
-
last:
|
|
321
|
-
first:
|
|
541
|
+
className: i,
|
|
542
|
+
color: l = "standard",
|
|
543
|
+
component: u,
|
|
544
|
+
components: s = {},
|
|
545
|
+
disabled: g = !1,
|
|
546
|
+
page: c,
|
|
547
|
+
selected: y = !1,
|
|
548
|
+
shape: x = "circular",
|
|
549
|
+
size: v = "medium",
|
|
550
|
+
slots: d = {},
|
|
551
|
+
type: r = "page",
|
|
552
|
+
variant: P = "text"
|
|
553
|
+
} = a, N = w(a, xe), h = f({}, a, {
|
|
554
|
+
color: l,
|
|
555
|
+
disabled: g,
|
|
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:
|
|
324
|
-
next:
|
|
325
|
-
first:
|
|
326
|
-
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:
|
|
336
|
-
component:
|
|
337
|
-
disabled:
|
|
338
|
-
className:
|
|
577
|
+
}) : /* @__PURE__ */ Q(Ce, f({
|
|
578
|
+
ref: n,
|
|
579
|
+
ownerState: h,
|
|
580
|
+
component: u,
|
|
581
|
+
disabled: g,
|
|
582
|
+
className: V(C.root, i)
|
|
339
583
|
}, N, {
|
|
340
|
-
children: [
|
|
341
|
-
as:
|
|
342
|
-
ownerState:
|
|
584
|
+
children: [r === "page" && c, T ? /* @__PURE__ */ b(Oe, {
|
|
585
|
+
as: T,
|
|
586
|
+
ownerState: h,
|
|
343
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`. │
|
|
@@ -439,28 +683,28 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
439
683
|
*/
|
|
440
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
688
|
classes: o,
|
|
445
|
-
variant:
|
|
446
|
-
} =
|
|
447
|
-
return
|
|
448
|
-
root: ["root",
|
|
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 [o.root, o[
|
|
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 ya = ["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
|
|
719
|
+
const ee = /* @__PURE__ */ m.forwardRef(function(o, n) {
|
|
720
|
+
const a = F({
|
|
477
721
|
props: o,
|
|
478
722
|
name: "MuiPagination"
|
|
479
723
|
}), {
|
|
480
|
-
boundaryCount:
|
|
481
|
-
className:
|
|
482
|
-
color:
|
|
483
|
-
count:
|
|
484
|
-
defaultPage:
|
|
485
|
-
disabled:
|
|
486
|
-
getItemAriaLabel:
|
|
487
|
-
hideNextButton:
|
|
488
|
-
hidePrevButton:
|
|
489
|
-
renderItem:
|
|
490
|
-
shape:
|
|
491
|
-
showFirstButton:
|
|
724
|
+
boundaryCount: i = 1,
|
|
725
|
+
className: l,
|
|
726
|
+
color: u = "standard",
|
|
727
|
+
count: s = 1,
|
|
728
|
+
defaultPage: g = 1,
|
|
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:
|
|
737
|
+
siblingCount: h = 1,
|
|
738
|
+
size: R = "medium",
|
|
495
739
|
variant: C = "text"
|
|
496
|
-
} =
|
|
497
|
-
items:
|
|
498
|
-
} =
|
|
740
|
+
} = a, M = w(a, Ne), {
|
|
741
|
+
items: T
|
|
742
|
+
} = ye(f({}, a, {
|
|
499
743
|
componentName: "Pagination"
|
|
500
|
-
})),
|
|
501
|
-
boundaryCount:
|
|
502
|
-
color:
|
|
503
|
-
count:
|
|
504
|
-
defaultPage:
|
|
505
|
-
disabled:
|
|
506
|
-
getItemAriaLabel:
|
|
507
|
-
hideNextButton:
|
|
508
|
-
hidePrevButton:
|
|
509
|
-
renderItem:
|
|
510
|
-
shape:
|
|
511
|
-
showFirstButton:
|
|
744
|
+
})), _ = f({}, a, {
|
|
745
|
+
boundaryCount: i,
|
|
746
|
+
color: u,
|
|
747
|
+
count: s,
|
|
748
|
+
defaultPage: g,
|
|
749
|
+
disabled: c,
|
|
750
|
+
getItemAriaLabel: y,
|
|
751
|
+
hideNextButton: x,
|
|
752
|
+
hidePrevButton: v,
|
|
753
|
+
renderItem: d,
|
|
754
|
+
shape: r,
|
|
755
|
+
showFirstButton: P,
|
|
512
756
|
showLastButton: N,
|
|
513
|
-
siblingCount:
|
|
514
|
-
size:
|
|
757
|
+
siblingCount: h,
|
|
758
|
+
size: R,
|
|
515
759
|
variant: C
|
|
516
|
-
}),
|
|
517
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
524
|
-
className:
|
|
525
|
-
ownerState:
|
|
526
|
-
children:
|
|
527
|
-
children:
|
|
528
|
-
color:
|
|
529
|
-
"aria-label":
|
|
530
|
-
shape:
|
|
531
|
-
size:
|
|
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, {
|
|
772
|
+
color: u,
|
|
773
|
+
"aria-label": y(z.type, z.page, z.selected),
|
|
774
|
+
shape: r,
|
|
775
|
+
size: R,
|
|
532
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,7 +788,7 @@ process.env.NODE_ENV !== "production" && (Q.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
|
*/
|
|
@@ -564,12 +808,12 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
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
|
|
@@ -606,7 +850,7 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
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.
|
|
@@ -633,7 +877,7 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
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'
|
|
@@ -649,36 +893,35 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
649
893
|
*/
|
|
650
894
|
variant: t.oneOfType([t.oneOf(["outlined", "text"]), t.string])
|
|
651
895
|
});
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
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:
|
|
661
|
-
className:
|
|
904
|
+
onPageChange: s,
|
|
905
|
+
className: g
|
|
662
906
|
}) {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
Q,
|
|
907
|
+
return /* @__PURE__ */ b(
|
|
908
|
+
ee,
|
|
666
909
|
{
|
|
667
910
|
showFirstButton: !0,
|
|
668
911
|
showLastButton: !0,
|
|
669
|
-
className:
|
|
670
|
-
count:
|
|
912
|
+
className: g,
|
|
913
|
+
count: o,
|
|
671
914
|
page: u + 1,
|
|
672
|
-
onChange: (
|
|
673
|
-
|
|
915
|
+
onChange: (c, y) => {
|
|
916
|
+
s(c, y - 1);
|
|
674
917
|
},
|
|
675
918
|
boundaryCount: 0,
|
|
676
919
|
siblingCount: 1,
|
|
677
|
-
renderItem: (
|
|
678
|
-
|
|
920
|
+
renderItem: (c) => /* @__PURE__ */ b(
|
|
921
|
+
G,
|
|
679
922
|
{
|
|
680
|
-
slots: { previous:
|
|
681
|
-
...
|
|
923
|
+
slots: { previous: e ? i : l, next: e ? l : i, first: e ? a : n, last: e ? n : a },
|
|
924
|
+
...c
|
|
682
925
|
}
|
|
683
926
|
),
|
|
684
927
|
sx: {
|
|
@@ -697,9 +940,9 @@ function $a({
|
|
|
697
940
|
}
|
|
698
941
|
);
|
|
699
942
|
}
|
|
700
|
-
function
|
|
701
|
-
return /* @__PURE__ */
|
|
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 }) });
|
|
702
945
|
}
|
|
703
946
|
export {
|
|
704
|
-
|
|
947
|
+
Ve as CustomPagination
|
|
705
948
|
};
|