@amateescu/portal-ui-components 0.0.32-beta1 → 0.0.33
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/{UserInfoDropdown-Cql8tlJU.js → UserInfoDropdown-GTCkmg6H.js} +2 -2
- package/dist/assets/ConfirmationModal.css +1 -1
- package/dist/assets/ErrorModal.css +1 -1
- package/dist/assets/KpiCard.css +1 -1
- package/dist/assets/SideMenu.css +1 -1
- package/dist/assets/UserInfoDropdown.css +1 -1
- package/dist/assets/{theme.css → globals.css} +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.js +17 -17
- package/dist/components/CustomButton/CustomButton.js +10 -10
- package/dist/components/CustomFooter/CustomFooter.stories.js +7 -6
- package/dist/components/CustomPagination/CustomPagination.js +162 -157
- package/dist/components/ErrorModal/ErrorModal.js +10 -11
- package/dist/components/InfoModal/InfoModal.js +18 -18
- package/dist/components/KpiCard/KpiCard.js +1 -1
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +11 -10
- package/dist/components/Login/Login.js +2 -2
- package/dist/components/SideMenu/SideMenu.js +33 -33
- package/dist/components/TotalDataGrid/TotalDataGrid.js +11 -11
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
- package/dist/components/index.js +25 -24
- package/dist/main.js +46 -45
- package/package.json +3 -7
- package/dist/assets/portal-theme.css +0 -1
- package/src/theme/portal-theme.scss +0 -43
- package/src/theme/theme.scss +0 -43
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as s, jsxs as ot } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
3
|
import { GridPagination as nt } from "@mui/x-data-grid";
|
|
4
4
|
import { g as Q, a as X, u as Y, s as R, c as A, b as T, d as Z, m as F, i as S, e as _, P as e } from "../../createSimplePaletteValueFilter-evt-Xthj.js";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as rt, a as st, b as j, i as B } from "../../useSlot-Baxtq84W.js";
|
|
6
6
|
import { c as E } from "../../createSvgIcon-CgFXfzFk.js";
|
|
7
7
|
import { B as it } from "../../ButtonBase-DUKuDCWw.js";
|
|
8
|
-
const H = (t) => /* @__PURE__ */
|
|
8
|
+
const H = (t) => /* @__PURE__ */ p.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ p.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ p.createElement("path", { id: "vector", d: "M17.5 5L10.5 12L17.5 19M7.5 5L7.5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), q = (t) => /* @__PURE__ */ p.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ p.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ p.createElement("path", { id: "vector", d: "M7.5 4.99998L14.5 12L7.5 19M17.5 4.99998L17.5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), J = (t) => /* @__PURE__ */ p.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ p.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), K = (t) => /* @__PURE__ */ p.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ p.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
9
9
|
function lt(t) {
|
|
10
10
|
return Q("MuiPagination", t);
|
|
11
11
|
}
|
|
12
12
|
X("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
13
|
-
function
|
|
13
|
+
function ct(t = {}) {
|
|
14
14
|
const {
|
|
15
15
|
boundaryCount: a = 1,
|
|
16
16
|
componentName: o = "usePagination",
|
|
17
17
|
count: n = 1,
|
|
18
|
-
defaultPage:
|
|
19
|
-
disabled:
|
|
20
|
-
hideNextButton:
|
|
21
|
-
hidePrevButton:
|
|
18
|
+
defaultPage: v = 1,
|
|
19
|
+
disabled: c = !1,
|
|
20
|
+
hideNextButton: f = !1,
|
|
21
|
+
hidePrevButton: y = !1,
|
|
22
22
|
onChange: b,
|
|
23
23
|
page: P,
|
|
24
|
-
showFirstButton:
|
|
24
|
+
showFirstButton: L = !1,
|
|
25
25
|
showLastButton: z = !1,
|
|
26
26
|
siblingCount: C = 1,
|
|
27
27
|
...w
|
|
28
|
-
} = t, [
|
|
28
|
+
} = t, [d, u] = rt({
|
|
29
29
|
controlled: P,
|
|
30
|
-
default:
|
|
30
|
+
default: v,
|
|
31
31
|
name: o,
|
|
32
32
|
state: "page"
|
|
33
|
-
}), O = (
|
|
34
|
-
P ||
|
|
35
|
-
},
|
|
36
|
-
const I =
|
|
33
|
+
}), O = (r, i) => {
|
|
34
|
+
P || u(i), b && b(r, i);
|
|
35
|
+
}, $ = (r, i) => {
|
|
36
|
+
const I = i - r + 1;
|
|
37
37
|
return Array.from({
|
|
38
38
|
length: I
|
|
39
|
-
}, (V, W) =>
|
|
40
|
-
},
|
|
39
|
+
}, (V, W) => r + W);
|
|
40
|
+
}, g = $(1, Math.min(a, n)), M = $(Math.max(n - a + 1, a + 1), n), m = Math.max(
|
|
41
41
|
Math.min(
|
|
42
42
|
// Natural start
|
|
43
|
-
|
|
43
|
+
d - C,
|
|
44
44
|
// Lower boundary when page is high
|
|
45
45
|
n - a - C * 2 - 1
|
|
46
46
|
),
|
|
47
47
|
// Greater than startPages
|
|
48
48
|
a + 2
|
|
49
|
-
),
|
|
49
|
+
), x = Math.min(
|
|
50
50
|
Math.max(
|
|
51
51
|
// Natural end
|
|
52
|
-
|
|
52
|
+
d + C,
|
|
53
53
|
// Upper boundary when page is low
|
|
54
54
|
a + C * 2 + 2
|
|
55
55
|
),
|
|
56
56
|
// Less than endPages
|
|
57
57
|
n - a - 1
|
|
58
58
|
), N = [
|
|
59
|
-
|
|
60
|
-
...
|
|
61
|
-
...
|
|
59
|
+
...L ? ["first"] : [],
|
|
60
|
+
...y ? [] : ["previous"],
|
|
61
|
+
...g,
|
|
62
62
|
// Start ellipsis
|
|
63
63
|
// eslint-disable-next-line no-nested-ternary
|
|
64
64
|
...m > a + 2 ? ["start-ellipsis"] : a + 1 < n - a ? [a + 1] : [],
|
|
65
65
|
// Sibling pages
|
|
66
|
-
|
|
66
|
+
...$(m, x),
|
|
67
67
|
// End ellipsis
|
|
68
68
|
// eslint-disable-next-line no-nested-ternary
|
|
69
|
-
...
|
|
69
|
+
...x < n - a - 1 ? ["end-ellipsis"] : n - a > a ? [n - a] : [],
|
|
70
70
|
...M,
|
|
71
|
-
...
|
|
71
|
+
...f ? [] : ["next"],
|
|
72
72
|
...z ? ["last"] : []
|
|
73
|
-
],
|
|
74
|
-
switch (
|
|
73
|
+
], h = (r) => {
|
|
74
|
+
switch (r) {
|
|
75
75
|
case "first":
|
|
76
76
|
return 1;
|
|
77
77
|
case "previous":
|
|
78
|
-
return
|
|
78
|
+
return d - 1;
|
|
79
79
|
case "next":
|
|
80
|
-
return
|
|
80
|
+
return d + 1;
|
|
81
81
|
case "last":
|
|
82
82
|
return n;
|
|
83
83
|
default:
|
|
@@ -85,37 +85,37 @@ function pt(t = {}) {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
return {
|
|
88
|
-
items: N.map((
|
|
89
|
-
onClick: (
|
|
90
|
-
O(
|
|
88
|
+
items: N.map((r) => typeof r == "number" ? {
|
|
89
|
+
onClick: (i) => {
|
|
90
|
+
O(i, r);
|
|
91
91
|
},
|
|
92
92
|
type: "page",
|
|
93
|
-
page:
|
|
94
|
-
selected:
|
|
95
|
-
disabled:
|
|
96
|
-
"aria-current":
|
|
93
|
+
page: r,
|
|
94
|
+
selected: r === d,
|
|
95
|
+
disabled: c,
|
|
96
|
+
"aria-current": r === d ? "page" : void 0
|
|
97
97
|
} : {
|
|
98
|
-
onClick: (
|
|
99
|
-
O(
|
|
98
|
+
onClick: (i) => {
|
|
99
|
+
O(i, h(r));
|
|
100
100
|
},
|
|
101
|
-
type:
|
|
102
|
-
page:
|
|
101
|
+
type: r,
|
|
102
|
+
page: h(r),
|
|
103
103
|
selected: !1,
|
|
104
|
-
disabled:
|
|
104
|
+
disabled: c || !r.includes("ellipsis") && (r === "next" || r === "last" ? d >= n : d <= 1)
|
|
105
105
|
}),
|
|
106
106
|
...w
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function pt(t) {
|
|
110
110
|
return Q("MuiPaginationItem", t);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const l = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), dt = E(/* @__PURE__ */ s("path", {
|
|
113
113
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
114
|
-
}), "FirstPage"), ut = E(/* @__PURE__ */
|
|
114
|
+
}), "FirstPage"), ut = E(/* @__PURE__ */ s("path", {
|
|
115
115
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
116
|
-
}), "LastPage"), gt = E(/* @__PURE__ */
|
|
116
|
+
}), "LastPage"), gt = E(/* @__PURE__ */ s("path", {
|
|
117
117
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
118
|
-
}), "NavigateBefore"), vt = E(/* @__PURE__ */
|
|
118
|
+
}), "NavigateBefore"), vt = E(/* @__PURE__ */ s("path", {
|
|
119
119
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
120
120
|
}), "NavigateNext"), tt = (t, a) => {
|
|
121
121
|
const {
|
|
@@ -127,13 +127,13 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
127
127
|
classes: a,
|
|
128
128
|
color: o,
|
|
129
129
|
disabled: n,
|
|
130
|
-
selected:
|
|
131
|
-
size:
|
|
132
|
-
shape:
|
|
133
|
-
type:
|
|
130
|
+
selected: v,
|
|
131
|
+
size: c,
|
|
132
|
+
shape: f,
|
|
133
|
+
type: y,
|
|
134
134
|
variant: b
|
|
135
135
|
} = t, P = {
|
|
136
|
-
root: ["root", `size${T(
|
|
136
|
+
root: ["root", `size${T(c)}`, b, f, o !== "standard" && `color${T(o)}`, o !== "standard" && `${b}${T(o)}`, n && "disabled", v && "selected", {
|
|
137
137
|
page: "page",
|
|
138
138
|
first: "firstLast",
|
|
139
139
|
last: "firstLast",
|
|
@@ -141,11 +141,11 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
141
141
|
"end-ellipsis": "ellipsis",
|
|
142
142
|
previous: "previousNext",
|
|
143
143
|
next: "previousNext"
|
|
144
|
-
}[
|
|
144
|
+
}[y]],
|
|
145
145
|
icon: ["icon"]
|
|
146
146
|
};
|
|
147
|
-
return Z(P,
|
|
148
|
-
},
|
|
147
|
+
return Z(P, pt, a);
|
|
148
|
+
}, yt = R("div", {
|
|
149
149
|
name: "MuiPaginationItem",
|
|
150
150
|
slot: "Root",
|
|
151
151
|
overridesResolver: tt
|
|
@@ -161,7 +161,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
161
161
|
margin: "0 3px",
|
|
162
162
|
color: (t.vars || t).palette.text.primary,
|
|
163
163
|
height: "auto",
|
|
164
|
-
[`&.${
|
|
164
|
+
[`&.${l.disabled}`]: {
|
|
165
165
|
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
166
166
|
},
|
|
167
167
|
variants: [{
|
|
@@ -185,7 +185,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
185
185
|
fontSize: t.typography.pxToRem(15)
|
|
186
186
|
}
|
|
187
187
|
}]
|
|
188
|
-
}))),
|
|
188
|
+
}))), bt = R(it, {
|
|
189
189
|
name: "MuiPaginationItem",
|
|
190
190
|
slot: "Root",
|
|
191
191
|
overridesResolver: tt
|
|
@@ -201,10 +201,10 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
201
201
|
padding: "0 6px",
|
|
202
202
|
margin: "0 3px",
|
|
203
203
|
color: (t.vars || t).palette.text.primary,
|
|
204
|
-
[`&.${
|
|
204
|
+
[`&.${l.focusVisible}`]: {
|
|
205
205
|
backgroundColor: (t.vars || t).palette.action.focus
|
|
206
206
|
},
|
|
207
|
-
[`&.${
|
|
207
|
+
[`&.${l.disabled}`]: {
|
|
208
208
|
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
209
209
|
},
|
|
210
210
|
transition: t.transitions.create(["color", "background-color"], {
|
|
@@ -217,7 +217,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
217
217
|
backgroundColor: "transparent"
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
|
-
[`&.${
|
|
220
|
+
[`&.${l.selected}`]: {
|
|
221
221
|
backgroundColor: (t.vars || t).palette.action.selected,
|
|
222
222
|
"&:hover": {
|
|
223
223
|
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
@@ -226,10 +226,10 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
226
226
|
backgroundColor: (t.vars || t).palette.action.selected
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
|
-
[`&.${
|
|
229
|
+
[`&.${l.focusVisible}`]: {
|
|
230
230
|
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
231
231
|
},
|
|
232
|
-
[`&.${
|
|
232
|
+
[`&.${l.disabled}`]: {
|
|
233
233
|
opacity: 1,
|
|
234
234
|
color: (t.vars || t).palette.action.disabled,
|
|
235
235
|
backgroundColor: (t.vars || t).palette.action.selected
|
|
@@ -270,8 +270,8 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
270
270
|
},
|
|
271
271
|
style: {
|
|
272
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
|
-
[`&.${
|
|
274
|
-
[`&.${
|
|
273
|
+
[`&.${l.selected}`]: {
|
|
274
|
+
[`&.${l.disabled}`]: {
|
|
275
275
|
borderColor: (t.vars || t).palette.action.disabledBackground,
|
|
276
276
|
color: (t.vars || t).palette.action.disabled
|
|
277
277
|
}
|
|
@@ -282,8 +282,8 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
282
282
|
variant: "text"
|
|
283
283
|
},
|
|
284
284
|
style: {
|
|
285
|
-
[`&.${
|
|
286
|
-
[`&.${
|
|
285
|
+
[`&.${l.selected}`]: {
|
|
286
|
+
[`&.${l.disabled}`]: {
|
|
287
287
|
color: (t.vars || t).palette.action.disabled
|
|
288
288
|
}
|
|
289
289
|
}
|
|
@@ -294,7 +294,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
294
294
|
color: a
|
|
295
295
|
},
|
|
296
296
|
style: {
|
|
297
|
-
[`&.${
|
|
297
|
+
[`&.${l.selected}`]: {
|
|
298
298
|
color: (t.vars || t).palette[a].contrastText,
|
|
299
299
|
backgroundColor: (t.vars || t).palette[a].main,
|
|
300
300
|
"&:hover": {
|
|
@@ -304,10 +304,10 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
304
304
|
backgroundColor: (t.vars || t).palette[a].main
|
|
305
305
|
}
|
|
306
306
|
},
|
|
307
|
-
[`&.${
|
|
307
|
+
[`&.${l.focusVisible}`]: {
|
|
308
308
|
backgroundColor: (t.vars || t).palette[a].dark
|
|
309
309
|
},
|
|
310
|
-
[`&.${
|
|
310
|
+
[`&.${l.disabled}`]: {
|
|
311
311
|
color: (t.vars || t).palette.action.disabled
|
|
312
312
|
}
|
|
313
313
|
}
|
|
@@ -318,7 +318,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
318
318
|
color: a
|
|
319
319
|
},
|
|
320
320
|
style: {
|
|
321
|
-
[`&.${
|
|
321
|
+
[`&.${l.selected}`]: {
|
|
322
322
|
color: (t.vars || t).palette[a].main,
|
|
323
323
|
border: `1px solid ${t.vars ? `rgba(${t.vars.palette[a].mainChannel} / 0.5)` : S(t.palette[a].main, 0.5)}`,
|
|
324
324
|
backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.activatedOpacity})` : S(t.palette[a].main, t.palette.action.activatedOpacity),
|
|
@@ -329,7 +329,7 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
329
329
|
backgroundColor: "transparent"
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
|
-
[`&.${
|
|
332
|
+
[`&.${l.focusVisible}`]: {
|
|
333
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
334
|
}
|
|
335
335
|
}
|
|
@@ -358,87 +358,87 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
358
358
|
fontSize: t.typography.pxToRem(22)
|
|
359
359
|
}
|
|
360
360
|
}]
|
|
361
|
-
}))), U = /* @__PURE__ */
|
|
361
|
+
}))), U = /* @__PURE__ */ p.forwardRef(function(a, o) {
|
|
362
362
|
const n = Y({
|
|
363
363
|
props: a,
|
|
364
364
|
name: "MuiPaginationItem"
|
|
365
365
|
}), {
|
|
366
|
-
className:
|
|
367
|
-
color:
|
|
368
|
-
component:
|
|
369
|
-
components:
|
|
366
|
+
className: v,
|
|
367
|
+
color: c = "standard",
|
|
368
|
+
component: f,
|
|
369
|
+
components: y = {},
|
|
370
370
|
disabled: b = !1,
|
|
371
371
|
page: P,
|
|
372
|
-
selected:
|
|
372
|
+
selected: L = !1,
|
|
373
373
|
shape: z = "circular",
|
|
374
374
|
size: C = "medium",
|
|
375
375
|
slots: w = {},
|
|
376
|
-
slotProps:
|
|
377
|
-
type:
|
|
376
|
+
slotProps: d = {},
|
|
377
|
+
type: u = "page",
|
|
378
378
|
variant: O = "text",
|
|
379
|
-
|
|
380
|
-
} = n,
|
|
379
|
+
...$
|
|
380
|
+
} = n, g = {
|
|
381
381
|
...n,
|
|
382
|
-
color:
|
|
382
|
+
color: c,
|
|
383
383
|
disabled: b,
|
|
384
|
-
selected:
|
|
384
|
+
selected: L,
|
|
385
385
|
shape: z,
|
|
386
386
|
size: C,
|
|
387
|
-
type:
|
|
387
|
+
type: u,
|
|
388
388
|
variant: O
|
|
389
|
-
}, M =
|
|
389
|
+
}, M = st(), m = ft(g), x = {
|
|
390
390
|
slots: {
|
|
391
|
-
previous: w.previous ??
|
|
392
|
-
next: w.next ??
|
|
393
|
-
first: w.first ??
|
|
394
|
-
last: w.last ??
|
|
391
|
+
previous: w.previous ?? y.previous,
|
|
392
|
+
next: w.next ?? y.next,
|
|
393
|
+
first: w.first ?? y.first,
|
|
394
|
+
last: w.last ?? y.last
|
|
395
395
|
},
|
|
396
|
-
slotProps:
|
|
397
|
-
}, [N,
|
|
396
|
+
slotProps: d
|
|
397
|
+
}, [N, h] = j("previous", {
|
|
398
398
|
elementType: gt,
|
|
399
|
-
externalForwardedProps:
|
|
400
|
-
ownerState:
|
|
401
|
-
}), [k,
|
|
399
|
+
externalForwardedProps: x,
|
|
400
|
+
ownerState: g
|
|
401
|
+
}), [k, r] = j("next", {
|
|
402
402
|
elementType: vt,
|
|
403
|
-
externalForwardedProps:
|
|
404
|
-
ownerState:
|
|
405
|
-
}), [
|
|
403
|
+
externalForwardedProps: x,
|
|
404
|
+
ownerState: g
|
|
405
|
+
}), [i, I] = j("first", {
|
|
406
406
|
elementType: dt,
|
|
407
|
-
externalForwardedProps:
|
|
408
|
-
ownerState:
|
|
407
|
+
externalForwardedProps: x,
|
|
408
|
+
ownerState: g
|
|
409
409
|
}), [V, W] = j("last", {
|
|
410
410
|
elementType: ut,
|
|
411
|
-
externalForwardedProps:
|
|
412
|
-
ownerState:
|
|
411
|
+
externalForwardedProps: x,
|
|
412
|
+
ownerState: g
|
|
413
413
|
}), D = M ? {
|
|
414
414
|
previous: "next",
|
|
415
415
|
next: "previous",
|
|
416
416
|
first: "last",
|
|
417
417
|
last: "first"
|
|
418
|
-
}[
|
|
418
|
+
}[u] : u, G = {
|
|
419
419
|
previous: N,
|
|
420
420
|
next: k,
|
|
421
|
-
first:
|
|
421
|
+
first: i,
|
|
422
422
|
last: V
|
|
423
423
|
}[D], at = {
|
|
424
|
-
previous:
|
|
425
|
-
next:
|
|
424
|
+
previous: h,
|
|
425
|
+
next: r,
|
|
426
426
|
first: I,
|
|
427
427
|
last: W
|
|
428
428
|
}[D];
|
|
429
|
-
return
|
|
429
|
+
return u === "start-ellipsis" || u === "end-ellipsis" ? /* @__PURE__ */ s(yt, {
|
|
430
430
|
ref: o,
|
|
431
|
-
ownerState:
|
|
432
|
-
className: A(m.root,
|
|
431
|
+
ownerState: g,
|
|
432
|
+
className: A(m.root, v),
|
|
433
433
|
children: "…"
|
|
434
|
-
}) : /* @__PURE__ */ ot(
|
|
434
|
+
}) : /* @__PURE__ */ ot(bt, {
|
|
435
435
|
ref: o,
|
|
436
|
-
ownerState:
|
|
437
|
-
component:
|
|
436
|
+
ownerState: g,
|
|
437
|
+
component: f,
|
|
438
438
|
disabled: b,
|
|
439
|
-
className: A(m.root,
|
|
440
|
-
|
|
441
|
-
children: [
|
|
439
|
+
className: A(m.root, v),
|
|
440
|
+
...$,
|
|
441
|
+
children: [u === "page" && P, G ? /* @__PURE__ */ s(xt, {
|
|
442
442
|
...at,
|
|
443
443
|
className: m.icon,
|
|
444
444
|
as: G
|
|
@@ -580,72 +580,72 @@ const mt = (t) => {
|
|
|
580
580
|
function wt(t, a, o) {
|
|
581
581
|
return t === "page" ? `${o ? "" : "Go to "}page ${a}` : `Go to ${t} page`;
|
|
582
582
|
}
|
|
583
|
-
const et = /* @__PURE__ */
|
|
583
|
+
const et = /* @__PURE__ */ p.forwardRef(function(a, o) {
|
|
584
584
|
const n = Y({
|
|
585
585
|
props: a,
|
|
586
586
|
name: "MuiPagination"
|
|
587
587
|
}), {
|
|
588
|
-
boundaryCount:
|
|
589
|
-
className:
|
|
590
|
-
color:
|
|
591
|
-
count:
|
|
588
|
+
boundaryCount: v = 1,
|
|
589
|
+
className: c,
|
|
590
|
+
color: f = "standard",
|
|
591
|
+
count: y = 1,
|
|
592
592
|
defaultPage: b = 1,
|
|
593
593
|
disabled: P = !1,
|
|
594
|
-
getItemAriaLabel:
|
|
594
|
+
getItemAriaLabel: L = wt,
|
|
595
595
|
hideNextButton: z = !1,
|
|
596
596
|
hidePrevButton: C = !1,
|
|
597
597
|
onChange: w,
|
|
598
|
-
page:
|
|
599
|
-
renderItem:
|
|
600
|
-
...
|
|
598
|
+
page: d,
|
|
599
|
+
renderItem: u = (i) => /* @__PURE__ */ s(U, {
|
|
600
|
+
...i
|
|
601
601
|
}),
|
|
602
602
|
shape: O = "circular",
|
|
603
|
-
showFirstButton:
|
|
604
|
-
showLastButton:
|
|
603
|
+
showFirstButton: $ = !1,
|
|
604
|
+
showLastButton: g = !1,
|
|
605
605
|
siblingCount: M = 1,
|
|
606
606
|
size: m = "medium",
|
|
607
|
-
variant:
|
|
607
|
+
variant: x = "text",
|
|
608
608
|
...N
|
|
609
609
|
} = n, {
|
|
610
|
-
items:
|
|
611
|
-
} =
|
|
610
|
+
items: h
|
|
611
|
+
} = ct({
|
|
612
612
|
...n,
|
|
613
613
|
componentName: "Pagination"
|
|
614
614
|
}), k = {
|
|
615
615
|
...n,
|
|
616
|
-
boundaryCount:
|
|
617
|
-
color:
|
|
618
|
-
count:
|
|
616
|
+
boundaryCount: v,
|
|
617
|
+
color: f,
|
|
618
|
+
count: y,
|
|
619
619
|
defaultPage: b,
|
|
620
620
|
disabled: P,
|
|
621
|
-
getItemAriaLabel:
|
|
621
|
+
getItemAriaLabel: L,
|
|
622
622
|
hideNextButton: z,
|
|
623
623
|
hidePrevButton: C,
|
|
624
|
-
renderItem:
|
|
624
|
+
renderItem: u,
|
|
625
625
|
shape: O,
|
|
626
|
-
showFirstButton:
|
|
627
|
-
showLastButton:
|
|
626
|
+
showFirstButton: $,
|
|
627
|
+
showLastButton: g,
|
|
628
628
|
siblingCount: M,
|
|
629
629
|
size: m,
|
|
630
|
-
variant:
|
|
631
|
-
},
|
|
632
|
-
return /* @__PURE__ */
|
|
630
|
+
variant: x
|
|
631
|
+
}, r = mt(k);
|
|
632
|
+
return /* @__PURE__ */ s(Pt, {
|
|
633
633
|
"aria-label": "pagination navigation",
|
|
634
|
-
className: A(
|
|
634
|
+
className: A(r.root, c),
|
|
635
635
|
ownerState: k,
|
|
636
636
|
ref: o,
|
|
637
637
|
...N,
|
|
638
|
-
children: /* @__PURE__ */
|
|
639
|
-
className:
|
|
638
|
+
children: /* @__PURE__ */ s(Ct, {
|
|
639
|
+
className: r.ul,
|
|
640
640
|
ownerState: k,
|
|
641
|
-
children:
|
|
642
|
-
children:
|
|
643
|
-
...
|
|
644
|
-
color:
|
|
645
|
-
"aria-label":
|
|
641
|
+
children: h.map((i, I) => /* @__PURE__ */ s("li", {
|
|
642
|
+
children: u({
|
|
643
|
+
...i,
|
|
644
|
+
color: f,
|
|
645
|
+
"aria-label": L(i.type, i.page, i.selected),
|
|
646
646
|
shape: O,
|
|
647
647
|
size: m,
|
|
648
|
-
variant:
|
|
648
|
+
variant: x
|
|
649
649
|
})
|
|
650
650
|
}, I))
|
|
651
651
|
})
|
|
@@ -770,26 +770,31 @@ function Ot({
|
|
|
770
770
|
pageCount: a,
|
|
771
771
|
page: o,
|
|
772
772
|
onPageChange: n,
|
|
773
|
-
className:
|
|
773
|
+
className: v
|
|
774
774
|
}) {
|
|
775
|
-
return
|
|
775
|
+
return /* @__PURE__ */ s(
|
|
776
776
|
et,
|
|
777
777
|
{
|
|
778
778
|
showFirstButton: !0,
|
|
779
779
|
showLastButton: !0,
|
|
780
|
-
className:
|
|
780
|
+
className: v,
|
|
781
781
|
count: a,
|
|
782
782
|
page: o + 1,
|
|
783
|
-
onChange: (
|
|
784
|
-
n(
|
|
783
|
+
onChange: (c, f) => {
|
|
784
|
+
n(c, f - 1);
|
|
785
785
|
},
|
|
786
786
|
boundaryCount: 0,
|
|
787
787
|
siblingCount: 1,
|
|
788
|
-
renderItem: (
|
|
788
|
+
renderItem: (c) => /* @__PURE__ */ s(
|
|
789
789
|
U,
|
|
790
790
|
{
|
|
791
|
-
slots: {
|
|
792
|
-
|
|
791
|
+
slots: {
|
|
792
|
+
previous: () => t ? /* @__PURE__ */ s(J, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(K, { color: "var(--color-primary)" }),
|
|
793
|
+
next: () => t ? /* @__PURE__ */ s(K, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(J, { color: "var(--color-primary)" }),
|
|
794
|
+
first: () => t ? /* @__PURE__ */ s(q, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(H, { color: "var(--color-primary)" }),
|
|
795
|
+
last: () => t ? /* @__PURE__ */ s(H, { color: "var(--color-primary)" }) : /* @__PURE__ */ s(q, { color: "var(--color-primary)" })
|
|
796
|
+
},
|
|
797
|
+
...c
|
|
793
798
|
}
|
|
794
799
|
),
|
|
795
800
|
sx: {
|
|
@@ -809,7 +814,7 @@ function Ot({
|
|
|
809
814
|
);
|
|
810
815
|
}
|
|
811
816
|
function zt({ isRtl: t, pageCount: a }) {
|
|
812
|
-
return /* @__PURE__ */
|
|
817
|
+
return /* @__PURE__ */ s(nt, { ActionsComponent: (o) => /* @__PURE__ */ s(Ot, { isRtl: t, pageCount: a, ...o }) });
|
|
813
818
|
}
|
|
814
819
|
export {
|
|
815
820
|
zt as CustomPagination,
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { M as
|
|
4
|
-
import '../../assets/ErrorModal.css';const
|
|
5
|
-
flexRowCenter:
|
|
2
|
+
import { useState as h } from "react";
|
|
3
|
+
import { M as p } from "../../index-Dz00OoV7.js";
|
|
4
|
+
import '../../assets/ErrorModal.css';const d = "_flexRowCenter_ufgj5_1", x = "_text18_ufgj5_15", f = "_content_ufgj5_19", t = {
|
|
5
|
+
flexRowCenter: d,
|
|
6
6
|
text18: x,
|
|
7
|
-
content:
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
const [s, a] = i(!0), h = () => {
|
|
7
|
+
content: f
|
|
8
|
+
}, C = ({ error: o, resetErrorBoundary: n, title: r, tryAgain: l, cancel: c }) => {
|
|
9
|
+
const [s, a] = h(!0), i = () => {
|
|
11
10
|
a(!1);
|
|
12
11
|
};
|
|
13
12
|
return /* @__PURE__ */ e(
|
|
14
|
-
|
|
13
|
+
p,
|
|
15
14
|
{
|
|
16
15
|
title: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("p", { className: t.text18, children: r }) }),
|
|
17
16
|
centered: !0,
|
|
18
17
|
open: s,
|
|
19
18
|
onOk: n,
|
|
20
|
-
onCancel:
|
|
19
|
+
onCancel: i,
|
|
21
20
|
closeIcon: !0,
|
|
22
21
|
okText: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("span", { children: l }) }),
|
|
23
22
|
okButtonProps: {
|
|
@@ -37,5 +36,5 @@ import '../../assets/ErrorModal.css';const p = "_flexRowCenter_1wx1z_85", x = "_
|
|
|
37
36
|
);
|
|
38
37
|
};
|
|
39
38
|
export {
|
|
40
|
-
|
|
39
|
+
C as ErrorModal
|
|
41
40
|
};
|