@cgi-learning-hub/ui 1.5.0 → 1.5.1-dev.1744639457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert-5zQ9TB22.cjs +1 -0
- package/dist/{Alert-D7eKsj1P.js → Alert-CDbAJ9jP.js} +27 -28
- package/dist/Autocomplete-2DWwLqO5.cjs +6 -0
- package/dist/{Autocomplete-Cfz4sLy8.js → Autocomplete-DO8kdiDn.js} +704 -665
- package/dist/Backdrop-Be5Hv5U8.cjs +1 -0
- package/dist/{Backdrop-COiz4sPF.js → Backdrop-CRrNkGxU.js} +18 -18
- package/dist/{Box-C-j-U8SH.js → Box-2IEW8Uij.js} +12 -12
- package/dist/Box-Bl24J58B.cjs +1 -0
- package/dist/Button-CZTPCtLu.cjs +1 -0
- package/dist/{Button-CQQdMCSm.js → Button-DYWfAsGe.js} +114 -148
- package/dist/{ButtonBase-CZFKUUHD.js → ButtonBase-BZXGvriS.js} +24 -24
- package/dist/{ButtonBase-NqQjeQ4X.cjs → ButtonBase-DDgwUJIY.cjs} +1 -1
- package/dist/CardContent-CCMZ6TlJ.cjs +1 -0
- package/dist/{CardContent-sX9Bw4Ke.js → CardContent-oRdx06Ln.js} +5 -5
- package/dist/{Checkbox-1Zr36vDa.js → Checkbox-DMnS1qrF.js} +95 -68
- package/dist/Checkbox-Dsa-pj_7.cjs +1 -0
- package/dist/Chip-BJSNxQBQ.cjs +1 -0
- package/dist/{Chip-BsErraqe.js → Chip-CacnC2L1.js} +53 -54
- package/dist/CircularProgress-XGMwsxSL.cjs +28 -0
- package/dist/{CircularProgress-BBHGA0JX.js → CircularProgress-_VZwmayK.js} +28 -29
- package/dist/{Close-r-ZUhk0-.js → Close-CSvE0tu1.js} +1 -1
- package/dist/{Close-ZXg7X3Tz.cjs → Close-Czm0dlR9.cjs} +1 -1
- package/dist/{CloseRounded-CWmxueMc.cjs → CloseRounded-BkPBIz0q.cjs} +1 -1
- package/dist/{CloseRounded-B-eaQsyM.js → CloseRounded-CEX-NsA7.js} +1 -1
- package/dist/CustomTreeItem-CI47uzgL.cjs +3 -0
- package/dist/{CustomTreeItem-BpAK85gf.js → CustomTreeItem-DTV3xokL.js} +287 -289
- package/dist/{DatePicker-CWMXTgRG.js → DatePicker-C-toYUpc.js} +995 -1002
- package/dist/DatePicker-DbH5IN_w.cjs +13 -0
- package/dist/{DefaultPropsProvider-CXfMJdg8.js → DefaultPropsProvider-Bg-6nX-u.js} +53 -53
- package/dist/DefaultPropsProvider-DLSItMqn.cjs +1 -0
- package/dist/{Delete-CpTtpM4U.cjs → Delete-C0hR-twe.cjs} +1 -1
- package/dist/{Delete-DKn2lIDB.js → Delete-Pl5O0eBK.js} +1 -1
- package/dist/{Dialog-pU1ZAttp.js → Dialog-BGrQDZXr.js} +162 -169
- package/dist/Dialog-D1VJ5jXx.cjs +1 -0
- package/dist/DialogContent-DqdeAbSs.cjs +1 -0
- package/dist/{DialogContent-BEgapieO.js → DialogContent-ZiO3fkfO.js} +3 -3
- package/dist/DialogTitle-B3MlGamo.cjs +1 -0
- package/dist/{DialogTitle-Dcls3mcZ.js → DialogTitle-BiZ7zHp-.js} +7 -7
- package/dist/{Divider-CT4XaEn6.js → Divider-BDN4OyrO.js} +8 -8
- package/dist/Divider-I7KOokm8.cjs +1 -0
- package/dist/{Folder-DoEl37QZ.js → Folder-CF7SX2AD.js} +1 -1
- package/dist/{Folder-DWD_1Fux.cjs → Folder-ExV_xCn6.cjs} +1 -1
- package/dist/{FormLabel-BF6m-_uI.js → FormLabel-DNsUciXe.js} +24 -25
- package/dist/FormLabel-xZr5oZgx.cjs +2 -0
- package/dist/{Grow-Bk7XkPFP.js → Grow-CLBgYoz_.js} +5 -5
- package/dist/Grow-DrEdqZgX.cjs +1 -0
- package/dist/IconButton-C1I_233O.cjs +2 -0
- package/dist/{IconButton-BQW0xjdH.js → IconButton-CT0Plyy5.js} +26 -27
- package/dist/{InputAdornment-C6UfLaud.js → InputAdornment-Ci0BnJ_e.js} +10 -11
- package/dist/InputAdornment-_UPzajRP.cjs +1 -0
- package/dist/InputBase-C-ES3FPH.cjs +3 -0
- package/dist/{InputBase-YOnatBxw.js → InputBase-CJvM-WXJ.js} +261 -256
- package/dist/{Link-C3rf4gqc.js → Link-B6LNMjac.js} +15 -16
- package/dist/Link-BQrFDQ-K.cjs +1 -0
- package/dist/{List-CFInjv2S.js → List-22h7byk_.js} +2 -2
- package/dist/List-Bii833np.cjs +1 -0
- package/dist/{ListItem-BAAZxsu5.js → ListItem-B0syBgS7.js} +17 -17
- package/dist/ListItem-BtjE87R1.cjs +1 -0
- package/dist/ListItemText-Dov-H_Ii.cjs +2 -0
- package/dist/ListItemText-zFoA_mgx.js +845 -0
- package/dist/Menu-4e60iiMU.cjs +7 -0
- package/dist/{Menu-BgO92SV3.js → Menu-B6t_52q7.js} +405 -335
- package/dist/MenuItem-De2MJkYT.cjs +1 -0
- package/dist/{MenuItem-B8eWAj8E.js → MenuItem-KNXRjnwO.js} +14 -14
- package/dist/{Modal-CFv4UMTP.js → Modal-BpJ9BCOo.js} +239 -245
- package/dist/Modal-JAWJUstF.cjs +2 -0
- package/dist/{MoreVert-Dq8BqKg4.js → MoreVert-BtC5XWOR.js} +1 -1
- package/dist/{MoreVert-B_Gz5Gfx.cjs → MoreVert-MSZXYrMO.cjs} +1 -1
- package/dist/{Paper-DeL_n4k9.js → Paper-BTFv1nzl.js} +9 -9
- package/dist/Paper-CKG165jt.cjs +2 -0
- package/dist/Popper-CyH7Z-lN.cjs +4 -0
- package/dist/{Popper-BKxRTMsO.js → Popper-YJsxmJsm.js} +10 -10
- package/dist/Portal-CtsVKOQ9.js +85 -0
- package/dist/Portal-LP7SUKpU.cjs +1 -0
- package/dist/Radio-BEfQuau1.cjs +1 -0
- package/dist/{Radio-BVfoGshx.js → Radio-Dg73Pnqf.js} +226 -183
- package/dist/RadioGroup-CqCh25ZS.cjs +1 -0
- package/dist/{RadioGroup-DcqRUtV8.js → RadioGroup-jev5E2xJ.js} +20 -20
- package/dist/{Select-Vnsr3NSv.js → Select-21Pm-BzJ.js} +164 -165
- package/dist/Select-CxofSqZJ.cjs +3 -0
- package/dist/{Stack-PQFKjbdN.js → Stack-D2Plrf1_.js} +60 -104
- package/dist/Stack-DpH56CPw.cjs +1 -0
- package/dist/Switch-BIGFww3p.cjs +1 -0
- package/dist/{Switch-Bn8zlIOf.js → Switch-CNfK1N1c.js} +167 -108
- package/dist/SwitchBase-BHC3uchj.js +314 -0
- package/dist/SwitchBase-DA079uiU.cjs +1 -0
- package/dist/{Tab-A0R3g6rB.js → Tab-BbWlzMyp.js} +597 -537
- package/dist/Tab-BsIC620i.cjs +4 -0
- package/dist/{TextField-Di6Nfe3O.js → TextField-BjzDdsW_.js} +133 -124
- package/dist/TextField-DFr8lsXU.cjs +1 -0
- package/dist/ToggleButtonGroup-BEvrUL8a.cjs +138 -0
- package/dist/{ToggleButtonGroup-B-zfmsAO.js → ToggleButtonGroup-C_O-zqof.js} +1995 -1818
- package/dist/{Tooltip-KTkLBRQj.js → Tooltip-Bf5VDDeG.js} +34 -35
- package/dist/Tooltip-DJC7nrsk.cjs +4 -0
- package/dist/{Typography-DZ11k9cZ.js → Typography-BNt9mZKm.js} +13 -14
- package/dist/Typography-DOpE-TJz.cjs +1 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +15 -15
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.d.ts +1 -0
- package/dist/components/FolderCard/FolderCard.es.js +26 -17
- package/dist/components/FolderCard/styles.cjs.js +1 -1
- package/dist/components/FolderCard/styles.d.ts +4 -0
- package/dist/components/FolderCard/styles.es.js +9 -5
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.d.ts +1 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +21 -19
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +49 -44
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +7 -7
- package/dist/components/TreeView/TreeView.es.js +323 -319
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/style.cjs.js +1 -1
- package/dist/components/TreeView/style.es.js +24 -18
- package/dist/components/TreeView/types.d.ts +5 -2
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +264 -266
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.d.ts +2 -0
- package/dist/components/stories/TreeView.stories.es.js +517 -268
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BFqOnlgU.js → createSvgIcon-CCutbgLb.js} +54 -55
- package/dist/createSvgIcon-DPiiTkVU.cjs +1 -0
- package/dist/dividerClasses-B_bu1fey.cjs +1 -0
- package/dist/{dividerClasses-BYkvalOn.js → dividerClasses-hlXEfEZK.js} +1 -1
- package/dist/{elementTypeAcceptingRef-1usJq_B8.js → elementTypeAcceptingRef-COpcDx5q.js} +1 -1
- package/dist/elementTypeAcceptingRef-DRPcjZd5.cjs +1 -0
- package/dist/{extendSxProp-D_IkoDXB.js → extendSxProp-0G38SSpC.js} +1 -1
- package/dist/extendSxProp-BZI5kY-d.cjs +1 -0
- package/dist/{getReactElementRef-DtLerx40.js → getReactElementRef-C6oFed6n.js} +1 -1
- package/dist/getReactElementRef-EDbO4rJt.cjs +1 -0
- package/dist/{generateUtilityClasses-CqzQXpT_.js → identifier-BJqC6EXa.js} +833 -865
- package/dist/identifier-gJdGmHeC.cjs +74 -0
- package/dist/{index-CFIk4hVM.js → index-BOAF-ZZq.js} +4 -4
- package/dist/index-Cfd-LNZn.cjs +1 -0
- package/dist/index-D14TzUgK.cjs +1 -0
- package/dist/{index-sDFEVHTg.js → index-DP697UN9.js} +1 -1
- package/dist/index-Dmu1HrwE.cjs +5 -0
- package/dist/{index-C7WfZsMe.js → index-gxOBDuBW.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +264 -266
- package/dist/{listItemTextClasses-C0D3xQur.js → listItemTextClasses-DBxyCmso.js} +1 -1
- package/dist/listItemTextClasses-gsrBifRw.cjs +1 -0
- package/dist/{memoTheme-B0xVysYu.js → memoTheme-D_Qap2ZW.js} +1 -1
- package/dist/{memoTheme-WwIyYqBX.cjs → memoTheme-GOMOSdXJ.cjs} +1 -1
- package/dist/mergeSlotProps-BCz8yLkw.cjs +1 -0
- package/dist/mergeSlotProps-BSFlgsYC.js +62 -0
- package/dist/refType-53jD7LEO.cjs +1 -0
- package/dist/{refType-BvSJNaoq.js → refType-DRBJ18fO.js} +1 -1
- package/dist/styled-C7OKoThH.cjs +1 -0
- package/dist/styled-DpPa0vDp.js +5 -0
- package/dist/useEventCallback-BxpcFap0.cjs +1 -0
- package/dist/useEventCallback-Yoj9nCug.js +15 -0
- package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
- package/dist/useForkRef-u29GSuCu.js +27 -0
- package/dist/useSlot-DhC6EPU2.js +125 -0
- package/dist/useSlot-zJFQDOgm.cjs +1 -0
- package/dist/{useSlotProps-Ceyorp-u.js → useSlotProps-Bos9nSja.js} +2 -2
- package/dist/useSlotProps-CuEZ7HQe.cjs +1 -0
- package/dist/{useTheme-2JCMQS-E.js → useTheme-B1xvds8x.js} +1 -1
- package/dist/useTheme-BJZcQSBU.cjs +1 -0
- package/dist/useTheme-Dt-VOIyT.js +11 -0
- package/dist/useTheme-NQRIebh0.cjs +1 -0
- package/dist/useThemeProps-CxMYNgfp.js +17 -0
- package/dist/{useThemeProps-Cuazh32X.js → useThemeProps-DSVFwH3A.js} +4 -4
- package/dist/useThemeProps-DnpiVoRo.cjs +1 -0
- package/dist/{useThemeProps-RdxbcMsR.cjs → useThemeProps-jU-2XOjK.cjs} +1 -1
- package/dist/utils-B2EQZFZP.cjs +1 -0
- package/dist/{utils-BVg32WSe.js → utils-qwVZGgXz.js} +1 -1
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +10 -10
- package/dist/Alert-CvizDCvx.cjs +0 -1
- package/dist/Autocomplete-DjU6i3zL.cjs +0 -6
- package/dist/Backdrop-BM-OE2Q_.cjs +0 -1
- package/dist/Box-BmfpLwYG.cjs +0 -1
- package/dist/Button-BGWvL_UD.cjs +0 -1
- package/dist/CardContent-GHLuvxgm.cjs +0 -1
- package/dist/Checkbox-BZYoJieY.cjs +0 -1
- package/dist/Chip-Cu_SZxrx.cjs +0 -1
- package/dist/CircularProgress-CdS7-HOv.cjs +0 -28
- package/dist/CustomTreeItem-BIl2yiro.cjs +0 -4
- package/dist/DatePicker-tyDzcyzu.cjs +0 -14
- package/dist/DefaultPropsProvider-BTnRBr0O.cjs +0 -1
- package/dist/Dialog-DIHzs0ro.cjs +0 -1
- package/dist/DialogContent-B-9ga3Wv.cjs +0 -1
- package/dist/DialogTitle-B_UN_oL2.cjs +0 -1
- package/dist/Divider-iYLSpFUc.cjs +0 -1
- package/dist/FormLabel-Cp2OFw8d.cjs +0 -2
- package/dist/Grow-DXY5DOqR.cjs +0 -1
- package/dist/IconButton-BLZJne06.cjs +0 -2
- package/dist/InputAdornment-C0WI_oQg.cjs +0 -1
- package/dist/InputBase-B3KOyouT.cjs +0 -3
- package/dist/Link-lvpmE2yz.cjs +0 -1
- package/dist/List-PQXGlDbt.cjs +0 -1
- package/dist/ListItem-CWEvdMjN.cjs +0 -1
- package/dist/ListItemText-BhxrnTkb.cjs +0 -1
- package/dist/ListItemText-CADHegDF.js +0 -928
- package/dist/Menu-DBacrp-P.cjs +0 -7
- package/dist/MenuItem-DkcVAo3U.cjs +0 -1
- package/dist/Modal-kUvS-N46.cjs +0 -2
- package/dist/Paper-ByOgFIEE.cjs +0 -2
- package/dist/Popper-CsQqc5DE.cjs +0 -4
- package/dist/Portal-7MKUQzjh.js +0 -81
- package/dist/Portal-DhGy1jKe.cjs +0 -1
- package/dist/Radio-DG-k6cXx.cjs +0 -1
- package/dist/RadioGroup-Dd0mX-H2.cjs +0 -1
- package/dist/Select-b6liJFDI.cjs +0 -3
- package/dist/Stack-gtxG2YLo.cjs +0 -1
- package/dist/Switch-BlwDxL6O.cjs +0 -1
- package/dist/SwitchBase-DtKlxrES.cjs +0 -1
- package/dist/SwitchBase-QwOXoy8f.js +0 -262
- package/dist/Tab-Dx7V4E6B.cjs +0 -4
- package/dist/TextField-CB2n4aV8.cjs +0 -1
- package/dist/ToggleButtonGroup-D3bdznCl.cjs +0 -137
- package/dist/Tooltip-D0jvnXYu.cjs +0 -4
- package/dist/Typography-3CpuuLtj.cjs +0 -1
- package/dist/capitalize-B3tmp8MO.cjs +0 -1
- package/dist/capitalize-Bs7Xs33U.js +0 -9
- package/dist/createSvgIcon-2wwaxLPT.cjs +0 -1
- package/dist/dividerClasses-izm7KFVg.cjs +0 -1
- package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +0 -1
- package/dist/extendSxProp-Bv3E507G.cjs +0 -1
- package/dist/generateUtilityClasses-KugHyZhN.cjs +0 -75
- package/dist/getReactElementRef-D7IvykPI.cjs +0 -1
- package/dist/index-9hEUqvaJ.cjs +0 -1
- package/dist/index-BomeQRLD.cjs +0 -5
- package/dist/index-DS8G_wjP.cjs +0 -1
- package/dist/listItemTextClasses-CQXcckDA.cjs +0 -1
- package/dist/refType-D-n-tVSl.cjs +0 -1
- package/dist/resolveComponentProps-Byi_59AN.cjs +0 -1
- package/dist/resolveComponentProps-Ctw0-dUN.js +0 -80
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useSlot-CGbU9jGm.cjs +0 -1
- package/dist/useSlot-CqjfyGd9.js +0 -48
- package/dist/useSlotProps-DfO7r_4Y.cjs +0 -1
- package/dist/useTheme-B6wow4M9.cjs +0 -1
- package/dist/useTheme-DepbBZga.js +0 -11
- package/dist/useTheme-MahNaB8C.cjs +0 -1
- package/dist/useThemeProps-BqypsO1h.cjs +0 -1
- package/dist/useThemeProps-Drd5oJEF.js +0 -17
- package/dist/utils-CUU5fjzL.cjs +0 -1
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { P as e, G as
|
|
3
|
-
import { i as
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { P as e, F as Ae, G as Be, H as pe, K as X, Y as He } from "./identifier-BJqC6EXa.js";
|
|
3
|
+
import { i as fe } from "./isHostComponent-kiaBvYVo.js";
|
|
4
4
|
import { f as Me } from "./formControlState-vgaj2ksH.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { g as
|
|
7
|
-
import { m as
|
|
8
|
-
import { i as
|
|
9
|
-
import { jsxs as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { o as
|
|
14
|
-
import { d as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return parseInt(n, 10) || 0;
|
|
5
|
+
import { u as Pe, F as We } from "./useFormControl-CatNKXAi.js";
|
|
6
|
+
import { g as De } from "./index-BOAF-ZZq.js";
|
|
7
|
+
import { m as ge } from "./memoTheme-D_Qap2ZW.js";
|
|
8
|
+
import { i as Le } from "./utils-DWqc1kRF.js";
|
|
9
|
+
import { jsxs as ee, jsx as A } from "react/jsx-runtime";
|
|
10
|
+
import { u as je, s as ve, c as Ue } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
11
|
+
import { u as we } from "./useForkRef-u29GSuCu.js";
|
|
12
|
+
import { u as Ve, a as oe } from "./useEventCallback-Yoj9nCug.js";
|
|
13
|
+
import { o as me } from "./ownerWindow-niciwP7I.js";
|
|
14
|
+
import { d as _e } from "./debounce-46wSf_lW.js";
|
|
15
|
+
import { r as Ke } from "./refType-DRBJ18fO.js";
|
|
16
|
+
import { e as $e } from "./elementTypeAcceptingRef-COpcDx5q.js";
|
|
17
|
+
function L(t) {
|
|
18
|
+
return parseInt(t, 10) || 0;
|
|
20
19
|
}
|
|
21
|
-
const
|
|
20
|
+
const Ge = {
|
|
22
21
|
shadow: {
|
|
23
22
|
// Visibility needed to hide the extra text area on iPads
|
|
24
23
|
visibility: "hidden",
|
|
@@ -33,89 +32,95 @@ const $e = {
|
|
|
33
32
|
transform: "translateZ(0)"
|
|
34
33
|
}
|
|
35
34
|
};
|
|
36
|
-
function
|
|
37
|
-
for (const o in
|
|
35
|
+
function qe(t) {
|
|
36
|
+
for (const o in t)
|
|
38
37
|
return !1;
|
|
39
38
|
return !0;
|
|
40
39
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
40
|
+
function he(t) {
|
|
41
|
+
return qe(t) || t.outerHeightStyle === 0 && !t.overflowing;
|
|
43
42
|
}
|
|
44
|
-
const
|
|
43
|
+
const Se = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
45
44
|
const {
|
|
46
45
|
onChange: d,
|
|
47
|
-
maxRows:
|
|
46
|
+
maxRows: m,
|
|
48
47
|
minRows: c = 1,
|
|
49
48
|
style: R,
|
|
50
49
|
value: T,
|
|
51
|
-
...
|
|
50
|
+
...B
|
|
52
51
|
} = o, {
|
|
53
|
-
current:
|
|
54
|
-
} =
|
|
55
|
-
const
|
|
56
|
-
if (!
|
|
52
|
+
current: S
|
|
53
|
+
} = l.useRef(T != null), p = l.useRef(null), O = we(n, p), f = l.useRef(null), x = l.useRef(null), g = l.useCallback(() => {
|
|
54
|
+
const r = p.current, i = x.current;
|
|
55
|
+
if (!r || !i)
|
|
57
56
|
return;
|
|
58
|
-
const u =
|
|
57
|
+
const u = me(r).getComputedStyle(r);
|
|
59
58
|
if (u.width === "0px")
|
|
60
59
|
return {
|
|
61
60
|
outerHeightStyle: 0,
|
|
62
61
|
overflowing: !1
|
|
63
62
|
};
|
|
64
|
-
|
|
65
|
-
` && (
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
let
|
|
70
|
-
c && (
|
|
71
|
-
const P =
|
|
63
|
+
i.style.width = u.width, i.value = r.value || o.placeholder || "x", i.value.slice(-1) === `
|
|
64
|
+
` && (i.value += " ");
|
|
65
|
+
const H = u.boxSizing, M = L(u.paddingBottom) + L(u.paddingTop), U = L(u.borderBottomWidth) + L(u.borderTopWidth), w = i.scrollHeight;
|
|
66
|
+
i.value = "x";
|
|
67
|
+
const E = i.scrollHeight;
|
|
68
|
+
let h = w;
|
|
69
|
+
c && (h = Math.max(Number(c) * E, h)), m && (h = Math.min(Number(m) * E, h)), h = Math.max(h, E);
|
|
70
|
+
const P = h + (H === "border-box" ? M + U : 0), V = Math.abs(h - w) <= 1;
|
|
72
71
|
return {
|
|
73
72
|
outerHeightStyle: P,
|
|
74
|
-
overflowing:
|
|
73
|
+
overflowing: V
|
|
75
74
|
};
|
|
76
|
-
}, [
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
75
|
+
}, [m, c, o.placeholder]), z = Ve(() => {
|
|
76
|
+
const r = p.current, i = g();
|
|
77
|
+
if (!r || !i || he(i))
|
|
78
|
+
return !1;
|
|
79
|
+
const y = i.outerHeightStyle;
|
|
80
|
+
return f.current != null && f.current !== y;
|
|
81
|
+
}), C = l.useCallback(() => {
|
|
82
|
+
const r = p.current, i = g();
|
|
83
|
+
if (!r || !i || he(i))
|
|
79
84
|
return;
|
|
80
|
-
const y =
|
|
81
|
-
|
|
82
|
-
}, [
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
85
|
+
const y = i.outerHeightStyle;
|
|
86
|
+
f.current !== y && (f.current = y, r.style.height = `${y}px`), r.style.overflow = i.overflowing ? "hidden" : "";
|
|
87
|
+
}, [g]), F = l.useRef(-1);
|
|
88
|
+
oe(() => {
|
|
89
|
+
const r = _e(C), i = p == null ? void 0 : p.current;
|
|
90
|
+
if (!i)
|
|
86
91
|
return;
|
|
87
|
-
const y =
|
|
88
|
-
y.addEventListener("resize",
|
|
92
|
+
const y = me(i);
|
|
93
|
+
y.addEventListener("resize", r);
|
|
89
94
|
let u;
|
|
90
95
|
return typeof ResizeObserver < "u" && (u = new ResizeObserver(() => {
|
|
91
|
-
u.unobserve(
|
|
92
|
-
u.observe(
|
|
93
|
-
});
|
|
94
|
-
}), u.observe(
|
|
95
|
-
|
|
96
|
+
z() && (u.unobserve(i), cancelAnimationFrame(F.current), C(), F.current = requestAnimationFrame(() => {
|
|
97
|
+
u.observe(i);
|
|
98
|
+
}));
|
|
99
|
+
}), u.observe(i)), () => {
|
|
100
|
+
r.clear(), cancelAnimationFrame(F.current), y.removeEventListener("resize", r), u && u.disconnect();
|
|
96
101
|
};
|
|
97
|
-
}, [
|
|
98
|
-
|
|
102
|
+
}, [g, C, z]), oe(() => {
|
|
103
|
+
C();
|
|
99
104
|
});
|
|
100
|
-
const
|
|
101
|
-
|
|
105
|
+
const j = (r) => {
|
|
106
|
+
S || C(), d && d(r);
|
|
102
107
|
};
|
|
103
|
-
return /* @__PURE__ */
|
|
108
|
+
return /* @__PURE__ */ ee(l.Fragment, {
|
|
104
109
|
children: [/* @__PURE__ */ A("textarea", {
|
|
105
110
|
value: T,
|
|
106
|
-
onChange:
|
|
111
|
+
onChange: j,
|
|
107
112
|
ref: O,
|
|
108
113
|
rows: c,
|
|
109
114
|
style: R,
|
|
110
|
-
...
|
|
115
|
+
...B
|
|
111
116
|
}), /* @__PURE__ */ A("textarea", {
|
|
112
117
|
"aria-hidden": !0,
|
|
113
118
|
className: o.className,
|
|
114
119
|
readOnly: !0,
|
|
115
|
-
ref:
|
|
120
|
+
ref: x,
|
|
116
121
|
tabIndex: -1,
|
|
117
122
|
style: {
|
|
118
|
-
|
|
123
|
+
...Ge.shadow,
|
|
119
124
|
...R,
|
|
120
125
|
paddingTop: 0,
|
|
121
126
|
paddingBottom: 0
|
|
@@ -123,7 +128,7 @@ const ve = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
123
128
|
})]
|
|
124
129
|
});
|
|
125
130
|
});
|
|
126
|
-
process.env.NODE_ENV !== "production" && (
|
|
131
|
+
process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
127
132
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
128
133
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
129
134
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -158,51 +163,51 @@ process.env.NODE_ENV !== "production" && (ve.propTypes = {
|
|
|
158
163
|
*/
|
|
159
164
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
160
165
|
});
|
|
161
|
-
function
|
|
162
|
-
return
|
|
166
|
+
function Ye(t) {
|
|
167
|
+
return Be("MuiInputBase", t);
|
|
163
168
|
}
|
|
164
|
-
const
|
|
165
|
-
var
|
|
166
|
-
const
|
|
169
|
+
const te = Ae("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
170
|
+
var be;
|
|
171
|
+
const Ze = (t, o) => {
|
|
167
172
|
const {
|
|
168
|
-
ownerState:
|
|
169
|
-
} =
|
|
170
|
-
return [o.root,
|
|
171
|
-
}, Je = (
|
|
173
|
+
ownerState: n
|
|
174
|
+
} = t;
|
|
175
|
+
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];
|
|
176
|
+
}, Je = (t, o) => {
|
|
172
177
|
const {
|
|
173
|
-
ownerState:
|
|
174
|
-
} =
|
|
175
|
-
return [o.input,
|
|
176
|
-
},
|
|
178
|
+
ownerState: n
|
|
179
|
+
} = t;
|
|
180
|
+
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];
|
|
181
|
+
}, Qe = (t) => {
|
|
177
182
|
const {
|
|
178
183
|
classes: o,
|
|
179
|
-
color:
|
|
184
|
+
color: n,
|
|
180
185
|
disabled: d,
|
|
181
|
-
error:
|
|
186
|
+
error: m,
|
|
182
187
|
endAdornment: c,
|
|
183
188
|
focused: R,
|
|
184
189
|
formControl: T,
|
|
185
|
-
fullWidth:
|
|
186
|
-
hiddenLabel:
|
|
190
|
+
fullWidth: B,
|
|
191
|
+
hiddenLabel: S,
|
|
187
192
|
multiline: p,
|
|
188
193
|
readOnly: O,
|
|
189
|
-
size:
|
|
190
|
-
startAdornment:
|
|
191
|
-
type:
|
|
192
|
-
} =
|
|
193
|
-
root: ["root", `color${
|
|
194
|
-
input: ["input", d && "disabled",
|
|
194
|
+
size: f,
|
|
195
|
+
startAdornment: x,
|
|
196
|
+
type: g
|
|
197
|
+
} = t, z = {
|
|
198
|
+
root: ["root", `color${X(n)}`, d && "disabled", m && "error", B && "fullWidth", R && "focused", T && "formControl", f && f !== "medium" && `size${X(f)}`, p && "multiline", x && "adornedStart", c && "adornedEnd", S && "hiddenLabel", O && "readOnly"],
|
|
199
|
+
input: ["input", d && "disabled", g === "search" && "inputTypeSearch", p && "inputMultiline", f === "small" && "inputSizeSmall", S && "inputHiddenLabel", x && "inputAdornedStart", c && "inputAdornedEnd", O && "readOnly"]
|
|
195
200
|
};
|
|
196
|
-
return
|
|
197
|
-
},
|
|
201
|
+
return Ue(z, Ye, o);
|
|
202
|
+
}, Xe = ve("div", {
|
|
198
203
|
name: "MuiInputBase",
|
|
199
204
|
slot: "Root",
|
|
200
|
-
overridesResolver:
|
|
201
|
-
})(
|
|
202
|
-
theme:
|
|
205
|
+
overridesResolver: Ze
|
|
206
|
+
})(ge(({
|
|
207
|
+
theme: t
|
|
203
208
|
}) => ({
|
|
204
|
-
...
|
|
205
|
-
color: (
|
|
209
|
+
...t.typography.body1,
|
|
210
|
+
color: (t.vars || t).palette.text.primary,
|
|
206
211
|
lineHeight: "1.4375em",
|
|
207
212
|
// 23px
|
|
208
213
|
boxSizing: "border-box",
|
|
@@ -211,8 +216,8 @@ const Ye = (n, o) => {
|
|
|
211
216
|
cursor: "text",
|
|
212
217
|
display: "inline-flex",
|
|
213
218
|
alignItems: "center",
|
|
214
|
-
[`&.${
|
|
215
|
-
color: (
|
|
219
|
+
[`&.${te.disabled}`]: {
|
|
220
|
+
color: (t.vars || t).palette.text.disabled,
|
|
216
221
|
cursor: "default"
|
|
217
222
|
},
|
|
218
223
|
variants: [{
|
|
@@ -225,8 +230,8 @@ const Ye = (n, o) => {
|
|
|
225
230
|
}, {
|
|
226
231
|
props: ({
|
|
227
232
|
ownerState: o,
|
|
228
|
-
size:
|
|
229
|
-
}) => o.multiline &&
|
|
233
|
+
size: n
|
|
234
|
+
}) => o.multiline && n === "small",
|
|
230
235
|
style: {
|
|
231
236
|
paddingTop: 1
|
|
232
237
|
}
|
|
@@ -238,27 +243,27 @@ const Ye = (n, o) => {
|
|
|
238
243
|
width: "100%"
|
|
239
244
|
}
|
|
240
245
|
}]
|
|
241
|
-
}))),
|
|
246
|
+
}))), eo = ve("input", {
|
|
242
247
|
name: "MuiInputBase",
|
|
243
248
|
slot: "Input",
|
|
244
249
|
overridesResolver: Je
|
|
245
|
-
})(
|
|
246
|
-
theme:
|
|
250
|
+
})(ge(({
|
|
251
|
+
theme: t
|
|
247
252
|
}) => {
|
|
248
|
-
const o =
|
|
253
|
+
const o = t.palette.mode === "light", n = {
|
|
249
254
|
color: "currentColor",
|
|
250
|
-
...
|
|
251
|
-
opacity:
|
|
255
|
+
...t.vars ? {
|
|
256
|
+
opacity: t.vars.opacity.inputPlaceholder
|
|
252
257
|
} : {
|
|
253
258
|
opacity: o ? 0.42 : 0.5
|
|
254
259
|
},
|
|
255
|
-
transition:
|
|
256
|
-
duration:
|
|
260
|
+
transition: t.transitions.create("opacity", {
|
|
261
|
+
duration: t.transitions.duration.shorter
|
|
257
262
|
})
|
|
258
263
|
}, d = {
|
|
259
264
|
opacity: "0 !important"
|
|
260
|
-
},
|
|
261
|
-
opacity:
|
|
265
|
+
}, m = t.vars ? {
|
|
266
|
+
opacity: t.vars.opacity.inputPlaceholder
|
|
262
267
|
} : {
|
|
263
268
|
opacity: o ? 0.42 : 0.5
|
|
264
269
|
};
|
|
@@ -279,10 +284,10 @@ const Ye = (n, o) => {
|
|
|
279
284
|
// Make the flex item shrink with Firefox
|
|
280
285
|
minWidth: 0,
|
|
281
286
|
width: "100%",
|
|
282
|
-
"&::-webkit-input-placeholder":
|
|
283
|
-
"&::-moz-placeholder":
|
|
287
|
+
"&::-webkit-input-placeholder": n,
|
|
288
|
+
"&::-moz-placeholder": n,
|
|
284
289
|
// Firefox 19+
|
|
285
|
-
"&::-ms-input-placeholder":
|
|
290
|
+
"&::-ms-input-placeholder": n,
|
|
286
291
|
// Edge
|
|
287
292
|
"&:focus": {
|
|
288
293
|
outline: 0
|
|
@@ -296,22 +301,22 @@ const Ye = (n, o) => {
|
|
|
296
301
|
WebkitAppearance: "none"
|
|
297
302
|
},
|
|
298
303
|
// Show and hide the placeholder logic
|
|
299
|
-
[`label[data-shrink=false] + .${
|
|
304
|
+
[`label[data-shrink=false] + .${te.formControl} &`]: {
|
|
300
305
|
"&::-webkit-input-placeholder": d,
|
|
301
306
|
"&::-moz-placeholder": d,
|
|
302
307
|
// Firefox 19+
|
|
303
308
|
"&::-ms-input-placeholder": d,
|
|
304
309
|
// Edge
|
|
305
|
-
"&:focus::-webkit-input-placeholder":
|
|
306
|
-
"&:focus::-moz-placeholder":
|
|
310
|
+
"&:focus::-webkit-input-placeholder": m,
|
|
311
|
+
"&:focus::-moz-placeholder": m,
|
|
307
312
|
// Firefox 19+
|
|
308
|
-
"&:focus::-ms-input-placeholder":
|
|
313
|
+
"&:focus::-ms-input-placeholder": m
|
|
309
314
|
// Edge
|
|
310
315
|
},
|
|
311
|
-
[`&.${
|
|
316
|
+
[`&.${te.disabled}`]: {
|
|
312
317
|
opacity: 1,
|
|
313
318
|
// Reset iOS opacity
|
|
314
|
-
WebkitTextFillColor: (
|
|
319
|
+
WebkitTextFillColor: (t.vars || t).palette.text.disabled
|
|
315
320
|
// Fix opacity Safari bug
|
|
316
321
|
},
|
|
317
322
|
variants: [{
|
|
@@ -353,7 +358,7 @@ const Ye = (n, o) => {
|
|
|
353
358
|
}
|
|
354
359
|
}]
|
|
355
360
|
};
|
|
356
|
-
})),
|
|
361
|
+
})), ye = De({
|
|
357
362
|
"@keyframes mui-auto-fill": {
|
|
358
363
|
from: {
|
|
359
364
|
display: "block"
|
|
@@ -364,192 +369,192 @@ const Ye = (n, o) => {
|
|
|
364
369
|
display: "block"
|
|
365
370
|
}
|
|
366
371
|
}
|
|
367
|
-
}),
|
|
368
|
-
const d =
|
|
372
|
+
}), oo = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
373
|
+
const d = je({
|
|
369
374
|
props: o,
|
|
370
375
|
name: "MuiInputBase"
|
|
371
376
|
}), {
|
|
372
|
-
"aria-describedby":
|
|
377
|
+
"aria-describedby": m,
|
|
373
378
|
autoComplete: c,
|
|
374
379
|
autoFocus: R,
|
|
375
380
|
className: T,
|
|
376
|
-
color:
|
|
377
|
-
components:
|
|
381
|
+
color: B,
|
|
382
|
+
components: S = {},
|
|
378
383
|
componentsProps: p = {},
|
|
379
384
|
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:
|
|
385
|
+
disabled: f,
|
|
386
|
+
disableInjectingGlobalStyles: x,
|
|
387
|
+
endAdornment: g,
|
|
388
|
+
error: z,
|
|
389
|
+
fullWidth: C = !1,
|
|
390
|
+
id: F,
|
|
391
|
+
inputComponent: j = "input",
|
|
392
|
+
inputProps: r = {},
|
|
393
|
+
inputRef: i,
|
|
394
|
+
margin: y,
|
|
395
|
+
maxRows: u,
|
|
396
|
+
minRows: H,
|
|
392
397
|
multiline: M = !1,
|
|
393
|
-
name:
|
|
394
|
-
onBlur:
|
|
395
|
-
onChange:
|
|
396
|
-
onClick:
|
|
397
|
-
onFocus:
|
|
398
|
-
onKeyDown:
|
|
398
|
+
name: U,
|
|
399
|
+
onBlur: w,
|
|
400
|
+
onChange: E,
|
|
401
|
+
onClick: h,
|
|
402
|
+
onFocus: P,
|
|
403
|
+
onKeyDown: V,
|
|
399
404
|
onKeyUp: xe,
|
|
400
405
|
placeholder: Ce,
|
|
401
|
-
readOnly:
|
|
406
|
+
readOnly: _,
|
|
402
407
|
renderSuffix: ne,
|
|
403
|
-
rows:
|
|
404
|
-
size:
|
|
405
|
-
slotProps:
|
|
406
|
-
slots:
|
|
407
|
-
startAdornment:
|
|
408
|
-
type:
|
|
409
|
-
value:
|
|
410
|
-
...
|
|
411
|
-
} = d,
|
|
412
|
-
current:
|
|
413
|
-
} =
|
|
414
|
-
process.env.NODE_ENV !== "production" &&
|
|
408
|
+
rows: W,
|
|
409
|
+
size: to,
|
|
410
|
+
slotProps: re = {},
|
|
411
|
+
slots: ie = {},
|
|
412
|
+
startAdornment: N,
|
|
413
|
+
type: ae = "text",
|
|
414
|
+
value: Re,
|
|
415
|
+
...Te
|
|
416
|
+
} = d, D = r.value != null ? r.value : Re, {
|
|
417
|
+
current: K
|
|
418
|
+
} = l.useRef(D != null), I = l.useRef(), Oe = l.useCallback((a) => {
|
|
419
|
+
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
420
|
`));
|
|
416
|
-
}, []),
|
|
417
|
-
process.env.NODE_ENV !== "production" &&
|
|
418
|
-
if (
|
|
419
|
-
return
|
|
420
|
-
}, [
|
|
421
|
-
const
|
|
421
|
+
}, []), Ee = we(I, i, r.ref, Oe), [$, G] = l.useState(!1), s = Pe();
|
|
422
|
+
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
423
|
+
if (s)
|
|
424
|
+
return s.registerEffect();
|
|
425
|
+
}, [s]);
|
|
426
|
+
const b = Me({
|
|
422
427
|
props: d,
|
|
423
|
-
muiFormControl:
|
|
428
|
+
muiFormControl: s,
|
|
424
429
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
425
430
|
});
|
|
426
|
-
|
|
427
|
-
!
|
|
428
|
-
}, [
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
}, [
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
value:
|
|
431
|
+
b.focused = s ? s.focused : $, l.useEffect(() => {
|
|
432
|
+
!s && f && $ && (G(!1), w && w());
|
|
433
|
+
}, [s, f, $, w]);
|
|
434
|
+
const q = s && s.onFilled, Y = s && s.onEmpty, k = l.useCallback((a) => {
|
|
435
|
+
Le(a) ? q && q() : Y && Y();
|
|
436
|
+
}, [q, Y]);
|
|
437
|
+
oe(() => {
|
|
438
|
+
K && k({
|
|
439
|
+
value: D
|
|
435
440
|
});
|
|
436
|
-
}, [
|
|
437
|
-
const Ie = (
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
},
|
|
442
|
-
if (!
|
|
443
|
-
const
|
|
444
|
-
if (
|
|
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
|
-
value:
|
|
441
|
+
}, [D, k, K]);
|
|
442
|
+
const Ie = (a) => {
|
|
443
|
+
P && P(a), r.onFocus && r.onFocus(a), s && s.onFocus ? s.onFocus(a) : G(!0);
|
|
444
|
+
}, ze = (a) => {
|
|
445
|
+
w && w(a), r.onBlur && r.onBlur(a), s && s.onBlur ? s.onBlur(a) : G(!1);
|
|
446
|
+
}, Fe = (a, ...de) => {
|
|
447
|
+
if (!K) {
|
|
448
|
+
const ce = a.target || I.current;
|
|
449
|
+
if (ce == null)
|
|
450
|
+
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." : He(1));
|
|
451
|
+
k({
|
|
452
|
+
value: ce.value
|
|
448
453
|
});
|
|
449
454
|
}
|
|
450
|
-
|
|
455
|
+
r.onChange && r.onChange(a, ...de), E && E(a, ...de);
|
|
451
456
|
};
|
|
452
|
-
|
|
453
|
-
|
|
457
|
+
l.useEffect(() => {
|
|
458
|
+
k(I.current);
|
|
454
459
|
}, []);
|
|
455
|
-
const Ne = (
|
|
456
|
-
I.current &&
|
|
460
|
+
const Ne = (a) => {
|
|
461
|
+
I.current && a.currentTarget === a.target && I.current.focus(), h && h(a);
|
|
457
462
|
};
|
|
458
|
-
let
|
|
459
|
-
M &&
|
|
463
|
+
let Z = j, v = r;
|
|
464
|
+
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
465
|
type: void 0,
|
|
461
|
-
minRows:
|
|
462
|
-
maxRows:
|
|
466
|
+
minRows: W,
|
|
467
|
+
maxRows: W,
|
|
463
468
|
...v
|
|
464
469
|
}) : v = {
|
|
465
470
|
type: void 0,
|
|
466
|
-
maxRows:
|
|
467
|
-
minRows:
|
|
471
|
+
maxRows: u,
|
|
472
|
+
minRows: H,
|
|
468
473
|
...v
|
|
469
|
-
},
|
|
470
|
-
const
|
|
471
|
-
|
|
474
|
+
}, Z = Se);
|
|
475
|
+
const ke = (a) => {
|
|
476
|
+
k(a.animationName === "mui-auto-fill-cancel" ? I.current : {
|
|
472
477
|
value: "x"
|
|
473
478
|
});
|
|
474
479
|
};
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}, [
|
|
480
|
+
l.useEffect(() => {
|
|
481
|
+
s && s.setAdornedStart(!!N);
|
|
482
|
+
}, [s, N]);
|
|
478
483
|
const J = {
|
|
479
484
|
...d,
|
|
480
|
-
color:
|
|
481
|
-
disabled:
|
|
482
|
-
endAdornment:
|
|
483
|
-
error:
|
|
484
|
-
focused:
|
|
485
|
-
formControl:
|
|
486
|
-
fullWidth:
|
|
487
|
-
hiddenLabel:
|
|
485
|
+
color: b.color || "primary",
|
|
486
|
+
disabled: b.disabled,
|
|
487
|
+
endAdornment: g,
|
|
488
|
+
error: b.error,
|
|
489
|
+
focused: b.focused,
|
|
490
|
+
formControl: s,
|
|
491
|
+
fullWidth: C,
|
|
492
|
+
hiddenLabel: b.hiddenLabel,
|
|
488
493
|
multiline: M,
|
|
489
|
-
size:
|
|
490
|
-
startAdornment:
|
|
491
|
-
type:
|
|
492
|
-
},
|
|
494
|
+
size: b.size,
|
|
495
|
+
startAdornment: N,
|
|
496
|
+
type: ae
|
|
497
|
+
}, se = Qe(J), le = ie.root || S.Root || Xe, Q = re.root || p.root || {}, ue = ie.input || S.Input || eo;
|
|
493
498
|
return v = {
|
|
494
499
|
...v,
|
|
495
|
-
...
|
|
496
|
-
}, /* @__PURE__ */
|
|
497
|
-
children: [!
|
|
500
|
+
...re.input ?? p.input
|
|
501
|
+
}, /* @__PURE__ */ ee(l.Fragment, {
|
|
502
|
+
children: [!x && typeof ye == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
498
503
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
499
|
-
(
|
|
500
|
-
...
|
|
501
|
-
ref:
|
|
504
|
+
(be || (be = /* @__PURE__ */ A(ye, {}))), /* @__PURE__ */ ee(le, {
|
|
505
|
+
...Q,
|
|
506
|
+
ref: n,
|
|
502
507
|
onClick: Ne,
|
|
503
|
-
...
|
|
504
|
-
...!
|
|
508
|
+
...Te,
|
|
509
|
+
...!fe(le) && {
|
|
505
510
|
ownerState: {
|
|
506
511
|
...J,
|
|
507
|
-
...
|
|
512
|
+
...Q.ownerState
|
|
508
513
|
}
|
|
509
514
|
},
|
|
510
|
-
className:
|
|
511
|
-
children: [
|
|
515
|
+
className: pe(se.root, Q.className, T, _ && "MuiInputBase-readOnly"),
|
|
516
|
+
children: [N, /* @__PURE__ */ A(We.Provider, {
|
|
512
517
|
value: null,
|
|
513
|
-
children: /* @__PURE__ */ A(
|
|
514
|
-
"aria-invalid":
|
|
515
|
-
"aria-describedby":
|
|
518
|
+
children: /* @__PURE__ */ A(ue, {
|
|
519
|
+
"aria-invalid": b.error,
|
|
520
|
+
"aria-describedby": m,
|
|
516
521
|
autoComplete: c,
|
|
517
522
|
autoFocus: R,
|
|
518
523
|
defaultValue: O,
|
|
519
|
-
disabled:
|
|
520
|
-
id:
|
|
521
|
-
onAnimationStart:
|
|
522
|
-
name:
|
|
524
|
+
disabled: b.disabled,
|
|
525
|
+
id: F,
|
|
526
|
+
onAnimationStart: ke,
|
|
527
|
+
name: U,
|
|
523
528
|
placeholder: Ce,
|
|
524
|
-
readOnly:
|
|
525
|
-
required:
|
|
526
|
-
rows:
|
|
527
|
-
value:
|
|
528
|
-
onKeyDown:
|
|
529
|
+
readOnly: _,
|
|
530
|
+
required: b.required,
|
|
531
|
+
rows: W,
|
|
532
|
+
value: D,
|
|
533
|
+
onKeyDown: V,
|
|
529
534
|
onKeyUp: xe,
|
|
530
|
-
type:
|
|
535
|
+
type: ae,
|
|
531
536
|
...v,
|
|
532
|
-
...!
|
|
533
|
-
as:
|
|
537
|
+
...!fe(ue) && {
|
|
538
|
+
as: Z,
|
|
534
539
|
ownerState: {
|
|
535
540
|
...J,
|
|
536
541
|
...v.ownerState
|
|
537
542
|
}
|
|
538
543
|
},
|
|
539
|
-
ref:
|
|
540
|
-
className:
|
|
541
|
-
onBlur:
|
|
542
|
-
onChange:
|
|
544
|
+
ref: Ee,
|
|
545
|
+
className: pe(se.input, v.className, _ && "MuiInputBase-readOnly"),
|
|
546
|
+
onBlur: ze,
|
|
547
|
+
onChange: Fe,
|
|
543
548
|
onFocus: Ie
|
|
544
549
|
})
|
|
545
|
-
}),
|
|
546
|
-
...
|
|
547
|
-
startAdornment:
|
|
550
|
+
}), g, ne ? ne({
|
|
551
|
+
...b,
|
|
552
|
+
startAdornment: N
|
|
548
553
|
}) : null]
|
|
549
554
|
})]
|
|
550
555
|
});
|
|
551
556
|
});
|
|
552
|
-
process.env.NODE_ENV !== "production" && (
|
|
557
|
+
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
553
558
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
554
559
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
555
560
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -586,7 +591,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
586
591
|
/**
|
|
587
592
|
* The components used for each slot inside.
|
|
588
593
|
*
|
|
589
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
594
|
+
* @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
595
|
*
|
|
591
596
|
* @default {}
|
|
592
597
|
*/
|
|
@@ -598,7 +603,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
598
603
|
* The extra props for the slot components.
|
|
599
604
|
* You can override the existing props or add new ones.
|
|
600
605
|
*
|
|
601
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
606
|
+
* @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
607
|
*
|
|
603
608
|
* @default {}
|
|
604
609
|
*/
|
|
@@ -644,7 +649,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
644
649
|
* Either a string to use a HTML element or a component.
|
|
645
650
|
* @default 'input'
|
|
646
651
|
*/
|
|
647
|
-
inputComponent:
|
|
652
|
+
inputComponent: $e,
|
|
648
653
|
/**
|
|
649
654
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
650
655
|
* @default {}
|
|
@@ -653,7 +658,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
653
658
|
/**
|
|
654
659
|
* Pass a ref to the `input` element.
|
|
655
660
|
*/
|
|
656
|
-
inputRef:
|
|
661
|
+
inputRef: Ke,
|
|
657
662
|
/**
|
|
658
663
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
659
664
|
* FormControl.
|
|
@@ -778,10 +783,10 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
778
783
|
value: e.any
|
|
779
784
|
});
|
|
780
785
|
export {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
786
|
+
oo as I,
|
|
787
|
+
Xe as a,
|
|
788
|
+
eo as b,
|
|
784
789
|
Je as c,
|
|
785
|
-
|
|
786
|
-
|
|
790
|
+
te as i,
|
|
791
|
+
Ze as r
|
|
787
792
|
};
|