@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/Tab-Bksf_S4K.js
DELETED
|
@@ -1,1454 +0,0 @@
|
|
|
1
|
-
import * as s from "react";
|
|
2
|
-
import { P as e } from "./index-B9vkf41S.js";
|
|
3
|
-
import { jsx as T, jsxs as G } from "react/jsx-runtime";
|
|
4
|
-
import { F as ae, G as ie, H as j, Y as wo } from "./generateUtilityClasses-B_xKAflz.js";
|
|
5
|
-
import { u as ze } from "./index-Ba4TEBpP.js";
|
|
6
|
-
import { u as xo } from "./useTheme-0AkY41zn.js";
|
|
7
|
-
import { u as Se, s as D, c as ce } from "./DefaultPropsProvider-BrmlvPWg.js";
|
|
8
|
-
import { m as ve } from "./memoTheme-C-PaH-Cy.js";
|
|
9
|
-
import { u as Bo, a as me } from "./useEventCallback-Y2KwRxBw.js";
|
|
10
|
-
import { d as Fe } from "./debounce-46wSf_lW.js";
|
|
11
|
-
import { o as Ae } from "./ownerWindow-niciwP7I.js";
|
|
12
|
-
import { u as H } from "./useSlot-BSkdRaZr.js";
|
|
13
|
-
import { u as se } from "./useSlotProps-CWTjRiRv.js";
|
|
14
|
-
import { c as Ve } from "./createSvgIcon-DFIM5PqN.js";
|
|
15
|
-
import { B as He } from "./ButtonBase-C2jRC_V7.js";
|
|
16
|
-
import { o as Co } from "./ownerDocument-CUrv0DIK.js";
|
|
17
|
-
import { r as Eo } from "./refType-8hihVLUh.js";
|
|
18
|
-
import { u as Io } from "./useThemeProps-hSh1qhnc.js";
|
|
19
|
-
import { c as Ue } from "./capitalize-BHEX83JQ.js";
|
|
20
|
-
import { u as Po } from "./unsupportedProp-BuVD30Gh.js";
|
|
21
|
-
const Te = /* @__PURE__ */ s.createContext(null);
|
|
22
|
-
process.env.NODE_ENV !== "production" && (Te.displayName = "TabContext");
|
|
23
|
-
function Mo() {
|
|
24
|
-
const [t, o] = s.useState(null);
|
|
25
|
-
return s.useEffect(() => {
|
|
26
|
-
o(`mui-p-${Math.round(Math.random() * 1e5)}`);
|
|
27
|
-
}, []), t;
|
|
28
|
-
}
|
|
29
|
-
function Oo(t) {
|
|
30
|
-
const {
|
|
31
|
-
children: o,
|
|
32
|
-
value: r
|
|
33
|
-
} = t, a = Mo(), i = s.useMemo(() => ({
|
|
34
|
-
idPrefix: a,
|
|
35
|
-
value: r
|
|
36
|
-
}), [a, r]);
|
|
37
|
-
return /* @__PURE__ */ T(Te.Provider, {
|
|
38
|
-
value: i,
|
|
39
|
-
children: o
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
process.env.NODE_ENV !== "production" && (Oo.propTypes = {
|
|
43
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
44
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
45
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
46
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
47
|
-
/**
|
|
48
|
-
* The content of the component.
|
|
49
|
-
*/
|
|
50
|
-
children: e.node,
|
|
51
|
-
/**
|
|
52
|
-
* The value of the currently selected `Tab`.
|
|
53
|
-
*/
|
|
54
|
-
value: e.oneOfType([e.number, e.string]).isRequired
|
|
55
|
-
});
|
|
56
|
-
function Ke() {
|
|
57
|
-
return s.useContext(Te);
|
|
58
|
-
}
|
|
59
|
-
function Xe(t, o) {
|
|
60
|
-
const {
|
|
61
|
-
idPrefix: r
|
|
62
|
-
} = t;
|
|
63
|
-
return r === null ? null : `${t.idPrefix}-P-${o}`;
|
|
64
|
-
}
|
|
65
|
-
function Ye(t, o) {
|
|
66
|
-
const {
|
|
67
|
-
idPrefix: r
|
|
68
|
-
} = t;
|
|
69
|
-
return r === null ? null : `${t.idPrefix}-T-${o}`;
|
|
70
|
-
}
|
|
71
|
-
function No(t) {
|
|
72
|
-
return (1 + Math.sin(Math.PI * t - Math.PI / 2)) / 2;
|
|
73
|
-
}
|
|
74
|
-
function Ro(t, o, r, a = {}, i = () => {
|
|
75
|
-
}) {
|
|
76
|
-
const {
|
|
77
|
-
ease: d = No,
|
|
78
|
-
duration: p = 300
|
|
79
|
-
// standard
|
|
80
|
-
} = a;
|
|
81
|
-
let f = null;
|
|
82
|
-
const h = o[t];
|
|
83
|
-
let S = !1;
|
|
84
|
-
const v = () => {
|
|
85
|
-
S = !0;
|
|
86
|
-
}, m = (y) => {
|
|
87
|
-
if (S) {
|
|
88
|
-
i(new Error("Animation cancelled"));
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
f === null && (f = y);
|
|
92
|
-
const g = Math.min(1, (y - f) / p);
|
|
93
|
-
if (o[t] = d(g) * (r - h) + h, g >= 1) {
|
|
94
|
-
requestAnimationFrame(() => {
|
|
95
|
-
i(null);
|
|
96
|
-
});
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
requestAnimationFrame(m);
|
|
100
|
-
};
|
|
101
|
-
return h === r ? (i(new Error("Element already at target position")), v) : (requestAnimationFrame(m), v);
|
|
102
|
-
}
|
|
103
|
-
const jo = {
|
|
104
|
-
width: 99,
|
|
105
|
-
height: 99,
|
|
106
|
-
position: "absolute",
|
|
107
|
-
top: -9999,
|
|
108
|
-
overflow: "scroll"
|
|
109
|
-
};
|
|
110
|
-
function _e(t) {
|
|
111
|
-
const {
|
|
112
|
-
onChange: o,
|
|
113
|
-
...r
|
|
114
|
-
} = t, a = s.useRef(), i = s.useRef(null), d = () => {
|
|
115
|
-
a.current = i.current.offsetHeight - i.current.clientHeight;
|
|
116
|
-
};
|
|
117
|
-
return Bo(() => {
|
|
118
|
-
const p = Fe(() => {
|
|
119
|
-
const h = a.current;
|
|
120
|
-
d(), h !== a.current && o(a.current);
|
|
121
|
-
}), f = Ae(i.current);
|
|
122
|
-
return f.addEventListener("resize", p), () => {
|
|
123
|
-
p.clear(), f.removeEventListener("resize", p);
|
|
124
|
-
};
|
|
125
|
-
}, [o]), s.useEffect(() => {
|
|
126
|
-
d(), o(a.current);
|
|
127
|
-
}, [o]), /* @__PURE__ */ T("div", {
|
|
128
|
-
style: jo,
|
|
129
|
-
...r,
|
|
130
|
-
ref: i
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
134
|
-
onChange: e.func.isRequired
|
|
135
|
-
});
|
|
136
|
-
const ko = Ve(/* @__PURE__ */ T("path", {
|
|
137
|
-
d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
|
|
138
|
-
}), "KeyboardArrowLeft"), $o = Ve(/* @__PURE__ */ T("path", {
|
|
139
|
-
d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
|
|
140
|
-
}), "KeyboardArrowRight");
|
|
141
|
-
function Do(t) {
|
|
142
|
-
return ie("MuiTabScrollButton", t);
|
|
143
|
-
}
|
|
144
|
-
const Wo = ae("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled"]), Lo = (t) => {
|
|
145
|
-
const {
|
|
146
|
-
classes: o,
|
|
147
|
-
orientation: r,
|
|
148
|
-
disabled: a
|
|
149
|
-
} = t;
|
|
150
|
-
return ce({
|
|
151
|
-
root: ["root", r, a && "disabled"]
|
|
152
|
-
}, Do, o);
|
|
153
|
-
}, zo = D(He, {
|
|
154
|
-
name: "MuiTabScrollButton",
|
|
155
|
-
slot: "Root",
|
|
156
|
-
overridesResolver: (t, o) => {
|
|
157
|
-
const {
|
|
158
|
-
ownerState: r
|
|
159
|
-
} = t;
|
|
160
|
-
return [o.root, r.orientation && o[r.orientation]];
|
|
161
|
-
}
|
|
162
|
-
})({
|
|
163
|
-
width: 40,
|
|
164
|
-
flexShrink: 0,
|
|
165
|
-
opacity: 0.8,
|
|
166
|
-
[`&.${Wo.disabled}`]: {
|
|
167
|
-
opacity: 0
|
|
168
|
-
},
|
|
169
|
-
variants: [{
|
|
170
|
-
props: {
|
|
171
|
-
orientation: "vertical"
|
|
172
|
-
},
|
|
173
|
-
style: {
|
|
174
|
-
width: "100%",
|
|
175
|
-
height: 40,
|
|
176
|
-
"& svg": {
|
|
177
|
-
transform: "var(--TabScrollButton-svgRotate)"
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}]
|
|
181
|
-
}), qe = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
182
|
-
const a = Se({
|
|
183
|
-
props: o,
|
|
184
|
-
name: "MuiTabScrollButton"
|
|
185
|
-
}), {
|
|
186
|
-
className: i,
|
|
187
|
-
slots: d = {},
|
|
188
|
-
slotProps: p = {},
|
|
189
|
-
direction: f,
|
|
190
|
-
orientation: h,
|
|
191
|
-
disabled: S,
|
|
192
|
-
...v
|
|
193
|
-
} = a, m = ze(), y = {
|
|
194
|
-
isRtl: m,
|
|
195
|
-
...a
|
|
196
|
-
}, g = Lo(y), W = d.StartScrollButtonIcon ?? ko, E = d.EndScrollButtonIcon ?? $o, x = se({
|
|
197
|
-
elementType: W,
|
|
198
|
-
externalSlotProps: p.startScrollButtonIcon,
|
|
199
|
-
additionalProps: {
|
|
200
|
-
fontSize: "small"
|
|
201
|
-
},
|
|
202
|
-
ownerState: y
|
|
203
|
-
}), J = se({
|
|
204
|
-
elementType: E,
|
|
205
|
-
externalSlotProps: p.endScrollButtonIcon,
|
|
206
|
-
additionalProps: {
|
|
207
|
-
fontSize: "small"
|
|
208
|
-
},
|
|
209
|
-
ownerState: y
|
|
210
|
-
});
|
|
211
|
-
return /* @__PURE__ */ T(zo, {
|
|
212
|
-
component: "div",
|
|
213
|
-
className: j(g.root, i),
|
|
214
|
-
ref: r,
|
|
215
|
-
role: null,
|
|
216
|
-
ownerState: y,
|
|
217
|
-
tabIndex: null,
|
|
218
|
-
...v,
|
|
219
|
-
style: {
|
|
220
|
-
...v.style,
|
|
221
|
-
...h === "vertical" && {
|
|
222
|
-
"--TabScrollButton-svgRotate": `rotate(${m ? -90 : 90}deg)`
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
children: f === "left" ? /* @__PURE__ */ T(W, {
|
|
226
|
-
...x
|
|
227
|
-
}) : /* @__PURE__ */ T(E, {
|
|
228
|
-
...J
|
|
229
|
-
})
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
|
-
process.env.NODE_ENV !== "production" && (qe.propTypes = {
|
|
233
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
234
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
235
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
236
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
237
|
-
/**
|
|
238
|
-
* The content of the component.
|
|
239
|
-
*/
|
|
240
|
-
children: e.node,
|
|
241
|
-
/**
|
|
242
|
-
* Override or extend the styles applied to the component.
|
|
243
|
-
*/
|
|
244
|
-
classes: e.object,
|
|
245
|
-
/**
|
|
246
|
-
* @ignore
|
|
247
|
-
*/
|
|
248
|
-
className: e.string,
|
|
249
|
-
/**
|
|
250
|
-
* The direction the button should indicate.
|
|
251
|
-
*/
|
|
252
|
-
direction: e.oneOf(["left", "right"]).isRequired,
|
|
253
|
-
/**
|
|
254
|
-
* If `true`, the component is disabled.
|
|
255
|
-
* @default false
|
|
256
|
-
*/
|
|
257
|
-
disabled: e.bool,
|
|
258
|
-
/**
|
|
259
|
-
* The component orientation (layout flow direction).
|
|
260
|
-
*/
|
|
261
|
-
orientation: e.oneOf(["horizontal", "vertical"]).isRequired,
|
|
262
|
-
/**
|
|
263
|
-
* The extra props for the slot components.
|
|
264
|
-
* You can override the existing props or add new ones.
|
|
265
|
-
* @default {}
|
|
266
|
-
*/
|
|
267
|
-
slotProps: e.shape({
|
|
268
|
-
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
269
|
-
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
270
|
-
}),
|
|
271
|
-
/**
|
|
272
|
-
* The components used for each slot inside.
|
|
273
|
-
* @default {}
|
|
274
|
-
*/
|
|
275
|
-
slots: e.shape({
|
|
276
|
-
EndScrollButtonIcon: e.elementType,
|
|
277
|
-
StartScrollButtonIcon: e.elementType
|
|
278
|
-
}),
|
|
279
|
-
/**
|
|
280
|
-
* @ignore
|
|
281
|
-
*/
|
|
282
|
-
style: e.object,
|
|
283
|
-
/**
|
|
284
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
285
|
-
*/
|
|
286
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
287
|
-
});
|
|
288
|
-
function Fo(t) {
|
|
289
|
-
return ie("MuiTabs", t);
|
|
290
|
-
}
|
|
291
|
-
const ye = ae("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexContainerVertical", "centered", "scroller", "fixed", "scrollableX", "scrollableY", "hideScrollbar", "scrollButtons", "scrollButtonsHideMobile", "indicator"]), $e = (t, o) => t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : t.firstChild, De = (t, o) => t === o ? t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : t.lastChild, le = (t, o, r) => {
|
|
292
|
-
let a = !1, i = r(t, o);
|
|
293
|
-
for (; i; ) {
|
|
294
|
-
if (i === t.firstChild) {
|
|
295
|
-
if (a)
|
|
296
|
-
return;
|
|
297
|
-
a = !0;
|
|
298
|
-
}
|
|
299
|
-
const d = i.disabled || i.getAttribute("aria-disabled") === "true";
|
|
300
|
-
if (!i.hasAttribute("tabindex") || d)
|
|
301
|
-
i = r(t, i);
|
|
302
|
-
else {
|
|
303
|
-
i.focus();
|
|
304
|
-
return;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}, Ao = (t) => {
|
|
308
|
-
const {
|
|
309
|
-
vertical: o,
|
|
310
|
-
fixed: r,
|
|
311
|
-
hideScrollbar: a,
|
|
312
|
-
scrollableX: i,
|
|
313
|
-
scrollableY: d,
|
|
314
|
-
centered: p,
|
|
315
|
-
scrollButtonsHideMobile: f,
|
|
316
|
-
classes: h
|
|
317
|
-
} = t;
|
|
318
|
-
return ce({
|
|
319
|
-
root: ["root", o && "vertical"],
|
|
320
|
-
scroller: ["scroller", r && "fixed", a && "hideScrollbar", i && "scrollableX", d && "scrollableY"],
|
|
321
|
-
list: ["list", "flexContainer", o && "flexContainerVertical", o && "vertical", p && "centered"],
|
|
322
|
-
indicator: ["indicator"],
|
|
323
|
-
scrollButtons: ["scrollButtons", f && "scrollButtonsHideMobile"],
|
|
324
|
-
scrollableX: [i && "scrollableX"],
|
|
325
|
-
hideScrollbar: [a && "hideScrollbar"]
|
|
326
|
-
}, Fo, h);
|
|
327
|
-
}, Vo = D("div", {
|
|
328
|
-
name: "MuiTabs",
|
|
329
|
-
slot: "Root",
|
|
330
|
-
overridesResolver: (t, o) => {
|
|
331
|
-
const {
|
|
332
|
-
ownerState: r
|
|
333
|
-
} = t;
|
|
334
|
-
return [{
|
|
335
|
-
[`& .${ye.scrollButtons}`]: o.scrollButtons
|
|
336
|
-
}, {
|
|
337
|
-
[`& .${ye.scrollButtons}`]: r.scrollButtonsHideMobile && o.scrollButtonsHideMobile
|
|
338
|
-
}, o.root, r.vertical && o.vertical];
|
|
339
|
-
}
|
|
340
|
-
})(ve(({
|
|
341
|
-
theme: t
|
|
342
|
-
}) => ({
|
|
343
|
-
overflow: "hidden",
|
|
344
|
-
minHeight: 48,
|
|
345
|
-
// Add iOS momentum scrolling for iOS < 13.0
|
|
346
|
-
WebkitOverflowScrolling: "touch",
|
|
347
|
-
display: "flex",
|
|
348
|
-
variants: [{
|
|
349
|
-
props: ({
|
|
350
|
-
ownerState: o
|
|
351
|
-
}) => o.vertical,
|
|
352
|
-
style: {
|
|
353
|
-
flexDirection: "column"
|
|
354
|
-
}
|
|
355
|
-
}, {
|
|
356
|
-
props: ({
|
|
357
|
-
ownerState: o
|
|
358
|
-
}) => o.scrollButtonsHideMobile,
|
|
359
|
-
style: {
|
|
360
|
-
[`& .${ye.scrollButtons}`]: {
|
|
361
|
-
[t.breakpoints.down("sm")]: {
|
|
362
|
-
display: "none"
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}]
|
|
367
|
-
}))), Ho = D("div", {
|
|
368
|
-
name: "MuiTabs",
|
|
369
|
-
slot: "Scroller",
|
|
370
|
-
overridesResolver: (t, o) => {
|
|
371
|
-
const {
|
|
372
|
-
ownerState: r
|
|
373
|
-
} = t;
|
|
374
|
-
return [o.scroller, r.fixed && o.fixed, r.hideScrollbar && o.hideScrollbar, r.scrollableX && o.scrollableX, r.scrollableY && o.scrollableY];
|
|
375
|
-
}
|
|
376
|
-
})({
|
|
377
|
-
position: "relative",
|
|
378
|
-
display: "inline-block",
|
|
379
|
-
flex: "1 1 auto",
|
|
380
|
-
whiteSpace: "nowrap",
|
|
381
|
-
variants: [{
|
|
382
|
-
props: ({
|
|
383
|
-
ownerState: t
|
|
384
|
-
}) => t.fixed,
|
|
385
|
-
style: {
|
|
386
|
-
overflowX: "hidden",
|
|
387
|
-
width: "100%"
|
|
388
|
-
}
|
|
389
|
-
}, {
|
|
390
|
-
props: ({
|
|
391
|
-
ownerState: t
|
|
392
|
-
}) => t.hideScrollbar,
|
|
393
|
-
style: {
|
|
394
|
-
// Hide dimensionless scrollbar on macOS
|
|
395
|
-
scrollbarWidth: "none",
|
|
396
|
-
// Firefox
|
|
397
|
-
"&::-webkit-scrollbar": {
|
|
398
|
-
display: "none"
|
|
399
|
-
// Safari + Chrome
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}, {
|
|
403
|
-
props: ({
|
|
404
|
-
ownerState: t
|
|
405
|
-
}) => t.scrollableX,
|
|
406
|
-
style: {
|
|
407
|
-
overflowX: "auto",
|
|
408
|
-
overflowY: "hidden"
|
|
409
|
-
}
|
|
410
|
-
}, {
|
|
411
|
-
props: ({
|
|
412
|
-
ownerState: t
|
|
413
|
-
}) => t.scrollableY,
|
|
414
|
-
style: {
|
|
415
|
-
overflowY: "auto",
|
|
416
|
-
overflowX: "hidden"
|
|
417
|
-
}
|
|
418
|
-
}]
|
|
419
|
-
}), Uo = D("div", {
|
|
420
|
-
name: "MuiTabs",
|
|
421
|
-
slot: "List",
|
|
422
|
-
overridesResolver: (t, o) => {
|
|
423
|
-
const {
|
|
424
|
-
ownerState: r
|
|
425
|
-
} = t;
|
|
426
|
-
return [o.list, o.flexContainer, r.vertical && o.flexContainerVertical, r.centered && o.centered];
|
|
427
|
-
}
|
|
428
|
-
})({
|
|
429
|
-
display: "flex",
|
|
430
|
-
variants: [{
|
|
431
|
-
props: ({
|
|
432
|
-
ownerState: t
|
|
433
|
-
}) => t.vertical,
|
|
434
|
-
style: {
|
|
435
|
-
flexDirection: "column"
|
|
436
|
-
}
|
|
437
|
-
}, {
|
|
438
|
-
props: ({
|
|
439
|
-
ownerState: t
|
|
440
|
-
}) => t.centered,
|
|
441
|
-
style: {
|
|
442
|
-
justifyContent: "center"
|
|
443
|
-
}
|
|
444
|
-
}]
|
|
445
|
-
}), Ko = D("span", {
|
|
446
|
-
name: "MuiTabs",
|
|
447
|
-
slot: "Indicator"
|
|
448
|
-
})(ve(({
|
|
449
|
-
theme: t
|
|
450
|
-
}) => ({
|
|
451
|
-
position: "absolute",
|
|
452
|
-
height: 2,
|
|
453
|
-
bottom: 0,
|
|
454
|
-
width: "100%",
|
|
455
|
-
transition: t.transitions.create(),
|
|
456
|
-
variants: [{
|
|
457
|
-
props: {
|
|
458
|
-
indicatorColor: "primary"
|
|
459
|
-
},
|
|
460
|
-
style: {
|
|
461
|
-
backgroundColor: (t.vars || t).palette.primary.main
|
|
462
|
-
}
|
|
463
|
-
}, {
|
|
464
|
-
props: {
|
|
465
|
-
indicatorColor: "secondary"
|
|
466
|
-
},
|
|
467
|
-
style: {
|
|
468
|
-
backgroundColor: (t.vars || t).palette.secondary.main
|
|
469
|
-
}
|
|
470
|
-
}, {
|
|
471
|
-
props: ({
|
|
472
|
-
ownerState: o
|
|
473
|
-
}) => o.vertical,
|
|
474
|
-
style: {
|
|
475
|
-
height: "100%",
|
|
476
|
-
width: 2,
|
|
477
|
-
right: 0
|
|
478
|
-
}
|
|
479
|
-
}]
|
|
480
|
-
}))), Xo = D(_e)({
|
|
481
|
-
overflowX: "auto",
|
|
482
|
-
overflowY: "hidden",
|
|
483
|
-
// Hide dimensionless scrollbar on macOS
|
|
484
|
-
scrollbarWidth: "none",
|
|
485
|
-
// Firefox
|
|
486
|
-
"&::-webkit-scrollbar": {
|
|
487
|
-
display: "none"
|
|
488
|
-
// Safari + Chrome
|
|
489
|
-
}
|
|
490
|
-
}), We = {};
|
|
491
|
-
let Le = !1;
|
|
492
|
-
const Ge = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
493
|
-
const a = Se({
|
|
494
|
-
props: o,
|
|
495
|
-
name: "MuiTabs"
|
|
496
|
-
}), i = xo(), d = ze(), {
|
|
497
|
-
"aria-label": p,
|
|
498
|
-
"aria-labelledby": f,
|
|
499
|
-
action: h,
|
|
500
|
-
centered: S = !1,
|
|
501
|
-
children: v,
|
|
502
|
-
className: m,
|
|
503
|
-
component: y = "div",
|
|
504
|
-
allowScrollButtonsMobile: g = !1,
|
|
505
|
-
indicatorColor: W = "primary",
|
|
506
|
-
onChange: E,
|
|
507
|
-
orientation: x = "horizontal",
|
|
508
|
-
ScrollButtonComponent: J,
|
|
509
|
-
// TODO: remove in v7 (deprecated in v6)
|
|
510
|
-
scrollButtons: P = "auto",
|
|
511
|
-
selectionFollowsFocus: de,
|
|
512
|
-
slots: M = {},
|
|
513
|
-
slotProps: A = {},
|
|
514
|
-
TabIndicatorProps: U = {},
|
|
515
|
-
// TODO: remove in v7 (deprecated in v6)
|
|
516
|
-
TabScrollButtonProps: K = {},
|
|
517
|
-
// TODO: remove in v7 (deprecated in v6)
|
|
518
|
-
textColor: Q = "primary",
|
|
519
|
-
value: k,
|
|
520
|
-
variant: O = "standard",
|
|
521
|
-
visibleScrollbar: ue = !1,
|
|
522
|
-
...Je
|
|
523
|
-
} = a, B = O === "scrollable", C = x === "vertical", X = C ? "scrollTop" : "scrollLeft", Z = C ? "top" : "left", ee = C ? "bottom" : "right", pe = C ? "clientHeight" : "clientWidth", Y = C ? "height" : "width", N = {
|
|
524
|
-
...a,
|
|
525
|
-
component: y,
|
|
526
|
-
allowScrollButtonsMobile: g,
|
|
527
|
-
indicatorColor: W,
|
|
528
|
-
orientation: x,
|
|
529
|
-
vertical: C,
|
|
530
|
-
scrollButtons: P,
|
|
531
|
-
textColor: Q,
|
|
532
|
-
variant: O,
|
|
533
|
-
visibleScrollbar: ue,
|
|
534
|
-
fixed: !B,
|
|
535
|
-
hideScrollbar: B && !ue,
|
|
536
|
-
scrollableX: B && !C,
|
|
537
|
-
scrollableY: B && C,
|
|
538
|
-
centered: S && !B,
|
|
539
|
-
scrollButtonsHideMobile: !g
|
|
540
|
-
}, $ = Ao(N), Qe = se({
|
|
541
|
-
elementType: M.StartScrollButtonIcon,
|
|
542
|
-
externalSlotProps: A.startScrollButtonIcon,
|
|
543
|
-
ownerState: N
|
|
544
|
-
}), Ze = se({
|
|
545
|
-
elementType: M.EndScrollButtonIcon,
|
|
546
|
-
externalSlotProps: A.endScrollButtonIcon,
|
|
547
|
-
ownerState: N
|
|
548
|
-
});
|
|
549
|
-
process.env.NODE_ENV !== "production" && S && B && console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');
|
|
550
|
-
const [ge, eo] = s.useState(!1), [L, we] = s.useState(We), [xe, oo] = s.useState(!1), [Be, to] = s.useState(!1), [Ce, no] = s.useState(!1), [Ee, ro] = s.useState({
|
|
551
|
-
overflow: "hidden",
|
|
552
|
-
scrollbarWidth: 0
|
|
553
|
-
}), oe = /* @__PURE__ */ new Map(), R = s.useRef(null), z = s.useRef(null), V = {
|
|
554
|
-
slots: M,
|
|
555
|
-
slotProps: {
|
|
556
|
-
indicator: U,
|
|
557
|
-
scrollButton: K,
|
|
558
|
-
...A
|
|
559
|
-
}
|
|
560
|
-
}, Ie = () => {
|
|
561
|
-
const n = R.current;
|
|
562
|
-
let l;
|
|
563
|
-
if (n) {
|
|
564
|
-
const u = n.getBoundingClientRect();
|
|
565
|
-
l = {
|
|
566
|
-
clientWidth: n.clientWidth,
|
|
567
|
-
scrollLeft: n.scrollLeft,
|
|
568
|
-
scrollTop: n.scrollTop,
|
|
569
|
-
scrollWidth: n.scrollWidth,
|
|
570
|
-
top: u.top,
|
|
571
|
-
bottom: u.bottom,
|
|
572
|
-
left: u.left,
|
|
573
|
-
right: u.right
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
let c;
|
|
577
|
-
if (n && k !== !1) {
|
|
578
|
-
const u = z.current.children;
|
|
579
|
-
if (u.length > 0) {
|
|
580
|
-
const b = u[oe.get(k)];
|
|
581
|
-
process.env.NODE_ENV !== "production" && (b || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${k}".`, oe.keys ? `You can provide one of the following values: ${Array.from(oe.keys()).join(", ")}.` : null].join(`
|
|
582
|
-
`))), c = b ? b.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !Le && c && c.width === 0 && c.height === 0 && // if the whole Tabs component is hidden, don't warn
|
|
583
|
-
l.clientWidth !== 0 && (l = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${k}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
584
|
-
`)), Le = !0);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
return {
|
|
588
|
-
tabsMeta: l,
|
|
589
|
-
tabMeta: c
|
|
590
|
-
};
|
|
591
|
-
}, _ = me(() => {
|
|
592
|
-
const {
|
|
593
|
-
tabsMeta: n,
|
|
594
|
-
tabMeta: l
|
|
595
|
-
} = Ie();
|
|
596
|
-
let c = 0, u;
|
|
597
|
-
C ? (u = "top", l && n && (c = l.top - n.top + n.scrollTop)) : (u = d ? "right" : "left", l && n && (c = (d ? -1 : 1) * (l[u] - n[u] + n.scrollLeft)));
|
|
598
|
-
const b = {
|
|
599
|
-
[u]: c,
|
|
600
|
-
// May be wrong until the font is loaded.
|
|
601
|
-
[Y]: l ? l[Y] : 0
|
|
602
|
-
};
|
|
603
|
-
if (typeof L[u] != "number" || typeof L[Y] != "number")
|
|
604
|
-
we(b);
|
|
605
|
-
else {
|
|
606
|
-
const I = Math.abs(L[u] - b[u]), F = Math.abs(L[Y] - b[Y]);
|
|
607
|
-
(I >= 1 || F >= 1) && we(b);
|
|
608
|
-
}
|
|
609
|
-
}), fe = (n, {
|
|
610
|
-
animation: l = !0
|
|
611
|
-
} = {}) => {
|
|
612
|
-
l ? Ro(X, R.current, n, {
|
|
613
|
-
duration: i.transitions.duration.standard
|
|
614
|
-
}) : R.current[X] = n;
|
|
615
|
-
}, Pe = (n) => {
|
|
616
|
-
let l = R.current[X];
|
|
617
|
-
C ? l += n : l += n * (d ? -1 : 1), fe(l);
|
|
618
|
-
}, Me = () => {
|
|
619
|
-
const n = R.current[pe];
|
|
620
|
-
let l = 0;
|
|
621
|
-
const c = Array.from(z.current.children);
|
|
622
|
-
for (let u = 0; u < c.length; u += 1) {
|
|
623
|
-
const b = c[u];
|
|
624
|
-
if (l + b[pe] > n) {
|
|
625
|
-
u === 0 && (l = n);
|
|
626
|
-
break;
|
|
627
|
-
}
|
|
628
|
-
l += b[pe];
|
|
629
|
-
}
|
|
630
|
-
return l;
|
|
631
|
-
}, lo = () => {
|
|
632
|
-
Pe(-1 * Me());
|
|
633
|
-
}, so = () => {
|
|
634
|
-
Pe(Me());
|
|
635
|
-
}, [ao, {
|
|
636
|
-
onChange: te,
|
|
637
|
-
...io
|
|
638
|
-
}] = H("scrollbar", {
|
|
639
|
-
className: j($.scrollableX, $.hideScrollbar),
|
|
640
|
-
elementType: Xo,
|
|
641
|
-
shouldForwardComponentProp: !0,
|
|
642
|
-
externalForwardedProps: V,
|
|
643
|
-
ownerState: N
|
|
644
|
-
}), co = s.useCallback((n) => {
|
|
645
|
-
te == null || te(n), ro({
|
|
646
|
-
overflow: null,
|
|
647
|
-
scrollbarWidth: n
|
|
648
|
-
});
|
|
649
|
-
}, [te]), [Oe, Ne] = H("scrollButtons", {
|
|
650
|
-
className: j($.scrollButtons, K.className),
|
|
651
|
-
elementType: qe,
|
|
652
|
-
externalForwardedProps: V,
|
|
653
|
-
ownerState: N,
|
|
654
|
-
additionalProps: {
|
|
655
|
-
orientation: x,
|
|
656
|
-
slots: {
|
|
657
|
-
StartScrollButtonIcon: M.startScrollButtonIcon || M.StartScrollButtonIcon,
|
|
658
|
-
EndScrollButtonIcon: M.endScrollButtonIcon || M.EndScrollButtonIcon
|
|
659
|
-
},
|
|
660
|
-
slotProps: {
|
|
661
|
-
startScrollButtonIcon: Qe,
|
|
662
|
-
endScrollButtonIcon: Ze
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
}), uo = () => {
|
|
666
|
-
const n = {};
|
|
667
|
-
n.scrollbarSizeListener = B ? /* @__PURE__ */ T(ao, {
|
|
668
|
-
...io,
|
|
669
|
-
onChange: co
|
|
670
|
-
}) : null;
|
|
671
|
-
const c = B && (P === "auto" && (xe || Be) || P === !0);
|
|
672
|
-
return n.scrollButtonStart = c ? /* @__PURE__ */ T(Oe, {
|
|
673
|
-
direction: d ? "right" : "left",
|
|
674
|
-
onClick: lo,
|
|
675
|
-
disabled: !xe,
|
|
676
|
-
...Ne
|
|
677
|
-
}) : null, n.scrollButtonEnd = c ? /* @__PURE__ */ T(Oe, {
|
|
678
|
-
direction: d ? "left" : "right",
|
|
679
|
-
onClick: so,
|
|
680
|
-
disabled: !Be,
|
|
681
|
-
...Ne
|
|
682
|
-
}) : null, n;
|
|
683
|
-
}, Re = me((n) => {
|
|
684
|
-
const {
|
|
685
|
-
tabsMeta: l,
|
|
686
|
-
tabMeta: c
|
|
687
|
-
} = Ie();
|
|
688
|
-
if (!(!c || !l)) {
|
|
689
|
-
if (c[Z] < l[Z]) {
|
|
690
|
-
const u = l[X] + (c[Z] - l[Z]);
|
|
691
|
-
fe(u, {
|
|
692
|
-
animation: n
|
|
693
|
-
});
|
|
694
|
-
} else if (c[ee] > l[ee]) {
|
|
695
|
-
const u = l[X] + (c[ee] - l[ee]);
|
|
696
|
-
fe(u, {
|
|
697
|
-
animation: n
|
|
698
|
-
});
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
}), ne = me(() => {
|
|
702
|
-
B && P !== !1 && no(!Ce);
|
|
703
|
-
});
|
|
704
|
-
s.useEffect(() => {
|
|
705
|
-
const n = Fe(() => {
|
|
706
|
-
R.current && _();
|
|
707
|
-
});
|
|
708
|
-
let l;
|
|
709
|
-
const c = (I) => {
|
|
710
|
-
I.forEach((F) => {
|
|
711
|
-
F.removedNodes.forEach((q) => {
|
|
712
|
-
l == null || l.unobserve(q);
|
|
713
|
-
}), F.addedNodes.forEach((q) => {
|
|
714
|
-
l == null || l.observe(q);
|
|
715
|
-
});
|
|
716
|
-
}), n(), ne();
|
|
717
|
-
}, u = Ae(R.current);
|
|
718
|
-
u.addEventListener("resize", n);
|
|
719
|
-
let b;
|
|
720
|
-
return typeof ResizeObserver < "u" && (l = new ResizeObserver(n), Array.from(z.current.children).forEach((I) => {
|
|
721
|
-
l.observe(I);
|
|
722
|
-
})), typeof MutationObserver < "u" && (b = new MutationObserver(c), b.observe(z.current, {
|
|
723
|
-
childList: !0
|
|
724
|
-
})), () => {
|
|
725
|
-
n.clear(), u.removeEventListener("resize", n), b == null || b.disconnect(), l == null || l.disconnect();
|
|
726
|
-
};
|
|
727
|
-
}, [_, ne]), s.useEffect(() => {
|
|
728
|
-
const n = Array.from(z.current.children), l = n.length;
|
|
729
|
-
if (typeof IntersectionObserver < "u" && l > 0 && B && P !== !1) {
|
|
730
|
-
const c = n[0], u = n[l - 1], b = {
|
|
731
|
-
root: R.current,
|
|
732
|
-
threshold: 0.99
|
|
733
|
-
}, I = (he) => {
|
|
734
|
-
oo(!he[0].isIntersecting);
|
|
735
|
-
}, F = new IntersectionObserver(I, b);
|
|
736
|
-
F.observe(c);
|
|
737
|
-
const q = (he) => {
|
|
738
|
-
to(!he[0].isIntersecting);
|
|
739
|
-
}, ke = new IntersectionObserver(q, b);
|
|
740
|
-
return ke.observe(u), () => {
|
|
741
|
-
F.disconnect(), ke.disconnect();
|
|
742
|
-
};
|
|
743
|
-
}
|
|
744
|
-
}, [B, P, Ce, v == null ? void 0 : v.length]), s.useEffect(() => {
|
|
745
|
-
eo(!0);
|
|
746
|
-
}, []), s.useEffect(() => {
|
|
747
|
-
_();
|
|
748
|
-
}), s.useEffect(() => {
|
|
749
|
-
Re(We !== L);
|
|
750
|
-
}, [Re, L]), s.useImperativeHandle(h, () => ({
|
|
751
|
-
updateIndicator: _,
|
|
752
|
-
updateScrollButtons: ne
|
|
753
|
-
}), [_, ne]);
|
|
754
|
-
const [po, fo] = H("indicator", {
|
|
755
|
-
className: j($.indicator, U.className),
|
|
756
|
-
elementType: Ko,
|
|
757
|
-
externalForwardedProps: V,
|
|
758
|
-
ownerState: N,
|
|
759
|
-
additionalProps: {
|
|
760
|
-
style: L
|
|
761
|
-
}
|
|
762
|
-
}), je = /* @__PURE__ */ T(po, {
|
|
763
|
-
...fo
|
|
764
|
-
});
|
|
765
|
-
let re = 0;
|
|
766
|
-
const bo = s.Children.map(v, (n) => {
|
|
767
|
-
if (!/* @__PURE__ */ s.isValidElement(n))
|
|
768
|
-
return null;
|
|
769
|
-
process.env.NODE_ENV !== "production" && wo.isFragment(n) && console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
770
|
-
`));
|
|
771
|
-
const l = n.props.value === void 0 ? re : n.props.value;
|
|
772
|
-
oe.set(l, re);
|
|
773
|
-
const c = l === k;
|
|
774
|
-
return re += 1, /* @__PURE__ */ s.cloneElement(n, {
|
|
775
|
-
fullWidth: O === "fullWidth",
|
|
776
|
-
indicator: c && !ge && je,
|
|
777
|
-
selected: c,
|
|
778
|
-
selectionFollowsFocus: de,
|
|
779
|
-
onChange: E,
|
|
780
|
-
textColor: Q,
|
|
781
|
-
value: l,
|
|
782
|
-
...re === 1 && k === !1 && !n.props.tabIndex ? {
|
|
783
|
-
tabIndex: 0
|
|
784
|
-
} : {}
|
|
785
|
-
});
|
|
786
|
-
}), ho = (n) => {
|
|
787
|
-
if (n.altKey || n.shiftKey || n.ctrlKey || n.metaKey)
|
|
788
|
-
return;
|
|
789
|
-
const l = z.current, c = Co(l).activeElement;
|
|
790
|
-
if (c.getAttribute("role") !== "tab")
|
|
791
|
-
return;
|
|
792
|
-
let b = x === "horizontal" ? "ArrowLeft" : "ArrowUp", I = x === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
793
|
-
switch (x === "horizontal" && d && (b = "ArrowRight", I = "ArrowLeft"), n.key) {
|
|
794
|
-
case b:
|
|
795
|
-
n.preventDefault(), le(l, c, De);
|
|
796
|
-
break;
|
|
797
|
-
case I:
|
|
798
|
-
n.preventDefault(), le(l, c, $e);
|
|
799
|
-
break;
|
|
800
|
-
case "Home":
|
|
801
|
-
n.preventDefault(), le(l, null, $e);
|
|
802
|
-
break;
|
|
803
|
-
case "End":
|
|
804
|
-
n.preventDefault(), le(l, null, De);
|
|
805
|
-
break;
|
|
806
|
-
}
|
|
807
|
-
}, be = uo(), [mo, yo] = H("root", {
|
|
808
|
-
ref: r,
|
|
809
|
-
className: j($.root, m),
|
|
810
|
-
elementType: Vo,
|
|
811
|
-
externalForwardedProps: {
|
|
812
|
-
...V,
|
|
813
|
-
...Je,
|
|
814
|
-
component: y
|
|
815
|
-
},
|
|
816
|
-
ownerState: N
|
|
817
|
-
}), [So, vo] = H("scroller", {
|
|
818
|
-
ref: R,
|
|
819
|
-
className: $.scroller,
|
|
820
|
-
elementType: Ho,
|
|
821
|
-
externalForwardedProps: V,
|
|
822
|
-
ownerState: N,
|
|
823
|
-
additionalProps: {
|
|
824
|
-
style: {
|
|
825
|
-
overflow: Ee.overflow,
|
|
826
|
-
[C ? `margin${d ? "Left" : "Right"}` : "marginBottom"]: ue ? void 0 : -Ee.scrollbarWidth
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
}), [To, go] = H("list", {
|
|
830
|
-
ref: z,
|
|
831
|
-
className: j($.list, $.flexContainer),
|
|
832
|
-
elementType: Uo,
|
|
833
|
-
externalForwardedProps: V,
|
|
834
|
-
ownerState: N,
|
|
835
|
-
getSlotProps: (n) => ({
|
|
836
|
-
...n,
|
|
837
|
-
onKeyDown: (l) => {
|
|
838
|
-
var c;
|
|
839
|
-
ho(l), (c = n.onKeyDown) == null || c.call(n, l);
|
|
840
|
-
}
|
|
841
|
-
})
|
|
842
|
-
});
|
|
843
|
-
return /* @__PURE__ */ G(mo, {
|
|
844
|
-
...yo,
|
|
845
|
-
children: [be.scrollButtonStart, be.scrollbarSizeListener, /* @__PURE__ */ G(So, {
|
|
846
|
-
...vo,
|
|
847
|
-
children: [/* @__PURE__ */ T(To, {
|
|
848
|
-
"aria-label": p,
|
|
849
|
-
"aria-labelledby": f,
|
|
850
|
-
"aria-orientation": x === "vertical" ? "vertical" : null,
|
|
851
|
-
role: "tablist",
|
|
852
|
-
...go,
|
|
853
|
-
children: bo
|
|
854
|
-
}), ge && je]
|
|
855
|
-
}), be.scrollButtonEnd]
|
|
856
|
-
});
|
|
857
|
-
});
|
|
858
|
-
process.env.NODE_ENV !== "production" && (Ge.propTypes = {
|
|
859
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
860
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
861
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
862
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
863
|
-
/**
|
|
864
|
-
* Callback fired when the component mounts.
|
|
865
|
-
* This is useful when you want to trigger an action programmatically.
|
|
866
|
-
* It supports two actions: `updateIndicator()` and `updateScrollButtons()`
|
|
867
|
-
*
|
|
868
|
-
* @param {object} actions This object contains all possible actions
|
|
869
|
-
* that can be triggered programmatically.
|
|
870
|
-
*/
|
|
871
|
-
action: Eo,
|
|
872
|
-
/**
|
|
873
|
-
* If `true`, the scroll buttons aren't forced hidden on mobile.
|
|
874
|
-
* By default the scroll buttons are hidden on mobile and takes precedence over `scrollButtons`.
|
|
875
|
-
* @default false
|
|
876
|
-
*/
|
|
877
|
-
allowScrollButtonsMobile: e.bool,
|
|
878
|
-
/**
|
|
879
|
-
* The label for the Tabs as a string.
|
|
880
|
-
*/
|
|
881
|
-
"aria-label": e.string,
|
|
882
|
-
/**
|
|
883
|
-
* An id or list of ids separated by a space that label the Tabs.
|
|
884
|
-
*/
|
|
885
|
-
"aria-labelledby": e.string,
|
|
886
|
-
/**
|
|
887
|
-
* If `true`, the tabs are centered.
|
|
888
|
-
* This prop is intended for large views.
|
|
889
|
-
* @default false
|
|
890
|
-
*/
|
|
891
|
-
centered: e.bool,
|
|
892
|
-
/**
|
|
893
|
-
* The content of the component.
|
|
894
|
-
*/
|
|
895
|
-
children: e.node,
|
|
896
|
-
/**
|
|
897
|
-
* Override or extend the styles applied to the component.
|
|
898
|
-
*/
|
|
899
|
-
classes: e.object,
|
|
900
|
-
/**
|
|
901
|
-
* @ignore
|
|
902
|
-
*/
|
|
903
|
-
className: e.string,
|
|
904
|
-
/**
|
|
905
|
-
* The component used for the root node.
|
|
906
|
-
* Either a string to use a HTML element or a component.
|
|
907
|
-
*/
|
|
908
|
-
component: e.elementType,
|
|
909
|
-
/**
|
|
910
|
-
* Determines the color of the indicator.
|
|
911
|
-
* @default 'primary'
|
|
912
|
-
*/
|
|
913
|
-
indicatorColor: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
|
|
914
|
-
/**
|
|
915
|
-
* Callback fired when the value changes.
|
|
916
|
-
*
|
|
917
|
-
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
918
|
-
* @param {any} value We default to the index of the child (number)
|
|
919
|
-
*/
|
|
920
|
-
onChange: e.func,
|
|
921
|
-
/**
|
|
922
|
-
* The component orientation (layout flow direction).
|
|
923
|
-
* @default 'horizontal'
|
|
924
|
-
*/
|
|
925
|
-
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
926
|
-
/**
|
|
927
|
-
* The component used to render the scroll buttons.
|
|
928
|
-
* @deprecated use the `slots.scrollButtons` 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.
|
|
929
|
-
* @default TabScrollButton
|
|
930
|
-
*/
|
|
931
|
-
ScrollButtonComponent: e.elementType,
|
|
932
|
-
/**
|
|
933
|
-
* Determine behavior of scroll buttons when tabs are set to scroll:
|
|
934
|
-
*
|
|
935
|
-
* - `auto` will only present them when not all the items are visible.
|
|
936
|
-
* - `true` will always present them.
|
|
937
|
-
* - `false` will never present them.
|
|
938
|
-
*
|
|
939
|
-
* By default the scroll buttons are hidden on mobile.
|
|
940
|
-
* This behavior can be disabled with `allowScrollButtonsMobile`.
|
|
941
|
-
* @default 'auto'
|
|
942
|
-
*/
|
|
943
|
-
scrollButtons: e.oneOf(["auto", !1, !0]),
|
|
944
|
-
/**
|
|
945
|
-
* If `true` the selected tab changes on focus. Otherwise it only
|
|
946
|
-
* changes on activation.
|
|
947
|
-
*/
|
|
948
|
-
selectionFollowsFocus: e.bool,
|
|
949
|
-
/**
|
|
950
|
-
* The props used for each slot inside.
|
|
951
|
-
* @default {}
|
|
952
|
-
*/
|
|
953
|
-
slotProps: e.shape({
|
|
954
|
-
endScrollButtonIcon: e.oneOfType([e.func, e.object]),
|
|
955
|
-
indicator: e.oneOfType([e.func, e.object]),
|
|
956
|
-
list: e.oneOfType([e.func, e.object]),
|
|
957
|
-
root: e.oneOfType([e.func, e.object]),
|
|
958
|
-
scrollbar: e.oneOfType([e.func, e.object]),
|
|
959
|
-
scrollButtons: e.oneOfType([e.func, e.object]),
|
|
960
|
-
scroller: e.oneOfType([e.func, e.object]),
|
|
961
|
-
startScrollButtonIcon: e.oneOfType([e.func, e.object])
|
|
962
|
-
}),
|
|
963
|
-
/**
|
|
964
|
-
* The components used for each slot inside.
|
|
965
|
-
* @default {}
|
|
966
|
-
*/
|
|
967
|
-
slots: e.shape({
|
|
968
|
-
endScrollButtonIcon: e.elementType,
|
|
969
|
-
EndScrollButtonIcon: e.elementType,
|
|
970
|
-
indicator: e.elementType,
|
|
971
|
-
list: e.elementType,
|
|
972
|
-
root: e.elementType,
|
|
973
|
-
scrollbar: e.elementType,
|
|
974
|
-
scrollButtons: e.elementType,
|
|
975
|
-
scroller: e.elementType,
|
|
976
|
-
startScrollButtonIcon: e.elementType,
|
|
977
|
-
StartScrollButtonIcon: e.elementType
|
|
978
|
-
}),
|
|
979
|
-
/**
|
|
980
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
981
|
-
*/
|
|
982
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
983
|
-
/**
|
|
984
|
-
* Props applied to the tab indicator element.
|
|
985
|
-
* @deprecated use the `slotProps.indicator` 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.
|
|
986
|
-
* @default {}
|
|
987
|
-
*/
|
|
988
|
-
TabIndicatorProps: e.object,
|
|
989
|
-
/**
|
|
990
|
-
* Props applied to the [`TabScrollButton`](https://mui.com/material-ui/api/tab-scroll-button/) element.
|
|
991
|
-
* @deprecated use the `slotProps.scrollButtons` 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.
|
|
992
|
-
* @default {}
|
|
993
|
-
*/
|
|
994
|
-
TabScrollButtonProps: e.object,
|
|
995
|
-
/**
|
|
996
|
-
* Determines the color of the `Tab`.
|
|
997
|
-
* @default 'primary'
|
|
998
|
-
*/
|
|
999
|
-
textColor: e.oneOf(["inherit", "primary", "secondary"]),
|
|
1000
|
-
/**
|
|
1001
|
-
* The value of the currently selected `Tab`.
|
|
1002
|
-
* If you don't want any selected `Tab`, you can set this prop to `false`.
|
|
1003
|
-
*/
|
|
1004
|
-
value: e.any,
|
|
1005
|
-
/**
|
|
1006
|
-
* Determines additional display behavior of the tabs:
|
|
1007
|
-
*
|
|
1008
|
-
* - `scrollable` will invoke scrolling properties and allow for horizontally
|
|
1009
|
-
* scrolling (or swiping) of the tab bar.
|
|
1010
|
-
* - `fullWidth` will make the tabs grow to use all the available space,
|
|
1011
|
-
* which should be used for small views, like on mobile.
|
|
1012
|
-
* - `standard` will render the default state.
|
|
1013
|
-
* @default 'standard'
|
|
1014
|
-
*/
|
|
1015
|
-
variant: e.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
1016
|
-
/**
|
|
1017
|
-
* If `true`, the scrollbar is visible. It can be useful when displaying
|
|
1018
|
-
* a long vertical list of tabs.
|
|
1019
|
-
* @default false
|
|
1020
|
-
*/
|
|
1021
|
-
visibleScrollbar: e.bool
|
|
1022
|
-
});
|
|
1023
|
-
const Yo = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
1024
|
-
const {
|
|
1025
|
-
children: a,
|
|
1026
|
-
...i
|
|
1027
|
-
} = o, d = Ke();
|
|
1028
|
-
if (d === null)
|
|
1029
|
-
throw new TypeError("No TabContext provided");
|
|
1030
|
-
const p = s.Children.map(a, (f) => /* @__PURE__ */ s.isValidElement(f) ? /* @__PURE__ */ s.cloneElement(f, {
|
|
1031
|
-
// SOMEDAY: `Tabs` will set those themselves
|
|
1032
|
-
"aria-controls": Xe(d, f.props.value),
|
|
1033
|
-
id: Ye(d, f.props.value)
|
|
1034
|
-
}) : null);
|
|
1035
|
-
return /* @__PURE__ */ T(Ge, {
|
|
1036
|
-
...i,
|
|
1037
|
-
ref: r,
|
|
1038
|
-
value: d.value,
|
|
1039
|
-
children: p
|
|
1040
|
-
});
|
|
1041
|
-
});
|
|
1042
|
-
process.env.NODE_ENV !== "production" && (Yo.propTypes = {
|
|
1043
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1044
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1045
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1046
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1047
|
-
/**
|
|
1048
|
-
* A list of `<Tab />` elements.
|
|
1049
|
-
*/
|
|
1050
|
-
children: e.node
|
|
1051
|
-
});
|
|
1052
|
-
function _o(t) {
|
|
1053
|
-
return ie("MuiTabPanel", t);
|
|
1054
|
-
}
|
|
1055
|
-
const gt = ae("MuiTabPanel", ["root", "hidden"]), qo = (t) => {
|
|
1056
|
-
const {
|
|
1057
|
-
classes: o,
|
|
1058
|
-
hidden: r
|
|
1059
|
-
} = t;
|
|
1060
|
-
return ce({
|
|
1061
|
-
root: ["root", r && "hidden"]
|
|
1062
|
-
}, _o, o);
|
|
1063
|
-
}, Go = D("div", {
|
|
1064
|
-
name: "MuiTabPanel",
|
|
1065
|
-
slot: "Root"
|
|
1066
|
-
})(({
|
|
1067
|
-
theme: t
|
|
1068
|
-
}) => ({
|
|
1069
|
-
padding: t.spacing(3)
|
|
1070
|
-
})), Jo = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
1071
|
-
const a = Io({
|
|
1072
|
-
props: o,
|
|
1073
|
-
name: "MuiTabPanel"
|
|
1074
|
-
}), {
|
|
1075
|
-
children: i,
|
|
1076
|
-
className: d,
|
|
1077
|
-
value: p,
|
|
1078
|
-
keepMounted: f = !1,
|
|
1079
|
-
...h
|
|
1080
|
-
} = a, S = {
|
|
1081
|
-
...a
|
|
1082
|
-
}, v = qo(S), m = Ke();
|
|
1083
|
-
if (m === null)
|
|
1084
|
-
throw new TypeError("No TabContext provided");
|
|
1085
|
-
const y = Xe(m, p), g = Ye(m, p);
|
|
1086
|
-
return /* @__PURE__ */ T(Go, {
|
|
1087
|
-
"aria-labelledby": g,
|
|
1088
|
-
className: j(v.root, d),
|
|
1089
|
-
hidden: p !== m.value,
|
|
1090
|
-
id: y,
|
|
1091
|
-
ref: r,
|
|
1092
|
-
role: "tabpanel",
|
|
1093
|
-
ownerState: S,
|
|
1094
|
-
...h,
|
|
1095
|
-
children: (f || p === m.value) && i
|
|
1096
|
-
});
|
|
1097
|
-
});
|
|
1098
|
-
process.env.NODE_ENV !== "production" && (Jo.propTypes = {
|
|
1099
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1100
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1101
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1102
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1103
|
-
/**
|
|
1104
|
-
* The content of the component.
|
|
1105
|
-
*/
|
|
1106
|
-
children: e.node,
|
|
1107
|
-
/**
|
|
1108
|
-
* Override or extend the styles applied to the component.
|
|
1109
|
-
*/
|
|
1110
|
-
classes: e.object,
|
|
1111
|
-
/**
|
|
1112
|
-
* @ignore
|
|
1113
|
-
*/
|
|
1114
|
-
className: e.string,
|
|
1115
|
-
/**
|
|
1116
|
-
* Always keep the children in the DOM.
|
|
1117
|
-
* @default false
|
|
1118
|
-
*/
|
|
1119
|
-
keepMounted: e.bool,
|
|
1120
|
-
/**
|
|
1121
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1122
|
-
*/
|
|
1123
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1124
|
-
/**
|
|
1125
|
-
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
1126
|
-
* no `value` was passed to `Tab`.
|
|
1127
|
-
*/
|
|
1128
|
-
value: e.oneOfType([e.number, e.string]).isRequired
|
|
1129
|
-
});
|
|
1130
|
-
function Qo(t) {
|
|
1131
|
-
return ie("MuiTab", t);
|
|
1132
|
-
}
|
|
1133
|
-
const w = ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrimary", "textColorSecondary", "selected", "disabled", "fullWidth", "wrapped", "iconWrapper", "icon"]), Zo = (t) => {
|
|
1134
|
-
const {
|
|
1135
|
-
classes: o,
|
|
1136
|
-
textColor: r,
|
|
1137
|
-
fullWidth: a,
|
|
1138
|
-
wrapped: i,
|
|
1139
|
-
icon: d,
|
|
1140
|
-
label: p,
|
|
1141
|
-
selected: f,
|
|
1142
|
-
disabled: h
|
|
1143
|
-
} = t, S = {
|
|
1144
|
-
root: ["root", d && p && "labelIcon", `textColor${Ue(r)}`, a && "fullWidth", i && "wrapped", f && "selected", h && "disabled"],
|
|
1145
|
-
icon: ["iconWrapper", "icon"]
|
|
1146
|
-
};
|
|
1147
|
-
return ce(S, Qo, o);
|
|
1148
|
-
}, et = D(He, {
|
|
1149
|
-
name: "MuiTab",
|
|
1150
|
-
slot: "Root",
|
|
1151
|
-
overridesResolver: (t, o) => {
|
|
1152
|
-
const {
|
|
1153
|
-
ownerState: r
|
|
1154
|
-
} = t;
|
|
1155
|
-
return [o.root, r.label && r.icon && o.labelIcon, o[`textColor${Ue(r.textColor)}`], r.fullWidth && o.fullWidth, r.wrapped && o.wrapped, {
|
|
1156
|
-
[`& .${w.iconWrapper}`]: o.iconWrapper
|
|
1157
|
-
}, {
|
|
1158
|
-
[`& .${w.icon}`]: o.icon
|
|
1159
|
-
}];
|
|
1160
|
-
}
|
|
1161
|
-
})(ve(({
|
|
1162
|
-
theme: t
|
|
1163
|
-
}) => ({
|
|
1164
|
-
...t.typography.button,
|
|
1165
|
-
maxWidth: 360,
|
|
1166
|
-
minWidth: 90,
|
|
1167
|
-
position: "relative",
|
|
1168
|
-
minHeight: 48,
|
|
1169
|
-
flexShrink: 0,
|
|
1170
|
-
padding: "12px 16px",
|
|
1171
|
-
overflow: "hidden",
|
|
1172
|
-
whiteSpace: "normal",
|
|
1173
|
-
textAlign: "center",
|
|
1174
|
-
lineHeight: 1.25,
|
|
1175
|
-
variants: [{
|
|
1176
|
-
props: ({
|
|
1177
|
-
ownerState: o
|
|
1178
|
-
}) => o.label && (o.iconPosition === "top" || o.iconPosition === "bottom"),
|
|
1179
|
-
style: {
|
|
1180
|
-
flexDirection: "column"
|
|
1181
|
-
}
|
|
1182
|
-
}, {
|
|
1183
|
-
props: ({
|
|
1184
|
-
ownerState: o
|
|
1185
|
-
}) => o.label && o.iconPosition !== "top" && o.iconPosition !== "bottom",
|
|
1186
|
-
style: {
|
|
1187
|
-
flexDirection: "row"
|
|
1188
|
-
}
|
|
1189
|
-
}, {
|
|
1190
|
-
props: ({
|
|
1191
|
-
ownerState: o
|
|
1192
|
-
}) => o.icon && o.label,
|
|
1193
|
-
style: {
|
|
1194
|
-
minHeight: 72,
|
|
1195
|
-
paddingTop: 9,
|
|
1196
|
-
paddingBottom: 9
|
|
1197
|
-
}
|
|
1198
|
-
}, {
|
|
1199
|
-
props: ({
|
|
1200
|
-
ownerState: o,
|
|
1201
|
-
iconPosition: r
|
|
1202
|
-
}) => o.icon && o.label && r === "top",
|
|
1203
|
-
style: {
|
|
1204
|
-
[`& > .${w.icon}`]: {
|
|
1205
|
-
marginBottom: 6
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
}, {
|
|
1209
|
-
props: ({
|
|
1210
|
-
ownerState: o,
|
|
1211
|
-
iconPosition: r
|
|
1212
|
-
}) => o.icon && o.label && r === "bottom",
|
|
1213
|
-
style: {
|
|
1214
|
-
[`& > .${w.icon}`]: {
|
|
1215
|
-
marginTop: 6
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
}, {
|
|
1219
|
-
props: ({
|
|
1220
|
-
ownerState: o,
|
|
1221
|
-
iconPosition: r
|
|
1222
|
-
}) => o.icon && o.label && r === "start",
|
|
1223
|
-
style: {
|
|
1224
|
-
[`& > .${w.icon}`]: {
|
|
1225
|
-
marginRight: t.spacing(1)
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
}, {
|
|
1229
|
-
props: ({
|
|
1230
|
-
ownerState: o,
|
|
1231
|
-
iconPosition: r
|
|
1232
|
-
}) => o.icon && o.label && r === "end",
|
|
1233
|
-
style: {
|
|
1234
|
-
[`& > .${w.icon}`]: {
|
|
1235
|
-
marginLeft: t.spacing(1)
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
}, {
|
|
1239
|
-
props: {
|
|
1240
|
-
textColor: "inherit"
|
|
1241
|
-
},
|
|
1242
|
-
style: {
|
|
1243
|
-
color: "inherit",
|
|
1244
|
-
opacity: 0.6,
|
|
1245
|
-
// same opacity as theme.palette.text.secondary
|
|
1246
|
-
[`&.${w.selected}`]: {
|
|
1247
|
-
opacity: 1
|
|
1248
|
-
},
|
|
1249
|
-
[`&.${w.disabled}`]: {
|
|
1250
|
-
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
}, {
|
|
1254
|
-
props: {
|
|
1255
|
-
textColor: "primary"
|
|
1256
|
-
},
|
|
1257
|
-
style: {
|
|
1258
|
-
color: (t.vars || t).palette.text.secondary,
|
|
1259
|
-
[`&.${w.selected}`]: {
|
|
1260
|
-
color: (t.vars || t).palette.primary.main
|
|
1261
|
-
},
|
|
1262
|
-
[`&.${w.disabled}`]: {
|
|
1263
|
-
color: (t.vars || t).palette.text.disabled
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
}, {
|
|
1267
|
-
props: {
|
|
1268
|
-
textColor: "secondary"
|
|
1269
|
-
},
|
|
1270
|
-
style: {
|
|
1271
|
-
color: (t.vars || t).palette.text.secondary,
|
|
1272
|
-
[`&.${w.selected}`]: {
|
|
1273
|
-
color: (t.vars || t).palette.secondary.main
|
|
1274
|
-
},
|
|
1275
|
-
[`&.${w.disabled}`]: {
|
|
1276
|
-
color: (t.vars || t).palette.text.disabled
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
}, {
|
|
1280
|
-
props: ({
|
|
1281
|
-
ownerState: o
|
|
1282
|
-
}) => o.fullWidth,
|
|
1283
|
-
style: {
|
|
1284
|
-
flexShrink: 1,
|
|
1285
|
-
flexGrow: 1,
|
|
1286
|
-
flexBasis: 0,
|
|
1287
|
-
maxWidth: "none"
|
|
1288
|
-
}
|
|
1289
|
-
}, {
|
|
1290
|
-
props: ({
|
|
1291
|
-
ownerState: o
|
|
1292
|
-
}) => o.wrapped,
|
|
1293
|
-
style: {
|
|
1294
|
-
fontSize: t.typography.pxToRem(12)
|
|
1295
|
-
}
|
|
1296
|
-
}]
|
|
1297
|
-
}))), ot = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
1298
|
-
const a = Se({
|
|
1299
|
-
props: o,
|
|
1300
|
-
name: "MuiTab"
|
|
1301
|
-
}), {
|
|
1302
|
-
className: i,
|
|
1303
|
-
disabled: d = !1,
|
|
1304
|
-
disableFocusRipple: p = !1,
|
|
1305
|
-
// eslint-disable-next-line react/prop-types
|
|
1306
|
-
fullWidth: f,
|
|
1307
|
-
icon: h,
|
|
1308
|
-
iconPosition: S = "top",
|
|
1309
|
-
// eslint-disable-next-line react/prop-types
|
|
1310
|
-
indicator: v,
|
|
1311
|
-
label: m,
|
|
1312
|
-
onChange: y,
|
|
1313
|
-
onClick: g,
|
|
1314
|
-
onFocus: W,
|
|
1315
|
-
// eslint-disable-next-line react/prop-types
|
|
1316
|
-
selected: E,
|
|
1317
|
-
// eslint-disable-next-line react/prop-types
|
|
1318
|
-
selectionFollowsFocus: x,
|
|
1319
|
-
// eslint-disable-next-line react/prop-types
|
|
1320
|
-
textColor: J = "inherit",
|
|
1321
|
-
value: P,
|
|
1322
|
-
wrapped: de = !1,
|
|
1323
|
-
...M
|
|
1324
|
-
} = a, A = {
|
|
1325
|
-
...a,
|
|
1326
|
-
disabled: d,
|
|
1327
|
-
disableFocusRipple: p,
|
|
1328
|
-
selected: E,
|
|
1329
|
-
icon: !!h,
|
|
1330
|
-
iconPosition: S,
|
|
1331
|
-
label: !!m,
|
|
1332
|
-
fullWidth: f,
|
|
1333
|
-
textColor: J,
|
|
1334
|
-
wrapped: de
|
|
1335
|
-
}, U = Zo(A), K = h && m && /* @__PURE__ */ s.isValidElement(h) ? /* @__PURE__ */ s.cloneElement(h, {
|
|
1336
|
-
className: j(U.icon, h.props.className)
|
|
1337
|
-
}) : h, Q = (O) => {
|
|
1338
|
-
!E && y && y(O, P), g && g(O);
|
|
1339
|
-
}, k = (O) => {
|
|
1340
|
-
x && !E && y && y(O, P), W && W(O);
|
|
1341
|
-
};
|
|
1342
|
-
return /* @__PURE__ */ G(et, {
|
|
1343
|
-
focusRipple: !p,
|
|
1344
|
-
className: j(U.root, i),
|
|
1345
|
-
ref: r,
|
|
1346
|
-
role: "tab",
|
|
1347
|
-
"aria-selected": E,
|
|
1348
|
-
disabled: d,
|
|
1349
|
-
onClick: Q,
|
|
1350
|
-
onFocus: k,
|
|
1351
|
-
ownerState: A,
|
|
1352
|
-
tabIndex: E ? 0 : -1,
|
|
1353
|
-
...M,
|
|
1354
|
-
children: [S === "top" || S === "start" ? /* @__PURE__ */ G(s.Fragment, {
|
|
1355
|
-
children: [K, m]
|
|
1356
|
-
}) : /* @__PURE__ */ G(s.Fragment, {
|
|
1357
|
-
children: [m, K]
|
|
1358
|
-
}), v]
|
|
1359
|
-
});
|
|
1360
|
-
});
|
|
1361
|
-
process.env.NODE_ENV !== "production" && (ot.propTypes = {
|
|
1362
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1363
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1364
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
1365
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
1366
|
-
/**
|
|
1367
|
-
* This prop isn't supported.
|
|
1368
|
-
* Use the `component` prop if you need to change the children structure.
|
|
1369
|
-
*/
|
|
1370
|
-
children: Po,
|
|
1371
|
-
/**
|
|
1372
|
-
* Override or extend the styles applied to the component.
|
|
1373
|
-
*/
|
|
1374
|
-
classes: e.object,
|
|
1375
|
-
/**
|
|
1376
|
-
* @ignore
|
|
1377
|
-
*/
|
|
1378
|
-
className: e.string,
|
|
1379
|
-
/**
|
|
1380
|
-
* If `true`, the component is disabled.
|
|
1381
|
-
* @default false
|
|
1382
|
-
*/
|
|
1383
|
-
disabled: e.bool,
|
|
1384
|
-
/**
|
|
1385
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
1386
|
-
* @default false
|
|
1387
|
-
*/
|
|
1388
|
-
disableFocusRipple: e.bool,
|
|
1389
|
-
/**
|
|
1390
|
-
* If `true`, the ripple effect is disabled.
|
|
1391
|
-
*
|
|
1392
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
1393
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
1394
|
-
* @default false
|
|
1395
|
-
*/
|
|
1396
|
-
disableRipple: e.bool,
|
|
1397
|
-
/**
|
|
1398
|
-
* The icon to display.
|
|
1399
|
-
*/
|
|
1400
|
-
icon: e.oneOfType([e.element, e.string]),
|
|
1401
|
-
/**
|
|
1402
|
-
* The position of the icon relative to the label.
|
|
1403
|
-
* @default 'top'
|
|
1404
|
-
*/
|
|
1405
|
-
iconPosition: e.oneOf(["bottom", "end", "start", "top"]),
|
|
1406
|
-
/**
|
|
1407
|
-
* The label element.
|
|
1408
|
-
*/
|
|
1409
|
-
label: e.node,
|
|
1410
|
-
/**
|
|
1411
|
-
* @ignore
|
|
1412
|
-
*/
|
|
1413
|
-
onChange: e.func,
|
|
1414
|
-
/**
|
|
1415
|
-
* @ignore
|
|
1416
|
-
*/
|
|
1417
|
-
onClick: e.func,
|
|
1418
|
-
/**
|
|
1419
|
-
* @ignore
|
|
1420
|
-
*/
|
|
1421
|
-
onFocus: e.func,
|
|
1422
|
-
/**
|
|
1423
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1424
|
-
*/
|
|
1425
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
1426
|
-
/**
|
|
1427
|
-
* You can provide your own value. Otherwise, we fallback to the child position index.
|
|
1428
|
-
*/
|
|
1429
|
-
value: e.any,
|
|
1430
|
-
/**
|
|
1431
|
-
* Tab labels appear in a single row.
|
|
1432
|
-
* They can use a second line if needed.
|
|
1433
|
-
* @default false
|
|
1434
|
-
*/
|
|
1435
|
-
wrapped: e.bool
|
|
1436
|
-
});
|
|
1437
|
-
export {
|
|
1438
|
-
$o as K,
|
|
1439
|
-
Oo as T,
|
|
1440
|
-
Yo as a,
|
|
1441
|
-
Jo as b,
|
|
1442
|
-
ot as c,
|
|
1443
|
-
Ge as d,
|
|
1444
|
-
Ye as e,
|
|
1445
|
-
_o as f,
|
|
1446
|
-
Xe as g,
|
|
1447
|
-
w as h,
|
|
1448
|
-
Qo as i,
|
|
1449
|
-
ye as j,
|
|
1450
|
-
Fo as k,
|
|
1451
|
-
ko as l,
|
|
1452
|
-
gt as t,
|
|
1453
|
-
Ke as u
|
|
1454
|
-
};
|