@cgi-learning-hub/ui 1.2.0-dev.1726477884 → 1.2.0-dev.1730714589
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.
- package/dist/{Backdrop-CQM1mw_6.cjs → Backdrop-2u2eUNhW.cjs} +1 -1
- package/dist/{Backdrop-B8-BL3jx.js → Backdrop-NYR-wJpx.js} +93 -94
- package/dist/Box-BM-kEZ6w.cjs +1 -0
- package/dist/{Box-CDFdOx1a.js → Box-BOwB0WGP.js} +22 -23
- package/dist/Button-DF4FLm9c.cjs +1 -0
- package/dist/{Button-CvUAFzG_.js → Button-DOz72eRZ.js} +39 -40
- package/dist/{ButtonBase-BMflDb9x.js → ButtonBase-Cc4QJr0W.js} +3 -3
- package/dist/{ButtonBase-0-NuO2tj.cjs → ButtonBase-D-LBunY3.cjs} +1 -1
- package/dist/{CircularProgress-DdMAzWVy.cjs → CircularProgress-Bc4Jb-wh.cjs} +7 -7
- package/dist/{CircularProgress-Dmg3SNAP.js → CircularProgress-CQAqrfVo.js} +42 -43
- package/dist/{DatePicker-BEtxyoTT.cjs → DatePicker-B7Kxulzh.cjs} +15 -15
- package/dist/{DatePicker-Bz8V-O3o.js → DatePicker-DLbJ-Y35.js} +624 -627
- package/dist/DefaultButton-BiytyhNr.cjs +1 -0
- package/dist/{DefaultButton-D0x7we4I.js → DefaultButton-xBiX39mb.js} +22 -22
- package/dist/DefaultPropsProvider-3gIWHkeE.js +483 -0
- package/dist/DefaultPropsProvider-D5gdl0ZP.cjs +17 -0
- package/dist/IconButton-C1Q6F-WI.cjs +2 -0
- package/dist/{IconButton-DzYEBDbu.js → IconButton-DQ115lN0.js} +29 -29
- package/dist/{InputAdornment-x1WIM2Yz.js → InputAdornment-C91s059c.js} +4 -4
- package/dist/{InputAdornment-CbLgi938.cjs → InputAdornment-CQEOPpj_.cjs} +1 -1
- package/dist/{InputBase-C_CFype-.cjs → InputBase-BhTvM4pD.cjs} +1 -1
- package/dist/{InputBase-C1BvXunK.js → InputBase-BqiRpsZm.js} +4 -4
- package/dist/{Stack-Bvr_N6-t.cjs → Stack-C-pSEK_U.cjs} +1 -1
- package/dist/{Stack-CJLo9S4b.js → Stack-CRf_NOj5.js} +33 -34
- package/dist/{Tabs-Cvnp3jpR.js → Tabs-ClaQRksF.js} +348 -349
- package/dist/Tabs-DQQR_Rej.cjs +4 -0
- package/dist/TextField-ESuNQ6_j.cjs +12 -0
- package/dist/{TextField-B-GxVtVu.js → TextField-poQmKhLJ.js} +421 -429
- package/dist/{Tooltip-CzaHtHhc.js → Tooltip-h4eHRca2.js} +1926 -1943
- package/dist/Tooltip-iexr64ud.cjs +100 -0
- package/dist/{Typography-APp4bmiX.js → Typography-Brk7us7e.js} +40 -41
- package/dist/Typography-DXUkMq5K.cjs +1 -0
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +3 -3
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +3 -3
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +2 -2
- package/dist/components/DefaultButton/index.cjs.js +1 -1
- package/dist/components/DefaultButton/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +79 -76
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +6 -6
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +2 -2
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/TabList.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.es.js +6 -6
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +32 -32
- package/dist/{createSvgIcon-DJwoygjS.cjs → createSvgIcon-BHNwYp0k.cjs} +1 -1
- package/dist/{createSvgIcon-VDwq_j-P.cjs → createSvgIcon-C9v8HKxu.cjs} +1 -1
- package/dist/{createSvgIcon-CdFwTtth.js → createSvgIcon-CWZXMIY6.js} +2 -2
- package/dist/{createSvgIcon-B7p9QbNy.js → createSvgIcon-ampgkdBR.js} +3 -3
- package/dist/{extendSxProp-RHa13SsY.js → extendSxProp-Cr6SqfyU.js} +1 -1
- package/dist/{extendSxProp-CVoS5ruY.cjs → extendSxProp-h_vH_Efx.cjs} +1 -1
- package/dist/{fr-CUBngGd5.js → fr-CrUmNQ8y.js} +1 -1
- package/dist/{fr-7GJn1ht4.cjs → fr-Dh4vpkIL.cjs} +1 -1
- package/dist/identifier-lU3TQXv0.cjs +59 -0
- package/dist/{identifier-nbk7LEJv.js → identifier-vL3mZxtO.js} +1107 -910
- package/dist/{index-D7Jwk3AM.cjs → index-B4-7REI3.cjs} +1 -1
- package/dist/{index-C4eGfgCg.js → index-CrWaTytV.js} +4 -4
- package/dist/{index-D40qjF4v.cjs → index-DJfvQgvG.cjs} +1 -1
- package/dist/{index-CMQY-kBc.js → index-PJSlkMUh.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +114 -114
- package/dist/{refType-DFnOH04O.js → refType-CslmN23s.js} +1 -1
- package/dist/{refType-DdcYgSUO.cjs → refType-xt9KmJ1e.cjs} +1 -1
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useId-DNXtOFeX.cjs +1 -0
- package/dist/{useTheme-CLNwQ3Yk.js → useTheme-BZN9T64v.js} +1 -1
- package/dist/{useTheme-cn0PfKIP.cjs → useTheme-BcsinTgi.cjs} +1 -1
- package/dist/{useTheme-DmvRg71t.js → useTheme-Cs6W-67J.js} +3 -3
- package/dist/{useTheme-CeUi--X1.cjs → useTheme-Cy30-54x.cjs} +1 -1
- package/dist/{useThemeProps-DE5uuT3t.js → useThemeProps-CjDUEYiA.js} +3 -3
- package/dist/{useThemeProps-Bw-cwTu1.cjs → useThemeProps-DxowsTec.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Box-C2gLk_UH.cjs +0 -1
- package/dist/Button-BzvFp4sx.cjs +0 -1
- package/dist/DefaultButton-C73SCGlE.cjs +0 -1
- package/dist/DefaultPropsProvider-5NdZnDS0.cjs +0 -17
- package/dist/DefaultPropsProvider-CU--SVzB.js +0 -458
- package/dist/IconButton-B7jxxXOK.cjs +0 -2
- package/dist/Tabs-wj4N9aH3.cjs +0 -4
- package/dist/TextField-Bf0iVvZT.cjs +0 -12
- package/dist/Tooltip-CIuc_nUD.cjs +0 -100
- package/dist/Typography-DEzPHYLs.cjs +0 -1
- package/dist/identifier-icEThk5F.cjs +0 -59
- package/dist/useId-CyGZMA-F.js +0 -19
- package/dist/useId-D5Txt-1B.cjs +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { I as
|
|
3
|
-
import { m as
|
|
2
|
+
import { I as pe, J as fe, K as We, L as W, P as t } from "./identifier-vL3mZxtO.js";
|
|
3
|
+
import { m as be } from "./memoTheme-O-hJ9iBh.js";
|
|
4
4
|
import { jsxs as q, jsx as x } from "react/jsx-runtime";
|
|
5
|
-
import { s as L, u as
|
|
6
|
-
import { B as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { o as
|
|
12
|
-
import { u as
|
|
13
|
-
import { r as
|
|
14
|
-
import { c as
|
|
15
|
-
function
|
|
16
|
-
return
|
|
5
|
+
import { s as L, u as he, c as me, e as tt } from "./DefaultPropsProvider-3gIWHkeE.js";
|
|
6
|
+
import { B as ke } from "./ButtonBase-Cc4QJr0W.js";
|
|
7
|
+
import { u as ot } from "./unsupportedProp-BuVD30Gh.js";
|
|
8
|
+
import { u as ze, a as re } from "./index-PJSlkMUh.js";
|
|
9
|
+
import { u as rt } from "./useTheme-Cs6W-67J.js";
|
|
10
|
+
import { u as nt } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
11
|
+
import { o as De, d as $e, a as lt } from "./ownerWindow-BoRkeomM.js";
|
|
12
|
+
import { u as de } from "./useEventCallback-BAQJJ3ye.js";
|
|
13
|
+
import { r as st } from "./refType-CslmN23s.js";
|
|
14
|
+
import { c as Ae } from "./createSvgIcon-CWZXMIY6.js";
|
|
15
|
+
function at(o) {
|
|
16
|
+
return pe("MuiTab", o);
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const T = fe("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), it = (o) => {
|
|
19
19
|
const {
|
|
20
|
-
classes:
|
|
20
|
+
classes: e,
|
|
21
21
|
textColor: l,
|
|
22
22
|
fullWidth: d,
|
|
23
23
|
wrapped: i,
|
|
@@ -26,24 +26,24 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
26
26
|
selected: h,
|
|
27
27
|
disabled: f
|
|
28
28
|
} = o, S = {
|
|
29
|
-
root: ["root", u && b && "labelIcon", `textColor${
|
|
29
|
+
root: ["root", u && b && "labelIcon", `textColor${We(l)}`, d && "fullWidth", i && "wrapped", h && "selected", f && "disabled"],
|
|
30
30
|
icon: ["iconWrapper", "icon"]
|
|
31
31
|
};
|
|
32
|
-
return
|
|
33
|
-
},
|
|
32
|
+
return me(S, at, e);
|
|
33
|
+
}, ct = L(ke, {
|
|
34
34
|
name: "MuiTab",
|
|
35
35
|
slot: "Root",
|
|
36
|
-
overridesResolver: (o,
|
|
36
|
+
overridesResolver: (o, e) => {
|
|
37
37
|
const {
|
|
38
38
|
ownerState: l
|
|
39
39
|
} = o;
|
|
40
|
-
return [
|
|
41
|
-
[`& .${T.iconWrapper}`]:
|
|
40
|
+
return [e.root, l.label && l.icon && e.labelIcon, e[`textColor${We(l.textColor)}`], l.fullWidth && e.fullWidth, l.wrapped && e.wrapped, {
|
|
41
|
+
[`& .${T.iconWrapper}`]: e.iconWrapper
|
|
42
42
|
}, {
|
|
43
|
-
[`& .${T.icon}`]:
|
|
43
|
+
[`& .${T.icon}`]: e.icon
|
|
44
44
|
}];
|
|
45
45
|
}
|
|
46
|
-
})(
|
|
46
|
+
})(be(({
|
|
47
47
|
theme: o
|
|
48
48
|
}) => ({
|
|
49
49
|
...o.typography.button,
|
|
@@ -59,22 +59,22 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
59
59
|
lineHeight: 1.25,
|
|
60
60
|
variants: [{
|
|
61
61
|
props: ({
|
|
62
|
-
ownerState:
|
|
63
|
-
}) =>
|
|
62
|
+
ownerState: e
|
|
63
|
+
}) => e.label && (e.iconPosition === "top" || e.iconPosition === "bottom"),
|
|
64
64
|
style: {
|
|
65
65
|
flexDirection: "column"
|
|
66
66
|
}
|
|
67
67
|
}, {
|
|
68
68
|
props: ({
|
|
69
|
-
ownerState:
|
|
70
|
-
}) =>
|
|
69
|
+
ownerState: e
|
|
70
|
+
}) => e.label && e.iconPosition !== "top" && e.iconPosition !== "bottom",
|
|
71
71
|
style: {
|
|
72
72
|
flexDirection: "row"
|
|
73
73
|
}
|
|
74
74
|
}, {
|
|
75
75
|
props: ({
|
|
76
|
-
ownerState:
|
|
77
|
-
}) =>
|
|
76
|
+
ownerState: e
|
|
77
|
+
}) => e.icon && e.label,
|
|
78
78
|
style: {
|
|
79
79
|
minHeight: 72,
|
|
80
80
|
paddingTop: 9,
|
|
@@ -82,9 +82,9 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
82
82
|
}
|
|
83
83
|
}, {
|
|
84
84
|
props: ({
|
|
85
|
-
ownerState:
|
|
85
|
+
ownerState: e,
|
|
86
86
|
iconPosition: l
|
|
87
|
-
}) =>
|
|
87
|
+
}) => e.icon && e.label && l === "top",
|
|
88
88
|
style: {
|
|
89
89
|
[`& > .${T.icon}`]: {
|
|
90
90
|
marginBottom: 6
|
|
@@ -92,9 +92,9 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
92
92
|
}
|
|
93
93
|
}, {
|
|
94
94
|
props: ({
|
|
95
|
-
ownerState:
|
|
95
|
+
ownerState: e,
|
|
96
96
|
iconPosition: l
|
|
97
|
-
}) =>
|
|
97
|
+
}) => e.icon && e.label && l === "bottom",
|
|
98
98
|
style: {
|
|
99
99
|
[`& > .${T.icon}`]: {
|
|
100
100
|
marginTop: 6
|
|
@@ -102,9 +102,9 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
102
102
|
}
|
|
103
103
|
}, {
|
|
104
104
|
props: ({
|
|
105
|
-
ownerState:
|
|
105
|
+
ownerState: e,
|
|
106
106
|
iconPosition: l
|
|
107
|
-
}) =>
|
|
107
|
+
}) => e.icon && e.label && l === "start",
|
|
108
108
|
style: {
|
|
109
109
|
[`& > .${T.icon}`]: {
|
|
110
110
|
marginRight: o.spacing(1)
|
|
@@ -112,9 +112,9 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
112
112
|
}
|
|
113
113
|
}, {
|
|
114
114
|
props: ({
|
|
115
|
-
ownerState:
|
|
115
|
+
ownerState: e,
|
|
116
116
|
iconPosition: l
|
|
117
|
-
}) =>
|
|
117
|
+
}) => e.icon && e.label && l === "end",
|
|
118
118
|
style: {
|
|
119
119
|
[`& > .${T.icon}`]: {
|
|
120
120
|
marginLeft: o.spacing(1)
|
|
@@ -163,8 +163,8 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
163
163
|
}
|
|
164
164
|
}, {
|
|
165
165
|
props: ({
|
|
166
|
-
ownerState:
|
|
167
|
-
}) =>
|
|
166
|
+
ownerState: e
|
|
167
|
+
}) => e.fullWidth,
|
|
168
168
|
style: {
|
|
169
169
|
flexShrink: 1,
|
|
170
170
|
flexGrow: 1,
|
|
@@ -173,15 +173,15 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
173
173
|
}
|
|
174
174
|
}, {
|
|
175
175
|
props: ({
|
|
176
|
-
ownerState:
|
|
177
|
-
}) =>
|
|
176
|
+
ownerState: e
|
|
177
|
+
}) => e.wrapped,
|
|
178
178
|
style: {
|
|
179
179
|
fontSize: o.typography.pxToRem(12)
|
|
180
180
|
}
|
|
181
181
|
}]
|
|
182
|
-
}))),
|
|
183
|
-
const d =
|
|
184
|
-
props:
|
|
182
|
+
}))), dt = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
183
|
+
const d = he({
|
|
184
|
+
props: e,
|
|
185
185
|
name: "MuiTab"
|
|
186
186
|
}), {
|
|
187
187
|
className: i,
|
|
@@ -204,7 +204,7 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
204
204
|
// eslint-disable-next-line react/prop-types
|
|
205
205
|
textColor: j = "inherit",
|
|
206
206
|
value: M,
|
|
207
|
-
wrapped:
|
|
207
|
+
wrapped: ne = !1,
|
|
208
208
|
...H
|
|
209
209
|
} = d, U = {
|
|
210
210
|
...d,
|
|
@@ -216,15 +216,15 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
216
216
|
label: !!y,
|
|
217
217
|
fullWidth: h,
|
|
218
218
|
textColor: j,
|
|
219
|
-
wrapped:
|
|
220
|
-
}, V =
|
|
219
|
+
wrapped: ne
|
|
220
|
+
}, V = it(U), z = f && y && /* @__PURE__ */ c.isValidElement(f) ? /* @__PURE__ */ c.cloneElement(f, {
|
|
221
221
|
className: W(V.icon, f.props.className)
|
|
222
222
|
}) : f, G = (R) => {
|
|
223
223
|
!I && m && m(R, M), C && C(R);
|
|
224
224
|
}, N = (R) => {
|
|
225
225
|
g && !I && m && m(R, M), k && k(R);
|
|
226
226
|
};
|
|
227
|
-
return /* @__PURE__ */ q(
|
|
227
|
+
return /* @__PURE__ */ q(ct, {
|
|
228
228
|
focusRipple: !b,
|
|
229
229
|
className: W(V.root, i),
|
|
230
230
|
ref: l,
|
|
@@ -237,13 +237,13 @@ const de = ft("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
|
|
|
237
237
|
tabIndex: I ? 0 : -1,
|
|
238
238
|
...H,
|
|
239
239
|
children: [S === "top" || S === "start" ? /* @__PURE__ */ q(c.Fragment, {
|
|
240
|
-
children: [
|
|
240
|
+
children: [z, y]
|
|
241
241
|
}) : /* @__PURE__ */ q(c.Fragment, {
|
|
242
|
-
children: [y,
|
|
242
|
+
children: [y, z]
|
|
243
243
|
}), v]
|
|
244
244
|
});
|
|
245
245
|
});
|
|
246
|
-
process.env.NODE_ENV !== "production" && (
|
|
246
|
+
process.env.NODE_ENV !== "production" && (dt.propTypes = {
|
|
247
247
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
248
248
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
249
249
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -252,25 +252,25 @@ process.env.NODE_ENV !== "production" && (Ft.propTypes = {
|
|
|
252
252
|
* This prop isn't supported.
|
|
253
253
|
* Use the `component` prop if you need to change the children structure.
|
|
254
254
|
*/
|
|
255
|
-
children:
|
|
255
|
+
children: ot,
|
|
256
256
|
/**
|
|
257
257
|
* Override or extend the styles applied to the component.
|
|
258
258
|
*/
|
|
259
|
-
classes:
|
|
259
|
+
classes: t.object,
|
|
260
260
|
/**
|
|
261
261
|
* @ignore
|
|
262
262
|
*/
|
|
263
|
-
className:
|
|
263
|
+
className: t.string,
|
|
264
264
|
/**
|
|
265
265
|
* If `true`, the component is disabled.
|
|
266
266
|
* @default false
|
|
267
267
|
*/
|
|
268
|
-
disabled:
|
|
268
|
+
disabled: t.bool,
|
|
269
269
|
/**
|
|
270
270
|
* If `true`, the keyboard focus ripple is disabled.
|
|
271
271
|
* @default false
|
|
272
272
|
*/
|
|
273
|
-
disableFocusRipple:
|
|
273
|
+
disableFocusRipple: t.bool,
|
|
274
274
|
/**
|
|
275
275
|
* If `true`, the ripple effect is disabled.
|
|
276
276
|
*
|
|
@@ -278,64 +278,64 @@ process.env.NODE_ENV !== "production" && (Ft.propTypes = {
|
|
|
278
278
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
279
279
|
* @default false
|
|
280
280
|
*/
|
|
281
|
-
disableRipple:
|
|
281
|
+
disableRipple: t.bool,
|
|
282
282
|
/**
|
|
283
283
|
* The icon to display.
|
|
284
284
|
*/
|
|
285
|
-
icon:
|
|
285
|
+
icon: t.oneOfType([t.element, t.string]),
|
|
286
286
|
/**
|
|
287
287
|
* The position of the icon relative to the label.
|
|
288
288
|
* @default 'top'
|
|
289
289
|
*/
|
|
290
|
-
iconPosition:
|
|
290
|
+
iconPosition: t.oneOf(["bottom", "end", "start", "top"]),
|
|
291
291
|
/**
|
|
292
292
|
* The label element.
|
|
293
293
|
*/
|
|
294
|
-
label:
|
|
294
|
+
label: t.node,
|
|
295
295
|
/**
|
|
296
296
|
* @ignore
|
|
297
297
|
*/
|
|
298
|
-
onChange:
|
|
298
|
+
onChange: t.func,
|
|
299
299
|
/**
|
|
300
300
|
* @ignore
|
|
301
301
|
*/
|
|
302
|
-
onClick:
|
|
302
|
+
onClick: t.func,
|
|
303
303
|
/**
|
|
304
304
|
* @ignore
|
|
305
305
|
*/
|
|
306
|
-
onFocus:
|
|
306
|
+
onFocus: t.func,
|
|
307
307
|
/**
|
|
308
308
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
309
309
|
*/
|
|
310
|
-
sx:
|
|
310
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
311
311
|
/**
|
|
312
312
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
313
313
|
*/
|
|
314
|
-
value:
|
|
314
|
+
value: t.any,
|
|
315
315
|
/**
|
|
316
316
|
* Tab labels appear in a single row.
|
|
317
317
|
* They can use a second line if needed.
|
|
318
318
|
* @default false
|
|
319
319
|
*/
|
|
320
|
-
wrapped:
|
|
320
|
+
wrapped: t.bool
|
|
321
321
|
});
|
|
322
|
-
const
|
|
322
|
+
const ut = Ae(/* @__PURE__ */ x("path", {
|
|
323
323
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
324
|
-
}), "KeyboardArrowLeft"),
|
|
324
|
+
}), "KeyboardArrowLeft"), pt = Ae(/* @__PURE__ */ x("path", {
|
|
325
325
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
326
326
|
}), "KeyboardArrowRight");
|
|
327
|
-
function
|
|
327
|
+
function ft(o) {
|
|
328
328
|
return (1 + Math.sin(Math.PI * o - Math.PI / 2)) / 2;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function bt(o, e, l, d = {}, i = () => {
|
|
331
331
|
}) {
|
|
332
332
|
const {
|
|
333
|
-
ease: u =
|
|
333
|
+
ease: u = ft,
|
|
334
334
|
duration: b = 300
|
|
335
335
|
// standard
|
|
336
336
|
} = d;
|
|
337
337
|
let h = null;
|
|
338
|
-
const f =
|
|
338
|
+
const f = e[o];
|
|
339
339
|
let S = !1;
|
|
340
340
|
const v = () => {
|
|
341
341
|
S = !0;
|
|
@@ -346,7 +346,7 @@ function me(o, t, l, d = {}, i = () => {
|
|
|
346
346
|
}
|
|
347
347
|
h === null && (h = m);
|
|
348
348
|
const C = Math.min(1, (m - h) / b);
|
|
349
|
-
if (
|
|
349
|
+
if (e[o] = u(C) * (l - f) + f, C >= 1) {
|
|
350
350
|
requestAnimationFrame(() => {
|
|
351
351
|
i(null);
|
|
352
352
|
});
|
|
@@ -356,65 +356,65 @@ function me(o, t, l, d = {}, i = () => {
|
|
|
356
356
|
};
|
|
357
357
|
return f === l ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(y), v);
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const ht = {
|
|
360
360
|
width: 99,
|
|
361
361
|
height: 99,
|
|
362
362
|
position: "absolute",
|
|
363
363
|
top: -9999,
|
|
364
364
|
overflow: "scroll"
|
|
365
365
|
};
|
|
366
|
-
function
|
|
366
|
+
function Fe(o) {
|
|
367
367
|
const {
|
|
368
|
-
onChange:
|
|
368
|
+
onChange: e,
|
|
369
369
|
...l
|
|
370
370
|
} = o, d = c.useRef(), i = c.useRef(null), u = () => {
|
|
371
371
|
d.current = i.current.offsetHeight - i.current.clientHeight;
|
|
372
372
|
};
|
|
373
|
-
return
|
|
374
|
-
const b =
|
|
373
|
+
return nt(() => {
|
|
374
|
+
const b = $e(() => {
|
|
375
375
|
const f = d.current;
|
|
376
|
-
u(), f !== d.current &&
|
|
377
|
-
}), h =
|
|
376
|
+
u(), f !== d.current && e(d.current);
|
|
377
|
+
}), h = De(i.current);
|
|
378
378
|
return h.addEventListener("resize", b), () => {
|
|
379
379
|
b.clear(), h.removeEventListener("resize", b);
|
|
380
380
|
};
|
|
381
|
-
}, [
|
|
382
|
-
u(),
|
|
383
|
-
}, [
|
|
384
|
-
style:
|
|
381
|
+
}, [e]), c.useEffect(() => {
|
|
382
|
+
u(), e(d.current);
|
|
383
|
+
}, [e]), /* @__PURE__ */ x("div", {
|
|
384
|
+
style: ht,
|
|
385
385
|
ref: i,
|
|
386
386
|
...l
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
-
process.env.NODE_ENV !== "production" && (
|
|
390
|
-
onChange:
|
|
389
|
+
process.env.NODE_ENV !== "production" && (Fe.propTypes = {
|
|
390
|
+
onChange: t.func.isRequired
|
|
391
391
|
});
|
|
392
|
-
function
|
|
393
|
-
return
|
|
392
|
+
function mt(o) {
|
|
393
|
+
return pe("MuiTabScrollButton", o);
|
|
394
394
|
}
|
|
395
|
-
const
|
|
395
|
+
const St = fe("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), vt = (o) => {
|
|
396
396
|
const {
|
|
397
|
-
classes:
|
|
397
|
+
classes: e,
|
|
398
398
|
orientation: l,
|
|
399
399
|
disabled: d
|
|
400
400
|
} = o;
|
|
401
|
-
return
|
|
401
|
+
return me({
|
|
402
402
|
root: ["root", l, d && "disabled"]
|
|
403
|
-
},
|
|
404
|
-
},
|
|
403
|
+
}, mt, e);
|
|
404
|
+
}, yt = L(ke, {
|
|
405
405
|
name: "MuiTabScrollButton",
|
|
406
406
|
slot: "Root",
|
|
407
|
-
overridesResolver: (o,
|
|
407
|
+
overridesResolver: (o, e) => {
|
|
408
408
|
const {
|
|
409
409
|
ownerState: l
|
|
410
410
|
} = o;
|
|
411
|
-
return [
|
|
411
|
+
return [e.root, l.orientation && e[l.orientation]];
|
|
412
412
|
}
|
|
413
413
|
})({
|
|
414
414
|
width: 40,
|
|
415
415
|
flexShrink: 0,
|
|
416
416
|
opacity: 0.8,
|
|
417
|
-
[`&.${
|
|
417
|
+
[`&.${St.disabled}`]: {
|
|
418
418
|
opacity: 0
|
|
419
419
|
},
|
|
420
420
|
variants: [{
|
|
@@ -429,9 +429,9 @@ const ye = ft("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
}]
|
|
432
|
-
}),
|
|
433
|
-
const d =
|
|
434
|
-
props:
|
|
432
|
+
}), Le = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
433
|
+
const d = he({
|
|
434
|
+
props: e,
|
|
435
435
|
name: "MuiTabScrollButton"
|
|
436
436
|
}), {
|
|
437
437
|
className: i,
|
|
@@ -441,17 +441,17 @@ const ye = ft("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
441
441
|
orientation: f,
|
|
442
442
|
disabled: S,
|
|
443
443
|
...v
|
|
444
|
-
} = d, y =
|
|
444
|
+
} = d, y = ze(), m = {
|
|
445
445
|
isRtl: y,
|
|
446
446
|
...d
|
|
447
|
-
}, C =
|
|
447
|
+
}, C = vt(m), k = u.StartScrollButtonIcon ?? ut, I = u.EndScrollButtonIcon ?? pt, g = re({
|
|
448
448
|
elementType: k,
|
|
449
449
|
externalSlotProps: b.startScrollButtonIcon,
|
|
450
450
|
additionalProps: {
|
|
451
451
|
fontSize: "small"
|
|
452
452
|
},
|
|
453
453
|
ownerState: m
|
|
454
|
-
}), j =
|
|
454
|
+
}), j = re({
|
|
455
455
|
elementType: I,
|
|
456
456
|
externalSlotProps: b.endScrollButtonIcon,
|
|
457
457
|
additionalProps: {
|
|
@@ -459,7 +459,7 @@ const ye = ft("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
459
459
|
},
|
|
460
460
|
ownerState: m
|
|
461
461
|
});
|
|
462
|
-
return /* @__PURE__ */ x(
|
|
462
|
+
return /* @__PURE__ */ x(yt, {
|
|
463
463
|
component: "div",
|
|
464
464
|
className: W(C.root, i),
|
|
465
465
|
ref: l,
|
|
@@ -480,7 +480,7 @@ const ye = ft("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
480
480
|
})
|
|
481
481
|
});
|
|
482
482
|
});
|
|
483
|
-
process.env.NODE_ENV !== "production" && (
|
|
483
|
+
process.env.NODE_ENV !== "production" && (Le.propTypes = {
|
|
484
484
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
485
485
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
486
486
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -488,59 +488,59 @@ process.env.NODE_ENV !== "production" && (jt.propTypes = {
|
|
|
488
488
|
/**
|
|
489
489
|
* The content of the component.
|
|
490
490
|
*/
|
|
491
|
-
children:
|
|
491
|
+
children: t.node,
|
|
492
492
|
/**
|
|
493
493
|
* Override or extend the styles applied to the component.
|
|
494
494
|
*/
|
|
495
|
-
classes:
|
|
495
|
+
classes: t.object,
|
|
496
496
|
/**
|
|
497
497
|
* @ignore
|
|
498
498
|
*/
|
|
499
|
-
className:
|
|
499
|
+
className: t.string,
|
|
500
500
|
/**
|
|
501
501
|
* The direction the button should indicate.
|
|
502
502
|
*/
|
|
503
|
-
direction:
|
|
503
|
+
direction: t.oneOf(["left", "right"]).isRequired,
|
|
504
504
|
/**
|
|
505
505
|
* If `true`, the component is disabled.
|
|
506
506
|
* @default false
|
|
507
507
|
*/
|
|
508
|
-
disabled:
|
|
508
|
+
disabled: t.bool,
|
|
509
509
|
/**
|
|
510
510
|
* The component orientation (layout flow direction).
|
|
511
511
|
*/
|
|
512
|
-
orientation:
|
|
512
|
+
orientation: t.oneOf(["horizontal", "vertical"]).isRequired,
|
|
513
513
|
/**
|
|
514
514
|
* The extra props for the slot components.
|
|
515
515
|
* You can override the existing props or add new ones.
|
|
516
516
|
* @default {}
|
|
517
517
|
*/
|
|
518
|
-
slotProps:
|
|
519
|
-
endScrollButtonIcon:
|
|
520
|
-
startScrollButtonIcon:
|
|
518
|
+
slotProps: t.shape({
|
|
519
|
+
endScrollButtonIcon: t.oneOfType([t.func, t.object]),
|
|
520
|
+
startScrollButtonIcon: t.oneOfType([t.func, t.object])
|
|
521
521
|
}),
|
|
522
522
|
/**
|
|
523
523
|
* The components used for each slot inside.
|
|
524
524
|
* @default {}
|
|
525
525
|
*/
|
|
526
|
-
slots:
|
|
527
|
-
EndScrollButtonIcon:
|
|
528
|
-
StartScrollButtonIcon:
|
|
526
|
+
slots: t.shape({
|
|
527
|
+
EndScrollButtonIcon: t.elementType,
|
|
528
|
+
StartScrollButtonIcon: t.elementType
|
|
529
529
|
}),
|
|
530
530
|
/**
|
|
531
531
|
* @ignore
|
|
532
532
|
*/
|
|
533
|
-
style:
|
|
533
|
+
style: t.object,
|
|
534
534
|
/**
|
|
535
535
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
536
536
|
*/
|
|
537
|
-
sx:
|
|
537
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
538
538
|
});
|
|
539
|
-
function
|
|
540
|
-
return
|
|
539
|
+
function gt(o) {
|
|
540
|
+
return pe("MuiTabs", o);
|
|
541
541
|
}
|
|
542
|
-
const
|
|
543
|
-
let d = !1, i = l(o,
|
|
542
|
+
const ue = fe("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), Re = (o, e) => o === e ? o.firstChild : e && e.nextElementSibling ? e.nextElementSibling : o.firstChild, Oe = (o, e) => o === e ? o.lastChild : e && e.previousElementSibling ? e.previousElementSibling : o.lastChild, oe = (o, e, l) => {
|
|
543
|
+
let d = !1, i = l(o, e);
|
|
544
544
|
for (; i; ) {
|
|
545
545
|
if (i === o.firstChild) {
|
|
546
546
|
if (d)
|
|
@@ -555,9 +555,9 @@ const Be = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
555
555
|
return;
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
},
|
|
558
|
+
}, Tt = (o) => {
|
|
559
559
|
const {
|
|
560
|
-
vertical:
|
|
560
|
+
vertical: e,
|
|
561
561
|
fixed: l,
|
|
562
562
|
hideScrollbar: d,
|
|
563
563
|
scrollableX: i,
|
|
@@ -566,29 +566,29 @@ const Be = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
566
566
|
scrollButtonsHideMobile: h,
|
|
567
567
|
classes: f
|
|
568
568
|
} = o;
|
|
569
|
-
return
|
|
570
|
-
root: ["root",
|
|
569
|
+
return me({
|
|
570
|
+
root: ["root", e && "vertical"],
|
|
571
571
|
scroller: ["scroller", l && "fixed", d && "hideScrollbar", i && "scrollableX", u && "scrollableY"],
|
|
572
|
-
flexContainer: ["flexContainer",
|
|
572
|
+
flexContainer: ["flexContainer", e && "flexContainerVertical", b && "centered"],
|
|
573
573
|
indicator: ["indicator"],
|
|
574
574
|
scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
|
|
575
575
|
scrollableX: [i && "scrollableX"],
|
|
576
576
|
hideScrollbar: [d && "hideScrollbar"]
|
|
577
|
-
},
|
|
578
|
-
},
|
|
577
|
+
}, gt, f);
|
|
578
|
+
}, wt = L("div", {
|
|
579
579
|
name: "MuiTabs",
|
|
580
580
|
slot: "Root",
|
|
581
|
-
overridesResolver: (o,
|
|
581
|
+
overridesResolver: (o, e) => {
|
|
582
582
|
const {
|
|
583
583
|
ownerState: l
|
|
584
584
|
} = o;
|
|
585
585
|
return [{
|
|
586
|
-
[`& .${
|
|
586
|
+
[`& .${ue.scrollButtons}`]: e.scrollButtons
|
|
587
587
|
}, {
|
|
588
|
-
[`& .${
|
|
589
|
-
},
|
|
588
|
+
[`& .${ue.scrollButtons}`]: l.scrollButtonsHideMobile && e.scrollButtonsHideMobile
|
|
589
|
+
}, e.root, l.vertical && e.vertical];
|
|
590
590
|
}
|
|
591
|
-
})(
|
|
591
|
+
})(be(({
|
|
592
592
|
theme: o
|
|
593
593
|
}) => ({
|
|
594
594
|
overflow: "hidden",
|
|
@@ -598,31 +598,31 @@ const Be = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
598
598
|
display: "flex",
|
|
599
599
|
variants: [{
|
|
600
600
|
props: ({
|
|
601
|
-
ownerState:
|
|
602
|
-
}) =>
|
|
601
|
+
ownerState: e
|
|
602
|
+
}) => e.vertical,
|
|
603
603
|
style: {
|
|
604
604
|
flexDirection: "column"
|
|
605
605
|
}
|
|
606
606
|
}, {
|
|
607
607
|
props: ({
|
|
608
|
-
ownerState:
|
|
609
|
-
}) =>
|
|
608
|
+
ownerState: e
|
|
609
|
+
}) => e.scrollButtonsHideMobile,
|
|
610
610
|
style: {
|
|
611
|
-
[`& .${
|
|
611
|
+
[`& .${ue.scrollButtons}`]: {
|
|
612
612
|
[o.breakpoints.down("sm")]: {
|
|
613
613
|
display: "none"
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
}]
|
|
618
|
-
}))),
|
|
618
|
+
}))), Bt = L("div", {
|
|
619
619
|
name: "MuiTabs",
|
|
620
620
|
slot: "Scroller",
|
|
621
|
-
overridesResolver: (o,
|
|
621
|
+
overridesResolver: (o, e) => {
|
|
622
622
|
const {
|
|
623
623
|
ownerState: l
|
|
624
624
|
} = o;
|
|
625
|
-
return [
|
|
625
|
+
return [e.scroller, l.fixed && e.fixed, l.hideScrollbar && e.hideScrollbar, l.scrollableX && e.scrollableX, l.scrollableY && e.scrollableY];
|
|
626
626
|
}
|
|
627
627
|
})({
|
|
628
628
|
position: "relative",
|
|
@@ -667,14 +667,14 @@ const Be = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
667
667
|
overflowX: "hidden"
|
|
668
668
|
}
|
|
669
669
|
}]
|
|
670
|
-
}),
|
|
670
|
+
}), xt = L("div", {
|
|
671
671
|
name: "MuiTabs",
|
|
672
672
|
slot: "FlexContainer",
|
|
673
|
-
overridesResolver: (o,
|
|
673
|
+
overridesResolver: (o, e) => {
|
|
674
674
|
const {
|
|
675
675
|
ownerState: l
|
|
676
676
|
} = o;
|
|
677
|
-
return [
|
|
677
|
+
return [e.flexContainer, l.vertical && e.flexContainerVertical, l.centered && e.centered];
|
|
678
678
|
}
|
|
679
679
|
})({
|
|
680
680
|
display: "flex",
|
|
@@ -693,11 +693,11 @@ const Be = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
693
693
|
justifyContent: "center"
|
|
694
694
|
}
|
|
695
695
|
}]
|
|
696
|
-
}),
|
|
696
|
+
}), Ct = L("span", {
|
|
697
697
|
name: "MuiTabs",
|
|
698
698
|
slot: "Indicator",
|
|
699
|
-
overridesResolver: (o,
|
|
700
|
-
})(
|
|
699
|
+
overridesResolver: (o, e) => e.indicator
|
|
700
|
+
})(be(({
|
|
701
701
|
theme: o
|
|
702
702
|
}) => ({
|
|
703
703
|
position: "absolute",
|
|
@@ -721,15 +721,15 @@ const Be = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
721
721
|
}
|
|
722
722
|
}, {
|
|
723
723
|
props: ({
|
|
724
|
-
ownerState:
|
|
725
|
-
}) =>
|
|
724
|
+
ownerState: e
|
|
725
|
+
}) => e.vertical,
|
|
726
726
|
style: {
|
|
727
727
|
height: "100%",
|
|
728
728
|
width: 2,
|
|
729
729
|
right: 0
|
|
730
730
|
}
|
|
731
731
|
}]
|
|
732
|
-
}))),
|
|
732
|
+
}))), It = L(Fe)({
|
|
733
733
|
overflowX: "auto",
|
|
734
734
|
overflowY: "hidden",
|
|
735
735
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -739,13 +739,13 @@ const Be = ft("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
739
739
|
display: "none"
|
|
740
740
|
// Safari + Chrome
|
|
741
741
|
}
|
|
742
|
-
}),
|
|
743
|
-
let
|
|
744
|
-
const
|
|
745
|
-
const d =
|
|
746
|
-
props:
|
|
742
|
+
}), Ne = {};
|
|
743
|
+
let Pe = !1;
|
|
744
|
+
const Et = /* @__PURE__ */ c.forwardRef(function(e, l) {
|
|
745
|
+
const d = he({
|
|
746
|
+
props: e,
|
|
747
747
|
name: "MuiTabs"
|
|
748
|
-
}), i =
|
|
748
|
+
}), i = rt(), u = ze(), {
|
|
749
749
|
"aria-label": b,
|
|
750
750
|
"aria-labelledby": h,
|
|
751
751
|
action: f,
|
|
@@ -757,19 +757,19 @@ const Ht = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
757
757
|
indicatorColor: k = "primary",
|
|
758
758
|
onChange: I,
|
|
759
759
|
orientation: g = "horizontal",
|
|
760
|
-
ScrollButtonComponent: j =
|
|
760
|
+
ScrollButtonComponent: j = Le,
|
|
761
761
|
scrollButtons: M = "auto",
|
|
762
|
-
selectionFollowsFocus:
|
|
762
|
+
selectionFollowsFocus: ne,
|
|
763
763
|
slots: H = {},
|
|
764
764
|
slotProps: U = {},
|
|
765
765
|
TabIndicatorProps: V = {},
|
|
766
|
-
TabScrollButtonProps:
|
|
766
|
+
TabScrollButtonProps: z = {},
|
|
767
767
|
textColor: G = "primary",
|
|
768
768
|
value: N,
|
|
769
769
|
variant: R = "standard",
|
|
770
|
-
visibleScrollbar:
|
|
771
|
-
...
|
|
772
|
-
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", J = B ? "top" : "left", Q = B ? "bottom" : "right",
|
|
770
|
+
visibleScrollbar: le = !1,
|
|
771
|
+
...je
|
|
772
|
+
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", J = B ? "top" : "left", Q = B ? "bottom" : "right", se = B ? "clientHeight" : "clientWidth", Y = B ? "height" : "width", D = {
|
|
773
773
|
...d,
|
|
774
774
|
component: m,
|
|
775
775
|
allowScrollButtonsMobile: C,
|
|
@@ -779,36 +779,36 @@ const Ht = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
779
779
|
scrollButtons: M,
|
|
780
780
|
textColor: G,
|
|
781
781
|
variant: R,
|
|
782
|
-
visibleScrollbar:
|
|
782
|
+
visibleScrollbar: le,
|
|
783
783
|
fixed: !w,
|
|
784
|
-
hideScrollbar: w && !
|
|
784
|
+
hideScrollbar: w && !le,
|
|
785
785
|
scrollableX: w && !B,
|
|
786
786
|
scrollableY: w && B,
|
|
787
787
|
centered: S && !w,
|
|
788
788
|
scrollButtonsHideMobile: !C
|
|
789
|
-
}, P =
|
|
789
|
+
}, P = Tt(D), He = re({
|
|
790
790
|
elementType: H.StartScrollButtonIcon,
|
|
791
791
|
externalSlotProps: U.startScrollButtonIcon,
|
|
792
|
-
ownerState:
|
|
793
|
-
}),
|
|
792
|
+
ownerState: D
|
|
793
|
+
}), Ve = re({
|
|
794
794
|
elementType: H.EndScrollButtonIcon,
|
|
795
795
|
externalSlotProps: U.endScrollButtonIcon,
|
|
796
|
-
ownerState:
|
|
796
|
+
ownerState: D
|
|
797
797
|
});
|
|
798
798
|
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.');
|
|
799
|
-
const [
|
|
799
|
+
const [Se, Ue] = c.useState(!1), [$, ve] = c.useState(Ne), [ye, Xe] = c.useState(!1), [ge, Ye] = c.useState(!1), [Te, Ke] = c.useState(!1), [we, _e] = c.useState({
|
|
800
800
|
overflow: "hidden",
|
|
801
801
|
scrollbarWidth: 0
|
|
802
|
-
}), Z = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null),
|
|
803
|
-
const
|
|
804
|
-
let
|
|
805
|
-
if (
|
|
806
|
-
const a =
|
|
807
|
-
|
|
808
|
-
clientWidth:
|
|
809
|
-
scrollLeft:
|
|
810
|
-
scrollTop:
|
|
811
|
-
scrollWidth:
|
|
802
|
+
}), Z = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null), Be = () => {
|
|
803
|
+
const r = O.current;
|
|
804
|
+
let n;
|
|
805
|
+
if (r) {
|
|
806
|
+
const a = r.getBoundingClientRect();
|
|
807
|
+
n = {
|
|
808
|
+
clientWidth: r.clientWidth,
|
|
809
|
+
scrollLeft: r.scrollLeft,
|
|
810
|
+
scrollTop: r.scrollTop,
|
|
811
|
+
scrollWidth: r.scrollWidth,
|
|
812
812
|
top: a.top,
|
|
813
813
|
bottom: a.bottom,
|
|
814
814
|
left: a.left,
|
|
@@ -816,253 +816,253 @@ const Ht = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
let s;
|
|
819
|
-
if (
|
|
819
|
+
if (r && N !== !1) {
|
|
820
820
|
const a = A.current.children;
|
|
821
821
|
if (a.length > 0) {
|
|
822
822
|
const p = a[Z.get(N)];
|
|
823
823
|
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(`
|
|
824
|
-
`))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !
|
|
825
|
-
|
|
826
|
-
`)),
|
|
824
|
+
`))), s = p ? p.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Pe && s && s.width === 0 && s.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
825
|
+
n.clientWidth !== 0 && (n = 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(`
|
|
826
|
+
`)), Pe = !0);
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
829
|
return {
|
|
830
|
-
tabsMeta:
|
|
830
|
+
tabsMeta: n,
|
|
831
831
|
tabMeta: s
|
|
832
832
|
};
|
|
833
|
-
}, K =
|
|
833
|
+
}, K = de(() => {
|
|
834
834
|
const {
|
|
835
|
-
tabsMeta:
|
|
836
|
-
tabMeta:
|
|
837
|
-
} =
|
|
835
|
+
tabsMeta: r,
|
|
836
|
+
tabMeta: n
|
|
837
|
+
} = Be();
|
|
838
838
|
let s = 0, a;
|
|
839
|
-
B ? (a = "top",
|
|
839
|
+
B ? (a = "top", n && r && (s = n.top - r.top + r.scrollTop)) : (a = u ? "right" : "left", n && r && (s = (u ? -1 : 1) * (n[a] - r[a] + r.scrollLeft)));
|
|
840
840
|
const p = {
|
|
841
841
|
[a]: s,
|
|
842
842
|
// May be wrong until the font is loaded.
|
|
843
|
-
[Y]:
|
|
843
|
+
[Y]: n ? n[Y] : 0
|
|
844
844
|
};
|
|
845
|
-
if (typeof
|
|
846
|
-
|
|
845
|
+
if (typeof $[a] != "number" || typeof $[Y] != "number")
|
|
846
|
+
ve(p);
|
|
847
847
|
else {
|
|
848
|
-
const E = Math.abs(
|
|
849
|
-
(E >= 1 || F >= 1) &&
|
|
848
|
+
const E = Math.abs($[a] - p[a]), F = Math.abs($[Y] - p[Y]);
|
|
849
|
+
(E >= 1 || F >= 1) && ve(p);
|
|
850
850
|
}
|
|
851
|
-
}),
|
|
852
|
-
animation:
|
|
851
|
+
}), ae = (r, {
|
|
852
|
+
animation: n = !0
|
|
853
853
|
} = {}) => {
|
|
854
|
-
|
|
854
|
+
n ? bt(X, O.current, r, {
|
|
855
855
|
duration: i.transitions.duration.standard
|
|
856
|
-
}) : O.current[X] =
|
|
857
|
-
},
|
|
858
|
-
let
|
|
859
|
-
B ?
|
|
860
|
-
},
|
|
861
|
-
const
|
|
862
|
-
let
|
|
856
|
+
}) : O.current[X] = r;
|
|
857
|
+
}, xe = (r) => {
|
|
858
|
+
let n = O.current[X];
|
|
859
|
+
B ? n += r : n += r * (u ? -1 : 1), ae(n);
|
|
860
|
+
}, Ce = () => {
|
|
861
|
+
const r = O.current[se];
|
|
862
|
+
let n = 0;
|
|
863
863
|
const s = Array.from(A.current.children);
|
|
864
864
|
for (let a = 0; a < s.length; a += 1) {
|
|
865
865
|
const p = s[a];
|
|
866
|
-
if (
|
|
867
|
-
a === 0 && (
|
|
866
|
+
if (n + p[se] > r) {
|
|
867
|
+
a === 0 && (n = r);
|
|
868
868
|
break;
|
|
869
869
|
}
|
|
870
|
-
|
|
870
|
+
n += p[se];
|
|
871
871
|
}
|
|
872
|
-
return
|
|
873
|
-
},
|
|
874
|
-
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
},
|
|
878
|
-
|
|
872
|
+
return n;
|
|
873
|
+
}, qe = () => {
|
|
874
|
+
xe(-1 * Ce());
|
|
875
|
+
}, Ge = () => {
|
|
876
|
+
xe(Ce());
|
|
877
|
+
}, Je = c.useCallback((r) => {
|
|
878
|
+
_e({
|
|
879
879
|
overflow: null,
|
|
880
|
-
scrollbarWidth:
|
|
880
|
+
scrollbarWidth: r
|
|
881
881
|
});
|
|
882
|
-
}, []),
|
|
883
|
-
const
|
|
884
|
-
|
|
885
|
-
onChange:
|
|
882
|
+
}, []), Qe = () => {
|
|
883
|
+
const r = {};
|
|
884
|
+
r.scrollbarSizeListener = w ? /* @__PURE__ */ x(It, {
|
|
885
|
+
onChange: Je,
|
|
886
886
|
className: W(P.scrollableX, P.hideScrollbar)
|
|
887
887
|
}) : null;
|
|
888
|
-
const s = w && (M === "auto" && (
|
|
889
|
-
return
|
|
888
|
+
const s = w && (M === "auto" && (ye || ge) || M === !0);
|
|
889
|
+
return r.scrollButtonStart = s ? /* @__PURE__ */ x(j, {
|
|
890
890
|
slots: {
|
|
891
891
|
StartScrollButtonIcon: H.StartScrollButtonIcon
|
|
892
892
|
},
|
|
893
893
|
slotProps: {
|
|
894
|
-
startScrollButtonIcon:
|
|
894
|
+
startScrollButtonIcon: He
|
|
895
895
|
},
|
|
896
896
|
orientation: g,
|
|
897
897
|
direction: u ? "right" : "left",
|
|
898
|
-
onClick:
|
|
899
|
-
disabled: !
|
|
900
|
-
|
|
901
|
-
className: W(P.scrollButtons,
|
|
902
|
-
}) : null,
|
|
898
|
+
onClick: qe,
|
|
899
|
+
disabled: !ye,
|
|
900
|
+
...z,
|
|
901
|
+
className: W(P.scrollButtons, z.className)
|
|
902
|
+
}) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ x(j, {
|
|
903
903
|
slots: {
|
|
904
904
|
EndScrollButtonIcon: H.EndScrollButtonIcon
|
|
905
905
|
},
|
|
906
906
|
slotProps: {
|
|
907
|
-
endScrollButtonIcon:
|
|
907
|
+
endScrollButtonIcon: Ve
|
|
908
908
|
},
|
|
909
909
|
orientation: g,
|
|
910
910
|
direction: u ? "left" : "right",
|
|
911
|
-
onClick:
|
|
912
|
-
disabled: !
|
|
913
|
-
|
|
914
|
-
className: W(P.scrollButtons,
|
|
915
|
-
}) : null,
|
|
916
|
-
},
|
|
911
|
+
onClick: Ge,
|
|
912
|
+
disabled: !ge,
|
|
913
|
+
...z,
|
|
914
|
+
className: W(P.scrollButtons, z.className)
|
|
915
|
+
}) : null, r;
|
|
916
|
+
}, Ie = de((r) => {
|
|
917
917
|
const {
|
|
918
|
-
tabsMeta:
|
|
918
|
+
tabsMeta: n,
|
|
919
919
|
tabMeta: s
|
|
920
|
-
} =
|
|
921
|
-
if (!(!s || !
|
|
922
|
-
if (s[J] <
|
|
923
|
-
const a =
|
|
924
|
-
|
|
925
|
-
animation:
|
|
920
|
+
} = Be();
|
|
921
|
+
if (!(!s || !n)) {
|
|
922
|
+
if (s[J] < n[J]) {
|
|
923
|
+
const a = n[X] + (s[J] - n[J]);
|
|
924
|
+
ae(a, {
|
|
925
|
+
animation: r
|
|
926
926
|
});
|
|
927
|
-
} else if (s[Q] >
|
|
928
|
-
const a =
|
|
929
|
-
|
|
930
|
-
animation:
|
|
927
|
+
} else if (s[Q] > n[Q]) {
|
|
928
|
+
const a = n[X] + (s[Q] - n[Q]);
|
|
929
|
+
ae(a, {
|
|
930
|
+
animation: r
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
}),
|
|
935
|
-
w && M !== !1 &&
|
|
934
|
+
}), ee = de(() => {
|
|
935
|
+
w && M !== !1 && Ke(!Te);
|
|
936
936
|
});
|
|
937
937
|
c.useEffect(() => {
|
|
938
|
-
const
|
|
938
|
+
const r = $e(() => {
|
|
939
939
|
O.current && K();
|
|
940
940
|
});
|
|
941
|
-
let
|
|
941
|
+
let n;
|
|
942
942
|
const s = (E) => {
|
|
943
943
|
E.forEach((F) => {
|
|
944
944
|
F.removedNodes.forEach((_) => {
|
|
945
|
-
|
|
945
|
+
n == null || n.unobserve(_);
|
|
946
946
|
}), F.addedNodes.forEach((_) => {
|
|
947
|
-
|
|
947
|
+
n == null || n.observe(_);
|
|
948
948
|
});
|
|
949
|
-
}),
|
|
950
|
-
}, a =
|
|
951
|
-
a.addEventListener("resize",
|
|
949
|
+
}), r(), ee();
|
|
950
|
+
}, a = De(O.current);
|
|
951
|
+
a.addEventListener("resize", r);
|
|
952
952
|
let p;
|
|
953
|
-
return typeof ResizeObserver < "u" && (
|
|
954
|
-
|
|
953
|
+
return typeof ResizeObserver < "u" && (n = new ResizeObserver(r), Array.from(A.current.children).forEach((E) => {
|
|
954
|
+
n.observe(E);
|
|
955
955
|
})), typeof MutationObserver < "u" && (p = new MutationObserver(s), p.observe(A.current, {
|
|
956
956
|
childList: !0
|
|
957
957
|
})), () => {
|
|
958
|
-
|
|
958
|
+
r.clear(), a.removeEventListener("resize", r), p == null || p.disconnect(), n == null || n.disconnect();
|
|
959
959
|
};
|
|
960
|
-
}, [K,
|
|
961
|
-
const
|
|
962
|
-
if (typeof IntersectionObserver < "u" &&
|
|
963
|
-
const s =
|
|
960
|
+
}, [K, ee]), c.useEffect(() => {
|
|
961
|
+
const r = Array.from(A.current.children), n = r.length;
|
|
962
|
+
if (typeof IntersectionObserver < "u" && n > 0 && w && M !== !1) {
|
|
963
|
+
const s = r[0], a = r[n - 1], p = {
|
|
964
964
|
root: O.current,
|
|
965
965
|
threshold: 0.99
|
|
966
|
-
}, E = (
|
|
967
|
-
|
|
966
|
+
}, E = (ce) => {
|
|
967
|
+
Xe(!ce[0].isIntersecting);
|
|
968
968
|
}, F = new IntersectionObserver(E, p);
|
|
969
969
|
F.observe(s);
|
|
970
|
-
const _ = (
|
|
971
|
-
|
|
972
|
-
},
|
|
973
|
-
return
|
|
974
|
-
F.disconnect(),
|
|
970
|
+
const _ = (ce) => {
|
|
971
|
+
Ye(!ce[0].isIntersecting);
|
|
972
|
+
}, Me = new IntersectionObserver(_, p);
|
|
973
|
+
return Me.observe(a), () => {
|
|
974
|
+
F.disconnect(), Me.disconnect();
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
}, [w, M,
|
|
978
|
-
|
|
977
|
+
}, [w, M, Te, v == null ? void 0 : v.length]), c.useEffect(() => {
|
|
978
|
+
Ue(!0);
|
|
979
979
|
}, []), c.useEffect(() => {
|
|
980
980
|
K();
|
|
981
981
|
}), c.useEffect(() => {
|
|
982
|
-
|
|
983
|
-
}, [
|
|
982
|
+
Ie(Ne !== $);
|
|
983
|
+
}, [Ie, $]), c.useImperativeHandle(f, () => ({
|
|
984
984
|
updateIndicator: K,
|
|
985
|
-
updateScrollButtons:
|
|
986
|
-
}), [K,
|
|
987
|
-
const
|
|
985
|
+
updateScrollButtons: ee
|
|
986
|
+
}), [K, ee]);
|
|
987
|
+
const Ee = /* @__PURE__ */ x(Ct, {
|
|
988
988
|
...V,
|
|
989
989
|
className: W(P.indicator, V.className),
|
|
990
|
-
ownerState:
|
|
990
|
+
ownerState: D,
|
|
991
991
|
style: {
|
|
992
|
-
|
|
992
|
+
...$,
|
|
993
993
|
...V.style
|
|
994
994
|
}
|
|
995
995
|
});
|
|
996
|
-
let
|
|
997
|
-
const
|
|
998
|
-
if (!/* @__PURE__ */ c.isValidElement(
|
|
996
|
+
let te = 0;
|
|
997
|
+
const Ze = c.Children.map(v, (r) => {
|
|
998
|
+
if (!/* @__PURE__ */ c.isValidElement(r))
|
|
999
999
|
return null;
|
|
1000
|
-
process.env.NODE_ENV !== "production" &&
|
|
1000
|
+
process.env.NODE_ENV !== "production" && tt.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1001
1001
|
`));
|
|
1002
|
-
const
|
|
1003
|
-
Z.set(
|
|
1004
|
-
const s =
|
|
1005
|
-
return
|
|
1002
|
+
const n = r.props.value === void 0 ? te : r.props.value;
|
|
1003
|
+
Z.set(n, te);
|
|
1004
|
+
const s = n === N;
|
|
1005
|
+
return te += 1, /* @__PURE__ */ c.cloneElement(r, {
|
|
1006
1006
|
fullWidth: R === "fullWidth",
|
|
1007
|
-
indicator: s && !
|
|
1007
|
+
indicator: s && !Se && Ee,
|
|
1008
1008
|
selected: s,
|
|
1009
|
-
selectionFollowsFocus:
|
|
1009
|
+
selectionFollowsFocus: ne,
|
|
1010
1010
|
onChange: I,
|
|
1011
1011
|
textColor: G,
|
|
1012
|
-
value:
|
|
1013
|
-
...
|
|
1012
|
+
value: n,
|
|
1013
|
+
...te === 1 && N === !1 && !r.props.tabIndex ? {
|
|
1014
1014
|
tabIndex: 0
|
|
1015
1015
|
} : {}
|
|
1016
1016
|
});
|
|
1017
|
-
}),
|
|
1018
|
-
const
|
|
1017
|
+
}), et = (r) => {
|
|
1018
|
+
const n = A.current, s = lt(n).activeElement;
|
|
1019
1019
|
if (s.getAttribute("role") !== "tab")
|
|
1020
1020
|
return;
|
|
1021
1021
|
let p = g === "horizontal" ? "ArrowLeft" : "ArrowUp", E = g === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
1022
|
-
switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"),
|
|
1022
|
+
switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"), r.key) {
|
|
1023
1023
|
case p:
|
|
1024
|
-
|
|
1024
|
+
r.preventDefault(), oe(n, s, Oe);
|
|
1025
1025
|
break;
|
|
1026
1026
|
case E:
|
|
1027
|
-
|
|
1027
|
+
r.preventDefault(), oe(n, s, Re);
|
|
1028
1028
|
break;
|
|
1029
1029
|
case "Home":
|
|
1030
|
-
|
|
1030
|
+
r.preventDefault(), oe(n, null, Re);
|
|
1031
1031
|
break;
|
|
1032
1032
|
case "End":
|
|
1033
|
-
|
|
1033
|
+
r.preventDefault(), oe(n, null, Oe);
|
|
1034
1034
|
break;
|
|
1035
1035
|
}
|
|
1036
|
-
},
|
|
1037
|
-
return /* @__PURE__ */ q(
|
|
1036
|
+
}, ie = Qe();
|
|
1037
|
+
return /* @__PURE__ */ q(wt, {
|
|
1038
1038
|
className: W(P.root, y),
|
|
1039
|
-
ownerState:
|
|
1039
|
+
ownerState: D,
|
|
1040
1040
|
ref: l,
|
|
1041
1041
|
as: m,
|
|
1042
|
-
...
|
|
1043
|
-
children: [
|
|
1042
|
+
...je,
|
|
1043
|
+
children: [ie.scrollButtonStart, ie.scrollbarSizeListener, /* @__PURE__ */ q(Bt, {
|
|
1044
1044
|
className: P.scroller,
|
|
1045
|
-
ownerState:
|
|
1045
|
+
ownerState: D,
|
|
1046
1046
|
style: {
|
|
1047
|
-
overflow:
|
|
1048
|
-
[B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]:
|
|
1047
|
+
overflow: we.overflow,
|
|
1048
|
+
[B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]: le ? void 0 : -we.scrollbarWidth
|
|
1049
1049
|
},
|
|
1050
1050
|
ref: O,
|
|
1051
|
-
children: [/* @__PURE__ */ x(
|
|
1051
|
+
children: [/* @__PURE__ */ x(xt, {
|
|
1052
1052
|
"aria-label": b,
|
|
1053
1053
|
"aria-labelledby": h,
|
|
1054
1054
|
"aria-orientation": g === "vertical" ? "vertical" : null,
|
|
1055
1055
|
className: P.flexContainer,
|
|
1056
|
-
ownerState:
|
|
1057
|
-
onKeyDown:
|
|
1056
|
+
ownerState: D,
|
|
1057
|
+
onKeyDown: et,
|
|
1058
1058
|
ref: A,
|
|
1059
1059
|
role: "tablist",
|
|
1060
|
-
children:
|
|
1061
|
-
}),
|
|
1062
|
-
}),
|
|
1060
|
+
children: Ze
|
|
1061
|
+
}), Se && Ee]
|
|
1062
|
+
}), ie.scrollButtonEnd]
|
|
1063
1063
|
});
|
|
1064
1064
|
});
|
|
1065
|
-
process.env.NODE_ENV !== "production" && (
|
|
1065
|
+
process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
1066
1066
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1067
1067
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1068
1068
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1075,66 +1075,66 @@ process.env.NODE_ENV !== "production" && (Ht.propTypes = {
|
|
|
1075
1075
|
* @param {object} actions This object contains all possible actions
|
|
1076
1076
|
* that can be triggered programmatically.
|
|
1077
1077
|
*/
|
|
1078
|
-
action:
|
|
1078
|
+
action: st,
|
|
1079
1079
|
/**
|
|
1080
1080
|
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
1081
1081
|
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
1082
1082
|
* @default false
|
|
1083
1083
|
*/
|
|
1084
|
-
allowScrollButtonsMobile:
|
|
1084
|
+
allowScrollButtonsMobile: t.bool,
|
|
1085
1085
|
/**
|
|
1086
1086
|
* The label for the Tabs as a string.
|
|
1087
1087
|
*/
|
|
1088
|
-
"aria-label":
|
|
1088
|
+
"aria-label": t.string,
|
|
1089
1089
|
/**
|
|
1090
1090
|
* An id or list of ids separated by a space that label the Tabs.
|
|
1091
1091
|
*/
|
|
1092
|
-
"aria-labelledby":
|
|
1092
|
+
"aria-labelledby": t.string,
|
|
1093
1093
|
/**
|
|
1094
1094
|
* If `true`, the tabs are centered.
|
|
1095
1095
|
* This prop is intended for large views.
|
|
1096
1096
|
* @default false
|
|
1097
1097
|
*/
|
|
1098
|
-
centered:
|
|
1098
|
+
centered: t.bool,
|
|
1099
1099
|
/**
|
|
1100
1100
|
* The content of the component.
|
|
1101
1101
|
*/
|
|
1102
|
-
children:
|
|
1102
|
+
children: t.node,
|
|
1103
1103
|
/**
|
|
1104
1104
|
* Override or extend the styles applied to the component.
|
|
1105
1105
|
*/
|
|
1106
|
-
classes:
|
|
1106
|
+
classes: t.object,
|
|
1107
1107
|
/**
|
|
1108
1108
|
* @ignore
|
|
1109
1109
|
*/
|
|
1110
|
-
className:
|
|
1110
|
+
className: t.string,
|
|
1111
1111
|
/**
|
|
1112
1112
|
* The component used for the root node.
|
|
1113
1113
|
* Either a string to use a HTML element or a component.
|
|
1114
1114
|
*/
|
|
1115
|
-
component:
|
|
1115
|
+
component: t.elementType,
|
|
1116
1116
|
/**
|
|
1117
1117
|
* Determines the color of the indicator.
|
|
1118
1118
|
* @default 'primary'
|
|
1119
1119
|
*/
|
|
1120
|
-
indicatorColor:
|
|
1120
|
+
indicatorColor: t.oneOfType([t.oneOf(["primary", "secondary"]), t.string]),
|
|
1121
1121
|
/**
|
|
1122
1122
|
* Callback fired when the value changes.
|
|
1123
1123
|
*
|
|
1124
1124
|
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
1125
1125
|
* @param {any} value We default to the index of the child (number)
|
|
1126
1126
|
*/
|
|
1127
|
-
onChange:
|
|
1127
|
+
onChange: t.func,
|
|
1128
1128
|
/**
|
|
1129
1129
|
* The component orientation (layout flow direction).
|
|
1130
1130
|
* @default 'horizontal'
|
|
1131
1131
|
*/
|
|
1132
|
-
orientation:
|
|
1132
|
+
orientation: t.oneOf(["horizontal", "vertical"]),
|
|
1133
1133
|
/**
|
|
1134
1134
|
* The component used to render the scroll buttons.
|
|
1135
1135
|
* @default TabScrollButton
|
|
1136
1136
|
*/
|
|
1137
|
-
ScrollButtonComponent:
|
|
1137
|
+
ScrollButtonComponent: t.elementType,
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
1140
1140
|
*
|
|
@@ -1146,53 +1146,53 @@ process.env.NODE_ENV !== "production" && (Ht.propTypes = {
|
|
|
1146
1146
|
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
1147
1147
|
* @default 'auto'
|
|
1148
1148
|
*/
|
|
1149
|
-
scrollButtons:
|
|
1149
|
+
scrollButtons: t.oneOf(["auto", !1, !0]),
|
|
1150
1150
|
/**
|
|
1151
1151
|
* If `true` the selected tab changes on focus. Otherwise it only
|
|
1152
1152
|
* changes on activation.
|
|
1153
1153
|
*/
|
|
1154
|
-
selectionFollowsFocus:
|
|
1154
|
+
selectionFollowsFocus: t.bool,
|
|
1155
1155
|
/**
|
|
1156
1156
|
* The extra props for the slot components.
|
|
1157
1157
|
* You can override the existing props or add new ones.
|
|
1158
1158
|
* @default {}
|
|
1159
1159
|
*/
|
|
1160
|
-
slotProps:
|
|
1161
|
-
endScrollButtonIcon:
|
|
1162
|
-
startScrollButtonIcon:
|
|
1160
|
+
slotProps: t.shape({
|
|
1161
|
+
endScrollButtonIcon: t.oneOfType([t.func, t.object]),
|
|
1162
|
+
startScrollButtonIcon: t.oneOfType([t.func, t.object])
|
|
1163
1163
|
}),
|
|
1164
1164
|
/**
|
|
1165
1165
|
* The components used for each slot inside.
|
|
1166
1166
|
* @default {}
|
|
1167
1167
|
*/
|
|
1168
|
-
slots:
|
|
1169
|
-
EndScrollButtonIcon:
|
|
1170
|
-
StartScrollButtonIcon:
|
|
1168
|
+
slots: t.shape({
|
|
1169
|
+
EndScrollButtonIcon: t.elementType,
|
|
1170
|
+
StartScrollButtonIcon: t.elementType
|
|
1171
1171
|
}),
|
|
1172
1172
|
/**
|
|
1173
1173
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1174
1174
|
*/
|
|
1175
|
-
sx:
|
|
1175
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
1176
1176
|
/**
|
|
1177
1177
|
* Props applied to the tab indicator element.
|
|
1178
1178
|
* @default {}
|
|
1179
1179
|
*/
|
|
1180
|
-
TabIndicatorProps:
|
|
1180
|
+
TabIndicatorProps: t.object,
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
|
|
1183
1183
|
* @default {}
|
|
1184
1184
|
*/
|
|
1185
|
-
TabScrollButtonProps:
|
|
1185
|
+
TabScrollButtonProps: t.object,
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Determines the color of the `Tab`.
|
|
1188
1188
|
* @default 'primary'
|
|
1189
1189
|
*/
|
|
1190
|
-
textColor:
|
|
1190
|
+
textColor: t.oneOf(["inherit", "primary", "secondary"]),
|
|
1191
1191
|
/**
|
|
1192
1192
|
* The value of the currently selected `Tab`.
|
|
1193
1193
|
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
1194
1194
|
*/
|
|
1195
|
-
value:
|
|
1195
|
+
value: t.any,
|
|
1196
1196
|
/**
|
|
1197
1197
|
* Determines additional display behavior of the tabs:
|
|
1198
1198
|
*
|
|
@@ -1203,22 +1203,21 @@ process.env.NODE_ENV !== "production" && (Ht.propTypes = {
|
|
|
1203
1203
|
* - `standard` will render the default state.
|
|
1204
1204
|
* @default 'standard'
|
|
1205
1205
|
*/
|
|
1206
|
-
variant:
|
|
1206
|
+
variant: t.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
1207
1207
|
/**
|
|
1208
1208
|
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
1209
1209
|
* a long vertical list of tabs.
|
|
1210
1210
|
* @default false
|
|
1211
1211
|
*/
|
|
1212
|
-
visibleScrollbar:
|
|
1212
|
+
visibleScrollbar: t.bool
|
|
1213
1213
|
});
|
|
1214
|
-
const Ue = Ht;
|
|
1215
1214
|
export {
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1215
|
+
pt as K,
|
|
1216
|
+
dt as T,
|
|
1217
|
+
Et as a,
|
|
1218
|
+
ue as b,
|
|
1219
|
+
gt as c,
|
|
1220
|
+
ut as d,
|
|
1221
|
+
at as g,
|
|
1223
1222
|
T as t
|
|
1224
1223
|
};
|