@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
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import * as J from "react";
|
|
2
|
+
import { G as M, F as Q, K as W, P as e } from "./identifier-BJqC6EXa.js";
|
|
3
|
+
import { s as C, c as X, r as Y } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
4
|
+
import { u as Z } from "./useFormControl-CatNKXAi.js";
|
|
5
|
+
import { u as k } from "./useSlot-DhC6EPU2.js";
|
|
6
|
+
import { jsxs as ee, jsx as oe } from "react/jsx-runtime";
|
|
7
|
+
import { u as te } from "./useControlled-BYdyS7Pn.js";
|
|
8
|
+
import { B as se } from "./ButtonBase-BZXGvriS.js";
|
|
9
|
+
import { r as ne } from "./refType-DRBJ18fO.js";
|
|
10
|
+
function re(s) {
|
|
11
|
+
return M("PrivateSwitchBase", s);
|
|
12
|
+
}
|
|
13
|
+
Q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
14
|
+
const ie = (s) => {
|
|
15
|
+
const {
|
|
16
|
+
classes: n,
|
|
17
|
+
checked: d,
|
|
18
|
+
disabled: p,
|
|
19
|
+
edge: a
|
|
20
|
+
} = s, u = {
|
|
21
|
+
root: ["root", d && "checked", p && "disabled", a && `edge${W(a)}`],
|
|
22
|
+
input: ["input"]
|
|
23
|
+
};
|
|
24
|
+
return X(u, re, n);
|
|
25
|
+
}, ae = C(se)({
|
|
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: n
|
|
40
|
+
}) => s === "start" && n.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: n
|
|
56
|
+
}) => s === "end" && n.size !== "small",
|
|
57
|
+
style: {
|
|
58
|
+
marginRight: -12
|
|
59
|
+
}
|
|
60
|
+
}]
|
|
61
|
+
}), ce = C("input", {
|
|
62
|
+
shouldForwardProp: Y
|
|
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
|
+
}), le = /* @__PURE__ */ J.forwardRef(function(n, d) {
|
|
75
|
+
const {
|
|
76
|
+
autoFocus: p,
|
|
77
|
+
checked: a,
|
|
78
|
+
checkedIcon: u,
|
|
79
|
+
defaultChecked: m,
|
|
80
|
+
disabled: w,
|
|
81
|
+
disableFocusRipple: g = !1,
|
|
82
|
+
edge: R = !1,
|
|
83
|
+
icon: x,
|
|
84
|
+
id: T,
|
|
85
|
+
inputProps: I,
|
|
86
|
+
inputRef: j,
|
|
87
|
+
name: O,
|
|
88
|
+
onBlur: h,
|
|
89
|
+
onChange: b,
|
|
90
|
+
onFocus: y,
|
|
91
|
+
readOnly: z,
|
|
92
|
+
required: q = !1,
|
|
93
|
+
tabIndex: N,
|
|
94
|
+
type: l,
|
|
95
|
+
value: P,
|
|
96
|
+
slots: E = {},
|
|
97
|
+
slotProps: U = {},
|
|
98
|
+
...v
|
|
99
|
+
} = n, [F, L] = te({
|
|
100
|
+
controlled: a,
|
|
101
|
+
default: !!m,
|
|
102
|
+
name: "SwitchBase",
|
|
103
|
+
state: "checked"
|
|
104
|
+
}), r = Z(), D = (o) => {
|
|
105
|
+
y && y(o), r && r.onFocus && r.onFocus(o);
|
|
106
|
+
}, G = (o) => {
|
|
107
|
+
h && h(o), r && r.onBlur && r.onBlur(o);
|
|
108
|
+
}, K = (o) => {
|
|
109
|
+
if (o.nativeEvent.defaultPrevented)
|
|
110
|
+
return;
|
|
111
|
+
const t = o.target.checked;
|
|
112
|
+
L(t), b && b(o, t);
|
|
113
|
+
};
|
|
114
|
+
let c = w;
|
|
115
|
+
r && typeof c > "u" && (c = r.disabled);
|
|
116
|
+
const V = l === "checkbox" || l === "radio", f = {
|
|
117
|
+
...n,
|
|
118
|
+
checked: F,
|
|
119
|
+
disabled: c,
|
|
120
|
+
disableFocusRipple: g,
|
|
121
|
+
edge: R
|
|
122
|
+
}, S = ie(f), B = {
|
|
123
|
+
slots: E,
|
|
124
|
+
slotProps: {
|
|
125
|
+
input: I,
|
|
126
|
+
...U
|
|
127
|
+
}
|
|
128
|
+
}, [_, $] = k("root", {
|
|
129
|
+
ref: d,
|
|
130
|
+
elementType: ae,
|
|
131
|
+
className: S.root,
|
|
132
|
+
shouldForwardComponentProp: !0,
|
|
133
|
+
externalForwardedProps: {
|
|
134
|
+
...B,
|
|
135
|
+
component: "span",
|
|
136
|
+
...v
|
|
137
|
+
},
|
|
138
|
+
getSlotProps: (o) => ({
|
|
139
|
+
...o,
|
|
140
|
+
onFocus: (t) => {
|
|
141
|
+
var i;
|
|
142
|
+
(i = o.onFocus) == null || i.call(o, t), D(t);
|
|
143
|
+
},
|
|
144
|
+
onBlur: (t) => {
|
|
145
|
+
var i;
|
|
146
|
+
(i = o.onBlur) == null || i.call(o, t), G(t);
|
|
147
|
+
}
|
|
148
|
+
}),
|
|
149
|
+
ownerState: f,
|
|
150
|
+
additionalProps: {
|
|
151
|
+
centerRipple: !0,
|
|
152
|
+
focusRipple: !g,
|
|
153
|
+
disabled: c,
|
|
154
|
+
role: void 0,
|
|
155
|
+
tabIndex: null
|
|
156
|
+
}
|
|
157
|
+
}), [A, H] = k("input", {
|
|
158
|
+
ref: j,
|
|
159
|
+
elementType: ce,
|
|
160
|
+
className: S.input,
|
|
161
|
+
externalForwardedProps: B,
|
|
162
|
+
getSlotProps: (o) => ({
|
|
163
|
+
...o,
|
|
164
|
+
onChange: (t) => {
|
|
165
|
+
var i;
|
|
166
|
+
(i = o.onChange) == null || i.call(o, t), K(t);
|
|
167
|
+
}
|
|
168
|
+
}),
|
|
169
|
+
ownerState: f,
|
|
170
|
+
additionalProps: {
|
|
171
|
+
autoFocus: p,
|
|
172
|
+
checked: a,
|
|
173
|
+
defaultChecked: m,
|
|
174
|
+
disabled: c,
|
|
175
|
+
id: V ? T : void 0,
|
|
176
|
+
name: O,
|
|
177
|
+
readOnly: z,
|
|
178
|
+
required: q,
|
|
179
|
+
tabIndex: N,
|
|
180
|
+
type: l,
|
|
181
|
+
...l === "checkbox" && P === void 0 ? {} : {
|
|
182
|
+
value: P
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
return /* @__PURE__ */ ee(_, {
|
|
187
|
+
...$,
|
|
188
|
+
children: [/* @__PURE__ */ oe(A, {
|
|
189
|
+
...H
|
|
190
|
+
}), F ? u : x]
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
194
|
+
/**
|
|
195
|
+
* If `true`, the `input` element is focused during the first mount.
|
|
196
|
+
*/
|
|
197
|
+
autoFocus: e.bool,
|
|
198
|
+
/**
|
|
199
|
+
* If `true`, the component is checked.
|
|
200
|
+
*/
|
|
201
|
+
checked: e.bool,
|
|
202
|
+
/**
|
|
203
|
+
* The icon to display when the component is checked.
|
|
204
|
+
*/
|
|
205
|
+
checkedIcon: e.node.isRequired,
|
|
206
|
+
/**
|
|
207
|
+
* Override or extend the styles applied to the component.
|
|
208
|
+
*/
|
|
209
|
+
classes: e.object,
|
|
210
|
+
/**
|
|
211
|
+
* @ignore
|
|
212
|
+
*/
|
|
213
|
+
className: e.string,
|
|
214
|
+
/**
|
|
215
|
+
* @ignore
|
|
216
|
+
*/
|
|
217
|
+
defaultChecked: e.bool,
|
|
218
|
+
/**
|
|
219
|
+
* If `true`, the component is disabled.
|
|
220
|
+
*/
|
|
221
|
+
disabled: e.bool,
|
|
222
|
+
/**
|
|
223
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
224
|
+
* @default false
|
|
225
|
+
*/
|
|
226
|
+
disableFocusRipple: e.bool,
|
|
227
|
+
/**
|
|
228
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
229
|
+
* side (this is often helpful for aligning the left or right
|
|
230
|
+
* side of the icon with content above or below, without ruining the border
|
|
231
|
+
* size and shape).
|
|
232
|
+
* @default false
|
|
233
|
+
*/
|
|
234
|
+
edge: e.oneOf(["end", "start", !1]),
|
|
235
|
+
/**
|
|
236
|
+
* The icon to display when the component is unchecked.
|
|
237
|
+
*/
|
|
238
|
+
icon: e.node.isRequired,
|
|
239
|
+
/**
|
|
240
|
+
* The id of the `input` element.
|
|
241
|
+
*/
|
|
242
|
+
id: e.string,
|
|
243
|
+
/**
|
|
244
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
245
|
+
*/
|
|
246
|
+
inputProps: e.object,
|
|
247
|
+
/**
|
|
248
|
+
* Pass a ref to the `input` element.
|
|
249
|
+
*/
|
|
250
|
+
inputRef: ne,
|
|
251
|
+
/*
|
|
252
|
+
* @ignore
|
|
253
|
+
*/
|
|
254
|
+
name: e.string,
|
|
255
|
+
/**
|
|
256
|
+
* @ignore
|
|
257
|
+
*/
|
|
258
|
+
onBlur: e.func,
|
|
259
|
+
/**
|
|
260
|
+
* Callback fired when the state is changed.
|
|
261
|
+
*
|
|
262
|
+
* @param {object} event The event source of the callback.
|
|
263
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
264
|
+
*/
|
|
265
|
+
onChange: e.func,
|
|
266
|
+
/**
|
|
267
|
+
* @ignore
|
|
268
|
+
*/
|
|
269
|
+
onFocus: e.func,
|
|
270
|
+
/**
|
|
271
|
+
* It prevents the user from changing the value of the field
|
|
272
|
+
* (not from interacting with the field).
|
|
273
|
+
*/
|
|
274
|
+
readOnly: e.bool,
|
|
275
|
+
/**
|
|
276
|
+
* If `true`, the `input` element is required.
|
|
277
|
+
*/
|
|
278
|
+
required: e.bool,
|
|
279
|
+
/**
|
|
280
|
+
* The props used for each slot inside.
|
|
281
|
+
* @default {}
|
|
282
|
+
*/
|
|
283
|
+
slotProps: e.shape({
|
|
284
|
+
input: e.oneOfType([e.func, e.object]),
|
|
285
|
+
root: e.oneOfType([e.func, e.object])
|
|
286
|
+
}),
|
|
287
|
+
/**
|
|
288
|
+
* The components used for each slot inside.
|
|
289
|
+
* @default {}
|
|
290
|
+
*/
|
|
291
|
+
slots: e.shape({
|
|
292
|
+
input: e.elementType,
|
|
293
|
+
root: e.elementType
|
|
294
|
+
}),
|
|
295
|
+
/**
|
|
296
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
297
|
+
*/
|
|
298
|
+
sx: e.object,
|
|
299
|
+
/**
|
|
300
|
+
* @ignore
|
|
301
|
+
*/
|
|
302
|
+
tabIndex: e.oneOfType([e.number, e.string]),
|
|
303
|
+
/**
|
|
304
|
+
* The input component prop `type`.
|
|
305
|
+
*/
|
|
306
|
+
type: e.string.isRequired,
|
|
307
|
+
/**
|
|
308
|
+
* The value of the component.
|
|
309
|
+
*/
|
|
310
|
+
value: e.any
|
|
311
|
+
});
|
|
312
|
+
export {
|
|
313
|
+
le as S
|
|
314
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Q=require("react"),e=require("./identifier-gJdGmHeC.cjs"),d=require("./DefaultPropsProvider-DLSItMqn.cjs"),W=require("./useFormControl-haP0iPhl.cjs"),F=require("./useSlot-zJFQDOgm.cjs"),k=require("react/jsx-runtime"),X=require("./useControlled-Ysk4KqoX.cjs"),Y=require("./ButtonBase-DDgwUJIY.cjs"),Z=require("./refType-53jD7LEO.cjs");function ee(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 oe=ee(Q);function te(t){return e.generateUtilityClass("PrivateSwitchBase",t)}e.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const se=t=>{const{classes:s,checked:n,disabled:c,edge:a}=t,y={root:["root",n&&"checked",c&&"disabled",a&&`edge${e.capitalize(a)}`],input:["input"]};return d.composeClasses(y,te,s)},re=d.styled(Y.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}}]}),ne=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}),w=oe.forwardRef(function(s,n){const{autoFocus:c,checked:a,checkedIcon:y,defaultChecked:f,disabled:R,disableFocusRipple:T=!1,edge:q=!1,icon:j,id:x,inputProps:O,inputRef:I,name:z,onBlur:g,onChange:b,onFocus:h,readOnly:N,required:v=!1,tabIndex:D,type:u,value:m,slots:E={},slotProps:U={},..._}=s,[S,L]=X.useControlled({controlled:a,default:!!f,name:"SwitchBase",state:"checked"}),p=W.useFormControl(),M=o=>{h&&h(o),p&&p.onFocus&&p.onFocus(o)},V=o=>{g&&g(o),p&&p.onBlur&&p.onBlur(o)},$=o=>{if(o.nativeEvent.defaultPrevented)return;const r=o.target.checked;L(r),b&&b(o,r)};let l=R;p&&typeof l>"u"&&(l=p.disabled);const A=u==="checkbox"||u==="radio",P={...s,checked:S,disabled:l,disableFocusRipple:T,edge:q},B=se(P),C={slots:E,slotProps:{input:O,...U}},[G,H]=F.useSlot("root",{ref:n,elementType:re,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...C,component:"span",..._},getSlotProps:o=>({...o,onFocus:r=>{var i;(i=o.onFocus)==null||i.call(o,r),M(r)},onBlur:r=>{var i;(i=o.onBlur)==null||i.call(o,r),V(r)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!T,disabled:l,role:void 0,tabIndex:null}}),[J,K]=F.useSlot("input",{ref:I,elementType:ne,className:B.input,externalForwardedProps:C,getSlotProps:o=>({...o,onChange:r=>{var i;(i=o.onChange)==null||i.call(o,r),$(r)}}),ownerState:P,additionalProps:{autoFocus:c,checked:a,defaultChecked:f,disabled:l,id:A?x:void 0,name:z,readOnly:N,required:v,tabIndex:D,type:u,...u==="checkbox"&&m===void 0?{}:{value:m}}});return k.jsxs(G,{...H,children:[k.jsx(J,{...K}),S?y:j]})});process.env.NODE_ENV!=="production"&&(w.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:Z.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=w;
|