@amateescu/portal-ui-components 0.0.24 → 0.0.25-react19

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