@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,88 @@
|
|
|
1
|
+
import { L as g, T as O } from "./identifier-Bu3vgTzE.js";
|
|
2
|
+
import * as k from "react";
|
|
3
|
+
import { d as C } from "./DefaultPropsProvider-7QnSWHxy.js";
|
|
4
|
+
import { u as T } from "./useTheme-DhYab2-0.js";
|
|
5
|
+
function D(s) {
|
|
6
|
+
return typeof s == "string";
|
|
7
|
+
}
|
|
8
|
+
function Z(s, c, e) {
|
|
9
|
+
return s === void 0 || D(s) ? c : {
|
|
10
|
+
...c,
|
|
11
|
+
ownerState: {
|
|
12
|
+
...c.ownerState,
|
|
13
|
+
...e
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function R(s, c = []) {
|
|
18
|
+
if (s === void 0)
|
|
19
|
+
return {};
|
|
20
|
+
const e = {};
|
|
21
|
+
return Object.keys(s).filter((n) => n.match(/^on[A-Z]/) && typeof s[n] == "function" && !c.includes(n)).forEach((n) => {
|
|
22
|
+
e[n] = s[n];
|
|
23
|
+
}), e;
|
|
24
|
+
}
|
|
25
|
+
function l(s) {
|
|
26
|
+
if (s === void 0)
|
|
27
|
+
return {};
|
|
28
|
+
const c = {};
|
|
29
|
+
return Object.keys(s).filter((e) => !(e.match(/^on[A-Z]/) && typeof s[e] == "function")).forEach((e) => {
|
|
30
|
+
c[e] = s[e];
|
|
31
|
+
}), c;
|
|
32
|
+
}
|
|
33
|
+
function _(s) {
|
|
34
|
+
const {
|
|
35
|
+
getSlotProps: c,
|
|
36
|
+
additionalProps: e,
|
|
37
|
+
externalSlotProps: n,
|
|
38
|
+
externalForwardedProps: t,
|
|
39
|
+
className: i
|
|
40
|
+
} = s;
|
|
41
|
+
if (!c) {
|
|
42
|
+
const h = g(e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), N = {
|
|
43
|
+
...e == null ? void 0 : e.style,
|
|
44
|
+
...t == null ? void 0 : t.style,
|
|
45
|
+
...n == null ? void 0 : n.style
|
|
46
|
+
}, m = {
|
|
47
|
+
...e,
|
|
48
|
+
...t,
|
|
49
|
+
...n
|
|
50
|
+
};
|
|
51
|
+
return h.length > 0 && (m.className = h), Object.keys(N).length > 0 && (m.style = N), {
|
|
52
|
+
props: m,
|
|
53
|
+
internalRef: void 0
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
const E = R({
|
|
57
|
+
...t,
|
|
58
|
+
...n
|
|
59
|
+
}), v = l(n), H = l(t), f = c(E), y = g(f == null ? void 0 : f.className, e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), a = {
|
|
60
|
+
...f == null ? void 0 : f.style,
|
|
61
|
+
...e == null ? void 0 : e.style,
|
|
62
|
+
...t == null ? void 0 : t.style,
|
|
63
|
+
...n == null ? void 0 : n.style
|
|
64
|
+
}, u = {
|
|
65
|
+
...f,
|
|
66
|
+
...e,
|
|
67
|
+
...H,
|
|
68
|
+
...v
|
|
69
|
+
};
|
|
70
|
+
return y.length > 0 && (u.className = y), Object.keys(a).length > 0 && (u.style = a), {
|
|
71
|
+
props: u,
|
|
72
|
+
internalRef: f.ref
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function r(s, c, e) {
|
|
76
|
+
return typeof s == "function" ? s(c, e) : s;
|
|
77
|
+
}
|
|
78
|
+
function I() {
|
|
79
|
+
const s = T(C);
|
|
80
|
+
return process.env.NODE_ENV !== "production" && k.useDebugValue(s), s[O] || s;
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
Z as a,
|
|
84
|
+
R as e,
|
|
85
|
+
_ as m,
|
|
86
|
+
r,
|
|
87
|
+
I as u
|
|
88
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const m=require("./identifier-B_IiMbpZ.cjs"),E=require("react"),H=require("./DefaultPropsProvider-eEVEiLDf.cjs"),D=require("./useTheme-vN32oV1t.cjs");function T(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return s.default=t,Object.freeze(s)}const b=T(E);function k(t){return typeof t=="string"}function C(t,s,e){return t===void 0||k(t)?s:{...s,ownerState:{...s.ownerState,...e}}}function h(t,s=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!s.includes(n)).forEach(n=>{e[n]=t[n]}),e}function o(t){if(t===void 0)return{};const s={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{s[e]=t[e]}),s}function _(t){const{getSlotProps:s,additionalProps:e,externalSlotProps:n,externalForwardedProps:c,className:r}=t;if(!s){const a=m.clsx(e==null?void 0:e.className,r,c==null?void 0:c.className,n==null?void 0:n.className),g={...e==null?void 0:e.style,...c==null?void 0:c.style,...n==null?void 0:n.style},i={...e,...c,...n};return a.length>0&&(i.className=a),Object.keys(g).length>0&&(i.style=g),{props:i,internalRef:void 0}}const N=h({...c,...n}),O=o(n),v=o(c),u=s(N),l=m.clsx(u==null?void 0:u.className,e==null?void 0:e.className,r,c==null?void 0:c.className,n==null?void 0:n.className),y={...u==null?void 0:u.style,...e==null?void 0:e.style,...c==null?void 0:c.style,...n==null?void 0:n.style},f={...u,...e,...v,...O};return l.length>0&&(f.className=l),Object.keys(y).length>0&&(f.style=y),{props:f,internalRef:u.ref}}function j(t,s,e){return typeof t=="function"?t(s,e):t}function q(){const t=D.useTheme(H.defaultTheme);return process.env.NODE_ENV!=="production"&&b.useDebugValue(t),t[m.THEME_ID]||t}exports.appendOwnerState=C;exports.extractEventHandlers=h;exports.mergeSlotProps=_;exports.resolveComponentProps=j;exports.useTheme=q;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { M as n } from "./identifier-Bu3vgTzE.js";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { ThemeContext as m } from "@emotion/react";
|
|
4
4
|
function r(e) {
|
|
5
5
|
return Object.keys(e).length === 0;
|
|
6
6
|
}
|
|
7
7
|
function s(e = null) {
|
|
8
|
-
const t =
|
|
8
|
+
const t = o.useContext(m);
|
|
9
9
|
return !t || r(t) ? e : t;
|
|
10
10
|
}
|
|
11
|
-
const u =
|
|
11
|
+
const u = n();
|
|
12
12
|
function f(e = u) {
|
|
13
13
|
return s(e);
|
|
14
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./identifier-B_IiMbpZ.cjs"),o=require("react"),s=require("@emotion/react");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(o);function f(e){return Object.keys(e).length===0}function c(e=null){const t=a.useContext(s.ThemeContext);return!t||f(t)?e:t}const m=u.createTheme$1();function l(e=m){return c(e)}exports.useTheme=l;exports.useTheme$1=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./DefaultPropsProvider-eEVEiLDf.cjs"),t=require("./identifier-B_IiMbpZ.cjs"),s=require("./useThemeProps-D_gKWuk1.cjs");function p(r,e,c,d,o){if(process.env.NODE_ENV==="production")return null;const u=o||e;return typeof r[e]<"u"?new Error(`The prop \`${u}\` is not supported. Please remove it.`):null}function i({props:r,name:e}){return s.useThemeProps({props:r,name:e,defaultTheme:n.defaultTheme,themeId:t.THEME_ID})}exports.unsupportedProp=p;exports.useThemeProps=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("./DefaultPropsProvider-eEVEiLDf.cjs"),p=require("./useTheme-vN32oV1t.cjs");function n(t){const{theme:e,name:o,props:r}=t;return!e||!e.components||!e.components[o]||!e.components[o].defaultProps?r:u.resolveProps(e.components[o].defaultProps,r)}function m({props:t,name:e,defaultTheme:o,themeId:r}){let s=p.useTheme(o);return r&&(s=s[r]||s),n({theme:s,name:e,props:t})}exports.getThemeProps=n;exports.useThemeProps=m;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { d as t } from "./DefaultPropsProvider-7QnSWHxy.js";
|
|
2
|
+
import { T as u } from "./identifier-Bu3vgTzE.js";
|
|
3
|
+
import { u as p } from "./useThemeProps-Bmkt_XOR.js";
|
|
4
|
+
function l(o, e, s, m, r) {
|
|
5
|
+
if (process.env.NODE_ENV === "production")
|
|
6
|
+
return null;
|
|
7
|
+
const n = r || e;
|
|
8
|
+
return typeof o[e] < "u" ? new Error(`The prop \`${n}\` is not supported. Please remove it.`) : null;
|
|
9
|
+
}
|
|
10
|
+
function d({
|
|
11
|
+
props: o,
|
|
12
|
+
name: e
|
|
13
|
+
}) {
|
|
14
|
+
return p({
|
|
15
|
+
props: o,
|
|
16
|
+
name: e,
|
|
17
|
+
defaultTheme: t,
|
|
18
|
+
themeId: u
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
l as a,
|
|
23
|
+
d as u
|
|
24
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var a = (e, t, r) => t in e ? i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var u = (e, t, r) => a(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { u as f } from "./refType-DvOnKTmB.js";
|
|
6
|
+
function m(e) {
|
|
7
|
+
const t = n.useRef(e);
|
|
8
|
+
return f(() => {
|
|
9
|
+
t.current = e;
|
|
10
|
+
}), n.useRef((...r) => (
|
|
11
|
+
// @ts-expect-error hide `this`
|
|
12
|
+
(0, t.current)(...r)
|
|
13
|
+
)).current;
|
|
14
|
+
}
|
|
15
|
+
const s = {};
|
|
16
|
+
function o(e, t) {
|
|
17
|
+
const r = n.useRef(s);
|
|
18
|
+
return r.current === s && (r.current = e(t)), r;
|
|
19
|
+
}
|
|
20
|
+
const l = [];
|
|
21
|
+
function I(e) {
|
|
22
|
+
n.useEffect(e, l);
|
|
23
|
+
}
|
|
24
|
+
class c {
|
|
25
|
+
constructor() {
|
|
26
|
+
u(this, "currentId", null);
|
|
27
|
+
u(this, "clear", () => {
|
|
28
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
29
|
+
});
|
|
30
|
+
u(this, "disposeEffect", () => this.clear);
|
|
31
|
+
}
|
|
32
|
+
static create() {
|
|
33
|
+
return new c();
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
37
|
+
*/
|
|
38
|
+
start(t, r) {
|
|
39
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
40
|
+
this.currentId = null, r();
|
|
41
|
+
}, t);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function E() {
|
|
45
|
+
const e = o(c.create).current;
|
|
46
|
+
return I(e.disposeEffect), e;
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
c as T,
|
|
50
|
+
o as a,
|
|
51
|
+
E as b,
|
|
52
|
+
m as u
|
|
53
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var f=Object.defineProperty;var a=(e,t,r)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var n=(e,t,r)=>a(e,typeof t!="symbol"?t+"":t,r);const l=require("react"),d=require("./refType-DYRsy3ld.cjs");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=m(l);function I(e){const t=u.useRef(e);return d.useEnhancedEffect(()=>{t.current=e}),u.useRef((...r)=>(0,t.current)(...r)).current}const i={};function o(e,t){const r=u.useRef(i);return r.current===i&&(r.current=e(t)),r}const p=[];function E(e){u.useEffect(e,p)}class c{constructor(){n(this,"currentId",null);n(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});n(this,"disposeEffect",()=>this.clear)}static create(){return new c}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function T(){const e=o(c.create).current;return E(e.disposeEffect),e}exports.Timeout=c;exports.useEventCallback=I;exports.useLazyRef=o;exports.useTimeout=T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "CGI Learning-hub Team",
|
|
6
6
|
"description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
|
|
@@ -30,26 +30,23 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@mui/
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"dayjs": "1.11.11",
|
|
39
|
-
"react-dropzone": "14.2.3"
|
|
33
|
+
"@mui/icons-material": "6.1.6",
|
|
34
|
+
"@mui/lab": "6.0.0-beta.14",
|
|
35
|
+
"@mui/x-date-pickers": "7.22.1",
|
|
36
|
+
"dayjs": "1.11.13",
|
|
37
|
+
"react-dropzone": "14.3.3"
|
|
40
38
|
},
|
|
41
39
|
"devDependencies": {
|
|
42
|
-
"@reduxjs/toolkit": "2.
|
|
43
|
-
"@types/react": "18.3.
|
|
44
|
-
"@types/react-dom": "18.3.
|
|
45
|
-
"autoprefixer": "10.4.19",
|
|
46
|
-
"postcss": "8.4.39",
|
|
47
|
-
"tailwindcss": "3.4.6"
|
|
40
|
+
"@reduxjs/toolkit": "2.3.0",
|
|
41
|
+
"@types/react": "18.3.12",
|
|
42
|
+
"@types/react-dom": "18.3.1"
|
|
48
43
|
},
|
|
49
44
|
"peerDependencies": {
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
52
|
-
"
|
|
45
|
+
"@emotion/react": "^11",
|
|
46
|
+
"@emotion/styled": "^11",
|
|
47
|
+
"@mui/material": "^6",
|
|
48
|
+
"react": "^18",
|
|
49
|
+
"react-dom": "^18"
|
|
53
50
|
},
|
|
54
51
|
"scripts": {
|
|
55
52
|
"dev": "vite",
|
package/dist/Box-5x1F2S3-.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./identifier-4KVhx666.cjs"),T=require("react"),P=require("./useTheme-kqsjFBnC.cjs"),h=require("react/jsx-runtime");function b(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const N=b(T),B=["className","component"];function g(o={}){const{themeId:t,defaultTheme:s,defaultClassName:r="MuiBox-root",generateClassName:a}=o,i=e.styled("div",{shouldForwardProp:n=>n!=="theme"&&n!=="sx"&&n!=="as"})(e.styleFunctionSx);return N.forwardRef(function(d,m){const c=P.useTheme(s),p=e.extendSxProp(d),{className:f,component:x="div"}=p,y=e._objectWithoutPropertiesLoose(p,B);return h.jsx(i,e._extends({as:x,ref:m,className:e.clsx(f,a?a(r):r),theme:t&&c[t]||c},y))})}const C=e.generateUtilityClasses("MuiBox",["root"]),u=C,O=e.createTheme(),l=g({themeId:e.THEME_ID,defaultTheme:O,defaultClassName:u.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(l.propTypes={children:e.PropTypes.node,component:e.PropTypes.elementType,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});const _=l;exports.Box=_;exports.boxClasses=u;
|
package/dist/Button-C__-QOJY.js
DELETED
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
import { w as D, v as F, q as r, m as t, y as v, _ as G, x as m, P as n } from "./identifier-D-ng7Qqa.js";
|
|
2
|
-
import * as p from "react";
|
|
3
|
-
import { s as f, a as U, r as H, u as q, c as A } from "./styled-xiAudcD_.js";
|
|
4
|
-
import { jsx as R, jsxs as J } from "react/jsx-runtime";
|
|
5
|
-
import { B as K } from "./ButtonBase-4F5roLHd.js";
|
|
6
|
-
function Q(o) {
|
|
7
|
-
return D("MuiButton", o);
|
|
8
|
-
}
|
|
9
|
-
const X = F("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), b = X, E = /* @__PURE__ */ p.createContext({});
|
|
10
|
-
process.env.NODE_ENV !== "production" && (E.displayName = "ButtonGroupContext");
|
|
11
|
-
const N = /* @__PURE__ */ p.createContext(void 0);
|
|
12
|
-
process.env.NODE_ENV !== "production" && (N.displayName = "ButtonGroupButtonContext");
|
|
13
|
-
const Y = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], Z = (o) => {
|
|
14
|
-
const {
|
|
15
|
-
color: a,
|
|
16
|
-
disableElevation: i,
|
|
17
|
-
fullWidth: l,
|
|
18
|
-
size: s,
|
|
19
|
-
variant: e,
|
|
20
|
-
classes: c
|
|
21
|
-
} = o, g = {
|
|
22
|
-
root: ["root", e, `${e}${r(a)}`, `size${r(s)}`, `${e}Size${r(s)}`, `color${r(a)}`, i && "disableElevation", l && "fullWidth"],
|
|
23
|
-
label: ["label"],
|
|
24
|
-
startIcon: ["icon", "startIcon", `iconSize${r(s)}`],
|
|
25
|
-
endIcon: ["icon", "endIcon", `iconSize${r(s)}`]
|
|
26
|
-
}, x = A(g, Q, c);
|
|
27
|
-
return t({}, c, x);
|
|
28
|
-
}, h = (o) => t({}, o.size === "small" && {
|
|
29
|
-
"& > *:nth-of-type(1)": {
|
|
30
|
-
fontSize: 18
|
|
31
|
-
}
|
|
32
|
-
}, o.size === "medium" && {
|
|
33
|
-
"& > *:nth-of-type(1)": {
|
|
34
|
-
fontSize: 20
|
|
35
|
-
}
|
|
36
|
-
}, o.size === "large" && {
|
|
37
|
-
"& > *:nth-of-type(1)": {
|
|
38
|
-
fontSize: 22
|
|
39
|
-
}
|
|
40
|
-
}), w = f(K, {
|
|
41
|
-
shouldForwardProp: (o) => U(o) || o === "classes",
|
|
42
|
-
name: "MuiButton",
|
|
43
|
-
slot: "Root",
|
|
44
|
-
overridesResolver: (o, a) => {
|
|
45
|
-
const {
|
|
46
|
-
ownerState: i
|
|
47
|
-
} = o;
|
|
48
|
-
return [a.root, a[i.variant], a[`${i.variant}${r(i.color)}`], a[`size${r(i.size)}`], a[`${i.variant}Size${r(i.size)}`], i.color === "inherit" && a.colorInherit, i.disableElevation && a.disableElevation, i.fullWidth && a.fullWidth];
|
|
49
|
-
}
|
|
50
|
-
})(({
|
|
51
|
-
theme: o,
|
|
52
|
-
ownerState: a
|
|
53
|
-
}) => {
|
|
54
|
-
var i, l;
|
|
55
|
-
const s = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], e = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
|
56
|
-
return t({}, o.typography.button, {
|
|
57
|
-
minWidth: 64,
|
|
58
|
-
padding: "6px 16px",
|
|
59
|
-
borderRadius: (o.vars || o).shape.borderRadius,
|
|
60
|
-
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
|
61
|
-
duration: o.transitions.duration.short
|
|
62
|
-
}),
|
|
63
|
-
"&:hover": t({
|
|
64
|
-
textDecoration: "none",
|
|
65
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette.text.primary, o.palette.action.hoverOpacity),
|
|
66
|
-
// Reset on touch devices, it doesn't add specificity
|
|
67
|
-
"@media (hover: none)": {
|
|
68
|
-
backgroundColor: "transparent"
|
|
69
|
-
}
|
|
70
|
-
}, a.variant === "text" && a.color !== "inherit" && {
|
|
71
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.color].main, o.palette.action.hoverOpacity),
|
|
72
|
-
// Reset on touch devices, it doesn't add specificity
|
|
73
|
-
"@media (hover: none)": {
|
|
74
|
-
backgroundColor: "transparent"
|
|
75
|
-
}
|
|
76
|
-
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
77
|
-
border: `1px solid ${(o.vars || o).palette[a.color].main}`,
|
|
78
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : v(o.palette[a.color].main, o.palette.action.hoverOpacity),
|
|
79
|
-
// Reset on touch devices, it doesn't add specificity
|
|
80
|
-
"@media (hover: none)": {
|
|
81
|
-
backgroundColor: "transparent"
|
|
82
|
-
}
|
|
83
|
-
}, a.variant === "contained" && {
|
|
84
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : e,
|
|
85
|
-
boxShadow: (o.vars || o).shadows[4],
|
|
86
|
-
// Reset on touch devices, it doesn't add specificity
|
|
87
|
-
"@media (hover: none)": {
|
|
88
|
-
boxShadow: (o.vars || o).shadows[2],
|
|
89
|
-
backgroundColor: (o.vars || o).palette.grey[300]
|
|
90
|
-
}
|
|
91
|
-
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
92
|
-
backgroundColor: (o.vars || o).palette[a.color].dark,
|
|
93
|
-
// Reset on touch devices, it doesn't add specificity
|
|
94
|
-
"@media (hover: none)": {
|
|
95
|
-
backgroundColor: (o.vars || o).palette[a.color].main
|
|
96
|
-
}
|
|
97
|
-
}),
|
|
98
|
-
"&:active": t({}, a.variant === "contained" && {
|
|
99
|
-
boxShadow: (o.vars || o).shadows[8]
|
|
100
|
-
}),
|
|
101
|
-
[`&.${b.focusVisible}`]: t({}, a.variant === "contained" && {
|
|
102
|
-
boxShadow: (o.vars || o).shadows[6]
|
|
103
|
-
}),
|
|
104
|
-
[`&.${b.disabled}`]: t({
|
|
105
|
-
color: (o.vars || o).palette.action.disabled
|
|
106
|
-
}, a.variant === "outlined" && {
|
|
107
|
-
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
|
108
|
-
}, a.variant === "contained" && {
|
|
109
|
-
color: (o.vars || o).palette.action.disabled,
|
|
110
|
-
boxShadow: (o.vars || o).shadows[0],
|
|
111
|
-
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
112
|
-
})
|
|
113
|
-
}, a.variant === "text" && {
|
|
114
|
-
padding: "6px 8px"
|
|
115
|
-
}, a.variant === "text" && a.color !== "inherit" && {
|
|
116
|
-
color: (o.vars || o).palette[a.color].main
|
|
117
|
-
}, a.variant === "outlined" && {
|
|
118
|
-
padding: "5px 15px",
|
|
119
|
-
border: "1px solid currentColor"
|
|
120
|
-
}, a.variant === "outlined" && a.color !== "inherit" && {
|
|
121
|
-
color: (o.vars || o).palette[a.color].main,
|
|
122
|
-
border: o.vars ? `1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)` : `1px solid ${v(o.palette[a.color].main, 0.5)}`
|
|
123
|
-
}, a.variant === "contained" && {
|
|
124
|
-
color: o.vars ? (
|
|
125
|
-
// this is safe because grey does not change between default light/dark mode
|
|
126
|
-
o.vars.palette.text.primary
|
|
127
|
-
) : (i = (l = o.palette).getContrastText) == null ? void 0 : i.call(l, o.palette.grey[300]),
|
|
128
|
-
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : s,
|
|
129
|
-
boxShadow: (o.vars || o).shadows[2]
|
|
130
|
-
}, a.variant === "contained" && a.color !== "inherit" && {
|
|
131
|
-
color: (o.vars || o).palette[a.color].contrastText,
|
|
132
|
-
backgroundColor: (o.vars || o).palette[a.color].main
|
|
133
|
-
}, a.color === "inherit" && {
|
|
134
|
-
color: "inherit",
|
|
135
|
-
borderColor: "currentColor"
|
|
136
|
-
}, a.size === "small" && a.variant === "text" && {
|
|
137
|
-
padding: "4px 5px",
|
|
138
|
-
fontSize: o.typography.pxToRem(13)
|
|
139
|
-
}, a.size === "large" && a.variant === "text" && {
|
|
140
|
-
padding: "8px 11px",
|
|
141
|
-
fontSize: o.typography.pxToRem(15)
|
|
142
|
-
}, a.size === "small" && a.variant === "outlined" && {
|
|
143
|
-
padding: "3px 9px",
|
|
144
|
-
fontSize: o.typography.pxToRem(13)
|
|
145
|
-
}, a.size === "large" && a.variant === "outlined" && {
|
|
146
|
-
padding: "7px 21px",
|
|
147
|
-
fontSize: o.typography.pxToRem(15)
|
|
148
|
-
}, a.size === "small" && a.variant === "contained" && {
|
|
149
|
-
padding: "4px 10px",
|
|
150
|
-
fontSize: o.typography.pxToRem(13)
|
|
151
|
-
}, a.size === "large" && a.variant === "contained" && {
|
|
152
|
-
padding: "8px 22px",
|
|
153
|
-
fontSize: o.typography.pxToRem(15)
|
|
154
|
-
}, a.fullWidth && {
|
|
155
|
-
width: "100%"
|
|
156
|
-
});
|
|
157
|
-
}, ({
|
|
158
|
-
ownerState: o
|
|
159
|
-
}) => o.disableElevation && {
|
|
160
|
-
boxShadow: "none",
|
|
161
|
-
"&:hover": {
|
|
162
|
-
boxShadow: "none"
|
|
163
|
-
},
|
|
164
|
-
[`&.${b.focusVisible}`]: {
|
|
165
|
-
boxShadow: "none"
|
|
166
|
-
},
|
|
167
|
-
"&:active": {
|
|
168
|
-
boxShadow: "none"
|
|
169
|
-
},
|
|
170
|
-
[`&.${b.disabled}`]: {
|
|
171
|
-
boxShadow: "none"
|
|
172
|
-
}
|
|
173
|
-
}), oo = f("span", {
|
|
174
|
-
name: "MuiButton",
|
|
175
|
-
slot: "StartIcon",
|
|
176
|
-
overridesResolver: (o, a) => {
|
|
177
|
-
const {
|
|
178
|
-
ownerState: i
|
|
179
|
-
} = o;
|
|
180
|
-
return [a.startIcon, a[`iconSize${r(i.size)}`]];
|
|
181
|
-
}
|
|
182
|
-
})(({
|
|
183
|
-
ownerState: o
|
|
184
|
-
}) => t({
|
|
185
|
-
display: "inherit",
|
|
186
|
-
marginRight: 8,
|
|
187
|
-
marginLeft: -4
|
|
188
|
-
}, o.size === "small" && {
|
|
189
|
-
marginLeft: -2
|
|
190
|
-
}, h(o))), ao = f("span", {
|
|
191
|
-
name: "MuiButton",
|
|
192
|
-
slot: "EndIcon",
|
|
193
|
-
overridesResolver: (o, a) => {
|
|
194
|
-
const {
|
|
195
|
-
ownerState: i
|
|
196
|
-
} = o;
|
|
197
|
-
return [a.endIcon, a[`iconSize${r(i.size)}`]];
|
|
198
|
-
}
|
|
199
|
-
})(({
|
|
200
|
-
ownerState: o
|
|
201
|
-
}) => t({
|
|
202
|
-
display: "inherit",
|
|
203
|
-
marginRight: -4,
|
|
204
|
-
marginLeft: 8
|
|
205
|
-
}, o.size === "small" && {
|
|
206
|
-
marginRight: -2
|
|
207
|
-
}, h(o))), O = /* @__PURE__ */ p.forwardRef(function(a, i) {
|
|
208
|
-
const l = p.useContext(E), s = p.useContext(N), e = H(l, a), c = q({
|
|
209
|
-
props: e,
|
|
210
|
-
name: "MuiButton"
|
|
211
|
-
}), {
|
|
212
|
-
children: g,
|
|
213
|
-
color: x = "primary",
|
|
214
|
-
component: y = "button",
|
|
215
|
-
className: k,
|
|
216
|
-
disabled: z = !1,
|
|
217
|
-
disableElevation: T = !1,
|
|
218
|
-
disableFocusRipple: C = !1,
|
|
219
|
-
endIcon: I,
|
|
220
|
-
focusVisibleClassName: P,
|
|
221
|
-
fullWidth: W = !1,
|
|
222
|
-
size: S = "medium",
|
|
223
|
-
startIcon: $,
|
|
224
|
-
type: B,
|
|
225
|
-
variant: M = "text"
|
|
226
|
-
} = c, V = G(c, Y), u = t({}, c, {
|
|
227
|
-
color: x,
|
|
228
|
-
component: y,
|
|
229
|
-
disabled: z,
|
|
230
|
-
disableElevation: T,
|
|
231
|
-
disableFocusRipple: C,
|
|
232
|
-
fullWidth: W,
|
|
233
|
-
size: S,
|
|
234
|
-
type: B,
|
|
235
|
-
variant: M
|
|
236
|
-
}), d = Z(u), _ = $ && /* @__PURE__ */ R(oo, {
|
|
237
|
-
className: d.startIcon,
|
|
238
|
-
ownerState: u,
|
|
239
|
-
children: $
|
|
240
|
-
}), L = I && /* @__PURE__ */ R(ao, {
|
|
241
|
-
className: d.endIcon,
|
|
242
|
-
ownerState: u,
|
|
243
|
-
children: I
|
|
244
|
-
}), j = s || "";
|
|
245
|
-
return /* @__PURE__ */ J(w, t({
|
|
246
|
-
ownerState: u,
|
|
247
|
-
className: m(l.className, d.root, k, j),
|
|
248
|
-
component: y,
|
|
249
|
-
disabled: z,
|
|
250
|
-
focusRipple: !C,
|
|
251
|
-
focusVisibleClassName: m(d.focusVisible, P),
|
|
252
|
-
ref: i,
|
|
253
|
-
type: B
|
|
254
|
-
}, V, {
|
|
255
|
-
classes: d,
|
|
256
|
-
children: [_, g, L]
|
|
257
|
-
}));
|
|
258
|
-
});
|
|
259
|
-
process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
260
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
261
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
262
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
263
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
264
|
-
/**
|
|
265
|
-
* The content of the component.
|
|
266
|
-
*/
|
|
267
|
-
children: n.node,
|
|
268
|
-
/**
|
|
269
|
-
* Override or extend the styles applied to the component.
|
|
270
|
-
*/
|
|
271
|
-
classes: n.object,
|
|
272
|
-
/**
|
|
273
|
-
* @ignore
|
|
274
|
-
*/
|
|
275
|
-
className: n.string,
|
|
276
|
-
/**
|
|
277
|
-
* The color of the component.
|
|
278
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
279
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
280
|
-
* @default 'primary'
|
|
281
|
-
*/
|
|
282
|
-
color: n.oneOfType([n.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), n.string]),
|
|
283
|
-
/**
|
|
284
|
-
* The component used for the root node.
|
|
285
|
-
* Either a string to use a HTML element or a component.
|
|
286
|
-
*/
|
|
287
|
-
component: n.elementType,
|
|
288
|
-
/**
|
|
289
|
-
* If `true`, the component is disabled.
|
|
290
|
-
* @default false
|
|
291
|
-
*/
|
|
292
|
-
disabled: n.bool,
|
|
293
|
-
/**
|
|
294
|
-
* If `true`, no elevation is used.
|
|
295
|
-
* @default false
|
|
296
|
-
*/
|
|
297
|
-
disableElevation: n.bool,
|
|
298
|
-
/**
|
|
299
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
300
|
-
* @default false
|
|
301
|
-
*/
|
|
302
|
-
disableFocusRipple: n.bool,
|
|
303
|
-
/**
|
|
304
|
-
* If `true`, the ripple effect is disabled.
|
|
305
|
-
*
|
|
306
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
307
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
308
|
-
* @default false
|
|
309
|
-
*/
|
|
310
|
-
disableRipple: n.bool,
|
|
311
|
-
/**
|
|
312
|
-
* Element placed after the children.
|
|
313
|
-
*/
|
|
314
|
-
endIcon: n.node,
|
|
315
|
-
/**
|
|
316
|
-
* @ignore
|
|
317
|
-
*/
|
|
318
|
-
focusVisibleClassName: n.string,
|
|
319
|
-
/**
|
|
320
|
-
* If `true`, the button will take up the full width of its container.
|
|
321
|
-
* @default false
|
|
322
|
-
*/
|
|
323
|
-
fullWidth: n.bool,
|
|
324
|
-
/**
|
|
325
|
-
* The URL to link to when the button is clicked.
|
|
326
|
-
* If defined, an `a` element will be used as the root node.
|
|
327
|
-
*/
|
|
328
|
-
href: n.string,
|
|
329
|
-
/**
|
|
330
|
-
* The size of the component.
|
|
331
|
-
* `small` is equivalent to the dense button styling.
|
|
332
|
-
* @default 'medium'
|
|
333
|
-
*/
|
|
334
|
-
size: n.oneOfType([n.oneOf(["small", "medium", "large"]), n.string]),
|
|
335
|
-
/**
|
|
336
|
-
* Element placed before the children.
|
|
337
|
-
*/
|
|
338
|
-
startIcon: n.node,
|
|
339
|
-
/**
|
|
340
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
341
|
-
*/
|
|
342
|
-
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
|
|
343
|
-
/**
|
|
344
|
-
* @ignore
|
|
345
|
-
*/
|
|
346
|
-
type: n.oneOfType([n.oneOf(["button", "reset", "submit"]), n.string]),
|
|
347
|
-
/**
|
|
348
|
-
* The variant to use.
|
|
349
|
-
* @default 'text'
|
|
350
|
-
*/
|
|
351
|
-
variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
|
|
352
|
-
});
|
|
353
|
-
const so = O;
|
|
354
|
-
export {
|
|
355
|
-
so as B,
|
|
356
|
-
E as a,
|
|
357
|
-
b,
|
|
358
|
-
Q as g
|
|
359
|
-
};
|
package/dist/Button-DKIRmOzf.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./identifier-4KVhx666.cjs"),j=require("react"),s=require("./styled-ZF_yhfMW.cjs"),b=require("react/jsx-runtime"),V=require("./ButtonBase-Bw3wq81v.cjs");function L(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const i in o)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(o,i);Object.defineProperty(n,i,t.get?t:{enumerable:!0,get:()=>o[i]})}}return n.default=o,Object.freeze(n)}const d=L(j);function $(o){return a.generateUtilityClass("MuiButton",o)}const D=a.generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),p=D,x=d.createContext({});process.env.NODE_ENV!=="production"&&(x.displayName="ButtonGroupContext");const B=d.createContext(void 0);process.env.NODE_ENV!=="production"&&(B.displayName="ButtonGroupButtonContext");const q=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],G=o=>{const{color:n,disableElevation:i,fullWidth:t,size:r,variant:e,classes:l}=o,v={root:["root",e,`${e}${a.capitalize(n)}`,`size${a.capitalize(r)}`,`${e}Size${a.capitalize(r)}`,`color${a.capitalize(n)}`,i&&"disableElevation",t&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${a.capitalize(r)}`],endIcon:["icon","endIcon",`iconSize${a.capitalize(r)}`]},y=s.composeClasses(v,$,l);return a._extends({},l,y)},I=o=>a._extends({},o.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},o.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},o.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),F=s.styled(V.ButtonBase,{shouldForwardProp:o=>s.rootShouldForwardProp(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,n)=>{const{ownerState:i}=o;return[n.root,n[i.variant],n[`${i.variant}${a.capitalize(i.color)}`],n[`size${a.capitalize(i.size)}`],n[`${i.variant}Size${a.capitalize(i.size)}`],i.color==="inherit"&&n.colorInherit,i.disableElevation&&n.disableElevation,i.fullWidth&&n.fullWidth]}})(({theme:o,ownerState:n})=>{var i,t;const r=o.palette.mode==="light"?o.palette.grey[300]:o.palette.grey[800],e=o.palette.mode==="light"?o.palette.grey.A100:o.palette.grey[700];return a._extends({},o.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":a._extends({textDecoration:"none",backgroundColor:o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha_1(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},n.variant==="text"&&n.color!=="inherit"&&{backgroundColor:o.vars?`rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha_1(o.palette[n.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},n.variant==="outlined"&&n.color!=="inherit"&&{border:`1px solid ${(o.vars||o).palette[n.color].main}`,backgroundColor:o.vars?`rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:a.alpha_1(o.palette[n.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},n.variant==="contained"&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:e,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},n.variant==="contained"&&n.color!=="inherit"&&{backgroundColor:(o.vars||o).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[n.color].main}}),"&:active":a._extends({},n.variant==="contained"&&{boxShadow:(o.vars||o).shadows[8]}),[`&.${p.focusVisible}`]:a._extends({},n.variant==="contained"&&{boxShadow:(o.vars||o).shadows[6]}),[`&.${p.disabled}`]:a._extends({color:(o.vars||o).palette.action.disabled},n.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`},n.variant==="contained"&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})},n.variant==="text"&&{padding:"6px 8px"},n.variant==="text"&&n.color!=="inherit"&&{color:(o.vars||o).palette[n.color].main},n.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},n.variant==="outlined"&&n.color!=="inherit"&&{color:(o.vars||o).palette[n.color].main,border:o.vars?`1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${a.alpha_1(o.palette[n.color].main,.5)}`},n.variant==="contained"&&{color:o.vars?o.vars.palette.text.primary:(i=(t=o.palette).getContrastText)==null?void 0:i.call(t,o.palette.grey[300]),backgroundColor:o.vars?o.vars.palette.Button.inheritContainedBg:r,boxShadow:(o.vars||o).shadows[2]},n.variant==="contained"&&n.color!=="inherit"&&{color:(o.vars||o).palette[n.color].contrastText,backgroundColor:(o.vars||o).palette[n.color].main},n.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},n.size==="small"&&n.variant==="text"&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},n.size==="large"&&n.variant==="text"&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},n.size==="small"&&n.variant==="outlined"&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},n.size==="large"&&n.variant==="outlined"&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},n.size==="small"&&n.variant==="contained"&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},n.size==="large"&&n.variant==="contained"&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})},({ownerState:o})=>o.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${p.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${p.disabled}`]:{boxShadow:"none"}}),U=s.styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,n)=>{const{ownerState:i}=o;return[n.startIcon,n[`iconSize${a.capitalize(i.size)}`]]}})(({ownerState:o})=>a._extends({display:"inherit",marginRight:8,marginLeft:-4},o.size==="small"&&{marginLeft:-2},I(o))),H=s.styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,n)=>{const{ownerState:i}=o;return[n.endIcon,n[`iconSize${a.capitalize(i.size)}`]]}})(({ownerState:o})=>a._extends({display:"inherit",marginRight:-4,marginLeft:8},o.size==="small"&&{marginRight:-2},I(o))),O=d.forwardRef(function(n,i){const t=d.useContext(x),r=d.useContext(B),e=s.resolveProps(t,n),l=s.useDefaultProps({props:e,name:"MuiButton"}),{children:v,color:y="primary",component:g="button",className:_,disabled:f=!1,disableElevation:R=!1,disableFocusRipple:z=!1,endIcon:C,focusVisibleClassName:h,fullWidth:N=!1,size:E="medium",startIcon:T,type:P,variant:k="text"}=l,m=a._objectWithoutPropertiesLoose(l,q),u=a._extends({},l,{color:y,component:g,disabled:f,disableElevation:R,disableFocusRipple:z,fullWidth:N,size:E,type:P,variant:k}),c=G(u),W=T&&b.jsx(U,{className:c.startIcon,ownerState:u,children:T}),S=C&&b.jsx(H,{className:c.endIcon,ownerState:u,children:C}),M=r||"";return b.jsxs(F,a._extends({ownerState:u,className:a.clsx(t.className,c.root,_,M),component:g,disabled:f,focusRipple:!z,focusVisibleClassName:a.clsx(c.focusVisible,h),ref:i,type:P},m,{classes:c,children:[W,v,S]}))});process.env.NODE_ENV!=="production"&&(O.propTypes={children:a.PropTypes.node,classes:a.PropTypes.object,className:a.PropTypes.string,color:a.PropTypes.oneOfType([a.PropTypes.oneOf(["inherit","primary","secondary","success","error","info","warning"]),a.PropTypes.string]),component:a.PropTypes.elementType,disabled:a.PropTypes.bool,disableElevation:a.PropTypes.bool,disableFocusRipple:a.PropTypes.bool,disableRipple:a.PropTypes.bool,endIcon:a.PropTypes.node,focusVisibleClassName:a.PropTypes.string,fullWidth:a.PropTypes.bool,href:a.PropTypes.string,size:a.PropTypes.oneOfType([a.PropTypes.oneOf(["small","medium","large"]),a.PropTypes.string]),startIcon:a.PropTypes.node,sx:a.PropTypes.oneOfType([a.PropTypes.arrayOf(a.PropTypes.oneOfType([a.PropTypes.func,a.PropTypes.object,a.PropTypes.bool])),a.PropTypes.func,a.PropTypes.object]),type:a.PropTypes.oneOfType([a.PropTypes.oneOf(["button","reset","submit"]),a.PropTypes.string]),variant:a.PropTypes.oneOfType([a.PropTypes.oneOf(["contained","outlined","text"]),a.PropTypes.string])});const A=O;exports.Button=A;exports.ButtonGroupContext=x;exports.buttonClasses=p;exports.getButtonUtilityClass=$;
|