@cgi-learning-hub/ui 1.5.1-dev.1744637282 → 1.5.1-dev.1744643558
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert-5zQ9TB22.cjs +1 -0
- package/dist/{Alert-BfMYnyZX.js → Alert-D5C84Q-b.js} +27 -28
- package/dist/ArrowDropDown-Dt89EMyB.cjs +1 -0
- package/dist/ArrowDropDown-DvAbGzWJ.js +37 -0
- package/dist/{Autocomplete-DQyr97ya.js → Autocomplete-BjXP0c_4.js} +704 -665
- package/dist/Autocomplete-C6uWQlAq.cjs +6 -0
- package/dist/Backdrop-9ZMM04UV.cjs +1 -0
- package/dist/{Backdrop-B200pms1.js → Backdrop-CFkYB15z.js} +21 -20
- package/dist/Box-Bl24J58B.cjs +1 -0
- package/dist/{Box-D3Pi13ta.js → Box-CXvmZ2dD.js} +12 -12
- package/dist/Button-CZTPCtLu.cjs +1 -0
- package/dist/{Button-D1aKdjIh.js → Button-Dhxe4eYH.js} +114 -148
- package/dist/{ButtonBase-CBFRgTBs.cjs → ButtonBase-DDgwUJIY.cjs} +1 -1
- package/dist/{ButtonBase-Bncgzjtp.js → ButtonBase-uylSwkXQ.js} +24 -24
- package/dist/CardContent-CCMZ6TlJ.cjs +1 -0
- package/dist/{CardContent-DyggcxBG.js → CardContent-uV5Z3O4p.js} +5 -5
- package/dist/Checkbox-Dsa-pj_7.cjs +1 -0
- package/dist/{Checkbox-DkrWUPYT.js → Checkbox-hXnta6hd.js} +95 -68
- package/dist/Chip-BJSNxQBQ.cjs +1 -0
- package/dist/{Chip-Y39z3DS6.js → Chip-klg9LPzp.js} +53 -54
- package/dist/{CircularProgress-BDjnnyuL.js → CircularProgress-DcEnE5le.js} +28 -29
- package/dist/CircularProgress-XGMwsxSL.cjs +28 -0
- package/dist/{Close-DJDhRwj2.cjs → Close-Czm0dlR9.cjs} +1 -1
- package/dist/{Close-hx7dlgmZ.js → Close-KuFfPteA.js} +1 -1
- package/dist/{CloseRounded-DapqosK3.cjs → CloseRounded-BkPBIz0q.cjs} +1 -1
- package/dist/{CloseRounded-aZqv6aS-.js → CloseRounded-D9nattPL.js} +1 -1
- package/dist/{CustomTreeItem-CgdZ-hEx.js → CustomTreeItem-BITNDbQ_.js} +209 -216
- package/dist/CustomTreeItem-CI47uzgL.cjs +3 -0
- package/dist/{DatePicker-C2ZobNcJ.js → DatePicker-D1YD4uGk.js} +995 -1002
- package/dist/DatePicker-PBy3aYBw.cjs +13 -0
- package/dist/{DefaultPropsProvider-Ik4eAJdt.js → DefaultPropsProvider-CojEWOKR.js} +55 -55
- package/dist/DefaultPropsProvider-DLSItMqn.cjs +1 -0
- package/dist/{Delete-Cfk3fOW-.js → Delete-B4Xhz7O1.js} +1 -1
- package/dist/{Delete-DDxv1h6V.cjs → Delete-C0hR-twe.cjs} +1 -1
- package/dist/Dialog-BC20prgn.cjs +1 -0
- package/dist/{Dialog-Ccvug1yq.js → Dialog-Dk2BQsgk.js} +162 -169
- package/dist/{DialogContent-CIMpKm-U.js → DialogContent-C0BzN5yk.js} +3 -3
- package/dist/DialogContent-DqdeAbSs.cjs +1 -0
- package/dist/{DialogTitle-BwTvIaQe.js → DialogTitle-7MyBxAkp.js} +7 -7
- package/dist/DialogTitle-DwOXEToV.cjs +1 -0
- package/dist/{Divider-C2cBikSL.js → Divider-BC2Fp1JG.js} +8 -8
- package/dist/Divider-I7KOokm8.cjs +1 -0
- package/dist/{Folder-Bnoqtzc6.js → Folder-DYF788Ow.js} +1 -1
- package/dist/{Folder-DEtB13yM.cjs → Folder-ExV_xCn6.cjs} +1 -1
- package/dist/{FormLabel-EkpI8MQr.js → FormLabel-Dx6hkLPd.js} +24 -25
- package/dist/FormLabel-xZr5oZgx.cjs +2 -0
- package/dist/{Grow-B_clfUP9.js → Grow-C654F4zC.js} +6 -5
- package/dist/Grow-DPejKxV0.cjs +1 -0
- package/dist/{IconButton-D1mhTuaI.js → IconButton-BmspylGQ.js} +26 -27
- package/dist/IconButton-C1I_233O.cjs +2 -0
- package/dist/{InputAdornment-BxB8_tq-.js → InputAdornment-BrH8kQg8.js} +10 -11
- package/dist/InputAdornment-_UPzajRP.cjs +1 -0
- package/dist/{InputBase-BQnEIwl1.js → InputBase-B3APXSc_.js} +278 -277
- package/dist/InputBase-CELFJljc.cjs +3 -0
- package/dist/Link-BQrFDQ-K.cjs +1 -0
- package/dist/{Link-8ltXgZj7.js → Link-D3HS1nTr.js} +15 -16
- package/dist/List-Bii833np.cjs +1 -0
- package/dist/{List-DJsqHOqv.js → List-vQ97f0T4.js} +2 -2
- package/dist/ListItem-BtjE87R1.cjs +1 -0
- package/dist/{ListItem-BspNcHM_.js → ListItem-kT8cZ-t_.js} +17 -17
- package/dist/ListItemText-DaUQA10v.js +845 -0
- package/dist/ListItemText-Dov-H_Ii.cjs +2 -0
- package/dist/Menu-BGO4rdUL.cjs +7 -0
- package/dist/{Menu-DPhreDcS.js → Menu-bXn70x2T.js} +405 -335
- package/dist/{MenuItem-Fb7iU47J.js → MenuItem-88KizCxg.js} +14 -14
- package/dist/MenuItem-De2MJkYT.cjs +1 -0
- package/dist/{Modal-dmMiGSAp.js → Modal-BGSxrh8O.js} +240 -245
- package/dist/Modal-CPt1nneG.cjs +2 -0
- package/dist/{MoreVert-BCGFGn8f.js → MoreVert-BLY3HCz9.js} +1 -1
- package/dist/{MoreVert-DNeLf2VB.cjs → MoreVert-MSZXYrMO.cjs} +1 -1
- package/dist/Paper-CKG165jt.cjs +2 -0
- package/dist/{Paper-CEDxpHWv.js → Paper-D1MPGEsw.js} +9 -9
- package/dist/Popper-C6iJjm-m.cjs +4 -0
- package/dist/{Popper-D5_YIJX6.js → Popper-DbqO1kUk.js} +10 -10
- package/dist/Portal-C2eqRUQp.js +85 -0
- package/dist/Portal-Dm9aDz8_.cjs +1 -0
- package/dist/Radio-BEfQuau1.cjs +1 -0
- package/dist/{Radio-B4sx0387.js → Radio-BlcCOkYY.js} +226 -183
- package/dist/{RadioGroup-UStIK_UX.js → RadioGroup-C1L3hzrF.js} +20 -20
- package/dist/RadioGroup-CqCh25ZS.cjs +1 -0
- package/dist/Select-BTL6ppWW.cjs +3 -0
- package/dist/{Select-CxnCi-3l.js → Select-CWv7tdJU.js} +321 -349
- package/dist/{Stack-CzKIgmIE.js → Stack-Bkppffhe.js} +60 -104
- package/dist/Stack-DpH56CPw.cjs +1 -0
- package/dist/Switch-BIGFww3p.cjs +1 -0
- package/dist/{Switch-D3KweZGQ.js → Switch-CbNrfyJP.js} +167 -108
- package/dist/SwitchBase-BkcX4xzb.js +314 -0
- package/dist/SwitchBase-DA079uiU.cjs +1 -0
- package/dist/Tab-BsIC620i.cjs +4 -0
- package/dist/{Tab-C1r8JXwz.js → Tab-CeMAH2vi.js} +597 -537
- package/dist/{TextField-D-_WjPAW.js → TextField-ChDtIm6f.js} +133 -124
- package/dist/TextField-SGIs7v2v.cjs +1 -0
- package/dist/{ToggleButtonGroup-gxIqbo6a.js → ToggleButtonGroup-B8hGStTV.js} +1956 -1784
- package/dist/ToggleButtonGroup-C64DhY80.cjs +138 -0
- package/dist/{Tooltip-D0bof-68.js → Tooltip-DDiPhklW.js} +37 -37
- package/dist/Tooltip-DcBB_9cg.cjs +4 -0
- package/dist/{Typography-DBJqhIhB.js → Typography-BceX4HUn.js} +13 -14
- package/dist/Typography-DOpE-TJz.cjs +1 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.cjs.js +1 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts +11 -0
- package/dist/components/Autocomplete/Autocomplete.es.js +52 -0
- package/dist/components/Autocomplete/index.cjs.js +1 -0
- package/dist/components/Autocomplete/index.d.ts +2 -0
- package/dist/components/Autocomplete/index.es.js +4 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +25 -25
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +4 -4
- package/dist/components/TreeView/TreeView.es.js +14 -13
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +310 -311
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.es.js +29 -29
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/createSvgIcon-DPiiTkVU.cjs +1 -0
- package/dist/{createSvgIcon-CsMK8tGM.js → createSvgIcon-Q_5wEReh.js} +54 -55
- package/dist/dividerClasses-B_bu1fey.cjs +1 -0
- package/dist/{dividerClasses-BfxSqqSn.js → dividerClasses-CG6GpKdW.js} +1 -1
- package/dist/elementAcceptingRef-BzA19fXF.cjs +1 -0
- package/dist/elementAcceptingRef-De-6sh1C.js +25 -0
- package/dist/{elementTypeAcceptingRef-CW5o2Qxo.js → elementTypeAcceptingRef-DAXsN6bV.js} +1 -1
- package/dist/elementTypeAcceptingRef-DRPcjZd5.cjs +1 -0
- package/dist/{extendSxProp-DSA-5JvJ.js → extendSxProp-BNvofXln.js} +1 -1
- package/dist/extendSxProp-BZI5kY-d.cjs +1 -0
- package/dist/getReactElementRef-B4Mdq17D.js +8 -0
- package/dist/getReactElementRef-BPy0WStw.cjs +1 -0
- package/dist/{generateUtilityClasses-BpRGbQmY.js → identifier-UGP6vjyr.js} +811 -845
- package/dist/identifier-gJdGmHeC.cjs +74 -0
- package/dist/{index-CDLJvERp.js → index-BEwCnUM5.js} +2 -2
- package/dist/index-Cfd-LNZn.cjs +1 -0
- package/dist/index-D14TzUgK.cjs +1 -0
- package/dist/{index-CoYVLWJY.js → index-DF_6gEtu.js} +4 -4
- package/dist/index-Dmu1HrwE.cjs +5 -0
- package/dist/{index-JOgYmUF8.js → index-Q0xeFkEM.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +310 -311
- package/dist/inputBaseClasses-BMcreG7U.cjs +1 -0
- package/dist/inputBaseClasses-BPb0JVKx.js +9 -0
- package/dist/{listItemTextClasses-Cy10XsJj.js → listItemTextClasses-Ceqh8Tnn.js} +1 -1
- package/dist/listItemTextClasses-gsrBifRw.cjs +1 -0
- package/dist/{memoTheme-44McxcVZ.js → memoTheme-D0vyNKLd.js} +1 -1
- package/dist/{memoTheme-BhhxAcUJ.cjs → memoTheme-GOMOSdXJ.cjs} +1 -1
- package/dist/mergeSlotProps-BCz8yLkw.cjs +1 -0
- package/dist/mergeSlotProps-D_CzNhXE.js +62 -0
- package/dist/refType-53jD7LEO.cjs +1 -0
- package/dist/{refType-DsRJ5_Sj.js → refType-BjXePEDa.js} +1 -1
- package/dist/styled-C7OKoThH.cjs +1 -0
- package/dist/styled-blmInu6U.js +5 -0
- package/dist/useEventCallback-BxpcFap0.cjs +1 -0
- package/dist/useEventCallback-Yoj9nCug.js +15 -0
- package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
- package/dist/useForkRef-u29GSuCu.js +27 -0
- package/dist/useSlot-CxlUbTmA.js +125 -0
- package/dist/useSlot-zJFQDOgm.cjs +1 -0
- package/dist/useSlotProps-CuEZ7HQe.cjs +1 -0
- package/dist/{useSlotProps-CDJdiQpV.js → useSlotProps-DspaNRnE.js} +2 -2
- package/dist/useTheme-9UmqLsq5.js +11 -0
- package/dist/useTheme-BJZcQSBU.cjs +1 -0
- package/dist/{useTheme-C2OE_AnH.js → useTheme-CXUszJGf.js} +1 -1
- package/dist/useTheme-NQRIebh0.cjs +1 -0
- package/dist/useThemeProps-B4kO75RK.js +17 -0
- package/dist/{useThemeProps-ClM1OENH.js → useThemeProps-DGawbBM3.js} +4 -4
- package/dist/useThemeProps-DnpiVoRo.cjs +1 -0
- package/dist/{useThemeProps-DQFApaJ_.cjs → useThemeProps-jU-2XOjK.cjs} +1 -1
- package/dist/utils-B2EQZFZP.cjs +1 -0
- package/dist/{utils-DFLaK7Ad.js → utils-CByxilR5.js} +1 -1
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +10 -10
- package/dist/Alert-Dg5u5Z7d.cjs +0 -1
- package/dist/Autocomplete-3xshJ4m_.cjs +0 -6
- package/dist/Backdrop-BrTs3LxC.cjs +0 -1
- package/dist/Box-CFuWIdLg.cjs +0 -1
- package/dist/Button-C7tsSPXV.cjs +0 -1
- package/dist/CardContent-BRUkl8hU.cjs +0 -1
- package/dist/Checkbox-C_wSNEHD.cjs +0 -1
- package/dist/Chip-DUeBMcO4.cjs +0 -1
- package/dist/CircularProgress-DdHpo4Bf.cjs +0 -28
- package/dist/CustomTreeItem-9kBuTFO8.cjs +0 -4
- package/dist/DatePicker-BYPJypQT.cjs +0 -14
- package/dist/DefaultPropsProvider-B6DqRWnX.cjs +0 -1
- package/dist/Dialog-DOXpPT7S.cjs +0 -1
- package/dist/DialogContent-BoIE95Tg.cjs +0 -1
- package/dist/DialogTitle-B_am69Lr.cjs +0 -1
- package/dist/Divider-Nyl7rx-c.cjs +0 -1
- package/dist/FormLabel-D4O160ND.cjs +0 -2
- package/dist/Grow-DKA2Mfhu.cjs +0 -1
- package/dist/IconButton-CGfKAsNI.cjs +0 -2
- package/dist/InputAdornment-BOcB8UIi.cjs +0 -1
- package/dist/InputBase-BIf-xtMJ.cjs +0 -3
- package/dist/Link-CS0qbKjo.cjs +0 -1
- package/dist/List-T5dKKWkc.cjs +0 -1
- package/dist/ListItem-BN7OXyEP.cjs +0 -1
- package/dist/ListItemText-6gXRtF3r.cjs +0 -1
- package/dist/ListItemText-afV0BrJL.js +0 -928
- package/dist/Menu-D6dHPVP_.cjs +0 -7
- package/dist/MenuItem-DOVsV_vI.cjs +0 -1
- package/dist/Modal-B8xPmNJd.cjs +0 -2
- package/dist/Paper-owda8LtM.cjs +0 -2
- package/dist/Popper-DMGJYlm7.cjs +0 -4
- package/dist/Portal-BKVc0iys.js +0 -81
- package/dist/Portal-CgaP8O8B.cjs +0 -1
- package/dist/Radio-OUfsD89D.cjs +0 -1
- package/dist/RadioGroup-Cr_IFflA.cjs +0 -1
- package/dist/Select-CUlunaOr.cjs +0 -3
- package/dist/Stack-D5_1ZBcn.cjs +0 -1
- package/dist/Switch-DpdnFebj.cjs +0 -1
- package/dist/SwitchBase-BsP35Aas.js +0 -262
- package/dist/SwitchBase-DMGf52a3.cjs +0 -1
- package/dist/Tab-DZvAf79O.cjs +0 -4
- package/dist/TextField-C0KpyS6X.cjs +0 -1
- package/dist/ToggleButtonGroup-UNGSwlQe.cjs +0 -137
- package/dist/Tooltip-BljbhP1z.cjs +0 -4
- package/dist/Typography-yvyJLNFu.cjs +0 -1
- package/dist/capitalize-CToVceBw.cjs +0 -1
- package/dist/capitalize-DSG2FA7x.js +0 -9
- package/dist/createSvgIcon-EiiLl5-A.cjs +0 -1
- package/dist/dividerClasses-BtzbOVqV.cjs +0 -1
- package/dist/elementTypeAcceptingRef-D1T31ZXC.cjs +0 -1
- package/dist/extendSxProp-BKP1AeGz.cjs +0 -1
- package/dist/generateUtilityClasses-q4qbJjmd.cjs +0 -75
- package/dist/getReactElementRef-CD3_Stk5.js +0 -31
- package/dist/getReactElementRef-yvpNgSpm.cjs +0 -1
- package/dist/index-Bt7ukCXi.cjs +0 -5
- package/dist/index-DCpyECL4.cjs +0 -1
- package/dist/index-baZm35zL.cjs +0 -1
- package/dist/listItemTextClasses-DePeZNtZ.cjs +0 -1
- package/dist/refType-DDdajp2p.cjs +0 -1
- package/dist/resolveComponentProps-BTEnlM7q.cjs +0 -1
- package/dist/resolveComponentProps-BZQ1jKzF.js +0 -80
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useSlot-CSTfsYPJ.cjs +0 -1
- package/dist/useSlot-CYOxsM2I.js +0 -48
- package/dist/useSlotProps-DTgWZk99.cjs +0 -1
- package/dist/useTheme-BDL2rp7a.js +0 -11
- package/dist/useTheme-CCi6a5Vl.cjs +0 -1
- package/dist/useTheme-DpMakc_Y.cjs +0 -1
- package/dist/useThemeProps-BnN3o4c1.cjs +0 -1
- package/dist/useThemeProps-DjkGUV8r.js +0 -17
- package/dist/utils-Cn6wZNus.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { P as e,
|
|
3
|
-
import { i as
|
|
4
|
-
import { f as
|
|
5
|
-
import { u as He, F as
|
|
6
|
-
import { g as
|
|
7
|
-
import { m as
|
|
8
|
-
import { i as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import {
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { P as e, H as pe, K as X, U as Ae } from "./identifier-UGP6vjyr.js";
|
|
3
|
+
import { i as fe } from "./isHostComponent-kiaBvYVo.js";
|
|
4
|
+
import { f as Be } from "./formControlState-vgaj2ksH.js";
|
|
5
|
+
import { u as He, F as Me } from "./useFormControl-CatNKXAi.js";
|
|
6
|
+
import { g as Pe } from "./index-DF_6gEtu.js";
|
|
7
|
+
import { m as ge } from "./memoTheme-D0vyNKLd.js";
|
|
8
|
+
import { i as We } from "./utils-DWqc1kRF.js";
|
|
9
|
+
import { g as De, i as ee } from "./inputBaseClasses-BPb0JVKx.js";
|
|
10
|
+
import { jsxs as oe, jsx as A } from "react/jsx-runtime";
|
|
11
|
+
import { u as je, s as ve, c as Le } from "./DefaultPropsProvider-CojEWOKR.js";
|
|
12
|
+
import { u as we } from "./useForkRef-u29GSuCu.js";
|
|
13
|
+
import { u as Ve, a as te } from "./useEventCallback-Yoj9nCug.js";
|
|
14
|
+
import { o as me } from "./ownerWindow-niciwP7I.js";
|
|
14
15
|
import { d as Ue } from "./debounce-46wSf_lW.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return parseInt(n, 10) || 0;
|
|
16
|
+
import { r as _e } from "./refType-BjXePEDa.js";
|
|
17
|
+
import { e as Ke } from "./elementTypeAcceptingRef-DAXsN6bV.js";
|
|
18
|
+
function j(t) {
|
|
19
|
+
return parseInt(t, 10) || 0;
|
|
20
20
|
}
|
|
21
21
|
const $e = {
|
|
22
22
|
shadow: {
|
|
@@ -33,86 +33,92 @@ const $e = {
|
|
|
33
33
|
transform: "translateZ(0)"
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
function
|
|
37
|
-
for (const o in
|
|
36
|
+
function qe(t) {
|
|
37
|
+
for (const o in t)
|
|
38
38
|
return !1;
|
|
39
39
|
return !0;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function he(t) {
|
|
42
|
+
return qe(t) || t.outerHeightStyle === 0 && !t.overflowing;
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const xe = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
45
45
|
const {
|
|
46
|
-
onChange:
|
|
47
|
-
maxRows:
|
|
48
|
-
minRows:
|
|
46
|
+
onChange: c,
|
|
47
|
+
maxRows: m,
|
|
48
|
+
minRows: d = 1,
|
|
49
49
|
style: R,
|
|
50
50
|
value: T,
|
|
51
|
-
...
|
|
51
|
+
...B
|
|
52
52
|
} = o, {
|
|
53
|
-
current:
|
|
54
|
-
} =
|
|
55
|
-
const
|
|
56
|
-
if (!
|
|
53
|
+
current: x
|
|
54
|
+
} = l.useRef(T != null), p = l.useRef(null), O = we(n, p), f = l.useRef(null), C = l.useRef(null), g = l.useCallback(() => {
|
|
55
|
+
const r = p.current, i = C.current;
|
|
56
|
+
if (!r || !i)
|
|
57
57
|
return;
|
|
58
|
-
const u =
|
|
58
|
+
const u = me(r).getComputedStyle(r);
|
|
59
59
|
if (u.width === "0px")
|
|
60
60
|
return {
|
|
61
61
|
outerHeightStyle: 0,
|
|
62
62
|
overflowing: !1
|
|
63
63
|
};
|
|
64
|
-
|
|
65
|
-
` && (
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
let
|
|
70
|
-
|
|
71
|
-
const P =
|
|
64
|
+
i.style.width = u.width, i.value = r.value || o.placeholder || "x", i.value.slice(-1) === `
|
|
65
|
+
` && (i.value += " ");
|
|
66
|
+
const H = u.boxSizing, M = j(u.paddingBottom) + j(u.paddingTop), V = j(u.borderBottomWidth) + j(u.borderTopWidth), w = i.scrollHeight;
|
|
67
|
+
i.value = "x";
|
|
68
|
+
const E = i.scrollHeight;
|
|
69
|
+
let h = w;
|
|
70
|
+
d && (h = Math.max(Number(d) * E, h)), m && (h = Math.min(Number(m) * E, h)), h = Math.max(h, E);
|
|
71
|
+
const P = h + (H === "border-box" ? M + V : 0), U = Math.abs(h - w) <= 1;
|
|
72
72
|
return {
|
|
73
73
|
outerHeightStyle: P,
|
|
74
|
-
overflowing:
|
|
74
|
+
overflowing: U
|
|
75
75
|
};
|
|
76
|
-
}, [
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
76
|
+
}, [m, d, o.placeholder]), z = Ve(() => {
|
|
77
|
+
const r = p.current, i = g();
|
|
78
|
+
if (!r || !i || he(i))
|
|
79
|
+
return !1;
|
|
80
|
+
const y = i.outerHeightStyle;
|
|
81
|
+
return f.current != null && f.current !== y;
|
|
82
|
+
}), S = l.useCallback(() => {
|
|
83
|
+
const r = p.current, i = g();
|
|
84
|
+
if (!r || !i || he(i))
|
|
79
85
|
return;
|
|
80
|
-
const y =
|
|
81
|
-
|
|
82
|
-
}, [
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
86
|
+
const y = i.outerHeightStyle;
|
|
87
|
+
f.current !== y && (f.current = y, r.style.height = `${y}px`), r.style.overflow = i.overflowing ? "hidden" : "";
|
|
88
|
+
}, [g]), N = l.useRef(-1);
|
|
89
|
+
te(() => {
|
|
90
|
+
const r = Ue(S), i = p == null ? void 0 : p.current;
|
|
91
|
+
if (!i)
|
|
86
92
|
return;
|
|
87
|
-
const y =
|
|
88
|
-
y.addEventListener("resize",
|
|
93
|
+
const y = me(i);
|
|
94
|
+
y.addEventListener("resize", r);
|
|
89
95
|
let u;
|
|
90
96
|
return typeof ResizeObserver < "u" && (u = new ResizeObserver(() => {
|
|
91
|
-
u.unobserve(
|
|
92
|
-
u.observe(
|
|
93
|
-
});
|
|
94
|
-
}), u.observe(
|
|
95
|
-
|
|
97
|
+
z() && (u.unobserve(i), cancelAnimationFrame(N.current), S(), N.current = requestAnimationFrame(() => {
|
|
98
|
+
u.observe(i);
|
|
99
|
+
}));
|
|
100
|
+
}), u.observe(i)), () => {
|
|
101
|
+
r.clear(), cancelAnimationFrame(N.current), y.removeEventListener("resize", r), u && u.disconnect();
|
|
96
102
|
};
|
|
97
|
-
}, [
|
|
98
|
-
|
|
103
|
+
}, [g, S, z]), te(() => {
|
|
104
|
+
S();
|
|
99
105
|
});
|
|
100
|
-
const
|
|
101
|
-
|
|
106
|
+
const L = (r) => {
|
|
107
|
+
x || S(), c && c(r);
|
|
102
108
|
};
|
|
103
|
-
return /* @__PURE__ */
|
|
109
|
+
return /* @__PURE__ */ oe(l.Fragment, {
|
|
104
110
|
children: [/* @__PURE__ */ A("textarea", {
|
|
105
111
|
value: T,
|
|
106
|
-
onChange:
|
|
112
|
+
onChange: L,
|
|
107
113
|
ref: O,
|
|
108
|
-
rows:
|
|
114
|
+
rows: d,
|
|
109
115
|
style: R,
|
|
110
|
-
...
|
|
116
|
+
...B
|
|
111
117
|
}), /* @__PURE__ */ A("textarea", {
|
|
112
118
|
"aria-hidden": !0,
|
|
113
119
|
className: o.className,
|
|
114
120
|
readOnly: !0,
|
|
115
|
-
ref:
|
|
121
|
+
ref: C,
|
|
116
122
|
tabIndex: -1,
|
|
117
123
|
style: {
|
|
118
124
|
...$e.shadow,
|
|
@@ -123,7 +129,7 @@ const ve = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
123
129
|
})]
|
|
124
130
|
});
|
|
125
131
|
});
|
|
126
|
-
process.env.NODE_ENV !== "production" && (
|
|
132
|
+
process.env.NODE_ENV !== "production" && (xe.propTypes = {
|
|
127
133
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
128
134
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
129
135
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -158,51 +164,47 @@ process.env.NODE_ENV !== "production" && (ve.propTypes = {
|
|
|
158
164
|
*/
|
|
159
165
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
160
166
|
});
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
const oe = Fe("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
165
|
-
var me;
|
|
166
|
-
const Ye = (n, o) => {
|
|
167
|
+
var be;
|
|
168
|
+
const Ge = (t, o) => {
|
|
167
169
|
const {
|
|
168
|
-
ownerState:
|
|
169
|
-
} =
|
|
170
|
-
return [o.root,
|
|
171
|
-
},
|
|
170
|
+
ownerState: n
|
|
171
|
+
} = t;
|
|
172
|
+
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${X(n.color)}`], n.fullWidth && o.fullWidth, n.hiddenLabel && o.hiddenLabel];
|
|
173
|
+
}, Ye = (t, o) => {
|
|
172
174
|
const {
|
|
173
|
-
ownerState:
|
|
174
|
-
} =
|
|
175
|
-
return [o.input,
|
|
176
|
-
}, Ze = (
|
|
175
|
+
ownerState: n
|
|
176
|
+
} = t;
|
|
177
|
+
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];
|
|
178
|
+
}, Ze = (t) => {
|
|
177
179
|
const {
|
|
178
180
|
classes: o,
|
|
179
|
-
color:
|
|
180
|
-
disabled:
|
|
181
|
-
error:
|
|
182
|
-
endAdornment:
|
|
181
|
+
color: n,
|
|
182
|
+
disabled: c,
|
|
183
|
+
error: m,
|
|
184
|
+
endAdornment: d,
|
|
183
185
|
focused: R,
|
|
184
186
|
formControl: T,
|
|
185
|
-
fullWidth:
|
|
186
|
-
hiddenLabel:
|
|
187
|
+
fullWidth: B,
|
|
188
|
+
hiddenLabel: x,
|
|
187
189
|
multiline: p,
|
|
188
190
|
readOnly: O,
|
|
189
|
-
size:
|
|
190
|
-
startAdornment:
|
|
191
|
-
type:
|
|
192
|
-
} =
|
|
193
|
-
root: ["root", `color${
|
|
194
|
-
input: ["input",
|
|
191
|
+
size: f,
|
|
192
|
+
startAdornment: C,
|
|
193
|
+
type: g
|
|
194
|
+
} = t, z = {
|
|
195
|
+
root: ["root", `color${X(n)}`, c && "disabled", m && "error", B && "fullWidth", R && "focused", T && "formControl", f && f !== "medium" && `size${X(f)}`, p && "multiline", C && "adornedStart", d && "adornedEnd", x && "hiddenLabel", O && "readOnly"],
|
|
196
|
+
input: ["input", c && "disabled", g === "search" && "inputTypeSearch", p && "inputMultiline", f === "small" && "inputSizeSmall", x && "inputHiddenLabel", C && "inputAdornedStart", d && "inputAdornedEnd", O && "readOnly"]
|
|
195
197
|
};
|
|
196
|
-
return
|
|
197
|
-
},
|
|
198
|
+
return Le(z, De, o);
|
|
199
|
+
}, Je = ve("div", {
|
|
198
200
|
name: "MuiInputBase",
|
|
199
201
|
slot: "Root",
|
|
200
|
-
overridesResolver:
|
|
201
|
-
})(
|
|
202
|
-
theme:
|
|
202
|
+
overridesResolver: Ge
|
|
203
|
+
})(ge(({
|
|
204
|
+
theme: t
|
|
203
205
|
}) => ({
|
|
204
|
-
...
|
|
205
|
-
color: (
|
|
206
|
+
...t.typography.body1,
|
|
207
|
+
color: (t.vars || t).palette.text.primary,
|
|
206
208
|
lineHeight: "1.4375em",
|
|
207
209
|
// 23px
|
|
208
210
|
boxSizing: "border-box",
|
|
@@ -211,8 +213,8 @@ const Ye = (n, o) => {
|
|
|
211
213
|
cursor: "text",
|
|
212
214
|
display: "inline-flex",
|
|
213
215
|
alignItems: "center",
|
|
214
|
-
[`&.${
|
|
215
|
-
color: (
|
|
216
|
+
[`&.${ee.disabled}`]: {
|
|
217
|
+
color: (t.vars || t).palette.text.disabled,
|
|
216
218
|
cursor: "default"
|
|
217
219
|
},
|
|
218
220
|
variants: [{
|
|
@@ -225,8 +227,8 @@ const Ye = (n, o) => {
|
|
|
225
227
|
}, {
|
|
226
228
|
props: ({
|
|
227
229
|
ownerState: o,
|
|
228
|
-
size:
|
|
229
|
-
}) => o.multiline &&
|
|
230
|
+
size: n
|
|
231
|
+
}) => o.multiline && n === "small",
|
|
230
232
|
style: {
|
|
231
233
|
paddingTop: 1
|
|
232
234
|
}
|
|
@@ -238,27 +240,27 @@ const Ye = (n, o) => {
|
|
|
238
240
|
width: "100%"
|
|
239
241
|
}
|
|
240
242
|
}]
|
|
241
|
-
}))),
|
|
243
|
+
}))), Qe = ve("input", {
|
|
242
244
|
name: "MuiInputBase",
|
|
243
245
|
slot: "Input",
|
|
244
|
-
overridesResolver:
|
|
245
|
-
})(
|
|
246
|
-
theme:
|
|
246
|
+
overridesResolver: Ye
|
|
247
|
+
})(ge(({
|
|
248
|
+
theme: t
|
|
247
249
|
}) => {
|
|
248
|
-
const o =
|
|
250
|
+
const o = t.palette.mode === "light", n = {
|
|
249
251
|
color: "currentColor",
|
|
250
|
-
...
|
|
251
|
-
opacity:
|
|
252
|
+
...t.vars ? {
|
|
253
|
+
opacity: t.vars.opacity.inputPlaceholder
|
|
252
254
|
} : {
|
|
253
255
|
opacity: o ? 0.42 : 0.5
|
|
254
256
|
},
|
|
255
|
-
transition:
|
|
256
|
-
duration:
|
|
257
|
+
transition: t.transitions.create("opacity", {
|
|
258
|
+
duration: t.transitions.duration.shorter
|
|
257
259
|
})
|
|
258
|
-
},
|
|
260
|
+
}, c = {
|
|
259
261
|
opacity: "0 !important"
|
|
260
|
-
},
|
|
261
|
-
opacity:
|
|
262
|
+
}, m = t.vars ? {
|
|
263
|
+
opacity: t.vars.opacity.inputPlaceholder
|
|
262
264
|
} : {
|
|
263
265
|
opacity: o ? 0.42 : 0.5
|
|
264
266
|
};
|
|
@@ -279,10 +281,10 @@ const Ye = (n, o) => {
|
|
|
279
281
|
// Make the flex item shrink with Firefox
|
|
280
282
|
minWidth: 0,
|
|
281
283
|
width: "100%",
|
|
282
|
-
"&::-webkit-input-placeholder":
|
|
283
|
-
"&::-moz-placeholder":
|
|
284
|
+
"&::-webkit-input-placeholder": n,
|
|
285
|
+
"&::-moz-placeholder": n,
|
|
284
286
|
// Firefox 19+
|
|
285
|
-
"&::-ms-input-placeholder":
|
|
287
|
+
"&::-ms-input-placeholder": n,
|
|
286
288
|
// Edge
|
|
287
289
|
"&:focus": {
|
|
288
290
|
outline: 0
|
|
@@ -296,28 +298,28 @@ const Ye = (n, o) => {
|
|
|
296
298
|
WebkitAppearance: "none"
|
|
297
299
|
},
|
|
298
300
|
// Show and hide the placeholder logic
|
|
299
|
-
[`label[data-shrink=false] + .${
|
|
300
|
-
"&::-webkit-input-placeholder":
|
|
301
|
-
"&::-moz-placeholder":
|
|
301
|
+
[`label[data-shrink=false] + .${ee.formControl} &`]: {
|
|
302
|
+
"&::-webkit-input-placeholder": c,
|
|
303
|
+
"&::-moz-placeholder": c,
|
|
302
304
|
// Firefox 19+
|
|
303
|
-
"&::-ms-input-placeholder":
|
|
305
|
+
"&::-ms-input-placeholder": c,
|
|
304
306
|
// Edge
|
|
305
|
-
"&:focus::-webkit-input-placeholder":
|
|
306
|
-
"&:focus::-moz-placeholder":
|
|
307
|
+
"&:focus::-webkit-input-placeholder": m,
|
|
308
|
+
"&:focus::-moz-placeholder": m,
|
|
307
309
|
// Firefox 19+
|
|
308
|
-
"&:focus::-ms-input-placeholder":
|
|
310
|
+
"&:focus::-ms-input-placeholder": m
|
|
309
311
|
// Edge
|
|
310
312
|
},
|
|
311
|
-
[`&.${
|
|
313
|
+
[`&.${ee.disabled}`]: {
|
|
312
314
|
opacity: 1,
|
|
313
315
|
// Reset iOS opacity
|
|
314
|
-
WebkitTextFillColor: (
|
|
316
|
+
WebkitTextFillColor: (t.vars || t).palette.text.disabled
|
|
315
317
|
// Fix opacity Safari bug
|
|
316
318
|
},
|
|
317
319
|
variants: [{
|
|
318
320
|
props: ({
|
|
319
|
-
ownerState:
|
|
320
|
-
}) => !
|
|
321
|
+
ownerState: d
|
|
322
|
+
}) => !d.disableInjectingGlobalStyles,
|
|
321
323
|
style: {
|
|
322
324
|
animationName: "mui-auto-fill-cancel",
|
|
323
325
|
animationDuration: "10ms",
|
|
@@ -335,8 +337,8 @@ const Ye = (n, o) => {
|
|
|
335
337
|
}
|
|
336
338
|
}, {
|
|
337
339
|
props: ({
|
|
338
|
-
ownerState:
|
|
339
|
-
}) =>
|
|
340
|
+
ownerState: d
|
|
341
|
+
}) => d.multiline,
|
|
340
342
|
style: {
|
|
341
343
|
height: "auto",
|
|
342
344
|
resize: "none",
|
|
@@ -353,7 +355,7 @@ const Ye = (n, o) => {
|
|
|
353
355
|
}
|
|
354
356
|
}]
|
|
355
357
|
};
|
|
356
|
-
})),
|
|
358
|
+
})), ye = Pe({
|
|
357
359
|
"@keyframes mui-auto-fill": {
|
|
358
360
|
from: {
|
|
359
361
|
display: "block"
|
|
@@ -364,192 +366,192 @@ const Ye = (n, o) => {
|
|
|
364
366
|
display: "block"
|
|
365
367
|
}
|
|
366
368
|
}
|
|
367
|
-
}),
|
|
368
|
-
const
|
|
369
|
+
}), Xe = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
370
|
+
const c = je({
|
|
369
371
|
props: o,
|
|
370
372
|
name: "MuiInputBase"
|
|
371
373
|
}), {
|
|
372
|
-
"aria-describedby":
|
|
373
|
-
autoComplete:
|
|
374
|
+
"aria-describedby": m,
|
|
375
|
+
autoComplete: d,
|
|
374
376
|
autoFocus: R,
|
|
375
377
|
className: T,
|
|
376
|
-
color:
|
|
377
|
-
components:
|
|
378
|
+
color: B,
|
|
379
|
+
components: x = {},
|
|
378
380
|
componentsProps: p = {},
|
|
379
381
|
defaultValue: O,
|
|
380
|
-
disabled:
|
|
381
|
-
disableInjectingGlobalStyles:
|
|
382
|
-
endAdornment:
|
|
383
|
-
error:
|
|
384
|
-
fullWidth:
|
|
385
|
-
id:
|
|
386
|
-
inputComponent:
|
|
387
|
-
inputProps:
|
|
388
|
-
inputRef:
|
|
389
|
-
margin:
|
|
390
|
-
maxRows:
|
|
391
|
-
minRows:
|
|
382
|
+
disabled: f,
|
|
383
|
+
disableInjectingGlobalStyles: C,
|
|
384
|
+
endAdornment: g,
|
|
385
|
+
error: z,
|
|
386
|
+
fullWidth: S = !1,
|
|
387
|
+
id: N,
|
|
388
|
+
inputComponent: L = "input",
|
|
389
|
+
inputProps: r = {},
|
|
390
|
+
inputRef: i,
|
|
391
|
+
margin: y,
|
|
392
|
+
maxRows: u,
|
|
393
|
+
minRows: H,
|
|
392
394
|
multiline: M = !1,
|
|
393
|
-
name:
|
|
394
|
-
onBlur:
|
|
395
|
-
onChange:
|
|
396
|
-
onClick:
|
|
397
|
-
onFocus:
|
|
398
|
-
onKeyDown:
|
|
399
|
-
onKeyUp:
|
|
400
|
-
placeholder:
|
|
401
|
-
readOnly:
|
|
395
|
+
name: V,
|
|
396
|
+
onBlur: w,
|
|
397
|
+
onChange: E,
|
|
398
|
+
onClick: h,
|
|
399
|
+
onFocus: P,
|
|
400
|
+
onKeyDown: U,
|
|
401
|
+
onKeyUp: Ce,
|
|
402
|
+
placeholder: Se,
|
|
403
|
+
readOnly: _,
|
|
402
404
|
renderSuffix: ne,
|
|
403
|
-
rows:
|
|
404
|
-
size:
|
|
405
|
-
slotProps:
|
|
406
|
-
slots:
|
|
407
|
-
startAdornment:
|
|
408
|
-
type:
|
|
409
|
-
value:
|
|
410
|
-
...
|
|
411
|
-
} =
|
|
412
|
-
current:
|
|
413
|
-
} =
|
|
414
|
-
process.env.NODE_ENV !== "production" &&
|
|
405
|
+
rows: W,
|
|
406
|
+
size: eo,
|
|
407
|
+
slotProps: re = {},
|
|
408
|
+
slots: ie = {},
|
|
409
|
+
startAdornment: k,
|
|
410
|
+
type: ae = "text",
|
|
411
|
+
value: Re,
|
|
412
|
+
...Te
|
|
413
|
+
} = c, D = r.value != null ? r.value : Re, {
|
|
414
|
+
current: K
|
|
415
|
+
} = l.useRef(D != null), I = l.useRef(), Oe = l.useCallback((a) => {
|
|
416
|
+
process.env.NODE_ENV !== "production" && a && a.nodeName !== "INPUT" && !a.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(`
|
|
415
417
|
`));
|
|
416
|
-
}, []),
|
|
417
|
-
process.env.NODE_ENV !== "production" &&
|
|
418
|
-
if (
|
|
419
|
-
return
|
|
420
|
-
}, [
|
|
421
|
-
const
|
|
422
|
-
props:
|
|
423
|
-
muiFormControl:
|
|
418
|
+
}, []), Ee = we(I, i, r.ref, Oe), [$, q] = l.useState(!1), s = He();
|
|
419
|
+
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
420
|
+
if (s)
|
|
421
|
+
return s.registerEffect();
|
|
422
|
+
}, [s]);
|
|
423
|
+
const b = Be({
|
|
424
|
+
props: c,
|
|
425
|
+
muiFormControl: s,
|
|
424
426
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
425
427
|
});
|
|
426
|
-
|
|
427
|
-
!
|
|
428
|
-
}, [
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
}, [
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
value:
|
|
428
|
+
b.focused = s ? s.focused : $, l.useEffect(() => {
|
|
429
|
+
!s && f && $ && (q(!1), w && w());
|
|
430
|
+
}, [s, f, $, w]);
|
|
431
|
+
const G = s && s.onFilled, Y = s && s.onEmpty, F = l.useCallback((a) => {
|
|
432
|
+
We(a) ? G && G() : Y && Y();
|
|
433
|
+
}, [G, Y]);
|
|
434
|
+
te(() => {
|
|
435
|
+
K && F({
|
|
436
|
+
value: D
|
|
435
437
|
});
|
|
436
|
-
}, [
|
|
437
|
-
const Ie = (
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
},
|
|
442
|
-
if (!
|
|
443
|
-
const de =
|
|
438
|
+
}, [D, F, K]);
|
|
439
|
+
const Ie = (a) => {
|
|
440
|
+
P && P(a), r.onFocus && r.onFocus(a), s && s.onFocus ? s.onFocus(a) : q(!0);
|
|
441
|
+
}, ze = (a) => {
|
|
442
|
+
w && w(a), r.onBlur && r.onBlur(a), s && s.onBlur ? s.onBlur(a) : q(!1);
|
|
443
|
+
}, Ne = (a, ...ce) => {
|
|
444
|
+
if (!K) {
|
|
445
|
+
const de = a.target || I.current;
|
|
444
446
|
if (de == null)
|
|
445
|
-
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." :
|
|
446
|
-
|
|
447
|
+
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." : Ae(1));
|
|
448
|
+
F({
|
|
447
449
|
value: de.value
|
|
448
450
|
});
|
|
449
451
|
}
|
|
450
|
-
|
|
452
|
+
r.onChange && r.onChange(a, ...ce), E && E(a, ...ce);
|
|
451
453
|
};
|
|
452
|
-
|
|
453
|
-
|
|
454
|
+
l.useEffect(() => {
|
|
455
|
+
F(I.current);
|
|
454
456
|
}, []);
|
|
455
|
-
const
|
|
456
|
-
I.current &&
|
|
457
|
+
const ke = (a) => {
|
|
458
|
+
I.current && a.currentTarget === a.target && I.current.focus(), h && h(a);
|
|
457
459
|
};
|
|
458
|
-
let
|
|
459
|
-
M &&
|
|
460
|
+
let Z = L, v = r;
|
|
461
|
+
M && Z === "input" && (W ? (process.env.NODE_ENV !== "production" && (H || u) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), v = {
|
|
460
462
|
type: void 0,
|
|
461
|
-
minRows:
|
|
462
|
-
maxRows:
|
|
463
|
+
minRows: W,
|
|
464
|
+
maxRows: W,
|
|
463
465
|
...v
|
|
464
466
|
}) : v = {
|
|
465
467
|
type: void 0,
|
|
466
|
-
maxRows:
|
|
467
|
-
minRows:
|
|
468
|
+
maxRows: u,
|
|
469
|
+
minRows: H,
|
|
468
470
|
...v
|
|
469
|
-
},
|
|
470
|
-
const
|
|
471
|
-
|
|
471
|
+
}, Z = xe);
|
|
472
|
+
const Fe = (a) => {
|
|
473
|
+
F(a.animationName === "mui-auto-fill-cancel" ? I.current : {
|
|
472
474
|
value: "x"
|
|
473
475
|
});
|
|
474
476
|
};
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}, [
|
|
477
|
+
l.useEffect(() => {
|
|
478
|
+
s && s.setAdornedStart(!!k);
|
|
479
|
+
}, [s, k]);
|
|
478
480
|
const J = {
|
|
479
|
-
...
|
|
480
|
-
color:
|
|
481
|
-
disabled:
|
|
482
|
-
endAdornment:
|
|
483
|
-
error:
|
|
484
|
-
focused:
|
|
485
|
-
formControl:
|
|
486
|
-
fullWidth:
|
|
487
|
-
hiddenLabel:
|
|
481
|
+
...c,
|
|
482
|
+
color: b.color || "primary",
|
|
483
|
+
disabled: b.disabled,
|
|
484
|
+
endAdornment: g,
|
|
485
|
+
error: b.error,
|
|
486
|
+
focused: b.focused,
|
|
487
|
+
formControl: s,
|
|
488
|
+
fullWidth: S,
|
|
489
|
+
hiddenLabel: b.hiddenLabel,
|
|
488
490
|
multiline: M,
|
|
489
|
-
size:
|
|
490
|
-
startAdornment:
|
|
491
|
-
type:
|
|
492
|
-
},
|
|
491
|
+
size: b.size,
|
|
492
|
+
startAdornment: k,
|
|
493
|
+
type: ae
|
|
494
|
+
}, se = Ze(J), le = ie.root || x.Root || Je, Q = re.root || p.root || {}, ue = ie.input || x.Input || Qe;
|
|
493
495
|
return v = {
|
|
494
496
|
...v,
|
|
495
|
-
...
|
|
496
|
-
}, /* @__PURE__ */
|
|
497
|
-
children: [!
|
|
497
|
+
...re.input ?? p.input
|
|
498
|
+
}, /* @__PURE__ */ oe(l.Fragment, {
|
|
499
|
+
children: [!C && typeof ye == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
498
500
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
499
|
-
(
|
|
500
|
-
...
|
|
501
|
-
ref:
|
|
502
|
-
onClick:
|
|
503
|
-
...
|
|
504
|
-
...!
|
|
501
|
+
(be || (be = /* @__PURE__ */ A(ye, {}))), /* @__PURE__ */ oe(le, {
|
|
502
|
+
...Q,
|
|
503
|
+
ref: n,
|
|
504
|
+
onClick: ke,
|
|
505
|
+
...Te,
|
|
506
|
+
...!fe(le) && {
|
|
505
507
|
ownerState: {
|
|
506
508
|
...J,
|
|
507
|
-
...
|
|
509
|
+
...Q.ownerState
|
|
508
510
|
}
|
|
509
511
|
},
|
|
510
|
-
className:
|
|
511
|
-
children: [
|
|
512
|
+
className: pe(se.root, Q.className, T, _ && "MuiInputBase-readOnly"),
|
|
513
|
+
children: [k, /* @__PURE__ */ A(Me.Provider, {
|
|
512
514
|
value: null,
|
|
513
|
-
children: /* @__PURE__ */ A(
|
|
514
|
-
"aria-invalid":
|
|
515
|
-
"aria-describedby":
|
|
516
|
-
autoComplete:
|
|
515
|
+
children: /* @__PURE__ */ A(ue, {
|
|
516
|
+
"aria-invalid": b.error,
|
|
517
|
+
"aria-describedby": m,
|
|
518
|
+
autoComplete: d,
|
|
517
519
|
autoFocus: R,
|
|
518
520
|
defaultValue: O,
|
|
519
|
-
disabled:
|
|
520
|
-
id:
|
|
521
|
-
onAnimationStart:
|
|
522
|
-
name:
|
|
523
|
-
placeholder:
|
|
524
|
-
readOnly:
|
|
525
|
-
required:
|
|
526
|
-
rows:
|
|
527
|
-
value:
|
|
528
|
-
onKeyDown:
|
|
529
|
-
onKeyUp:
|
|
530
|
-
type:
|
|
521
|
+
disabled: b.disabled,
|
|
522
|
+
id: N,
|
|
523
|
+
onAnimationStart: Fe,
|
|
524
|
+
name: V,
|
|
525
|
+
placeholder: Se,
|
|
526
|
+
readOnly: _,
|
|
527
|
+
required: b.required,
|
|
528
|
+
rows: W,
|
|
529
|
+
value: D,
|
|
530
|
+
onKeyDown: U,
|
|
531
|
+
onKeyUp: Ce,
|
|
532
|
+
type: ae,
|
|
531
533
|
...v,
|
|
532
|
-
...!
|
|
533
|
-
as:
|
|
534
|
+
...!fe(ue) && {
|
|
535
|
+
as: Z,
|
|
534
536
|
ownerState: {
|
|
535
537
|
...J,
|
|
536
538
|
...v.ownerState
|
|
537
539
|
}
|
|
538
540
|
},
|
|
539
|
-
ref:
|
|
540
|
-
className:
|
|
541
|
-
onBlur:
|
|
542
|
-
onChange:
|
|
541
|
+
ref: Ee,
|
|
542
|
+
className: pe(se.input, v.className, _ && "MuiInputBase-readOnly"),
|
|
543
|
+
onBlur: ze,
|
|
544
|
+
onChange: Ne,
|
|
543
545
|
onFocus: Ie
|
|
544
546
|
})
|
|
545
|
-
}),
|
|
546
|
-
...
|
|
547
|
-
startAdornment:
|
|
547
|
+
}), g, ne ? ne({
|
|
548
|
+
...b,
|
|
549
|
+
startAdornment: k
|
|
548
550
|
}) : null]
|
|
549
551
|
})]
|
|
550
552
|
});
|
|
551
553
|
});
|
|
552
|
-
process.env.NODE_ENV !== "production" && (
|
|
554
|
+
process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
553
555
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
554
556
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
555
557
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -586,7 +588,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
586
588
|
/**
|
|
587
589
|
* The components used for each slot inside.
|
|
588
590
|
*
|
|
589
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
591
|
+
* @deprecated use the `slots` 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.
|
|
590
592
|
*
|
|
591
593
|
* @default {}
|
|
592
594
|
*/
|
|
@@ -598,7 +600,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
598
600
|
* The extra props for the slot components.
|
|
599
601
|
* You can override the existing props or add new ones.
|
|
600
602
|
*
|
|
601
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
603
|
+
* @deprecated use the `slotProps` 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.
|
|
602
604
|
*
|
|
603
605
|
* @default {}
|
|
604
606
|
*/
|
|
@@ -644,7 +646,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
644
646
|
* Either a string to use a HTML element or a component.
|
|
645
647
|
* @default 'input'
|
|
646
648
|
*/
|
|
647
|
-
inputComponent:
|
|
649
|
+
inputComponent: Ke,
|
|
648
650
|
/**
|
|
649
651
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
650
652
|
* @default {}
|
|
@@ -653,7 +655,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
653
655
|
/**
|
|
654
656
|
* Pass a ref to the `input` element.
|
|
655
657
|
*/
|
|
656
|
-
inputRef:
|
|
658
|
+
inputRef: _e,
|
|
657
659
|
/**
|
|
658
660
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
659
661
|
* FormControl.
|
|
@@ -778,10 +780,9 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
778
780
|
value: e.any
|
|
779
781
|
});
|
|
780
782
|
export {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
Ye as r
|
|
783
|
+
Xe as I,
|
|
784
|
+
Je as a,
|
|
785
|
+
Qe as b,
|
|
786
|
+
Ye as i,
|
|
787
|
+
Ge as r
|
|
787
788
|
};
|