@cgi-learning-hub/ui 1.5.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert-DW8yCR-B.cjs +1 -0
- package/dist/{Alert-BfMYnyZX.js → Alert-PmI169Dq.js} +144 -142
- package/dist/{Autocomplete-DQyr97ya.js → Autocomplete-BIBR54X2.js} +709 -667
- package/dist/Autocomplete-D9hZ2wrR.cjs +6 -0
- package/dist/Backdrop-3TL73mAe.cjs +1 -0
- package/dist/{Backdrop-B200pms1.js → Backdrop-BxgGvlLM.js} +21 -20
- package/dist/Badge-DhyDno9j.cjs +138 -0
- package/dist/{ToggleButtonGroup-gxIqbo6a.js → Badge-rX7YUmBc.js} +6487 -4178
- package/dist/Box-DYD6q-6M.cjs +1 -0
- package/dist/{Box-D3Pi13ta.js → Box-o7Tjjyko.js} +21 -20
- package/dist/{Button-D1aKdjIh.js → Button-D974vesA.js} +19 -18
- package/dist/Button-y1LmxqGA.cjs +1 -0
- package/dist/{ButtonBase-Bncgzjtp.js → ButtonBase-Chb99sDQ.js} +25 -24
- package/dist/ButtonBase-Cteo-mSC.cjs +74 -0
- package/dist/{CardContent-DyggcxBG.js → CardContent-DaZl2i3G.js} +10 -9
- package/dist/CardContent-ji0_AneN.cjs +1 -0
- package/dist/Checkbox-XXqW_dbW.cjs +1 -0
- package/dist/{Checkbox-DkrWUPYT.js → Checkbox-p-PKpEw_.js} +91 -62
- package/dist/Chip-Bpcd3tnL.cjs +1 -0
- package/dist/{Chip-Y39z3DS6.js → Chip-CPR3r42q.js} +13 -12
- package/dist/{CircularProgress-BDjnnyuL.js → CircularProgress-DVKNRMKq.js} +15 -14
- package/dist/CircularProgress-Wqx0-T36.cjs +28 -0
- package/dist/{Close-DJDhRwj2.cjs → Close-DyRqry3p.cjs} +1 -1
- package/dist/{Close-hx7dlgmZ.js → Close-m-MX3rFn.js} +1 -1
- package/dist/{CloseRounded-DapqosK3.cjs → CloseRounded-Bpxbxvyb.cjs} +1 -1
- package/dist/{CloseRounded-aZqv6aS-.js → CloseRounded-CjjQdrNy.js} +1 -1
- package/dist/CustomTreeItem-DPyfIueW.cjs +3 -0
- package/dist/{CustomTreeItem-CgdZ-hEx.js → CustomTreeItem-hIRSCwAW.js} +251 -256
- package/dist/{DatePicker-C2ZobNcJ.js → DatePicker-BMzW4v1g.js} +1079 -1081
- package/dist/DatePicker-CNhBoaI3.cjs +14 -0
- package/dist/DefaultPropsProvider-B1crdkTC.cjs +1 -0
- package/dist/{DefaultPropsProvider-Ik4eAJdt.js → DefaultPropsProvider-hFv1J_xl.js} +68 -67
- package/dist/{Delete-Cfk3fOW-.js → Delete-9fJbdRit.js} +1 -1
- package/dist/{Delete-DDxv1h6V.cjs → Delete-CEX2hq0f.cjs} +1 -1
- package/dist/Dialog-B2LKe7ZM.cjs +1 -0
- package/dist/{Dialog-Ccvug1yq.js → Dialog-BzsWl6Vl.js} +106 -111
- package/dist/{DialogContent-CIMpKm-U.js → DialogContent-B41jvlMn.js} +14 -13
- package/dist/DialogContent-BbCu_OEw.cjs +1 -0
- package/dist/{DialogTitle-BwTvIaQe.js → DialogTitle-CVvztEM0.js} +22 -21
- package/dist/DialogTitle-SwUSpeBT.cjs +1 -0
- package/dist/{Divider-C2cBikSL.js → Divider-CJwnMdVg.js} +9 -8
- package/dist/Divider-Cshcr5kR.cjs +1 -0
- package/dist/{Folder-DEtB13yM.cjs → Folder-7plrMkOp.cjs} +1 -1
- package/dist/{Folder-Bnoqtzc6.js → Folder-CutUz0bW.js} +1 -1
- package/dist/FormLabel-0LbNeQQU.cjs +2 -0
- package/dist/{FormLabel-EkpI8MQr.js → FormLabel-DSi2pGSZ.js} +16 -15
- package/dist/{Grow-B_clfUP9.js → Grow-FFFqe81C.js} +5 -5
- package/dist/Grow-aEgTOewU.cjs +1 -0
- package/dist/IconButton-BKwDNYJl.cjs +2 -0
- package/dist/{IconButton-D1mhTuaI.js → IconButton-CgwURB2g.js} +7 -6
- package/dist/InputAdornment-C7e-kyf7.cjs +1 -0
- package/dist/{InputAdornment-BxB8_tq-.js → InputAdornment-DgWvMLgR.js} +22 -21
- package/dist/{InputBase-BQnEIwl1.js → InputBase-DxLqRpcl.js} +263 -256
- package/dist/InputBase-pYQWRFK2.cjs +3 -0
- package/dist/Link-DUtuCYMx.cjs +1 -0
- package/dist/{Link-8ltXgZj7.js → Link-rb-SwfiY.js} +18 -17
- package/dist/List-BH_S4Hqm.cjs +1 -0
- package/dist/{List-DJsqHOqv.js → List-BjfdkeEI.js} +5 -4
- package/dist/{ListItem-BspNcHM_.js → ListItem-B0EiObKw.js} +40 -39
- package/dist/ListItem-D33t-hkx.cjs +1 -0
- package/dist/ListItemText-B8jlTz59.cjs +2 -0
- package/dist/ListItemText-BeyHu1da.js +853 -0
- package/dist/Menu-BjrN8rMF.cjs +7 -0
- package/dist/{Menu-DPhreDcS.js → Menu-By6cOqEO.js} +407 -336
- package/dist/{MenuItem-Fb7iU47J.js → MenuItem-B1FTx8Uo.js} +17 -16
- package/dist/MenuItem-Cz_x60jl.cjs +1 -0
- package/dist/Modal-DxwlW5NV.cjs +2 -0
- package/dist/{Modal-dmMiGSAp.js → Modal-vrLLqk9Y.js} +240 -245
- package/dist/{MoreVert-DNeLf2VB.cjs → MoreVert-DC6HBf1h.cjs} +1 -1
- package/dist/{MoreVert-BCGFGn8f.js → MoreVert-DJ8sAY3o.js} +1 -1
- package/dist/{Paper-CEDxpHWv.js → Paper-984iTz4H.js} +32 -31
- package/dist/Paper-Bh9CKUCb.cjs +2 -0
- package/dist/{Popper-D5_YIJX6.js → Popper-DfwuvxaQ.js} +11 -10
- package/dist/Popper-yO_RaCbM.cjs +4 -0
- package/dist/Portal-B5KqLEa0.cjs +1 -0
- package/dist/Portal-ChC9wmMZ.js +85 -0
- package/dist/{Radio-B4sx0387.js → Radio-BqY-su_F.js} +228 -183
- package/dist/Radio-C7zzpRFc.cjs +1 -0
- package/dist/{RadioGroup-UStIK_UX.js → RadioGroup-BQvlYFpE.js} +24 -23
- package/dist/RadioGroup-BlUWRmLG.cjs +1 -0
- package/dist/{Select-CxnCi-3l.js → Select-DZMwqCYA.js} +96 -95
- package/dist/Select-Doay7ukI.cjs +3 -0
- package/dist/Stack-BVWbOqY_.cjs +1 -0
- package/dist/{Stack-CzKIgmIE.js → Stack-CMUWQxQn.js} +63 -107
- package/dist/{Switch-D3KweZGQ.js → Switch-Bg4QB4PJ.js} +169 -108
- package/dist/Switch-CEfqaD33.cjs +1 -0
- package/dist/SwitchBase-DvCITKv8.cjs +1 -0
- package/dist/SwitchBase-EDFBMPd7.js +316 -0
- package/dist/{Tab-C1r8JXwz.js → Tab-52AkFc9v.js} +599 -537
- package/dist/Tab-C6H241Pf.cjs +4 -0
- package/dist/{TextField-D-_WjPAW.js → TextField-DG9mRp_m.js} +127 -116
- package/dist/TextField-bE2NUKKK.cjs +1 -0
- package/dist/{Tooltip-D0bof-68.js → Tooltip-DCgaU2em.js} +20 -19
- package/dist/Tooltip-D_w-IJoD.cjs +4 -0
- package/dist/Typography-De-21leI.cjs +1 -0
- package/dist/{Typography-DBJqhIhB.js → Typography-DwMlN0K5.js} +9 -8
- package/dist/{capitalize-DSG2FA7x.js → capitalize-BHFotl9B.js} +1 -1
- package/dist/{capitalize-CToVceBw.cjs → capitalize-CKLkSyDO.cjs} +1 -1
- package/dist/client-error-CHkavqXs.cjs +1 -0
- package/dist/{client-error-B_-qjgAB.js → client-error-D0Ng5oOn.js} +1 -3
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/ColorPicker/ColorPicker.cjs.js +27 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +4 -0
- package/dist/components/ColorPicker/ColorPicker.es.js +7960 -0
- package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +1 -0
- package/dist/components/ColorPicker/ColorPickerIcon.d.ts +5 -0
- package/dist/components/ColorPicker/ColorPickerIcon.es.js +58 -0
- package/dist/components/ColorPicker/index.cjs.js +1 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/ColorPicker/index.es.js +4 -0
- package/dist/components/ColorPicker/styles.cjs.js +1 -0
- package/dist/components/ColorPicker/styles.es.js +26 -0
- package/dist/components/ColorPicker/types.cjs.js +1 -0
- package/dist/components/ColorPicker/types.d.ts +19 -0
- package/dist/components/ColorPicker/types.es.js +1 -0
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +2 -2
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +22 -22
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +5 -5
- package/dist/components/TreeView/TreeView.es.js +15 -13
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +4 -3
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +19 -0
- package/dist/components/index.es.js +404 -373
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/ColoPicker.stories.cjs.js +1 -0
- package/dist/components/stories/ColoPicker.stories.d.ts +6 -0
- package/dist/components/stories/ColoPicker.stories.es.js +23 -0
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/EmptyState.stories.cjs.js +1 -1
- package/dist/components/stories/EmptyState.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.es.js +29 -29
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/composeClasses-CJKlIaRn.js +51 -0
- package/dist/composeClasses-CWgX5SFD.cjs +1 -0
- package/dist/createSvgIcon-BgBODH2F.cjs +1 -0
- package/dist/{createSvgIcon-CsMK8tGM.js → createSvgIcon-BlKmtOkV.js} +48 -47
- package/dist/{dividerClasses-BtzbOVqV.cjs → dividerClasses-D3gnW6kZ.cjs} +1 -1
- package/dist/{dividerClasses-BfxSqqSn.js → dividerClasses-Glz8RJdF.js} +1 -1
- package/dist/elementTypeAcceptingRef-BwZv9xBI.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-CW5o2Qxo.js → elementTypeAcceptingRef-DOeckaXy.js} +1 -1
- package/dist/{extendSxProp-DSA-5JvJ.js → extendSxProp-BouzOuB6.js} +1 -1
- package/dist/{extendSxProp-BKP1AeGz.cjs → extendSxProp-Cm-DtZe3.cjs} +1 -1
- package/dist/generateUtilityClasses-CMlilM6r.cjs +55 -0
- package/dist/generateUtilityClasses-DngCqveO.js +2628 -0
- package/dist/getReactElementRef-EVJnBPlV.cjs +1 -0
- package/dist/{getReactElementRef-CD3_Stk5.js → getReactElementRef-H8kwrWP1.js} +1 -1
- package/dist/hooks/lazySvgImport.cjs.js +1 -1
- package/dist/hooks/lazySvgImport.es.js +1 -1
- package/dist/index-BzsuDIEl.cjs +1 -0
- package/dist/{index-CDLJvERp.js → index-CX0sAlmK.js} +2 -2
- package/dist/index-CrINMjCH.cjs +1 -0
- package/dist/index-DIyAQH20.cjs +5 -0
- package/dist/index-DLnSn8GT.cjs +20 -0
- package/dist/{index-JOgYmUF8.js → index-DX2Sl0Ig.js} +1 -1
- package/dist/index-Sy88PpwE.js +672 -0
- package/dist/{index-CoYVLWJY.js → index-l8yqod25.js} +14 -13
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +404 -373
- package/dist/{listItemTextClasses-DePeZNtZ.cjs → listItemTextClasses-BJFgw1ah.cjs} +1 -1
- package/dist/{listItemTextClasses-Cy10XsJj.js → listItemTextClasses-BRj19IXv.js} +1 -1
- package/dist/{memoTheme-BhhxAcUJ.cjs → memoTheme-BAbn60Cb.cjs} +1 -1
- package/dist/{memoTheme-44McxcVZ.js → memoTheme-nmt7i1dS.js} +1 -1
- package/dist/mergeSlotProps-BBciKnr4.js +62 -0
- package/dist/mergeSlotProps-Z5-o9vSe.cjs +1 -0
- package/dist/refType-B_IEJm4x.cjs +1 -0
- package/dist/{refType-DsRJ5_Sj.js → refType-Dp7CJc86.js} +1 -1
- package/dist/server-error-CqyYyPLN.cjs +1 -0
- package/dist/{server-error-DMyaPFs8.js → server-error-CvgIy7ap.js} +1 -3
- package/dist/useEventCallback-BxpcFap0.cjs +1 -0
- package/dist/useEventCallback-Yoj9nCug.js +15 -0
- package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
- package/dist/useForkRef-u29GSuCu.js +27 -0
- package/dist/useSlot-BDb1lvxu.js +125 -0
- package/dist/useSlot-W0PiuVaZ.cjs +1 -0
- package/dist/{useSlotProps-CDJdiQpV.js → useSlotProps-B_D8u0j-.js} +2 -2
- package/dist/useSlotProps-OhEflPiz.cjs +1 -0
- package/dist/useTheme-C59wIJ3-.js +11 -0
- package/dist/{useTheme-DpMakc_Y.cjs → useTheme-ClhInrO2.cjs} +1 -1
- package/dist/{useTheme-CCi6a5Vl.cjs → useTheme-CqYtLDbs.cjs} +1 -1
- package/dist/{useTheme-C2OE_AnH.js → useTheme-D9cVynB-.js} +1 -1
- package/dist/useThemeProps-BFQ8ndnj.js +17 -0
- package/dist/{useThemeProps-DQFApaJ_.cjs → useThemeProps-DQOn-ezC.cjs} +1 -1
- package/dist/useThemeProps-DYpozGhe.cjs +1 -0
- package/dist/{useThemeProps-ClM1OENH.js → useThemeProps-ggw56DH-.js} +2 -2
- package/dist/{utils-DFLaK7Ad.js → utils-BQenyzDz.js} +1 -1
- package/dist/utils-ByXw_ZY1.cjs +1 -0
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +12 -10
- package/dist/Alert-Dg5u5Z7d.cjs +0 -1
- package/dist/Autocomplete-3xshJ4m_.cjs +0 -6
- package/dist/Backdrop-BrTs3LxC.cjs +0 -1
- package/dist/Box-CFuWIdLg.cjs +0 -1
- package/dist/Button-C7tsSPXV.cjs +0 -1
- package/dist/ButtonBase-CBFRgTBs.cjs +0 -74
- package/dist/CardContent-BRUkl8hU.cjs +0 -1
- package/dist/Checkbox-C_wSNEHD.cjs +0 -1
- package/dist/Chip-DUeBMcO4.cjs +0 -1
- package/dist/CircularProgress-DdHpo4Bf.cjs +0 -28
- package/dist/CustomTreeItem-9kBuTFO8.cjs +0 -4
- package/dist/DatePicker-BYPJypQT.cjs +0 -14
- package/dist/DefaultPropsProvider-B6DqRWnX.cjs +0 -1
- package/dist/Dialog-DOXpPT7S.cjs +0 -1
- package/dist/DialogContent-BoIE95Tg.cjs +0 -1
- package/dist/DialogTitle-B_am69Lr.cjs +0 -1
- package/dist/Divider-Nyl7rx-c.cjs +0 -1
- package/dist/FormLabel-D4O160ND.cjs +0 -2
- package/dist/Grow-DKA2Mfhu.cjs +0 -1
- package/dist/IconButton-CGfKAsNI.cjs +0 -2
- package/dist/InputAdornment-BOcB8UIi.cjs +0 -1
- package/dist/InputBase-BIf-xtMJ.cjs +0 -3
- package/dist/Link-CS0qbKjo.cjs +0 -1
- package/dist/List-T5dKKWkc.cjs +0 -1
- package/dist/ListItem-BN7OXyEP.cjs +0 -1
- package/dist/ListItemText-6gXRtF3r.cjs +0 -1
- package/dist/ListItemText-afV0BrJL.js +0 -928
- package/dist/Menu-D6dHPVP_.cjs +0 -7
- package/dist/MenuItem-DOVsV_vI.cjs +0 -1
- package/dist/Modal-B8xPmNJd.cjs +0 -2
- package/dist/Paper-owda8LtM.cjs +0 -2
- package/dist/Popper-DMGJYlm7.cjs +0 -4
- package/dist/Portal-BKVc0iys.js +0 -81
- package/dist/Portal-CgaP8O8B.cjs +0 -1
- package/dist/Radio-OUfsD89D.cjs +0 -1
- package/dist/RadioGroup-Cr_IFflA.cjs +0 -1
- package/dist/Select-CUlunaOr.cjs +0 -3
- package/dist/Stack-D5_1ZBcn.cjs +0 -1
- package/dist/Switch-DpdnFebj.cjs +0 -1
- package/dist/SwitchBase-BsP35Aas.js +0 -262
- package/dist/SwitchBase-DMGf52a3.cjs +0 -1
- package/dist/Tab-DZvAf79O.cjs +0 -4
- package/dist/TextField-C0KpyS6X.cjs +0 -1
- package/dist/ToggleButtonGroup-UNGSwlQe.cjs +0 -137
- package/dist/Tooltip-BljbhP1z.cjs +0 -4
- package/dist/Typography-yvyJLNFu.cjs +0 -1
- package/dist/client-error-BUtdld5f.cjs +0 -1
- package/dist/createSvgIcon-EiiLl5-A.cjs +0 -1
- package/dist/elementTypeAcceptingRef-D1T31ZXC.cjs +0 -1
- package/dist/generateUtilityClasses-BpRGbQmY.js +0 -3299
- package/dist/generateUtilityClasses-q4qbJjmd.cjs +0 -75
- package/dist/getReactElementRef-yvpNgSpm.cjs +0 -1
- package/dist/index-Bt7ukCXi.cjs +0 -5
- package/dist/index-DCpyECL4.cjs +0 -1
- package/dist/index-baZm35zL.cjs +0 -1
- package/dist/refType-DDdajp2p.cjs +0 -1
- package/dist/resolveComponentProps-BTEnlM7q.cjs +0 -1
- package/dist/resolveComponentProps-BZQ1jKzF.js +0 -80
- package/dist/server-error-CeAtUo4S.cjs +0 -1
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useSlot-CSTfsYPJ.cjs +0 -1
- package/dist/useSlot-CYOxsM2I.js +0 -48
- package/dist/useSlotProps-DTgWZk99.cjs +0 -1
- package/dist/useTheme-BDL2rp7a.js +0 -11
- package/dist/useThemeProps-BnN3o4c1.cjs +0 -1
- package/dist/useThemeProps-DjkGUV8r.js +0 -17
- package/dist/utils-Cn6wZNus.cjs +0 -1
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as A, Y as V, Q as U, Z as W, U as X, V as j, J as Y, _ as Z, u as G, T as ee } from "./generateUtilityClasses-DngCqveO.js";
|
|
2
2
|
import * as I from "react";
|
|
3
|
+
import { P as x } from "./index-Sy88PpwE.js";
|
|
3
4
|
import { jsx as te } from "react/jsx-runtime";
|
|
4
|
-
function
|
|
5
|
+
function Ne(e, n, t = void 0) {
|
|
5
6
|
const o = {};
|
|
6
7
|
for (const r in e) {
|
|
7
|
-
const
|
|
8
|
+
const u = e[r];
|
|
8
9
|
let i = "", s = !0;
|
|
9
|
-
for (let d = 0; d <
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
for (let d = 0; d < u.length; d += 1) {
|
|
11
|
+
const a = u[d];
|
|
12
|
+
a && (i += (s === !0 ? "" : " ") + n(a), s = !1, t && t[a] && (i += " " + t[a]));
|
|
12
13
|
}
|
|
13
14
|
o[r] = i;
|
|
14
15
|
}
|
|
15
16
|
return o;
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function z(e, n = "") {
|
|
18
19
|
return e.displayName || e.name || n;
|
|
19
20
|
}
|
|
20
21
|
function k(e, n, t) {
|
|
21
|
-
const o =
|
|
22
|
+
const o = z(n);
|
|
22
23
|
return e.displayName || (o !== "" ? `${t}(${o})` : t);
|
|
23
24
|
}
|
|
24
25
|
function ne(e) {
|
|
@@ -26,7 +27,7 @@ function ne(e) {
|
|
|
26
27
|
if (typeof e == "string")
|
|
27
28
|
return e;
|
|
28
29
|
if (typeof e == "function")
|
|
29
|
-
return
|
|
30
|
+
return z(e, "Component");
|
|
30
31
|
if (typeof e == "object")
|
|
31
32
|
switch (e.$$typeof) {
|
|
32
33
|
case A.ForwardRef:
|
|
@@ -51,7 +52,7 @@ function re(e) {
|
|
|
51
52
|
typeof r.style != "function" && (r.style = V(r.style));
|
|
52
53
|
}), o;
|
|
53
54
|
}
|
|
54
|
-
const oe =
|
|
55
|
+
const oe = U();
|
|
55
56
|
function b(e) {
|
|
56
57
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
57
58
|
}
|
|
@@ -72,19 +73,19 @@ function O(e, n) {
|
|
|
72
73
|
else {
|
|
73
74
|
const {
|
|
74
75
|
variants: r,
|
|
75
|
-
...
|
|
76
|
+
...u
|
|
76
77
|
} = t;
|
|
77
|
-
o =
|
|
78
|
+
o = u;
|
|
78
79
|
}
|
|
79
|
-
return
|
|
80
|
+
return H(e, t.variants, [o]);
|
|
80
81
|
}
|
|
81
82
|
return t != null && t.isProcessed ? t.style : t;
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function H(e, n, t = []) {
|
|
84
85
|
var r;
|
|
85
86
|
let o;
|
|
86
|
-
e: for (let
|
|
87
|
-
const i = n[
|
|
87
|
+
e: for (let u = 0; u < n.length; u += 1) {
|
|
88
|
+
const i = n[u];
|
|
88
89
|
if (typeof i.props == "function") {
|
|
89
90
|
if (o ?? (o = {
|
|
90
91
|
...e,
|
|
@@ -104,82 +105,82 @@ function z(e, n, t = []) {
|
|
|
104
105
|
}
|
|
105
106
|
return t;
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
+
function ue(e = {}) {
|
|
108
109
|
const {
|
|
109
110
|
themeId: n,
|
|
110
111
|
defaultTheme: t = oe,
|
|
111
112
|
rootShouldForwardProp: o = b,
|
|
112
113
|
slotShouldForwardProp: r = b
|
|
113
114
|
} = e;
|
|
114
|
-
function
|
|
115
|
+
function u(s) {
|
|
115
116
|
ie(s, n, t);
|
|
116
117
|
}
|
|
117
118
|
return (s, d = {}) => {
|
|
118
|
-
|
|
119
|
+
W(s, (c) => c.filter((f) => f !== j));
|
|
119
120
|
const {
|
|
120
|
-
name:
|
|
121
|
+
name: a,
|
|
121
122
|
slot: y,
|
|
122
123
|
skipVariantsResolver: F,
|
|
123
|
-
skipSx:
|
|
124
|
+
skipSx: K,
|
|
124
125
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
125
126
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
126
|
-
overridesResolver:
|
|
127
|
+
overridesResolver: _ = se(L(y)),
|
|
127
128
|
...q
|
|
128
129
|
} = d, B = F !== void 0 ? F : (
|
|
129
130
|
// TODO v6: remove `Root` in the next major release
|
|
130
131
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
131
132
|
y && y !== "Root" && y !== "root" || !1
|
|
132
|
-
), C =
|
|
133
|
+
), C = K || !1;
|
|
133
134
|
let P = b;
|
|
134
135
|
y === "Root" || y === "root" ? P = o : y ? P = r : le(s) && (P = void 0);
|
|
135
|
-
const T =
|
|
136
|
+
const T = X(s, {
|
|
136
137
|
shouldForwardProp: P,
|
|
137
|
-
label: ce(
|
|
138
|
+
label: ce(a, y),
|
|
138
139
|
...q
|
|
139
|
-
}),
|
|
140
|
+
}), J = (c) => {
|
|
140
141
|
if (typeof c == "function" && c.__emotion_real !== c)
|
|
141
142
|
return function(S) {
|
|
142
143
|
return O(S, c);
|
|
143
144
|
};
|
|
144
|
-
if (
|
|
145
|
+
if (Y(c)) {
|
|
145
146
|
const f = re(c);
|
|
146
|
-
return f.variants ? function(
|
|
147
|
-
return O(
|
|
147
|
+
return f.variants ? function(m) {
|
|
148
|
+
return O(m, f);
|
|
148
149
|
} : f.style;
|
|
149
150
|
}
|
|
150
151
|
return c;
|
|
151
152
|
}, g = (...c) => {
|
|
152
|
-
const f = [], S = c.map(
|
|
153
|
-
if (f.push(
|
|
153
|
+
const f = [], S = c.map(J), m = [];
|
|
154
|
+
if (f.push(u), a && _ && m.push(function(p) {
|
|
154
155
|
var w, D;
|
|
155
|
-
const l = (D = (w = p.theme.components) == null ? void 0 : w[
|
|
156
|
+
const l = (D = (w = p.theme.components) == null ? void 0 : w[a]) == null ? void 0 : D.styleOverrides;
|
|
156
157
|
if (!l)
|
|
157
158
|
return null;
|
|
158
159
|
const v = {};
|
|
159
|
-
for (const
|
|
160
|
-
v[
|
|
161
|
-
return
|
|
162
|
-
}),
|
|
160
|
+
for (const $ in l)
|
|
161
|
+
v[$] = O(p, l[$]);
|
|
162
|
+
return _(p, v);
|
|
163
|
+
}), a && !B && m.push(function(p) {
|
|
163
164
|
var v, w;
|
|
164
|
-
const
|
|
165
|
-
return l ?
|
|
166
|
-
}), C ||
|
|
167
|
-
const N = S.shift(), p = new Array(f.length).fill(""),
|
|
165
|
+
const h = p.theme, l = (w = (v = h == null ? void 0 : h.components) == null ? void 0 : v[a]) == null ? void 0 : w.variants;
|
|
166
|
+
return l ? H(p, l) : null;
|
|
167
|
+
}), C || m.push(j), Array.isArray(S[0])) {
|
|
168
|
+
const N = S.shift(), p = new Array(f.length).fill(""), h = new Array(m.length).fill("");
|
|
168
169
|
let l;
|
|
169
|
-
l = [...p, ...N, ...
|
|
170
|
+
l = [...p, ...N, ...h], l.raw = [...p, ...N.raw, ...h], f.unshift(l);
|
|
170
171
|
}
|
|
171
|
-
const
|
|
172
|
-
return s.muiName && (R.muiName = s.muiName), process.env.NODE_ENV !== "production" && (R.displayName =
|
|
172
|
+
const Q = [...f, ...S, ...m], R = T(...Q);
|
|
173
|
+
return s.muiName && (R.muiName = s.muiName), process.env.NODE_ENV !== "production" && (R.displayName = ae(a, y, s)), R;
|
|
173
174
|
};
|
|
174
175
|
return T.withConfig && (g.withConfig = T.withConfig), g;
|
|
175
176
|
};
|
|
176
177
|
}
|
|
177
|
-
function
|
|
178
|
-
return e ? `${e}${
|
|
178
|
+
function ae(e, n, t) {
|
|
179
|
+
return e ? `${e}${Z(n || "")}` : `Styled(${ne(t)})`;
|
|
179
180
|
}
|
|
180
181
|
function ce(e, n) {
|
|
181
182
|
let t;
|
|
182
|
-
return process.env.NODE_ENV !== "production" && e && (t = `${e}-${
|
|
183
|
+
return process.env.NODE_ENV !== "production" && e && (t = `${e}-${L(n || "Root")}`), t;
|
|
183
184
|
}
|
|
184
185
|
function fe(e) {
|
|
185
186
|
for (const n in e)
|
|
@@ -192,7 +193,7 @@ function le(e) {
|
|
|
192
193
|
// it's a lowercase character
|
|
193
194
|
e.charCodeAt(0) > 96;
|
|
194
195
|
}
|
|
195
|
-
function
|
|
196
|
+
function L(e) {
|
|
196
197
|
return e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
197
198
|
}
|
|
198
199
|
function E(e, n) {
|
|
@@ -208,31 +209,31 @@ function E(e, n) {
|
|
|
208
209
|
...t[r]
|
|
209
210
|
};
|
|
210
211
|
else if (r === "componentsProps" || r === "slotProps") {
|
|
211
|
-
const
|
|
212
|
+
const u = e[r], i = n[r];
|
|
212
213
|
if (!i)
|
|
213
|
-
t[r] =
|
|
214
|
-
else if (!
|
|
214
|
+
t[r] = u || {};
|
|
215
|
+
else if (!u)
|
|
215
216
|
t[r] = i;
|
|
216
217
|
else {
|
|
217
218
|
t[r] = {
|
|
218
219
|
...i
|
|
219
220
|
};
|
|
220
|
-
for (const s in
|
|
221
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
221
|
+
for (const s in u)
|
|
222
|
+
if (Object.prototype.hasOwnProperty.call(u, s)) {
|
|
222
223
|
const d = s;
|
|
223
|
-
t[r][d] = E(
|
|
224
|
+
t[r][d] = E(u[d], i[d]);
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
227
|
} else t[r] === void 0 && (t[r] = e[r]);
|
|
227
228
|
}
|
|
228
229
|
return t;
|
|
229
230
|
}
|
|
230
|
-
const
|
|
231
|
+
const M = /* @__PURE__ */ I.createContext(void 0);
|
|
231
232
|
function de({
|
|
232
233
|
value: e,
|
|
233
234
|
children: n
|
|
234
235
|
}) {
|
|
235
|
-
return /* @__PURE__ */ te(
|
|
236
|
+
return /* @__PURE__ */ te(M.Provider, {
|
|
236
237
|
value: e,
|
|
237
238
|
children: n
|
|
238
239
|
});
|
|
@@ -266,7 +267,7 @@ function pe({
|
|
|
266
267
|
props: e,
|
|
267
268
|
name: n
|
|
268
269
|
}) {
|
|
269
|
-
const t = I.useContext(
|
|
270
|
+
const t = I.useContext(M);
|
|
270
271
|
return ye({
|
|
271
272
|
props: e,
|
|
272
273
|
name: n,
|
|
@@ -275,29 +276,29 @@ function pe({
|
|
|
275
276
|
}
|
|
276
277
|
});
|
|
277
278
|
}
|
|
278
|
-
const
|
|
279
|
-
function
|
|
279
|
+
const me = G();
|
|
280
|
+
function he(e) {
|
|
280
281
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
281
282
|
}
|
|
282
|
-
const Se = (e) =>
|
|
283
|
+
const Se = (e) => he(e) && e !== "classes", Oe = ue({
|
|
283
284
|
themeId: ee,
|
|
284
|
-
defaultTheme:
|
|
285
|
+
defaultTheme: me,
|
|
285
286
|
rootShouldForwardProp: Se
|
|
286
287
|
});
|
|
287
288
|
process.env.NODE_ENV !== "production" && (x.node, x.object.isRequired);
|
|
288
|
-
function
|
|
289
|
+
function xe(e) {
|
|
289
290
|
return pe(e);
|
|
290
291
|
}
|
|
291
292
|
export {
|
|
292
293
|
de as D,
|
|
293
294
|
E as a,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
ue as b,
|
|
296
|
+
Ne as c,
|
|
297
|
+
me as d,
|
|
298
|
+
he as e,
|
|
298
299
|
b as f,
|
|
299
300
|
re as p,
|
|
300
301
|
Se as r,
|
|
301
|
-
|
|
302
|
-
|
|
302
|
+
Oe as s,
|
|
303
|
+
xe as u
|
|
303
304
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "./createSvgIcon-
|
|
2
|
+
import { c as o } from "./createSvgIcon-BlKmtOkV.js";
|
|
3
3
|
const r = o(/* @__PURE__ */ e("path", {
|
|
4
4
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
5
5
|
}), "Delete");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),c=require("./createSvgIcon-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("./createSvgIcon-BgBODH2F.cjs"),t=c.createSvgIcon(e.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");exports.DeleteIcon=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const le=require("react"),e=require("./index-DLnSn8GT.cjs"),u=require("./generateUtilityClasses-CMlilM6r.cjs"),ie=require("./useTheme-ClhInrO2.cjs"),c=require("react/jsx-runtime"),n=require("./DefaultPropsProvider-B1crdkTC.cjs"),ce=require("./memoTheme-BAbn60Cb.cjs"),d=require("./useSlot-W0PiuVaZ.cjs"),j=require("./Paper-Bh9CKUCb.cjs"),k=require("./Backdrop-3TL73mAe.cjs"),de=require("./useId-DNXtOFeX.cjs"),a=require("./capitalize-CKLkSyDO.cjs"),ue=require("./Modal-DxwlW5NV.cjs");function ye(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 P=ye(le),S=P.createContext({});process.env.NODE_ENV!=="production"&&(S.displayName="DialogContext");function Pe(r){return u.generateUtilityClass("MuiDialog",r)}const T=u.generateUtilityClasses("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Te=n.styled(k.Backdrop,{name:"MuiDialog",slot:"Backdrop",overrides:(r,o)=>o.backdrop})({zIndex:-1}),be=r=>{const{classes:o,scroll:p,maxWidth:t,fullWidth:y,fullScreen:b}=r,m={root:["root"],container:["container",`scroll${a.capitalize(p)}`],paper:["paper",`paperScroll${a.capitalize(p)}`,`paperWidth${a.capitalize(String(t))}`,y&&"paperFullWidth",b&&"paperFullScreen"]};return n.composeClasses(m,Pe,o)},me=n.styled(ue.Modal,{name:"MuiDialog",slot:"Root",overridesResolver:(r,o)=>o.root})({"@media print":{position:"absolute !important"}}),fe=n.styled("div",{name:"MuiDialog",slot:"Container",overridesResolver:(r,o)=>{const{ownerState:p}=r;return[o.container,o[`scroll${a.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"}}}]}),ge=n.styled(j.Paper,{name:"MuiDialog",slot:"Paper",overridesResolver:(r,o)=>{const{ownerState:p}=r;return[o.paper,o[`scrollPaper${a.capitalize(p.scroll)}`],o[`paperWidth${a.capitalize(String(p.maxWidth))}`],p.fullWidth&&o.paperFullWidth,p.fullScreen&&o.paperFullScreen]}})(ce.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)`,[`&.${T.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}`,[`&.${T.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,[`&.${T.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),O=P.forwardRef(function(o,p){const t=n.useDefaultProps({props:o,name:"MuiDialog"}),y=ie.useTheme(),b={enter:y.transitions.duration.enteringScreen,exit:y.transitions.duration.leavingScreen},{"aria-describedby":m,"aria-labelledby":M,"aria-modal":B=!0,BackdropComponent:q,BackdropProps:F,children:R,className:$,disableEscapeKeyDown:C=!1,fullScreen:N=!1,fullWidth:z=!1,maxWidth:E="sm",onClick:D,onClose:f,open:v,PaperComponent:A=j.Paper,PaperProps:W={},scroll:I="paper",slots:U={},slotProps:_={},TransitionComponent:K=k.Fade,transitionDuration:w=b,TransitionProps:L,...V}=t,s={...t,disableEscapeKeyDown:C,fullScreen:N,fullWidth:z,maxWidth:E,scroll:I},g=be(s),x=P.useRef(),X=i=>{x.current=i.target===i.currentTarget},Y=i=>{D&&D(i),x.current&&(x.current=null,f&&f(i,"backdropClick"))},h=de.useId(M),H=P.useMemo(()=>({titleId:h}),[h]),G={transition:K,...U},J={transition:L,paper:W,backdrop:F,..._},l={slots:G,slotProps:J},[Q,Z]=d.useSlot("root",{elementType:me,shouldForwardComponentProp:!0,externalForwardedProps:l,ownerState:s,className:u.clsx(g.root,$),ref:p}),[ee,oe]=d.useSlot("backdrop",{elementType:Te,shouldForwardComponentProp:!0,externalForwardedProps:l,ownerState:s}),[re,pe]=d.useSlot("paper",{elementType:ge,shouldForwardComponentProp:!0,externalForwardedProps:l,ownerState:s,className:u.clsx(g.paper,W.className)}),[te,se]=d.useSlot("container",{elementType:fe,externalForwardedProps:l,ownerState:s,className:u.clsx(g.container)}),[ae,ne]=d.useSlot("transition",{elementType:k.Fade,externalForwardedProps:l,ownerState:s,additionalProps:{appear:!0,in:v,timeout:w,role:"presentation"}});return c.jsx(Q,{closeAfterTransition:!0,slots:{backdrop:ee},slotProps:{backdrop:{transitionDuration:w,as:q,...oe}},disableEscapeKeyDown:C,onClose:f,open:v,onClick:Y,...Z,...V,children:c.jsx(ae,{...ne,children:c.jsx(te,{onMouseDown:X,...se,children:c.jsx(re,{as:A,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":h,"aria-modal":B,...pe,children:c.jsx(S.Provider,{value:H,children:R})})})})})});process.env.NODE_ENV!=="production"&&(O.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=O;exports.DialogContext=S;exports.dialogClasses=T;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { P as o } from "./index-Sy88PpwE.js";
|
|
3
|
+
import { F as so, G as io, H as k } from "./generateUtilityClasses-DngCqveO.js";
|
|
4
|
+
import { u as po } from "./useTheme-C59wIJ3-.js";
|
|
4
5
|
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 { c as
|
|
12
|
-
import { M as
|
|
6
|
+
import { u as co, s as m, c as uo } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
7
|
+
import { m as mo } from "./memoTheme-nmt7i1dS.js";
|
|
8
|
+
import { u as p } from "./useSlot-BDb1lvxu.js";
|
|
9
|
+
import { P as w } from "./Paper-984iTz4H.js";
|
|
10
|
+
import { F as W, B as bo } from "./Backdrop-BxgGvlLM.js";
|
|
11
|
+
import { u as fo } from "./useId-CK6Kn3Tn.js";
|
|
12
|
+
import { c as n } from "./capitalize-BHFotl9B.js";
|
|
13
|
+
import { M as yo } from "./Modal-vrLLqk9Y.js";
|
|
13
14
|
const O = /* @__PURE__ */ u.createContext({});
|
|
14
15
|
process.env.NODE_ENV !== "production" && (O.displayName = "DialogContext");
|
|
15
|
-
function
|
|
16
|
-
return
|
|
16
|
+
function ho(r) {
|
|
17
|
+
return io("MuiDialog", r);
|
|
17
18
|
}
|
|
18
|
-
const P =
|
|
19
|
+
const P = so("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), go = m(bo, {
|
|
19
20
|
name: "MuiDialog",
|
|
20
21
|
slot: "Backdrop",
|
|
21
22
|
overrides: (r, e) => e.backdrop
|
|
22
23
|
})({
|
|
23
24
|
// Improve scrollable dialog support.
|
|
24
25
|
zIndex: -1
|
|
25
|
-
}),
|
|
26
|
+
}), xo = (r) => {
|
|
26
27
|
const {
|
|
27
28
|
classes: e,
|
|
28
29
|
scroll: a,
|
|
@@ -31,11 +32,11 @@ const P = io("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "pa
|
|
|
31
32
|
fullScreen: b
|
|
32
33
|
} = r, f = {
|
|
33
34
|
root: ["root"],
|
|
34
|
-
container: ["container", `scroll${
|
|
35
|
-
paper: ["paper", `paperScroll${
|
|
35
|
+
container: ["container", `scroll${n(a)}`],
|
|
36
|
+
paper: ["paper", `paperScroll${n(a)}`, `paperWidth${n(String(c))}`, d && "paperFullWidth", b && "paperFullScreen"]
|
|
36
37
|
};
|
|
37
|
-
return
|
|
38
|
-
},
|
|
38
|
+
return uo(f, ho, e);
|
|
39
|
+
}, ko = m(yo, {
|
|
39
40
|
name: "MuiDialog",
|
|
40
41
|
slot: "Root",
|
|
41
42
|
overridesResolver: (r, e) => e.root
|
|
@@ -44,14 +45,14 @@ const P = io("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "pa
|
|
|
44
45
|
// Use !important to override the Modal inline-style.
|
|
45
46
|
position: "absolute !important"
|
|
46
47
|
}
|
|
47
|
-
}),
|
|
48
|
+
}), Po = m("div", {
|
|
48
49
|
name: "MuiDialog",
|
|
49
50
|
slot: "Container",
|
|
50
51
|
overridesResolver: (r, e) => {
|
|
51
52
|
const {
|
|
52
53
|
ownerState: a
|
|
53
54
|
} = r;
|
|
54
|
-
return [e.container, e[`scroll${
|
|
55
|
+
return [e.container, e[`scroll${n(a.scroll)}`]];
|
|
55
56
|
}
|
|
56
57
|
})({
|
|
57
58
|
height: "100%",
|
|
@@ -86,16 +87,16 @@ const P = io("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "pa
|
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
}]
|
|
89
|
-
}), So = m(
|
|
90
|
+
}), So = m(w, {
|
|
90
91
|
name: "MuiDialog",
|
|
91
92
|
slot: "Paper",
|
|
92
93
|
overridesResolver: (r, e) => {
|
|
93
94
|
const {
|
|
94
95
|
ownerState: a
|
|
95
96
|
} = r;
|
|
96
|
-
return [e.paper, e[`scrollPaper${
|
|
97
|
+
return [e.paper, e[`scrollPaper${n(a.scroll)}`], e[`paperWidth${n(String(a.maxWidth))}`], a.fullWidth && e.paperFullWidth, a.fullScreen && e.paperFullScreen];
|
|
97
98
|
}
|
|
98
|
-
})(
|
|
99
|
+
})(mo(({
|
|
99
100
|
theme: r
|
|
100
101
|
}) => ({
|
|
101
102
|
margin: 32,
|
|
@@ -179,129 +180,128 @@ const P = io("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "pa
|
|
|
179
180
|
}
|
|
180
181
|
}]
|
|
181
182
|
}))), To = /* @__PURE__ */ u.forwardRef(function(e, a) {
|
|
182
|
-
const c =
|
|
183
|
+
const c = co({
|
|
183
184
|
props: e,
|
|
184
185
|
name: "MuiDialog"
|
|
185
|
-
}), d =
|
|
186
|
+
}), d = po(), b = {
|
|
186
187
|
enter: d.transitions.duration.enteringScreen,
|
|
187
188
|
exit: d.transitions.duration.leavingScreen
|
|
188
189
|
}, {
|
|
189
190
|
"aria-describedby": f,
|
|
190
191
|
"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,
|
|
192
|
+
"aria-modal": B = !0,
|
|
193
|
+
BackdropComponent: j,
|
|
194
|
+
BackdropProps: F,
|
|
195
|
+
children: $,
|
|
196
|
+
className: N,
|
|
197
|
+
disableEscapeKeyDown: S = !1,
|
|
198
|
+
fullScreen: R = !1,
|
|
199
|
+
fullWidth: E = !1,
|
|
200
|
+
maxWidth: A = "sm",
|
|
201
201
|
onClick: T,
|
|
202
202
|
onClose: y,
|
|
203
|
-
open:
|
|
204
|
-
PaperComponent:
|
|
205
|
-
PaperProps:
|
|
206
|
-
scroll:
|
|
207
|
-
slots:
|
|
208
|
-
slotProps:
|
|
209
|
-
TransitionComponent:
|
|
210
|
-
transitionDuration:
|
|
211
|
-
TransitionProps:
|
|
212
|
-
...
|
|
203
|
+
open: C,
|
|
204
|
+
PaperComponent: I = w,
|
|
205
|
+
PaperProps: D = {},
|
|
206
|
+
scroll: U = "paper",
|
|
207
|
+
slots: H = {},
|
|
208
|
+
slotProps: K = {},
|
|
209
|
+
TransitionComponent: L = W,
|
|
210
|
+
transitionDuration: v = b,
|
|
211
|
+
TransitionProps: V,
|
|
212
|
+
...X
|
|
213
213
|
} = c, t = {
|
|
214
214
|
...c,
|
|
215
|
-
disableEscapeKeyDown:
|
|
216
|
-
fullScreen:
|
|
217
|
-
fullWidth:
|
|
218
|
-
maxWidth:
|
|
219
|
-
scroll:
|
|
220
|
-
}, h =
|
|
221
|
-
g.current =
|
|
222
|
-
},
|
|
223
|
-
T && T(
|
|
224
|
-
}, x =
|
|
215
|
+
disableEscapeKeyDown: S,
|
|
216
|
+
fullScreen: R,
|
|
217
|
+
fullWidth: E,
|
|
218
|
+
maxWidth: A,
|
|
219
|
+
scroll: U
|
|
220
|
+
}, h = xo(t), g = u.useRef(), Y = (s) => {
|
|
221
|
+
g.current = s.target === s.currentTarget;
|
|
222
|
+
}, z = (s) => {
|
|
223
|
+
T && T(s), g.current && (g.current = null, y && y(s, "backdropClick"));
|
|
224
|
+
}, x = fo(M), _ = u.useMemo(() => ({
|
|
225
225
|
titleId: x
|
|
226
|
-
}), [x]),
|
|
226
|
+
}), [x]), q = {
|
|
227
|
+
transition: L,
|
|
228
|
+
...H
|
|
229
|
+
}, G = {
|
|
227
230
|
transition: V,
|
|
231
|
+
paper: D,
|
|
232
|
+
backdrop: F,
|
|
228
233
|
...K
|
|
229
|
-
},
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}, s = {
|
|
235
|
-
slots: G,
|
|
236
|
-
slotProps: J
|
|
237
|
-
}, [Q, Z] = p("root", {
|
|
238
|
-
elementType: Po,
|
|
234
|
+
}, l = {
|
|
235
|
+
slots: q,
|
|
236
|
+
slotProps: G
|
|
237
|
+
}, [J, Q] = p("root", {
|
|
238
|
+
elementType: ko,
|
|
239
239
|
shouldForwardComponentProp: !0,
|
|
240
|
-
externalForwardedProps:
|
|
240
|
+
externalForwardedProps: l,
|
|
241
241
|
ownerState: t,
|
|
242
|
-
className: k(h.root,
|
|
242
|
+
className: k(h.root, N),
|
|
243
243
|
ref: a
|
|
244
|
-
}), [
|
|
245
|
-
elementType:
|
|
244
|
+
}), [Z, oo] = p("backdrop", {
|
|
245
|
+
elementType: go,
|
|
246
246
|
shouldForwardComponentProp: !0,
|
|
247
|
-
externalForwardedProps:
|
|
247
|
+
externalForwardedProps: l,
|
|
248
248
|
ownerState: t
|
|
249
|
-
}), [
|
|
249
|
+
}), [eo, ro] = p("paper", {
|
|
250
250
|
elementType: So,
|
|
251
251
|
shouldForwardComponentProp: !0,
|
|
252
|
-
externalForwardedProps:
|
|
252
|
+
externalForwardedProps: l,
|
|
253
253
|
ownerState: t,
|
|
254
|
-
className: k(h.paper,
|
|
255
|
-
}), [
|
|
256
|
-
elementType:
|
|
257
|
-
externalForwardedProps:
|
|
254
|
+
className: k(h.paper, D.className)
|
|
255
|
+
}), [ao, to] = p("container", {
|
|
256
|
+
elementType: Po,
|
|
257
|
+
externalForwardedProps: l,
|
|
258
258
|
ownerState: t,
|
|
259
259
|
className: k(h.container)
|
|
260
|
-
}), [
|
|
261
|
-
elementType:
|
|
262
|
-
externalForwardedProps:
|
|
260
|
+
}), [no, lo] = p("transition", {
|
|
261
|
+
elementType: W,
|
|
262
|
+
externalForwardedProps: l,
|
|
263
263
|
ownerState: t,
|
|
264
264
|
additionalProps: {
|
|
265
265
|
appear: !0,
|
|
266
|
-
in:
|
|
267
|
-
timeout:
|
|
266
|
+
in: C,
|
|
267
|
+
timeout: v,
|
|
268
268
|
role: "presentation"
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
|
-
return /* @__PURE__ */ i(
|
|
271
|
+
return /* @__PURE__ */ i(J, {
|
|
272
272
|
closeAfterTransition: !0,
|
|
273
273
|
slots: {
|
|
274
|
-
backdrop:
|
|
274
|
+
backdrop: Z
|
|
275
275
|
},
|
|
276
276
|
slotProps: {
|
|
277
277
|
backdrop: {
|
|
278
|
-
transitionDuration:
|
|
279
|
-
as:
|
|
280
|
-
...
|
|
278
|
+
transitionDuration: v,
|
|
279
|
+
as: j,
|
|
280
|
+
...oo
|
|
281
281
|
}
|
|
282
282
|
},
|
|
283
|
-
disableEscapeKeyDown:
|
|
283
|
+
disableEscapeKeyDown: S,
|
|
284
284
|
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:
|
|
285
|
+
open: C,
|
|
286
|
+
onClick: z,
|
|
287
|
+
...Q,
|
|
288
|
+
...X,
|
|
289
|
+
children: /* @__PURE__ */ i(no, {
|
|
290
|
+
...lo,
|
|
291
|
+
children: /* @__PURE__ */ i(ao, {
|
|
292
|
+
onMouseDown: Y,
|
|
293
|
+
...to,
|
|
294
|
+
children: /* @__PURE__ */ i(eo, {
|
|
295
|
+
as: I,
|
|
296
296
|
elevation: 24,
|
|
297
297
|
role: "dialog",
|
|
298
298
|
"aria-describedby": f,
|
|
299
299
|
"aria-labelledby": x,
|
|
300
|
-
"aria-modal":
|
|
301
|
-
...
|
|
300
|
+
"aria-modal": B,
|
|
301
|
+
...ro,
|
|
302
302
|
children: /* @__PURE__ */ i(O.Provider, {
|
|
303
|
-
value:
|
|
304
|
-
children:
|
|
303
|
+
value: _,
|
|
304
|
+
children: $
|
|
305
305
|
})
|
|
306
306
|
})
|
|
307
307
|
})
|
|
@@ -382,11 +382,6 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
382
382
|
* @default 'sm'
|
|
383
383
|
*/
|
|
384
384
|
maxWidth: o.oneOfType([o.oneOf(["xs", "sm", "md", "lg", "xl", !1]), o.string]),
|
|
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,
|
|
390
385
|
/**
|
|
391
386
|
* @ignore
|
|
392
387
|
*/
|
|
@@ -410,7 +405,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
410
405
|
/**
|
|
411
406
|
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
412
407
|
* @default {}
|
|
413
|
-
* @deprecated Use `slotProps.paper` instead. This prop will be removed in
|
|
408
|
+
* @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
409
|
*/
|
|
415
410
|
PaperProps: o.object,
|
|
416
411
|
/**
|
|
@@ -448,7 +443,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
448
443
|
* The component used for the transition.
|
|
449
444
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
450
445
|
* @default Fade
|
|
451
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
446
|
+
* @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
447
|
*/
|
|
453
448
|
TransitionComponent: o.elementType,
|
|
454
449
|
/**
|
|
@@ -467,7 +462,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
467
462
|
/**
|
|
468
463
|
* Props applied to the transition element.
|
|
469
464
|
* 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
|
|
465
|
+
* @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
466
|
*/
|
|
472
467
|
TransitionProps: o.object
|
|
473
468
|
});
|