@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,43 +1,45 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as P from "react";
|
|
2
|
+
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
+
import { F as R, G as j, H as M, n as S, s as N, q as D } from "./generateUtilityClasses-DngCqveO.js";
|
|
4
|
+
import { c as I } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
5
|
+
import { S as U } from "./SwitchBase-EDFBMPd7.js";
|
|
6
|
+
import { m as d } from "./memoTheme-nmt7i1dS.js";
|
|
7
|
+
import { u as y } from "./useSlot-BDb1lvxu.js";
|
|
8
|
+
import { jsx as v, jsxs as E } from "react/jsx-runtime";
|
|
9
|
+
import { u as F, s as u, c as q } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
10
|
+
import { c as n } from "./capitalize-BHFotl9B.js";
|
|
11
|
+
import { r as A } from "./refType-Dp7CJc86.js";
|
|
12
|
+
function V(t) {
|
|
13
|
+
return j("MuiSwitch", t);
|
|
12
14
|
}
|
|
13
|
-
const
|
|
15
|
+
const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), X = (t) => {
|
|
14
16
|
const {
|
|
15
|
-
classes:
|
|
17
|
+
classes: o,
|
|
16
18
|
edge: s,
|
|
17
|
-
size:
|
|
18
|
-
color:
|
|
19
|
-
checked:
|
|
20
|
-
disabled:
|
|
21
|
-
} = t,
|
|
22
|
-
root: ["root", s && `edge${
|
|
23
|
-
switchBase: ["switchBase", `color${
|
|
19
|
+
size: p,
|
|
20
|
+
color: h,
|
|
21
|
+
checked: f,
|
|
22
|
+
disabled: b
|
|
23
|
+
} = t, m = {
|
|
24
|
+
root: ["root", s && `edge${n(s)}`, `size${n(p)}`],
|
|
25
|
+
switchBase: ["switchBase", `color${n(h)}`, f && "checked", b && "disabled"],
|
|
24
26
|
thumb: ["thumb"],
|
|
25
27
|
track: ["track"],
|
|
26
28
|
input: ["input"]
|
|
27
|
-
},
|
|
29
|
+
}, g = q(m, V, o);
|
|
28
30
|
return {
|
|
29
|
-
...
|
|
31
|
+
...o,
|
|
30
32
|
// forward the disabled and checked classes to the SwitchBase
|
|
31
|
-
...
|
|
33
|
+
...g
|
|
32
34
|
};
|
|
33
|
-
},
|
|
35
|
+
}, G = u("span", {
|
|
34
36
|
name: "MuiSwitch",
|
|
35
37
|
slot: "Root",
|
|
36
|
-
overridesResolver: (t,
|
|
38
|
+
overridesResolver: (t, o) => {
|
|
37
39
|
const {
|
|
38
40
|
ownerState: s
|
|
39
41
|
} = t;
|
|
40
|
-
return [
|
|
42
|
+
return [o.root, s.edge && o[`edge${n(s.edge)}`], o[`size${n(s.size)}`]];
|
|
41
43
|
}
|
|
42
44
|
})({
|
|
43
45
|
display: "inline-flex",
|
|
@@ -77,30 +79,30 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
77
79
|
width: 40,
|
|
78
80
|
height: 24,
|
|
79
81
|
padding: 7,
|
|
80
|
-
[`& .${
|
|
82
|
+
[`& .${a.thumb}`]: {
|
|
81
83
|
width: 16,
|
|
82
84
|
height: 16
|
|
83
85
|
},
|
|
84
|
-
[`& .${
|
|
86
|
+
[`& .${a.switchBase}`]: {
|
|
85
87
|
padding: 4,
|
|
86
|
-
[`&.${
|
|
88
|
+
[`&.${a.checked}`]: {
|
|
87
89
|
transform: "translateX(16px)"
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
}]
|
|
92
|
-
}),
|
|
94
|
+
}), H = u(U, {
|
|
93
95
|
name: "MuiSwitch",
|
|
94
96
|
slot: "SwitchBase",
|
|
95
|
-
overridesResolver: (t,
|
|
97
|
+
overridesResolver: (t, o) => {
|
|
96
98
|
const {
|
|
97
99
|
ownerState: s
|
|
98
100
|
} = t;
|
|
99
|
-
return [
|
|
100
|
-
[`& .${
|
|
101
|
-
}, s.color !== "default" &&
|
|
101
|
+
return [o.switchBase, {
|
|
102
|
+
[`& .${a.input}`]: o.input
|
|
103
|
+
}, s.color !== "default" && o[`color${n(s.color)}`]];
|
|
102
104
|
}
|
|
103
|
-
})(
|
|
105
|
+
})(d(({
|
|
104
106
|
theme: t
|
|
105
107
|
}) => ({
|
|
106
108
|
position: "absolute",
|
|
@@ -112,59 +114,59 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
112
114
|
transition: t.transitions.create(["left", "transform"], {
|
|
113
115
|
duration: t.transitions.duration.shortest
|
|
114
116
|
}),
|
|
115
|
-
[`&.${
|
|
117
|
+
[`&.${a.checked}`]: {
|
|
116
118
|
transform: "translateX(20px)"
|
|
117
119
|
},
|
|
118
|
-
[`&.${
|
|
120
|
+
[`&.${a.disabled}`]: {
|
|
119
121
|
color: t.vars ? t.vars.palette.Switch.defaultDisabledColor : `${t.palette.mode === "light" ? t.palette.grey[100] : t.palette.grey[600]}`
|
|
120
122
|
},
|
|
121
|
-
[`&.${
|
|
123
|
+
[`&.${a.checked} + .${a.track}`]: {
|
|
122
124
|
opacity: 0.5
|
|
123
125
|
},
|
|
124
|
-
[`&.${
|
|
126
|
+
[`&.${a.disabled} + .${a.track}`]: {
|
|
125
127
|
opacity: t.vars ? t.vars.opacity.switchTrackDisabled : `${t.palette.mode === "light" ? 0.12 : 0.2}`
|
|
126
128
|
},
|
|
127
|
-
[`& .${
|
|
129
|
+
[`& .${a.input}`]: {
|
|
128
130
|
left: "-100%",
|
|
129
131
|
width: "300%"
|
|
130
132
|
}
|
|
131
|
-
})),
|
|
133
|
+
})), d(({
|
|
132
134
|
theme: t
|
|
133
135
|
}) => ({
|
|
134
136
|
"&:hover": {
|
|
135
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})` :
|
|
137
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})` : S(t.palette.action.active, t.palette.action.hoverOpacity),
|
|
136
138
|
// Reset on touch devices, it doesn't add specificity
|
|
137
139
|
"@media (hover: none)": {
|
|
138
140
|
backgroundColor: "transparent"
|
|
139
141
|
}
|
|
140
142
|
},
|
|
141
|
-
variants: [...Object.entries(t.palette).filter(
|
|
143
|
+
variants: [...Object.entries(t.palette).filter(I(["light"])).map(([o]) => ({
|
|
142
144
|
props: {
|
|
143
|
-
color:
|
|
145
|
+
color: o
|
|
144
146
|
},
|
|
145
147
|
style: {
|
|
146
|
-
[`&.${
|
|
147
|
-
color: (t.vars || t).palette[
|
|
148
|
+
[`&.${a.checked}`]: {
|
|
149
|
+
color: (t.vars || t).palette[o].main,
|
|
148
150
|
"&:hover": {
|
|
149
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette[
|
|
151
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette[o].mainChannel} / ${t.vars.palette.action.hoverOpacity})` : S(t.palette[o].main, t.palette.action.hoverOpacity),
|
|
150
152
|
"@media (hover: none)": {
|
|
151
153
|
backgroundColor: "transparent"
|
|
152
154
|
}
|
|
153
155
|
},
|
|
154
|
-
[`&.${
|
|
155
|
-
color: t.vars ? t.vars.palette.Switch[`${
|
|
156
|
+
[`&.${a.disabled}`]: {
|
|
157
|
+
color: t.vars ? t.vars.palette.Switch[`${o}DisabledColor`] : `${t.palette.mode === "light" ? N(t.palette[o].main, 0.62) : D(t.palette[o].main, 0.55)}`
|
|
156
158
|
}
|
|
157
159
|
},
|
|
158
|
-
[`&.${
|
|
159
|
-
backgroundColor: (t.vars || t).palette[
|
|
160
|
+
[`&.${a.checked} + .${a.track}`]: {
|
|
161
|
+
backgroundColor: (t.vars || t).palette[o].main
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
164
|
}))]
|
|
163
|
-
}))),
|
|
165
|
+
}))), L = u("span", {
|
|
164
166
|
name: "MuiSwitch",
|
|
165
167
|
slot: "Track",
|
|
166
|
-
overridesResolver: (t,
|
|
167
|
-
})(
|
|
168
|
+
overridesResolver: (t, o) => o.track
|
|
169
|
+
})(d(({
|
|
168
170
|
theme: t
|
|
169
171
|
}) => ({
|
|
170
172
|
height: "100%",
|
|
@@ -176,11 +178,11 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
176
178
|
}),
|
|
177
179
|
backgroundColor: t.vars ? t.vars.palette.common.onBackground : `${t.palette.mode === "light" ? t.palette.common.black : t.palette.common.white}`,
|
|
178
180
|
opacity: t.vars ? t.vars.opacity.switchTrack : `${t.palette.mode === "light" ? 0.38 : 0.3}`
|
|
179
|
-
}))),
|
|
181
|
+
}))), _ = u("span", {
|
|
180
182
|
name: "MuiSwitch",
|
|
181
183
|
slot: "Thumb",
|
|
182
|
-
overridesResolver: (t,
|
|
183
|
-
})(
|
|
184
|
+
overridesResolver: (t, o) => o.thumb
|
|
185
|
+
})(d(({
|
|
184
186
|
theme: t
|
|
185
187
|
}) => ({
|
|
186
188
|
boxShadow: (t.vars || t).shadows[1],
|
|
@@ -188,48 +190,83 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
188
190
|
width: 20,
|
|
189
191
|
height: 20,
|
|
190
192
|
borderRadius: "50%"
|
|
191
|
-
}))),
|
|
192
|
-
const
|
|
193
|
-
props:
|
|
193
|
+
}))), J = /* @__PURE__ */ P.forwardRef(function(o, s) {
|
|
194
|
+
const p = F({
|
|
195
|
+
props: o,
|
|
194
196
|
name: "MuiSwitch"
|
|
195
197
|
}), {
|
|
196
|
-
className:
|
|
197
|
-
color:
|
|
198
|
-
edge:
|
|
199
|
-
size:
|
|
200
|
-
sx:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
198
|
+
className: h,
|
|
199
|
+
color: f = "primary",
|
|
200
|
+
edge: b = !1,
|
|
201
|
+
size: m = "medium",
|
|
202
|
+
sx: g,
|
|
203
|
+
slots: c = {},
|
|
204
|
+
slotProps: r = {},
|
|
205
|
+
...$
|
|
206
|
+
} = p, i = {
|
|
207
|
+
...p,
|
|
208
|
+
color: f,
|
|
209
|
+
edge: b,
|
|
210
|
+
size: m
|
|
211
|
+
}, l = X(i), w = {
|
|
212
|
+
slots: c,
|
|
213
|
+
slotProps: r
|
|
214
|
+
}, [T, C] = y("root", {
|
|
215
|
+
className: M(l.root, h),
|
|
216
|
+
elementType: G,
|
|
217
|
+
externalForwardedProps: w,
|
|
218
|
+
ownerState: i,
|
|
219
|
+
additionalProps: {
|
|
220
|
+
sx: g
|
|
221
|
+
}
|
|
222
|
+
}), [x, O] = y("thumb", {
|
|
223
|
+
className: l.thumb,
|
|
224
|
+
elementType: _,
|
|
225
|
+
externalForwardedProps: w,
|
|
226
|
+
ownerState: i
|
|
227
|
+
}), k = /* @__PURE__ */ v(x, {
|
|
228
|
+
...O
|
|
229
|
+
}), [B, z] = y("track", {
|
|
230
|
+
className: l.track,
|
|
231
|
+
elementType: L,
|
|
232
|
+
externalForwardedProps: w,
|
|
209
233
|
ownerState: i
|
|
210
234
|
});
|
|
211
|
-
return /* @__PURE__ */ T
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
ownerState: i,
|
|
215
|
-
children: [/* @__PURE__ */ w(P, {
|
|
235
|
+
return /* @__PURE__ */ E(T, {
|
|
236
|
+
...C,
|
|
237
|
+
children: [/* @__PURE__ */ v(H, {
|
|
216
238
|
type: "checkbox",
|
|
217
|
-
icon:
|
|
218
|
-
checkedIcon:
|
|
239
|
+
icon: k,
|
|
240
|
+
checkedIcon: k,
|
|
219
241
|
ref: s,
|
|
220
242
|
ownerState: i,
|
|
221
|
-
|
|
243
|
+
...$,
|
|
222
244
|
classes: {
|
|
223
|
-
...
|
|
224
|
-
root:
|
|
245
|
+
...l,
|
|
246
|
+
root: l.switchBase
|
|
247
|
+
},
|
|
248
|
+
slots: {
|
|
249
|
+
...c.switchBase && {
|
|
250
|
+
root: c.switchBase
|
|
251
|
+
},
|
|
252
|
+
...c.input && {
|
|
253
|
+
input: c.input
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
slotProps: {
|
|
257
|
+
...r.switchBase && {
|
|
258
|
+
root: typeof r.switchBase == "function" ? r.switchBase(i) : r.switchBase
|
|
259
|
+
},
|
|
260
|
+
...r.input && {
|
|
261
|
+
input: typeof r.input == "function" ? r.input(i) : r.input
|
|
262
|
+
}
|
|
225
263
|
}
|
|
226
|
-
}), /* @__PURE__ */
|
|
227
|
-
|
|
228
|
-
ownerState: i
|
|
264
|
+
}), /* @__PURE__ */ v(B, {
|
|
265
|
+
...z
|
|
229
266
|
})]
|
|
230
267
|
});
|
|
231
268
|
});
|
|
232
|
-
process.env.NODE_ENV !== "production" && (
|
|
269
|
+
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
233
270
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
234
271
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
235
272
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -237,39 +274,39 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
237
274
|
/**
|
|
238
275
|
* If `true`, the component is checked.
|
|
239
276
|
*/
|
|
240
|
-
checked:
|
|
277
|
+
checked: e.bool,
|
|
241
278
|
/**
|
|
242
279
|
* The icon to display when the component is checked.
|
|
243
280
|
*/
|
|
244
|
-
checkedIcon:
|
|
281
|
+
checkedIcon: e.node,
|
|
245
282
|
/**
|
|
246
283
|
* Override or extend the styles applied to the component.
|
|
247
284
|
*/
|
|
248
|
-
classes:
|
|
285
|
+
classes: e.object,
|
|
249
286
|
/**
|
|
250
287
|
* @ignore
|
|
251
288
|
*/
|
|
252
|
-
className:
|
|
289
|
+
className: e.string,
|
|
253
290
|
/**
|
|
254
291
|
* The color of the component.
|
|
255
292
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
256
293
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
257
294
|
* @default 'primary'
|
|
258
295
|
*/
|
|
259
|
-
color:
|
|
296
|
+
color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
260
297
|
/**
|
|
261
298
|
* The default checked state. Use when the component is not controlled.
|
|
262
299
|
*/
|
|
263
|
-
defaultChecked:
|
|
300
|
+
defaultChecked: e.bool,
|
|
264
301
|
/**
|
|
265
302
|
* If `true`, the component is disabled.
|
|
266
303
|
*/
|
|
267
|
-
disabled:
|
|
304
|
+
disabled: e.bool,
|
|
268
305
|
/**
|
|
269
306
|
* If `true`, the ripple effect is disabled.
|
|
270
307
|
* @default false
|
|
271
308
|
*/
|
|
272
|
-
disableRipple:
|
|
309
|
+
disableRipple: e.bool,
|
|
273
310
|
/**
|
|
274
311
|
* If given, uses a negative margin to counteract the padding on one
|
|
275
312
|
* side (this is often helpful for aligning the left or right
|
|
@@ -277,23 +314,25 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
277
314
|
* size and shape).
|
|
278
315
|
* @default false
|
|
279
316
|
*/
|
|
280
|
-
edge:
|
|
317
|
+
edge: e.oneOf(["end", "start", !1]),
|
|
281
318
|
/**
|
|
282
319
|
* The icon to display when the component is unchecked.
|
|
283
320
|
*/
|
|
284
|
-
icon:
|
|
321
|
+
icon: e.node,
|
|
285
322
|
/**
|
|
286
323
|
* The id of the `input` element.
|
|
287
324
|
*/
|
|
288
|
-
id:
|
|
325
|
+
id: e.string,
|
|
289
326
|
/**
|
|
290
327
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
328
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
291
329
|
*/
|
|
292
|
-
inputProps:
|
|
330
|
+
inputProps: e.object,
|
|
293
331
|
/**
|
|
294
332
|
* Pass a ref to the `input` element.
|
|
333
|
+
* @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
295
334
|
*/
|
|
296
|
-
inputRef:
|
|
335
|
+
inputRef: A,
|
|
297
336
|
/**
|
|
298
337
|
* Callback fired when the state is changed.
|
|
299
338
|
*
|
|
@@ -301,30 +340,52 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
301
340
|
* You can pull out the new value by accessing `event.target.value` (string).
|
|
302
341
|
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
303
342
|
*/
|
|
304
|
-
onChange:
|
|
343
|
+
onChange: e.func,
|
|
305
344
|
/**
|
|
306
345
|
* If `true`, the `input` element is required.
|
|
307
346
|
* @default false
|
|
308
347
|
*/
|
|
309
|
-
required:
|
|
348
|
+
required: e.bool,
|
|
310
349
|
/**
|
|
311
350
|
* The size of the component.
|
|
312
351
|
* `small` is equivalent to the dense switch styling.
|
|
313
352
|
* @default 'medium'
|
|
314
353
|
*/
|
|
315
|
-
size:
|
|
354
|
+
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
355
|
+
/**
|
|
356
|
+
* The props used for each slot inside.
|
|
357
|
+
* @default {}
|
|
358
|
+
*/
|
|
359
|
+
slotProps: e.shape({
|
|
360
|
+
input: e.oneOfType([e.func, e.object]),
|
|
361
|
+
root: e.oneOfType([e.func, e.object]),
|
|
362
|
+
switchBase: e.oneOfType([e.func, e.object]),
|
|
363
|
+
thumb: e.oneOfType([e.func, e.object]),
|
|
364
|
+
track: e.oneOfType([e.func, e.object])
|
|
365
|
+
}),
|
|
366
|
+
/**
|
|
367
|
+
* The components used for each slot inside.
|
|
368
|
+
* @default {}
|
|
369
|
+
*/
|
|
370
|
+
slots: e.shape({
|
|
371
|
+
input: e.elementType,
|
|
372
|
+
root: e.elementType,
|
|
373
|
+
switchBase: e.elementType,
|
|
374
|
+
thumb: e.elementType,
|
|
375
|
+
track: e.elementType
|
|
376
|
+
}),
|
|
316
377
|
/**
|
|
317
378
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
318
379
|
*/
|
|
319
|
-
sx:
|
|
380
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
320
381
|
/**
|
|
321
382
|
* The value of the component. The DOM API casts this to a string.
|
|
322
383
|
* The browser uses "on" as the default value.
|
|
323
384
|
*/
|
|
324
|
-
value:
|
|
385
|
+
value: e.any
|
|
325
386
|
});
|
|
326
387
|
export {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
388
|
+
J as S,
|
|
389
|
+
V as g,
|
|
390
|
+
a as s
|
|
330
391
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const R=require("react"),t=require("./index-DLnSn8GT.cjs"),n=require("./generateUtilityClasses-CMlilM6r.cjs"),q=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),M=require("./SwitchBase-DvCITKv8.cjs"),T=require("./memoTheme-BAbn60Cb.cjs"),m=require("./useSlot-W0PiuVaZ.cjs"),y=require("react/jsx-runtime"),l=require("./DefaultPropsProvider-B1crdkTC.cjs"),c=require("./capitalize-CKLkSyDO.cjs"),D=require("./refType-B_IEJm4x.cjs");function N(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,i.get?i:{enumerable:!0,get:()=>e[s]})}}return o.default=e,Object.freeze(o)}const U=N(R);function S(e){return n.generateUtilityClass("MuiSwitch",e)}const r=n.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),I=e=>{const{classes:o,edge:s,size:i,color:h,checked:P,disabled:b}=e,f={root:["root",s&&`edge${c.capitalize(s)}`,`size${c.capitalize(i)}`],switchBase:["switchBase",`color${c.capitalize(h)}`,P&&"checked",b&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},g=l.composeClasses(f,S,o);return{...o,...g}},_=l.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.root,s.edge&&o[`edge${c.capitalize(s.edge)}`],o[`size${c.capitalize(s.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${r.thumb}`]:{width:16,height:16},[`& .${r.switchBase}`]:{padding:4,[`&.${r.checked}`]:{transform:"translateX(16px)"}}}}]}),E=l.styled(M.SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.switchBase,{[`& .${r.input}`]:o.input},s.color!=="default"&&o[`color${c.capitalize(s.color)}`]]}})(T.memoTheme(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${r.checked}`]:{transform:"translateX(20px)"},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${r.checked} + .${r.track}`]:{opacity:.5},[`&.${r.disabled} + .${r.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${r.input}`]:{left:"-100%",width:"300%"}})),T.memoTheme(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:n.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(q.createSimplePaletteValueFilter(["light"])).map(([o])=>({props:{color:o},style:{[`&.${r.checked}`]:{color:(e.vars||e).palette[o].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:n.alpha(e.palette[o].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${o}DisabledColor`]:`${e.palette.mode==="light"?n.lighten(e.palette[o].main,.62):n.darken(e.palette[o].main,.55)}`}},[`&.${r.checked} + .${r.track}`]:{backgroundColor:(e.vars||e).palette[o].main}}}))]}))),F=l.styled("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,o)=>o.track})(T.memoTheme(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),V=l.styled("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,o)=>o.thumb})(T.memoTheme(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),k=U.forwardRef(function(o,s){const i=l.useDefaultProps({props:o,name:"MuiSwitch"}),{className:h,color:P="primary",edge:b=!1,size:f="medium",sx:g,slots:d={},slotProps:a={},...$}=i,p={...i,color:P,edge:b,size:f},u=I(p),w={slots:d,slotProps:a},[C,O]=m.useSlot("root",{className:n.clsx(u.root,h),elementType:_,externalForwardedProps:w,ownerState:p,additionalProps:{sx:g}}),[x,z]=m.useSlot("thumb",{className:u.thumb,elementType:V,externalForwardedProps:w,ownerState:p}),v=y.jsx(x,{...z}),[j,B]=m.useSlot("track",{className:u.track,elementType:F,externalForwardedProps:w,ownerState:p});return y.jsxs(C,{...O,children:[y.jsx(E,{type:"checkbox",icon:v,checkedIcon:v,ref:s,ownerState:p,...$,classes:{...u,root:u.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...a.switchBase&&{root:typeof a.switchBase=="function"?a.switchBase(p):a.switchBase},...a.input&&{input:typeof a.input=="function"?a.input(p):a.input}}}),y.jsx(j,{...B})]})});process.env.NODE_ENV!=="production"&&(k.propTypes={checked:t.PropTypes.bool,checkedIcon:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOfType([t.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),t.PropTypes.string]),defaultChecked:t.PropTypes.bool,disabled:t.PropTypes.bool,disableRipple:t.PropTypes.bool,edge:t.PropTypes.oneOf(["end","start",!1]),icon:t.PropTypes.node,id:t.PropTypes.string,inputProps:t.PropTypes.object,inputRef:D.refType,onChange:t.PropTypes.func,required:t.PropTypes.bool,size:t.PropTypes.oneOfType([t.PropTypes.oneOf(["medium","small"]),t.PropTypes.string]),slotProps:t.PropTypes.shape({input:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),switchBase:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),thumb:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),track:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),slots:t.PropTypes.shape({input:t.PropTypes.elementType,root:t.PropTypes.elementType,switchBase:t.PropTypes.elementType,thumb:t.PropTypes.elementType,track:t.PropTypes.elementType}),sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),value:t.PropTypes.any});exports.Switch=k;exports.getSwitchUtilityClass=S;exports.switchClasses=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const W=require("react"),e=require("./index-DLnSn8GT.cjs"),d=require("./DefaultPropsProvider-B1crdkTC.cjs"),X=require("./useFormControl-haP0iPhl.cjs"),w=require("./generateUtilityClasses-CMlilM6r.cjs"),F=require("./useSlot-W0PiuVaZ.cjs"),k=require("react/jsx-runtime"),Y=require("./useControlled-Ysk4KqoX.cjs"),Z=require("./capitalize-CKLkSyDO.cjs"),ee=require("./ButtonBase-Cteo-mSC.cjs"),oe=require("./refType-B_IEJm4x.cjs");function te(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,c.get?c:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const se=te(W);function re(t){return w.generateUtilityClass("PrivateSwitchBase",t)}w.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ne=t=>{const{classes:s,checked:n,disabled:c,edge:a}=t,y={root:["root",n&&"checked",c&&"disabled",a&&`edge${Z.capitalize(a)}`],input:["input"]};return d.composeClasses(y,re,s)},pe=d.styled(ee.ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:s})=>t==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:s})=>t==="end"&&s.size!=="small",style:{marginRight:-12}}]}),ie=d.styled("input",{shouldForwardProp:d.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),R=se.forwardRef(function(s,n){const{autoFocus:c,checked:a,checkedIcon:y,defaultChecked:f,disabled:q,disableFocusRipple:T=!1,edge:x=!1,icon:j,id:O,inputProps:I,inputRef:z,name:N,onBlur:g,onChange:b,onFocus:h,readOnly:v,required:U=!1,tabIndex:D,type:u,value:m,slots:E={},slotProps:_={},...L}=s,[S,M]=Y.useControlled({controlled:a,default:!!f,name:"SwitchBase",state:"checked"}),p=X.useFormControl(),V=o=>{h&&h(o),p&&p.onFocus&&p.onFocus(o)},$=o=>{g&&g(o),p&&p.onBlur&&p.onBlur(o)},A=o=>{if(o.nativeEvent.defaultPrevented)return;const r=o.target.checked;M(r),b&&b(o,r)};let l=q;p&&typeof l>"u"&&(l=p.disabled);const G=u==="checkbox"||u==="radio",P={...s,checked:S,disabled:l,disableFocusRipple:T,edge:x},B=ne(P),C={slots:E,slotProps:{input:I,..._}},[H,J]=F.useSlot("root",{ref:n,elementType:pe,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...C,component:"span",...L},getSlotProps:o=>({...o,onFocus:r=>{var i;(i=o.onFocus)==null||i.call(o,r),V(r)},onBlur:r=>{var i;(i=o.onBlur)==null||i.call(o,r),$(r)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!T,disabled:l,role:void 0,tabIndex:null}}),[K,Q]=F.useSlot("input",{ref:z,elementType:ie,className:B.input,externalForwardedProps:C,getSlotProps:o=>({...o,onChange:r=>{var i;(i=o.onChange)==null||i.call(o,r),A(r)}}),ownerState:P,additionalProps:{autoFocus:c,checked:a,defaultChecked:f,disabled:l,id:G?O:void 0,name:N,readOnly:v,required:U,tabIndex:D,type:u,...u==="checkbox"&&m===void 0?{}:{value:m}}});return k.jsxs(H,{...J,children:[k.jsx(K,{...Q}),S?y:j]})});process.env.NODE_ENV!=="production"&&(R.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:oe.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,slotProps:e.PropTypes.shape({input:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),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=R;
|