@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,890 @@
|
|
|
1
|
+
var Oe = Object.defineProperty;
|
|
2
|
+
var je = (n, e, o) => e in n ? Oe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : n[e] = o;
|
|
3
|
+
var le = (n, e, o) => je(n, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
+
import * as d from "react";
|
|
5
|
+
import W, { Children as ke, isValidElement as G, cloneElement as J } from "react";
|
|
6
|
+
import { P as t, L as E, J as de, I as Fe } from "./identifier-Bu3vgTzE.js";
|
|
7
|
+
import { jsx as U, jsxs as Ie } from "react/jsx-runtime";
|
|
8
|
+
import { s as ne, u as he, c as Ue } from "./DefaultPropsProvider-7QnSWHxy.js";
|
|
9
|
+
import { a as $e, b as ze, u as H } from "./useTimeout-Bx22KOcH.js";
|
|
10
|
+
import { _ as _e, a as Ae, T as ce } from "./TransitionGroupContext-DMJLhY9-.js";
|
|
11
|
+
import { keyframes as oe } from "@emotion/react";
|
|
12
|
+
import { u as pe } from "./useForkRef-D-DyzOXj.js";
|
|
13
|
+
import { r as Xe, e as Ye } from "./refType-DvOnKTmB.js";
|
|
14
|
+
function fe(n) {
|
|
15
|
+
try {
|
|
16
|
+
return n.matches(":focus-visible");
|
|
17
|
+
} catch {
|
|
18
|
+
process.env.NODE_ENV !== "production" && !/jsdom/.test(window.navigator.userAgent) && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
|
|
19
|
+
`));
|
|
20
|
+
}
|
|
21
|
+
return !1;
|
|
22
|
+
}
|
|
23
|
+
function ee() {
|
|
24
|
+
return ee = Object.assign ? Object.assign.bind() : function(n) {
|
|
25
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
26
|
+
var o = arguments[e];
|
|
27
|
+
for (var u in o) ({}).hasOwnProperty.call(o, u) && (n[u] = o[u]);
|
|
28
|
+
}
|
|
29
|
+
return n;
|
|
30
|
+
}, ee.apply(null, arguments);
|
|
31
|
+
}
|
|
32
|
+
function Ke(n) {
|
|
33
|
+
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
34
|
+
return n;
|
|
35
|
+
}
|
|
36
|
+
function ie(n, e) {
|
|
37
|
+
var o = function(s) {
|
|
38
|
+
return e && G(s) ? e(s) : s;
|
|
39
|
+
}, u = /* @__PURE__ */ Object.create(null);
|
|
40
|
+
return n && ke.map(n, function(i) {
|
|
41
|
+
return i;
|
|
42
|
+
}).forEach(function(i) {
|
|
43
|
+
u[i.key] = o(i);
|
|
44
|
+
}), u;
|
|
45
|
+
}
|
|
46
|
+
function qe(n, e) {
|
|
47
|
+
n = n || {}, e = e || {};
|
|
48
|
+
function o(h) {
|
|
49
|
+
return h in e ? e[h] : n[h];
|
|
50
|
+
}
|
|
51
|
+
var u = /* @__PURE__ */ Object.create(null), i = [];
|
|
52
|
+
for (var s in n)
|
|
53
|
+
s in e ? i.length && (u[s] = i, i = []) : i.push(s);
|
|
54
|
+
var r, p = {};
|
|
55
|
+
for (var l in e) {
|
|
56
|
+
if (u[l])
|
|
57
|
+
for (r = 0; r < u[l].length; r++) {
|
|
58
|
+
var f = u[l][r];
|
|
59
|
+
p[u[l][r]] = o(f);
|
|
60
|
+
}
|
|
61
|
+
p[l] = o(l);
|
|
62
|
+
}
|
|
63
|
+
for (r = 0; r < i.length; r++)
|
|
64
|
+
p[i[r]] = o(i[r]);
|
|
65
|
+
return p;
|
|
66
|
+
}
|
|
67
|
+
function j(n, e, o) {
|
|
68
|
+
return o[e] != null ? o[e] : n.props[e];
|
|
69
|
+
}
|
|
70
|
+
function We(n, e) {
|
|
71
|
+
return ie(n.children, function(o) {
|
|
72
|
+
return J(o, {
|
|
73
|
+
onExited: e.bind(null, o),
|
|
74
|
+
in: !0,
|
|
75
|
+
appear: j(o, "appear", n),
|
|
76
|
+
enter: j(o, "enter", n),
|
|
77
|
+
exit: j(o, "exit", n)
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function He(n, e, o) {
|
|
82
|
+
var u = ie(n.children), i = qe(e, u);
|
|
83
|
+
return Object.keys(i).forEach(function(s) {
|
|
84
|
+
var r = i[s];
|
|
85
|
+
if (G(r)) {
|
|
86
|
+
var p = s in e, l = s in u, f = e[s], h = G(f) && !f.props.in;
|
|
87
|
+
l && (!p || h) ? i[s] = J(r, {
|
|
88
|
+
onExited: o.bind(null, r),
|
|
89
|
+
in: !0,
|
|
90
|
+
exit: j(r, "exit", n),
|
|
91
|
+
enter: j(r, "enter", n)
|
|
92
|
+
}) : !l && p && !h ? i[s] = J(r, {
|
|
93
|
+
in: !1
|
|
94
|
+
}) : l && p && G(f) && (i[s] = J(r, {
|
|
95
|
+
onExited: o.bind(null, r),
|
|
96
|
+
in: f.props.in,
|
|
97
|
+
exit: j(r, "exit", n),
|
|
98
|
+
enter: j(r, "enter", n)
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
}), i;
|
|
102
|
+
}
|
|
103
|
+
var Ge = Object.values || function(n) {
|
|
104
|
+
return Object.keys(n).map(function(e) {
|
|
105
|
+
return n[e];
|
|
106
|
+
});
|
|
107
|
+
}, Je = {
|
|
108
|
+
component: "div",
|
|
109
|
+
childFactory: function(e) {
|
|
110
|
+
return e;
|
|
111
|
+
}
|
|
112
|
+
}, se = /* @__PURE__ */ function(n) {
|
|
113
|
+
_e(e, n);
|
|
114
|
+
function e(u, i) {
|
|
115
|
+
var s;
|
|
116
|
+
s = n.call(this, u, i) || this;
|
|
117
|
+
var r = s.handleExited.bind(Ke(s));
|
|
118
|
+
return s.state = {
|
|
119
|
+
contextValue: {
|
|
120
|
+
isMounting: !0
|
|
121
|
+
},
|
|
122
|
+
handleExited: r,
|
|
123
|
+
firstRender: !0
|
|
124
|
+
}, s;
|
|
125
|
+
}
|
|
126
|
+
var o = e.prototype;
|
|
127
|
+
return o.componentDidMount = function() {
|
|
128
|
+
this.mounted = !0, this.setState({
|
|
129
|
+
contextValue: {
|
|
130
|
+
isMounting: !1
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}, o.componentWillUnmount = function() {
|
|
134
|
+
this.mounted = !1;
|
|
135
|
+
}, e.getDerivedStateFromProps = function(i, s) {
|
|
136
|
+
var r = s.children, p = s.handleExited, l = s.firstRender;
|
|
137
|
+
return {
|
|
138
|
+
children: l ? We(i, p) : He(i, r, p),
|
|
139
|
+
firstRender: !1
|
|
140
|
+
};
|
|
141
|
+
}, o.handleExited = function(i, s) {
|
|
142
|
+
var r = ie(this.props.children);
|
|
143
|
+
i.key in r || (i.props.onExited && i.props.onExited(s), this.mounted && this.setState(function(p) {
|
|
144
|
+
var l = ee({}, p.children);
|
|
145
|
+
return delete l[i.key], {
|
|
146
|
+
children: l
|
|
147
|
+
};
|
|
148
|
+
}));
|
|
149
|
+
}, o.render = function() {
|
|
150
|
+
var i = this.props, s = i.component, r = i.childFactory, p = Ae(i, ["component", "childFactory"]), l = this.state.contextValue, f = Ge(this.state.children).map(r);
|
|
151
|
+
return delete p.appear, delete p.enter, delete p.exit, s === null ? /* @__PURE__ */ W.createElement(ce.Provider, {
|
|
152
|
+
value: l
|
|
153
|
+
}, f) : /* @__PURE__ */ W.createElement(ce.Provider, {
|
|
154
|
+
value: l
|
|
155
|
+
}, /* @__PURE__ */ W.createElement(s, p, f));
|
|
156
|
+
}, e;
|
|
157
|
+
}(W.Component);
|
|
158
|
+
se.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
159
|
+
/**
|
|
160
|
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
161
|
+
* behavior by providing a `component` prop.
|
|
162
|
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
163
|
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
164
|
+
* borks your css styles.
|
|
165
|
+
*/
|
|
166
|
+
component: t.any,
|
|
167
|
+
/**
|
|
168
|
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
169
|
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
170
|
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
171
|
+
* with our `<Fade>` example.
|
|
172
|
+
*
|
|
173
|
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
174
|
+
* children, sometimes you may want to have a single transition child with
|
|
175
|
+
* content that you want to be transitioned out and in when you change it
|
|
176
|
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
177
|
+
* the transition child as you change its content, this will cause
|
|
178
|
+
* `TransitionGroup` to transition the child out and back in.
|
|
179
|
+
*/
|
|
180
|
+
children: t.node,
|
|
181
|
+
/**
|
|
182
|
+
* A convenience prop that enables or disables appear animations
|
|
183
|
+
* for all children. Note that specifying this will override any defaults set
|
|
184
|
+
* on individual children Transitions.
|
|
185
|
+
*/
|
|
186
|
+
appear: t.bool,
|
|
187
|
+
/**
|
|
188
|
+
* A convenience prop that enables or disables enter animations
|
|
189
|
+
* for all children. Note that specifying this will override any defaults set
|
|
190
|
+
* on individual children Transitions.
|
|
191
|
+
*/
|
|
192
|
+
enter: t.bool,
|
|
193
|
+
/**
|
|
194
|
+
* A convenience prop that enables or disables exit animations
|
|
195
|
+
* for all children. Note that specifying this will override any defaults set
|
|
196
|
+
* on individual children Transitions.
|
|
197
|
+
*/
|
|
198
|
+
exit: t.bool,
|
|
199
|
+
/**
|
|
200
|
+
* You may need to apply reactive updates to a child as it is exiting.
|
|
201
|
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
202
|
+
* child the element has already been removed and not accessible to the consumer.
|
|
203
|
+
*
|
|
204
|
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
205
|
+
* to wrap every child, even the ones that are leaving.
|
|
206
|
+
*
|
|
207
|
+
* @type Function(child: ReactElement) -> ReactElement
|
|
208
|
+
*/
|
|
209
|
+
childFactory: t.func
|
|
210
|
+
} : {};
|
|
211
|
+
se.defaultProps = Je;
|
|
212
|
+
class Q {
|
|
213
|
+
constructor() {
|
|
214
|
+
le(this, "mountEffect", () => {
|
|
215
|
+
this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
|
|
216
|
+
});
|
|
217
|
+
this.ref = {
|
|
218
|
+
current: null
|
|
219
|
+
}, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
|
|
220
|
+
}
|
|
221
|
+
/** React ref to the ripple instance */
|
|
222
|
+
/** If the ripple component should be mounted */
|
|
223
|
+
/** Promise that resolves when the ripple component is mounted */
|
|
224
|
+
/** If the ripple component has been mounted */
|
|
225
|
+
/** React state hook setter */
|
|
226
|
+
static create() {
|
|
227
|
+
return new Q();
|
|
228
|
+
}
|
|
229
|
+
static use() {
|
|
230
|
+
const e = $e(Q.create).current, [o, u] = d.useState(!1);
|
|
231
|
+
return e.shouldMount = o, e.setShouldMount = u, d.useEffect(e.mountEffect, [o]), e;
|
|
232
|
+
}
|
|
233
|
+
mount() {
|
|
234
|
+
return this.mounted || (this.mounted = Ze(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
|
|
235
|
+
}
|
|
236
|
+
/* Ripple API */
|
|
237
|
+
start(...e) {
|
|
238
|
+
this.mount().then(() => {
|
|
239
|
+
var o;
|
|
240
|
+
return (o = this.ref.current) == null ? void 0 : o.start(...e);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
stop(...e) {
|
|
244
|
+
this.mount().then(() => {
|
|
245
|
+
var o;
|
|
246
|
+
return (o = this.ref.current) == null ? void 0 : o.stop(...e);
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
pulsate(...e) {
|
|
250
|
+
this.mount().then(() => {
|
|
251
|
+
var o;
|
|
252
|
+
return (o = this.ref.current) == null ? void 0 : o.pulsate(...e);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function Qe() {
|
|
257
|
+
return Q.use();
|
|
258
|
+
}
|
|
259
|
+
function Ze() {
|
|
260
|
+
let n, e;
|
|
261
|
+
const o = new Promise((u, i) => {
|
|
262
|
+
n = u, e = i;
|
|
263
|
+
});
|
|
264
|
+
return o.resolve = n, o.reject = e, o;
|
|
265
|
+
}
|
|
266
|
+
function me(n) {
|
|
267
|
+
const {
|
|
268
|
+
className: e,
|
|
269
|
+
classes: o,
|
|
270
|
+
pulsate: u = !1,
|
|
271
|
+
rippleX: i,
|
|
272
|
+
rippleY: s,
|
|
273
|
+
rippleSize: r,
|
|
274
|
+
in: p,
|
|
275
|
+
onExited: l,
|
|
276
|
+
timeout: f
|
|
277
|
+
} = n, [h, M] = d.useState(!1), g = E(e, o.ripple, o.rippleVisible, u && o.ripplePulsate), N = {
|
|
278
|
+
width: r,
|
|
279
|
+
height: r,
|
|
280
|
+
top: -(r / 2) + s,
|
|
281
|
+
left: -(r / 2) + i
|
|
282
|
+
}, m = E(o.child, h && o.childLeaving, u && o.childPulsate);
|
|
283
|
+
return !p && !h && M(!0), d.useEffect(() => {
|
|
284
|
+
if (!p && l != null) {
|
|
285
|
+
const S = setTimeout(l, f);
|
|
286
|
+
return () => {
|
|
287
|
+
clearTimeout(S);
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
}, [l, p, f]), /* @__PURE__ */ U("span", {
|
|
291
|
+
className: g,
|
|
292
|
+
style: N,
|
|
293
|
+
children: /* @__PURE__ */ U("span", {
|
|
294
|
+
className: m
|
|
295
|
+
})
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
process.env.NODE_ENV !== "production" && (me.propTypes = {
|
|
299
|
+
/**
|
|
300
|
+
* Override or extend the styles applied to the component.
|
|
301
|
+
*/
|
|
302
|
+
classes: t.object.isRequired,
|
|
303
|
+
className: t.string,
|
|
304
|
+
/**
|
|
305
|
+
* @ignore - injected from TransitionGroup
|
|
306
|
+
*/
|
|
307
|
+
in: t.bool,
|
|
308
|
+
/**
|
|
309
|
+
* @ignore - injected from TransitionGroup
|
|
310
|
+
*/
|
|
311
|
+
onExited: t.func,
|
|
312
|
+
/**
|
|
313
|
+
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
|
314
|
+
*/
|
|
315
|
+
pulsate: t.bool,
|
|
316
|
+
/**
|
|
317
|
+
* Diameter of the ripple.
|
|
318
|
+
*/
|
|
319
|
+
rippleSize: t.number,
|
|
320
|
+
/**
|
|
321
|
+
* Horizontal position of the ripple center.
|
|
322
|
+
*/
|
|
323
|
+
rippleX: t.number,
|
|
324
|
+
/**
|
|
325
|
+
* Vertical position of the ripple center.
|
|
326
|
+
*/
|
|
327
|
+
rippleY: t.number,
|
|
328
|
+
/**
|
|
329
|
+
* exit delay
|
|
330
|
+
*/
|
|
331
|
+
timeout: t.number.isRequired
|
|
332
|
+
});
|
|
333
|
+
const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), te = 550, et = 80, tt = oe`
|
|
334
|
+
0% {
|
|
335
|
+
transform: scale(0);
|
|
336
|
+
opacity: 0.1;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
100% {
|
|
340
|
+
transform: scale(1);
|
|
341
|
+
opacity: 0.3;
|
|
342
|
+
}
|
|
343
|
+
`, nt = oe`
|
|
344
|
+
0% {
|
|
345
|
+
opacity: 1;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
100% {
|
|
349
|
+
opacity: 0;
|
|
350
|
+
}
|
|
351
|
+
`, ot = oe`
|
|
352
|
+
0% {
|
|
353
|
+
transform: scale(1);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
50% {
|
|
357
|
+
transform: scale(0.92);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
100% {
|
|
361
|
+
transform: scale(1);
|
|
362
|
+
}
|
|
363
|
+
`, it = ne("span", {
|
|
364
|
+
name: "MuiTouchRipple",
|
|
365
|
+
slot: "Root"
|
|
366
|
+
})({
|
|
367
|
+
overflow: "hidden",
|
|
368
|
+
pointerEvents: "none",
|
|
369
|
+
position: "absolute",
|
|
370
|
+
zIndex: 0,
|
|
371
|
+
top: 0,
|
|
372
|
+
right: 0,
|
|
373
|
+
bottom: 0,
|
|
374
|
+
left: 0,
|
|
375
|
+
borderRadius: "inherit"
|
|
376
|
+
}), st = ne(me, {
|
|
377
|
+
name: "MuiTouchRipple",
|
|
378
|
+
slot: "Ripple"
|
|
379
|
+
})`
|
|
380
|
+
opacity: 0;
|
|
381
|
+
position: absolute;
|
|
382
|
+
|
|
383
|
+
&.${b.rippleVisible} {
|
|
384
|
+
opacity: 0.3;
|
|
385
|
+
transform: scale(1);
|
|
386
|
+
animation-name: ${tt};
|
|
387
|
+
animation-duration: ${te}ms;
|
|
388
|
+
animation-timing-function: ${({
|
|
389
|
+
theme: n
|
|
390
|
+
}) => n.transitions.easing.easeInOut};
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
&.${b.ripplePulsate} {
|
|
394
|
+
animation-duration: ${({
|
|
395
|
+
theme: n
|
|
396
|
+
}) => n.transitions.duration.shorter}ms;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
& .${b.child} {
|
|
400
|
+
opacity: 1;
|
|
401
|
+
display: block;
|
|
402
|
+
width: 100%;
|
|
403
|
+
height: 100%;
|
|
404
|
+
border-radius: 50%;
|
|
405
|
+
background-color: currentColor;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
& .${b.childLeaving} {
|
|
409
|
+
opacity: 0;
|
|
410
|
+
animation-name: ${nt};
|
|
411
|
+
animation-duration: ${te}ms;
|
|
412
|
+
animation-timing-function: ${({
|
|
413
|
+
theme: n
|
|
414
|
+
}) => n.transitions.easing.easeInOut};
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
& .${b.childPulsate} {
|
|
418
|
+
position: absolute;
|
|
419
|
+
/* @noflip */
|
|
420
|
+
left: 0px;
|
|
421
|
+
top: 0;
|
|
422
|
+
animation-name: ${ot};
|
|
423
|
+
animation-duration: 2500ms;
|
|
424
|
+
animation-timing-function: ${({
|
|
425
|
+
theme: n
|
|
426
|
+
}) => n.transitions.easing.easeInOut};
|
|
427
|
+
animation-iteration-count: infinite;
|
|
428
|
+
animation-delay: 200ms;
|
|
429
|
+
}
|
|
430
|
+
`, be = /* @__PURE__ */ d.forwardRef(function(e, o) {
|
|
431
|
+
const u = he({
|
|
432
|
+
props: e,
|
|
433
|
+
name: "MuiTouchRipple"
|
|
434
|
+
}), {
|
|
435
|
+
center: i = !1,
|
|
436
|
+
classes: s = {},
|
|
437
|
+
className: r,
|
|
438
|
+
...p
|
|
439
|
+
} = u, [l, f] = d.useState([]), h = d.useRef(0), M = d.useRef(null);
|
|
440
|
+
d.useEffect(() => {
|
|
441
|
+
M.current && (M.current(), M.current = null);
|
|
442
|
+
}, [l]);
|
|
443
|
+
const g = d.useRef(!1), N = ze(), m = d.useRef(null), S = d.useRef(null), C = d.useCallback((c) => {
|
|
444
|
+
const {
|
|
445
|
+
pulsate: R,
|
|
446
|
+
rippleX: y,
|
|
447
|
+
rippleY: I,
|
|
448
|
+
rippleSize: B,
|
|
449
|
+
cb: $
|
|
450
|
+
} = c;
|
|
451
|
+
f((T) => [...T, /* @__PURE__ */ U(st, {
|
|
452
|
+
classes: {
|
|
453
|
+
ripple: E(s.ripple, b.ripple),
|
|
454
|
+
rippleVisible: E(s.rippleVisible, b.rippleVisible),
|
|
455
|
+
ripplePulsate: E(s.ripplePulsate, b.ripplePulsate),
|
|
456
|
+
child: E(s.child, b.child),
|
|
457
|
+
childLeaving: E(s.childLeaving, b.childLeaving),
|
|
458
|
+
childPulsate: E(s.childPulsate, b.childPulsate)
|
|
459
|
+
},
|
|
460
|
+
timeout: te,
|
|
461
|
+
pulsate: R,
|
|
462
|
+
rippleX: y,
|
|
463
|
+
rippleY: I,
|
|
464
|
+
rippleSize: B
|
|
465
|
+
}, h.current)]), h.current += 1, M.current = $;
|
|
466
|
+
}, [s]), k = d.useCallback((c = {}, R = {}, y = () => {
|
|
467
|
+
}) => {
|
|
468
|
+
const {
|
|
469
|
+
pulsate: I = !1,
|
|
470
|
+
center: B = i || R.pulsate,
|
|
471
|
+
fakeElement: $ = !1
|
|
472
|
+
// For test purposes
|
|
473
|
+
} = R;
|
|
474
|
+
if ((c == null ? void 0 : c.type) === "mousedown" && g.current) {
|
|
475
|
+
g.current = !1;
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
(c == null ? void 0 : c.type) === "touchstart" && (g.current = !0);
|
|
479
|
+
const T = $ ? null : S.current, w = T ? T.getBoundingClientRect() : {
|
|
480
|
+
width: 0,
|
|
481
|
+
height: 0,
|
|
482
|
+
left: 0,
|
|
483
|
+
top: 0
|
|
484
|
+
};
|
|
485
|
+
let D, x, V;
|
|
486
|
+
if (B || c === void 0 || c.clientX === 0 && c.clientY === 0 || !c.clientX && !c.touches)
|
|
487
|
+
D = Math.round(w.width / 2), x = Math.round(w.height / 2);
|
|
488
|
+
else {
|
|
489
|
+
const {
|
|
490
|
+
clientX: z,
|
|
491
|
+
clientY: L
|
|
492
|
+
} = c.touches && c.touches.length > 0 ? c.touches[0] : c;
|
|
493
|
+
D = Math.round(z - w.left), x = Math.round(L - w.top);
|
|
494
|
+
}
|
|
495
|
+
if (B)
|
|
496
|
+
V = Math.sqrt((2 * w.width ** 2 + w.height ** 2) / 3), V % 2 === 0 && (V += 1);
|
|
497
|
+
else {
|
|
498
|
+
const z = Math.max(Math.abs((T ? T.clientWidth : 0) - D), D) * 2 + 2, L = Math.max(Math.abs((T ? T.clientHeight : 0) - x), x) * 2 + 2;
|
|
499
|
+
V = Math.sqrt(z ** 2 + L ** 2);
|
|
500
|
+
}
|
|
501
|
+
c != null && c.touches ? m.current === null && (m.current = () => {
|
|
502
|
+
C({
|
|
503
|
+
pulsate: I,
|
|
504
|
+
rippleX: D,
|
|
505
|
+
rippleY: x,
|
|
506
|
+
rippleSize: V,
|
|
507
|
+
cb: y
|
|
508
|
+
});
|
|
509
|
+
}, N.start(et, () => {
|
|
510
|
+
m.current && (m.current(), m.current = null);
|
|
511
|
+
})) : C({
|
|
512
|
+
pulsate: I,
|
|
513
|
+
rippleX: D,
|
|
514
|
+
rippleY: x,
|
|
515
|
+
rippleSize: V,
|
|
516
|
+
cb: y
|
|
517
|
+
});
|
|
518
|
+
}, [i, C, N]), Y = d.useCallback(() => {
|
|
519
|
+
k({}, {
|
|
520
|
+
pulsate: !0
|
|
521
|
+
});
|
|
522
|
+
}, [k]), F = d.useCallback((c, R) => {
|
|
523
|
+
if (N.clear(), (c == null ? void 0 : c.type) === "touchend" && m.current) {
|
|
524
|
+
m.current(), m.current = null, N.start(0, () => {
|
|
525
|
+
F(c, R);
|
|
526
|
+
});
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
m.current = null, f((y) => y.length > 0 ? y.slice(1) : y), M.current = R;
|
|
530
|
+
}, [N]);
|
|
531
|
+
return d.useImperativeHandle(o, () => ({
|
|
532
|
+
pulsate: Y,
|
|
533
|
+
start: k,
|
|
534
|
+
stop: F
|
|
535
|
+
}), [Y, k, F]), /* @__PURE__ */ U(it, {
|
|
536
|
+
className: E(b.root, s.root, r),
|
|
537
|
+
ref: S,
|
|
538
|
+
...p,
|
|
539
|
+
children: /* @__PURE__ */ U(se, {
|
|
540
|
+
component: null,
|
|
541
|
+
exit: !0,
|
|
542
|
+
children: l
|
|
543
|
+
})
|
|
544
|
+
});
|
|
545
|
+
});
|
|
546
|
+
process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
547
|
+
/**
|
|
548
|
+
* If `true`, the ripple starts at the center of the component
|
|
549
|
+
* rather than at the point of interaction.
|
|
550
|
+
*/
|
|
551
|
+
center: t.bool,
|
|
552
|
+
/**
|
|
553
|
+
* Override or extend the styles applied to the component.
|
|
554
|
+
*/
|
|
555
|
+
classes: t.object,
|
|
556
|
+
/**
|
|
557
|
+
* @ignore
|
|
558
|
+
*/
|
|
559
|
+
className: t.string
|
|
560
|
+
});
|
|
561
|
+
function rt(n) {
|
|
562
|
+
return Fe("MuiButtonBase", n);
|
|
563
|
+
}
|
|
564
|
+
const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) => {
|
|
565
|
+
const {
|
|
566
|
+
disabled: e,
|
|
567
|
+
focusVisible: o,
|
|
568
|
+
focusVisibleClassName: u,
|
|
569
|
+
classes: i
|
|
570
|
+
} = n, r = Ue({
|
|
571
|
+
root: ["root", e && "disabled", o && "focusVisible"]
|
|
572
|
+
}, rt, i);
|
|
573
|
+
return o && u && (r.root += ` ${u}`), r;
|
|
574
|
+
}, lt = ne("button", {
|
|
575
|
+
name: "MuiButtonBase",
|
|
576
|
+
slot: "Root",
|
|
577
|
+
overridesResolver: (n, e) => e.root
|
|
578
|
+
})({
|
|
579
|
+
display: "inline-flex",
|
|
580
|
+
alignItems: "center",
|
|
581
|
+
justifyContent: "center",
|
|
582
|
+
position: "relative",
|
|
583
|
+
boxSizing: "border-box",
|
|
584
|
+
WebkitTapHighlightColor: "transparent",
|
|
585
|
+
backgroundColor: "transparent",
|
|
586
|
+
// Reset default value
|
|
587
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
588
|
+
outline: 0,
|
|
589
|
+
border: 0,
|
|
590
|
+
margin: 0,
|
|
591
|
+
// Remove the margin in Safari
|
|
592
|
+
borderRadius: 0,
|
|
593
|
+
padding: 0,
|
|
594
|
+
// Remove the padding in Firefox
|
|
595
|
+
cursor: "pointer",
|
|
596
|
+
userSelect: "none",
|
|
597
|
+
verticalAlign: "middle",
|
|
598
|
+
MozAppearance: "none",
|
|
599
|
+
// Reset
|
|
600
|
+
WebkitAppearance: "none",
|
|
601
|
+
// Reset
|
|
602
|
+
textDecoration: "none",
|
|
603
|
+
// So we take precedent over the style of a native <a /> element.
|
|
604
|
+
color: "inherit",
|
|
605
|
+
"&::-moz-focus-inner": {
|
|
606
|
+
borderStyle: "none"
|
|
607
|
+
// Remove Firefox dotted outline.
|
|
608
|
+
},
|
|
609
|
+
[`&.${at.disabled}`]: {
|
|
610
|
+
pointerEvents: "none",
|
|
611
|
+
// Disable link interactions
|
|
612
|
+
cursor: "default"
|
|
613
|
+
},
|
|
614
|
+
"@media print": {
|
|
615
|
+
colorAdjust: "exact"
|
|
616
|
+
}
|
|
617
|
+
}), ct = /* @__PURE__ */ d.forwardRef(function(e, o) {
|
|
618
|
+
const u = he({
|
|
619
|
+
props: e,
|
|
620
|
+
name: "MuiButtonBase"
|
|
621
|
+
}), {
|
|
622
|
+
action: i,
|
|
623
|
+
centerRipple: s = !1,
|
|
624
|
+
children: r,
|
|
625
|
+
className: p,
|
|
626
|
+
component: l = "button",
|
|
627
|
+
disabled: f = !1,
|
|
628
|
+
disableRipple: h = !1,
|
|
629
|
+
disableTouchRipple: M = !1,
|
|
630
|
+
focusRipple: g = !1,
|
|
631
|
+
focusVisibleClassName: N,
|
|
632
|
+
LinkComponent: m = "a",
|
|
633
|
+
onBlur: S,
|
|
634
|
+
onClick: C,
|
|
635
|
+
onContextMenu: k,
|
|
636
|
+
onDragLeave: Y,
|
|
637
|
+
onFocus: F,
|
|
638
|
+
onFocusVisible: c,
|
|
639
|
+
onKeyDown: R,
|
|
640
|
+
onKeyUp: y,
|
|
641
|
+
onMouseDown: I,
|
|
642
|
+
onMouseLeave: B,
|
|
643
|
+
onMouseUp: $,
|
|
644
|
+
onTouchEnd: T,
|
|
645
|
+
onTouchMove: w,
|
|
646
|
+
onTouchStart: D,
|
|
647
|
+
tabIndex: x = 0,
|
|
648
|
+
TouchRippleProps: V,
|
|
649
|
+
touchRippleRef: z,
|
|
650
|
+
type: L,
|
|
651
|
+
..._
|
|
652
|
+
} = u, A = d.useRef(null), P = Qe(), ge = pe(P.ref, z), [O, K] = d.useState(!1);
|
|
653
|
+
f && O && K(!1), d.useImperativeHandle(i, () => ({
|
|
654
|
+
focusVisible: () => {
|
|
655
|
+
K(!0), A.current.focus();
|
|
656
|
+
}
|
|
657
|
+
}), []);
|
|
658
|
+
const ye = P.shouldMount && !h && !f;
|
|
659
|
+
d.useEffect(() => {
|
|
660
|
+
O && g && !h && P.pulsate();
|
|
661
|
+
}, [h, g, O, P]);
|
|
662
|
+
function v(a, ae, Le = M) {
|
|
663
|
+
return H((ue) => (ae && ae(ue), Le || P[a](ue), !0));
|
|
664
|
+
}
|
|
665
|
+
const Me = v("start", I), Re = v("stop", k), Te = v("stop", Y), Ee = v("stop", $), Ce = v("stop", (a) => {
|
|
666
|
+
O && a.preventDefault(), B && B(a);
|
|
667
|
+
}), xe = v("start", D), Pe = v("stop", T), ve = v("stop", w), Ne = v("stop", (a) => {
|
|
668
|
+
fe(a.target) || K(!1), S && S(a);
|
|
669
|
+
}, !1), we = H((a) => {
|
|
670
|
+
A.current || (A.current = a.currentTarget), fe(a.target) && (K(!0), c && c(a)), F && F(a);
|
|
671
|
+
}), Z = () => {
|
|
672
|
+
const a = A.current;
|
|
673
|
+
return l && l !== "button" && !(a.tagName === "A" && a.href);
|
|
674
|
+
}, De = H((a) => {
|
|
675
|
+
g && !a.repeat && O && a.key === " " && P.stop(a, () => {
|
|
676
|
+
P.start(a);
|
|
677
|
+
}), a.target === a.currentTarget && Z() && a.key === " " && a.preventDefault(), R && R(a), a.target === a.currentTarget && Z() && a.key === "Enter" && !f && (a.preventDefault(), C && C(a));
|
|
678
|
+
}), Ve = H((a) => {
|
|
679
|
+
g && a.key === " " && O && !a.defaultPrevented && P.stop(a, () => {
|
|
680
|
+
P.pulsate(a);
|
|
681
|
+
}), y && y(a), C && a.target === a.currentTarget && Z() && a.key === " " && !a.defaultPrevented && C(a);
|
|
682
|
+
});
|
|
683
|
+
let q = l;
|
|
684
|
+
q === "button" && (_.href || _.to) && (q = m);
|
|
685
|
+
const X = {};
|
|
686
|
+
q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!_.href && !_.to && (X.role = "button"), f && (X["aria-disabled"] = f));
|
|
687
|
+
const Se = pe(o, A), re = {
|
|
688
|
+
...u,
|
|
689
|
+
centerRipple: s,
|
|
690
|
+
component: l,
|
|
691
|
+
disabled: f,
|
|
692
|
+
disableRipple: h,
|
|
693
|
+
disableTouchRipple: M,
|
|
694
|
+
focusRipple: g,
|
|
695
|
+
tabIndex: x,
|
|
696
|
+
focusVisible: O
|
|
697
|
+
}, Be = ut(re);
|
|
698
|
+
return /* @__PURE__ */ Ie(lt, {
|
|
699
|
+
as: q,
|
|
700
|
+
className: E(Be.root, p),
|
|
701
|
+
ownerState: re,
|
|
702
|
+
onBlur: Ne,
|
|
703
|
+
onClick: C,
|
|
704
|
+
onContextMenu: Re,
|
|
705
|
+
onFocus: we,
|
|
706
|
+
onKeyDown: De,
|
|
707
|
+
onKeyUp: Ve,
|
|
708
|
+
onMouseDown: Me,
|
|
709
|
+
onMouseLeave: Ce,
|
|
710
|
+
onMouseUp: Ee,
|
|
711
|
+
onDragLeave: Te,
|
|
712
|
+
onTouchEnd: Pe,
|
|
713
|
+
onTouchMove: ve,
|
|
714
|
+
onTouchStart: xe,
|
|
715
|
+
ref: Se,
|
|
716
|
+
tabIndex: f ? -1 : x,
|
|
717
|
+
type: L,
|
|
718
|
+
...X,
|
|
719
|
+
..._,
|
|
720
|
+
children: [r, ye ? /* @__PURE__ */ U(be, {
|
|
721
|
+
ref: ge,
|
|
722
|
+
center: s,
|
|
723
|
+
...V
|
|
724
|
+
}) : null]
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
process.env.NODE_ENV !== "production" && (ct.propTypes = {
|
|
728
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
729
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
730
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
731
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
732
|
+
/**
|
|
733
|
+
* A ref for imperative actions.
|
|
734
|
+
* It currently only supports `focusVisible()` action.
|
|
735
|
+
*/
|
|
736
|
+
action: Xe,
|
|
737
|
+
/**
|
|
738
|
+
* If `true`, the ripples are centered.
|
|
739
|
+
* They won't start at the cursor interaction position.
|
|
740
|
+
* @default false
|
|
741
|
+
*/
|
|
742
|
+
centerRipple: t.bool,
|
|
743
|
+
/**
|
|
744
|
+
* The content of the component.
|
|
745
|
+
*/
|
|
746
|
+
children: t.node,
|
|
747
|
+
/**
|
|
748
|
+
* Override or extend the styles applied to the component.
|
|
749
|
+
*/
|
|
750
|
+
classes: t.object,
|
|
751
|
+
/**
|
|
752
|
+
* @ignore
|
|
753
|
+
*/
|
|
754
|
+
className: t.string,
|
|
755
|
+
/**
|
|
756
|
+
* The component used for the root node.
|
|
757
|
+
* Either a string to use a HTML element or a component.
|
|
758
|
+
*/
|
|
759
|
+
component: Ye,
|
|
760
|
+
/**
|
|
761
|
+
* If `true`, the component is disabled.
|
|
762
|
+
* @default false
|
|
763
|
+
*/
|
|
764
|
+
disabled: t.bool,
|
|
765
|
+
/**
|
|
766
|
+
* If `true`, the ripple effect is disabled.
|
|
767
|
+
*
|
|
768
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
769
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
770
|
+
* @default false
|
|
771
|
+
*/
|
|
772
|
+
disableRipple: t.bool,
|
|
773
|
+
/**
|
|
774
|
+
* If `true`, the touch ripple effect is disabled.
|
|
775
|
+
* @default false
|
|
776
|
+
*/
|
|
777
|
+
disableTouchRipple: t.bool,
|
|
778
|
+
/**
|
|
779
|
+
* If `true`, the base button will have a keyboard focus ripple.
|
|
780
|
+
* @default false
|
|
781
|
+
*/
|
|
782
|
+
focusRipple: t.bool,
|
|
783
|
+
/**
|
|
784
|
+
* This prop can help identify which element has keyboard focus.
|
|
785
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
786
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
787
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
788
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
789
|
+
* if needed.
|
|
790
|
+
*/
|
|
791
|
+
focusVisibleClassName: t.string,
|
|
792
|
+
/**
|
|
793
|
+
* @ignore
|
|
794
|
+
*/
|
|
795
|
+
href: t.any,
|
|
796
|
+
/**
|
|
797
|
+
* The component used to render a link when the `href` prop is provided.
|
|
798
|
+
* @default 'a'
|
|
799
|
+
*/
|
|
800
|
+
LinkComponent: t.elementType,
|
|
801
|
+
/**
|
|
802
|
+
* @ignore
|
|
803
|
+
*/
|
|
804
|
+
onBlur: t.func,
|
|
805
|
+
/**
|
|
806
|
+
* @ignore
|
|
807
|
+
*/
|
|
808
|
+
onClick: t.func,
|
|
809
|
+
/**
|
|
810
|
+
* @ignore
|
|
811
|
+
*/
|
|
812
|
+
onContextMenu: t.func,
|
|
813
|
+
/**
|
|
814
|
+
* @ignore
|
|
815
|
+
*/
|
|
816
|
+
onDragLeave: t.func,
|
|
817
|
+
/**
|
|
818
|
+
* @ignore
|
|
819
|
+
*/
|
|
820
|
+
onFocus: t.func,
|
|
821
|
+
/**
|
|
822
|
+
* Callback fired when the component is focused with a keyboard.
|
|
823
|
+
* We trigger a `onFocus` callback too.
|
|
824
|
+
*/
|
|
825
|
+
onFocusVisible: t.func,
|
|
826
|
+
/**
|
|
827
|
+
* @ignore
|
|
828
|
+
*/
|
|
829
|
+
onKeyDown: t.func,
|
|
830
|
+
/**
|
|
831
|
+
* @ignore
|
|
832
|
+
*/
|
|
833
|
+
onKeyUp: t.func,
|
|
834
|
+
/**
|
|
835
|
+
* @ignore
|
|
836
|
+
*/
|
|
837
|
+
onMouseDown: t.func,
|
|
838
|
+
/**
|
|
839
|
+
* @ignore
|
|
840
|
+
*/
|
|
841
|
+
onMouseLeave: t.func,
|
|
842
|
+
/**
|
|
843
|
+
* @ignore
|
|
844
|
+
*/
|
|
845
|
+
onMouseUp: t.func,
|
|
846
|
+
/**
|
|
847
|
+
* @ignore
|
|
848
|
+
*/
|
|
849
|
+
onTouchEnd: t.func,
|
|
850
|
+
/**
|
|
851
|
+
* @ignore
|
|
852
|
+
*/
|
|
853
|
+
onTouchMove: t.func,
|
|
854
|
+
/**
|
|
855
|
+
* @ignore
|
|
856
|
+
*/
|
|
857
|
+
onTouchStart: t.func,
|
|
858
|
+
/**
|
|
859
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
860
|
+
*/
|
|
861
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
862
|
+
/**
|
|
863
|
+
* @default 0
|
|
864
|
+
*/
|
|
865
|
+
tabIndex: t.number,
|
|
866
|
+
/**
|
|
867
|
+
* Props applied to the `TouchRipple` element.
|
|
868
|
+
*/
|
|
869
|
+
TouchRippleProps: t.object,
|
|
870
|
+
/**
|
|
871
|
+
* A ref that points to the `TouchRipple` element.
|
|
872
|
+
*/
|
|
873
|
+
touchRippleRef: t.oneOfType([t.func, t.shape({
|
|
874
|
+
current: t.shape({
|
|
875
|
+
pulsate: t.func.isRequired,
|
|
876
|
+
start: t.func.isRequired,
|
|
877
|
+
stop: t.func.isRequired
|
|
878
|
+
})
|
|
879
|
+
})]),
|
|
880
|
+
/**
|
|
881
|
+
* @ignore
|
|
882
|
+
*/
|
|
883
|
+
type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string])
|
|
884
|
+
});
|
|
885
|
+
export {
|
|
886
|
+
ct as B,
|
|
887
|
+
se as T,
|
|
888
|
+
ee as _,
|
|
889
|
+
fe as i
|
|
890
|
+
};
|