@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
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { P as e
|
|
3
|
-
import {
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { P as e } from "./index-Sy88PpwE.js";
|
|
3
|
+
import { F as Ae, G as Be, H as pe, I as He } from "./generateUtilityClasses-DngCqveO.js";
|
|
4
|
+
import { i as fe } from "./isHostComponent-kiaBvYVo.js";
|
|
4
5
|
import { f as Me } from "./formControlState-vgaj2ksH.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { g as
|
|
7
|
-
import { m as
|
|
8
|
-
import { i as
|
|
9
|
-
import { jsxs as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { o as
|
|
14
|
-
import { d as
|
|
15
|
-
import { c as
|
|
16
|
-
import { r as
|
|
17
|
-
import { e as
|
|
18
|
-
function
|
|
19
|
-
return parseInt(
|
|
6
|
+
import { u as Pe, F as We } from "./useFormControl-CatNKXAi.js";
|
|
7
|
+
import { g as De } from "./index-l8yqod25.js";
|
|
8
|
+
import { m as ge } from "./memoTheme-nmt7i1dS.js";
|
|
9
|
+
import { i as Le } from "./utils-DWqc1kRF.js";
|
|
10
|
+
import { jsxs as X, jsx as A } from "react/jsx-runtime";
|
|
11
|
+
import { u as je, s as ve, c as Ue } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
12
|
+
import { u as we } from "./useForkRef-u29GSuCu.js";
|
|
13
|
+
import { u as Ve, a as ee } from "./useEventCallback-Yoj9nCug.js";
|
|
14
|
+
import { o as me } from "./ownerWindow-niciwP7I.js";
|
|
15
|
+
import { d as _e } from "./debounce-46wSf_lW.js";
|
|
16
|
+
import { c as oe } from "./capitalize-BHFotl9B.js";
|
|
17
|
+
import { r as $e } from "./refType-Dp7CJc86.js";
|
|
18
|
+
import { e as Ge } from "./elementTypeAcceptingRef-DOeckaXy.js";
|
|
19
|
+
function L(t) {
|
|
20
|
+
return parseInt(t, 10) || 0;
|
|
20
21
|
}
|
|
21
|
-
const
|
|
22
|
+
const Ke = {
|
|
22
23
|
shadow: {
|
|
23
24
|
// Visibility needed to hide the extra text area on iPads
|
|
24
25
|
visibility: "hidden",
|
|
@@ -33,89 +34,95 @@ const $e = {
|
|
|
33
34
|
transform: "translateZ(0)"
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
|
-
function
|
|
37
|
-
for (const o in
|
|
37
|
+
function qe(t) {
|
|
38
|
+
for (const o in t)
|
|
38
39
|
return !1;
|
|
39
40
|
return !0;
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
42
|
+
function he(t) {
|
|
43
|
+
return qe(t) || t.outerHeightStyle === 0 && !t.overflowing;
|
|
43
44
|
}
|
|
44
|
-
const
|
|
45
|
+
const Se = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
45
46
|
const {
|
|
46
47
|
onChange: d,
|
|
47
|
-
maxRows:
|
|
48
|
+
maxRows: m,
|
|
48
49
|
minRows: c = 1,
|
|
49
50
|
style: R,
|
|
50
51
|
value: T,
|
|
51
|
-
...
|
|
52
|
+
...B
|
|
52
53
|
} = o, {
|
|
53
|
-
current:
|
|
54
|
-
} =
|
|
55
|
-
const
|
|
56
|
-
if (!
|
|
54
|
+
current: S
|
|
55
|
+
} = l.useRef(T != null), p = l.useRef(null), O = we(n, p), f = l.useRef(null), x = l.useRef(null), g = l.useCallback(() => {
|
|
56
|
+
const r = p.current, i = x.current;
|
|
57
|
+
if (!r || !i)
|
|
57
58
|
return;
|
|
58
|
-
const u =
|
|
59
|
+
const u = me(r).getComputedStyle(r);
|
|
59
60
|
if (u.width === "0px")
|
|
60
61
|
return {
|
|
61
62
|
outerHeightStyle: 0,
|
|
62
63
|
overflowing: !1
|
|
63
64
|
};
|
|
64
|
-
|
|
65
|
-
` && (
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
let
|
|
70
|
-
c && (
|
|
71
|
-
const P =
|
|
65
|
+
i.style.width = u.width, i.value = r.value || o.placeholder || "x", i.value.slice(-1) === `
|
|
66
|
+
` && (i.value += " ");
|
|
67
|
+
const H = u.boxSizing, M = L(u.paddingBottom) + L(u.paddingTop), U = L(u.borderBottomWidth) + L(u.borderTopWidth), w = i.scrollHeight;
|
|
68
|
+
i.value = "x";
|
|
69
|
+
const E = i.scrollHeight;
|
|
70
|
+
let h = w;
|
|
71
|
+
c && (h = Math.max(Number(c) * E, h)), m && (h = Math.min(Number(m) * E, h)), h = Math.max(h, E);
|
|
72
|
+
const P = h + (H === "border-box" ? M + U : 0), V = Math.abs(h - w) <= 1;
|
|
72
73
|
return {
|
|
73
74
|
outerHeightStyle: P,
|
|
74
|
-
overflowing:
|
|
75
|
+
overflowing: V
|
|
75
76
|
};
|
|
76
|
-
}, [
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
77
|
+
}, [m, c, o.placeholder]), z = Ve(() => {
|
|
78
|
+
const r = p.current, i = g();
|
|
79
|
+
if (!r || !i || he(i))
|
|
80
|
+
return !1;
|
|
81
|
+
const y = i.outerHeightStyle;
|
|
82
|
+
return f.current != null && f.current !== y;
|
|
83
|
+
}), C = l.useCallback(() => {
|
|
84
|
+
const r = p.current, i = g();
|
|
85
|
+
if (!r || !i || he(i))
|
|
79
86
|
return;
|
|
80
|
-
const y =
|
|
81
|
-
|
|
82
|
-
}, [
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
87
|
+
const y = i.outerHeightStyle;
|
|
88
|
+
f.current !== y && (f.current = y, r.style.height = `${y}px`), r.style.overflow = i.overflowing ? "hidden" : "";
|
|
89
|
+
}, [g]), F = l.useRef(-1);
|
|
90
|
+
ee(() => {
|
|
91
|
+
const r = _e(C), i = p == null ? void 0 : p.current;
|
|
92
|
+
if (!i)
|
|
86
93
|
return;
|
|
87
|
-
const y =
|
|
88
|
-
y.addEventListener("resize",
|
|
94
|
+
const y = me(i);
|
|
95
|
+
y.addEventListener("resize", r);
|
|
89
96
|
let u;
|
|
90
97
|
return typeof ResizeObserver < "u" && (u = new ResizeObserver(() => {
|
|
91
|
-
u.unobserve(
|
|
92
|
-
u.observe(
|
|
93
|
-
});
|
|
94
|
-
}), u.observe(
|
|
95
|
-
|
|
98
|
+
z() && (u.unobserve(i), cancelAnimationFrame(F.current), C(), F.current = requestAnimationFrame(() => {
|
|
99
|
+
u.observe(i);
|
|
100
|
+
}));
|
|
101
|
+
}), u.observe(i)), () => {
|
|
102
|
+
r.clear(), cancelAnimationFrame(F.current), y.removeEventListener("resize", r), u && u.disconnect();
|
|
96
103
|
};
|
|
97
|
-
}, [
|
|
98
|
-
|
|
104
|
+
}, [g, C, z]), ee(() => {
|
|
105
|
+
C();
|
|
99
106
|
});
|
|
100
|
-
const
|
|
101
|
-
|
|
107
|
+
const j = (r) => {
|
|
108
|
+
S || C(), d && d(r);
|
|
102
109
|
};
|
|
103
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ X(l.Fragment, {
|
|
104
111
|
children: [/* @__PURE__ */ A("textarea", {
|
|
105
112
|
value: T,
|
|
106
|
-
onChange:
|
|
113
|
+
onChange: j,
|
|
107
114
|
ref: O,
|
|
108
115
|
rows: c,
|
|
109
116
|
style: R,
|
|
110
|
-
...
|
|
117
|
+
...B
|
|
111
118
|
}), /* @__PURE__ */ A("textarea", {
|
|
112
119
|
"aria-hidden": !0,
|
|
113
120
|
className: o.className,
|
|
114
121
|
readOnly: !0,
|
|
115
|
-
ref:
|
|
122
|
+
ref: x,
|
|
116
123
|
tabIndex: -1,
|
|
117
124
|
style: {
|
|
118
|
-
|
|
125
|
+
...Ke.shadow,
|
|
119
126
|
...R,
|
|
120
127
|
paddingTop: 0,
|
|
121
128
|
paddingBottom: 0
|
|
@@ -123,7 +130,7 @@ const ve = /* @__PURE__ */ s.forwardRef(function(o, r) {
|
|
|
123
130
|
})]
|
|
124
131
|
});
|
|
125
132
|
});
|
|
126
|
-
process.env.NODE_ENV !== "production" && (
|
|
133
|
+
process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
127
134
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
128
135
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
129
136
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -158,51 +165,51 @@ process.env.NODE_ENV !== "production" && (ve.propTypes = {
|
|
|
158
165
|
*/
|
|
159
166
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
160
167
|
});
|
|
161
|
-
function
|
|
162
|
-
return
|
|
168
|
+
function Ye(t) {
|
|
169
|
+
return Be("MuiInputBase", t);
|
|
163
170
|
}
|
|
164
|
-
const
|
|
165
|
-
var
|
|
166
|
-
const
|
|
171
|
+
const te = Ae("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
172
|
+
var be;
|
|
173
|
+
const Ze = (t, o) => {
|
|
167
174
|
const {
|
|
168
|
-
ownerState:
|
|
169
|
-
} =
|
|
170
|
-
return [o.root,
|
|
171
|
-
}, Je = (
|
|
175
|
+
ownerState: n
|
|
176
|
+
} = t;
|
|
177
|
+
return [o.root, n.formControl && o.formControl, n.startAdornment && o.adornedStart, n.endAdornment && o.adornedEnd, n.error && o.error, n.size === "small" && o.sizeSmall, n.multiline && o.multiline, n.color && o[`color${oe(n.color)}`], n.fullWidth && o.fullWidth, n.hiddenLabel && o.hiddenLabel];
|
|
178
|
+
}, Je = (t, o) => {
|
|
172
179
|
const {
|
|
173
|
-
ownerState:
|
|
174
|
-
} =
|
|
175
|
-
return [o.input,
|
|
176
|
-
},
|
|
180
|
+
ownerState: n
|
|
181
|
+
} = t;
|
|
182
|
+
return [o.input, n.size === "small" && o.inputSizeSmall, n.multiline && o.inputMultiline, n.type === "search" && o.inputTypeSearch, n.startAdornment && o.inputAdornedStart, n.endAdornment && o.inputAdornedEnd, n.hiddenLabel && o.inputHiddenLabel];
|
|
183
|
+
}, Qe = (t) => {
|
|
177
184
|
const {
|
|
178
185
|
classes: o,
|
|
179
|
-
color:
|
|
186
|
+
color: n,
|
|
180
187
|
disabled: d,
|
|
181
|
-
error:
|
|
188
|
+
error: m,
|
|
182
189
|
endAdornment: c,
|
|
183
190
|
focused: R,
|
|
184
191
|
formControl: T,
|
|
185
|
-
fullWidth:
|
|
186
|
-
hiddenLabel:
|
|
192
|
+
fullWidth: B,
|
|
193
|
+
hiddenLabel: S,
|
|
187
194
|
multiline: p,
|
|
188
195
|
readOnly: O,
|
|
189
|
-
size:
|
|
190
|
-
startAdornment:
|
|
191
|
-
type:
|
|
192
|
-
} =
|
|
193
|
-
root: ["root", `color${
|
|
194
|
-
input: ["input", d && "disabled",
|
|
196
|
+
size: f,
|
|
197
|
+
startAdornment: x,
|
|
198
|
+
type: g
|
|
199
|
+
} = t, z = {
|
|
200
|
+
root: ["root", `color${oe(n)}`, d && "disabled", m && "error", B && "fullWidth", R && "focused", T && "formControl", f && f !== "medium" && `size${oe(f)}`, p && "multiline", x && "adornedStart", c && "adornedEnd", S && "hiddenLabel", O && "readOnly"],
|
|
201
|
+
input: ["input", d && "disabled", g === "search" && "inputTypeSearch", p && "inputMultiline", f === "small" && "inputSizeSmall", S && "inputHiddenLabel", x && "inputAdornedStart", c && "inputAdornedEnd", O && "readOnly"]
|
|
195
202
|
};
|
|
196
|
-
return
|
|
197
|
-
},
|
|
203
|
+
return Ue(z, Ye, o);
|
|
204
|
+
}, Xe = ve("div", {
|
|
198
205
|
name: "MuiInputBase",
|
|
199
206
|
slot: "Root",
|
|
200
|
-
overridesResolver:
|
|
201
|
-
})(
|
|
202
|
-
theme:
|
|
207
|
+
overridesResolver: Ze
|
|
208
|
+
})(ge(({
|
|
209
|
+
theme: t
|
|
203
210
|
}) => ({
|
|
204
|
-
...
|
|
205
|
-
color: (
|
|
211
|
+
...t.typography.body1,
|
|
212
|
+
color: (t.vars || t).palette.text.primary,
|
|
206
213
|
lineHeight: "1.4375em",
|
|
207
214
|
// 23px
|
|
208
215
|
boxSizing: "border-box",
|
|
@@ -211,8 +218,8 @@ const Ye = (n, o) => {
|
|
|
211
218
|
cursor: "text",
|
|
212
219
|
display: "inline-flex",
|
|
213
220
|
alignItems: "center",
|
|
214
|
-
[`&.${
|
|
215
|
-
color: (
|
|
221
|
+
[`&.${te.disabled}`]: {
|
|
222
|
+
color: (t.vars || t).palette.text.disabled,
|
|
216
223
|
cursor: "default"
|
|
217
224
|
},
|
|
218
225
|
variants: [{
|
|
@@ -225,8 +232,8 @@ const Ye = (n, o) => {
|
|
|
225
232
|
}, {
|
|
226
233
|
props: ({
|
|
227
234
|
ownerState: o,
|
|
228
|
-
size:
|
|
229
|
-
}) => o.multiline &&
|
|
235
|
+
size: n
|
|
236
|
+
}) => o.multiline && n === "small",
|
|
230
237
|
style: {
|
|
231
238
|
paddingTop: 1
|
|
232
239
|
}
|
|
@@ -238,27 +245,27 @@ const Ye = (n, o) => {
|
|
|
238
245
|
width: "100%"
|
|
239
246
|
}
|
|
240
247
|
}]
|
|
241
|
-
}))),
|
|
248
|
+
}))), eo = ve("input", {
|
|
242
249
|
name: "MuiInputBase",
|
|
243
250
|
slot: "Input",
|
|
244
251
|
overridesResolver: Je
|
|
245
|
-
})(
|
|
246
|
-
theme:
|
|
252
|
+
})(ge(({
|
|
253
|
+
theme: t
|
|
247
254
|
}) => {
|
|
248
|
-
const o =
|
|
255
|
+
const o = t.palette.mode === "light", n = {
|
|
249
256
|
color: "currentColor",
|
|
250
|
-
...
|
|
251
|
-
opacity:
|
|
257
|
+
...t.vars ? {
|
|
258
|
+
opacity: t.vars.opacity.inputPlaceholder
|
|
252
259
|
} : {
|
|
253
260
|
opacity: o ? 0.42 : 0.5
|
|
254
261
|
},
|
|
255
|
-
transition:
|
|
256
|
-
duration:
|
|
262
|
+
transition: t.transitions.create("opacity", {
|
|
263
|
+
duration: t.transitions.duration.shorter
|
|
257
264
|
})
|
|
258
265
|
}, d = {
|
|
259
266
|
opacity: "0 !important"
|
|
260
|
-
},
|
|
261
|
-
opacity:
|
|
267
|
+
}, m = t.vars ? {
|
|
268
|
+
opacity: t.vars.opacity.inputPlaceholder
|
|
262
269
|
} : {
|
|
263
270
|
opacity: o ? 0.42 : 0.5
|
|
264
271
|
};
|
|
@@ -279,10 +286,10 @@ const Ye = (n, o) => {
|
|
|
279
286
|
// Make the flex item shrink with Firefox
|
|
280
287
|
minWidth: 0,
|
|
281
288
|
width: "100%",
|
|
282
|
-
"&::-webkit-input-placeholder":
|
|
283
|
-
"&::-moz-placeholder":
|
|
289
|
+
"&::-webkit-input-placeholder": n,
|
|
290
|
+
"&::-moz-placeholder": n,
|
|
284
291
|
// Firefox 19+
|
|
285
|
-
"&::-ms-input-placeholder":
|
|
292
|
+
"&::-ms-input-placeholder": n,
|
|
286
293
|
// Edge
|
|
287
294
|
"&:focus": {
|
|
288
295
|
outline: 0
|
|
@@ -296,22 +303,22 @@ const Ye = (n, o) => {
|
|
|
296
303
|
WebkitAppearance: "none"
|
|
297
304
|
},
|
|
298
305
|
// Show and hide the placeholder logic
|
|
299
|
-
[`label[data-shrink=false] + .${
|
|
306
|
+
[`label[data-shrink=false] + .${te.formControl} &`]: {
|
|
300
307
|
"&::-webkit-input-placeholder": d,
|
|
301
308
|
"&::-moz-placeholder": d,
|
|
302
309
|
// Firefox 19+
|
|
303
310
|
"&::-ms-input-placeholder": d,
|
|
304
311
|
// Edge
|
|
305
|
-
"&:focus::-webkit-input-placeholder":
|
|
306
|
-
"&:focus::-moz-placeholder":
|
|
312
|
+
"&:focus::-webkit-input-placeholder": m,
|
|
313
|
+
"&:focus::-moz-placeholder": m,
|
|
307
314
|
// Firefox 19+
|
|
308
|
-
"&:focus::-ms-input-placeholder":
|
|
315
|
+
"&:focus::-ms-input-placeholder": m
|
|
309
316
|
// Edge
|
|
310
317
|
},
|
|
311
|
-
[`&.${
|
|
318
|
+
[`&.${te.disabled}`]: {
|
|
312
319
|
opacity: 1,
|
|
313
320
|
// Reset iOS opacity
|
|
314
|
-
WebkitTextFillColor: (
|
|
321
|
+
WebkitTextFillColor: (t.vars || t).palette.text.disabled
|
|
315
322
|
// Fix opacity Safari bug
|
|
316
323
|
},
|
|
317
324
|
variants: [{
|
|
@@ -353,7 +360,7 @@ const Ye = (n, o) => {
|
|
|
353
360
|
}
|
|
354
361
|
}]
|
|
355
362
|
};
|
|
356
|
-
})),
|
|
363
|
+
})), ye = De({
|
|
357
364
|
"@keyframes mui-auto-fill": {
|
|
358
365
|
from: {
|
|
359
366
|
display: "block"
|
|
@@ -364,192 +371,192 @@ const Ye = (n, o) => {
|
|
|
364
371
|
display: "block"
|
|
365
372
|
}
|
|
366
373
|
}
|
|
367
|
-
}),
|
|
368
|
-
const d =
|
|
374
|
+
}), oo = /* @__PURE__ */ l.forwardRef(function(o, n) {
|
|
375
|
+
const d = je({
|
|
369
376
|
props: o,
|
|
370
377
|
name: "MuiInputBase"
|
|
371
378
|
}), {
|
|
372
|
-
"aria-describedby":
|
|
379
|
+
"aria-describedby": m,
|
|
373
380
|
autoComplete: c,
|
|
374
381
|
autoFocus: R,
|
|
375
382
|
className: T,
|
|
376
|
-
color:
|
|
377
|
-
components:
|
|
383
|
+
color: B,
|
|
384
|
+
components: S = {},
|
|
378
385
|
componentsProps: p = {},
|
|
379
386
|
defaultValue: O,
|
|
380
|
-
disabled:
|
|
381
|
-
disableInjectingGlobalStyles:
|
|
382
|
-
endAdornment:
|
|
383
|
-
error:
|
|
384
|
-
fullWidth:
|
|
385
|
-
id:
|
|
386
|
-
inputComponent:
|
|
387
|
-
inputProps:
|
|
388
|
-
inputRef:
|
|
389
|
-
margin:
|
|
390
|
-
maxRows:
|
|
391
|
-
minRows:
|
|
387
|
+
disabled: f,
|
|
388
|
+
disableInjectingGlobalStyles: x,
|
|
389
|
+
endAdornment: g,
|
|
390
|
+
error: z,
|
|
391
|
+
fullWidth: C = !1,
|
|
392
|
+
id: F,
|
|
393
|
+
inputComponent: j = "input",
|
|
394
|
+
inputProps: r = {},
|
|
395
|
+
inputRef: i,
|
|
396
|
+
margin: y,
|
|
397
|
+
maxRows: u,
|
|
398
|
+
minRows: H,
|
|
392
399
|
multiline: M = !1,
|
|
393
|
-
name:
|
|
394
|
-
onBlur:
|
|
395
|
-
onChange:
|
|
396
|
-
onClick:
|
|
397
|
-
onFocus:
|
|
398
|
-
onKeyDown:
|
|
400
|
+
name: U,
|
|
401
|
+
onBlur: w,
|
|
402
|
+
onChange: E,
|
|
403
|
+
onClick: h,
|
|
404
|
+
onFocus: P,
|
|
405
|
+
onKeyDown: V,
|
|
399
406
|
onKeyUp: xe,
|
|
400
407
|
placeholder: Ce,
|
|
401
|
-
readOnly:
|
|
408
|
+
readOnly: _,
|
|
402
409
|
renderSuffix: ne,
|
|
403
|
-
rows:
|
|
404
|
-
size:
|
|
405
|
-
slotProps:
|
|
406
|
-
slots:
|
|
407
|
-
startAdornment:
|
|
408
|
-
type:
|
|
409
|
-
value:
|
|
410
|
-
...
|
|
411
|
-
} = d,
|
|
412
|
-
current:
|
|
413
|
-
} =
|
|
414
|
-
process.env.NODE_ENV !== "production" &&
|
|
410
|
+
rows: W,
|
|
411
|
+
size: to,
|
|
412
|
+
slotProps: re = {},
|
|
413
|
+
slots: ie = {},
|
|
414
|
+
startAdornment: N,
|
|
415
|
+
type: ae = "text",
|
|
416
|
+
value: Re,
|
|
417
|
+
...Te
|
|
418
|
+
} = d, D = r.value != null ? r.value : Re, {
|
|
419
|
+
current: $
|
|
420
|
+
} = l.useRef(D != null), I = l.useRef(), Oe = l.useCallback((a) => {
|
|
421
|
+
process.env.NODE_ENV !== "production" && a && a.nodeName !== "INPUT" && !a.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
415
422
|
`));
|
|
416
|
-
}, []),
|
|
417
|
-
process.env.NODE_ENV !== "production" &&
|
|
418
|
-
if (
|
|
419
|
-
return
|
|
420
|
-
}, [
|
|
421
|
-
const
|
|
423
|
+
}, []), Ee = we(I, i, r.ref, Oe), [G, K] = l.useState(!1), s = Pe();
|
|
424
|
+
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
425
|
+
if (s)
|
|
426
|
+
return s.registerEffect();
|
|
427
|
+
}, [s]);
|
|
428
|
+
const b = Me({
|
|
422
429
|
props: d,
|
|
423
|
-
muiFormControl:
|
|
430
|
+
muiFormControl: s,
|
|
424
431
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
425
432
|
});
|
|
426
|
-
|
|
427
|
-
!
|
|
428
|
-
}, [
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
}, [
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
value:
|
|
433
|
+
b.focused = s ? s.focused : G, l.useEffect(() => {
|
|
434
|
+
!s && f && G && (K(!1), w && w());
|
|
435
|
+
}, [s, f, G, w]);
|
|
436
|
+
const q = s && s.onFilled, Y = s && s.onEmpty, k = l.useCallback((a) => {
|
|
437
|
+
Le(a) ? q && q() : Y && Y();
|
|
438
|
+
}, [q, Y]);
|
|
439
|
+
ee(() => {
|
|
440
|
+
$ && k({
|
|
441
|
+
value: D
|
|
435
442
|
});
|
|
436
|
-
}, [
|
|
437
|
-
const Ie = (
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
},
|
|
442
|
-
if (
|
|
443
|
-
const
|
|
444
|
-
if (
|
|
445
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." :
|
|
446
|
-
|
|
447
|
-
value:
|
|
443
|
+
}, [D, k, $]);
|
|
444
|
+
const Ie = (a) => {
|
|
445
|
+
P && P(a), r.onFocus && r.onFocus(a), s && s.onFocus ? s.onFocus(a) : K(!0);
|
|
446
|
+
}, ze = (a) => {
|
|
447
|
+
w && w(a), r.onBlur && r.onBlur(a), s && s.onBlur ? s.onBlur(a) : K(!1);
|
|
448
|
+
}, Fe = (a, ...de) => {
|
|
449
|
+
if (!$) {
|
|
450
|
+
const ce = a.target || I.current;
|
|
451
|
+
if (ce == null)
|
|
452
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : He(1));
|
|
453
|
+
k({
|
|
454
|
+
value: ce.value
|
|
448
455
|
});
|
|
449
456
|
}
|
|
450
|
-
|
|
457
|
+
r.onChange && r.onChange(a, ...de), E && E(a, ...de);
|
|
451
458
|
};
|
|
452
|
-
|
|
453
|
-
|
|
459
|
+
l.useEffect(() => {
|
|
460
|
+
k(I.current);
|
|
454
461
|
}, []);
|
|
455
|
-
const Ne = (
|
|
456
|
-
I.current &&
|
|
462
|
+
const Ne = (a) => {
|
|
463
|
+
I.current && a.currentTarget === a.target && I.current.focus(), h && h(a);
|
|
457
464
|
};
|
|
458
|
-
let
|
|
459
|
-
M &&
|
|
465
|
+
let Z = j, v = r;
|
|
466
|
+
M && Z === "input" && (W ? (process.env.NODE_ENV !== "production" && (H || u) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), v = {
|
|
460
467
|
type: void 0,
|
|
461
|
-
minRows:
|
|
462
|
-
maxRows:
|
|
468
|
+
minRows: W,
|
|
469
|
+
maxRows: W,
|
|
463
470
|
...v
|
|
464
471
|
}) : v = {
|
|
465
472
|
type: void 0,
|
|
466
|
-
maxRows:
|
|
467
|
-
minRows:
|
|
473
|
+
maxRows: u,
|
|
474
|
+
minRows: H,
|
|
468
475
|
...v
|
|
469
|
-
},
|
|
470
|
-
const
|
|
471
|
-
|
|
476
|
+
}, Z = Se);
|
|
477
|
+
const ke = (a) => {
|
|
478
|
+
k(a.animationName === "mui-auto-fill-cancel" ? I.current : {
|
|
472
479
|
value: "x"
|
|
473
480
|
});
|
|
474
481
|
};
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}, [
|
|
482
|
+
l.useEffect(() => {
|
|
483
|
+
s && s.setAdornedStart(!!N);
|
|
484
|
+
}, [s, N]);
|
|
478
485
|
const J = {
|
|
479
486
|
...d,
|
|
480
|
-
color:
|
|
481
|
-
disabled:
|
|
482
|
-
endAdornment:
|
|
483
|
-
error:
|
|
484
|
-
focused:
|
|
485
|
-
formControl:
|
|
486
|
-
fullWidth:
|
|
487
|
-
hiddenLabel:
|
|
487
|
+
color: b.color || "primary",
|
|
488
|
+
disabled: b.disabled,
|
|
489
|
+
endAdornment: g,
|
|
490
|
+
error: b.error,
|
|
491
|
+
focused: b.focused,
|
|
492
|
+
formControl: s,
|
|
493
|
+
fullWidth: C,
|
|
494
|
+
hiddenLabel: b.hiddenLabel,
|
|
488
495
|
multiline: M,
|
|
489
|
-
size:
|
|
490
|
-
startAdornment:
|
|
491
|
-
type:
|
|
492
|
-
},
|
|
496
|
+
size: b.size,
|
|
497
|
+
startAdornment: N,
|
|
498
|
+
type: ae
|
|
499
|
+
}, se = Qe(J), le = ie.root || S.Root || Xe, Q = re.root || p.root || {}, ue = ie.input || S.Input || eo;
|
|
493
500
|
return v = {
|
|
494
501
|
...v,
|
|
495
|
-
...
|
|
496
|
-
}, /* @__PURE__ */
|
|
497
|
-
children: [!
|
|
502
|
+
...re.input ?? p.input
|
|
503
|
+
}, /* @__PURE__ */ X(l.Fragment, {
|
|
504
|
+
children: [!x && typeof ye == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
498
505
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
499
|
-
(
|
|
500
|
-
...
|
|
501
|
-
ref:
|
|
506
|
+
(be || (be = /* @__PURE__ */ A(ye, {}))), /* @__PURE__ */ X(le, {
|
|
507
|
+
...Q,
|
|
508
|
+
ref: n,
|
|
502
509
|
onClick: Ne,
|
|
503
|
-
...
|
|
504
|
-
...!
|
|
510
|
+
...Te,
|
|
511
|
+
...!fe(le) && {
|
|
505
512
|
ownerState: {
|
|
506
513
|
...J,
|
|
507
|
-
...
|
|
514
|
+
...Q.ownerState
|
|
508
515
|
}
|
|
509
516
|
},
|
|
510
|
-
className:
|
|
511
|
-
children: [
|
|
517
|
+
className: pe(se.root, Q.className, T, _ && "MuiInputBase-readOnly"),
|
|
518
|
+
children: [N, /* @__PURE__ */ A(We.Provider, {
|
|
512
519
|
value: null,
|
|
513
|
-
children: /* @__PURE__ */ A(
|
|
514
|
-
"aria-invalid":
|
|
515
|
-
"aria-describedby":
|
|
520
|
+
children: /* @__PURE__ */ A(ue, {
|
|
521
|
+
"aria-invalid": b.error,
|
|
522
|
+
"aria-describedby": m,
|
|
516
523
|
autoComplete: c,
|
|
517
524
|
autoFocus: R,
|
|
518
525
|
defaultValue: O,
|
|
519
|
-
disabled:
|
|
520
|
-
id:
|
|
521
|
-
onAnimationStart:
|
|
522
|
-
name:
|
|
526
|
+
disabled: b.disabled,
|
|
527
|
+
id: F,
|
|
528
|
+
onAnimationStart: ke,
|
|
529
|
+
name: U,
|
|
523
530
|
placeholder: Ce,
|
|
524
|
-
readOnly:
|
|
525
|
-
required:
|
|
526
|
-
rows:
|
|
527
|
-
value:
|
|
528
|
-
onKeyDown:
|
|
531
|
+
readOnly: _,
|
|
532
|
+
required: b.required,
|
|
533
|
+
rows: W,
|
|
534
|
+
value: D,
|
|
535
|
+
onKeyDown: V,
|
|
529
536
|
onKeyUp: xe,
|
|
530
|
-
type:
|
|
537
|
+
type: ae,
|
|
531
538
|
...v,
|
|
532
|
-
...!
|
|
533
|
-
as:
|
|
539
|
+
...!fe(ue) && {
|
|
540
|
+
as: Z,
|
|
534
541
|
ownerState: {
|
|
535
542
|
...J,
|
|
536
543
|
...v.ownerState
|
|
537
544
|
}
|
|
538
545
|
},
|
|
539
|
-
ref:
|
|
540
|
-
className:
|
|
541
|
-
onBlur:
|
|
542
|
-
onChange:
|
|
546
|
+
ref: Ee,
|
|
547
|
+
className: pe(se.input, v.className, _ && "MuiInputBase-readOnly"),
|
|
548
|
+
onBlur: ze,
|
|
549
|
+
onChange: Fe,
|
|
543
550
|
onFocus: Ie
|
|
544
551
|
})
|
|
545
|
-
}),
|
|
546
|
-
...
|
|
547
|
-
startAdornment:
|
|
552
|
+
}), g, ne ? ne({
|
|
553
|
+
...b,
|
|
554
|
+
startAdornment: N
|
|
548
555
|
}) : null]
|
|
549
556
|
})]
|
|
550
557
|
});
|
|
551
558
|
});
|
|
552
|
-
process.env.NODE_ENV !== "production" && (
|
|
559
|
+
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
553
560
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
554
561
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
555
562
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -586,7 +593,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
586
593
|
/**
|
|
587
594
|
* The components used for each slot inside.
|
|
588
595
|
*
|
|
589
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
596
|
+
* @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.
|
|
590
597
|
*
|
|
591
598
|
* @default {}
|
|
592
599
|
*/
|
|
@@ -598,7 +605,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
598
605
|
* The extra props for the slot components.
|
|
599
606
|
* You can override the existing props or add new ones.
|
|
600
607
|
*
|
|
601
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
608
|
+
* @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.
|
|
602
609
|
*
|
|
603
610
|
* @default {}
|
|
604
611
|
*/
|
|
@@ -644,7 +651,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
644
651
|
* Either a string to use a HTML element or a component.
|
|
645
652
|
* @default 'input'
|
|
646
653
|
*/
|
|
647
|
-
inputComponent:
|
|
654
|
+
inputComponent: Ge,
|
|
648
655
|
/**
|
|
649
656
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
650
657
|
* @default {}
|
|
@@ -653,7 +660,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
653
660
|
/**
|
|
654
661
|
* Pass a ref to the `input` element.
|
|
655
662
|
*/
|
|
656
|
-
inputRef:
|
|
663
|
+
inputRef: $e,
|
|
657
664
|
/**
|
|
658
665
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
659
666
|
* FormControl.
|
|
@@ -778,10 +785,10 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
|
|
|
778
785
|
value: e.any
|
|
779
786
|
});
|
|
780
787
|
export {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
788
|
+
oo as I,
|
|
789
|
+
Xe as a,
|
|
790
|
+
eo as b,
|
|
784
791
|
Je as c,
|
|
785
|
-
|
|
786
|
-
|
|
792
|
+
te as i,
|
|
793
|
+
Ze as r
|
|
787
794
|
};
|