@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
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
import * as f from "react";
|
|
2
|
-
import { P as e } from "./index-B9vkf41S.js";
|
|
3
|
-
import { F as T, G as x, H as P } from "./generateUtilityClasses-B_xKAflz.js";
|
|
4
|
-
import { m as B } from "./memoTheme-C-PaH-Cy.js";
|
|
5
|
-
import { c as z } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
6
|
-
import { jsxs as w, jsx as u } from "react/jsx-runtime";
|
|
7
|
-
import { u as j, s as C, c as $ } from "./DefaultPropsProvider-BrmlvPWg.js";
|
|
8
|
-
import { u as k } from "./useId-CK6Kn3Tn.js";
|
|
9
|
-
import { c as t } from "./capitalize-BHEX83JQ.js";
|
|
10
|
-
import { B as M } from "./ButtonBase-C2jRC_V7.js";
|
|
11
|
-
import { C as N } from "./CircularProgress-CLq0Rl-1.js";
|
|
12
|
-
import { c as E } from "./chainPropTypes-D9lkm76m.js";
|
|
13
|
-
function L(o) {
|
|
14
|
-
return x("MuiIconButton", o);
|
|
15
|
-
}
|
|
16
|
-
const R = T("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), U = (o) => {
|
|
17
|
-
const {
|
|
18
|
-
classes: r,
|
|
19
|
-
disabled: a,
|
|
20
|
-
color: n,
|
|
21
|
-
edge: s,
|
|
22
|
-
size: l,
|
|
23
|
-
loading: c
|
|
24
|
-
} = o, d = {
|
|
25
|
-
root: ["root", c && "loading", a && "disabled", n !== "default" && `color${t(n)}`, s && `edge${t(s)}`, `size${t(l)}`],
|
|
26
|
-
loadingIndicator: ["loadingIndicator"],
|
|
27
|
-
loadingWrapper: ["loadingWrapper"]
|
|
28
|
-
};
|
|
29
|
-
return $(d, L, r);
|
|
30
|
-
}, W = C(M, {
|
|
31
|
-
name: "MuiIconButton",
|
|
32
|
-
slot: "Root",
|
|
33
|
-
overridesResolver: (o, r) => {
|
|
34
|
-
const {
|
|
35
|
-
ownerState: a
|
|
36
|
-
} = o;
|
|
37
|
-
return [r.root, a.loading && r.loading, a.color !== "default" && r[`color${t(a.color)}`], a.edge && r[`edge${t(a.edge)}`], r[`size${t(a.size)}`]];
|
|
38
|
-
}
|
|
39
|
-
})(B(({
|
|
40
|
-
theme: o
|
|
41
|
-
}) => ({
|
|
42
|
-
textAlign: "center",
|
|
43
|
-
flex: "0 0 auto",
|
|
44
|
-
fontSize: o.typography.pxToRem(24),
|
|
45
|
-
padding: 8,
|
|
46
|
-
borderRadius: "50%",
|
|
47
|
-
color: (o.vars || o).palette.action.active,
|
|
48
|
-
transition: o.transitions.create("background-color", {
|
|
49
|
-
duration: o.transitions.duration.shortest
|
|
50
|
-
}),
|
|
51
|
-
variants: [{
|
|
52
|
-
props: (r) => !r.disableRipple,
|
|
53
|
-
style: {
|
|
54
|
-
"--IconButton-hoverBg": o.alpha((o.vars || o).palette.action.active, (o.vars || o).palette.action.hoverOpacity),
|
|
55
|
-
"&:hover": {
|
|
56
|
-
backgroundColor: "var(--IconButton-hoverBg)",
|
|
57
|
-
// Reset on touch devices, it doesn't add specificity
|
|
58
|
-
"@media (hover: none)": {
|
|
59
|
-
backgroundColor: "transparent"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}, {
|
|
64
|
-
props: {
|
|
65
|
-
edge: "start"
|
|
66
|
-
},
|
|
67
|
-
style: {
|
|
68
|
-
marginLeft: -12
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
71
|
-
props: {
|
|
72
|
-
edge: "start",
|
|
73
|
-
size: "small"
|
|
74
|
-
},
|
|
75
|
-
style: {
|
|
76
|
-
marginLeft: -3
|
|
77
|
-
}
|
|
78
|
-
}, {
|
|
79
|
-
props: {
|
|
80
|
-
edge: "end"
|
|
81
|
-
},
|
|
82
|
-
style: {
|
|
83
|
-
marginRight: -12
|
|
84
|
-
}
|
|
85
|
-
}, {
|
|
86
|
-
props: {
|
|
87
|
-
edge: "end",
|
|
88
|
-
size: "small"
|
|
89
|
-
},
|
|
90
|
-
style: {
|
|
91
|
-
marginRight: -3
|
|
92
|
-
}
|
|
93
|
-
}]
|
|
94
|
-
})), B(({
|
|
95
|
-
theme: o
|
|
96
|
-
}) => ({
|
|
97
|
-
variants: [{
|
|
98
|
-
props: {
|
|
99
|
-
color: "inherit"
|
|
100
|
-
},
|
|
101
|
-
style: {
|
|
102
|
-
color: "inherit"
|
|
103
|
-
}
|
|
104
|
-
}, ...Object.entries(o.palette).filter(z()).map(([r]) => ({
|
|
105
|
-
props: {
|
|
106
|
-
color: r
|
|
107
|
-
},
|
|
108
|
-
style: {
|
|
109
|
-
color: (o.vars || o).palette[r].main
|
|
110
|
-
}
|
|
111
|
-
})), ...Object.entries(o.palette).filter(z()).map(([r]) => ({
|
|
112
|
-
props: {
|
|
113
|
-
color: r
|
|
114
|
-
},
|
|
115
|
-
style: {
|
|
116
|
-
"--IconButton-hoverBg": o.alpha((o.vars || o).palette[r].main, (o.vars || o).palette.action.hoverOpacity)
|
|
117
|
-
}
|
|
118
|
-
})), {
|
|
119
|
-
props: {
|
|
120
|
-
size: "small"
|
|
121
|
-
},
|
|
122
|
-
style: {
|
|
123
|
-
padding: 5,
|
|
124
|
-
fontSize: o.typography.pxToRem(18)
|
|
125
|
-
}
|
|
126
|
-
}, {
|
|
127
|
-
props: {
|
|
128
|
-
size: "large"
|
|
129
|
-
},
|
|
130
|
-
style: {
|
|
131
|
-
padding: 12,
|
|
132
|
-
fontSize: o.typography.pxToRem(28)
|
|
133
|
-
}
|
|
134
|
-
}],
|
|
135
|
-
[`&.${R.disabled}`]: {
|
|
136
|
-
backgroundColor: "transparent",
|
|
137
|
-
color: (o.vars || o).palette.action.disabled
|
|
138
|
-
},
|
|
139
|
-
[`&.${R.loading}`]: {
|
|
140
|
-
color: "transparent"
|
|
141
|
-
}
|
|
142
|
-
}))), F = C("span", {
|
|
143
|
-
name: "MuiIconButton",
|
|
144
|
-
slot: "LoadingIndicator"
|
|
145
|
-
})(({
|
|
146
|
-
theme: o
|
|
147
|
-
}) => ({
|
|
148
|
-
display: "none",
|
|
149
|
-
position: "absolute",
|
|
150
|
-
visibility: "visible",
|
|
151
|
-
top: "50%",
|
|
152
|
-
left: "50%",
|
|
153
|
-
transform: "translate(-50%, -50%)",
|
|
154
|
-
color: (o.vars || o).palette.action.disabled,
|
|
155
|
-
variants: [{
|
|
156
|
-
props: {
|
|
157
|
-
loading: !0
|
|
158
|
-
},
|
|
159
|
-
style: {
|
|
160
|
-
display: "flex"
|
|
161
|
-
}
|
|
162
|
-
}]
|
|
163
|
-
})), V = /* @__PURE__ */ f.forwardRef(function(r, a) {
|
|
164
|
-
const n = j({
|
|
165
|
-
props: r,
|
|
166
|
-
name: "MuiIconButton"
|
|
167
|
-
}), {
|
|
168
|
-
edge: s = !1,
|
|
169
|
-
children: l,
|
|
170
|
-
className: c,
|
|
171
|
-
color: d = "default",
|
|
172
|
-
disabled: m = !1,
|
|
173
|
-
disableFocusRipple: y = !1,
|
|
174
|
-
size: h = "medium",
|
|
175
|
-
id: b,
|
|
176
|
-
loading: i = null,
|
|
177
|
-
loadingIndicator: O,
|
|
178
|
-
...S
|
|
179
|
-
} = n, v = k(b), I = O ?? /* @__PURE__ */ u(N, {
|
|
180
|
-
"aria-labelledby": v,
|
|
181
|
-
color: "inherit",
|
|
182
|
-
size: 16
|
|
183
|
-
}), p = {
|
|
184
|
-
...n,
|
|
185
|
-
edge: s,
|
|
186
|
-
color: d,
|
|
187
|
-
disabled: m,
|
|
188
|
-
disableFocusRipple: y,
|
|
189
|
-
loading: i,
|
|
190
|
-
loadingIndicator: I,
|
|
191
|
-
size: h
|
|
192
|
-
}, g = U(p);
|
|
193
|
-
return /* @__PURE__ */ w(W, {
|
|
194
|
-
id: i ? v : b,
|
|
195
|
-
className: P(g.root, c),
|
|
196
|
-
centerRipple: !0,
|
|
197
|
-
focusRipple: !y,
|
|
198
|
-
disabled: m || i,
|
|
199
|
-
ref: a,
|
|
200
|
-
...S,
|
|
201
|
-
ownerState: p,
|
|
202
|
-
children: [typeof i == "boolean" && // use plain HTML span to minimize the runtime overhead
|
|
203
|
-
/* @__PURE__ */ u("span", {
|
|
204
|
-
className: g.loadingWrapper,
|
|
205
|
-
style: {
|
|
206
|
-
display: "contents"
|
|
207
|
-
},
|
|
208
|
-
children: /* @__PURE__ */ u(F, {
|
|
209
|
-
className: g.loadingIndicator,
|
|
210
|
-
ownerState: p,
|
|
211
|
-
children: i && I
|
|
212
|
-
})
|
|
213
|
-
}), l]
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
217
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
218
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
219
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
220
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
221
|
-
/**
|
|
222
|
-
* The icon to display.
|
|
223
|
-
*/
|
|
224
|
-
children: E(e.node, (o) => f.Children.toArray(o.children).some((a) => /* @__PURE__ */ f.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
225
|
-
`)) : null),
|
|
226
|
-
/**
|
|
227
|
-
* Override or extend the styles applied to the component.
|
|
228
|
-
*/
|
|
229
|
-
classes: e.object,
|
|
230
|
-
/**
|
|
231
|
-
* @ignore
|
|
232
|
-
*/
|
|
233
|
-
className: e.string,
|
|
234
|
-
/**
|
|
235
|
-
* The color of the component.
|
|
236
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
237
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
238
|
-
* @default 'default'
|
|
239
|
-
*/
|
|
240
|
-
color: e.oneOfType([e.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
241
|
-
/**
|
|
242
|
-
* If `true`, the component is disabled.
|
|
243
|
-
* @default false
|
|
244
|
-
*/
|
|
245
|
-
disabled: e.bool,
|
|
246
|
-
/**
|
|
247
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
248
|
-
* @default false
|
|
249
|
-
*/
|
|
250
|
-
disableFocusRipple: e.bool,
|
|
251
|
-
/**
|
|
252
|
-
* If `true`, the ripple effect is disabled.
|
|
253
|
-
*
|
|
254
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
255
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
256
|
-
* @default false
|
|
257
|
-
*/
|
|
258
|
-
disableRipple: e.bool,
|
|
259
|
-
/**
|
|
260
|
-
* If given, uses a negative margin to counteract the padding on one
|
|
261
|
-
* side (this is often helpful for aligning the left or right
|
|
262
|
-
* side of the icon with content above or below, without ruining the border
|
|
263
|
-
* size and shape).
|
|
264
|
-
* @default false
|
|
265
|
-
*/
|
|
266
|
-
edge: e.oneOf(["end", "start", !1]),
|
|
267
|
-
/**
|
|
268
|
-
* @ignore
|
|
269
|
-
*/
|
|
270
|
-
id: e.string,
|
|
271
|
-
/**
|
|
272
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
|
273
|
-
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
|
274
|
-
* @default null
|
|
275
|
-
*/
|
|
276
|
-
loading: e.bool,
|
|
277
|
-
/**
|
|
278
|
-
* Element placed before the children if the button is in loading state.
|
|
279
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
280
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
281
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
282
|
-
*/
|
|
283
|
-
loadingIndicator: e.node,
|
|
284
|
-
/**
|
|
285
|
-
* The size of the component.
|
|
286
|
-
* `small` is equivalent to the dense button styling.
|
|
287
|
-
* @default 'medium'
|
|
288
|
-
*/
|
|
289
|
-
size: e.oneOfType([e.oneOf(["small", "medium", "large"]), e.string]),
|
|
290
|
-
/**
|
|
291
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
292
|
-
*/
|
|
293
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
294
|
-
});
|
|
295
|
-
export {
|
|
296
|
-
V as I,
|
|
297
|
-
L as g,
|
|
298
|
-
R as i
|
|
299
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const I=require("react"),e=require("./index-kjfz41UI.cjs"),y=require("./generateUtilityClasses-CENS22bI.cjs"),T=require("./useFormControl-haP0iPhl.cjs"),O=require("./memoTheme-Bi1UNdyO.cjs"),a=require("react/jsx-runtime"),v=require("./DefaultPropsProvider-C1g4BXET.cjs"),A=require("./Typography-DHjq4GzQ.cjs"),m=require("./capitalize-3OjkeP9i.cjs");function q(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const b=q(I);function z(t){return y.generateUtilityClass("MuiInputAdornment",t)}const h=y.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g;const S=(t,o)=>{const{ownerState:n}=t;return[o.root,o[`position${m.capitalize(n.position)}`],n.disablePointerEvents===!0&&o.disablePointerEvents,o[n.variant]]},N=t=>{const{classes:o,disablePointerEvents:n,hiddenLabel:r,position:s,size:p,variant:l}=t,c={root:["root",n&&"disablePointerEvents",s&&`position${m.capitalize(s)}`,l,r&&"hiddenLabel",p&&`size${m.capitalize(p)}`]};return v.composeClasses(c,z,o)},R=v.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:S})(O.memoTheme(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${h.positionStart}&:not(.${h.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),E=b.forwardRef(function(o,n){const r=v.useDefaultProps({props:o,name:"MuiInputAdornment"}),{children:s,className:p,component:l="div",disablePointerEvents:c=!1,disableTypography:j=!1,position:f,variant:d,...x}=r,i=T.useFormControl()||{};let u=d;d&&i.variant&&process.env.NODE_ENV!=="production"&&d===i.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),i&&!u&&(u=i.variant);const P={...r,hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:c,position:f,variant:u},C=N(P);return a.jsx(T.FormControlContext.Provider,{value:null,children:a.jsx(R,{as:l,ownerState:P,className:y.clsx(C.root,p),ref:n,...x,children:typeof s=="string"&&!j?a.jsx(A.Typography,{color:"textSecondary",children:s}):a.jsxs(b.Fragment,{children:[f==="start"?g||(g=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,s]})})})});process.env.NODE_ENV!=="production"&&(E.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});exports.InputAdornment=E;
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import * as h from "react";
|
|
2
|
-
import { P as e } from "./index-B9vkf41S.js";
|
|
3
|
-
import { F as I, G as T, H as A } from "./generateUtilityClasses-B_xKAflz.js";
|
|
4
|
-
import { u as C, F as x } from "./useFormControl-CatNKXAi.js";
|
|
5
|
-
import { m as N } from "./memoTheme-C-PaH-Cy.js";
|
|
6
|
-
import { jsx as l, jsxs as S } from "react/jsx-runtime";
|
|
7
|
-
import { u as L, s as O, c as R } from "./DefaultPropsProvider-BrmlvPWg.js";
|
|
8
|
-
import { T as w } from "./Typography-Cr-aIusw.js";
|
|
9
|
-
import { c as u } from "./capitalize-BHEX83JQ.js";
|
|
10
|
-
function z(t) {
|
|
11
|
-
return T("MuiInputAdornment", t);
|
|
12
|
-
}
|
|
13
|
-
const b = I("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]);
|
|
14
|
-
var y;
|
|
15
|
-
const F = (t, o) => {
|
|
16
|
-
const {
|
|
17
|
-
ownerState: n
|
|
18
|
-
} = t;
|
|
19
|
-
return [o.root, o[`position${u(n.position)}`], n.disablePointerEvents === !0 && o.disablePointerEvents, o[n.variant]];
|
|
20
|
-
}, j = (t) => {
|
|
21
|
-
const {
|
|
22
|
-
classes: o,
|
|
23
|
-
disablePointerEvents: n,
|
|
24
|
-
hiddenLabel: i,
|
|
25
|
-
position: r,
|
|
26
|
-
size: a,
|
|
27
|
-
variant: p
|
|
28
|
-
} = t, d = {
|
|
29
|
-
root: ["root", n && "disablePointerEvents", r && `position${u(r)}`, p, i && "hiddenLabel", a && `size${u(a)}`]
|
|
30
|
-
};
|
|
31
|
-
return R(d, z, o);
|
|
32
|
-
}, M = O("div", {
|
|
33
|
-
name: "MuiInputAdornment",
|
|
34
|
-
slot: "Root",
|
|
35
|
-
overridesResolver: F
|
|
36
|
-
})(N(({
|
|
37
|
-
theme: t
|
|
38
|
-
}) => ({
|
|
39
|
-
display: "flex",
|
|
40
|
-
maxHeight: "2em",
|
|
41
|
-
alignItems: "center",
|
|
42
|
-
whiteSpace: "nowrap",
|
|
43
|
-
color: (t.vars || t).palette.action.active,
|
|
44
|
-
variants: [{
|
|
45
|
-
props: {
|
|
46
|
-
variant: "filled"
|
|
47
|
-
},
|
|
48
|
-
style: {
|
|
49
|
-
[`&.${b.positionStart}&:not(.${b.hiddenLabel})`]: {
|
|
50
|
-
marginTop: 16
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}, {
|
|
54
|
-
props: {
|
|
55
|
-
position: "start"
|
|
56
|
-
},
|
|
57
|
-
style: {
|
|
58
|
-
marginRight: 8
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
props: {
|
|
62
|
-
position: "end"
|
|
63
|
-
},
|
|
64
|
-
style: {
|
|
65
|
-
marginLeft: 8
|
|
66
|
-
}
|
|
67
|
-
}, {
|
|
68
|
-
props: {
|
|
69
|
-
disablePointerEvents: !0
|
|
70
|
-
},
|
|
71
|
-
style: {
|
|
72
|
-
pointerEvents: "none"
|
|
73
|
-
}
|
|
74
|
-
}]
|
|
75
|
-
}))), U = /* @__PURE__ */ h.forwardRef(function(o, n) {
|
|
76
|
-
const i = L({
|
|
77
|
-
props: o,
|
|
78
|
-
name: "MuiInputAdornment"
|
|
79
|
-
}), {
|
|
80
|
-
children: r,
|
|
81
|
-
className: a,
|
|
82
|
-
component: p = "div",
|
|
83
|
-
disablePointerEvents: d = !1,
|
|
84
|
-
disableTypography: g = !1,
|
|
85
|
-
position: v,
|
|
86
|
-
variant: c,
|
|
87
|
-
...E
|
|
88
|
-
} = i, s = C() || {};
|
|
89
|
-
let m = c;
|
|
90
|
-
c && s.variant && process.env.NODE_ENV !== "production" && c === s.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), s && !m && (m = s.variant);
|
|
91
|
-
const f = {
|
|
92
|
-
...i,
|
|
93
|
-
hiddenLabel: s.hiddenLabel,
|
|
94
|
-
size: s.size,
|
|
95
|
-
disablePointerEvents: d,
|
|
96
|
-
position: v,
|
|
97
|
-
variant: m
|
|
98
|
-
}, P = j(f);
|
|
99
|
-
return /* @__PURE__ */ l(x.Provider, {
|
|
100
|
-
value: null,
|
|
101
|
-
children: /* @__PURE__ */ l(M, {
|
|
102
|
-
as: p,
|
|
103
|
-
ownerState: f,
|
|
104
|
-
className: A(P.root, a),
|
|
105
|
-
ref: n,
|
|
106
|
-
...E,
|
|
107
|
-
children: typeof r == "string" && !g ? /* @__PURE__ */ l(w, {
|
|
108
|
-
color: "textSecondary",
|
|
109
|
-
children: r
|
|
110
|
-
}) : /* @__PURE__ */ S(h.Fragment, {
|
|
111
|
-
children: [v === "start" ? (
|
|
112
|
-
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
113
|
-
y || (y = /* @__PURE__ */ l("span", {
|
|
114
|
-
className: "notranslate",
|
|
115
|
-
"aria-hidden": !0,
|
|
116
|
-
children: ""
|
|
117
|
-
}))
|
|
118
|
-
) : null, r]
|
|
119
|
-
})
|
|
120
|
-
})
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
124
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
125
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
126
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
127
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
128
|
-
/**
|
|
129
|
-
* The content of the component, normally an `IconButton` or string.
|
|
130
|
-
*/
|
|
131
|
-
children: e.node,
|
|
132
|
-
/**
|
|
133
|
-
* Override or extend the styles applied to the component.
|
|
134
|
-
*/
|
|
135
|
-
classes: e.object,
|
|
136
|
-
/**
|
|
137
|
-
* @ignore
|
|
138
|
-
*/
|
|
139
|
-
className: e.string,
|
|
140
|
-
/**
|
|
141
|
-
* The component used for the root node.
|
|
142
|
-
* Either a string to use a HTML element or a component.
|
|
143
|
-
*/
|
|
144
|
-
component: e.elementType,
|
|
145
|
-
/**
|
|
146
|
-
* Disable pointer events on the root.
|
|
147
|
-
* This allows for the content of the adornment to focus the `input` on click.
|
|
148
|
-
* @default false
|
|
149
|
-
*/
|
|
150
|
-
disablePointerEvents: e.bool,
|
|
151
|
-
/**
|
|
152
|
-
* If children is a string then disable wrapping in a Typography component.
|
|
153
|
-
* @default false
|
|
154
|
-
*/
|
|
155
|
-
disableTypography: e.bool,
|
|
156
|
-
/**
|
|
157
|
-
* The position this adornment should appear relative to the `Input`.
|
|
158
|
-
*/
|
|
159
|
-
position: e.oneOf(["end", "start"]).isRequired,
|
|
160
|
-
/**
|
|
161
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
162
|
-
*/
|
|
163
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
164
|
-
/**
|
|
165
|
-
* The variant to use.
|
|
166
|
-
* Note: If you are using the `TextField` component or the `FormControl` component
|
|
167
|
-
* you do not have to set this manually.
|
|
168
|
-
*/
|
|
169
|
-
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
170
|
-
});
|
|
171
|
-
export {
|
|
172
|
-
U as I
|
|
173
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const qe=require("react"),e=require("./index-kjfz41UI.cjs"),A=require("./generateUtilityClasses-CENS22bI.cjs"),fe=require("./isHostComponent-PydJW4A4.cjs"),Me=require("./formControlState-CuX6WjAX.cjs"),ye=require("./useFormControl-haP0iPhl.cjs"),We=require("./index-BPpGXp0s.cjs"),ge=require("./memoTheme-Bi1UNdyO.cjs"),De=require("./utils-BWx1W_q1.cjs"),v=require("react/jsx-runtime"),V=require("./DefaultPropsProvider-C1g4BXET.cjs"),Pe=require("./useForkRef-CFhhTu-Q.cjs"),L=require("./useEventCallback-BxpcFap0.cjs"),me=require("./ownerWindow-DDHucZi0.cjs"),Le=require("./debounce-DpCj7ugL.cjs"),ne=require("./capitalize-3OjkeP9i.cjs"),Ue=require("./refType-DJyA--UV.cjs"),Ve=require("./elementTypeAcceptingRef-vjR5jGLx.cjs");function _e(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,u.get?u:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const l=_e(qe);function D(t){return parseInt(t,10)||0}const $e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Ke(t){for(const o in t)return!1;return!0}function he(t){return Ke(t)||t.outerHeightStyle===0&&!t.overflowing}const ve=l.forwardRef(function(o,n){const{onChange:u,maxRows:m,minRows:d=1,style:S,value:R,...j}=o,{current:w}=l.useRef(R!=null),f=l.useRef(null),O=Pe.useForkRef(n,f),y=l.useRef(null),x=l.useRef(null),b=l.useCallback(()=>{const s=f.current,r=x.current;if(!s||!r)return;const p=me.ownerWindow(s).getComputedStyle(s);if(p.width==="0px")return{outerHeightStyle:0,overflowing:!1};r.style.width=p.width,r.value=s.value||o.placeholder||"x",r.value.slice(-1)===`
|
|
2
|
-
`&&(r.value+=" ");const E=p.boxSizing,H=D(p.paddingBottom)+D(p.paddingTop),$=D(p.borderBottomWidth)+D(p.borderTopWidth),P=r.scrollHeight;r.value="x";const I=r.scrollHeight;let h=P;d&&(h=Math.max(Number(d)*I,h)),m&&(h=Math.min(Number(m)*I,h)),h=Math.max(h,I);const q=h+(E==="border-box"?H+$:0),K=Math.abs(h-P)<=1;return{outerHeightStyle:q,overflowing:K}},[m,d,o.placeholder]),k=L.useEventCallback(()=>{const s=f.current,r=b();if(!s||!r||he(r))return!1;const c=r.outerHeightStyle;return y.current!=null&&y.current!==c}),C=l.useCallback(()=>{const s=f.current,r=b();if(!s||!r||he(r))return;const c=r.outerHeightStyle;y.current!==c&&(y.current=c,s.style.height=`${c}px`),s.style.overflow=r.overflowing?"hidden":""},[b]),N=l.useRef(-1);L.useEnhancedEffect(()=>{const s=Le.debounce(C),r=f==null?void 0:f.current;if(!r)return;const c=me.ownerWindow(r);c.addEventListener("resize",s);let p;return typeof ResizeObserver<"u"&&(p=new ResizeObserver(()=>{k()&&(p.unobserve(r),cancelAnimationFrame(N.current),C(),N.current=requestAnimationFrame(()=>{p.observe(r)}))}),p.observe(r)),()=>{s.clear(),cancelAnimationFrame(N.current),c.removeEventListener("resize",s),p&&p.disconnect()}},[b,C,k]),L.useEnhancedEffect(()=>{C()});const _=s=>{w||C();const r=s.target,c=r.value.length,p=r.value.endsWith(`
|
|
3
|
-
`),E=r.selectionStart===c;p&&E&&r.setSelectionRange(c,c),u&&u(s)};return v.jsxs(l.Fragment,{children:[v.jsx("textarea",{value:R,onChange:_,ref:O,rows:d,style:S,...j}),v.jsx("textarea",{"aria-hidden":!0,className:o.className,readOnly:!0,ref:x,tabIndex:-1,style:{...$e.shadow,...S,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(ve.propTypes={className:e.PropTypes.string,maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),onChange:e.PropTypes.func,placeholder:e.PropTypes.string,style:e.PropTypes.object,value:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.string),e.PropTypes.number,e.PropTypes.string])});function Ge(t){return A.generateUtilityClass("MuiInputBase",t)}const U=A.generateUtilityClasses("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Te;const we=(t,o)=>{const{ownerState:n}=t;return[o.root,n.formControl&&o.formControl,n.startAdornment&&o.adornedStart,n.endAdornment&&o.adornedEnd,n.error&&o.error,n.size==="small"&&o.sizeSmall,n.multiline&&o.multiline,n.color&&o[`color${ne.capitalize(n.color)}`],n.fullWidth&&o.fullWidth,n.hiddenLabel&&o.hiddenLabel]},xe=(t,o)=>{const{ownerState:n}=t;return[o.input,n.size==="small"&&o.inputSizeSmall,n.multiline&&o.inputMultiline,n.type==="search"&&o.inputTypeSearch,n.startAdornment&&o.inputAdornedStart,n.endAdornment&&o.inputAdornedEnd,n.hiddenLabel&&o.inputHiddenLabel]},Ye=t=>{const{classes:o,color:n,disabled:u,error:m,endAdornment:d,focused:S,formControl:R,fullWidth:j,hiddenLabel:w,multiline:f,readOnly:O,size:y,startAdornment:x,type:b}=t,k={root:["root",`color${ne.capitalize(n)}`,u&&"disabled",m&&"error",j&&"fullWidth",S&&"focused",R&&"formControl",y&&y!=="medium"&&`size${ne.capitalize(y)}`,f&&"multiline",x&&"adornedStart",d&&"adornedEnd",w&&"hiddenLabel",O&&"readOnly"],input:["input",u&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",w&&"inputHiddenLabel",x&&"inputAdornedStart",d&&"inputAdornedEnd",O&&"readOnly"]};return V.composeClasses(k,Ge,o)},Ce=V.styled("div",{name:"MuiInputBase",slot:"Root",overridesResolver:we})(ge.memoTheme(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${U.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:o})=>o.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:o,size:n})=>o.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:o})=>o.fullWidth,style:{width:"100%"}}]}))),Se=V.styled("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xe})(ge.memoTheme(({theme:t})=>{const o=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},u={opacity:"0 !important"},m=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${U.formControl} &`]:{"&::-webkit-input-placeholder":u,"&::-moz-placeholder":u,"&::-ms-input-placeholder":u,"&:focus::-webkit-input-placeholder":m,"&:focus::-moz-placeholder":m,"&:focus::-ms-input-placeholder":m},[`&.${U.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:d})=>!d.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:d})=>d.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),be=We.globalCss({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Re=l.forwardRef(function(o,n){const u=V.useDefaultProps({props:o,name:"MuiInputBase"}),{"aria-describedby":m,autoComplete:d,autoFocus:S,className:R,color:j,components:w={},componentsProps:f={},defaultValue:O,disabled:y,disableInjectingGlobalStyles:x,endAdornment:b,error:k,fullWidth:C=!1,id:N,inputComponent:_="input",inputProps:s={},inputRef:r,margin:c,maxRows:p,minRows:E,multiline:H=!1,name:$,onBlur:P,onChange:I,onClick:h,onFocus:q,onKeyDown:K,onKeyUp:Oe,placeholder:Ee,readOnly:G,renderSuffix:re,rows:M,size:Ze,slotProps:se={},slots:ie={},startAdornment:B,type:ae="text",value:Ie,...ze}=u,W=s.value!=null?s.value:Ie,{current:Y}=l.useRef(W!=null),z=l.useRef(),ke=l.useCallback(i=>{process.env.NODE_ENV!=="production"&&i&&i.nodeName!=="INPUT"&&!i.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
4
|
-
`))},[]),Ne=Pe.useForkRef(z,r,s.ref,ke),[Z,J]=l.useState(!1),a=ye.useFormControl();process.env.NODE_ENV!=="production"&&l.useEffect(()=>{if(a)return a.registerEffect()},[a]);const T=Me.formControlState({props:u,muiFormControl:a,states:["color","disabled","error","hiddenLabel","size","required","filled"]});T.focused=a?a.focused:Z,l.useEffect(()=>{!a&&y&&Z&&(J(!1),P&&P())},[a,y,Z,P]);const Q=a&&a.onFilled,X=a&&a.onEmpty,F=l.useCallback(i=>{De.isFilled(i)?Q&&Q():X&&X()},[Q,X]);L.useEnhancedEffect(()=>{Y&&F({value:W})},[W,F,Y]);const Be=i=>{q&&q(i),s.onFocus&&s.onFocus(i),a&&a.onFocus?a.onFocus(i):J(!0)},Fe=i=>{P&&P(i),s.onBlur&&s.onBlur(i),a&&a.onBlur?a.onBlur(i):J(!1)},Ae=(i,...ce)=>{if(!Y){const de=i.target||z.current;if(de==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":A.formatMuiErrorMessage(1));F({value:de.value})}s.onChange&&s.onChange(i,...ce),I&&I(i,...ce)};l.useEffect(()=>{F(z.current)},[]);const je=i=>{z.current&&i.currentTarget===i.target&&z.current.focus(),h&&h(i)};let ee=_,g=s;H&&ee==="input"&&(M?(process.env.NODE_ENV!=="production"&&(E||p)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),g={type:void 0,minRows:M,maxRows:M,...g}):g={type:void 0,maxRows:p,minRows:E,...g},ee=ve);const He=i=>{F(i.animationName==="mui-auto-fill-cancel"?z.current:{value:"x"})};l.useEffect(()=>{a&&a.setAdornedStart(!!B)},[a,B]);const oe={...u,color:T.color||"primary",disabled:T.disabled,endAdornment:b,error:T.error,focused:T.focused,formControl:a,fullWidth:C,hiddenLabel:T.hiddenLabel,multiline:H,size:T.size,startAdornment:B,type:ae},le=Ye(oe),pe=ie.root||w.Root||Ce,te=se.root||f.root||{},ue=ie.input||w.Input||Se;return g={...g,...se.input??f.input},v.jsxs(l.Fragment,{children:[!x&&typeof be=="function"&&(Te||(Te=v.jsx(be,{}))),v.jsxs(pe,{...te,ref:n,onClick:je,...ze,...!fe.isHostComponent(pe)&&{ownerState:{...oe,...te.ownerState}},className:A.clsx(le.root,te.className,R,G&&"MuiInputBase-readOnly"),children:[B,v.jsx(ye.FormControlContext.Provider,{value:null,children:v.jsx(ue,{"aria-invalid":T.error,"aria-describedby":m,autoComplete:d,autoFocus:S,defaultValue:O,disabled:T.disabled,id:N,onAnimationStart:He,name:$,placeholder:Ee,readOnly:G,required:T.required,rows:M,value:W,onKeyDown:K,onKeyUp:Oe,type:ae,...g,...!fe.isHostComponent(ue)&&{as:ee,ownerState:{...oe,...g.ownerState}},ref:Ne,className:A.clsx(le.input,g.className,G&&"MuiInputBase-readOnly"),onBlur:Fe,onChange:Ae,onFocus:Be})}),b,re?re({...T,startAdornment:B}):null]})]})});process.env.NODE_ENV!=="production"&&(Re.propTypes={"aria-describedby":e.PropTypes.string,autoComplete:e.PropTypes.string,autoFocus:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["primary","secondary","error","info","success","warning"]),e.PropTypes.string]),components:e.PropTypes.shape({Input:e.PropTypes.elementType,Root:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),defaultValue:e.PropTypes.any,disabled:e.PropTypes.bool,disableInjectingGlobalStyles:e.PropTypes.bool,endAdornment:e.PropTypes.node,error:e.PropTypes.bool,fullWidth:e.PropTypes.bool,id:e.PropTypes.string,inputComponent:Ve.elementTypeAcceptingRef,inputProps:e.PropTypes.object,inputRef:Ue.refType,margin:e.PropTypes.oneOf(["dense","none"]),maxRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),minRows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),multiline:e.PropTypes.bool,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onClick:e.PropTypes.func,onFocus:e.PropTypes.func,onInvalid:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,placeholder:e.PropTypes.string,readOnly:e.PropTypes.bool,renderSuffix:e.PropTypes.func,required:e.PropTypes.bool,rows:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({input:e.PropTypes.object,root:e.PropTypes.object}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),startAdornment:e.PropTypes.node,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),type:e.PropTypes.string,value:e.PropTypes.any});exports.InputBase=Re;exports.InputBaseInput=Se;exports.InputBaseRoot=Ce;exports.inputBaseClasses=U;exports.inputOverridesResolver=xe;exports.rootOverridesResolver=we;
|