@cgi-learning-hub/ui 0.0.1-dev.1719413627 → 1.0.0-dev.1719479633

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 (122) hide show
  1. package/dist/{Box-BHWJ-D81.js → Box-BiPuaXeW.js} +13 -13
  2. package/dist/Box-CKtwAfuD.cjs +1 -0
  3. package/dist/ButtonBase-B5suz6lO.cjs +75 -0
  4. package/dist/{ButtonBase-BpYorbzW.js → ButtonBase-BBM2veIm.js} +9 -7
  5. package/dist/{CircularProgress-C8TogtEK.js → CircularProgress-10EF1bHf.js} +22 -20
  6. package/dist/CircularProgress-C2oXLTWC.cjs +28 -0
  7. package/dist/{DefaultButton-y5BL9CKZ.js → DefaultButton-CV1nEtId.js} +27 -25
  8. package/dist/DefaultButton-mp_9BYRN.cjs +1 -0
  9. package/dist/{IconButton-Hsn7HKeI.js → IconButton-BZJZ6EqA.js} +14 -12
  10. package/dist/IconButton-mr3bF3zo.cjs +2 -0
  11. package/dist/InputBase-BR9xRQIk.cjs +3 -0
  12. package/dist/{InputBase-BdOkEcEz.js → InputBase-M1EED0mW.js} +15 -13
  13. package/dist/{LocalizationProvider-B28kINsn.js → LocalizationProvider-BRVVNwi-.js} +5 -4
  14. package/dist/{LocalizationProvider-U4FHK15N.cjs → LocalizationProvider-CFOq5lnY.cjs} +4 -4
  15. package/dist/SearchInput-CMaJIb02.cjs +1 -0
  16. package/dist/{SearchInput-DVccMSI6.js → SearchInput-CwsflFjR.js} +43 -41
  17. package/dist/{Tabs-C8ECGIYh.js → Tabs-B_NrpC4Q.js} +197 -195
  18. package/dist/Tabs-TyQToO40.cjs +4 -0
  19. package/dist/{TextInput-CpnUc54E.js → TextInput-BKp0syBG.js} +22 -20
  20. package/dist/TextInput-D46n8joW.cjs +12 -0
  21. package/dist/{TimePicker-CLolXFl8.js → TimePicker-B5mvXW-Z.js} +112 -110
  22. package/dist/TimePicker-Br2Mpmkg.cjs +73 -0
  23. package/dist/Typography-BjPSnASW.cjs +1 -0
  24. package/dist/{Typography-D9Jbc-Y5.js → Typography-_o0GXIZA.js} +20 -18
  25. package/dist/assets/index.css +1 -1
  26. package/dist/assets/styles.css +1 -1
  27. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  28. package/dist/components/Dropzone/Dropzone.d.ts +0 -1
  29. package/dist/components/Dropzone/Dropzone.es.js +5 -5
  30. package/dist/components/Loader/Loader.cjs.js +1 -1
  31. package/dist/components/Loader/Loader.d.ts +0 -1
  32. package/dist/components/Loader/Loader.es.js +8 -7
  33. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -1
  34. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
  35. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -2
  36. package/dist/components/LocalizationProvider/index.cjs.js +1 -1
  37. package/dist/components/LocalizationProvider/index.es.js +1 -1
  38. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  39. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
  40. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  41. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +35 -33
  42. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  43. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  44. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  45. package/dist/components/buttons/IconButton.stories.es.js +3 -3
  46. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  47. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  48. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  49. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  50. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  51. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  52. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  53. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  54. package/dist/components/buttons/index.cjs.js +1 -1
  55. package/dist/components/buttons/index.es.js +1 -1
  56. package/dist/components/feedback/Alert/Alert.d.ts +0 -1
  57. package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
  58. package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
  59. package/dist/components/index.cjs.js +1 -1
  60. package/dist/components/index.es.js +11 -11
  61. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
  62. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +6 -6
  63. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  64. package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
  65. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  66. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
  67. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  68. package/dist/components/inputs/SearchInput/index.es.js +1 -1
  69. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  70. package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
  71. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  72. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  73. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  74. package/dist/components/inputs/TextInput/index.es.js +1 -1
  75. package/dist/components/inputs/index.cjs.js +1 -1
  76. package/dist/components/inputs/index.es.js +2 -2
  77. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  78. package/dist/components/lists/FileList/FileList.es.js +1 -1
  79. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  80. package/dist/components/lists/FileList/FileListItem.es.js +6 -6
  81. package/dist/components/lists/TabList.stories.cjs.js +1 -1
  82. package/dist/components/lists/TabList.stories.es.js +35 -33
  83. package/dist/createSvgIcon-BCT6mmot.cjs +2 -0
  84. package/dist/{createSvgIcon-CbXClqUM.js → createSvgIcon-D_7kuTTf.js} +2 -2
  85. package/dist/createSvgIcon-DgyR9LGT.cjs +1 -0
  86. package/dist/{createSvgIcon-BpzrJYC7.js → createSvgIcon-_G2UO7ga.js} +13 -11
  87. package/dist/{useThemeProps-DJpU2Yr7.js → createTheme-1ojblN3u.js} +506 -558
  88. package/dist/createTheme-CknVNw7S.cjs +42 -0
  89. package/dist/{fr-ndKV9IhC.js → fr-DYijwmMU.js} +1 -1
  90. package/dist/fr-Dm5AYBWh.cjs +1 -0
  91. package/dist/generateUtilityClasses-C17NTtuY.cjs +10 -0
  92. package/dist/generateUtilityClasses-X1rhcgtG.js +751 -0
  93. package/dist/index.cjs.js +1 -1
  94. package/dist/index.es.js +11 -11
  95. package/dist/refType-CHTm-ixS.cjs +1 -0
  96. package/dist/{refType-CD9RZ5PF.js → refType-CHmcTSDr.js} +1 -1
  97. package/dist/styled-OyviKmVy.cjs +17 -0
  98. package/dist/styled-s69k_8pa.js +473 -0
  99. package/dist/{useSlotProps-BCdUhJUO.js → useSlotProps-Bkw8Hym-.js} +11 -10
  100. package/dist/useSlotProps-DY72w76L.cjs +1 -0
  101. package/dist/useThemeProps-CYyGLT0O.cjs +1 -0
  102. package/dist/useThemeProps-CjT55mlq.js +55 -0
  103. package/package.json +1 -1
  104. package/dist/Box-DjpT-6Yv.cjs +0 -1
  105. package/dist/ButtonBase-BHN-4x4u.cjs +0 -75
  106. package/dist/CircularProgress-CjET2rvP.cjs +0 -28
  107. package/dist/DefaultButton-BoDg7xMm.cjs +0 -1
  108. package/dist/IconButton-fqTVX40x.cjs +0 -2
  109. package/dist/InputBase-DLc7Nf1T.cjs +0 -3
  110. package/dist/SearchInput-B_Mgl-CJ.cjs +0 -1
  111. package/dist/Tabs-Cij7O-J8.cjs +0 -4
  112. package/dist/TextInput-5zTkdX7s.cjs +0 -12
  113. package/dist/TimePicker-BRY05Sej.cjs +0 -73
  114. package/dist/Typography-6WB4M4zs.cjs +0 -1
  115. package/dist/createSvgIcon-DQmDu_xr.cjs +0 -2
  116. package/dist/createSvgIcon-O41BSqQe.cjs +0 -1
  117. package/dist/fr-LokUOTE7.cjs +0 -1
  118. package/dist/refType-DR4z34r8.cjs +0 -1
  119. package/dist/styled-D6_yEe4a.cjs +0 -26
  120. package/dist/styled-DSGBDqKV.js +0 -1218
  121. package/dist/useSlotProps-CXRrw38p.cjs +0 -1
  122. package/dist/useThemeProps-BktqG0To.cjs +0 -42
@@ -1,25 +1,27 @@
1
- import { g as me, c as Le, _ as b, u as ve, b as ae, P as o } from "./useThemeProps-DJpU2Yr7.js";
1
+ import { g as me, c as Le, _ as b, b as ae, P as t } from "./createTheme-1ojblN3u.js";
2
2
  import * as u from "react";
3
- import { g as Se, s as _, c as k, a as ye, d as st } from "./styled-DSGBDqKV.js";
3
+ import { g as ve, c as k } from "./generateUtilityClasses-X1rhcgtG.js";
4
+ import { u as Se } from "./useThemeProps-CjT55mlq.js";
5
+ import { s as _, c as ye, a as so } from "./styled-s69k_8pa.js";
4
6
  import { jsxs as Q, jsx as C } from "react/jsx-runtime";
5
- import { B as ke } from "./ButtonBase-BpYorbzW.js";
6
- import { u as at } from "./unsupportedProp-BuVD30Gh.js";
7
- import { u as Fe, a as se, b as it } from "./useSlotProps-BCdUhJUO.js";
8
- import { u as ct } from "./useForkRef-CQ5u1_mH.js";
9
- import { a as $e, d as Ae, o as dt } from "./ownerWindow-C7EH1lr6.js";
7
+ import { B as ke } from "./ButtonBase-BBM2veIm.js";
8
+ import { u as ao } from "./unsupportedProp-BuVD30Gh.js";
9
+ import { u as Fe, a as se, b as io } from "./useSlotProps-Bkw8Hym-.js";
10
+ import { u as co } from "./useForkRef-CQ5u1_mH.js";
11
+ import { a as $e, d as Ae, o as uo } from "./ownerWindow-C7EH1lr6.js";
10
12
  import { u as be } from "./useTimeout-Dokw0W_A.js";
11
- import { r as ut } from "./refType-CD9RZ5PF.js";
12
- import { c as je } from "./createSvgIcon-BpzrJYC7.js";
13
+ import { r as po } from "./refType-CHmcTSDr.js";
14
+ import { c as je } from "./createSvgIcon-_G2UO7ga.js";
13
15
  let X;
14
16
  function De() {
15
17
  if (X)
16
18
  return X;
17
- const e = document.createElement("div"), t = document.createElement("div");
18
- return t.style.width = "10px", t.style.height = "1px", e.appendChild(t), e.dir = "rtl", e.style.fontSize = "14px", e.style.width = "4px", e.style.height = "1px", e.style.position = "absolute", e.style.top = "-1000px", e.style.overflow = "scroll", document.body.appendChild(e), X = "reverse", e.scrollLeft > 0 ? X = "default" : (e.scrollLeft = 1, e.scrollLeft === 0 && (X = "negative")), document.body.removeChild(e), X;
19
+ const e = document.createElement("div"), o = document.createElement("div");
20
+ return o.style.width = "10px", o.style.height = "1px", e.appendChild(o), e.dir = "rtl", e.style.fontSize = "14px", e.style.width = "4px", e.style.height = "1px", e.style.position = "absolute", e.style.top = "-1000px", e.style.overflow = "scroll", document.body.appendChild(e), X = "reverse", e.scrollLeft > 0 ? X = "default" : (e.scrollLeft = 1, e.scrollLeft === 0 && (X = "negative")), document.body.removeChild(e), X;
19
21
  }
20
- function pt(e, t) {
22
+ function fo(e, o) {
21
23
  const n = e.scrollLeft;
22
- if (t !== "rtl")
24
+ if (o !== "rtl")
23
25
  return n;
24
26
  switch (De()) {
25
27
  case "negative":
@@ -30,12 +32,12 @@ function pt(e, t) {
30
32
  return n;
31
33
  }
32
34
  }
33
- function ft(e) {
35
+ function bo(e) {
34
36
  return me("MuiTab", e);
35
37
  }
36
- const bt = Se("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]), L = bt, ht = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"], mt = (e) => {
38
+ const ho = ve("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper"]), L = ho, mo = ["className", "disabled", "disableFocusRipple", "fullWidth", "icon", "iconPosition", "indicator", "label", "onChange", "onClick", "onFocus", "selected", "selectionFollowsFocus", "textColor", "value", "wrapped"], vo = (e) => {
37
39
  const {
38
- classes: t,
40
+ classes: o,
39
41
  textColor: n,
40
42
  fullWidth: c,
41
43
  wrapped: i,
@@ -47,21 +49,21 @@ const bt = Se("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
47
49
  root: ["root", d && m && "labelIcon", `textColor${Le(n)}`, c && "fullWidth", i && "wrapped", h && "selected", p && "disabled"],
48
50
  iconWrapper: ["iconWrapper"]
49
51
  };
50
- return ye(y, ft, t);
51
- }, vt = _(ke, {
52
+ return ye(y, bo, o);
53
+ }, So = _(ke, {
52
54
  name: "MuiTab",
53
55
  slot: "Root",
54
- overridesResolver: (e, t) => {
56
+ overridesResolver: (e, o) => {
55
57
  const {
56
58
  ownerState: n
57
59
  } = e;
58
- return [t.root, n.label && n.icon && t.labelIcon, t[`textColor${Le(n.textColor)}`], n.fullWidth && t.fullWidth, n.wrapped && t.wrapped, {
59
- [`& .${L.iconWrapper}`]: t.iconWrapper
60
+ return [o.root, n.label && n.icon && o.labelIcon, o[`textColor${Le(n.textColor)}`], n.fullWidth && o.fullWidth, n.wrapped && o.wrapped, {
61
+ [`& .${L.iconWrapper}`]: o.iconWrapper
60
62
  }];
61
63
  }
62
64
  })(({
63
65
  theme: e,
64
- ownerState: t
66
+ ownerState: o
65
67
  }) => b({}, e.typography.button, {
66
68
  maxWidth: 360,
67
69
  minWidth: 90,
@@ -72,24 +74,24 @@ const bt = Se("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
72
74
  overflow: "hidden",
73
75
  whiteSpace: "normal",
74
76
  textAlign: "center"
75
- }, t.label && {
76
- flexDirection: t.iconPosition === "top" || t.iconPosition === "bottom" ? "column" : "row"
77
+ }, o.label && {
78
+ flexDirection: o.iconPosition === "top" || o.iconPosition === "bottom" ? "column" : "row"
77
79
  }, {
78
80
  lineHeight: 1.25
79
- }, t.icon && t.label && {
81
+ }, o.icon && o.label && {
80
82
  minHeight: 72,
81
83
  paddingTop: 9,
82
84
  paddingBottom: 9,
83
- [`& > .${L.iconWrapper}`]: b({}, t.iconPosition === "top" && {
85
+ [`& > .${L.iconWrapper}`]: b({}, o.iconPosition === "top" && {
84
86
  marginBottom: 6
85
- }, t.iconPosition === "bottom" && {
87
+ }, o.iconPosition === "bottom" && {
86
88
  marginTop: 6
87
- }, t.iconPosition === "start" && {
89
+ }, o.iconPosition === "start" && {
88
90
  marginRight: e.spacing(1)
89
- }, t.iconPosition === "end" && {
91
+ }, o.iconPosition === "end" && {
90
92
  marginLeft: e.spacing(1)
91
93
  })
92
- }, t.textColor === "inherit" && {
94
+ }, o.textColor === "inherit" && {
93
95
  color: "inherit",
94
96
  opacity: 0.6,
95
97
  // same opacity as theme.palette.text.secondary
@@ -99,7 +101,7 @@ const bt = Se("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
99
101
  [`&.${L.disabled}`]: {
100
102
  opacity: (e.vars || e).palette.action.disabledOpacity
101
103
  }
102
- }, t.textColor === "primary" && {
104
+ }, o.textColor === "primary" && {
103
105
  color: (e.vars || e).palette.text.secondary,
104
106
  [`&.${L.selected}`]: {
105
107
  color: (e.vars || e).palette.primary.main
@@ -107,7 +109,7 @@ const bt = Se("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
107
109
  [`&.${L.disabled}`]: {
108
110
  color: (e.vars || e).palette.text.disabled
109
111
  }
110
- }, t.textColor === "secondary" && {
112
+ }, o.textColor === "secondary" && {
111
113
  color: (e.vars || e).palette.text.secondary,
112
114
  [`&.${L.selected}`]: {
113
115
  color: (e.vars || e).palette.secondary.main
@@ -115,16 +117,16 @@ const bt = Se("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
115
117
  [`&.${L.disabled}`]: {
116
118
  color: (e.vars || e).palette.text.disabled
117
119
  }
118
- }, t.fullWidth && {
120
+ }, o.fullWidth && {
119
121
  flexShrink: 1,
120
122
  flexGrow: 1,
121
123
  flexBasis: 0,
122
124
  maxWidth: "none"
123
- }, t.wrapped && {
125
+ }, o.wrapped && {
124
126
  fontSize: e.typography.pxToRem(12)
125
- })), _e = /* @__PURE__ */ u.forwardRef(function(t, n) {
126
- const c = ve({
127
- props: t,
127
+ })), _e = /* @__PURE__ */ u.forwardRef(function(o, n) {
128
+ const c = Se({
129
+ props: o,
128
130
  name: "MuiTab"
129
131
  }), {
130
132
  className: i,
@@ -148,7 +150,7 @@ const bt = Se("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
148
150
  textColor: H = "inherit",
149
151
  value: N,
150
152
  wrapped: ie = !1
151
- } = c, V = ae(c, ht), Y = b({}, c, {
153
+ } = c, V = ae(c, mo), Y = b({}, c, {
152
154
  disabled: d,
153
155
  disableFocusRipple: m,
154
156
  selected: E,
@@ -158,14 +160,14 @@ const bt = Se("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
158
160
  fullWidth: h,
159
161
  textColor: H,
160
162
  wrapped: ie
161
- }), U = mt(Y), $ = p && T && /* @__PURE__ */ u.isValidElement(p) ? /* @__PURE__ */ u.cloneElement(p, {
163
+ }), U = vo(Y), $ = p && T && /* @__PURE__ */ u.isValidElement(p) ? /* @__PURE__ */ u.cloneElement(p, {
162
164
  className: k(U.iconWrapper, p.props.className)
163
165
  }) : p, Z = (M) => {
164
166
  !E && v && v(M, N), I && I(M);
165
167
  }, P = (M) => {
166
168
  g && !E && v && v(M, N), F && F(M);
167
169
  };
168
- return /* @__PURE__ */ Q(vt, b({
170
+ return /* @__PURE__ */ Q(So, b({
169
171
  focusRipple: !m,
170
172
  className: k(U.root, i),
171
173
  ref: n,
@@ -193,25 +195,25 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
193
195
  * This prop isn't supported.
194
196
  * Use the `component` prop if you need to change the children structure.
195
197
  */
196
- children: at,
198
+ children: ao,
197
199
  /**
198
200
  * Override or extend the styles applied to the component.
199
201
  */
200
- classes: o.object,
202
+ classes: t.object,
201
203
  /**
202
204
  * @ignore
203
205
  */
204
- className: o.string,
206
+ className: t.string,
205
207
  /**
206
208
  * If `true`, the component is disabled.
207
209
  * @default false
208
210
  */
209
- disabled: o.bool,
211
+ disabled: t.bool,
210
212
  /**
211
213
  * If `true`, the keyboard focus ripple is disabled.
212
214
  * @default false
213
215
  */
214
- disableFocusRipple: o.bool,
216
+ disableFocusRipple: t.bool,
215
217
  /**
216
218
  * If `true`, the ripple effect is disabled.
217
219
  *
@@ -219,64 +221,64 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
219
221
  * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
220
222
  * @default false
221
223
  */
222
- disableRipple: o.bool,
224
+ disableRipple: t.bool,
223
225
  /**
224
226
  * The icon to display.
225
227
  */
226
- icon: o.oneOfType([o.element, o.string]),
228
+ icon: t.oneOfType([t.element, t.string]),
227
229
  /**
228
230
  * The position of the icon relative to the label.
229
231
  * @default 'top'
230
232
  */
231
- iconPosition: o.oneOf(["bottom", "end", "start", "top"]),
233
+ iconPosition: t.oneOf(["bottom", "end", "start", "top"]),
232
234
  /**
233
235
  * The label element.
234
236
  */
235
- label: o.node,
237
+ label: t.node,
236
238
  /**
237
239
  * @ignore
238
240
  */
239
- onChange: o.func,
241
+ onChange: t.func,
240
242
  /**
241
243
  * @ignore
242
244
  */
243
- onClick: o.func,
245
+ onClick: t.func,
244
246
  /**
245
247
  * @ignore
246
248
  */
247
- onFocus: o.func,
249
+ onFocus: t.func,
248
250
  /**
249
251
  * The system prop that allows defining system overrides as well as additional CSS styles.
250
252
  */
251
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
253
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
252
254
  /**
253
255
  * You can provide your own value. Otherwise, we fallback to the child position index.
254
256
  */
255
- value: o.any,
257
+ value: t.any,
256
258
  /**
257
259
  * Tab labels appear in a single row.
258
260
  * They can use a second line if needed.
259
261
  * @default false
260
262
  */
261
- wrapped: o.bool
263
+ wrapped: t.bool
262
264
  });
263
- const qt = _e, St = je(/* @__PURE__ */ C("path", {
265
+ const Qo = _e, yo = je(/* @__PURE__ */ C("path", {
264
266
  d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
265
- }), "KeyboardArrowLeft"), yt = je(/* @__PURE__ */ C("path", {
267
+ }), "KeyboardArrowLeft"), go = je(/* @__PURE__ */ C("path", {
266
268
  d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
267
269
  }), "KeyboardArrowRight");
268
- function gt(e) {
270
+ function To(e) {
269
271
  return (1 + Math.sin(Math.PI * e - Math.PI / 2)) / 2;
270
272
  }
271
- function Tt(e, t, n, c = {}, i = () => {
273
+ function xo(e, o, n, c = {}, i = () => {
272
274
  }) {
273
275
  const {
274
- ease: d = gt,
276
+ ease: d = To,
275
277
  duration: m = 300
276
278
  // standard
277
279
  } = c;
278
280
  let h = null;
279
- const p = t[e];
281
+ const p = o[e];
280
282
  let y = !1;
281
283
  const w = () => {
282
284
  y = !0;
@@ -287,7 +289,7 @@ function Tt(e, t, n, c = {}, i = () => {
287
289
  }
288
290
  h === null && (h = v);
289
291
  const I = Math.min(1, (v - h) / m);
290
- if (t[e] = d(I) * (n - p) + p, I >= 1) {
292
+ if (o[e] = d(I) * (n - p) + p, I >= 1) {
291
293
  requestAnimationFrame(() => {
292
294
  i(null);
293
295
  });
@@ -297,7 +299,7 @@ function Tt(e, t, n, c = {}, i = () => {
297
299
  };
298
300
  return p === n ? (i(new Error("Element already at target position")), w) : (requestAnimationFrame(T), w);
299
301
  }
300
- const xt = ["onChange"], Bt = {
302
+ const Bo = ["onChange"], Co = {
301
303
  width: 99,
302
304
  height: 99,
303
305
  position: "absolute",
@@ -306,48 +308,48 @@ const xt = ["onChange"], Bt = {
306
308
  };
307
309
  function He(e) {
308
310
  const {
309
- onChange: t
310
- } = e, n = ae(e, xt), c = u.useRef(), i = u.useRef(null), d = () => {
311
+ onChange: o
312
+ } = e, n = ae(e, Bo), c = u.useRef(), i = u.useRef(null), d = () => {
311
313
  c.current = i.current.offsetHeight - i.current.clientHeight;
312
314
  };
313
- return ct(() => {
315
+ return co(() => {
314
316
  const m = Ae(() => {
315
317
  const p = c.current;
316
- d(), p !== c.current && t(c.current);
318
+ d(), p !== c.current && o(c.current);
317
319
  }), h = $e(i.current);
318
320
  return h.addEventListener("resize", m), () => {
319
321
  m.clear(), h.removeEventListener("resize", m);
320
322
  };
321
- }, [t]), u.useEffect(() => {
322
- d(), t(c.current);
323
- }, [t]), /* @__PURE__ */ C("div", b({
324
- style: Bt,
323
+ }, [o]), u.useEffect(() => {
324
+ d(), o(c.current);
325
+ }, [o]), /* @__PURE__ */ C("div", b({
326
+ style: Co,
325
327
  ref: i
326
328
  }, n));
327
329
  }
328
330
  process.env.NODE_ENV !== "production" && (He.propTypes = {
329
- onChange: o.func.isRequired
331
+ onChange: t.func.isRequired
330
332
  });
331
- function Ct(e) {
333
+ function wo(e) {
332
334
  return me("MuiTabScrollButton", e);
333
335
  }
334
- const wt = Se("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), It = ["className", "slots", "slotProps", "direction", "orientation", "disabled"], Et = (e) => {
336
+ const Io = ve("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), Eo = ["className", "slots", "slotProps", "direction", "orientation", "disabled"], Oo = (e) => {
335
337
  const {
336
- classes: t,
338
+ classes: o,
337
339
  orientation: n,
338
340
  disabled: c
339
341
  } = e;
340
342
  return ye({
341
343
  root: ["root", n, c && "disabled"]
342
- }, Ct, t);
343
- }, Ot = _(ke, {
344
+ }, wo, o);
345
+ }, No = _(ke, {
344
346
  name: "MuiTabScrollButton",
345
347
  slot: "Root",
346
- overridesResolver: (e, t) => {
348
+ overridesResolver: (e, o) => {
347
349
  const {
348
350
  ownerState: n
349
351
  } = e;
350
- return [t.root, n.orientation && t[n.orientation]];
352
+ return [o.root, n.orientation && o[n.orientation]];
351
353
  }
352
354
  })(({
353
355
  ownerState: e
@@ -355,7 +357,7 @@ const wt = Se("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
355
357
  width: 40,
356
358
  flexShrink: 0,
357
359
  opacity: 0.8,
358
- [`&.${wt.disabled}`]: {
360
+ [`&.${Io.disabled}`]: {
359
361
  opacity: 0
360
362
  }
361
363
  }, e.orientation === "vertical" && {
@@ -364,19 +366,19 @@ const wt = Se("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
364
366
  "& svg": {
365
367
  transform: `rotate(${e.isRtl ? -90 : 90}deg)`
366
368
  }
367
- })), Ve = /* @__PURE__ */ u.forwardRef(function(t, n) {
369
+ })), Ve = /* @__PURE__ */ u.forwardRef(function(o, n) {
368
370
  var c, i;
369
- const d = ve({
370
- props: t,
371
+ const d = Se({
372
+ props: o,
371
373
  name: "MuiTabScrollButton"
372
374
  }), {
373
375
  className: m,
374
376
  slots: h = {},
375
377
  slotProps: p = {},
376
378
  direction: y
377
- } = d, w = ae(d, It), T = Fe(), v = b({
379
+ } = d, w = ae(d, Eo), T = Fe(), v = b({
378
380
  isRtl: T
379
- }, d), I = Et(v), F = (c = h.StartScrollButtonIcon) != null ? c : St, E = (i = h.EndScrollButtonIcon) != null ? i : yt, g = se({
381
+ }, d), I = Oo(v), F = (c = h.StartScrollButtonIcon) != null ? c : yo, E = (i = h.EndScrollButtonIcon) != null ? i : go, g = se({
380
382
  elementType: F,
381
383
  externalSlotProps: p.startScrollButtonIcon,
382
384
  additionalProps: {
@@ -391,7 +393,7 @@ const wt = Se("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
391
393
  },
392
394
  ownerState: v
393
395
  });
394
- return /* @__PURE__ */ C(Ot, b({
396
+ return /* @__PURE__ */ C(No, b({
395
397
  component: "div",
396
398
  className: k(I.root, m),
397
399
  ref: n,
@@ -410,55 +412,55 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
410
412
  /**
411
413
  * The content of the component.
412
414
  */
413
- children: o.node,
415
+ children: t.node,
414
416
  /**
415
417
  * Override or extend the styles applied to the component.
416
418
  */
417
- classes: o.object,
419
+ classes: t.object,
418
420
  /**
419
421
  * @ignore
420
422
  */
421
- className: o.string,
423
+ className: t.string,
422
424
  /**
423
425
  * The direction the button should indicate.
424
426
  */
425
- direction: o.oneOf(["left", "right"]).isRequired,
427
+ direction: t.oneOf(["left", "right"]).isRequired,
426
428
  /**
427
429
  * If `true`, the component is disabled.
428
430
  * @default false
429
431
  */
430
- disabled: o.bool,
432
+ disabled: t.bool,
431
433
  /**
432
434
  * The component orientation (layout flow direction).
433
435
  */
434
- orientation: o.oneOf(["horizontal", "vertical"]).isRequired,
436
+ orientation: t.oneOf(["horizontal", "vertical"]).isRequired,
435
437
  /**
436
438
  * The extra props for the slot components.
437
439
  * You can override the existing props or add new ones.
438
440
  * @default {}
439
441
  */
440
- slotProps: o.shape({
441
- endScrollButtonIcon: o.oneOfType([o.func, o.object]),
442
- startScrollButtonIcon: o.oneOfType([o.func, o.object])
442
+ slotProps: t.shape({
443
+ endScrollButtonIcon: t.oneOfType([t.func, t.object]),
444
+ startScrollButtonIcon: t.oneOfType([t.func, t.object])
443
445
  }),
444
446
  /**
445
447
  * The components used for each slot inside.
446
448
  * @default {}
447
449
  */
448
- slots: o.shape({
449
- EndScrollButtonIcon: o.elementType,
450
- StartScrollButtonIcon: o.elementType
450
+ slots: t.shape({
451
+ EndScrollButtonIcon: t.elementType,
452
+ StartScrollButtonIcon: t.elementType
451
453
  }),
452
454
  /**
453
455
  * The system prop that allows defining system overrides as well as additional CSS styles.
454
456
  */
455
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
457
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
456
458
  });
457
- function Nt(e) {
459
+ function Mo(e) {
458
460
  return me("MuiTabs", e);
459
461
  }
460
- const Mt = Se("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), he = Mt, Rt = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"], Re = (e, t) => e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : e.firstChild, Pe = (e, t) => e === t ? e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : e.lastChild, ne = (e, t, n) => {
461
- let c = !1, i = n(e, t);
462
+ const Ro = ve("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), he = Ro, Po = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"], Re = (e, o) => e === o ? e.firstChild : o && o.nextElementSibling ? o.nextElementSibling : e.firstChild, Pe = (e, o) => e === o ? e.lastChild : o && o.previousElementSibling ? o.previousElementSibling : e.lastChild, ne = (e, o, n) => {
463
+ let c = !1, i = n(e, o);
462
464
  for (; i; ) {
463
465
  if (i === e.firstChild) {
464
466
  if (c)
@@ -473,9 +475,9 @@ const Mt = Se("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
473
475
  return;
474
476
  }
475
477
  }
476
- }, Pt = (e) => {
478
+ }, Wo = (e) => {
477
479
  const {
478
- vertical: t,
480
+ vertical: o,
479
481
  fixed: n,
480
482
  hideScrollbar: c,
481
483
  scrollableX: i,
@@ -485,30 +487,30 @@ const Mt = Se("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
485
487
  classes: p
486
488
  } = e;
487
489
  return ye({
488
- root: ["root", t && "vertical"],
490
+ root: ["root", o && "vertical"],
489
491
  scroller: ["scroller", n && "fixed", c && "hideScrollbar", i && "scrollableX", d && "scrollableY"],
490
- flexContainer: ["flexContainer", t && "flexContainerVertical", m && "centered"],
492
+ flexContainer: ["flexContainer", o && "flexContainerVertical", m && "centered"],
491
493
  indicator: ["indicator"],
492
494
  scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
493
495
  scrollableX: [i && "scrollableX"],
494
496
  hideScrollbar: [c && "hideScrollbar"]
495
- }, Nt, p);
496
- }, Wt = _("div", {
497
+ }, Mo, p);
498
+ }, zo = _("div", {
497
499
  name: "MuiTabs",
498
500
  slot: "Root",
499
- overridesResolver: (e, t) => {
501
+ overridesResolver: (e, o) => {
500
502
  const {
501
503
  ownerState: n
502
504
  } = e;
503
505
  return [{
504
- [`& .${he.scrollButtons}`]: t.scrollButtons
506
+ [`& .${he.scrollButtons}`]: o.scrollButtons
505
507
  }, {
506
- [`& .${he.scrollButtons}`]: n.scrollButtonsHideMobile && t.scrollButtonsHideMobile
507
- }, t.root, n.vertical && t.vertical];
508
+ [`& .${he.scrollButtons}`]: n.scrollButtonsHideMobile && o.scrollButtonsHideMobile
509
+ }, o.root, n.vertical && o.vertical];
508
510
  }
509
511
  })(({
510
512
  ownerState: e,
511
- theme: t
513
+ theme: o
512
514
  }) => b({
513
515
  overflow: "hidden",
514
516
  minHeight: 48,
@@ -519,18 +521,18 @@ const Mt = Se("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
519
521
  flexDirection: "column"
520
522
  }, e.scrollButtonsHideMobile && {
521
523
  [`& .${he.scrollButtons}`]: {
522
- [t.breakpoints.down("sm")]: {
524
+ [o.breakpoints.down("sm")]: {
523
525
  display: "none"
524
526
  }
525
527
  }
526
- })), zt = _("div", {
528
+ })), Lo = _("div", {
527
529
  name: "MuiTabs",
528
530
  slot: "Scroller",
529
- overridesResolver: (e, t) => {
531
+ overridesResolver: (e, o) => {
530
532
  const {
531
533
  ownerState: n
532
534
  } = e;
533
- return [t.scroller, n.fixed && t.fixed, n.hideScrollbar && t.hideScrollbar, n.scrollableX && t.scrollableX, n.scrollableY && t.scrollableY];
535
+ return [o.scroller, n.fixed && o.fixed, n.hideScrollbar && o.hideScrollbar, n.scrollableX && o.scrollableX, n.scrollableY && o.scrollableY];
534
536
  }
535
537
  })(({
536
538
  ownerState: e
@@ -556,14 +558,14 @@ const Mt = Se("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
556
558
  }, e.scrollableY && {
557
559
  overflowY: "auto",
558
560
  overflowX: "hidden"
559
- })), Lt = _("div", {
561
+ })), ko = _("div", {
560
562
  name: "MuiTabs",
561
563
  slot: "FlexContainer",
562
- overridesResolver: (e, t) => {
564
+ overridesResolver: (e, o) => {
563
565
  const {
564
566
  ownerState: n
565
567
  } = e;
566
- return [t.flexContainer, n.vertical && t.flexContainerVertical, n.centered && t.centered];
568
+ return [o.flexContainer, n.vertical && o.flexContainerVertical, n.centered && o.centered];
567
569
  }
568
570
  })(({
569
571
  ownerState: e
@@ -573,28 +575,28 @@ const Mt = Se("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
573
575
  flexDirection: "column"
574
576
  }, e.centered && {
575
577
  justifyContent: "center"
576
- })), kt = _("span", {
578
+ })), Fo = _("span", {
577
579
  name: "MuiTabs",
578
580
  slot: "Indicator",
579
- overridesResolver: (e, t) => t.indicator
581
+ overridesResolver: (e, o) => o.indicator
580
582
  })(({
581
583
  ownerState: e,
582
- theme: t
584
+ theme: o
583
585
  }) => b({
584
586
  position: "absolute",
585
587
  height: 2,
586
588
  bottom: 0,
587
589
  width: "100%",
588
- transition: t.transitions.create()
590
+ transition: o.transitions.create()
589
591
  }, e.indicatorColor === "primary" && {
590
- backgroundColor: (t.vars || t).palette.primary.main
592
+ backgroundColor: (o.vars || o).palette.primary.main
591
593
  }, e.indicatorColor === "secondary" && {
592
- backgroundColor: (t.vars || t).palette.secondary.main
594
+ backgroundColor: (o.vars || o).palette.secondary.main
593
595
  }, e.vertical && {
594
596
  height: "100%",
595
597
  width: 2,
596
598
  right: 0
597
- })), Ft = _(He)({
599
+ })), $o = _(He)({
598
600
  overflowX: "auto",
599
601
  overflowY: "hidden",
600
602
  // Hide dimensionless scrollbar on macOS
@@ -606,11 +608,11 @@ const Mt = Se("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
606
608
  }
607
609
  }), We = {};
608
610
  let ze = !1;
609
- const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
610
- const c = ve({
611
- props: t,
611
+ const Ue = /* @__PURE__ */ u.forwardRef(function(o, n) {
612
+ const c = Se({
613
+ props: o,
612
614
  name: "MuiTabs"
613
- }), i = it(), d = Fe(), {
615
+ }), i = io(), d = Fe(), {
614
616
  "aria-label": m,
615
617
  "aria-labelledby": h,
616
618
  action: p,
@@ -633,7 +635,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
633
635
  value: P,
634
636
  variant: M = "standard",
635
637
  visibleScrollbar: ce = !1
636
- } = c, Xe = ae(c, Rt), x = M === "scrollable", B = g === "vertical", K = B ? "scrollTop" : "scrollLeft", ee = B ? "top" : "left", te = B ? "bottom" : "right", de = B ? "clientHeight" : "clientWidth", q = B ? "height" : "width", A = b({}, c, {
638
+ } = c, Xe = ae(c, Po), x = M === "scrollable", B = g === "vertical", K = B ? "scrollTop" : "scrollLeft", ee = B ? "top" : "left", oe = B ? "bottom" : "right", de = B ? "clientHeight" : "clientWidth", q = B ? "height" : "width", A = b({}, c, {
637
639
  component: v,
638
640
  allowScrollButtonsMobile: I,
639
641
  indicatorColor: F,
@@ -649,7 +651,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
649
651
  scrollableY: x && B,
650
652
  centered: y && !x,
651
653
  scrollButtonsHideMobile: !I
652
- }), W = Pt(A), Ye = se({
654
+ }), W = Wo(A), Ye = se({
653
655
  elementType: V.StartScrollButtonIcon,
654
656
  externalSlotProps: Y.startScrollButtonIcon,
655
657
  ownerState: A
@@ -662,7 +664,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
662
664
  const [ge, qe] = u.useState(!1), [j, Te] = u.useState(We), [xe, Ge] = u.useState(!1), [Be, Je] = u.useState(!1), [Ce, Qe] = u.useState(!1), [we, Ze] = u.useState({
663
665
  overflow: "hidden",
664
666
  scrollbarWidth: 0
665
- }), oe = /* @__PURE__ */ new Map(), R = u.useRef(null), D = u.useRef(null), Ie = () => {
667
+ }), te = /* @__PURE__ */ new Map(), R = u.useRef(null), D = u.useRef(null), Ie = () => {
666
668
  const r = R.current;
667
669
  let l;
668
670
  if (r) {
@@ -671,7 +673,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
671
673
  clientWidth: r.clientWidth,
672
674
  scrollLeft: r.scrollLeft,
673
675
  scrollTop: r.scrollTop,
674
- scrollLeftNormalized: pt(r, d ? "rtl" : "ltr"),
676
+ scrollLeftNormalized: fo(r, d ? "rtl" : "ltr"),
675
677
  scrollWidth: r.scrollWidth,
676
678
  top: a.top,
677
679
  bottom: a.bottom,
@@ -683,8 +685,8 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
683
685
  if (r && P !== !1) {
684
686
  const a = D.current.children;
685
687
  if (a.length > 0) {
686
- const f = a[oe.get(P)];
687
- process.env.NODE_ENV !== "production" && (f || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${P}".`, oe.keys ? `You can provide one of the following values: ${Array.from(oe.keys()).join(", ")}.` : null].join(`
688
+ const f = a[te.get(P)];
689
+ process.env.NODE_ENV !== "production" && (f || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${P}".`, te.keys ? `You can provide one of the following values: ${Array.from(te.keys()).join(", ")}.` : null].join(`
688
690
  `))), s = f ? f.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !ze && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
689
691
  l.clientWidth !== 0 && (l = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${P}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
690
692
  `)), ze = !0);
@@ -720,7 +722,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
720
722
  }), ue = (r, {
721
723
  animation: l = !0
722
724
  } = {}) => {
723
- l ? Tt(K, R.current, r, {
725
+ l ? xo(K, R.current, r, {
724
726
  duration: i.transitions.duration.standard
725
727
  }) : R.current[K] = r;
726
728
  }, Ee = (r) => {
@@ -739,19 +741,19 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
739
741
  l += f[de];
740
742
  }
741
743
  return l;
742
- }, et = () => {
744
+ }, eo = () => {
743
745
  Ee(-1 * Oe());
744
- }, tt = () => {
746
+ }, oo = () => {
745
747
  Ee(Oe());
746
- }, ot = u.useCallback((r) => {
748
+ }, to = u.useCallback((r) => {
747
749
  Ze({
748
750
  overflow: null,
749
751
  scrollbarWidth: r
750
752
  });
751
- }, []), rt = () => {
753
+ }, []), ro = () => {
752
754
  const r = {};
753
- r.scrollbarSizeListener = x ? /* @__PURE__ */ C(Ft, {
754
- onChange: ot,
755
+ r.scrollbarSizeListener = x ? /* @__PURE__ */ C($o, {
756
+ onChange: to,
755
757
  className: k(W.scrollableX, W.hideScrollbar)
756
758
  }) : null;
757
759
  const s = x && (N === "auto" && (xe || Be) || N === !0);
@@ -764,7 +766,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
764
766
  },
765
767
  orientation: g,
766
768
  direction: d ? "right" : "left",
767
- onClick: et,
769
+ onClick: eo,
768
770
  disabled: !xe
769
771
  }, $, {
770
772
  className: k(W.scrollButtons, $.className)
@@ -777,7 +779,7 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
777
779
  },
778
780
  orientation: g,
779
781
  direction: d ? "left" : "right",
780
- onClick: tt,
782
+ onClick: oo,
781
783
  disabled: !Be
782
784
  }, $, {
783
785
  className: k(W.scrollButtons, $.className)
@@ -793,8 +795,8 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
793
795
  ue(a, {
794
796
  animation: r
795
797
  });
796
- } else if (s[te] > l[te]) {
797
- const a = l[K] + (s[te] - l[te]);
798
+ } else if (s[oe] > l[oe]) {
799
+ const a = l[K] + (s[oe] - l[oe]);
798
800
  ue(a, {
799
801
  animation: r
800
802
  });
@@ -856,19 +858,19 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
856
858
  updateIndicator: G,
857
859
  updateScrollButtons: re
858
860
  }), [G, re]);
859
- const Me = /* @__PURE__ */ C(kt, b({}, U, {
861
+ const Me = /* @__PURE__ */ C(Fo, b({}, U, {
860
862
  className: k(W.indicator, U.className),
861
863
  ownerState: A,
862
864
  style: b({}, j, U.style)
863
865
  }));
864
866
  let le = 0;
865
- const lt = u.Children.map(w, (r) => {
867
+ const lo = u.Children.map(w, (r) => {
866
868
  if (!/* @__PURE__ */ u.isValidElement(r))
867
869
  return null;
868
- process.env.NODE_ENV !== "production" && st.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
870
+ process.env.NODE_ENV !== "production" && so.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
869
871
  `));
870
872
  const l = r.props.value === void 0 ? le : r.props.value;
871
- oe.set(l, le);
873
+ te.set(l, le);
872
874
  const s = l === P;
873
875
  return le += 1, /* @__PURE__ */ u.cloneElement(r, b({
874
876
  fullWidth: M === "fullWidth",
@@ -881,8 +883,8 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
881
883
  }, le === 1 && P === !1 && !r.props.tabIndex ? {
882
884
  tabIndex: 0
883
885
  } : {}));
884
- }), nt = (r) => {
885
- const l = D.current, s = dt(l).activeElement;
886
+ }), no = (r) => {
887
+ const l = D.current, s = uo(l).activeElement;
886
888
  if (s.getAttribute("role") !== "tab")
887
889
  return;
888
890
  let f = g === "horizontal" ? "ArrowLeft" : "ArrowUp", S = g === "horizontal" ? "ArrowRight" : "ArrowDown";
@@ -900,14 +902,14 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
900
902
  r.preventDefault(), ne(l, null, Pe);
901
903
  break;
902
904
  }
903
- }, pe = rt();
904
- return /* @__PURE__ */ Q(Wt, b({
905
+ }, pe = ro();
906
+ return /* @__PURE__ */ Q(zo, b({
905
907
  className: k(W.root, T),
906
908
  ownerState: A,
907
909
  ref: n,
908
910
  as: v
909
911
  }, Xe, {
910
- children: [pe.scrollButtonStart, pe.scrollbarSizeListener, /* @__PURE__ */ Q(zt, {
912
+ children: [pe.scrollButtonStart, pe.scrollbarSizeListener, /* @__PURE__ */ Q(Lo, {
911
913
  className: W.scroller,
912
914
  ownerState: A,
913
915
  style: {
@@ -915,16 +917,16 @@ const Ue = /* @__PURE__ */ u.forwardRef(function(t, n) {
915
917
  [B ? `margin${d ? "Left" : "Right"}` : "marginBottom"]: ce ? void 0 : -we.scrollbarWidth
916
918
  },
917
919
  ref: R,
918
- children: [/* @__PURE__ */ C(Lt, {
920
+ children: [/* @__PURE__ */ C(ko, {
919
921
  "aria-label": m,
920
922
  "aria-labelledby": h,
921
923
  "aria-orientation": g === "vertical" ? "vertical" : null,
922
924
  className: W.flexContainer,
923
925
  ownerState: A,
924
- onKeyDown: nt,
926
+ onKeyDown: no,
925
927
  ref: D,
926
928
  role: "tablist",
927
- children: lt
929
+ children: lo
928
930
  }), ge && Me]
929
931
  }), pe.scrollButtonEnd]
930
932
  }));
@@ -942,66 +944,66 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
942
944
  * @param {object} actions This object contains all possible actions
943
945
  * that can be triggered programmatically.
944
946
  */
945
- action: ut,
947
+ action: po,
946
948
  /**
947
949
  * If `true`, the scroll buttons aren't forced hidden on mobile.
948
950
  * By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
949
951
  * @default false
950
952
  */
951
- allowScrollButtonsMobile: o.bool,
953
+ allowScrollButtonsMobile: t.bool,
952
954
  /**
953
955
  * The label for the Tabs as a string.
954
956
  */
955
- "aria-label": o.string,
957
+ "aria-label": t.string,
956
958
  /**
957
959
  * An id or list of ids separated by a space that label the Tabs.
958
960
  */
959
- "aria-labelledby": o.string,
961
+ "aria-labelledby": t.string,
960
962
  /**
961
963
  * If `true`, the tabs are centered.
962
964
  * This prop is intended for large views.
963
965
  * @default false
964
966
  */
965
- centered: o.bool,
967
+ centered: t.bool,
966
968
  /**
967
969
  * The content of the component.
968
970
  */
969
- children: o.node,
971
+ children: t.node,
970
972
  /**
971
973
  * Override or extend the styles applied to the component.
972
974
  */
973
- classes: o.object,
975
+ classes: t.object,
974
976
  /**
975
977
  * @ignore
976
978
  */
977
- className: o.string,
979
+ className: t.string,
978
980
  /**
979
981
  * The component used for the root node.
980
982
  * Either a string to use a HTML element or a component.
981
983
  */
982
- component: o.elementType,
984
+ component: t.elementType,
983
985
  /**
984
986
  * Determines the color of the indicator.
985
987
  * @default 'primary'
986
988
  */
987
- indicatorColor: o.oneOfType([o.oneOf(["primary", "secondary"]), o.string]),
989
+ indicatorColor: t.oneOfType([t.oneOf(["primary", "secondary"]), t.string]),
988
990
  /**
989
991
  * Callback fired when the value changes.
990
992
  *
991
993
  * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
992
994
  * @param {any} value We default to the index of the child (number)
993
995
  */
994
- onChange: o.func,
996
+ onChange: t.func,
995
997
  /**
996
998
  * The component orientation (layout flow direction).
997
999
  * @default 'horizontal'
998
1000
  */
999
- orientation: o.oneOf(["horizontal", "vertical"]),
1001
+ orientation: t.oneOf(["horizontal", "vertical"]),
1000
1002
  /**
1001
1003
  * The component used to render the scroll buttons.
1002
1004
  * @default TabScrollButton
1003
1005
  */
1004
- ScrollButtonComponent: o.elementType,
1006
+ ScrollButtonComponent: t.elementType,
1005
1007
  /**
1006
1008
  * Determine behavior of scroll buttons when tabs are set to scroll:
1007
1009
  *
@@ -1013,53 +1015,53 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
1013
1015
  * This behavior can be disabled with `allowScrollButtonsMobile`.
1014
1016
  * @default 'auto'
1015
1017
  */
1016
- scrollButtons: o.oneOf(["auto", !1, !0]),
1018
+ scrollButtons: t.oneOf(["auto", !1, !0]),
1017
1019
  /**
1018
1020
  * If `true` the selected tab changes on focus. Otherwise it only
1019
1021
  * changes on activation.
1020
1022
  */
1021
- selectionFollowsFocus: o.bool,
1023
+ selectionFollowsFocus: t.bool,
1022
1024
  /**
1023
1025
  * The extra props for the slot components.
1024
1026
  * You can override the existing props or add new ones.
1025
1027
  * @default {}
1026
1028
  */
1027
- slotProps: o.shape({
1028
- endScrollButtonIcon: o.oneOfType([o.func, o.object]),
1029
- startScrollButtonIcon: o.oneOfType([o.func, o.object])
1029
+ slotProps: t.shape({
1030
+ endScrollButtonIcon: t.oneOfType([t.func, t.object]),
1031
+ startScrollButtonIcon: t.oneOfType([t.func, t.object])
1030
1032
  }),
1031
1033
  /**
1032
1034
  * The components used for each slot inside.
1033
1035
  * @default {}
1034
1036
  */
1035
- slots: o.shape({
1036
- EndScrollButtonIcon: o.elementType,
1037
- StartScrollButtonIcon: o.elementType
1037
+ slots: t.shape({
1038
+ EndScrollButtonIcon: t.elementType,
1039
+ StartScrollButtonIcon: t.elementType
1038
1040
  }),
1039
1041
  /**
1040
1042
  * The system prop that allows defining system overrides as well as additional CSS styles.
1041
1043
  */
1042
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
1044
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
1043
1045
  /**
1044
1046
  * Props applied to the tab indicator element.
1045
1047
  * @default {}
1046
1048
  */
1047
- TabIndicatorProps: o.object,
1049
+ TabIndicatorProps: t.object,
1048
1050
  /**
1049
1051
  * Props applied to the [`TabScrollButton`](/material-ui/api/tab-scroll-button/) element.
1050
1052
  * @default {}
1051
1053
  */
1052
- TabScrollButtonProps: o.object,
1054
+ TabScrollButtonProps: t.object,
1053
1055
  /**
1054
1056
  * Determines the color of the `Tab`.
1055
1057
  * @default 'primary'
1056
1058
  */
1057
- textColor: o.oneOf(["inherit", "primary", "secondary"]),
1059
+ textColor: t.oneOf(["inherit", "primary", "secondary"]),
1058
1060
  /**
1059
1061
  * The value of the currently selected `Tab`.
1060
1062
  * If you don't want any selected `Tab`, you can set this prop to `false`.
1061
1063
  */
1062
- value: o.any,
1064
+ value: t.any,
1063
1065
  /**
1064
1066
  * Determines additional display behavior of the tabs:
1065
1067
  *
@@ -1070,22 +1072,22 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
1070
1072
  * - `standard` will render the default state.
1071
1073
  * @default 'standard'
1072
1074
  */
1073
- variant: o.oneOf(["fullWidth", "scrollable", "standard"]),
1075
+ variant: t.oneOf(["fullWidth", "scrollable", "standard"]),
1074
1076
  /**
1075
1077
  * If `true`, the scrollbar is visible. It can be useful when displaying
1076
1078
  * a long vertical list of tabs.
1077
1079
  * @default false
1078
1080
  */
1079
- visibleScrollbar: o.bool
1081
+ visibleScrollbar: t.bool
1080
1082
  });
1081
- const Gt = Ue;
1083
+ const Zo = Ue;
1082
1084
  export {
1083
- yt as K,
1084
- qt as T,
1085
- Gt as a,
1085
+ go as K,
1086
+ Qo as T,
1087
+ Zo as a,
1086
1088
  he as b,
1087
- Nt as c,
1088
- St as d,
1089
- ft as g,
1089
+ Mo as c,
1090
+ yo as d,
1091
+ bo as g,
1090
1092
  L as t
1091
1093
  };