@cgi-learning-hub/ui 1.5.1 → 1.6.0-dev.1747671610
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/Alert-DW8yCR-B.cjs +1 -0
- package/dist/{Alert-BfMYnyZX.js → Alert-PmI169Dq.js} +144 -142
- package/dist/{Autocomplete-DQyr97ya.js → Autocomplete-BIBR54X2.js} +709 -667
- package/dist/Autocomplete-D9hZ2wrR.cjs +6 -0
- package/dist/Backdrop-3TL73mAe.cjs +1 -0
- package/dist/{Backdrop-B200pms1.js → Backdrop-BxgGvlLM.js} +21 -20
- package/dist/Badge-DhyDno9j.cjs +138 -0
- package/dist/{ToggleButtonGroup-gxIqbo6a.js → Badge-rX7YUmBc.js} +6487 -4178
- package/dist/Box-DYD6q-6M.cjs +1 -0
- package/dist/{Box-D3Pi13ta.js → Box-o7Tjjyko.js} +21 -20
- package/dist/{Button-D1aKdjIh.js → Button-D974vesA.js} +19 -18
- package/dist/Button-y1LmxqGA.cjs +1 -0
- package/dist/{ButtonBase-Bncgzjtp.js → ButtonBase-Chb99sDQ.js} +25 -24
- package/dist/ButtonBase-Cteo-mSC.cjs +74 -0
- package/dist/{CardContent-DyggcxBG.js → CardContent-DaZl2i3G.js} +10 -9
- package/dist/CardContent-ji0_AneN.cjs +1 -0
- package/dist/Checkbox-XXqW_dbW.cjs +1 -0
- package/dist/{Checkbox-DkrWUPYT.js → Checkbox-p-PKpEw_.js} +91 -62
- package/dist/Chip-Bpcd3tnL.cjs +1 -0
- package/dist/{Chip-Y39z3DS6.js → Chip-CPR3r42q.js} +13 -12
- package/dist/{CircularProgress-BDjnnyuL.js → CircularProgress-DVKNRMKq.js} +15 -14
- package/dist/CircularProgress-Wqx0-T36.cjs +28 -0
- package/dist/{Close-DJDhRwj2.cjs → Close-DyRqry3p.cjs} +1 -1
- package/dist/{Close-hx7dlgmZ.js → Close-m-MX3rFn.js} +1 -1
- package/dist/{CloseRounded-DapqosK3.cjs → CloseRounded-Bpxbxvyb.cjs} +1 -1
- package/dist/{CloseRounded-aZqv6aS-.js → CloseRounded-CjjQdrNy.js} +1 -1
- package/dist/CustomTreeItem-DPyfIueW.cjs +3 -0
- package/dist/{CustomTreeItem-CgdZ-hEx.js → CustomTreeItem-hIRSCwAW.js} +251 -256
- package/dist/{DatePicker-C2ZobNcJ.js → DatePicker-BMzW4v1g.js} +1079 -1081
- package/dist/DatePicker-CNhBoaI3.cjs +14 -0
- package/dist/DefaultPropsProvider-B1crdkTC.cjs +1 -0
- package/dist/{DefaultPropsProvider-Ik4eAJdt.js → DefaultPropsProvider-hFv1J_xl.js} +68 -67
- package/dist/{Delete-Cfk3fOW-.js → Delete-9fJbdRit.js} +1 -1
- package/dist/{Delete-DDxv1h6V.cjs → Delete-CEX2hq0f.cjs} +1 -1
- package/dist/Dialog-B2LKe7ZM.cjs +1 -0
- package/dist/{Dialog-Ccvug1yq.js → Dialog-BzsWl6Vl.js} +106 -111
- package/dist/{DialogContent-CIMpKm-U.js → DialogContent-B41jvlMn.js} +14 -13
- package/dist/DialogContent-BbCu_OEw.cjs +1 -0
- package/dist/{DialogTitle-BwTvIaQe.js → DialogTitle-CVvztEM0.js} +22 -21
- package/dist/DialogTitle-SwUSpeBT.cjs +1 -0
- package/dist/{Divider-C2cBikSL.js → Divider-CJwnMdVg.js} +9 -8
- package/dist/Divider-Cshcr5kR.cjs +1 -0
- package/dist/{Folder-DEtB13yM.cjs → Folder-7plrMkOp.cjs} +1 -1
- package/dist/{Folder-Bnoqtzc6.js → Folder-CutUz0bW.js} +1 -1
- package/dist/FormLabel-0LbNeQQU.cjs +2 -0
- package/dist/{FormLabel-EkpI8MQr.js → FormLabel-DSi2pGSZ.js} +16 -15
- package/dist/{Grow-B_clfUP9.js → Grow-FFFqe81C.js} +5 -5
- package/dist/Grow-aEgTOewU.cjs +1 -0
- package/dist/IconButton-BKwDNYJl.cjs +2 -0
- package/dist/{IconButton-D1mhTuaI.js → IconButton-CgwURB2g.js} +7 -6
- package/dist/InputAdornment-C7e-kyf7.cjs +1 -0
- package/dist/{InputAdornment-BxB8_tq-.js → InputAdornment-DgWvMLgR.js} +22 -21
- package/dist/{InputBase-BQnEIwl1.js → InputBase-DxLqRpcl.js} +263 -256
- package/dist/InputBase-pYQWRFK2.cjs +3 -0
- package/dist/Link-DUtuCYMx.cjs +1 -0
- package/dist/{Link-8ltXgZj7.js → Link-rb-SwfiY.js} +18 -17
- package/dist/List-BH_S4Hqm.cjs +1 -0
- package/dist/{List-DJsqHOqv.js → List-BjfdkeEI.js} +5 -4
- package/dist/{ListItem-BspNcHM_.js → ListItem-B0EiObKw.js} +40 -39
- package/dist/ListItem-D33t-hkx.cjs +1 -0
- package/dist/ListItemText-B8jlTz59.cjs +2 -0
- package/dist/ListItemText-BeyHu1da.js +853 -0
- package/dist/Menu-BjrN8rMF.cjs +7 -0
- package/dist/{Menu-DPhreDcS.js → Menu-By6cOqEO.js} +407 -336
- package/dist/{MenuItem-Fb7iU47J.js → MenuItem-B1FTx8Uo.js} +17 -16
- package/dist/MenuItem-Cz_x60jl.cjs +1 -0
- package/dist/Modal-DxwlW5NV.cjs +2 -0
- package/dist/{Modal-dmMiGSAp.js → Modal-vrLLqk9Y.js} +240 -245
- package/dist/{MoreVert-DNeLf2VB.cjs → MoreVert-DC6HBf1h.cjs} +1 -1
- package/dist/{MoreVert-BCGFGn8f.js → MoreVert-DJ8sAY3o.js} +1 -1
- package/dist/{Paper-CEDxpHWv.js → Paper-984iTz4H.js} +32 -31
- package/dist/Paper-Bh9CKUCb.cjs +2 -0
- package/dist/{Popper-D5_YIJX6.js → Popper-DfwuvxaQ.js} +11 -10
- package/dist/Popper-yO_RaCbM.cjs +4 -0
- package/dist/Portal-B5KqLEa0.cjs +1 -0
- package/dist/Portal-ChC9wmMZ.js +85 -0
- package/dist/{Radio-B4sx0387.js → Radio-BqY-su_F.js} +228 -183
- package/dist/Radio-C7zzpRFc.cjs +1 -0
- package/dist/{RadioGroup-UStIK_UX.js → RadioGroup-BQvlYFpE.js} +24 -23
- package/dist/RadioGroup-BlUWRmLG.cjs +1 -0
- package/dist/{Select-CxnCi-3l.js → Select-DZMwqCYA.js} +96 -95
- package/dist/Select-Doay7ukI.cjs +3 -0
- package/dist/Stack-BVWbOqY_.cjs +1 -0
- package/dist/{Stack-CzKIgmIE.js → Stack-CMUWQxQn.js} +63 -107
- package/dist/{Switch-D3KweZGQ.js → Switch-Bg4QB4PJ.js} +169 -108
- package/dist/Switch-CEfqaD33.cjs +1 -0
- package/dist/SwitchBase-DvCITKv8.cjs +1 -0
- package/dist/SwitchBase-EDFBMPd7.js +316 -0
- package/dist/{Tab-C1r8JXwz.js → Tab-52AkFc9v.js} +599 -537
- package/dist/Tab-C6H241Pf.cjs +4 -0
- package/dist/{TextField-D-_WjPAW.js → TextField-DG9mRp_m.js} +127 -116
- package/dist/TextField-bE2NUKKK.cjs +1 -0
- package/dist/{Tooltip-D0bof-68.js → Tooltip-DCgaU2em.js} +20 -19
- package/dist/Tooltip-D_w-IJoD.cjs +4 -0
- package/dist/Typography-De-21leI.cjs +1 -0
- package/dist/{Typography-DBJqhIhB.js → Typography-DwMlN0K5.js} +9 -8
- package/dist/{capitalize-DSG2FA7x.js → capitalize-BHFotl9B.js} +1 -1
- package/dist/{capitalize-CToVceBw.cjs → capitalize-CKLkSyDO.cjs} +1 -1
- package/dist/client-error-CHkavqXs.cjs +1 -0
- package/dist/{client-error-B_-qjgAB.js → client-error-D0Ng5oOn.js} +1 -3
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/ColorPicker/ColorPicker.cjs.js +27 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +4 -0
- package/dist/components/ColorPicker/ColorPicker.es.js +7960 -0
- package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +1 -0
- package/dist/components/ColorPicker/ColorPickerIcon.d.ts +5 -0
- package/dist/components/ColorPicker/ColorPickerIcon.es.js +58 -0
- package/dist/components/ColorPicker/index.cjs.js +1 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/ColorPicker/index.es.js +4 -0
- package/dist/components/ColorPicker/styles.cjs.js +1 -0
- package/dist/components/ColorPicker/styles.es.js +26 -0
- package/dist/components/ColorPicker/types.cjs.js +1 -0
- package/dist/components/ColorPicker/types.d.ts +19 -0
- package/dist/components/ColorPicker/types.es.js +1 -0
- 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 +3 -3
- 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/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- 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 +5 -5
- 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 +4 -4
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +2 -2
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +22 -22
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +5 -5
- package/dist/components/TreeView/TreeView.es.js +15 -13
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +4 -3
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +19 -0
- package/dist/components/index.es.js +404 -373
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- 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/ColoPicker.stories.cjs.js +1 -0
- package/dist/components/stories/ColoPicker.stories.d.ts +6 -0
- package/dist/components/stories/ColoPicker.stories.es.js +23 -0
- 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/EmptyState.stories.cjs.js +1 -1
- package/dist/components/stories/EmptyState.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 +1 -1
- 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/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.es.js +29 -29
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/composeClasses-CJKlIaRn.js +51 -0
- package/dist/composeClasses-CWgX5SFD.cjs +1 -0
- package/dist/createSvgIcon-BgBODH2F.cjs +1 -0
- package/dist/{createSvgIcon-CsMK8tGM.js → createSvgIcon-BlKmtOkV.js} +48 -47
- package/dist/{dividerClasses-BtzbOVqV.cjs → dividerClasses-D3gnW6kZ.cjs} +1 -1
- package/dist/{dividerClasses-BfxSqqSn.js → dividerClasses-Glz8RJdF.js} +1 -1
- package/dist/elementTypeAcceptingRef-BwZv9xBI.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-CW5o2Qxo.js → elementTypeAcceptingRef-DOeckaXy.js} +1 -1
- package/dist/{extendSxProp-DSA-5JvJ.js → extendSxProp-BouzOuB6.js} +1 -1
- package/dist/{extendSxProp-BKP1AeGz.cjs → extendSxProp-Cm-DtZe3.cjs} +1 -1
- package/dist/generateUtilityClasses-CMlilM6r.cjs +55 -0
- package/dist/generateUtilityClasses-DngCqveO.js +2628 -0
- package/dist/getReactElementRef-EVJnBPlV.cjs +1 -0
- package/dist/{getReactElementRef-CD3_Stk5.js → getReactElementRef-H8kwrWP1.js} +1 -1
- package/dist/hooks/lazySvgImport.cjs.js +1 -1
- package/dist/hooks/lazySvgImport.es.js +1 -1
- package/dist/index-BzsuDIEl.cjs +1 -0
- package/dist/{index-CDLJvERp.js → index-CX0sAlmK.js} +2 -2
- package/dist/index-CrINMjCH.cjs +1 -0
- package/dist/index-DIyAQH20.cjs +5 -0
- package/dist/index-DLnSn8GT.cjs +20 -0
- package/dist/{index-JOgYmUF8.js → index-DX2Sl0Ig.js} +1 -1
- package/dist/index-Sy88PpwE.js +672 -0
- package/dist/{index-CoYVLWJY.js → index-l8yqod25.js} +14 -13
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +404 -373
- package/dist/{listItemTextClasses-DePeZNtZ.cjs → listItemTextClasses-BJFgw1ah.cjs} +1 -1
- package/dist/{listItemTextClasses-Cy10XsJj.js → listItemTextClasses-BRj19IXv.js} +1 -1
- package/dist/{memoTheme-BhhxAcUJ.cjs → memoTheme-BAbn60Cb.cjs} +1 -1
- package/dist/{memoTheme-44McxcVZ.js → memoTheme-nmt7i1dS.js} +1 -1
- package/dist/mergeSlotProps-BBciKnr4.js +62 -0
- package/dist/mergeSlotProps-Z5-o9vSe.cjs +1 -0
- package/dist/refType-B_IEJm4x.cjs +1 -0
- package/dist/{refType-DsRJ5_Sj.js → refType-Dp7CJc86.js} +1 -1
- package/dist/server-error-CqyYyPLN.cjs +1 -0
- package/dist/{server-error-DMyaPFs8.js → server-error-CvgIy7ap.js} +1 -3
- package/dist/useEventCallback-BxpcFap0.cjs +1 -0
- package/dist/useEventCallback-Yoj9nCug.js +15 -0
- package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
- package/dist/useForkRef-u29GSuCu.js +27 -0
- package/dist/useSlot-BDb1lvxu.js +125 -0
- package/dist/useSlot-W0PiuVaZ.cjs +1 -0
- package/dist/{useSlotProps-CDJdiQpV.js → useSlotProps-B_D8u0j-.js} +2 -2
- package/dist/useSlotProps-OhEflPiz.cjs +1 -0
- package/dist/useTheme-C59wIJ3-.js +11 -0
- package/dist/{useTheme-DpMakc_Y.cjs → useTheme-ClhInrO2.cjs} +1 -1
- package/dist/{useTheme-CCi6a5Vl.cjs → useTheme-CqYtLDbs.cjs} +1 -1
- package/dist/{useTheme-C2OE_AnH.js → useTheme-D9cVynB-.js} +1 -1
- package/dist/useThemeProps-BFQ8ndnj.js +17 -0
- package/dist/{useThemeProps-DQFApaJ_.cjs → useThemeProps-DQOn-ezC.cjs} +1 -1
- package/dist/useThemeProps-DYpozGhe.cjs +1 -0
- package/dist/{useThemeProps-ClM1OENH.js → useThemeProps-ggw56DH-.js} +2 -2
- package/dist/{utils-DFLaK7Ad.js → utils-BQenyzDz.js} +1 -1
- package/dist/utils-ByXw_ZY1.cjs +1 -0
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +12 -10
- package/dist/Alert-Dg5u5Z7d.cjs +0 -1
- package/dist/Autocomplete-3xshJ4m_.cjs +0 -6
- package/dist/Backdrop-BrTs3LxC.cjs +0 -1
- package/dist/Box-CFuWIdLg.cjs +0 -1
- package/dist/Button-C7tsSPXV.cjs +0 -1
- package/dist/ButtonBase-CBFRgTBs.cjs +0 -74
- package/dist/CardContent-BRUkl8hU.cjs +0 -1
- package/dist/Checkbox-C_wSNEHD.cjs +0 -1
- package/dist/Chip-DUeBMcO4.cjs +0 -1
- package/dist/CircularProgress-DdHpo4Bf.cjs +0 -28
- package/dist/CustomTreeItem-9kBuTFO8.cjs +0 -4
- package/dist/DatePicker-BYPJypQT.cjs +0 -14
- package/dist/DefaultPropsProvider-B6DqRWnX.cjs +0 -1
- package/dist/Dialog-DOXpPT7S.cjs +0 -1
- package/dist/DialogContent-BoIE95Tg.cjs +0 -1
- package/dist/DialogTitle-B_am69Lr.cjs +0 -1
- package/dist/Divider-Nyl7rx-c.cjs +0 -1
- package/dist/FormLabel-D4O160ND.cjs +0 -2
- package/dist/Grow-DKA2Mfhu.cjs +0 -1
- package/dist/IconButton-CGfKAsNI.cjs +0 -2
- package/dist/InputAdornment-BOcB8UIi.cjs +0 -1
- package/dist/InputBase-BIf-xtMJ.cjs +0 -3
- package/dist/Link-CS0qbKjo.cjs +0 -1
- package/dist/List-T5dKKWkc.cjs +0 -1
- package/dist/ListItem-BN7OXyEP.cjs +0 -1
- package/dist/ListItemText-6gXRtF3r.cjs +0 -1
- package/dist/ListItemText-afV0BrJL.js +0 -928
- package/dist/Menu-D6dHPVP_.cjs +0 -7
- package/dist/MenuItem-DOVsV_vI.cjs +0 -1
- package/dist/Modal-B8xPmNJd.cjs +0 -2
- package/dist/Paper-owda8LtM.cjs +0 -2
- package/dist/Popper-DMGJYlm7.cjs +0 -4
- package/dist/Portal-BKVc0iys.js +0 -81
- package/dist/Portal-CgaP8O8B.cjs +0 -1
- package/dist/Radio-OUfsD89D.cjs +0 -1
- package/dist/RadioGroup-Cr_IFflA.cjs +0 -1
- package/dist/Select-CUlunaOr.cjs +0 -3
- package/dist/Stack-D5_1ZBcn.cjs +0 -1
- package/dist/Switch-DpdnFebj.cjs +0 -1
- package/dist/SwitchBase-BsP35Aas.js +0 -262
- package/dist/SwitchBase-DMGf52a3.cjs +0 -1
- package/dist/Tab-DZvAf79O.cjs +0 -4
- package/dist/TextField-C0KpyS6X.cjs +0 -1
- package/dist/ToggleButtonGroup-UNGSwlQe.cjs +0 -137
- package/dist/Tooltip-BljbhP1z.cjs +0 -4
- package/dist/Typography-yvyJLNFu.cjs +0 -1
- package/dist/client-error-BUtdld5f.cjs +0 -1
- package/dist/createSvgIcon-EiiLl5-A.cjs +0 -1
- package/dist/elementTypeAcceptingRef-D1T31ZXC.cjs +0 -1
- package/dist/generateUtilityClasses-BpRGbQmY.js +0 -3299
- package/dist/generateUtilityClasses-q4qbJjmd.cjs +0 -75
- package/dist/getReactElementRef-yvpNgSpm.cjs +0 -1
- package/dist/index-Bt7ukCXi.cjs +0 -5
- package/dist/index-DCpyECL4.cjs +0 -1
- package/dist/index-baZm35zL.cjs +0 -1
- package/dist/refType-DDdajp2p.cjs +0 -1
- package/dist/resolveComponentProps-BTEnlM7q.cjs +0 -1
- package/dist/resolveComponentProps-BZQ1jKzF.js +0 -80
- package/dist/server-error-CeAtUo4S.cjs +0 -1
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useSlot-CSTfsYPJ.cjs +0 -1
- package/dist/useSlot-CYOxsM2I.js +0 -48
- package/dist/useSlotProps-DTgWZk99.cjs +0 -1
- package/dist/useTheme-BDL2rp7a.js +0 -11
- package/dist/useThemeProps-BnN3o4c1.cjs +0 -1
- package/dist/useThemeProps-DjkGUV8r.js +0 -17
- package/dist/utils-Cn6wZNus.cjs +0 -1
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { P as
|
|
3
|
-
import { jsx as T, jsxs as
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { u as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
+
import { jsx as T, jsxs as G } from "react/jsx-runtime";
|
|
4
|
+
import { F as ae, G as ie, H as j, X as wo } from "./generateUtilityClasses-DngCqveO.js";
|
|
5
|
+
import { u as ze } from "./index-DX2Sl0Ig.js";
|
|
6
|
+
import { u as xo } from "./useTheme-C59wIJ3-.js";
|
|
7
|
+
import { u as Se, s as D, c as ce } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
8
|
+
import { m as ve } from "./memoTheme-nmt7i1dS.js";
|
|
9
|
+
import { a as Bo, u as me } from "./useEventCallback-Yoj9nCug.js";
|
|
10
|
+
import { d as Fe } from "./debounce-46wSf_lW.js";
|
|
11
|
+
import { o as Ae } from "./ownerWindow-niciwP7I.js";
|
|
12
|
+
import { u as H } from "./useSlot-BDb1lvxu.js";
|
|
13
|
+
import { u as se } from "./useSlotProps-B_D8u0j-.js";
|
|
14
|
+
import { c as Ve } from "./createSvgIcon-BlKmtOkV.js";
|
|
15
|
+
import { B as He } from "./ButtonBase-Chb99sDQ.js";
|
|
16
|
+
import { o as Co } from "./ownerDocument-CUrv0DIK.js";
|
|
17
|
+
import { r as Eo } from "./refType-Dp7CJc86.js";
|
|
18
|
+
import { u as Io } from "./useThemeProps-BFQ8ndnj.js";
|
|
19
|
+
import { c as Ue } from "./capitalize-BHFotl9B.js";
|
|
20
|
+
import { u as Po } from "./unsupportedProp-BuVD30Gh.js";
|
|
21
|
+
const Te = /* @__PURE__ */ s.createContext(null);
|
|
22
|
+
process.env.NODE_ENV !== "production" && (Te.displayName = "TabContext");
|
|
23
|
+
function Mo() {
|
|
24
|
+
const [t, o] = s.useState(null);
|
|
24
25
|
return s.useEffect(() => {
|
|
25
|
-
|
|
26
|
+
o(`mui-p-${Math.round(Math.random() * 1e5)}`);
|
|
26
27
|
}, []), t;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function Oo(t) {
|
|
29
30
|
const {
|
|
30
|
-
children:
|
|
31
|
-
value:
|
|
32
|
-
} = t, a =
|
|
31
|
+
children: o,
|
|
32
|
+
value: r
|
|
33
|
+
} = t, a = Mo(), i = s.useMemo(() => ({
|
|
33
34
|
idPrefix: a,
|
|
34
|
-
value:
|
|
35
|
-
}), [a,
|
|
36
|
-
return /* @__PURE__ */ T(
|
|
35
|
+
value: r
|
|
36
|
+
}), [a, r]);
|
|
37
|
+
return /* @__PURE__ */ T(Te.Provider, {
|
|
37
38
|
value: i,
|
|
38
|
-
children:
|
|
39
|
+
children: o
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
process.env.NODE_ENV !== "production" && (
|
|
42
|
+
process.env.NODE_ENV !== "production" && (Oo.propTypes = {
|
|
42
43
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
43
44
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
44
45
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -46,50 +47,50 @@ process.env.NODE_ENV !== "production" && (ho.propTypes = {
|
|
|
46
47
|
/**
|
|
47
48
|
* The content of the component.
|
|
48
49
|
*/
|
|
49
|
-
children:
|
|
50
|
+
children: e.node,
|
|
50
51
|
/**
|
|
51
52
|
* The value of the currently selected `Tab`.
|
|
52
53
|
*/
|
|
53
|
-
value:
|
|
54
|
+
value: e.oneOfType([e.number, e.string]).isRequired
|
|
54
55
|
});
|
|
55
|
-
function
|
|
56
|
-
return s.useContext(
|
|
56
|
+
function Xe() {
|
|
57
|
+
return s.useContext(Te);
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function Ke(t, o) {
|
|
59
60
|
const {
|
|
60
|
-
idPrefix:
|
|
61
|
+
idPrefix: r
|
|
61
62
|
} = t;
|
|
62
|
-
return
|
|
63
|
+
return r === null ? null : `${t.idPrefix}-P-${o}`;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function _e(t, o) {
|
|
65
66
|
const {
|
|
66
|
-
idPrefix:
|
|
67
|
+
idPrefix: r
|
|
67
68
|
} = t;
|
|
68
|
-
return
|
|
69
|
+
return r === null ? null : `${t.idPrefix}-T-${o}`;
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function Ro(t) {
|
|
71
72
|
return (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2;
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function No(t, o, r, a = {}, i = () => {
|
|
74
75
|
}) {
|
|
75
76
|
const {
|
|
76
|
-
ease: d =
|
|
77
|
+
ease: d = Ro,
|
|
77
78
|
duration: p = 300
|
|
78
79
|
// standard
|
|
79
80
|
} = a;
|
|
80
81
|
let f = null;
|
|
81
|
-
const h =
|
|
82
|
+
const h = o[t];
|
|
82
83
|
let S = !1;
|
|
83
|
-
const
|
|
84
|
+
const v = () => {
|
|
84
85
|
S = !0;
|
|
85
|
-
}, m = (
|
|
86
|
+
}, m = (y) => {
|
|
86
87
|
if (S) {
|
|
87
88
|
i(new Error("Animation cancelled"));
|
|
88
89
|
return;
|
|
89
90
|
}
|
|
90
|
-
f === null && (f =
|
|
91
|
-
const g = Math.min(1, (
|
|
92
|
-
if (
|
|
91
|
+
f === null && (f = y);
|
|
92
|
+
const g = Math.min(1, (y - f) / p);
|
|
93
|
+
if (o[t] = d(g) * (r - h) + h, g >= 1) {
|
|
93
94
|
requestAnimationFrame(() => {
|
|
94
95
|
i(null);
|
|
95
96
|
});
|
|
@@ -97,72 +98,72 @@ function vo(t, e, n, a = {}, i = () => {
|
|
|
97
98
|
}
|
|
98
99
|
requestAnimationFrame(m);
|
|
99
100
|
};
|
|
100
|
-
return h ===
|
|
101
|
+
return h === r ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(m), v);
|
|
101
102
|
}
|
|
102
|
-
const
|
|
103
|
+
const jo = {
|
|
103
104
|
width: 99,
|
|
104
105
|
height: 99,
|
|
105
106
|
position: "absolute",
|
|
106
107
|
top: -9999,
|
|
107
108
|
overflow: "scroll"
|
|
108
109
|
};
|
|
109
|
-
function
|
|
110
|
+
function Ye(t) {
|
|
110
111
|
const {
|
|
111
|
-
onChange:
|
|
112
|
-
...
|
|
112
|
+
onChange: o,
|
|
113
|
+
...r
|
|
113
114
|
} = t, a = s.useRef(), i = s.useRef(null), d = () => {
|
|
114
115
|
a.current = i.current.offsetHeight - i.current.clientHeight;
|
|
115
116
|
};
|
|
116
|
-
return
|
|
117
|
-
const p =
|
|
117
|
+
return Bo(() => {
|
|
118
|
+
const p = Fe(() => {
|
|
118
119
|
const h = a.current;
|
|
119
|
-
d(), h !== a.current &&
|
|
120
|
-
}), f =
|
|
120
|
+
d(), h !== a.current && o(a.current);
|
|
121
|
+
}), f = Ae(i.current);
|
|
121
122
|
return f.addEventListener("resize", p), () => {
|
|
122
123
|
p.clear(), f.removeEventListener("resize", p);
|
|
123
124
|
};
|
|
124
|
-
}, [
|
|
125
|
-
d(),
|
|
126
|
-
}, [
|
|
127
|
-
style:
|
|
128
|
-
...
|
|
125
|
+
}, [o]), s.useEffect(() => {
|
|
126
|
+
d(), o(a.current);
|
|
127
|
+
}, [o]), /* @__PURE__ */ T("div", {
|
|
128
|
+
style: jo,
|
|
129
|
+
...r,
|
|
129
130
|
ref: i
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
|
-
process.env.NODE_ENV !== "production" && (
|
|
133
|
-
onChange:
|
|
133
|
+
process.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
134
|
+
onChange: e.func.isRequired
|
|
134
135
|
});
|
|
135
|
-
const
|
|
136
|
+
const ko = Ve(/* @__PURE__ */ T("path", {
|
|
136
137
|
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
137
|
-
}), "KeyboardArrowLeft"),
|
|
138
|
+
}), "KeyboardArrowLeft"), $o = Ve(/* @__PURE__ */ T("path", {
|
|
138
139
|
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
139
140
|
}), "KeyboardArrowRight");
|
|
140
|
-
function
|
|
141
|
-
return
|
|
141
|
+
function Do(t) {
|
|
142
|
+
return ie("MuiTabScrollButton", t);
|
|
142
143
|
}
|
|
143
|
-
const
|
|
144
|
+
const Wo = ae("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), Lo = (t) => {
|
|
144
145
|
const {
|
|
145
|
-
classes:
|
|
146
|
-
orientation:
|
|
146
|
+
classes: o,
|
|
147
|
+
orientation: r,
|
|
147
148
|
disabled: a
|
|
148
149
|
} = t;
|
|
149
|
-
return
|
|
150
|
-
root: ["root",
|
|
151
|
-
},
|
|
152
|
-
},
|
|
150
|
+
return ce({
|
|
151
|
+
root: ["root", r, a && "disabled"]
|
|
152
|
+
}, Do, o);
|
|
153
|
+
}, zo = D(He, {
|
|
153
154
|
name: "MuiTabScrollButton",
|
|
154
155
|
slot: "Root",
|
|
155
|
-
overridesResolver: (t,
|
|
156
|
+
overridesResolver: (t, o) => {
|
|
156
157
|
const {
|
|
157
|
-
ownerState:
|
|
158
|
+
ownerState: r
|
|
158
159
|
} = t;
|
|
159
|
-
return [
|
|
160
|
+
return [o.root, r.orientation && o[r.orientation]];
|
|
160
161
|
}
|
|
161
162
|
})({
|
|
162
163
|
width: 40,
|
|
163
164
|
flexShrink: 0,
|
|
164
165
|
opacity: 0.8,
|
|
165
|
-
[`&.${
|
|
166
|
+
[`&.${Wo.disabled}`]: {
|
|
166
167
|
opacity: 0
|
|
167
168
|
},
|
|
168
169
|
variants: [{
|
|
@@ -177,9 +178,9 @@ const wo = re("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
180
|
}]
|
|
180
|
-
}),
|
|
181
|
-
const a =
|
|
182
|
-
props:
|
|
181
|
+
}), qe = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
182
|
+
const a = Se({
|
|
183
|
+
props: o,
|
|
183
184
|
name: "MuiTabScrollButton"
|
|
184
185
|
}), {
|
|
185
186
|
className: i,
|
|
@@ -188,47 +189,47 @@ const wo = re("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
|
|
|
188
189
|
direction: f,
|
|
189
190
|
orientation: h,
|
|
190
191
|
disabled: S,
|
|
191
|
-
...
|
|
192
|
-
} = a, m =
|
|
192
|
+
...v
|
|
193
|
+
} = a, m = ze(), y = {
|
|
193
194
|
isRtl: m,
|
|
194
195
|
...a
|
|
195
|
-
}, g =
|
|
196
|
+
}, g = Lo(y), W = d.StartScrollButtonIcon ?? ko, E = d.EndScrollButtonIcon ?? $o, x = se({
|
|
196
197
|
elementType: W,
|
|
197
198
|
externalSlotProps: p.startScrollButtonIcon,
|
|
198
199
|
additionalProps: {
|
|
199
200
|
fontSize: "small"
|
|
200
201
|
},
|
|
201
|
-
ownerState:
|
|
202
|
-
}),
|
|
202
|
+
ownerState: y
|
|
203
|
+
}), J = se({
|
|
203
204
|
elementType: E,
|
|
204
205
|
externalSlotProps: p.endScrollButtonIcon,
|
|
205
206
|
additionalProps: {
|
|
206
207
|
fontSize: "small"
|
|
207
208
|
},
|
|
208
|
-
ownerState:
|
|
209
|
+
ownerState: y
|
|
209
210
|
});
|
|
210
|
-
return /* @__PURE__ */ T(
|
|
211
|
+
return /* @__PURE__ */ T(zo, {
|
|
211
212
|
component: "div",
|
|
212
|
-
className:
|
|
213
|
-
ref:
|
|
213
|
+
className: j(g.root, i),
|
|
214
|
+
ref: r,
|
|
214
215
|
role: null,
|
|
215
|
-
ownerState:
|
|
216
|
+
ownerState: y,
|
|
216
217
|
tabIndex: null,
|
|
217
|
-
...
|
|
218
|
+
...v,
|
|
218
219
|
style: {
|
|
219
|
-
...
|
|
220
|
+
...v.style,
|
|
220
221
|
...h === "vertical" && {
|
|
221
222
|
"--TabScrollButton-svgRotate": `rotate(${m ? -90 : 90}deg)`
|
|
222
223
|
}
|
|
223
224
|
},
|
|
224
225
|
children: f === "left" ? /* @__PURE__ */ T(W, {
|
|
225
|
-
...
|
|
226
|
+
...x
|
|
226
227
|
}) : /* @__PURE__ */ T(E, {
|
|
227
|
-
...
|
|
228
|
+
...J
|
|
228
229
|
})
|
|
229
230
|
});
|
|
230
231
|
});
|
|
231
|
-
process.env.NODE_ENV !== "production" && (
|
|
232
|
+
process.env.NODE_ENV !== "production" && (qe.propTypes = {
|
|
232
233
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
233
234
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
234
235
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -236,59 +237,59 @@ process.env.NODE_ENV !== "production" && (Ue.propTypes = {
|
|
|
236
237
|
/**
|
|
237
238
|
* The content of the component.
|
|
238
239
|
*/
|
|
239
|
-
children:
|
|
240
|
+
children: e.node,
|
|
240
241
|
/**
|
|
241
242
|
* Override or extend the styles applied to the component.
|
|
242
243
|
*/
|
|
243
|
-
classes:
|
|
244
|
+
classes: e.object,
|
|
244
245
|
/**
|
|
245
246
|
* @ignore
|
|
246
247
|
*/
|
|
247
|
-
className:
|
|
248
|
+
className: e.string,
|
|
248
249
|
/**
|
|
249
250
|
* The direction the button should indicate.
|
|
250
251
|
*/
|
|
251
|
-
direction:
|
|
252
|
+
direction: e.oneOf(["left", "right"]).isRequired,
|
|
252
253
|
/**
|
|
253
254
|
* If `true`, the component is disabled.
|
|
254
255
|
* @default false
|
|
255
256
|
*/
|
|
256
|
-
disabled:
|
|
257
|
+
disabled: e.bool,
|
|
257
258
|
/**
|
|
258
259
|
* The component orientation (layout flow direction).
|
|
259
260
|
*/
|
|
260
|
-
orientation:
|
|
261
|
+
orientation: e.oneOf(["horizontal", "vertical"]).isRequired,
|
|
261
262
|
/**
|
|
262
263
|
* The extra props for the slot components.
|
|
263
264
|
* You can override the existing props or add new ones.
|
|
264
265
|
* @default {}
|
|
265
266
|
*/
|
|
266
|
-
slotProps:
|
|
267
|
-
endScrollButtonIcon:
|
|
268
|
-
startScrollButtonIcon:
|
|
267
|
+
slotProps: e.shape({
|
|
268
|
+
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
269
|
+
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
269
270
|
}),
|
|
270
271
|
/**
|
|
271
272
|
* The components used for each slot inside.
|
|
272
273
|
* @default {}
|
|
273
274
|
*/
|
|
274
|
-
slots:
|
|
275
|
-
EndScrollButtonIcon:
|
|
276
|
-
StartScrollButtonIcon:
|
|
275
|
+
slots: e.shape({
|
|
276
|
+
EndScrollButtonIcon: e.elementType,
|
|
277
|
+
StartScrollButtonIcon: e.elementType
|
|
277
278
|
}),
|
|
278
279
|
/**
|
|
279
280
|
* @ignore
|
|
280
281
|
*/
|
|
281
|
-
style:
|
|
282
|
+
style: e.object,
|
|
282
283
|
/**
|
|
283
284
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
284
285
|
*/
|
|
285
|
-
sx:
|
|
286
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
286
287
|
});
|
|
287
|
-
function
|
|
288
|
-
return
|
|
288
|
+
function Fo(t) {
|
|
289
|
+
return ie("MuiTabs", t);
|
|
289
290
|
}
|
|
290
|
-
const
|
|
291
|
-
let a = !1, i =
|
|
291
|
+
const ye = ae("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), $e = (t, o) => t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : t.firstChild, De = (t, o) => t === o ? t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : t.lastChild, le = (t, o, r) => {
|
|
292
|
+
let a = !1, i = r(t, o);
|
|
292
293
|
for (; i; ) {
|
|
293
294
|
if (i === t.firstChild) {
|
|
294
295
|
if (a)
|
|
@@ -297,16 +298,16 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
297
298
|
}
|
|
298
299
|
const d = i.disabled || i.getAttribute("aria-disabled") === "true";
|
|
299
300
|
if (!i.hasAttribute("tabindex") || d)
|
|
300
|
-
i =
|
|
301
|
+
i = r(t, i);
|
|
301
302
|
else {
|
|
302
303
|
i.focus();
|
|
303
304
|
return;
|
|
304
305
|
}
|
|
305
306
|
}
|
|
306
|
-
},
|
|
307
|
+
}, Ao = (t) => {
|
|
307
308
|
const {
|
|
308
|
-
vertical:
|
|
309
|
-
fixed:
|
|
309
|
+
vertical: o,
|
|
310
|
+
fixed: r,
|
|
310
311
|
hideScrollbar: a,
|
|
311
312
|
scrollableX: i,
|
|
312
313
|
scrollableY: d,
|
|
@@ -314,29 +315,29 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
314
315
|
scrollButtonsHideMobile: f,
|
|
315
316
|
classes: h
|
|
316
317
|
} = t;
|
|
317
|
-
return
|
|
318
|
-
root: ["root",
|
|
319
|
-
scroller: ["scroller",
|
|
320
|
-
|
|
318
|
+
return ce({
|
|
319
|
+
root: ["root", o && "vertical"],
|
|
320
|
+
scroller: ["scroller", r && "fixed", a && "hideScrollbar", i && "scrollableX", d && "scrollableY"],
|
|
321
|
+
list: ["list", "flexContainer", o && "flexContainerVertical", o && "vertical", p && "centered"],
|
|
321
322
|
indicator: ["indicator"],
|
|
322
323
|
scrollButtons: ["scrollButtons", f && "scrollButtonsHideMobile"],
|
|
323
324
|
scrollableX: [i && "scrollableX"],
|
|
324
325
|
hideScrollbar: [a && "hideScrollbar"]
|
|
325
|
-
},
|
|
326
|
-
},
|
|
326
|
+
}, Fo, h);
|
|
327
|
+
}, Vo = D("div", {
|
|
327
328
|
name: "MuiTabs",
|
|
328
329
|
slot: "Root",
|
|
329
|
-
overridesResolver: (t,
|
|
330
|
+
overridesResolver: (t, o) => {
|
|
330
331
|
const {
|
|
331
|
-
ownerState:
|
|
332
|
+
ownerState: r
|
|
332
333
|
} = t;
|
|
333
334
|
return [{
|
|
334
|
-
[`& .${
|
|
335
|
+
[`& .${ye.scrollButtons}`]: o.scrollButtons
|
|
335
336
|
}, {
|
|
336
|
-
[`& .${
|
|
337
|
-
},
|
|
337
|
+
[`& .${ye.scrollButtons}`]: r.scrollButtonsHideMobile && o.scrollButtonsHideMobile
|
|
338
|
+
}, o.root, r.vertical && o.vertical];
|
|
338
339
|
}
|
|
339
|
-
})(
|
|
340
|
+
})(ve(({
|
|
340
341
|
theme: t
|
|
341
342
|
}) => ({
|
|
342
343
|
overflow: "hidden",
|
|
@@ -346,31 +347,31 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
346
347
|
display: "flex",
|
|
347
348
|
variants: [{
|
|
348
349
|
props: ({
|
|
349
|
-
ownerState:
|
|
350
|
-
}) =>
|
|
350
|
+
ownerState: o
|
|
351
|
+
}) => o.vertical,
|
|
351
352
|
style: {
|
|
352
353
|
flexDirection: "column"
|
|
353
354
|
}
|
|
354
355
|
}, {
|
|
355
356
|
props: ({
|
|
356
|
-
ownerState:
|
|
357
|
-
}) =>
|
|
357
|
+
ownerState: o
|
|
358
|
+
}) => o.scrollButtonsHideMobile,
|
|
358
359
|
style: {
|
|
359
|
-
[`& .${
|
|
360
|
+
[`& .${ye.scrollButtons}`]: {
|
|
360
361
|
[t.breakpoints.down("sm")]: {
|
|
361
362
|
display: "none"
|
|
362
363
|
}
|
|
363
364
|
}
|
|
364
365
|
}
|
|
365
366
|
}]
|
|
366
|
-
}))),
|
|
367
|
+
}))), Ho = D("div", {
|
|
367
368
|
name: "MuiTabs",
|
|
368
369
|
slot: "Scroller",
|
|
369
|
-
overridesResolver: (t,
|
|
370
|
+
overridesResolver: (t, o) => {
|
|
370
371
|
const {
|
|
371
|
-
ownerState:
|
|
372
|
+
ownerState: r
|
|
372
373
|
} = t;
|
|
373
|
-
return [
|
|
374
|
+
return [o.scroller, r.fixed && o.fixed, r.hideScrollbar && o.hideScrollbar, r.scrollableX && o.scrollableX, r.scrollableY && o.scrollableY];
|
|
374
375
|
}
|
|
375
376
|
})({
|
|
376
377
|
position: "relative",
|
|
@@ -415,14 +416,14 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
415
416
|
overflowX: "hidden"
|
|
416
417
|
}
|
|
417
418
|
}]
|
|
418
|
-
}),
|
|
419
|
+
}), Uo = D("div", {
|
|
419
420
|
name: "MuiTabs",
|
|
420
|
-
slot: "
|
|
421
|
-
overridesResolver: (t,
|
|
421
|
+
slot: "List",
|
|
422
|
+
overridesResolver: (t, o) => {
|
|
422
423
|
const {
|
|
423
|
-
ownerState:
|
|
424
|
+
ownerState: r
|
|
424
425
|
} = t;
|
|
425
|
-
return [
|
|
426
|
+
return [o.list, o.flexContainer, r.vertical && o.flexContainerVertical, r.centered && o.centered];
|
|
426
427
|
}
|
|
427
428
|
})({
|
|
428
429
|
display: "flex",
|
|
@@ -441,11 +442,11 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
441
442
|
justifyContent: "center"
|
|
442
443
|
}
|
|
443
444
|
}]
|
|
444
|
-
}),
|
|
445
|
+
}), Xo = D("span", {
|
|
445
446
|
name: "MuiTabs",
|
|
446
447
|
slot: "Indicator",
|
|
447
|
-
overridesResolver: (t,
|
|
448
|
-
})(
|
|
448
|
+
overridesResolver: (t, o) => o.indicator
|
|
449
|
+
})(ve(({
|
|
449
450
|
theme: t
|
|
450
451
|
}) => ({
|
|
451
452
|
position: "absolute",
|
|
@@ -469,15 +470,15 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
469
470
|
}
|
|
470
471
|
}, {
|
|
471
472
|
props: ({
|
|
472
|
-
ownerState:
|
|
473
|
-
}) =>
|
|
473
|
+
ownerState: o
|
|
474
|
+
}) => o.vertical,
|
|
474
475
|
style: {
|
|
475
476
|
height: "100%",
|
|
476
477
|
width: 2,
|
|
477
478
|
right: 0
|
|
478
479
|
}
|
|
479
480
|
}]
|
|
480
|
-
}))),
|
|
481
|
+
}))), Ko = D(Ye)({
|
|
481
482
|
overflowX: "auto",
|
|
482
483
|
overflowY: "hidden",
|
|
483
484
|
// Hide dimensionless scrollbar on macOS
|
|
@@ -487,76 +488,86 @@ const be = re("MuiTabs", ["root", "vertical", "flexContainer", "flexContainerVer
|
|
|
487
488
|
display: "none"
|
|
488
489
|
// Safari + Chrome
|
|
489
490
|
}
|
|
490
|
-
}),
|
|
491
|
-
let
|
|
492
|
-
const
|
|
493
|
-
const a =
|
|
494
|
-
props:
|
|
491
|
+
}), We = {};
|
|
492
|
+
let Le = !1;
|
|
493
|
+
const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
494
|
+
const a = Se({
|
|
495
|
+
props: o,
|
|
495
496
|
name: "MuiTabs"
|
|
496
|
-
}), i =
|
|
497
|
+
}), i = xo(), d = ze(), {
|
|
497
498
|
"aria-label": p,
|
|
498
499
|
"aria-labelledby": f,
|
|
499
500
|
action: h,
|
|
500
501
|
centered: S = !1,
|
|
501
|
-
children:
|
|
502
|
+
children: v,
|
|
502
503
|
className: m,
|
|
503
|
-
component:
|
|
504
|
+
component: y = "div",
|
|
504
505
|
allowScrollButtonsMobile: g = !1,
|
|
505
506
|
indicatorColor: W = "primary",
|
|
506
507
|
onChange: E,
|
|
507
|
-
orientation:
|
|
508
|
-
ScrollButtonComponent:
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
508
|
+
orientation: x = "horizontal",
|
|
509
|
+
ScrollButtonComponent: J,
|
|
510
|
+
// TODO: remove in v7 (deprecated in v6)
|
|
511
|
+
scrollButtons: P = "auto",
|
|
512
|
+
selectionFollowsFocus: de,
|
|
513
|
+
slots: M = {},
|
|
514
|
+
slotProps: A = {},
|
|
515
|
+
TabIndicatorProps: U = {},
|
|
516
|
+
// TODO: remove in v7 (deprecated in v6)
|
|
517
|
+
TabScrollButtonProps: X = {},
|
|
518
|
+
// TODO: remove in v7 (deprecated in v6)
|
|
519
|
+
textColor: Q = "primary",
|
|
520
|
+
value: k,
|
|
521
|
+
variant: O = "standard",
|
|
522
|
+
visibleScrollbar: ue = !1,
|
|
523
|
+
...Je
|
|
524
|
+
} = a, B = O === "scrollable", C = x === "vertical", K = C ? "scrollTop" : "scrollLeft", Z = C ? "top" : "left", ee = C ? "bottom" : "right", pe = C ? "clientHeight" : "clientWidth", _ = C ? "height" : "width", R = {
|
|
521
525
|
...a,
|
|
522
|
-
component:
|
|
526
|
+
component: y,
|
|
523
527
|
allowScrollButtonsMobile: g,
|
|
524
528
|
indicatorColor: W,
|
|
525
|
-
orientation:
|
|
526
|
-
vertical:
|
|
527
|
-
scrollButtons:
|
|
528
|
-
textColor:
|
|
529
|
-
variant:
|
|
530
|
-
visibleScrollbar:
|
|
531
|
-
fixed: !
|
|
532
|
-
hideScrollbar:
|
|
533
|
-
scrollableX:
|
|
534
|
-
scrollableY:
|
|
535
|
-
centered: S && !
|
|
529
|
+
orientation: x,
|
|
530
|
+
vertical: C,
|
|
531
|
+
scrollButtons: P,
|
|
532
|
+
textColor: Q,
|
|
533
|
+
variant: O,
|
|
534
|
+
visibleScrollbar: ue,
|
|
535
|
+
fixed: !B,
|
|
536
|
+
hideScrollbar: B && !ue,
|
|
537
|
+
scrollableX: B && !C,
|
|
538
|
+
scrollableY: B && C,
|
|
539
|
+
centered: S && !B,
|
|
536
540
|
scrollButtonsHideMobile: !g
|
|
537
|
-
},
|
|
538
|
-
elementType:
|
|
539
|
-
externalSlotProps:
|
|
540
|
-
ownerState:
|
|
541
|
-
}),
|
|
542
|
-
elementType:
|
|
543
|
-
externalSlotProps:
|
|
544
|
-
ownerState:
|
|
541
|
+
}, $ = Ao(R), Qe = se({
|
|
542
|
+
elementType: M.StartScrollButtonIcon,
|
|
543
|
+
externalSlotProps: A.startScrollButtonIcon,
|
|
544
|
+
ownerState: R
|
|
545
|
+
}), Ze = se({
|
|
546
|
+
elementType: M.EndScrollButtonIcon,
|
|
547
|
+
externalSlotProps: A.endScrollButtonIcon,
|
|
548
|
+
ownerState: R
|
|
545
549
|
});
|
|
546
|
-
process.env.NODE_ENV !== "production" && S &&
|
|
547
|
-
const [
|
|
550
|
+
process.env.NODE_ENV !== "production" && S && B && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
|
|
551
|
+
const [ge, eo] = s.useState(!1), [L, we] = s.useState(We), [xe, oo] = s.useState(!1), [Be, to] = s.useState(!1), [Ce, no] = s.useState(!1), [Ee, ro] = s.useState({
|
|
548
552
|
overflow: "hidden",
|
|
549
553
|
scrollbarWidth: 0
|
|
550
|
-
}),
|
|
551
|
-
|
|
554
|
+
}), oe = /* @__PURE__ */ new Map(), N = s.useRef(null), z = s.useRef(null), V = {
|
|
555
|
+
slots: M,
|
|
556
|
+
slotProps: {
|
|
557
|
+
indicator: U,
|
|
558
|
+
scrollButton: X,
|
|
559
|
+
...A
|
|
560
|
+
}
|
|
561
|
+
}, Ie = () => {
|
|
562
|
+
const n = N.current;
|
|
552
563
|
let l;
|
|
553
|
-
if (
|
|
554
|
-
const u =
|
|
564
|
+
if (n) {
|
|
565
|
+
const u = n.getBoundingClientRect();
|
|
555
566
|
l = {
|
|
556
|
-
clientWidth:
|
|
557
|
-
scrollLeft:
|
|
558
|
-
scrollTop:
|
|
559
|
-
scrollWidth:
|
|
567
|
+
clientWidth: n.clientWidth,
|
|
568
|
+
scrollLeft: n.scrollLeft,
|
|
569
|
+
scrollTop: n.scrollTop,
|
|
570
|
+
scrollWidth: n.scrollWidth,
|
|
560
571
|
top: u.top,
|
|
561
572
|
bottom: u.bottom,
|
|
562
573
|
left: u.left,
|
|
@@ -564,253 +575,288 @@ const Xe = /* @__PURE__ */ s.forwardRef(function(e, n) {
|
|
|
564
575
|
};
|
|
565
576
|
}
|
|
566
577
|
let c;
|
|
567
|
-
if (
|
|
568
|
-
const u =
|
|
578
|
+
if (n && k !== !1) {
|
|
579
|
+
const u = z.current.children;
|
|
569
580
|
if (u.length > 0) {
|
|
570
|
-
const b = u[
|
|
571
|
-
process.env.NODE_ENV !== "production" && (b || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${
|
|
572
|
-
`))), c = b ? b.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !
|
|
573
|
-
l.clientWidth !== 0 && (l = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${
|
|
574
|
-
`)),
|
|
581
|
+
const b = u[oe.get(k)];
|
|
582
|
+
process.env.NODE_ENV !== "production" && (b || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${k}".`, oe.keys ? `You can provide one of the following values: ${Array.from(oe.keys()).join(", ")}.` : null].join(`
|
|
583
|
+
`))), c = b ? b.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Le && c && c.width === 0 && c.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
584
|
+
l.clientWidth !== 0 && (l = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${k}") 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(`
|
|
585
|
+
`)), Le = !0);
|
|
575
586
|
}
|
|
576
587
|
}
|
|
577
588
|
return {
|
|
578
589
|
tabsMeta: l,
|
|
579
590
|
tabMeta: c
|
|
580
591
|
};
|
|
581
|
-
}, Y =
|
|
592
|
+
}, Y = me(() => {
|
|
582
593
|
const {
|
|
583
|
-
tabsMeta:
|
|
594
|
+
tabsMeta: n,
|
|
584
595
|
tabMeta: l
|
|
585
|
-
} =
|
|
596
|
+
} = Ie();
|
|
586
597
|
let c = 0, u;
|
|
587
|
-
|
|
598
|
+
C ? (u = "top", l && n && (c = l.top - n.top + n.scrollTop)) : (u = d ? "right" : "left", l && n && (c = (d ? -1 : 1) * (l[u] - n[u] + n.scrollLeft)));
|
|
588
599
|
const b = {
|
|
589
600
|
[u]: c,
|
|
590
601
|
// May be wrong until the font is loaded.
|
|
591
602
|
[_]: l ? l[_] : 0
|
|
592
603
|
};
|
|
593
|
-
if (typeof
|
|
594
|
-
|
|
604
|
+
if (typeof L[u] != "number" || typeof L[_] != "number")
|
|
605
|
+
we(b);
|
|
595
606
|
else {
|
|
596
|
-
const I = Math.abs(
|
|
597
|
-
(I >= 1 ||
|
|
607
|
+
const I = Math.abs(L[u] - b[u]), F = Math.abs(L[_] - b[_]);
|
|
608
|
+
(I >= 1 || F >= 1) && we(b);
|
|
598
609
|
}
|
|
599
|
-
}),
|
|
610
|
+
}), fe = (n, {
|
|
600
611
|
animation: l = !0
|
|
601
612
|
} = {}) => {
|
|
602
|
-
l ?
|
|
613
|
+
l ? No(K, N.current, n, {
|
|
603
614
|
duration: i.transitions.duration.standard
|
|
604
|
-
}) :
|
|
605
|
-
},
|
|
606
|
-
let l =
|
|
607
|
-
|
|
608
|
-
},
|
|
609
|
-
const
|
|
615
|
+
}) : N.current[K] = n;
|
|
616
|
+
}, Pe = (n) => {
|
|
617
|
+
let l = N.current[K];
|
|
618
|
+
C ? l += n : l += n * (d ? -1 : 1), fe(l);
|
|
619
|
+
}, Me = () => {
|
|
620
|
+
const n = N.current[pe];
|
|
610
621
|
let l = 0;
|
|
611
|
-
const c = Array.from(
|
|
622
|
+
const c = Array.from(z.current.children);
|
|
612
623
|
for (let u = 0; u < c.length; u += 1) {
|
|
613
624
|
const b = c[u];
|
|
614
|
-
if (l + b[
|
|
615
|
-
u === 0 && (l =
|
|
625
|
+
if (l + b[pe] > n) {
|
|
626
|
+
u === 0 && (l = n);
|
|
616
627
|
break;
|
|
617
628
|
}
|
|
618
|
-
l += b[
|
|
629
|
+
l += b[pe];
|
|
619
630
|
}
|
|
620
631
|
return l;
|
|
621
|
-
},
|
|
622
|
-
|
|
623
|
-
},
|
|
624
|
-
|
|
625
|
-
},
|
|
626
|
-
|
|
632
|
+
}, lo = () => {
|
|
633
|
+
Pe(-1 * Me());
|
|
634
|
+
}, so = () => {
|
|
635
|
+
Pe(Me());
|
|
636
|
+
}, [ao, {
|
|
637
|
+
onChange: te,
|
|
638
|
+
...io
|
|
639
|
+
}] = H("scrollbar", {
|
|
640
|
+
className: j($.scrollableX, $.hideScrollbar),
|
|
641
|
+
elementType: Ko,
|
|
642
|
+
shouldForwardComponentProp: !0,
|
|
643
|
+
externalForwardedProps: V,
|
|
644
|
+
ownerState: R
|
|
645
|
+
}), co = s.useCallback((n) => {
|
|
646
|
+
te == null || te(n), ro({
|
|
627
647
|
overflow: null,
|
|
628
|
-
scrollbarWidth:
|
|
648
|
+
scrollbarWidth: n
|
|
629
649
|
});
|
|
630
|
-
}, []),
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
return r.scrollButtonStart = c ? /* @__PURE__ */ T(F, {
|
|
650
|
+
}, [te]), [Oe, Re] = H("scrollButtons", {
|
|
651
|
+
className: j($.scrollButtons, X.className),
|
|
652
|
+
elementType: qe,
|
|
653
|
+
externalForwardedProps: V,
|
|
654
|
+
ownerState: R,
|
|
655
|
+
additionalProps: {
|
|
656
|
+
orientation: x,
|
|
638
657
|
slots: {
|
|
639
|
-
StartScrollButtonIcon:
|
|
658
|
+
StartScrollButtonIcon: M.startScrollButtonIcon || M.StartScrollButtonIcon,
|
|
659
|
+
EndScrollButtonIcon: M.endScrollButtonIcon || M.EndScrollButtonIcon
|
|
640
660
|
},
|
|
641
661
|
slotProps: {
|
|
642
|
-
startScrollButtonIcon:
|
|
643
|
-
|
|
644
|
-
|
|
662
|
+
startScrollButtonIcon: Qe,
|
|
663
|
+
endScrollButtonIcon: Ze
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}), uo = () => {
|
|
667
|
+
const n = {};
|
|
668
|
+
n.scrollbarSizeListener = B ? /* @__PURE__ */ T(ao, {
|
|
669
|
+
...io,
|
|
670
|
+
onChange: co
|
|
671
|
+
}) : null;
|
|
672
|
+
const c = B && (P === "auto" && (xe || Be) || P === !0);
|
|
673
|
+
return n.scrollButtonStart = c ? /* @__PURE__ */ T(Oe, {
|
|
645
674
|
direction: d ? "right" : "left",
|
|
646
|
-
onClick:
|
|
647
|
-
disabled: !
|
|
648
|
-
...
|
|
649
|
-
|
|
650
|
-
}) : null, r.scrollButtonEnd = c ? /* @__PURE__ */ T(F, {
|
|
651
|
-
slots: {
|
|
652
|
-
EndScrollButtonIcon: V.EndScrollButtonIcon
|
|
653
|
-
},
|
|
654
|
-
slotProps: {
|
|
655
|
-
endScrollButtonIcon: qe
|
|
656
|
-
},
|
|
657
|
-
orientation: w,
|
|
675
|
+
onClick: lo,
|
|
676
|
+
disabled: !xe,
|
|
677
|
+
...Re
|
|
678
|
+
}) : null, n.scrollButtonEnd = c ? /* @__PURE__ */ T(Oe, {
|
|
658
679
|
direction: d ? "left" : "right",
|
|
659
|
-
onClick:
|
|
660
|
-
disabled: !
|
|
661
|
-
...
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
}, Ie = fe((r) => {
|
|
680
|
+
onClick: so,
|
|
681
|
+
disabled: !Be,
|
|
682
|
+
...Re
|
|
683
|
+
}) : null, n;
|
|
684
|
+
}, Ne = me((n) => {
|
|
665
685
|
const {
|
|
666
686
|
tabsMeta: l,
|
|
667
687
|
tabMeta: c
|
|
668
|
-
} =
|
|
688
|
+
} = Ie();
|
|
669
689
|
if (!(!c || !l)) {
|
|
670
|
-
if (c[
|
|
671
|
-
const u = l[
|
|
672
|
-
|
|
673
|
-
animation:
|
|
690
|
+
if (c[Z] < l[Z]) {
|
|
691
|
+
const u = l[K] + (c[Z] - l[Z]);
|
|
692
|
+
fe(u, {
|
|
693
|
+
animation: n
|
|
674
694
|
});
|
|
675
|
-
} else if (c[
|
|
676
|
-
const u = l[
|
|
677
|
-
|
|
678
|
-
animation:
|
|
695
|
+
} else if (c[ee] > l[ee]) {
|
|
696
|
+
const u = l[K] + (c[ee] - l[ee]);
|
|
697
|
+
fe(u, {
|
|
698
|
+
animation: n
|
|
679
699
|
});
|
|
680
700
|
}
|
|
681
701
|
}
|
|
682
|
-
}),
|
|
683
|
-
|
|
702
|
+
}), ne = me(() => {
|
|
703
|
+
B && P !== !1 && no(!Ce);
|
|
684
704
|
});
|
|
685
705
|
s.useEffect(() => {
|
|
686
|
-
const
|
|
687
|
-
|
|
706
|
+
const n = Fe(() => {
|
|
707
|
+
N.current && Y();
|
|
688
708
|
});
|
|
689
709
|
let l;
|
|
690
710
|
const c = (I) => {
|
|
691
|
-
I.forEach((
|
|
692
|
-
|
|
711
|
+
I.forEach((F) => {
|
|
712
|
+
F.removedNodes.forEach((q) => {
|
|
693
713
|
l == null || l.unobserve(q);
|
|
694
|
-
}),
|
|
714
|
+
}), F.addedNodes.forEach((q) => {
|
|
695
715
|
l == null || l.observe(q);
|
|
696
716
|
});
|
|
697
|
-
}),
|
|
698
|
-
}, u =
|
|
699
|
-
u.addEventListener("resize",
|
|
717
|
+
}), n(), ne();
|
|
718
|
+
}, u = Ae(N.current);
|
|
719
|
+
u.addEventListener("resize", n);
|
|
700
720
|
let b;
|
|
701
|
-
return typeof ResizeObserver < "u" && (l = new ResizeObserver(
|
|
721
|
+
return typeof ResizeObserver < "u" && (l = new ResizeObserver(n), Array.from(z.current.children).forEach((I) => {
|
|
702
722
|
l.observe(I);
|
|
703
|
-
})), typeof MutationObserver < "u" && (b = new MutationObserver(c), b.observe(
|
|
723
|
+
})), typeof MutationObserver < "u" && (b = new MutationObserver(c), b.observe(z.current, {
|
|
704
724
|
childList: !0
|
|
705
725
|
})), () => {
|
|
706
|
-
|
|
726
|
+
n.clear(), u.removeEventListener("resize", n), b == null || b.disconnect(), l == null || l.disconnect();
|
|
707
727
|
};
|
|
708
|
-
}, [Y,
|
|
709
|
-
const
|
|
710
|
-
if (typeof IntersectionObserver < "u" && l > 0 &&
|
|
711
|
-
const c =
|
|
712
|
-
root:
|
|
728
|
+
}, [Y, ne]), s.useEffect(() => {
|
|
729
|
+
const n = Array.from(z.current.children), l = n.length;
|
|
730
|
+
if (typeof IntersectionObserver < "u" && l > 0 && B && P !== !1) {
|
|
731
|
+
const c = n[0], u = n[l - 1], b = {
|
|
732
|
+
root: N.current,
|
|
713
733
|
threshold: 0.99
|
|
714
|
-
}, I = (
|
|
715
|
-
|
|
716
|
-
},
|
|
717
|
-
|
|
718
|
-
const q = (
|
|
719
|
-
|
|
720
|
-
},
|
|
721
|
-
return
|
|
722
|
-
|
|
734
|
+
}, I = (he) => {
|
|
735
|
+
oo(!he[0].isIntersecting);
|
|
736
|
+
}, F = new IntersectionObserver(I, b);
|
|
737
|
+
F.observe(c);
|
|
738
|
+
const q = (he) => {
|
|
739
|
+
to(!he[0].isIntersecting);
|
|
740
|
+
}, ke = new IntersectionObserver(q, b);
|
|
741
|
+
return ke.observe(u), () => {
|
|
742
|
+
F.disconnect(), ke.disconnect();
|
|
723
743
|
};
|
|
724
744
|
}
|
|
725
|
-
}, [
|
|
726
|
-
|
|
745
|
+
}, [B, P, Ce, v == null ? void 0 : v.length]), s.useEffect(() => {
|
|
746
|
+
eo(!0);
|
|
727
747
|
}, []), s.useEffect(() => {
|
|
728
748
|
Y();
|
|
729
749
|
}), s.useEffect(() => {
|
|
730
|
-
|
|
731
|
-
}, [
|
|
750
|
+
Ne(We !== L);
|
|
751
|
+
}, [Ne, L]), s.useImperativeHandle(h, () => ({
|
|
732
752
|
updateIndicator: Y,
|
|
733
|
-
updateScrollButtons:
|
|
734
|
-
}), [Y,
|
|
735
|
-
const
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
753
|
+
updateScrollButtons: ne
|
|
754
|
+
}), [Y, ne]);
|
|
755
|
+
const [po, fo] = H("indicator", {
|
|
756
|
+
className: j($.indicator, U.className),
|
|
757
|
+
elementType: Xo,
|
|
758
|
+
externalForwardedProps: V,
|
|
759
|
+
ownerState: R,
|
|
760
|
+
additionalProps: {
|
|
761
|
+
style: L
|
|
742
762
|
}
|
|
763
|
+
}), je = /* @__PURE__ */ T(po, {
|
|
764
|
+
...fo
|
|
743
765
|
});
|
|
744
|
-
let
|
|
745
|
-
const
|
|
746
|
-
if (!/* @__PURE__ */ s.isValidElement(
|
|
766
|
+
let re = 0;
|
|
767
|
+
const bo = s.Children.map(v, (n) => {
|
|
768
|
+
if (!/* @__PURE__ */ s.isValidElement(n))
|
|
747
769
|
return null;
|
|
748
|
-
process.env.NODE_ENV !== "production" &&
|
|
770
|
+
process.env.NODE_ENV !== "production" && wo.isFragment(n) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
749
771
|
`));
|
|
750
|
-
const l =
|
|
751
|
-
|
|
752
|
-
const c = l ===
|
|
753
|
-
return
|
|
754
|
-
fullWidth:
|
|
755
|
-
indicator: c && !
|
|
772
|
+
const l = n.props.value === void 0 ? re : n.props.value;
|
|
773
|
+
oe.set(l, re);
|
|
774
|
+
const c = l === k;
|
|
775
|
+
return re += 1, /* @__PURE__ */ s.cloneElement(n, {
|
|
776
|
+
fullWidth: O === "fullWidth",
|
|
777
|
+
indicator: c && !ge && je,
|
|
756
778
|
selected: c,
|
|
757
|
-
selectionFollowsFocus:
|
|
779
|
+
selectionFollowsFocus: de,
|
|
758
780
|
onChange: E,
|
|
759
|
-
textColor:
|
|
781
|
+
textColor: Q,
|
|
760
782
|
value: l,
|
|
761
|
-
...
|
|
783
|
+
...re === 1 && k === !1 && !n.props.tabIndex ? {
|
|
762
784
|
tabIndex: 0
|
|
763
785
|
} : {}
|
|
764
786
|
});
|
|
765
|
-
}),
|
|
766
|
-
|
|
787
|
+
}), ho = (n) => {
|
|
788
|
+
if (n.altKey || n.shiftKey || n.ctrlKey || n.metaKey)
|
|
789
|
+
return;
|
|
790
|
+
const l = z.current, c = Co(l).activeElement;
|
|
767
791
|
if (c.getAttribute("role") !== "tab")
|
|
768
792
|
return;
|
|
769
|
-
let b =
|
|
770
|
-
switch (
|
|
793
|
+
let b = x === "horizontal" ? "ArrowLeft" : "ArrowUp", I = x === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
794
|
+
switch (x === "horizontal" && d && (b = "ArrowRight", I = "ArrowLeft"), n.key) {
|
|
771
795
|
case b:
|
|
772
|
-
|
|
796
|
+
n.preventDefault(), le(l, c, De);
|
|
773
797
|
break;
|
|
774
798
|
case I:
|
|
775
|
-
|
|
799
|
+
n.preventDefault(), le(l, c, $e);
|
|
776
800
|
break;
|
|
777
801
|
case "Home":
|
|
778
|
-
|
|
802
|
+
n.preventDefault(), le(l, null, $e);
|
|
779
803
|
break;
|
|
780
804
|
case "End":
|
|
781
|
-
|
|
805
|
+
n.preventDefault(), le(l, null, De);
|
|
782
806
|
break;
|
|
783
807
|
}
|
|
784
|
-
},
|
|
785
|
-
|
|
786
|
-
className:
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
808
|
+
}, be = uo(), [mo, yo] = H("root", {
|
|
809
|
+
ref: r,
|
|
810
|
+
className: j($.root, m),
|
|
811
|
+
elementType: Vo,
|
|
812
|
+
externalForwardedProps: {
|
|
813
|
+
...V,
|
|
814
|
+
...Je,
|
|
815
|
+
component: y
|
|
816
|
+
},
|
|
817
|
+
ownerState: R
|
|
818
|
+
}), [So, vo] = H("scroller", {
|
|
819
|
+
ref: N,
|
|
820
|
+
className: $.scroller,
|
|
821
|
+
elementType: Ho,
|
|
822
|
+
externalForwardedProps: V,
|
|
823
|
+
ownerState: R,
|
|
824
|
+
additionalProps: {
|
|
794
825
|
style: {
|
|
795
|
-
overflow:
|
|
796
|
-
[
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
|
|
826
|
+
overflow: Ee.overflow,
|
|
827
|
+
[C ? `margin${d ? "Left" : "Right"}` : "marginBottom"]: ue ? void 0 : -Ee.scrollbarWidth
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}), [To, go] = H("list", {
|
|
831
|
+
ref: z,
|
|
832
|
+
className: j($.list, $.flexContainer),
|
|
833
|
+
elementType: Uo,
|
|
834
|
+
externalForwardedProps: V,
|
|
835
|
+
ownerState: R,
|
|
836
|
+
getSlotProps: (n) => ({
|
|
837
|
+
...n,
|
|
838
|
+
onKeyDown: (l) => {
|
|
839
|
+
var c;
|
|
840
|
+
ho(l), (c = n.onKeyDown) == null || c.call(n, l);
|
|
841
|
+
}
|
|
842
|
+
})
|
|
843
|
+
});
|
|
844
|
+
return /* @__PURE__ */ G(mo, {
|
|
845
|
+
...yo,
|
|
846
|
+
children: [be.scrollButtonStart, be.scrollbarSizeListener, /* @__PURE__ */ G(So, {
|
|
847
|
+
...vo,
|
|
848
|
+
children: [/* @__PURE__ */ T(To, {
|
|
800
849
|
"aria-label": p,
|
|
801
850
|
"aria-labelledby": f,
|
|
802
|
-
"aria-orientation":
|
|
803
|
-
className: k.flexContainer,
|
|
804
|
-
ownerState: j,
|
|
805
|
-
onKeyDown: lo,
|
|
806
|
-
ref: L,
|
|
851
|
+
"aria-orientation": x === "vertical" ? "vertical" : null,
|
|
807
852
|
role: "tablist",
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
853
|
+
...go,
|
|
854
|
+
children: bo
|
|
855
|
+
}), ge && je]
|
|
856
|
+
}), be.scrollButtonEnd]
|
|
811
857
|
});
|
|
812
858
|
});
|
|
813
|
-
process.env.NODE_ENV !== "production" && (
|
|
859
|
+
process.env.NODE_ENV !== "production" && (Ge.propTypes = {
|
|
814
860
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
815
861
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
816
862
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -823,66 +869,67 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
823
869
|
* @param {object} actions This object contains all possible actions
|
|
824
870
|
* that can be triggered programmatically.
|
|
825
871
|
*/
|
|
826
|
-
action:
|
|
872
|
+
action: Eo,
|
|
827
873
|
/**
|
|
828
874
|
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
829
875
|
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
830
876
|
* @default false
|
|
831
877
|
*/
|
|
832
|
-
allowScrollButtonsMobile:
|
|
878
|
+
allowScrollButtonsMobile: e.bool,
|
|
833
879
|
/**
|
|
834
880
|
* The label for the Tabs as a string.
|
|
835
881
|
*/
|
|
836
|
-
"aria-label":
|
|
882
|
+
"aria-label": e.string,
|
|
837
883
|
/**
|
|
838
884
|
* An id or list of ids separated by a space that label the Tabs.
|
|
839
885
|
*/
|
|
840
|
-
"aria-labelledby":
|
|
886
|
+
"aria-labelledby": e.string,
|
|
841
887
|
/**
|
|
842
888
|
* If `true`, the tabs are centered.
|
|
843
889
|
* This prop is intended for large views.
|
|
844
890
|
* @default false
|
|
845
891
|
*/
|
|
846
|
-
centered:
|
|
892
|
+
centered: e.bool,
|
|
847
893
|
/**
|
|
848
894
|
* The content of the component.
|
|
849
895
|
*/
|
|
850
|
-
children:
|
|
896
|
+
children: e.node,
|
|
851
897
|
/**
|
|
852
898
|
* Override or extend the styles applied to the component.
|
|
853
899
|
*/
|
|
854
|
-
classes:
|
|
900
|
+
classes: e.object,
|
|
855
901
|
/**
|
|
856
902
|
* @ignore
|
|
857
903
|
*/
|
|
858
|
-
className:
|
|
904
|
+
className: e.string,
|
|
859
905
|
/**
|
|
860
906
|
* The component used for the root node.
|
|
861
907
|
* Either a string to use a HTML element or a component.
|
|
862
908
|
*/
|
|
863
|
-
component:
|
|
909
|
+
component: e.elementType,
|
|
864
910
|
/**
|
|
865
911
|
* Determines the color of the indicator.
|
|
866
912
|
* @default 'primary'
|
|
867
913
|
*/
|
|
868
|
-
indicatorColor:
|
|
914
|
+
indicatorColor: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
869
915
|
/**
|
|
870
916
|
* Callback fired when the value changes.
|
|
871
917
|
*
|
|
872
918
|
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
873
919
|
* @param {any} value We default to the index of the child (number)
|
|
874
920
|
*/
|
|
875
|
-
onChange:
|
|
921
|
+
onChange: e.func,
|
|
876
922
|
/**
|
|
877
923
|
* The component orientation (layout flow direction).
|
|
878
924
|
* @default 'horizontal'
|
|
879
925
|
*/
|
|
880
|
-
orientation:
|
|
926
|
+
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
881
927
|
/**
|
|
882
928
|
* The component used to render the scroll buttons.
|
|
929
|
+
* @deprecated use the `slots.scrollButtons` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
883
930
|
* @default TabScrollButton
|
|
884
931
|
*/
|
|
885
|
-
ScrollButtonComponent:
|
|
932
|
+
ScrollButtonComponent: e.elementType,
|
|
886
933
|
/**
|
|
887
934
|
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
888
935
|
*
|
|
@@ -894,53 +941,68 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
894
941
|
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
895
942
|
* @default 'auto'
|
|
896
943
|
*/
|
|
897
|
-
scrollButtons:
|
|
944
|
+
scrollButtons: e.oneOf(["auto", !1, !0]),
|
|
898
945
|
/**
|
|
899
946
|
* If `true` the selected tab changes on focus. Otherwise it only
|
|
900
947
|
* changes on activation.
|
|
901
948
|
*/
|
|
902
|
-
selectionFollowsFocus:
|
|
949
|
+
selectionFollowsFocus: e.bool,
|
|
903
950
|
/**
|
|
904
|
-
* The
|
|
905
|
-
* You can override the existing props or add new ones.
|
|
951
|
+
* The props used for each slot inside.
|
|
906
952
|
* @default {}
|
|
907
953
|
*/
|
|
908
|
-
slotProps:
|
|
909
|
-
endScrollButtonIcon:
|
|
910
|
-
|
|
954
|
+
slotProps: e.shape({
|
|
955
|
+
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
956
|
+
indicator: e.oneOfType([e.func, e.object]),
|
|
957
|
+
list: e.oneOfType([e.func, e.object]),
|
|
958
|
+
root: e.oneOfType([e.func, e.object]),
|
|
959
|
+
scrollbar: e.oneOfType([e.func, e.object]),
|
|
960
|
+
scrollButtons: e.oneOfType([e.func, e.object]),
|
|
961
|
+
scroller: e.oneOfType([e.func, e.object]),
|
|
962
|
+
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
911
963
|
}),
|
|
912
964
|
/**
|
|
913
965
|
* The components used for each slot inside.
|
|
914
966
|
* @default {}
|
|
915
967
|
*/
|
|
916
|
-
slots:
|
|
917
|
-
|
|
918
|
-
|
|
968
|
+
slots: e.shape({
|
|
969
|
+
endScrollButtonIcon: e.elementType,
|
|
970
|
+
EndScrollButtonIcon: e.elementType,
|
|
971
|
+
indicator: e.elementType,
|
|
972
|
+
list: e.elementType,
|
|
973
|
+
root: e.elementType,
|
|
974
|
+
scrollbar: e.elementType,
|
|
975
|
+
scrollButtons: e.elementType,
|
|
976
|
+
scroller: e.elementType,
|
|
977
|
+
startScrollButtonIcon: e.elementType,
|
|
978
|
+
StartScrollButtonIcon: e.elementType
|
|
919
979
|
}),
|
|
920
980
|
/**
|
|
921
981
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
922
982
|
*/
|
|
923
|
-
sx:
|
|
983
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
924
984
|
/**
|
|
925
985
|
* Props applied to the tab indicator element.
|
|
986
|
+
* @deprecated use the `slotProps.indicator` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
926
987
|
* @default {}
|
|
927
988
|
*/
|
|
928
|
-
TabIndicatorProps:
|
|
989
|
+
TabIndicatorProps: e.object,
|
|
929
990
|
/**
|
|
930
991
|
* Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
|
|
992
|
+
* @deprecated use the `slotProps.scrollButtons` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
931
993
|
* @default {}
|
|
932
994
|
*/
|
|
933
|
-
TabScrollButtonProps:
|
|
995
|
+
TabScrollButtonProps: e.object,
|
|
934
996
|
/**
|
|
935
997
|
* Determines the color of the `Tab`.
|
|
936
998
|
* @default 'primary'
|
|
937
999
|
*/
|
|
938
|
-
textColor:
|
|
1000
|
+
textColor: e.oneOf(["inherit", "primary", "secondary"]),
|
|
939
1001
|
/**
|
|
940
1002
|
* The value of the currently selected `Tab`.
|
|
941
1003
|
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
942
1004
|
*/
|
|
943
|
-
value:
|
|
1005
|
+
value: e.any,
|
|
944
1006
|
/**
|
|
945
1007
|
* Determines additional display behavior of the tabs:
|
|
946
1008
|
*
|
|
@@ -951,34 +1013,34 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
951
1013
|
* - `standard` will render the default state.
|
|
952
1014
|
* @default 'standard'
|
|
953
1015
|
*/
|
|
954
|
-
variant:
|
|
1016
|
+
variant: e.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
955
1017
|
/**
|
|
956
1018
|
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
957
1019
|
* a long vertical list of tabs.
|
|
958
1020
|
* @default false
|
|
959
1021
|
*/
|
|
960
|
-
visibleScrollbar:
|
|
1022
|
+
visibleScrollbar: e.bool
|
|
961
1023
|
});
|
|
962
|
-
const
|
|
1024
|
+
const _o = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
963
1025
|
const {
|
|
964
1026
|
children: a,
|
|
965
1027
|
...i
|
|
966
|
-
} =
|
|
1028
|
+
} = o, d = Xe();
|
|
967
1029
|
if (d === null)
|
|
968
1030
|
throw new TypeError("No TabContext provided");
|
|
969
1031
|
const p = s.Children.map(a, (f) => /* @__PURE__ */ s.isValidElement(f) ? /* @__PURE__ */ s.cloneElement(f, {
|
|
970
1032
|
// SOMEDAY: `Tabs` will set those themselves
|
|
971
|
-
"aria-controls":
|
|
972
|
-
id:
|
|
1033
|
+
"aria-controls": Ke(d, f.props.value),
|
|
1034
|
+
id: _e(d, f.props.value)
|
|
973
1035
|
}) : null);
|
|
974
|
-
return /* @__PURE__ */ T(
|
|
1036
|
+
return /* @__PURE__ */ T(Ge, {
|
|
975
1037
|
...i,
|
|
976
|
-
ref:
|
|
1038
|
+
ref: r,
|
|
977
1039
|
value: d.value,
|
|
978
1040
|
children: p
|
|
979
1041
|
});
|
|
980
1042
|
});
|
|
981
|
-
process.env.NODE_ENV !== "production" && (
|
|
1043
|
+
process.env.NODE_ENV !== "production" && (_o.propTypes = {
|
|
982
1044
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
983
1045
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
984
1046
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -986,30 +1048,30 @@ process.env.NODE_ENV !== "production" && (Oo.propTypes = {
|
|
|
986
1048
|
/**
|
|
987
1049
|
* A list of `<Tab />` elements.
|
|
988
1050
|
*/
|
|
989
|
-
children:
|
|
1051
|
+
children: e.node
|
|
990
1052
|
});
|
|
991
|
-
function
|
|
992
|
-
return
|
|
1053
|
+
function Yo(t) {
|
|
1054
|
+
return ie("MuiTabPanel", t);
|
|
993
1055
|
}
|
|
994
|
-
const
|
|
1056
|
+
const gt = ae("MuiTabPanel", ["root", "hidden"]), qo = (t) => {
|
|
995
1057
|
const {
|
|
996
|
-
classes:
|
|
997
|
-
hidden:
|
|
1058
|
+
classes: o,
|
|
1059
|
+
hidden: r
|
|
998
1060
|
} = t;
|
|
999
|
-
return
|
|
1000
|
-
root: ["root",
|
|
1001
|
-
},
|
|
1002
|
-
},
|
|
1061
|
+
return ce({
|
|
1062
|
+
root: ["root", r && "hidden"]
|
|
1063
|
+
}, Yo, o);
|
|
1064
|
+
}, Go = D("div", {
|
|
1003
1065
|
name: "MuiTabPanel",
|
|
1004
1066
|
slot: "Root",
|
|
1005
|
-
overridesResolver: (t,
|
|
1067
|
+
overridesResolver: (t, o) => o.root
|
|
1006
1068
|
})(({
|
|
1007
1069
|
theme: t
|
|
1008
1070
|
}) => ({
|
|
1009
1071
|
padding: t.spacing(3)
|
|
1010
|
-
})),
|
|
1011
|
-
const a =
|
|
1012
|
-
props:
|
|
1072
|
+
})), Jo = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
1073
|
+
const a = Io({
|
|
1074
|
+
props: o,
|
|
1013
1075
|
name: "MuiTabPanel"
|
|
1014
1076
|
}), {
|
|
1015
1077
|
children: i,
|
|
@@ -1019,23 +1081,23 @@ const lt = re("MuiTabPanel", ["root", "hidden"]), $o = (t) => {
|
|
|
1019
1081
|
...h
|
|
1020
1082
|
} = a, S = {
|
|
1021
1083
|
...a
|
|
1022
|
-
},
|
|
1084
|
+
}, v = qo(S), m = Xe();
|
|
1023
1085
|
if (m === null)
|
|
1024
1086
|
throw new TypeError("No TabContext provided");
|
|
1025
|
-
const
|
|
1026
|
-
return /* @__PURE__ */ T(
|
|
1087
|
+
const y = Ke(m, p), g = _e(m, p);
|
|
1088
|
+
return /* @__PURE__ */ T(Go, {
|
|
1027
1089
|
"aria-labelledby": g,
|
|
1028
|
-
className:
|
|
1090
|
+
className: j(v.root, d),
|
|
1029
1091
|
hidden: p !== m.value,
|
|
1030
|
-
id:
|
|
1031
|
-
ref:
|
|
1092
|
+
id: y,
|
|
1093
|
+
ref: r,
|
|
1032
1094
|
role: "tabpanel",
|
|
1033
1095
|
ownerState: S,
|
|
1034
1096
|
...h,
|
|
1035
1097
|
children: (f || p === m.value) && i
|
|
1036
1098
|
});
|
|
1037
1099
|
});
|
|
1038
|
-
process.env.NODE_ENV !== "production" && (
|
|
1100
|
+
process.env.NODE_ENV !== "production" && (Jo.propTypes = {
|
|
1039
1101
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1040
1102
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1041
1103
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1043,37 +1105,37 @@ process.env.NODE_ENV !== "production" && (Do.propTypes = {
|
|
|
1043
1105
|
/**
|
|
1044
1106
|
* The content of the component.
|
|
1045
1107
|
*/
|
|
1046
|
-
children:
|
|
1108
|
+
children: e.node,
|
|
1047
1109
|
/**
|
|
1048
1110
|
* Override or extend the styles applied to the component.
|
|
1049
1111
|
*/
|
|
1050
|
-
classes:
|
|
1112
|
+
classes: e.object,
|
|
1051
1113
|
/**
|
|
1052
1114
|
* @ignore
|
|
1053
1115
|
*/
|
|
1054
|
-
className:
|
|
1116
|
+
className: e.string,
|
|
1055
1117
|
/**
|
|
1056
1118
|
* Always keep the children in the DOM.
|
|
1057
1119
|
* @default false
|
|
1058
1120
|
*/
|
|
1059
|
-
keepMounted:
|
|
1121
|
+
keepMounted: e.bool,
|
|
1060
1122
|
/**
|
|
1061
1123
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1062
1124
|
*/
|
|
1063
|
-
sx:
|
|
1125
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1064
1126
|
/**
|
|
1065
1127
|
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
1066
1128
|
* no `value` was passed to `Tab`.
|
|
1067
1129
|
*/
|
|
1068
|
-
value:
|
|
1130
|
+
value: e.oneOfType([e.number, e.string]).isRequired
|
|
1069
1131
|
});
|
|
1070
|
-
function
|
|
1071
|
-
return
|
|
1132
|
+
function Qo(t) {
|
|
1133
|
+
return ie("MuiTab", t);
|
|
1072
1134
|
}
|
|
1073
|
-
const
|
|
1135
|
+
const w = ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), Zo = (t) => {
|
|
1074
1136
|
const {
|
|
1075
|
-
classes:
|
|
1076
|
-
textColor:
|
|
1137
|
+
classes: o,
|
|
1138
|
+
textColor: r,
|
|
1077
1139
|
fullWidth: a,
|
|
1078
1140
|
wrapped: i,
|
|
1079
1141
|
icon: d,
|
|
@@ -1081,24 +1143,24 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1081
1143
|
selected: f,
|
|
1082
1144
|
disabled: h
|
|
1083
1145
|
} = t, S = {
|
|
1084
|
-
root: ["root", d && p && "labelIcon", `textColor${
|
|
1146
|
+
root: ["root", d && p && "labelIcon", `textColor${Ue(r)}`, a && "fullWidth", i && "wrapped", f && "selected", h && "disabled"],
|
|
1085
1147
|
icon: ["iconWrapper", "icon"]
|
|
1086
1148
|
};
|
|
1087
|
-
return
|
|
1088
|
-
},
|
|
1149
|
+
return ce(S, Qo, o);
|
|
1150
|
+
}, et = D(He, {
|
|
1089
1151
|
name: "MuiTab",
|
|
1090
1152
|
slot: "Root",
|
|
1091
|
-
overridesResolver: (t,
|
|
1153
|
+
overridesResolver: (t, o) => {
|
|
1092
1154
|
const {
|
|
1093
|
-
ownerState:
|
|
1155
|
+
ownerState: r
|
|
1094
1156
|
} = t;
|
|
1095
|
-
return [
|
|
1096
|
-
[`& .${
|
|
1157
|
+
return [o.root, r.label && r.icon && o.labelIcon, o[`textColor${Ue(r.textColor)}`], r.fullWidth && o.fullWidth, r.wrapped && o.wrapped, {
|
|
1158
|
+
[`& .${w.iconWrapper}`]: o.iconWrapper
|
|
1097
1159
|
}, {
|
|
1098
|
-
[`& .${
|
|
1160
|
+
[`& .${w.icon}`]: o.icon
|
|
1099
1161
|
}];
|
|
1100
1162
|
}
|
|
1101
|
-
})(
|
|
1163
|
+
})(ve(({
|
|
1102
1164
|
theme: t
|
|
1103
1165
|
}) => ({
|
|
1104
1166
|
...t.typography.button,
|
|
@@ -1114,22 +1176,22 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1114
1176
|
lineHeight: 1.25,
|
|
1115
1177
|
variants: [{
|
|
1116
1178
|
props: ({
|
|
1117
|
-
ownerState:
|
|
1118
|
-
}) =>
|
|
1179
|
+
ownerState: o
|
|
1180
|
+
}) => o.label && (o.iconPosition === "top" || o.iconPosition === "bottom"),
|
|
1119
1181
|
style: {
|
|
1120
1182
|
flexDirection: "column"
|
|
1121
1183
|
}
|
|
1122
1184
|
}, {
|
|
1123
1185
|
props: ({
|
|
1124
|
-
ownerState:
|
|
1125
|
-
}) =>
|
|
1186
|
+
ownerState: o
|
|
1187
|
+
}) => o.label && o.iconPosition !== "top" && o.iconPosition !== "bottom",
|
|
1126
1188
|
style: {
|
|
1127
1189
|
flexDirection: "row"
|
|
1128
1190
|
}
|
|
1129
1191
|
}, {
|
|
1130
1192
|
props: ({
|
|
1131
|
-
ownerState:
|
|
1132
|
-
}) =>
|
|
1193
|
+
ownerState: o
|
|
1194
|
+
}) => o.icon && o.label,
|
|
1133
1195
|
style: {
|
|
1134
1196
|
minHeight: 72,
|
|
1135
1197
|
paddingTop: 9,
|
|
@@ -1137,41 +1199,41 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1137
1199
|
}
|
|
1138
1200
|
}, {
|
|
1139
1201
|
props: ({
|
|
1140
|
-
ownerState:
|
|
1141
|
-
iconPosition:
|
|
1142
|
-
}) =>
|
|
1202
|
+
ownerState: o,
|
|
1203
|
+
iconPosition: r
|
|
1204
|
+
}) => o.icon && o.label && r === "top",
|
|
1143
1205
|
style: {
|
|
1144
|
-
[`& > .${
|
|
1206
|
+
[`& > .${w.icon}`]: {
|
|
1145
1207
|
marginBottom: 6
|
|
1146
1208
|
}
|
|
1147
1209
|
}
|
|
1148
1210
|
}, {
|
|
1149
1211
|
props: ({
|
|
1150
|
-
ownerState:
|
|
1151
|
-
iconPosition:
|
|
1152
|
-
}) =>
|
|
1212
|
+
ownerState: o,
|
|
1213
|
+
iconPosition: r
|
|
1214
|
+
}) => o.icon && o.label && r === "bottom",
|
|
1153
1215
|
style: {
|
|
1154
|
-
[`& > .${
|
|
1216
|
+
[`& > .${w.icon}`]: {
|
|
1155
1217
|
marginTop: 6
|
|
1156
1218
|
}
|
|
1157
1219
|
}
|
|
1158
1220
|
}, {
|
|
1159
1221
|
props: ({
|
|
1160
|
-
ownerState:
|
|
1161
|
-
iconPosition:
|
|
1162
|
-
}) =>
|
|
1222
|
+
ownerState: o,
|
|
1223
|
+
iconPosition: r
|
|
1224
|
+
}) => o.icon && o.label && r === "start",
|
|
1163
1225
|
style: {
|
|
1164
|
-
[`& > .${
|
|
1226
|
+
[`& > .${w.icon}`]: {
|
|
1165
1227
|
marginRight: t.spacing(1)
|
|
1166
1228
|
}
|
|
1167
1229
|
}
|
|
1168
1230
|
}, {
|
|
1169
1231
|
props: ({
|
|
1170
|
-
ownerState:
|
|
1171
|
-
iconPosition:
|
|
1172
|
-
}) =>
|
|
1232
|
+
ownerState: o,
|
|
1233
|
+
iconPosition: r
|
|
1234
|
+
}) => o.icon && o.label && r === "end",
|
|
1173
1235
|
style: {
|
|
1174
|
-
[`& > .${
|
|
1236
|
+
[`& > .${w.icon}`]: {
|
|
1175
1237
|
marginLeft: t.spacing(1)
|
|
1176
1238
|
}
|
|
1177
1239
|
}
|
|
@@ -1183,10 +1245,10 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1183
1245
|
color: "inherit",
|
|
1184
1246
|
opacity: 0.6,
|
|
1185
1247
|
// same opacity as theme.palette.text.secondary
|
|
1186
|
-
[`&.${
|
|
1248
|
+
[`&.${w.selected}`]: {
|
|
1187
1249
|
opacity: 1
|
|
1188
1250
|
},
|
|
1189
|
-
[`&.${
|
|
1251
|
+
[`&.${w.disabled}`]: {
|
|
1190
1252
|
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
1191
1253
|
}
|
|
1192
1254
|
}
|
|
@@ -1196,10 +1258,10 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1196
1258
|
},
|
|
1197
1259
|
style: {
|
|
1198
1260
|
color: (t.vars || t).palette.text.secondary,
|
|
1199
|
-
[`&.${
|
|
1261
|
+
[`&.${w.selected}`]: {
|
|
1200
1262
|
color: (t.vars || t).palette.primary.main
|
|
1201
1263
|
},
|
|
1202
|
-
[`&.${
|
|
1264
|
+
[`&.${w.disabled}`]: {
|
|
1203
1265
|
color: (t.vars || t).palette.text.disabled
|
|
1204
1266
|
}
|
|
1205
1267
|
}
|
|
@@ -1209,17 +1271,17 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1209
1271
|
},
|
|
1210
1272
|
style: {
|
|
1211
1273
|
color: (t.vars || t).palette.text.secondary,
|
|
1212
|
-
[`&.${
|
|
1274
|
+
[`&.${w.selected}`]: {
|
|
1213
1275
|
color: (t.vars || t).palette.secondary.main
|
|
1214
1276
|
},
|
|
1215
|
-
[`&.${
|
|
1277
|
+
[`&.${w.disabled}`]: {
|
|
1216
1278
|
color: (t.vars || t).palette.text.disabled
|
|
1217
1279
|
}
|
|
1218
1280
|
}
|
|
1219
1281
|
}, {
|
|
1220
1282
|
props: ({
|
|
1221
|
-
ownerState:
|
|
1222
|
-
}) =>
|
|
1283
|
+
ownerState: o
|
|
1284
|
+
}) => o.fullWidth,
|
|
1223
1285
|
style: {
|
|
1224
1286
|
flexShrink: 1,
|
|
1225
1287
|
flexGrow: 1,
|
|
@@ -1228,15 +1290,15 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1228
1290
|
}
|
|
1229
1291
|
}, {
|
|
1230
1292
|
props: ({
|
|
1231
|
-
ownerState:
|
|
1232
|
-
}) =>
|
|
1293
|
+
ownerState: o
|
|
1294
|
+
}) => o.wrapped,
|
|
1233
1295
|
style: {
|
|
1234
1296
|
fontSize: t.typography.pxToRem(12)
|
|
1235
1297
|
}
|
|
1236
1298
|
}]
|
|
1237
|
-
}))),
|
|
1238
|
-
const a =
|
|
1239
|
-
props:
|
|
1299
|
+
}))), ot = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
1300
|
+
const a = Se({
|
|
1301
|
+
props: o,
|
|
1240
1302
|
name: "MuiTab"
|
|
1241
1303
|
}), {
|
|
1242
1304
|
className: i,
|
|
@@ -1247,21 +1309,21 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1247
1309
|
icon: h,
|
|
1248
1310
|
iconPosition: S = "top",
|
|
1249
1311
|
// eslint-disable-next-line react/prop-types
|
|
1250
|
-
indicator:
|
|
1312
|
+
indicator: v,
|
|
1251
1313
|
label: m,
|
|
1252
|
-
onChange:
|
|
1314
|
+
onChange: y,
|
|
1253
1315
|
onClick: g,
|
|
1254
1316
|
onFocus: W,
|
|
1255
1317
|
// eslint-disable-next-line react/prop-types
|
|
1256
1318
|
selected: E,
|
|
1257
1319
|
// eslint-disable-next-line react/prop-types
|
|
1258
|
-
selectionFollowsFocus:
|
|
1320
|
+
selectionFollowsFocus: x,
|
|
1259
1321
|
// eslint-disable-next-line react/prop-types
|
|
1260
|
-
textColor:
|
|
1261
|
-
value:
|
|
1262
|
-
wrapped:
|
|
1263
|
-
...
|
|
1264
|
-
} = a,
|
|
1322
|
+
textColor: J = "inherit",
|
|
1323
|
+
value: P,
|
|
1324
|
+
wrapped: de = !1,
|
|
1325
|
+
...M
|
|
1326
|
+
} = a, A = {
|
|
1265
1327
|
...a,
|
|
1266
1328
|
disabled: d,
|
|
1267
1329
|
disableFocusRipple: p,
|
|
@@ -1270,35 +1332,35 @@ const x = re("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrima
|
|
|
1270
1332
|
iconPosition: S,
|
|
1271
1333
|
label: !!m,
|
|
1272
1334
|
fullWidth: f,
|
|
1273
|
-
textColor:
|
|
1274
|
-
wrapped:
|
|
1275
|
-
},
|
|
1276
|
-
className:
|
|
1277
|
-
}) : h,
|
|
1278
|
-
!E &&
|
|
1279
|
-
},
|
|
1280
|
-
|
|
1335
|
+
textColor: J,
|
|
1336
|
+
wrapped: de
|
|
1337
|
+
}, U = Zo(A), X = h && m && /* @__PURE__ */ s.isValidElement(h) ? /* @__PURE__ */ s.cloneElement(h, {
|
|
1338
|
+
className: j(U.icon, h.props.className)
|
|
1339
|
+
}) : h, Q = (O) => {
|
|
1340
|
+
!E && y && y(O, P), g && g(O);
|
|
1341
|
+
}, k = (O) => {
|
|
1342
|
+
x && !E && y && y(O, P), W && W(O);
|
|
1281
1343
|
};
|
|
1282
|
-
return /* @__PURE__ */
|
|
1344
|
+
return /* @__PURE__ */ G(et, {
|
|
1283
1345
|
focusRipple: !p,
|
|
1284
|
-
className:
|
|
1285
|
-
ref:
|
|
1346
|
+
className: j(U.root, i),
|
|
1347
|
+
ref: r,
|
|
1286
1348
|
role: "tab",
|
|
1287
1349
|
"aria-selected": E,
|
|
1288
1350
|
disabled: d,
|
|
1289
|
-
onClick:
|
|
1290
|
-
onFocus:
|
|
1291
|
-
ownerState:
|
|
1351
|
+
onClick: Q,
|
|
1352
|
+
onFocus: k,
|
|
1353
|
+
ownerState: A,
|
|
1292
1354
|
tabIndex: E ? 0 : -1,
|
|
1293
|
-
...
|
|
1294
|
-
children: [S === "top" || S === "start" ? /* @__PURE__ */
|
|
1295
|
-
children: [
|
|
1296
|
-
}) : /* @__PURE__ */
|
|
1297
|
-
children: [m,
|
|
1298
|
-
}),
|
|
1355
|
+
...M,
|
|
1356
|
+
children: [S === "top" || S === "start" ? /* @__PURE__ */ G(s.Fragment, {
|
|
1357
|
+
children: [X, m]
|
|
1358
|
+
}) : /* @__PURE__ */ G(s.Fragment, {
|
|
1359
|
+
children: [m, X]
|
|
1360
|
+
}), v]
|
|
1299
1361
|
});
|
|
1300
1362
|
});
|
|
1301
|
-
process.env.NODE_ENV !== "production" && (
|
|
1363
|
+
process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
1302
1364
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1303
1365
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1304
1366
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1307,25 +1369,25 @@ process.env.NODE_ENV !== "production" && (Ao.propTypes = {
|
|
|
1307
1369
|
* This prop isn't supported.
|
|
1308
1370
|
* Use the `component` prop if you need to change the children structure.
|
|
1309
1371
|
*/
|
|
1310
|
-
children:
|
|
1372
|
+
children: Po,
|
|
1311
1373
|
/**
|
|
1312
1374
|
* Override or extend the styles applied to the component.
|
|
1313
1375
|
*/
|
|
1314
|
-
classes:
|
|
1376
|
+
classes: e.object,
|
|
1315
1377
|
/**
|
|
1316
1378
|
* @ignore
|
|
1317
1379
|
*/
|
|
1318
|
-
className:
|
|
1380
|
+
className: e.string,
|
|
1319
1381
|
/**
|
|
1320
1382
|
* If `true`, the component is disabled.
|
|
1321
1383
|
* @default false
|
|
1322
1384
|
*/
|
|
1323
|
-
disabled:
|
|
1385
|
+
disabled: e.bool,
|
|
1324
1386
|
/**
|
|
1325
1387
|
* If `true`, the keyboard focus ripple is disabled.
|
|
1326
1388
|
* @default false
|
|
1327
1389
|
*/
|
|
1328
|
-
disableFocusRipple:
|
|
1390
|
+
disableFocusRipple: e.bool,
|
|
1329
1391
|
/**
|
|
1330
1392
|
* If `true`, the ripple effect is disabled.
|
|
1331
1393
|
*
|
|
@@ -1333,62 +1395,62 @@ process.env.NODE_ENV !== "production" && (Ao.propTypes = {
|
|
|
1333
1395
|
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
1334
1396
|
* @default false
|
|
1335
1397
|
*/
|
|
1336
|
-
disableRipple:
|
|
1398
|
+
disableRipple: e.bool,
|
|
1337
1399
|
/**
|
|
1338
1400
|
* The icon to display.
|
|
1339
1401
|
*/
|
|
1340
|
-
icon:
|
|
1402
|
+
icon: e.oneOfType([e.element, e.string]),
|
|
1341
1403
|
/**
|
|
1342
1404
|
* The position of the icon relative to the label.
|
|
1343
1405
|
* @default 'top'
|
|
1344
1406
|
*/
|
|
1345
|
-
iconPosition:
|
|
1407
|
+
iconPosition: e.oneOf(["bottom", "end", "start", "top"]),
|
|
1346
1408
|
/**
|
|
1347
1409
|
* The label element.
|
|
1348
1410
|
*/
|
|
1349
|
-
label:
|
|
1411
|
+
label: e.node,
|
|
1350
1412
|
/**
|
|
1351
1413
|
* @ignore
|
|
1352
1414
|
*/
|
|
1353
|
-
onChange:
|
|
1415
|
+
onChange: e.func,
|
|
1354
1416
|
/**
|
|
1355
1417
|
* @ignore
|
|
1356
1418
|
*/
|
|
1357
|
-
onClick:
|
|
1419
|
+
onClick: e.func,
|
|
1358
1420
|
/**
|
|
1359
1421
|
* @ignore
|
|
1360
1422
|
*/
|
|
1361
|
-
onFocus:
|
|
1423
|
+
onFocus: e.func,
|
|
1362
1424
|
/**
|
|
1363
1425
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1364
1426
|
*/
|
|
1365
|
-
sx:
|
|
1427
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1366
1428
|
/**
|
|
1367
1429
|
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
1368
1430
|
*/
|
|
1369
|
-
value:
|
|
1431
|
+
value: e.any,
|
|
1370
1432
|
/**
|
|
1371
1433
|
* Tab labels appear in a single row.
|
|
1372
1434
|
* They can use a second line if needed.
|
|
1373
1435
|
* @default false
|
|
1374
1436
|
*/
|
|
1375
|
-
wrapped:
|
|
1437
|
+
wrapped: e.bool
|
|
1376
1438
|
});
|
|
1377
1439
|
export {
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1440
|
+
$o as K,
|
|
1441
|
+
Oo as T,
|
|
1442
|
+
_o as a,
|
|
1443
|
+
Jo as b,
|
|
1444
|
+
ot as c,
|
|
1445
|
+
Ge as d,
|
|
1446
|
+
_e as e,
|
|
1447
|
+
Yo as f,
|
|
1448
|
+
Ke as g,
|
|
1449
|
+
w as h,
|
|
1450
|
+
Qo as i,
|
|
1451
|
+
ye as j,
|
|
1452
|
+
Fo as k,
|
|
1453
|
+
ko as l,
|
|
1454
|
+
gt as t,
|
|
1455
|
+
Xe as u
|
|
1394
1456
|
};
|