@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.
@@ -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}
@@ -1 +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}
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/index2.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 = {
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
- export declare function CustomFooter({ total, columnsDefinitions, isRtl }: any): import("react/jsx-runtime").JSX.Element;
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 h, Fragment as l, jsx as r } from "react/jsx-runtime";
2
- import * as t from "react";
3
- import { CustomPagination as w } from "../CustomPagination/CustomPagination.js";
4
- import { TotalDataGrid as p } from "../TotalDataGrid/TotalDataGrid.js";
5
- import { useGridApiContext as m, useGridSelector as i, gridFilteredTopLevelRowCountSelector as v, useGridRootProps as u, gridPageSizeSelector as L, GridFooterContainer as k } from "@mui/x-data-grid";
6
- const f = (e) => /* @__PURE__ */ t.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ t.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" }))), x = (e) => /* @__PURE__ */ t.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ t.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" }))), E = (e) => /* @__PURE__ */ t.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), C = (e) => /* @__PURE__ */ t.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), S = (e, o) => o > 0 && e > 0 ? Math.ceil(e / o) : 0;
7
- function G({ total: e, columnsDefinitions: o, isRtl: s }) {
8
- const n = m(), c = i(n, v), d = u(), a = i(n, L), g = S(d.rowCount ?? c, a);
9
- return /* @__PURE__ */ h(l, { children: [
10
- /* @__PURE__ */ r("div", { style: { paddingTop: "10px", height: "7%" }, children: (e == null ? void 0 : e.length) > 0 && /* @__PURE__ */ r(
11
- p,
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: e,
15
+ rows: o,
14
16
  isFetching: !1,
15
- columnsDefinitions: o
17
+ columnsDefinitions: t
16
18
  }
17
19
  ) }),
18
- /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(
19
- w,
20
+ /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
21
+ u,
20
22
  {
21
- isRtl: s,
22
- pageCount: g,
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
- G as CustomFooter
30
+ _ as CustomFooter
33
31
  };
@@ -0,0 +1,7 @@
1
+ import { GridColDef } from '@mui/x-data-grid';
2
+ interface CustomFooterProps {
3
+ total: any[];
4
+ columnsDefinitions: GridColDef[];
5
+ isRtl: boolean;
6
+ }
7
+ export default CustomFooterProps;
@@ -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, arrowFirstIcon, arrowLastIcon, nextIcon, previousIcon }: ExternalPaginationProps): import("react/jsx-runtime").JSX.Element;
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 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 "../../objectWithoutPropertiesLoose-CIT-1_kH.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-CBdP3bZj.js";
6
- import { B as ae } from "../../ButtonBase-Dv90LYxj.js";
7
- function ie({
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
- } = m.useRef(e !== void 0), [l, u] = m.useState(o), s = i ? e : l;
15
+ } = s.useRef(e !== void 0), [c, g] = s.useState(o), l = i ? e : c;
16
16
  if (process.env.NODE_ENV !== "production") {
17
- m.useEffect(() => {
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: 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(`
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 g = m.useCallback((c) => {
30
- i || u(c);
29
+ const f = s.useCallback((u) => {
30
+ i || g(u);
31
31
  }, []);
32
- return [s, g];
32
+ return [l, f];
33
33
  }
34
- function re(e) {
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 se(e) {
45
+ function pe(e) {
46
46
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
47
47
  }
48
- const le = Number.isInteger || se;
49
- function X(e, o, n, a) {
48
+ const ue = Number.isInteger || pe;
49
+ function oe(e, o, n, a) {
50
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\`.`);
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 Y(e, o, ...n) {
58
- return e[o] === void 0 ? null : X(e, o, ...n);
57
+ function te(e, o, ...n) {
58
+ return e[o] === void 0 ? null : oe(e, o, ...n);
59
59
  }
60
- function j() {
60
+ function A() {
61
61
  return null;
62
62
  }
63
- Y.isRequired = X;
64
- j.isRequired = j;
65
- const L = process.env.NODE_ENV === "production" ? j : Y, ce = /* @__PURE__ */ m.createContext();
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 de = () => {
68
- const e = m.useContext(ce);
67
+ const fe = () => {
68
+ const e = s.useContext(ge);
69
69
  return e ?? !1;
70
- };
71
- function pe(e) {
72
- return U("MuiSvgIcon", e);
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
- 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) => {
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${O(o)}`, `fontSize${O(n)}`]
81
+ root: ["root", o !== "inherit" && `color${N(o)}`, `fontSize${N(n)}`]
82
82
  };
83
- return W(i, pe, a);
84
- }, fe = B("svg", {
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${O(n.color)}`], o[`fontSize${O(n.fontSize)}`]];
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, l, u, s, g, c, y, x, v, d, r;
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: ((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"
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: (x = (v = (e.vars || e).palette) == null || (v = v[o.color]) == null ? void 0 : v.main) != null ? x : {
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
- }), E = /* @__PURE__ */ m.forwardRef(function(o, n) {
124
- const a = F({
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: 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,
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: y,
143
- viewBox: v,
142
+ inheritViewBox: h,
143
+ viewBox: b,
144
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),
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: c,
153
- "aria-hidden": x ? void 0 : !0,
154
- role: x ? "img" : void 0,
152
+ color: u,
153
+ "aria-hidden": m ? void 0 : !0,
154
+ role: m ? "img" : void 0,
155
155
  ref: n
156
- }, N, d, r && i.props, {
156
+ }, O, d, r && i.props, {
157
157
  ownerState: P,
158
- children: [r ? i.props.children : i, x ? /* @__PURE__ */ b("title", {
159
- children: x
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" && (E.propTypes = {
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
- E.muiName = "SvgIcon";
236
- function A(e, o) {
235
+ _.muiName = "SvgIcon";
236
+ function j(e, o) {
237
237
  function n(a, i) {
238
- return /* @__PURE__ */ b(E, f({
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 = E.muiName, /* @__PURE__ */ m.memo(/* @__PURE__ */ m.forwardRef(n));
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 ve(e) {
248
- return U("MuiPagination", e);
247
+ function he(e) {
248
+ return W("MuiPagination", e);
249
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 = {}) {
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: 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,
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
- }), N = (p, I) => {
272
- c || P(I), g && g(p, I);
273
- }, h = (p, I) => {
274
- const oe = I - p + 1;
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: 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(
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 - v,
281
+ r - b,
282
282
  // Lower boundary when page is high
283
- a - o - v * 2 - 1
283
+ a - o - b * 2 - 1
284
284
  ),
285
285
  // Greater than startPages
286
286
  o + 2
287
- ), T = Math.min(
287
+ ), w = Math.min(
288
288
  Math.max(
289
289
  // Natural end
290
- r + v,
290
+ r + b,
291
291
  // Upper boundary when page is low
292
- o + v * 2 + 2
292
+ o + b * 2 + 2
293
293
  ),
294
294
  // Less than endPages
295
295
  C.length > 0 ? C[0] - 2 : a - 1
296
- ), _ = [
297
- ...y ? ["first"] : [],
298
- ...s ? [] : ["previous"],
299
- ...R,
296
+ ), B = [
297
+ ...h ? ["first"] : [],
298
+ ...l ? [] : ["previous"],
299
+ ...L,
300
300
  // Start ellipsis
301
301
  // eslint-disable-next-line no-nested-ternary
302
- ...M > o + 2 ? ["start-ellipsis"] : o + 1 < a - o ? [o + 1] : [],
302
+ ...S > o + 2 ? ["start-ellipsis"] : o + 1 < a - o ? [o + 1] : [],
303
303
  // Sibling pages
304
- ...h(M, T),
304
+ ...x(S, w),
305
305
  // End ellipsis
306
306
  // eslint-disable-next-line no-nested-ternary
307
- ...T < a - o - 1 ? ["end-ellipsis"] : a - o > o ? [a - o] : [],
307
+ ...w < a - o - 1 ? ["end-ellipsis"] : a - o > o ? [a - o] : [],
308
308
  ...C,
309
- ...u ? [] : ["next"],
310
- ...x ? ["last"] : []
311
- ], k = (p) => {
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
- }, z = _.map((p) => typeof p == "number" ? {
325
- onClick: (I) => {
326
- N(I, p);
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: l,
331
+ disabled: c,
332
332
  "aria-current": p === r ? "true" : void 0
333
333
  } : {
334
- onClick: (I) => {
335
- N(I, k(p));
334
+ onClick: (z) => {
335
+ O(z, M(p));
336
336
  },
337
337
  type: p,
338
- page: k(p),
338
+ page: M(p),
339
339
  selected: !1,
340
- disabled: l || p.indexOf("ellipsis") === -1 && (p === "next" || p === "last" ? r >= a : r <= 1)
340
+ disabled: c || p.indexOf("ellipsis") === -1 && (p === "next" || p === "last" ? r >= a : r <= 1)
341
341
  });
342
- return f({
343
- items: z
342
+ return v({
343
+ items: I
344
344
  }, d);
345
345
  }
346
- function me(e) {
347
- return U("MuiPaginationItem", e);
346
+ function Ce(e) {
347
+ return W("MuiPaginationItem", e);
348
348
  }
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", {
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"), H = A(/* @__PURE__ */ b("path", {
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"), J = A(/* @__PURE__ */ b("path", {
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"), K = A(/* @__PURE__ */ b("path", {
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"), xe = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], Z = (e, o) => {
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${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) => {
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: 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", {
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
- }[s]],
381
+ }[l]],
382
382
  icon: ["icon"]
383
383
  };
384
- return W(c, me, o);
385
- }, $e = B("div", {
384
+ return F(u, Ce, o);
385
+ }, Pe = T("div", {
386
386
  name: "MuiPaginationItem",
387
387
  slot: "Root",
388
- overridesResolver: Z
388
+ overridesResolver: ne
389
389
  })(({
390
390
  theme: e,
391
391
  ownerState: o
392
- }) => f({}, e.typography.body2, {
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
- })), Ce = B(ae, {
414
+ })), Ie = T(le, {
415
415
  name: "MuiPaginationItem",
416
416
  slot: "Root",
417
- overridesResolver: Z
417
+ overridesResolver: ne
418
418
  })(({
419
419
  theme: e,
420
420
  ownerState: o
421
- }) => f({}, e.typography.body2, {
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}))` : S(e.palette.action.selected, e.palette.action.selectedOpacity + e.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}))` : S(e.palette.action.selected, e.palette.action.selectedOpacity + e.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
- }) => f({}, o.variant === "text" && {
482
- [`&.${$.selected}`]: f({}, o.color !== "standard" && {
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}`]: f({}, o.color !== "standard" && {
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)` : 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),
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}))` : S(e.palette[o.color].main, e.palette.action.activatedOpacity + e.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}))` : S(e.palette[o.color].main, e.palette.action.activatedOpacity + e.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
- })), Oe = B("div", {
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
- }) => f({
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__ */ m.forwardRef(function(o, n) {
537
- const a = F({
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: 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",
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, N = w(a, xe), h = f({}, a, {
554
- color: l,
555
- disabled: g,
556
- selected: y,
557
- shape: x,
558
- size: v,
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
- }), 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
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 || s.previous || J,
568
- next: d.next || s.next || K,
569
- first: d.first || s.first || q,
570
- last: d.last || s.last || H
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__ */ b($e, {
572
+ return r === "start-ellipsis" || r === "end-ellipsis" ? /* @__PURE__ */ y(Pe, {
573
573
  ref: n,
574
- ownerState: h,
575
- className: V(C.root, i),
574
+ ownerState: x,
575
+ className: E(C.root, i),
576
576
  children: "…"
577
- }) : /* @__PURE__ */ Q(Ce, f({
577
+ }) : /* @__PURE__ */ ee(Ie, v({
578
578
  ref: n,
579
- ownerState: h,
580
- component: u,
581
- disabled: g,
582
- className: V(C.root, i)
583
- }, N, {
584
- children: [r === "page" && c, T ? /* @__PURE__ */ b(Oe, {
585
- as: T,
586
- ownerState: h,
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 Ne = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], Pe = (e) => {
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 W({
691
+ return F({
692
692
  root: ["root", n],
693
693
  ul: ["ul"]
694
- }, ve, o);
695
- }, ze = B("nav", {
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
- })({}), Ie = B("ul", {
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 Te(e, o, n) {
716
+ function Se(e, o, n) {
717
717
  return e === "page" ? `${n ? "" : "Go to "}page ${o}` : `Go to ${e} page`;
718
718
  }
719
- const ee = /* @__PURE__ */ m.forwardRef(function(o, n) {
720
- const a = F({
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: 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)),
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: N = !1,
737
- siblingCount: h = 1,
738
- size: R = "medium",
736
+ showLastButton: O = !1,
737
+ siblingCount: x = 1,
738
+ size: L = "medium",
739
739
  variant: C = "text"
740
- } = a, M = w(a, Ne), {
741
- items: T
742
- } = ye(f({}, a, {
740
+ } = a, S = V(a, we), {
741
+ items: w
742
+ } = $e(v({}, a, {
743
743
  componentName: "Pagination"
744
- })), _ = f({}, a, {
744
+ })), B = v({}, a, {
745
745
  boundaryCount: i,
746
- color: u,
747
- count: s,
748
- defaultPage: g,
749
- disabled: c,
750
- getItemAriaLabel: y,
751
- hideNextButton: x,
752
- hidePrevButton: v,
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: N,
757
- siblingCount: h,
758
- size: R,
756
+ showLastButton: O,
757
+ siblingCount: x,
758
+ size: L,
759
759
  variant: C
760
- }), k = Pe(_);
761
- return /* @__PURE__ */ b(ze, f({
760
+ }), M = Le(B);
761
+ return /* @__PURE__ */ y(ke, v({
762
762
  "aria-label": "pagination navigation",
763
- className: V(k.root, l),
764
- ownerState: _,
763
+ className: E(M.root, c),
764
+ ownerState: B,
765
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),
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: R,
775
+ size: L,
776
776
  variant: C
777
777
  }))
778
778
  }, p))
779
779
  })
780
780
  }));
781
781
  });
782
- process.env.NODE_ENV !== "production" && (ee.propTypes = {
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: L,
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: L,
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: L,
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: L,
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: L,
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 Re({
896
+ function Be({
897
897
  isRtl: e,
898
898
  pageCount: o,
899
- arrowFirstIcon: n,
900
- arrowLastIcon: a,
901
- nextIcon: i,
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__ */ b(
908
- ee,
903
+ return /* @__PURE__ */ y(
904
+ ae,
909
905
  {
910
906
  showFirstButton: !0,
911
907
  showLastButton: !0,
912
- className: g,
908
+ className: i,
913
909
  count: o,
914
- page: u + 1,
915
- onChange: (c, y) => {
916
- s(c, y - 1);
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__ */ b(
916
+ renderItem: (c) => /* @__PURE__ */ y(
921
917
  G,
922
918
  {
923
- slots: { previous: e ? i : l, next: e ? l : i, first: e ? a : n, last: e ? n : a },
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 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 }) });
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
- Ve as CustomPagination
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 {};
@@ -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 i } from "../../index-BczMuCik.js";
4
- const n = {}, x = ({ error: o, resetErrorBoundary: r, title: t, tryAgain: s, cancel: l }) => {
5
- const [c, a] = d(!0), p = () => {
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
- i,
14
+ m,
10
15
  {
11
- title: /* @__PURE__ */ e("span", { className: n.flexRowCenter, children: /* @__PURE__ */ e("p", { className: n.text18, children: t }) }),
16
+ title: /* @__PURE__ */ e("span", { className: t.flexRowCenter, children: /* @__PURE__ */ e("p", { className: t.text18, children: r }) }),
12
17
  centered: !0,
13
- open: c,
14
- onOk: r,
18
+ open: l,
19
+ onOk: o,
15
20
  onCancel: p,
16
21
  closeIcon: !0,
17
- okText: /* @__PURE__ */ e("span", { className: n.flexRowCenter, children: /* @__PURE__ */ e("span", { children: s }) }),
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: n.flexRowCenter, children: /* @__PURE__ */ e("span", { children: l }) }),
29
- children: /* @__PURE__ */ e("p", { className: n.content, children: o.toString() })
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
- x as ErrorModal
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/index2.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 = {
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/index3.css';var hr = /* @__PURE__ */ i.createContext(null);
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;
@@ -0,0 +1,2 @@
1
+ declare const getPageCount: (rowCount: number, pageSize: number) => number;
2
+ export default getPageCount;
@@ -0,0 +1,4 @@
1
+ const r = (t, e) => e > 0 && t > 0 ? Math.ceil(t / e) : 0;
2
+ export {
3
+ r as default
4
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@amateescu/portal-ui-components",
3
3
  "main": "dist/main.js",
4
4
  "types": "dist/main.d.ts",
5
- "version": "0.0.10-beta2",
5
+ "version": "0.0.11",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"
@@ -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}}