@cgi-learning-hub/ui 1.2.0-dev.1725030880 → 1.2.0-dev.1725451328

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 (161) hide show
  1. package/dist/Box-BDMtAH2P.cjs +1 -0
  2. package/dist/{Box-BJvmuM0Y.js → Box-CONPkck2.js} +32 -30
  3. package/dist/Button-By3A0teb.js +454 -0
  4. package/dist/Button-CBAa7bmK.cjs +1 -0
  5. package/dist/ButtonBase-D0vqeM8I.js +890 -0
  6. package/dist/ButtonBase-DePtV_m6.cjs +75 -0
  7. package/dist/CircularProgress-BRnSv2J2.cjs +28 -0
  8. package/dist/CircularProgress-BrfcRJbv.js +251 -0
  9. package/dist/DatePicker-Cw1xQ3Sn.cjs +19 -0
  10. package/dist/{DatePicker-xLT3dl8F.js → DatePicker-wZ1VHlXF.js} +4241 -4100
  11. package/dist/DefaultButton-B1wjXZO7.cjs +1 -0
  12. package/dist/DefaultButton-dbnwLtyd.js +351 -0
  13. package/dist/DefaultPropsProvider-B6IbLm7M.cjs +17 -0
  14. package/dist/DefaultPropsProvider-QV6PDjPd.js +468 -0
  15. package/dist/IconButton-BiLAYORS.js +239 -0
  16. package/dist/IconButton-DE-QtB3Q.cjs +2 -0
  17. package/dist/{InputAdornment-zaw7AFWU.js → InputAdornment-7ED2C-w1.js} +81 -65
  18. package/dist/InputAdornment-CJbpwt2R.cjs +1 -0
  19. package/dist/InputBase-LZPaeC-A.cjs +3 -0
  20. package/dist/InputBase-jbXydPMc.js +802 -0
  21. package/dist/{Stack-Dlgk5t_M.js → Stack-BzF_6-v5.js} +62 -60
  22. package/dist/Stack-D6Kv6y1D.cjs +1 -0
  23. package/dist/Tabs-CV_eM5RY.js +1222 -0
  24. package/dist/Tabs-DcqpjpXb.cjs +4 -0
  25. package/dist/TextField-DAxS82qf.cjs +12 -0
  26. package/dist/{TextField-DG1754qQ.js → TextField-G9MOGCdw.js} +3033 -2408
  27. package/dist/{Tooltip-BjTwTSrD.js → Tooltip-D_4ANHAc.js} +4682 -3406
  28. package/dist/Tooltip-Ma-NowZd.cjs +100 -0
  29. package/dist/TransitionGroupContext-B5aSBz0G.js +64 -0
  30. package/dist/TransitionGroupContext-gQFtuZSh.cjs +1 -0
  31. package/dist/Typography-4kqbsc6q.js +258 -0
  32. package/dist/Typography-CNQVeQXr.cjs +1 -0
  33. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  34. package/dist/components/DatePicker/DatePicker.es.js +3 -3
  35. package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
  36. package/dist/components/DatePicker/DatePicker.stories.es.js +3 -3
  37. package/dist/components/DatePicker/index.cjs.js +1 -1
  38. package/dist/components/DatePicker/index.es.js +1 -1
  39. package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
  40. package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
  41. package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  42. package/dist/components/DefaultButton/DefaultButtonIcon.es.js +108 -67
  43. package/dist/components/DefaultButton/index.cjs.js +1 -1
  44. package/dist/components/DefaultButton/index.es.js +1 -1
  45. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  46. package/dist/components/Dropzone/Dropzone.es.js +8 -8
  47. package/dist/components/FileList/FileList.cjs.js +1 -1
  48. package/dist/components/FileList/FileList.es.js +1 -1
  49. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  50. package/dist/components/FileList/FileListItem.es.js +10 -11
  51. package/dist/components/IconButton.stories.cjs.js +1 -1
  52. package/dist/components/IconButton.stories.es.js +13 -14
  53. package/dist/components/Loader/Loader.cjs.js +1 -1
  54. package/dist/components/Loader/Loader.es.js +1 -1
  55. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  56. package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
  57. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  58. package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
  59. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  60. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  61. package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
  62. package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
  63. package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  64. package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  65. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  66. package/dist/components/QueryError/QueryError.es.js +1 -1
  67. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  68. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  69. package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
  70. package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
  71. package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  72. package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  73. package/dist/components/TabList.stories.cjs.js +1 -1
  74. package/dist/components/TabList.stories.es.js +100 -87
  75. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  76. package/dist/components/TextInput/TextInput.es.js +1 -1
  77. package/dist/components/index.cjs.js +1 -1
  78. package/dist/components/index.es.js +240 -235
  79. package/dist/composeClasses-B_ETVugV.cjs +1 -0
  80. package/dist/composeClasses-zmPRtZOg.js +16 -0
  81. package/dist/createSvgIcon-B6bEgasO.js +249 -0
  82. package/dist/createSvgIcon-C92jLZ0q.cjs +2 -0
  83. package/dist/createSvgIcon-Cdsg9tFu.js +88 -0
  84. package/dist/createSvgIcon-CrOALbij.cjs +1 -0
  85. package/dist/extendSxProp-BpSXIdup.js +37 -0
  86. package/dist/extendSxProp-DVE8Tgj8.cjs +1 -0
  87. package/dist/{fr-CXEmlY0d.js → fr-D92L3a1M.js} +13 -13
  88. package/dist/{fr-C4bcUC-9.cjs → fr-EMw1nUC-.cjs} +1 -1
  89. package/dist/identifier-7NboR24y.cjs +59 -0
  90. package/dist/identifier-Bsv46xiT.js +2930 -0
  91. package/dist/index-C9spydU3.js +89 -0
  92. package/dist/index-DHDspyh-.cjs +1 -0
  93. package/dist/index.cjs.js +1 -1
  94. package/dist/index.es.js +238 -233
  95. package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
  96. package/dist/{refType-DiVIFcsY.js → refType-BnS1d2D8.js} +1 -1
  97. package/dist/{refType-D1DDOFsy.cjs → refType-YgbJS0xl.cjs} +1 -1
  98. package/dist/useControlled-Bf7_InaL.cjs +3 -0
  99. package/dist/useControlled-D59BLg1S.js +48 -0
  100. package/dist/useEventCallback-BgMlqKLP.js +14 -0
  101. package/dist/useEventCallback-CrCf96iG.cjs +1 -0
  102. package/dist/useId-CyGZMA-F.js +19 -0
  103. package/dist/useId-D5Txt-1B.cjs +1 -0
  104. package/dist/useTheme-A9inJAFh.cjs +1 -0
  105. package/dist/useTheme-C0nMwKpp.js +128 -0
  106. package/dist/{useTheme-1gSw-INq.js → useTheme-DzMeSzHc.js} +5 -5
  107. package/dist/useTheme-Zq6D7sUp.cjs +1 -0
  108. package/dist/useThemeProps-YFPF1eJp.js +40 -0
  109. package/dist/useThemeProps-r2yCksSx.cjs +1 -0
  110. package/package.json +15 -15
  111. package/dist/Box-2ZrLOc7U.cjs +0 -1
  112. package/dist/Button-HyZp1VKI.js +0 -359
  113. package/dist/Button-NhaA68Of.cjs +0 -1
  114. package/dist/ButtonBase-CnINN-P4.cjs +0 -75
  115. package/dist/ButtonBase-cOL6Mpcp.js +0 -827
  116. package/dist/CircularProgress-01RZzfpF.cjs +0 -28
  117. package/dist/CircularProgress-DO4r9-x8.js +0 -217
  118. package/dist/DatePicker-DZBeZYG6.cjs +0 -19
  119. package/dist/DefaultButton-BMmuKPgA.cjs +0 -1
  120. package/dist/DefaultButton-CKY6tuni.js +0 -258
  121. package/dist/IconButton-3v-0zgZW.cjs +0 -2
  122. package/dist/IconButton-BBfmzBP6.js +0 -184
  123. package/dist/InputAdornment-DHmtETz3.cjs +0 -1
  124. package/dist/InputBase-BpGQgBej.cjs +0 -3
  125. package/dist/InputBase-COUxfhh1.js +0 -794
  126. package/dist/Stack-D9IYPfJ8.cjs +0 -1
  127. package/dist/Tabs-Blo-8Ro5.js +0 -1091
  128. package/dist/Tabs-D0e7cB4l.cjs +0 -4
  129. package/dist/TextField-8AuRLRIK.cjs +0 -12
  130. package/dist/Tooltip-Cp3Dh6LR.cjs +0 -95
  131. package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
  132. package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
  133. package/dist/Typography-DjrvRhOr.js +0 -178
  134. package/dist/Typography-YHooSvuR.cjs +0 -1
  135. package/dist/createStyled--XbpooZB.js +0 -142
  136. package/dist/createStyled-CuYz_ckk.cjs +0 -1
  137. package/dist/createSvgIcon-CUiH3cta.cjs +0 -1
  138. package/dist/createSvgIcon-D29Io9jD.js +0 -183
  139. package/dist/createSvgIcon-DTc4Xvfk.cjs +0 -2
  140. package/dist/createSvgIcon-DvOXtgXV.js +0 -76
  141. package/dist/identifier-CAQ9PWqs.js +0 -3046
  142. package/dist/identifier-CWIj084w.cjs +0 -50
  143. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  144. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  145. package/dist/styled-Bt4oYVnF.cjs +0 -17
  146. package/dist/styled-Co-8YWfm.js +0 -533
  147. package/dist/useControlled-DKpcyPsg.cjs +0 -3
  148. package/dist/useControlled-DoRrpN8o.js +0 -48
  149. package/dist/useId-BW-oWmul.js +0 -19
  150. package/dist/useId-Cw0TtD-8.cjs +0 -1
  151. package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
  152. package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
  153. package/dist/useTheme-Dm6RnXrf.cjs +0 -1
  154. package/dist/useTheme-HJhneR9g.js +0 -99
  155. package/dist/useTheme-T2P7WhLG.cjs +0 -1
  156. package/dist/useThemeProps-BKIVQv3E.js +0 -17
  157. package/dist/useThemeProps-BfZ3lLQs.js +0 -27
  158. package/dist/useThemeProps-BpFUkYqe.cjs +0 -1
  159. package/dist/useThemeProps-Co5ylM0H.cjs +0 -1
  160. package/dist/useTimeout-BdvDipeg.js +0 -47
  161. package/dist/useTimeout-XUWYBnl6.cjs +0 -1
@@ -0,0 +1,1222 @@
1
+ import * as c from "react";
2
+ import { I as pt, J as ft, K as Wt, L as W, P as e } from "./identifier-Bsv46xiT.js";
3
+ import { s as L, m as bt, u as ht, c as mt, e as ne } from "./DefaultPropsProvider-QV6PDjPd.js";
4
+ import { jsxs as q, jsx as x } from "react/jsx-runtime";
5
+ import { B as kt } from "./ButtonBase-D0vqeM8I.js";
6
+ import { u as re } from "./unsupportedProp-BuVD30Gh.js";
7
+ import { a as $t, b as nt, u as le } from "./useTheme-C0nMwKpp.js";
8
+ import { u as se } from "./useForkRef-DwN_Iz9R.js";
9
+ import { o as zt, d as Dt, a as ae } from "./ownerWindow-BoRkeomM.js";
10
+ import { u as dt } from "./useEventCallback-BgMlqKLP.js";
11
+ import { r as ie } from "./refType-BnS1d2D8.js";
12
+ import { c as At } from "./createSvgIcon-B6bEgasO.js";
13
+ function ce(o) {
14
+ return pt("MuiTab", o);
15
+ }
16
+ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), T = de, ue = (o) => {
17
+ const {
18
+ classes: t,
19
+ textColor: l,
20
+ fullWidth: d,
21
+ wrapped: i,
22
+ icon: u,
23
+ label: b,
24
+ selected: h,
25
+ disabled: f
26
+ } = o, S = {
27
+ root: ["root", u && b && "labelIcon", `textColor${Wt(l)}`, d && "fullWidth", i && "wrapped", h && "selected", f && "disabled"],
28
+ icon: ["iconWrapper", "icon"]
29
+ };
30
+ return mt(S, ce, t);
31
+ }, pe = L(kt, {
32
+ name: "MuiTab",
33
+ slot: "Root",
34
+ overridesResolver: (o, t) => {
35
+ const {
36
+ ownerState: l
37
+ } = o;
38
+ return [t.root, l.label && l.icon && t.labelIcon, t[`textColor${Wt(l.textColor)}`], l.fullWidth && t.fullWidth, l.wrapped && t.wrapped, {
39
+ [`& .${T.iconWrapper}`]: t.iconWrapper
40
+ }, {
41
+ [`& .${T.icon}`]: t.icon
42
+ }];
43
+ }
44
+ })(bt(({
45
+ theme: o
46
+ }) => ({
47
+ ...o.typography.button,
48
+ maxWidth: 360,
49
+ minWidth: 90,
50
+ position: "relative",
51
+ minHeight: 48,
52
+ flexShrink: 0,
53
+ padding: "12px 16px",
54
+ overflow: "hidden",
55
+ whiteSpace: "normal",
56
+ textAlign: "center",
57
+ lineHeight: 1.25,
58
+ variants: [{
59
+ props: ({
60
+ ownerState: t
61
+ }) => t.label && (t.iconPosition === "top" || t.iconPosition === "bottom"),
62
+ style: {
63
+ flexDirection: "column"
64
+ }
65
+ }, {
66
+ props: ({
67
+ ownerState: t
68
+ }) => t.label && t.iconPosition !== "top" && t.iconPosition !== "bottom",
69
+ style: {
70
+ flexDirection: "row"
71
+ }
72
+ }, {
73
+ props: ({
74
+ ownerState: t
75
+ }) => t.icon && t.label,
76
+ style: {
77
+ minHeight: 72,
78
+ paddingTop: 9,
79
+ paddingBottom: 9
80
+ }
81
+ }, {
82
+ props: ({
83
+ ownerState: t,
84
+ iconPosition: l
85
+ }) => t.icon && t.label && l === "top",
86
+ style: {
87
+ [`& > .${T.icon}`]: {
88
+ marginBottom: 6
89
+ }
90
+ }
91
+ }, {
92
+ props: ({
93
+ ownerState: t,
94
+ iconPosition: l
95
+ }) => t.icon && t.label && l === "bottom",
96
+ style: {
97
+ [`& > .${T.icon}`]: {
98
+ marginTop: 6
99
+ }
100
+ }
101
+ }, {
102
+ props: ({
103
+ ownerState: t,
104
+ iconPosition: l
105
+ }) => t.icon && t.label && l === "start",
106
+ style: {
107
+ [`& > .${T.icon}`]: {
108
+ marginRight: o.spacing(1)
109
+ }
110
+ }
111
+ }, {
112
+ props: ({
113
+ ownerState: t,
114
+ iconPosition: l
115
+ }) => t.icon && t.label && l === "end",
116
+ style: {
117
+ [`& > .${T.icon}`]: {
118
+ marginLeft: o.spacing(1)
119
+ }
120
+ }
121
+ }, {
122
+ props: {
123
+ textColor: "inherit"
124
+ },
125
+ style: {
126
+ color: "inherit",
127
+ opacity: 0.6,
128
+ // same opacity as theme.palette.text.secondary
129
+ [`&.${T.selected}`]: {
130
+ opacity: 1
131
+ },
132
+ [`&.${T.disabled}`]: {
133
+ opacity: (o.vars || o).palette.action.disabledOpacity
134
+ }
135
+ }
136
+ }, {
137
+ props: {
138
+ textColor: "primary"
139
+ },
140
+ style: {
141
+ color: (o.vars || o).palette.text.secondary,
142
+ [`&.${T.selected}`]: {
143
+ color: (o.vars || o).palette.primary.main
144
+ },
145
+ [`&.${T.disabled}`]: {
146
+ color: (o.vars || o).palette.text.disabled
147
+ }
148
+ }
149
+ }, {
150
+ props: {
151
+ textColor: "secondary"
152
+ },
153
+ style: {
154
+ color: (o.vars || o).palette.text.secondary,
155
+ [`&.${T.selected}`]: {
156
+ color: (o.vars || o).palette.secondary.main
157
+ },
158
+ [`&.${T.disabled}`]: {
159
+ color: (o.vars || o).palette.text.disabled
160
+ }
161
+ }
162
+ }, {
163
+ props: ({
164
+ ownerState: t
165
+ }) => t.fullWidth,
166
+ style: {
167
+ flexShrink: 1,
168
+ flexGrow: 1,
169
+ flexBasis: 0,
170
+ maxWidth: "none"
171
+ }
172
+ }, {
173
+ props: ({
174
+ ownerState: t
175
+ }) => t.wrapped,
176
+ style: {
177
+ fontSize: o.typography.pxToRem(12)
178
+ }
179
+ }]
180
+ }))), Ft = /* @__PURE__ */ c.forwardRef(function(t, l) {
181
+ const d = ht({
182
+ props: t,
183
+ name: "MuiTab"
184
+ }), {
185
+ className: i,
186
+ disabled: u = !1,
187
+ disableFocusRipple: b = !1,
188
+ // eslint-disable-next-line react/prop-types
189
+ fullWidth: h,
190
+ icon: f,
191
+ iconPosition: S = "top",
192
+ // eslint-disable-next-line react/prop-types
193
+ indicator: v,
194
+ label: y,
195
+ onChange: m,
196
+ onClick: C,
197
+ onFocus: k,
198
+ // eslint-disable-next-line react/prop-types
199
+ selected: I,
200
+ // eslint-disable-next-line react/prop-types
201
+ selectionFollowsFocus: g,
202
+ // eslint-disable-next-line react/prop-types
203
+ textColor: j = "inherit",
204
+ value: M,
205
+ wrapped: rt = !1,
206
+ ...H
207
+ } = d, U = {
208
+ ...d,
209
+ disabled: u,
210
+ disableFocusRipple: b,
211
+ selected: I,
212
+ icon: !!f,
213
+ iconPosition: S,
214
+ label: !!y,
215
+ fullWidth: h,
216
+ textColor: j,
217
+ wrapped: rt
218
+ }, V = ue(U), $ = f && y && /* @__PURE__ */ c.isValidElement(f) ? /* @__PURE__ */ c.cloneElement(f, {
219
+ className: W(V.icon, f.props.className)
220
+ }) : f, G = (R) => {
221
+ !I && m && m(R, M), C && C(R);
222
+ }, N = (R) => {
223
+ g && !I && m && m(R, M), k && k(R);
224
+ };
225
+ return /* @__PURE__ */ q(pe, {
226
+ focusRipple: !b,
227
+ className: W(V.root, i),
228
+ ref: l,
229
+ role: "tab",
230
+ "aria-selected": I,
231
+ disabled: u,
232
+ onClick: G,
233
+ onFocus: N,
234
+ ownerState: U,
235
+ tabIndex: I ? 0 : -1,
236
+ ...H,
237
+ children: [S === "top" || S === "start" ? /* @__PURE__ */ q(c.Fragment, {
238
+ children: [$, y]
239
+ }) : /* @__PURE__ */ q(c.Fragment, {
240
+ children: [y, $]
241
+ }), v]
242
+ });
243
+ });
244
+ process.env.NODE_ENV !== "production" && (Ft.propTypes = {
245
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
246
+ // │ These PropTypes are generated from the TypeScript type definitions. │
247
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
248
+ // └─────────────────────────────────────────────────────────────────────┘
249
+ /**
250
+ * This prop isn't supported.
251
+ * Use the `component` prop if you need to change the children structure.
252
+ */
253
+ children: re,
254
+ /**
255
+ * Override or extend the styles applied to the component.
256
+ */
257
+ classes: e.object,
258
+ /**
259
+ * @ignore
260
+ */
261
+ className: e.string,
262
+ /**
263
+ * If `true`, the component is disabled.
264
+ * @default false
265
+ */
266
+ disabled: e.bool,
267
+ /**
268
+ * If `true`, the keyboard focus ripple is disabled.
269
+ * @default false
270
+ */
271
+ disableFocusRipple: e.bool,
272
+ /**
273
+ * If `true`, the ripple effect is disabled.
274
+ *
275
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
276
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
277
+ * @default false
278
+ */
279
+ disableRipple: e.bool,
280
+ /**
281
+ * The icon to display.
282
+ */
283
+ icon: e.oneOfType([e.element, e.string]),
284
+ /**
285
+ * The position of the icon relative to the label.
286
+ * @default 'top'
287
+ */
288
+ iconPosition: e.oneOf(["bottom", "end", "start", "top"]),
289
+ /**
290
+ * The label element.
291
+ */
292
+ label: e.node,
293
+ /**
294
+ * @ignore
295
+ */
296
+ onChange: e.func,
297
+ /**
298
+ * @ignore
299
+ */
300
+ onClick: e.func,
301
+ /**
302
+ * @ignore
303
+ */
304
+ onFocus: e.func,
305
+ /**
306
+ * The system prop that allows defining system overrides as well as additional CSS styles.
307
+ */
308
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
309
+ /**
310
+ * You can provide your own value. Otherwise, we fallback to the child position index.
311
+ */
312
+ value: e.any,
313
+ /**
314
+ * Tab labels appear in a single row.
315
+ * They can use a second line if needed.
316
+ * @default false
317
+ */
318
+ wrapped: e.bool
319
+ });
320
+ const je = Ft, fe = At(/* @__PURE__ */ x("path", {
321
+ d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
322
+ }), "KeyboardArrowLeft"), be = At(/* @__PURE__ */ x("path", {
323
+ d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
324
+ }), "KeyboardArrowRight");
325
+ function he(o) {
326
+ return (1 + Math.sin(Math.PI * o - Math.PI / 2)) / 2;
327
+ }
328
+ function me(o, t, l, d = {}, i = () => {
329
+ }) {
330
+ const {
331
+ ease: u = he,
332
+ duration: b = 300
333
+ // standard
334
+ } = d;
335
+ let h = null;
336
+ const f = t[o];
337
+ let S = !1;
338
+ const v = () => {
339
+ S = !0;
340
+ }, y = (m) => {
341
+ if (S) {
342
+ i(new Error("Animation cancelled"));
343
+ return;
344
+ }
345
+ h === null && (h = m);
346
+ const C = Math.min(1, (m - h) / b);
347
+ if (t[o] = u(C) * (l - f) + f, C >= 1) {
348
+ requestAnimationFrame(() => {
349
+ i(null);
350
+ });
351
+ return;
352
+ }
353
+ requestAnimationFrame(y);
354
+ };
355
+ return f === l ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(y), v);
356
+ }
357
+ const Se = {
358
+ width: 99,
359
+ height: 99,
360
+ position: "absolute",
361
+ top: -9999,
362
+ overflow: "scroll"
363
+ };
364
+ function Lt(o) {
365
+ const {
366
+ onChange: t,
367
+ ...l
368
+ } = o, d = c.useRef(), i = c.useRef(null), u = () => {
369
+ d.current = i.current.offsetHeight - i.current.clientHeight;
370
+ };
371
+ return se(() => {
372
+ const b = Dt(() => {
373
+ const f = d.current;
374
+ u(), f !== d.current && t(d.current);
375
+ }), h = zt(i.current);
376
+ return h.addEventListener("resize", b), () => {
377
+ b.clear(), h.removeEventListener("resize", b);
378
+ };
379
+ }, [t]), c.useEffect(() => {
380
+ u(), t(d.current);
381
+ }, [t]), /* @__PURE__ */ x("div", {
382
+ style: Se,
383
+ ref: i,
384
+ ...l
385
+ });
386
+ }
387
+ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
388
+ onChange: e.func.isRequired
389
+ });
390
+ function ve(o) {
391
+ return pt("MuiTabScrollButton", o);
392
+ }
393
+ const ye = ft("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), ge = (o) => {
394
+ const {
395
+ classes: t,
396
+ orientation: l,
397
+ disabled: d
398
+ } = o;
399
+ return mt({
400
+ root: ["root", l, d && "disabled"]
401
+ }, ve, t);
402
+ }, Te = L(kt, {
403
+ name: "MuiTabScrollButton",
404
+ slot: "Root",
405
+ overridesResolver: (o, t) => {
406
+ const {
407
+ ownerState: l
408
+ } = o;
409
+ return [t.root, l.orientation && t[l.orientation]];
410
+ }
411
+ })({
412
+ width: 40,
413
+ flexShrink: 0,
414
+ opacity: 0.8,
415
+ [`&.${ye.disabled}`]: {
416
+ opacity: 0
417
+ },
418
+ variants: [{
419
+ props: {
420
+ orientation: "vertical"
421
+ },
422
+ style: {
423
+ width: "100%",
424
+ height: 40,
425
+ "& svg": {
426
+ transform: "var(--TabScrollButton-svgRotate)"
427
+ }
428
+ }
429
+ }]
430
+ }), jt = /* @__PURE__ */ c.forwardRef(function(t, l) {
431
+ const d = ht({
432
+ props: t,
433
+ name: "MuiTabScrollButton"
434
+ }), {
435
+ className: i,
436
+ slots: u = {},
437
+ slotProps: b = {},
438
+ direction: h,
439
+ orientation: f,
440
+ disabled: S,
441
+ ...v
442
+ } = d, y = $t(), m = {
443
+ isRtl: y,
444
+ ...d
445
+ }, C = ge(m), k = u.StartScrollButtonIcon ?? fe, I = u.EndScrollButtonIcon ?? be, g = nt({
446
+ elementType: k,
447
+ externalSlotProps: b.startScrollButtonIcon,
448
+ additionalProps: {
449
+ fontSize: "small"
450
+ },
451
+ ownerState: m
452
+ }), j = nt({
453
+ elementType: I,
454
+ externalSlotProps: b.endScrollButtonIcon,
455
+ additionalProps: {
456
+ fontSize: "small"
457
+ },
458
+ ownerState: m
459
+ });
460
+ return /* @__PURE__ */ x(Te, {
461
+ component: "div",
462
+ className: W(C.root, i),
463
+ ref: l,
464
+ role: null,
465
+ ownerState: m,
466
+ tabIndex: null,
467
+ ...v,
468
+ style: {
469
+ ...v.style,
470
+ ...f === "vertical" && {
471
+ "--TabScrollButton-svgRotate": `rotate(${y ? -90 : 90}deg)`
472
+ }
473
+ },
474
+ children: h === "left" ? /* @__PURE__ */ x(k, {
475
+ ...g
476
+ }) : /* @__PURE__ */ x(I, {
477
+ ...j
478
+ })
479
+ });
480
+ });
481
+ process.env.NODE_ENV !== "production" && (jt.propTypes = {
482
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
483
+ // │ These PropTypes are generated from the TypeScript type definitions. │
484
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
485
+ // └─────────────────────────────────────────────────────────────────────┘
486
+ /**
487
+ * The content of the component.
488
+ */
489
+ children: e.node,
490
+ /**
491
+ * Override or extend the styles applied to the component.
492
+ */
493
+ classes: e.object,
494
+ /**
495
+ * @ignore
496
+ */
497
+ className: e.string,
498
+ /**
499
+ * The direction the button should indicate.
500
+ */
501
+ direction: e.oneOf(["left", "right"]).isRequired,
502
+ /**
503
+ * If `true`, the component is disabled.
504
+ * @default false
505
+ */
506
+ disabled: e.bool,
507
+ /**
508
+ * The component orientation (layout flow direction).
509
+ */
510
+ orientation: e.oneOf(["horizontal", "vertical"]).isRequired,
511
+ /**
512
+ * The extra props for the slot components.
513
+ * You can override the existing props or add new ones.
514
+ * @default {}
515
+ */
516
+ slotProps: e.shape({
517
+ endScrollButtonIcon: e.oneOfType([e.func, e.object]),
518
+ startScrollButtonIcon: e.oneOfType([e.func, e.object])
519
+ }),
520
+ /**
521
+ * The components used for each slot inside.
522
+ * @default {}
523
+ */
524
+ slots: e.shape({
525
+ EndScrollButtonIcon: e.elementType,
526
+ StartScrollButtonIcon: e.elementType
527
+ }),
528
+ /**
529
+ * @ignore
530
+ */
531
+ style: e.object,
532
+ /**
533
+ * The system prop that allows defining system overrides as well as additional CSS styles.
534
+ */
535
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
536
+ });
537
+ function we(o) {
538
+ return pt("MuiTabs", o);
539
+ }
540
+ const Be = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), ut = Be, Rt = (o, t) => o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : o.firstChild, Ot = (o, t) => o === t ? o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : o.lastChild, ot = (o, t, l) => {
541
+ let d = !1, i = l(o, t);
542
+ for (; i; ) {
543
+ if (i === o.firstChild) {
544
+ if (d)
545
+ return;
546
+ d = !0;
547
+ }
548
+ const u = i.disabled || i.getAttribute("aria-disabled") === "true";
549
+ if (!i.hasAttribute("tabindex") || u)
550
+ i = l(o, i);
551
+ else {
552
+ i.focus();
553
+ return;
554
+ }
555
+ }
556
+ }, xe = (o) => {
557
+ const {
558
+ vertical: t,
559
+ fixed: l,
560
+ hideScrollbar: d,
561
+ scrollableX: i,
562
+ scrollableY: u,
563
+ centered: b,
564
+ scrollButtonsHideMobile: h,
565
+ classes: f
566
+ } = o;
567
+ return mt({
568
+ root: ["root", t && "vertical"],
569
+ scroller: ["scroller", l && "fixed", d && "hideScrollbar", i && "scrollableX", u && "scrollableY"],
570
+ flexContainer: ["flexContainer", t && "flexContainerVertical", b && "centered"],
571
+ indicator: ["indicator"],
572
+ scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
573
+ scrollableX: [i && "scrollableX"],
574
+ hideScrollbar: [d && "hideScrollbar"]
575
+ }, we, f);
576
+ }, Ce = L("div", {
577
+ name: "MuiTabs",
578
+ slot: "Root",
579
+ overridesResolver: (o, t) => {
580
+ const {
581
+ ownerState: l
582
+ } = o;
583
+ return [{
584
+ [`& .${ut.scrollButtons}`]: t.scrollButtons
585
+ }, {
586
+ [`& .${ut.scrollButtons}`]: l.scrollButtonsHideMobile && t.scrollButtonsHideMobile
587
+ }, t.root, l.vertical && t.vertical];
588
+ }
589
+ })(bt(({
590
+ theme: o
591
+ }) => ({
592
+ overflow: "hidden",
593
+ minHeight: 48,
594
+ // Add iOS momentum scrolling for iOS < 13.0
595
+ WebkitOverflowScrolling: "touch",
596
+ display: "flex",
597
+ variants: [{
598
+ props: ({
599
+ ownerState: t
600
+ }) => t.vertical,
601
+ style: {
602
+ flexDirection: "column"
603
+ }
604
+ }, {
605
+ props: ({
606
+ ownerState: t
607
+ }) => t.scrollButtonsHideMobile,
608
+ style: {
609
+ [`& .${ut.scrollButtons}`]: {
610
+ [o.breakpoints.down("sm")]: {
611
+ display: "none"
612
+ }
613
+ }
614
+ }
615
+ }]
616
+ }))), Ie = L("div", {
617
+ name: "MuiTabs",
618
+ slot: "Scroller",
619
+ overridesResolver: (o, t) => {
620
+ const {
621
+ ownerState: l
622
+ } = o;
623
+ return [t.scroller, l.fixed && t.fixed, l.hideScrollbar && t.hideScrollbar, l.scrollableX && t.scrollableX, l.scrollableY && t.scrollableY];
624
+ }
625
+ })({
626
+ position: "relative",
627
+ display: "inline-block",
628
+ flex: "1 1 auto",
629
+ whiteSpace: "nowrap",
630
+ variants: [{
631
+ props: ({
632
+ ownerState: o
633
+ }) => o.fixed,
634
+ style: {
635
+ overflowX: "hidden",
636
+ width: "100%"
637
+ }
638
+ }, {
639
+ props: ({
640
+ ownerState: o
641
+ }) => o.hideScrollbar,
642
+ style: {
643
+ // Hide dimensionless scrollbar on macOS
644
+ scrollbarWidth: "none",
645
+ // Firefox
646
+ "&::-webkit-scrollbar": {
647
+ display: "none"
648
+ // Safari + Chrome
649
+ }
650
+ }
651
+ }, {
652
+ props: ({
653
+ ownerState: o
654
+ }) => o.scrollableX,
655
+ style: {
656
+ overflowX: "auto",
657
+ overflowY: "hidden"
658
+ }
659
+ }, {
660
+ props: ({
661
+ ownerState: o
662
+ }) => o.scrollableY,
663
+ style: {
664
+ overflowY: "auto",
665
+ overflowX: "hidden"
666
+ }
667
+ }]
668
+ }), Ee = L("div", {
669
+ name: "MuiTabs",
670
+ slot: "FlexContainer",
671
+ overridesResolver: (o, t) => {
672
+ const {
673
+ ownerState: l
674
+ } = o;
675
+ return [t.flexContainer, l.vertical && t.flexContainerVertical, l.centered && t.centered];
676
+ }
677
+ })({
678
+ display: "flex",
679
+ variants: [{
680
+ props: ({
681
+ ownerState: o
682
+ }) => o.vertical,
683
+ style: {
684
+ flexDirection: "column"
685
+ }
686
+ }, {
687
+ props: ({
688
+ ownerState: o
689
+ }) => o.centered,
690
+ style: {
691
+ justifyContent: "center"
692
+ }
693
+ }]
694
+ }), Me = L("span", {
695
+ name: "MuiTabs",
696
+ slot: "Indicator",
697
+ overridesResolver: (o, t) => t.indicator
698
+ })(bt(({
699
+ theme: o
700
+ }) => ({
701
+ position: "absolute",
702
+ height: 2,
703
+ bottom: 0,
704
+ width: "100%",
705
+ transition: o.transitions.create(),
706
+ variants: [{
707
+ props: {
708
+ indicatorColor: "primary"
709
+ },
710
+ style: {
711
+ backgroundColor: (o.vars || o).palette.primary.main
712
+ }
713
+ }, {
714
+ props: {
715
+ indicatorColor: "secondary"
716
+ },
717
+ style: {
718
+ backgroundColor: (o.vars || o).palette.secondary.main
719
+ }
720
+ }, {
721
+ props: ({
722
+ ownerState: t
723
+ }) => t.vertical,
724
+ style: {
725
+ height: "100%",
726
+ width: 2,
727
+ right: 0
728
+ }
729
+ }]
730
+ }))), Re = L(Lt)({
731
+ overflowX: "auto",
732
+ overflowY: "hidden",
733
+ // Hide dimensionless scrollbar on macOS
734
+ scrollbarWidth: "none",
735
+ // Firefox
736
+ "&::-webkit-scrollbar": {
737
+ display: "none"
738
+ // Safari + Chrome
739
+ }
740
+ }), Nt = {};
741
+ let Pt = !1;
742
+ const Ht = /* @__PURE__ */ c.forwardRef(function(t, l) {
743
+ const d = ht({
744
+ props: t,
745
+ name: "MuiTabs"
746
+ }), i = le(), u = $t(), {
747
+ "aria-label": b,
748
+ "aria-labelledby": h,
749
+ action: f,
750
+ centered: S = !1,
751
+ children: v,
752
+ className: y,
753
+ component: m = "div",
754
+ allowScrollButtonsMobile: C = !1,
755
+ indicatorColor: k = "primary",
756
+ onChange: I,
757
+ orientation: g = "horizontal",
758
+ ScrollButtonComponent: j = jt,
759
+ scrollButtons: M = "auto",
760
+ selectionFollowsFocus: rt,
761
+ slots: H = {},
762
+ slotProps: U = {},
763
+ TabIndicatorProps: V = {},
764
+ TabScrollButtonProps: $ = {},
765
+ textColor: G = "primary",
766
+ value: N,
767
+ variant: R = "standard",
768
+ visibleScrollbar: lt = !1,
769
+ ...Vt
770
+ } = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", J = B ? "top" : "left", Q = B ? "bottom" : "right", st = B ? "clientHeight" : "clientWidth", Y = B ? "height" : "width", z = {
771
+ ...d,
772
+ component: m,
773
+ allowScrollButtonsMobile: C,
774
+ indicatorColor: k,
775
+ orientation: g,
776
+ vertical: B,
777
+ scrollButtons: M,
778
+ textColor: G,
779
+ variant: R,
780
+ visibleScrollbar: lt,
781
+ fixed: !w,
782
+ hideScrollbar: w && !lt,
783
+ scrollableX: w && !B,
784
+ scrollableY: w && B,
785
+ centered: S && !w,
786
+ scrollButtonsHideMobile: !C
787
+ }, P = xe(z), Ut = nt({
788
+ elementType: H.StartScrollButtonIcon,
789
+ externalSlotProps: U.startScrollButtonIcon,
790
+ ownerState: z
791
+ }), Xt = nt({
792
+ elementType: H.EndScrollButtonIcon,
793
+ externalSlotProps: U.endScrollButtonIcon,
794
+ ownerState: z
795
+ });
796
+ process.env.NODE_ENV !== "production" && S && w && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
797
+ const [St, Yt] = c.useState(!1), [D, vt] = c.useState(Nt), [yt, Kt] = c.useState(!1), [gt, _t] = c.useState(!1), [Tt, qt] = c.useState(!1), [wt, Gt] = c.useState({
798
+ overflow: "hidden",
799
+ scrollbarWidth: 0
800
+ }), Z = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null), Bt = () => {
801
+ const n = O.current;
802
+ let r;
803
+ if (n) {
804
+ const a = n.getBoundingClientRect();
805
+ r = {
806
+ clientWidth: n.clientWidth,
807
+ scrollLeft: n.scrollLeft,
808
+ scrollTop: n.scrollTop,
809
+ scrollWidth: n.scrollWidth,
810
+ top: a.top,
811
+ bottom: a.bottom,
812
+ left: a.left,
813
+ right: a.right
814
+ };
815
+ }
816
+ let s;
817
+ if (n && N !== !1) {
818
+ const a = A.current.children;
819
+ if (a.length > 0) {
820
+ const p = a[Z.get(N)];
821
+ process.env.NODE_ENV !== "production" && (p || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${N}".`, Z.keys ? `You can provide one of the following values: ${Array.from(Z.keys()).join(", ")}.` : null].join(`
822
+ `))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Pt && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
823
+ r.clientWidth !== 0 && (r = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${N}") 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(`
824
+ `)), Pt = !0);
825
+ }
826
+ }
827
+ return {
828
+ tabsMeta: r,
829
+ tabMeta: s
830
+ };
831
+ }, K = dt(() => {
832
+ const {
833
+ tabsMeta: n,
834
+ tabMeta: r
835
+ } = Bt();
836
+ let s = 0, a;
837
+ B ? (a = "top", r && n && (s = r.top - n.top + n.scrollTop)) : (a = u ? "right" : "left", r && n && (s = (u ? -1 : 1) * (r[a] - n[a] + n.scrollLeft)));
838
+ const p = {
839
+ [a]: s,
840
+ // May be wrong until the font is loaded.
841
+ [Y]: r ? r[Y] : 0
842
+ };
843
+ if (typeof D[a] != "number" || typeof D[Y] != "number")
844
+ vt(p);
845
+ else {
846
+ const E = Math.abs(D[a] - p[a]), F = Math.abs(D[Y] - p[Y]);
847
+ (E >= 1 || F >= 1) && vt(p);
848
+ }
849
+ }), at = (n, {
850
+ animation: r = !0
851
+ } = {}) => {
852
+ r ? me(X, O.current, n, {
853
+ duration: i.transitions.duration.standard
854
+ }) : O.current[X] = n;
855
+ }, xt = (n) => {
856
+ let r = O.current[X];
857
+ B ? r += n : r += n * (u ? -1 : 1), at(r);
858
+ }, Ct = () => {
859
+ const n = O.current[st];
860
+ let r = 0;
861
+ const s = Array.from(A.current.children);
862
+ for (let a = 0; a < s.length; a += 1) {
863
+ const p = s[a];
864
+ if (r + p[st] > n) {
865
+ a === 0 && (r = n);
866
+ break;
867
+ }
868
+ r += p[st];
869
+ }
870
+ return r;
871
+ }, Jt = () => {
872
+ xt(-1 * Ct());
873
+ }, Qt = () => {
874
+ xt(Ct());
875
+ }, Zt = c.useCallback((n) => {
876
+ Gt({
877
+ overflow: null,
878
+ scrollbarWidth: n
879
+ });
880
+ }, []), te = () => {
881
+ const n = {};
882
+ n.scrollbarSizeListener = w ? /* @__PURE__ */ x(Re, {
883
+ onChange: Zt,
884
+ className: W(P.scrollableX, P.hideScrollbar)
885
+ }) : null;
886
+ const s = w && (M === "auto" && (yt || gt) || M === !0);
887
+ return n.scrollButtonStart = s ? /* @__PURE__ */ x(j, {
888
+ slots: {
889
+ StartScrollButtonIcon: H.StartScrollButtonIcon
890
+ },
891
+ slotProps: {
892
+ startScrollButtonIcon: Ut
893
+ },
894
+ orientation: g,
895
+ direction: u ? "right" : "left",
896
+ onClick: Jt,
897
+ disabled: !yt,
898
+ ...$,
899
+ className: W(P.scrollButtons, $.className)
900
+ }) : null, n.scrollButtonEnd = s ? /* @__PURE__ */ x(j, {
901
+ slots: {
902
+ EndScrollButtonIcon: H.EndScrollButtonIcon
903
+ },
904
+ slotProps: {
905
+ endScrollButtonIcon: Xt
906
+ },
907
+ orientation: g,
908
+ direction: u ? "left" : "right",
909
+ onClick: Qt,
910
+ disabled: !gt,
911
+ ...$,
912
+ className: W(P.scrollButtons, $.className)
913
+ }) : null, n;
914
+ }, It = dt((n) => {
915
+ const {
916
+ tabsMeta: r,
917
+ tabMeta: s
918
+ } = Bt();
919
+ if (!(!s || !r)) {
920
+ if (s[J] < r[J]) {
921
+ const a = r[X] + (s[J] - r[J]);
922
+ at(a, {
923
+ animation: n
924
+ });
925
+ } else if (s[Q] > r[Q]) {
926
+ const a = r[X] + (s[Q] - r[Q]);
927
+ at(a, {
928
+ animation: n
929
+ });
930
+ }
931
+ }
932
+ }), tt = dt(() => {
933
+ w && M !== !1 && qt(!Tt);
934
+ });
935
+ c.useEffect(() => {
936
+ const n = Dt(() => {
937
+ O.current && K();
938
+ });
939
+ let r;
940
+ const s = (E) => {
941
+ E.forEach((F) => {
942
+ F.removedNodes.forEach((_) => {
943
+ r == null || r.unobserve(_);
944
+ }), F.addedNodes.forEach((_) => {
945
+ r == null || r.observe(_);
946
+ });
947
+ }), n(), tt();
948
+ }, a = zt(O.current);
949
+ a.addEventListener("resize", n);
950
+ let p;
951
+ return typeof ResizeObserver < "u" && (r = new ResizeObserver(n), Array.from(A.current.children).forEach((E) => {
952
+ r.observe(E);
953
+ })), typeof MutationObserver < "u" && (p = new MutationObserver(s), p.observe(A.current, {
954
+ childList: !0
955
+ })), () => {
956
+ n.clear(), a.removeEventListener("resize", n), p == null || p.disconnect(), r == null || r.disconnect();
957
+ };
958
+ }, [K, tt]), c.useEffect(() => {
959
+ const n = Array.from(A.current.children), r = n.length;
960
+ if (typeof IntersectionObserver < "u" && r > 0 && w && M !== !1) {
961
+ const s = n[0], a = n[r - 1], p = {
962
+ root: O.current,
963
+ threshold: 0.99
964
+ }, E = (ct) => {
965
+ Kt(!ct[0].isIntersecting);
966
+ }, F = new IntersectionObserver(E, p);
967
+ F.observe(s);
968
+ const _ = (ct) => {
969
+ _t(!ct[0].isIntersecting);
970
+ }, Mt = new IntersectionObserver(_, p);
971
+ return Mt.observe(a), () => {
972
+ F.disconnect(), Mt.disconnect();
973
+ };
974
+ }
975
+ }, [w, M, Tt, v == null ? void 0 : v.length]), c.useEffect(() => {
976
+ Yt(!0);
977
+ }, []), c.useEffect(() => {
978
+ K();
979
+ }), c.useEffect(() => {
980
+ It(Nt !== D);
981
+ }, [It, D]), c.useImperativeHandle(f, () => ({
982
+ updateIndicator: K,
983
+ updateScrollButtons: tt
984
+ }), [K, tt]);
985
+ const Et = /* @__PURE__ */ x(Me, {
986
+ ...V,
987
+ className: W(P.indicator, V.className),
988
+ ownerState: z,
989
+ style: {
990
+ ...D,
991
+ ...V.style
992
+ }
993
+ });
994
+ let et = 0;
995
+ const ee = c.Children.map(v, (n) => {
996
+ if (!/* @__PURE__ */ c.isValidElement(n))
997
+ return null;
998
+ process.env.NODE_ENV !== "production" && ne.isFragment(n) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
999
+ `));
1000
+ const r = n.props.value === void 0 ? et : n.props.value;
1001
+ Z.set(r, et);
1002
+ const s = r === N;
1003
+ return et += 1, /* @__PURE__ */ c.cloneElement(n, {
1004
+ fullWidth: R === "fullWidth",
1005
+ indicator: s && !St && Et,
1006
+ selected: s,
1007
+ selectionFollowsFocus: rt,
1008
+ onChange: I,
1009
+ textColor: G,
1010
+ value: r,
1011
+ ...et === 1 && N === !1 && !n.props.tabIndex ? {
1012
+ tabIndex: 0
1013
+ } : {}
1014
+ });
1015
+ }), oe = (n) => {
1016
+ const r = A.current, s = ae(r).activeElement;
1017
+ if (s.getAttribute("role") !== "tab")
1018
+ return;
1019
+ let p = g === "horizontal" ? "ArrowLeft" : "ArrowUp", E = g === "horizontal" ? "ArrowRight" : "ArrowDown";
1020
+ switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"), n.key) {
1021
+ case p:
1022
+ n.preventDefault(), ot(r, s, Ot);
1023
+ break;
1024
+ case E:
1025
+ n.preventDefault(), ot(r, s, Rt);
1026
+ break;
1027
+ case "Home":
1028
+ n.preventDefault(), ot(r, null, Rt);
1029
+ break;
1030
+ case "End":
1031
+ n.preventDefault(), ot(r, null, Ot);
1032
+ break;
1033
+ }
1034
+ }, it = te();
1035
+ return /* @__PURE__ */ q(Ce, {
1036
+ className: W(P.root, y),
1037
+ ownerState: z,
1038
+ ref: l,
1039
+ as: m,
1040
+ ...Vt,
1041
+ children: [it.scrollButtonStart, it.scrollbarSizeListener, /* @__PURE__ */ q(Ie, {
1042
+ className: P.scroller,
1043
+ ownerState: z,
1044
+ style: {
1045
+ overflow: wt.overflow,
1046
+ [B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]: lt ? void 0 : -wt.scrollbarWidth
1047
+ },
1048
+ ref: O,
1049
+ children: [/* @__PURE__ */ x(Ee, {
1050
+ "aria-label": b,
1051
+ "aria-labelledby": h,
1052
+ "aria-orientation": g === "vertical" ? "vertical" : null,
1053
+ className: P.flexContainer,
1054
+ ownerState: z,
1055
+ onKeyDown: oe,
1056
+ ref: A,
1057
+ role: "tablist",
1058
+ children: ee
1059
+ }), St && Et]
1060
+ }), it.scrollButtonEnd]
1061
+ });
1062
+ });
1063
+ process.env.NODE_ENV !== "production" && (Ht.propTypes = {
1064
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
1065
+ // │ These PropTypes are generated from the TypeScript type definitions. │
1066
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1067
+ // └─────────────────────────────────────────────────────────────────────┘
1068
+ /**
1069
+ * Callback fired when the component mounts.
1070
+ * This is useful when you want to trigger an action programmatically.
1071
+ * It supports two actions: `updateIndicator()` and `updateScrollButtons()`
1072
+ *
1073
+ * @param {object} actions This object contains all possible actions
1074
+ * that can be triggered programmatically.
1075
+ */
1076
+ action: ie,
1077
+ /**
1078
+ * If `true`, the scroll buttons aren't forced hidden on mobile.
1079
+ * By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
1080
+ * @default false
1081
+ */
1082
+ allowScrollButtonsMobile: e.bool,
1083
+ /**
1084
+ * The label for the Tabs as a string.
1085
+ */
1086
+ "aria-label": e.string,
1087
+ /**
1088
+ * An id or list of ids separated by a space that label the Tabs.
1089
+ */
1090
+ "aria-labelledby": e.string,
1091
+ /**
1092
+ * If `true`, the tabs are centered.
1093
+ * This prop is intended for large views.
1094
+ * @default false
1095
+ */
1096
+ centered: e.bool,
1097
+ /**
1098
+ * The content of the component.
1099
+ */
1100
+ children: e.node,
1101
+ /**
1102
+ * Override or extend the styles applied to the component.
1103
+ */
1104
+ classes: e.object,
1105
+ /**
1106
+ * @ignore
1107
+ */
1108
+ className: e.string,
1109
+ /**
1110
+ * The component used for the root node.
1111
+ * Either a string to use a HTML element or a component.
1112
+ */
1113
+ component: e.elementType,
1114
+ /**
1115
+ * Determines the color of the indicator.
1116
+ * @default 'primary'
1117
+ */
1118
+ indicatorColor: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
1119
+ /**
1120
+ * Callback fired when the value changes.
1121
+ *
1122
+ * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
1123
+ * @param {any} value We default to the index of the child (number)
1124
+ */
1125
+ onChange: e.func,
1126
+ /**
1127
+ * The component orientation (layout flow direction).
1128
+ * @default 'horizontal'
1129
+ */
1130
+ orientation: e.oneOf(["horizontal", "vertical"]),
1131
+ /**
1132
+ * The component used to render the scroll buttons.
1133
+ * @default TabScrollButton
1134
+ */
1135
+ ScrollButtonComponent: e.elementType,
1136
+ /**
1137
+ * Determine behavior of scroll buttons when tabs are set to scroll:
1138
+ *
1139
+ * - `auto` will only present them when not all the items are visible.
1140
+ * - `true` will always present them.
1141
+ * - `false` will never present them.
1142
+ *
1143
+ * By default the scroll buttons are hidden on mobile.
1144
+ * This behavior can be disabled with `allowScrollButtonsMobile`.
1145
+ * @default 'auto'
1146
+ */
1147
+ scrollButtons: e.oneOf(["auto", !1, !0]),
1148
+ /**
1149
+ * If `true` the selected tab changes on focus. Otherwise it only
1150
+ * changes on activation.
1151
+ */
1152
+ selectionFollowsFocus: e.bool,
1153
+ /**
1154
+ * The extra props for the slot components.
1155
+ * You can override the existing props or add new ones.
1156
+ * @default {}
1157
+ */
1158
+ slotProps: e.shape({
1159
+ endScrollButtonIcon: e.oneOfType([e.func, e.object]),
1160
+ startScrollButtonIcon: e.oneOfType([e.func, e.object])
1161
+ }),
1162
+ /**
1163
+ * The components used for each slot inside.
1164
+ * @default {}
1165
+ */
1166
+ slots: e.shape({
1167
+ EndScrollButtonIcon: e.elementType,
1168
+ StartScrollButtonIcon: e.elementType
1169
+ }),
1170
+ /**
1171
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1172
+ */
1173
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1174
+ /**
1175
+ * Props applied to the tab indicator element.
1176
+ * @default {}
1177
+ */
1178
+ TabIndicatorProps: e.object,
1179
+ /**
1180
+ * Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
1181
+ * @default {}
1182
+ */
1183
+ TabScrollButtonProps: e.object,
1184
+ /**
1185
+ * Determines the color of the `Tab`.
1186
+ * @default 'primary'
1187
+ */
1188
+ textColor: e.oneOf(["inherit", "primary", "secondary"]),
1189
+ /**
1190
+ * The value of the currently selected `Tab`.
1191
+ * If you don't want any selected `Tab`, you can set this prop to `false`.
1192
+ */
1193
+ value: e.any,
1194
+ /**
1195
+ * Determines additional display behavior of the tabs:
1196
+ *
1197
+ * - `scrollable` will invoke scrolling properties and allow for horizontally
1198
+ * scrolling (or swiping) of the tab bar.
1199
+ * - `fullWidth` will make the tabs grow to use all the available space,
1200
+ * which should be used for small views, like on mobile.
1201
+ * - `standard` will render the default state.
1202
+ * @default 'standard'
1203
+ */
1204
+ variant: e.oneOf(["fullWidth", "scrollable", "standard"]),
1205
+ /**
1206
+ * If `true`, the scrollbar is visible. It can be useful when displaying
1207
+ * a long vertical list of tabs.
1208
+ * @default false
1209
+ */
1210
+ visibleScrollbar: e.bool
1211
+ });
1212
+ const He = Ht;
1213
+ export {
1214
+ be as K,
1215
+ je as T,
1216
+ He as a,
1217
+ ut as b,
1218
+ we as c,
1219
+ fe as d,
1220
+ ce as g,
1221
+ T as t
1222
+ };