@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,72 +1,71 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { P as n,
|
|
3
|
-
import { m as
|
|
4
|
-
import { o as
|
|
5
|
-
import { o as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
9
|
-
import { e as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
function Ne(e = window) {
|
|
2
|
+
import { P as n, F as me, G as be, H as J } from "./identifier-BJqC6EXa.js";
|
|
3
|
+
import { m as he } from "./memoTheme-D_Qap2ZW.js";
|
|
4
|
+
import { o as H } from "./ownerWindow-niciwP7I.js";
|
|
5
|
+
import { o as O } from "./ownerDocument-CUrv0DIK.js";
|
|
6
|
+
import { u as re } from "./useForkRef-u29GSuCu.js";
|
|
7
|
+
import { u as Q } from "./useEventCallback-Yoj9nCug.js";
|
|
8
|
+
import { c as Z } from "./createChainedFunction-C0nujS3O.js";
|
|
9
|
+
import { e as ge, u as ee } from "./useSlot-DhC6EPU2.js";
|
|
10
|
+
import { jsxs as se, jsx as j } from "react/jsx-runtime";
|
|
11
|
+
import { u as Ee, s as ie, c as Te } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
12
|
+
import { e as ye, P as Re, H as xe } from "./Portal-CtsVKOQ9.js";
|
|
13
|
+
import { g as ve, e as ae } from "./getReactElementRef-C6oFed6n.js";
|
|
14
|
+
import { B as Pe } from "./Backdrop-CRrNkGxU.js";
|
|
15
|
+
function ke(e = window) {
|
|
17
16
|
const t = e.document.documentElement.clientWidth;
|
|
18
17
|
return e.innerWidth - t;
|
|
19
18
|
}
|
|
20
|
-
function
|
|
21
|
-
const t =
|
|
22
|
-
return t.body === e ?
|
|
19
|
+
function Ie(e) {
|
|
20
|
+
const t = O(e);
|
|
21
|
+
return t.body === e ? H(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
|
|
23
22
|
}
|
|
24
23
|
function K(e, t) {
|
|
25
24
|
t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
|
|
26
25
|
}
|
|
27
|
-
function
|
|
28
|
-
return parseInt(
|
|
26
|
+
function te(e) {
|
|
27
|
+
return parseInt(H(e).getComputedStyle(e).paddingRight, 10) || 0;
|
|
29
28
|
}
|
|
30
|
-
function
|
|
29
|
+
function Ne(e) {
|
|
31
30
|
const s = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(e.tagName), o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
|
|
32
31
|
return s || o;
|
|
33
32
|
}
|
|
34
|
-
function
|
|
33
|
+
function oe(e, t, s, o, i) {
|
|
35
34
|
const r = [t, s, ...o];
|
|
36
|
-
[].forEach.call(e.children, (
|
|
37
|
-
const
|
|
38
|
-
|
|
35
|
+
[].forEach.call(e.children, (a) => {
|
|
36
|
+
const c = !r.includes(a), m = !Ne(a);
|
|
37
|
+
c && m && K(a, i);
|
|
39
38
|
});
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function Y(e, t) {
|
|
42
41
|
let s = -1;
|
|
43
42
|
return e.some((o, i) => t(o) ? (s = i, !0) : !1), s;
|
|
44
43
|
}
|
|
45
44
|
function Fe(e, t) {
|
|
46
45
|
const s = [], o = e.container;
|
|
47
46
|
if (!t.disableScrollLock) {
|
|
48
|
-
if (
|
|
49
|
-
const
|
|
47
|
+
if (Ie(o)) {
|
|
48
|
+
const a = ke(H(o));
|
|
50
49
|
s.push({
|
|
51
50
|
value: o.style.paddingRight,
|
|
52
51
|
property: "padding-right",
|
|
53
52
|
el: o
|
|
54
|
-
}), o.style.paddingRight = `${
|
|
55
|
-
const
|
|
56
|
-
[].forEach.call(
|
|
53
|
+
}), o.style.paddingRight = `${te(o) + a}px`;
|
|
54
|
+
const c = O(o).querySelectorAll(".mui-fixed");
|
|
55
|
+
[].forEach.call(c, (m) => {
|
|
57
56
|
s.push({
|
|
58
57
|
value: m.style.paddingRight,
|
|
59
58
|
property: "padding-right",
|
|
60
59
|
el: m
|
|
61
|
-
}), m.style.paddingRight = `${
|
|
60
|
+
}), m.style.paddingRight = `${te(m) + a}px`;
|
|
62
61
|
});
|
|
63
62
|
}
|
|
64
63
|
let r;
|
|
65
64
|
if (o.parentNode instanceof DocumentFragment)
|
|
66
|
-
r =
|
|
65
|
+
r = O(o).body;
|
|
67
66
|
else {
|
|
68
|
-
const
|
|
69
|
-
r = (
|
|
67
|
+
const a = o.parentElement, c = H(o);
|
|
68
|
+
r = (a == null ? void 0 : a.nodeName) === "HTML" && c.getComputedStyle(a).overflowY === "scroll" ? a : o;
|
|
70
69
|
}
|
|
71
70
|
s.push({
|
|
72
71
|
value: r.style.overflow,
|
|
@@ -85,20 +84,20 @@ function Fe(e, t) {
|
|
|
85
84
|
return () => {
|
|
86
85
|
s.forEach(({
|
|
87
86
|
value: r,
|
|
88
|
-
el:
|
|
89
|
-
property:
|
|
87
|
+
el: a,
|
|
88
|
+
property: c
|
|
90
89
|
}) => {
|
|
91
|
-
r ?
|
|
90
|
+
r ? a.style.setProperty(c, r) : a.style.removeProperty(c);
|
|
92
91
|
});
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function Se(e) {
|
|
96
95
|
const t = [];
|
|
97
96
|
return [].forEach.call(e.children, (s) => {
|
|
98
97
|
s.getAttribute("aria-hidden") === "true" && t.push(s);
|
|
99
98
|
}), t;
|
|
100
99
|
}
|
|
101
|
-
class
|
|
100
|
+
class Ce {
|
|
102
101
|
constructor() {
|
|
103
102
|
this.modals = [], this.containers = [];
|
|
104
103
|
}
|
|
@@ -107,9 +106,9 @@ class Oe {
|
|
|
107
106
|
if (o !== -1)
|
|
108
107
|
return o;
|
|
109
108
|
o = this.modals.length, this.modals.push(t), t.modalRef && K(t.modalRef, !1);
|
|
110
|
-
const i =
|
|
111
|
-
|
|
112
|
-
const r =
|
|
109
|
+
const i = Se(s);
|
|
110
|
+
oe(s, t.mount, t.modalRef, i, !0);
|
|
111
|
+
const r = Y(this.containers, (a) => a.container === s);
|
|
113
112
|
return r !== -1 ? (this.containers[r].modals.push(t), o) : (this.containers.push({
|
|
114
113
|
modals: [t],
|
|
115
114
|
container: s,
|
|
@@ -118,19 +117,19 @@ class Oe {
|
|
|
118
117
|
}), o);
|
|
119
118
|
}
|
|
120
119
|
mount(t, s) {
|
|
121
|
-
const o =
|
|
120
|
+
const o = Y(this.containers, (r) => r.modals.includes(t)), i = this.containers[o];
|
|
122
121
|
i.restore || (i.restore = Fe(i, s));
|
|
123
122
|
}
|
|
124
123
|
remove(t, s = !0) {
|
|
125
124
|
const o = this.modals.indexOf(t);
|
|
126
125
|
if (o === -1)
|
|
127
126
|
return o;
|
|
128
|
-
const i =
|
|
127
|
+
const i = Y(this.containers, (a) => a.modals.includes(t)), r = this.containers[i];
|
|
129
128
|
if (r.modals.splice(r.modals.indexOf(t), 1), this.modals.splice(o, 1), r.modals.length === 0)
|
|
130
|
-
r.restore && r.restore(), t.modalRef && K(t.modalRef, s),
|
|
129
|
+
r.restore && r.restore(), t.modalRef && K(t.modalRef, s), oe(r.container, t.mount, t.modalRef, r.hiddenSiblings, !1), this.containers.splice(i, 1);
|
|
131
130
|
else {
|
|
132
|
-
const
|
|
133
|
-
|
|
131
|
+
const a = r.modals[r.modals.length - 1];
|
|
132
|
+
a.modalRef && K(a.modalRef, !1);
|
|
134
133
|
}
|
|
135
134
|
return o;
|
|
136
135
|
}
|
|
@@ -138,70 +137,70 @@ class Oe {
|
|
|
138
137
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
|
-
const
|
|
142
|
-
function
|
|
140
|
+
const Me = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
141
|
+
function we(e) {
|
|
143
142
|
const t = parseInt(e.getAttribute("tabindex") || "", 10);
|
|
144
143
|
return Number.isNaN(t) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : t;
|
|
145
144
|
}
|
|
146
|
-
function
|
|
145
|
+
function Oe(e) {
|
|
147
146
|
if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name)
|
|
148
147
|
return !1;
|
|
149
148
|
const t = (o) => e.ownerDocument.querySelector(`input[type="radio"]${o}`);
|
|
150
149
|
let s = t(`[name="${e.name}"]:checked`);
|
|
151
150
|
return s || (s = t(`[name="${e.name}"]`)), s !== e;
|
|
152
151
|
}
|
|
153
|
-
function
|
|
154
|
-
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" ||
|
|
152
|
+
function Ae(e) {
|
|
153
|
+
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || Oe(e));
|
|
155
154
|
}
|
|
156
|
-
function
|
|
155
|
+
function De(e) {
|
|
157
156
|
const t = [], s = [];
|
|
158
|
-
return Array.from(e.querySelectorAll(
|
|
159
|
-
const r =
|
|
160
|
-
r === -1 || !
|
|
157
|
+
return Array.from(e.querySelectorAll(Me)).forEach((o, i) => {
|
|
158
|
+
const r = we(o);
|
|
159
|
+
r === -1 || !Ae(o) || (r === 0 ? t.push(o) : s.push({
|
|
161
160
|
documentOrder: i,
|
|
162
161
|
tabIndex: r,
|
|
163
162
|
node: o
|
|
164
163
|
}));
|
|
165
164
|
}), s.sort((o, i) => o.tabIndex === i.tabIndex ? o.documentOrder - i.documentOrder : o.tabIndex - i.tabIndex).map((o) => o.node).concat(t);
|
|
166
165
|
}
|
|
167
|
-
function
|
|
166
|
+
function Le() {
|
|
168
167
|
return !0;
|
|
169
168
|
}
|
|
170
|
-
function
|
|
169
|
+
function z(e) {
|
|
171
170
|
const {
|
|
172
171
|
children: t,
|
|
173
172
|
disableAutoFocus: s = !1,
|
|
174
173
|
disableEnforceFocus: o = !1,
|
|
175
174
|
disableRestoreFocus: i = !1,
|
|
176
|
-
getTabbable: r =
|
|
177
|
-
isEnabled:
|
|
178
|
-
open:
|
|
179
|
-
} = e, m = u.useRef(!1), E = u.useRef(null),
|
|
175
|
+
getTabbable: r = De,
|
|
176
|
+
isEnabled: a = Le,
|
|
177
|
+
open: c
|
|
178
|
+
} = e, m = u.useRef(!1), E = u.useRef(null), P = u.useRef(null), h = u.useRef(null), y = u.useRef(null), b = u.useRef(!1), p = u.useRef(null), M = re(ve(t), p), N = u.useRef(null);
|
|
180
179
|
u.useEffect(() => {
|
|
181
|
-
!
|
|
182
|
-
}, [s,
|
|
183
|
-
if (!
|
|
180
|
+
!c || !p.current || (b.current = !s);
|
|
181
|
+
}, [s, c]), u.useEffect(() => {
|
|
182
|
+
if (!c || !p.current)
|
|
184
183
|
return;
|
|
185
|
-
const l =
|
|
184
|
+
const l = O(p.current);
|
|
186
185
|
return p.current.contains(l.activeElement) || (p.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
187
186
|
`)), p.current.setAttribute("tabIndex", "-1")), b.current && p.current.focus()), () => {
|
|
188
187
|
i || (h.current && h.current.focus && (m.current = !0, h.current.focus()), h.current = null);
|
|
189
188
|
};
|
|
190
|
-
}, [
|
|
191
|
-
if (!
|
|
189
|
+
}, [c]), u.useEffect(() => {
|
|
190
|
+
if (!c || !p.current)
|
|
192
191
|
return;
|
|
193
|
-
const l =
|
|
194
|
-
N.current = T, !(o || !
|
|
195
|
-
},
|
|
196
|
-
var
|
|
192
|
+
const l = O(p.current), g = (T) => {
|
|
193
|
+
N.current = T, !(o || !a() || T.key !== "Tab") && l.activeElement === p.current && T.shiftKey && (m.current = !0, P.current && P.current.focus());
|
|
194
|
+
}, k = () => {
|
|
195
|
+
var R, w;
|
|
197
196
|
const T = p.current;
|
|
198
197
|
if (T === null)
|
|
199
198
|
return;
|
|
200
|
-
if (!l.hasFocus() || !
|
|
199
|
+
if (!l.hasFocus() || !a() || m.current) {
|
|
201
200
|
m.current = !1;
|
|
202
201
|
return;
|
|
203
202
|
}
|
|
204
|
-
if (T.contains(l.activeElement) || o && l.activeElement !== E.current && l.activeElement !==
|
|
203
|
+
if (T.contains(l.activeElement) || o && l.activeElement !== E.current && l.activeElement !== P.current)
|
|
205
204
|
return;
|
|
206
205
|
if (l.activeElement !== y.current)
|
|
207
206
|
y.current = null;
|
|
@@ -210,45 +209,45 @@ function V(e) {
|
|
|
210
209
|
if (!b.current)
|
|
211
210
|
return;
|
|
212
211
|
let S = [];
|
|
213
|
-
if ((l.activeElement === E.current || l.activeElement ===
|
|
214
|
-
const D = !!((
|
|
215
|
-
typeof
|
|
212
|
+
if ((l.activeElement === E.current || l.activeElement === P.current) && (S = r(p.current)), S.length > 0) {
|
|
213
|
+
const D = !!((R = N.current) != null && R.shiftKey && ((w = N.current) == null ? void 0 : w.key) === "Tab"), U = S[0], L = S[S.length - 1];
|
|
214
|
+
typeof U != "string" && typeof L != "string" && (D ? L.focus() : U.focus());
|
|
216
215
|
} else
|
|
217
216
|
T.focus();
|
|
218
217
|
};
|
|
219
|
-
l.addEventListener("focusin",
|
|
220
|
-
const
|
|
221
|
-
l.activeElement && l.activeElement.tagName === "BODY" &&
|
|
218
|
+
l.addEventListener("focusin", k), l.addEventListener("keydown", g, !0);
|
|
219
|
+
const A = setInterval(() => {
|
|
220
|
+
l.activeElement && l.activeElement.tagName === "BODY" && k();
|
|
222
221
|
}, 50);
|
|
223
222
|
return () => {
|
|
224
|
-
clearInterval(
|
|
223
|
+
clearInterval(A), l.removeEventListener("focusin", k), l.removeEventListener("keydown", g, !0);
|
|
225
224
|
};
|
|
226
|
-
}, [s, o, i,
|
|
227
|
-
const
|
|
225
|
+
}, [s, o, i, a, c, r]);
|
|
226
|
+
const F = (l) => {
|
|
228
227
|
h.current === null && (h.current = l.relatedTarget), b.current = !0, y.current = l.target;
|
|
229
228
|
const g = t.props.onFocus;
|
|
230
229
|
g && g(l);
|
|
231
|
-
},
|
|
230
|
+
}, x = (l) => {
|
|
232
231
|
h.current === null && (h.current = l.relatedTarget), b.current = !0;
|
|
233
232
|
};
|
|
234
|
-
return /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ se(u.Fragment, {
|
|
235
234
|
children: [/* @__PURE__ */ j("div", {
|
|
236
|
-
tabIndex:
|
|
237
|
-
onFocus:
|
|
235
|
+
tabIndex: c ? 0 : -1,
|
|
236
|
+
onFocus: x,
|
|
238
237
|
ref: E,
|
|
239
238
|
"data-testid": "sentinelStart"
|
|
240
239
|
}), /* @__PURE__ */ u.cloneElement(t, {
|
|
241
|
-
ref:
|
|
242
|
-
onFocus:
|
|
240
|
+
ref: M,
|
|
241
|
+
onFocus: F
|
|
243
242
|
}), /* @__PURE__ */ j("div", {
|
|
244
|
-
tabIndex:
|
|
245
|
-
onFocus:
|
|
246
|
-
ref:
|
|
243
|
+
tabIndex: c ? 0 : -1,
|
|
244
|
+
onFocus: x,
|
|
245
|
+
ref: P,
|
|
247
246
|
"data-testid": "sentinelEnd"
|
|
248
247
|
})]
|
|
249
248
|
});
|
|
250
249
|
}
|
|
251
|
-
process.env.NODE_ENV !== "production" && (
|
|
250
|
+
process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
252
251
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
253
252
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
254
253
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -302,62 +301,62 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
302
301
|
*/
|
|
303
302
|
open: n.bool.isRequired
|
|
304
303
|
});
|
|
305
|
-
process.env.NODE_ENV !== "production" && (
|
|
306
|
-
function
|
|
304
|
+
process.env.NODE_ENV !== "production" && (z.propTypes = ye(z.propTypes));
|
|
305
|
+
function Be(e) {
|
|
307
306
|
return typeof e == "function" ? e() : e;
|
|
308
307
|
}
|
|
309
|
-
function
|
|
308
|
+
function je(e) {
|
|
310
309
|
return e ? e.props.hasOwnProperty("in") : !1;
|
|
311
310
|
}
|
|
312
|
-
const
|
|
313
|
-
},
|
|
314
|
-
function
|
|
311
|
+
const ne = () => {
|
|
312
|
+
}, q = new Ce();
|
|
313
|
+
function Ke(e) {
|
|
315
314
|
const {
|
|
316
315
|
container: t,
|
|
317
316
|
disableEscapeKeyDown: s = !1,
|
|
318
317
|
disableScrollLock: o = !1,
|
|
319
318
|
closeAfterTransition: i = !1,
|
|
320
319
|
onTransitionEnter: r,
|
|
321
|
-
onTransitionExited:
|
|
322
|
-
children:
|
|
320
|
+
onTransitionExited: a,
|
|
321
|
+
children: c,
|
|
323
322
|
onClose: m,
|
|
324
323
|
open: E,
|
|
325
|
-
rootRef:
|
|
326
|
-
} = e, h = u.useRef({}), y = u.useRef(null), b = u.useRef(null), p =
|
|
327
|
-
let
|
|
328
|
-
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (
|
|
329
|
-
const l = () =>
|
|
330
|
-
|
|
324
|
+
rootRef: P
|
|
325
|
+
} = e, h = u.useRef({}), y = u.useRef(null), b = u.useRef(null), p = re(b, P), [M, N] = u.useState(!E), F = je(c);
|
|
326
|
+
let x = !0;
|
|
327
|
+
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (x = !1);
|
|
328
|
+
const l = () => O(y.current), g = () => (h.current.modalRef = b.current, h.current.mount = y.current, h.current), k = () => {
|
|
329
|
+
q.mount(g(), {
|
|
331
330
|
disableScrollLock: o
|
|
332
331
|
}), b.current && (b.current.scrollTop = 0);
|
|
333
|
-
},
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
}), T = () =>
|
|
337
|
-
y.current =
|
|
338
|
-
}),
|
|
339
|
-
|
|
340
|
-
}, [
|
|
332
|
+
}, A = Q(() => {
|
|
333
|
+
const f = Be(t) || l().body;
|
|
334
|
+
q.add(g(), f), b.current && k();
|
|
335
|
+
}), T = () => q.isTopModal(g()), S = Q((f) => {
|
|
336
|
+
y.current = f, f && (E && T() ? k() : b.current && K(b.current, x));
|
|
337
|
+
}), R = u.useCallback(() => {
|
|
338
|
+
q.remove(g(), x);
|
|
339
|
+
}, [x]);
|
|
341
340
|
u.useEffect(() => () => {
|
|
342
|
-
|
|
343
|
-
}, [
|
|
344
|
-
E ?
|
|
345
|
-
}, [E,
|
|
346
|
-
const
|
|
347
|
-
var
|
|
348
|
-
(
|
|
349
|
-
!T()) && (s || (
|
|
350
|
-
}, D = (
|
|
351
|
-
var
|
|
352
|
-
(
|
|
341
|
+
R();
|
|
342
|
+
}, [R]), u.useEffect(() => {
|
|
343
|
+
E ? A() : (!F || !i) && R();
|
|
344
|
+
}, [E, R, F, i, A]);
|
|
345
|
+
const w = (f) => (d) => {
|
|
346
|
+
var v;
|
|
347
|
+
(v = f.onKeyDown) == null || v.call(f, d), !(d.key !== "Escape" || d.which === 229 || // Wait until IME is settled.
|
|
348
|
+
!T()) && (s || (d.stopPropagation(), m && m(d, "escapeKeyDown")));
|
|
349
|
+
}, D = (f) => (d) => {
|
|
350
|
+
var v;
|
|
351
|
+
(v = f.onClick) == null || v.call(f, d), d.target === d.currentTarget && m && m(d, "backdropClick");
|
|
353
352
|
};
|
|
354
353
|
return {
|
|
355
|
-
getRootProps: (
|
|
356
|
-
const
|
|
357
|
-
delete
|
|
358
|
-
const
|
|
359
|
-
...
|
|
360
|
-
...
|
|
354
|
+
getRootProps: (f = {}) => {
|
|
355
|
+
const d = ge(e);
|
|
356
|
+
delete d.onTransitionEnter, delete d.onTransitionExited;
|
|
357
|
+
const v = {
|
|
358
|
+
...d,
|
|
359
|
+
...f
|
|
361
360
|
};
|
|
362
361
|
return {
|
|
363
362
|
/*
|
|
@@ -367,52 +366,52 @@ function We(e) {
|
|
|
367
366
|
* https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
|
|
368
367
|
*/
|
|
369
368
|
role: "presentation",
|
|
370
|
-
...
|
|
371
|
-
onKeyDown:
|
|
369
|
+
...v,
|
|
370
|
+
onKeyDown: w(v),
|
|
372
371
|
ref: p
|
|
373
372
|
};
|
|
374
373
|
},
|
|
375
|
-
getBackdropProps: (
|
|
376
|
-
const
|
|
374
|
+
getBackdropProps: (f = {}) => {
|
|
375
|
+
const d = f;
|
|
377
376
|
return {
|
|
378
377
|
"aria-hidden": !0,
|
|
379
|
-
...
|
|
380
|
-
onClick: D(
|
|
378
|
+
...d,
|
|
379
|
+
onClick: D(d),
|
|
381
380
|
open: E
|
|
382
381
|
};
|
|
383
382
|
},
|
|
384
383
|
getTransitionProps: () => {
|
|
385
|
-
const
|
|
384
|
+
const f = () => {
|
|
386
385
|
N(!1), r && r();
|
|
387
|
-
},
|
|
388
|
-
N(!0),
|
|
386
|
+
}, d = () => {
|
|
387
|
+
N(!0), a && a(), i && R();
|
|
389
388
|
};
|
|
390
389
|
return {
|
|
391
|
-
onEnter:
|
|
392
|
-
onExited:
|
|
390
|
+
onEnter: Z(f, (c == null ? void 0 : c.props.onEnter) ?? ne),
|
|
391
|
+
onExited: Z(d, (c == null ? void 0 : c.props.onExited) ?? ne)
|
|
393
392
|
};
|
|
394
393
|
},
|
|
395
394
|
rootRef: p,
|
|
396
395
|
portalRef: S,
|
|
397
396
|
isTopModal: T,
|
|
398
|
-
exited:
|
|
399
|
-
hasTransition:
|
|
397
|
+
exited: M,
|
|
398
|
+
hasTransition: F
|
|
400
399
|
};
|
|
401
400
|
}
|
|
402
|
-
function
|
|
403
|
-
return
|
|
401
|
+
function Ue(e) {
|
|
402
|
+
return be("MuiModal", e);
|
|
404
403
|
}
|
|
405
|
-
const
|
|
404
|
+
const rt = me("MuiModal", ["root", "hidden", "backdrop"]), We = (e) => {
|
|
406
405
|
const {
|
|
407
406
|
open: t,
|
|
408
407
|
exited: s,
|
|
409
408
|
classes: o
|
|
410
409
|
} = e;
|
|
411
|
-
return
|
|
410
|
+
return Te({
|
|
412
411
|
root: ["root", !t && s && "hidden"],
|
|
413
412
|
backdrop: ["backdrop"]
|
|
414
|
-
},
|
|
415
|
-
},
|
|
413
|
+
}, Ue, o);
|
|
414
|
+
}, qe = ie("div", {
|
|
416
415
|
name: "MuiModal",
|
|
417
416
|
slot: "Root",
|
|
418
417
|
overridesResolver: (e, t) => {
|
|
@@ -421,7 +420,7 @@ const ct = he("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
421
420
|
} = e;
|
|
422
421
|
return [t.root, !s.open && s.exited && t.hidden];
|
|
423
422
|
}
|
|
424
|
-
})(
|
|
423
|
+
})(he(({
|
|
425
424
|
theme: e
|
|
426
425
|
}) => ({
|
|
427
426
|
position: "fixed",
|
|
@@ -438,133 +437,133 @@ const ct = he("MuiModal", ["root", "hidden", "backdrop"]), He = (e) => {
|
|
|
438
437
|
visibility: "hidden"
|
|
439
438
|
}
|
|
440
439
|
}]
|
|
441
|
-
}))),
|
|
440
|
+
}))), He = ie(Pe, {
|
|
442
441
|
name: "MuiModal",
|
|
443
442
|
slot: "Backdrop",
|
|
444
443
|
overridesResolver: (e, t) => t.backdrop
|
|
445
444
|
})({
|
|
446
445
|
zIndex: -1
|
|
447
|
-
}),
|
|
448
|
-
const o =
|
|
446
|
+
}), ze = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
|
447
|
+
const o = Ee({
|
|
449
448
|
name: "MuiModal",
|
|
450
449
|
props: t
|
|
451
450
|
}), {
|
|
452
|
-
BackdropComponent: i =
|
|
451
|
+
BackdropComponent: i = He,
|
|
453
452
|
BackdropProps: r,
|
|
454
|
-
classes:
|
|
455
|
-
className:
|
|
453
|
+
classes: a,
|
|
454
|
+
className: c,
|
|
456
455
|
closeAfterTransition: m = !1,
|
|
457
456
|
children: E,
|
|
458
|
-
container:
|
|
457
|
+
container: P,
|
|
459
458
|
component: h,
|
|
460
459
|
components: y = {},
|
|
461
460
|
componentsProps: b = {},
|
|
462
461
|
disableAutoFocus: p = !1,
|
|
463
|
-
disableEnforceFocus:
|
|
462
|
+
disableEnforceFocus: M = !1,
|
|
464
463
|
disableEscapeKeyDown: N = !1,
|
|
465
|
-
disablePortal:
|
|
466
|
-
disableRestoreFocus:
|
|
464
|
+
disablePortal: F = !1,
|
|
465
|
+
disableRestoreFocus: x = !1,
|
|
467
466
|
disableScrollLock: l = !1,
|
|
468
467
|
hideBackdrop: g = !1,
|
|
469
|
-
keepMounted:
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
slots: B = {},
|
|
468
|
+
keepMounted: k = !1,
|
|
469
|
+
onClose: A,
|
|
470
|
+
onTransitionEnter: T,
|
|
471
|
+
onTransitionExited: S,
|
|
472
|
+
open: R,
|
|
473
|
+
slotProps: w = {},
|
|
474
|
+
slots: D = {},
|
|
477
475
|
// eslint-disable-next-line react/prop-types
|
|
478
476
|
theme: U,
|
|
479
|
-
...
|
|
480
|
-
} = o,
|
|
477
|
+
...L
|
|
478
|
+
} = o, V = {
|
|
481
479
|
...o,
|
|
482
480
|
closeAfterTransition: m,
|
|
483
481
|
disableAutoFocus: p,
|
|
484
|
-
disableEnforceFocus:
|
|
482
|
+
disableEnforceFocus: M,
|
|
485
483
|
disableEscapeKeyDown: N,
|
|
486
|
-
disablePortal:
|
|
487
|
-
disableRestoreFocus:
|
|
484
|
+
disablePortal: F,
|
|
485
|
+
disableRestoreFocus: x,
|
|
488
486
|
disableScrollLock: l,
|
|
489
487
|
hideBackdrop: g,
|
|
490
|
-
keepMounted:
|
|
488
|
+
keepMounted: k
|
|
491
489
|
}, {
|
|
492
490
|
getRootProps: f,
|
|
493
|
-
getBackdropProps:
|
|
494
|
-
getTransitionProps:
|
|
495
|
-
portalRef:
|
|
496
|
-
isTopModal:
|
|
497
|
-
exited:
|
|
498
|
-
hasTransition:
|
|
499
|
-
} =
|
|
500
|
-
...
|
|
491
|
+
getBackdropProps: d,
|
|
492
|
+
getTransitionProps: v,
|
|
493
|
+
portalRef: ce,
|
|
494
|
+
isTopModal: le,
|
|
495
|
+
exited: _,
|
|
496
|
+
hasTransition: G
|
|
497
|
+
} = Ke({
|
|
498
|
+
...V,
|
|
501
499
|
rootRef: s
|
|
502
|
-
}),
|
|
503
|
-
...
|
|
504
|
-
exited:
|
|
505
|
-
}, I =
|
|
506
|
-
if (E.props.tabIndex === void 0 && (W.tabIndex = "-1"),
|
|
500
|
+
}), B = {
|
|
501
|
+
...V,
|
|
502
|
+
exited: _
|
|
503
|
+
}, I = We(B), W = {};
|
|
504
|
+
if (E.props.tabIndex === void 0 && (W.tabIndex = "-1"), G) {
|
|
507
505
|
const {
|
|
508
|
-
onEnter:
|
|
509
|
-
onExited:
|
|
510
|
-
} =
|
|
511
|
-
W.onEnter =
|
|
506
|
+
onEnter: C,
|
|
507
|
+
onExited: $
|
|
508
|
+
} = v();
|
|
509
|
+
W.onEnter = C, W.onExited = $;
|
|
512
510
|
}
|
|
513
|
-
const
|
|
514
|
-
..._,
|
|
511
|
+
const X = {
|
|
515
512
|
slots: {
|
|
516
513
|
root: y.Root,
|
|
517
514
|
backdrop: y.Backdrop,
|
|
518
|
-
...
|
|
515
|
+
...D
|
|
519
516
|
},
|
|
520
517
|
slotProps: {
|
|
521
518
|
...b,
|
|
522
|
-
...
|
|
519
|
+
...w
|
|
523
520
|
}
|
|
524
|
-
}, [
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
521
|
+
}, [ue, de] = ee("root", {
|
|
522
|
+
ref: s,
|
|
523
|
+
elementType: qe,
|
|
524
|
+
externalForwardedProps: {
|
|
525
|
+
...X,
|
|
526
|
+
...L,
|
|
527
|
+
component: h
|
|
531
528
|
},
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
529
|
+
getSlotProps: f,
|
|
530
|
+
ownerState: B,
|
|
531
|
+
className: J(c, I == null ? void 0 : I.root, !B.open && B.exited && (I == null ? void 0 : I.hidden))
|
|
532
|
+
}), [fe, pe] = ee("backdrop", {
|
|
533
|
+
ref: r == null ? void 0 : r.ref,
|
|
535
534
|
elementType: i,
|
|
536
|
-
externalForwardedProps:
|
|
535
|
+
externalForwardedProps: X,
|
|
536
|
+
shouldForwardComponentProp: !0,
|
|
537
537
|
additionalProps: r,
|
|
538
|
-
getSlotProps: (
|
|
539
|
-
...
|
|
540
|
-
onClick: (
|
|
541
|
-
|
|
538
|
+
getSlotProps: (C) => d({
|
|
539
|
+
...C,
|
|
540
|
+
onClick: ($) => {
|
|
541
|
+
C != null && C.onClick && C.onClick($);
|
|
542
542
|
}
|
|
543
543
|
}),
|
|
544
|
-
className:
|
|
545
|
-
ownerState:
|
|
546
|
-
})
|
|
547
|
-
return !
|
|
548
|
-
ref:
|
|
549
|
-
container:
|
|
550
|
-
disablePortal:
|
|
551
|
-
children: /* @__PURE__ */
|
|
552
|
-
...
|
|
553
|
-
children: [!g && i ? /* @__PURE__ */ j(
|
|
554
|
-
...
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
disableEnforceFocus: w,
|
|
544
|
+
className: J(r == null ? void 0 : r.className, I == null ? void 0 : I.backdrop),
|
|
545
|
+
ownerState: B
|
|
546
|
+
});
|
|
547
|
+
return !k && !R && (!G || _) ? null : /* @__PURE__ */ j(Re, {
|
|
548
|
+
ref: ce,
|
|
549
|
+
container: P,
|
|
550
|
+
disablePortal: F,
|
|
551
|
+
children: /* @__PURE__ */ se(ue, {
|
|
552
|
+
...de,
|
|
553
|
+
children: [!g && i ? /* @__PURE__ */ j(fe, {
|
|
554
|
+
...pe
|
|
555
|
+
}) : null, /* @__PURE__ */ j(z, {
|
|
556
|
+
disableEnforceFocus: M,
|
|
558
557
|
disableAutoFocus: p,
|
|
559
|
-
disableRestoreFocus:
|
|
560
|
-
isEnabled:
|
|
561
|
-
open:
|
|
558
|
+
disableRestoreFocus: x,
|
|
559
|
+
isEnabled: le,
|
|
560
|
+
open: R,
|
|
562
561
|
children: /* @__PURE__ */ u.cloneElement(E, W)
|
|
563
562
|
})]
|
|
564
563
|
})
|
|
565
564
|
});
|
|
566
565
|
});
|
|
567
|
-
process.env.NODE_ENV !== "production" && (
|
|
566
|
+
process.env.NODE_ENV !== "production" && (ze.propTypes = {
|
|
568
567
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
569
568
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
570
569
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -614,7 +613,7 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
614
613
|
/**
|
|
615
614
|
* The components used for each slot inside.
|
|
616
615
|
*
|
|
617
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in
|
|
616
|
+
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
618
617
|
*
|
|
619
618
|
* @default {}
|
|
620
619
|
*/
|
|
@@ -626,7 +625,7 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
626
625
|
* The extra props for the slot components.
|
|
627
626
|
* You can override the existing props or add new ones.
|
|
628
627
|
*
|
|
629
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
628
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
630
629
|
*
|
|
631
630
|
* @default {}
|
|
632
631
|
*/
|
|
@@ -644,7 +643,7 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
644
643
|
* By default, it uses the body of the top-level document object,
|
|
645
644
|
* so it's simply `document.body` most of the time.
|
|
646
645
|
*/
|
|
647
|
-
container: n.oneOfType([
|
|
646
|
+
container: n.oneOfType([xe, n.func]),
|
|
648
647
|
/**
|
|
649
648
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
650
649
|
* replace it to the last focused element when it closes.
|
|
@@ -696,11 +695,6 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
696
695
|
* @default false
|
|
697
696
|
*/
|
|
698
697
|
keepMounted: n.bool,
|
|
699
|
-
/**
|
|
700
|
-
* Callback fired when the backdrop is clicked.
|
|
701
|
-
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
702
|
-
*/
|
|
703
|
-
onBackdropClick: n.func,
|
|
704
698
|
/**
|
|
705
699
|
* Callback fired when the component requests to be closed.
|
|
706
700
|
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
@@ -744,10 +738,10 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
744
738
|
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
745
739
|
});
|
|
746
740
|
export {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
741
|
+
z as F,
|
|
742
|
+
ze as M,
|
|
743
|
+
Ce as a,
|
|
744
|
+
ke as b,
|
|
745
|
+
Ue as g,
|
|
746
|
+
rt as m
|
|
753
747
|
};
|