@amateescu/portal-ui-components 0.0.25-react19 → 0.0.26-beta0

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 (44) hide show
  1. package/dist/Box-C1OwXVV-.js +68 -0
  2. package/dist/Button-CIvE-fcO.js +355 -0
  3. package/dist/ButtonBase-BeQnmGXr.js +966 -0
  4. package/dist/{EllipsisOutlined-DfTPoz8U.js → EllipsisOutlined-DZsCEqiL.js} +724 -722
  5. package/dist/{PurePanel-ByiFMw5U.js → PurePanel-iUNZWTe_.js} +3 -3
  6. package/dist/{Skeleton-Imy-56Lv.js → Skeleton-CfEiGUkR.js} +2 -2
  7. package/dist/{UserInfoDropdown-6aB5cQyF.js → UserInfoDropdown-CoZutJAR.js} +191 -191
  8. package/dist/assertThisInitialized-BUtkG-md.js +13 -0
  9. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  10. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  11. package/dist/components/CustomButton/CustomButton.js +1 -1
  12. package/dist/components/CustomPagination/CustomPagination.js +372 -483
  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 +4 -4
  18. package/dist/components/LoadingAnimation/LoadingAnimation.js +215 -6
  19. package/dist/components/Login/Login.js +3837 -4489
  20. package/dist/components/Login/Login.stories.js +1 -1
  21. package/dist/components/SideMenu/SideMenu.js +1 -1
  22. package/dist/components/SideMenu/SideMenu.types.d.ts +0 -1
  23. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  24. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  25. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  26. package/dist/components/index.js +1 -1
  27. package/dist/{context-D_FWkiDE.js → context-Crxhk7DD.js} +9 -8
  28. package/dist/createSvgIcon-Db107M0j.js +250 -0
  29. package/dist/generateUtilityClasses-DY-qyzNG.js +3427 -0
  30. package/dist/{index-CR8gh-dS.js → index-BxiDYyNJ.js} +4 -4
  31. package/dist/index-DpDv68WZ.js +19153 -0
  32. package/dist/main.js +1 -1
  33. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +46 -0
  34. package/dist/types/Column.d.ts +2 -0
  35. package/package.json +28 -26
  36. package/dist/Box-DQNjUj2G.js +0 -102
  37. package/dist/Button-D2XVkO19.js +0 -676
  38. package/dist/ButtonBase-D-XlpvIZ.js +0 -954
  39. package/dist/CircularProgress-BOkP0juA.js +0 -247
  40. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  41. package/dist/createSimplePaletteValueFilter-CshNo3IR.js +0 -3439
  42. package/dist/index-CyFfYou3.js +0 -411
  43. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
  44. package/dist/useSlot-kDVPuVrn.js +0 -431
@@ -1,139 +1,139 @@
1
- import { jsx as l, jsxs as ot } from "react/jsx-runtime";
2
- import * as c from "react";
1
+ import { jsx as c, jsxs as oa } from "react/jsx-runtime";
2
+ import * as g from "react";
3
3
  import '../../assets/theme.css';/* empty css */
4
- import { GridPagination as nt } from "@mui/x-data-grid";
5
- import { g as Q, a as X, u as Y, s as R, c as A, b as T, d as Z, m as F, i as S, e as _, P as e } from "../../createSimplePaletteValueFilter-CshNo3IR.js";
6
- import { u as st, c as E, a as rt, b as j, i as B } from "../../useSlot-kDVPuVrn.js";
7
- import { B as it } from "../../ButtonBase-D-XlpvIZ.js";
8
- const H = (t) => /* @__PURE__ */ c.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ c.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" }))), q = (t) => /* @__PURE__ */ c.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ c.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 = (t) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), K = (t) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
9
- function lt(t) {
10
- return Q("MuiPagination", t);
4
+ import { GridPagination as ea } from "@mui/x-data-grid";
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-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);
11
12
  }
12
- X("MuiPagination", ["root", "ul", "outlined", "text"]);
13
- function pt(t = {}) {
13
+ K("MuiPagination", ["root", "ul", "outlined", "text"]);
14
+ const la = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
15
+ function ca(a = {}) {
14
16
  const {
15
- boundaryCount: a = 1,
16
- componentName: o = "usePagination",
17
+ boundaryCount: t = 1,
18
+ componentName: e = "usePagination",
17
19
  count: n = 1,
18
20
  defaultPage: v = 1,
19
21
  disabled: p = !1,
20
22
  hideNextButton: f = !1,
21
- hidePrevButton: b = !1,
22
- onChange: y,
23
- page: P,
24
- showFirstButton: L = !1,
25
- showLastButton: z = !1,
26
- siblingCount: C = 1,
27
- ...w
28
- } = t, [d, u] = st({
29
- controlled: P,
23
+ hidePrevButton: r = !1,
24
+ onChange: b,
25
+ page: m,
26
+ showFirstButton: O = !1,
27
+ showLastButton: B = !1,
28
+ siblingCount: h = 1
29
+ } = a, d = A(a, la), [i, w] = na({
30
+ controlled: m,
30
31
  default: v,
31
- name: o,
32
+ name: e,
32
33
  state: "page"
33
- }), O = (s, r) => {
34
- P || u(r), y && y(s, r);
35
- }, $ = (s, r) => {
36
- const I = r - s + 1;
34
+ }), $ = (s, C) => {
35
+ m || w(C), b && b(s, C);
36
+ }, y = (s, C) => {
37
+ const aa = C - s + 1;
37
38
  return Array.from({
38
- length: I
39
- }, (V, W) => s + W);
40
- }, g = $(1, Math.min(a, n)), M = $(Math.max(n - a + 1, a + 1), n), m = 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(
41
42
  Math.min(
42
43
  // Natural start
43
- d - C,
44
+ i - h,
44
45
  // Lower boundary when page is high
45
- n - a - C * 2 - 1
46
+ n - t - h * 2 - 1
46
47
  ),
47
48
  // Greater than startPages
48
- a + 2
49
- ), x = Math.min(
49
+ t + 2
50
+ ), L = Math.min(
50
51
  Math.max(
51
52
  // Natural end
52
- d + C,
53
+ i + h,
53
54
  // Upper boundary when page is low
54
- a + C * 2 + 2
55
+ t + h * 2 + 2
55
56
  ),
56
57
  // Less than endPages
57
- n - a - 1
58
- ), N = [
59
- ...L ? ["first"] : [],
60
- ...b ? [] : ["previous"],
61
- ...g,
58
+ x.length > 0 ? x[0] - 2 : n - 1
59
+ ), M = [
60
+ ...O ? ["first"] : [],
61
+ ...r ? [] : ["previous"],
62
+ ...k,
62
63
  // Start ellipsis
63
64
  // eslint-disable-next-line no-nested-ternary
64
- ...m > a + 2 ? ["start-ellipsis"] : a + 1 < n - a ? [a + 1] : [],
65
+ ...I > t + 2 ? ["start-ellipsis"] : t + 1 < n - t ? [t + 1] : [],
65
66
  // Sibling pages
66
- ...$(m, x),
67
+ ...y(I, L),
67
68
  // End ellipsis
68
69
  // eslint-disable-next-line no-nested-ternary
69
- ...x < n - a - 1 ? ["end-ellipsis"] : n - a > a ? [n - a] : [],
70
- ...M,
70
+ ...L < n - t - 1 ? ["end-ellipsis"] : n - t > t ? [n - t] : [],
71
+ ...x,
71
72
  ...f ? [] : ["next"],
72
- ...z ? ["last"] : []
73
- ], h = (s) => {
73
+ ...B ? ["last"] : []
74
+ ], T = (s) => {
74
75
  switch (s) {
75
76
  case "first":
76
77
  return 1;
77
78
  case "previous":
78
- return d - 1;
79
+ return i - 1;
79
80
  case "next":
80
- return d + 1;
81
+ return i + 1;
81
82
  case "last":
82
83
  return n;
83
84
  default:
84
85
  return null;
85
86
  }
86
- };
87
- return {
88
- items: N.map((s) => typeof s == "number" ? {
89
- onClick: (r) => {
90
- O(r, s);
91
- },
92
- type: "page",
93
- page: s,
94
- selected: s === d,
95
- disabled: p,
96
- "aria-current": s === d ? "page" : void 0
97
- } : {
98
- onClick: (r) => {
99
- O(r, h(s));
100
- },
101
- type: s,
102
- page: h(s),
103
- selected: !1,
104
- disabled: p || !s.includes("ellipsis") && (s === "next" || s === "last" ? d >= n : d <= 1)
105
- }),
106
- ...w
107
- };
87
+ }, P = M.map((s) => typeof s == "number" ? {
88
+ onClick: (C) => {
89
+ $(C, s);
90
+ },
91
+ type: "page",
92
+ page: s,
93
+ selected: s === i,
94
+ disabled: p,
95
+ "aria-current": s === i ? "true" : void 0
96
+ } : {
97
+ onClick: (C) => {
98
+ $(C, T(s));
99
+ },
100
+ type: s,
101
+ page: T(s),
102
+ selected: !1,
103
+ disabled: p || s.indexOf("ellipsis") === -1 && (s === "next" || s === "last" ? i >= n : i <= 1)
104
+ });
105
+ return l({
106
+ items: P
107
+ }, d);
108
108
  }
109
- function ct(t) {
110
- return Q("MuiPaginationItem", t);
109
+ function da(a) {
110
+ return J("MuiPaginationItem", a);
111
111
  }
112
- const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), dt = E(/* @__PURE__ */ l("path", {
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"
114
- }), "FirstPage"), ut = E(/* @__PURE__ */ l("path", {
114
+ }), "FirstPage"), G = W(/* @__PURE__ */ c("path", {
115
115
  d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
116
- }), "LastPage"), gt = E(/* @__PURE__ */ l("path", {
116
+ }), "LastPage"), H = W(/* @__PURE__ */ c("path", {
117
117
  d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
118
- }), "NavigateBefore"), vt = E(/* @__PURE__ */ l("path", {
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"), tt = (t, a) => {
120
+ }), "NavigateNext"), pa = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], Y = (a, t) => {
121
121
  const {
122
- ownerState: o
123
- } = t;
124
- return [a.root, a[o.variant], a[`size${T(o.size)}`], o.variant === "text" && a[`text${T(o.color)}`], o.variant === "outlined" && a[`outlined${T(o.color)}`], o.shape === "rounded" && a.rounded, o.type === "page" && a.page, (o.type === "start-ellipsis" || o.type === "end-ellipsis") && a.ellipsis, (o.type === "previous" || o.type === "next") && a.previousNext, (o.type === "first" || o.type === "last") && a.firstLast];
125
- }, ft = (t) => {
122
+ ownerState: e
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,
128
- color: o,
127
+ classes: t,
128
+ color: e,
129
129
  disabled: n,
130
130
  selected: v,
131
131
  size: p,
132
132
  shape: f,
133
- type: b,
134
- variant: y
135
- } = t, P = {
136
- root: ["root", `size${T(p)}`, y, f, o !== "standard" && `color${T(o)}`, o !== "standard" && `${y}${T(o)}`, n && "disabled", v && "selected", {
133
+ type: r,
134
+ variant: b
135
+ } = a, m = {
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",
139
139
  last: "firstLast",
@@ -141,58 +141,47 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
141
141
  "end-ellipsis": "ellipsis",
142
142
  previous: "previousNext",
143
143
  next: "previousNext"
144
- }[b]],
144
+ }[r]],
145
145
  icon: ["icon"]
146
146
  };
147
- return Z(P, ct, a);
148
- }, bt = R("div", {
147
+ return X(m, da, t);
148
+ }, ga = E("div", {
149
149
  name: "MuiPaginationItem",
150
150
  slot: "Root",
151
- overridesResolver: tt
152
- })(F(({
153
- theme: t
154
- }) => ({
155
- ...t.typography.body2,
151
+ overridesResolver: Y
152
+ })(({
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
- [`&.${i.disabled}`]: {
165
- opacity: (t.vars || t).palette.action.disabledOpacity
166
- },
167
- variants: [{
168
- props: {
169
- size: "small"
170
- },
171
- style: {
172
- minWidth: 26,
173
- borderRadius: 26 / 2,
174
- margin: "0 1px",
175
- padding: "0 4px"
176
- }
177
- }, {
178
- props: {
179
- size: "large"
180
- },
181
- style: {
182
- minWidth: 40,
183
- borderRadius: 40 / 2,
184
- padding: "0 10px",
185
- fontSize: t.typography.pxToRem(15)
186
- }
187
- }]
188
- }))), yt = R(it, {
164
+ [`&.${u.disabled}`]: {
165
+ opacity: (a.vars || a).palette.action.disabledOpacity
166
+ }
167
+ }, t.size === "small" && {
168
+ minWidth: 26,
169
+ borderRadius: 26 / 2,
170
+ margin: "0 1px",
171
+ padding: "0 4px"
172
+ }, t.size === "large" && {
173
+ minWidth: 40,
174
+ borderRadius: 40 / 2,
175
+ padding: "0 10px",
176
+ fontSize: a.typography.pxToRem(15)
177
+ })), va = E(ia, {
189
178
  name: "MuiPaginationItem",
190
179
  slot: "Root",
191
- overridesResolver: tt
192
- })(F(({
193
- theme: t
194
- }) => ({
195
- ...t.typography.body2,
180
+ overridesResolver: Y
181
+ })(({
182
+ theme: a,
183
+ ownerState: t
184
+ }) => l({}, a.typography.body2, {
196
185
  borderRadius: 32 / 2,
197
186
  textAlign: "center",
198
187
  boxSizing: "border-box",
@@ -200,253 +189,169 @@ const i = X("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
200
189
  height: 32,
201
190
  padding: "0 6px",
202
191
  margin: "0 3px",
203
- color: (t.vars || t).palette.text.primary,
204
- [`&.${i.focusVisible}`]: {
205
- backgroundColor: (t.vars || t).palette.action.focus
192
+ color: (a.vars || a).palette.text.primary,
193
+ [`&.${u.focusVisible}`]: {
194
+ backgroundColor: (a.vars || a).palette.action.focus
206
195
  },
207
- [`&.${i.disabled}`]: {
208
- opacity: (t.vars || t).palette.action.disabledOpacity
196
+ [`&.${u.disabled}`]: {
197
+ opacity: (a.vars || a).palette.action.disabledOpacity
209
198
  },
210
- transition: t.transitions.create(["color", "background-color"], {
211
- duration: t.transitions.duration.short
199
+ transition: a.transitions.create(["color", "background-color"], {
200
+ duration: a.transitions.duration.short
212
201
  }),
213
202
  "&:hover": {
214
- backgroundColor: (t.vars || t).palette.action.hover,
203
+ backgroundColor: (a.vars || a).palette.action.hover,
215
204
  // Reset on touch devices, it doesn't add specificity
216
205
  "@media (hover: none)": {
217
206
  backgroundColor: "transparent"
218
207
  }
219
208
  },
220
- [`&.${i.selected}`]: {
221
- backgroundColor: (t.vars || t).palette.action.selected,
209
+ [`&.${u.selected}`]: {
210
+ backgroundColor: (a.vars || a).palette.action.selected,
222
211
  "&:hover": {
223
- backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
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),
224
213
  // Reset on touch devices, it doesn't add specificity
225
214
  "@media (hover: none)": {
226
- backgroundColor: (t.vars || t).palette.action.selected
215
+ backgroundColor: (a.vars || a).palette.action.selected
227
216
  }
228
217
  },
229
- [`&.${i.focusVisible}`]: {
230
- backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
218
+ [`&.${u.focusVisible}`]: {
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)
231
220
  },
232
- [`&.${i.disabled}`]: {
221
+ [`&.${u.disabled}`]: {
233
222
  opacity: 1,
234
- color: (t.vars || t).palette.action.disabled,
235
- backgroundColor: (t.vars || t).palette.action.selected
223
+ color: (a.vars || a).palette.action.disabled,
224
+ backgroundColor: (a.vars || a).palette.action.selected
236
225
  }
237
- },
238
- variants: [{
239
- props: {
240
- size: "small"
241
- },
242
- style: {
243
- minWidth: 26,
244
- height: 26,
245
- borderRadius: 26 / 2,
246
- margin: "0 1px",
247
- padding: "0 4px"
248
- }
249
- }, {
250
- props: {
251
- size: "large"
252
- },
253
- style: {
254
- minWidth: 40,
255
- height: 40,
256
- borderRadius: 40 / 2,
257
- padding: "0 10px",
258
- fontSize: t.typography.pxToRem(15)
259
- }
260
- }, {
261
- props: {
262
- shape: "rounded"
226
+ }
227
+ }, t.size === "small" && {
228
+ minWidth: 26,
229
+ height: 26,
230
+ borderRadius: 26 / 2,
231
+ margin: "0 1px",
232
+ padding: "0 4px"
233
+ }, t.size === "large" && {
234
+ minWidth: 40,
235
+ height: 40,
236
+ borderRadius: 40 / 2,
237
+ padding: "0 10px",
238
+ fontSize: a.typography.pxToRem(15)
239
+ }, t.shape === "rounded" && {
240
+ borderRadius: (a.vars || a).shape.borderRadius
241
+ }), ({
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
+ "&:hover": {
249
+ backgroundColor: (a.vars || a).palette[t.color].dark,
250
+ // Reset on touch devices, it doesn't add specificity
251
+ "@media (hover: none)": {
252
+ backgroundColor: (a.vars || a).palette[t.color].main
253
+ }
263
254
  },
264
- style: {
265
- borderRadius: (t.vars || t).shape.borderRadius
255
+ [`&.${u.focusVisible}`]: {
256
+ backgroundColor: (a.vars || a).palette[t.color].dark
266
257
  }
267
258
  }, {
268
- props: {
269
- variant: "outlined"
270
- },
271
- style: {
272
- border: t.vars ? `1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
273
- [`&.${i.selected}`]: {
274
- [`&.${i.disabled}`]: {
275
- borderColor: (t.vars || t).palette.action.disabledBackground,
276
- color: (t.vars || t).palette.action.disabled
277
- }
278
- }
259
+ [`&.${u.disabled}`]: {
260
+ color: (a.vars || a).palette.action.disabled
279
261
  }
280
- }, {
281
- props: {
282
- variant: "text"
283
- },
284
- style: {
285
- [`&.${i.selected}`]: {
286
- [`&.${i.disabled}`]: {
287
- color: (t.vars || t).palette.action.disabled
288
- }
262
+ })
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
+ "&:hover": {
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
+ // Reset on touch devices, it doesn't add specificity
272
+ "@media (hover: none)": {
273
+ backgroundColor: "transparent"
289
274
  }
290
- }
291
- }, ...Object.entries(t.palette).filter(_(["dark", "contrastText"])).map(([a]) => ({
292
- props: {
293
- variant: "text",
294
- color: a
295
275
  },
296
- style: {
297
- [`&.${i.selected}`]: {
298
- color: (t.vars || t).palette[a].contrastText,
299
- backgroundColor: (t.vars || t).palette[a].main,
300
- "&:hover": {
301
- backgroundColor: (t.vars || t).palette[a].dark,
302
- // Reset on touch devices, it doesn't add specificity
303
- "@media (hover: none)": {
304
- backgroundColor: (t.vars || t).palette[a].main
305
- }
306
- },
307
- [`&.${i.focusVisible}`]: {
308
- backgroundColor: (t.vars || t).palette[a].dark
309
- },
310
- [`&.${i.disabled}`]: {
311
- color: (t.vars || t).palette.action.disabled
312
- }
313
- }
276
+ [`&.${u.focusVisible}`]: {
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)
314
278
  }
315
- })), ...Object.entries(t.palette).filter(_(["light"])).map(([a]) => ({
316
- props: {
317
- variant: "outlined",
318
- color: a
319
- },
320
- style: {
321
- [`&.${i.selected}`]: {
322
- color: (t.vars || t).palette[a].main,
323
- border: `1px solid ${t.vars ? `rgba(${t.vars.palette[a].mainChannel} / 0.5)` : S(t.palette[a].main, 0.5)}`,
324
- backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.activatedOpacity})` : S(t.palette[a].main, t.palette.action.activatedOpacity),
325
- "&:hover": {
326
- backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette[a].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity),
327
- // Reset on touch devices, it doesn't add specificity
328
- "@media (hover: none)": {
329
- backgroundColor: "transparent"
330
- }
331
- },
332
- [`&.${i.focusVisible}`]: {
333
- backgroundColor: t.vars ? `rgba(${t.vars.palette[a].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : S(t.palette[a].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity)
334
- }
335
- }
279
+ }, {
280
+ [`&.${u.disabled}`]: {
281
+ borderColor: (a.vars || a).palette.action.disabledBackground,
282
+ color: (a.vars || a).palette.action.disabled
336
283
  }
337
- }))]
338
- }))), xt = R("div", {
284
+ })
285
+ })), fa = E("div", {
339
286
  name: "MuiPaginationItem",
340
287
  slot: "Icon",
341
- overridesResolver: (t, a) => a.icon
342
- })(F(({
343
- theme: t
344
- }) => ({
345
- fontSize: t.typography.pxToRem(20),
346
- margin: "0 -8px",
347
- variants: [{
348
- props: {
349
- size: "small"
350
- },
351
- style: {
352
- fontSize: t.typography.pxToRem(18)
353
- }
354
- }, {
355
- props: {
356
- size: "large"
357
- },
358
- style: {
359
- fontSize: t.typography.pxToRem(22)
360
- }
361
- }]
362
- }))), U = /* @__PURE__ */ c.forwardRef(function(a, o) {
363
- const n = Y({
364
- props: a,
288
+ overridesResolver: (a, t) => t.icon
289
+ })(({
290
+ theme: a,
291
+ ownerState: t
292
+ }) => l({
293
+ fontSize: a.typography.pxToRem(20),
294
+ margin: "0 -8px"
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
+ const n = Q({
301
+ props: t,
365
302
  name: "MuiPaginationItem"
366
303
  }), {
367
304
  className: v,
368
305
  color: p = "standard",
369
306
  component: f,
370
- components: b = {},
371
- disabled: y = !1,
372
- page: P,
373
- selected: L = !1,
374
- shape: z = "circular",
375
- size: C = "medium",
376
- slots: w = {},
377
- slotProps: d = {},
378
- type: u = "page",
379
- variant: O = "text",
380
- ...$
381
- } = n, g = {
382
- ...n,
307
+ components: r = {},
308
+ disabled: b = !1,
309
+ page: m,
310
+ selected: O = !1,
311
+ shape: B = "circular",
312
+ size: h = "medium",
313
+ slots: d = {},
314
+ type: i = "page",
315
+ variant: w = "text"
316
+ } = n, $ = A(n, pa), y = l({}, n, {
383
317
  color: p,
384
- disabled: y,
385
- selected: L,
386
- shape: z,
387
- size: C,
388
- type: u,
389
- variant: O
390
- }, M = rt(), m = ft(g), x = {
391
- slots: {
392
- previous: w.previous ?? b.previous,
393
- next: w.next ?? b.next,
394
- first: w.first ?? b.first,
395
- last: w.last ?? b.last
396
- },
397
- slotProps: d
398
- }, [N, h] = j("previous", {
399
- elementType: gt,
400
- externalForwardedProps: x,
401
- ownerState: g
402
- }), [k, s] = j("next", {
403
- elementType: vt,
404
- externalForwardedProps: x,
405
- ownerState: g
406
- }), [r, I] = j("first", {
407
- elementType: dt,
408
- externalForwardedProps: x,
409
- ownerState: g
410
- }), [V, W] = j("last", {
411
- elementType: ut,
412
- externalForwardedProps: x,
413
- ownerState: g
414
- }), D = M ? {
415
- previous: "next",
416
- next: "previous",
417
- first: "last",
418
- last: "first"
419
- }[u] : u, G = {
420
- previous: N,
421
- next: k,
422
- first: r,
423
- last: V
424
- }[D], at = {
425
- previous: h,
426
- next: s,
427
- first: I,
428
- last: W
429
- }[D];
430
- return u === "start-ellipsis" || u === "end-ellipsis" ? /* @__PURE__ */ l(bt, {
431
- ref: o,
432
- ownerState: g,
433
- className: A(m.root, v),
318
+ disabled: b,
319
+ selected: O,
320
+ shape: B,
321
+ size: h,
322
+ type: i,
323
+ variant: w
324
+ }), k = sa(), x = ua(y), L = (k ? {
325
+ previous: d.next || r.next || q,
326
+ next: d.previous || r.previous || H,
327
+ last: d.first || r.first || D,
328
+ first: d.last || r.last || G
329
+ } : {
330
+ previous: d.previous || r.previous || H,
331
+ next: d.next || r.next || q,
332
+ first: d.first || r.first || D,
333
+ last: d.last || r.last || G
334
+ })[i];
335
+ return i === "start-ellipsis" || i === "end-ellipsis" ? /* @__PURE__ */ c(ga, {
336
+ ref: e,
337
+ ownerState: y,
338
+ className: j(x.root, v),
434
339
  children: "…"
435
- }) : /* @__PURE__ */ ot(yt, {
436
- ref: o,
437
- ownerState: g,
340
+ }) : /* @__PURE__ */ oa(va, l({
341
+ ref: e,
342
+ ownerState: y,
438
343
  component: f,
439
- disabled: y,
440
- className: A(m.root, v),
441
- ...$,
442
- children: [u === "page" && P, G ? /* @__PURE__ */ l(xt, {
443
- ...at,
444
- className: m.icon,
445
- as: G
344
+ disabled: b,
345
+ className: j(x.root, v)
346
+ }, $, {
347
+ children: [i === "page" && m, L ? /* @__PURE__ */ c(fa, {
348
+ as: L,
349
+ ownerState: y,
350
+ className: x.icon
446
351
  }) : null]
447
- });
352
+ }));
448
353
  });
449
- process.env.NODE_ENV !== "production" && (U.propTypes = {
354
+ process.env.NODE_ENV !== "production" && (F.propTypes = {
450
355
  // ┌────────────────────────────── Warning ──────────────────────────────┐
451
356
  // │ These PropTypes are generated from the TypeScript type definitions. │
452
357
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -454,27 +359,27 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
454
359
  /**
455
360
  * @ignore
456
361
  */
457
- children: e.node,
362
+ children: o.node,
458
363
  /**
459
364
  * Override or extend the styles applied to the component.
460
365
  */
461
- classes: e.object,
366
+ classes: o.object,
462
367
  /**
463
368
  * @ignore
464
369
  */
465
- className: e.string,
370
+ className: o.string,
466
371
  /**
467
372
  * The active color.
468
373
  * It supports both default and custom theme colors, which can be added as shown in the
469
374
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
470
375
  * @default 'standard'
471
376
  */
472
- color: e.oneOfType([e.oneOf(["primary", "secondary", "standard"]), e.string]),
377
+ color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
473
378
  /**
474
379
  * The component used for the root node.
475
380
  * Either a string to use a HTML element or a component.
476
381
  */
477
- component: e.elementType,
382
+ component: o.elementType,
478
383
  /**
479
384
  * The components used for each slot inside.
480
385
  *
@@ -482,95 +387,87 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
482
387
  * It's recommended to use the `slots` prop instead.
483
388
  *
484
389
  * @default {}
485
- * @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
486
390
  */
487
- components: e.shape({
488
- first: e.elementType,
489
- last: e.elementType,
490
- next: e.elementType,
491
- previous: e.elementType
391
+ components: o.shape({
392
+ first: o.elementType,
393
+ last: o.elementType,
394
+ next: o.elementType,
395
+ previous: o.elementType
492
396
  }),
493
397
  /**
494
398
  * If `true`, the component is disabled.
495
399
  * @default false
496
400
  */
497
- disabled: e.bool,
401
+ disabled: o.bool,
498
402
  /**
499
403
  * The current page number.
500
404
  */
501
- page: e.node,
405
+ page: o.node,
502
406
  /**
503
407
  * If `true` the pagination item is selected.
504
408
  * @default false
505
409
  */
506
- selected: e.bool,
410
+ selected: o.bool,
507
411
  /**
508
412
  * The shape of the pagination item.
509
413
  * @default 'circular'
510
414
  */
511
- shape: e.oneOf(["circular", "rounded"]),
415
+ shape: o.oneOf(["circular", "rounded"]),
512
416
  /**
513
417
  * The size of the component.
514
418
  * @default 'medium'
515
419
  */
516
- size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
517
- /**
518
- * The props used for each slot inside.
519
- * @default {}
520
- */
521
- slotProps: e.shape({
522
- first: e.oneOfType([e.func, e.object]),
523
- last: e.oneOfType([e.func, e.object]),
524
- next: e.oneOfType([e.func, e.object]),
525
- previous: e.oneOfType([e.func, e.object])
526
- }),
420
+ size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
527
421
  /**
528
422
  * The components used for each slot inside.
423
+ *
424
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
425
+ *
529
426
  * @default {}
530
427
  */
531
- slots: e.shape({
532
- first: e.elementType,
533
- last: e.elementType,
534
- next: e.elementType,
535
- previous: e.elementType
428
+ slots: o.shape({
429
+ first: o.elementType,
430
+ last: o.elementType,
431
+ next: o.elementType,
432
+ previous: o.elementType
536
433
  }),
537
434
  /**
538
435
  * The system prop that allows defining system overrides as well as additional CSS styles.
539
436
  */
540
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
437
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
541
438
  /**
542
439
  * The type of pagination item.
543
440
  * @default 'page'
544
441
  */
545
- type: e.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
442
+ type: o.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
546
443
  /**
547
444
  * The variant to use.
548
445
  * @default 'text'
549
446
  */
550
- variant: e.oneOfType([e.oneOf(["outlined", "text"]), e.string])
447
+ variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
551
448
  });
552
- const mt = (t) => {
449
+ const ba = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], ya = (a) => {
553
450
  const {
554
- classes: a,
555
- variant: o
556
- } = t;
557
- return Z({
558
- root: ["root", o],
451
+ classes: t,
452
+ variant: e
453
+ } = a;
454
+ return X({
455
+ root: ["root", e],
559
456
  ul: ["ul"]
560
- }, lt, a);
561
- }, Pt = R("nav", {
457
+ }, ra, t);
458
+ }, xa = E("nav", {
562
459
  name: "MuiPagination",
563
460
  slot: "Root",
564
- overridesResolver: (t, a) => {
461
+ overridesResolver: (a, t) => {
565
462
  const {
566
- ownerState: o
567
- } = t;
568
- return [a.root, a[o.variant]];
463
+ ownerState: e
464
+ } = a;
465
+ return [t.root, t[e.variant]];
569
466
  }
570
- })({}), Ct = R("ul", {
467
+ })({}), ma = E("ul", {
571
468
  name: "MuiPagination",
572
469
  slot: "Ul",
573
- overridesResolver: (t, a) => a.ul
470
+ overridesResolver: (a, t) => t.ul
574
471
  })({
575
472
  display: "flex",
576
473
  flexWrap: "wrap",
@@ -579,81 +476,73 @@ const mt = (t) => {
579
476
  margin: 0,
580
477
  listStyle: "none"
581
478
  });
582
- function wt(t, a, o) {
583
- return t === "page" ? `${o ? "" : "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`;
584
481
  }
585
- const et = /* @__PURE__ */ c.forwardRef(function(a, o) {
586
- const n = Y({
587
- props: a,
482
+ const Z = /* @__PURE__ */ g.forwardRef(function(t, e) {
483
+ const n = Q({
484
+ props: t,
588
485
  name: "MuiPagination"
589
486
  }), {
590
487
  boundaryCount: v = 1,
591
488
  className: p,
592
489
  color: f = "standard",
593
- count: b = 1,
594
- defaultPage: y = 1,
595
- disabled: P = !1,
596
- getItemAriaLabel: L = wt,
597
- hideNextButton: z = !1,
598
- hidePrevButton: C = !1,
599
- onChange: w,
600
- page: d,
601
- renderItem: u = (r) => /* @__PURE__ */ l(U, {
602
- ...r
603
- }),
604
- shape: O = "circular",
605
- showFirstButton: $ = !1,
606
- showLastButton: g = !1,
607
- siblingCount: M = 1,
608
- size: m = "medium",
609
- variant: x = "text",
610
- ...N
611
- } = n, {
612
- items: h
613
- } = pt({
614
- ...n,
490
+ count: r = 1,
491
+ defaultPage: b = 1,
492
+ disabled: m = !1,
493
+ getItemAriaLabel: O = ha,
494
+ hideNextButton: B = !1,
495
+ hidePrevButton: h = !1,
496
+ renderItem: d = (P) => /* @__PURE__ */ c(F, l({}, P)),
497
+ shape: i = "circular",
498
+ showFirstButton: w = !1,
499
+ showLastButton: $ = !1,
500
+ siblingCount: y = 1,
501
+ size: k = "medium",
502
+ variant: x = "text"
503
+ } = n, I = A(n, ba), {
504
+ items: L
505
+ } = ca(l({}, n, {
615
506
  componentName: "Pagination"
616
- }), k = {
617
- ...n,
507
+ })), M = l({}, n, {
618
508
  boundaryCount: v,
619
509
  color: f,
620
- count: b,
621
- defaultPage: y,
622
- disabled: P,
623
- getItemAriaLabel: L,
624
- hideNextButton: z,
625
- hidePrevButton: C,
626
- renderItem: u,
627
- shape: O,
628
- showFirstButton: $,
629
- showLastButton: g,
630
- siblingCount: M,
631
- size: m,
510
+ count: r,
511
+ defaultPage: b,
512
+ disabled: m,
513
+ getItemAriaLabel: O,
514
+ hideNextButton: B,
515
+ hidePrevButton: h,
516
+ renderItem: d,
517
+ shape: i,
518
+ showFirstButton: w,
519
+ showLastButton: $,
520
+ siblingCount: y,
521
+ size: k,
632
522
  variant: x
633
- }, s = mt(k);
634
- return /* @__PURE__ */ l(Pt, {
523
+ }), T = ya(M);
524
+ return /* @__PURE__ */ c(xa, l({
635
525
  "aria-label": "pagination navigation",
636
- className: A(s.root, p),
637
- ownerState: k,
638
- ref: o,
639
- ...N,
640
- children: /* @__PURE__ */ l(Ct, {
641
- className: s.ul,
642
- ownerState: k,
643
- children: h.map((r, I) => /* @__PURE__ */ l("li", {
644
- children: u({
645
- ...r,
526
+ className: j(T.root, p),
527
+ ownerState: M,
528
+ ref: e
529
+ }, I, {
530
+ children: /* @__PURE__ */ c(ma, {
531
+ className: T.ul,
532
+ ownerState: M,
533
+ children: L.map((P, s) => /* @__PURE__ */ c("li", {
534
+ children: d(l({}, P, {
646
535
  color: f,
647
- "aria-label": L(r.type, r.page, r.selected),
648
- shape: O,
649
- size: m,
536
+ "aria-label": O(P.type, P.page, P.selected),
537
+ shape: i,
538
+ size: k,
650
539
  variant: x
651
- })
652
- }, I))
540
+ }))
541
+ }, s))
653
542
  })
654
- });
543
+ }));
655
544
  });
656
- process.env.NODE_ENV !== "production" && (et.propTypes = {
545
+ process.env.NODE_ENV !== "production" && (Z.propTypes = {
657
546
  // ┌────────────────────────────── Warning ──────────────────────────────┐
658
547
  // │ These PropTypes are generated from the TypeScript type definitions. │
659
548
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -662,135 +551,135 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
662
551
  * Number of always visible pages at the beginning and end.
663
552
  * @default 1
664
553
  */
665
- boundaryCount: B,
554
+ boundaryCount: R,
666
555
  /**
667
556
  * Override or extend the styles applied to the component.
668
557
  */
669
- classes: e.object,
558
+ classes: o.object,
670
559
  /**
671
560
  * @ignore
672
561
  */
673
- className: e.string,
562
+ className: o.string,
674
563
  /**
675
564
  * The active color.
676
565
  * It supports both default and custom theme colors, which can be added as shown in the
677
566
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
678
567
  * @default 'standard'
679
568
  */
680
- color: e.oneOfType([e.oneOf(["primary", "secondary", "standard"]), e.string]),
569
+ color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
681
570
  /**
682
571
  * The total number of pages.
683
572
  * @default 1
684
573
  */
685
- count: B,
574
+ count: R,
686
575
  /**
687
576
  * The page selected by default when the component is uncontrolled.
688
577
  * @default 1
689
578
  */
690
- defaultPage: B,
579
+ defaultPage: R,
691
580
  /**
692
581
  * If `true`, the component is disabled.
693
582
  * @default false
694
583
  */
695
- disabled: e.bool,
584
+ disabled: o.bool,
696
585
  /**
697
586
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
698
587
  * This is important for screen reader users.
699
588
  *
700
- * For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
589
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
701
590
  * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
702
- * @param {number | null} page The page number to format.
703
- * @param {boolean} selected If true, the current page is selected.
591
+ * @param {number} page The page number to format.
592
+ * @param {bool} selected If true, the current page is selected.
704
593
  * @returns {string}
705
594
  */
706
- getItemAriaLabel: e.func,
595
+ getItemAriaLabel: o.func,
707
596
  /**
708
597
  * If `true`, hide the next-page button.
709
598
  * @default false
710
599
  */
711
- hideNextButton: e.bool,
600
+ hideNextButton: o.bool,
712
601
  /**
713
602
  * If `true`, hide the previous-page button.
714
603
  * @default false
715
604
  */
716
- hidePrevButton: e.bool,
605
+ hidePrevButton: o.bool,
717
606
  /**
718
607
  * Callback fired when the page is changed.
719
608
  *
720
609
  * @param {React.ChangeEvent<unknown>} event The event source of the callback.
721
610
  * @param {number} page The page selected.
722
611
  */
723
- onChange: e.func,
612
+ onChange: o.func,
724
613
  /**
725
614
  * The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
726
615
  */
727
- page: B,
616
+ page: R,
728
617
  /**
729
618
  * Render the item.
730
619
  * @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
731
620
  * @returns {ReactNode}
732
621
  * @default (item) => <PaginationItem {...item} />
733
622
  */
734
- renderItem: e.func,
623
+ renderItem: o.func,
735
624
  /**
736
625
  * The shape of the pagination items.
737
626
  * @default 'circular'
738
627
  */
739
- shape: e.oneOf(["circular", "rounded"]),
628
+ shape: o.oneOf(["circular", "rounded"]),
740
629
  /**
741
630
  * If `true`, show the first-page button.
742
631
  * @default false
743
632
  */
744
- showFirstButton: e.bool,
633
+ showFirstButton: o.bool,
745
634
  /**
746
635
  * If `true`, show the last-page button.
747
636
  * @default false
748
637
  */
749
- showLastButton: e.bool,
638
+ showLastButton: o.bool,
750
639
  /**
751
640
  * Number of always visible pages before and after the current page.
752
641
  * @default 1
753
642
  */
754
- siblingCount: B,
643
+ siblingCount: R,
755
644
  /**
756
645
  * The size of the component.
757
646
  * @default 'medium'
758
647
  */
759
- size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
648
+ size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
760
649
  /**
761
650
  * The system prop that allows defining system overrides as well as additional CSS styles.
762
651
  */
763
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
652
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
764
653
  /**
765
654
  * The variant to use.
766
655
  * @default 'text'
767
656
  */
768
- variant: e.oneOfType([e.oneOf(["outlined", "text"]), e.string])
657
+ variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
769
658
  });
770
- function Ot({
771
- isRtl: t,
772
- pageCount: a,
773
- page: o,
659
+ function Pa({
660
+ isRtl: a,
661
+ pageCount: t,
662
+ page: e,
774
663
  onPageChange: n,
775
664
  className: v
776
665
  }) {
777
- return /* @__PURE__ */ l(
778
- et,
666
+ return /* @__PURE__ */ c(
667
+ Z,
779
668
  {
780
669
  showFirstButton: !0,
781
670
  showLastButton: !0,
782
671
  className: v,
783
- count: a,
784
- page: o + 1,
672
+ count: t,
673
+ page: e + 1,
785
674
  onChange: (p, f) => {
786
675
  n(p, f - 1);
787
676
  },
788
677
  boundaryCount: 0,
789
678
  siblingCount: 1,
790
- renderItem: (p) => /* @__PURE__ */ l(
791
- U,
679
+ renderItem: (p) => /* @__PURE__ */ c(
680
+ F,
792
681
  {
793
- slots: { previous: t ? J : K, next: t ? K : J, first: t ? q : H, last: t ? H : q },
682
+ slots: { previous: a ? U : V, next: a ? V : U, first: a ? _ : S, last: a ? S : _ },
794
683
  ...p
795
684
  }
796
685
  ),
@@ -810,10 +699,10 @@ function Ot({
810
699
  }
811
700
  );
812
701
  }
813
- function zt({ isRtl: t, pageCount: a }) {
814
- return /* @__PURE__ */ l(nt, { ActionsComponent: (o) => /* @__PURE__ */ l(Ot, { isRtl: t, pageCount: a, ...o }) });
702
+ function wa({ isRtl: a, pageCount: t }) {
703
+ return /* @__PURE__ */ c(ea, { ActionsComponent: (e) => /* @__PURE__ */ c(Pa, { isRtl: a, pageCount: t, ...e }) });
815
704
  }
816
705
  export {
817
- zt as CustomPagination,
818
- Ot as Pagination
706
+ wa as CustomPagination,
707
+ Pa as Pagination
819
708
  };