@cgi-learning-hub/ui 1.5.1 → 1.6.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/Alert-DW8yCR-B.cjs +1 -0
- package/dist/{Alert-BfMYnyZX.js → Alert-PmI169Dq.js} +144 -142
- package/dist/{Autocomplete-DQyr97ya.js → Autocomplete-BIBR54X2.js} +709 -667
- package/dist/Autocomplete-D9hZ2wrR.cjs +6 -0
- package/dist/Backdrop-3TL73mAe.cjs +1 -0
- package/dist/{Backdrop-B200pms1.js → Backdrop-BxgGvlLM.js} +21 -20
- package/dist/Badge-DhyDno9j.cjs +138 -0
- package/dist/{ToggleButtonGroup-gxIqbo6a.js → Badge-rX7YUmBc.js} +6487 -4178
- package/dist/Box-DYD6q-6M.cjs +1 -0
- package/dist/{Box-D3Pi13ta.js → Box-o7Tjjyko.js} +21 -20
- package/dist/{Button-D1aKdjIh.js → Button-D974vesA.js} +19 -18
- package/dist/Button-y1LmxqGA.cjs +1 -0
- package/dist/{ButtonBase-Bncgzjtp.js → ButtonBase-Chb99sDQ.js} +25 -24
- package/dist/ButtonBase-Cteo-mSC.cjs +74 -0
- package/dist/{CardContent-DyggcxBG.js → CardContent-DaZl2i3G.js} +10 -9
- package/dist/CardContent-ji0_AneN.cjs +1 -0
- package/dist/Checkbox-XXqW_dbW.cjs +1 -0
- package/dist/{Checkbox-DkrWUPYT.js → Checkbox-p-PKpEw_.js} +91 -62
- package/dist/Chip-Bpcd3tnL.cjs +1 -0
- package/dist/{Chip-Y39z3DS6.js → Chip-CPR3r42q.js} +13 -12
- package/dist/{CircularProgress-BDjnnyuL.js → CircularProgress-DVKNRMKq.js} +15 -14
- package/dist/CircularProgress-Wqx0-T36.cjs +28 -0
- package/dist/{Close-DJDhRwj2.cjs → Close-DyRqry3p.cjs} +1 -1
- package/dist/{Close-hx7dlgmZ.js → Close-m-MX3rFn.js} +1 -1
- package/dist/{CloseRounded-DapqosK3.cjs → CloseRounded-Bpxbxvyb.cjs} +1 -1
- package/dist/{CloseRounded-aZqv6aS-.js → CloseRounded-CjjQdrNy.js} +1 -1
- package/dist/CustomTreeItem-DPyfIueW.cjs +3 -0
- package/dist/{CustomTreeItem-CgdZ-hEx.js → CustomTreeItem-hIRSCwAW.js} +251 -256
- package/dist/{DatePicker-C2ZobNcJ.js → DatePicker-BMzW4v1g.js} +1079 -1081
- package/dist/DatePicker-CNhBoaI3.cjs +14 -0
- package/dist/DefaultPropsProvider-B1crdkTC.cjs +1 -0
- package/dist/{DefaultPropsProvider-Ik4eAJdt.js → DefaultPropsProvider-hFv1J_xl.js} +68 -67
- package/dist/{Delete-Cfk3fOW-.js → Delete-9fJbdRit.js} +1 -1
- package/dist/{Delete-DDxv1h6V.cjs → Delete-CEX2hq0f.cjs} +1 -1
- package/dist/Dialog-B2LKe7ZM.cjs +1 -0
- package/dist/{Dialog-Ccvug1yq.js → Dialog-BzsWl6Vl.js} +106 -111
- package/dist/{DialogContent-CIMpKm-U.js → DialogContent-B41jvlMn.js} +14 -13
- package/dist/DialogContent-BbCu_OEw.cjs +1 -0
- package/dist/{DialogTitle-BwTvIaQe.js → DialogTitle-CVvztEM0.js} +22 -21
- package/dist/DialogTitle-SwUSpeBT.cjs +1 -0
- package/dist/{Divider-C2cBikSL.js → Divider-CJwnMdVg.js} +9 -8
- package/dist/Divider-Cshcr5kR.cjs +1 -0
- package/dist/{Folder-DEtB13yM.cjs → Folder-7plrMkOp.cjs} +1 -1
- package/dist/{Folder-Bnoqtzc6.js → Folder-CutUz0bW.js} +1 -1
- package/dist/FormLabel-0LbNeQQU.cjs +2 -0
- package/dist/{FormLabel-EkpI8MQr.js → FormLabel-DSi2pGSZ.js} +16 -15
- package/dist/{Grow-B_clfUP9.js → Grow-FFFqe81C.js} +5 -5
- package/dist/Grow-aEgTOewU.cjs +1 -0
- package/dist/IconButton-BKwDNYJl.cjs +2 -0
- package/dist/{IconButton-D1mhTuaI.js → IconButton-CgwURB2g.js} +7 -6
- package/dist/InputAdornment-C7e-kyf7.cjs +1 -0
- package/dist/{InputAdornment-BxB8_tq-.js → InputAdornment-DgWvMLgR.js} +22 -21
- package/dist/{InputBase-BQnEIwl1.js → InputBase-DxLqRpcl.js} +263 -256
- package/dist/InputBase-pYQWRFK2.cjs +3 -0
- package/dist/Link-DUtuCYMx.cjs +1 -0
- package/dist/{Link-8ltXgZj7.js → Link-rb-SwfiY.js} +18 -17
- package/dist/List-BH_S4Hqm.cjs +1 -0
- package/dist/{List-DJsqHOqv.js → List-BjfdkeEI.js} +5 -4
- package/dist/{ListItem-BspNcHM_.js → ListItem-B0EiObKw.js} +40 -39
- package/dist/ListItem-D33t-hkx.cjs +1 -0
- package/dist/ListItemText-B8jlTz59.cjs +2 -0
- package/dist/ListItemText-BeyHu1da.js +853 -0
- package/dist/Menu-BjrN8rMF.cjs +7 -0
- package/dist/{Menu-DPhreDcS.js → Menu-By6cOqEO.js} +407 -336
- package/dist/{MenuItem-Fb7iU47J.js → MenuItem-B1FTx8Uo.js} +17 -16
- package/dist/MenuItem-Cz_x60jl.cjs +1 -0
- package/dist/Modal-DxwlW5NV.cjs +2 -0
- package/dist/{Modal-dmMiGSAp.js → Modal-vrLLqk9Y.js} +240 -245
- package/dist/{MoreVert-DNeLf2VB.cjs → MoreVert-DC6HBf1h.cjs} +1 -1
- package/dist/{MoreVert-BCGFGn8f.js → MoreVert-DJ8sAY3o.js} +1 -1
- package/dist/{Paper-CEDxpHWv.js → Paper-984iTz4H.js} +32 -31
- package/dist/Paper-Bh9CKUCb.cjs +2 -0
- package/dist/{Popper-D5_YIJX6.js → Popper-DfwuvxaQ.js} +11 -10
- package/dist/Popper-yO_RaCbM.cjs +4 -0
- package/dist/Portal-B5KqLEa0.cjs +1 -0
- package/dist/Portal-ChC9wmMZ.js +85 -0
- package/dist/{Radio-B4sx0387.js → Radio-BqY-su_F.js} +228 -183
- package/dist/Radio-C7zzpRFc.cjs +1 -0
- package/dist/{RadioGroup-UStIK_UX.js → RadioGroup-BQvlYFpE.js} +24 -23
- package/dist/RadioGroup-BlUWRmLG.cjs +1 -0
- package/dist/{Select-CxnCi-3l.js → Select-DZMwqCYA.js} +96 -95
- package/dist/Select-Doay7ukI.cjs +3 -0
- package/dist/Stack-BVWbOqY_.cjs +1 -0
- package/dist/{Stack-CzKIgmIE.js → Stack-CMUWQxQn.js} +63 -107
- package/dist/{Switch-D3KweZGQ.js → Switch-Bg4QB4PJ.js} +169 -108
- package/dist/Switch-CEfqaD33.cjs +1 -0
- package/dist/SwitchBase-DvCITKv8.cjs +1 -0
- package/dist/SwitchBase-EDFBMPd7.js +316 -0
- package/dist/{Tab-C1r8JXwz.js → Tab-52AkFc9v.js} +599 -537
- package/dist/Tab-C6H241Pf.cjs +4 -0
- package/dist/{TextField-D-_WjPAW.js → TextField-DG9mRp_m.js} +127 -116
- package/dist/TextField-bE2NUKKK.cjs +1 -0
- package/dist/{Tooltip-D0bof-68.js → Tooltip-DCgaU2em.js} +20 -19
- package/dist/Tooltip-D_w-IJoD.cjs +4 -0
- package/dist/Typography-De-21leI.cjs +1 -0
- package/dist/{Typography-DBJqhIhB.js → Typography-DwMlN0K5.js} +9 -8
- package/dist/{capitalize-DSG2FA7x.js → capitalize-BHFotl9B.js} +1 -1
- package/dist/{capitalize-CToVceBw.cjs → capitalize-CKLkSyDO.cjs} +1 -1
- package/dist/client-error-CHkavqXs.cjs +1 -0
- package/dist/{client-error-B_-qjgAB.js → client-error-D0Ng5oOn.js} +1 -3
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/ColorPicker/ColorPicker.cjs.js +27 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +4 -0
- package/dist/components/ColorPicker/ColorPicker.es.js +7960 -0
- package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +1 -0
- package/dist/components/ColorPicker/ColorPickerIcon.d.ts +5 -0
- package/dist/components/ColorPicker/ColorPickerIcon.es.js +58 -0
- package/dist/components/ColorPicker/index.cjs.js +1 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/ColorPicker/index.es.js +4 -0
- package/dist/components/ColorPicker/styles.cjs.js +1 -0
- package/dist/components/ColorPicker/styles.es.js +26 -0
- package/dist/components/ColorPicker/types.cjs.js +1 -0
- package/dist/components/ColorPicker/types.d.ts +19 -0
- package/dist/components/ColorPicker/types.es.js +1 -0
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +2 -2
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +22 -22
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +5 -5
- package/dist/components/TreeView/TreeView.es.js +15 -13
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +4 -3
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +19 -0
- package/dist/components/index.es.js +404 -373
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/ColoPicker.stories.cjs.js +1 -0
- package/dist/components/stories/ColoPicker.stories.d.ts +6 -0
- package/dist/components/stories/ColoPicker.stories.es.js +23 -0
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/EmptyState.stories.cjs.js +1 -1
- package/dist/components/stories/EmptyState.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.es.js +29 -29
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/composeClasses-CJKlIaRn.js +51 -0
- package/dist/composeClasses-CWgX5SFD.cjs +1 -0
- package/dist/createSvgIcon-BgBODH2F.cjs +1 -0
- package/dist/{createSvgIcon-CsMK8tGM.js → createSvgIcon-BlKmtOkV.js} +48 -47
- package/dist/{dividerClasses-BtzbOVqV.cjs → dividerClasses-D3gnW6kZ.cjs} +1 -1
- package/dist/{dividerClasses-BfxSqqSn.js → dividerClasses-Glz8RJdF.js} +1 -1
- package/dist/elementTypeAcceptingRef-BwZv9xBI.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-CW5o2Qxo.js → elementTypeAcceptingRef-DOeckaXy.js} +1 -1
- package/dist/{extendSxProp-DSA-5JvJ.js → extendSxProp-BouzOuB6.js} +1 -1
- package/dist/{extendSxProp-BKP1AeGz.cjs → extendSxProp-Cm-DtZe3.cjs} +1 -1
- package/dist/generateUtilityClasses-CMlilM6r.cjs +55 -0
- package/dist/generateUtilityClasses-DngCqveO.js +2628 -0
- package/dist/getReactElementRef-EVJnBPlV.cjs +1 -0
- package/dist/{getReactElementRef-CD3_Stk5.js → getReactElementRef-H8kwrWP1.js} +1 -1
- package/dist/hooks/lazySvgImport.cjs.js +1 -1
- package/dist/hooks/lazySvgImport.es.js +1 -1
- package/dist/index-BzsuDIEl.cjs +1 -0
- package/dist/{index-CDLJvERp.js → index-CX0sAlmK.js} +2 -2
- package/dist/index-CrINMjCH.cjs +1 -0
- package/dist/index-DIyAQH20.cjs +5 -0
- package/dist/index-DLnSn8GT.cjs +20 -0
- package/dist/{index-JOgYmUF8.js → index-DX2Sl0Ig.js} +1 -1
- package/dist/index-Sy88PpwE.js +672 -0
- package/dist/{index-CoYVLWJY.js → index-l8yqod25.js} +14 -13
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +404 -373
- package/dist/{listItemTextClasses-DePeZNtZ.cjs → listItemTextClasses-BJFgw1ah.cjs} +1 -1
- package/dist/{listItemTextClasses-Cy10XsJj.js → listItemTextClasses-BRj19IXv.js} +1 -1
- package/dist/{memoTheme-BhhxAcUJ.cjs → memoTheme-BAbn60Cb.cjs} +1 -1
- package/dist/{memoTheme-44McxcVZ.js → memoTheme-nmt7i1dS.js} +1 -1
- package/dist/mergeSlotProps-BBciKnr4.js +62 -0
- package/dist/mergeSlotProps-Z5-o9vSe.cjs +1 -0
- package/dist/refType-B_IEJm4x.cjs +1 -0
- package/dist/{refType-DsRJ5_Sj.js → refType-Dp7CJc86.js} +1 -1
- package/dist/server-error-CqyYyPLN.cjs +1 -0
- package/dist/{server-error-DMyaPFs8.js → server-error-CvgIy7ap.js} +1 -3
- package/dist/useEventCallback-BxpcFap0.cjs +1 -0
- package/dist/useEventCallback-Yoj9nCug.js +15 -0
- package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
- package/dist/useForkRef-u29GSuCu.js +27 -0
- package/dist/useSlot-BDb1lvxu.js +125 -0
- package/dist/useSlot-W0PiuVaZ.cjs +1 -0
- package/dist/{useSlotProps-CDJdiQpV.js → useSlotProps-B_D8u0j-.js} +2 -2
- package/dist/useSlotProps-OhEflPiz.cjs +1 -0
- package/dist/useTheme-C59wIJ3-.js +11 -0
- package/dist/{useTheme-DpMakc_Y.cjs → useTheme-ClhInrO2.cjs} +1 -1
- package/dist/{useTheme-CCi6a5Vl.cjs → useTheme-CqYtLDbs.cjs} +1 -1
- package/dist/{useTheme-C2OE_AnH.js → useTheme-D9cVynB-.js} +1 -1
- package/dist/useThemeProps-BFQ8ndnj.js +17 -0
- package/dist/{useThemeProps-DQFApaJ_.cjs → useThemeProps-DQOn-ezC.cjs} +1 -1
- package/dist/useThemeProps-DYpozGhe.cjs +1 -0
- package/dist/{useThemeProps-ClM1OENH.js → useThemeProps-ggw56DH-.js} +2 -2
- package/dist/{utils-DFLaK7Ad.js → utils-BQenyzDz.js} +1 -1
- package/dist/utils-ByXw_ZY1.cjs +1 -0
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +12 -10
- package/dist/Alert-Dg5u5Z7d.cjs +0 -1
- package/dist/Autocomplete-3xshJ4m_.cjs +0 -6
- package/dist/Backdrop-BrTs3LxC.cjs +0 -1
- package/dist/Box-CFuWIdLg.cjs +0 -1
- package/dist/Button-C7tsSPXV.cjs +0 -1
- package/dist/ButtonBase-CBFRgTBs.cjs +0 -74
- package/dist/CardContent-BRUkl8hU.cjs +0 -1
- package/dist/Checkbox-C_wSNEHD.cjs +0 -1
- package/dist/Chip-DUeBMcO4.cjs +0 -1
- package/dist/CircularProgress-DdHpo4Bf.cjs +0 -28
- package/dist/CustomTreeItem-9kBuTFO8.cjs +0 -4
- package/dist/DatePicker-BYPJypQT.cjs +0 -14
- package/dist/DefaultPropsProvider-B6DqRWnX.cjs +0 -1
- package/dist/Dialog-DOXpPT7S.cjs +0 -1
- package/dist/DialogContent-BoIE95Tg.cjs +0 -1
- package/dist/DialogTitle-B_am69Lr.cjs +0 -1
- package/dist/Divider-Nyl7rx-c.cjs +0 -1
- package/dist/FormLabel-D4O160ND.cjs +0 -2
- package/dist/Grow-DKA2Mfhu.cjs +0 -1
- package/dist/IconButton-CGfKAsNI.cjs +0 -2
- package/dist/InputAdornment-BOcB8UIi.cjs +0 -1
- package/dist/InputBase-BIf-xtMJ.cjs +0 -3
- package/dist/Link-CS0qbKjo.cjs +0 -1
- package/dist/List-T5dKKWkc.cjs +0 -1
- package/dist/ListItem-BN7OXyEP.cjs +0 -1
- package/dist/ListItemText-6gXRtF3r.cjs +0 -1
- package/dist/ListItemText-afV0BrJL.js +0 -928
- package/dist/Menu-D6dHPVP_.cjs +0 -7
- package/dist/MenuItem-DOVsV_vI.cjs +0 -1
- package/dist/Modal-B8xPmNJd.cjs +0 -2
- package/dist/Paper-owda8LtM.cjs +0 -2
- package/dist/Popper-DMGJYlm7.cjs +0 -4
- package/dist/Portal-BKVc0iys.js +0 -81
- package/dist/Portal-CgaP8O8B.cjs +0 -1
- package/dist/Radio-OUfsD89D.cjs +0 -1
- package/dist/RadioGroup-Cr_IFflA.cjs +0 -1
- package/dist/Select-CUlunaOr.cjs +0 -3
- package/dist/Stack-D5_1ZBcn.cjs +0 -1
- package/dist/Switch-DpdnFebj.cjs +0 -1
- package/dist/SwitchBase-BsP35Aas.js +0 -262
- package/dist/SwitchBase-DMGf52a3.cjs +0 -1
- package/dist/Tab-DZvAf79O.cjs +0 -4
- package/dist/TextField-C0KpyS6X.cjs +0 -1
- package/dist/ToggleButtonGroup-UNGSwlQe.cjs +0 -137
- package/dist/Tooltip-BljbhP1z.cjs +0 -4
- package/dist/Typography-yvyJLNFu.cjs +0 -1
- package/dist/client-error-BUtdld5f.cjs +0 -1
- package/dist/createSvgIcon-EiiLl5-A.cjs +0 -1
- package/dist/elementTypeAcceptingRef-D1T31ZXC.cjs +0 -1
- package/dist/generateUtilityClasses-BpRGbQmY.js +0 -3299
- package/dist/generateUtilityClasses-q4qbJjmd.cjs +0 -75
- package/dist/getReactElementRef-yvpNgSpm.cjs +0 -1
- package/dist/index-Bt7ukCXi.cjs +0 -5
- package/dist/index-DCpyECL4.cjs +0 -1
- package/dist/index-baZm35zL.cjs +0 -1
- package/dist/refType-DDdajp2p.cjs +0 -1
- package/dist/resolveComponentProps-BTEnlM7q.cjs +0 -1
- package/dist/resolveComponentProps-BZQ1jKzF.js +0 -80
- package/dist/server-error-CeAtUo4S.cjs +0 -1
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useSlot-CSTfsYPJ.cjs +0 -1
- package/dist/useSlot-CYOxsM2I.js +0 -48
- package/dist/useSlotProps-DTgWZk99.cjs +0 -1
- package/dist/useTheme-BDL2rp7a.js +0 -11
- package/dist/useThemeProps-BnN3o4c1.cjs +0 -1
- package/dist/useThemeProps-DjkGUV8r.js +0 -17
- package/dist/utils-Cn6wZNus.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),K=require("./useTheme-ClhInrO2.cjs"),Q=require("react"),e=require("./index-DLnSn8GT.cjs"),l=require("./generateUtilityClasses-CMlilM6r.cjs"),M=require("./memoTheme-BAbn60Cb.cjs"),y=require("./useSlot-W0PiuVaZ.cjs"),m=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),f=require("./createSvgIcon-BgBODH2F.cjs"),X=require("./Close-DyRqry3p.cjs"),p=require("./DefaultPropsProvider-B1crdkTC.cjs"),Y=require("./IconButton-BKwDNYJl.cjs"),v=require("./capitalize-CKLkSyDO.cjs"),ee=require("./Paper-Bh9CKUCb.cjs"),oe=require("./Typography-De-21leI.cjs");function te(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,t.get?t:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const z=te(Q);function R(o){return l.generateUtilityClass("MuiAlertTitle",o)}const se=l.generateUtilityClasses("MuiAlertTitle",["root"]),re=o=>{const{classes:s}=o,r={root:["root"]};return p.composeClasses(r,R,s)},ne=p.styled(oe.Typography,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(o,s)=>s.root})(M.memoTheme(({theme:o})=>({fontWeight:o.typography.fontWeightMedium,marginTop:-2}))),S=z.forwardRef(function(s,r){const t=p.useDefaultProps({props:s,name:"MuiAlertTitle"}),{className:a,...u}=t,d=t,T=re(d);return n.jsx(ne,{gutterBottom:!0,component:"div",ownerState:d,ref:r,className:l.clsx(T.root,a),...u})});process.env.NODE_ENV!=="production"&&(S.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,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])});function le(o){return l.generateUtilityClass("MuiAlert",o)}const h=l.generateUtilityClasses("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),pe=f.createSvgIcon(n.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ae=f.createSvgIcon(n.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),ie=f.createSvgIcon(n.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ce=f.createSvgIcon(n.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ye=o=>{const{variant:s,color:r,severity:t,classes:a}=o,u={root:["root",`color${v.capitalize(r||t)}`,`${s}${v.capitalize(r||t)}`,`${s}`],icon:["icon"],message:["message"],action:["action"]};return p.composeClasses(u,le,a)},ue=p.styled(ee.Paper,{name:"MuiAlert",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:r}=o;return[s.root,s[r.variant],s[`${r.variant}${v.capitalize(r.color||r.severity)}`]]}})(M.memoTheme(({theme:o})=>{const s=o.palette.mode==="light"?l.darken:l.lighten,r=o.palette.mode==="light"?l.lighten:l.darken;return{...o.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(o.palette).filter(m.createSimplePaletteValueFilter(["light"])).map(([t])=>({props:{colorSeverity:t,variant:"standard"},style:{color:o.vars?o.vars.palette.Alert[`${t}Color`]:s(o.palette[t].light,.6),backgroundColor:o.vars?o.vars.palette.Alert[`${t}StandardBg`]:r(o.palette[t].light,.9),[`& .${h.icon}`]:o.vars?{color:o.vars.palette.Alert[`${t}IconColor`]}:{color:o.palette[t].main}}})),...Object.entries(o.palette).filter(m.createSimplePaletteValueFilter(["light"])).map(([t])=>({props:{colorSeverity:t,variant:"outlined"},style:{color:o.vars?o.vars.palette.Alert[`${t}Color`]:s(o.palette[t].light,.6),border:`1px solid ${(o.vars||o).palette[t].light}`,[`& .${h.icon}`]:o.vars?{color:o.vars.palette.Alert[`${t}IconColor`]}:{color:o.palette[t].main}}})),...Object.entries(o.palette).filter(m.createSimplePaletteValueFilter(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:o.typography.fontWeightMedium,...o.vars?{color:o.vars.palette.Alert[`${t}FilledColor`],backgroundColor:o.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:o.palette.mode==="dark"?o.palette[t].dark:o.palette[t].main,color:o.palette.getContrastText(o.palette[t].main)}}}))]}})),de=p.styled("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(o,s)=>s.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Te=p.styled("div",{name:"MuiAlert",slot:"Message",overridesResolver:(o,s)=>s.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Pe=p.styled("div",{name:"MuiAlert",slot:"Action",overridesResolver:(o,s)=>s.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),I={success:n.jsx(pe,{fontSize:"inherit"}),warning:n.jsx(ae,{fontSize:"inherit"}),error:n.jsx(ie,{fontSize:"inherit"}),info:n.jsx(ce,{fontSize:"inherit"})},$=z.forwardRef(function(s,r){const t=p.useDefaultProps({props:s,name:"MuiAlert"}),{action:a,children:u,className:d,closeText:T="Close",color:C,components:A={},componentsProps:q={},icon:x,iconMapping:w=I,onClose:j,role:B="alert",severity:P="success",slotProps:N={},slots:k={},variant:L="standard",...E}=t,i={...t,color:C,severity:P,variant:L,colorSeverity:C||P},g=ye(i),c={slots:{closeButton:A.CloseButton,closeIcon:A.CloseIcon,...k},slotProps:{...q,...N}},[U,F]=y.useSlot("root",{ref:r,shouldForwardComponentProp:!0,className:l.clsx(g.root,d),elementType:ue,externalForwardedProps:{...c,...E},ownerState:i,additionalProps:{role:B,elevation:0}}),[V,W]=y.useSlot("icon",{className:g.icon,elementType:de,externalForwardedProps:c,ownerState:i}),[D,H]=y.useSlot("message",{className:g.message,elementType:Te,externalForwardedProps:c,ownerState:i}),[O,b]=y.useSlot("action",{className:g.action,elementType:Pe,externalForwardedProps:c,ownerState:i}),[_,Z]=y.useSlot("closeButton",{elementType:Y.IconButton,externalForwardedProps:c,ownerState:i}),[G,J]=y.useSlot("closeIcon",{elementType:X.CloseIcon,externalForwardedProps:c,ownerState:i});return n.jsxs(U,{...F,children:[x!==!1?n.jsx(V,{...W,children:x||w[P]||I[P]}):null,n.jsx(D,{...H,children:u}),a!=null?n.jsx(O,{...b,children:a}):null,a==null&&j?n.jsx(O,{...b,children:n.jsx(_,{size:"small","aria-label":T,title:T,color:"inherit",onClick:j,...Z,children:n.jsx(G,{fontSize:"small",...J})})}):null]})});process.env.NODE_ENV!=="production"&&($.propTypes={action:e.PropTypes.node,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,closeText:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["error","info","success","warning"]),e.PropTypes.string]),components:e.PropTypes.shape({CloseButton:e.PropTypes.elementType,CloseIcon:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({closeButton:e.PropTypes.object,closeIcon:e.PropTypes.object}),icon:e.PropTypes.node,iconMapping:e.PropTypes.shape({error:e.PropTypes.node,info:e.PropTypes.node,success:e.PropTypes.node,warning:e.PropTypes.node}),onClose:e.PropTypes.func,role:e.PropTypes.string,severity:e.PropTypes.oneOfType([e.PropTypes.oneOf(["error","info","success","warning"]),e.PropTypes.string]),slotProps:e.PropTypes.shape({action:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),closeButton:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),closeIcon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),icon:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),message:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({action:e.PropTypes.elementType,closeButton:e.PropTypes.elementType,closeIcon:e.PropTypes.elementType,icon:e.PropTypes.elementType,message:e.PropTypes.elementType,root: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]),variant:e.PropTypes.oneOfType([e.PropTypes.oneOf(["filled","outlined","standard"]),e.PropTypes.string])});const ge=({severity:o="success",...s})=>{const r=K.useTheme();return n.jsxs($,{severity:o,color:o,sx:{bgcolor:l.alpha(r.palette[o].light,.35)},...s,children:[s.title?n.jsx(S,{children:s.title}):null,s.children]})};exports.Alert=ge;exports.AlertTitle=S;exports.alertTitleClasses=se;exports.getAlertTitleUtilityClass=R;
|
|
@@ -1,35 +1,36 @@
|
|
|
1
1
|
import { jsx as r, jsxs as j } from "react/jsx-runtime";
|
|
2
|
-
import { u as
|
|
2
|
+
import { u as to } from "./useTheme-C59wIJ3-.js";
|
|
3
3
|
import * as $ from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { P as o } from "./index-Sy88PpwE.js";
|
|
5
|
+
import { F as R, G as z, H as w, q as h, s as M, n as so } from "./generateUtilityClasses-DngCqveO.js";
|
|
6
|
+
import { m as B } from "./memoTheme-nmt7i1dS.js";
|
|
7
|
+
import { u as c } from "./useSlot-BDb1lvxu.js";
|
|
7
8
|
import { c as v } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
8
|
-
import { c as y } from "./createSvgIcon-
|
|
9
|
-
import { C as
|
|
10
|
-
import { u as N, s as d, c as L } from "./DefaultPropsProvider-
|
|
11
|
-
import { I as
|
|
12
|
-
import { c as T } from "./capitalize-
|
|
13
|
-
import { P as
|
|
14
|
-
import { T as
|
|
15
|
-
function
|
|
16
|
-
return z("MuiAlertTitle",
|
|
9
|
+
import { c as y } from "./createSvgIcon-BlKmtOkV.js";
|
|
10
|
+
import { C as no } from "./Close-m-MX3rFn.js";
|
|
11
|
+
import { u as N, s as d, c as L } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
12
|
+
import { I as ro } from "./IconButton-CgwURB2g.js";
|
|
13
|
+
import { c as T } from "./capitalize-BHFotl9B.js";
|
|
14
|
+
import { P as lo } from "./Paper-984iTz4H.js";
|
|
15
|
+
import { T as ao } from "./Typography-DwMlN0K5.js";
|
|
16
|
+
function io(e) {
|
|
17
|
+
return z("MuiAlertTitle", e);
|
|
17
18
|
}
|
|
18
|
-
const
|
|
19
|
+
const Lo = R("MuiAlertTitle", ["root"]), co = (e) => {
|
|
19
20
|
const {
|
|
20
21
|
classes: s
|
|
21
|
-
} =
|
|
22
|
+
} = e;
|
|
22
23
|
return L({
|
|
23
24
|
root: ["root"]
|
|
24
|
-
},
|
|
25
|
-
},
|
|
25
|
+
}, io, s);
|
|
26
|
+
}, po = d(ao, {
|
|
26
27
|
name: "MuiAlertTitle",
|
|
27
28
|
slot: "Root",
|
|
28
|
-
overridesResolver: (
|
|
29
|
+
overridesResolver: (e, s) => s.root
|
|
29
30
|
})(B(({
|
|
30
|
-
theme:
|
|
31
|
+
theme: e
|
|
31
32
|
}) => ({
|
|
32
|
-
fontWeight:
|
|
33
|
+
fontWeight: e.typography.fontWeightMedium,
|
|
33
34
|
marginTop: -2
|
|
34
35
|
}))), k = /* @__PURE__ */ $.forwardRef(function(s, n) {
|
|
35
36
|
const t = N({
|
|
@@ -38,8 +39,8 @@ const Be = R("MuiAlertTitle", ["root"]), ce = (o) => {
|
|
|
38
39
|
}), {
|
|
39
40
|
className: l,
|
|
40
41
|
...p
|
|
41
|
-
} = t, u = t, f =
|
|
42
|
-
return /* @__PURE__ */ r(
|
|
42
|
+
} = t, u = t, f = co(u);
|
|
43
|
+
return /* @__PURE__ */ r(po, {
|
|
43
44
|
gutterBottom: !0,
|
|
44
45
|
component: "div",
|
|
45
46
|
ownerState: u,
|
|
@@ -56,129 +57,129 @@ process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
|
56
57
|
/**
|
|
57
58
|
* The content of the component.
|
|
58
59
|
*/
|
|
59
|
-
children:
|
|
60
|
+
children: o.node,
|
|
60
61
|
/**
|
|
61
62
|
* Override or extend the styles applied to the component.
|
|
62
63
|
*/
|
|
63
|
-
classes:
|
|
64
|
+
classes: o.object,
|
|
64
65
|
/**
|
|
65
66
|
* @ignore
|
|
66
67
|
*/
|
|
67
|
-
className:
|
|
68
|
+
className: o.string,
|
|
68
69
|
/**
|
|
69
70
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
70
71
|
*/
|
|
71
|
-
sx:
|
|
72
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
72
73
|
});
|
|
73
|
-
function
|
|
74
|
-
return z("MuiAlert",
|
|
74
|
+
function uo(e) {
|
|
75
|
+
return z("MuiAlert", e);
|
|
75
76
|
}
|
|
76
|
-
const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]),
|
|
77
|
+
const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), fo = y(/* @__PURE__ */ r("path", {
|
|
77
78
|
d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
|
78
|
-
}), "SuccessOutlined"),
|
|
79
|
+
}), "SuccessOutlined"), mo = y(/* @__PURE__ */ r("path", {
|
|
79
80
|
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
80
|
-
}), "ReportProblemOutlined"),
|
|
81
|
+
}), "ReportProblemOutlined"), go = y(/* @__PURE__ */ r("path", {
|
|
81
82
|
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
82
|
-
}), "ErrorOutline"),
|
|
83
|
+
}), "ErrorOutline"), yo = y(/* @__PURE__ */ r("path", {
|
|
83
84
|
d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
84
|
-
}), "InfoOutlined"),
|
|
85
|
+
}), "InfoOutlined"), vo = (e) => {
|
|
85
86
|
const {
|
|
86
87
|
variant: s,
|
|
87
88
|
color: n,
|
|
88
89
|
severity: t,
|
|
89
90
|
classes: l
|
|
90
|
-
} =
|
|
91
|
+
} = e, p = {
|
|
91
92
|
root: ["root", `color${T(n || t)}`, `${s}${T(n || t)}`, `${s}`],
|
|
92
93
|
icon: ["icon"],
|
|
93
94
|
message: ["message"],
|
|
94
95
|
action: ["action"]
|
|
95
96
|
};
|
|
96
|
-
return L(p,
|
|
97
|
-
},
|
|
97
|
+
return L(p, uo, l);
|
|
98
|
+
}, To = d(lo, {
|
|
98
99
|
name: "MuiAlert",
|
|
99
100
|
slot: "Root",
|
|
100
|
-
overridesResolver: (
|
|
101
|
+
overridesResolver: (e, s) => {
|
|
101
102
|
const {
|
|
102
103
|
ownerState: n
|
|
103
|
-
} =
|
|
104
|
+
} = e;
|
|
104
105
|
return [s.root, s[n.variant], s[`${n.variant}${T(n.color || n.severity)}`]];
|
|
105
106
|
}
|
|
106
107
|
})(B(({
|
|
107
|
-
theme:
|
|
108
|
+
theme: e
|
|
108
109
|
}) => {
|
|
109
|
-
const s =
|
|
110
|
+
const s = e.palette.mode === "light" ? h : M, n = e.palette.mode === "light" ? M : h;
|
|
110
111
|
return {
|
|
111
|
-
...
|
|
112
|
+
...e.typography.body2,
|
|
112
113
|
backgroundColor: "transparent",
|
|
113
114
|
display: "flex",
|
|
114
115
|
padding: "6px 16px",
|
|
115
|
-
variants: [...Object.entries(
|
|
116
|
+
variants: [...Object.entries(e.palette).filter(v(["light"])).map(([t]) => ({
|
|
116
117
|
props: {
|
|
117
118
|
colorSeverity: t,
|
|
118
119
|
variant: "standard"
|
|
119
120
|
},
|
|
120
121
|
style: {
|
|
121
|
-
color:
|
|
122
|
-
backgroundColor:
|
|
123
|
-
[`& .${x.icon}`]:
|
|
124
|
-
color:
|
|
122
|
+
color: e.vars ? e.vars.palette.Alert[`${t}Color`] : s(e.palette[t].light, 0.6),
|
|
123
|
+
backgroundColor: e.vars ? e.vars.palette.Alert[`${t}StandardBg`] : n(e.palette[t].light, 0.9),
|
|
124
|
+
[`& .${x.icon}`]: e.vars ? {
|
|
125
|
+
color: e.vars.palette.Alert[`${t}IconColor`]
|
|
125
126
|
} : {
|
|
126
|
-
color:
|
|
127
|
+
color: e.palette[t].main
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
|
-
})), ...Object.entries(
|
|
130
|
+
})), ...Object.entries(e.palette).filter(v(["light"])).map(([t]) => ({
|
|
130
131
|
props: {
|
|
131
132
|
colorSeverity: t,
|
|
132
133
|
variant: "outlined"
|
|
133
134
|
},
|
|
134
135
|
style: {
|
|
135
|
-
color:
|
|
136
|
-
border: `1px solid ${(
|
|
137
|
-
[`& .${x.icon}`]:
|
|
138
|
-
color:
|
|
136
|
+
color: e.vars ? e.vars.palette.Alert[`${t}Color`] : s(e.palette[t].light, 0.6),
|
|
137
|
+
border: `1px solid ${(e.vars || e).palette[t].light}`,
|
|
138
|
+
[`& .${x.icon}`]: e.vars ? {
|
|
139
|
+
color: e.vars.palette.Alert[`${t}IconColor`]
|
|
139
140
|
} : {
|
|
140
|
-
color:
|
|
141
|
+
color: e.palette[t].main
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
|
-
})), ...Object.entries(
|
|
144
|
+
})), ...Object.entries(e.palette).filter(v(["dark"])).map(([t]) => ({
|
|
144
145
|
props: {
|
|
145
146
|
colorSeverity: t,
|
|
146
147
|
variant: "filled"
|
|
147
148
|
},
|
|
148
149
|
style: {
|
|
149
|
-
fontWeight:
|
|
150
|
-
...
|
|
151
|
-
color:
|
|
152
|
-
backgroundColor:
|
|
150
|
+
fontWeight: e.typography.fontWeightMedium,
|
|
151
|
+
...e.vars ? {
|
|
152
|
+
color: e.vars.palette.Alert[`${t}FilledColor`],
|
|
153
|
+
backgroundColor: e.vars.palette.Alert[`${t}FilledBg`]
|
|
153
154
|
} : {
|
|
154
|
-
backgroundColor:
|
|
155
|
-
color:
|
|
155
|
+
backgroundColor: e.palette.mode === "dark" ? e.palette[t].dark : e.palette[t].main,
|
|
156
|
+
color: e.palette.getContrastText(e.palette[t].main)
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
}))]
|
|
159
160
|
};
|
|
160
|
-
})),
|
|
161
|
+
})), Ao = d("div", {
|
|
161
162
|
name: "MuiAlert",
|
|
162
163
|
slot: "Icon",
|
|
163
|
-
overridesResolver: (
|
|
164
|
+
overridesResolver: (e, s) => s.icon
|
|
164
165
|
})({
|
|
165
166
|
marginRight: 12,
|
|
166
167
|
padding: "7px 0",
|
|
167
168
|
display: "flex",
|
|
168
169
|
fontSize: 22,
|
|
169
170
|
opacity: 0.9
|
|
170
|
-
}),
|
|
171
|
+
}), Co = d("div", {
|
|
171
172
|
name: "MuiAlert",
|
|
172
173
|
slot: "Message",
|
|
173
|
-
overridesResolver: (
|
|
174
|
+
overridesResolver: (e, s) => s.message
|
|
174
175
|
})({
|
|
175
176
|
padding: "8px 0",
|
|
176
177
|
minWidth: 0,
|
|
177
178
|
overflow: "auto"
|
|
178
|
-
}),
|
|
179
|
+
}), So = d("div", {
|
|
179
180
|
name: "MuiAlert",
|
|
180
181
|
slot: "Action",
|
|
181
|
-
overridesResolver: (
|
|
182
|
+
overridesResolver: (e, s) => s.action
|
|
182
183
|
})({
|
|
183
184
|
display: "flex",
|
|
184
185
|
alignItems: "flex-start",
|
|
@@ -186,16 +187,16 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
186
187
|
marginLeft: "auto",
|
|
187
188
|
marginRight: -8
|
|
188
189
|
}), P = {
|
|
189
|
-
success: /* @__PURE__ */ r(
|
|
190
|
+
success: /* @__PURE__ */ r(fo, {
|
|
190
191
|
fontSize: "inherit"
|
|
191
192
|
}),
|
|
192
|
-
warning: /* @__PURE__ */ r(
|
|
193
|
+
warning: /* @__PURE__ */ r(mo, {
|
|
193
194
|
fontSize: "inherit"
|
|
194
195
|
}),
|
|
195
|
-
error: /* @__PURE__ */ r(
|
|
196
|
+
error: /* @__PURE__ */ r(go, {
|
|
196
197
|
fontSize: "inherit"
|
|
197
198
|
}),
|
|
198
|
-
info: /* @__PURE__ */ r(
|
|
199
|
+
info: /* @__PURE__ */ r(yo, {
|
|
199
200
|
fontSize: "inherit"
|
|
200
201
|
})
|
|
201
202
|
}, E = /* @__PURE__ */ $.forwardRef(function(s, n) {
|
|
@@ -212,9 +213,9 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
212
213
|
componentsProps: W = {},
|
|
213
214
|
icon: S,
|
|
214
215
|
iconMapping: F = P,
|
|
215
|
-
onClose:
|
|
216
|
+
onClose: O,
|
|
216
217
|
role: H = "alert",
|
|
217
|
-
severity:
|
|
218
|
+
severity: m = "success",
|
|
218
219
|
slotProps: U = {},
|
|
219
220
|
slots: V = {},
|
|
220
221
|
variant: D = "standard",
|
|
@@ -222,10 +223,10 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
222
223
|
} = t, a = {
|
|
223
224
|
...t,
|
|
224
225
|
color: A,
|
|
225
|
-
severity:
|
|
226
|
+
severity: m,
|
|
226
227
|
variant: D,
|
|
227
|
-
colorSeverity: A ||
|
|
228
|
-
},
|
|
228
|
+
colorSeverity: A || m
|
|
229
|
+
}, g = vo(a), i = {
|
|
229
230
|
slots: {
|
|
230
231
|
closeButton: C.CloseButton,
|
|
231
232
|
closeIcon: C.CloseIcon,
|
|
@@ -238,8 +239,8 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
238
239
|
}, [_, q] = c("root", {
|
|
239
240
|
ref: n,
|
|
240
241
|
shouldForwardComponentProp: !0,
|
|
241
|
-
className: w(
|
|
242
|
-
elementType:
|
|
242
|
+
className: w(g.root, u),
|
|
243
|
+
elementType: To,
|
|
243
244
|
externalForwardedProps: {
|
|
244
245
|
...i,
|
|
245
246
|
...Z
|
|
@@ -250,26 +251,26 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
250
251
|
elevation: 0
|
|
251
252
|
}
|
|
252
253
|
}), [G, J] = c("icon", {
|
|
253
|
-
className:
|
|
254
|
-
elementType:
|
|
254
|
+
className: g.icon,
|
|
255
|
+
elementType: Ao,
|
|
255
256
|
externalForwardedProps: i,
|
|
256
257
|
ownerState: a
|
|
257
258
|
}), [K, Q] = c("message", {
|
|
258
|
-
className:
|
|
259
|
-
elementType:
|
|
259
|
+
className: g.message,
|
|
260
|
+
elementType: Co,
|
|
260
261
|
externalForwardedProps: i,
|
|
261
262
|
ownerState: a
|
|
262
|
-
}), [
|
|
263
|
-
className:
|
|
264
|
-
elementType:
|
|
263
|
+
}), [b, I] = c("action", {
|
|
264
|
+
className: g.action,
|
|
265
|
+
elementType: So,
|
|
265
266
|
externalForwardedProps: i,
|
|
266
267
|
ownerState: a
|
|
267
268
|
}), [X, Y] = c("closeButton", {
|
|
268
|
-
elementType:
|
|
269
|
+
elementType: ro,
|
|
269
270
|
externalForwardedProps: i,
|
|
270
271
|
ownerState: a
|
|
271
|
-
}), [
|
|
272
|
-
elementType:
|
|
272
|
+
}), [oo, eo] = c("closeIcon", {
|
|
273
|
+
elementType: no,
|
|
273
274
|
externalForwardedProps: i,
|
|
274
275
|
ownerState: a
|
|
275
276
|
});
|
|
@@ -277,25 +278,25 @@ const x = R("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSu
|
|
|
277
278
|
...q,
|
|
278
279
|
children: [S !== !1 ? /* @__PURE__ */ r(G, {
|
|
279
280
|
...J,
|
|
280
|
-
children: S || F[
|
|
281
|
+
children: S || F[m] || P[m]
|
|
281
282
|
}) : null, /* @__PURE__ */ r(K, {
|
|
282
283
|
...Q,
|
|
283
284
|
children: p
|
|
284
|
-
}), l != null ? /* @__PURE__ */ r(
|
|
285
|
-
...
|
|
285
|
+
}), l != null ? /* @__PURE__ */ r(b, {
|
|
286
|
+
...I,
|
|
286
287
|
children: l
|
|
287
|
-
}) : null, l == null &&
|
|
288
|
-
...
|
|
288
|
+
}) : null, l == null && O ? /* @__PURE__ */ r(b, {
|
|
289
|
+
...I,
|
|
289
290
|
children: /* @__PURE__ */ r(X, {
|
|
290
291
|
size: "small",
|
|
291
292
|
"aria-label": f,
|
|
292
293
|
title: f,
|
|
293
294
|
color: "inherit",
|
|
294
|
-
onClick:
|
|
295
|
+
onClick: O,
|
|
295
296
|
...Y,
|
|
296
|
-
children: /* @__PURE__ */ r(
|
|
297
|
+
children: /* @__PURE__ */ r(oo, {
|
|
297
298
|
fontSize: "small",
|
|
298
|
-
...
|
|
299
|
+
...eo
|
|
299
300
|
})
|
|
300
301
|
})
|
|
301
302
|
}) : null]
|
|
@@ -309,133 +310,134 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
309
310
|
/**
|
|
310
311
|
* The action to display. It renders after the message, at the end of the alert.
|
|
311
312
|
*/
|
|
312
|
-
action:
|
|
313
|
+
action: o.node,
|
|
313
314
|
/**
|
|
314
315
|
* The content of the component.
|
|
315
316
|
*/
|
|
316
|
-
children:
|
|
317
|
+
children: o.node,
|
|
317
318
|
/**
|
|
318
319
|
* Override or extend the styles applied to the component.
|
|
319
320
|
*/
|
|
320
|
-
classes:
|
|
321
|
+
classes: o.object,
|
|
321
322
|
/**
|
|
322
323
|
* @ignore
|
|
323
324
|
*/
|
|
324
|
-
className:
|
|
325
|
+
className: o.string,
|
|
325
326
|
/**
|
|
326
327
|
* Override the default label for the *close popup* icon button.
|
|
327
328
|
*
|
|
328
329
|
* For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
|
|
329
330
|
* @default 'Close'
|
|
330
331
|
*/
|
|
331
|
-
closeText:
|
|
332
|
+
closeText: o.string,
|
|
332
333
|
/**
|
|
333
334
|
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
|
334
335
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
335
336
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
336
337
|
*/
|
|
337
|
-
color:
|
|
338
|
+
color: o.oneOfType([o.oneOf(["error", "info", "success", "warning"]), o.string]),
|
|
338
339
|
/**
|
|
339
340
|
* The components used for each slot inside.
|
|
340
341
|
*
|
|
341
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
342
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
342
343
|
*
|
|
343
344
|
* @default {}
|
|
344
345
|
*/
|
|
345
|
-
components:
|
|
346
|
-
CloseButton:
|
|
347
|
-
CloseIcon:
|
|
346
|
+
components: o.shape({
|
|
347
|
+
CloseButton: o.elementType,
|
|
348
|
+
CloseIcon: o.elementType
|
|
348
349
|
}),
|
|
349
350
|
/**
|
|
350
351
|
* The extra props for the slot components.
|
|
351
352
|
* You can override the existing props or add new ones.
|
|
352
353
|
*
|
|
353
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
354
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
354
355
|
*
|
|
355
356
|
* @default {}
|
|
356
357
|
*/
|
|
357
|
-
componentsProps:
|
|
358
|
-
closeButton:
|
|
359
|
-
closeIcon:
|
|
358
|
+
componentsProps: o.shape({
|
|
359
|
+
closeButton: o.object,
|
|
360
|
+
closeIcon: o.object
|
|
360
361
|
}),
|
|
361
362
|
/**
|
|
362
363
|
* Override the icon displayed before the children.
|
|
363
364
|
* Unless provided, the icon is mapped to the value of the `severity` prop.
|
|
364
365
|
* Set to `false` to remove the `icon`.
|
|
365
366
|
*/
|
|
366
|
-
icon:
|
|
367
|
+
icon: o.node,
|
|
367
368
|
/**
|
|
368
369
|
* The component maps the `severity` prop to a range of different icons,
|
|
369
370
|
* for instance success to `<SuccessOutlined>`.
|
|
370
371
|
* If you wish to change this mapping, you can provide your own.
|
|
371
372
|
* Alternatively, you can use the `icon` prop to override the icon displayed.
|
|
372
373
|
*/
|
|
373
|
-
iconMapping:
|
|
374
|
-
error:
|
|
375
|
-
info:
|
|
376
|
-
success:
|
|
377
|
-
warning:
|
|
374
|
+
iconMapping: o.shape({
|
|
375
|
+
error: o.node,
|
|
376
|
+
info: o.node,
|
|
377
|
+
success: o.node,
|
|
378
|
+
warning: o.node
|
|
378
379
|
}),
|
|
379
380
|
/**
|
|
380
381
|
* Callback fired when the component requests to be closed.
|
|
381
382
|
* When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
|
|
382
383
|
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
383
384
|
*/
|
|
384
|
-
onClose:
|
|
385
|
+
onClose: o.func,
|
|
385
386
|
/**
|
|
386
387
|
* The ARIA role attribute of the element.
|
|
387
388
|
* @default 'alert'
|
|
388
389
|
*/
|
|
389
|
-
role:
|
|
390
|
+
role: o.string,
|
|
390
391
|
/**
|
|
391
392
|
* The severity of the alert. This defines the color and icon used.
|
|
392
393
|
* @default 'success'
|
|
393
394
|
*/
|
|
394
|
-
severity:
|
|
395
|
+
severity: o.oneOfType([o.oneOf(["error", "info", "success", "warning"]), o.string]),
|
|
395
396
|
/**
|
|
396
397
|
* The props used for each slot inside.
|
|
397
398
|
* @default {}
|
|
398
399
|
*/
|
|
399
|
-
slotProps:
|
|
400
|
-
action:
|
|
401
|
-
closeButton:
|
|
402
|
-
closeIcon:
|
|
403
|
-
icon:
|
|
404
|
-
message:
|
|
405
|
-
root:
|
|
400
|
+
slotProps: o.shape({
|
|
401
|
+
action: o.oneOfType([o.func, o.object]),
|
|
402
|
+
closeButton: o.oneOfType([o.func, o.object]),
|
|
403
|
+
closeIcon: o.oneOfType([o.func, o.object]),
|
|
404
|
+
icon: o.oneOfType([o.func, o.object]),
|
|
405
|
+
message: o.oneOfType([o.func, o.object]),
|
|
406
|
+
root: o.oneOfType([o.func, o.object])
|
|
406
407
|
}),
|
|
407
408
|
/**
|
|
408
409
|
* The components used for each slot inside.
|
|
409
410
|
* @default {}
|
|
410
411
|
*/
|
|
411
|
-
slots:
|
|
412
|
-
action:
|
|
413
|
-
closeButton:
|
|
414
|
-
closeIcon:
|
|
415
|
-
icon:
|
|
416
|
-
message:
|
|
417
|
-
root:
|
|
412
|
+
slots: o.shape({
|
|
413
|
+
action: o.elementType,
|
|
414
|
+
closeButton: o.elementType,
|
|
415
|
+
closeIcon: o.elementType,
|
|
416
|
+
icon: o.elementType,
|
|
417
|
+
message: o.elementType,
|
|
418
|
+
root: o.elementType
|
|
418
419
|
}),
|
|
419
420
|
/**
|
|
420
421
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
421
422
|
*/
|
|
422
|
-
sx:
|
|
423
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
423
424
|
/**
|
|
424
425
|
* The variant to use.
|
|
425
426
|
* @default 'standard'
|
|
426
427
|
*/
|
|
427
|
-
variant:
|
|
428
|
+
variant: o.oneOfType([o.oneOf(["filled", "outlined", "standard"]), o.string])
|
|
428
429
|
});
|
|
429
|
-
const
|
|
430
|
-
severity:
|
|
430
|
+
const ko = ({
|
|
431
|
+
severity: e = "success",
|
|
431
432
|
...s
|
|
432
433
|
}) => {
|
|
433
|
-
const n =
|
|
434
|
+
const n = to();
|
|
434
435
|
return /* @__PURE__ */ j(
|
|
435
436
|
E,
|
|
436
437
|
{
|
|
437
|
-
|
|
438
|
-
|
|
438
|
+
severity: e,
|
|
439
|
+
color: e,
|
|
440
|
+
sx: { bgcolor: so(n.palette[e].light, 0.35) },
|
|
439
441
|
...s,
|
|
440
442
|
children: [
|
|
441
443
|
s.title ? /* @__PURE__ */ r(k, { children: s.title }) : null,
|
|
@@ -446,7 +448,7 @@ const Ne = ({
|
|
|
446
448
|
};
|
|
447
449
|
export {
|
|
448
450
|
k as A,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
451
|
+
Lo as a,
|
|
452
|
+
ko as b,
|
|
453
|
+
io as g
|
|
452
454
|
};
|