@cgi-learning-hub/ui 1.5.0 → 1.5.1-dev.1744639457
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-5zQ9TB22.cjs +1 -0
- package/dist/{Alert-D7eKsj1P.js → Alert-CDbAJ9jP.js} +27 -28
- package/dist/Autocomplete-2DWwLqO5.cjs +6 -0
- package/dist/{Autocomplete-Cfz4sLy8.js → Autocomplete-DO8kdiDn.js} +704 -665
- package/dist/Backdrop-Be5Hv5U8.cjs +1 -0
- package/dist/{Backdrop-COiz4sPF.js → Backdrop-CRrNkGxU.js} +18 -18
- package/dist/{Box-C-j-U8SH.js → Box-2IEW8Uij.js} +12 -12
- package/dist/Box-Bl24J58B.cjs +1 -0
- package/dist/Button-CZTPCtLu.cjs +1 -0
- package/dist/{Button-CQQdMCSm.js → Button-DYWfAsGe.js} +114 -148
- package/dist/{ButtonBase-CZFKUUHD.js → ButtonBase-BZXGvriS.js} +24 -24
- package/dist/{ButtonBase-NqQjeQ4X.cjs → ButtonBase-DDgwUJIY.cjs} +1 -1
- package/dist/CardContent-CCMZ6TlJ.cjs +1 -0
- package/dist/{CardContent-sX9Bw4Ke.js → CardContent-oRdx06Ln.js} +5 -5
- package/dist/{Checkbox-1Zr36vDa.js → Checkbox-DMnS1qrF.js} +95 -68
- package/dist/Checkbox-Dsa-pj_7.cjs +1 -0
- package/dist/Chip-BJSNxQBQ.cjs +1 -0
- package/dist/{Chip-BsErraqe.js → Chip-CacnC2L1.js} +53 -54
- package/dist/CircularProgress-XGMwsxSL.cjs +28 -0
- package/dist/{CircularProgress-BBHGA0JX.js → CircularProgress-_VZwmayK.js} +28 -29
- package/dist/{Close-r-ZUhk0-.js → Close-CSvE0tu1.js} +1 -1
- package/dist/{Close-ZXg7X3Tz.cjs → Close-Czm0dlR9.cjs} +1 -1
- package/dist/{CloseRounded-CWmxueMc.cjs → CloseRounded-BkPBIz0q.cjs} +1 -1
- package/dist/{CloseRounded-B-eaQsyM.js → CloseRounded-CEX-NsA7.js} +1 -1
- package/dist/CustomTreeItem-CI47uzgL.cjs +3 -0
- package/dist/{CustomTreeItem-BpAK85gf.js → CustomTreeItem-DTV3xokL.js} +287 -289
- package/dist/{DatePicker-CWMXTgRG.js → DatePicker-C-toYUpc.js} +995 -1002
- package/dist/DatePicker-DbH5IN_w.cjs +13 -0
- package/dist/{DefaultPropsProvider-CXfMJdg8.js → DefaultPropsProvider-Bg-6nX-u.js} +53 -53
- package/dist/DefaultPropsProvider-DLSItMqn.cjs +1 -0
- package/dist/{Delete-CpTtpM4U.cjs → Delete-C0hR-twe.cjs} +1 -1
- package/dist/{Delete-DKn2lIDB.js → Delete-Pl5O0eBK.js} +1 -1
- package/dist/{Dialog-pU1ZAttp.js → Dialog-BGrQDZXr.js} +162 -169
- package/dist/Dialog-D1VJ5jXx.cjs +1 -0
- package/dist/DialogContent-DqdeAbSs.cjs +1 -0
- package/dist/{DialogContent-BEgapieO.js → DialogContent-ZiO3fkfO.js} +3 -3
- package/dist/DialogTitle-B3MlGamo.cjs +1 -0
- package/dist/{DialogTitle-Dcls3mcZ.js → DialogTitle-BiZ7zHp-.js} +7 -7
- package/dist/{Divider-CT4XaEn6.js → Divider-BDN4OyrO.js} +8 -8
- package/dist/Divider-I7KOokm8.cjs +1 -0
- package/dist/{Folder-DoEl37QZ.js → Folder-CF7SX2AD.js} +1 -1
- package/dist/{Folder-DWD_1Fux.cjs → Folder-ExV_xCn6.cjs} +1 -1
- package/dist/{FormLabel-BF6m-_uI.js → FormLabel-DNsUciXe.js} +24 -25
- package/dist/FormLabel-xZr5oZgx.cjs +2 -0
- package/dist/{Grow-Bk7XkPFP.js → Grow-CLBgYoz_.js} +5 -5
- package/dist/Grow-DrEdqZgX.cjs +1 -0
- package/dist/IconButton-C1I_233O.cjs +2 -0
- package/dist/{IconButton-BQW0xjdH.js → IconButton-CT0Plyy5.js} +26 -27
- package/dist/{InputAdornment-C6UfLaud.js → InputAdornment-Ci0BnJ_e.js} +10 -11
- package/dist/InputAdornment-_UPzajRP.cjs +1 -0
- package/dist/InputBase-C-ES3FPH.cjs +3 -0
- package/dist/{InputBase-YOnatBxw.js → InputBase-CJvM-WXJ.js} +261 -256
- package/dist/{Link-C3rf4gqc.js → Link-B6LNMjac.js} +15 -16
- package/dist/Link-BQrFDQ-K.cjs +1 -0
- package/dist/{List-CFInjv2S.js → List-22h7byk_.js} +2 -2
- package/dist/List-Bii833np.cjs +1 -0
- package/dist/{ListItem-BAAZxsu5.js → ListItem-B0syBgS7.js} +17 -17
- package/dist/ListItem-BtjE87R1.cjs +1 -0
- package/dist/ListItemText-Dov-H_Ii.cjs +2 -0
- package/dist/ListItemText-zFoA_mgx.js +845 -0
- package/dist/Menu-4e60iiMU.cjs +7 -0
- package/dist/{Menu-BgO92SV3.js → Menu-B6t_52q7.js} +405 -335
- package/dist/MenuItem-De2MJkYT.cjs +1 -0
- package/dist/{MenuItem-B8eWAj8E.js → MenuItem-KNXRjnwO.js} +14 -14
- package/dist/{Modal-CFv4UMTP.js → Modal-BpJ9BCOo.js} +239 -245
- package/dist/Modal-JAWJUstF.cjs +2 -0
- package/dist/{MoreVert-Dq8BqKg4.js → MoreVert-BtC5XWOR.js} +1 -1
- package/dist/{MoreVert-B_Gz5Gfx.cjs → MoreVert-MSZXYrMO.cjs} +1 -1
- package/dist/{Paper-DeL_n4k9.js → Paper-BTFv1nzl.js} +9 -9
- package/dist/Paper-CKG165jt.cjs +2 -0
- package/dist/Popper-CyH7Z-lN.cjs +4 -0
- package/dist/{Popper-BKxRTMsO.js → Popper-YJsxmJsm.js} +10 -10
- package/dist/Portal-CtsVKOQ9.js +85 -0
- package/dist/Portal-LP7SUKpU.cjs +1 -0
- package/dist/Radio-BEfQuau1.cjs +1 -0
- package/dist/{Radio-BVfoGshx.js → Radio-Dg73Pnqf.js} +226 -183
- package/dist/RadioGroup-CqCh25ZS.cjs +1 -0
- package/dist/{RadioGroup-DcqRUtV8.js → RadioGroup-jev5E2xJ.js} +20 -20
- package/dist/{Select-Vnsr3NSv.js → Select-21Pm-BzJ.js} +164 -165
- package/dist/Select-CxofSqZJ.cjs +3 -0
- package/dist/{Stack-PQFKjbdN.js → Stack-D2Plrf1_.js} +60 -104
- package/dist/Stack-DpH56CPw.cjs +1 -0
- package/dist/Switch-BIGFww3p.cjs +1 -0
- package/dist/{Switch-Bn8zlIOf.js → Switch-CNfK1N1c.js} +167 -108
- package/dist/SwitchBase-BHC3uchj.js +314 -0
- package/dist/SwitchBase-DA079uiU.cjs +1 -0
- package/dist/{Tab-A0R3g6rB.js → Tab-BbWlzMyp.js} +597 -537
- package/dist/Tab-BsIC620i.cjs +4 -0
- package/dist/{TextField-Di6Nfe3O.js → TextField-BjzDdsW_.js} +133 -124
- package/dist/TextField-DFr8lsXU.cjs +1 -0
- package/dist/ToggleButtonGroup-BEvrUL8a.cjs +138 -0
- package/dist/{ToggleButtonGroup-B-zfmsAO.js → ToggleButtonGroup-C_O-zqof.js} +1995 -1818
- package/dist/{Tooltip-KTkLBRQj.js → Tooltip-Bf5VDDeG.js} +34 -35
- package/dist/Tooltip-DJC7nrsk.cjs +4 -0
- package/dist/{Typography-DZ11k9cZ.js → Typography-BNt9mZKm.js} +13 -14
- package/dist/Typography-DOpE-TJz.cjs +1 -0
- 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/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 +15 -15
- 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.d.ts +1 -0
- package/dist/components/FolderCard/FolderCard.es.js +26 -17
- package/dist/components/FolderCard/styles.cjs.js +1 -1
- package/dist/components/FolderCard/styles.d.ts +4 -0
- package/dist/components/FolderCard/styles.es.js +9 -5
- 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/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.d.ts +1 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +21 -19
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +49 -44
- 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 +7 -7
- package/dist/components/TreeView/TreeView.es.js +323 -319
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/style.cjs.js +1 -1
- package/dist/components/TreeView/style.es.js +24 -18
- package/dist/components/TreeView/types.d.ts +5 -2
- 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.es.js +264 -266
- 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/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +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.d.ts +2 -0
- package/dist/components/stories/TreeView.stories.es.js +517 -268
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BFqOnlgU.js → createSvgIcon-CCutbgLb.js} +54 -55
- package/dist/createSvgIcon-DPiiTkVU.cjs +1 -0
- package/dist/dividerClasses-B_bu1fey.cjs +1 -0
- package/dist/{dividerClasses-BYkvalOn.js → dividerClasses-hlXEfEZK.js} +1 -1
- package/dist/{elementTypeAcceptingRef-1usJq_B8.js → elementTypeAcceptingRef-COpcDx5q.js} +1 -1
- package/dist/elementTypeAcceptingRef-DRPcjZd5.cjs +1 -0
- package/dist/{extendSxProp-D_IkoDXB.js → extendSxProp-0G38SSpC.js} +1 -1
- package/dist/extendSxProp-BZI5kY-d.cjs +1 -0
- package/dist/{getReactElementRef-DtLerx40.js → getReactElementRef-C6oFed6n.js} +1 -1
- package/dist/getReactElementRef-EDbO4rJt.cjs +1 -0
- package/dist/{generateUtilityClasses-CqzQXpT_.js → identifier-BJqC6EXa.js} +833 -865
- package/dist/identifier-gJdGmHeC.cjs +74 -0
- package/dist/{index-CFIk4hVM.js → index-BOAF-ZZq.js} +4 -4
- package/dist/index-Cfd-LNZn.cjs +1 -0
- package/dist/index-D14TzUgK.cjs +1 -0
- package/dist/{index-sDFEVHTg.js → index-DP697UN9.js} +1 -1
- package/dist/index-Dmu1HrwE.cjs +5 -0
- package/dist/{index-C7WfZsMe.js → index-gxOBDuBW.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +264 -266
- package/dist/{listItemTextClasses-C0D3xQur.js → listItemTextClasses-DBxyCmso.js} +1 -1
- package/dist/listItemTextClasses-gsrBifRw.cjs +1 -0
- package/dist/{memoTheme-B0xVysYu.js → memoTheme-D_Qap2ZW.js} +1 -1
- package/dist/{memoTheme-WwIyYqBX.cjs → memoTheme-GOMOSdXJ.cjs} +1 -1
- package/dist/mergeSlotProps-BCz8yLkw.cjs +1 -0
- package/dist/mergeSlotProps-BSFlgsYC.js +62 -0
- package/dist/refType-53jD7LEO.cjs +1 -0
- package/dist/{refType-BvSJNaoq.js → refType-DRBJ18fO.js} +1 -1
- package/dist/styled-C7OKoThH.cjs +1 -0
- package/dist/styled-DpPa0vDp.js +5 -0
- 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-DhC6EPU2.js +125 -0
- package/dist/useSlot-zJFQDOgm.cjs +1 -0
- package/dist/{useSlotProps-Ceyorp-u.js → useSlotProps-Bos9nSja.js} +2 -2
- package/dist/useSlotProps-CuEZ7HQe.cjs +1 -0
- package/dist/{useTheme-2JCMQS-E.js → useTheme-B1xvds8x.js} +1 -1
- package/dist/useTheme-BJZcQSBU.cjs +1 -0
- package/dist/useTheme-Dt-VOIyT.js +11 -0
- package/dist/useTheme-NQRIebh0.cjs +1 -0
- package/dist/useThemeProps-CxMYNgfp.js +17 -0
- package/dist/{useThemeProps-Cuazh32X.js → useThemeProps-DSVFwH3A.js} +4 -4
- package/dist/useThemeProps-DnpiVoRo.cjs +1 -0
- package/dist/{useThemeProps-RdxbcMsR.cjs → useThemeProps-jU-2XOjK.cjs} +1 -1
- package/dist/utils-B2EQZFZP.cjs +1 -0
- package/dist/{utils-BVg32WSe.js → utils-qwVZGgXz.js} +1 -1
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +10 -10
- package/dist/Alert-CvizDCvx.cjs +0 -1
- package/dist/Autocomplete-DjU6i3zL.cjs +0 -6
- package/dist/Backdrop-BM-OE2Q_.cjs +0 -1
- package/dist/Box-BmfpLwYG.cjs +0 -1
- package/dist/Button-BGWvL_UD.cjs +0 -1
- package/dist/CardContent-GHLuvxgm.cjs +0 -1
- package/dist/Checkbox-BZYoJieY.cjs +0 -1
- package/dist/Chip-Cu_SZxrx.cjs +0 -1
- package/dist/CircularProgress-CdS7-HOv.cjs +0 -28
- package/dist/CustomTreeItem-BIl2yiro.cjs +0 -4
- package/dist/DatePicker-tyDzcyzu.cjs +0 -14
- package/dist/DefaultPropsProvider-BTnRBr0O.cjs +0 -1
- package/dist/Dialog-DIHzs0ro.cjs +0 -1
- package/dist/DialogContent-B-9ga3Wv.cjs +0 -1
- package/dist/DialogTitle-B_UN_oL2.cjs +0 -1
- package/dist/Divider-iYLSpFUc.cjs +0 -1
- package/dist/FormLabel-Cp2OFw8d.cjs +0 -2
- package/dist/Grow-DXY5DOqR.cjs +0 -1
- package/dist/IconButton-BLZJne06.cjs +0 -2
- package/dist/InputAdornment-C0WI_oQg.cjs +0 -1
- package/dist/InputBase-B3KOyouT.cjs +0 -3
- package/dist/Link-lvpmE2yz.cjs +0 -1
- package/dist/List-PQXGlDbt.cjs +0 -1
- package/dist/ListItem-CWEvdMjN.cjs +0 -1
- package/dist/ListItemText-BhxrnTkb.cjs +0 -1
- package/dist/ListItemText-CADHegDF.js +0 -928
- package/dist/Menu-DBacrp-P.cjs +0 -7
- package/dist/MenuItem-DkcVAo3U.cjs +0 -1
- package/dist/Modal-kUvS-N46.cjs +0 -2
- package/dist/Paper-ByOgFIEE.cjs +0 -2
- package/dist/Popper-CsQqc5DE.cjs +0 -4
- package/dist/Portal-7MKUQzjh.js +0 -81
- package/dist/Portal-DhGy1jKe.cjs +0 -1
- package/dist/Radio-DG-k6cXx.cjs +0 -1
- package/dist/RadioGroup-Dd0mX-H2.cjs +0 -1
- package/dist/Select-b6liJFDI.cjs +0 -3
- package/dist/Stack-gtxG2YLo.cjs +0 -1
- package/dist/Switch-BlwDxL6O.cjs +0 -1
- package/dist/SwitchBase-DtKlxrES.cjs +0 -1
- package/dist/SwitchBase-QwOXoy8f.js +0 -262
- package/dist/Tab-Dx7V4E6B.cjs +0 -4
- package/dist/TextField-CB2n4aV8.cjs +0 -1
- package/dist/ToggleButtonGroup-D3bdznCl.cjs +0 -137
- package/dist/Tooltip-D0jvnXYu.cjs +0 -4
- package/dist/Typography-3CpuuLtj.cjs +0 -1
- package/dist/capitalize-B3tmp8MO.cjs +0 -1
- package/dist/capitalize-Bs7Xs33U.js +0 -9
- package/dist/createSvgIcon-2wwaxLPT.cjs +0 -1
- package/dist/dividerClasses-izm7KFVg.cjs +0 -1
- package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +0 -1
- package/dist/extendSxProp-Bv3E507G.cjs +0 -1
- package/dist/generateUtilityClasses-KugHyZhN.cjs +0 -75
- package/dist/getReactElementRef-D7IvykPI.cjs +0 -1
- package/dist/index-9hEUqvaJ.cjs +0 -1
- package/dist/index-BomeQRLD.cjs +0 -5
- package/dist/index-DS8G_wjP.cjs +0 -1
- package/dist/listItemTextClasses-CQXcckDA.cjs +0 -1
- package/dist/refType-D-n-tVSl.cjs +0 -1
- package/dist/resolveComponentProps-Byi_59AN.cjs +0 -1
- package/dist/resolveComponentProps-Ctw0-dUN.js +0 -80
- 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-CGbU9jGm.cjs +0 -1
- package/dist/useSlot-CqjfyGd9.js +0 -48
- package/dist/useSlotProps-DfO7r_4Y.cjs +0 -1
- package/dist/useTheme-B6wow4M9.cjs +0 -1
- package/dist/useTheme-DepbBZga.js +0 -11
- package/dist/useTheme-MahNaB8C.cjs +0 -1
- package/dist/useThemeProps-BqypsO1h.cjs +0 -1
- package/dist/useThemeProps-Drd5oJEF.js +0 -17
- package/dist/utils-CUU5fjzL.cjs +0 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { G as
|
|
3
|
-
import { c as
|
|
4
|
-
import { S as
|
|
5
|
-
import { m as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { c as
|
|
9
|
-
import { r as
|
|
10
|
-
function
|
|
11
|
-
return
|
|
1
|
+
import * as P from "react";
|
|
2
|
+
import { F as R, G as j, H as M, K as n, n as S, s as N, q as D, P as e } from "./identifier-BJqC6EXa.js";
|
|
3
|
+
import { c as I } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
4
|
+
import { S as U } from "./SwitchBase-BHC3uchj.js";
|
|
5
|
+
import { m as d } from "./memoTheme-D_Qap2ZW.js";
|
|
6
|
+
import { u as y } from "./useSlot-DhC6EPU2.js";
|
|
7
|
+
import { jsx as v, jsxs as E } from "react/jsx-runtime";
|
|
8
|
+
import { u as F, s as u, c as q } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
9
|
+
import { r as A } from "./refType-DRBJ18fO.js";
|
|
10
|
+
function V(t) {
|
|
11
|
+
return j("MuiSwitch", t);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const a = R("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), X = (t) => {
|
|
14
14
|
const {
|
|
15
|
-
classes:
|
|
15
|
+
classes: o,
|
|
16
16
|
edge: s,
|
|
17
|
-
size:
|
|
18
|
-
color:
|
|
19
|
-
checked:
|
|
20
|
-
disabled:
|
|
21
|
-
} = t,
|
|
22
|
-
root: ["root", s && `edge${
|
|
23
|
-
switchBase: ["switchBase", `color${
|
|
17
|
+
size: p,
|
|
18
|
+
color: h,
|
|
19
|
+
checked: f,
|
|
20
|
+
disabled: b
|
|
21
|
+
} = t, g = {
|
|
22
|
+
root: ["root", s && `edge${n(s)}`, `size${n(p)}`],
|
|
23
|
+
switchBase: ["switchBase", `color${n(h)}`, f && "checked", b && "disabled"],
|
|
24
24
|
thumb: ["thumb"],
|
|
25
25
|
track: ["track"],
|
|
26
26
|
input: ["input"]
|
|
27
|
-
},
|
|
27
|
+
}, w = q(g, V, o);
|
|
28
28
|
return {
|
|
29
|
-
...
|
|
29
|
+
...o,
|
|
30
30
|
// forward the disabled and checked classes to the SwitchBase
|
|
31
|
-
...
|
|
31
|
+
...w
|
|
32
32
|
};
|
|
33
|
-
},
|
|
33
|
+
}, G = u("span", {
|
|
34
34
|
name: "MuiSwitch",
|
|
35
35
|
slot: "Root",
|
|
36
|
-
overridesResolver: (t,
|
|
36
|
+
overridesResolver: (t, o) => {
|
|
37
37
|
const {
|
|
38
38
|
ownerState: s
|
|
39
39
|
} = t;
|
|
40
|
-
return [
|
|
40
|
+
return [o.root, s.edge && o[`edge${n(s.edge)}`], o[`size${n(s.size)}`]];
|
|
41
41
|
}
|
|
42
42
|
})({
|
|
43
43
|
display: "inline-flex",
|
|
@@ -77,30 +77,30 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
77
77
|
width: 40,
|
|
78
78
|
height: 24,
|
|
79
79
|
padding: 7,
|
|
80
|
-
[`& .${
|
|
80
|
+
[`& .${a.thumb}`]: {
|
|
81
81
|
width: 16,
|
|
82
82
|
height: 16
|
|
83
83
|
},
|
|
84
|
-
[`& .${
|
|
84
|
+
[`& .${a.switchBase}`]: {
|
|
85
85
|
padding: 4,
|
|
86
|
-
[`&.${
|
|
86
|
+
[`&.${a.checked}`]: {
|
|
87
87
|
transform: "translateX(16px)"
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}]
|
|
92
|
-
}),
|
|
92
|
+
}), H = u(U, {
|
|
93
93
|
name: "MuiSwitch",
|
|
94
94
|
slot: "SwitchBase",
|
|
95
|
-
overridesResolver: (t,
|
|
95
|
+
overridesResolver: (t, o) => {
|
|
96
96
|
const {
|
|
97
97
|
ownerState: s
|
|
98
98
|
} = t;
|
|
99
|
-
return [
|
|
100
|
-
[`& .${
|
|
101
|
-
}, s.color !== "default" &&
|
|
99
|
+
return [o.switchBase, {
|
|
100
|
+
[`& .${a.input}`]: o.input
|
|
101
|
+
}, s.color !== "default" && o[`color${n(s.color)}`]];
|
|
102
102
|
}
|
|
103
|
-
})(
|
|
103
|
+
})(d(({
|
|
104
104
|
theme: t
|
|
105
105
|
}) => ({
|
|
106
106
|
position: "absolute",
|
|
@@ -112,59 +112,59 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
112
112
|
transition: t.transitions.create(["left", "transform"], {
|
|
113
113
|
duration: t.transitions.duration.shortest
|
|
114
114
|
}),
|
|
115
|
-
[`&.${
|
|
115
|
+
[`&.${a.checked}`]: {
|
|
116
116
|
transform: "translateX(20px)"
|
|
117
117
|
},
|
|
118
|
-
[`&.${
|
|
118
|
+
[`&.${a.disabled}`]: {
|
|
119
119
|
color: t.vars ? t.vars.palette.Switch.defaultDisabledColor : `${t.palette.mode === "light" ? t.palette.grey[100] : t.palette.grey[600]}`
|
|
120
120
|
},
|
|
121
|
-
[`&.${
|
|
121
|
+
[`&.${a.checked} + .${a.track}`]: {
|
|
122
122
|
opacity: 0.5
|
|
123
123
|
},
|
|
124
|
-
[`&.${
|
|
124
|
+
[`&.${a.disabled} + .${a.track}`]: {
|
|
125
125
|
opacity: t.vars ? t.vars.opacity.switchTrackDisabled : `${t.palette.mode === "light" ? 0.12 : 0.2}`
|
|
126
126
|
},
|
|
127
|
-
[`& .${
|
|
127
|
+
[`& .${a.input}`]: {
|
|
128
128
|
left: "-100%",
|
|
129
129
|
width: "300%"
|
|
130
130
|
}
|
|
131
|
-
})),
|
|
131
|
+
})), d(({
|
|
132
132
|
theme: t
|
|
133
133
|
}) => ({
|
|
134
134
|
"&:hover": {
|
|
135
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})` :
|
|
135
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})` : S(t.palette.action.active, t.palette.action.hoverOpacity),
|
|
136
136
|
// Reset on touch devices, it doesn't add specificity
|
|
137
137
|
"@media (hover: none)": {
|
|
138
138
|
backgroundColor: "transparent"
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
|
-
variants: [...Object.entries(t.palette).filter(
|
|
141
|
+
variants: [...Object.entries(t.palette).filter(I(["light"])).map(([o]) => ({
|
|
142
142
|
props: {
|
|
143
|
-
color:
|
|
143
|
+
color: o
|
|
144
144
|
},
|
|
145
145
|
style: {
|
|
146
|
-
[`&.${
|
|
147
|
-
color: (t.vars || t).palette[
|
|
146
|
+
[`&.${a.checked}`]: {
|
|
147
|
+
color: (t.vars || t).palette[o].main,
|
|
148
148
|
"&:hover": {
|
|
149
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette[
|
|
149
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette[o].mainChannel} / ${t.vars.palette.action.hoverOpacity})` : S(t.palette[o].main, t.palette.action.hoverOpacity),
|
|
150
150
|
"@media (hover: none)": {
|
|
151
151
|
backgroundColor: "transparent"
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
|
-
[`&.${
|
|
155
|
-
color: t.vars ? t.vars.palette.Switch[`${
|
|
154
|
+
[`&.${a.disabled}`]: {
|
|
155
|
+
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
156
|
}
|
|
157
157
|
},
|
|
158
|
-
[`&.${
|
|
159
|
-
backgroundColor: (t.vars || t).palette[
|
|
158
|
+
[`&.${a.checked} + .${a.track}`]: {
|
|
159
|
+
backgroundColor: (t.vars || t).palette[o].main
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}))]
|
|
163
|
-
}))),
|
|
163
|
+
}))), K = u("span", {
|
|
164
164
|
name: "MuiSwitch",
|
|
165
165
|
slot: "Track",
|
|
166
|
-
overridesResolver: (t,
|
|
167
|
-
})(
|
|
166
|
+
overridesResolver: (t, o) => o.track
|
|
167
|
+
})(d(({
|
|
168
168
|
theme: t
|
|
169
169
|
}) => ({
|
|
170
170
|
height: "100%",
|
|
@@ -176,11 +176,11 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
176
176
|
}),
|
|
177
177
|
backgroundColor: t.vars ? t.vars.palette.common.onBackground : `${t.palette.mode === "light" ? t.palette.common.black : t.palette.common.white}`,
|
|
178
178
|
opacity: t.vars ? t.vars.opacity.switchTrack : `${t.palette.mode === "light" ? 0.38 : 0.3}`
|
|
179
|
-
}))),
|
|
179
|
+
}))), L = u("span", {
|
|
180
180
|
name: "MuiSwitch",
|
|
181
181
|
slot: "Thumb",
|
|
182
|
-
overridesResolver: (t,
|
|
183
|
-
})(
|
|
182
|
+
overridesResolver: (t, o) => o.thumb
|
|
183
|
+
})(d(({
|
|
184
184
|
theme: t
|
|
185
185
|
}) => ({
|
|
186
186
|
boxShadow: (t.vars || t).shadows[1],
|
|
@@ -188,48 +188,83 @@ const o = S("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPr
|
|
|
188
188
|
width: 20,
|
|
189
189
|
height: 20,
|
|
190
190
|
borderRadius: "50%"
|
|
191
|
-
}))),
|
|
192
|
-
const
|
|
193
|
-
props:
|
|
191
|
+
}))), _ = /* @__PURE__ */ P.forwardRef(function(o, s) {
|
|
192
|
+
const p = F({
|
|
193
|
+
props: o,
|
|
194
194
|
name: "MuiSwitch"
|
|
195
195
|
}), {
|
|
196
|
-
className:
|
|
197
|
-
color:
|
|
198
|
-
edge:
|
|
199
|
-
size:
|
|
200
|
-
sx:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
196
|
+
className: h,
|
|
197
|
+
color: f = "primary",
|
|
198
|
+
edge: b = !1,
|
|
199
|
+
size: g = "medium",
|
|
200
|
+
sx: w,
|
|
201
|
+
slots: c = {},
|
|
202
|
+
slotProps: r = {},
|
|
203
|
+
...$
|
|
204
|
+
} = p, i = {
|
|
205
|
+
...p,
|
|
206
|
+
color: f,
|
|
207
|
+
edge: b,
|
|
208
|
+
size: g
|
|
209
|
+
}, l = X(i), m = {
|
|
210
|
+
slots: c,
|
|
211
|
+
slotProps: r
|
|
212
|
+
}, [T, C] = y("root", {
|
|
213
|
+
className: M(l.root, h),
|
|
214
|
+
elementType: G,
|
|
215
|
+
externalForwardedProps: m,
|
|
216
|
+
ownerState: i,
|
|
217
|
+
additionalProps: {
|
|
218
|
+
sx: w
|
|
219
|
+
}
|
|
220
|
+
}), [x, O] = y("thumb", {
|
|
221
|
+
className: l.thumb,
|
|
222
|
+
elementType: L,
|
|
223
|
+
externalForwardedProps: m,
|
|
224
|
+
ownerState: i
|
|
225
|
+
}), k = /* @__PURE__ */ v(x, {
|
|
226
|
+
...O
|
|
227
|
+
}), [B, z] = y("track", {
|
|
228
|
+
className: l.track,
|
|
229
|
+
elementType: K,
|
|
230
|
+
externalForwardedProps: m,
|
|
209
231
|
ownerState: i
|
|
210
232
|
});
|
|
211
|
-
return /* @__PURE__ */ T
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
ownerState: i,
|
|
215
|
-
children: [/* @__PURE__ */ w(P, {
|
|
233
|
+
return /* @__PURE__ */ E(T, {
|
|
234
|
+
...C,
|
|
235
|
+
children: [/* @__PURE__ */ v(H, {
|
|
216
236
|
type: "checkbox",
|
|
217
|
-
icon:
|
|
218
|
-
checkedIcon:
|
|
237
|
+
icon: k,
|
|
238
|
+
checkedIcon: k,
|
|
219
239
|
ref: s,
|
|
220
240
|
ownerState: i,
|
|
221
|
-
|
|
241
|
+
...$,
|
|
222
242
|
classes: {
|
|
223
|
-
...
|
|
224
|
-
root:
|
|
243
|
+
...l,
|
|
244
|
+
root: l.switchBase
|
|
245
|
+
},
|
|
246
|
+
slots: {
|
|
247
|
+
...c.switchBase && {
|
|
248
|
+
root: c.switchBase
|
|
249
|
+
},
|
|
250
|
+
...c.input && {
|
|
251
|
+
input: c.input
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
slotProps: {
|
|
255
|
+
...r.switchBase && {
|
|
256
|
+
root: typeof r.switchBase == "function" ? r.switchBase(i) : r.switchBase
|
|
257
|
+
},
|
|
258
|
+
...r.input && {
|
|
259
|
+
input: typeof r.input == "function" ? r.input(i) : r.input
|
|
260
|
+
}
|
|
225
261
|
}
|
|
226
|
-
}), /* @__PURE__ */
|
|
227
|
-
|
|
228
|
-
ownerState: i
|
|
262
|
+
}), /* @__PURE__ */ v(B, {
|
|
263
|
+
...z
|
|
229
264
|
})]
|
|
230
265
|
});
|
|
231
266
|
});
|
|
232
|
-
process.env.NODE_ENV !== "production" && (
|
|
267
|
+
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
233
268
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
234
269
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
235
270
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -237,39 +272,39 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
237
272
|
/**
|
|
238
273
|
* If `true`, the component is checked.
|
|
239
274
|
*/
|
|
240
|
-
checked:
|
|
275
|
+
checked: e.bool,
|
|
241
276
|
/**
|
|
242
277
|
* The icon to display when the component is checked.
|
|
243
278
|
*/
|
|
244
|
-
checkedIcon:
|
|
279
|
+
checkedIcon: e.node,
|
|
245
280
|
/**
|
|
246
281
|
* Override or extend the styles applied to the component.
|
|
247
282
|
*/
|
|
248
|
-
classes:
|
|
283
|
+
classes: e.object,
|
|
249
284
|
/**
|
|
250
285
|
* @ignore
|
|
251
286
|
*/
|
|
252
|
-
className:
|
|
287
|
+
className: e.string,
|
|
253
288
|
/**
|
|
254
289
|
* The color of the component.
|
|
255
290
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
256
291
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
257
292
|
* @default 'primary'
|
|
258
293
|
*/
|
|
259
|
-
color:
|
|
294
|
+
color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
260
295
|
/**
|
|
261
296
|
* The default checked state. Use when the component is not controlled.
|
|
262
297
|
*/
|
|
263
|
-
defaultChecked:
|
|
298
|
+
defaultChecked: e.bool,
|
|
264
299
|
/**
|
|
265
300
|
* If `true`, the component is disabled.
|
|
266
301
|
*/
|
|
267
|
-
disabled:
|
|
302
|
+
disabled: e.bool,
|
|
268
303
|
/**
|
|
269
304
|
* If `true`, the ripple effect is disabled.
|
|
270
305
|
* @default false
|
|
271
306
|
*/
|
|
272
|
-
disableRipple:
|
|
307
|
+
disableRipple: e.bool,
|
|
273
308
|
/**
|
|
274
309
|
* If given, uses a negative margin to counteract the padding on one
|
|
275
310
|
* side (this is often helpful for aligning the left or right
|
|
@@ -277,23 +312,25 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
277
312
|
* size and shape).
|
|
278
313
|
* @default false
|
|
279
314
|
*/
|
|
280
|
-
edge:
|
|
315
|
+
edge: e.oneOf(["end", "start", !1]),
|
|
281
316
|
/**
|
|
282
317
|
* The icon to display when the component is unchecked.
|
|
283
318
|
*/
|
|
284
|
-
icon:
|
|
319
|
+
icon: e.node,
|
|
285
320
|
/**
|
|
286
321
|
* The id of the `input` element.
|
|
287
322
|
*/
|
|
288
|
-
id:
|
|
323
|
+
id: e.string,
|
|
289
324
|
/**
|
|
290
325
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
326
|
+
* @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
327
|
*/
|
|
292
|
-
inputProps:
|
|
328
|
+
inputProps: e.object,
|
|
293
329
|
/**
|
|
294
330
|
* Pass a ref to the `input` element.
|
|
331
|
+
* @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
332
|
*/
|
|
296
|
-
inputRef:
|
|
333
|
+
inputRef: A,
|
|
297
334
|
/**
|
|
298
335
|
* Callback fired when the state is changed.
|
|
299
336
|
*
|
|
@@ -301,30 +338,52 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
301
338
|
* You can pull out the new value by accessing `event.target.value` (string).
|
|
302
339
|
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
303
340
|
*/
|
|
304
|
-
onChange:
|
|
341
|
+
onChange: e.func,
|
|
305
342
|
/**
|
|
306
343
|
* If `true`, the `input` element is required.
|
|
307
344
|
* @default false
|
|
308
345
|
*/
|
|
309
|
-
required:
|
|
346
|
+
required: e.bool,
|
|
310
347
|
/**
|
|
311
348
|
* The size of the component.
|
|
312
349
|
* `small` is equivalent to the dense switch styling.
|
|
313
350
|
* @default 'medium'
|
|
314
351
|
*/
|
|
315
|
-
size:
|
|
352
|
+
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
353
|
+
/**
|
|
354
|
+
* The props used for each slot inside.
|
|
355
|
+
* @default {}
|
|
356
|
+
*/
|
|
357
|
+
slotProps: e.shape({
|
|
358
|
+
input: e.oneOfType([e.func, e.object]),
|
|
359
|
+
root: e.oneOfType([e.func, e.object]),
|
|
360
|
+
switchBase: e.oneOfType([e.func, e.object]),
|
|
361
|
+
thumb: e.oneOfType([e.func, e.object]),
|
|
362
|
+
track: e.oneOfType([e.func, e.object])
|
|
363
|
+
}),
|
|
364
|
+
/**
|
|
365
|
+
* The components used for each slot inside.
|
|
366
|
+
* @default {}
|
|
367
|
+
*/
|
|
368
|
+
slots: e.shape({
|
|
369
|
+
input: e.elementType,
|
|
370
|
+
root: e.elementType,
|
|
371
|
+
switchBase: e.elementType,
|
|
372
|
+
thumb: e.elementType,
|
|
373
|
+
track: e.elementType
|
|
374
|
+
}),
|
|
316
375
|
/**
|
|
317
376
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
318
377
|
*/
|
|
319
|
-
sx:
|
|
378
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
320
379
|
/**
|
|
321
380
|
* The value of the component. The DOM API casts this to a string.
|
|
322
381
|
* The browser uses "on" as the default value.
|
|
323
382
|
*/
|
|
324
|
-
value:
|
|
383
|
+
value: e.any
|
|
325
384
|
});
|
|
326
385
|
export {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
386
|
+
_ as S,
|
|
387
|
+
V as g,
|
|
388
|
+
a as s
|
|
330
389
|
};
|