@cgi-learning-hub/ui 1.3.5-dev.1740489193 → 1.3.5-dev.1740588881
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-DdA12b-5.js → Backdrop-BctCVgLy.js} +5 -5
- package/dist/Backdrop-DWp3AktL.cjs +1 -0
- package/dist/Box-DYA49L7w.cjs +1 -0
- package/dist/{Box-DbRInJ2-.js → Box-DgqaLb7j.js} +3 -3
- package/dist/{Button-rxIER0bL.js → Button-B7kOjNW1.js} +147 -113
- package/dist/Button-UmeKHfcL.cjs +1 -0
- package/dist/{ButtonBase-C2rhY3j-.cjs → ButtonBase-D6tfI-8D.cjs} +1 -1
- package/dist/{ButtonBase-DzpmdR6N.js → ButtonBase-IZ_QjbpE.js} +4 -4
- package/dist/CardContent-5bW4A4d2.cjs +1 -0
- package/dist/{CardContent-u1MKaFvP.js → CardContent-F4-KcZH8.js} +3 -3
- package/dist/Checkbox-DQgPXaym.cjs +1 -0
- package/dist/{Checkbox-BI77q7eR.js → Checkbox-qUSjau0g.js} +23 -22
- package/dist/Chip-BTnuWGEU.cjs +1 -0
- package/dist/{Chip-6-zATjcr.js → Chip-OpRIs-sL.js} +50 -49
- package/dist/{CircularProgress-CDa_qU1a.js → CircularProgress-CQxzJquv.js} +14 -13
- package/dist/CircularProgress-cPXhiRlM.cjs +28 -0
- package/dist/{CloseRounded-DTpqUeWr.js → CloseRounded-BMEGLs8y.js} +1 -1
- package/dist/{CloseRounded-DQWTEbNz.cjs → CloseRounded-BRXBizmR.cjs} +1 -1
- package/dist/{DatePicker-BTTLIBm9.js → DatePicker-C6MCYjpp.js} +529 -526
- package/dist/DatePicker-CTIqTlNQ.cjs +14 -0
- package/dist/{DefaultPropsProvider-BcmyIf2H.js → DefaultPropsProvider-Cqcb4sws.js} +27 -27
- package/dist/DefaultPropsProvider-wpBXjN8r.cjs +1 -0
- package/dist/Dialog-B1wnk5BT.cjs +1 -0
- package/dist/{Dialog-CgBiKk8B.js → Dialog-CKS7yjT5.js} +17 -16
- package/dist/{DialogContent-SYCCu1VD.js → DialogContent-BzPaz5G8.js} +3 -3
- package/dist/DialogContent-DcZz4rBc.cjs +1 -0
- package/dist/{DialogTitle-_yayDwkI.js → DialogTitle-D3E_lDHD.js} +5 -5
- package/dist/DialogTitle-mr9xn4JZ.cjs +1 -0
- package/dist/{Divider-Doy31VS6.js → Divider-D-pZeQTm.js} +4 -4
- package/dist/Divider-D3hPb7s4.cjs +1 -0
- package/dist/{FormLabel-DjkS3S9h.js → FormLabel-3-CC-ZGw.js} +12 -11
- package/dist/FormLabel-BV7-a0i5.cjs +2 -0
- package/dist/{Grow-DPD-iBAX.js → Grow-DKgYCxiY.js} +3 -3
- package/dist/Grow-Z3KzFaK5.cjs +1 -0
- package/dist/{IconButton-B4bt0Hp2.js → IconButton-CCNUMz2l.js} +27 -26
- package/dist/IconButton-CVOPR4EM.cjs +2 -0
- package/dist/InputAdornment-CwFEJSXv.cjs +1 -0
- package/dist/{InputAdornment-GzDm1zf_.js → InputAdornment-DL8XIM8r.js} +9 -8
- package/dist/{InputBase-CF5oNEfh.js → InputBase-By7jMrFP.js} +41 -40
- package/dist/InputBase-Cejvjv1E.cjs +3 -0
- package/dist/Link-2ncpUcIp.cjs +1 -0
- package/dist/{Link-CnahHTmK.js → Link-C_GPIs0q.js} +11 -10
- package/dist/{Menu-DzBX10ev.js → Menu-BunOW0ot.js} +28 -28
- package/dist/{Menu-C-R0FVOB.cjs → Menu-Cngt8Va9.cjs} +6 -6
- package/dist/MenuItem-Bha8aBMr.cjs +1 -0
- package/dist/{MenuItem-DQQ-p2ie.js → MenuItem-Cu3FTLl8.js} +6 -6
- package/dist/{Modal-B8JRJWm0.js → Modal-DTJd7JJ6.js} +8 -8
- package/dist/{Modal-D8lS9C1l.cjs → Modal-u82Ss4h_.cjs} +2 -2
- package/dist/{Paper-CbgkVQVx.js → Paper-BiZq6EF2.js} +4 -4
- package/dist/Paper-EvOTlB_Q.cjs +2 -0
- package/dist/Popper-BVYscbsI.cjs +4 -0
- package/dist/{Popper-1-DDNRPD.js → Popper-DjwR55WH.js} +5 -5
- package/dist/{Portal-T-1Qk77D.js → Portal-BByeByPq.js} +2 -2
- package/dist/Portal-DUHpWdY1.cjs +1 -0
- package/dist/Radio-CSl8GQNk.cjs +1 -0
- package/dist/{Radio-BxMxeQa-.js → Radio-DSRS-tjj.js} +9 -8
- package/dist/RadioGroup-DL4hhZzK.cjs +1 -0
- package/dist/{RadioGroup-BLrD8_Lp.js → RadioGroup-cPdOWdYD.js} +3 -3
- package/dist/{Select-B6mYfJPA.js → Select-CZnKFG3o.js} +40 -39
- package/dist/Select-DZAzJA0y.cjs +3 -0
- package/dist/Stack-B82ckLGm.cjs +1 -0
- package/dist/{Stack-aCUdCw1A.js → Stack-hbAJHQhq.js} +105 -60
- package/dist/{Switch-BOpqo-TS.js → Switch-B9uT9-d0.js} +11 -10
- package/dist/Switch-DWKHe4z_.cjs +1 -0
- package/dist/{SwitchBase-BAjfatYA.js → SwitchBase-CDkmnGAP.js} +21 -20
- package/dist/SwitchBase-CnA6TA2P.cjs +1 -0
- package/dist/Tabs-AyJ_tKtV.cjs +4 -0
- package/dist/{Tabs-CrWcC5nJ.js → Tabs-BYfDlOR9.js} +226 -225
- package/dist/{TextField-CAmc1Qpg.js → TextField-BKfXjPdH.js} +18 -17
- package/dist/TextField-CwcPgdgD.cjs +1 -0
- package/dist/ToggleButtonGroup-DIp0fcXW.cjs +140 -0
- package/dist/{ToggleButtonGroup-ekxVeQCc.js → ToggleButtonGroup-sc2omtRp.js} +996 -984
- package/dist/{Tooltip-BvVFPsVR.js → Tooltip-B1NGvrJP.js} +30 -29
- package/dist/Tooltip-oNmnF7Bc.cjs +4 -0
- package/dist/Typography-DPij13XT.cjs +1 -0
- package/dist/{Typography-CE8fQQ8B.js → Typography-SIQ6eleU.js} +13 -12
- package/dist/capitalize-3KLkrEtk.js +9 -0
- package/dist/capitalize-CEByPz9F.cjs +1 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +14 -13
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
- 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/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +3 -3
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.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/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 +34 -34
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +4 -4
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-DJMYlO0S.cjs +1 -0
- package/dist/{createSvgIcon-CCejzj0C.js → createSvgIcon-K2ZAdASa.js} +18 -17
- package/dist/dividerClasses-Dq1bCO_s.cjs +1 -0
- package/dist/{dividerClasses-DN9F43tq.js → dividerClasses-afsB3Yy1.js} +1 -1
- package/dist/{elementTypeAcceptingRef-CrAqn_fc.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
- package/dist/elementTypeAcceptingRef-BjgxF5Bq.cjs +1 -0
- package/dist/extendSxProp-D-oLUmkR.cjs +1 -0
- package/dist/{extendSxProp-DFv-GFt5.js → extendSxProp-dlShX1xL.js} +1 -1
- package/dist/generateUtilityClasses-De8NU9_E.cjs +75 -0
- package/dist/{identifier-D58rA1gM.js → generateUtilityClasses-DotvgSDH.js} +870 -840
- package/dist/{index-BGS2uu2L.js → index-B1u7G33_.js} +1 -1
- package/dist/index-CVFzneYe.cjs +5 -0
- package/dist/{index-ClXCinr6.js → index-DTTmpNYg.js} +4 -4
- package/dist/index-T-RSwkXB.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +34 -34
- package/dist/{memoTheme-DyiN-Awd.js → memoTheme-CqmIydD-.js} +1 -1
- package/dist/{memoTheme-C8EfvlY1.cjs → memoTheme-DrjvJtTP.cjs} +1 -1
- package/dist/refType-BkobP3bK.cjs +1 -0
- package/dist/{refType-B86yTZra.js → refType-C210ipRY.js} +1 -1
- package/dist/{resolveComponentProps-0QnU-fDT.js → resolveComponentProps-CPmhKPdH.js} +1 -1
- package/dist/resolveComponentProps-PuUs-PsA.cjs +1 -0
- package/dist/{useSlot-CyXLaLc2.cjs → useSlot-CC2AaOjN.cjs} +1 -1
- package/dist/{useSlot-CZNcsPv1.js → useSlot-GZu0V5wJ.js} +1 -1
- package/dist/{index-DwHI-aa0.js → useSlotProps-C9tsxDNg.js} +26 -26
- package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
- package/dist/useTheme-7RGQRN-h.cjs +1 -0
- package/dist/useTheme-BA7tMglY.js +11 -0
- package/dist/useTheme-CIf2b2wK.cjs +1 -0
- package/dist/{useTheme-DxxkErdZ.js → useTheme-tdgDVH1p.js} +1 -1
- package/dist/{useThemeProps-CpNQz1Ap.cjs → useThemeProps-AnS1uVAy.cjs} +1 -1
- package/dist/{useThemeProps-BGZrRNnL.js → useThemeProps-BQlPXzo3.js} +2 -2
- package/dist/useThemeProps-BTfGtNci.js +17 -0
- package/dist/useThemeProps-DxBEHys5.cjs +1 -0
- package/dist/utils-CFI_-FMV.cjs +1 -0
- package/dist/{utils-SrEVp7Pm.js → utils-CXhh35wP.js} +1 -1
- package/package.json +1 -1
- package/dist/Backdrop-COarwgJj.cjs +0 -1
- package/dist/Box-C0mEbUoK.cjs +0 -1
- package/dist/Button-1tZRtOeG.cjs +0 -1
- package/dist/CardContent-BXjX98Jd.cjs +0 -1
- package/dist/Checkbox-C6CIGK27.cjs +0 -1
- package/dist/Chip-CAPnyZyW.cjs +0 -1
- package/dist/CircularProgress-DTVP6gln.cjs +0 -28
- package/dist/DatePicker-CJ5-Udgh.cjs +0 -14
- package/dist/DefaultPropsProvider-QmkL7lbM.cjs +0 -1
- package/dist/Dialog-Cmv58WoN.cjs +0 -1
- package/dist/DialogContent-CGEdCDYk.cjs +0 -1
- package/dist/DialogTitle-Dxm2NHs7.cjs +0 -1
- package/dist/Divider-D_LVNUqS.cjs +0 -1
- package/dist/FormLabel-D0gSgwnj.cjs +0 -2
- package/dist/Grow-D7scX77o.cjs +0 -1
- package/dist/IconButton-Edo5JMfQ.cjs +0 -2
- package/dist/InputAdornment-C9NrmB_z.cjs +0 -1
- package/dist/InputBase-CgOQ0M4_.cjs +0 -3
- package/dist/Link-CAbb9OCV.cjs +0 -1
- package/dist/MenuItem-Cp1_Q0FD.cjs +0 -1
- package/dist/Paper-C-oPGpbI.cjs +0 -2
- package/dist/Popper-uw9PkkLY.cjs +0 -4
- package/dist/Portal-bIKnnWR4.cjs +0 -1
- package/dist/Radio-CvCkmq8g.cjs +0 -1
- package/dist/RadioGroup-Ya-I8Lz1.cjs +0 -1
- package/dist/Select-KMdcuol6.cjs +0 -3
- package/dist/Stack-C6v70ALA.cjs +0 -1
- package/dist/Switch-DF4bSjED.cjs +0 -1
- package/dist/SwitchBase-7zONZyYP.cjs +0 -1
- package/dist/Tabs-Dploq_37.cjs +0 -4
- package/dist/TextField-BC7GvvHh.cjs +0 -1
- package/dist/ToggleButtonGroup-BCVgsika.cjs +0 -140
- package/dist/Tooltip-CWA-GKdK.cjs +0 -4
- package/dist/Typography-DEAE8-8u.cjs +0 -1
- package/dist/createSvgIcon-Dn4BBPej.cjs +0 -1
- package/dist/dividerClasses-Zk1QmrZw.cjs +0 -1
- package/dist/elementTypeAcceptingRef-DVF2QSYK.cjs +0 -1
- package/dist/extendSxProp-BB6jYY1x.cjs +0 -1
- package/dist/identifier-5n4d7br9.cjs +0 -75
- package/dist/index-5BAFzrXD.cjs +0 -1
- package/dist/index-CFm-oAsb.cjs +0 -1
- package/dist/index-CJW5gB6d.cjs +0 -5
- package/dist/refType-CjW6JOBA.cjs +0 -1
- package/dist/resolveComponentProps-D0sgyopa.cjs +0 -1
- package/dist/useTheme-Bi8B4Op1.cjs +0 -1
- package/dist/useTheme-C_2IF7CS.cjs +0 -1
- package/dist/useTheme-Clhsq4HW.js +0 -11
- package/dist/useThemeProps-C6qniHmV.js +0 -17
- package/dist/useThemeProps-Dq3GRYN1.cjs +0 -1
- package/dist/utils-D4if93Yl.cjs +0 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { H as pt, I as ft, G as W,
|
|
3
|
-
import { m as bt } from "./memoTheme-
|
|
2
|
+
import { H as pt, I as ft, G as W, P as o, Z as oo } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
|
+
import { m as bt } from "./memoTheme-CqmIydD-.js";
|
|
4
4
|
import { jsxs as q, jsx as x } from "react/jsx-runtime";
|
|
5
|
-
import { u as ht, s as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
5
|
+
import { u as ht, s as j, c as mt } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
6
|
+
import { c as Wt } from "./capitalize-3KLkrEtk.js";
|
|
7
|
+
import { B as kt } from "./ButtonBase-IZ_QjbpE.js";
|
|
8
|
+
import { u as eo } from "./unsupportedProp-BuVD30Gh.js";
|
|
9
|
+
import { u as zt, a as rt } from "./useSlotProps-C9tsxDNg.js";
|
|
10
|
+
import { u as ro } from "./useTheme-BA7tMglY.js";
|
|
11
|
+
import { u as no } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
11
12
|
import { d as Dt } from "./debounce-46wSf_lW.js";
|
|
12
13
|
import { o as $t } from "./ownerWindow-niciwP7I.js";
|
|
13
|
-
import { c as At } from "./createSvgIcon-
|
|
14
|
+
import { c as At } from "./createSvgIcon-K2ZAdASa.js";
|
|
14
15
|
import { u as dt } from "./useEventCallback-BAQJJ3ye.js";
|
|
15
|
-
import { o as
|
|
16
|
-
import { r as
|
|
17
|
-
function
|
|
18
|
-
return ft("MuiTab",
|
|
16
|
+
import { o as lo } from "./ownerDocument-CUrv0DIK.js";
|
|
17
|
+
import { r as so } from "./refType-C210ipRY.js";
|
|
18
|
+
function ao(e) {
|
|
19
|
+
return ft("MuiTab", e);
|
|
19
20
|
}
|
|
20
|
-
const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]),
|
|
21
|
+
const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), io = (e) => {
|
|
21
22
|
const {
|
|
22
23
|
classes: t,
|
|
23
24
|
textColor: l,
|
|
@@ -27,18 +28,18 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
27
28
|
label: b,
|
|
28
29
|
selected: h,
|
|
29
30
|
disabled: f
|
|
30
|
-
} =
|
|
31
|
+
} = e, S = {
|
|
31
32
|
root: ["root", u && b && "labelIcon", `textColor${Wt(l)}`, d && "fullWidth", i && "wrapped", h && "selected", f && "disabled"],
|
|
32
33
|
icon: ["iconWrapper", "icon"]
|
|
33
34
|
};
|
|
34
|
-
return mt(S,
|
|
35
|
-
},
|
|
35
|
+
return mt(S, ao, t);
|
|
36
|
+
}, co = j(kt, {
|
|
36
37
|
name: "MuiTab",
|
|
37
38
|
slot: "Root",
|
|
38
|
-
overridesResolver: (
|
|
39
|
+
overridesResolver: (e, t) => {
|
|
39
40
|
const {
|
|
40
41
|
ownerState: l
|
|
41
|
-
} =
|
|
42
|
+
} = e;
|
|
42
43
|
return [t.root, l.label && l.icon && t.labelIcon, t[`textColor${Wt(l.textColor)}`], l.fullWidth && t.fullWidth, l.wrapped && t.wrapped, {
|
|
43
44
|
[`& .${T.iconWrapper}`]: t.iconWrapper
|
|
44
45
|
}, {
|
|
@@ -46,9 +47,9 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
46
47
|
}];
|
|
47
48
|
}
|
|
48
49
|
})(bt(({
|
|
49
|
-
theme:
|
|
50
|
+
theme: e
|
|
50
51
|
}) => ({
|
|
51
|
-
...
|
|
52
|
+
...e.typography.button,
|
|
52
53
|
maxWidth: 360,
|
|
53
54
|
minWidth: 90,
|
|
54
55
|
position: "relative",
|
|
@@ -109,7 +110,7 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
109
110
|
}) => t.icon && t.label && l === "start",
|
|
110
111
|
style: {
|
|
111
112
|
[`& > .${T.icon}`]: {
|
|
112
|
-
marginRight:
|
|
113
|
+
marginRight: e.spacing(1)
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
}, {
|
|
@@ -119,7 +120,7 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
119
120
|
}) => t.icon && t.label && l === "end",
|
|
120
121
|
style: {
|
|
121
122
|
[`& > .${T.icon}`]: {
|
|
122
|
-
marginLeft:
|
|
123
|
+
marginLeft: e.spacing(1)
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
}, {
|
|
@@ -134,7 +135,7 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
134
135
|
opacity: 1
|
|
135
136
|
},
|
|
136
137
|
[`&.${T.disabled}`]: {
|
|
137
|
-
opacity: (
|
|
138
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
}, {
|
|
@@ -142,12 +143,12 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
142
143
|
textColor: "primary"
|
|
143
144
|
},
|
|
144
145
|
style: {
|
|
145
|
-
color: (
|
|
146
|
+
color: (e.vars || e).palette.text.secondary,
|
|
146
147
|
[`&.${T.selected}`]: {
|
|
147
|
-
color: (
|
|
148
|
+
color: (e.vars || e).palette.primary.main
|
|
148
149
|
},
|
|
149
150
|
[`&.${T.disabled}`]: {
|
|
150
|
-
color: (
|
|
151
|
+
color: (e.vars || e).palette.text.disabled
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
154
|
}, {
|
|
@@ -155,12 +156,12 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
155
156
|
textColor: "secondary"
|
|
156
157
|
},
|
|
157
158
|
style: {
|
|
158
|
-
color: (
|
|
159
|
+
color: (e.vars || e).palette.text.secondary,
|
|
159
160
|
[`&.${T.selected}`]: {
|
|
160
|
-
color: (
|
|
161
|
+
color: (e.vars || e).palette.secondary.main
|
|
161
162
|
},
|
|
162
163
|
[`&.${T.disabled}`]: {
|
|
163
|
-
color: (
|
|
164
|
+
color: (e.vars || e).palette.text.disabled
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
}, {
|
|
@@ -178,10 +179,10 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
178
179
|
ownerState: t
|
|
179
180
|
}) => t.wrapped,
|
|
180
181
|
style: {
|
|
181
|
-
fontSize:
|
|
182
|
+
fontSize: e.typography.pxToRem(12)
|
|
182
183
|
}
|
|
183
184
|
}]
|
|
184
|
-
}))),
|
|
185
|
+
}))), uo = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
185
186
|
const d = ht({
|
|
186
187
|
props: t,
|
|
187
188
|
name: "MuiTab"
|
|
@@ -204,7 +205,7 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
204
205
|
// eslint-disable-next-line react/prop-types
|
|
205
206
|
selectionFollowsFocus: g,
|
|
206
207
|
// eslint-disable-next-line react/prop-types
|
|
207
|
-
textColor:
|
|
208
|
+
textColor: L = "inherit",
|
|
208
209
|
value: M,
|
|
209
210
|
wrapped: nt = !1,
|
|
210
211
|
...H
|
|
@@ -217,16 +218,16 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
217
218
|
iconPosition: S,
|
|
218
219
|
label: !!y,
|
|
219
220
|
fullWidth: h,
|
|
220
|
-
textColor:
|
|
221
|
+
textColor: L,
|
|
221
222
|
wrapped: nt
|
|
222
|
-
}, V =
|
|
223
|
+
}, V = io(U), z = f && y && /* @__PURE__ */ c.isValidElement(f) ? /* @__PURE__ */ c.cloneElement(f, {
|
|
223
224
|
className: W(V.icon, f.props.className)
|
|
224
225
|
}) : f, G = (R) => {
|
|
225
226
|
!I && m && m(R, M), C && C(R);
|
|
226
227
|
}, N = (R) => {
|
|
227
228
|
g && !I && m && m(R, M), k && k(R);
|
|
228
229
|
};
|
|
229
|
-
return /* @__PURE__ */ q(
|
|
230
|
+
return /* @__PURE__ */ q(co, {
|
|
230
231
|
focusRipple: !b,
|
|
231
232
|
className: W(V.root, i),
|
|
232
233
|
ref: l,
|
|
@@ -245,7 +246,7 @@ const T = pt("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
245
246
|
}), v]
|
|
246
247
|
});
|
|
247
248
|
});
|
|
248
|
-
process.env.NODE_ENV !== "production" && (
|
|
249
|
+
process.env.NODE_ENV !== "production" && (uo.propTypes = {
|
|
249
250
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
250
251
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
251
252
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -254,25 +255,25 @@ process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
|
254
255
|
* This prop isn't supported.
|
|
255
256
|
* Use the `component` prop if you need to change the children structure.
|
|
256
257
|
*/
|
|
257
|
-
children:
|
|
258
|
+
children: eo,
|
|
258
259
|
/**
|
|
259
260
|
* Override or extend the styles applied to the component.
|
|
260
261
|
*/
|
|
261
|
-
classes:
|
|
262
|
+
classes: o.object,
|
|
262
263
|
/**
|
|
263
264
|
* @ignore
|
|
264
265
|
*/
|
|
265
|
-
className:
|
|
266
|
+
className: o.string,
|
|
266
267
|
/**
|
|
267
268
|
* If `true`, the component is disabled.
|
|
268
269
|
* @default false
|
|
269
270
|
*/
|
|
270
|
-
disabled:
|
|
271
|
+
disabled: o.bool,
|
|
271
272
|
/**
|
|
272
273
|
* If `true`, the keyboard focus ripple is disabled.
|
|
273
274
|
* @default false
|
|
274
275
|
*/
|
|
275
|
-
disableFocusRipple:
|
|
276
|
+
disableFocusRipple: o.bool,
|
|
276
277
|
/**
|
|
277
278
|
* If `true`, the ripple effect is disabled.
|
|
278
279
|
*
|
|
@@ -280,64 +281,64 @@ process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
|
280
281
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
281
282
|
* @default false
|
|
282
283
|
*/
|
|
283
|
-
disableRipple:
|
|
284
|
+
disableRipple: o.bool,
|
|
284
285
|
/**
|
|
285
286
|
* The icon to display.
|
|
286
287
|
*/
|
|
287
|
-
icon:
|
|
288
|
+
icon: o.oneOfType([o.element, o.string]),
|
|
288
289
|
/**
|
|
289
290
|
* The position of the icon relative to the label.
|
|
290
291
|
* @default 'top'
|
|
291
292
|
*/
|
|
292
|
-
iconPosition:
|
|
293
|
+
iconPosition: o.oneOf(["bottom", "end", "start", "top"]),
|
|
293
294
|
/**
|
|
294
295
|
* The label element.
|
|
295
296
|
*/
|
|
296
|
-
label:
|
|
297
|
+
label: o.node,
|
|
297
298
|
/**
|
|
298
299
|
* @ignore
|
|
299
300
|
*/
|
|
300
|
-
onChange:
|
|
301
|
+
onChange: o.func,
|
|
301
302
|
/**
|
|
302
303
|
* @ignore
|
|
303
304
|
*/
|
|
304
|
-
onClick:
|
|
305
|
+
onClick: o.func,
|
|
305
306
|
/**
|
|
306
307
|
* @ignore
|
|
307
308
|
*/
|
|
308
|
-
onFocus:
|
|
309
|
+
onFocus: o.func,
|
|
309
310
|
/**
|
|
310
311
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
311
312
|
*/
|
|
312
|
-
sx:
|
|
313
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
313
314
|
/**
|
|
314
315
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
315
316
|
*/
|
|
316
|
-
value:
|
|
317
|
+
value: o.any,
|
|
317
318
|
/**
|
|
318
319
|
* Tab labels appear in a single row.
|
|
319
320
|
* They can use a second line if needed.
|
|
320
321
|
* @default false
|
|
321
322
|
*/
|
|
322
|
-
wrapped:
|
|
323
|
+
wrapped: o.bool
|
|
323
324
|
});
|
|
324
|
-
const
|
|
325
|
+
const po = At(/* @__PURE__ */ x("path", {
|
|
325
326
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
326
|
-
}), "KeyboardArrowLeft"),
|
|
327
|
+
}), "KeyboardArrowLeft"), fo = At(/* @__PURE__ */ x("path", {
|
|
327
328
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
328
329
|
}), "KeyboardArrowRight");
|
|
329
|
-
function
|
|
330
|
-
return (1 + Math.sin(Math.PI *
|
|
330
|
+
function bo(e) {
|
|
331
|
+
return (1 + Math.sin(Math.PI * e - Math.PI / 2)) / 2;
|
|
331
332
|
}
|
|
332
|
-
function
|
|
333
|
+
function ho(e, t, l, d = {}, i = () => {
|
|
333
334
|
}) {
|
|
334
335
|
const {
|
|
335
|
-
ease: u =
|
|
336
|
+
ease: u = bo,
|
|
336
337
|
duration: b = 300
|
|
337
338
|
// standard
|
|
338
339
|
} = d;
|
|
339
340
|
let h = null;
|
|
340
|
-
const f = t[
|
|
341
|
+
const f = t[e];
|
|
341
342
|
let S = !1;
|
|
342
343
|
const v = () => {
|
|
343
344
|
S = !0;
|
|
@@ -348,7 +349,7 @@ function be(o, t, l, d = {}, i = () => {
|
|
|
348
349
|
}
|
|
349
350
|
h === null && (h = m);
|
|
350
351
|
const C = Math.min(1, (m - h) / b);
|
|
351
|
-
if (t[
|
|
352
|
+
if (t[e] = u(C) * (l - f) + f, C >= 1) {
|
|
352
353
|
requestAnimationFrame(() => {
|
|
353
354
|
i(null);
|
|
354
355
|
});
|
|
@@ -358,21 +359,21 @@ function be(o, t, l, d = {}, i = () => {
|
|
|
358
359
|
};
|
|
359
360
|
return f === l ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(y), v);
|
|
360
361
|
}
|
|
361
|
-
const
|
|
362
|
+
const mo = {
|
|
362
363
|
width: 99,
|
|
363
364
|
height: 99,
|
|
364
365
|
position: "absolute",
|
|
365
366
|
top: -9999,
|
|
366
367
|
overflow: "scroll"
|
|
367
368
|
};
|
|
368
|
-
function Ft(
|
|
369
|
+
function Ft(e) {
|
|
369
370
|
const {
|
|
370
371
|
onChange: t,
|
|
371
372
|
...l
|
|
372
|
-
} =
|
|
373
|
+
} = e, d = c.useRef(), i = c.useRef(null), u = () => {
|
|
373
374
|
d.current = i.current.offsetHeight - i.current.clientHeight;
|
|
374
375
|
};
|
|
375
|
-
return
|
|
376
|
+
return no(() => {
|
|
376
377
|
const b = Dt(() => {
|
|
377
378
|
const f = d.current;
|
|
378
379
|
u(), f !== d.current && t(d.current);
|
|
@@ -383,40 +384,40 @@ function Ft(o) {
|
|
|
383
384
|
}, [t]), c.useEffect(() => {
|
|
384
385
|
u(), t(d.current);
|
|
385
386
|
}, [t]), /* @__PURE__ */ x("div", {
|
|
386
|
-
style:
|
|
387
|
+
style: mo,
|
|
387
388
|
...l,
|
|
388
389
|
ref: i
|
|
389
390
|
});
|
|
390
391
|
}
|
|
391
392
|
process.env.NODE_ENV !== "production" && (Ft.propTypes = {
|
|
392
|
-
onChange:
|
|
393
|
+
onChange: o.func.isRequired
|
|
393
394
|
});
|
|
394
|
-
function
|
|
395
|
-
return ft("MuiTabScrollButton",
|
|
395
|
+
function So(e) {
|
|
396
|
+
return ft("MuiTabScrollButton", e);
|
|
396
397
|
}
|
|
397
|
-
const
|
|
398
|
+
const vo = pt("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), yo = (e) => {
|
|
398
399
|
const {
|
|
399
400
|
classes: t,
|
|
400
401
|
orientation: l,
|
|
401
402
|
disabled: d
|
|
402
|
-
} =
|
|
403
|
+
} = e;
|
|
403
404
|
return mt({
|
|
404
405
|
root: ["root", l, d && "disabled"]
|
|
405
|
-
},
|
|
406
|
-
},
|
|
406
|
+
}, So, t);
|
|
407
|
+
}, go = j(kt, {
|
|
407
408
|
name: "MuiTabScrollButton",
|
|
408
409
|
slot: "Root",
|
|
409
|
-
overridesResolver: (
|
|
410
|
+
overridesResolver: (e, t) => {
|
|
410
411
|
const {
|
|
411
412
|
ownerState: l
|
|
412
|
-
} =
|
|
413
|
+
} = e;
|
|
413
414
|
return [t.root, l.orientation && t[l.orientation]];
|
|
414
415
|
}
|
|
415
416
|
})({
|
|
416
417
|
width: 40,
|
|
417
418
|
flexShrink: 0,
|
|
418
419
|
opacity: 0.8,
|
|
419
|
-
[`&.${
|
|
420
|
+
[`&.${vo.disabled}`]: {
|
|
420
421
|
opacity: 0
|
|
421
422
|
},
|
|
422
423
|
variants: [{
|
|
@@ -431,7 +432,7 @@ const Se = pt("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
431
432
|
}
|
|
432
433
|
}
|
|
433
434
|
}]
|
|
434
|
-
}),
|
|
435
|
+
}), jt = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
435
436
|
const d = ht({
|
|
436
437
|
props: t,
|
|
437
438
|
name: "MuiTabScrollButton"
|
|
@@ -446,14 +447,14 @@ const Se = pt("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
446
447
|
} = d, y = zt(), m = {
|
|
447
448
|
isRtl: y,
|
|
448
449
|
...d
|
|
449
|
-
}, C =
|
|
450
|
+
}, C = yo(m), k = u.StartScrollButtonIcon ?? po, I = u.EndScrollButtonIcon ?? fo, g = rt({
|
|
450
451
|
elementType: k,
|
|
451
452
|
externalSlotProps: b.startScrollButtonIcon,
|
|
452
453
|
additionalProps: {
|
|
453
454
|
fontSize: "small"
|
|
454
455
|
},
|
|
455
456
|
ownerState: m
|
|
456
|
-
}),
|
|
457
|
+
}), L = rt({
|
|
457
458
|
elementType: I,
|
|
458
459
|
externalSlotProps: b.endScrollButtonIcon,
|
|
459
460
|
additionalProps: {
|
|
@@ -461,7 +462,7 @@ const Se = pt("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
461
462
|
},
|
|
462
463
|
ownerState: m
|
|
463
464
|
});
|
|
464
|
-
return /* @__PURE__ */ x(
|
|
465
|
+
return /* @__PURE__ */ x(go, {
|
|
465
466
|
component: "div",
|
|
466
467
|
className: W(C.root, i),
|
|
467
468
|
ref: l,
|
|
@@ -478,11 +479,11 @@ const Se = pt("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
478
479
|
children: h === "left" ? /* @__PURE__ */ x(k, {
|
|
479
480
|
...g
|
|
480
481
|
}) : /* @__PURE__ */ x(I, {
|
|
481
|
-
...
|
|
482
|
+
...L
|
|
482
483
|
})
|
|
483
484
|
});
|
|
484
485
|
});
|
|
485
|
-
process.env.NODE_ENV !== "production" && (
|
|
486
|
+
process.env.NODE_ENV !== "production" && (jt.propTypes = {
|
|
486
487
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
487
488
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
488
489
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -490,74 +491,74 @@ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
|
|
|
490
491
|
/**
|
|
491
492
|
* The content of the component.
|
|
492
493
|
*/
|
|
493
|
-
children:
|
|
494
|
+
children: o.node,
|
|
494
495
|
/**
|
|
495
496
|
* Override or extend the styles applied to the component.
|
|
496
497
|
*/
|
|
497
|
-
classes:
|
|
498
|
+
classes: o.object,
|
|
498
499
|
/**
|
|
499
500
|
* @ignore
|
|
500
501
|
*/
|
|
501
|
-
className:
|
|
502
|
+
className: o.string,
|
|
502
503
|
/**
|
|
503
504
|
* The direction the button should indicate.
|
|
504
505
|
*/
|
|
505
|
-
direction:
|
|
506
|
+
direction: o.oneOf(["left", "right"]).isRequired,
|
|
506
507
|
/**
|
|
507
508
|
* If `true`, the component is disabled.
|
|
508
509
|
* @default false
|
|
509
510
|
*/
|
|
510
|
-
disabled:
|
|
511
|
+
disabled: o.bool,
|
|
511
512
|
/**
|
|
512
513
|
* The component orientation (layout flow direction).
|
|
513
514
|
*/
|
|
514
|
-
orientation:
|
|
515
|
+
orientation: o.oneOf(["horizontal", "vertical"]).isRequired,
|
|
515
516
|
/**
|
|
516
517
|
* The extra props for the slot components.
|
|
517
518
|
* You can override the existing props or add new ones.
|
|
518
519
|
* @default {}
|
|
519
520
|
*/
|
|
520
|
-
slotProps:
|
|
521
|
-
endScrollButtonIcon:
|
|
522
|
-
startScrollButtonIcon:
|
|
521
|
+
slotProps: o.shape({
|
|
522
|
+
endScrollButtonIcon: o.oneOfType([o.func, o.object]),
|
|
523
|
+
startScrollButtonIcon: o.oneOfType([o.func, o.object])
|
|
523
524
|
}),
|
|
524
525
|
/**
|
|
525
526
|
* The components used for each slot inside.
|
|
526
527
|
* @default {}
|
|
527
528
|
*/
|
|
528
|
-
slots:
|
|
529
|
-
EndScrollButtonIcon:
|
|
530
|
-
StartScrollButtonIcon:
|
|
529
|
+
slots: o.shape({
|
|
530
|
+
EndScrollButtonIcon: o.elementType,
|
|
531
|
+
StartScrollButtonIcon: o.elementType
|
|
531
532
|
}),
|
|
532
533
|
/**
|
|
533
534
|
* @ignore
|
|
534
535
|
*/
|
|
535
|
-
style:
|
|
536
|
+
style: o.object,
|
|
536
537
|
/**
|
|
537
538
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
538
539
|
*/
|
|
539
|
-
sx:
|
|
540
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
540
541
|
});
|
|
541
|
-
function
|
|
542
|
-
return ft("MuiTabs",
|
|
542
|
+
function To(e) {
|
|
543
|
+
return ft("MuiTabs", e);
|
|
543
544
|
}
|
|
544
|
-
const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), Rt = (
|
|
545
|
-
let d = !1, i = l(
|
|
545
|
+
const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), Rt = (e, t) => e === t ? e.firstChild : t && t.nextElementSibling ? t.nextElementSibling : e.firstChild, Ot = (e, t) => e === t ? e.lastChild : t && t.previousElementSibling ? t.previousElementSibling : e.lastChild, et = (e, t, l) => {
|
|
546
|
+
let d = !1, i = l(e, t);
|
|
546
547
|
for (; i; ) {
|
|
547
|
-
if (i ===
|
|
548
|
+
if (i === e.firstChild) {
|
|
548
549
|
if (d)
|
|
549
550
|
return;
|
|
550
551
|
d = !0;
|
|
551
552
|
}
|
|
552
553
|
const u = i.disabled || i.getAttribute("aria-disabled") === "true";
|
|
553
554
|
if (!i.hasAttribute("tabindex") || u)
|
|
554
|
-
i = l(
|
|
555
|
+
i = l(e, i);
|
|
555
556
|
else {
|
|
556
557
|
i.focus();
|
|
557
558
|
return;
|
|
558
559
|
}
|
|
559
560
|
}
|
|
560
|
-
},
|
|
561
|
+
}, wo = (e) => {
|
|
561
562
|
const {
|
|
562
563
|
vertical: t,
|
|
563
564
|
fixed: l,
|
|
@@ -567,7 +568,7 @@ const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
567
568
|
centered: b,
|
|
568
569
|
scrollButtonsHideMobile: h,
|
|
569
570
|
classes: f
|
|
570
|
-
} =
|
|
571
|
+
} = e;
|
|
571
572
|
return mt({
|
|
572
573
|
root: ["root", t && "vertical"],
|
|
573
574
|
scroller: ["scroller", l && "fixed", d && "hideScrollbar", i && "scrollableX", u && "scrollableY"],
|
|
@@ -576,14 +577,14 @@ const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
576
577
|
scrollButtons: ["scrollButtons", h && "scrollButtonsHideMobile"],
|
|
577
578
|
scrollableX: [i && "scrollableX"],
|
|
578
579
|
hideScrollbar: [d && "hideScrollbar"]
|
|
579
|
-
},
|
|
580
|
-
},
|
|
580
|
+
}, To, f);
|
|
581
|
+
}, Bo = j("div", {
|
|
581
582
|
name: "MuiTabs",
|
|
582
583
|
slot: "Root",
|
|
583
|
-
overridesResolver: (
|
|
584
|
+
overridesResolver: (e, t) => {
|
|
584
585
|
const {
|
|
585
586
|
ownerState: l
|
|
586
|
-
} =
|
|
587
|
+
} = e;
|
|
587
588
|
return [{
|
|
588
589
|
[`& .${ut.scrollButtons}`]: t.scrollButtons
|
|
589
590
|
}, {
|
|
@@ -591,7 +592,7 @@ const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
591
592
|
}, t.root, l.vertical && t.vertical];
|
|
592
593
|
}
|
|
593
594
|
})(bt(({
|
|
594
|
-
theme:
|
|
595
|
+
theme: e
|
|
595
596
|
}) => ({
|
|
596
597
|
overflow: "hidden",
|
|
597
598
|
minHeight: 48,
|
|
@@ -611,19 +612,19 @@ const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
611
612
|
}) => t.scrollButtonsHideMobile,
|
|
612
613
|
style: {
|
|
613
614
|
[`& .${ut.scrollButtons}`]: {
|
|
614
|
-
[
|
|
615
|
+
[e.breakpoints.down("sm")]: {
|
|
615
616
|
display: "none"
|
|
616
617
|
}
|
|
617
618
|
}
|
|
618
619
|
}
|
|
619
620
|
}]
|
|
620
|
-
}))),
|
|
621
|
+
}))), xo = j("div", {
|
|
621
622
|
name: "MuiTabs",
|
|
622
623
|
slot: "Scroller",
|
|
623
|
-
overridesResolver: (
|
|
624
|
+
overridesResolver: (e, t) => {
|
|
624
625
|
const {
|
|
625
626
|
ownerState: l
|
|
626
|
-
} =
|
|
627
|
+
} = e;
|
|
627
628
|
return [t.scroller, l.fixed && t.fixed, l.hideScrollbar && t.hideScrollbar, l.scrollableX && t.scrollableX, l.scrollableY && t.scrollableY];
|
|
628
629
|
}
|
|
629
630
|
})({
|
|
@@ -633,16 +634,16 @@ const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
633
634
|
whiteSpace: "nowrap",
|
|
634
635
|
variants: [{
|
|
635
636
|
props: ({
|
|
636
|
-
ownerState:
|
|
637
|
-
}) =>
|
|
637
|
+
ownerState: e
|
|
638
|
+
}) => e.fixed,
|
|
638
639
|
style: {
|
|
639
640
|
overflowX: "hidden",
|
|
640
641
|
width: "100%"
|
|
641
642
|
}
|
|
642
643
|
}, {
|
|
643
644
|
props: ({
|
|
644
|
-
ownerState:
|
|
645
|
-
}) =>
|
|
645
|
+
ownerState: e
|
|
646
|
+
}) => e.hideScrollbar,
|
|
646
647
|
style: {
|
|
647
648
|
// Hide dimensionless scrollbar on macOS
|
|
648
649
|
scrollbarWidth: "none",
|
|
@@ -654,72 +655,72 @@ const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
654
655
|
}
|
|
655
656
|
}, {
|
|
656
657
|
props: ({
|
|
657
|
-
ownerState:
|
|
658
|
-
}) =>
|
|
658
|
+
ownerState: e
|
|
659
|
+
}) => e.scrollableX,
|
|
659
660
|
style: {
|
|
660
661
|
overflowX: "auto",
|
|
661
662
|
overflowY: "hidden"
|
|
662
663
|
}
|
|
663
664
|
}, {
|
|
664
665
|
props: ({
|
|
665
|
-
ownerState:
|
|
666
|
-
}) =>
|
|
666
|
+
ownerState: e
|
|
667
|
+
}) => e.scrollableY,
|
|
667
668
|
style: {
|
|
668
669
|
overflowY: "auto",
|
|
669
670
|
overflowX: "hidden"
|
|
670
671
|
}
|
|
671
672
|
}]
|
|
672
|
-
}),
|
|
673
|
+
}), Co = j("div", {
|
|
673
674
|
name: "MuiTabs",
|
|
674
675
|
slot: "FlexContainer",
|
|
675
|
-
overridesResolver: (
|
|
676
|
+
overridesResolver: (e, t) => {
|
|
676
677
|
const {
|
|
677
678
|
ownerState: l
|
|
678
|
-
} =
|
|
679
|
+
} = e;
|
|
679
680
|
return [t.flexContainer, l.vertical && t.flexContainerVertical, l.centered && t.centered];
|
|
680
681
|
}
|
|
681
682
|
})({
|
|
682
683
|
display: "flex",
|
|
683
684
|
variants: [{
|
|
684
685
|
props: ({
|
|
685
|
-
ownerState:
|
|
686
|
-
}) =>
|
|
686
|
+
ownerState: e
|
|
687
|
+
}) => e.vertical,
|
|
687
688
|
style: {
|
|
688
689
|
flexDirection: "column"
|
|
689
690
|
}
|
|
690
691
|
}, {
|
|
691
692
|
props: ({
|
|
692
|
-
ownerState:
|
|
693
|
-
}) =>
|
|
693
|
+
ownerState: e
|
|
694
|
+
}) => e.centered,
|
|
694
695
|
style: {
|
|
695
696
|
justifyContent: "center"
|
|
696
697
|
}
|
|
697
698
|
}]
|
|
698
|
-
}),
|
|
699
|
+
}), Io = j("span", {
|
|
699
700
|
name: "MuiTabs",
|
|
700
701
|
slot: "Indicator",
|
|
701
|
-
overridesResolver: (
|
|
702
|
+
overridesResolver: (e, t) => t.indicator
|
|
702
703
|
})(bt(({
|
|
703
|
-
theme:
|
|
704
|
+
theme: e
|
|
704
705
|
}) => ({
|
|
705
706
|
position: "absolute",
|
|
706
707
|
height: 2,
|
|
707
708
|
bottom: 0,
|
|
708
709
|
width: "100%",
|
|
709
|
-
transition:
|
|
710
|
+
transition: e.transitions.create(),
|
|
710
711
|
variants: [{
|
|
711
712
|
props: {
|
|
712
713
|
indicatorColor: "primary"
|
|
713
714
|
},
|
|
714
715
|
style: {
|
|
715
|
-
backgroundColor: (
|
|
716
|
+
backgroundColor: (e.vars || e).palette.primary.main
|
|
716
717
|
}
|
|
717
718
|
}, {
|
|
718
719
|
props: {
|
|
719
720
|
indicatorColor: "secondary"
|
|
720
721
|
},
|
|
721
722
|
style: {
|
|
722
|
-
backgroundColor: (
|
|
723
|
+
backgroundColor: (e.vars || e).palette.secondary.main
|
|
723
724
|
}
|
|
724
725
|
}, {
|
|
725
726
|
props: ({
|
|
@@ -731,7 +732,7 @@ const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
731
732
|
right: 0
|
|
732
733
|
}
|
|
733
734
|
}]
|
|
734
|
-
}))),
|
|
735
|
+
}))), Eo = j(Ft)({
|
|
735
736
|
overflowX: "auto",
|
|
736
737
|
overflowY: "hidden",
|
|
737
738
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -743,11 +744,11 @@ const ut = pt("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
743
744
|
}
|
|
744
745
|
}), Nt = {};
|
|
745
746
|
let Pt = !1;
|
|
746
|
-
const
|
|
747
|
+
const Mo = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
747
748
|
const d = ht({
|
|
748
749
|
props: t,
|
|
749
750
|
name: "MuiTabs"
|
|
750
|
-
}), i =
|
|
751
|
+
}), i = ro(), u = zt(), {
|
|
751
752
|
"aria-label": b,
|
|
752
753
|
"aria-labelledby": h,
|
|
753
754
|
action: f,
|
|
@@ -759,7 +760,7 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
759
760
|
indicatorColor: k = "primary",
|
|
760
761
|
onChange: I,
|
|
761
762
|
orientation: g = "horizontal",
|
|
762
|
-
ScrollButtonComponent:
|
|
763
|
+
ScrollButtonComponent: L = jt,
|
|
763
764
|
scrollButtons: M = "auto",
|
|
764
765
|
selectionFollowsFocus: nt,
|
|
765
766
|
slots: H = {},
|
|
@@ -770,8 +771,8 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
770
771
|
value: N,
|
|
771
772
|
variant: R = "standard",
|
|
772
773
|
visibleScrollbar: lt = !1,
|
|
773
|
-
...
|
|
774
|
-
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft",
|
|
774
|
+
...Lt
|
|
775
|
+
} = d, w = R === "scrollable", B = g === "vertical", X = B ? "scrollTop" : "scrollLeft", Z = B ? "top" : "left", J = B ? "bottom" : "right", st = B ? "clientHeight" : "clientWidth", Y = B ? "height" : "width", D = {
|
|
775
776
|
...d,
|
|
776
777
|
component: m,
|
|
777
778
|
allowScrollButtonsMobile: C,
|
|
@@ -788,7 +789,7 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
788
789
|
scrollableY: w && B,
|
|
789
790
|
centered: S && !w,
|
|
790
791
|
scrollButtonsHideMobile: !C
|
|
791
|
-
}, P =
|
|
792
|
+
}, P = wo(D), Ht = rt({
|
|
792
793
|
elementType: H.StartScrollButtonIcon,
|
|
793
794
|
externalSlotProps: U.startScrollButtonIcon,
|
|
794
795
|
ownerState: D
|
|
@@ -798,10 +799,10 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
798
799
|
ownerState: D
|
|
799
800
|
});
|
|
800
801
|
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.');
|
|
801
|
-
const [St, Ut] = c.useState(!1), [$, vt] = c.useState(Nt), [yt, Xt] = c.useState(!1), [gt, Yt] = c.useState(!1), [Tt,
|
|
802
|
+
const [St, Ut] = c.useState(!1), [$, vt] = c.useState(Nt), [yt, Xt] = c.useState(!1), [gt, Yt] = c.useState(!1), [Tt, Kt] = c.useState(!1), [wt, _t] = c.useState({
|
|
802
803
|
overflow: "hidden",
|
|
803
804
|
scrollbarWidth: 0
|
|
804
|
-
}),
|
|
805
|
+
}), Q = /* @__PURE__ */ new Map(), O = c.useRef(null), A = c.useRef(null), Bt = () => {
|
|
805
806
|
const r = O.current;
|
|
806
807
|
let n;
|
|
807
808
|
if (r) {
|
|
@@ -821,8 +822,8 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
821
822
|
if (r && N !== !1) {
|
|
822
823
|
const a = A.current.children;
|
|
823
824
|
if (a.length > 0) {
|
|
824
|
-
const p = a[
|
|
825
|
-
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}".`,
|
|
825
|
+
const p = a[Q.get(N)];
|
|
826
|
+
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}".`, Q.keys ? `You can provide one of the following values: ${Array.from(Q.keys()).join(", ")}.` : null].join(`
|
|
826
827
|
`))), 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
|
|
827
828
|
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(`
|
|
828
829
|
`)), Pt = !0);
|
|
@@ -832,7 +833,7 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
832
833
|
tabsMeta: n,
|
|
833
834
|
tabMeta: s
|
|
834
835
|
};
|
|
835
|
-
},
|
|
836
|
+
}, K = dt(() => {
|
|
836
837
|
const {
|
|
837
838
|
tabsMeta: r,
|
|
838
839
|
tabMeta: n
|
|
@@ -853,7 +854,7 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
853
854
|
}), at = (r, {
|
|
854
855
|
animation: n = !0
|
|
855
856
|
} = {}) => {
|
|
856
|
-
n ?
|
|
857
|
+
n ? ho(X, O.current, r, {
|
|
857
858
|
duration: i.transitions.duration.standard
|
|
858
859
|
}) : O.current[X] = r;
|
|
859
860
|
}, xt = (r) => {
|
|
@@ -876,19 +877,19 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
876
877
|
xt(-1 * Ct());
|
|
877
878
|
}, Gt = () => {
|
|
878
879
|
xt(Ct());
|
|
879
|
-
},
|
|
880
|
-
|
|
880
|
+
}, Zt = c.useCallback((r) => {
|
|
881
|
+
_t({
|
|
881
882
|
overflow: null,
|
|
882
883
|
scrollbarWidth: r
|
|
883
884
|
});
|
|
884
|
-
}, []),
|
|
885
|
+
}, []), Jt = () => {
|
|
885
886
|
const r = {};
|
|
886
|
-
r.scrollbarSizeListener = w ? /* @__PURE__ */ x(
|
|
887
|
-
onChange:
|
|
887
|
+
r.scrollbarSizeListener = w ? /* @__PURE__ */ x(Eo, {
|
|
888
|
+
onChange: Zt,
|
|
888
889
|
className: W(P.scrollableX, P.hideScrollbar)
|
|
889
890
|
}) : null;
|
|
890
891
|
const s = w && (M === "auto" && (yt || gt) || M === !0);
|
|
891
|
-
return r.scrollButtonStart = s ? /* @__PURE__ */ x(
|
|
892
|
+
return r.scrollButtonStart = s ? /* @__PURE__ */ x(L, {
|
|
892
893
|
slots: {
|
|
893
894
|
StartScrollButtonIcon: H.StartScrollButtonIcon
|
|
894
895
|
},
|
|
@@ -901,7 +902,7 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
901
902
|
disabled: !yt,
|
|
902
903
|
...z,
|
|
903
904
|
className: W(P.scrollButtons, z.className)
|
|
904
|
-
}) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ x(
|
|
905
|
+
}) : null, r.scrollButtonEnd = s ? /* @__PURE__ */ x(L, {
|
|
905
906
|
slots: {
|
|
906
907
|
EndScrollButtonIcon: H.EndScrollButtonIcon
|
|
907
908
|
},
|
|
@@ -921,32 +922,32 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
921
922
|
tabMeta: s
|
|
922
923
|
} = Bt();
|
|
923
924
|
if (!(!s || !n)) {
|
|
924
|
-
if (s[
|
|
925
|
-
const a = n[X] + (s[
|
|
925
|
+
if (s[Z] < n[Z]) {
|
|
926
|
+
const a = n[X] + (s[Z] - n[Z]);
|
|
926
927
|
at(a, {
|
|
927
928
|
animation: r
|
|
928
929
|
});
|
|
929
|
-
} else if (s[
|
|
930
|
-
const a = n[X] + (s[
|
|
930
|
+
} else if (s[J] > n[J]) {
|
|
931
|
+
const a = n[X] + (s[J] - n[J]);
|
|
931
932
|
at(a, {
|
|
932
933
|
animation: r
|
|
933
934
|
});
|
|
934
935
|
}
|
|
935
936
|
}
|
|
936
937
|
}), tt = dt(() => {
|
|
937
|
-
w && M !== !1 &&
|
|
938
|
+
w && M !== !1 && Kt(!Tt);
|
|
938
939
|
});
|
|
939
940
|
c.useEffect(() => {
|
|
940
941
|
const r = Dt(() => {
|
|
941
|
-
O.current &&
|
|
942
|
+
O.current && K();
|
|
942
943
|
});
|
|
943
944
|
let n;
|
|
944
945
|
const s = (E) => {
|
|
945
946
|
E.forEach((F) => {
|
|
946
|
-
F.removedNodes.forEach((
|
|
947
|
-
n == null || n.unobserve(
|
|
948
|
-
}), F.addedNodes.forEach((
|
|
949
|
-
n == null || n.observe(
|
|
947
|
+
F.removedNodes.forEach((_) => {
|
|
948
|
+
n == null || n.unobserve(_);
|
|
949
|
+
}), F.addedNodes.forEach((_) => {
|
|
950
|
+
n == null || n.observe(_);
|
|
950
951
|
});
|
|
951
952
|
}), r(), tt();
|
|
952
953
|
}, a = $t(O.current);
|
|
@@ -959,7 +960,7 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
959
960
|
})), () => {
|
|
960
961
|
r.clear(), a.removeEventListener("resize", r), p == null || p.disconnect(), n == null || n.disconnect();
|
|
961
962
|
};
|
|
962
|
-
}, [
|
|
963
|
+
}, [K, tt]), c.useEffect(() => {
|
|
963
964
|
const r = Array.from(A.current.children), n = r.length;
|
|
964
965
|
if (typeof IntersectionObserver < "u" && n > 0 && w && M !== !1) {
|
|
965
966
|
const s = r[0], a = r[n - 1], p = {
|
|
@@ -969,9 +970,9 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
969
970
|
Xt(!ct[0].isIntersecting);
|
|
970
971
|
}, F = new IntersectionObserver(E, p);
|
|
971
972
|
F.observe(s);
|
|
972
|
-
const
|
|
973
|
+
const _ = (ct) => {
|
|
973
974
|
Yt(!ct[0].isIntersecting);
|
|
974
|
-
}, Mt = new IntersectionObserver(
|
|
975
|
+
}, Mt = new IntersectionObserver(_, p);
|
|
975
976
|
return Mt.observe(a), () => {
|
|
976
977
|
F.disconnect(), Mt.disconnect();
|
|
977
978
|
};
|
|
@@ -979,14 +980,14 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
979
980
|
}, [w, M, Tt, v == null ? void 0 : v.length]), c.useEffect(() => {
|
|
980
981
|
Ut(!0);
|
|
981
982
|
}, []), c.useEffect(() => {
|
|
982
|
-
|
|
983
|
+
K();
|
|
983
984
|
}), c.useEffect(() => {
|
|
984
985
|
It(Nt !== $);
|
|
985
986
|
}, [It, $]), c.useImperativeHandle(f, () => ({
|
|
986
|
-
updateIndicator:
|
|
987
|
+
updateIndicator: K,
|
|
987
988
|
updateScrollButtons: tt
|
|
988
|
-
}), [
|
|
989
|
-
const Et = /* @__PURE__ */ x(
|
|
989
|
+
}), [K, tt]);
|
|
990
|
+
const Et = /* @__PURE__ */ x(Io, {
|
|
990
991
|
...V,
|
|
991
992
|
className: W(P.indicator, V.className),
|
|
992
993
|
ownerState: D,
|
|
@@ -995,16 +996,16 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
995
996
|
...V.style
|
|
996
997
|
}
|
|
997
998
|
});
|
|
998
|
-
let
|
|
999
|
-
const
|
|
999
|
+
let ot = 0;
|
|
1000
|
+
const Qt = c.Children.map(v, (r) => {
|
|
1000
1001
|
if (!/* @__PURE__ */ c.isValidElement(r))
|
|
1001
1002
|
return null;
|
|
1002
|
-
process.env.NODE_ENV !== "production" &&
|
|
1003
|
+
process.env.NODE_ENV !== "production" && oo.isFragment(r) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
1003
1004
|
`));
|
|
1004
|
-
const n = r.props.value === void 0 ?
|
|
1005
|
-
|
|
1005
|
+
const n = r.props.value === void 0 ? ot : r.props.value;
|
|
1006
|
+
Q.set(n, ot);
|
|
1006
1007
|
const s = n === N;
|
|
1007
|
-
return
|
|
1008
|
+
return ot += 1, /* @__PURE__ */ c.cloneElement(r, {
|
|
1008
1009
|
fullWidth: R === "fullWidth",
|
|
1009
1010
|
indicator: s && !St && Et,
|
|
1010
1011
|
selected: s,
|
|
@@ -1012,37 +1013,37 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
1012
1013
|
onChange: I,
|
|
1013
1014
|
textColor: G,
|
|
1014
1015
|
value: n,
|
|
1015
|
-
...
|
|
1016
|
+
...ot === 1 && N === !1 && !r.props.tabIndex ? {
|
|
1016
1017
|
tabIndex: 0
|
|
1017
1018
|
} : {}
|
|
1018
1019
|
});
|
|
1019
|
-
}),
|
|
1020
|
-
const n = A.current, s =
|
|
1020
|
+
}), to = (r) => {
|
|
1021
|
+
const n = A.current, s = lo(n).activeElement;
|
|
1021
1022
|
if (s.getAttribute("role") !== "tab")
|
|
1022
1023
|
return;
|
|
1023
1024
|
let p = g === "horizontal" ? "ArrowLeft" : "ArrowUp", E = g === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
1024
1025
|
switch (g === "horizontal" && u && (p = "ArrowRight", E = "ArrowLeft"), r.key) {
|
|
1025
1026
|
case p:
|
|
1026
|
-
r.preventDefault(),
|
|
1027
|
+
r.preventDefault(), et(n, s, Ot);
|
|
1027
1028
|
break;
|
|
1028
1029
|
case E:
|
|
1029
|
-
r.preventDefault(),
|
|
1030
|
+
r.preventDefault(), et(n, s, Rt);
|
|
1030
1031
|
break;
|
|
1031
1032
|
case "Home":
|
|
1032
|
-
r.preventDefault(),
|
|
1033
|
+
r.preventDefault(), et(n, null, Rt);
|
|
1033
1034
|
break;
|
|
1034
1035
|
case "End":
|
|
1035
|
-
r.preventDefault(),
|
|
1036
|
+
r.preventDefault(), et(n, null, Ot);
|
|
1036
1037
|
break;
|
|
1037
1038
|
}
|
|
1038
|
-
}, it =
|
|
1039
|
-
return /* @__PURE__ */ q(
|
|
1039
|
+
}, it = Jt();
|
|
1040
|
+
return /* @__PURE__ */ q(Bo, {
|
|
1040
1041
|
className: W(P.root, y),
|
|
1041
1042
|
ownerState: D,
|
|
1042
1043
|
ref: l,
|
|
1043
1044
|
as: m,
|
|
1044
|
-
...
|
|
1045
|
-
children: [it.scrollButtonStart, it.scrollbarSizeListener, /* @__PURE__ */ q(
|
|
1045
|
+
...Lt,
|
|
1046
|
+
children: [it.scrollButtonStart, it.scrollbarSizeListener, /* @__PURE__ */ q(xo, {
|
|
1046
1047
|
className: P.scroller,
|
|
1047
1048
|
ownerState: D,
|
|
1048
1049
|
style: {
|
|
@@ -1050,21 +1051,21 @@ const Ee = /* @__PURE__ */ c.forwardRef(function(t, l) {
|
|
|
1050
1051
|
[B ? `margin${u ? "Left" : "Right"}` : "marginBottom"]: lt ? void 0 : -wt.scrollbarWidth
|
|
1051
1052
|
},
|
|
1052
1053
|
ref: O,
|
|
1053
|
-
children: [/* @__PURE__ */ x(
|
|
1054
|
+
children: [/* @__PURE__ */ x(Co, {
|
|
1054
1055
|
"aria-label": b,
|
|
1055
1056
|
"aria-labelledby": h,
|
|
1056
1057
|
"aria-orientation": g === "vertical" ? "vertical" : null,
|
|
1057
1058
|
className: P.flexContainer,
|
|
1058
1059
|
ownerState: D,
|
|
1059
|
-
onKeyDown:
|
|
1060
|
+
onKeyDown: to,
|
|
1060
1061
|
ref: A,
|
|
1061
1062
|
role: "tablist",
|
|
1062
|
-
children:
|
|
1063
|
+
children: Qt
|
|
1063
1064
|
}), St && Et]
|
|
1064
1065
|
}), it.scrollButtonEnd]
|
|
1065
1066
|
});
|
|
1066
1067
|
});
|
|
1067
|
-
process.env.NODE_ENV !== "production" && (
|
|
1068
|
+
process.env.NODE_ENV !== "production" && (Mo.propTypes = {
|
|
1068
1069
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1069
1070
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1070
1071
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1077,66 +1078,66 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
1077
1078
|
* @param {object} actions This object contains all possible actions
|
|
1078
1079
|
* that can be triggered programmatically.
|
|
1079
1080
|
*/
|
|
1080
|
-
action:
|
|
1081
|
+
action: so,
|
|
1081
1082
|
/**
|
|
1082
1083
|
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
1083
1084
|
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
1084
1085
|
* @default false
|
|
1085
1086
|
*/
|
|
1086
|
-
allowScrollButtonsMobile:
|
|
1087
|
+
allowScrollButtonsMobile: o.bool,
|
|
1087
1088
|
/**
|
|
1088
1089
|
* The label for the Tabs as a string.
|
|
1089
1090
|
*/
|
|
1090
|
-
"aria-label":
|
|
1091
|
+
"aria-label": o.string,
|
|
1091
1092
|
/**
|
|
1092
1093
|
* An id or list of ids separated by a space that label the Tabs.
|
|
1093
1094
|
*/
|
|
1094
|
-
"aria-labelledby":
|
|
1095
|
+
"aria-labelledby": o.string,
|
|
1095
1096
|
/**
|
|
1096
1097
|
* If `true`, the tabs are centered.
|
|
1097
1098
|
* This prop is intended for large views.
|
|
1098
1099
|
* @default false
|
|
1099
1100
|
*/
|
|
1100
|
-
centered:
|
|
1101
|
+
centered: o.bool,
|
|
1101
1102
|
/**
|
|
1102
1103
|
* The content of the component.
|
|
1103
1104
|
*/
|
|
1104
|
-
children:
|
|
1105
|
+
children: o.node,
|
|
1105
1106
|
/**
|
|
1106
1107
|
* Override or extend the styles applied to the component.
|
|
1107
1108
|
*/
|
|
1108
|
-
classes:
|
|
1109
|
+
classes: o.object,
|
|
1109
1110
|
/**
|
|
1110
1111
|
* @ignore
|
|
1111
1112
|
*/
|
|
1112
|
-
className:
|
|
1113
|
+
className: o.string,
|
|
1113
1114
|
/**
|
|
1114
1115
|
* The component used for the root node.
|
|
1115
1116
|
* Either a string to use a HTML element or a component.
|
|
1116
1117
|
*/
|
|
1117
|
-
component:
|
|
1118
|
+
component: o.elementType,
|
|
1118
1119
|
/**
|
|
1119
1120
|
* Determines the color of the indicator.
|
|
1120
1121
|
* @default 'primary'
|
|
1121
1122
|
*/
|
|
1122
|
-
indicatorColor:
|
|
1123
|
+
indicatorColor: o.oneOfType([o.oneOf(["primary", "secondary"]), o.string]),
|
|
1123
1124
|
/**
|
|
1124
1125
|
* Callback fired when the value changes.
|
|
1125
1126
|
*
|
|
1126
1127
|
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
1127
1128
|
* @param {any} value We default to the index of the child (number)
|
|
1128
1129
|
*/
|
|
1129
|
-
onChange:
|
|
1130
|
+
onChange: o.func,
|
|
1130
1131
|
/**
|
|
1131
1132
|
* The component orientation (layout flow direction).
|
|
1132
1133
|
* @default 'horizontal'
|
|
1133
1134
|
*/
|
|
1134
|
-
orientation:
|
|
1135
|
+
orientation: o.oneOf(["horizontal", "vertical"]),
|
|
1135
1136
|
/**
|
|
1136
1137
|
* The component used to render the scroll buttons.
|
|
1137
1138
|
* @default TabScrollButton
|
|
1138
1139
|
*/
|
|
1139
|
-
ScrollButtonComponent:
|
|
1140
|
+
ScrollButtonComponent: o.elementType,
|
|
1140
1141
|
/**
|
|
1141
1142
|
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
1142
1143
|
*
|
|
@@ -1148,53 +1149,53 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
1148
1149
|
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
1149
1150
|
* @default 'auto'
|
|
1150
1151
|
*/
|
|
1151
|
-
scrollButtons:
|
|
1152
|
+
scrollButtons: o.oneOf(["auto", !1, !0]),
|
|
1152
1153
|
/**
|
|
1153
1154
|
* If `true` the selected tab changes on focus. Otherwise it only
|
|
1154
1155
|
* changes on activation.
|
|
1155
1156
|
*/
|
|
1156
|
-
selectionFollowsFocus:
|
|
1157
|
+
selectionFollowsFocus: o.bool,
|
|
1157
1158
|
/**
|
|
1158
1159
|
* The extra props for the slot components.
|
|
1159
1160
|
* You can override the existing props or add new ones.
|
|
1160
1161
|
* @default {}
|
|
1161
1162
|
*/
|
|
1162
|
-
slotProps:
|
|
1163
|
-
endScrollButtonIcon:
|
|
1164
|
-
startScrollButtonIcon:
|
|
1163
|
+
slotProps: o.shape({
|
|
1164
|
+
endScrollButtonIcon: o.oneOfType([o.func, o.object]),
|
|
1165
|
+
startScrollButtonIcon: o.oneOfType([o.func, o.object])
|
|
1165
1166
|
}),
|
|
1166
1167
|
/**
|
|
1167
1168
|
* The components used for each slot inside.
|
|
1168
1169
|
* @default {}
|
|
1169
1170
|
*/
|
|
1170
|
-
slots:
|
|
1171
|
-
EndScrollButtonIcon:
|
|
1172
|
-
StartScrollButtonIcon:
|
|
1171
|
+
slots: o.shape({
|
|
1172
|
+
EndScrollButtonIcon: o.elementType,
|
|
1173
|
+
StartScrollButtonIcon: o.elementType
|
|
1173
1174
|
}),
|
|
1174
1175
|
/**
|
|
1175
1176
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1176
1177
|
*/
|
|
1177
|
-
sx:
|
|
1178
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
1178
1179
|
/**
|
|
1179
1180
|
* Props applied to the tab indicator element.
|
|
1180
1181
|
* @default {}
|
|
1181
1182
|
*/
|
|
1182
|
-
TabIndicatorProps:
|
|
1183
|
+
TabIndicatorProps: o.object,
|
|
1183
1184
|
/**
|
|
1184
1185
|
* Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
|
|
1185
1186
|
* @default {}
|
|
1186
1187
|
*/
|
|
1187
|
-
TabScrollButtonProps:
|
|
1188
|
+
TabScrollButtonProps: o.object,
|
|
1188
1189
|
/**
|
|
1189
1190
|
* Determines the color of the `Tab`.
|
|
1190
1191
|
* @default 'primary'
|
|
1191
1192
|
*/
|
|
1192
|
-
textColor:
|
|
1193
|
+
textColor: o.oneOf(["inherit", "primary", "secondary"]),
|
|
1193
1194
|
/**
|
|
1194
1195
|
* The value of the currently selected `Tab`.
|
|
1195
1196
|
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
1196
1197
|
*/
|
|
1197
|
-
value:
|
|
1198
|
+
value: o.any,
|
|
1198
1199
|
/**
|
|
1199
1200
|
* Determines additional display behavior of the tabs:
|
|
1200
1201
|
*
|
|
@@ -1205,21 +1206,21 @@ process.env.NODE_ENV !== "production" && (Ee.propTypes = {
|
|
|
1205
1206
|
* - `standard` will render the default state.
|
|
1206
1207
|
* @default 'standard'
|
|
1207
1208
|
*/
|
|
1208
|
-
variant:
|
|
1209
|
+
variant: o.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
1209
1210
|
/**
|
|
1210
1211
|
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
1211
1212
|
* a long vertical list of tabs.
|
|
1212
1213
|
* @default false
|
|
1213
1214
|
*/
|
|
1214
|
-
visibleScrollbar:
|
|
1215
|
+
visibleScrollbar: o.bool
|
|
1215
1216
|
});
|
|
1216
1217
|
export {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1218
|
+
fo as K,
|
|
1219
|
+
uo as T,
|
|
1220
|
+
Mo as a,
|
|
1220
1221
|
ut as b,
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1222
|
+
To as c,
|
|
1223
|
+
po as d,
|
|
1224
|
+
ao as g,
|
|
1224
1225
|
T as t
|
|
1225
1226
|
};
|