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