@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,57 +1,56 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { G as
|
|
3
|
-
import { u as
|
|
2
|
+
import { F as se, G as ie, H as k, K as n, P as e } from "./identifier-BJqC6EXa.js";
|
|
3
|
+
import { u as pe } from "./useTheme-Dt-VOIyT.js";
|
|
4
4
|
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
-
import { u as
|
|
6
|
-
import { m as
|
|
7
|
-
import { u as p } from "./useSlot-
|
|
8
|
-
import { P as
|
|
9
|
-
import { F as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
import { M as ho } from "./Modal-CFv4UMTP.js";
|
|
5
|
+
import { u as ce, s as m, c as de } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
6
|
+
import { m as ue } from "./memoTheme-D_Qap2ZW.js";
|
|
7
|
+
import { u as p } from "./useSlot-DhC6EPU2.js";
|
|
8
|
+
import { P as w } from "./Paper-BTFv1nzl.js";
|
|
9
|
+
import { F as W, B as me } from "./Backdrop-CRrNkGxU.js";
|
|
10
|
+
import { u as be } from "./useId-CK6Kn3Tn.js";
|
|
11
|
+
import { M as fe } from "./Modal-BpJ9BCOo.js";
|
|
13
12
|
const O = /* @__PURE__ */ u.createContext({});
|
|
14
13
|
process.env.NODE_ENV !== "production" && (O.displayName = "DialogContext");
|
|
15
|
-
function
|
|
16
|
-
return
|
|
14
|
+
function ye(r) {
|
|
15
|
+
return ie("MuiDialog", r);
|
|
17
16
|
}
|
|
18
|
-
const P =
|
|
17
|
+
const P = se("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), he = m(me, {
|
|
19
18
|
name: "MuiDialog",
|
|
20
19
|
slot: "Backdrop",
|
|
21
|
-
overrides: (r,
|
|
20
|
+
overrides: (r, o) => o.backdrop
|
|
22
21
|
})({
|
|
23
22
|
// Improve scrollable dialog support.
|
|
24
23
|
zIndex: -1
|
|
25
|
-
}),
|
|
24
|
+
}), ge = (r) => {
|
|
26
25
|
const {
|
|
27
|
-
classes:
|
|
26
|
+
classes: o,
|
|
28
27
|
scroll: a,
|
|
29
28
|
maxWidth: c,
|
|
30
29
|
fullWidth: d,
|
|
31
30
|
fullScreen: b
|
|
32
31
|
} = r, f = {
|
|
33
32
|
root: ["root"],
|
|
34
|
-
container: ["container", `scroll${
|
|
35
|
-
paper: ["paper", `paperScroll${
|
|
33
|
+
container: ["container", `scroll${n(a)}`],
|
|
34
|
+
paper: ["paper", `paperScroll${n(a)}`, `paperWidth${n(String(c))}`, d && "paperFullWidth", b && "paperFullScreen"]
|
|
36
35
|
};
|
|
37
|
-
return
|
|
38
|
-
},
|
|
36
|
+
return de(f, ye, o);
|
|
37
|
+
}, xe = m(fe, {
|
|
39
38
|
name: "MuiDialog",
|
|
40
39
|
slot: "Root",
|
|
41
|
-
overridesResolver: (r,
|
|
40
|
+
overridesResolver: (r, o) => o.root
|
|
42
41
|
})({
|
|
43
42
|
"@media print": {
|
|
44
43
|
// Use !important to override the Modal inline-style.
|
|
45
44
|
position: "absolute !important"
|
|
46
45
|
}
|
|
47
|
-
}),
|
|
46
|
+
}), ke = m("div", {
|
|
48
47
|
name: "MuiDialog",
|
|
49
48
|
slot: "Container",
|
|
50
|
-
overridesResolver: (r,
|
|
49
|
+
overridesResolver: (r, o) => {
|
|
51
50
|
const {
|
|
52
51
|
ownerState: a
|
|
53
52
|
} = r;
|
|
54
|
-
return [
|
|
53
|
+
return [o.container, o[`scroll${n(a.scroll)}`]];
|
|
55
54
|
}
|
|
56
55
|
})({
|
|
57
56
|
height: "100%",
|
|
@@ -86,16 +85,16 @@ const P = io("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "pa
|
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
}]
|
|
89
|
-
}),
|
|
88
|
+
}), Pe = m(w, {
|
|
90
89
|
name: "MuiDialog",
|
|
91
90
|
slot: "Paper",
|
|
92
|
-
overridesResolver: (r,
|
|
91
|
+
overridesResolver: (r, o) => {
|
|
93
92
|
const {
|
|
94
93
|
ownerState: a
|
|
95
94
|
} = r;
|
|
96
|
-
return [
|
|
95
|
+
return [o.paper, o[`scrollPaper${n(a.scroll)}`], o[`paperWidth${n(String(a.maxWidth))}`], a.fullWidth && o.paperFullWidth, a.fullScreen && o.paperFullScreen];
|
|
97
96
|
}
|
|
98
|
-
})(
|
|
97
|
+
})(ue(({
|
|
99
98
|
theme: r
|
|
100
99
|
}) => ({
|
|
101
100
|
margin: 32,
|
|
@@ -125,8 +124,8 @@ const P = io("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "pa
|
|
|
125
124
|
}
|
|
126
125
|
}, {
|
|
127
126
|
props: ({
|
|
128
|
-
ownerState:
|
|
129
|
-
}) => !
|
|
127
|
+
ownerState: o
|
|
128
|
+
}) => !o.maxWidth,
|
|
130
129
|
style: {
|
|
131
130
|
maxWidth: "calc(100% - 64px)"
|
|
132
131
|
}
|
|
@@ -142,29 +141,29 @@ const P = io("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "pa
|
|
|
142
141
|
}
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
|
-
}, ...Object.keys(r.breakpoints.values).filter((
|
|
144
|
+
}, ...Object.keys(r.breakpoints.values).filter((o) => o !== "xs").map((o) => ({
|
|
146
145
|
props: {
|
|
147
|
-
maxWidth:
|
|
146
|
+
maxWidth: o
|
|
148
147
|
},
|
|
149
148
|
style: {
|
|
150
|
-
maxWidth: `${r.breakpoints.values[
|
|
149
|
+
maxWidth: `${r.breakpoints.values[o]}${r.breakpoints.unit}`,
|
|
151
150
|
[`&.${P.paperScrollBody}`]: {
|
|
152
|
-
[r.breakpoints.down(r.breakpoints.values[
|
|
151
|
+
[r.breakpoints.down(r.breakpoints.values[o] + 32 * 2)]: {
|
|
153
152
|
maxWidth: "calc(100% - 64px)"
|
|
154
153
|
}
|
|
155
154
|
}
|
|
156
155
|
}
|
|
157
156
|
})), {
|
|
158
157
|
props: ({
|
|
159
|
-
ownerState:
|
|
160
|
-
}) =>
|
|
158
|
+
ownerState: o
|
|
159
|
+
}) => o.fullWidth,
|
|
161
160
|
style: {
|
|
162
161
|
width: "calc(100% - 64px)"
|
|
163
162
|
}
|
|
164
163
|
}, {
|
|
165
164
|
props: ({
|
|
166
|
-
ownerState:
|
|
167
|
-
}) =>
|
|
165
|
+
ownerState: o
|
|
166
|
+
}) => o.fullScreen,
|
|
168
167
|
style: {
|
|
169
168
|
margin: 0,
|
|
170
169
|
width: "100%",
|
|
@@ -178,137 +177,136 @@ const P = io("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "pa
|
|
|
178
177
|
}
|
|
179
178
|
}
|
|
180
179
|
}]
|
|
181
|
-
}))),
|
|
182
|
-
const c =
|
|
183
|
-
props:
|
|
180
|
+
}))), Se = /* @__PURE__ */ u.forwardRef(function(o, a) {
|
|
181
|
+
const c = ce({
|
|
182
|
+
props: o,
|
|
184
183
|
name: "MuiDialog"
|
|
185
|
-
}), d =
|
|
184
|
+
}), d = pe(), b = {
|
|
186
185
|
enter: d.transitions.duration.enteringScreen,
|
|
187
186
|
exit: d.transitions.duration.leavingScreen
|
|
188
187
|
}, {
|
|
189
188
|
"aria-describedby": f,
|
|
190
189
|
"aria-labelledby": M,
|
|
191
|
-
"aria-modal":
|
|
192
|
-
BackdropComponent:
|
|
193
|
-
BackdropProps:
|
|
194
|
-
children:
|
|
195
|
-
className:
|
|
196
|
-
disableEscapeKeyDown:
|
|
197
|
-
fullScreen:
|
|
198
|
-
fullWidth:
|
|
199
|
-
maxWidth:
|
|
200
|
-
onBackdropClick: S,
|
|
190
|
+
"aria-modal": B = !0,
|
|
191
|
+
BackdropComponent: j,
|
|
192
|
+
BackdropProps: F,
|
|
193
|
+
children: $,
|
|
194
|
+
className: N,
|
|
195
|
+
disableEscapeKeyDown: S = !1,
|
|
196
|
+
fullScreen: R = !1,
|
|
197
|
+
fullWidth: E = !1,
|
|
198
|
+
maxWidth: A = "sm",
|
|
201
199
|
onClick: T,
|
|
202
200
|
onClose: y,
|
|
203
|
-
open:
|
|
204
|
-
PaperComponent:
|
|
205
|
-
PaperProps:
|
|
206
|
-
scroll:
|
|
207
|
-
slots:
|
|
208
|
-
slotProps:
|
|
209
|
-
TransitionComponent:
|
|
210
|
-
transitionDuration:
|
|
211
|
-
TransitionProps:
|
|
212
|
-
...
|
|
201
|
+
open: C,
|
|
202
|
+
PaperComponent: I = w,
|
|
203
|
+
PaperProps: D = {},
|
|
204
|
+
scroll: K = "paper",
|
|
205
|
+
slots: U = {},
|
|
206
|
+
slotProps: H = {},
|
|
207
|
+
TransitionComponent: L = W,
|
|
208
|
+
transitionDuration: v = b,
|
|
209
|
+
TransitionProps: V,
|
|
210
|
+
...X
|
|
213
211
|
} = c, t = {
|
|
214
212
|
...c,
|
|
215
|
-
disableEscapeKeyDown:
|
|
216
|
-
fullScreen:
|
|
217
|
-
fullWidth:
|
|
218
|
-
maxWidth:
|
|
219
|
-
scroll:
|
|
220
|
-
}, h =
|
|
221
|
-
g.current =
|
|
222
|
-
},
|
|
223
|
-
T && T(
|
|
224
|
-
}, x =
|
|
213
|
+
disableEscapeKeyDown: S,
|
|
214
|
+
fullScreen: R,
|
|
215
|
+
fullWidth: E,
|
|
216
|
+
maxWidth: A,
|
|
217
|
+
scroll: K
|
|
218
|
+
}, h = ge(t), g = u.useRef(), Y = (s) => {
|
|
219
|
+
g.current = s.target === s.currentTarget;
|
|
220
|
+
}, z = (s) => {
|
|
221
|
+
T && T(s), g.current && (g.current = null, y && y(s, "backdropClick"));
|
|
222
|
+
}, x = be(M), _ = u.useMemo(() => ({
|
|
225
223
|
titleId: x
|
|
226
|
-
}), [x]),
|
|
224
|
+
}), [x]), q = {
|
|
225
|
+
transition: L,
|
|
226
|
+
...U
|
|
227
|
+
}, G = {
|
|
227
228
|
transition: V,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
slotProps: J
|
|
237
|
-
}, [Q, Z] = p("root", {
|
|
238
|
-
elementType: Po,
|
|
229
|
+
paper: D,
|
|
230
|
+
backdrop: F,
|
|
231
|
+
...H
|
|
232
|
+
}, l = {
|
|
233
|
+
slots: q,
|
|
234
|
+
slotProps: G
|
|
235
|
+
}, [J, Q] = p("root", {
|
|
236
|
+
elementType: xe,
|
|
239
237
|
shouldForwardComponentProp: !0,
|
|
240
|
-
externalForwardedProps:
|
|
238
|
+
externalForwardedProps: l,
|
|
241
239
|
ownerState: t,
|
|
242
|
-
className: k(h.root,
|
|
240
|
+
className: k(h.root, N),
|
|
243
241
|
ref: a
|
|
244
|
-
}), [
|
|
245
|
-
elementType:
|
|
242
|
+
}), [Z, ee] = p("backdrop", {
|
|
243
|
+
elementType: he,
|
|
246
244
|
shouldForwardComponentProp: !0,
|
|
247
|
-
externalForwardedProps:
|
|
245
|
+
externalForwardedProps: l,
|
|
248
246
|
ownerState: t
|
|
249
|
-
}), [
|
|
250
|
-
elementType:
|
|
247
|
+
}), [oe, re] = p("paper", {
|
|
248
|
+
elementType: Pe,
|
|
251
249
|
shouldForwardComponentProp: !0,
|
|
252
|
-
externalForwardedProps:
|
|
250
|
+
externalForwardedProps: l,
|
|
253
251
|
ownerState: t,
|
|
254
|
-
className: k(h.paper,
|
|
255
|
-
}), [
|
|
256
|
-
elementType:
|
|
257
|
-
externalForwardedProps:
|
|
252
|
+
className: k(h.paper, D.className)
|
|
253
|
+
}), [ae, te] = p("container", {
|
|
254
|
+
elementType: ke,
|
|
255
|
+
externalForwardedProps: l,
|
|
258
256
|
ownerState: t,
|
|
259
257
|
className: k(h.container)
|
|
260
|
-
}), [
|
|
261
|
-
elementType:
|
|
262
|
-
externalForwardedProps:
|
|
258
|
+
}), [ne, le] = p("transition", {
|
|
259
|
+
elementType: W,
|
|
260
|
+
externalForwardedProps: l,
|
|
263
261
|
ownerState: t,
|
|
264
262
|
additionalProps: {
|
|
265
263
|
appear: !0,
|
|
266
|
-
in:
|
|
267
|
-
timeout:
|
|
264
|
+
in: C,
|
|
265
|
+
timeout: v,
|
|
268
266
|
role: "presentation"
|
|
269
267
|
}
|
|
270
268
|
});
|
|
271
|
-
return /* @__PURE__ */ i(
|
|
269
|
+
return /* @__PURE__ */ i(J, {
|
|
272
270
|
closeAfterTransition: !0,
|
|
273
271
|
slots: {
|
|
274
|
-
backdrop:
|
|
272
|
+
backdrop: Z
|
|
275
273
|
},
|
|
276
274
|
slotProps: {
|
|
277
275
|
backdrop: {
|
|
278
|
-
transitionDuration:
|
|
279
|
-
as:
|
|
280
|
-
...
|
|
276
|
+
transitionDuration: v,
|
|
277
|
+
as: j,
|
|
278
|
+
...ee
|
|
281
279
|
}
|
|
282
280
|
},
|
|
283
|
-
disableEscapeKeyDown:
|
|
281
|
+
disableEscapeKeyDown: S,
|
|
284
282
|
onClose: y,
|
|
285
|
-
open:
|
|
286
|
-
onClick:
|
|
287
|
-
...
|
|
288
|
-
...
|
|
289
|
-
children: /* @__PURE__ */ i(
|
|
290
|
-
...
|
|
291
|
-
children: /* @__PURE__ */ i(
|
|
292
|
-
onMouseDown:
|
|
293
|
-
...
|
|
294
|
-
children: /* @__PURE__ */ i(
|
|
295
|
-
as:
|
|
283
|
+
open: C,
|
|
284
|
+
onClick: z,
|
|
285
|
+
...Q,
|
|
286
|
+
...X,
|
|
287
|
+
children: /* @__PURE__ */ i(ne, {
|
|
288
|
+
...le,
|
|
289
|
+
children: /* @__PURE__ */ i(ae, {
|
|
290
|
+
onMouseDown: Y,
|
|
291
|
+
...te,
|
|
292
|
+
children: /* @__PURE__ */ i(oe, {
|
|
293
|
+
as: I,
|
|
296
294
|
elevation: 24,
|
|
297
295
|
role: "dialog",
|
|
298
296
|
"aria-describedby": f,
|
|
299
297
|
"aria-labelledby": x,
|
|
300
|
-
"aria-modal":
|
|
301
|
-
...
|
|
298
|
+
"aria-modal": B,
|
|
299
|
+
...re,
|
|
302
300
|
children: /* @__PURE__ */ i(O.Provider, {
|
|
303
|
-
value:
|
|
304
|
-
children:
|
|
301
|
+
value: _,
|
|
302
|
+
children: $
|
|
305
303
|
})
|
|
306
304
|
})
|
|
307
305
|
})
|
|
308
306
|
})
|
|
309
307
|
});
|
|
310
308
|
});
|
|
311
|
-
process.env.NODE_ENV !== "production" && (
|
|
309
|
+
process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
312
310
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
313
311
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
314
312
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -316,17 +314,17 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
316
314
|
/**
|
|
317
315
|
* The id(s) of the element(s) that describe the dialog.
|
|
318
316
|
*/
|
|
319
|
-
"aria-describedby":
|
|
317
|
+
"aria-describedby": e.string,
|
|
320
318
|
/**
|
|
321
319
|
* The id(s) of the element(s) that label the dialog.
|
|
322
320
|
*/
|
|
323
|
-
"aria-labelledby":
|
|
321
|
+
"aria-labelledby": e.string,
|
|
324
322
|
/**
|
|
325
323
|
* Informs assistive technologies that the element is modal.
|
|
326
324
|
* It's added on the element with role="dialog".
|
|
327
325
|
* @default true
|
|
328
326
|
*/
|
|
329
|
-
"aria-modal":
|
|
327
|
+
"aria-modal": e.oneOfType([e.oneOf(["false", "true"]), e.bool]),
|
|
330
328
|
/**
|
|
331
329
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
332
330
|
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
@@ -341,116 +339,111 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
341
339
|
* zIndex: -1,
|
|
342
340
|
* })
|
|
343
341
|
*/
|
|
344
|
-
BackdropComponent:
|
|
342
|
+
BackdropComponent: e.elementType,
|
|
345
343
|
/**
|
|
346
344
|
* @ignore
|
|
347
345
|
*/
|
|
348
|
-
BackdropProps:
|
|
346
|
+
BackdropProps: e.object,
|
|
349
347
|
/**
|
|
350
348
|
* Dialog children, usually the included sub-components.
|
|
351
349
|
*/
|
|
352
|
-
children:
|
|
350
|
+
children: e.node,
|
|
353
351
|
/**
|
|
354
352
|
* Override or extend the styles applied to the component.
|
|
355
353
|
*/
|
|
356
|
-
classes:
|
|
354
|
+
classes: e.object,
|
|
357
355
|
/**
|
|
358
356
|
* @ignore
|
|
359
357
|
*/
|
|
360
|
-
className:
|
|
358
|
+
className: e.string,
|
|
361
359
|
/**
|
|
362
360
|
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
363
361
|
* @default false
|
|
364
362
|
*/
|
|
365
|
-
disableEscapeKeyDown:
|
|
363
|
+
disableEscapeKeyDown: e.bool,
|
|
366
364
|
/**
|
|
367
365
|
* If `true`, the dialog is full-screen.
|
|
368
366
|
* @default false
|
|
369
367
|
*/
|
|
370
|
-
fullScreen:
|
|
368
|
+
fullScreen: e.bool,
|
|
371
369
|
/**
|
|
372
370
|
* If `true`, the dialog stretches to `maxWidth`.
|
|
373
371
|
*
|
|
374
372
|
* Notice that the dialog width grow is limited by the default margin.
|
|
375
373
|
* @default false
|
|
376
374
|
*/
|
|
377
|
-
fullWidth:
|
|
375
|
+
fullWidth: e.bool,
|
|
378
376
|
/**
|
|
379
377
|
* Determine the max-width of the dialog.
|
|
380
378
|
* The dialog width grows with the size of the screen.
|
|
381
379
|
* Set to `false` to disable `maxWidth`.
|
|
382
380
|
* @default 'sm'
|
|
383
381
|
*/
|
|
384
|
-
maxWidth:
|
|
385
|
-
/**
|
|
386
|
-
* Callback fired when the backdrop is clicked.
|
|
387
|
-
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
388
|
-
*/
|
|
389
|
-
onBackdropClick: o.func,
|
|
382
|
+
maxWidth: e.oneOfType([e.oneOf(["xs", "sm", "md", "lg", "xl", !1]), e.string]),
|
|
390
383
|
/**
|
|
391
384
|
* @ignore
|
|
392
385
|
*/
|
|
393
|
-
onClick:
|
|
386
|
+
onClick: e.func,
|
|
394
387
|
/**
|
|
395
388
|
* Callback fired when the component requests to be closed.
|
|
396
389
|
*
|
|
397
390
|
* @param {object} event The event source of the callback.
|
|
398
391
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
399
392
|
*/
|
|
400
|
-
onClose:
|
|
393
|
+
onClose: e.func,
|
|
401
394
|
/**
|
|
402
395
|
* If `true`, the component is shown.
|
|
403
396
|
*/
|
|
404
|
-
open:
|
|
397
|
+
open: e.bool.isRequired,
|
|
405
398
|
/**
|
|
406
399
|
* The component used to render the body of the dialog.
|
|
407
400
|
* @default Paper
|
|
408
401
|
*/
|
|
409
|
-
PaperComponent:
|
|
402
|
+
PaperComponent: e.elementType,
|
|
410
403
|
/**
|
|
411
404
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
412
405
|
* @default {}
|
|
413
|
-
* @deprecated Use `slotProps.paper` instead. This prop will be removed in
|
|
406
|
+
* @deprecated Use `slotProps.paper` 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.
|
|
414
407
|
*/
|
|
415
|
-
PaperProps:
|
|
408
|
+
PaperProps: e.object,
|
|
416
409
|
/**
|
|
417
410
|
* Determine the container for scrolling the dialog.
|
|
418
411
|
* @default 'paper'
|
|
419
412
|
*/
|
|
420
|
-
scroll:
|
|
413
|
+
scroll: e.oneOf(["body", "paper"]),
|
|
421
414
|
/**
|
|
422
415
|
* The props used for each slot inside.
|
|
423
416
|
* @default {}
|
|
424
417
|
*/
|
|
425
|
-
slotProps:
|
|
426
|
-
backdrop:
|
|
427
|
-
container:
|
|
428
|
-
paper:
|
|
429
|
-
root:
|
|
430
|
-
transition:
|
|
418
|
+
slotProps: e.shape({
|
|
419
|
+
backdrop: e.oneOfType([e.func, e.object]),
|
|
420
|
+
container: e.oneOfType([e.func, e.object]),
|
|
421
|
+
paper: e.oneOfType([e.func, e.object]),
|
|
422
|
+
root: e.oneOfType([e.func, e.object]),
|
|
423
|
+
transition: e.oneOfType([e.func, e.object])
|
|
431
424
|
}),
|
|
432
425
|
/**
|
|
433
426
|
* The components used for each slot inside.
|
|
434
427
|
* @default {}
|
|
435
428
|
*/
|
|
436
|
-
slots:
|
|
437
|
-
backdrop:
|
|
438
|
-
container:
|
|
439
|
-
paper:
|
|
440
|
-
root:
|
|
441
|
-
transition:
|
|
429
|
+
slots: e.shape({
|
|
430
|
+
backdrop: e.elementType,
|
|
431
|
+
container: e.elementType,
|
|
432
|
+
paper: e.elementType,
|
|
433
|
+
root: e.elementType,
|
|
434
|
+
transition: e.elementType
|
|
442
435
|
}),
|
|
443
436
|
/**
|
|
444
437
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
445
438
|
*/
|
|
446
|
-
sx:
|
|
439
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
447
440
|
/**
|
|
448
441
|
* The component used for the transition.
|
|
449
442
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
450
443
|
* @default Fade
|
|
451
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
444
|
+
* @deprecated Use `slots.transition` 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.
|
|
452
445
|
*/
|
|
453
|
-
TransitionComponent:
|
|
446
|
+
TransitionComponent: e.elementType,
|
|
454
447
|
/**
|
|
455
448
|
* The duration for the transition, in milliseconds.
|
|
456
449
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -459,20 +452,20 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
459
452
|
* exit: theme.transitions.duration.leavingScreen,
|
|
460
453
|
* }
|
|
461
454
|
*/
|
|
462
|
-
transitionDuration:
|
|
463
|
-
appear:
|
|
464
|
-
enter:
|
|
465
|
-
exit:
|
|
455
|
+
transitionDuration: e.oneOfType([e.number, e.shape({
|
|
456
|
+
appear: e.number,
|
|
457
|
+
enter: e.number,
|
|
458
|
+
exit: e.number
|
|
466
459
|
})]),
|
|
467
460
|
/**
|
|
468
461
|
* Props applied to the transition element.
|
|
469
462
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
470
|
-
* @deprecated Use `slotProps.transition` instead. This prop will be removed in
|
|
463
|
+
* @deprecated Use `slotProps.transition` 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.
|
|
471
464
|
*/
|
|
472
|
-
TransitionProps:
|
|
465
|
+
TransitionProps: e.object
|
|
473
466
|
});
|
|
474
467
|
export {
|
|
475
|
-
|
|
468
|
+
Se as D,
|
|
476
469
|
O as a,
|
|
477
470
|
P as d
|
|
478
471
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const ae=require("react"),e=require("./identifier-gJdGmHeC.cjs"),ne=require("./useTheme-NQRIebh0.cjs"),i=require("react/jsx-runtime"),a=require("./DefaultPropsProvider-DLSItMqn.cjs"),le=require("./memoTheme-GOMOSdXJ.cjs"),c=require("./useSlot-zJFQDOgm.cjs"),W=require("./Paper-CKG165jt.cjs"),h=require("./Backdrop-Be5Hv5U8.cjs"),ie=require("./useId-DNXtOFeX.cjs"),ce=require("./Modal-JAWJUstF.cjs");function de(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const p in r)if(p!=="default"){const t=Object.getOwnPropertyDescriptor(r,p);Object.defineProperty(o,p,t.get?t:{enumerable:!0,get:()=>r[p]})}}return o.default=r,Object.freeze(o)}const u=de(ae),x=u.createContext({});process.env.NODE_ENV!=="production"&&(x.displayName="DialogContext");function ue(r){return e.generateUtilityClass("MuiDialog",r)}const y=e.generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ye=a.styled(h.Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(r,o)=>o.backdrop})({zIndex:-1}),Pe=r=>{const{classes:o,scroll:p,maxWidth:t,fullWidth:d,fullScreen:P}=r,T={root:["root"],container:["container",`scroll${e.capitalize(p)}`],paper:["paper",`paperScroll${e.capitalize(p)}`,`paperWidth${e.capitalize(String(t))}`,d&&"paperFullWidth",P&&"paperFullScreen"]};return a.composeClasses(T,ue,o)},Te=a.styled(ce.Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(r,o)=>o.root})({"@media print":{position:"absolute !important"}}),be=a.styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(r,o)=>{const{ownerState:p}=r;return[o.container,o[`scroll${e.capitalize(p.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),me=a.styled(W.Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(r,o)=>{const{ownerState:p}=r;return[o.paper,o[`scrollPaper${e.capitalize(p.scroll)}`],o[`paperWidth${e.capitalize(String(p.maxWidth))}`],p.fullWidth&&o.paperFullWidth,p.fullScreen&&o.paperFullScreen]}})(le.memoTheme(({theme:r})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:o})=>!o.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:r.breakpoints.unit==="px"?Math.max(r.breakpoints.values.xs,444):`max(${r.breakpoints.values.xs}${r.breakpoints.unit}, 444px)`,[`&.${y.paperScrollBody}`]:{[r.breakpoints.down(Math.max(r.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(r.breakpoints.values).filter(o=>o!=="xs").map(o=>({props:{maxWidth:o},style:{maxWidth:`${r.breakpoints.values[o]}${r.breakpoints.unit}`,[`&.${y.paperScrollBody}`]:{[r.breakpoints.down(r.breakpoints.values[o]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:o})=>o.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:o})=>o.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${y.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),w=u.forwardRef(function(o,p){const t=a.useDefaultProps({props:o,name:"MuiDialog"}),d=ne.useTheme(),P={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{"aria-describedby":T,"aria-labelledby":j,"aria-modal":O=!0,BackdropComponent:M,BackdropProps:B,children:F,className:R,disableEscapeKeyDown:k=!1,fullScreen:$=!1,fullWidth:q=!1,maxWidth:N="sm",onClick:S,onClose:b,open:C,PaperComponent:z=W.Paper,PaperProps:D={},scroll:E="paper",slots:A={},slotProps:I={},TransitionComponent:_=h.Fade,transitionDuration:v=P,TransitionProps:U,...K}=t,s={...t,disableEscapeKeyDown:k,fullScreen:$,fullWidth:q,maxWidth:N,scroll:E},m=Pe(s),f=u.useRef(),L=l=>{f.current=l.target===l.currentTarget},V=l=>{S&&S(l),f.current&&(f.current=null,b&&b(l,"backdropClick"))},g=ie.useId(j),X=u.useMemo(()=>({titleId:g}),[g]),Y={transition:_,...A},H={transition:U,paper:D,backdrop:B,...I},n={slots:Y,slotProps:H},[G,J]=c.useSlot("root",{elementType:Te,shouldForwardComponentProp:!0,externalForwardedProps:n,ownerState:s,className:e.clsx(m.root,R),ref:p}),[Q,Z]=c.useSlot("backdrop",{elementType:ye,shouldForwardComponentProp:!0,externalForwardedProps:n,ownerState:s}),[ee,oe]=c.useSlot("paper",{elementType:me,shouldForwardComponentProp:!0,externalForwardedProps:n,ownerState:s,className:e.clsx(m.paper,D.className)}),[re,pe]=c.useSlot("container",{elementType:be,externalForwardedProps:n,ownerState:s,className:e.clsx(m.container)}),[te,se]=c.useSlot("transition",{elementType:h.Fade,externalForwardedProps:n,ownerState:s,additionalProps:{appear:!0,in:C,timeout:v,role:"presentation"}});return i.jsx(G,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:v,as:M,...Z}},disableEscapeKeyDown:k,onClose:b,open:C,onClick:V,...J,...K,children:i.jsx(te,{...se,children:i.jsx(re,{onMouseDown:L,...pe,children:i.jsx(ee,{as:z,elevation:24,role:"dialog","aria-describedby":T,"aria-labelledby":g,"aria-modal":O,...oe,children:i.jsx(x.Provider,{value:X,children:F})})})})})});process.env.NODE_ENV!=="production"&&(w.propTypes={"aria-describedby":e.PropTypes.string,"aria-labelledby":e.PropTypes.string,"aria-modal":e.PropTypes.oneOfType([e.PropTypes.oneOf(["false","true"]),e.PropTypes.bool]),BackdropComponent:e.PropTypes.elementType,BackdropProps:e.PropTypes.object,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableEscapeKeyDown:e.PropTypes.bool,fullScreen:e.PropTypes.bool,fullWidth:e.PropTypes.bool,maxWidth:e.PropTypes.oneOfType([e.PropTypes.oneOf(["xs","sm","md","lg","xl",!1]),e.PropTypes.string]),onClick:e.PropTypes.func,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperComponent:e.PropTypes.elementType,PaperProps:e.PropTypes.object,scroll:e.PropTypes.oneOf(["body","paper"]),slotProps:e.PropTypes.shape({backdrop:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),container:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),paper:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),transition:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({backdrop:e.PropTypes.elementType,container:e.PropTypes.elementType,paper:e.PropTypes.elementType,root:e.PropTypes.elementType,transition:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object});exports.Dialog=w;exports.DialogContext=x;exports.dialogClasses=y;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const D=require("react"),e=require("./identifier-gJdGmHeC.cjs"),d=require("react/jsx-runtime"),n=require("./DefaultPropsProvider-DLSItMqn.cjs"),P=require("./memoTheme-GOMOSdXJ.cjs");function v(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>o[t]})}}return s.default=o,Object.freeze(s)}const g=v(D);function u(o){return e.generateUtilityClass("MuiDialogActions",o)}const b=e.generateUtilityClasses("MuiDialogActions",["root","spacing"]),m=o=>{const{classes:s,disableSpacing:t}=o,i={root:["root",!t&&"spacing"]};return n.composeClasses(i,u,s)},x=n.styled("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:t}=o;return[s.root,!t.disableSpacing&&s.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:o})=>!o.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),y=g.forwardRef(function(s,t){const i=n.useDefaultProps({props:s,name:"MuiDialogActions"}),{className:a,disableSpacing:l=!1,...p}=i,r={...i,disableSpacing:l},c=m(r);return d.jsx(x,{className:e.clsx(c.root,a),ownerState:r,ref:t,...p})});process.env.NODE_ENV!=="production"&&(y.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableSpacing:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});function f(o){return e.generateUtilityClass("MuiDialogContent",o)}const j=e.generateUtilityClasses("MuiDialogContent",["root","dividers"]);function O(o){return e.generateUtilityClass("MuiDialogTitle",o)}const T=e.generateUtilityClasses("MuiDialogTitle",["root"]),S=o=>{const{classes:s,dividers:t}=o,i={root:["root",t&&"dividers"]};return n.composeClasses(i,f,s)},U=n.styled("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:t}=o;return[s.root,t.dividers&&s.dividers]}})(P.memoTheme(({theme:o})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:s})=>s.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(o.vars||o).palette.divider}`,borderBottom:`1px solid ${(o.vars||o).palette.divider}`}},{props:({ownerState:s})=>!s.dividers,style:{[`.${T.root} + &`]:{paddingTop:0}}}]}))),C=g.forwardRef(function(s,t){const i=n.useDefaultProps({props:s,name:"MuiDialogContent"}),{className:a,dividers:l=!1,...p}=i,r={...i,dividers:l},c=S(r);return d.jsx(U,{className:e.clsx(c.root,a),ownerState:r,ref:t,...p})});process.env.NODE_ENV!=="production"&&(C.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,dividers:e.PropTypes.bool,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.DialogActions=y;exports.DialogContent=C;exports.dialogActionsClasses=b;exports.dialogContentClasses=j;exports.dialogTitleClasses=T;exports.getDialogActionsUtilityClass=u;exports.getDialogContentUtilityClass=f;exports.getDialogTitleUtilityClass=O;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { F as p, G as d, H as u, P as o } from "./identifier-BJqC6EXa.js";
|
|
3
3
|
import { jsx as f } from "react/jsx-runtime";
|
|
4
|
-
import { u as v, s as m, c as D } from "./DefaultPropsProvider-
|
|
5
|
-
import { m as y } from "./memoTheme-
|
|
4
|
+
import { u as v, s as m, c as D } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
5
|
+
import { m as y } from "./memoTheme-D_Qap2ZW.js";
|
|
6
6
|
function C(s) {
|
|
7
7
|
return d("MuiDialogActions", s);
|
|
8
8
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const C=require("react"),e=require("./identifier-gJdGmHeC.cjs"),n=require("./DefaultPropsProvider-DLSItMqn.cjs"),T=require("react/jsx-runtime"),y=require("./Typography-DOpE-TJz.cjs"),D=require("./DialogContent-DqdeAbSs.cjs"),x=require("./Dialog-D1VJ5jXx.cjs");function m(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const i=m(C);function u(o){return e.generateUtilityClass("MuiDialogContentText",o)}const b=e.generateUtilityClasses("MuiDialogContentText",["root"]),j=o=>{const{classes:t}=o,s={root:["root"]},r=n.composeClasses(s,u,t);return{...t,...r}},O=n.styled(y.Typography,{shouldForwardProp:o=>n.rootShouldForwardProp(o)||o==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(o,t)=>t.root})({}),g=i.forwardRef(function(t,s){const r=n.useDefaultProps({props:t,name:"MuiDialogContentText"}),{children:c,className:p,...l}=r,a=j(l);return T.jsx(O,{component:"p",variant:"body1",color:"textSecondary",ref:s,ownerState:l,className:e.clsx(a.root,p),...r,classes:a})});process.env.NODE_ENV!=="production"&&(g.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});const v=o=>{const{classes:t}=o,s={root:["root"]};return n.composeClasses(s,D.getDialogTitleUtilityClass,t)},h=n.styled(y.Typography,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(o,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),d=i.forwardRef(function(t,s){const r=n.useDefaultProps({props:t,name:"MuiDialogTitle"}),{className:c,id:p,...l}=r,a=r,f=v(a),{titleId:P=p}=i.useContext(x.DialogContext);return T.jsx(h,{component:"h2",className:e.clsx(f.root,c),ownerState:a,ref:s,variant:"h6",id:p??P,...l})});process.env.NODE_ENV!=="production"&&(d.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,id:e.PropTypes.string,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.DialogContentText=g;exports.DialogTitle=d;exports.dialogContentTextClasses=b;exports.getDialogContentTextUtilityClass=u;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as i from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { u as d, s as f, c as u, r as D } from "./DefaultPropsProvider-
|
|
2
|
+
import { F as y, G as C, H as p, P as o } from "./identifier-BJqC6EXa.js";
|
|
3
|
+
import { u as d, s as f, c as u, r as D } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
4
4
|
import { jsx as m } from "react/jsx-runtime";
|
|
5
|
-
import { T as g } from "./Typography-
|
|
6
|
-
import { f as v } from "./DialogContent-
|
|
7
|
-
import { a as N } from "./Dialog-
|
|
5
|
+
import { T as g } from "./Typography-BNt9mZKm.js";
|
|
6
|
+
import { f as v } from "./DialogContent-ZiO3fkfO.js";
|
|
7
|
+
import { a as N } from "./Dialog-BGrQDZXr.js";
|
|
8
8
|
function b(t) {
|
|
9
9
|
return C("MuiDialogContentText", t);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const _ = y("MuiDialogContentText", ["root"]), h = (t) => {
|
|
12
12
|
const {
|
|
13
13
|
classes: s
|
|
14
14
|
} = t, e = u({
|
|
@@ -130,6 +130,6 @@ process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
|
130
130
|
export {
|
|
131
131
|
w as D,
|
|
132
132
|
M as a,
|
|
133
|
-
|
|
133
|
+
_ as d,
|
|
134
134
|
b as g
|
|
135
135
|
};
|