@cgi-learning-hub/ui 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +63417 -1
- package/dist/index.d.ts +773 -1
- package/dist/index.es.js +63394 -417
- package/dist/ui.css +151 -0
- package/package.json +26 -24
- package/dist/Alert-BH_3hKCB.cjs +0 -1
- package/dist/Alert-BeVYzSS-.js +0 -94
- package/dist/Alert-BoYBWOXe.cjs +0 -1
- package/dist/Alert-CEu3llDi.js +0 -369
- package/dist/Autocomplete-BKpavKFW.cjs +0 -6
- package/dist/Autocomplete-DBZYn4YL.js +0 -1881
- package/dist/Backdrop-BvL371G3.js +0 -360
- package/dist/Backdrop-qOBrabpf.cjs +0 -1
- package/dist/Badge-2Kgbx-Cs.js +0 -466
- package/dist/Badge-DXl0Da36.cjs +0 -1
- package/dist/Box-BaZ7KlAc.js +0 -59
- package/dist/Box-CYQlQqRB.cjs +0 -1
- package/dist/Button-BP-QmmUu.cjs +0 -1
- package/dist/Button-C1mKNW-c.js +0 -698
- package/dist/ButtonBase-C2jRC_V7.js +0 -883
- package/dist/ButtonBase-DSJojbNE.cjs +0 -74
- package/dist/CardContent-DVcUynuH.cjs +0 -1
- package/dist/CardContent-kIapWv4T.js +0 -225
- package/dist/Checkbox-DhhuvKO5.cjs +0 -1
- package/dist/Checkbox-RxHWtafR.js +0 -271
- package/dist/Chip-DgGmi9yn.js +0 -574
- package/dist/Chip-n1kY-Dsh.cjs +0 -1
- package/dist/CircularProgress-BOm4zz7e.cjs +0 -28
- package/dist/CircularProgress-CLq0Rl-1.js +0 -253
- package/dist/Close-DR9m6hv3.cjs +0 -1
- package/dist/Close-vu-MZYNA.js +0 -9
- package/dist/CloseRounded-Cpp6nWQi.cjs +0 -1
- package/dist/CloseRounded-DF05lCUu.js +0 -8
- package/dist/CustomTreeItem-AecanDDg.js +0 -2046
- package/dist/CustomTreeItem-BBMp0k4i.cjs +0 -41
- package/dist/DatePicker-Cd-Aj-F8.js +0 -10758
- package/dist/DatePicker-Dj7U52Mk.cjs +0 -16
- package/dist/DefaultPropsProvider-BrmlvPWg.js +0 -312
- package/dist/DefaultPropsProvider-C1g4BXET.cjs +0 -1
- package/dist/Delete-C36W48MB.cjs +0 -1
- package/dist/Delete-DXUljXzP.js +0 -8
- package/dist/Dialog-C2HYr67H.cjs +0 -1
- package/dist/Dialog-D__8rwpw.js +0 -469
- package/dist/DialogContent-MPwmUJQp.js +0 -195
- package/dist/DialogContent-lup2v_ab.cjs +0 -1
- package/dist/DialogTitle-B8jOk7ZE.cjs +0 -1
- package/dist/DialogTitle-Dly5D3Ud.js +0 -134
- package/dist/Divider-BN12gMv9.js +0 -297
- package/dist/Divider-wisA5Qp_.cjs +0 -1
- package/dist/Folder-BSZMyA2L.js +0 -8
- package/dist/Folder-aAI_w_uF.cjs +0 -1
- package/dist/FormLabel-ByYWZh7M.cjs +0 -2
- package/dist/FormLabel-DtxJI2CU.js +0 -408
- package/dist/Grid-C0LY-MbT.js +0 -419
- package/dist/Grid-CPXE25PR.cjs +0 -2
- package/dist/Grow-6zwoqUfO.cjs +0 -1
- package/dist/Grow-CeGwnQpw.js +0 -197
- package/dist/IconButton-BTN16gZi.cjs +0 -2
- package/dist/IconButton-DBjiNqOa.js +0 -299
- package/dist/InputAdornment-C1r1YutO.cjs +0 -1
- package/dist/InputAdornment-DuR35FtU.js +0 -173
- package/dist/InputBase-CxknnWV4.cjs +0 -4
- package/dist/InputBase-D5UJOJBu.js +0 -797
- package/dist/Link-T11NCxGd.cjs +0 -1
- package/dist/Link-hWCqsQiI.js +0 -281
- package/dist/List-CmJ1jCss.js +0 -131
- package/dist/List-eQ4D0MvJ.cjs +0 -1
- package/dist/ListItem-CgWgbZ_g.cjs +0 -1
- package/dist/ListItem-onoPfwb4.js +0 -423
- package/dist/ListItemText-B-dySXgz.cjs +0 -1
- package/dist/ListItemText-BjhXxIIV.js +0 -441
- package/dist/Menu-D7B383z4.cjs +0 -7
- package/dist/Menu-DGvAkF5F.js +0 -911
- package/dist/MenuItem-Cusmy5t2.js +0 -268
- package/dist/MenuItem-D-4xzo-S.cjs +0 -1
- package/dist/Modal-DB9K8sJI.cjs +0 -2
- package/dist/Modal-DtjScKxh.js +0 -744
- package/dist/MoreVert-BwfUF9pO.cjs +0 -1
- package/dist/MoreVert-woCQ0dNf.js +0 -8
- package/dist/Paper-CZXfHfN_.js +0 -158
- package/dist/Paper-DcVuAxq3.cjs +0 -2
- package/dist/Popper-BwuGO_Si.js +0 -1407
- package/dist/Popper-D5Cs38W_.cjs +0 -4
- package/dist/Portal-Cmv45gpL.cjs +0 -1
- package/dist/Portal-PkRJuFYN.js +0 -85
- package/dist/Radio-DiyDpiVL.js +0 -617
- package/dist/Radio-DzKwkI68.cjs +0 -1
- package/dist/RadioGroup-BlkHQVRF.cjs +0 -1
- package/dist/RadioGroup-CjUaFqjJ.js +0 -191
- package/dist/Select-BxH16ruJ.js +0 -2648
- package/dist/Select-CSQfbogA.cjs +0 -3
- package/dist/Stack-ChvZzNqc.cjs +0 -1
- package/dist/Stack-pMJEpL7k.js +0 -173
- package/dist/Stepper-BsfN7O-W.cjs +0 -1
- package/dist/Stepper-DyH4sgY5.js +0 -966
- package/dist/Switch-BgZUmsKc.js +0 -392
- package/dist/Switch-Dr2jgPGV.cjs +0 -1
- package/dist/SwitchBase-BP_I-APE.cjs +0 -1
- package/dist/SwitchBase-BWz31Ed6.js +0 -319
- package/dist/Tab-Bksf_S4K.js +0 -1454
- package/dist/Tab-D2mI5G0L.cjs +0 -4
- package/dist/TextField-C9AnzUpZ.cjs +0 -1
- package/dist/TextField-Ctx4aW6-.js +0 -560
- package/dist/ToggleButtonGroup-CBw2I124.cjs +0 -138
- package/dist/ToggleButtonGroup-DtjRqNbI.js +0 -9091
- package/dist/Tooltip-C5AffX17.js +0 -722
- package/dist/Tooltip-CUm8vKGq.cjs +0 -4
- package/dist/TransitionGroupContext-DbLioz_6.js +0 -24
- package/dist/TransitionGroupContext-Zt4NoR0u.cjs +0 -1
- package/dist/Typography-Cr-aIusw.js +0 -261
- package/dist/Typography-DHjq4GzQ.cjs +0 -1
- package/dist/assets/Loader.css +0 -1
- package/dist/assets/LoaderBackdrop.css +0 -1
- package/dist/capitalize-3OjkeP9i.cjs +0 -1
- package/dist/capitalize-BHEX83JQ.js +0 -9
- package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/client-error-CHkavqXs.cjs +0 -1
- package/dist/client-error-D0Ng5oOn.js +0 -393
- package/dist/components/ActionBar/ActionBar.cjs.js +0 -1
- package/dist/components/ActionBar/ActionBar.d.ts +0 -3
- package/dist/components/ActionBar/ActionBar.es.js +0 -63
- package/dist/components/ActionBar/index.cjs.js +0 -1
- package/dist/components/ActionBar/index.d.ts +0 -2
- package/dist/components/ActionBar/index.es.js +0 -4
- package/dist/components/ActionBar/style.cjs.js +0 -1
- package/dist/components/ActionBar/style.es.js +0 -61
- package/dist/components/ActionBar/types.cjs.js +0 -1
- package/dist/components/ActionBar/types.d.ts +0 -17
- package/dist/components/ActionBar/types.es.js +0 -1
- package/dist/components/Alert/Alert.cjs.js +0 -1
- package/dist/components/Alert/Alert.d.ts +0 -6
- package/dist/components/Alert/Alert.es.js +0 -8
- package/dist/components/Alert/index.cjs.js +0 -1
- package/dist/components/Alert/index.d.ts +0 -2
- package/dist/components/Alert/index.es.js +0 -4
- package/dist/components/Button/Button.cjs.js +0 -1
- package/dist/components/Button/Button.d.ts +0 -3
- package/dist/components/Button/Button.es.js +0 -44
- package/dist/components/Button/index.cjs.js +0 -1
- package/dist/components/Button/index.d.ts +0 -2
- package/dist/components/Button/index.es.js +0 -4
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -3
- package/dist/components/ButtonGroup/ButtonGroup.es.js +0 -38
- package/dist/components/ButtonGroup/index.cjs.js +0 -1
- package/dist/components/ButtonGroup/index.d.ts +0 -2
- package/dist/components/ButtonGroup/index.es.js +0 -4
- package/dist/components/ButtonGroup/style.cjs.js +0 -1
- package/dist/components/ButtonGroup/style.es.js +0 -29
- package/dist/components/ButtonGroup/types.cjs.js +0 -1
- package/dist/components/ButtonGroup/types.d.ts +0 -22
- package/dist/components/ButtonGroup/types.es.js +0 -1
- package/dist/components/ColorPicker/ColorPicker.cjs.js +0 -27
- package/dist/components/ColorPicker/ColorPicker.d.ts +0 -4
- package/dist/components/ColorPicker/ColorPicker.es.js +0 -7960
- package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +0 -1
- package/dist/components/ColorPicker/ColorPickerIcon.d.ts +0 -5
- package/dist/components/ColorPicker/ColorPickerIcon.es.js +0 -58
- package/dist/components/ColorPicker/index.cjs.js +0 -1
- package/dist/components/ColorPicker/index.d.ts +0 -3
- package/dist/components/ColorPicker/index.es.js +0 -4
- package/dist/components/ColorPicker/styles.cjs.js +0 -1
- package/dist/components/ColorPicker/styles.es.js +0 -28
- package/dist/components/ColorPicker/types.cjs.js +0 -1
- package/dist/components/ColorPicker/types.d.ts +0 -19
- package/dist/components/ColorPicker/types.es.js +0 -1
- package/dist/components/DatePicker/DatePicker.cjs.js +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -6
- package/dist/components/DatePicker/DatePicker.es.js +0 -5
- package/dist/components/DatePicker/index.cjs.js +0 -1
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/index.es.js +0 -4
- package/dist/components/Dialog/Dialog.cjs.js +0 -1
- package/dist/components/Dialog/Dialog.d.ts +0 -6
- package/dist/components/Dialog/Dialog.es.js +0 -31
- package/dist/components/Dialog/index.cjs.js +0 -1
- package/dist/components/Dialog/index.d.ts +0 -2
- package/dist/components/Dialog/index.es.js +0 -4
- package/dist/components/Dropzone/Dropzone.cjs.js +0 -1
- package/dist/components/Dropzone/Dropzone.d.ts +0 -12
- package/dist/components/Dropzone/Dropzone.es.js +0 -55
- package/dist/components/Dropzone/index.cjs.js +0 -1
- package/dist/components/Dropzone/index.d.ts +0 -2
- package/dist/components/Dropzone/index.es.js +0 -4
- package/dist/components/Dropzone/types.cjs.js +0 -1
- package/dist/components/Dropzone/types.d.ts +0 -8
- package/dist/components/Dropzone/types.es.js +0 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +0 -1
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +0 -9
- package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +0 -45
- package/dist/components/EllipsisWithTooltip/index.cjs.js +0 -1
- package/dist/components/EllipsisWithTooltip/index.d.ts +0 -2
- package/dist/components/EllipsisWithTooltip/index.es.js +0 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +0 -1
- package/dist/components/EmptyState/EmptyState.d.ts +0 -22
- package/dist/components/EmptyState/EmptyState.es.js +0 -34
- package/dist/components/EmptyState/index.cjs.js +0 -1
- package/dist/components/EmptyState/index.d.ts +0 -2
- package/dist/components/EmptyState/index.es.js +0 -4
- package/dist/components/FileList/FileIcon.cjs.js +0 -1
- package/dist/components/FileList/FileIcon.d.ts +0 -3
- package/dist/components/FileList/FileIcon.es.js +0 -56
- package/dist/components/FileList/FileInfosSeparator.cjs.js +0 -1
- package/dist/components/FileList/FileInfosSeparator.d.ts +0 -1
- package/dist/components/FileList/FileInfosSeparator.es.js +0 -14
- package/dist/components/FileList/FileList.cjs.js +0 -1
- package/dist/components/FileList/FileList.d.ts +0 -9
- package/dist/components/FileList/FileList.es.js +0 -24
- package/dist/components/FileList/FileListItem.cjs.js +0 -1
- package/dist/components/FileList/FileListItem.d.ts +0 -16
- package/dist/components/FileList/FileListItem.es.js +0 -122
- package/dist/components/FileList/index.cjs.js +0 -1
- package/dist/components/FileList/index.d.ts +0 -4
- package/dist/components/FileList/index.es.js +0 -6
- package/dist/components/FileList/utils.cjs.js +0 -1
- package/dist/components/FileList/utils.d.ts +0 -2
- package/dist/components/FileList/utils.es.js +0 -13
- package/dist/components/FolderCard/FolderCard.cjs.js +0 -1
- package/dist/components/FolderCard/FolderCard.d.ts +0 -12
- package/dist/components/FolderCard/FolderCard.es.js +0 -88
- package/dist/components/FolderCard/index.cjs.js +0 -1
- package/dist/components/FolderCard/index.d.ts +0 -2
- package/dist/components/FolderCard/index.es.js +0 -4
- package/dist/components/FolderCard/styles.cjs.js +0 -1
- package/dist/components/FolderCard/styles.d.ts +0 -24
- package/dist/components/FolderCard/styles.es.js +0 -27
- package/dist/components/FolderCard/types.cjs.js +0 -1
- package/dist/components/FolderCard/types.d.ts +0 -3
- package/dist/components/FolderCard/types.es.js +0 -14
- package/dist/components/Heading/Heading.cjs.js +0 -1
- package/dist/components/Heading/Heading.d.ts +0 -14
- package/dist/components/Heading/Heading.es.js +0 -39
- package/dist/components/Heading/index.cjs.js +0 -1
- package/dist/components/Heading/index.d.ts +0 -2
- package/dist/components/Heading/index.es.js +0 -4
- package/dist/components/ImagePicker/ImagePicker.cjs.js +0 -1
- package/dist/components/ImagePicker/ImagePicker.d.ts +0 -13
- package/dist/components/ImagePicker/ImagePicker.es.js +0 -203
- package/dist/components/ImagePicker/index.cjs.js +0 -1
- package/dist/components/ImagePicker/index.d.ts +0 -2
- package/dist/components/ImagePicker/index.es.js +0 -4
- package/dist/components/Loader/Loader.cjs.js +0 -1
- package/dist/components/Loader/Loader.d.ts +0 -3
- package/dist/components/Loader/Loader.es.js +0 -11
- package/dist/components/Loader/index.cjs.js +0 -1
- package/dist/components/Loader/index.d.ts +0 -2
- package/dist/components/Loader/index.es.js +0 -4
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +0 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -3
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +0 -12
- package/dist/components/LoaderBackdrop/index.cjs.js +0 -1
- package/dist/components/LoaderBackdrop/index.d.ts +0 -2
- package/dist/components/LoaderBackdrop/index.es.js +0 -4
- package/dist/components/PasswordInput/PasswordInput.cjs.js +0 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +0 -5
- package/dist/components/PasswordInput/PasswordInput.es.js +0 -39
- package/dist/components/PasswordInput/index.cjs.js +0 -1
- package/dist/components/PasswordInput/index.d.ts +0 -2
- package/dist/components/PasswordInput/index.es.js +0 -4
- package/dist/components/QueryError/QueryError.cjs.js +0 -1
- package/dist/components/QueryError/QueryError.d.ts +0 -8
- package/dist/components/QueryError/QueryError.es.js +0 -46
- package/dist/components/QueryError/helpers.cjs.js +0 -1
- package/dist/components/QueryError/helpers.d.ts +0 -11
- package/dist/components/QueryError/helpers.es.js +0 -10
- package/dist/components/QueryError/index.cjs.js +0 -1
- package/dist/components/QueryError/index.d.ts +0 -2
- package/dist/components/QueryError/index.es.js +0 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +0 -1
- package/dist/components/ResourceCard/ResourceCard.d.ts +0 -25
- package/dist/components/ResourceCard/ResourceCard.es.js +0 -128
- package/dist/components/ResourceCard/index.cjs.js +0 -1
- package/dist/components/ResourceCard/index.d.ts +0 -2
- package/dist/components/ResourceCard/index.es.js +0 -4
- package/dist/components/ResourceCard/style.cjs.js +0 -1
- package/dist/components/ResourceCard/style.es.js +0 -130
- package/dist/components/SearchInput/SearchInput.cjs.js +0 -1
- package/dist/components/SearchInput/SearchInput.d.ts +0 -4
- package/dist/components/SearchInput/SearchInput.es.js +0 -38
- package/dist/components/SearchInput/index.cjs.js +0 -1
- package/dist/components/SearchInput/index.d.ts +0 -2
- package/dist/components/SearchInput/index.es.js +0 -4
- package/dist/components/TreeView/TreeView.cjs.js +0 -5
- package/dist/components/TreeView/TreeView.d.ts +0 -4
- package/dist/components/TreeView/TreeView.es.js +0 -1663
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +0 -1
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +0 -6
- package/dist/components/TreeView/components/CustomTreeItem.es.js +0 -9
- package/dist/components/TreeView/index.cjs.js +0 -1
- package/dist/components/TreeView/index.d.ts +0 -2
- package/dist/components/TreeView/index.es.js +0 -6
- package/dist/components/TreeView/style.cjs.js +0 -1
- package/dist/components/TreeView/style.es.js +0 -35
- package/dist/components/TreeView/types.cjs.js +0 -1
- package/dist/components/TreeView/types.d.ts +0 -45
- package/dist/components/TreeView/types.es.js +0 -4
- package/dist/components/TreeView/utils.cjs.js +0 -1
- package/dist/components/TreeView/utils.d.ts +0 -6
- package/dist/components/TreeView/utils.es.js +0 -50
- package/dist/components/index.cjs.js +0 -1
- package/dist/components/index.d.ts +0 -197
- package/dist/components/index.es.js +0 -419
- package/dist/components/stories/ActionBar.stories.cjs.js +0 -1
- package/dist/components/stories/ActionBar.stories.d.ts +0 -11
- package/dist/components/stories/ActionBar.stories.es.js +0 -206
- package/dist/components/stories/Alert.stories.cjs.js +0 -1
- package/dist/components/stories/Alert.stories.d.ts +0 -9
- package/dist/components/stories/Alert.stories.es.js +0 -32
- package/dist/components/stories/Autocomplete.stories.cjs.js +0 -3
- package/dist/components/stories/Autocomplete.stories.d.ts +0 -6
- package/dist/components/stories/Autocomplete.stories.es.js +0 -62
- package/dist/components/stories/Badge.stories.cjs.js +0 -1
- package/dist/components/stories/Badge.stories.d.ts +0 -17
- package/dist/components/stories/Badge.stories.es.js +0 -188
- package/dist/components/stories/Button.stories.cjs.js +0 -1
- package/dist/components/stories/Button.stories.d.ts +0 -8
- package/dist/components/stories/Button.stories.es.js +0 -61
- package/dist/components/stories/ButtonGroup.stories.cjs.js +0 -153
- package/dist/components/stories/ButtonGroup.stories.d.ts +0 -17
- package/dist/components/stories/ButtonGroup.stories.es.js +0 -1296
- package/dist/components/stories/Card.stories.cjs.js +0 -1
- package/dist/components/stories/Card.stories.d.ts +0 -7
- package/dist/components/stories/Card.stories.es.js +0 -42
- package/dist/components/stories/Checkbox.stories.cjs.js +0 -1
- package/dist/components/stories/Checkbox.stories.d.ts +0 -10
- package/dist/components/stories/Checkbox.stories.es.js +0 -57
- package/dist/components/stories/Chip.stories.cjs.js +0 -1
- package/dist/components/stories/Chip.stories.d.ts +0 -10
- package/dist/components/stories/Chip.stories.es.js +0 -77
- package/dist/components/stories/ColoPicker.stories.cjs.js +0 -1
- package/dist/components/stories/ColoPicker.stories.d.ts +0 -6
- package/dist/components/stories/ColoPicker.stories.es.js +0 -23
- package/dist/components/stories/DatePicker.stories.cjs.js +0 -1
- package/dist/components/stories/DatePicker.stories.d.ts +0 -6
- package/dist/components/stories/DatePicker.stories.es.js +0 -13
- package/dist/components/stories/Dialog.stories.cjs.js +0 -1
- package/dist/components/stories/Dialog.stories.d.ts +0 -7
- package/dist/components/stories/Dialog.stories.es.js +0 -65
- package/dist/components/stories/Divider.stories.cjs.js +0 -1
- package/dist/components/stories/Divider.stories.d.ts +0 -6
- package/dist/components/stories/Divider.stories.es.js +0 -41
- package/dist/components/stories/Dropzone.stories.cjs.js +0 -1
- package/dist/components/stories/Dropzone.stories.d.ts +0 -6
- package/dist/components/stories/Dropzone.stories.es.js +0 -14
- package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +0 -1
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +0 -6
- package/dist/components/stories/EllipsisWithTooltip.stories.es.js +0 -36
- package/dist/components/stories/EmptyState.stories.cjs.js +0 -1
- package/dist/components/stories/EmptyState.stories.d.ts +0 -6
- package/dist/components/stories/EmptyState.stories.es.js +0 -30
- package/dist/components/stories/FileList.stories.cjs.js +0 -8
- package/dist/components/stories/FileList.stories.d.ts +0 -6
- package/dist/components/stories/FileList.stories.es.js +0 -150
- package/dist/components/stories/FolderCard.stories.cjs.js +0 -1
- package/dist/components/stories/FolderCard.stories.d.ts +0 -7
- package/dist/components/stories/FolderCard.stories.es.js +0 -71
- package/dist/components/stories/FormControlLabel.stories.cjs.js +0 -1
- package/dist/components/stories/FormControlLabel.stories.d.ts +0 -9
- package/dist/components/stories/FormControlLabel.stories.es.js +0 -55
- package/dist/components/stories/Heading.stories.cjs.js +0 -1
- package/dist/components/stories/Heading.stories.d.ts +0 -6
- package/dist/components/stories/Heading.stories.es.js +0 -20
- package/dist/components/stories/IconButton.stories.cjs.js +0 -1
- package/dist/components/stories/IconButton.stories.d.ts +0 -6
- package/dist/components/stories/IconButton.stories.es.js +0 -55
- package/dist/components/stories/ImagePicker.stories.cjs.js +0 -1
- package/dist/components/stories/ImagePicker.stories.d.ts +0 -6
- package/dist/components/stories/ImagePicker.stories.es.js +0 -57
- package/dist/components/stories/Link.stories.cjs.js +0 -1
- package/dist/components/stories/Link.stories.d.ts +0 -7
- package/dist/components/stories/Link.stories.es.js +0 -43
- package/dist/components/stories/Loader.stories.cjs.js +0 -1
- package/dist/components/stories/Loader.stories.d.ts +0 -6
- package/dist/components/stories/Loader.stories.es.js +0 -11
- package/dist/components/stories/LoaderBackdrop.stories.cjs.js +0 -1
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +0 -6
- package/dist/components/stories/LoaderBackdrop.stories.es.js +0 -11
- package/dist/components/stories/Menu.stories.cjs.js +0 -1
- package/dist/components/stories/Menu.stories.d.ts +0 -7
- package/dist/components/stories/Menu.stories.es.js +0 -51
- package/dist/components/stories/Paper.stories.cjs.js +0 -1
- package/dist/components/stories/Paper.stories.d.ts +0 -7
- package/dist/components/stories/Paper.stories.es.js +0 -28
- package/dist/components/stories/PasswordInput.stories.cjs.js +0 -1
- package/dist/components/stories/PasswordInput.stories.d.ts +0 -6
- package/dist/components/stories/PasswordInput.stories.es.js +0 -13
- package/dist/components/stories/RadioGroup.stories.cjs.js +0 -1
- package/dist/components/stories/RadioGroup.stories.d.ts +0 -8
- package/dist/components/stories/RadioGroup.stories.es.js +0 -37
- package/dist/components/stories/ResourceCard.stories.cjs.js +0 -1
- package/dist/components/stories/ResourceCard.stories.d.ts +0 -9
- package/dist/components/stories/ResourceCard.stories.es.js +0 -141
- package/dist/components/stories/SearchInput.stories.cjs.js +0 -1
- package/dist/components/stories/SearchInput.stories.d.ts +0 -6
- package/dist/components/stories/SearchInput.stories.es.js +0 -13
- package/dist/components/stories/Select.stories.cjs.js +0 -1
- package/dist/components/stories/Select.stories.d.ts +0 -10
- package/dist/components/stories/Select.stories.es.js +0 -52
- package/dist/components/stories/Stepper.stories.cjs.js +0 -1
- package/dist/components/stories/Stepper.stories.d.ts +0 -7
- package/dist/components/stories/Stepper.stories.es.js +0 -161
- package/dist/components/stories/TabList.stories.cjs.js +0 -1
- package/dist/components/stories/TabList.stories.d.ts +0 -7
- package/dist/components/stories/TabList.stories.es.js +0 -73
- package/dist/components/stories/TextField.stories.cjs.js +0 -1
- package/dist/components/stories/TextField.stories.d.ts +0 -10
- package/dist/components/stories/TextField.stories.es.js +0 -69
- package/dist/components/stories/Tooltip.stories.cjs.js +0 -1
- package/dist/components/stories/Tooltip.stories.d.ts +0 -7
- package/dist/components/stories/Tooltip.stories.es.js +0 -46
- package/dist/components/stories/TreeView.stories.cjs.js +0 -69
- package/dist/components/stories/TreeView.stories.d.ts +0 -15
- package/dist/components/stories/TreeView.stories.es.js +0 -1036
- package/dist/components/stories/Typography.stories.cjs.js +0 -1
- package/dist/components/stories/Typography.stories.d.ts +0 -6
- package/dist/components/stories/Typography.stories.es.js +0 -65
- package/dist/composeClasses-BskurlZX.js +0 -51
- package/dist/composeClasses-vN5Almps.cjs +0 -1
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createChainedFunction-CJmlQuW8.cjs +0 -1
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +0 -1
- package/dist/createSvgIcon-CcWpa9Le.cjs +0 -1
- package/dist/createSvgIcon-DFIM5PqN.js +0 -254
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/debounce-DpCj7ugL.cjs +0 -1
- package/dist/dividerClasses-BEzQ_reA.js +0 -9
- package/dist/dividerClasses-BpVbhp8e.cjs +0 -1
- package/dist/elementAcceptingRef-CZLfau9O.js +0 -31
- package/dist/elementAcceptingRef-CuMilXz3.cjs +0 -1
- package/dist/elementTypeAcceptingRef-vRb2iI4O.js +0 -23
- package/dist/elementTypeAcceptingRef-vjR5jGLx.cjs +0 -1
- package/dist/error-CRNeivL7.js +0 -5
- package/dist/error-Dk3o6ber.cjs +0 -1
- package/dist/extendSxProp-DGsHTtAe.js +0 -37
- package/dist/extendSxProp-Dwd9vpYv.cjs +0 -1
- package/dist/formControlState-CuX6WjAX.cjs +0 -1
- package/dist/formControlState-vgaj2ksH.js +0 -10
- package/dist/generateUtilityClasses-B_xKAflz.js +0 -2703
- package/dist/generateUtilityClasses-CENS22bI.cjs +0 -55
- package/dist/hooks/lazySvgImport.cjs.js +0 -1
- package/dist/hooks/lazySvgImport.d.ts +0 -6
- package/dist/hooks/lazySvgImport.es.js +0 -34
- package/dist/index-B9vkf41S.js +0 -672
- package/dist/index-BPpGXp0s.cjs +0 -1
- package/dist/index-BS46Ff4t.cjs +0 -5
- package/dist/index-Ba4TEBpP.js +0 -22
- package/dist/index-CJMnfcQs.js +0 -2152
- package/dist/index-CwHv-blH.js +0 -97
- package/dist/index-D_kvDIOz.cjs +0 -1
- package/dist/index-kjfz41UI.cjs +0 -20
- package/dist/integerPropType-BihGt2aU.js +0 -31
- package/dist/integerPropType-CR7ytEJG.cjs +0 -1
- package/dist/isFocusVisible-CPZqtjv2.js +0 -12
- package/dist/isFocusVisible-DlSijby6.cjs +0 -2
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-BzDAj3yJ.cjs +0 -1
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/listItemTextClasses-CEbo8A-K.js +0 -9
- package/dist/listItemTextClasses-wcJANWC3.cjs +0 -1
- package/dist/memoTheme-Bi1UNdyO.cjs +0 -1
- package/dist/memoTheme-C-PaH-Cy.js +0 -15
- package/dist/mergeSlotProps-CL6s5QgQ.cjs +0 -1
- package/dist/mergeSlotProps-DVtjofCS.js +0 -62
- package/dist/ownerDocument-4MViGo3k.cjs +0 -1
- package/dist/ownerDocument-CUrv0DIK.js +0 -6
- package/dist/ownerWindow-DDHucZi0.cjs +0 -1
- package/dist/ownerWindow-niciwP7I.js +0 -7
- package/dist/refType-8hihVLUh.js +0 -5
- package/dist/refType-DJyA--UV.cjs +0 -1
- package/dist/server-error-CqyYyPLN.cjs +0 -1
- package/dist/server-error-CvgIy7ap.js +0 -398
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-QrrYcKxm.cjs +0 -3
- package/dist/useControlled-nm4pBabJ.js +0 -31
- package/dist/useEventCallback-BxpcFap0.cjs +0 -1
- package/dist/useEventCallback-Y2KwRxBw.js +0 -15
- package/dist/useForkRef-CFhhTu-Q.cjs +0 -1
- package/dist/useForkRef-u29GSuCu.js +0 -27
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useFormControl-haP0iPhl.cjs +0 -1
- package/dist/useId-CK6Kn3Tn.js +0 -21
- package/dist/useId-DNXtOFeX.cjs +0 -1
- package/dist/usePreviousProps-ByGlbpJ6.js +0 -10
- package/dist/usePreviousProps-jC3PWcIp.cjs +0 -1
- package/dist/useSlot-BSkdRaZr.js +0 -125
- package/dist/useSlot-C-aMxEm0.cjs +0 -1
- package/dist/useSlotProps-BVVfeURp.cjs +0 -1
- package/dist/useSlotProps-CWTjRiRv.js +0 -25
- package/dist/useTheme-0AkY41zn.js +0 -11
- package/dist/useTheme-BT6SDKkk.cjs +0 -1
- package/dist/useTheme-BrGF2Vm0.cjs +0 -1
- package/dist/useTheme-DSA6Ir8k.js +0 -18
- package/dist/useThemeProps-BWsN0TEk.cjs +0 -1
- package/dist/useThemeProps-CAonvyKa.js +0 -27
- package/dist/useThemeProps-JozrkyA_.cjs +0 -1
- package/dist/useThemeProps-hSh1qhnc.js +0 -17
- package/dist/useTimeout-COCrDKz-.cjs +0 -1
- package/dist/useTimeout-CrCYVizI.js +0 -42
- package/dist/utils-BWx1W_q1.cjs +0 -1
- package/dist/utils-B_pVp6UZ.js +0 -363
- package/dist/utils-DWqc1kRF.js +0 -13
- package/dist/utils-XujN9ndp.cjs +0 -1
- package/dist/warning-C8W811fV.js +0 -11
- package/dist/warning-DMUNDgRg.cjs +0 -2
package/dist/Menu-DGvAkF5F.js
DELETED
|
@@ -1,911 +0,0 @@
|
|
|
1
|
-
import * as u from "react";
|
|
2
|
-
import { Y as fe, G as de, F as me, H as he } from "./generateUtilityClasses-B_xKAflz.js";
|
|
3
|
-
import { P as e } from "./index-B9vkf41S.js";
|
|
4
|
-
import { u as ke } from "./index-Ba4TEBpP.js";
|
|
5
|
-
import { s as G, u as be, c as ye, r as xe } from "./DefaultPropsProvider-BrmlvPWg.js";
|
|
6
|
-
import { u as B } from "./useSlot-BSkdRaZr.js";
|
|
7
|
-
import { jsx as A } from "react/jsx-runtime";
|
|
8
|
-
import { u as De } from "./useSlotProps-CWTjRiRv.js";
|
|
9
|
-
import { i as Ne } from "./isHostComponent-kiaBvYVo.js";
|
|
10
|
-
import { P as Fe } from "./Paper-CZXfHfN_.js";
|
|
11
|
-
import { o as ee } from "./ownerDocument-CUrv0DIK.js";
|
|
12
|
-
import { o as oe } from "./ownerWindow-niciwP7I.js";
|
|
13
|
-
import { d as Ie } from "./debounce-46wSf_lW.js";
|
|
14
|
-
import { G as je } from "./Grow-CeGwnQpw.js";
|
|
15
|
-
import { m as Le } from "./mergeSlotProps-DVtjofCS.js";
|
|
16
|
-
import { b as ze, M as Ke } from "./Modal-DtjScKxh.js";
|
|
17
|
-
import { i as He } from "./integerPropType-BihGt2aU.js";
|
|
18
|
-
import { c as Ue } from "./chainPropTypes-D9lkm76m.js";
|
|
19
|
-
import { r as Ve } from "./refType-8hihVLUh.js";
|
|
20
|
-
import { e as Ae } from "./elementTypeAcceptingRef-vRb2iI4O.js";
|
|
21
|
-
import { H as te } from "./Portal-PkRJuFYN.js";
|
|
22
|
-
import { u as _e } from "./useEventCallback-Y2KwRxBw.js";
|
|
23
|
-
import { u as We } from "./useForkRef-u29GSuCu.js";
|
|
24
|
-
import { L as qe } from "./List-CmJ1jCss.js";
|
|
25
|
-
function Z(o, t, n) {
|
|
26
|
-
return o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : o.firstChild;
|
|
27
|
-
}
|
|
28
|
-
function le(o, t, n) {
|
|
29
|
-
return o === t ? n ? o.firstChild : o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : n ? null : o.lastChild;
|
|
30
|
-
}
|
|
31
|
-
function ge(o, t) {
|
|
32
|
-
if (t === void 0)
|
|
33
|
-
return !0;
|
|
34
|
-
let n = o.innerText;
|
|
35
|
-
return n === void 0 && (n = o.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
|
|
36
|
-
}
|
|
37
|
-
function q(o, t, n, k, E, y) {
|
|
38
|
-
let g = !1, m = E(o, t, t ? n : !1);
|
|
39
|
-
for (; m; ) {
|
|
40
|
-
if (m === o.firstChild) {
|
|
41
|
-
if (g)
|
|
42
|
-
return !1;
|
|
43
|
-
g = !0;
|
|
44
|
-
}
|
|
45
|
-
const b = k ? !1 : m.disabled || m.getAttribute("aria-disabled") === "true";
|
|
46
|
-
if (!m.hasAttribute("tabindex") || !ge(m, y) || b)
|
|
47
|
-
m = E(o, m, n);
|
|
48
|
-
else
|
|
49
|
-
return m.focus(), !0;
|
|
50
|
-
}
|
|
51
|
-
return !1;
|
|
52
|
-
}
|
|
53
|
-
const Pe = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
54
|
-
const {
|
|
55
|
-
// private
|
|
56
|
-
// eslint-disable-next-line react/prop-types
|
|
57
|
-
actions: k,
|
|
58
|
-
autoFocus: E = !1,
|
|
59
|
-
autoFocusItem: y = !1,
|
|
60
|
-
children: g,
|
|
61
|
-
className: m,
|
|
62
|
-
disabledItemsFocusable: b = !1,
|
|
63
|
-
disableListWrap: R = !1,
|
|
64
|
-
onKeyDown: x,
|
|
65
|
-
variant: L = "selectedMenu",
|
|
66
|
-
...K
|
|
67
|
-
} = t, a = u.useRef(null), P = u.useRef({
|
|
68
|
-
keys: [],
|
|
69
|
-
repeating: !0,
|
|
70
|
-
previousKeyMatched: !0,
|
|
71
|
-
lastTime: null
|
|
72
|
-
});
|
|
73
|
-
_e(() => {
|
|
74
|
-
E && a.current.focus();
|
|
75
|
-
}, [E]), u.useImperativeHandle(k, () => ({
|
|
76
|
-
adjustStyleForScrollbar: (r, {
|
|
77
|
-
direction: l
|
|
78
|
-
}) => {
|
|
79
|
-
const p = !a.current.style.width;
|
|
80
|
-
if (r.clientHeight < a.current.clientHeight && p) {
|
|
81
|
-
const O = `${ze(oe(r))}px`;
|
|
82
|
-
a.current.style[l === "rtl" ? "paddingLeft" : "paddingRight"] = O, a.current.style.width = `calc(100% + ${O})`;
|
|
83
|
-
}
|
|
84
|
-
return a.current;
|
|
85
|
-
}
|
|
86
|
-
}), []);
|
|
87
|
-
const H = (r) => {
|
|
88
|
-
const l = a.current, p = r.key;
|
|
89
|
-
if (r.ctrlKey || r.metaKey || r.altKey) {
|
|
90
|
-
x && x(r);
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
const D = ee(l).activeElement;
|
|
94
|
-
if (p === "ArrowDown")
|
|
95
|
-
r.preventDefault(), q(l, D, R, b, Z);
|
|
96
|
-
else if (p === "ArrowUp")
|
|
97
|
-
r.preventDefault(), q(l, D, R, b, le);
|
|
98
|
-
else if (p === "Home")
|
|
99
|
-
r.preventDefault(), q(l, null, R, b, Z);
|
|
100
|
-
else if (p === "End")
|
|
101
|
-
r.preventDefault(), q(l, null, R, b, le);
|
|
102
|
-
else if (p.length === 1) {
|
|
103
|
-
const c = P.current, C = p.toLowerCase(), z = performance.now();
|
|
104
|
-
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);
|
|
105
|
-
const N = D && !c.repeating && ge(D, c);
|
|
106
|
-
c.previousKeyMatched && (N || q(l, D, !1, b, Z, c)) ? r.preventDefault() : c.previousKeyMatched = !1;
|
|
107
|
-
}
|
|
108
|
-
x && x(r);
|
|
109
|
-
}, F = We(a, n);
|
|
110
|
-
let i = -1;
|
|
111
|
-
u.Children.forEach(g, (r, l) => {
|
|
112
|
-
if (!/* @__PURE__ */ u.isValidElement(r)) {
|
|
113
|
-
i === l && (i += 1, i >= g.length && (i = -1));
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
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(`
|
|
117
|
-
`)), 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));
|
|
118
|
-
});
|
|
119
|
-
const v = u.Children.map(g, (r, l) => {
|
|
120
|
-
if (l === i) {
|
|
121
|
-
const p = {};
|
|
122
|
-
return y && (p.autoFocus = !0), r.props.tabIndex === void 0 && L === "selectedMenu" && (p.tabIndex = 0), /* @__PURE__ */ u.cloneElement(r, p);
|
|
123
|
-
}
|
|
124
|
-
return r;
|
|
125
|
-
});
|
|
126
|
-
return /* @__PURE__ */ A(qe, {
|
|
127
|
-
role: "menu",
|
|
128
|
-
ref: F,
|
|
129
|
-
className: m,
|
|
130
|
-
onKeyDown: H,
|
|
131
|
-
tabIndex: E ? 0 : -1,
|
|
132
|
-
...K,
|
|
133
|
-
children: v
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
137
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
138
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
139
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
140
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
141
|
-
/**
|
|
142
|
-
* If `true`, will focus the `[role="menu"]` container and move into tab order.
|
|
143
|
-
* @default false
|
|
144
|
-
*/
|
|
145
|
-
autoFocus: e.bool,
|
|
146
|
-
/**
|
|
147
|
-
* If `true`, will focus the first menuitem if `variant="menu"` or selected item
|
|
148
|
-
* if `variant="selectedMenu"`.
|
|
149
|
-
* @default false
|
|
150
|
-
*/
|
|
151
|
-
autoFocusItem: e.bool,
|
|
152
|
-
/**
|
|
153
|
-
* MenuList contents, normally `MenuItem`s.
|
|
154
|
-
*/
|
|
155
|
-
children: e.node,
|
|
156
|
-
/**
|
|
157
|
-
* @ignore
|
|
158
|
-
*/
|
|
159
|
-
className: e.string,
|
|
160
|
-
/**
|
|
161
|
-
* If `true`, will allow focus on disabled items.
|
|
162
|
-
* @default false
|
|
163
|
-
*/
|
|
164
|
-
disabledItemsFocusable: e.bool,
|
|
165
|
-
/**
|
|
166
|
-
* If `true`, the menu items will not wrap focus.
|
|
167
|
-
* @default false
|
|
168
|
-
*/
|
|
169
|
-
disableListWrap: e.bool,
|
|
170
|
-
/**
|
|
171
|
-
* @ignore
|
|
172
|
-
*/
|
|
173
|
-
onKeyDown: e.func,
|
|
174
|
-
/**
|
|
175
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus
|
|
176
|
-
* and the vertical alignment relative to the anchor element.
|
|
177
|
-
* @default 'selectedMenu'
|
|
178
|
-
*/
|
|
179
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
180
|
-
});
|
|
181
|
-
function $e(o) {
|
|
182
|
-
return de("MuiPopover", o);
|
|
183
|
-
}
|
|
184
|
-
me("MuiPopover", ["root", "paper"]);
|
|
185
|
-
function pe(o, t) {
|
|
186
|
-
let n = 0;
|
|
187
|
-
return typeof t == "number" ? n = t : t === "center" ? n = o.height / 2 : t === "bottom" && (n = o.height), n;
|
|
188
|
-
}
|
|
189
|
-
function ce(o, t) {
|
|
190
|
-
let n = 0;
|
|
191
|
-
return typeof t == "number" ? n = t : t === "center" ? n = o.width / 2 : t === "right" && (n = o.width), n;
|
|
192
|
-
}
|
|
193
|
-
function ue(o) {
|
|
194
|
-
return [o.horizontal, o.vertical].map((t) => typeof t == "number" ? `${t}px` : t).join(" ");
|
|
195
|
-
}
|
|
196
|
-
function $(o) {
|
|
197
|
-
return typeof o == "function" ? o() : o;
|
|
198
|
-
}
|
|
199
|
-
const Be = (o) => {
|
|
200
|
-
const {
|
|
201
|
-
classes: t
|
|
202
|
-
} = o;
|
|
203
|
-
return ye({
|
|
204
|
-
root: ["root"],
|
|
205
|
-
paper: ["paper"]
|
|
206
|
-
}, $e, t);
|
|
207
|
-
}, Ge = G(Ke, {
|
|
208
|
-
name: "MuiPopover",
|
|
209
|
-
slot: "Root"
|
|
210
|
-
})({}), Te = G(Fe, {
|
|
211
|
-
name: "MuiPopover",
|
|
212
|
-
slot: "Paper"
|
|
213
|
-
})({
|
|
214
|
-
position: "absolute",
|
|
215
|
-
overflowY: "auto",
|
|
216
|
-
overflowX: "hidden",
|
|
217
|
-
// So we see the popover when it's empty.
|
|
218
|
-
// It's most likely on issue on userland.
|
|
219
|
-
minWidth: 16,
|
|
220
|
-
minHeight: 16,
|
|
221
|
-
maxWidth: "calc(100% - 32px)",
|
|
222
|
-
maxHeight: "calc(100% - 32px)",
|
|
223
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
224
|
-
outline: 0
|
|
225
|
-
}), ve = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
226
|
-
const k = be({
|
|
227
|
-
props: t,
|
|
228
|
-
name: "MuiPopover"
|
|
229
|
-
}), {
|
|
230
|
-
action: E,
|
|
231
|
-
anchorEl: y,
|
|
232
|
-
anchorOrigin: g = {
|
|
233
|
-
vertical: "top",
|
|
234
|
-
horizontal: "left"
|
|
235
|
-
},
|
|
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: v = {
|
|
249
|
-
vertical: "top",
|
|
250
|
-
horizontal: "left"
|
|
251
|
-
},
|
|
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,
|
|
261
|
-
anchorOrigin: g,
|
|
262
|
-
anchorReference: b,
|
|
263
|
-
elevation: K,
|
|
264
|
-
marginThreshold: a,
|
|
265
|
-
transformOrigin: v,
|
|
266
|
-
TransitionComponent: r,
|
|
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
|
-
if (process.env.NODE_ENV !== "production") {
|
|
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
|
-
`));
|
|
277
|
-
}
|
|
278
|
-
return {
|
|
279
|
-
top: h.top + pe(h, g.vertical),
|
|
280
|
-
left: h.left + ce(h, g.horizontal)
|
|
281
|
-
};
|
|
282
|
-
}, [y, g.horizontal, g.vertical, m, b]), I = u.useCallback((s) => ({
|
|
283
|
-
vertical: pe(s, v.vertical),
|
|
284
|
-
horizontal: ce(s, v.horizontal)
|
|
285
|
-
}), [v.horizontal, v.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
|
-
return {
|
|
292
|
-
top: null,
|
|
293
|
-
left: null,
|
|
294
|
-
transformOrigin: ue(h)
|
|
295
|
-
};
|
|
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
|
-
}
|
|
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
|
-
} else if (se > ae) {
|
|
311
|
-
const w = se - ae;
|
|
312
|
-
V -= w, h.horizontal += w;
|
|
313
|
-
}
|
|
314
|
-
return {
|
|
315
|
-
top: `${Math.round(U)}px`,
|
|
316
|
-
left: `${Math.round(V)}px`,
|
|
317
|
-
transformOrigin: ue(h)
|
|
318
|
-
};
|
|
319
|
-
}, [y, b, N, I, a]), [J, X] = u.useState(P), M = u.useCallback(() => {
|
|
320
|
-
const s = c.current;
|
|
321
|
-
if (!s)
|
|
322
|
-
return;
|
|
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 Q = () => {
|
|
328
|
-
M();
|
|
329
|
-
}, j = () => {
|
|
330
|
-
X(!1);
|
|
331
|
-
};
|
|
332
|
-
u.useEffect(() => {
|
|
333
|
-
P && M();
|
|
334
|
-
}), u.useImperativeHandle(E, () => P ? {
|
|
335
|
-
updatePosition: () => {
|
|
336
|
-
M();
|
|
337
|
-
}
|
|
338
|
-
} : null, [P, M]), u.useEffect(() => {
|
|
339
|
-
if (!P)
|
|
340
|
-
return;
|
|
341
|
-
const s = Ie(() => {
|
|
342
|
-
M();
|
|
343
|
-
}), d = oe($(y));
|
|
344
|
-
return d.addEventListener("resize", s), () => {
|
|
345
|
-
s.clear(), d.removeEventListener("resize", s);
|
|
346
|
-
};
|
|
347
|
-
}, [y, P, M]);
|
|
348
|
-
let f = l;
|
|
349
|
-
const T = {
|
|
350
|
-
slots: {
|
|
351
|
-
transition: r,
|
|
352
|
-
...F
|
|
353
|
-
},
|
|
354
|
-
slotProps: {
|
|
355
|
-
transition: p,
|
|
356
|
-
paper: H,
|
|
357
|
-
...i
|
|
358
|
-
}
|
|
359
|
-
}, [_, Ee] = B("transition", {
|
|
360
|
-
elementType: je,
|
|
361
|
-
externalForwardedProps: T,
|
|
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), Q();
|
|
368
|
-
},
|
|
369
|
-
onExited: (d) => {
|
|
370
|
-
var h;
|
|
371
|
-
(h = s.onExited) == null || h.call(s, d), j();
|
|
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
|
-
...T,
|
|
389
|
-
...D
|
|
390
|
-
},
|
|
391
|
-
shouldForwardComponentProp: !0,
|
|
392
|
-
additionalProps: {
|
|
393
|
-
slots: {
|
|
394
|
-
backdrop: F.backdrop
|
|
395
|
-
},
|
|
396
|
-
slotProps: {
|
|
397
|
-
backdrop: Le(typeof i.backdrop == "function" ? i.backdrop(C) : i.backdrop, {
|
|
398
|
-
invisible: !0
|
|
399
|
-
})
|
|
400
|
-
},
|
|
401
|
-
container: Oe,
|
|
402
|
-
open: P
|
|
403
|
-
},
|
|
404
|
-
ownerState: C,
|
|
405
|
-
className: he(z.root, x)
|
|
406
|
-
}), [Ce, Se] = B("paper", {
|
|
407
|
-
ref: c,
|
|
408
|
-
className: z.paper,
|
|
409
|
-
elementType: Te,
|
|
410
|
-
externalForwardedProps: T,
|
|
411
|
-
shouldForwardComponentProp: !0,
|
|
412
|
-
additionalProps: {
|
|
413
|
-
elevation: K,
|
|
414
|
-
style: J ? void 0 : {
|
|
415
|
-
opacity: 0
|
|
416
|
-
}
|
|
417
|
-
},
|
|
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
|
|
433
|
-
})
|
|
434
|
-
})
|
|
435
|
-
});
|
|
436
|
-
});
|
|
437
|
-
process.env.NODE_ENV !== "production" && (ve.propTypes = {
|
|
438
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
439
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
440
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
441
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
442
|
-
/**
|
|
443
|
-
* A ref for imperative actions.
|
|
444
|
-
* It currently only supports updatePosition() action.
|
|
445
|
-
*/
|
|
446
|
-
action: Ve,
|
|
447
|
-
/**
|
|
448
|
-
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
449
|
-
* or a function that returns either.
|
|
450
|
-
* It's used to set the position of the popover.
|
|
451
|
-
*/
|
|
452
|
-
anchorEl: Ue(e.oneOfType([te, e.func]), (o) => {
|
|
453
|
-
if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
|
|
454
|
-
const t = $(o.anchorEl);
|
|
455
|
-
if (t && t.nodeType === 1) {
|
|
456
|
-
const n = t.getBoundingClientRect();
|
|
457
|
-
if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0)
|
|
458
|
-
return new Error(["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(`
|
|
459
|
-
`));
|
|
460
|
-
} else
|
|
461
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
462
|
-
`));
|
|
463
|
-
}
|
|
464
|
-
return null;
|
|
465
|
-
}),
|
|
466
|
-
/**
|
|
467
|
-
* This is the point on the anchor where the popover's
|
|
468
|
-
* `anchorEl` will attach to. This is not used when the
|
|
469
|
-
* anchorReference is 'anchorPosition'.
|
|
470
|
-
*
|
|
471
|
-
* Options:
|
|
472
|
-
* vertical: [top, center, bottom];
|
|
473
|
-
* horizontal: [left, center, right].
|
|
474
|
-
* @default {
|
|
475
|
-
* vertical: 'top',
|
|
476
|
-
* horizontal: 'left',
|
|
477
|
-
* }
|
|
478
|
-
*/
|
|
479
|
-
anchorOrigin: e.shape({
|
|
480
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
481
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
482
|
-
}),
|
|
483
|
-
/**
|
|
484
|
-
* This is the position that may be used to set the position of the popover.
|
|
485
|
-
* The coordinates are relative to the application's client area.
|
|
486
|
-
*/
|
|
487
|
-
anchorPosition: e.shape({
|
|
488
|
-
left: e.number.isRequired,
|
|
489
|
-
top: e.number.isRequired
|
|
490
|
-
}),
|
|
491
|
-
/**
|
|
492
|
-
* This determines which anchor prop to refer to when setting
|
|
493
|
-
* the position of the popover.
|
|
494
|
-
* @default 'anchorEl'
|
|
495
|
-
*/
|
|
496
|
-
anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
|
|
497
|
-
/**
|
|
498
|
-
* A backdrop component. This prop enables custom backdrop rendering.
|
|
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.
|
|
500
|
-
* @default styled(Backdrop, {
|
|
501
|
-
* name: 'MuiModal',
|
|
502
|
-
* slot: 'Backdrop',
|
|
503
|
-
* overridesResolver: (props, styles) => {
|
|
504
|
-
* return styles.backdrop;
|
|
505
|
-
* },
|
|
506
|
-
* })({
|
|
507
|
-
* zIndex: -1,
|
|
508
|
-
* })
|
|
509
|
-
*/
|
|
510
|
-
BackdropComponent: e.elementType,
|
|
511
|
-
/**
|
|
512
|
-
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
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.
|
|
514
|
-
*/
|
|
515
|
-
BackdropProps: e.object,
|
|
516
|
-
/**
|
|
517
|
-
* The content of the component.
|
|
518
|
-
*/
|
|
519
|
-
children: e.node,
|
|
520
|
-
/**
|
|
521
|
-
* Override or extend the styles applied to the component.
|
|
522
|
-
*/
|
|
523
|
-
classes: e.object,
|
|
524
|
-
/**
|
|
525
|
-
* @ignore
|
|
526
|
-
*/
|
|
527
|
-
className: e.string,
|
|
528
|
-
/**
|
|
529
|
-
* An HTML element, component instance, or function that returns either.
|
|
530
|
-
* The `container` will passed to the Modal component.
|
|
531
|
-
*
|
|
532
|
-
* By default, it uses the body of the anchorEl's top-level document object,
|
|
533
|
-
* so it's simply `document.body` most of the time.
|
|
534
|
-
*/
|
|
535
|
-
container: e.oneOfType([te, e.func]),
|
|
536
|
-
/**
|
|
537
|
-
* Disable the scroll lock behavior.
|
|
538
|
-
* @default false
|
|
539
|
-
*/
|
|
540
|
-
disableScrollLock: e.bool,
|
|
541
|
-
/**
|
|
542
|
-
* The elevation of the popover.
|
|
543
|
-
* @default 8
|
|
544
|
-
*/
|
|
545
|
-
elevation: He,
|
|
546
|
-
/**
|
|
547
|
-
* Specifies how close to the edge of the window the popover can appear.
|
|
548
|
-
* If null, the popover will not be constrained by the window.
|
|
549
|
-
* @default 16
|
|
550
|
-
*/
|
|
551
|
-
marginThreshold: e.number,
|
|
552
|
-
/**
|
|
553
|
-
* Callback fired when the component requests to be closed.
|
|
554
|
-
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
555
|
-
*/
|
|
556
|
-
onClose: e.func,
|
|
557
|
-
/**
|
|
558
|
-
* If `true`, the component is shown.
|
|
559
|
-
*/
|
|
560
|
-
open: e.bool.isRequired,
|
|
561
|
-
/**
|
|
562
|
-
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
|
563
|
-
*
|
|
564
|
-
* This prop is an alias for `slotProps.paper` and will be overriden by it if both are used.
|
|
565
|
-
* @deprecated Use `slotProps.paper` instead.
|
|
566
|
-
*
|
|
567
|
-
* @default {}
|
|
568
|
-
*/
|
|
569
|
-
PaperProps: e.shape({
|
|
570
|
-
component: Ae
|
|
571
|
-
}),
|
|
572
|
-
/**
|
|
573
|
-
* The props used for each slot inside.
|
|
574
|
-
* @default {}
|
|
575
|
-
*/
|
|
576
|
-
slotProps: e.shape({
|
|
577
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
578
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
579
|
-
root: e.oneOfType([e.func, e.object]),
|
|
580
|
-
transition: e.oneOfType([e.func, e.object])
|
|
581
|
-
}),
|
|
582
|
-
/**
|
|
583
|
-
* The components used for each slot inside.
|
|
584
|
-
* @default {}
|
|
585
|
-
*/
|
|
586
|
-
slots: e.shape({
|
|
587
|
-
backdrop: e.elementType,
|
|
588
|
-
paper: e.elementType,
|
|
589
|
-
root: e.elementType,
|
|
590
|
-
transition: e.elementType
|
|
591
|
-
}),
|
|
592
|
-
/**
|
|
593
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
594
|
-
*/
|
|
595
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
596
|
-
/**
|
|
597
|
-
* This is the point on the popover which
|
|
598
|
-
* will attach to the anchor's origin.
|
|
599
|
-
*
|
|
600
|
-
* Options:
|
|
601
|
-
* vertical: [top, center, bottom, x(px)];
|
|
602
|
-
* horizontal: [left, center, right, x(px)].
|
|
603
|
-
* @default {
|
|
604
|
-
* vertical: 'top',
|
|
605
|
-
* horizontal: 'left',
|
|
606
|
-
* }
|
|
607
|
-
*/
|
|
608
|
-
transformOrigin: e.shape({
|
|
609
|
-
horizontal: e.oneOfType([e.oneOf(["center", "left", "right"]), e.number]).isRequired,
|
|
610
|
-
vertical: e.oneOfType([e.oneOf(["bottom", "center", "top"]), e.number]).isRequired
|
|
611
|
-
}),
|
|
612
|
-
/**
|
|
613
|
-
* The component used for the transition.
|
|
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.
|
|
616
|
-
* @default Grow
|
|
617
|
-
*/
|
|
618
|
-
TransitionComponent: e.elementType,
|
|
619
|
-
/**
|
|
620
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
621
|
-
* @default 'auto'
|
|
622
|
-
*/
|
|
623
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
624
|
-
appear: e.number,
|
|
625
|
-
enter: e.number,
|
|
626
|
-
exit: e.number
|
|
627
|
-
})]),
|
|
628
|
-
/**
|
|
629
|
-
* Props applied to the transition element.
|
|
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.
|
|
632
|
-
* @default {}
|
|
633
|
-
*/
|
|
634
|
-
TransitionProps: e.object
|
|
635
|
-
});
|
|
636
|
-
function Ye(o) {
|
|
637
|
-
return de("MuiMenu", o);
|
|
638
|
-
}
|
|
639
|
-
const Co = me("MuiMenu", ["root", "paper", "list"]), Xe = {
|
|
640
|
-
vertical: "top",
|
|
641
|
-
horizontal: "right"
|
|
642
|
-
}, Je = {
|
|
643
|
-
vertical: "top",
|
|
644
|
-
horizontal: "left"
|
|
645
|
-
}, Qe = (o) => {
|
|
646
|
-
const {
|
|
647
|
-
classes: t
|
|
648
|
-
} = o;
|
|
649
|
-
return ye({
|
|
650
|
-
root: ["root"],
|
|
651
|
-
paper: ["paper"],
|
|
652
|
-
list: ["list"]
|
|
653
|
-
}, Ye, t);
|
|
654
|
-
}, Ze = G(ve, {
|
|
655
|
-
shouldForwardProp: (o) => xe(o) || o === "classes",
|
|
656
|
-
name: "MuiMenu",
|
|
657
|
-
slot: "Root"
|
|
658
|
-
})({}), eo = G(Te, {
|
|
659
|
-
name: "MuiMenu",
|
|
660
|
-
slot: "Paper"
|
|
661
|
-
})({
|
|
662
|
-
// specZ: The maximum height of a simple menu should be one or more rows less than the view
|
|
663
|
-
// height. This ensures a tappable area outside of the simple menu with which to dismiss
|
|
664
|
-
// the menu.
|
|
665
|
-
maxHeight: "calc(100% - 96px)",
|
|
666
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
667
|
-
WebkitOverflowScrolling: "touch"
|
|
668
|
-
}), oo = G(Pe, {
|
|
669
|
-
name: "MuiMenu",
|
|
670
|
-
slot: "List"
|
|
671
|
-
})({
|
|
672
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
673
|
-
outline: 0
|
|
674
|
-
}), to = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
675
|
-
const k = be({
|
|
676
|
-
props: t,
|
|
677
|
-
name: "MuiMenu"
|
|
678
|
-
}), {
|
|
679
|
-
autoFocus: E = !0,
|
|
680
|
-
children: y,
|
|
681
|
-
className: g,
|
|
682
|
-
disableAutoFocusItem: m = !1,
|
|
683
|
-
MenuListProps: b = {},
|
|
684
|
-
onClose: R,
|
|
685
|
-
open: x,
|
|
686
|
-
PaperProps: L = {},
|
|
687
|
-
PopoverClasses: K,
|
|
688
|
-
transitionDuration: a = "auto",
|
|
689
|
-
TransitionProps: {
|
|
690
|
-
onEntering: P,
|
|
691
|
-
...H
|
|
692
|
-
} = {},
|
|
693
|
-
variant: F = "selectedMenu",
|
|
694
|
-
slots: i = {},
|
|
695
|
-
slotProps: v = {},
|
|
696
|
-
...r
|
|
697
|
-
} = k, l = ke(), p = {
|
|
698
|
-
...k,
|
|
699
|
-
autoFocus: E,
|
|
700
|
-
disableAutoFocusItem: m,
|
|
701
|
-
MenuListProps: b,
|
|
702
|
-
onEntering: P,
|
|
703
|
-
PaperProps: L,
|
|
704
|
-
transitionDuration: a,
|
|
705
|
-
TransitionProps: H,
|
|
706
|
-
variant: F
|
|
707
|
-
}, O = Qe(p), D = E && !m && x, c = u.useRef(null), C = (f, T) => {
|
|
708
|
-
c.current && c.current.adjustStyleForScrollbar(f, {
|
|
709
|
-
direction: l ? "rtl" : "ltr"
|
|
710
|
-
}), P && P(f, T);
|
|
711
|
-
}, z = (f) => {
|
|
712
|
-
f.key === "Tab" && (f.preventDefault(), R && R(f, "tabKeyDown"));
|
|
713
|
-
};
|
|
714
|
-
let N = -1;
|
|
715
|
-
u.Children.map(y, (f, T) => {
|
|
716
|
-
/* @__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(`
|
|
717
|
-
`)), f.props.disabled || (F === "selectedMenu" && f.props.selected || N === -1) && (N = T));
|
|
718
|
-
});
|
|
719
|
-
const I = {
|
|
720
|
-
slots: i,
|
|
721
|
-
slotProps: {
|
|
722
|
-
list: b,
|
|
723
|
-
transition: H,
|
|
724
|
-
paper: L,
|
|
725
|
-
...v
|
|
726
|
-
}
|
|
727
|
-
}, Y = De({
|
|
728
|
-
elementType: i.root,
|
|
729
|
-
externalSlotProps: v.root,
|
|
730
|
-
ownerState: p,
|
|
731
|
-
className: [O.root, g]
|
|
732
|
-
}), [J, X] = B("paper", {
|
|
733
|
-
className: O.paper,
|
|
734
|
-
elementType: eo,
|
|
735
|
-
externalForwardedProps: I,
|
|
736
|
-
shouldForwardComponentProp: !0,
|
|
737
|
-
ownerState: p
|
|
738
|
-
}), [M, Q] = B("list", {
|
|
739
|
-
className: he(O.list, b.className),
|
|
740
|
-
elementType: oo,
|
|
741
|
-
shouldForwardComponentProp: !0,
|
|
742
|
-
externalForwardedProps: I,
|
|
743
|
-
getSlotProps: (f) => ({
|
|
744
|
-
...f,
|
|
745
|
-
onKeyDown: (T) => {
|
|
746
|
-
var _;
|
|
747
|
-
z(T), (_ = f.onKeyDown) == null || _.call(f, T);
|
|
748
|
-
}
|
|
749
|
-
}),
|
|
750
|
-
ownerState: p
|
|
751
|
-
}), j = typeof I.slotProps.transition == "function" ? I.slotProps.transition(p) : I.slotProps.transition;
|
|
752
|
-
return /* @__PURE__ */ A(Ze, {
|
|
753
|
-
onClose: R,
|
|
754
|
-
anchorOrigin: {
|
|
755
|
-
vertical: "bottom",
|
|
756
|
-
horizontal: l ? "right" : "left"
|
|
757
|
-
},
|
|
758
|
-
transformOrigin: l ? Xe : Je,
|
|
759
|
-
slots: {
|
|
760
|
-
root: i.root,
|
|
761
|
-
paper: J,
|
|
762
|
-
backdrop: i.backdrop,
|
|
763
|
-
...i.transition && {
|
|
764
|
-
// TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
|
|
765
|
-
transition: i.transition
|
|
766
|
-
}
|
|
767
|
-
},
|
|
768
|
-
slotProps: {
|
|
769
|
-
root: Y,
|
|
770
|
-
paper: X,
|
|
771
|
-
backdrop: typeof v.backdrop == "function" ? v.backdrop(p) : v.backdrop,
|
|
772
|
-
transition: {
|
|
773
|
-
...j,
|
|
774
|
-
onEntering: (...f) => {
|
|
775
|
-
var T;
|
|
776
|
-
C(...f), (T = j == null ? void 0 : j.onEntering) == null || T.call(j, ...f);
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
},
|
|
780
|
-
open: x,
|
|
781
|
-
ref: n,
|
|
782
|
-
transitionDuration: a,
|
|
783
|
-
ownerState: p,
|
|
784
|
-
...r,
|
|
785
|
-
classes: K,
|
|
786
|
-
children: /* @__PURE__ */ A(M, {
|
|
787
|
-
actions: c,
|
|
788
|
-
autoFocus: E && (N === -1 || m),
|
|
789
|
-
autoFocusItem: D,
|
|
790
|
-
variant: F,
|
|
791
|
-
...Q,
|
|
792
|
-
children: y
|
|
793
|
-
})
|
|
794
|
-
});
|
|
795
|
-
});
|
|
796
|
-
process.env.NODE_ENV !== "production" && (to.propTypes = {
|
|
797
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
798
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
799
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
800
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
801
|
-
/**
|
|
802
|
-
* An HTML element, or a function that returns one.
|
|
803
|
-
* It's used to set the position of the menu.
|
|
804
|
-
*/
|
|
805
|
-
anchorEl: e.oneOfType([te, e.func]),
|
|
806
|
-
/**
|
|
807
|
-
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
808
|
-
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
809
|
-
* on the parent modal container. This has severe accessibility implications
|
|
810
|
-
* and should only be considered if you manage focus otherwise.
|
|
811
|
-
* @default true
|
|
812
|
-
*/
|
|
813
|
-
autoFocus: e.bool,
|
|
814
|
-
/**
|
|
815
|
-
* Menu contents, normally `MenuItem`s.
|
|
816
|
-
*/
|
|
817
|
-
children: e.node,
|
|
818
|
-
/**
|
|
819
|
-
* Override or extend the styles applied to the component.
|
|
820
|
-
*/
|
|
821
|
-
classes: e.object,
|
|
822
|
-
/**
|
|
823
|
-
* @ignore
|
|
824
|
-
*/
|
|
825
|
-
className: e.string,
|
|
826
|
-
/**
|
|
827
|
-
* When opening the menu will not focus the active item but the `[role="menu"]`
|
|
828
|
-
* unless `autoFocus` is also set to `false`. Not using the default means not
|
|
829
|
-
* following WAI-ARIA authoring practices. Please be considerate about possible
|
|
830
|
-
* accessibility implications.
|
|
831
|
-
* @default false
|
|
832
|
-
*/
|
|
833
|
-
disableAutoFocusItem: e.bool,
|
|
834
|
-
/**
|
|
835
|
-
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
836
|
-
* @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.
|
|
837
|
-
* @default {}
|
|
838
|
-
*/
|
|
839
|
-
MenuListProps: e.object,
|
|
840
|
-
/**
|
|
841
|
-
* Callback fired when the component requests to be closed.
|
|
842
|
-
*
|
|
843
|
-
* @param {object} event The event source of the callback.
|
|
844
|
-
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
|
|
845
|
-
*/
|
|
846
|
-
onClose: e.func,
|
|
847
|
-
/**
|
|
848
|
-
* If `true`, the component is shown.
|
|
849
|
-
*/
|
|
850
|
-
open: e.bool.isRequired,
|
|
851
|
-
/**
|
|
852
|
-
* @ignore
|
|
853
|
-
*/
|
|
854
|
-
PaperProps: e.object,
|
|
855
|
-
/**
|
|
856
|
-
* `classes` prop applied to the [`Popover`](https://mui.com/material-ui/api/popover/) element.
|
|
857
|
-
*/
|
|
858
|
-
PopoverClasses: e.object,
|
|
859
|
-
/**
|
|
860
|
-
* The props used for each slot inside.
|
|
861
|
-
* @default {}
|
|
862
|
-
*/
|
|
863
|
-
slotProps: e.shape({
|
|
864
|
-
backdrop: e.oneOfType([e.func, e.object]),
|
|
865
|
-
list: e.oneOfType([e.func, e.object]),
|
|
866
|
-
paper: e.oneOfType([e.func, e.object]),
|
|
867
|
-
root: e.oneOfType([e.func, e.object]),
|
|
868
|
-
transition: e.oneOfType([e.func, e.object])
|
|
869
|
-
}),
|
|
870
|
-
/**
|
|
871
|
-
* The components used for each slot inside.
|
|
872
|
-
* @default {}
|
|
873
|
-
*/
|
|
874
|
-
slots: e.shape({
|
|
875
|
-
backdrop: e.elementType,
|
|
876
|
-
list: e.elementType,
|
|
877
|
-
paper: e.elementType,
|
|
878
|
-
root: e.elementType,
|
|
879
|
-
transition: e.elementType
|
|
880
|
-
}),
|
|
881
|
-
/**
|
|
882
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
883
|
-
*/
|
|
884
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
885
|
-
/**
|
|
886
|
-
* The length of the transition in `ms`, or 'auto'
|
|
887
|
-
* @default 'auto'
|
|
888
|
-
*/
|
|
889
|
-
transitionDuration: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
890
|
-
appear: e.number,
|
|
891
|
-
enter: e.number,
|
|
892
|
-
exit: e.number
|
|
893
|
-
})]),
|
|
894
|
-
/**
|
|
895
|
-
* Props applied to the transition element.
|
|
896
|
-
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
897
|
-
* @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.
|
|
898
|
-
* @default {}
|
|
899
|
-
*/
|
|
900
|
-
TransitionProps: e.object,
|
|
901
|
-
/**
|
|
902
|
-
* The variant to use. Use `menu` to prevent selected items from impacting the initial focus.
|
|
903
|
-
* @default 'selectedMenu'
|
|
904
|
-
*/
|
|
905
|
-
variant: e.oneOf(["menu", "selectedMenu"])
|
|
906
|
-
});
|
|
907
|
-
export {
|
|
908
|
-
to as M,
|
|
909
|
-
Ye as g,
|
|
910
|
-
Co as m
|
|
911
|
-
};
|