@cgi-learning-hub/ui 1.2.0 → 1.3.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/Backdrop-CxHwPsCX.js +789 -0
- package/dist/Backdrop-ZCTs-Ws8.cjs +1 -0
- package/dist/Box-D61CmHcZ.cjs +1 -0
- package/dist/{Box-Bawb5zHX.js → Box-a6v7fn61.js} +31 -30
- package/dist/Button-B8Vr_qVd.js +450 -0
- package/dist/Button-elp97nQ8.cjs +1 -0
- package/dist/ButtonBase-S0mFlojL.cjs +75 -0
- package/dist/ButtonBase-Y5TK5SRu.js +890 -0
- package/dist/CircularProgress-DDIZxeFH.cjs +28 -0
- package/dist/CircularProgress-DU3DJQfF.js +252 -0
- package/dist/DatePicker-BigDV0IN.cjs +17 -0
- package/dist/{DatePicker-DGVeagTz.js → DatePicker-ZdjLD9eR.js} +6100 -5984
- package/dist/DefaultPropsProvider-7QnSWHxy.js +484 -0
- package/dist/DefaultPropsProvider-eEVEiLDf.cjs +17 -0
- package/dist/IconButton-C7H_G1LX.js +230 -0
- package/dist/IconButton-DfmbM9nO.cjs +2 -0
- package/dist/InputAdornment-C-EbfNtT.cjs +1 -0
- package/dist/{InputAdornment-hNrnvXW9.js → InputAdornment-CPJFY_m_.js} +81 -64
- package/dist/InputBase-5GB2c2J6.js +803 -0
- package/dist/InputBase-CPtGhJye.cjs +3 -0
- package/dist/Stack-656bqKiW.cjs +1 -0
- package/dist/{Stack-BJ2ths-g.js → Stack-CutIWKkG.js} +61 -60
- package/dist/Tabs-CKic46Op.js +1222 -0
- package/dist/Tabs-DzrxYlm-.cjs +4 -0
- package/dist/TextField-BLEvZwPH.cjs +14 -0
- package/dist/TextField-CGMPbx_J.js +5686 -0
- package/dist/Tooltip-BJefPCe7.cjs +100 -0
- package/dist/{Tooltip-D42pzHKW.js → Tooltip-DqLAZimE.js} +4764 -3511
- package/dist/TransitionGroupContext-DMJLhY9-.js +24 -0
- package/dist/TransitionGroupContext-DbXD5xqS.cjs +1 -0
- package/dist/Typography-CreZW2v6.cjs +1 -0
- package/dist/Typography-DsJC595c.js +259 -0
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/client-error-BUtdld5f.cjs +1 -0
- package/dist/client-error-B_-qjgAB.js +395 -0
- package/dist/components/Alert/Alert.cjs.js +1 -0
- package/dist/components/{feedback/Alert → Alert}/Alert.d.ts +0 -1
- package/dist/components/Alert/Alert.stories.cjs.js +1 -0
- package/dist/components/{feedback/Alert → Alert}/Alert.stories.d.ts +0 -1
- package/dist/components/{feedback/Alert → Alert}/Alert.stories.es.js +7 -7
- package/dist/components/Button/Button.cjs.js +1 -0
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.es.js +334 -0
- package/dist/components/Button/Button.stories.cjs.js +1 -0
- package/dist/components/{buttons/SecondaryButton/SecondaryButton.stories.d.ts → Button/Button.stories.d.ts} +3 -2
- package/dist/components/Button/Button.stories.es.js +45 -0
- package/dist/components/Button/index.cjs.js +1 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.es.js +4 -0
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -0
- package/dist/components/{pickers/DatePicker → DatePicker}/DatePicker.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.es.js +6 -0
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -0
- package/dist/components/{pickers/DatePicker → DatePicker}/DatePicker.stories.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +16 -0
- package/dist/components/{pickers → DatePicker}/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +4 -0
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.d.ts +0 -1
- package/dist/components/Dropzone/Dropzone.es.js +1685 -686
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.stories.d.ts +0 -1
- package/dist/components/Dropzone/Dropzone.stories.es.js +1 -1
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +12 -0
- package/dist/components/EmptyState/EmptyState.es.js +31 -0
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -0
- package/dist/components/{PaperHeader/PaperHeader.stories.d.ts → EmptyState/EmptyState.stories.d.ts} +0 -1
- package/dist/components/EmptyState/EmptyState.stories.es.js +17 -0
- package/dist/components/EmptyState/index.cjs.js +1 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EmptyState/index.es.js +4 -0
- package/dist/components/FileList/FileList.cjs.js +1 -0
- package/dist/components/{lists/FileList → FileList}/FileList.d.ts +0 -1
- package/dist/components/{lists/FileList → FileList}/FileList.es.js +1 -1
- package/dist/components/FileList/FileList.stories.cjs.js +1 -0
- package/dist/components/{lists/FileList → FileList}/FileList.stories.d.ts +0 -1
- package/dist/components/{lists/FileList → FileList}/FileList.stories.es.js +3 -3
- package/dist/components/FileList/FileListItem.cjs.js +1 -0
- package/dist/components/FileList/FileListItem.d.ts +12 -0
- package/dist/components/FileList/FileListItem.es.js +29 -0
- package/dist/components/Heading/Heading.cjs.js +1 -0
- package/dist/components/{PaperHeader/PaperHeader.d.ts → Heading/Heading.d.ts} +6 -5
- package/dist/components/Heading/Heading.es.js +39 -0
- package/dist/components/Heading/Heading.stories.cjs.js +1 -0
- package/dist/components/{buttons/PrimaryButton/PrimaryButton.stories.d.ts → Heading/Heading.stories.d.ts} +0 -1
- package/dist/components/Heading/Heading.stories.es.js +22 -0
- package/dist/components/Heading/index.cjs.js +1 -0
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/index.es.js +4 -0
- package/dist/components/IconButton.stories.cjs.js +1 -0
- package/dist/components/{buttons/IconButton.stories.d.ts → IconButton.stories.d.ts} +0 -1
- package/dist/components/IconButton.stories.es.js +21 -0
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.d.ts +0 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/Loader/Loader.stories.cjs.js +1 -1
- package/dist/components/Loader/Loader.stories.d.ts +0 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +10 -8
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +0 -1
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -0
- package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.d.ts +0 -1
- package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.es.js +10 -11
- package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.stories.cjs.js +1 -1
- package/dist/components/{inputs/PasswordInput → PasswordInput}/PasswordInput.stories.d.ts +0 -1
- package/dist/components/PasswordInput/PasswordInput.stories.es.js +16 -0
- package/dist/components/QueryError/QueryError.cjs.js +1 -0
- package/dist/components/{feedback/QueryError → QueryError}/QueryError.d.ts +0 -1
- package/dist/components/QueryError/QueryError.es.js +43 -0
- package/dist/components/{feedback/QueryError → QueryError}/helpers.d.ts +0 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -0
- package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.d.ts +0 -1
- package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.es.js +4 -4
- package/dist/components/SearchInput/SearchInput.stories.cjs.js +1 -0
- package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.stories.d.ts +0 -1
- package/dist/components/{inputs/SearchInput → SearchInput}/SearchInput.stories.es.js +1 -1
- package/dist/components/TabList.stories.cjs.js +1 -0
- package/dist/components/{lists/TabList.stories.d.ts → TabList.stories.d.ts} +0 -1
- package/dist/components/{lists/TabList.stories.es.js → TabList.stories.es.js} +99 -87
- package/dist/components/TextInput/TextInput.cjs.js +1 -0
- package/dist/components/{inputs/TextInput → TextInput}/TextInput.d.ts +0 -1
- package/dist/components/{inputs/TextInput → TextInput}/TextInput.es.js +1 -1
- package/dist/components/TextInput/TextInput.stories.cjs.js +1 -0
- package/dist/components/{inputs/TextInput → TextInput}/TextInput.stories.d.ts +0 -1
- package/dist/components/{inputs/TextInput → TextInput}/TextInput.stories.es.js +7 -7
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +14 -20
- package/dist/components/index.es.js +270 -272
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +1 -0
- package/dist/createSvgIcon-Ae1vF9Lv.js +250 -0
- package/dist/createSvgIcon-PXjVOXDY.cjs +1 -0
- package/dist/error-CRNeivL7.js +5 -0
- package/dist/error-Dk3o6ber.cjs +1 -0
- package/dist/extendSxProp-BzTGWWcy.js +37 -0
- package/dist/extendSxProp-DLhbnNxc.cjs +1 -0
- package/dist/{fr-By4s91yO.js → fr-B0c4Eu-I.js} +13 -13
- package/dist/{fr-TRjulm1Q.cjs → fr-BtINyNRC.cjs} +1 -1
- package/dist/hooks/lazySvgImport.cjs.js +1 -0
- package/dist/hooks/lazySvgImport.d.ts +6 -0
- package/dist/hooks/lazySvgImport.es.js +34 -0
- package/dist/identifier-B_IiMbpZ.cjs +59 -0
- package/dist/identifier-Bu3vgTzE.js +3115 -0
- package/dist/index-BDy6VH40.cjs +1 -0
- package/dist/index-D4YvqRSh.js +45 -0
- package/dist/index-DNmEgr4X.js +89 -0
- package/dist/index-Dl4BXU0b.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +271 -273
- package/dist/memoTheme-C4_nd-x4.js +15 -0
- package/dist/memoTheme-DvW891YJ.cjs +1 -0
- package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
- package/dist/refType-DYRsy3ld.cjs +1 -0
- package/dist/refType-DvOnKTmB.js +27 -0
- package/dist/server-error-CeAtUo4S.cjs +1 -0
- package/dist/server-error-DMyaPFs8.js +400 -0
- package/dist/useForkRef-D-DyzOXj.js +21 -0
- package/dist/useForkRef-D81w5oMb.cjs +1 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useId-DNXtOFeX.cjs +1 -0
- package/dist/useTheme-B_3HWqyi.js +88 -0
- package/dist/useTheme-BvsnROiB.cjs +1 -0
- package/dist/{useTheme-CjBTq22m.js → useTheme-DhYab2-0.js} +5 -5
- package/dist/useTheme-vN32oV1t.cjs +1 -0
- package/dist/useThemeProps-5hp2m3Xl.cjs +1 -0
- package/dist/{useThemeProps-BM4fCFq5.js → useThemeProps-Bmkt_XOR.js} +2 -2
- package/dist/useThemeProps-D_gKWuk1.cjs +1 -0
- package/dist/useThemeProps-DftpgVZ0.js +24 -0
- package/dist/useTimeout-Bx22KOcH.js +53 -0
- package/dist/useTimeout-gEG15bRo.cjs +1 -0
- package/package.json +14 -17
- package/dist/Box-5x1F2S3-.cjs +0 -1
- package/dist/Button-C__-QOJY.js +0 -359
- package/dist/Button-DKIRmOzf.cjs +0 -1
- package/dist/ButtonBase-4F5roLHd.js +0 -827
- package/dist/ButtonBase-Bw3wq81v.cjs +0 -75
- package/dist/CircularProgress-BNazIBar.js +0 -217
- package/dist/CircularProgress-WnNPMTjD.cjs +0 -28
- package/dist/DatePicker-B0jLSEvZ.cjs +0 -19
- package/dist/DefaultButton-F67BOmrx.js +0 -258
- package/dist/DefaultButton-y-mHSNFH.cjs +0 -1
- package/dist/IconButton-D_deQOvN.js +0 -184
- package/dist/IconButton-DhWgsgQ7.cjs +0 -2
- package/dist/InputAdornment-DYqMrYJz.cjs +0 -1
- package/dist/InputBase-BeZ70Fbf.cjs +0 -3
- package/dist/InputBase-DNkF-TAp.js +0 -794
- package/dist/Stack-BOcvai-O.cjs +0 -1
- package/dist/Tabs-CG428TT3.cjs +0 -4
- package/dist/Tabs-CWujD0SK.js +0 -1091
- package/dist/TextField-DDmGQyEr.js +0 -5800
- package/dist/TextField-wYRnAj1v.cjs +0 -12
- package/dist/Tooltip-O30xWGZU.cjs +0 -95
- package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
- package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
- package/dist/Typography-B2XMXu83.js +0 -178
- package/dist/Typography-DR_aF9lJ.cjs +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +0 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +0 -41
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +0 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +0 -28
- package/dist/components/PaperHeader/index.cjs.js +0 -1
- package/dist/components/PaperHeader/index.d.ts +0 -2
- package/dist/components/PaperHeader/index.es.js +0 -4
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +0 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.d.ts +0 -9
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +0 -8
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +0 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.d.ts +0 -9
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +0 -143
- package/dist/components/buttons/DefaultButton/index.cjs.js +0 -1
- package/dist/components/buttons/DefaultButton/index.d.ts +0 -2
- package/dist/components/buttons/DefaultButton/index.es.js +0 -4
- package/dist/components/buttons/IconButton.stories.cjs.js +0 -1
- package/dist/components/buttons/IconButton.stories.es.js +0 -28
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +0 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.d.ts +0 -6
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +0 -13
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +0 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +0 -25
- package/dist/components/buttons/PrimaryButton/index.cjs.js +0 -1
- package/dist/components/buttons/PrimaryButton/index.d.ts +0 -2
- package/dist/components/buttons/PrimaryButton/index.es.js +0 -4
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +0 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.d.ts +0 -6
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +0 -6
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +0 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +0 -25
- package/dist/components/buttons/SecondaryButton/index.cjs.js +0 -1
- package/dist/components/buttons/SecondaryButton/index.d.ts +0 -2
- package/dist/components/buttons/SecondaryButton/index.es.js +0 -4
- package/dist/components/buttons/index.cjs.js +0 -1
- package/dist/components/buttons/index.d.ts +0 -3
- package/dist/components/buttons/index.es.js +0 -8
- package/dist/components/feedback/Alert/Alert.cjs.js +0 -1
- package/dist/components/feedback/Alert/Alert.stories.cjs.js +0 -1
- package/dist/components/feedback/QueryError/QueryError.cjs.js +0 -1
- package/dist/components/feedback/QueryError/QueryError.es.js +0 -19
- package/dist/components/feedback/index.cjs.js +0 -1
- package/dist/components/feedback/index.d.ts +0 -2
- package/dist/components/feedback/index.es.js +0 -6
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +0 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.es.js +0 -16
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +0 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +0 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +0 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +0 -1
- package/dist/components/inputs/index.cjs.js +0 -1
- package/dist/components/inputs/index.d.ts +0 -3
- package/dist/components/inputs/index.es.js +0 -8
- package/dist/components/lists/FileList/FileList.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.stories.cjs.js +0 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +0 -1
- package/dist/components/lists/FileList/FileListItem.d.ts +0 -14
- package/dist/components/lists/FileList/FileListItem.es.js +0 -42
- package/dist/components/lists/TabList.stories.cjs.js +0 -1
- package/dist/components/lists/index.cjs.js +0 -1
- package/dist/components/lists/index.d.ts +0 -1
- package/dist/components/lists/index.es.js +0 -6
- package/dist/components/pickers/DatePicker/DatePicker.cjs.js +0 -1
- package/dist/components/pickers/DatePicker/DatePicker.es.js +0 -6
- package/dist/components/pickers/DatePicker/DatePicker.stories.cjs.js +0 -1
- package/dist/components/pickers/DatePicker/DatePicker.stories.es.js +0 -16
- package/dist/components/pickers/DatePicker/index.cjs.js +0 -1
- package/dist/components/pickers/DatePicker/index.es.js +0 -4
- package/dist/components/pickers/index.d.ts +0 -1
- package/dist/components/pickers/index.es.js +0 -4
- package/dist/createStyled-CzVedz8V.js +0 -142
- package/dist/createStyled-LobpFGWo.cjs +0 -1
- package/dist/createSvgIcon-B8vHI3I6.js +0 -183
- package/dist/createSvgIcon-BGm-SWUB.cjs +0 -1
- package/dist/createSvgIcon-CKlvKClV.cjs +0 -2
- package/dist/createSvgIcon-DjuUwmEp.js +0 -75
- package/dist/identifier-4KVhx666.cjs +0 -50
- package/dist/identifier-D-ng7Qqa.js +0 -3047
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/refType-BhXrhWFB.cjs +0 -1
- package/dist/refType-COGEdfch.js +0 -29
- package/dist/styled-ZF_yhfMW.cjs +0 -17
- package/dist/styled-xiAudcD_.js +0 -533
- package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useControlled-DKpcyPsg.cjs +0 -3
- package/dist/useControlled-DoRrpN8o.js +0 -48
- package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
- package/dist/useForkRef-DwN_Iz9R.js +0 -17
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useId-Cw0TtD-8.cjs +0 -1
- package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
- package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
- package/dist/useTheme-B5RCz7rY.cjs +0 -1
- package/dist/useTheme-iNHILPzK.js +0 -99
- package/dist/useTheme-kqsjFBnC.cjs +0 -1
- package/dist/useThemeProps-B-Oq4Y2j.cjs +0 -1
- package/dist/useThemeProps-BHAsCmc4.cjs +0 -1
- package/dist/useThemeProps-BVvSbkPP.js +0 -17
- package/dist/useTimeout-BdvDipeg.js +0 -47
- package/dist/useTimeout-XUWYBnl6.cjs +0 -1
- package/dist/vite-env.d.cjs.js +0 -1
- package/dist/vite-env.d.es.js +0 -1
- /package/dist/components/{feedback/Alert → Alert}/Alert.es.js +0 -0
- /package/dist/components/{feedback/Alert → Alert}/index.cjs.js +0 -0
- /package/dist/components/{feedback/Alert → Alert}/index.d.ts +0 -0
- /package/dist/components/{feedback/Alert → Alert}/index.es.js +0 -0
- /package/dist/components/{pickers/DatePicker → DatePicker}/index.d.ts +0 -0
- /package/dist/components/{lists/FileList → FileList}/index.cjs.js +0 -0
- /package/dist/components/{lists/FileList → FileList}/index.d.ts +0 -0
- /package/dist/components/{lists/FileList → FileList}/index.es.js +0 -0
- /package/dist/components/{inputs/PasswordInput → PasswordInput}/index.cjs.js +0 -0
- /package/dist/components/{inputs/PasswordInput → PasswordInput}/index.d.ts +0 -0
- /package/dist/components/{inputs/PasswordInput → PasswordInput}/index.es.js +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/helpers.cjs.js +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/helpers.es.js +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/index.cjs.js +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/index.d.ts +0 -0
- /package/dist/components/{feedback/QueryError → QueryError}/index.es.js +0 -0
- /package/dist/components/{inputs/SearchInput → SearchInput}/index.cjs.js +0 -0
- /package/dist/components/{inputs/SearchInput → SearchInput}/index.d.ts +0 -0
- /package/dist/components/{inputs/SearchInput → SearchInput}/index.es.js +0 -0
- /package/dist/components/{inputs/TextInput → TextInput}/index.cjs.js +0 -0
- /package/dist/components/{inputs/TextInput → TextInput}/index.d.ts +0 -0
- /package/dist/components/{inputs/TextInput → TextInput}/index.es.js +0 -0
|
@@ -0,0 +1,803 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { P as e, J as Be, I as Me, L as pe, K as J, Z as He } from "./identifier-Bu3vgTzE.js";
|
|
3
|
+
import { g as Pe } from "./index-DNmEgr4X.js";
|
|
4
|
+
import { m as ge } from "./memoTheme-C4_nd-x4.js";
|
|
5
|
+
import { jsxs as Q, jsx as B } from "react/jsx-runtime";
|
|
6
|
+
import { s as we, u as We, c as De } from "./DefaultPropsProvider-7QnSWHxy.js";
|
|
7
|
+
import { u as ve } from "./useForkRef-D-DyzOXj.js";
|
|
8
|
+
import { u as X, e as Le, r as Ve } from "./refType-DvOnKTmB.js";
|
|
9
|
+
import { o as fe, d as Ue } from "./ownerWindow-BoRkeomM.js";
|
|
10
|
+
const ne = /* @__PURE__ */ s.createContext(void 0);
|
|
11
|
+
process.env.NODE_ENV !== "production" && (ne.displayName = "FormControlContext");
|
|
12
|
+
function _e() {
|
|
13
|
+
return s.useContext(ne);
|
|
14
|
+
}
|
|
15
|
+
function me(n) {
|
|
16
|
+
return n != null && !(Array.isArray(n) && n.length === 0);
|
|
17
|
+
}
|
|
18
|
+
function je(n, o = !1) {
|
|
19
|
+
return n && (me(n.value) && n.value !== "" || o && me(n.defaultValue) && n.defaultValue !== "");
|
|
20
|
+
}
|
|
21
|
+
function cn(n) {
|
|
22
|
+
return n.startAdornment;
|
|
23
|
+
}
|
|
24
|
+
function Ke({
|
|
25
|
+
props: n,
|
|
26
|
+
states: o,
|
|
27
|
+
muiFormControl: t
|
|
28
|
+
}) {
|
|
29
|
+
return o.reduce((l, u) => (l[u] = n[u], t && typeof n[u] > "u" && (l[u] = t[u]), l), {});
|
|
30
|
+
}
|
|
31
|
+
function L(n) {
|
|
32
|
+
return parseInt(n, 10) || 0;
|
|
33
|
+
}
|
|
34
|
+
const $e = {
|
|
35
|
+
shadow: {
|
|
36
|
+
// Visibility needed to hide the extra text area on iPads
|
|
37
|
+
visibility: "hidden",
|
|
38
|
+
// Remove from the content flow
|
|
39
|
+
position: "absolute",
|
|
40
|
+
// Ignore the scrollbar width
|
|
41
|
+
overflow: "hidden",
|
|
42
|
+
height: 0,
|
|
43
|
+
top: 0,
|
|
44
|
+
left: 0,
|
|
45
|
+
// Create a new layer, increase the isolation of the computed values
|
|
46
|
+
transform: "translateZ(0)"
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
function qe(n) {
|
|
50
|
+
return n == null || Object.keys(n).length === 0 || n.outerHeightStyle === 0 && !n.overflowing;
|
|
51
|
+
}
|
|
52
|
+
const Ce = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
53
|
+
const {
|
|
54
|
+
onChange: l,
|
|
55
|
+
maxRows: u,
|
|
56
|
+
minRows: p = 1,
|
|
57
|
+
style: O,
|
|
58
|
+
value: E,
|
|
59
|
+
...M
|
|
60
|
+
} = o, {
|
|
61
|
+
current: C
|
|
62
|
+
} = s.useRef(E != null), h = s.useRef(null), T = ve(t, h), y = s.useRef(null), S = s.useRef(null), v = s.useCallback(() => {
|
|
63
|
+
const d = h.current, r = fe(d).getComputedStyle(d);
|
|
64
|
+
if (r.width === "0px")
|
|
65
|
+
return {
|
|
66
|
+
outerHeightStyle: 0,
|
|
67
|
+
overflowing: !1
|
|
68
|
+
};
|
|
69
|
+
const f = S.current;
|
|
70
|
+
f.style.width = r.width, f.value = d.value || o.placeholder || "x", f.value.slice(-1) === `
|
|
71
|
+
` && (f.value += " ");
|
|
72
|
+
const z = r.boxSizing, R = L(r.paddingBottom) + L(r.paddingTop), g = L(r.borderBottomWidth) + L(r.borderTopWidth), A = f.scrollHeight;
|
|
73
|
+
f.value = "x";
|
|
74
|
+
const N = f.scrollHeight;
|
|
75
|
+
let c = A;
|
|
76
|
+
p && (c = Math.max(Number(p) * N, c)), u && (c = Math.min(Number(u) * N, c)), c = Math.max(c, N);
|
|
77
|
+
const H = c + (z === "border-box" ? R + g : 0), P = Math.abs(c - A) <= 1;
|
|
78
|
+
return {
|
|
79
|
+
outerHeightStyle: H,
|
|
80
|
+
overflowing: P
|
|
81
|
+
};
|
|
82
|
+
}, [u, p, o.placeholder]), x = s.useCallback(() => {
|
|
83
|
+
const d = v();
|
|
84
|
+
if (qe(d))
|
|
85
|
+
return;
|
|
86
|
+
const b = d.outerHeightStyle, r = h.current;
|
|
87
|
+
y.current !== b && (y.current = b, r.style.height = `${b}px`), r.style.overflow = d.overflowing ? "hidden" : "";
|
|
88
|
+
}, [v]);
|
|
89
|
+
X(() => {
|
|
90
|
+
const d = () => {
|
|
91
|
+
x();
|
|
92
|
+
};
|
|
93
|
+
let b;
|
|
94
|
+
const r = () => {
|
|
95
|
+
cancelAnimationFrame(b), b = requestAnimationFrame(() => {
|
|
96
|
+
d();
|
|
97
|
+
});
|
|
98
|
+
}, f = Ue(d), z = h.current, R = fe(z);
|
|
99
|
+
R.addEventListener("resize", f);
|
|
100
|
+
let g;
|
|
101
|
+
return typeof ResizeObserver < "u" && (g = new ResizeObserver(process.env.NODE_ENV === "test" ? r : d), g.observe(z)), () => {
|
|
102
|
+
f.clear(), cancelAnimationFrame(b), R.removeEventListener("resize", f), g && g.disconnect();
|
|
103
|
+
};
|
|
104
|
+
}, [v, x]), X(() => {
|
|
105
|
+
x();
|
|
106
|
+
});
|
|
107
|
+
const V = (d) => {
|
|
108
|
+
C || x(), l && l(d);
|
|
109
|
+
};
|
|
110
|
+
return /* @__PURE__ */ Q(s.Fragment, {
|
|
111
|
+
children: [/* @__PURE__ */ B("textarea", {
|
|
112
|
+
value: E,
|
|
113
|
+
onChange: V,
|
|
114
|
+
ref: T,
|
|
115
|
+
rows: p,
|
|
116
|
+
style: O,
|
|
117
|
+
...M
|
|
118
|
+
}), /* @__PURE__ */ B("textarea", {
|
|
119
|
+
"aria-hidden": !0,
|
|
120
|
+
className: o.className,
|
|
121
|
+
readOnly: !0,
|
|
122
|
+
ref: S,
|
|
123
|
+
tabIndex: -1,
|
|
124
|
+
style: {
|
|
125
|
+
...$e.shadow,
|
|
126
|
+
...O,
|
|
127
|
+
paddingTop: 0,
|
|
128
|
+
paddingBottom: 0
|
|
129
|
+
}
|
|
130
|
+
})]
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
process.env.NODE_ENV !== "production" && (Ce.propTypes = {
|
|
134
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
135
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
136
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
137
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
138
|
+
/**
|
|
139
|
+
* @ignore
|
|
140
|
+
*/
|
|
141
|
+
className: e.string,
|
|
142
|
+
/**
|
|
143
|
+
* Maximum number of rows to display.
|
|
144
|
+
*/
|
|
145
|
+
maxRows: e.oneOfType([e.number, e.string]),
|
|
146
|
+
/**
|
|
147
|
+
* Minimum number of rows to display.
|
|
148
|
+
* @default 1
|
|
149
|
+
*/
|
|
150
|
+
minRows: e.oneOfType([e.number, e.string]),
|
|
151
|
+
/**
|
|
152
|
+
* @ignore
|
|
153
|
+
*/
|
|
154
|
+
onChange: e.func,
|
|
155
|
+
/**
|
|
156
|
+
* @ignore
|
|
157
|
+
*/
|
|
158
|
+
placeholder: e.string,
|
|
159
|
+
/**
|
|
160
|
+
* @ignore
|
|
161
|
+
*/
|
|
162
|
+
style: e.object,
|
|
163
|
+
/**
|
|
164
|
+
* @ignore
|
|
165
|
+
*/
|
|
166
|
+
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
167
|
+
});
|
|
168
|
+
function he(n) {
|
|
169
|
+
return typeof n == "string";
|
|
170
|
+
}
|
|
171
|
+
function Ge(n) {
|
|
172
|
+
return Me("MuiInputBase", n);
|
|
173
|
+
}
|
|
174
|
+
const ee = Be("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
175
|
+
var ye;
|
|
176
|
+
const Ye = (n, o) => {
|
|
177
|
+
const {
|
|
178
|
+
ownerState: t
|
|
179
|
+
} = n;
|
|
180
|
+
return [o.root, t.formControl && o.formControl, t.startAdornment && o.adornedStart, t.endAdornment && o.adornedEnd, t.error && o.error, t.size === "small" && o.sizeSmall, t.multiline && o.multiline, t.color && o[`color${J(t.color)}`], t.fullWidth && o.fullWidth, t.hiddenLabel && o.hiddenLabel];
|
|
181
|
+
}, Ze = (n, o) => {
|
|
182
|
+
const {
|
|
183
|
+
ownerState: t
|
|
184
|
+
} = n;
|
|
185
|
+
return [o.input, t.size === "small" && o.inputSizeSmall, t.multiline && o.inputMultiline, t.type === "search" && o.inputTypeSearch, t.startAdornment && o.inputAdornedStart, t.endAdornment && o.inputAdornedEnd, t.hiddenLabel && o.inputHiddenLabel];
|
|
186
|
+
}, Je = (n) => {
|
|
187
|
+
const {
|
|
188
|
+
classes: o,
|
|
189
|
+
color: t,
|
|
190
|
+
disabled: l,
|
|
191
|
+
error: u,
|
|
192
|
+
endAdornment: p,
|
|
193
|
+
focused: O,
|
|
194
|
+
formControl: E,
|
|
195
|
+
fullWidth: M,
|
|
196
|
+
hiddenLabel: C,
|
|
197
|
+
multiline: h,
|
|
198
|
+
readOnly: T,
|
|
199
|
+
size: y,
|
|
200
|
+
startAdornment: S,
|
|
201
|
+
type: v
|
|
202
|
+
} = n, x = {
|
|
203
|
+
root: ["root", `color${J(t)}`, l && "disabled", u && "error", M && "fullWidth", O && "focused", E && "formControl", y && y !== "medium" && `size${J(y)}`, h && "multiline", S && "adornedStart", p && "adornedEnd", C && "hiddenLabel", T && "readOnly"],
|
|
204
|
+
input: ["input", l && "disabled", v === "search" && "inputTypeSearch", h && "inputMultiline", y === "small" && "inputSizeSmall", C && "inputHiddenLabel", S && "inputAdornedStart", p && "inputAdornedEnd", T && "readOnly"]
|
|
205
|
+
};
|
|
206
|
+
return De(x, Ge, o);
|
|
207
|
+
}, Qe = we("div", {
|
|
208
|
+
name: "MuiInputBase",
|
|
209
|
+
slot: "Root",
|
|
210
|
+
overridesResolver: Ye
|
|
211
|
+
})(ge(({
|
|
212
|
+
theme: n
|
|
213
|
+
}) => ({
|
|
214
|
+
...n.typography.body1,
|
|
215
|
+
color: (n.vars || n).palette.text.primary,
|
|
216
|
+
lineHeight: "1.4375em",
|
|
217
|
+
// 23px
|
|
218
|
+
boxSizing: "border-box",
|
|
219
|
+
// Prevent padding issue with fullWidth.
|
|
220
|
+
position: "relative",
|
|
221
|
+
cursor: "text",
|
|
222
|
+
display: "inline-flex",
|
|
223
|
+
alignItems: "center",
|
|
224
|
+
[`&.${ee.disabled}`]: {
|
|
225
|
+
color: (n.vars || n).palette.text.disabled,
|
|
226
|
+
cursor: "default"
|
|
227
|
+
},
|
|
228
|
+
variants: [{
|
|
229
|
+
props: ({
|
|
230
|
+
ownerState: o
|
|
231
|
+
}) => o.multiline,
|
|
232
|
+
style: {
|
|
233
|
+
padding: "4px 0 5px"
|
|
234
|
+
}
|
|
235
|
+
}, {
|
|
236
|
+
props: ({
|
|
237
|
+
ownerState: o,
|
|
238
|
+
size: t
|
|
239
|
+
}) => o.multiline && t === "small",
|
|
240
|
+
style: {
|
|
241
|
+
paddingTop: 1
|
|
242
|
+
}
|
|
243
|
+
}, {
|
|
244
|
+
props: ({
|
|
245
|
+
ownerState: o
|
|
246
|
+
}) => o.fullWidth,
|
|
247
|
+
style: {
|
|
248
|
+
width: "100%"
|
|
249
|
+
}
|
|
250
|
+
}]
|
|
251
|
+
}))), Xe = we("input", {
|
|
252
|
+
name: "MuiInputBase",
|
|
253
|
+
slot: "Input",
|
|
254
|
+
overridesResolver: Ze
|
|
255
|
+
})(ge(({
|
|
256
|
+
theme: n
|
|
257
|
+
}) => {
|
|
258
|
+
const o = n.palette.mode === "light", t = {
|
|
259
|
+
color: "currentColor",
|
|
260
|
+
...n.vars ? {
|
|
261
|
+
opacity: n.vars.opacity.inputPlaceholder
|
|
262
|
+
} : {
|
|
263
|
+
opacity: o ? 0.42 : 0.5
|
|
264
|
+
},
|
|
265
|
+
transition: n.transitions.create("opacity", {
|
|
266
|
+
duration: n.transitions.duration.shorter
|
|
267
|
+
})
|
|
268
|
+
}, l = {
|
|
269
|
+
opacity: "0 !important"
|
|
270
|
+
}, u = n.vars ? {
|
|
271
|
+
opacity: n.vars.opacity.inputPlaceholder
|
|
272
|
+
} : {
|
|
273
|
+
opacity: o ? 0.42 : 0.5
|
|
274
|
+
};
|
|
275
|
+
return {
|
|
276
|
+
font: "inherit",
|
|
277
|
+
letterSpacing: "inherit",
|
|
278
|
+
color: "currentColor",
|
|
279
|
+
padding: "4px 0 5px",
|
|
280
|
+
border: 0,
|
|
281
|
+
boxSizing: "content-box",
|
|
282
|
+
background: "none",
|
|
283
|
+
height: "1.4375em",
|
|
284
|
+
// Reset 23pxthe native input line-height
|
|
285
|
+
margin: 0,
|
|
286
|
+
// Reset for Safari
|
|
287
|
+
WebkitTapHighlightColor: "transparent",
|
|
288
|
+
display: "block",
|
|
289
|
+
// Make the flex item shrink with Firefox
|
|
290
|
+
minWidth: 0,
|
|
291
|
+
width: "100%",
|
|
292
|
+
"&::-webkit-input-placeholder": t,
|
|
293
|
+
"&::-moz-placeholder": t,
|
|
294
|
+
// Firefox 19+
|
|
295
|
+
"&::-ms-input-placeholder": t,
|
|
296
|
+
// Edge
|
|
297
|
+
"&:focus": {
|
|
298
|
+
outline: 0
|
|
299
|
+
},
|
|
300
|
+
// Reset Firefox invalid required input style
|
|
301
|
+
"&:invalid": {
|
|
302
|
+
boxShadow: "none"
|
|
303
|
+
},
|
|
304
|
+
"&::-webkit-search-decoration": {
|
|
305
|
+
// Remove the padding when type=search.
|
|
306
|
+
WebkitAppearance: "none"
|
|
307
|
+
},
|
|
308
|
+
// Show and hide the placeholder logic
|
|
309
|
+
[`label[data-shrink=false] + .${ee.formControl} &`]: {
|
|
310
|
+
"&::-webkit-input-placeholder": l,
|
|
311
|
+
"&::-moz-placeholder": l,
|
|
312
|
+
// Firefox 19+
|
|
313
|
+
"&::-ms-input-placeholder": l,
|
|
314
|
+
// Edge
|
|
315
|
+
"&:focus::-webkit-input-placeholder": u,
|
|
316
|
+
"&:focus::-moz-placeholder": u,
|
|
317
|
+
// Firefox 19+
|
|
318
|
+
"&:focus::-ms-input-placeholder": u
|
|
319
|
+
// Edge
|
|
320
|
+
},
|
|
321
|
+
[`&.${ee.disabled}`]: {
|
|
322
|
+
opacity: 1,
|
|
323
|
+
// Reset iOS opacity
|
|
324
|
+
WebkitTextFillColor: (n.vars || n).palette.text.disabled
|
|
325
|
+
// Fix opacity Safari bug
|
|
326
|
+
},
|
|
327
|
+
variants: [{
|
|
328
|
+
props: ({
|
|
329
|
+
ownerState: p
|
|
330
|
+
}) => !p.disableInjectingGlobalStyles,
|
|
331
|
+
style: {
|
|
332
|
+
animationName: "mui-auto-fill-cancel",
|
|
333
|
+
animationDuration: "10ms",
|
|
334
|
+
"&:-webkit-autofill": {
|
|
335
|
+
animationDuration: "5000s",
|
|
336
|
+
animationName: "mui-auto-fill"
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}, {
|
|
340
|
+
props: {
|
|
341
|
+
size: "small"
|
|
342
|
+
},
|
|
343
|
+
style: {
|
|
344
|
+
paddingTop: 1
|
|
345
|
+
}
|
|
346
|
+
}, {
|
|
347
|
+
props: ({
|
|
348
|
+
ownerState: p
|
|
349
|
+
}) => p.multiline,
|
|
350
|
+
style: {
|
|
351
|
+
height: "auto",
|
|
352
|
+
resize: "none",
|
|
353
|
+
padding: 0,
|
|
354
|
+
paddingTop: 0
|
|
355
|
+
}
|
|
356
|
+
}, {
|
|
357
|
+
props: {
|
|
358
|
+
type: "search"
|
|
359
|
+
},
|
|
360
|
+
style: {
|
|
361
|
+
MozAppearance: "textfield"
|
|
362
|
+
// Improve type search style.
|
|
363
|
+
}
|
|
364
|
+
}]
|
|
365
|
+
};
|
|
366
|
+
})), be = Pe({
|
|
367
|
+
"@keyframes mui-auto-fill": {
|
|
368
|
+
from: {
|
|
369
|
+
display: "block"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"@keyframes mui-auto-fill-cancel": {
|
|
373
|
+
from: {
|
|
374
|
+
display: "block"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}), en = /* @__PURE__ */ s.forwardRef(function(o, t) {
|
|
378
|
+
const l = We({
|
|
379
|
+
props: o,
|
|
380
|
+
name: "MuiInputBase"
|
|
381
|
+
}), {
|
|
382
|
+
"aria-describedby": u,
|
|
383
|
+
autoComplete: p,
|
|
384
|
+
autoFocus: O,
|
|
385
|
+
className: E,
|
|
386
|
+
color: M,
|
|
387
|
+
components: C = {},
|
|
388
|
+
componentsProps: h = {},
|
|
389
|
+
defaultValue: T,
|
|
390
|
+
disabled: y,
|
|
391
|
+
disableInjectingGlobalStyles: S,
|
|
392
|
+
endAdornment: v,
|
|
393
|
+
error: x,
|
|
394
|
+
fullWidth: V = !1,
|
|
395
|
+
id: d,
|
|
396
|
+
inputComponent: b = "input",
|
|
397
|
+
inputProps: r = {},
|
|
398
|
+
inputRef: f,
|
|
399
|
+
margin: z,
|
|
400
|
+
maxRows: R,
|
|
401
|
+
minRows: g,
|
|
402
|
+
multiline: A = !1,
|
|
403
|
+
name: N,
|
|
404
|
+
onBlur: c,
|
|
405
|
+
onChange: H,
|
|
406
|
+
onClick: P,
|
|
407
|
+
onFocus: oe,
|
|
408
|
+
onKeyDown: Se,
|
|
409
|
+
onKeyUp: xe,
|
|
410
|
+
placeholder: Re,
|
|
411
|
+
readOnly: U,
|
|
412
|
+
renderSuffix: te,
|
|
413
|
+
rows: W,
|
|
414
|
+
size: nn,
|
|
415
|
+
slotProps: re = {},
|
|
416
|
+
slots: ie = {},
|
|
417
|
+
startAdornment: F,
|
|
418
|
+
type: ae = "text",
|
|
419
|
+
value: Oe,
|
|
420
|
+
...Ee
|
|
421
|
+
} = l, D = r.value != null ? r.value : Oe, {
|
|
422
|
+
current: _
|
|
423
|
+
} = s.useRef(D != null), I = s.useRef(), Te = s.useCallback((i) => {
|
|
424
|
+
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(`
|
|
425
|
+
`));
|
|
426
|
+
}, []), Ie = ve(I, f, r.ref, Te), [j, K] = s.useState(!1), a = _e();
|
|
427
|
+
process.env.NODE_ENV !== "production" && s.useEffect(() => {
|
|
428
|
+
if (a)
|
|
429
|
+
return a.registerEffect();
|
|
430
|
+
}, [a]);
|
|
431
|
+
const m = Ke({
|
|
432
|
+
props: l,
|
|
433
|
+
muiFormControl: a,
|
|
434
|
+
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
435
|
+
});
|
|
436
|
+
m.focused = a ? a.focused : j, s.useEffect(() => {
|
|
437
|
+
!a && y && j && (K(!1), c && c());
|
|
438
|
+
}, [a, y, j, c]);
|
|
439
|
+
const $ = a && a.onFilled, q = a && a.onEmpty, k = s.useCallback((i) => {
|
|
440
|
+
je(i) ? $ && $() : q && q();
|
|
441
|
+
}, [$, q]);
|
|
442
|
+
X(() => {
|
|
443
|
+
_ && k({
|
|
444
|
+
value: D
|
|
445
|
+
});
|
|
446
|
+
}, [D, k, _]);
|
|
447
|
+
const ze = (i) => {
|
|
448
|
+
oe && oe(i), r.onFocus && r.onFocus(i), a && a.onFocus ? a.onFocus(i) : K(!0);
|
|
449
|
+
}, Ae = (i) => {
|
|
450
|
+
c && c(i), r.onBlur && r.onBlur(i), a && a.onBlur ? a.onBlur(i) : K(!1);
|
|
451
|
+
}, Ne = (i, ...de) => {
|
|
452
|
+
if (!_) {
|
|
453
|
+
const ce = i.target || I.current;
|
|
454
|
+
if (ce == null)
|
|
455
|
+
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));
|
|
456
|
+
k({
|
|
457
|
+
value: ce.value
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
r.onChange && r.onChange(i, ...de), H && H(i, ...de);
|
|
461
|
+
};
|
|
462
|
+
s.useEffect(() => {
|
|
463
|
+
k(I.current);
|
|
464
|
+
}, []);
|
|
465
|
+
const Fe = (i) => {
|
|
466
|
+
I.current && i.currentTarget === i.target && I.current.focus(), P && P(i);
|
|
467
|
+
};
|
|
468
|
+
let G = b, w = r;
|
|
469
|
+
A && G === "input" && (W ? (process.env.NODE_ENV !== "production" && (g || R) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), w = {
|
|
470
|
+
type: void 0,
|
|
471
|
+
minRows: W,
|
|
472
|
+
maxRows: W,
|
|
473
|
+
...w
|
|
474
|
+
}) : w = {
|
|
475
|
+
type: void 0,
|
|
476
|
+
maxRows: R,
|
|
477
|
+
minRows: g,
|
|
478
|
+
...w
|
|
479
|
+
}, G = Ce);
|
|
480
|
+
const ke = (i) => {
|
|
481
|
+
k(i.animationName === "mui-auto-fill-cancel" ? I.current : {
|
|
482
|
+
value: "x"
|
|
483
|
+
});
|
|
484
|
+
};
|
|
485
|
+
s.useEffect(() => {
|
|
486
|
+
a && a.setAdornedStart(!!F);
|
|
487
|
+
}, [a, F]);
|
|
488
|
+
const Y = {
|
|
489
|
+
...l,
|
|
490
|
+
color: m.color || "primary",
|
|
491
|
+
disabled: m.disabled,
|
|
492
|
+
endAdornment: v,
|
|
493
|
+
error: m.error,
|
|
494
|
+
focused: m.focused,
|
|
495
|
+
formControl: a,
|
|
496
|
+
fullWidth: V,
|
|
497
|
+
hiddenLabel: m.hiddenLabel,
|
|
498
|
+
multiline: A,
|
|
499
|
+
size: m.size,
|
|
500
|
+
startAdornment: F,
|
|
501
|
+
type: ae
|
|
502
|
+
}, se = Je(Y), le = ie.root || C.Root || Qe, Z = re.root || h.root || {}, ue = ie.input || C.Input || Xe;
|
|
503
|
+
return w = {
|
|
504
|
+
...w,
|
|
505
|
+
...re.input ?? h.input
|
|
506
|
+
}, /* @__PURE__ */ Q(s.Fragment, {
|
|
507
|
+
children: [!S && typeof be == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
508
|
+
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
509
|
+
(ye || (ye = /* @__PURE__ */ B(be, {}))), /* @__PURE__ */ Q(le, {
|
|
510
|
+
...Z,
|
|
511
|
+
ref: t,
|
|
512
|
+
onClick: Fe,
|
|
513
|
+
...Ee,
|
|
514
|
+
...!he(le) && {
|
|
515
|
+
ownerState: {
|
|
516
|
+
...Y,
|
|
517
|
+
...Z.ownerState
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
className: pe(se.root, Z.className, E, U && "MuiInputBase-readOnly"),
|
|
521
|
+
children: [F, /* @__PURE__ */ B(ne.Provider, {
|
|
522
|
+
value: null,
|
|
523
|
+
children: /* @__PURE__ */ B(ue, {
|
|
524
|
+
"aria-invalid": m.error,
|
|
525
|
+
"aria-describedby": u,
|
|
526
|
+
autoComplete: p,
|
|
527
|
+
autoFocus: O,
|
|
528
|
+
defaultValue: T,
|
|
529
|
+
disabled: m.disabled,
|
|
530
|
+
id: d,
|
|
531
|
+
onAnimationStart: ke,
|
|
532
|
+
name: N,
|
|
533
|
+
placeholder: Re,
|
|
534
|
+
readOnly: U,
|
|
535
|
+
required: m.required,
|
|
536
|
+
rows: W,
|
|
537
|
+
value: D,
|
|
538
|
+
onKeyDown: Se,
|
|
539
|
+
onKeyUp: xe,
|
|
540
|
+
type: ae,
|
|
541
|
+
...w,
|
|
542
|
+
...!he(ue) && {
|
|
543
|
+
as: G,
|
|
544
|
+
ownerState: {
|
|
545
|
+
...Y,
|
|
546
|
+
...w.ownerState
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
ref: Ie,
|
|
550
|
+
className: pe(se.input, w.className, U && "MuiInputBase-readOnly"),
|
|
551
|
+
onBlur: Ae,
|
|
552
|
+
onChange: Ne,
|
|
553
|
+
onFocus: ze
|
|
554
|
+
})
|
|
555
|
+
}), v, te ? te({
|
|
556
|
+
...m,
|
|
557
|
+
startAdornment: F
|
|
558
|
+
}) : null]
|
|
559
|
+
})]
|
|
560
|
+
});
|
|
561
|
+
});
|
|
562
|
+
process.env.NODE_ENV !== "production" && (en.propTypes = {
|
|
563
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
564
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
565
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
566
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
567
|
+
/**
|
|
568
|
+
* @ignore
|
|
569
|
+
*/
|
|
570
|
+
"aria-describedby": e.string,
|
|
571
|
+
/**
|
|
572
|
+
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
573
|
+
* The name can be confusing, as it's more like an autofill.
|
|
574
|
+
* You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
|
|
575
|
+
*/
|
|
576
|
+
autoComplete: e.string,
|
|
577
|
+
/**
|
|
578
|
+
* If `true`, the `input` element is focused during the first mount.
|
|
579
|
+
*/
|
|
580
|
+
autoFocus: e.bool,
|
|
581
|
+
/**
|
|
582
|
+
* Override or extend the styles applied to the component.
|
|
583
|
+
*/
|
|
584
|
+
classes: e.object,
|
|
585
|
+
/**
|
|
586
|
+
* @ignore
|
|
587
|
+
*/
|
|
588
|
+
className: e.string,
|
|
589
|
+
/**
|
|
590
|
+
* The color of the component.
|
|
591
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
592
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
593
|
+
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
594
|
+
*/
|
|
595
|
+
color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
596
|
+
/**
|
|
597
|
+
* The components used for each slot inside.
|
|
598
|
+
*
|
|
599
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
600
|
+
*
|
|
601
|
+
* @default {}
|
|
602
|
+
*/
|
|
603
|
+
components: e.shape({
|
|
604
|
+
Input: e.elementType,
|
|
605
|
+
Root: e.elementType
|
|
606
|
+
}),
|
|
607
|
+
/**
|
|
608
|
+
* The extra props for the slot components.
|
|
609
|
+
* You can override the existing props or add new ones.
|
|
610
|
+
*
|
|
611
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
612
|
+
*
|
|
613
|
+
* @default {}
|
|
614
|
+
*/
|
|
615
|
+
componentsProps: e.shape({
|
|
616
|
+
input: e.object,
|
|
617
|
+
root: e.object
|
|
618
|
+
}),
|
|
619
|
+
/**
|
|
620
|
+
* The default value. Use when the component is not controlled.
|
|
621
|
+
*/
|
|
622
|
+
defaultValue: e.any,
|
|
623
|
+
/**
|
|
624
|
+
* If `true`, the component is disabled.
|
|
625
|
+
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
626
|
+
*/
|
|
627
|
+
disabled: e.bool,
|
|
628
|
+
/**
|
|
629
|
+
* If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.
|
|
630
|
+
* This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.
|
|
631
|
+
* @default false
|
|
632
|
+
*/
|
|
633
|
+
disableInjectingGlobalStyles: e.bool,
|
|
634
|
+
/**
|
|
635
|
+
* End `InputAdornment` for this component.
|
|
636
|
+
*/
|
|
637
|
+
endAdornment: e.node,
|
|
638
|
+
/**
|
|
639
|
+
* If `true`, the `input` will indicate an error.
|
|
640
|
+
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
641
|
+
*/
|
|
642
|
+
error: e.bool,
|
|
643
|
+
/**
|
|
644
|
+
* If `true`, the `input` will take up the full width of its container.
|
|
645
|
+
* @default false
|
|
646
|
+
*/
|
|
647
|
+
fullWidth: e.bool,
|
|
648
|
+
/**
|
|
649
|
+
* The id of the `input` element.
|
|
650
|
+
*/
|
|
651
|
+
id: e.string,
|
|
652
|
+
/**
|
|
653
|
+
* The component used for the `input` element.
|
|
654
|
+
* Either a string to use a HTML element or a component.
|
|
655
|
+
* @default 'input'
|
|
656
|
+
*/
|
|
657
|
+
inputComponent: Le,
|
|
658
|
+
/**
|
|
659
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
660
|
+
* @default {}
|
|
661
|
+
*/
|
|
662
|
+
inputProps: e.object,
|
|
663
|
+
/**
|
|
664
|
+
* Pass a ref to the `input` element.
|
|
665
|
+
*/
|
|
666
|
+
inputRef: Ve,
|
|
667
|
+
/**
|
|
668
|
+
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
669
|
+
* FormControl.
|
|
670
|
+
* The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
|
|
671
|
+
*/
|
|
672
|
+
margin: e.oneOf(["dense", "none"]),
|
|
673
|
+
/**
|
|
674
|
+
* Maximum number of rows to display when multiline option is set to true.
|
|
675
|
+
*/
|
|
676
|
+
maxRows: e.oneOfType([e.number, e.string]),
|
|
677
|
+
/**
|
|
678
|
+
* Minimum number of rows to display when multiline option is set to true.
|
|
679
|
+
*/
|
|
680
|
+
minRows: e.oneOfType([e.number, e.string]),
|
|
681
|
+
/**
|
|
682
|
+
* If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
|
|
683
|
+
* @default false
|
|
684
|
+
*/
|
|
685
|
+
multiline: e.bool,
|
|
686
|
+
/**
|
|
687
|
+
* Name attribute of the `input` element.
|
|
688
|
+
*/
|
|
689
|
+
name: e.string,
|
|
690
|
+
/**
|
|
691
|
+
* Callback fired when the `input` is blurred.
|
|
692
|
+
*
|
|
693
|
+
* Notice that the first argument (event) might be undefined.
|
|
694
|
+
*/
|
|
695
|
+
onBlur: e.func,
|
|
696
|
+
/**
|
|
697
|
+
* Callback fired when the value is changed.
|
|
698
|
+
*
|
|
699
|
+
* @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
|
|
700
|
+
* You can pull out the new value by accessing `event.target.value` (string).
|
|
701
|
+
*/
|
|
702
|
+
onChange: e.func,
|
|
703
|
+
/**
|
|
704
|
+
* @ignore
|
|
705
|
+
*/
|
|
706
|
+
onClick: e.func,
|
|
707
|
+
/**
|
|
708
|
+
* @ignore
|
|
709
|
+
*/
|
|
710
|
+
onFocus: e.func,
|
|
711
|
+
/**
|
|
712
|
+
* Callback fired when the `input` doesn't satisfy its constraints.
|
|
713
|
+
*/
|
|
714
|
+
onInvalid: e.func,
|
|
715
|
+
/**
|
|
716
|
+
* @ignore
|
|
717
|
+
*/
|
|
718
|
+
onKeyDown: e.func,
|
|
719
|
+
/**
|
|
720
|
+
* @ignore
|
|
721
|
+
*/
|
|
722
|
+
onKeyUp: e.func,
|
|
723
|
+
/**
|
|
724
|
+
* The short hint displayed in the `input` before the user enters a value.
|
|
725
|
+
*/
|
|
726
|
+
placeholder: e.string,
|
|
727
|
+
/**
|
|
728
|
+
* It prevents the user from changing the value of the field
|
|
729
|
+
* (not from interacting with the field).
|
|
730
|
+
*/
|
|
731
|
+
readOnly: e.bool,
|
|
732
|
+
/**
|
|
733
|
+
* @ignore
|
|
734
|
+
*/
|
|
735
|
+
renderSuffix: e.func,
|
|
736
|
+
/**
|
|
737
|
+
* If `true`, the `input` element is required.
|
|
738
|
+
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
|
|
739
|
+
*/
|
|
740
|
+
required: e.bool,
|
|
741
|
+
/**
|
|
742
|
+
* Number of rows to display when multiline option is set to true.
|
|
743
|
+
*/
|
|
744
|
+
rows: e.oneOfType([e.number, e.string]),
|
|
745
|
+
/**
|
|
746
|
+
* The size of the component.
|
|
747
|
+
*/
|
|
748
|
+
size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
|
|
749
|
+
/**
|
|
750
|
+
* The extra props for the slot components.
|
|
751
|
+
* You can override the existing props or add new ones.
|
|
752
|
+
*
|
|
753
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
754
|
+
*
|
|
755
|
+
* @default {}
|
|
756
|
+
*/
|
|
757
|
+
slotProps: e.shape({
|
|
758
|
+
input: e.object,
|
|
759
|
+
root: e.object
|
|
760
|
+
}),
|
|
761
|
+
/**
|
|
762
|
+
* The components used for each slot inside.
|
|
763
|
+
*
|
|
764
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
765
|
+
*
|
|
766
|
+
* @default {}
|
|
767
|
+
*/
|
|
768
|
+
slots: e.shape({
|
|
769
|
+
input: e.elementType,
|
|
770
|
+
root: e.elementType
|
|
771
|
+
}),
|
|
772
|
+
/**
|
|
773
|
+
* Start `InputAdornment` for this component.
|
|
774
|
+
*/
|
|
775
|
+
startAdornment: e.node,
|
|
776
|
+
/**
|
|
777
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
778
|
+
*/
|
|
779
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
780
|
+
/**
|
|
781
|
+
* Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types).
|
|
782
|
+
* @default 'text'
|
|
783
|
+
*/
|
|
784
|
+
type: e.string,
|
|
785
|
+
/**
|
|
786
|
+
* The value of the `input` element, required for a controlled component.
|
|
787
|
+
*/
|
|
788
|
+
value: e.any
|
|
789
|
+
});
|
|
790
|
+
export {
|
|
791
|
+
ne as F,
|
|
792
|
+
en as I,
|
|
793
|
+
je as a,
|
|
794
|
+
ee as b,
|
|
795
|
+
Qe as c,
|
|
796
|
+
Xe as d,
|
|
797
|
+
Ze as e,
|
|
798
|
+
Ke as f,
|
|
799
|
+
he as g,
|
|
800
|
+
cn as i,
|
|
801
|
+
Ye as r,
|
|
802
|
+
_e as u
|
|
803
|
+
};
|