@cgi-learning-hub/ui 1.5.0 → 1.5.1-dev.1744639457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert-5zQ9TB22.cjs +1 -0
- package/dist/{Alert-D7eKsj1P.js → Alert-CDbAJ9jP.js} +27 -28
- package/dist/Autocomplete-2DWwLqO5.cjs +6 -0
- package/dist/{Autocomplete-Cfz4sLy8.js → Autocomplete-DO8kdiDn.js} +704 -665
- package/dist/Backdrop-Be5Hv5U8.cjs +1 -0
- package/dist/{Backdrop-COiz4sPF.js → Backdrop-CRrNkGxU.js} +18 -18
- package/dist/{Box-C-j-U8SH.js → Box-2IEW8Uij.js} +12 -12
- package/dist/Box-Bl24J58B.cjs +1 -0
- package/dist/Button-CZTPCtLu.cjs +1 -0
- package/dist/{Button-CQQdMCSm.js → Button-DYWfAsGe.js} +114 -148
- package/dist/{ButtonBase-CZFKUUHD.js → ButtonBase-BZXGvriS.js} +24 -24
- package/dist/{ButtonBase-NqQjeQ4X.cjs → ButtonBase-DDgwUJIY.cjs} +1 -1
- package/dist/CardContent-CCMZ6TlJ.cjs +1 -0
- package/dist/{CardContent-sX9Bw4Ke.js → CardContent-oRdx06Ln.js} +5 -5
- package/dist/{Checkbox-1Zr36vDa.js → Checkbox-DMnS1qrF.js} +95 -68
- package/dist/Checkbox-Dsa-pj_7.cjs +1 -0
- package/dist/Chip-BJSNxQBQ.cjs +1 -0
- package/dist/{Chip-BsErraqe.js → Chip-CacnC2L1.js} +53 -54
- package/dist/CircularProgress-XGMwsxSL.cjs +28 -0
- package/dist/{CircularProgress-BBHGA0JX.js → CircularProgress-_VZwmayK.js} +28 -29
- package/dist/{Close-r-ZUhk0-.js → Close-CSvE0tu1.js} +1 -1
- package/dist/{Close-ZXg7X3Tz.cjs → Close-Czm0dlR9.cjs} +1 -1
- package/dist/{CloseRounded-CWmxueMc.cjs → CloseRounded-BkPBIz0q.cjs} +1 -1
- package/dist/{CloseRounded-B-eaQsyM.js → CloseRounded-CEX-NsA7.js} +1 -1
- package/dist/CustomTreeItem-CI47uzgL.cjs +3 -0
- package/dist/{CustomTreeItem-BpAK85gf.js → CustomTreeItem-DTV3xokL.js} +287 -289
- package/dist/{DatePicker-CWMXTgRG.js → DatePicker-C-toYUpc.js} +995 -1002
- package/dist/DatePicker-DbH5IN_w.cjs +13 -0
- package/dist/{DefaultPropsProvider-CXfMJdg8.js → DefaultPropsProvider-Bg-6nX-u.js} +53 -53
- package/dist/DefaultPropsProvider-DLSItMqn.cjs +1 -0
- package/dist/{Delete-CpTtpM4U.cjs → Delete-C0hR-twe.cjs} +1 -1
- package/dist/{Delete-DKn2lIDB.js → Delete-Pl5O0eBK.js} +1 -1
- package/dist/{Dialog-pU1ZAttp.js → Dialog-BGrQDZXr.js} +162 -169
- package/dist/Dialog-D1VJ5jXx.cjs +1 -0
- package/dist/DialogContent-DqdeAbSs.cjs +1 -0
- package/dist/{DialogContent-BEgapieO.js → DialogContent-ZiO3fkfO.js} +3 -3
- package/dist/DialogTitle-B3MlGamo.cjs +1 -0
- package/dist/{DialogTitle-Dcls3mcZ.js → DialogTitle-BiZ7zHp-.js} +7 -7
- package/dist/{Divider-CT4XaEn6.js → Divider-BDN4OyrO.js} +8 -8
- package/dist/Divider-I7KOokm8.cjs +1 -0
- package/dist/{Folder-DoEl37QZ.js → Folder-CF7SX2AD.js} +1 -1
- package/dist/{Folder-DWD_1Fux.cjs → Folder-ExV_xCn6.cjs} +1 -1
- package/dist/{FormLabel-BF6m-_uI.js → FormLabel-DNsUciXe.js} +24 -25
- package/dist/FormLabel-xZr5oZgx.cjs +2 -0
- package/dist/{Grow-Bk7XkPFP.js → Grow-CLBgYoz_.js} +5 -5
- package/dist/Grow-DrEdqZgX.cjs +1 -0
- package/dist/IconButton-C1I_233O.cjs +2 -0
- package/dist/{IconButton-BQW0xjdH.js → IconButton-CT0Plyy5.js} +26 -27
- package/dist/{InputAdornment-C6UfLaud.js → InputAdornment-Ci0BnJ_e.js} +10 -11
- package/dist/InputAdornment-_UPzajRP.cjs +1 -0
- package/dist/InputBase-C-ES3FPH.cjs +3 -0
- package/dist/{InputBase-YOnatBxw.js → InputBase-CJvM-WXJ.js} +261 -256
- package/dist/{Link-C3rf4gqc.js → Link-B6LNMjac.js} +15 -16
- package/dist/Link-BQrFDQ-K.cjs +1 -0
- package/dist/{List-CFInjv2S.js → List-22h7byk_.js} +2 -2
- package/dist/List-Bii833np.cjs +1 -0
- package/dist/{ListItem-BAAZxsu5.js → ListItem-B0syBgS7.js} +17 -17
- package/dist/ListItem-BtjE87R1.cjs +1 -0
- package/dist/ListItemText-Dov-H_Ii.cjs +2 -0
- package/dist/ListItemText-zFoA_mgx.js +845 -0
- package/dist/Menu-4e60iiMU.cjs +7 -0
- package/dist/{Menu-BgO92SV3.js → Menu-B6t_52q7.js} +405 -335
- package/dist/MenuItem-De2MJkYT.cjs +1 -0
- package/dist/{MenuItem-B8eWAj8E.js → MenuItem-KNXRjnwO.js} +14 -14
- package/dist/{Modal-CFv4UMTP.js → Modal-BpJ9BCOo.js} +239 -245
- package/dist/Modal-JAWJUstF.cjs +2 -0
- package/dist/{MoreVert-Dq8BqKg4.js → MoreVert-BtC5XWOR.js} +1 -1
- package/dist/{MoreVert-B_Gz5Gfx.cjs → MoreVert-MSZXYrMO.cjs} +1 -1
- package/dist/{Paper-DeL_n4k9.js → Paper-BTFv1nzl.js} +9 -9
- package/dist/Paper-CKG165jt.cjs +2 -0
- package/dist/Popper-CyH7Z-lN.cjs +4 -0
- package/dist/{Popper-BKxRTMsO.js → Popper-YJsxmJsm.js} +10 -10
- package/dist/Portal-CtsVKOQ9.js +85 -0
- package/dist/Portal-LP7SUKpU.cjs +1 -0
- package/dist/Radio-BEfQuau1.cjs +1 -0
- package/dist/{Radio-BVfoGshx.js → Radio-Dg73Pnqf.js} +226 -183
- package/dist/RadioGroup-CqCh25ZS.cjs +1 -0
- package/dist/{RadioGroup-DcqRUtV8.js → RadioGroup-jev5E2xJ.js} +20 -20
- package/dist/{Select-Vnsr3NSv.js → Select-21Pm-BzJ.js} +164 -165
- package/dist/Select-CxofSqZJ.cjs +3 -0
- package/dist/{Stack-PQFKjbdN.js → Stack-D2Plrf1_.js} +60 -104
- package/dist/Stack-DpH56CPw.cjs +1 -0
- package/dist/Switch-BIGFww3p.cjs +1 -0
- package/dist/{Switch-Bn8zlIOf.js → Switch-CNfK1N1c.js} +167 -108
- package/dist/SwitchBase-BHC3uchj.js +314 -0
- package/dist/SwitchBase-DA079uiU.cjs +1 -0
- package/dist/{Tab-A0R3g6rB.js → Tab-BbWlzMyp.js} +597 -537
- package/dist/Tab-BsIC620i.cjs +4 -0
- package/dist/{TextField-Di6Nfe3O.js → TextField-BjzDdsW_.js} +133 -124
- package/dist/TextField-DFr8lsXU.cjs +1 -0
- package/dist/ToggleButtonGroup-BEvrUL8a.cjs +138 -0
- package/dist/{ToggleButtonGroup-B-zfmsAO.js → ToggleButtonGroup-C_O-zqof.js} +1995 -1818
- package/dist/{Tooltip-KTkLBRQj.js → Tooltip-Bf5VDDeG.js} +34 -35
- package/dist/Tooltip-DJC7nrsk.cjs +4 -0
- package/dist/{Typography-DZ11k9cZ.js → Typography-BNt9mZKm.js} +13 -14
- package/dist/Typography-DOpE-TJz.cjs +1 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +15 -15
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.d.ts +1 -0
- package/dist/components/FolderCard/FolderCard.es.js +26 -17
- package/dist/components/FolderCard/styles.cjs.js +1 -1
- package/dist/components/FolderCard/styles.d.ts +4 -0
- package/dist/components/FolderCard/styles.es.js +9 -5
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.d.ts +1 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +21 -19
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +49 -44
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +7 -7
- package/dist/components/TreeView/TreeView.es.js +323 -319
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/style.cjs.js +1 -1
- package/dist/components/TreeView/style.es.js +24 -18
- package/dist/components/TreeView/types.d.ts +5 -2
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +264 -266
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.d.ts +2 -0
- package/dist/components/stories/TreeView.stories.es.js +517 -268
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BFqOnlgU.js → createSvgIcon-CCutbgLb.js} +54 -55
- package/dist/createSvgIcon-DPiiTkVU.cjs +1 -0
- package/dist/dividerClasses-B_bu1fey.cjs +1 -0
- package/dist/{dividerClasses-BYkvalOn.js → dividerClasses-hlXEfEZK.js} +1 -1
- package/dist/{elementTypeAcceptingRef-1usJq_B8.js → elementTypeAcceptingRef-COpcDx5q.js} +1 -1
- package/dist/elementTypeAcceptingRef-DRPcjZd5.cjs +1 -0
- package/dist/{extendSxProp-D_IkoDXB.js → extendSxProp-0G38SSpC.js} +1 -1
- package/dist/extendSxProp-BZI5kY-d.cjs +1 -0
- package/dist/{getReactElementRef-DtLerx40.js → getReactElementRef-C6oFed6n.js} +1 -1
- package/dist/getReactElementRef-EDbO4rJt.cjs +1 -0
- package/dist/{generateUtilityClasses-CqzQXpT_.js → identifier-BJqC6EXa.js} +833 -865
- package/dist/identifier-gJdGmHeC.cjs +74 -0
- package/dist/{index-CFIk4hVM.js → index-BOAF-ZZq.js} +4 -4
- package/dist/index-Cfd-LNZn.cjs +1 -0
- package/dist/index-D14TzUgK.cjs +1 -0
- package/dist/{index-sDFEVHTg.js → index-DP697UN9.js} +1 -1
- package/dist/index-Dmu1HrwE.cjs +5 -0
- package/dist/{index-C7WfZsMe.js → index-gxOBDuBW.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +264 -266
- package/dist/{listItemTextClasses-C0D3xQur.js → listItemTextClasses-DBxyCmso.js} +1 -1
- package/dist/listItemTextClasses-gsrBifRw.cjs +1 -0
- package/dist/{memoTheme-B0xVysYu.js → memoTheme-D_Qap2ZW.js} +1 -1
- package/dist/{memoTheme-WwIyYqBX.cjs → memoTheme-GOMOSdXJ.cjs} +1 -1
- package/dist/mergeSlotProps-BCz8yLkw.cjs +1 -0
- package/dist/mergeSlotProps-BSFlgsYC.js +62 -0
- package/dist/refType-53jD7LEO.cjs +1 -0
- package/dist/{refType-BvSJNaoq.js → refType-DRBJ18fO.js} +1 -1
- package/dist/styled-C7OKoThH.cjs +1 -0
- package/dist/styled-DpPa0vDp.js +5 -0
- package/dist/useEventCallback-BxpcFap0.cjs +1 -0
- package/dist/useEventCallback-Yoj9nCug.js +15 -0
- package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
- package/dist/useForkRef-u29GSuCu.js +27 -0
- package/dist/useSlot-DhC6EPU2.js +125 -0
- package/dist/useSlot-zJFQDOgm.cjs +1 -0
- package/dist/{useSlotProps-Ceyorp-u.js → useSlotProps-Bos9nSja.js} +2 -2
- package/dist/useSlotProps-CuEZ7HQe.cjs +1 -0
- package/dist/{useTheme-2JCMQS-E.js → useTheme-B1xvds8x.js} +1 -1
- package/dist/useTheme-BJZcQSBU.cjs +1 -0
- package/dist/useTheme-Dt-VOIyT.js +11 -0
- package/dist/useTheme-NQRIebh0.cjs +1 -0
- package/dist/useThemeProps-CxMYNgfp.js +17 -0
- package/dist/{useThemeProps-Cuazh32X.js → useThemeProps-DSVFwH3A.js} +4 -4
- package/dist/useThemeProps-DnpiVoRo.cjs +1 -0
- package/dist/{useThemeProps-RdxbcMsR.cjs → useThemeProps-jU-2XOjK.cjs} +1 -1
- package/dist/utils-B2EQZFZP.cjs +1 -0
- package/dist/{utils-BVg32WSe.js → utils-qwVZGgXz.js} +1 -1
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +10 -10
- package/dist/Alert-CvizDCvx.cjs +0 -1
- package/dist/Autocomplete-DjU6i3zL.cjs +0 -6
- package/dist/Backdrop-BM-OE2Q_.cjs +0 -1
- package/dist/Box-BmfpLwYG.cjs +0 -1
- package/dist/Button-BGWvL_UD.cjs +0 -1
- package/dist/CardContent-GHLuvxgm.cjs +0 -1
- package/dist/Checkbox-BZYoJieY.cjs +0 -1
- package/dist/Chip-Cu_SZxrx.cjs +0 -1
- package/dist/CircularProgress-CdS7-HOv.cjs +0 -28
- package/dist/CustomTreeItem-BIl2yiro.cjs +0 -4
- package/dist/DatePicker-tyDzcyzu.cjs +0 -14
- package/dist/DefaultPropsProvider-BTnRBr0O.cjs +0 -1
- package/dist/Dialog-DIHzs0ro.cjs +0 -1
- package/dist/DialogContent-B-9ga3Wv.cjs +0 -1
- package/dist/DialogTitle-B_UN_oL2.cjs +0 -1
- package/dist/Divider-iYLSpFUc.cjs +0 -1
- package/dist/FormLabel-Cp2OFw8d.cjs +0 -2
- package/dist/Grow-DXY5DOqR.cjs +0 -1
- package/dist/IconButton-BLZJne06.cjs +0 -2
- package/dist/InputAdornment-C0WI_oQg.cjs +0 -1
- package/dist/InputBase-B3KOyouT.cjs +0 -3
- package/dist/Link-lvpmE2yz.cjs +0 -1
- package/dist/List-PQXGlDbt.cjs +0 -1
- package/dist/ListItem-CWEvdMjN.cjs +0 -1
- package/dist/ListItemText-BhxrnTkb.cjs +0 -1
- package/dist/ListItemText-CADHegDF.js +0 -928
- package/dist/Menu-DBacrp-P.cjs +0 -7
- package/dist/MenuItem-DkcVAo3U.cjs +0 -1
- package/dist/Modal-kUvS-N46.cjs +0 -2
- package/dist/Paper-ByOgFIEE.cjs +0 -2
- package/dist/Popper-CsQqc5DE.cjs +0 -4
- package/dist/Portal-7MKUQzjh.js +0 -81
- package/dist/Portal-DhGy1jKe.cjs +0 -1
- package/dist/Radio-DG-k6cXx.cjs +0 -1
- package/dist/RadioGroup-Dd0mX-H2.cjs +0 -1
- package/dist/Select-b6liJFDI.cjs +0 -3
- package/dist/Stack-gtxG2YLo.cjs +0 -1
- package/dist/Switch-BlwDxL6O.cjs +0 -1
- package/dist/SwitchBase-DtKlxrES.cjs +0 -1
- package/dist/SwitchBase-QwOXoy8f.js +0 -262
- package/dist/Tab-Dx7V4E6B.cjs +0 -4
- package/dist/TextField-CB2n4aV8.cjs +0 -1
- package/dist/ToggleButtonGroup-D3bdznCl.cjs +0 -137
- package/dist/Tooltip-D0jvnXYu.cjs +0 -4
- package/dist/Typography-3CpuuLtj.cjs +0 -1
- package/dist/capitalize-B3tmp8MO.cjs +0 -1
- package/dist/capitalize-Bs7Xs33U.js +0 -9
- package/dist/createSvgIcon-2wwaxLPT.cjs +0 -1
- package/dist/dividerClasses-izm7KFVg.cjs +0 -1
- package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +0 -1
- package/dist/extendSxProp-Bv3E507G.cjs +0 -1
- package/dist/generateUtilityClasses-KugHyZhN.cjs +0 -75
- package/dist/getReactElementRef-D7IvykPI.cjs +0 -1
- package/dist/index-9hEUqvaJ.cjs +0 -1
- package/dist/index-BomeQRLD.cjs +0 -5
- package/dist/index-DS8G_wjP.cjs +0 -1
- package/dist/listItemTextClasses-CQXcckDA.cjs +0 -1
- package/dist/refType-D-n-tVSl.cjs +0 -1
- package/dist/resolveComponentProps-Byi_59AN.cjs +0 -1
- package/dist/resolveComponentProps-Ctw0-dUN.js +0 -80
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useSlot-CGbU9jGm.cjs +0 -1
- package/dist/useSlot-CqjfyGd9.js +0 -48
- package/dist/useSlotProps-DfO7r_4Y.cjs +0 -1
- package/dist/useTheme-B6wow4M9.cjs +0 -1
- package/dist/useTheme-DepbBZga.js +0 -11
- package/dist/useTheme-MahNaB8C.cjs +0 -1
- package/dist/useThemeProps-BqypsO1h.cjs +0 -1
- package/dist/useThemeProps-Drd5oJEF.js +0 -17
- package/dist/utils-CUU5fjzL.cjs +0 -1
|
@@ -1,136 +1,137 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { s as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { P as
|
|
10
|
-
import {
|
|
11
|
-
import { o as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { b as Ke, M as He } from "./Modal-
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { Z as fe, P as e, G as de, F as me, H as he } from "./identifier-BJqC6EXa.js";
|
|
3
|
+
import { u as ke } from "./index-DP697UN9.js";
|
|
4
|
+
import { s as G, u as be, c as ye, r as xe } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
5
|
+
import { u as B } from "./useSlot-DhC6EPU2.js";
|
|
6
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
7
|
+
import { u as De } from "./useSlotProps-Bos9nSja.js";
|
|
8
|
+
import { i as Ne } from "./isHostComponent-kiaBvYVo.js";
|
|
9
|
+
import { P as Fe, i as Ie } from "./Paper-BTFv1nzl.js";
|
|
10
|
+
import { o as ee } from "./ownerDocument-CUrv0DIK.js";
|
|
11
|
+
import { o as oe } from "./ownerWindow-niciwP7I.js";
|
|
12
|
+
import { d as je } from "./debounce-46wSf_lW.js";
|
|
13
|
+
import { G as Le } from "./Grow-CLBgYoz_.js";
|
|
14
|
+
import { m as ze } from "./mergeSlotProps-BSFlgsYC.js";
|
|
15
|
+
import { b as Ke, M as He } from "./Modal-BpJ9BCOo.js";
|
|
16
16
|
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
|
-
|
|
17
|
+
import { r as Ve } from "./refType-DRBJ18fO.js";
|
|
18
|
+
import { e as Ae } from "./elementTypeAcceptingRef-COpcDx5q.js";
|
|
19
|
+
import { H as te } from "./Portal-CtsVKOQ9.js";
|
|
20
|
+
import { a as _e } from "./useEventCallback-Yoj9nCug.js";
|
|
21
|
+
import { u as We } from "./useForkRef-u29GSuCu.js";
|
|
22
|
+
import { L as qe } from "./List-22h7byk_.js";
|
|
23
|
+
function Q(t, o, n) {
|
|
23
24
|
return t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : n ? null : t.firstChild;
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function le(t, o, n) {
|
|
26
27
|
return t === o ? n ? t.firstChild : t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : n ? null : t.lastChild;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function ge(t, o) {
|
|
29
30
|
if (o === void 0)
|
|
30
31
|
return !0;
|
|
31
32
|
let n = t.innerText;
|
|
32
33
|
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
34
|
}
|
|
34
|
-
function
|
|
35
|
-
let g = !1,
|
|
36
|
-
for (;
|
|
37
|
-
if (
|
|
35
|
+
function q(t, o, n, k, E, y) {
|
|
36
|
+
let g = !1, m = E(t, o, o ? n : !1);
|
|
37
|
+
for (; m; ) {
|
|
38
|
+
if (m === t.firstChild) {
|
|
38
39
|
if (g)
|
|
39
40
|
return !1;
|
|
40
41
|
g = !0;
|
|
41
42
|
}
|
|
42
|
-
const
|
|
43
|
-
if (!
|
|
44
|
-
|
|
43
|
+
const b = k ? !1 : m.disabled || m.getAttribute("aria-disabled") === "true";
|
|
44
|
+
if (!m.hasAttribute("tabindex") || !ge(m, y) || b)
|
|
45
|
+
m = E(t, m, n);
|
|
45
46
|
else
|
|
46
|
-
return
|
|
47
|
+
return m.focus(), !0;
|
|
47
48
|
}
|
|
48
49
|
return !1;
|
|
49
50
|
}
|
|
50
|
-
const
|
|
51
|
+
const Pe = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
51
52
|
const {
|
|
52
53
|
// private
|
|
53
54
|
// eslint-disable-next-line react/prop-types
|
|
54
|
-
actions:
|
|
55
|
-
autoFocus:
|
|
56
|
-
autoFocusItem:
|
|
55
|
+
actions: k,
|
|
56
|
+
autoFocus: E = !1,
|
|
57
|
+
autoFocusItem: y = !1,
|
|
57
58
|
children: g,
|
|
58
|
-
className:
|
|
59
|
-
disabledItemsFocusable:
|
|
60
|
-
disableListWrap:
|
|
61
|
-
onKeyDown:
|
|
62
|
-
variant:
|
|
63
|
-
...
|
|
64
|
-
} = o,
|
|
59
|
+
className: m,
|
|
60
|
+
disabledItemsFocusable: b = !1,
|
|
61
|
+
disableListWrap: R = !1,
|
|
62
|
+
onKeyDown: x,
|
|
63
|
+
variant: L = "selectedMenu",
|
|
64
|
+
...K
|
|
65
|
+
} = o, a = u.useRef(null), P = u.useRef({
|
|
65
66
|
keys: [],
|
|
66
67
|
repeating: !0,
|
|
67
68
|
previousKeyMatched: !0,
|
|
68
69
|
lastTime: null
|
|
69
70
|
});
|
|
70
71
|
_e(() => {
|
|
71
|
-
|
|
72
|
-
}, [
|
|
72
|
+
E && a.current.focus();
|
|
73
|
+
}, [E]), u.useImperativeHandle(k, () => ({
|
|
73
74
|
adjustStyleForScrollbar: (r, {
|
|
74
|
-
direction:
|
|
75
|
+
direction: l
|
|
75
76
|
}) => {
|
|
76
|
-
const
|
|
77
|
-
if (r.clientHeight <
|
|
78
|
-
const
|
|
79
|
-
|
|
77
|
+
const p = !a.current.style.width;
|
|
78
|
+
if (r.clientHeight < a.current.clientHeight && p) {
|
|
79
|
+
const O = `${Ke(oe(r))}px`;
|
|
80
|
+
a.current.style[l === "rtl" ? "paddingLeft" : "paddingRight"] = O, a.current.style.width = `calc(100% + ${O})`;
|
|
80
81
|
}
|
|
81
|
-
return
|
|
82
|
+
return a.current;
|
|
82
83
|
}
|
|
83
84
|
}), []);
|
|
84
|
-
const
|
|
85
|
-
const
|
|
85
|
+
const H = (r) => {
|
|
86
|
+
const l = a.current, p = r.key;
|
|
86
87
|
if (r.ctrlKey || r.metaKey || r.altKey) {
|
|
87
|
-
|
|
88
|
+
x && x(r);
|
|
88
89
|
return;
|
|
89
90
|
}
|
|
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 && (
|
|
91
|
+
const D = ee(l).activeElement;
|
|
92
|
+
if (p === "ArrowDown")
|
|
93
|
+
r.preventDefault(), q(l, D, R, b, Q);
|
|
94
|
+
else if (p === "ArrowUp")
|
|
95
|
+
r.preventDefault(), q(l, D, R, b, le);
|
|
96
|
+
else if (p === "Home")
|
|
97
|
+
r.preventDefault(), q(l, null, R, b, Q);
|
|
98
|
+
else if (p === "End")
|
|
99
|
+
r.preventDefault(), q(l, null, R, b, le);
|
|
100
|
+
else if (p.length === 1) {
|
|
101
|
+
const c = P.current, C = p.toLowerCase(), z = performance.now();
|
|
102
|
+
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);
|
|
103
|
+
const N = D && !c.repeating && ge(D, c);
|
|
104
|
+
c.previousKeyMatched && (N || q(l, D, !1, b, Q, c)) ? r.preventDefault() : c.previousKeyMatched = !1;
|
|
104
105
|
}
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
let
|
|
108
|
-
|
|
109
|
-
if (!/* @__PURE__ */
|
|
110
|
-
|
|
106
|
+
x && x(r);
|
|
107
|
+
}, F = We(a, n);
|
|
108
|
+
let i = -1;
|
|
109
|
+
u.Children.forEach(g, (r, l) => {
|
|
110
|
+
if (!/* @__PURE__ */ u.isValidElement(r)) {
|
|
111
|
+
i === l && (i += 1, i >= g.length && (i = -1));
|
|
111
112
|
return;
|
|
112
113
|
}
|
|
113
|
-
process.env.NODE_ENV !== "production" &&
|
|
114
|
-
`)), r.props.disabled || (
|
|
114
|
+
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(`
|
|
115
|
+
`)), 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
116
|
});
|
|
116
|
-
const
|
|
117
|
-
if (
|
|
118
|
-
const
|
|
119
|
-
return
|
|
117
|
+
const T = u.Children.map(g, (r, l) => {
|
|
118
|
+
if (l === i) {
|
|
119
|
+
const p = {};
|
|
120
|
+
return y && (p.autoFocus = !0), r.props.tabIndex === void 0 && L === "selectedMenu" && (p.tabIndex = 0), /* @__PURE__ */ u.cloneElement(r, p);
|
|
120
121
|
}
|
|
121
122
|
return r;
|
|
122
123
|
});
|
|
123
|
-
return /* @__PURE__ */
|
|
124
|
+
return /* @__PURE__ */ A(qe, {
|
|
124
125
|
role: "menu",
|
|
125
|
-
ref:
|
|
126
|
-
className:
|
|
127
|
-
onKeyDown:
|
|
128
|
-
tabIndex:
|
|
129
|
-
...
|
|
130
|
-
children:
|
|
126
|
+
ref: F,
|
|
127
|
+
className: m,
|
|
128
|
+
onKeyDown: H,
|
|
129
|
+
tabIndex: E ? 0 : -1,
|
|
130
|
+
...K,
|
|
131
|
+
children: T
|
|
131
132
|
});
|
|
132
133
|
});
|
|
133
|
-
process.env.NODE_ENV !== "production" && (
|
|
134
|
+
process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
134
135
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
135
136
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
136
137
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -175,37 +176,37 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
|
175
176
|
*/
|
|
176
177
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
177
178
|
});
|
|
178
|
-
function
|
|
179
|
-
return
|
|
179
|
+
function $e(t) {
|
|
180
|
+
return de("MuiPopover", t);
|
|
180
181
|
}
|
|
181
|
-
|
|
182
|
-
function
|
|
182
|
+
me("MuiPopover", ["root", "paper"]);
|
|
183
|
+
function pe(t, o) {
|
|
183
184
|
let n = 0;
|
|
184
185
|
return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
+
function ce(t, o) {
|
|
187
188
|
let n = 0;
|
|
188
189
|
return typeof o == "number" ? n = o : o === "center" ? n = t.width / 2 : o === "right" && (n = t.width), n;
|
|
189
190
|
}
|
|
190
|
-
function
|
|
191
|
+
function ue(t) {
|
|
191
192
|
return [t.horizontal, t.vertical].map((o) => typeof o == "number" ? `${o}px` : o).join(" ");
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
+
function $(t) {
|
|
194
195
|
return typeof t == "function" ? t() : t;
|
|
195
196
|
}
|
|
196
|
-
const
|
|
197
|
+
const Be = (t) => {
|
|
197
198
|
const {
|
|
198
199
|
classes: o
|
|
199
200
|
} = t;
|
|
200
|
-
return
|
|
201
|
+
return ye({
|
|
201
202
|
root: ["root"],
|
|
202
203
|
paper: ["paper"]
|
|
203
|
-
},
|
|
204
|
-
},
|
|
204
|
+
}, $e, o);
|
|
205
|
+
}, Ge = G(He, {
|
|
205
206
|
name: "MuiPopover",
|
|
206
207
|
slot: "Root",
|
|
207
208
|
overridesResolver: (t, o) => o.root
|
|
208
|
-
})({}),
|
|
209
|
+
})({}), ve = G(Fe, {
|
|
209
210
|
name: "MuiPopover",
|
|
210
211
|
slot: "Paper",
|
|
211
212
|
overridesResolver: (t, o) => o.paper
|
|
@@ -221,192 +222,219 @@ const $e = (t) => {
|
|
|
221
222
|
maxHeight: "calc(100% - 32px)",
|
|
222
223
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
223
224
|
outline: 0
|
|
224
|
-
}),
|
|
225
|
-
const
|
|
225
|
+
}), Te = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
226
|
+
const k = be({
|
|
226
227
|
props: o,
|
|
227
228
|
name: "MuiPopover"
|
|
228
229
|
}), {
|
|
229
|
-
action:
|
|
230
|
-
anchorEl:
|
|
230
|
+
action: E,
|
|
231
|
+
anchorEl: y,
|
|
231
232
|
anchorOrigin: g = {
|
|
232
233
|
vertical: "top",
|
|
233
234
|
horizontal: "left"
|
|
234
235
|
},
|
|
235
|
-
anchorPosition:
|
|
236
|
-
anchorReference:
|
|
237
|
-
children:
|
|
238
|
-
className:
|
|
239
|
-
container:
|
|
240
|
-
elevation:
|
|
241
|
-
marginThreshold:
|
|
242
|
-
open:
|
|
243
|
-
PaperProps:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
236
|
+
anchorPosition: m,
|
|
237
|
+
anchorReference: b = "anchorEl",
|
|
238
|
+
children: R,
|
|
239
|
+
className: x,
|
|
240
|
+
container: L,
|
|
241
|
+
elevation: K = 8,
|
|
242
|
+
marginThreshold: a = 16,
|
|
243
|
+
open: P,
|
|
244
|
+
PaperProps: H = {},
|
|
245
|
+
// TODO: remove in v7
|
|
246
|
+
slots: F = {},
|
|
247
|
+
slotProps: i = {},
|
|
248
|
+
transformOrigin: T = {
|
|
247
249
|
vertical: "top",
|
|
248
250
|
horizontal: "left"
|
|
249
251
|
},
|
|
250
|
-
TransitionComponent: r
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
...x,
|
|
252
|
+
TransitionComponent: r,
|
|
253
|
+
// TODO: remove in v7
|
|
254
|
+
transitionDuration: l = "auto",
|
|
255
|
+
TransitionProps: p = {},
|
|
256
|
+
// TODO: remove in v7
|
|
257
|
+
disableScrollLock: O = !1,
|
|
258
|
+
...D
|
|
259
|
+
} = k, c = u.useRef(), C = {
|
|
260
|
+
...k,
|
|
260
261
|
anchorOrigin: g,
|
|
261
|
-
anchorReference:
|
|
262
|
-
elevation:
|
|
263
|
-
marginThreshold:
|
|
264
|
-
|
|
265
|
-
transformOrigin: R,
|
|
262
|
+
anchorReference: b,
|
|
263
|
+
elevation: K,
|
|
264
|
+
marginThreshold: a,
|
|
265
|
+
transformOrigin: T,
|
|
266
266
|
TransitionComponent: r,
|
|
267
|
-
transitionDuration:
|
|
268
|
-
TransitionProps:
|
|
269
|
-
},
|
|
270
|
-
if (
|
|
271
|
-
return process.env.NODE_ENV !== "production" && (
|
|
272
|
-
const
|
|
267
|
+
transitionDuration: l,
|
|
268
|
+
TransitionProps: p
|
|
269
|
+
}, z = Be(C), N = u.useCallback(() => {
|
|
270
|
+
if (b === "anchorPosition")
|
|
271
|
+
return process.env.NODE_ENV !== "production" && (m || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), m;
|
|
272
|
+
const s = $(y), d = s && s.nodeType === 1 ? s : ee(c.current).body, h = d.getBoundingClientRect();
|
|
273
273
|
if (process.env.NODE_ENV !== "production") {
|
|
274
|
-
const
|
|
275
|
-
process.env.NODE_ENV !== "test" &&
|
|
274
|
+
const S = d.getBoundingClientRect();
|
|
275
|
+
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
276
|
`));
|
|
277
277
|
}
|
|
278
278
|
return {
|
|
279
|
-
top:
|
|
280
|
-
left:
|
|
279
|
+
top: h.top + pe(h, g.vertical),
|
|
280
|
+
left: h.left + ce(h, g.horizontal)
|
|
281
281
|
};
|
|
282
|
-
}, [
|
|
283
|
-
vertical:
|
|
284
|
-
horizontal:
|
|
285
|
-
}), [
|
|
286
|
-
const
|
|
287
|
-
width:
|
|
288
|
-
height:
|
|
289
|
-
},
|
|
290
|
-
if (
|
|
282
|
+
}, [y, g.horizontal, g.vertical, m, b]), I = u.useCallback((s) => ({
|
|
283
|
+
vertical: pe(s, T.vertical),
|
|
284
|
+
horizontal: ce(s, T.horizontal)
|
|
285
|
+
}), [T.horizontal, T.vertical]), Y = u.useCallback((s) => {
|
|
286
|
+
const d = {
|
|
287
|
+
width: s.offsetWidth,
|
|
288
|
+
height: s.offsetHeight
|
|
289
|
+
}, h = I(d);
|
|
290
|
+
if (b === "none")
|
|
291
291
|
return {
|
|
292
292
|
top: null,
|
|
293
293
|
left: null,
|
|
294
|
-
transformOrigin:
|
|
294
|
+
transformOrigin: ue(h)
|
|
295
295
|
};
|
|
296
|
-
const
|
|
297
|
-
let
|
|
298
|
-
const re =
|
|
299
|
-
if (
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
} else if (
|
|
303
|
-
const
|
|
304
|
-
|
|
296
|
+
const S = N();
|
|
297
|
+
let U = S.top - h.vertical, V = S.left - h.horizontal;
|
|
298
|
+
const re = U + d.height, se = V + d.width, ie = oe($(y)), W = ie.innerHeight - a, ae = ie.innerWidth - a;
|
|
299
|
+
if (a !== null && U < a) {
|
|
300
|
+
const w = U - a;
|
|
301
|
+
U -= w, h.vertical += w;
|
|
302
|
+
} else if (a !== null && re > W) {
|
|
303
|
+
const w = re - W;
|
|
304
|
+
U -= w, h.vertical += w;
|
|
305
305
|
}
|
|
306
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
307
|
-
`)),
|
|
308
|
-
const
|
|
309
|
-
|
|
306
|
+
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(`
|
|
307
|
+
`)), a !== null && V < a) {
|
|
308
|
+
const w = V - a;
|
|
309
|
+
V -= w, h.horizontal += w;
|
|
310
310
|
} else if (se > ae) {
|
|
311
|
-
const
|
|
312
|
-
|
|
311
|
+
const w = se - ae;
|
|
312
|
+
V -= w, h.horizontal += w;
|
|
313
313
|
}
|
|
314
314
|
return {
|
|
315
|
-
top: `${Math.round(
|
|
316
|
-
left: `${Math.round(
|
|
317
|
-
transformOrigin:
|
|
315
|
+
top: `${Math.round(U)}px`,
|
|
316
|
+
left: `${Math.round(V)}px`,
|
|
317
|
+
transformOrigin: ue(h)
|
|
318
318
|
};
|
|
319
|
-
}, [
|
|
320
|
-
const
|
|
321
|
-
if (!
|
|
319
|
+
}, [y, b, N, I, a]), [Z, X] = u.useState(P), M = u.useCallback(() => {
|
|
320
|
+
const s = c.current;
|
|
321
|
+
if (!s)
|
|
322
322
|
return;
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
}, [
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
|
|
329
|
-
},
|
|
330
|
-
|
|
323
|
+
const d = Y(s);
|
|
324
|
+
d.top !== null && s.style.setProperty("top", d.top), d.left !== null && (s.style.left = d.left), s.style.transformOrigin = d.transformOrigin, X(!0);
|
|
325
|
+
}, [Y]);
|
|
326
|
+
u.useEffect(() => (O && window.addEventListener("scroll", M), () => window.removeEventListener("scroll", M)), [y, O, M]);
|
|
327
|
+
const J = () => {
|
|
328
|
+
M();
|
|
329
|
+
}, j = () => {
|
|
330
|
+
X(!1);
|
|
331
331
|
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}),
|
|
332
|
+
u.useEffect(() => {
|
|
333
|
+
P && M();
|
|
334
|
+
}), u.useImperativeHandle(E, () => P ? {
|
|
335
335
|
updatePosition: () => {
|
|
336
|
-
|
|
336
|
+
M();
|
|
337
337
|
}
|
|
338
|
-
} : null, [
|
|
339
|
-
if (!
|
|
338
|
+
} : null, [P, M]), u.useEffect(() => {
|
|
339
|
+
if (!P)
|
|
340
340
|
return;
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
}),
|
|
344
|
-
return
|
|
345
|
-
|
|
341
|
+
const s = je(() => {
|
|
342
|
+
M();
|
|
343
|
+
}), d = oe($(y));
|
|
344
|
+
return d.addEventListener("resize", s), () => {
|
|
345
|
+
s.clear(), d.removeEventListener("resize", s);
|
|
346
346
|
};
|
|
347
|
-
}, [
|
|
348
|
-
let
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
347
|
+
}, [y, P, M]);
|
|
348
|
+
let f = l;
|
|
349
|
+
const v = {
|
|
350
|
+
slots: {
|
|
351
|
+
transition: r,
|
|
352
|
+
...F
|
|
353
|
+
},
|
|
352
354
|
slotProps: {
|
|
353
|
-
|
|
354
|
-
paper:
|
|
355
|
+
transition: p,
|
|
356
|
+
paper: H,
|
|
357
|
+
...i
|
|
355
358
|
}
|
|
356
|
-
}, [
|
|
357
|
-
elementType:
|
|
358
|
-
externalForwardedProps:
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
359
|
+
}, [_, Ee] = B("transition", {
|
|
360
|
+
elementType: Le,
|
|
361
|
+
externalForwardedProps: v,
|
|
362
|
+
ownerState: C,
|
|
363
|
+
getSlotProps: (s) => ({
|
|
364
|
+
...s,
|
|
365
|
+
onEntering: (d, h) => {
|
|
366
|
+
var S;
|
|
367
|
+
(S = s.onEntering) == null || S.call(s, d, h), J();
|
|
368
|
+
},
|
|
369
|
+
onExited: (d) => {
|
|
370
|
+
var h;
|
|
371
|
+
(h = s.onExited) == null || h.call(s, d), j();
|
|
365
372
|
}
|
|
373
|
+
}),
|
|
374
|
+
additionalProps: {
|
|
375
|
+
appear: !0,
|
|
376
|
+
in: P
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
l === "auto" && !_.muiSupportAuto && (f = void 0);
|
|
380
|
+
const Oe = L || (y ? ee($(y)).body : void 0), [ne, {
|
|
381
|
+
slots: Me,
|
|
382
|
+
slotProps: we,
|
|
383
|
+
...Re
|
|
384
|
+
}] = B("root", {
|
|
385
|
+
ref: n,
|
|
386
|
+
elementType: Ge,
|
|
387
|
+
externalForwardedProps: {
|
|
388
|
+
...v,
|
|
389
|
+
...D
|
|
366
390
|
},
|
|
367
|
-
|
|
368
|
-
}), [ne, {
|
|
369
|
-
slotProps: xe,
|
|
370
|
-
...Ne
|
|
371
|
-
}] = ce("root", {
|
|
372
|
-
elementType: Be,
|
|
373
|
-
externalForwardedProps: oe,
|
|
391
|
+
shouldForwardComponentProp: !0,
|
|
374
392
|
additionalProps: {
|
|
393
|
+
slots: {
|
|
394
|
+
backdrop: F.backdrop
|
|
395
|
+
},
|
|
375
396
|
slotProps: {
|
|
376
|
-
backdrop: {
|
|
397
|
+
backdrop: ze(typeof i.backdrop == "function" ? i.backdrop(C) : i.backdrop, {
|
|
377
398
|
invisible: !0
|
|
378
|
-
}
|
|
399
|
+
})
|
|
379
400
|
},
|
|
380
|
-
container:
|
|
381
|
-
open:
|
|
401
|
+
container: Oe,
|
|
402
|
+
open: P
|
|
382
403
|
},
|
|
383
404
|
ownerState: C,
|
|
384
|
-
className:
|
|
385
|
-
}), Se =
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
405
|
+
className: he(z.root, x)
|
|
406
|
+
}), [Ce, Se] = B("paper", {
|
|
407
|
+
ref: c,
|
|
408
|
+
className: z.paper,
|
|
409
|
+
elementType: ve,
|
|
410
|
+
externalForwardedProps: v,
|
|
411
|
+
shouldForwardComponentProp: !0,
|
|
412
|
+
additionalProps: {
|
|
413
|
+
elevation: K,
|
|
414
|
+
style: Z ? void 0 : {
|
|
415
|
+
opacity: 0
|
|
416
|
+
}
|
|
391
417
|
},
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
418
|
+
ownerState: C
|
|
419
|
+
});
|
|
420
|
+
return /* @__PURE__ */ A(ne, {
|
|
421
|
+
...Re,
|
|
422
|
+
...!Ne(ne) && {
|
|
423
|
+
slots: Me,
|
|
424
|
+
slotProps: we,
|
|
425
|
+
disableScrollLock: O
|
|
426
|
+
},
|
|
427
|
+
children: /* @__PURE__ */ A(_, {
|
|
428
|
+
...Ee,
|
|
429
|
+
timeout: f,
|
|
430
|
+
children: /* @__PURE__ */ A(Ce, {
|
|
431
|
+
...Se,
|
|
432
|
+
children: R
|
|
405
433
|
})
|
|
406
434
|
})
|
|
407
435
|
});
|
|
408
436
|
});
|
|
409
|
-
process.env.NODE_ENV !== "production" && (
|
|
437
|
+
process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
410
438
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
411
439
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
412
440
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -421,9 +449,9 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
421
449
|
* or a function that returns either.
|
|
422
450
|
* It's used to set the position of the popover.
|
|
423
451
|
*/
|
|
424
|
-
anchorEl: Ue(e.oneOfType([
|
|
452
|
+
anchorEl: Ue(e.oneOfType([te, e.func]), (t) => {
|
|
425
453
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
426
|
-
const o =
|
|
454
|
+
const o = $(t.anchorEl);
|
|
427
455
|
if (o && o.nodeType === 1) {
|
|
428
456
|
const n = o.getBoundingClientRect();
|
|
429
457
|
if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0)
|
|
@@ -468,8 +496,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
468
496
|
anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
|
|
469
497
|
/**
|
|
470
498
|
* 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.
|
|
499
|
+
* @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
500
|
* @default styled(Backdrop, {
|
|
474
501
|
* name: 'MuiModal',
|
|
475
502
|
* slot: 'Backdrop',
|
|
@@ -483,7 +510,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
483
510
|
BackdropComponent: e.elementType,
|
|
484
511
|
/**
|
|
485
512
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
486
|
-
* @deprecated Use `slotProps.
|
|
513
|
+
* @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
514
|
*/
|
|
488
515
|
BackdropProps: e.object,
|
|
489
516
|
/**
|
|
@@ -505,7 +532,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
505
532
|
* By default, it uses the body of the anchorEl's top-level document object,
|
|
506
533
|
* so it's simply `document.body` most of the time.
|
|
507
534
|
*/
|
|
508
|
-
container: e.oneOfType([
|
|
535
|
+
container: e.oneOfType([te, e.func]),
|
|
509
536
|
/**
|
|
510
537
|
* Disable the scroll lock behavior.
|
|
511
538
|
* @default false
|
|
@@ -515,7 +542,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
515
542
|
* The elevation of the popover.
|
|
516
543
|
* @default 8
|
|
517
544
|
*/
|
|
518
|
-
elevation:
|
|
545
|
+
elevation: Ie,
|
|
519
546
|
/**
|
|
520
547
|
* Specifies how close to the edge of the window the popover can appear.
|
|
521
548
|
* If null, the popover will not be constrained by the window.
|
|
@@ -547,16 +574,20 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
547
574
|
* @default {}
|
|
548
575
|
*/
|
|
549
576
|
slotProps: e.shape({
|
|
577
|
+
backdrop: e.oneOfType([e.func, e.object]),
|
|
550
578
|
paper: e.oneOfType([e.func, e.object]),
|
|
551
|
-
root: e.oneOfType([e.func, e.object])
|
|
579
|
+
root: e.oneOfType([e.func, e.object]),
|
|
580
|
+
transition: e.oneOfType([e.func, e.object])
|
|
552
581
|
}),
|
|
553
582
|
/**
|
|
554
583
|
* The components used for each slot inside.
|
|
555
584
|
* @default {}
|
|
556
585
|
*/
|
|
557
586
|
slots: e.shape({
|
|
587
|
+
backdrop: e.elementType,
|
|
558
588
|
paper: e.elementType,
|
|
559
|
-
root: e.elementType
|
|
589
|
+
root: e.elementType,
|
|
590
|
+
transition: e.elementType
|
|
560
591
|
}),
|
|
561
592
|
/**
|
|
562
593
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -581,6 +612,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
581
612
|
/**
|
|
582
613
|
* The component used for the transition.
|
|
583
614
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
615
|
+
* @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
616
|
* @default Grow
|
|
585
617
|
*/
|
|
586
618
|
TransitionComponent: e.elementType,
|
|
@@ -596,34 +628,35 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
596
628
|
/**
|
|
597
629
|
* Props applied to the transition element.
|
|
598
630
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
631
|
+
* @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
632
|
* @default {}
|
|
600
633
|
*/
|
|
601
634
|
TransitionProps: e.object
|
|
602
635
|
});
|
|
603
|
-
function
|
|
604
|
-
return
|
|
636
|
+
function Ye(t) {
|
|
637
|
+
return de("MuiMenu", t);
|
|
605
638
|
}
|
|
606
|
-
const
|
|
639
|
+
const wo = me("MuiMenu", ["root", "paper", "list"]), Xe = {
|
|
607
640
|
vertical: "top",
|
|
608
641
|
horizontal: "right"
|
|
609
|
-
},
|
|
642
|
+
}, Ze = {
|
|
610
643
|
vertical: "top",
|
|
611
644
|
horizontal: "left"
|
|
612
645
|
}, Je = (t) => {
|
|
613
646
|
const {
|
|
614
647
|
classes: o
|
|
615
648
|
} = t;
|
|
616
|
-
return
|
|
649
|
+
return ye({
|
|
617
650
|
root: ["root"],
|
|
618
651
|
paper: ["paper"],
|
|
619
652
|
list: ["list"]
|
|
620
|
-
},
|
|
621
|
-
}, Qe =
|
|
622
|
-
shouldForwardProp: (t) =>
|
|
653
|
+
}, Ye, o);
|
|
654
|
+
}, Qe = G(Te, {
|
|
655
|
+
shouldForwardProp: (t) => xe(t) || t === "classes",
|
|
623
656
|
name: "MuiMenu",
|
|
624
657
|
slot: "Root",
|
|
625
658
|
overridesResolver: (t, o) => o.root
|
|
626
|
-
})({}),
|
|
659
|
+
})({}), eo = G(ve, {
|
|
627
660
|
name: "MuiMenu",
|
|
628
661
|
slot: "Paper",
|
|
629
662
|
overridesResolver: (t, o) => o.paper
|
|
@@ -634,107 +667,136 @@ const Mo = ge("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
634
667
|
maxHeight: "calc(100% - 96px)",
|
|
635
668
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
636
669
|
WebkitOverflowScrolling: "touch"
|
|
637
|
-
}),
|
|
670
|
+
}), oo = G(Pe, {
|
|
638
671
|
name: "MuiMenu",
|
|
639
672
|
slot: "List",
|
|
640
673
|
overridesResolver: (t, o) => o.list
|
|
641
674
|
})({
|
|
642
675
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
643
676
|
outline: 0
|
|
644
|
-
}),
|
|
645
|
-
const
|
|
677
|
+
}), to = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
678
|
+
const k = be({
|
|
646
679
|
props: o,
|
|
647
680
|
name: "MuiMenu"
|
|
648
681
|
}), {
|
|
649
|
-
autoFocus:
|
|
650
|
-
children:
|
|
682
|
+
autoFocus: E = !0,
|
|
683
|
+
children: y,
|
|
651
684
|
className: g,
|
|
652
|
-
disableAutoFocusItem:
|
|
653
|
-
MenuListProps:
|
|
654
|
-
onClose:
|
|
655
|
-
open:
|
|
656
|
-
PaperProps:
|
|
657
|
-
PopoverClasses:
|
|
658
|
-
transitionDuration:
|
|
685
|
+
disableAutoFocusItem: m = !1,
|
|
686
|
+
MenuListProps: b = {},
|
|
687
|
+
onClose: R,
|
|
688
|
+
open: x,
|
|
689
|
+
PaperProps: L = {},
|
|
690
|
+
PopoverClasses: K,
|
|
691
|
+
transitionDuration: a = "auto",
|
|
659
692
|
TransitionProps: {
|
|
660
|
-
onEntering:
|
|
661
|
-
...
|
|
693
|
+
onEntering: P,
|
|
694
|
+
...H
|
|
662
695
|
} = {},
|
|
663
|
-
variant:
|
|
664
|
-
slots:
|
|
665
|
-
slotProps:
|
|
696
|
+
variant: F = "selectedMenu",
|
|
697
|
+
slots: i = {},
|
|
698
|
+
slotProps: T = {},
|
|
666
699
|
...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
|
-
|
|
700
|
+
} = k, l = ke(), p = {
|
|
701
|
+
...k,
|
|
702
|
+
autoFocus: E,
|
|
703
|
+
disableAutoFocusItem: m,
|
|
704
|
+
MenuListProps: b,
|
|
705
|
+
onEntering: P,
|
|
706
|
+
PaperProps: L,
|
|
707
|
+
transitionDuration: a,
|
|
708
|
+
TransitionProps: H,
|
|
709
|
+
variant: F
|
|
710
|
+
}, O = Je(p), D = E && !m && x, c = u.useRef(null), C = (f, v) => {
|
|
711
|
+
c.current && c.current.adjustStyleForScrollbar(f, {
|
|
712
|
+
direction: l ? "rtl" : "ltr"
|
|
713
|
+
}), P && P(f, v);
|
|
714
|
+
}, z = (f) => {
|
|
715
|
+
f.key === "Tab" && (f.preventDefault(), R && R(f, "tabKeyDown"));
|
|
683
716
|
};
|
|
684
|
-
let
|
|
685
|
-
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
`)),
|
|
717
|
+
let N = -1;
|
|
718
|
+
u.Children.map(y, (f, v) => {
|
|
719
|
+
/* @__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(`
|
|
720
|
+
`)), f.props.disabled || (F === "selectedMenu" && f.props.selected || N === -1) && (N = v));
|
|
688
721
|
});
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
722
|
+
const I = {
|
|
723
|
+
slots: i,
|
|
724
|
+
slotProps: {
|
|
725
|
+
list: b,
|
|
726
|
+
transition: H,
|
|
727
|
+
paper: L,
|
|
728
|
+
...T
|
|
729
|
+
}
|
|
730
|
+
}, Y = De({
|
|
731
|
+
elementType: i.root,
|
|
732
|
+
externalSlotProps: T.root,
|
|
733
|
+
ownerState: p,
|
|
734
|
+
className: [O.root, g]
|
|
735
|
+
}), [Z, X] = B("paper", {
|
|
736
|
+
className: O.paper,
|
|
737
|
+
elementType: eo,
|
|
738
|
+
externalForwardedProps: I,
|
|
739
|
+
shouldForwardComponentProp: !0,
|
|
740
|
+
ownerState: p
|
|
741
|
+
}), [M, J] = B("list", {
|
|
742
|
+
className: he(O.list, b.className),
|
|
743
|
+
elementType: oo,
|
|
744
|
+
shouldForwardComponentProp: !0,
|
|
745
|
+
externalForwardedProps: I,
|
|
746
|
+
getSlotProps: (f) => ({
|
|
747
|
+
...f,
|
|
748
|
+
onKeyDown: (v) => {
|
|
749
|
+
var _;
|
|
750
|
+
z(v), (_ = f.onKeyDown) == null || _.call(f, v);
|
|
751
|
+
}
|
|
752
|
+
}),
|
|
753
|
+
ownerState: p
|
|
754
|
+
}), j = typeof I.slotProps.transition == "function" ? I.slotProps.transition(p) : I.slotProps.transition;
|
|
755
|
+
return /* @__PURE__ */ A(Qe, {
|
|
756
|
+
onClose: R,
|
|
702
757
|
anchorOrigin: {
|
|
703
758
|
vertical: "bottom",
|
|
704
|
-
horizontal:
|
|
759
|
+
horizontal: l ? "right" : "left"
|
|
705
760
|
},
|
|
706
|
-
transformOrigin:
|
|
761
|
+
transformOrigin: l ? Xe : Ze,
|
|
707
762
|
slots: {
|
|
708
|
-
|
|
709
|
-
|
|
763
|
+
root: i.root,
|
|
764
|
+
paper: Z,
|
|
765
|
+
backdrop: i.backdrop,
|
|
766
|
+
...i.transition && {
|
|
767
|
+
// TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
|
|
768
|
+
transition: i.transition
|
|
769
|
+
}
|
|
710
770
|
},
|
|
711
771
|
slotProps: {
|
|
712
|
-
root:
|
|
713
|
-
paper:
|
|
772
|
+
root: Y,
|
|
773
|
+
paper: X,
|
|
774
|
+
backdrop: typeof T.backdrop == "function" ? T.backdrop(p) : T.backdrop,
|
|
775
|
+
transition: {
|
|
776
|
+
...j,
|
|
777
|
+
onEntering: (...f) => {
|
|
778
|
+
var v;
|
|
779
|
+
C(...f), (v = j == null ? void 0 : j.onEntering) == null || v.call(j, ...f);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
714
782
|
},
|
|
715
|
-
open:
|
|
783
|
+
open: x,
|
|
716
784
|
ref: n,
|
|
717
|
-
transitionDuration:
|
|
718
|
-
|
|
719
|
-
onEntering: T,
|
|
720
|
-
...z
|
|
721
|
-
},
|
|
722
|
-
ownerState: u,
|
|
785
|
+
transitionDuration: a,
|
|
786
|
+
ownerState: p,
|
|
723
787
|
...r,
|
|
724
|
-
classes:
|
|
725
|
-
children: /* @__PURE__ */
|
|
726
|
-
onKeyDown: D,
|
|
788
|
+
classes: K,
|
|
789
|
+
children: /* @__PURE__ */ A(M, {
|
|
727
790
|
actions: c,
|
|
728
|
-
autoFocus:
|
|
729
|
-
autoFocusItem:
|
|
730
|
-
variant:
|
|
731
|
-
...
|
|
732
|
-
|
|
733
|
-
children: h
|
|
791
|
+
autoFocus: E && (N === -1 || m),
|
|
792
|
+
autoFocusItem: D,
|
|
793
|
+
variant: F,
|
|
794
|
+
...J,
|
|
795
|
+
children: y
|
|
734
796
|
})
|
|
735
797
|
});
|
|
736
798
|
});
|
|
737
|
-
process.env.NODE_ENV !== "production" && (
|
|
799
|
+
process.env.NODE_ENV !== "production" && (to.propTypes = {
|
|
738
800
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
739
801
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
740
802
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -743,7 +805,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
743
805
|
* An HTML element, or a function that returns one.
|
|
744
806
|
* It's used to set the position of the menu.
|
|
745
807
|
*/
|
|
746
|
-
anchorEl: e.oneOfType([
|
|
808
|
+
anchorEl: e.oneOfType([te, e.func]),
|
|
747
809
|
/**
|
|
748
810
|
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
749
811
|
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
@@ -774,6 +836,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
774
836
|
disableAutoFocusItem: e.bool,
|
|
775
837
|
/**
|
|
776
838
|
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
839
|
+
* @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
840
|
* @default {}
|
|
778
841
|
*/
|
|
779
842
|
MenuListProps: e.object,
|
|
@@ -801,16 +864,22 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
801
864
|
* @default {}
|
|
802
865
|
*/
|
|
803
866
|
slotProps: e.shape({
|
|
867
|
+
backdrop: e.oneOfType([e.func, e.object]),
|
|
868
|
+
list: e.oneOfType([e.func, e.object]),
|
|
804
869
|
paper: e.oneOfType([e.func, e.object]),
|
|
805
|
-
root: e.oneOfType([e.func, e.object])
|
|
870
|
+
root: e.oneOfType([e.func, e.object]),
|
|
871
|
+
transition: e.oneOfType([e.func, e.object])
|
|
806
872
|
}),
|
|
807
873
|
/**
|
|
808
874
|
* The components used for each slot inside.
|
|
809
875
|
* @default {}
|
|
810
876
|
*/
|
|
811
877
|
slots: e.shape({
|
|
878
|
+
backdrop: e.elementType,
|
|
879
|
+
list: e.elementType,
|
|
812
880
|
paper: e.elementType,
|
|
813
|
-
root: e.elementType
|
|
881
|
+
root: e.elementType,
|
|
882
|
+
transition: e.elementType
|
|
814
883
|
}),
|
|
815
884
|
/**
|
|
816
885
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -828,6 +897,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
828
897
|
/**
|
|
829
898
|
* Props applied to the transition element.
|
|
830
899
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
900
|
+
* @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
901
|
* @default {}
|
|
832
902
|
*/
|
|
833
903
|
TransitionProps: e.object,
|
|
@@ -838,7 +908,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
838
908
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
839
909
|
});
|
|
840
910
|
export {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
911
|
+
to as M,
|
|
912
|
+
Ye as g,
|
|
913
|
+
wo as m
|
|
844
914
|
};
|