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