@amateescu/portal-ui-components 0.0.26-beta1 → 0.0.28

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.
Files changed (34) hide show
  1. package/dist/{Box-DIkPDmkQ.js → Box-C1OwXVV-.js} +1 -1
  2. package/dist/{Button-DX-oo-0S.js → Button-CIvE-fcO.js} +19 -19
  3. package/dist/{ButtonBase-OBo-BQii.js → ButtonBase-BeQnmGXr.js} +1 -1
  4. package/dist/{EllipsisOutlined-DgMtO3ok.js → EllipsisOutlined-DZsCEqiL.js} +2 -2
  5. package/dist/{PurePanel-DOohzuQB.js → PurePanel-iUNZWTe_.js} +3 -2
  6. package/dist/{Skeleton-BekbYx_y.js → Skeleton-CfEiGUkR.js} +1 -1
  7. package/dist/{UserInfoDropdown-WucWs2wn.js → UserInfoDropdown-CoZutJAR.js} +3 -3
  8. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  9. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  10. package/dist/components/CustomButton/CustomButton.js +6 -5
  11. package/dist/components/CustomButton/CustomeButton.types.d.ts +1 -0
  12. package/dist/components/CustomPagination/CustomPagination.js +140 -140
  13. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  14. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  15. package/dist/components/InfoModal/InfoModal.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  17. package/dist/components/KpiCard/KpiCard.js +11 -3
  18. package/dist/components/LoadingAnimation/LoadingAnimation.js +2 -2
  19. package/dist/components/Login/Login.js +824 -818
  20. package/dist/components/Login/Login.stories.js +1 -1
  21. package/dist/components/SideMenu/SideMenu.js +1 -1
  22. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  23. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  24. package/dist/components/index.js +1 -1
  25. package/dist/{context-DcMzUd6b.js → context-Crxhk7DD.js} +1253 -1212
  26. package/dist/{createSvgIcon-C53fLlQy.js → createSvgIcon-Db107M0j.js} +1 -1
  27. package/dist/generateUtilityClasses-DY-qyzNG.js +3427 -0
  28. package/dist/{index-Cfhdtvoc.js → index-BxiDYyNJ.js} +3 -3
  29. package/dist/{index-Bb1SSZdZ.js → index-DpDv68WZ.js} +966 -901
  30. package/dist/main.js +1 -1
  31. package/dist/portal-utils/formatters.js +68 -0
  32. package/dist/types/Column.d.ts +3 -3
  33. package/package.json +2 -2
  34. package/dist/generateUtilityClasses-B5BV6O-J.js +0 -3367
@@ -1,20 +1,20 @@
1
- import { jsx as c, jsxs as ot } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as oa } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
3
  import '../../assets/theme.css';/* empty css */
4
- import { GridPagination as et } from "@mui/x-data-grid";
4
+ import { GridPagination as ea } from "@mui/x-data-grid";
5
5
  import { _ as A, a as l } from "../../objectWithoutPropertiesLoose-DYizGgyG.js";
6
- import { g as J, a as K, u as Q, s as E, c as j, b as N, d as X, h as z, P as o } from "../../generateUtilityClasses-B5BV6O-J.js";
7
- import { u as nt, c as W, a as st, i as R } from "../../createSvgIcon-C53fLlQy.js";
8
- import { B as it } from "../../ButtonBase-OBo-BQii.js";
9
- const F = (t) => /* @__PURE__ */ g.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ g.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ g.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" }))), S = (t) => /* @__PURE__ */ g.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ g.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ g.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" }))), U = (t) => /* @__PURE__ */ g.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ g.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), V = (t) => /* @__PURE__ */ g.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ g.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
10
- function rt(t) {
11
- return J("MuiPagination", t);
6
+ import { g as J, a as K, u as Q, s as E, c as j, b as N, d as X, h as z, P as o } from "../../generateUtilityClasses-DY-qyzNG.js";
7
+ import { u as na, c as W, a as sa, i as R } from "../../createSvgIcon-Db107M0j.js";
8
+ import { B as ia } from "../../ButtonBase-BeQnmGXr.js";
9
+ const S = (a) => /* @__PURE__ */ g.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ g.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ g.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" }))), _ = (a) => /* @__PURE__ */ g.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ g.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ g.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" }))), U = (a) => /* @__PURE__ */ g.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ g.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), V = (a) => /* @__PURE__ */ g.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ g.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
10
+ function ra(a) {
11
+ return J("MuiPagination", a);
12
12
  }
13
13
  K("MuiPagination", ["root", "ul", "outlined", "text"]);
14
- const lt = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
15
- function ct(t = {}) {
14
+ const la = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
15
+ function ca(a = {}) {
16
16
  const {
17
- boundaryCount: a = 1,
17
+ boundaryCount: t = 1,
18
18
  componentName: e = "usePagination",
19
19
  count: n = 1,
20
20
  defaultPage: v = 1,
@@ -25,8 +25,8 @@ function ct(t = {}) {
25
25
  page: m,
26
26
  showFirstButton: O = !1,
27
27
  showLastButton: B = !1,
28
- siblingCount: P = 1
29
- } = t, d = A(t, lt), [i, w] = nt({
28
+ siblingCount: h = 1
29
+ } = a, d = A(a, la), [i, w] = na({
30
30
  controlled: m,
31
31
  default: v,
32
32
  name: e,
@@ -34,25 +34,25 @@ function ct(t = {}) {
34
34
  }), $ = (s, C) => {
35
35
  m || w(C), b && b(s, C);
36
36
  }, y = (s, C) => {
37
- const tt = C - s + 1;
37
+ const aa = C - s + 1;
38
38
  return Array.from({
39
- length: tt
40
- }, (Ct, at) => s + at);
41
- }, k = y(1, Math.min(a, n)), x = y(Math.max(n - a + 1, a + 1), n), I = Math.max(
39
+ length: aa
40
+ }, (Ca, ta) => s + ta);
41
+ }, k = y(1, Math.min(t, n)), x = y(Math.max(n - t + 1, t + 1), n), I = Math.max(
42
42
  Math.min(
43
43
  // Natural start
44
- i - P,
44
+ i - h,
45
45
  // Lower boundary when page is high
46
- n - a - P * 2 - 1
46
+ n - t - h * 2 - 1
47
47
  ),
48
48
  // Greater than startPages
49
- a + 2
49
+ t + 2
50
50
  ), L = Math.min(
51
51
  Math.max(
52
52
  // Natural end
53
- i + P,
53
+ i + h,
54
54
  // Upper boundary when page is low
55
- a + P * 2 + 2
55
+ t + h * 2 + 2
56
56
  ),
57
57
  // Less than endPages
58
58
  x.length > 0 ? x[0] - 2 : n - 1
@@ -62,12 +62,12 @@ function ct(t = {}) {
62
62
  ...k,
63
63
  // Start ellipsis
64
64
  // eslint-disable-next-line no-nested-ternary
65
- ...I > a + 2 ? ["start-ellipsis"] : a + 1 < n - a ? [a + 1] : [],
65
+ ...I > t + 2 ? ["start-ellipsis"] : t + 1 < n - t ? [t + 1] : [],
66
66
  // Sibling pages
67
67
  ...y(I, L),
68
68
  // End ellipsis
69
69
  // eslint-disable-next-line no-nested-ternary
70
- ...L < n - a - 1 ? ["end-ellipsis"] : n - a > a ? [n - a] : [],
70
+ ...L < n - t - 1 ? ["end-ellipsis"] : n - t > t ? [n - t] : [],
71
71
  ...x,
72
72
  ...f ? [] : ["next"],
73
73
  ...B ? ["last"] : []
@@ -84,7 +84,7 @@ function ct(t = {}) {
84
84
  default:
85
85
  return null;
86
86
  }
87
- }, h = M.map((s) => typeof s == "number" ? {
87
+ }, P = M.map((s) => typeof s == "number" ? {
88
88
  onClick: (C) => {
89
89
  $(C, s);
90
90
  },
@@ -103,11 +103,11 @@ function ct(t = {}) {
103
103
  disabled: p || s.indexOf("ellipsis") === -1 && (s === "next" || s === "last" ? i >= n : i <= 1)
104
104
  });
105
105
  return l({
106
- items: h
106
+ items: P
107
107
  }, d);
108
108
  }
109
- function dt(t) {
110
- return J("MuiPaginationItem", t);
109
+ function da(a) {
110
+ return J("MuiPaginationItem", a);
111
111
  }
112
112
  const u = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), D = W(/* @__PURE__ */ c("path", {
113
113
  d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
@@ -117,14 +117,14 @@ const u = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
117
117
  d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
118
118
  }), "NavigateBefore"), q = W(/* @__PURE__ */ c("path", {
119
119
  d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
120
- }), "NavigateNext"), pt = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], Y = (t, a) => {
120
+ }), "NavigateNext"), pa = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], Y = (a, t) => {
121
121
  const {
122
122
  ownerState: e
123
- } = t;
124
- return [a.root, a[e.variant], a[`size${N(e.size)}`], e.variant === "text" && a[`text${N(e.color)}`], e.variant === "outlined" && a[`outlined${N(e.color)}`], e.shape === "rounded" && a.rounded, e.type === "page" && a.page, (e.type === "start-ellipsis" || e.type === "end-ellipsis") && a.ellipsis, (e.type === "previous" || e.type === "next") && a.previousNext, (e.type === "first" || e.type === "last") && a.firstLast];
125
- }, ut = (t) => {
123
+ } = a;
124
+ return [t.root, t[e.variant], t[`size${N(e.size)}`], e.variant === "text" && t[`text${N(e.color)}`], e.variant === "outlined" && t[`outlined${N(e.color)}`], e.shape === "rounded" && t.rounded, e.type === "page" && t.page, (e.type === "start-ellipsis" || e.type === "end-ellipsis") && t.ellipsis, (e.type === "previous" || e.type === "next") && t.previousNext, (e.type === "first" || e.type === "last") && t.firstLast];
125
+ }, ua = (a) => {
126
126
  const {
127
- classes: a,
127
+ classes: t,
128
128
  color: e,
129
129
  disabled: n,
130
130
  selected: v,
@@ -132,7 +132,7 @@ const u = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
132
132
  shape: f,
133
133
  type: r,
134
134
  variant: b
135
- } = t, m = {
135
+ } = a, m = {
136
136
  root: ["root", `size${N(p)}`, b, f, e !== "standard" && `color${N(e)}`, e !== "standard" && `${b}${N(e)}`, n && "disabled", v && "selected", {
137
137
  page: "page",
138
138
  first: "firstLast",
@@ -144,44 +144,44 @@ const u = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
144
144
  }[r]],
145
145
  icon: ["icon"]
146
146
  };
147
- return X(m, dt, a);
148
- }, gt = E("div", {
147
+ return X(m, da, t);
148
+ }, ga = E("div", {
149
149
  name: "MuiPaginationItem",
150
150
  slot: "Root",
151
151
  overridesResolver: Y
152
152
  })(({
153
- theme: t,
154
- ownerState: a
155
- }) => l({}, t.typography.body2, {
153
+ theme: a,
154
+ ownerState: t
155
+ }) => l({}, a.typography.body2, {
156
156
  borderRadius: 32 / 2,
157
157
  textAlign: "center",
158
158
  boxSizing: "border-box",
159
159
  minWidth: 32,
160
160
  padding: "0 6px",
161
161
  margin: "0 3px",
162
- color: (t.vars || t).palette.text.primary,
162
+ color: (a.vars || a).palette.text.primary,
163
163
  height: "auto",
164
164
  [`&.${u.disabled}`]: {
165
- opacity: (t.vars || t).palette.action.disabledOpacity
165
+ opacity: (a.vars || a).palette.action.disabledOpacity
166
166
  }
167
- }, a.size === "small" && {
167
+ }, t.size === "small" && {
168
168
  minWidth: 26,
169
169
  borderRadius: 26 / 2,
170
170
  margin: "0 1px",
171
171
  padding: "0 4px"
172
- }, a.size === "large" && {
172
+ }, t.size === "large" && {
173
173
  minWidth: 40,
174
174
  borderRadius: 40 / 2,
175
175
  padding: "0 10px",
176
- fontSize: t.typography.pxToRem(15)
177
- })), vt = E(it, {
176
+ fontSize: a.typography.pxToRem(15)
177
+ })), va = E(ia, {
178
178
  name: "MuiPaginationItem",
179
179
  slot: "Root",
180
180
  overridesResolver: Y
181
181
  })(({
182
- theme: t,
183
- ownerState: a
184
- }) => l({}, t.typography.body2, {
182
+ theme: a,
183
+ ownerState: t
184
+ }) => l({}, a.typography.body2, {
185
185
  borderRadius: 32 / 2,
186
186
  textAlign: "center",
187
187
  boxSizing: "border-box",
@@ -189,116 +189,116 @@ const u = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
189
189
  height: 32,
190
190
  padding: "0 6px",
191
191
  margin: "0 3px",
192
- color: (t.vars || t).palette.text.primary,
192
+ color: (a.vars || a).palette.text.primary,
193
193
  [`&.${u.focusVisible}`]: {
194
- backgroundColor: (t.vars || t).palette.action.focus
194
+ backgroundColor: (a.vars || a).palette.action.focus
195
195
  },
196
196
  [`&.${u.disabled}`]: {
197
- opacity: (t.vars || t).palette.action.disabledOpacity
197
+ opacity: (a.vars || a).palette.action.disabledOpacity
198
198
  },
199
- transition: t.transitions.create(["color", "background-color"], {
200
- duration: t.transitions.duration.short
199
+ transition: a.transitions.create(["color", "background-color"], {
200
+ duration: a.transitions.duration.short
201
201
  }),
202
202
  "&:hover": {
203
- backgroundColor: (t.vars || t).palette.action.hover,
203
+ backgroundColor: (a.vars || a).palette.action.hover,
204
204
  // Reset on touch devices, it doesn't add specificity
205
205
  "@media (hover: none)": {
206
206
  backgroundColor: "transparent"
207
207
  }
208
208
  },
209
209
  [`&.${u.selected}`]: {
210
- backgroundColor: (t.vars || t).palette.action.selected,
210
+ backgroundColor: (a.vars || a).palette.action.selected,
211
211
  "&:hover": {
212
- backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : z(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
212
+ backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selectedChannel} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.hoverOpacity}))` : z.alpha(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.hoverOpacity),
213
213
  // Reset on touch devices, it doesn't add specificity
214
214
  "@media (hover: none)": {
215
- backgroundColor: (t.vars || t).palette.action.selected
215
+ backgroundColor: (a.vars || a).palette.action.selected
216
216
  }
217
217
  },
218
218
  [`&.${u.focusVisible}`]: {
219
- backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : z(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
219
+ backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selectedChannel} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.focusOpacity}))` : z.alpha(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.focusOpacity)
220
220
  },
221
221
  [`&.${u.disabled}`]: {
222
222
  opacity: 1,
223
- color: (t.vars || t).palette.action.disabled,
224
- backgroundColor: (t.vars || t).palette.action.selected
223
+ color: (a.vars || a).palette.action.disabled,
224
+ backgroundColor: (a.vars || a).palette.action.selected
225
225
  }
226
226
  }
227
- }, a.size === "small" && {
227
+ }, t.size === "small" && {
228
228
  minWidth: 26,
229
229
  height: 26,
230
230
  borderRadius: 26 / 2,
231
231
  margin: "0 1px",
232
232
  padding: "0 4px"
233
- }, a.size === "large" && {
233
+ }, t.size === "large" && {
234
234
  minWidth: 40,
235
235
  height: 40,
236
236
  borderRadius: 40 / 2,
237
237
  padding: "0 10px",
238
- fontSize: t.typography.pxToRem(15)
239
- }, a.shape === "rounded" && {
240
- borderRadius: (t.vars || t).shape.borderRadius
238
+ fontSize: a.typography.pxToRem(15)
239
+ }, t.shape === "rounded" && {
240
+ borderRadius: (a.vars || a).shape.borderRadius
241
241
  }), ({
242
- theme: t,
243
- ownerState: a
244
- }) => l({}, a.variant === "text" && {
245
- [`&.${u.selected}`]: l({}, a.color !== "standard" && {
246
- color: (t.vars || t).palette[a.color].contrastText,
247
- backgroundColor: (t.vars || t).palette[a.color].main,
242
+ theme: a,
243
+ ownerState: t
244
+ }) => l({}, t.variant === "text" && {
245
+ [`&.${u.selected}`]: l({}, t.color !== "standard" && {
246
+ color: (a.vars || a).palette[t.color].contrastText,
247
+ backgroundColor: (a.vars || a).palette[t.color].main,
248
248
  "&:hover": {
249
- backgroundColor: (t.vars || t).palette[a.color].dark,
249
+ backgroundColor: (a.vars || a).palette[t.color].dark,
250
250
  // Reset on touch devices, it doesn't add specificity
251
251
  "@media (hover: none)": {
252
- backgroundColor: (t.vars || t).palette[a.color].main
252
+ backgroundColor: (a.vars || a).palette[t.color].main
253
253
  }
254
254
  },
255
255
  [`&.${u.focusVisible}`]: {
256
- backgroundColor: (t.vars || t).palette[a.color].dark
256
+ backgroundColor: (a.vars || a).palette[t.color].dark
257
257
  }
258
258
  }, {
259
259
  [`&.${u.disabled}`]: {
260
- color: (t.vars || t).palette.action.disabled
260
+ color: (a.vars || a).palette.action.disabled
261
261
  }
262
262
  })
263
- }, a.variant === "outlined" && {
264
- border: t.vars ? `1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
265
- [`&.${u.selected}`]: l({}, a.color !== "standard" && {
266
- color: (t.vars || t).palette[a.color].main,
267
- border: `1px solid ${t.vars ? `rgba(${t.vars.palette[a.color].mainChannel} / 0.5)` : z(t.palette[a.color].main, 0.5)}`,
268
- backgroundColor: t.vars ? `rgba(${t.vars.palette[a.color].mainChannel} / ${t.vars.palette.action.activatedOpacity})` : z(t.palette[a.color].main, t.palette.action.activatedOpacity),
263
+ }, t.variant === "outlined" && {
264
+ border: a.vars ? `1px solid rgba(${a.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${a.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
265
+ [`&.${u.selected}`]: l({}, t.color !== "standard" && {
266
+ color: (a.vars || a).palette[t.color].main,
267
+ border: `1px solid ${a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / 0.5)` : z.alpha(a.palette[t.color].main, 0.5)}`,
268
+ backgroundColor: a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / ${a.vars.palette.action.activatedOpacity})` : z.alpha(a.palette[t.color].main, a.palette.action.activatedOpacity),
269
269
  "&:hover": {
270
- backgroundColor: t.vars ? `rgba(${t.vars.palette[a.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : z(t.palette[a.color].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity),
270
+ backgroundColor: a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / calc(${a.vars.palette.action.activatedOpacity} + ${a.vars.palette.action.focusOpacity}))` : z.alpha(a.palette[t.color].main, a.palette.action.activatedOpacity + a.palette.action.focusOpacity),
271
271
  // Reset on touch devices, it doesn't add specificity
272
272
  "@media (hover: none)": {
273
273
  backgroundColor: "transparent"
274
274
  }
275
275
  },
276
276
  [`&.${u.focusVisible}`]: {
277
- backgroundColor: t.vars ? `rgba(${t.vars.palette[a.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : z(t.palette[a.color].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity)
277
+ backgroundColor: a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / calc(${a.vars.palette.action.activatedOpacity} + ${a.vars.palette.action.focusOpacity}))` : z.alpha(a.palette[t.color].main, a.palette.action.activatedOpacity + a.palette.action.focusOpacity)
278
278
  }
279
279
  }, {
280
280
  [`&.${u.disabled}`]: {
281
- borderColor: (t.vars || t).palette.action.disabledBackground,
282
- color: (t.vars || t).palette.action.disabled
281
+ borderColor: (a.vars || a).palette.action.disabledBackground,
282
+ color: (a.vars || a).palette.action.disabled
283
283
  }
284
284
  })
285
- })), ft = E("div", {
285
+ })), fa = E("div", {
286
286
  name: "MuiPaginationItem",
287
287
  slot: "Icon",
288
- overridesResolver: (t, a) => a.icon
288
+ overridesResolver: (a, t) => t.icon
289
289
  })(({
290
- theme: t,
291
- ownerState: a
290
+ theme: a,
291
+ ownerState: t
292
292
  }) => l({
293
- fontSize: t.typography.pxToRem(20),
293
+ fontSize: a.typography.pxToRem(20),
294
294
  margin: "0 -8px"
295
- }, a.size === "small" && {
296
- fontSize: t.typography.pxToRem(18)
297
- }, a.size === "large" && {
298
- fontSize: t.typography.pxToRem(22)
299
- })), _ = /* @__PURE__ */ g.forwardRef(function(a, e) {
295
+ }, t.size === "small" && {
296
+ fontSize: a.typography.pxToRem(18)
297
+ }, t.size === "large" && {
298
+ fontSize: a.typography.pxToRem(22)
299
+ })), F = /* @__PURE__ */ g.forwardRef(function(t, e) {
300
300
  const n = Q({
301
- props: a,
301
+ props: t,
302
302
  name: "MuiPaginationItem"
303
303
  }), {
304
304
  className: v,
@@ -309,19 +309,19 @@ const u = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
309
309
  page: m,
310
310
  selected: O = !1,
311
311
  shape: B = "circular",
312
- size: P = "medium",
312
+ size: h = "medium",
313
313
  slots: d = {},
314
314
  type: i = "page",
315
315
  variant: w = "text"
316
- } = n, $ = A(n, pt), y = l({}, n, {
316
+ } = n, $ = A(n, pa), y = l({}, n, {
317
317
  color: p,
318
318
  disabled: b,
319
319
  selected: O,
320
320
  shape: B,
321
- size: P,
321
+ size: h,
322
322
  type: i,
323
323
  variant: w
324
- }), k = st(), x = ut(y), L = (k ? {
324
+ }), k = sa(), x = ua(y), L = (k ? {
325
325
  previous: d.next || r.next || q,
326
326
  next: d.previous || r.previous || H,
327
327
  last: d.first || r.first || D,
@@ -332,26 +332,26 @@ const u = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
332
332
  first: d.first || r.first || D,
333
333
  last: d.last || r.last || G
334
334
  })[i];
335
- return i === "start-ellipsis" || i === "end-ellipsis" ? /* @__PURE__ */ c(gt, {
335
+ return i === "start-ellipsis" || i === "end-ellipsis" ? /* @__PURE__ */ c(ga, {
336
336
  ref: e,
337
337
  ownerState: y,
338
338
  className: j(x.root, v),
339
339
  children: "…"
340
- }) : /* @__PURE__ */ ot(vt, l({
340
+ }) : /* @__PURE__ */ oa(va, l({
341
341
  ref: e,
342
342
  ownerState: y,
343
343
  component: f,
344
344
  disabled: b,
345
345
  className: j(x.root, v)
346
346
  }, $, {
347
- children: [i === "page" && m, L ? /* @__PURE__ */ c(ft, {
347
+ children: [i === "page" && m, L ? /* @__PURE__ */ c(fa, {
348
348
  as: L,
349
349
  ownerState: y,
350
350
  className: x.icon
351
351
  }) : null]
352
352
  }));
353
353
  });
354
- process.env.NODE_ENV !== "production" && (_.propTypes = {
354
+ process.env.NODE_ENV !== "production" && (F.propTypes = {
355
355
  // ┌────────────────────────────── Warning ──────────────────────────────┐
356
356
  // │ These PropTypes are generated from the TypeScript type definitions. │
357
357
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -446,28 +446,28 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
446
446
  */
447
447
  variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
448
448
  });
449
- const bt = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], yt = (t) => {
449
+ const ba = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], ya = (a) => {
450
450
  const {
451
- classes: a,
451
+ classes: t,
452
452
  variant: e
453
- } = t;
453
+ } = a;
454
454
  return X({
455
455
  root: ["root", e],
456
456
  ul: ["ul"]
457
- }, rt, a);
458
- }, xt = E("nav", {
457
+ }, ra, t);
458
+ }, xa = E("nav", {
459
459
  name: "MuiPagination",
460
460
  slot: "Root",
461
- overridesResolver: (t, a) => {
461
+ overridesResolver: (a, t) => {
462
462
  const {
463
463
  ownerState: e
464
- } = t;
465
- return [a.root, a[e.variant]];
464
+ } = a;
465
+ return [t.root, t[e.variant]];
466
466
  }
467
- })({}), mt = E("ul", {
467
+ })({}), ma = E("ul", {
468
468
  name: "MuiPagination",
469
469
  slot: "Ul",
470
- overridesResolver: (t, a) => a.ul
470
+ overridesResolver: (a, t) => t.ul
471
471
  })({
472
472
  display: "flex",
473
473
  flexWrap: "wrap",
@@ -476,12 +476,12 @@ const bt = ["boundaryCount", "className", "color", "count", "defaultPage", "disa
476
476
  margin: 0,
477
477
  listStyle: "none"
478
478
  });
479
- function Pt(t, a, e) {
480
- return t === "page" ? `${e ? "" : "Go to "}page ${a}` : `Go to ${t} page`;
479
+ function ha(a, t, e) {
480
+ return a === "page" ? `${e ? "" : "Go to "}page ${t}` : `Go to ${a} page`;
481
481
  }
482
- const Z = /* @__PURE__ */ g.forwardRef(function(a, e) {
482
+ const Z = /* @__PURE__ */ g.forwardRef(function(t, e) {
483
483
  const n = Q({
484
- props: a,
484
+ props: t,
485
485
  name: "MuiPagination"
486
486
  }), {
487
487
  boundaryCount: v = 1,
@@ -490,19 +490,19 @@ const Z = /* @__PURE__ */ g.forwardRef(function(a, e) {
490
490
  count: r = 1,
491
491
  defaultPage: b = 1,
492
492
  disabled: m = !1,
493
- getItemAriaLabel: O = Pt,
493
+ getItemAriaLabel: O = ha,
494
494
  hideNextButton: B = !1,
495
- hidePrevButton: P = !1,
496
- renderItem: d = (h) => /* @__PURE__ */ c(_, l({}, h)),
495
+ hidePrevButton: h = !1,
496
+ renderItem: d = (P) => /* @__PURE__ */ c(F, l({}, P)),
497
497
  shape: i = "circular",
498
498
  showFirstButton: w = !1,
499
499
  showLastButton: $ = !1,
500
500
  siblingCount: y = 1,
501
501
  size: k = "medium",
502
502
  variant: x = "text"
503
- } = n, I = A(n, bt), {
503
+ } = n, I = A(n, ba), {
504
504
  items: L
505
- } = ct(l({}, n, {
505
+ } = ca(l({}, n, {
506
506
  componentName: "Pagination"
507
507
  })), M = l({}, n, {
508
508
  boundaryCount: v,
@@ -512,7 +512,7 @@ const Z = /* @__PURE__ */ g.forwardRef(function(a, e) {
512
512
  disabled: m,
513
513
  getItemAriaLabel: O,
514
514
  hideNextButton: B,
515
- hidePrevButton: P,
515
+ hidePrevButton: h,
516
516
  renderItem: d,
517
517
  shape: i,
518
518
  showFirstButton: w,
@@ -520,20 +520,20 @@ const Z = /* @__PURE__ */ g.forwardRef(function(a, e) {
520
520
  siblingCount: y,
521
521
  size: k,
522
522
  variant: x
523
- }), T = yt(M);
524
- return /* @__PURE__ */ c(xt, l({
523
+ }), T = ya(M);
524
+ return /* @__PURE__ */ c(xa, l({
525
525
  "aria-label": "pagination navigation",
526
526
  className: j(T.root, p),
527
527
  ownerState: M,
528
528
  ref: e
529
529
  }, I, {
530
- children: /* @__PURE__ */ c(mt, {
530
+ children: /* @__PURE__ */ c(ma, {
531
531
  className: T.ul,
532
532
  ownerState: M,
533
- children: L.map((h, s) => /* @__PURE__ */ c("li", {
534
- children: d(l({}, h, {
533
+ children: L.map((P, s) => /* @__PURE__ */ c("li", {
534
+ children: d(l({}, P, {
535
535
  color: f,
536
- "aria-label": O(h.type, h.page, h.selected),
536
+ "aria-label": O(P.type, P.page, P.selected),
537
537
  shape: i,
538
538
  size: k,
539
539
  variant: x
@@ -656,9 +656,9 @@ process.env.NODE_ENV !== "production" && (Z.propTypes = {
656
656
  */
657
657
  variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
658
658
  });
659
- function ht({
660
- isRtl: t,
661
- pageCount: a,
659
+ function Pa({
660
+ isRtl: a,
661
+ pageCount: t,
662
662
  page: e,
663
663
  onPageChange: n,
664
664
  className: v
@@ -669,7 +669,7 @@ function ht({
669
669
  showFirstButton: !0,
670
670
  showLastButton: !0,
671
671
  className: v,
672
- count: a,
672
+ count: t,
673
673
  page: e + 1,
674
674
  onChange: (p, f) => {
675
675
  n(p, f - 1);
@@ -677,9 +677,9 @@ function ht({
677
677
  boundaryCount: 0,
678
678
  siblingCount: 1,
679
679
  renderItem: (p) => /* @__PURE__ */ c(
680
- _,
680
+ F,
681
681
  {
682
- slots: { previous: t ? U : V, next: t ? V : U, first: t ? S : F, last: t ? F : S },
682
+ slots: { previous: a ? U : V, next: a ? V : U, first: a ? _ : S, last: a ? S : _ },
683
683
  ...p
684
684
  }
685
685
  ),
@@ -699,10 +699,10 @@ function ht({
699
699
  }
700
700
  );
701
701
  }
702
- function wt({ isRtl: t, pageCount: a }) {
703
- return /* @__PURE__ */ c(et, { ActionsComponent: (e) => /* @__PURE__ */ c(ht, { isRtl: t, pageCount: a, ...e }) });
702
+ function wa({ isRtl: a, pageCount: t }) {
703
+ return /* @__PURE__ */ c(ea, { ActionsComponent: (e) => /* @__PURE__ */ c(Pa, { isRtl: a, pageCount: t, ...e }) });
704
704
  }
705
705
  export {
706
- wt as CustomPagination,
707
- ht as Pagination
706
+ wa as CustomPagination,
707
+ Pa as Pagination
708
708
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import '../../assets/theme.css';import '../../assets/ErrorModal.css';/* empty css */
3
3
  import { useState as x } from "react";
4
- import { M as h } from "../../index-Cfhdtvoc.js";
4
+ import { M as h } from "../../index-BxiDYyNJ.js";
5
5
  const p = "_flexRowCenter_1ixx3_43", d = "_text18_1ixx3_57", m = "_content_1ixx3_61", t = {
6
6
  flexRowCenter: p,
7
7
  text18: d,
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { ErrorModal as t } from "./ErrorModal.js";
3
- import { C as e } from "../../context-DcMzUd6b.js";
3
+ import { C as e } from "../../context-Crxhk7DD.js";
4
4
  const a = ({ isRtl: o }) => /* @__PURE__ */ r(e, { direction: o ? "rtl" : "ltr", children: /* @__PURE__ */ r(
5
5
  t,
6
6
  {
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
3
  import { S as i } from "../../VModalIcon-D7L4bQLO.js";
4
4
  import '../../assets/theme.css';import '../../assets/ErrorModal.css';/* empty css */
5
- import { M as x } from "../../index-Cfhdtvoc.js";
5
+ import { M as x } from "../../index-BxiDYyNJ.js";
6
6
  const m = (o) => /* @__PURE__ */ r.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o }, /* @__PURE__ */ r.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" })), d = "_flexRowCenter_1ixx3_43", p = "_mr10_1ixx3_49", f = "_text18_1ixx3_57", h = "_content_1ixx3_61", t = {
7
7
  flexRowCenter: d,
8
8
  mr10: p,
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { InfoModal as e } from "./InfoModal.js";
3
- import { C as r } from "../../context-DcMzUd6b.js";
3
+ import { C as r } from "../../context-Crxhk7DD.js";
4
4
  const n = ({ isRtl: t }) => /* @__PURE__ */ o(r, { direction: t ? "rtl" : "ltr", children: /* @__PURE__ */ o(
5
5
  e,
6
6
  {