@cgi-learning-hub/ui 1.2.0 → 1.3.0-dev.1731057153
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
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as u from "react";
|
|
2
|
-
function d(...t) {
|
|
3
|
-
return t.reduce((o, e) => e == null ? o : function(...i) {
|
|
4
|
-
o.apply(this, i), e.apply(this, i);
|
|
5
|
-
}, () => {
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
function f(t, o) {
|
|
9
|
-
var e, n;
|
|
10
|
-
return /* @__PURE__ */ u.isValidElement(t) && o.indexOf(
|
|
11
|
-
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
12
|
-
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
13
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
14
|
-
(e = t.type.muiName) != null ? e : (n = t.type) == null || (n = n._payload) == null || (n = n.value) == null ? void 0 : n.muiName
|
|
15
|
-
) !== -1;
|
|
16
|
-
}
|
|
17
|
-
function h({
|
|
18
|
-
controlled: t,
|
|
19
|
-
default: o,
|
|
20
|
-
name: e,
|
|
21
|
-
state: n = "value"
|
|
22
|
-
}) {
|
|
23
|
-
const {
|
|
24
|
-
current: i
|
|
25
|
-
} = u.useRef(t !== void 0), [r, s] = u.useState(o), c = i ? t : r;
|
|
26
|
-
if (process.env.NODE_ENV !== "production") {
|
|
27
|
-
u.useEffect(() => {
|
|
28
|
-
i !== (t !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${n} state of ${e} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${e} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
29
|
-
`));
|
|
30
|
-
}, [n, e, t]);
|
|
31
|
-
const {
|
|
32
|
-
current: l
|
|
33
|
-
} = u.useRef(o);
|
|
34
|
-
u.useEffect(() => {
|
|
35
|
-
!i && !Object.is(l, o) && console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${e} after being initialized. To suppress this warning opt to use a controlled ${e}.`].join(`
|
|
36
|
-
`));
|
|
37
|
-
}, [JSON.stringify(o)]);
|
|
38
|
-
}
|
|
39
|
-
const a = u.useCallback((l) => {
|
|
40
|
-
i || s(l);
|
|
41
|
-
}, []);
|
|
42
|
-
return [c, a];
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
d as c,
|
|
46
|
-
f as i,
|
|
47
|
-
h as u
|
|
48
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("react");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=r(o);function f(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const s=typeof window<"u"?c.useLayoutEffect:c.useEffect;function i(...e){return c.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{f(n,t)})},e)}exports.setRef=f;exports.useEnhancedEffect=s;exports.useForkRef=i;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as t from "react";
|
|
2
|
-
function f(e, n) {
|
|
3
|
-
typeof e == "function" ? e(n) : e && (e.current = n);
|
|
4
|
-
}
|
|
5
|
-
const o = typeof window < "u" ? t.useLayoutEffect : t.useEffect;
|
|
6
|
-
function c(...e) {
|
|
7
|
-
return t.useMemo(() => e.every((n) => n == null) ? null : (n) => {
|
|
8
|
-
e.forEach((u) => {
|
|
9
|
-
f(u, n);
|
|
10
|
-
});
|
|
11
|
-
}, e);
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
c as a,
|
|
15
|
-
f as s,
|
|
16
|
-
o as u
|
|
17
|
-
};
|
package/dist/useId-BW-oWmul.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
let n = 0;
|
|
3
|
-
function l(t) {
|
|
4
|
-
const [u, o] = e.useState(t), a = t || u;
|
|
5
|
-
return e.useEffect(() => {
|
|
6
|
-
u == null && (n += 1, o(`mui-${n}`));
|
|
7
|
-
}, [u]), a;
|
|
8
|
-
}
|
|
9
|
-
const s = e.useId;
|
|
10
|
-
function c(t) {
|
|
11
|
-
if (s !== void 0) {
|
|
12
|
-
const u = s();
|
|
13
|
-
return t ?? u;
|
|
14
|
-
}
|
|
15
|
-
return l(t);
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
c as u
|
|
19
|
-
};
|
package/dist/useId-Cw0TtD-8.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("react");function l(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,u.get?u:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const c=l(a);let o=0;function r(t){const[e,n]=c.useState(t),u=t||e;return c.useEffect(()=>{e==null&&(o+=1,n(`mui-${o}`))},[e]),u}const s=c.useId;function f(t){if(s!==void 0){const e=s();return t??e}return r(t)}exports.useId=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("react"),c=require("./useTimeout-XUWYBnl6.cjs");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=f(o);let i=!0,a=!1;const d=new c.Timeout,b={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function y(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&b[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function h(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function s(){i=!1}function m(){this.visibilityState==="hidden"&&a&&(i=!0)}function p(e){e.addEventListener("keydown",h,!0),e.addEventListener("mousedown",s,!0),e.addEventListener("pointerdown",s,!0),e.addEventListener("touchstart",s,!0),e.addEventListener("visibilitychange",m,!0)}function g(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return i||y(t)}function w(){const e=l.useCallback(u=>{u!=null&&p(u.ownerDocument)},[]),t=l.useRef(!1);function r(){return t.current?(a=!0,d.start(100,()=>{a=!1}),t.current=!1,!0):!1}function n(u){return g(u)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}exports.useIsFocusVisible=w;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as a from "react";
|
|
2
|
-
import { T as o } from "./useTimeout-BdvDipeg.js";
|
|
3
|
-
let n = !0, s = !1;
|
|
4
|
-
const c = new o(), f = {
|
|
5
|
-
text: !0,
|
|
6
|
-
search: !0,
|
|
7
|
-
url: !0,
|
|
8
|
-
tel: !0,
|
|
9
|
-
email: !0,
|
|
10
|
-
password: !0,
|
|
11
|
-
number: !0,
|
|
12
|
-
date: !0,
|
|
13
|
-
month: !0,
|
|
14
|
-
week: !0,
|
|
15
|
-
time: !0,
|
|
16
|
-
datetime: !0,
|
|
17
|
-
"datetime-local": !0
|
|
18
|
-
};
|
|
19
|
-
function d(e) {
|
|
20
|
-
const {
|
|
21
|
-
type: t,
|
|
22
|
-
tagName: r
|
|
23
|
-
} = e;
|
|
24
|
-
return !!(r === "INPUT" && f[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
|
|
25
|
-
}
|
|
26
|
-
function h(e) {
|
|
27
|
-
e.metaKey || e.altKey || e.ctrlKey || (n = !0);
|
|
28
|
-
}
|
|
29
|
-
function i() {
|
|
30
|
-
n = !1;
|
|
31
|
-
}
|
|
32
|
-
function y() {
|
|
33
|
-
this.visibilityState === "hidden" && s && (n = !0);
|
|
34
|
-
}
|
|
35
|
-
function m(e) {
|
|
36
|
-
e.addEventListener("keydown", h, !0), e.addEventListener("mousedown", i, !0), e.addEventListener("pointerdown", i, !0), e.addEventListener("touchstart", i, !0), e.addEventListener("visibilitychange", y, !0);
|
|
37
|
-
}
|
|
38
|
-
function b(e) {
|
|
39
|
-
const {
|
|
40
|
-
target: t
|
|
41
|
-
} = e;
|
|
42
|
-
try {
|
|
43
|
-
return t.matches(":focus-visible");
|
|
44
|
-
} catch {
|
|
45
|
-
}
|
|
46
|
-
return n || d(t);
|
|
47
|
-
}
|
|
48
|
-
function w() {
|
|
49
|
-
const e = a.useCallback((u) => {
|
|
50
|
-
u != null && m(u.ownerDocument);
|
|
51
|
-
}, []), t = a.useRef(!1);
|
|
52
|
-
function r() {
|
|
53
|
-
return t.current ? (s = !0, c.start(100, () => {
|
|
54
|
-
s = !1;
|
|
55
|
-
}), t.current = !1, !0) : !1;
|
|
56
|
-
}
|
|
57
|
-
function l(u) {
|
|
58
|
-
return b(u) ? (t.current = !0, !0) : !1;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
isFocusVisibleRef: t,
|
|
62
|
-
onFocus: l,
|
|
63
|
-
onBlur: r,
|
|
64
|
-
ref: e
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
w as u
|
|
69
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./identifier-4KVhx666.cjs"),N=require("./useForkRef-CGd3Nhyb.cjs"),R=require("./isHostComponent-PydJW4A4.cjs"),E=require("react"),O=require("react/jsx-runtime"),T=require("./styled-ZF_yhfMW.cjs"),k=require("./useTheme-kqsjFBnC.cjs");function C(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const m=C(E);function S(e,n,t){return e===void 0||R.isHostComponent(e)?n:o._extends({},n,{ownerState:o._extends({},n.ownerState,t)})}function _(e,n=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(s=>s.match(/^on[A-Z]/)&&typeof e[s]=="function"&&!n.includes(s)).forEach(s=>{t[s]=e[s]}),t}function P(e){if(e===void 0)return{};const n={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{n[t]=e[t]}),n}function H(e){const{getSlotProps:n,additionalProps:t,externalSlotProps:s,externalForwardedProps:r,className:i}=e;if(!n){const y=o.clsx(t==null?void 0:t.className,i,r==null?void 0:r.className,s==null?void 0:s.className),x=o._extends({},t==null?void 0:t.style,r==null?void 0:r.style,s==null?void 0:s.style),v=o._extends({},t,r,s);return y.length>0&&(v.className=y),Object.keys(x).length>0&&(v.style=x),{props:v,internalRef:void 0}}const a=_(o._extends({},r,s)),u=P(s),d=P(r),l=n(a),c=o.clsx(l==null?void 0:l.className,t==null?void 0:t.className,i,r==null?void 0:r.className,s==null?void 0:s.className),f=o._extends({},l==null?void 0:l.style,t==null?void 0:t.style,r==null?void 0:r.style,s==null?void 0:s.style),p=o._extends({},l,t,d,u);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function b(e,n,t){return typeof e=="function"?e(n,t):e}const q=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function w(e){var n;const{elementType:t,externalSlotProps:s,ownerState:r,skipResolvingSlotProps:i=!1}=e,a=o._objectWithoutPropertiesLoose(e,q),u=i?{}:b(s,r),{props:d,internalRef:l}=H(o._extends({},a,{externalSlotProps:u})),c=N.useForkRef(l,u==null?void 0:u.ref,(n=e.additionalProps)==null?void 0:n.ref);return S(t,o._extends({},d,{ref:c}),r)}const j=["value"],h=m.createContext();function g(e){let{value:n}=e,t=o._objectWithoutPropertiesLoose(e,j);return O.jsx(h.Provider,o._extends({value:n??!0},t))}process.env.NODE_ENV!=="production"&&(g.propTypes={children:o.PropTypes.node,value:o.PropTypes.bool});const D=()=>{const e=m.useContext(h);return e??!1};function $(){const e=k.useTheme(T.defaultTheme);return process.env.NODE_ENV!=="production"&&m.useDebugValue(e),e[o.THEME_ID]||e}exports.RtlProvider=g;exports.appendOwnerState=S;exports.extractEventHandlers=_;exports.useRtl=D;exports.useSlotProps=w;exports.useTheme=$;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { m as l, x as S, _ as N, P as x, T as E } from "./identifier-D-ng7Qqa.js";
|
|
2
|
-
import { a as R } from "./useForkRef-DwN_Iz9R.js";
|
|
3
|
-
import { i as C } from "./isHostComponent-kiaBvYVo.js";
|
|
4
|
-
import * as v from "react";
|
|
5
|
-
import { jsx as T } from "react/jsx-runtime";
|
|
6
|
-
import { d as _ } from "./styled-xiAudcD_.js";
|
|
7
|
-
import { u as k } from "./useTheme-CjBTq22m.js";
|
|
8
|
-
function H(e, s, t) {
|
|
9
|
-
return e === void 0 || C(e) ? s : l({}, s, {
|
|
10
|
-
ownerState: l({}, s.ownerState, t)
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function O(e, s = []) {
|
|
14
|
-
if (e === void 0)
|
|
15
|
-
return {};
|
|
16
|
-
const t = {};
|
|
17
|
-
return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
|
|
18
|
-
t[n] = e[n];
|
|
19
|
-
}), t;
|
|
20
|
-
}
|
|
21
|
-
function h(e) {
|
|
22
|
-
if (e === void 0)
|
|
23
|
-
return {};
|
|
24
|
-
const s = {};
|
|
25
|
-
return Object.keys(e).filter((t) => !(t.match(/^on[A-Z]/) && typeof e[t] == "function")).forEach((t) => {
|
|
26
|
-
s[t] = e[t];
|
|
27
|
-
}), s;
|
|
28
|
-
}
|
|
29
|
-
function w(e) {
|
|
30
|
-
const {
|
|
31
|
-
getSlotProps: s,
|
|
32
|
-
additionalProps: t,
|
|
33
|
-
externalSlotProps: n,
|
|
34
|
-
externalForwardedProps: o,
|
|
35
|
-
className: i
|
|
36
|
-
} = e;
|
|
37
|
-
if (!s) {
|
|
38
|
-
const y = S(t == null ? void 0 : t.className, i, o == null ? void 0 : o.className, n == null ? void 0 : n.className), P = l({}, t == null ? void 0 : t.style, o == null ? void 0 : o.style, n == null ? void 0 : n.style), m = l({}, t, o, n);
|
|
39
|
-
return y.length > 0 && (m.className = y), Object.keys(P).length > 0 && (m.style = P), {
|
|
40
|
-
props: m,
|
|
41
|
-
internalRef: void 0
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
const c = O(l({}, o, n)), a = h(n), d = h(o), r = s(c), u = S(r == null ? void 0 : r.className, t == null ? void 0 : t.className, i, o == null ? void 0 : o.className, n == null ? void 0 : n.className), f = l({}, r == null ? void 0 : r.style, t == null ? void 0 : t.style, o == null ? void 0 : o.style, n == null ? void 0 : n.style), p = l({}, r, t, d, a);
|
|
45
|
-
return u.length > 0 && (p.className = u), Object.keys(f).length > 0 && (p.style = f), {
|
|
46
|
-
props: p,
|
|
47
|
-
internalRef: r.ref
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function D(e, s, t) {
|
|
51
|
-
return typeof e == "function" ? e(s, t) : e;
|
|
52
|
-
}
|
|
53
|
-
const V = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
54
|
-
function L(e) {
|
|
55
|
-
var s;
|
|
56
|
-
const {
|
|
57
|
-
elementType: t,
|
|
58
|
-
externalSlotProps: n,
|
|
59
|
-
ownerState: o,
|
|
60
|
-
skipResolvingSlotProps: i = !1
|
|
61
|
-
} = e, c = N(e, V), a = i ? {} : D(n, o), {
|
|
62
|
-
props: d,
|
|
63
|
-
internalRef: r
|
|
64
|
-
} = w(l({}, c, {
|
|
65
|
-
externalSlotProps: a
|
|
66
|
-
})), u = R(r, a == null ? void 0 : a.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
|
|
67
|
-
return H(t, l({}, d, {
|
|
68
|
-
ref: u
|
|
69
|
-
}), o);
|
|
70
|
-
}
|
|
71
|
-
const W = ["value"], g = /* @__PURE__ */ v.createContext();
|
|
72
|
-
function $(e) {
|
|
73
|
-
let {
|
|
74
|
-
value: s
|
|
75
|
-
} = e, t = N(e, W);
|
|
76
|
-
return /* @__PURE__ */ T(g.Provider, l({
|
|
77
|
-
value: s ?? !0
|
|
78
|
-
}, t));
|
|
79
|
-
}
|
|
80
|
-
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
81
|
-
children: x.node,
|
|
82
|
-
value: x.bool
|
|
83
|
-
});
|
|
84
|
-
const M = () => {
|
|
85
|
-
const e = v.useContext(g);
|
|
86
|
-
return e ?? !1;
|
|
87
|
-
};
|
|
88
|
-
function q() {
|
|
89
|
-
const e = k(_);
|
|
90
|
-
return process.env.NODE_ENV !== "production" && v.useDebugValue(e), e[E] || e;
|
|
91
|
-
}
|
|
92
|
-
export {
|
|
93
|
-
$ as R,
|
|
94
|
-
M as a,
|
|
95
|
-
L as b,
|
|
96
|
-
H as c,
|
|
97
|
-
O as e,
|
|
98
|
-
q as u
|
|
99
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("react"),o=require("@emotion/react"),s=require("./identifier-4KVhx666.cjs");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=i(u);function f(e){return Object.keys(e).length===0}function c(e=null){const t=a.useContext(o.ThemeContext);return!t||f(t)?e:t}const m=s.createTheme$1();function l(e=m){return c(e)}exports.useTheme=l;exports.useTheme$1=c;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("./styled-ZF_yhfMW.cjs"),t=require("./identifier-4KVhx666.cjs"),u=require("./useThemeProps-BHAsCmc4.cjs");function i({props:e,name:r}){return u.useThemeProps({props:e,name:r,defaultTheme:s.defaultTheme,themeId:t.THEME_ID})}exports.useThemeProps=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const p=require("./styled-ZF_yhfMW.cjs"),m=require("./useTheme-kqsjFBnC.cjs");function n(t){const{theme:e,name:s,props:o}=t;return!e||!e.components||!e.components[s]||!e.components[s].defaultProps?o:p.resolveProps(e.components[s].defaultProps,o)}function u({props:t,name:e,defaultTheme:s,themeId:o}){let r=m.useTheme(s);return o&&(r=r[o]||r),n({theme:r,name:e,props:t})}exports.getThemeProps=n;exports.useThemeProps=u;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { d as m } from "./styled-xiAudcD_.js";
|
|
2
|
-
import { T as o } from "./identifier-D-ng7Qqa.js";
|
|
3
|
-
import { u as s } from "./useThemeProps-BM4fCFq5.js";
|
|
4
|
-
function a({
|
|
5
|
-
props: e,
|
|
6
|
-
name: r
|
|
7
|
-
}) {
|
|
8
|
-
return s({
|
|
9
|
-
props: e,
|
|
10
|
-
name: r,
|
|
11
|
-
defaultTheme: m,
|
|
12
|
-
themeId: o
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
a as u
|
|
17
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as u from "react";
|
|
2
|
-
import { u as c } from "./useForkRef-DwN_Iz9R.js";
|
|
3
|
-
function l(t) {
|
|
4
|
-
const r = u.useRef(t);
|
|
5
|
-
return c(() => {
|
|
6
|
-
r.current = t;
|
|
7
|
-
}), u.useRef((...e) => (
|
|
8
|
-
// @ts-expect-error hide `this`
|
|
9
|
-
(0, r.current)(...e)
|
|
10
|
-
)).current;
|
|
11
|
-
}
|
|
12
|
-
const s = {};
|
|
13
|
-
function i(t, r) {
|
|
14
|
-
const e = u.useRef(s);
|
|
15
|
-
return e.current === s && (e.current = t(r)), e;
|
|
16
|
-
}
|
|
17
|
-
const o = [];
|
|
18
|
-
function f(t) {
|
|
19
|
-
u.useEffect(t, o);
|
|
20
|
-
}
|
|
21
|
-
class n {
|
|
22
|
-
constructor() {
|
|
23
|
-
this.currentId = null, this.clear = () => {
|
|
24
|
-
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
25
|
-
}, this.disposeEffect = () => this.clear;
|
|
26
|
-
}
|
|
27
|
-
static create() {
|
|
28
|
-
return new n();
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
32
|
-
*/
|
|
33
|
-
start(r, e) {
|
|
34
|
-
this.clear(), this.currentId = setTimeout(() => {
|
|
35
|
-
this.currentId = null, e();
|
|
36
|
-
}, r);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function h() {
|
|
40
|
-
const t = i(n.create).current;
|
|
41
|
-
return f(t.disposeEffect), t;
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
n as T,
|
|
45
|
-
h as a,
|
|
46
|
-
l as u
|
|
47
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("react"),o=require("./useForkRef-CGd3Nhyb.cjs");function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=f(i);function a(e){const r=n.useRef(e);return o.useEnhancedEffect(()=>{r.current=e}),n.useRef((...t)=>(0,r.current)(...t)).current}const s={};function l(e,r){const t=n.useRef(s);return t.current===s&&(t.current=e(r)),t}const d=[];function h(e){n.useEffect(e,d)}class u{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new u}start(r,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},r)}}function m(){const e=l(u.create).current;return h(e.disposeEffect),e}exports.Timeout=u;exports.useEventCallback=a;exports.useTimeout=m;
|
package/dist/vite-env.d.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/vite-env.d.es.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|