@amateescu/portal-ui-components 0.0.28 → 0.0.30-beta

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