@amateescu/portal-ui-components 0.0.10-beta2 → 0.0.11
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/assets/CustomFooter.css +1 -0
- package/dist/assets/ErrorModal.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
- package/dist/components/CustomFooter/CustomFooter.d.ts +2 -1
- package/dist/components/CustomFooter/CustomFooter.js +20 -22
- package/dist/components/CustomFooter/CustomFooter.types.d.ts +7 -0
- package/dist/components/CustomFooter/CustomFooter.types.js +1 -0
- package/dist/components/CustomPagination/CustomPagination.d.ts +1 -6
- package/dist/components/CustomPagination/CustomPagination.js +264 -268
- package/dist/components/CustomPagination/CustomPagination.types.d.ts +8 -0
- package/dist/components/CustomPagination/CustomPagination.types.js +1 -0
- package/dist/components/ErrorModal/ErrorModal.js +16 -11
- package/dist/components/InfoModal/index.js +1 -1
- package/dist/components/KpiCard/index.js +1 -1
- package/dist/utils/pageCount.d.ts +2 -0
- package/dist/utils/pageCount.js +4 -0
- package/package.json +1 -1
- package/dist/assets/index3.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._container_1py0o_1{padding-top:10px;height:7%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._flexRowCenter_14ewh_1{display:flex!important;flex-direction:row;align-items:center}html[dir=rtl] ._mr10_14ewh_7{margin-right:10px}html[dir=ltr] ._mr10_14ewh_7{margin-left:10px}._text18_14ewh_15{font-size:18px}._content_14ewh_19{position:relative;top:-10px}
|
package/dist/assets/index2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._kpiCard_aruiy_1{height:147px;background-color:#f0f0f0;border-radius:8px}._width430_aruiy_7{width:430px}@media (max-width: 1500px){._width430_aruiy_7{width:200px}}._width384_aruiy_16{width:384px}._flexCol_aruiy_20{display:flex;flex-direction:column}._flexRow_aruiy_25{display:flex;flex-direction:row}._title_aruiy_30{font-size:32px;font-weight:500;color:#12121a}@media (max-width: 900px){._title_aruiy_30{font-size:12px}}@media (max-width: 1100px){._title_aruiy_30{font-size:16px}}@media (max-width: 1400px){._title_aruiy_30{font-size:20px}}@media (max-width: 1600px){._title_aruiy_30{font-size:22px}}._content_aruiy_56{font-size:21px;font-weight:400;color:#626367;margin-top:-10px}@media (max-width: 900px){._content_aruiy_56{font-size:8px}}@media (max-width: 1100px){._content_aruiy_56{font-size:12px}}@media (max-width: 1400px){._content_aruiy_56{font-size:14px}}
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { S as m } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
4
|
import { M as d } from "../../index-BczMuCik.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/ErrorModal.css';const w = (n) => /* @__PURE__ */ o.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ o.createElement("path", { d: "M7 10L9 12L13 8M19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1C14.9706 1 19 5.02944 19 10Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), p = (n) => /* @__PURE__ */ o.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ o.createElement("path", { d: "M6 18L18 6M6 6L18 18", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), x = "_flexRowCenter_14ewh_1", f = "_mr10_14ewh_7", C = "_text18_14ewh_15", k = "_content_14ewh_19", t = {
|
|
6
6
|
flexRowCenter: x,
|
|
7
7
|
mr10: f,
|
|
8
8
|
text18: C,
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as CustomFooterProps } from './CustomFooter.types';
|
|
2
|
+
export declare function CustomFooter({ total, columnsDefinitions, isRtl }: CustomFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { useGridApiContext as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs as m, Fragment as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { CustomPagination as u } from "../CustomPagination/CustomPagination.js";
|
|
3
|
+
import { TotalDataGrid as g } from "../TotalDataGrid/TotalDataGrid.js";
|
|
4
|
+
import l from "../../utils/pageCount.js";
|
|
5
|
+
import { useGridApiContext as C, useGridSelector as n, gridFilteredTopLevelRowCountSelector as f, useGridRootProps as h, gridPageSizeSelector as F, GridFooterContainer as G } from "@mui/x-data-grid";
|
|
6
|
+
import '../../assets/CustomFooter.css';const P = "_container_1py0o_1", S = {
|
|
7
|
+
container: P
|
|
8
|
+
};
|
|
9
|
+
function _({ total: o, columnsDefinitions: t, isRtl: i }) {
|
|
10
|
+
const r = C(), s = n(r, f), c = h(), a = n(r, F), p = l(c.rowCount ?? s, a);
|
|
11
|
+
return /* @__PURE__ */ m(d, { children: [
|
|
12
|
+
/* @__PURE__ */ e("div", { className: S.container, children: (o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ e(
|
|
13
|
+
g,
|
|
12
14
|
{
|
|
13
|
-
rows:
|
|
15
|
+
rows: o,
|
|
14
16
|
isFetching: !1,
|
|
15
|
-
columnsDefinitions:
|
|
17
|
+
columnsDefinitions: t
|
|
16
18
|
}
|
|
17
19
|
) }),
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
20
|
+
/* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
|
|
21
|
+
u,
|
|
20
22
|
{
|
|
21
|
-
isRtl:
|
|
22
|
-
pageCount:
|
|
23
|
-
arrowFirstIcon: f,
|
|
24
|
-
arrowLastIcon: x,
|
|
25
|
-
nextIcon: E,
|
|
26
|
-
previousIcon: C
|
|
23
|
+
isRtl: i,
|
|
24
|
+
pageCount: p
|
|
27
25
|
}
|
|
28
26
|
) })
|
|
29
27
|
] });
|
|
30
28
|
}
|
|
31
29
|
export {
|
|
32
|
-
|
|
30
|
+
_ as CustomFooter
|
|
33
31
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { default as CustomSvg } from '../../types/CustomSvg';
|
|
2
1
|
type ExternalPaginationProps = {
|
|
3
2
|
isRtl: boolean;
|
|
4
3
|
pageCount: number;
|
|
5
|
-
arrowFirstIcon: CustomSvg;
|
|
6
|
-
arrowLastIcon: CustomSvg;
|
|
7
|
-
nextIcon: CustomSvg;
|
|
8
|
-
previousIcon: CustomSvg;
|
|
9
4
|
};
|
|
10
|
-
export declare function CustomPagination({ isRtl, pageCount
|
|
5
|
+
export declare function CustomPagination({ isRtl, pageCount }: ExternalPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
11
6
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { P as t, g as
|
|
6
|
-
import { B as
|
|
7
|
-
function
|
|
1
|
+
import { jsxs as ee, jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { GridPagination as se } from "@mui/x-data-grid";
|
|
4
|
+
import { _ as V, a as v } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
5
|
+
import { P as t, g as W, a as U, u as D, c as N, b as F, s as T, f as E, e as k } from "../../generateUtilityClasses-CBdP3bZj.js";
|
|
6
|
+
import { B as le } from "../../ButtonBase-Dv90LYxj.js";
|
|
7
|
+
function ce({
|
|
8
8
|
controlled: e,
|
|
9
9
|
default: o,
|
|
10
10
|
name: n,
|
|
@@ -12,26 +12,26 @@ function ie({
|
|
|
12
12
|
}) {
|
|
13
13
|
const {
|
|
14
14
|
current: i
|
|
15
|
-
} =
|
|
15
|
+
} = s.useRef(e !== void 0), [c, g] = s.useState(o), l = i ? e : c;
|
|
16
16
|
if (process.env.NODE_ENV !== "production") {
|
|
17
|
-
|
|
17
|
+
s.useEffect(() => {
|
|
18
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
19
|
`));
|
|
20
20
|
}, [a, n, e]);
|
|
21
21
|
const {
|
|
22
|
-
current:
|
|
23
|
-
} =
|
|
24
|
-
|
|
25
|
-
!i && !Object.is(
|
|
22
|
+
current: u
|
|
23
|
+
} = s.useRef(o);
|
|
24
|
+
s.useEffect(() => {
|
|
25
|
+
!i && !Object.is(u, 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
26
|
`));
|
|
27
27
|
}, [JSON.stringify(o)]);
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
i || u
|
|
29
|
+
const f = s.useCallback((u) => {
|
|
30
|
+
i || g(u);
|
|
31
31
|
}, []);
|
|
32
|
-
return [
|
|
32
|
+
return [l, f];
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function de(e) {
|
|
35
35
|
const o = typeof e;
|
|
36
36
|
switch (o) {
|
|
37
37
|
case "number":
|
|
@@ -42,59 +42,59 @@ function re(e) {
|
|
|
42
42
|
return o;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function pe(e) {
|
|
46
46
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
|
|
47
47
|
}
|
|
48
|
-
const
|
|
49
|
-
function
|
|
48
|
+
const ue = Number.isInteger || pe;
|
|
49
|
+
function oe(e, o, n, a) {
|
|
50
50
|
const i = e[o];
|
|
51
|
-
if (i == null || !
|
|
52
|
-
const
|
|
53
|
-
return new RangeError(`Invalid ${a} \`${o}\` of type \`${
|
|
51
|
+
if (i == null || !ue(i)) {
|
|
52
|
+
const c = de(i);
|
|
53
|
+
return new RangeError(`Invalid ${a} \`${o}\` of type \`${c}\` supplied to \`${n}\`, expected \`integer\`.`);
|
|
54
54
|
}
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return e[o] === void 0 ? null :
|
|
57
|
+
function te(e, o, ...n) {
|
|
58
|
+
return e[o] === void 0 ? null : oe(e, o, ...n);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function A() {
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
const
|
|
63
|
+
te.isRequired = oe;
|
|
64
|
+
A.isRequired = A;
|
|
65
|
+
const R = process.env.NODE_ENV === "production" ? A : te, ge = /* @__PURE__ */ s.createContext();
|
|
66
66
|
process.env.NODE_ENV !== "production" && (t.node, t.bool);
|
|
67
|
-
const
|
|
68
|
-
const e =
|
|
67
|
+
const fe = () => {
|
|
68
|
+
const e = s.useContext(ge);
|
|
69
69
|
return e ?? !1;
|
|
70
|
-
};
|
|
71
|
-
function
|
|
72
|
-
return
|
|
70
|
+
}, q = (e) => /* @__PURE__ */ s.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ s.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ s.createElement("path", { id: "vector", d: "M17.5 5L10.5 12L17.5 19M7.5 5L7.5 19", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), H = (e) => /* @__PURE__ */ s.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ s.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ s.createElement("path", { id: "vector", d: "M7.5 4.99998L14.5 12L7.5 19M17.5 4.99998L17.5 19", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), J = (e) => /* @__PURE__ */ s.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ s.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), K = (e) => /* @__PURE__ */ s.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ s.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
71
|
+
function ve(e) {
|
|
72
|
+
return W("MuiSvgIcon", e);
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
const
|
|
74
|
+
U("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
75
|
+
const be = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], ye = (e) => {
|
|
76
76
|
const {
|
|
77
77
|
color: o,
|
|
78
78
|
fontSize: n,
|
|
79
79
|
classes: a
|
|
80
80
|
} = e, i = {
|
|
81
|
-
root: ["root", o !== "inherit" && `color${
|
|
81
|
+
root: ["root", o !== "inherit" && `color${N(o)}`, `fontSize${N(n)}`]
|
|
82
82
|
};
|
|
83
|
-
return
|
|
84
|
-
},
|
|
83
|
+
return F(i, ve, a);
|
|
84
|
+
}, me = T("svg", {
|
|
85
85
|
name: "MuiSvgIcon",
|
|
86
86
|
slot: "Root",
|
|
87
87
|
overridesResolver: (e, o) => {
|
|
88
88
|
const {
|
|
89
89
|
ownerState: n
|
|
90
90
|
} = e;
|
|
91
|
-
return [o.root, n.color !== "inherit" && o[`color${
|
|
91
|
+
return [o.root, n.color !== "inherit" && o[`color${N(n.color)}`], o[`fontSize${N(n.fontSize)}`]];
|
|
92
92
|
}
|
|
93
93
|
})(({
|
|
94
94
|
theme: e,
|
|
95
95
|
ownerState: o
|
|
96
96
|
}) => {
|
|
97
|
-
var n, a, i,
|
|
97
|
+
var n, a, i, c, g, l, f, u, h, m, b, d, r;
|
|
98
98
|
return {
|
|
99
99
|
userSelect: "none",
|
|
100
100
|
width: "1em",
|
|
@@ -109,58 +109,58 @@ const ue = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
109
109
|
}),
|
|
110
110
|
fontSize: {
|
|
111
111
|
inherit: "inherit",
|
|
112
|
-
small: ((
|
|
113
|
-
medium: ((
|
|
114
|
-
large: ((
|
|
112
|
+
small: ((c = e.typography) == null || (g = c.pxToRem) == null ? void 0 : g.call(c, 20)) || "1.25rem",
|
|
113
|
+
medium: ((l = e.typography) == null || (f = l.pxToRem) == null ? void 0 : f.call(l, 24)) || "1.5rem",
|
|
114
|
+
large: ((u = e.typography) == null || (h = u.pxToRem) == null ? void 0 : h.call(u, 35)) || "2.1875rem"
|
|
115
115
|
}[o.fontSize],
|
|
116
116
|
// TODO v5 deprecate, v6 remove for sx
|
|
117
|
-
color: (
|
|
117
|
+
color: (m = (b = (e.vars || e).palette) == null || (b = b[o.color]) == null ? void 0 : b.main) != null ? m : {
|
|
118
118
|
action: (d = (e.vars || e).palette) == null || (d = d.action) == null ? void 0 : d.active,
|
|
119
119
|
disabled: (r = (e.vars || e).palette) == null || (r = r.action) == null ? void 0 : r.disabled,
|
|
120
120
|
inherit: void 0
|
|
121
121
|
}[o.color]
|
|
122
122
|
};
|
|
123
|
-
}),
|
|
124
|
-
const a =
|
|
123
|
+
}), _ = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
124
|
+
const a = D({
|
|
125
125
|
props: o,
|
|
126
126
|
name: "MuiSvgIcon"
|
|
127
127
|
}), {
|
|
128
128
|
children: i,
|
|
129
|
-
className:
|
|
130
|
-
color:
|
|
131
|
-
component:
|
|
132
|
-
fontSize:
|
|
133
|
-
htmlColor:
|
|
134
|
-
inheritViewBox:
|
|
135
|
-
titleAccess:
|
|
136
|
-
viewBox:
|
|
137
|
-
} = a, d =
|
|
138
|
-
color:
|
|
139
|
-
component:
|
|
140
|
-
fontSize:
|
|
129
|
+
className: c,
|
|
130
|
+
color: g = "inherit",
|
|
131
|
+
component: l = "svg",
|
|
132
|
+
fontSize: f = "medium",
|
|
133
|
+
htmlColor: u,
|
|
134
|
+
inheritViewBox: h = !1,
|
|
135
|
+
titleAccess: m,
|
|
136
|
+
viewBox: b = "0 0 24 24"
|
|
137
|
+
} = a, d = V(a, be), r = /* @__PURE__ */ s.isValidElement(i) && i.type === "svg", P = v({}, a, {
|
|
138
|
+
color: g,
|
|
139
|
+
component: l,
|
|
140
|
+
fontSize: f,
|
|
141
141
|
instanceFontSize: o.fontSize,
|
|
142
|
-
inheritViewBox:
|
|
143
|
-
viewBox:
|
|
142
|
+
inheritViewBox: h,
|
|
143
|
+
viewBox: b,
|
|
144
144
|
hasSvgAsChild: r
|
|
145
|
-
}),
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
return /* @__PURE__ */
|
|
149
|
-
as:
|
|
150
|
-
className:
|
|
145
|
+
}), O = {};
|
|
146
|
+
h || (O.viewBox = b);
|
|
147
|
+
const x = ye(P);
|
|
148
|
+
return /* @__PURE__ */ ee(me, v({
|
|
149
|
+
as: l,
|
|
150
|
+
className: E(x.root, c),
|
|
151
151
|
focusable: "false",
|
|
152
|
-
color:
|
|
153
|
-
"aria-hidden":
|
|
154
|
-
role:
|
|
152
|
+
color: u,
|
|
153
|
+
"aria-hidden": m ? void 0 : !0,
|
|
154
|
+
role: m ? "img" : void 0,
|
|
155
155
|
ref: n
|
|
156
|
-
},
|
|
156
|
+
}, O, d, r && i.props, {
|
|
157
157
|
ownerState: P,
|
|
158
|
-
children: [r ? i.props.children : i,
|
|
159
|
-
children:
|
|
158
|
+
children: [r ? i.props.children : i, m ? /* @__PURE__ */ y("title", {
|
|
159
|
+
children: m
|
|
160
160
|
}) : null]
|
|
161
161
|
}));
|
|
162
162
|
});
|
|
163
|
-
process.env.NODE_ENV !== "production" && (
|
|
163
|
+
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
164
164
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
165
165
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
166
166
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -232,83 +232,83 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
232
232
|
*/
|
|
233
233
|
viewBox: t.string
|
|
234
234
|
});
|
|
235
|
-
|
|
236
|
-
function
|
|
235
|
+
_.muiName = "SvgIcon";
|
|
236
|
+
function j(e, o) {
|
|
237
237
|
function n(a, i) {
|
|
238
|
-
return /* @__PURE__ */
|
|
238
|
+
return /* @__PURE__ */ y(_, v({
|
|
239
239
|
"data-testid": `${o}Icon`,
|
|
240
240
|
ref: i
|
|
241
241
|
}, a, {
|
|
242
242
|
children: e
|
|
243
243
|
}));
|
|
244
244
|
}
|
|
245
|
-
return process.env.NODE_ENV !== "production" && (n.displayName = `${o}Icon`), n.muiName =
|
|
245
|
+
return process.env.NODE_ENV !== "production" && (n.displayName = `${o}Icon`), n.muiName = _.muiName, /* @__PURE__ */ s.memo(/* @__PURE__ */ s.forwardRef(n));
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return
|
|
247
|
+
function he(e) {
|
|
248
|
+
return W("MuiPagination", e);
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
const
|
|
252
|
-
function
|
|
250
|
+
U("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
251
|
+
const xe = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
|
|
252
|
+
function $e(e = {}) {
|
|
253
253
|
const {
|
|
254
254
|
boundaryCount: o = 1,
|
|
255
255
|
componentName: n = "usePagination",
|
|
256
256
|
count: a = 1,
|
|
257
257
|
defaultPage: i = 1,
|
|
258
|
-
disabled:
|
|
259
|
-
hideNextButton:
|
|
260
|
-
hidePrevButton:
|
|
261
|
-
onChange:
|
|
262
|
-
page:
|
|
263
|
-
showFirstButton:
|
|
264
|
-
showLastButton:
|
|
265
|
-
siblingCount:
|
|
266
|
-
} = e, d =
|
|
267
|
-
controlled:
|
|
258
|
+
disabled: c = !1,
|
|
259
|
+
hideNextButton: g = !1,
|
|
260
|
+
hidePrevButton: l = !1,
|
|
261
|
+
onChange: f,
|
|
262
|
+
page: u,
|
|
263
|
+
showFirstButton: h = !1,
|
|
264
|
+
showLastButton: m = !1,
|
|
265
|
+
siblingCount: b = 1
|
|
266
|
+
} = e, d = V(e, xe), [r, P] = ce({
|
|
267
|
+
controlled: u,
|
|
268
268
|
default: i,
|
|
269
269
|
name: n,
|
|
270
270
|
state: "page"
|
|
271
|
-
}),
|
|
272
|
-
|
|
273
|
-
},
|
|
274
|
-
const
|
|
271
|
+
}), O = (p, z) => {
|
|
272
|
+
u || P(z), f && f(p, z);
|
|
273
|
+
}, x = (p, z) => {
|
|
274
|
+
const ie = z - p + 1;
|
|
275
275
|
return Array.from({
|
|
276
|
-
length:
|
|
277
|
-
}, (
|
|
278
|
-
},
|
|
276
|
+
length: ie
|
|
277
|
+
}, (Me, re) => p + re);
|
|
278
|
+
}, L = x(1, Math.min(o, a)), C = x(Math.max(a - o + 1, o + 1), a), S = Math.max(
|
|
279
279
|
Math.min(
|
|
280
280
|
// Natural start
|
|
281
|
-
r -
|
|
281
|
+
r - b,
|
|
282
282
|
// Lower boundary when page is high
|
|
283
|
-
a - o -
|
|
283
|
+
a - o - b * 2 - 1
|
|
284
284
|
),
|
|
285
285
|
// Greater than startPages
|
|
286
286
|
o + 2
|
|
287
|
-
),
|
|
287
|
+
), w = Math.min(
|
|
288
288
|
Math.max(
|
|
289
289
|
// Natural end
|
|
290
|
-
r +
|
|
290
|
+
r + b,
|
|
291
291
|
// Upper boundary when page is low
|
|
292
|
-
o +
|
|
292
|
+
o + b * 2 + 2
|
|
293
293
|
),
|
|
294
294
|
// Less than endPages
|
|
295
295
|
C.length > 0 ? C[0] - 2 : a - 1
|
|
296
|
-
),
|
|
297
|
-
...
|
|
298
|
-
...
|
|
299
|
-
...
|
|
296
|
+
), B = [
|
|
297
|
+
...h ? ["first"] : [],
|
|
298
|
+
...l ? [] : ["previous"],
|
|
299
|
+
...L,
|
|
300
300
|
// Start ellipsis
|
|
301
301
|
// eslint-disable-next-line no-nested-ternary
|
|
302
|
-
...
|
|
302
|
+
...S > o + 2 ? ["start-ellipsis"] : o + 1 < a - o ? [o + 1] : [],
|
|
303
303
|
// Sibling pages
|
|
304
|
-
...
|
|
304
|
+
...x(S, w),
|
|
305
305
|
// End ellipsis
|
|
306
306
|
// eslint-disable-next-line no-nested-ternary
|
|
307
|
-
...
|
|
307
|
+
...w < a - o - 1 ? ["end-ellipsis"] : a - o > o ? [a - o] : [],
|
|
308
308
|
...C,
|
|
309
|
-
...
|
|
310
|
-
...
|
|
311
|
-
],
|
|
309
|
+
...g ? [] : ["next"],
|
|
310
|
+
...m ? ["last"] : []
|
|
311
|
+
], M = (p) => {
|
|
312
312
|
switch (p) {
|
|
313
313
|
case "first":
|
|
314
314
|
return 1;
|
|
@@ -321,56 +321,56 @@ function ye(e = {}) {
|
|
|
321
321
|
default:
|
|
322
322
|
return null;
|
|
323
323
|
}
|
|
324
|
-
},
|
|
325
|
-
onClick: (
|
|
326
|
-
|
|
324
|
+
}, I = B.map((p) => typeof p == "number" ? {
|
|
325
|
+
onClick: (z) => {
|
|
326
|
+
O(z, p);
|
|
327
327
|
},
|
|
328
328
|
type: "page",
|
|
329
329
|
page: p,
|
|
330
330
|
selected: p === r,
|
|
331
|
-
disabled:
|
|
331
|
+
disabled: c,
|
|
332
332
|
"aria-current": p === r ? "true" : void 0
|
|
333
333
|
} : {
|
|
334
|
-
onClick: (
|
|
335
|
-
|
|
334
|
+
onClick: (z) => {
|
|
335
|
+
O(z, M(p));
|
|
336
336
|
},
|
|
337
337
|
type: p,
|
|
338
|
-
page:
|
|
338
|
+
page: M(p),
|
|
339
339
|
selected: !1,
|
|
340
|
-
disabled:
|
|
340
|
+
disabled: c || p.indexOf("ellipsis") === -1 && (p === "next" || p === "last" ? r >= a : r <= 1)
|
|
341
341
|
});
|
|
342
|
-
return
|
|
343
|
-
items:
|
|
342
|
+
return v({
|
|
343
|
+
items: I
|
|
344
344
|
}, d);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
return
|
|
346
|
+
function Ce(e) {
|
|
347
|
+
return W("MuiPaginationItem", e);
|
|
348
348
|
}
|
|
349
|
-
const $ =
|
|
349
|
+
const $ = U("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), Q = j(/* @__PURE__ */ y("path", {
|
|
350
350
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
351
|
-
}), "FirstPage"),
|
|
351
|
+
}), "FirstPage"), X = j(/* @__PURE__ */ y("path", {
|
|
352
352
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
353
|
-
}), "LastPage"),
|
|
353
|
+
}), "LastPage"), Y = j(/* @__PURE__ */ y("path", {
|
|
354
354
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
355
|
-
}), "NavigateBefore"),
|
|
355
|
+
}), "NavigateBefore"), Z = j(/* @__PURE__ */ y("path", {
|
|
356
356
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
357
|
-
}), "NavigateNext"),
|
|
357
|
+
}), "NavigateNext"), Ne = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], ne = (e, o) => {
|
|
358
358
|
const {
|
|
359
359
|
ownerState: n
|
|
360
360
|
} = e;
|
|
361
|
-
return [o.root, o[n.variant], o[`size${
|
|
362
|
-
},
|
|
361
|
+
return [o.root, o[n.variant], o[`size${N(n.size)}`], n.variant === "text" && o[`text${N(n.color)}`], n.variant === "outlined" && o[`outlined${N(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
|
+
}, Oe = (e) => {
|
|
363
363
|
const {
|
|
364
364
|
classes: o,
|
|
365
365
|
color: n,
|
|
366
366
|
disabled: a,
|
|
367
367
|
selected: i,
|
|
368
|
-
size:
|
|
369
|
-
shape:
|
|
370
|
-
type:
|
|
371
|
-
variant:
|
|
372
|
-
} = e,
|
|
373
|
-
root: ["root", `size${
|
|
368
|
+
size: c,
|
|
369
|
+
shape: g,
|
|
370
|
+
type: l,
|
|
371
|
+
variant: f
|
|
372
|
+
} = e, u = {
|
|
373
|
+
root: ["root", `size${N(c)}`, f, g, n !== "standard" && `color${N(n)}`, n !== "standard" && `${f}${N(n)}`, a && "disabled", i && "selected", {
|
|
374
374
|
page: "page",
|
|
375
375
|
first: "firstLast",
|
|
376
376
|
last: "firstLast",
|
|
@@ -378,18 +378,18 @@ const $ = D("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
378
378
|
"end-ellipsis": "ellipsis",
|
|
379
379
|
previous: "previousNext",
|
|
380
380
|
next: "previousNext"
|
|
381
|
-
}[
|
|
381
|
+
}[l]],
|
|
382
382
|
icon: ["icon"]
|
|
383
383
|
};
|
|
384
|
-
return
|
|
385
|
-
},
|
|
384
|
+
return F(u, Ce, o);
|
|
385
|
+
}, Pe = T("div", {
|
|
386
386
|
name: "MuiPaginationItem",
|
|
387
387
|
slot: "Root",
|
|
388
|
-
overridesResolver:
|
|
388
|
+
overridesResolver: ne
|
|
389
389
|
})(({
|
|
390
390
|
theme: e,
|
|
391
391
|
ownerState: o
|
|
392
|
-
}) =>
|
|
392
|
+
}) => v({}, e.typography.body2, {
|
|
393
393
|
borderRadius: 32 / 2,
|
|
394
394
|
textAlign: "center",
|
|
395
395
|
boxSizing: "border-box",
|
|
@@ -411,14 +411,14 @@ const $ = D("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
411
411
|
borderRadius: 40 / 2,
|
|
412
412
|
padding: "0 10px",
|
|
413
413
|
fontSize: e.typography.pxToRem(15)
|
|
414
|
-
})),
|
|
414
|
+
})), Ie = T(le, {
|
|
415
415
|
name: "MuiPaginationItem",
|
|
416
416
|
slot: "Root",
|
|
417
|
-
overridesResolver:
|
|
417
|
+
overridesResolver: ne
|
|
418
418
|
})(({
|
|
419
419
|
theme: e,
|
|
420
420
|
ownerState: o
|
|
421
|
-
}) =>
|
|
421
|
+
}) => v({}, e.typography.body2, {
|
|
422
422
|
borderRadius: 32 / 2,
|
|
423
423
|
textAlign: "center",
|
|
424
424
|
boxSizing: "border-box",
|
|
@@ -446,14 +446,14 @@ const $ = D("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
446
446
|
[`&.${$.selected}`]: {
|
|
447
447
|
backgroundColor: (e.vars || e).palette.action.selected,
|
|
448
448
|
"&:hover": {
|
|
449
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
449
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : k(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
450
450
|
// Reset on touch devices, it doesn't add specificity
|
|
451
451
|
"@media (hover: none)": {
|
|
452
452
|
backgroundColor: (e.vars || e).palette.action.selected
|
|
453
453
|
}
|
|
454
454
|
},
|
|
455
455
|
[`&.${$.focusVisible}`]: {
|
|
456
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
456
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : k(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
457
457
|
},
|
|
458
458
|
[`&.${$.disabled}`]: {
|
|
459
459
|
opacity: 1,
|
|
@@ -478,8 +478,8 @@ const $ = D("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
478
478
|
}), ({
|
|
479
479
|
theme: e,
|
|
480
480
|
ownerState: o
|
|
481
|
-
}) =>
|
|
482
|
-
[`&.${$.selected}`]:
|
|
481
|
+
}) => v({}, o.variant === "text" && {
|
|
482
|
+
[`&.${$.selected}`]: v({}, o.color !== "standard" && {
|
|
483
483
|
color: (e.vars || e).palette[o.color].contrastText,
|
|
484
484
|
backgroundColor: (e.vars || e).palette[o.color].main,
|
|
485
485
|
"&:hover": {
|
|
@@ -499,19 +499,19 @@ const $ = D("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
499
499
|
})
|
|
500
500
|
}, o.variant === "outlined" && {
|
|
501
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}`]:
|
|
502
|
+
[`&.${$.selected}`]: v({}, o.color !== "standard" && {
|
|
503
503
|
color: (e.vars || e).palette[o.color].main,
|
|
504
|
-
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / 0.5)` :
|
|
505
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})` :
|
|
504
|
+
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / 0.5)` : k(e.palette[o.color].main, 0.5)}`,
|
|
505
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})` : k(e.palette[o.color].main, e.palette.action.activatedOpacity),
|
|
506
506
|
"&:hover": {
|
|
507
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
507
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : k(e.palette[o.color].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity),
|
|
508
508
|
// Reset on touch devices, it doesn't add specificity
|
|
509
509
|
"@media (hover: none)": {
|
|
510
510
|
backgroundColor: "transparent"
|
|
511
511
|
}
|
|
512
512
|
},
|
|
513
513
|
[`&.${$.focusVisible}`]: {
|
|
514
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
514
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[o.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))` : k(e.palette[o.color].main, e.palette.action.activatedOpacity + e.palette.action.focusOpacity)
|
|
515
515
|
}
|
|
516
516
|
}, {
|
|
517
517
|
[`&.${$.disabled}`]: {
|
|
@@ -519,71 +519,71 @@ const $ = D("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
519
519
|
color: (e.vars || e).palette.action.disabled
|
|
520
520
|
}
|
|
521
521
|
})
|
|
522
|
-
})),
|
|
522
|
+
})), ze = T("div", {
|
|
523
523
|
name: "MuiPaginationItem",
|
|
524
524
|
slot: "Icon",
|
|
525
525
|
overridesResolver: (e, o) => o.icon
|
|
526
526
|
})(({
|
|
527
527
|
theme: e,
|
|
528
528
|
ownerState: o
|
|
529
|
-
}) =>
|
|
529
|
+
}) => v({
|
|
530
530
|
fontSize: e.typography.pxToRem(20),
|
|
531
531
|
margin: "0 -8px"
|
|
532
532
|
}, o.size === "small" && {
|
|
533
533
|
fontSize: e.typography.pxToRem(18)
|
|
534
534
|
}, o.size === "large" && {
|
|
535
535
|
fontSize: e.typography.pxToRem(22)
|
|
536
|
-
})), G = /* @__PURE__ */
|
|
537
|
-
const a =
|
|
536
|
+
})), G = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
537
|
+
const a = D({
|
|
538
538
|
props: o,
|
|
539
539
|
name: "MuiPaginationItem"
|
|
540
540
|
}), {
|
|
541
541
|
className: i,
|
|
542
|
-
color:
|
|
543
|
-
component:
|
|
544
|
-
components:
|
|
545
|
-
disabled:
|
|
546
|
-
page:
|
|
547
|
-
selected:
|
|
548
|
-
shape:
|
|
549
|
-
size:
|
|
542
|
+
color: c = "standard",
|
|
543
|
+
component: g,
|
|
544
|
+
components: l = {},
|
|
545
|
+
disabled: f = !1,
|
|
546
|
+
page: u,
|
|
547
|
+
selected: h = !1,
|
|
548
|
+
shape: m = "circular",
|
|
549
|
+
size: b = "medium",
|
|
550
550
|
slots: d = {},
|
|
551
551
|
type: r = "page",
|
|
552
552
|
variant: P = "text"
|
|
553
|
-
} = a,
|
|
554
|
-
color:
|
|
555
|
-
disabled:
|
|
556
|
-
selected:
|
|
557
|
-
shape:
|
|
558
|
-
size:
|
|
553
|
+
} = a, O = V(a, Ne), x = v({}, a, {
|
|
554
|
+
color: c,
|
|
555
|
+
disabled: f,
|
|
556
|
+
selected: h,
|
|
557
|
+
shape: m,
|
|
558
|
+
size: b,
|
|
559
559
|
type: r,
|
|
560
560
|
variant: P
|
|
561
|
-
}),
|
|
562
|
-
previous: d.next ||
|
|
563
|
-
next: d.previous ||
|
|
564
|
-
last: d.first ||
|
|
565
|
-
first: d.last ||
|
|
561
|
+
}), L = fe(), C = Oe(x), w = (L ? {
|
|
562
|
+
previous: d.next || l.next || Z,
|
|
563
|
+
next: d.previous || l.previous || Y,
|
|
564
|
+
last: d.first || l.first || Q,
|
|
565
|
+
first: d.last || l.last || X
|
|
566
566
|
} : {
|
|
567
|
-
previous: d.previous ||
|
|
568
|
-
next: d.next ||
|
|
569
|
-
first: d.first ||
|
|
570
|
-
last: d.last ||
|
|
567
|
+
previous: d.previous || l.previous || Y,
|
|
568
|
+
next: d.next || l.next || Z,
|
|
569
|
+
first: d.first || l.first || Q,
|
|
570
|
+
last: d.last || l.last || X
|
|
571
571
|
})[r];
|
|
572
|
-
return r === "start-ellipsis" || r === "end-ellipsis" ? /* @__PURE__ */
|
|
572
|
+
return r === "start-ellipsis" || r === "end-ellipsis" ? /* @__PURE__ */ y(Pe, {
|
|
573
573
|
ref: n,
|
|
574
|
-
ownerState:
|
|
575
|
-
className:
|
|
574
|
+
ownerState: x,
|
|
575
|
+
className: E(C.root, i),
|
|
576
576
|
children: "…"
|
|
577
|
-
}) : /* @__PURE__ */
|
|
577
|
+
}) : /* @__PURE__ */ ee(Ie, v({
|
|
578
578
|
ref: n,
|
|
579
|
-
ownerState:
|
|
580
|
-
component:
|
|
581
|
-
disabled:
|
|
582
|
-
className:
|
|
583
|
-
},
|
|
584
|
-
children: [r === "page" &&
|
|
585
|
-
as:
|
|
586
|
-
ownerState:
|
|
579
|
+
ownerState: x,
|
|
580
|
+
component: g,
|
|
581
|
+
disabled: f,
|
|
582
|
+
className: E(C.root, i)
|
|
583
|
+
}, O, {
|
|
584
|
+
children: [r === "page" && u, w ? /* @__PURE__ */ y(ze, {
|
|
585
|
+
as: w,
|
|
586
|
+
ownerState: x,
|
|
587
587
|
className: C.icon
|
|
588
588
|
}) : null]
|
|
589
589
|
}));
|
|
@@ -683,16 +683,16 @@ process.env.NODE_ENV !== "production" && (G.propTypes = {
|
|
|
683
683
|
*/
|
|
684
684
|
variant: t.oneOfType([t.oneOf(["outlined", "text"]), t.string])
|
|
685
685
|
});
|
|
686
|
-
const
|
|
686
|
+
const we = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], Le = (e) => {
|
|
687
687
|
const {
|
|
688
688
|
classes: o,
|
|
689
689
|
variant: n
|
|
690
690
|
} = e;
|
|
691
|
-
return
|
|
691
|
+
return F({
|
|
692
692
|
root: ["root", n],
|
|
693
693
|
ul: ["ul"]
|
|
694
|
-
},
|
|
695
|
-
},
|
|
694
|
+
}, he, o);
|
|
695
|
+
}, ke = T("nav", {
|
|
696
696
|
name: "MuiPagination",
|
|
697
697
|
slot: "Root",
|
|
698
698
|
overridesResolver: (e, o) => {
|
|
@@ -701,7 +701,7 @@ const Ne = ["boundaryCount", "className", "color", "count", "defaultPage", "disa
|
|
|
701
701
|
} = e;
|
|
702
702
|
return [o.root, o[n.variant]];
|
|
703
703
|
}
|
|
704
|
-
})({}),
|
|
704
|
+
})({}), Te = T("ul", {
|
|
705
705
|
name: "MuiPagination",
|
|
706
706
|
slot: "Ul",
|
|
707
707
|
overridesResolver: (e, o) => o.ul
|
|
@@ -713,73 +713,73 @@ const Ne = ["boundaryCount", "className", "color", "count", "defaultPage", "disa
|
|
|
713
713
|
margin: 0,
|
|
714
714
|
listStyle: "none"
|
|
715
715
|
});
|
|
716
|
-
function
|
|
716
|
+
function Se(e, o, n) {
|
|
717
717
|
return e === "page" ? `${n ? "" : "Go to "}page ${o}` : `Go to ${e} page`;
|
|
718
718
|
}
|
|
719
|
-
const
|
|
720
|
-
const a =
|
|
719
|
+
const ae = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
720
|
+
const a = D({
|
|
721
721
|
props: o,
|
|
722
722
|
name: "MuiPagination"
|
|
723
723
|
}), {
|
|
724
724
|
boundaryCount: i = 1,
|
|
725
|
-
className:
|
|
726
|
-
color:
|
|
727
|
-
count:
|
|
728
|
-
defaultPage:
|
|
729
|
-
disabled:
|
|
730
|
-
getItemAriaLabel:
|
|
731
|
-
hideNextButton:
|
|
732
|
-
hidePrevButton:
|
|
733
|
-
renderItem: d = (
|
|
725
|
+
className: c,
|
|
726
|
+
color: g = "standard",
|
|
727
|
+
count: l = 1,
|
|
728
|
+
defaultPage: f = 1,
|
|
729
|
+
disabled: u = !1,
|
|
730
|
+
getItemAriaLabel: h = Se,
|
|
731
|
+
hideNextButton: m = !1,
|
|
732
|
+
hidePrevButton: b = !1,
|
|
733
|
+
renderItem: d = (I) => /* @__PURE__ */ y(G, v({}, I)),
|
|
734
734
|
shape: r = "circular",
|
|
735
735
|
showFirstButton: P = !1,
|
|
736
|
-
showLastButton:
|
|
737
|
-
siblingCount:
|
|
738
|
-
size:
|
|
736
|
+
showLastButton: O = !1,
|
|
737
|
+
siblingCount: x = 1,
|
|
738
|
+
size: L = "medium",
|
|
739
739
|
variant: C = "text"
|
|
740
|
-
} = a,
|
|
741
|
-
items:
|
|
742
|
-
} =
|
|
740
|
+
} = a, S = V(a, we), {
|
|
741
|
+
items: w
|
|
742
|
+
} = $e(v({}, a, {
|
|
743
743
|
componentName: "Pagination"
|
|
744
|
-
})),
|
|
744
|
+
})), B = v({}, a, {
|
|
745
745
|
boundaryCount: i,
|
|
746
|
-
color:
|
|
747
|
-
count:
|
|
748
|
-
defaultPage:
|
|
749
|
-
disabled:
|
|
750
|
-
getItemAriaLabel:
|
|
751
|
-
hideNextButton:
|
|
752
|
-
hidePrevButton:
|
|
746
|
+
color: g,
|
|
747
|
+
count: l,
|
|
748
|
+
defaultPage: f,
|
|
749
|
+
disabled: u,
|
|
750
|
+
getItemAriaLabel: h,
|
|
751
|
+
hideNextButton: m,
|
|
752
|
+
hidePrevButton: b,
|
|
753
753
|
renderItem: d,
|
|
754
754
|
shape: r,
|
|
755
755
|
showFirstButton: P,
|
|
756
|
-
showLastButton:
|
|
757
|
-
siblingCount:
|
|
758
|
-
size:
|
|
756
|
+
showLastButton: O,
|
|
757
|
+
siblingCount: x,
|
|
758
|
+
size: L,
|
|
759
759
|
variant: C
|
|
760
|
-
}),
|
|
761
|
-
return /* @__PURE__ */
|
|
760
|
+
}), M = Le(B);
|
|
761
|
+
return /* @__PURE__ */ y(ke, v({
|
|
762
762
|
"aria-label": "pagination navigation",
|
|
763
|
-
className:
|
|
764
|
-
ownerState:
|
|
763
|
+
className: E(M.root, c),
|
|
764
|
+
ownerState: B,
|
|
765
765
|
ref: n
|
|
766
|
-
},
|
|
767
|
-
children: /* @__PURE__ */
|
|
768
|
-
className:
|
|
769
|
-
ownerState:
|
|
770
|
-
children:
|
|
771
|
-
children: d(
|
|
772
|
-
color:
|
|
773
|
-
"aria-label":
|
|
766
|
+
}, S, {
|
|
767
|
+
children: /* @__PURE__ */ y(Te, {
|
|
768
|
+
className: M.ul,
|
|
769
|
+
ownerState: B,
|
|
770
|
+
children: w.map((I, p) => /* @__PURE__ */ y("li", {
|
|
771
|
+
children: d(v({}, I, {
|
|
772
|
+
color: g,
|
|
773
|
+
"aria-label": h(I.type, I.page, I.selected),
|
|
774
774
|
shape: r,
|
|
775
|
-
size:
|
|
775
|
+
size: L,
|
|
776
776
|
variant: C
|
|
777
777
|
}))
|
|
778
778
|
}, p))
|
|
779
779
|
})
|
|
780
780
|
}));
|
|
781
781
|
});
|
|
782
|
-
process.env.NODE_ENV !== "production" && (
|
|
782
|
+
process.env.NODE_ENV !== "production" && (ae.propTypes = {
|
|
783
783
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
784
784
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
785
785
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -788,7 +788,7 @@ process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
|
788
788
|
* Number of always visible pages at the beginning and end.
|
|
789
789
|
* @default 1
|
|
790
790
|
*/
|
|
791
|
-
boundaryCount:
|
|
791
|
+
boundaryCount: R,
|
|
792
792
|
/**
|
|
793
793
|
* Override or extend the styles applied to the component.
|
|
794
794
|
*/
|
|
@@ -808,12 +808,12 @@ process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
|
808
808
|
* The total number of pages.
|
|
809
809
|
* @default 1
|
|
810
810
|
*/
|
|
811
|
-
count:
|
|
811
|
+
count: R,
|
|
812
812
|
/**
|
|
813
813
|
* The page selected by default when the component is uncontrolled.
|
|
814
814
|
* @default 1
|
|
815
815
|
*/
|
|
816
|
-
defaultPage:
|
|
816
|
+
defaultPage: R,
|
|
817
817
|
/**
|
|
818
818
|
* If `true`, the component is disabled.
|
|
819
819
|
* @default false
|
|
@@ -850,7 +850,7 @@ process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
|
850
850
|
/**
|
|
851
851
|
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
852
852
|
*/
|
|
853
|
-
page:
|
|
853
|
+
page: R,
|
|
854
854
|
/**
|
|
855
855
|
* Render the item.
|
|
856
856
|
* @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
|
|
@@ -877,7 +877,7 @@ process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
|
877
877
|
* Number of always visible pages before and after the current page.
|
|
878
878
|
* @default 1
|
|
879
879
|
*/
|
|
880
|
-
siblingCount:
|
|
880
|
+
siblingCount: R,
|
|
881
881
|
/**
|
|
882
882
|
* The size of the component.
|
|
883
883
|
* @default 'medium'
|
|
@@ -893,34 +893,30 @@ process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
|
893
893
|
*/
|
|
894
894
|
variant: t.oneOfType([t.oneOf(["outlined", "text"]), t.string])
|
|
895
895
|
});
|
|
896
|
-
function
|
|
896
|
+
function Be({
|
|
897
897
|
isRtl: e,
|
|
898
898
|
pageCount: o,
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
previousIcon: l,
|
|
903
|
-
page: u,
|
|
904
|
-
onPageChange: s,
|
|
905
|
-
className: g
|
|
899
|
+
page: n,
|
|
900
|
+
onPageChange: a,
|
|
901
|
+
className: i
|
|
906
902
|
}) {
|
|
907
|
-
return /* @__PURE__ */
|
|
908
|
-
|
|
903
|
+
return /* @__PURE__ */ y(
|
|
904
|
+
ae,
|
|
909
905
|
{
|
|
910
906
|
showFirstButton: !0,
|
|
911
907
|
showLastButton: !0,
|
|
912
|
-
className:
|
|
908
|
+
className: i,
|
|
913
909
|
count: o,
|
|
914
|
-
page:
|
|
915
|
-
onChange: (c,
|
|
916
|
-
|
|
910
|
+
page: n + 1,
|
|
911
|
+
onChange: (c, g) => {
|
|
912
|
+
a(c, g - 1);
|
|
917
913
|
},
|
|
918
914
|
boundaryCount: 0,
|
|
919
915
|
siblingCount: 1,
|
|
920
|
-
renderItem: (c) => /* @__PURE__ */
|
|
916
|
+
renderItem: (c) => /* @__PURE__ */ y(
|
|
921
917
|
G,
|
|
922
918
|
{
|
|
923
|
-
slots: { previous: e ?
|
|
919
|
+
slots: { previous: e ? J : K, next: e ? K : J, first: e ? H : q, last: e ? q : H },
|
|
924
920
|
...c
|
|
925
921
|
}
|
|
926
922
|
),
|
|
@@ -940,9 +936,9 @@ function Re({
|
|
|
940
936
|
}
|
|
941
937
|
);
|
|
942
938
|
}
|
|
943
|
-
function
|
|
944
|
-
return /* @__PURE__ */
|
|
939
|
+
function Ae({ isRtl: e, pageCount: o }) {
|
|
940
|
+
return /* @__PURE__ */ y(se, { ActionsComponent: (n) => /* @__PURE__ */ y(Be, { isRtl: e, pageCount: o, ...n }) });
|
|
945
941
|
}
|
|
946
942
|
export {
|
|
947
|
-
|
|
943
|
+
Ae as CustomPagination
|
|
948
944
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TablePaginationProps } from '@mui/material';
|
|
2
|
+
type BasePaginationProps = Pick<TablePaginationProps, 'page' | 'onPageChange' | 'className'>;
|
|
3
|
+
export type ExternalPaginationProps = {
|
|
4
|
+
isRtl: boolean;
|
|
5
|
+
pageCount: number;
|
|
6
|
+
};
|
|
7
|
+
export type ExtendedPaginationProps = BasePaginationProps & ExternalPaginationProps;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d } from "react";
|
|
3
|
-
import { M as
|
|
4
|
-
const
|
|
5
|
-
|
|
3
|
+
import { M as m } from "../../index-BczMuCik.js";
|
|
4
|
+
import '../../assets/ErrorModal.css';const x = "_flexRowCenter_14ewh_1", h = "_mr10_14ewh_7", i = "_text18_14ewh_15", _ = "_content_14ewh_19", t = {
|
|
5
|
+
flexRowCenter: x,
|
|
6
|
+
mr10: h,
|
|
7
|
+
text18: i,
|
|
8
|
+
content: _
|
|
9
|
+
}, u = ({ error: n, resetErrorBoundary: o, title: r, tryAgain: s, cancel: c }) => {
|
|
10
|
+
const [l, a] = d(!0), p = () => {
|
|
6
11
|
a(!1);
|
|
7
12
|
};
|
|
8
13
|
return /* @__PURE__ */ e(
|
|
9
|
-
|
|
14
|
+
m,
|
|
10
15
|
{
|
|
11
|
-
title: /* @__PURE__ */ e("span", { className:
|
|
16
|
+
title: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("p", { className: t.text18, children: r }) }),
|
|
12
17
|
centered: !0,
|
|
13
|
-
open:
|
|
14
|
-
onOk:
|
|
18
|
+
open: l,
|
|
19
|
+
onOk: o,
|
|
15
20
|
onCancel: p,
|
|
16
21
|
closeIcon: !0,
|
|
17
|
-
okText: /* @__PURE__ */ e("span", { className:
|
|
22
|
+
okText: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("span", { children: s }) }),
|
|
18
23
|
okButtonProps: {
|
|
19
24
|
style: {
|
|
20
25
|
backgroundColor: "#05A952"
|
|
@@ -25,11 +30,11 @@ const n = {}, x = ({ error: o, resetErrorBoundary: r, title: t, tryAgain: s, can
|
|
|
25
30
|
borderColor: "#05A952"
|
|
26
31
|
}
|
|
27
32
|
},
|
|
28
|
-
cancelText: /* @__PURE__ */ e("span", { className:
|
|
29
|
-
children: /* @__PURE__ */ e("p", { className:
|
|
33
|
+
cancelText: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("span", { children: c }) }),
|
|
34
|
+
children: /* @__PURE__ */ e("p", { className: t.content, children: n.toString() })
|
|
30
35
|
}
|
|
31
36
|
);
|
|
32
37
|
};
|
|
33
38
|
export {
|
|
34
|
-
|
|
39
|
+
u as ErrorModal
|
|
35
40
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { S as i } from "../../VModalIcon-D7L4bQLO.js";
|
|
4
4
|
import { M as m } from "../../index-BczMuCik.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/ErrorModal.css';const d = (o) => /* @__PURE__ */ s.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o }, /* @__PURE__ */ s.createElement("path", { d: "M13 16H12V12H11M12 8H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), p = "_flexRowCenter_14ewh_1", h = "_mr10_14ewh_7", x = "_text18_14ewh_15", f = "_content_14ewh_19", t = {
|
|
6
6
|
flexRowCenter: p,
|
|
7
7
|
mr10: h,
|
|
8
8
|
text18: x,
|
|
@@ -5,7 +5,7 @@ import * as i from "react";
|
|
|
5
5
|
import ot, { useState as qe, useMemo as Nn, useCallback as Qt, forwardRef as ci, useRef as Fe, useImperativeHandle as ui, createContext as di, useEffect as Mt } from "react";
|
|
6
6
|
import { _ as ua, a as da, b as fa, c as va, s as Xn, u as Jn, f as dr, d as Tn, e as V, t as xr, w as fr, i as fi, K as Zt, g as Ke, h as te, j as At, r as ma, k as O, l as zt, m as $t, C as Qn, n as Er, o as vi, p as vr, q as ha, v as _t, x as mr, y as mi, P as ga, z as je, A as ce, B as hi, D as ba, E as nn, F as bn, G as Zn, I as pa, H as gi, J as bi, L as Rr, M as ya, N as Ca, O as L, Q as Mr, R as Pr, S as Sa, T as Yn, U as pi, V as yi, W as wa, X as er, Y as Ci } from "../../Skeleton-g81JQrtl.js";
|
|
7
7
|
import { a as de } from "../../objectWithoutPropertiesLoose-CIT-1_kH.js";
|
|
8
|
-
import '../../assets/
|
|
8
|
+
import '../../assets/index2.css';var hr = /* @__PURE__ */ i.createContext(null);
|
|
9
9
|
function Si(e) {
|
|
10
10
|
var t = e.children, n = e.onBatchResize, r = i.useRef(0), a = i.useRef([]), o = i.useContext(hr), l = i.useCallback(function(s, c, u) {
|
|
11
11
|
r.current += 1;
|
package/package.json
CHANGED
package/dist/assets/index3.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._kpiCard_aruiy_1{height:147px;background-color:#f0f0f0;border-radius:8px}._width430_aruiy_7{width:430px}@media (max-width: 1500px){._width430_aruiy_7{width:200px}}._width384_aruiy_16{width:384px}._flexCol_aruiy_20{display:flex;flex-direction:column}._flexRow_aruiy_25{display:flex;flex-direction:row}._title_aruiy_30{font-size:32px;font-weight:500;color:#12121a}@media (max-width: 900px){._title_aruiy_30{font-size:12px}}@media (max-width: 1100px){._title_aruiy_30{font-size:16px}}@media (max-width: 1400px){._title_aruiy_30{font-size:20px}}@media (max-width: 1600px){._title_aruiy_30{font-size:22px}}._content_aruiy_56{font-size:21px;font-weight:400;color:#626367;margin-top:-10px}@media (max-width: 900px){._content_aruiy_56{font-size:8px}}@media (max-width: 1100px){._content_aruiy_56{font-size:12px}}@media (max-width: 1400px){._content_aruiy_56{font-size:14px}}
|