@cgi-learning-hub/ui 1.5.1 → 1.6.0
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,262 +0,0 @@
|
|
|
1
|
-
import * as D from "react";
|
|
2
|
-
import { H as G, G as H, I as V, P as e } from "./generateUtilityClasses-BpRGbQmY.js";
|
|
3
|
-
import { s as C, c as _, r as $ } from "./DefaultPropsProvider-Ik4eAJdt.js";
|
|
4
|
-
import { u as A } from "./useFormControl-CatNKXAi.js";
|
|
5
|
-
import { jsxs as J, jsx as K } from "react/jsx-runtime";
|
|
6
|
-
import { u as M } from "./useControlled-BYdyS7Pn.js";
|
|
7
|
-
import { c as Q } from "./capitalize-DSG2FA7x.js";
|
|
8
|
-
import { B as W } from "./ButtonBase-Bncgzjtp.js";
|
|
9
|
-
import { r as X } from "./refType-DsRJ5_Sj.js";
|
|
10
|
-
function Y(s) {
|
|
11
|
-
return G("PrivateSwitchBase", s);
|
|
12
|
-
}
|
|
13
|
-
H("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
14
|
-
const Z = (s) => {
|
|
15
|
-
const {
|
|
16
|
-
classes: t,
|
|
17
|
-
checked: d,
|
|
18
|
-
disabled: c,
|
|
19
|
-
edge: n
|
|
20
|
-
} = s, l = {
|
|
21
|
-
root: ["root", d && "checked", c && "disabled", n && `edge${Q(n)}`],
|
|
22
|
-
input: ["input"]
|
|
23
|
-
};
|
|
24
|
-
return _(l, Y, t);
|
|
25
|
-
}, ee = C(W)({
|
|
26
|
-
padding: 9,
|
|
27
|
-
borderRadius: "50%",
|
|
28
|
-
variants: [{
|
|
29
|
-
props: {
|
|
30
|
-
edge: "start",
|
|
31
|
-
size: "small"
|
|
32
|
-
},
|
|
33
|
-
style: {
|
|
34
|
-
marginLeft: -3
|
|
35
|
-
}
|
|
36
|
-
}, {
|
|
37
|
-
props: ({
|
|
38
|
-
edge: s,
|
|
39
|
-
ownerState: t
|
|
40
|
-
}) => s === "start" && t.size !== "small",
|
|
41
|
-
style: {
|
|
42
|
-
marginLeft: -12
|
|
43
|
-
}
|
|
44
|
-
}, {
|
|
45
|
-
props: {
|
|
46
|
-
edge: "end",
|
|
47
|
-
size: "small"
|
|
48
|
-
},
|
|
49
|
-
style: {
|
|
50
|
-
marginRight: -3
|
|
51
|
-
}
|
|
52
|
-
}, {
|
|
53
|
-
props: ({
|
|
54
|
-
edge: s,
|
|
55
|
-
ownerState: t
|
|
56
|
-
}) => s === "end" && t.size !== "small",
|
|
57
|
-
style: {
|
|
58
|
-
marginRight: -12
|
|
59
|
-
}
|
|
60
|
-
}]
|
|
61
|
-
}), oe = C("input", {
|
|
62
|
-
shouldForwardProp: $
|
|
63
|
-
})({
|
|
64
|
-
cursor: "inherit",
|
|
65
|
-
position: "absolute",
|
|
66
|
-
opacity: 0,
|
|
67
|
-
width: "100%",
|
|
68
|
-
height: "100%",
|
|
69
|
-
top: 0,
|
|
70
|
-
left: 0,
|
|
71
|
-
margin: 0,
|
|
72
|
-
padding: 0,
|
|
73
|
-
zIndex: 1
|
|
74
|
-
}), se = /* @__PURE__ */ D.forwardRef(function(t, d) {
|
|
75
|
-
const {
|
|
76
|
-
autoFocus: c,
|
|
77
|
-
checked: n,
|
|
78
|
-
checkedIcon: l,
|
|
79
|
-
className: w,
|
|
80
|
-
defaultChecked: p,
|
|
81
|
-
disabled: F,
|
|
82
|
-
disableFocusRipple: f = !1,
|
|
83
|
-
edge: R = !1,
|
|
84
|
-
icon: S,
|
|
85
|
-
id: x,
|
|
86
|
-
inputProps: P,
|
|
87
|
-
inputRef: I,
|
|
88
|
-
name: q,
|
|
89
|
-
onBlur: h,
|
|
90
|
-
onChange: m,
|
|
91
|
-
onFocus: b,
|
|
92
|
-
readOnly: v,
|
|
93
|
-
required: z = !1,
|
|
94
|
-
tabIndex: N,
|
|
95
|
-
type: i,
|
|
96
|
-
value: g,
|
|
97
|
-
...O
|
|
98
|
-
} = t, [y, j] = M({
|
|
99
|
-
controlled: n,
|
|
100
|
-
default: !!p,
|
|
101
|
-
name: "SwitchBase",
|
|
102
|
-
state: "checked"
|
|
103
|
-
}), a = A(), E = (o) => {
|
|
104
|
-
b && b(o), a && a.onFocus && a.onFocus(o);
|
|
105
|
-
}, T = (o) => {
|
|
106
|
-
h && h(o), a && a.onBlur && a.onBlur(o);
|
|
107
|
-
}, U = (o) => {
|
|
108
|
-
if (o.nativeEvent.defaultPrevented)
|
|
109
|
-
return;
|
|
110
|
-
const B = o.target.checked;
|
|
111
|
-
j(B), m && m(o, B);
|
|
112
|
-
};
|
|
113
|
-
let r = F;
|
|
114
|
-
a && typeof r > "u" && (r = a.disabled);
|
|
115
|
-
const L = i === "checkbox" || i === "radio", u = {
|
|
116
|
-
...t,
|
|
117
|
-
checked: y,
|
|
118
|
-
disabled: r,
|
|
119
|
-
disableFocusRipple: f,
|
|
120
|
-
edge: R
|
|
121
|
-
}, k = Z(u);
|
|
122
|
-
return /* @__PURE__ */ J(ee, {
|
|
123
|
-
component: "span",
|
|
124
|
-
className: V(k.root, w),
|
|
125
|
-
centerRipple: !0,
|
|
126
|
-
focusRipple: !f,
|
|
127
|
-
disabled: r,
|
|
128
|
-
tabIndex: null,
|
|
129
|
-
role: void 0,
|
|
130
|
-
onFocus: E,
|
|
131
|
-
onBlur: T,
|
|
132
|
-
ownerState: u,
|
|
133
|
-
ref: d,
|
|
134
|
-
...O,
|
|
135
|
-
children: [/* @__PURE__ */ K(oe, {
|
|
136
|
-
autoFocus: c,
|
|
137
|
-
checked: n,
|
|
138
|
-
defaultChecked: p,
|
|
139
|
-
className: k.input,
|
|
140
|
-
disabled: r,
|
|
141
|
-
id: L ? x : void 0,
|
|
142
|
-
name: q,
|
|
143
|
-
onChange: U,
|
|
144
|
-
readOnly: v,
|
|
145
|
-
ref: I,
|
|
146
|
-
required: z,
|
|
147
|
-
ownerState: u,
|
|
148
|
-
tabIndex: N,
|
|
149
|
-
type: i,
|
|
150
|
-
...i === "checkbox" && g === void 0 ? {} : {
|
|
151
|
-
value: g
|
|
152
|
-
},
|
|
153
|
-
...P
|
|
154
|
-
}), y ? l : S]
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
158
|
-
/**
|
|
159
|
-
* If `true`, the `input` element is focused during the first mount.
|
|
160
|
-
*/
|
|
161
|
-
autoFocus: e.bool,
|
|
162
|
-
/**
|
|
163
|
-
* If `true`, the component is checked.
|
|
164
|
-
*/
|
|
165
|
-
checked: e.bool,
|
|
166
|
-
/**
|
|
167
|
-
* The icon to display when the component is checked.
|
|
168
|
-
*/
|
|
169
|
-
checkedIcon: e.node.isRequired,
|
|
170
|
-
/**
|
|
171
|
-
* Override or extend the styles applied to the component.
|
|
172
|
-
*/
|
|
173
|
-
classes: e.object,
|
|
174
|
-
/**
|
|
175
|
-
* @ignore
|
|
176
|
-
*/
|
|
177
|
-
className: e.string,
|
|
178
|
-
/**
|
|
179
|
-
* @ignore
|
|
180
|
-
*/
|
|
181
|
-
defaultChecked: e.bool,
|
|
182
|
-
/**
|
|
183
|
-
* If `true`, the component is disabled.
|
|
184
|
-
*/
|
|
185
|
-
disabled: e.bool,
|
|
186
|
-
/**
|
|
187
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
188
|
-
* @default false
|
|
189
|
-
*/
|
|
190
|
-
disableFocusRipple: e.bool,
|
|
191
|
-
/**
|
|
192
|
-
* If given, uses a negative margin to counteract the padding on one
|
|
193
|
-
* side (this is often helpful for aligning the left or right
|
|
194
|
-
* side of the icon with content above or below, without ruining the border
|
|
195
|
-
* size and shape).
|
|
196
|
-
* @default false
|
|
197
|
-
*/
|
|
198
|
-
edge: e.oneOf(["end", "start", !1]),
|
|
199
|
-
/**
|
|
200
|
-
* The icon to display when the component is unchecked.
|
|
201
|
-
*/
|
|
202
|
-
icon: e.node.isRequired,
|
|
203
|
-
/**
|
|
204
|
-
* The id of the `input` element.
|
|
205
|
-
*/
|
|
206
|
-
id: e.string,
|
|
207
|
-
/**
|
|
208
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
209
|
-
*/
|
|
210
|
-
inputProps: e.object,
|
|
211
|
-
/**
|
|
212
|
-
* Pass a ref to the `input` element.
|
|
213
|
-
*/
|
|
214
|
-
inputRef: X,
|
|
215
|
-
/*
|
|
216
|
-
* @ignore
|
|
217
|
-
*/
|
|
218
|
-
name: e.string,
|
|
219
|
-
/**
|
|
220
|
-
* @ignore
|
|
221
|
-
*/
|
|
222
|
-
onBlur: e.func,
|
|
223
|
-
/**
|
|
224
|
-
* Callback fired when the state is changed.
|
|
225
|
-
*
|
|
226
|
-
* @param {object} event The event source of the callback.
|
|
227
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
228
|
-
*/
|
|
229
|
-
onChange: e.func,
|
|
230
|
-
/**
|
|
231
|
-
* @ignore
|
|
232
|
-
*/
|
|
233
|
-
onFocus: e.func,
|
|
234
|
-
/**
|
|
235
|
-
* It prevents the user from changing the value of the field
|
|
236
|
-
* (not from interacting with the field).
|
|
237
|
-
*/
|
|
238
|
-
readOnly: e.bool,
|
|
239
|
-
/**
|
|
240
|
-
* If `true`, the `input` element is required.
|
|
241
|
-
*/
|
|
242
|
-
required: e.bool,
|
|
243
|
-
/**
|
|
244
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
245
|
-
*/
|
|
246
|
-
sx: e.object,
|
|
247
|
-
/**
|
|
248
|
-
* @ignore
|
|
249
|
-
*/
|
|
250
|
-
tabIndex: e.oneOfType([e.number, e.string]),
|
|
251
|
-
/**
|
|
252
|
-
* The input component prop `type`.
|
|
253
|
-
*/
|
|
254
|
-
type: e.string.isRequired,
|
|
255
|
-
/**
|
|
256
|
-
* The value of the component.
|
|
257
|
-
*/
|
|
258
|
-
value: e.any
|
|
259
|
-
});
|
|
260
|
-
export {
|
|
261
|
-
se as S
|
|
262
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const M=require("react"),e=require("./generateUtilityClasses-q4qbJjmd.cjs"),l=require("./DefaultPropsProvider-B6DqRWnX.cjs"),V=require("./useFormControl-haP0iPhl.cjs"),B=require("react/jsx-runtime"),$=require("./useControlled-Ysk4KqoX.cjs"),A=require("./capitalize-CToVceBw.cjs"),G=require("./ButtonBase-CBFRgTBs.cjs"),H=require("./refType-DDdajp2p.cjs");function J(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,a.get?a:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const K=J(M);function Q(o){return e.generateUtilityClass("PrivateSwitchBase",o)}e.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const W=o=>{const{classes:s,checked:r,disabled:a,edge:i}=o,p={root:["root",r&&"checked",a&&"disabled",i&&`edge${A.capitalize(i)}`],input:["input"]};return l.composeClasses(p,Q,s)},X=l.styled(G.ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:o,ownerState:s})=>o==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:o,ownerState:s})=>o==="end"&&s.size!=="small",style:{marginRight:-12}}]}),Y=l.styled("input",{shouldForwardProp:l.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=K.forwardRef(function(s,r){const{autoFocus:a,checked:i,checkedIcon:p,className:w,defaultChecked:f,disabled:F,disableFocusRipple:y=!1,edge:R=!1,icon:S,id:q,inputProps:x,inputRef:O,name:j,onBlur:h,onChange:b,onFocus:g,readOnly:I,required:v=!1,tabIndex:z,type:d,value:P,...N}=s,[m,U]=$.useControlled({controlled:i,default:!!f,name:"SwitchBase",state:"checked"}),n=V.useFormControl(),D=t=>{g&&g(t),n&&n.onFocus&&n.onFocus(t)},E=t=>{h&&h(t),n&&n.onBlur&&n.onBlur(t)},_=t=>{if(t.nativeEvent.defaultPrevented)return;const k=t.target.checked;U(k),b&&b(t,k)};let c=F;n&&typeof c>"u"&&(c=n.disabled);const L=d==="checkbox"||d==="radio",u={...s,checked:m,disabled:c,disableFocusRipple:y,edge:R},T=W(u);return B.jsxs(X,{component:"span",className:e.clsx(T.root,w),centerRipple:!0,focusRipple:!y,disabled:c,tabIndex:null,role:void 0,onFocus:D,onBlur:E,ownerState:u,ref:r,...N,children:[B.jsx(Y,{autoFocus:a,checked:i,defaultChecked:f,className:T.input,disabled:c,id:L?q:void 0,name:j,onChange:_,readOnly:I,ref:O,required:v,ownerState:u,tabIndex:z,type:d,...d==="checkbox"&&P===void 0?{}:{value:P},...x}),m?p:S]})});process.env.NODE_ENV!=="production"&&(C.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:H.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});exports.SwitchBase=C;
|
package/dist/Tab-DZvAf79O.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const co=require("react"),e=require("./generateUtilityClasses-q4qbJjmd.cjs"),T=require("react/jsx-runtime"),Oe=require("./index-baZm35zL.cjs"),po=require("./useTheme-DpMakc_Y.cjs"),m=require("./DefaultPropsProvider-B6DqRWnX.cjs"),pe=require("./memoTheme-BhhxAcUJ.cjs"),uo=require("./useEnhancedEffect-BQZ6dtCo.cjs"),je=require("./debounce-DpCj7ugL.cjs"),ke=require("./ownerWindow-DDHucZi0.cjs"),De=require("./createSvgIcon-EiiLl5-A.cjs"),te=require("./useSlotProps-DTgWZk99.cjs"),We=require("./ButtonBase-CBFRgTBs.cjs"),ce=require("./useEventCallback-C0-Qw3Sm.cjs"),fo=require("./ownerDocument-4MViGo3k.cjs"),bo=require("./refType-DDdajp2p.cjs"),yo=require("./useThemeProps-BnN3o4c1.cjs"),$e=require("./capitalize-CToVceBw.cjs"),To=require("./unsupportedProp-Bn6XWqwH.cjs");function ho(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,l.get?l:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const a=ho(co),de=a.createContext(null);process.env.NODE_ENV!=="production"&&(de.displayName="TabContext");function Po(){const[t,o]=a.useState(null);return a.useEffect(()=>{o(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),t}function ze(t){const{children:o,value:r}=t,l=Po(),i=a.useMemo(()=>({idPrefix:l,value:r}),[l,r]);return T.jsx(de.Provider,{value:i,children:o})}process.env.NODE_ENV!=="production"&&(ze.propTypes={children:e.PropTypes.node,value:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).isRequired});function ue(){return a.useContext(de)}function fe(t,o){const{idPrefix:r}=t;return r===null?null:`${t.idPrefix}-P-${o}`}function be(t,o){const{idPrefix:r}=t;return r===null?null:`${t.idPrefix}-T-${o}`}function vo(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function mo(t,o,r,l={},i=()=>{}){const{ease:p=vo,duration:u=300}=l;let f=null;const y=o[t];let P=!1;const S=()=>{P=!0},h=v=>{if(P){i(new Error("Animation cancelled"));return}f===null&&(f=v);const x=Math.min(1,(v-f)/u);if(o[t]=p(x)*(r-y)+y,x>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return y===r?(i(new Error("Element already at target position")),S):(requestAnimationFrame(h),S)}const So={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qe(t){const{onChange:o,...r}=t,l=a.useRef(),i=a.useRef(null),p=()=>{l.current=i.current.offsetHeight-i.current.clientHeight};return uo.useEnhancedEffect(()=>{const u=je.debounce(()=>{const y=l.current;p(),y!==l.current&&o(l.current)}),f=ke.ownerWindow(i.current);return f.addEventListener("resize",u),()=>{u.clear(),f.removeEventListener("resize",u)}},[o]),a.useEffect(()=>{p(),o(l.current)},[o]),T.jsx("div",{style:So,...r,ref:i})}process.env.NODE_ENV!=="production"&&(qe.propTypes={onChange:e.PropTypes.func.isRequired});const Le=De.createSvgIcon(T.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Ue=De.createSvgIcon(T.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function go(t){return e.generateUtilityClass("MuiTabScrollButton",t)}const xo=e.generateUtilityClasses("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Co=t=>{const{classes:o,orientation:r,disabled:l}=t,i={root:["root",r,l&&"disabled"]};return m.composeClasses(i,go,o)},wo=m.styled(We.ButtonBase,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,r.orientation&&o[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${xo.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Ae=a.forwardRef(function(o,r){const l=m.useDefaultProps({props:o,name:"MuiTabScrollButton"}),{className:i,slots:p={},slotProps:u={},direction:f,orientation:y,disabled:P,...S}=l,h=Oe.useRtl(),v={isRtl:h,...l},x=Co(v),k=p.StartScrollButtonIcon??Le,E=p.EndScrollButtonIcon??Ue,C=te.useSlotProps({elementType:k,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),L=te.useSlotProps({elementType:E,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return T.jsx(wo,{component:"div",className:e.clsx(x.root,i),ref:r,role:null,ownerState:v,tabIndex:null,...S,style:{...S.style,...y==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${h?-90:90}deg)`}},children:f==="left"?T.jsx(k,{...C}):T.jsx(E,{...L})})});process.env.NODE_ENV!=="production"&&(Ae.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,direction:e.PropTypes.oneOf(["left","right"]).isRequired,disabled:e.PropTypes.bool,orientation:e.PropTypes.oneOf(["horizontal","vertical"]).isRequired,slotProps:e.PropTypes.shape({endScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),startScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({EndScrollButtonIcon:e.PropTypes.elementType,StartScrollButtonIcon:e.PropTypes.elementType}),style:e.PropTypes.object,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});function Fe(t){return e.generateUtilityClass("MuiTabs",t)}const oe=e.generateUtilityClasses("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ie=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,Me=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,ee=(t,o,r)=>{let l=!1,i=r(t,o);for(;i;){if(i===t.firstChild){if(l)return;l=!0}const p=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||p)i=r(t,i);else{i.focus();return}}},Bo=t=>{const{vertical:o,fixed:r,hideScrollbar:l,scrollableX:i,scrollableY:p,centered:u,scrollButtonsHideMobile:f,classes:y}=t,P={root:["root",o&&"vertical"],scroller:["scroller",r&&"fixed",l&&"hideScrollbar",i&&"scrollableX",p&&"scrollableY"],flexContainer:["flexContainer",o&&"flexContainerVertical",u&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[l&&"hideScrollbar"]};return m.composeClasses(P,Fe,y)},Eo=m.styled("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[{[`& .${oe.scrollButtons}`]:o.scrollButtons},{[`& .${oe.scrollButtons}`]:r.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,r.vertical&&o.vertical]}})(pe.memoTheme(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${oe.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),Io=m.styled("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.scroller,r.fixed&&o.fixed,r.hideScrollbar&&o.hideScrollbar,r.scrollableX&&o.scrollableX,r.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Mo=m.styled("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.flexContainer,r.vertical&&o.flexContainerVertical,r.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Ro=m.styled("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,o)=>o.indicator})(pe.memoTheme(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),No=m.styled(qe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Re={};let Ne=!1;const ye=a.forwardRef(function(o,r){const l=m.useDefaultProps({props:o,name:"MuiTabs"}),i=po.useTheme(),p=Oe.useRtl(),{"aria-label":u,"aria-labelledby":f,action:y,centered:P=!1,children:S,className:h,component:v="div",allowScrollButtonsMobile:x=!1,indicatorColor:k="primary",onChange:E,orientation:C="horizontal",ScrollButtonComponent:L=Ae,scrollButtons:M="auto",selectionFollowsFocus:re,slots:U={},slotProps:F={},TabIndicatorProps:A={},TabScrollButtonProps:D={},textColor:Y="primary",value:O,variant:R="standard",visibleScrollbar:ne=!1,...Ke}=l,w=R==="scrollable",B=C==="vertical",V=B?"scrollTop":"scrollLeft",K=B?"top":"left",G=B?"bottom":"right",se=B?"clientHeight":"clientWidth",H=B?"height":"width",W={...l,component:v,allowScrollButtonsMobile:x,indicatorColor:k,orientation:C,vertical:B,scrollButtons:M,textColor:Y,variant:R,visibleScrollbar:ne,fixed:!w,hideScrollbar:w&&!ne,scrollableX:w&&!B,scrollableY:w&&B,centered:P&&!w,scrollButtonsHideMobile:!x},j=Bo(W),Ge=te.useSlotProps({elementType:U.StartScrollButtonIcon,externalSlotProps:F.startScrollButtonIcon,ownerState:W}),Je=te.useSlotProps({elementType:U.EndScrollButtonIcon,externalSlotProps:F.endScrollButtonIcon,ownerState:W});process.env.NODE_ENV!=="production"&&P&&w&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[Te,Qe]=a.useState(!1),[$,he]=a.useState(Re),[Pe,Ze]=a.useState(!1),[ve,eo]=a.useState(!1),[me,oo]=a.useState(!1),[Se,to]=a.useState({overflow:"hidden",scrollbarWidth:0}),J=new Map,N=a.useRef(null),z=a.useRef(null),ge=()=>{const n=N.current;let s;if(n){const d=n.getBoundingClientRect();s={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollWidth:n.scrollWidth,top:d.top,bottom:d.bottom,left:d.left,right:d.right}}let c;if(n&&O!==!1){const d=z.current.children;if(d.length>0){const b=d[J.get(O)];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 "${O}".`,J.keys?`You can provide one of the following values: ${Array.from(J.keys()).join(", ")}.`:null].join(`
|
|
2
|
-
`))),c=b?b.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!Ne&&c&&c.width===0&&c.height===0&&s.clientWidth!==0&&(s=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${O}") 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(`
|
|
3
|
-
`)),Ne=!0)}}return{tabsMeta:s,tabMeta:c}},_=ce.useEventCallback(()=>{const{tabsMeta:n,tabMeta:s}=ge();let c=0,d;B?(d="top",s&&n&&(c=s.top-n.top+n.scrollTop)):(d=p?"right":"left",s&&n&&(c=(p?-1:1)*(s[d]-n[d]+n.scrollLeft)));const b={[d]:c,[H]:s?s[H]:0};if(typeof $[d]!="number"||typeof $[H]!="number")he(b);else{const I=Math.abs($[d]-b[d]),q=Math.abs($[H]-b[H]);(I>=1||q>=1)&&he(b)}}),le=(n,{animation:s=!0}={})=>{s?mo(V,N.current,n,{duration:i.transitions.duration.standard}):N.current[V]=n},xe=n=>{let s=N.current[V];B?s+=n:s+=n*(p?-1:1),le(s)},Ce=()=>{const n=N.current[se];let s=0;const c=Array.from(z.current.children);for(let d=0;d<c.length;d+=1){const b=c[d];if(s+b[se]>n){d===0&&(s=n);break}s+=b[se]}return s},ro=()=>{xe(-1*Ce())},no=()=>{xe(Ce())},so=a.useCallback(n=>{to({overflow:null,scrollbarWidth:n})},[]),lo=()=>{const n={};n.scrollbarSizeListener=w?T.jsx(No,{onChange:so,className:e.clsx(j.scrollableX,j.hideScrollbar)}):null;const c=w&&(M==="auto"&&(Pe||ve)||M===!0);return n.scrollButtonStart=c?T.jsx(L,{slots:{StartScrollButtonIcon:U.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ge},orientation:C,direction:p?"right":"left",onClick:ro,disabled:!Pe,...D,className:e.clsx(j.scrollButtons,D.className)}):null,n.scrollButtonEnd=c?T.jsx(L,{slots:{EndScrollButtonIcon:U.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Je},orientation:C,direction:p?"left":"right",onClick:no,disabled:!ve,...D,className:e.clsx(j.scrollButtons,D.className)}):null,n},we=ce.useEventCallback(n=>{const{tabsMeta:s,tabMeta:c}=ge();if(!(!c||!s)){if(c[K]<s[K]){const d=s[V]+(c[K]-s[K]);le(d,{animation:n})}else if(c[G]>s[G]){const d=s[V]+(c[G]-s[G]);le(d,{animation:n})}}}),Q=ce.useEventCallback(()=>{w&&M!==!1&&oo(!me)});a.useEffect(()=>{const n=je.debounce(()=>{N.current&&_()});let s;const c=I=>{I.forEach(q=>{q.removedNodes.forEach(X=>{s==null||s.unobserve(X)}),q.addedNodes.forEach(X=>{s==null||s.observe(X)})}),n(),Q()},d=ke.ownerWindow(N.current);d.addEventListener("resize",n);let b;return typeof ResizeObserver<"u"&&(s=new ResizeObserver(n),Array.from(z.current.children).forEach(I=>{s.observe(I)})),typeof MutationObserver<"u"&&(b=new MutationObserver(c),b.observe(z.current,{childList:!0})),()=>{n.clear(),d.removeEventListener("resize",n),b==null||b.disconnect(),s==null||s.disconnect()}},[_,Q]),a.useEffect(()=>{const n=Array.from(z.current.children),s=n.length;if(typeof IntersectionObserver<"u"&&s>0&&w&&M!==!1){const c=n[0],d=n[s-1],b={root:N.current,threshold:.99},I=ie=>{Ze(!ie[0].isIntersecting)},q=new IntersectionObserver(I,b);q.observe(c);const X=ie=>{eo(!ie[0].isIntersecting)},Ee=new IntersectionObserver(X,b);return Ee.observe(d),()=>{q.disconnect(),Ee.disconnect()}}},[w,M,me,S==null?void 0:S.length]),a.useEffect(()=>{Qe(!0)},[]),a.useEffect(()=>{_()}),a.useEffect(()=>{we(Re!==$)},[we,$]),a.useImperativeHandle(y,()=>({updateIndicator:_,updateScrollButtons:Q}),[_,Q]);const Be=T.jsx(Ro,{...A,className:e.clsx(j.indicator,A.className),ownerState:W,style:{...$,...A.style}});let Z=0;const ao=a.Children.map(S,n=>{if(!a.isValidElement(n))return null;process.env.NODE_ENV!=="production"&&e.reactIsExports.isFragment(n)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
4
|
-
`));const s=n.props.value===void 0?Z:n.props.value;J.set(s,Z);const c=s===O;return Z+=1,a.cloneElement(n,{fullWidth:R==="fullWidth",indicator:c&&!Te&&Be,selected:c,selectionFollowsFocus:re,onChange:E,textColor:Y,value:s,...Z===1&&O===!1&&!n.props.tabIndex?{tabIndex:0}:{}})}),io=n=>{const s=z.current,c=fo.ownerDocument(s).activeElement;if(c.getAttribute("role")!=="tab")return;let b=C==="horizontal"?"ArrowLeft":"ArrowUp",I=C==="horizontal"?"ArrowRight":"ArrowDown";switch(C==="horizontal"&&p&&(b="ArrowRight",I="ArrowLeft"),n.key){case b:n.preventDefault(),ee(s,c,Me);break;case I:n.preventDefault(),ee(s,c,Ie);break;case"Home":n.preventDefault(),ee(s,null,Ie);break;case"End":n.preventDefault(),ee(s,null,Me);break}},ae=lo();return T.jsxs(Eo,{className:e.clsx(j.root,h),ownerState:W,ref:r,as:v,...Ke,children:[ae.scrollButtonStart,ae.scrollbarSizeListener,T.jsxs(Io,{className:j.scroller,ownerState:W,style:{overflow:Se.overflow,[B?`margin${p?"Left":"Right"}`:"marginBottom"]:ne?void 0:-Se.scrollbarWidth},ref:N,children:[T.jsx(Mo,{"aria-label":u,"aria-labelledby":f,"aria-orientation":C==="vertical"?"vertical":null,className:j.flexContainer,ownerState:W,onKeyDown:io,ref:z,role:"tablist",children:ao}),Te&&Be]}),ae.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(ye.propTypes={action:bo.refType,allowScrollButtonsMobile:e.PropTypes.bool,"aria-label":e.PropTypes.string,"aria-labelledby":e.PropTypes.string,centered:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,indicatorColor:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary"]),e.PropTypes.string]),onChange:e.PropTypes.func,orientation:e.PropTypes.oneOf(["horizontal","vertical"]),ScrollButtonComponent:e.PropTypes.elementType,scrollButtons:e.PropTypes.oneOf(["auto",!1,!0]),selectionFollowsFocus:e.PropTypes.bool,slotProps:e.PropTypes.shape({endScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),startScrollButtonIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({EndScrollButtonIcon:e.PropTypes.elementType,StartScrollButtonIcon:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),TabIndicatorProps:e.PropTypes.object,TabScrollButtonProps:e.PropTypes.object,textColor:e.PropTypes.oneOf(["inherit","primary","secondary"]),value:e.PropTypes.any,variant:e.PropTypes.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:e.PropTypes.bool});const Ve=a.forwardRef(function(o,r){const{children:l,...i}=o,p=ue();if(p===null)throw new TypeError("No TabContext provided");const u=a.Children.map(l,f=>a.isValidElement(f)?a.cloneElement(f,{"aria-controls":fe(p,f.props.value),id:be(p,f.props.value)}):null);return T.jsx(ye,{...i,ref:r,value:p.value,children:u})});process.env.NODE_ENV!=="production"&&(Ve.propTypes={children:e.PropTypes.node});function He(t){return e.generateUtilityClass("MuiTabPanel",t)}const Oo=e.generateUtilityClasses("MuiTabPanel",["root","hidden"]),jo=t=>{const{classes:o,hidden:r}=t,l={root:["root",r&&"hidden"]};return m.composeClasses(l,He,o)},ko=m.styled("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(t,o)=>o.root})(({theme:t})=>({padding:t.spacing(3)})),_e=a.forwardRef(function(o,r){const l=yo.useThemeProps({props:o,name:"MuiTabPanel"}),{children:i,className:p,value:u,keepMounted:f=!1,...y}=l,P={...l},S=jo(P),h=ue();if(h===null)throw new TypeError("No TabContext provided");const v=fe(h,u),x=be(h,u);return T.jsx(ko,{"aria-labelledby":x,className:e.clsx(S.root,p),hidden:u!==h.value,id:v,ref:r,role:"tabpanel",ownerState:P,...y,children:(f||u===h.value)&&i})});process.env.NODE_ENV!=="production"&&(_e.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,keepMounted:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),value:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).isRequired});function Xe(t){return e.generateUtilityClass("MuiTab",t)}const g=e.generateUtilityClasses("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Do=t=>{const{classes:o,textColor:r,fullWidth:l,wrapped:i,icon:p,label:u,selected:f,disabled:y}=t,P={root:["root",p&&u&&"labelIcon",`textColor${$e.capitalize(r)}`,l&&"fullWidth",i&&"wrapped",f&&"selected",y&&"disabled"],icon:["iconWrapper","icon"]};return m.composeClasses(P,Xe,o)},Wo=m.styled(We.ButtonBase,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,r.label&&r.icon&&o.labelIcon,o[`textColor${$e.capitalize(r.textColor)}`],r.fullWidth&&o.fullWidth,r.wrapped&&o.wrapped,{[`& .${g.iconWrapper}`]:o.iconWrapper},{[`& .${g.icon}`]:o.icon}]}})(pe.memoTheme(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:r})=>o.icon&&o.label&&r==="top",style:{[`& > .${g.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:r})=>o.icon&&o.label&&r==="bottom",style:{[`& > .${g.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:r})=>o.icon&&o.label&&r==="start",style:{[`& > .${g.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:r})=>o.icon&&o.label&&r==="end",style:{[`& > .${g.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${g.selected}`]:{opacity:1},[`&.${g.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${g.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${g.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${g.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${g.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),Ye=a.forwardRef(function(o,r){const l=m.useDefaultProps({props:o,name:"MuiTab"}),{className:i,disabled:p=!1,disableFocusRipple:u=!1,fullWidth:f,icon:y,iconPosition:P="top",indicator:S,label:h,onChange:v,onClick:x,onFocus:k,selected:E,selectionFollowsFocus:C,textColor:L="inherit",value:M,wrapped:re=!1,...U}=l,F={...l,disabled:p,disableFocusRipple:u,selected:E,icon:!!y,iconPosition:P,label:!!h,fullWidth:f,textColor:L,wrapped:re},A=Do(F),D=y&&h&&a.isValidElement(y)?a.cloneElement(y,{className:e.clsx(A.icon,y.props.className)}):y,Y=R=>{!E&&v&&v(R,M),x&&x(R)},O=R=>{C&&!E&&v&&v(R,M),k&&k(R)};return T.jsxs(Wo,{focusRipple:!u,className:e.clsx(A.root,i),ref:r,role:"tab","aria-selected":E,disabled:p,onClick:Y,onFocus:O,ownerState:F,tabIndex:E?0:-1,...U,children:[P==="top"||P==="start"?T.jsxs(a.Fragment,{children:[D,h]}):T.jsxs(a.Fragment,{children:[h,D]}),S]})});process.env.NODE_ENV!=="production"&&(Ye.propTypes={children:To.unsupportedProp,classes:e.PropTypes.object,className:e.PropTypes.string,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,icon:e.PropTypes.oneOfType([e.PropTypes.element,e.PropTypes.string]),iconPosition:e.PropTypes.oneOf(["bottom","end","start","top"]),label:e.PropTypes.node,onChange:e.PropTypes.func,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),value:e.PropTypes.any,wrapped:e.PropTypes.bool});exports.KeyboardArrowLeft=Le;exports.KeyboardArrowRight=Ue;exports.Tab=Ye;exports.TabContext=ze;exports.TabList=Ve;exports.TabPanel=_e;exports.Tabs=ye;exports.getPanelId=fe;exports.getTabId=be;exports.getTabPanelUtilityClass=He;exports.getTabUtilityClass=Xe;exports.getTabsUtilityClass=Fe;exports.tabClasses=g;exports.tabPanelClasses=Oo;exports.tabsClasses=oe;exports.useTabContext=ue;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const be=require("react"),e=require("./generateUtilityClasses-q4qbJjmd.cjs"),x=require("./useSlot-CSTfsYPJ.cjs"),a=require("react/jsx-runtime"),T=require("./DefaultPropsProvider-B6DqRWnX.cjs"),xe=require("./useId-DNXtOFeX.cjs"),g=require("./Select-CUlunaOr.cjs"),ge=require("./formControlState-CuX6WjAX.cjs"),he=require("./useFormControl-haP0iPhl.cjs"),Fe=require("./memoTheme-BhhxAcUJ.cjs"),B=require("./capitalize-CToVceBw.cjs"),ve=require("./FormLabel-D4O160ND.cjs"),Oe=require("./refType-DDdajp2p.cjs");function Ce(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,t.get?t:{enumerable:!0,get:()=>o[s]})}}return r.default=o,Object.freeze(r)}const W=Ce(be);function k(o){return e.generateUtilityClass("MuiFormHelperText",o)}const z=e.generateUtilityClasses("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var V;const Se=o=>{const{classes:r,contained:s,size:t,disabled:u,error:c,filled:n,focused:h,required:y}=o,F={root:["root",u&&"disabled",c&&"error",t&&`size${B.capitalize(t)}`,s&&"contained",h&&"focused",n&&"filled",y&&"required"]};return T.composeClasses(F,k,r)},je=T.styled("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[r.root,s.size&&r[`size${B.capitalize(s.size)}`],s.contained&&r.contained,s.filled&&r.filled]}})(Fe.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,...o.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${z.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${z.error}`]:{color:(o.vars||o).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),L=W.forwardRef(function(r,s){const t=T.useDefaultProps({props:r,name:"MuiFormHelperText"}),{children:u,className:c,component:n="p",disabled:h,error:y,filled:F,focused:S,margin:j,required:N,variant:v,...P}=t,I=he.useFormControl(),p=ge.formControlState({props:t,muiFormControl:I,states:["variant","size","disabled","error","filled","focused","required"]}),f={...t,component:n,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required};delete f.ownerState;const q=Se(f);return a.jsx(je,{as:n,className:e.clsx(q.root,c),ref:s,...P,ownerState:f,children:u===" "?V||(V=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):u})});process.env.NODE_ENV!=="production"&&(L.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disabled:e.PropTypes.bool,error:e.PropTypes.bool,filled:e.PropTypes.bool,focused:e.PropTypes.bool,margin:e.PropTypes.oneOf(["dense"]),required:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["filled","outlined","standard"]),e.PropTypes.string])});function A(o){return e.generateUtilityClass("MuiTextField",o)}const Ie=e.generateUtilityClasses("MuiTextField",["root"]),qe={standard:g.Input,filled:g.FilledInput,outlined:g.OutlinedInput},we=o=>{const{classes:r}=o,s={root:["root"]};return T.composeClasses(s,A,r)},He=T.styled(ve.FormControl,{name:"MuiTextField",slot:"Root",overridesResolver:(o,r)=>r.root})({}),G=W.forwardRef(function(r,s){const t=T.useDefaultProps({props:r,name:"MuiTextField"}),{autoComplete:u,autoFocus:c=!1,children:n,className:h,color:y="primary",defaultValue:F,disabled:S=!1,error:j=!1,FormHelperTextProps:N,fullWidth:v=!1,helperText:P,id:I,InputLabelProps:p,inputProps:f,InputProps:q,inputRef:J,label:m,maxRows:K,minRows:Q,multiline:U=!1,name:X,onBlur:Y,onChange:Z,onFocus:ee,placeholder:oe,required:M=!1,rows:re,select:O=!1,SelectProps:w,slots:D={},slotProps:se={},type:te,value:E,variant:C="outlined",...pe}=t,l={...t,autoFocus:c,color:y,disabled:S,error:j,fullWidth:v,multiline:U,required:M,select:O,variant:C},ne=we(l);process.env.NODE_ENV!=="production"&&O&&!n&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const i=xe.useId(I),H=P&&i?`${i}-helper-text`:void 0,_=m&&i?`${i}-label`:void 0,le=qe[C],d={slots:D,slotProps:{input:q,inputLabel:p,htmlInput:f,formHelperText:N,select:w,...se}},b={},R=d.slotProps.inputLabel;C==="outlined"&&(R&&typeof R.shrink<"u"&&(b.notched=R.shrink),b.label=m),O&&((!w||!w.native)&&(b.id=void 0),b["aria-describedby"]=void 0);const[ie,ae]=x.useSlot("input",{elementType:le,externalForwardedProps:d,additionalProps:b,ownerState:l}),[ue,ce]=x.useSlot("inputLabel",{elementType:g.InputLabel,externalForwardedProps:d,ownerState:l}),[de,Te]=x.useSlot("htmlInput",{elementType:"input",externalForwardedProps:d,ownerState:l}),[ye,Pe]=x.useSlot("formHelperText",{elementType:L,externalForwardedProps:d,ownerState:l}),[fe,me]=x.useSlot("select",{elementType:g.Select,externalForwardedProps:d,ownerState:l}),$=a.jsx(ie,{"aria-describedby":H,autoComplete:u,autoFocus:c,defaultValue:F,fullWidth:v,multiline:U,name:X,rows:re,maxRows:K,minRows:Q,type:te,value:E,id:i,inputRef:J,onBlur:Y,onChange:Z,onFocus:ee,placeholder:oe,inputProps:Te,slots:{input:D.htmlInput?de:void 0},...ae});return a.jsxs(He,{className:e.clsx(ne.root,h),disabled:S,error:j,fullWidth:v,ref:s,required:M,color:y,variant:C,ownerState:l,...pe,children:[m!=null&&m!==""&&a.jsx(ue,{htmlFor:i,id:_,...ce,children:m}),O?a.jsx(fe,{"aria-describedby":H,id:i,labelId:_,value:E,input:$,...me,children:n}):$,P&&a.jsx(ye,{id:H,...Pe,children:P})]})});process.env.NODE_ENV!=="production"&&(G.propTypes={autoComplete:e.PropTypes.string,autoFocus:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),defaultValue:e.PropTypes.any,disabled:e.PropTypes.bool,error:e.PropTypes.bool,FormHelperTextProps:e.PropTypes.object,fullWidth:e.PropTypes.bool,helperText:e.PropTypes.node,id:e.PropTypes.string,InputLabelProps:e.PropTypes.object,inputProps:e.PropTypes.object,InputProps:e.PropTypes.object,inputRef:Oe.refType,label:e.PropTypes.node,margin:e.PropTypes.oneOf(["dense","none","normal"]),maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),multiline:e.PropTypes.bool,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,placeholder:e.PropTypes.string,required:e.PropTypes.bool,rows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),select:e.PropTypes.bool,SelectProps:e.PropTypes.object,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({formHelperText:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),htmlInput:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),input:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),inputLabel:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),select:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({formHelperText:e.PropTypes.elementType,htmlInput:e.PropTypes.elementType,input:e.PropTypes.elementType,inputLabel:e.PropTypes.elementType,select:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),type:e.PropTypes.string,value:e.PropTypes.any,variant:e.PropTypes.oneOf(["filled","outlined","standard"])});exports.FormHelperText=L;exports.TextField=G;exports.formHelperTextClasses=z;exports.getFormHelperTextUtilityClasses=k;exports.getTextFieldUtilityClass=A;exports.textFieldClasses=Ie;
|