@cgi-learning-hub/ui 1.5.1 → 1.6.0-dev.1747215952
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,136 +1,138 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { o as
|
|
12
|
-
import { o as
|
|
13
|
-
import { d as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { X as fe, G as de, F as me, H as he } from "./generateUtilityClasses-DngCqveO.js";
|
|
3
|
+
import { P as e } from "./index-Sy88PpwE.js";
|
|
4
|
+
import { u as ke } from "./index-DX2Sl0Ig.js";
|
|
5
|
+
import { s as G, u as be, c as ye, r as xe } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
6
|
+
import { u as B } from "./useSlot-BDb1lvxu.js";
|
|
7
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
8
|
+
import { u as De } from "./useSlotProps-B_D8u0j-.js";
|
|
9
|
+
import { i as Ne } from "./isHostComponent-kiaBvYVo.js";
|
|
10
|
+
import { P as Fe, i as Ie } from "./Paper-984iTz4H.js";
|
|
11
|
+
import { o as ee } from "./ownerDocument-CUrv0DIK.js";
|
|
12
|
+
import { o as oe } from "./ownerWindow-niciwP7I.js";
|
|
13
|
+
import { d as je } from "./debounce-46wSf_lW.js";
|
|
14
|
+
import { G as Le } from "./Grow-FFFqe81C.js";
|
|
15
|
+
import { m as ze } from "./mergeSlotProps-BBciKnr4.js";
|
|
16
|
+
import { b as Ke, M as He } from "./Modal-vrLLqk9Y.js";
|
|
16
17
|
import { c as Ue } from "./chainPropTypes-D9lkm76m.js";
|
|
17
|
-
import { r as Ve } from "./refType-
|
|
18
|
-
import { e as Ae } from "./elementTypeAcceptingRef-
|
|
19
|
-
import { H as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
18
|
+
import { r as Ve } from "./refType-Dp7CJc86.js";
|
|
19
|
+
import { e as Ae } from "./elementTypeAcceptingRef-DOeckaXy.js";
|
|
20
|
+
import { H as te } from "./Portal-ChC9wmMZ.js";
|
|
21
|
+
import { a as _e } from "./useEventCallback-Yoj9nCug.js";
|
|
22
|
+
import { u as We } from "./useForkRef-u29GSuCu.js";
|
|
23
|
+
import { L as qe } from "./List-BjfdkeEI.js";
|
|
24
|
+
function Z(t, o, n) {
|
|
23
25
|
return t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : n ? null : t.firstChild;
|
|
24
26
|
}
|
|
25
|
-
function
|
|
27
|
+
function le(t, o, n) {
|
|
26
28
|
return t === o ? n ? t.firstChild : t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : n ? null : t.lastChild;
|
|
27
29
|
}
|
|
28
|
-
function
|
|
30
|
+
function ge(t, o) {
|
|
29
31
|
if (o === void 0)
|
|
30
32
|
return !0;
|
|
31
33
|
let n = t.innerText;
|
|
32
34
|
return n === void 0 && (n = t.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : o.repeating ? n[0] === o.keys[0] : n.startsWith(o.keys.join(""));
|
|
33
35
|
}
|
|
34
|
-
function
|
|
35
|
-
let g = !1,
|
|
36
|
-
for (;
|
|
37
|
-
if (
|
|
36
|
+
function q(t, o, n, k, E, y) {
|
|
37
|
+
let g = !1, m = E(t, o, o ? n : !1);
|
|
38
|
+
for (; m; ) {
|
|
39
|
+
if (m === t.firstChild) {
|
|
38
40
|
if (g)
|
|
39
41
|
return !1;
|
|
40
42
|
g = !0;
|
|
41
43
|
}
|
|
42
|
-
const
|
|
43
|
-
if (!
|
|
44
|
-
|
|
44
|
+
const b = k ? !1 : m.disabled || m.getAttribute("aria-disabled") === "true";
|
|
45
|
+
if (!m.hasAttribute("tabindex") || !ge(m, y) || b)
|
|
46
|
+
m = E(t, m, n);
|
|
45
47
|
else
|
|
46
|
-
return
|
|
48
|
+
return m.focus(), !0;
|
|
47
49
|
}
|
|
48
50
|
return !1;
|
|
49
51
|
}
|
|
50
|
-
const
|
|
52
|
+
const Pe = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
51
53
|
const {
|
|
52
54
|
// private
|
|
53
55
|
// eslint-disable-next-line react/prop-types
|
|
54
|
-
actions:
|
|
55
|
-
autoFocus:
|
|
56
|
-
autoFocusItem:
|
|
56
|
+
actions: k,
|
|
57
|
+
autoFocus: E = !1,
|
|
58
|
+
autoFocusItem: y = !1,
|
|
57
59
|
children: g,
|
|
58
|
-
className:
|
|
59
|
-
disabledItemsFocusable:
|
|
60
|
-
disableListWrap:
|
|
61
|
-
onKeyDown:
|
|
62
|
-
variant:
|
|
63
|
-
...
|
|
64
|
-
} = o,
|
|
60
|
+
className: m,
|
|
61
|
+
disabledItemsFocusable: b = !1,
|
|
62
|
+
disableListWrap: R = !1,
|
|
63
|
+
onKeyDown: x,
|
|
64
|
+
variant: L = "selectedMenu",
|
|
65
|
+
...K
|
|
66
|
+
} = o, a = u.useRef(null), P = u.useRef({
|
|
65
67
|
keys: [],
|
|
66
68
|
repeating: !0,
|
|
67
69
|
previousKeyMatched: !0,
|
|
68
70
|
lastTime: null
|
|
69
71
|
});
|
|
70
72
|
_e(() => {
|
|
71
|
-
|
|
72
|
-
}, [
|
|
73
|
+
E && a.current.focus();
|
|
74
|
+
}, [E]), u.useImperativeHandle(k, () => ({
|
|
73
75
|
adjustStyleForScrollbar: (r, {
|
|
74
|
-
direction:
|
|
76
|
+
direction: l
|
|
75
77
|
}) => {
|
|
76
|
-
const
|
|
77
|
-
if (r.clientHeight <
|
|
78
|
-
const
|
|
79
|
-
|
|
78
|
+
const p = !a.current.style.width;
|
|
79
|
+
if (r.clientHeight < a.current.clientHeight && p) {
|
|
80
|
+
const O = `${Ke(oe(r))}px`;
|
|
81
|
+
a.current.style[l === "rtl" ? "paddingLeft" : "paddingRight"] = O, a.current.style.width = `calc(100% + ${O})`;
|
|
80
82
|
}
|
|
81
|
-
return
|
|
83
|
+
return a.current;
|
|
82
84
|
}
|
|
83
85
|
}), []);
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
+
const H = (r) => {
|
|
87
|
+
const l = a.current, p = r.key;
|
|
86
88
|
if (r.ctrlKey || r.metaKey || r.altKey) {
|
|
87
|
-
|
|
89
|
+
x && x(r);
|
|
88
90
|
return;
|
|
89
91
|
}
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
92
|
-
r.preventDefault(),
|
|
93
|
-
else if (
|
|
94
|
-
r.preventDefault(),
|
|
95
|
-
else if (
|
|
96
|
-
r.preventDefault(),
|
|
97
|
-
else if (
|
|
98
|
-
r.preventDefault(),
|
|
99
|
-
else if (
|
|
100
|
-
const c =
|
|
101
|
-
c.keys.length > 0 && (
|
|
102
|
-
const
|
|
103
|
-
c.previousKeyMatched && (
|
|
92
|
+
const D = ee(l).activeElement;
|
|
93
|
+
if (p === "ArrowDown")
|
|
94
|
+
r.preventDefault(), q(l, D, R, b, Z);
|
|
95
|
+
else if (p === "ArrowUp")
|
|
96
|
+
r.preventDefault(), q(l, D, R, b, le);
|
|
97
|
+
else if (p === "Home")
|
|
98
|
+
r.preventDefault(), q(l, null, R, b, Z);
|
|
99
|
+
else if (p === "End")
|
|
100
|
+
r.preventDefault(), q(l, null, R, b, le);
|
|
101
|
+
else if (p.length === 1) {
|
|
102
|
+
const c = P.current, C = p.toLowerCase(), z = performance.now();
|
|
103
|
+
c.keys.length > 0 && (z - c.lastTime > 500 ? (c.keys = [], c.repeating = !0, c.previousKeyMatched = !0) : c.repeating && C !== c.keys[0] && (c.repeating = !1)), c.lastTime = z, c.keys.push(C);
|
|
104
|
+
const N = D && !c.repeating && ge(D, c);
|
|
105
|
+
c.previousKeyMatched && (N || q(l, D, !1, b, Z, c)) ? r.preventDefault() : c.previousKeyMatched = !1;
|
|
104
106
|
}
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
let
|
|
108
|
-
|
|
109
|
-
if (!/* @__PURE__ */
|
|
110
|
-
|
|
107
|
+
x && x(r);
|
|
108
|
+
}, F = We(a, n);
|
|
109
|
+
let i = -1;
|
|
110
|
+
u.Children.forEach(g, (r, l) => {
|
|
111
|
+
if (!/* @__PURE__ */ u.isValidElement(r)) {
|
|
112
|
+
i === l && (i += 1, i >= g.length && (i = -1));
|
|
111
113
|
return;
|
|
112
114
|
}
|
|
113
|
-
process.env.NODE_ENV !== "production" &&
|
|
114
|
-
`)), r.props.disabled || (
|
|
115
|
+
process.env.NODE_ENV !== "production" && fe.isFragment(r) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
116
|
+
`)), r.props.disabled || (L === "selectedMenu" && r.props.selected || i === -1) && (i = l), i === l && (r.props.disabled || r.props.muiSkipListHighlight || r.type.muiSkipListHighlight) && (i += 1, i >= g.length && (i = -1));
|
|
115
117
|
});
|
|
116
|
-
const
|
|
117
|
-
if (
|
|
118
|
-
const
|
|
119
|
-
return
|
|
118
|
+
const T = u.Children.map(g, (r, l) => {
|
|
119
|
+
if (l === i) {
|
|
120
|
+
const p = {};
|
|
121
|
+
return y && (p.autoFocus = !0), r.props.tabIndex === void 0 && L === "selectedMenu" && (p.tabIndex = 0), /* @__PURE__ */ u.cloneElement(r, p);
|
|
120
122
|
}
|
|
121
123
|
return r;
|
|
122
124
|
});
|
|
123
|
-
return /* @__PURE__ */
|
|
125
|
+
return /* @__PURE__ */ A(qe, {
|
|
124
126
|
role: "menu",
|
|
125
|
-
ref:
|
|
126
|
-
className:
|
|
127
|
-
onKeyDown:
|
|
128
|
-
tabIndex:
|
|
129
|
-
...
|
|
130
|
-
children:
|
|
127
|
+
ref: F,
|
|
128
|
+
className: m,
|
|
129
|
+
onKeyDown: H,
|
|
130
|
+
tabIndex: E ? 0 : -1,
|
|
131
|
+
...K,
|
|
132
|
+
children: T
|
|
131
133
|
});
|
|
132
134
|
});
|
|
133
|
-
process.env.NODE_ENV !== "production" && (
|
|
135
|
+
process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
134
136
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
135
137
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
136
138
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -175,37 +177,37 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
|
175
177
|
*/
|
|
176
178
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
177
179
|
});
|
|
178
|
-
function
|
|
179
|
-
return
|
|
180
|
+
function $e(t) {
|
|
181
|
+
return de("MuiPopover", t);
|
|
180
182
|
}
|
|
181
|
-
|
|
182
|
-
function
|
|
183
|
+
me("MuiPopover", ["root", "paper"]);
|
|
184
|
+
function pe(t, o) {
|
|
183
185
|
let n = 0;
|
|
184
186
|
return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
|
|
185
187
|
}
|
|
186
|
-
function
|
|
188
|
+
function ce(t, o) {
|
|
187
189
|
let n = 0;
|
|
188
190
|
return typeof o == "number" ? n = o : o === "center" ? n = t.width / 2 : o === "right" && (n = t.width), n;
|
|
189
191
|
}
|
|
190
|
-
function
|
|
192
|
+
function ue(t) {
|
|
191
193
|
return [t.horizontal, t.vertical].map((o) => typeof o == "number" ? `${o}px` : o).join(" ");
|
|
192
194
|
}
|
|
193
|
-
function
|
|
195
|
+
function $(t) {
|
|
194
196
|
return typeof t == "function" ? t() : t;
|
|
195
197
|
}
|
|
196
|
-
const
|
|
198
|
+
const Be = (t) => {
|
|
197
199
|
const {
|
|
198
200
|
classes: o
|
|
199
201
|
} = t;
|
|
200
|
-
return
|
|
202
|
+
return ye({
|
|
201
203
|
root: ["root"],
|
|
202
204
|
paper: ["paper"]
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
+
}, $e, o);
|
|
206
|
+
}, Ge = G(He, {
|
|
205
207
|
name: "MuiPopover",
|
|
206
208
|
slot: "Root",
|
|
207
209
|
overridesResolver: (t, o) => o.root
|
|
208
|
-
})({}),
|
|
210
|
+
})({}), ve = G(Fe, {
|
|
209
211
|
name: "MuiPopover",
|
|
210
212
|
slot: "Paper",
|
|
211
213
|
overridesResolver: (t, o) => o.paper
|
|
@@ -221,192 +223,219 @@ const $e = (t) => {
|
|
|
221
223
|
maxHeight: "calc(100% - 32px)",
|
|
222
224
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
223
225
|
outline: 0
|
|
224
|
-
}),
|
|
225
|
-
const
|
|
226
|
+
}), Te = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
227
|
+
const k = be({
|
|
226
228
|
props: o,
|
|
227
229
|
name: "MuiPopover"
|
|
228
230
|
}), {
|
|
229
|
-
action:
|
|
230
|
-
anchorEl:
|
|
231
|
+
action: E,
|
|
232
|
+
anchorEl: y,
|
|
231
233
|
anchorOrigin: g = {
|
|
232
234
|
vertical: "top",
|
|
233
235
|
horizontal: "left"
|
|
234
236
|
},
|
|
235
|
-
anchorPosition:
|
|
236
|
-
anchorReference:
|
|
237
|
-
children:
|
|
238
|
-
className:
|
|
239
|
-
container:
|
|
240
|
-
elevation:
|
|
241
|
-
marginThreshold:
|
|
242
|
-
open:
|
|
243
|
-
PaperProps:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
237
|
+
anchorPosition: m,
|
|
238
|
+
anchorReference: b = "anchorEl",
|
|
239
|
+
children: R,
|
|
240
|
+
className: x,
|
|
241
|
+
container: L,
|
|
242
|
+
elevation: K = 8,
|
|
243
|
+
marginThreshold: a = 16,
|
|
244
|
+
open: P,
|
|
245
|
+
PaperProps: H = {},
|
|
246
|
+
// TODO: remove in v7
|
|
247
|
+
slots: F = {},
|
|
248
|
+
slotProps: i = {},
|
|
249
|
+
transformOrigin: T = {
|
|
247
250
|
vertical: "top",
|
|
248
251
|
horizontal: "left"
|
|
249
252
|
},
|
|
250
|
-
TransitionComponent: r
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
...x,
|
|
253
|
+
TransitionComponent: r,
|
|
254
|
+
// TODO: remove in v7
|
|
255
|
+
transitionDuration: l = "auto",
|
|
256
|
+
TransitionProps: p = {},
|
|
257
|
+
// TODO: remove in v7
|
|
258
|
+
disableScrollLock: O = !1,
|
|
259
|
+
...D
|
|
260
|
+
} = k, c = u.useRef(), C = {
|
|
261
|
+
...k,
|
|
260
262
|
anchorOrigin: g,
|
|
261
|
-
anchorReference:
|
|
262
|
-
elevation:
|
|
263
|
-
marginThreshold:
|
|
264
|
-
|
|
265
|
-
transformOrigin: R,
|
|
263
|
+
anchorReference: b,
|
|
264
|
+
elevation: K,
|
|
265
|
+
marginThreshold: a,
|
|
266
|
+
transformOrigin: T,
|
|
266
267
|
TransitionComponent: r,
|
|
267
|
-
transitionDuration:
|
|
268
|
-
TransitionProps:
|
|
269
|
-
},
|
|
270
|
-
if (
|
|
271
|
-
return process.env.NODE_ENV !== "production" && (
|
|
272
|
-
const
|
|
268
|
+
transitionDuration: l,
|
|
269
|
+
TransitionProps: p
|
|
270
|
+
}, z = Be(C), N = u.useCallback(() => {
|
|
271
|
+
if (b === "anchorPosition")
|
|
272
|
+
return process.env.NODE_ENV !== "production" && (m || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), m;
|
|
273
|
+
const s = $(y), d = s && s.nodeType === 1 ? s : ee(c.current).body, h = d.getBoundingClientRect();
|
|
273
274
|
if (process.env.NODE_ENV !== "production") {
|
|
274
|
-
const
|
|
275
|
-
process.env.NODE_ENV !== "test" &&
|
|
275
|
+
const S = d.getBoundingClientRect();
|
|
276
|
+
process.env.NODE_ENV !== "test" && S.top === 0 && S.left === 0 && S.right === 0 && S.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
276
277
|
`));
|
|
277
278
|
}
|
|
278
279
|
return {
|
|
279
|
-
top:
|
|
280
|
-
left:
|
|
280
|
+
top: h.top + pe(h, g.vertical),
|
|
281
|
+
left: h.left + ce(h, g.horizontal)
|
|
281
282
|
};
|
|
282
|
-
}, [
|
|
283
|
-
vertical:
|
|
284
|
-
horizontal:
|
|
285
|
-
}), [
|
|
286
|
-
const
|
|
287
|
-
width:
|
|
288
|
-
height:
|
|
289
|
-
},
|
|
290
|
-
if (
|
|
283
|
+
}, [y, g.horizontal, g.vertical, m, b]), I = u.useCallback((s) => ({
|
|
284
|
+
vertical: pe(s, T.vertical),
|
|
285
|
+
horizontal: ce(s, T.horizontal)
|
|
286
|
+
}), [T.horizontal, T.vertical]), X = u.useCallback((s) => {
|
|
287
|
+
const d = {
|
|
288
|
+
width: s.offsetWidth,
|
|
289
|
+
height: s.offsetHeight
|
|
290
|
+
}, h = I(d);
|
|
291
|
+
if (b === "none")
|
|
291
292
|
return {
|
|
292
293
|
top: null,
|
|
293
294
|
left: null,
|
|
294
|
-
transformOrigin:
|
|
295
|
+
transformOrigin: ue(h)
|
|
295
296
|
};
|
|
296
|
-
const
|
|
297
|
-
let
|
|
298
|
-
const re =
|
|
299
|
-
if (
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
} else if (
|
|
303
|
-
const
|
|
304
|
-
|
|
297
|
+
const S = N();
|
|
298
|
+
let U = S.top - h.vertical, V = S.left - h.horizontal;
|
|
299
|
+
const re = U + d.height, se = V + d.width, ie = oe($(y)), W = ie.innerHeight - a, ae = ie.innerWidth - a;
|
|
300
|
+
if (a !== null && U < a) {
|
|
301
|
+
const w = U - a;
|
|
302
|
+
U -= w, h.vertical += w;
|
|
303
|
+
} else if (a !== null && re > W) {
|
|
304
|
+
const w = re - W;
|
|
305
|
+
U -= w, h.vertical += w;
|
|
305
306
|
}
|
|
306
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
307
|
-
`)),
|
|
308
|
-
const
|
|
309
|
-
|
|
307
|
+
if (process.env.NODE_ENV !== "production" && d.height > W && d.height && W && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${d.height - W}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
308
|
+
`)), a !== null && V < a) {
|
|
309
|
+
const w = V - a;
|
|
310
|
+
V -= w, h.horizontal += w;
|
|
310
311
|
} else if (se > ae) {
|
|
311
|
-
const
|
|
312
|
-
|
|
312
|
+
const w = se - ae;
|
|
313
|
+
V -= w, h.horizontal += w;
|
|
313
314
|
}
|
|
314
315
|
return {
|
|
315
|
-
top: `${Math.round(
|
|
316
|
-
left: `${Math.round(
|
|
317
|
-
transformOrigin:
|
|
316
|
+
top: `${Math.round(U)}px`,
|
|
317
|
+
left: `${Math.round(V)}px`,
|
|
318
|
+
transformOrigin: ue(h)
|
|
318
319
|
};
|
|
319
|
-
}, [
|
|
320
|
-
const
|
|
321
|
-
if (!
|
|
320
|
+
}, [y, b, N, I, a]), [J, Y] = u.useState(P), M = u.useCallback(() => {
|
|
321
|
+
const s = c.current;
|
|
322
|
+
if (!s)
|
|
322
323
|
return;
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
}, [
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
|
|
329
|
-
},
|
|
330
|
-
|
|
324
|
+
const d = X(s);
|
|
325
|
+
d.top !== null && s.style.setProperty("top", d.top), d.left !== null && (s.style.left = d.left), s.style.transformOrigin = d.transformOrigin, Y(!0);
|
|
326
|
+
}, [X]);
|
|
327
|
+
u.useEffect(() => (O && window.addEventListener("scroll", M), () => window.removeEventListener("scroll", M)), [y, O, M]);
|
|
328
|
+
const Q = () => {
|
|
329
|
+
M();
|
|
330
|
+
}, j = () => {
|
|
331
|
+
Y(!1);
|
|
331
332
|
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}),
|
|
333
|
+
u.useEffect(() => {
|
|
334
|
+
P && M();
|
|
335
|
+
}), u.useImperativeHandle(E, () => P ? {
|
|
335
336
|
updatePosition: () => {
|
|
336
|
-
|
|
337
|
+
M();
|
|
337
338
|
}
|
|
338
|
-
} : null, [
|
|
339
|
-
if (!
|
|
339
|
+
} : null, [P, M]), u.useEffect(() => {
|
|
340
|
+
if (!P)
|
|
340
341
|
return;
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
}),
|
|
344
|
-
return
|
|
345
|
-
|
|
342
|
+
const s = je(() => {
|
|
343
|
+
M();
|
|
344
|
+
}), d = oe($(y));
|
|
345
|
+
return d.addEventListener("resize", s), () => {
|
|
346
|
+
s.clear(), d.removeEventListener("resize", s);
|
|
346
347
|
};
|
|
347
|
-
}, [
|
|
348
|
-
let
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
348
|
+
}, [y, P, M]);
|
|
349
|
+
let f = l;
|
|
350
|
+
const v = {
|
|
351
|
+
slots: {
|
|
352
|
+
transition: r,
|
|
353
|
+
...F
|
|
354
|
+
},
|
|
352
355
|
slotProps: {
|
|
353
|
-
|
|
354
|
-
paper:
|
|
356
|
+
transition: p,
|
|
357
|
+
paper: H,
|
|
358
|
+
...i
|
|
355
359
|
}
|
|
356
|
-
}, [
|
|
357
|
-
elementType:
|
|
358
|
-
externalForwardedProps:
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
360
|
+
}, [_, Ee] = B("transition", {
|
|
361
|
+
elementType: Le,
|
|
362
|
+
externalForwardedProps: v,
|
|
363
|
+
ownerState: C,
|
|
364
|
+
getSlotProps: (s) => ({
|
|
365
|
+
...s,
|
|
366
|
+
onEntering: (d, h) => {
|
|
367
|
+
var S;
|
|
368
|
+
(S = s.onEntering) == null || S.call(s, d, h), Q();
|
|
369
|
+
},
|
|
370
|
+
onExited: (d) => {
|
|
371
|
+
var h;
|
|
372
|
+
(h = s.onExited) == null || h.call(s, d), j();
|
|
365
373
|
}
|
|
374
|
+
}),
|
|
375
|
+
additionalProps: {
|
|
376
|
+
appear: !0,
|
|
377
|
+
in: P
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
l === "auto" && !_.muiSupportAuto && (f = void 0);
|
|
381
|
+
const Oe = L || (y ? ee($(y)).body : void 0), [ne, {
|
|
382
|
+
slots: Me,
|
|
383
|
+
slotProps: we,
|
|
384
|
+
...Re
|
|
385
|
+
}] = B("root", {
|
|
386
|
+
ref: n,
|
|
387
|
+
elementType: Ge,
|
|
388
|
+
externalForwardedProps: {
|
|
389
|
+
...v,
|
|
390
|
+
...D
|
|
366
391
|
},
|
|
367
|
-
|
|
368
|
-
}), [ne, {
|
|
369
|
-
slotProps: xe,
|
|
370
|
-
...Ne
|
|
371
|
-
}] = ce("root", {
|
|
372
|
-
elementType: Be,
|
|
373
|
-
externalForwardedProps: oe,
|
|
392
|
+
shouldForwardComponentProp: !0,
|
|
374
393
|
additionalProps: {
|
|
394
|
+
slots: {
|
|
395
|
+
backdrop: F.backdrop
|
|
396
|
+
},
|
|
375
397
|
slotProps: {
|
|
376
|
-
backdrop: {
|
|
398
|
+
backdrop: ze(typeof i.backdrop == "function" ? i.backdrop(C) : i.backdrop, {
|
|
377
399
|
invisible: !0
|
|
378
|
-
}
|
|
400
|
+
})
|
|
379
401
|
},
|
|
380
|
-
container:
|
|
381
|
-
open:
|
|
402
|
+
container: Oe,
|
|
403
|
+
open: P
|
|
382
404
|
},
|
|
383
405
|
ownerState: C,
|
|
384
|
-
className:
|
|
385
|
-
}), Se =
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
406
|
+
className: he(z.root, x)
|
|
407
|
+
}), [Ce, Se] = B("paper", {
|
|
408
|
+
ref: c,
|
|
409
|
+
className: z.paper,
|
|
410
|
+
elementType: ve,
|
|
411
|
+
externalForwardedProps: v,
|
|
412
|
+
shouldForwardComponentProp: !0,
|
|
413
|
+
additionalProps: {
|
|
414
|
+
elevation: K,
|
|
415
|
+
style: J ? void 0 : {
|
|
416
|
+
opacity: 0
|
|
417
|
+
}
|
|
391
418
|
},
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
419
|
+
ownerState: C
|
|
420
|
+
});
|
|
421
|
+
return /* @__PURE__ */ A(ne, {
|
|
422
|
+
...Re,
|
|
423
|
+
...!Ne(ne) && {
|
|
424
|
+
slots: Me,
|
|
425
|
+
slotProps: we,
|
|
426
|
+
disableScrollLock: O
|
|
427
|
+
},
|
|
428
|
+
children: /* @__PURE__ */ A(_, {
|
|
429
|
+
...Ee,
|
|
430
|
+
timeout: f,
|
|
431
|
+
children: /* @__PURE__ */ A(Ce, {
|
|
432
|
+
...Se,
|
|
433
|
+
children: R
|
|
405
434
|
})
|
|
406
435
|
})
|
|
407
436
|
});
|
|
408
437
|
});
|
|
409
|
-
process.env.NODE_ENV !== "production" && (
|
|
438
|
+
process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
410
439
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
411
440
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
412
441
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -421,9 +450,9 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
421
450
|
* or a function that returns either.
|
|
422
451
|
* It's used to set the position of the popover.
|
|
423
452
|
*/
|
|
424
|
-
anchorEl: Ue(e.oneOfType([
|
|
453
|
+
anchorEl: Ue(e.oneOfType([te, e.func]), (t) => {
|
|
425
454
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
426
|
-
const o =
|
|
455
|
+
const o = $(t.anchorEl);
|
|
427
456
|
if (o && o.nodeType === 1) {
|
|
428
457
|
const n = o.getBoundingClientRect();
|
|
429
458
|
if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0)
|
|
@@ -468,8 +497,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
468
497
|
anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
|
|
469
498
|
/**
|
|
470
499
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
471
|
-
* @deprecated Use `
|
|
472
|
-
* Use the `slotProps.root.slots.backdrop` prop to make your application ready for the next version of Material UI.
|
|
500
|
+
* @deprecated Use `slots.backdrop` 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.
|
|
473
501
|
* @default styled(Backdrop, {
|
|
474
502
|
* name: 'MuiModal',
|
|
475
503
|
* slot: 'Backdrop',
|
|
@@ -483,7 +511,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
483
511
|
BackdropComponent: e.elementType,
|
|
484
512
|
/**
|
|
485
513
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
486
|
-
* @deprecated Use `slotProps.
|
|
514
|
+
* @deprecated Use `slotProps.backdrop` 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.
|
|
487
515
|
*/
|
|
488
516
|
BackdropProps: e.object,
|
|
489
517
|
/**
|
|
@@ -505,7 +533,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
505
533
|
* By default, it uses the body of the anchorEl's top-level document object,
|
|
506
534
|
* so it's simply `document.body` most of the time.
|
|
507
535
|
*/
|
|
508
|
-
container: e.oneOfType([
|
|
536
|
+
container: e.oneOfType([te, e.func]),
|
|
509
537
|
/**
|
|
510
538
|
* Disable the scroll lock behavior.
|
|
511
539
|
* @default false
|
|
@@ -515,7 +543,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
515
543
|
* The elevation of the popover.
|
|
516
544
|
* @default 8
|
|
517
545
|
*/
|
|
518
|
-
elevation:
|
|
546
|
+
elevation: Ie,
|
|
519
547
|
/**
|
|
520
548
|
* Specifies how close to the edge of the window the popover can appear.
|
|
521
549
|
* If null, the popover will not be constrained by the window.
|
|
@@ -547,16 +575,20 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
547
575
|
* @default {}
|
|
548
576
|
*/
|
|
549
577
|
slotProps: e.shape({
|
|
578
|
+
backdrop: e.oneOfType([e.func, e.object]),
|
|
550
579
|
paper: e.oneOfType([e.func, e.object]),
|
|
551
|
-
root: e.oneOfType([e.func, e.object])
|
|
580
|
+
root: e.oneOfType([e.func, e.object]),
|
|
581
|
+
transition: e.oneOfType([e.func, e.object])
|
|
552
582
|
}),
|
|
553
583
|
/**
|
|
554
584
|
* The components used for each slot inside.
|
|
555
585
|
* @default {}
|
|
556
586
|
*/
|
|
557
587
|
slots: e.shape({
|
|
588
|
+
backdrop: e.elementType,
|
|
558
589
|
paper: e.elementType,
|
|
559
|
-
root: e.elementType
|
|
590
|
+
root: e.elementType,
|
|
591
|
+
transition: e.elementType
|
|
560
592
|
}),
|
|
561
593
|
/**
|
|
562
594
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -581,6 +613,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
581
613
|
/**
|
|
582
614
|
* The component used for the transition.
|
|
583
615
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
616
|
+
* @deprecated use the `slots.transition` 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.
|
|
584
617
|
* @default Grow
|
|
585
618
|
*/
|
|
586
619
|
TransitionComponent: e.elementType,
|
|
@@ -596,34 +629,35 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
596
629
|
/**
|
|
597
630
|
* Props applied to the transition element.
|
|
598
631
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
632
|
+
* @deprecated use the `slotProps.transition` 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.
|
|
599
633
|
* @default {}
|
|
600
634
|
*/
|
|
601
635
|
TransitionProps: e.object
|
|
602
636
|
});
|
|
603
|
-
function
|
|
604
|
-
return
|
|
637
|
+
function Xe(t) {
|
|
638
|
+
return de("MuiMenu", t);
|
|
605
639
|
}
|
|
606
|
-
const
|
|
640
|
+
const Ro = me("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
607
641
|
vertical: "top",
|
|
608
642
|
horizontal: "right"
|
|
609
|
-
},
|
|
643
|
+
}, Je = {
|
|
610
644
|
vertical: "top",
|
|
611
645
|
horizontal: "left"
|
|
612
|
-
},
|
|
646
|
+
}, Qe = (t) => {
|
|
613
647
|
const {
|
|
614
648
|
classes: o
|
|
615
649
|
} = t;
|
|
616
|
-
return
|
|
650
|
+
return ye({
|
|
617
651
|
root: ["root"],
|
|
618
652
|
paper: ["paper"],
|
|
619
653
|
list: ["list"]
|
|
620
|
-
},
|
|
621
|
-
},
|
|
622
|
-
shouldForwardProp: (t) =>
|
|
654
|
+
}, Xe, o);
|
|
655
|
+
}, Ze = G(Te, {
|
|
656
|
+
shouldForwardProp: (t) => xe(t) || t === "classes",
|
|
623
657
|
name: "MuiMenu",
|
|
624
658
|
slot: "Root",
|
|
625
659
|
overridesResolver: (t, o) => o.root
|
|
626
|
-
})({}),
|
|
660
|
+
})({}), eo = G(ve, {
|
|
627
661
|
name: "MuiMenu",
|
|
628
662
|
slot: "Paper",
|
|
629
663
|
overridesResolver: (t, o) => o.paper
|
|
@@ -634,107 +668,136 @@ const Mo = ge("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
634
668
|
maxHeight: "calc(100% - 96px)",
|
|
635
669
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
636
670
|
WebkitOverflowScrolling: "touch"
|
|
637
|
-
}),
|
|
671
|
+
}), oo = G(Pe, {
|
|
638
672
|
name: "MuiMenu",
|
|
639
673
|
slot: "List",
|
|
640
674
|
overridesResolver: (t, o) => o.list
|
|
641
675
|
})({
|
|
642
676
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
643
677
|
outline: 0
|
|
644
|
-
}),
|
|
645
|
-
const
|
|
678
|
+
}), to = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
679
|
+
const k = be({
|
|
646
680
|
props: o,
|
|
647
681
|
name: "MuiMenu"
|
|
648
682
|
}), {
|
|
649
|
-
autoFocus:
|
|
650
|
-
children:
|
|
683
|
+
autoFocus: E = !0,
|
|
684
|
+
children: y,
|
|
651
685
|
className: g,
|
|
652
|
-
disableAutoFocusItem:
|
|
653
|
-
MenuListProps:
|
|
654
|
-
onClose:
|
|
655
|
-
open:
|
|
656
|
-
PaperProps:
|
|
657
|
-
PopoverClasses:
|
|
658
|
-
transitionDuration:
|
|
686
|
+
disableAutoFocusItem: m = !1,
|
|
687
|
+
MenuListProps: b = {},
|
|
688
|
+
onClose: R,
|
|
689
|
+
open: x,
|
|
690
|
+
PaperProps: L = {},
|
|
691
|
+
PopoverClasses: K,
|
|
692
|
+
transitionDuration: a = "auto",
|
|
659
693
|
TransitionProps: {
|
|
660
|
-
onEntering:
|
|
661
|
-
...
|
|
694
|
+
onEntering: P,
|
|
695
|
+
...H
|
|
662
696
|
} = {},
|
|
663
|
-
variant:
|
|
664
|
-
slots:
|
|
665
|
-
slotProps:
|
|
697
|
+
variant: F = "selectedMenu",
|
|
698
|
+
slots: i = {},
|
|
699
|
+
slotProps: T = {},
|
|
666
700
|
...r
|
|
667
|
-
} =
|
|
668
|
-
...
|
|
669
|
-
autoFocus:
|
|
670
|
-
disableAutoFocusItem:
|
|
671
|
-
MenuListProps:
|
|
672
|
-
onEntering:
|
|
673
|
-
PaperProps:
|
|
674
|
-
transitionDuration:
|
|
675
|
-
TransitionProps:
|
|
676
|
-
variant:
|
|
677
|
-
},
|
|
678
|
-
c.current && c.current.adjustStyleForScrollbar(
|
|
679
|
-
direction:
|
|
680
|
-
}),
|
|
681
|
-
},
|
|
682
|
-
|
|
701
|
+
} = k, l = ke(), p = {
|
|
702
|
+
...k,
|
|
703
|
+
autoFocus: E,
|
|
704
|
+
disableAutoFocusItem: m,
|
|
705
|
+
MenuListProps: b,
|
|
706
|
+
onEntering: P,
|
|
707
|
+
PaperProps: L,
|
|
708
|
+
transitionDuration: a,
|
|
709
|
+
TransitionProps: H,
|
|
710
|
+
variant: F
|
|
711
|
+
}, O = Qe(p), D = E && !m && x, c = u.useRef(null), C = (f, v) => {
|
|
712
|
+
c.current && c.current.adjustStyleForScrollbar(f, {
|
|
713
|
+
direction: l ? "rtl" : "ltr"
|
|
714
|
+
}), P && P(f, v);
|
|
715
|
+
}, z = (f) => {
|
|
716
|
+
f.key === "Tab" && (f.preventDefault(), R && R(f, "tabKeyDown"));
|
|
683
717
|
};
|
|
684
|
-
let
|
|
685
|
-
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
`)),
|
|
718
|
+
let N = -1;
|
|
719
|
+
u.Children.map(y, (f, v) => {
|
|
720
|
+
/* @__PURE__ */ u.isValidElement(f) && (process.env.NODE_ENV !== "production" && fe.isFragment(f) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
721
|
+
`)), f.props.disabled || (F === "selectedMenu" && f.props.selected || N === -1) && (N = v));
|
|
688
722
|
});
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
723
|
+
const I = {
|
|
724
|
+
slots: i,
|
|
725
|
+
slotProps: {
|
|
726
|
+
list: b,
|
|
727
|
+
transition: H,
|
|
728
|
+
paper: L,
|
|
729
|
+
...T
|
|
730
|
+
}
|
|
731
|
+
}, X = De({
|
|
732
|
+
elementType: i.root,
|
|
733
|
+
externalSlotProps: T.root,
|
|
734
|
+
ownerState: p,
|
|
735
|
+
className: [O.root, g]
|
|
736
|
+
}), [J, Y] = B("paper", {
|
|
737
|
+
className: O.paper,
|
|
738
|
+
elementType: eo,
|
|
739
|
+
externalForwardedProps: I,
|
|
740
|
+
shouldForwardComponentProp: !0,
|
|
741
|
+
ownerState: p
|
|
742
|
+
}), [M, Q] = B("list", {
|
|
743
|
+
className: he(O.list, b.className),
|
|
744
|
+
elementType: oo,
|
|
745
|
+
shouldForwardComponentProp: !0,
|
|
746
|
+
externalForwardedProps: I,
|
|
747
|
+
getSlotProps: (f) => ({
|
|
748
|
+
...f,
|
|
749
|
+
onKeyDown: (v) => {
|
|
750
|
+
var _;
|
|
751
|
+
z(v), (_ = f.onKeyDown) == null || _.call(f, v);
|
|
752
|
+
}
|
|
753
|
+
}),
|
|
754
|
+
ownerState: p
|
|
755
|
+
}), j = typeof I.slotProps.transition == "function" ? I.slotProps.transition(p) : I.slotProps.transition;
|
|
756
|
+
return /* @__PURE__ */ A(Ze, {
|
|
757
|
+
onClose: R,
|
|
702
758
|
anchorOrigin: {
|
|
703
759
|
vertical: "bottom",
|
|
704
|
-
horizontal:
|
|
760
|
+
horizontal: l ? "right" : "left"
|
|
705
761
|
},
|
|
706
|
-
transformOrigin:
|
|
762
|
+
transformOrigin: l ? Ye : Je,
|
|
707
763
|
slots: {
|
|
708
|
-
|
|
709
|
-
|
|
764
|
+
root: i.root,
|
|
765
|
+
paper: J,
|
|
766
|
+
backdrop: i.backdrop,
|
|
767
|
+
...i.transition && {
|
|
768
|
+
// TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
|
|
769
|
+
transition: i.transition
|
|
770
|
+
}
|
|
710
771
|
},
|
|
711
772
|
slotProps: {
|
|
712
|
-
root:
|
|
713
|
-
paper:
|
|
773
|
+
root: X,
|
|
774
|
+
paper: Y,
|
|
775
|
+
backdrop: typeof T.backdrop == "function" ? T.backdrop(p) : T.backdrop,
|
|
776
|
+
transition: {
|
|
777
|
+
...j,
|
|
778
|
+
onEntering: (...f) => {
|
|
779
|
+
var v;
|
|
780
|
+
C(...f), (v = j == null ? void 0 : j.onEntering) == null || v.call(j, ...f);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
714
783
|
},
|
|
715
|
-
open:
|
|
784
|
+
open: x,
|
|
716
785
|
ref: n,
|
|
717
|
-
transitionDuration:
|
|
718
|
-
|
|
719
|
-
onEntering: T,
|
|
720
|
-
...z
|
|
721
|
-
},
|
|
722
|
-
ownerState: u,
|
|
786
|
+
transitionDuration: a,
|
|
787
|
+
ownerState: p,
|
|
723
788
|
...r,
|
|
724
|
-
classes:
|
|
725
|
-
children: /* @__PURE__ */
|
|
726
|
-
onKeyDown: D,
|
|
789
|
+
classes: K,
|
|
790
|
+
children: /* @__PURE__ */ A(M, {
|
|
727
791
|
actions: c,
|
|
728
|
-
autoFocus:
|
|
729
|
-
autoFocusItem:
|
|
730
|
-
variant:
|
|
731
|
-
...
|
|
732
|
-
|
|
733
|
-
children: h
|
|
792
|
+
autoFocus: E && (N === -1 || m),
|
|
793
|
+
autoFocusItem: D,
|
|
794
|
+
variant: F,
|
|
795
|
+
...Q,
|
|
796
|
+
children: y
|
|
734
797
|
})
|
|
735
798
|
});
|
|
736
799
|
});
|
|
737
|
-
process.env.NODE_ENV !== "production" && (
|
|
800
|
+
process.env.NODE_ENV !== "production" && (to.propTypes = {
|
|
738
801
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
739
802
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
740
803
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -743,7 +806,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
743
806
|
* An HTML element, or a function that returns one.
|
|
744
807
|
* It's used to set the position of the menu.
|
|
745
808
|
*/
|
|
746
|
-
anchorEl: e.oneOfType([
|
|
809
|
+
anchorEl: e.oneOfType([te, e.func]),
|
|
747
810
|
/**
|
|
748
811
|
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
749
812
|
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
@@ -774,6 +837,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
774
837
|
disableAutoFocusItem: e.bool,
|
|
775
838
|
/**
|
|
776
839
|
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
840
|
+
* @deprecated use the `slotProps.list` 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.
|
|
777
841
|
* @default {}
|
|
778
842
|
*/
|
|
779
843
|
MenuListProps: e.object,
|
|
@@ -801,16 +865,22 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
801
865
|
* @default {}
|
|
802
866
|
*/
|
|
803
867
|
slotProps: e.shape({
|
|
868
|
+
backdrop: e.oneOfType([e.func, e.object]),
|
|
869
|
+
list: e.oneOfType([e.func, e.object]),
|
|
804
870
|
paper: e.oneOfType([e.func, e.object]),
|
|
805
|
-
root: e.oneOfType([e.func, e.object])
|
|
871
|
+
root: e.oneOfType([e.func, e.object]),
|
|
872
|
+
transition: e.oneOfType([e.func, e.object])
|
|
806
873
|
}),
|
|
807
874
|
/**
|
|
808
875
|
* The components used for each slot inside.
|
|
809
876
|
* @default {}
|
|
810
877
|
*/
|
|
811
878
|
slots: e.shape({
|
|
879
|
+
backdrop: e.elementType,
|
|
880
|
+
list: e.elementType,
|
|
812
881
|
paper: e.elementType,
|
|
813
|
-
root: e.elementType
|
|
882
|
+
root: e.elementType,
|
|
883
|
+
transition: e.elementType
|
|
814
884
|
}),
|
|
815
885
|
/**
|
|
816
886
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -828,6 +898,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
828
898
|
/**
|
|
829
899
|
* Props applied to the transition element.
|
|
830
900
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
901
|
+
* @deprecated use the `slotProps.transition` 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.
|
|
831
902
|
* @default {}
|
|
832
903
|
*/
|
|
833
904
|
TransitionProps: e.object,
|
|
@@ -838,7 +909,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
838
909
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
839
910
|
});
|
|
840
911
|
export {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
912
|
+
to as M,
|
|
913
|
+
Xe as g,
|
|
914
|
+
Ro as m
|
|
844
915
|
};
|