@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,110 +1,112 @@
|
|
|
1
1
|
import * as y from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
2
|
+
import { P as t } from "./index-Sy88PpwE.js";
|
|
3
|
+
import { F as kt, G as Rt, H as Je, n as ct } from "./generateUtilityClasses-DngCqveO.js";
|
|
4
|
+
import { A as Ht, f as he, o as $t, i as dt } from "./Select-DZMwqCYA.js";
|
|
5
|
+
import { i as ie } from "./InputBase-DxLqRpcl.js";
|
|
6
|
+
import { C as zt } from "./Close-m-MX3rFn.js";
|
|
7
|
+
import { m as le } from "./memoTheme-nmt7i1dS.js";
|
|
8
|
+
import { u as ft } from "./useSlot-BDb1lvxu.js";
|
|
9
|
+
import { jsx as w, jsxs as _e } from "react/jsx-runtime";
|
|
10
|
+
import { u as Dt, s as H, c as Nt } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
11
|
+
import { u as jt } from "./useId-CK6Kn3Tn.js";
|
|
11
12
|
import { u as gt } from "./useControlled-BYdyS7Pn.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import { s as
|
|
14
|
-
import { P as
|
|
15
|
-
import { P as
|
|
16
|
-
import { C as
|
|
17
|
-
import { c as
|
|
18
|
-
import { I as
|
|
19
|
-
import { c as
|
|
20
|
-
const
|
|
13
|
+
import { u as Ke } from "./useEventCallback-Yoj9nCug.js";
|
|
14
|
+
import { s as Ut } from "./Portal-ChC9wmMZ.js";
|
|
15
|
+
import { P as Et, i as Bt } from "./Paper-984iTz4H.js";
|
|
16
|
+
import { P as Mt } from "./Popper-DfwuvxaQ.js";
|
|
17
|
+
import { C as Wt } from "./Chip-CPR3r42q.js";
|
|
18
|
+
import { c as Ye } from "./capitalize-BHFotl9B.js";
|
|
19
|
+
import { I as Vt } from "./IconButton-CgwURB2g.js";
|
|
20
|
+
import { c as St } from "./chainPropTypes-D9lkm76m.js";
|
|
21
|
+
const Gt = (n) => {
|
|
21
22
|
const a = y.useRef({});
|
|
22
23
|
return y.useEffect(() => {
|
|
23
24
|
a.current = n;
|
|
24
25
|
}), a.current;
|
|
25
26
|
};
|
|
26
|
-
function
|
|
27
|
+
function Tt(n) {
|
|
27
28
|
return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function qt(n = {}) {
|
|
30
31
|
const {
|
|
31
32
|
ignoreAccents: a = !0,
|
|
32
|
-
ignoreCase:
|
|
33
|
-
limit:
|
|
34
|
-
matchFrom:
|
|
35
|
-
stringify:
|
|
36
|
-
trim:
|
|
33
|
+
ignoreCase: d = !0,
|
|
34
|
+
limit: m,
|
|
35
|
+
matchFrom: S = "any",
|
|
36
|
+
stringify: D,
|
|
37
|
+
trim: T = !1
|
|
37
38
|
} = n;
|
|
38
|
-
return (
|
|
39
|
-
inputValue:
|
|
39
|
+
return (N, {
|
|
40
|
+
inputValue: B,
|
|
40
41
|
getOptionLabel: I
|
|
41
42
|
}) => {
|
|
42
|
-
let
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
let
|
|
46
|
-
return
|
|
47
|
-
}) :
|
|
48
|
-
return typeof
|
|
43
|
+
let C = T ? B.trim() : B;
|
|
44
|
+
d && (C = C.toLowerCase()), a && (C = Tt(C));
|
|
45
|
+
const W = C ? N.filter((pe) => {
|
|
46
|
+
let E = (D || I)(pe);
|
|
47
|
+
return d && (E = E.toLowerCase()), a && (E = Tt(E)), S === "start" ? E.startsWith(C) : E.includes(C);
|
|
48
|
+
}) : N;
|
|
49
|
+
return typeof m == "number" ? W.slice(0, m) : W;
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
const
|
|
52
|
+
const _t = qt(), Kt = 5, Jt = (n) => {
|
|
52
53
|
var a;
|
|
53
54
|
return n.current !== null && ((a = n.current.parentElement) == null ? void 0 : a.contains(document.activeElement));
|
|
54
|
-
},
|
|
55
|
-
function
|
|
56
|
-
if (a || n == null)
|
|
55
|
+
}, Xt = [];
|
|
56
|
+
function At(n, a, d, m) {
|
|
57
|
+
if (a || n == null || m)
|
|
57
58
|
return "";
|
|
58
|
-
const
|
|
59
|
-
return typeof
|
|
59
|
+
const S = d(n);
|
|
60
|
+
return typeof S == "string" ? S : "";
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
+
function Yt(n) {
|
|
62
63
|
const {
|
|
63
64
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
64
|
-
unstable_isActiveElementInListbox: a =
|
|
65
|
+
unstable_isActiveElementInListbox: a = Jt,
|
|
65
66
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
66
|
-
unstable_classNamePrefix:
|
|
67
|
-
autoComplete:
|
|
68
|
-
autoHighlight:
|
|
69
|
-
autoSelect:
|
|
70
|
-
blurOnSelect:
|
|
71
|
-
clearOnBlur:
|
|
72
|
-
clearOnEscape:
|
|
67
|
+
unstable_classNamePrefix: d = "Mui",
|
|
68
|
+
autoComplete: m = !1,
|
|
69
|
+
autoHighlight: S = !1,
|
|
70
|
+
autoSelect: D = !1,
|
|
71
|
+
blurOnSelect: T = !1,
|
|
72
|
+
clearOnBlur: N = !n.freeSolo,
|
|
73
|
+
clearOnEscape: B = !1,
|
|
73
74
|
componentName: I = "useAutocomplete",
|
|
74
|
-
defaultValue:
|
|
75
|
-
disableClearable:
|
|
76
|
-
disableCloseOnSelect:
|
|
77
|
-
disabled:
|
|
78
|
-
disabledItemsFocusable:
|
|
79
|
-
disableListWrap:
|
|
80
|
-
filterOptions:
|
|
81
|
-
filterSelectedOptions:
|
|
82
|
-
freeSolo:
|
|
83
|
-
getOptionDisabled:
|
|
84
|
-
getOptionKey:
|
|
85
|
-
getOptionLabel:
|
|
86
|
-
groupBy:
|
|
87
|
-
handleHomeEndKeys:
|
|
88
|
-
id:
|
|
89
|
-
includeInputInList:
|
|
90
|
-
inputValue:
|
|
91
|
-
isOptionEqualToValue:
|
|
92
|
-
multiple:
|
|
93
|
-
onChange:
|
|
94
|
-
onClose:
|
|
95
|
-
onHighlightChange:
|
|
96
|
-
onInputChange:
|
|
97
|
-
onOpen:
|
|
75
|
+
defaultValue: C = n.multiple ? Xt : null,
|
|
76
|
+
disableClearable: W = !1,
|
|
77
|
+
disableCloseOnSelect: pe = !1,
|
|
78
|
+
disabled: E,
|
|
79
|
+
disabledItemsFocusable: we = !1,
|
|
80
|
+
disableListWrap: Le = !1,
|
|
81
|
+
filterOptions: mt = _t,
|
|
82
|
+
filterSelectedOptions: ke = !1,
|
|
83
|
+
freeSolo: ue = !1,
|
|
84
|
+
getOptionDisabled: G,
|
|
85
|
+
getOptionKey: Re,
|
|
86
|
+
getOptionLabel: Qe = (o) => o.label ?? o,
|
|
87
|
+
groupBy: oe,
|
|
88
|
+
handleHomeEndKeys: Ze = !n.freeSolo,
|
|
89
|
+
id: bt,
|
|
90
|
+
includeInputInList: ye = !1,
|
|
91
|
+
inputValue: De,
|
|
92
|
+
isOptionEqualToValue: Y = (o, e) => o === e,
|
|
93
|
+
multiple: u = !1,
|
|
94
|
+
onChange: et,
|
|
95
|
+
onClose: tt,
|
|
96
|
+
onHighlightChange: Ne,
|
|
97
|
+
onInputChange: Q,
|
|
98
|
+
onOpen: Ee,
|
|
98
99
|
open: ht,
|
|
99
100
|
openOnFocus: yt = !1,
|
|
100
101
|
options: xt,
|
|
101
|
-
readOnly:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
readOnly: _ = !1,
|
|
103
|
+
renderValue: L,
|
|
104
|
+
selectOnFocus: ot = !n.freeSolo,
|
|
105
|
+
value: Me
|
|
106
|
+
} = n, M = jt(bt);
|
|
107
|
+
let $ = Qe;
|
|
108
|
+
$ = (o) => {
|
|
109
|
+
const e = Qe(o);
|
|
108
110
|
if (typeof e != "string") {
|
|
109
111
|
if (process.env.NODE_ENV !== "production") {
|
|
110
112
|
const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
|
|
@@ -114,235 +116,240 @@ function Xt(n) {
|
|
|
114
116
|
}
|
|
115
117
|
return e;
|
|
116
118
|
};
|
|
117
|
-
const
|
|
118
|
-
controlled:
|
|
119
|
-
default:
|
|
119
|
+
const ce = y.useRef(!1), xe = y.useRef(!0), h = y.useRef(null), F = y.useRef(null), [Ie, It] = y.useState(null), [V, Ve] = y.useState(-1), nt = S ? 0 : -1, P = y.useRef(nt), Ot = y.useRef(At(C ?? Me, u, $)).current, [i, Oe] = gt({
|
|
120
|
+
controlled: Me,
|
|
121
|
+
default: C,
|
|
120
122
|
name: I
|
|
121
|
-
}), [f,
|
|
122
|
-
controlled:
|
|
123
|
-
default:
|
|
123
|
+
}), [f, ne] = gt({
|
|
124
|
+
controlled: De,
|
|
125
|
+
default: Ot,
|
|
124
126
|
name: I,
|
|
125
127
|
state: "inputValue"
|
|
126
|
-
}), [
|
|
127
|
-
if (!(
|
|
128
|
+
}), [de, Fe] = y.useState(!1), fe = y.useCallback((o, e, r) => {
|
|
129
|
+
if (!(u ? i.length < e.length : e !== null) && !N)
|
|
128
130
|
return;
|
|
129
|
-
const
|
|
130
|
-
f !==
|
|
131
|
-
}, [
|
|
131
|
+
const s = At(e, u, $, L);
|
|
132
|
+
f !== s && (ne(s), Q && Q(o, s, r));
|
|
133
|
+
}, [$, f, u, Q, ne, N, i, L]), [K, Pe] = gt({
|
|
132
134
|
controlled: ht,
|
|
133
135
|
default: !1,
|
|
134
136
|
name: I,
|
|
135
137
|
state: "open"
|
|
136
|
-
}), [
|
|
137
|
-
xt.filter((o) => !(
|
|
138
|
+
}), [Pt, ge] = y.useState(!0), He = !u && i != null && f === $(i), k = K && !_, b = k ? mt(
|
|
139
|
+
xt.filter((o) => !(ke && (u ? i : [i]).some((e) => e !== null && Y(o, e)))),
|
|
138
140
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
139
141
|
// i.e. the filter predicate always returns true
|
|
140
142
|
{
|
|
141
|
-
inputValue:
|
|
142
|
-
getOptionLabel:
|
|
143
|
+
inputValue: He && Pt ? "" : f,
|
|
144
|
+
getOptionLabel: $
|
|
143
145
|
}
|
|
144
|
-
) : [],
|
|
145
|
-
filteredOptions:
|
|
146
|
-
value:
|
|
146
|
+
) : [], z = Gt({
|
|
147
|
+
filteredOptions: b,
|
|
148
|
+
value: i,
|
|
147
149
|
inputValue: f
|
|
148
150
|
});
|
|
149
151
|
y.useEffect(() => {
|
|
150
|
-
const o =
|
|
151
|
-
|
|
152
|
-
}, [
|
|
153
|
-
const
|
|
154
|
-
o === -1
|
|
152
|
+
const o = i !== z.value;
|
|
153
|
+
de && !o || ue && !o || fe(null, i, "reset");
|
|
154
|
+
}, [i, fe, de, z.value, ue]);
|
|
155
|
+
const ze = K && b.length > 0 && !_, j = Ke((o) => {
|
|
156
|
+
if (o === -1)
|
|
157
|
+
h.current.focus();
|
|
158
|
+
else {
|
|
159
|
+
const e = L ? "data-item-index" : "data-tag-index";
|
|
160
|
+
Ie.querySelector(`[${e}="${o}"]`).focus();
|
|
161
|
+
}
|
|
155
162
|
});
|
|
156
163
|
y.useEffect(() => {
|
|
157
|
-
|
|
158
|
-
}, [
|
|
159
|
-
function
|
|
160
|
-
if (!
|
|
164
|
+
u && V > i.length - 1 && (Ve(-1), j(-1));
|
|
165
|
+
}, [i, u, V, j]);
|
|
166
|
+
function rt(o, e) {
|
|
167
|
+
if (!F.current || o < 0 || o >= b.length)
|
|
161
168
|
return -1;
|
|
162
169
|
let r = o;
|
|
163
170
|
for (; ; ) {
|
|
164
|
-
const
|
|
165
|
-
if (
|
|
171
|
+
const p = F.current.querySelector(`[data-option-index="${r}"]`), s = we ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
|
|
172
|
+
if (p && p.hasAttribute("tabindex") && !s)
|
|
166
173
|
return r;
|
|
167
|
-
if (e === "next" ? r = (r + 1) %
|
|
174
|
+
if (e === "next" ? r = (r + 1) % b.length : r = (r - 1 + b.length) % b.length, r === o)
|
|
168
175
|
return -1;
|
|
169
176
|
}
|
|
170
177
|
}
|
|
171
|
-
const
|
|
178
|
+
const J = Ke(({
|
|
172
179
|
event: o,
|
|
173
180
|
index: e,
|
|
174
|
-
reason: r
|
|
181
|
+
reason: r
|
|
175
182
|
}) => {
|
|
176
|
-
if (
|
|
183
|
+
if (P.current = e, e === -1 ? h.current.removeAttribute("aria-activedescendant") : h.current.setAttribute("aria-activedescendant", `${M}-option-${e}`), Ne && ["mouse", "keyboard", "touch"].includes(r) && Ne(o, e === -1 ? null : b[e], r), !F.current)
|
|
177
184
|
return;
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
let
|
|
181
|
-
if (
|
|
185
|
+
const p = F.current.querySelector(`[role="option"].${d}-focused`);
|
|
186
|
+
p && (p.classList.remove(`${d}-focused`), p.classList.remove(`${d}-focusVisible`));
|
|
187
|
+
let s = F.current;
|
|
188
|
+
if (F.current.getAttribute("role") !== "listbox" && (s = F.current.parentElement.querySelector('[role="listbox"]')), !s)
|
|
182
189
|
return;
|
|
183
190
|
if (e === -1) {
|
|
184
|
-
|
|
191
|
+
s.scrollTop = 0;
|
|
185
192
|
return;
|
|
186
193
|
}
|
|
187
|
-
const
|
|
188
|
-
if (
|
|
189
|
-
const x =
|
|
190
|
-
|
|
194
|
+
const g = F.current.querySelector(`[data-option-index="${e}"]`);
|
|
195
|
+
if (g && (g.classList.add(`${d}-focused`), r === "keyboard" && g.classList.add(`${d}-focusVisible`), s.scrollHeight > s.clientHeight && r !== "mouse" && r !== "touch")) {
|
|
196
|
+
const x = g, A = s.clientHeight + s.scrollTop, Te = x.offsetTop + x.offsetHeight;
|
|
197
|
+
Te > A ? s.scrollTop = Te - s.clientHeight : x.offsetTop - x.offsetHeight * (oe ? 1.3 : 0) < s.scrollTop && (s.scrollTop = x.offsetTop - x.offsetHeight * (oe ? 1.3 : 0));
|
|
191
198
|
}
|
|
192
|
-
}),
|
|
199
|
+
}), U = Ke(({
|
|
193
200
|
event: o,
|
|
194
201
|
diff: e,
|
|
195
202
|
direction: r = "next",
|
|
196
|
-
reason:
|
|
203
|
+
reason: p
|
|
197
204
|
}) => {
|
|
198
|
-
if (!
|
|
205
|
+
if (!k)
|
|
199
206
|
return;
|
|
200
|
-
const
|
|
201
|
-
const x =
|
|
207
|
+
const g = rt((() => {
|
|
208
|
+
const x = b.length - 1;
|
|
202
209
|
if (e === "reset")
|
|
203
|
-
return
|
|
210
|
+
return nt;
|
|
204
211
|
if (e === "start")
|
|
205
212
|
return 0;
|
|
206
213
|
if (e === "end")
|
|
207
214
|
return x;
|
|
208
|
-
const
|
|
209
|
-
return
|
|
215
|
+
const A = P.current + e;
|
|
216
|
+
return A < 0 ? A === -1 && ye ? -1 : Le && P.current !== -1 || Math.abs(e) > 1 ? 0 : x : A > x ? A === x + 1 && ye ? -1 : Le || Math.abs(e) > 1 ? x : 0 : A;
|
|
210
217
|
})(), r);
|
|
211
|
-
if (
|
|
212
|
-
index:
|
|
213
|
-
reason:
|
|
218
|
+
if (J({
|
|
219
|
+
index: g,
|
|
220
|
+
reason: p,
|
|
214
221
|
event: o
|
|
215
|
-
}),
|
|
216
|
-
if (
|
|
217
|
-
|
|
222
|
+
}), m && e !== "reset")
|
|
223
|
+
if (g === -1)
|
|
224
|
+
h.current.value = f;
|
|
218
225
|
else {
|
|
219
|
-
const x =
|
|
220
|
-
|
|
226
|
+
const x = $(b[g]);
|
|
227
|
+
h.current.value = x, x.toLowerCase().indexOf(f.toLowerCase()) === 0 && f.length > 0 && h.current.setSelectionRange(f.length, x.length);
|
|
221
228
|
}
|
|
222
|
-
}),
|
|
229
|
+
}), at = () => {
|
|
223
230
|
const o = (e, r) => {
|
|
224
|
-
const
|
|
225
|
-
return
|
|
231
|
+
const p = e ? $(e) : "", s = r ? $(r) : "";
|
|
232
|
+
return p === s;
|
|
226
233
|
};
|
|
227
|
-
if (
|
|
228
|
-
const e =
|
|
234
|
+
if (P.current !== -1 && z.filteredOptions && z.filteredOptions.length !== b.length && z.inputValue === f && (u ? i.length === z.value.length && z.value.every((e, r) => $(i[r]) === $(e)) : o(z.value, i))) {
|
|
235
|
+
const e = z.filteredOptions[P.current];
|
|
229
236
|
if (e)
|
|
230
|
-
return
|
|
237
|
+
return b.findIndex((r) => $(r) === $(e));
|
|
231
238
|
}
|
|
232
239
|
return -1;
|
|
233
|
-
},
|
|
234
|
-
if (!
|
|
240
|
+
}, ve = y.useCallback(() => {
|
|
241
|
+
if (!k)
|
|
235
242
|
return;
|
|
236
|
-
const o =
|
|
243
|
+
const o = at();
|
|
237
244
|
if (o !== -1) {
|
|
238
|
-
|
|
245
|
+
P.current = o;
|
|
239
246
|
return;
|
|
240
247
|
}
|
|
241
|
-
const e =
|
|
242
|
-
if (
|
|
243
|
-
|
|
248
|
+
const e = u ? i[0] : i;
|
|
249
|
+
if (b.length === 0 || e == null) {
|
|
250
|
+
U({
|
|
244
251
|
diff: "reset"
|
|
245
252
|
});
|
|
246
253
|
return;
|
|
247
254
|
}
|
|
248
|
-
if (
|
|
255
|
+
if (F.current) {
|
|
249
256
|
if (e != null) {
|
|
250
|
-
const r =
|
|
251
|
-
if (
|
|
257
|
+
const r = b[P.current];
|
|
258
|
+
if (u && r && i.findIndex((s) => Y(r, s)) !== -1)
|
|
252
259
|
return;
|
|
253
|
-
const
|
|
254
|
-
|
|
260
|
+
const p = b.findIndex((s) => Y(s, e));
|
|
261
|
+
p === -1 ? U({
|
|
255
262
|
diff: "reset"
|
|
256
|
-
}) :
|
|
257
|
-
index:
|
|
263
|
+
}) : J({
|
|
264
|
+
index: p
|
|
258
265
|
});
|
|
259
266
|
return;
|
|
260
267
|
}
|
|
261
|
-
if (
|
|
262
|
-
|
|
263
|
-
index:
|
|
268
|
+
if (P.current >= b.length - 1) {
|
|
269
|
+
J({
|
|
270
|
+
index: b.length - 1
|
|
264
271
|
});
|
|
265
272
|
return;
|
|
266
273
|
}
|
|
267
|
-
|
|
268
|
-
index:
|
|
274
|
+
J({
|
|
275
|
+
index: P.current
|
|
269
276
|
});
|
|
270
277
|
}
|
|
271
278
|
}, [
|
|
272
279
|
// Only sync the highlighted index when the option switch between empty and not
|
|
273
|
-
|
|
280
|
+
b.length,
|
|
274
281
|
// Don't sync the highlighted index with the value when multiple
|
|
275
282
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
283
|
+
u ? !1 : i,
|
|
284
|
+
ke,
|
|
285
|
+
U,
|
|
286
|
+
J,
|
|
287
|
+
k,
|
|
281
288
|
f,
|
|
282
|
-
|
|
283
|
-
]),
|
|
284
|
-
|
|
289
|
+
u
|
|
290
|
+
]), st = Ke((o) => {
|
|
291
|
+
Ut(F, o), o && ve();
|
|
285
292
|
});
|
|
286
293
|
process.env.NODE_ENV !== "production" && y.useEffect(() => {
|
|
287
|
-
(!
|
|
288
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
294
|
+
(!h.current || h.current.nodeName !== "INPUT") && (h.current && h.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${I} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
295
|
+
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${h.current} while an HTMLInputElement was expected.`, `Instead, ${I} expects an input element.`, "", I === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
|
|
289
296
|
`)));
|
|
290
297
|
}, [I]), y.useEffect(() => {
|
|
291
|
-
|
|
292
|
-
}, [
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
if (
|
|
299
|
-
if (
|
|
298
|
+
ve();
|
|
299
|
+
}, [ve]);
|
|
300
|
+
const R = (o) => {
|
|
301
|
+
K || (Pe(!0), ge(!0), Ee && Ee(o));
|
|
302
|
+
}, re = (o, e) => {
|
|
303
|
+
K && (Pe(!1), tt && tt(o, e));
|
|
304
|
+
}, X = (o, e, r, p) => {
|
|
305
|
+
if (u) {
|
|
306
|
+
if (i.length === e.length && i.every((s, g) => s === e[g]))
|
|
300
307
|
return;
|
|
301
|
-
} else if (
|
|
308
|
+
} else if (i === e)
|
|
302
309
|
return;
|
|
303
|
-
|
|
304
|
-
},
|
|
305
|
-
let
|
|
306
|
-
if (
|
|
307
|
-
if (
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
+
et && et(o, e, r, p), Oe(e);
|
|
311
|
+
}, me = y.useRef(!1), q = (o, e, r = "selectOption", p = "options") => {
|
|
312
|
+
let s = r, g = e;
|
|
313
|
+
if (u) {
|
|
314
|
+
if (g = Array.isArray(i) ? i.slice() : [], process.env.NODE_ENV !== "production") {
|
|
315
|
+
const A = g.filter((Te) => Y(e, Te));
|
|
316
|
+
A.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${I} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${A.length} matches.`].join(`
|
|
310
317
|
`));
|
|
311
318
|
}
|
|
312
|
-
const x =
|
|
313
|
-
x === -1 ?
|
|
319
|
+
const x = g.findIndex((A) => Y(e, A));
|
|
320
|
+
x === -1 ? g.push(e) : p !== "freeSolo" && (g.splice(x, 1), s = "removeOption");
|
|
314
321
|
}
|
|
315
|
-
|
|
322
|
+
fe(o, g, s), X(o, g, s, {
|
|
316
323
|
option: e
|
|
317
|
-
}), !
|
|
324
|
+
}), !pe && (!o || !o.ctrlKey && !o.metaKey) && re(o, s), (T === !0 || T === "touch" && me.current || T === "mouse" && !me.current) && h.current.blur();
|
|
318
325
|
};
|
|
319
|
-
function
|
|
326
|
+
function je(o, e) {
|
|
320
327
|
if (o === -1)
|
|
321
328
|
return -1;
|
|
322
329
|
let r = o;
|
|
323
330
|
for (; ; ) {
|
|
324
|
-
if (e === "next" && r ===
|
|
331
|
+
if (e === "next" && r === i.length || e === "previous" && r === -1)
|
|
325
332
|
return -1;
|
|
326
|
-
const
|
|
327
|
-
if (!
|
|
333
|
+
const p = L ? "data-item-index" : "data-tag-index", s = Ie.querySelector(`[${p}="${r}"]`);
|
|
334
|
+
if (!s || !s.hasAttribute("tabindex") || s.disabled || s.getAttribute("aria-disabled") === "true")
|
|
328
335
|
r += e === "next" ? 1 : -1;
|
|
329
336
|
else
|
|
330
337
|
return r;
|
|
331
338
|
}
|
|
332
339
|
}
|
|
333
|
-
const
|
|
334
|
-
if (!
|
|
340
|
+
const Ue = (o, e) => {
|
|
341
|
+
if (!u)
|
|
335
342
|
return;
|
|
336
|
-
f === "" &&
|
|
337
|
-
let r =
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (
|
|
343
|
+
f === "" && re(o, "toggleInput");
|
|
344
|
+
let r = V;
|
|
345
|
+
V === -1 ? f === "" && e === "previous" && (r = i.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === i.length && (r = -1)), r = je(r, e), Ve(r), j(r);
|
|
346
|
+
}, ae = (o) => {
|
|
347
|
+
ce.current = !0, ne(""), Q && Q(o, "", "clear"), X(o, u ? [] : null, "clear");
|
|
348
|
+
}, it = (o) => (e) => {
|
|
349
|
+
if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (V !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), j(-1)), e.which !== 229))
|
|
343
350
|
switch (e.key) {
|
|
344
351
|
case "Home":
|
|
345
|
-
|
|
352
|
+
k && Ze && (e.preventDefault(), U({
|
|
346
353
|
diff: "start",
|
|
347
354
|
direction: "next",
|
|
348
355
|
reason: "keyboard",
|
|
@@ -350,7 +357,7 @@ function Xt(n) {
|
|
|
350
357
|
}));
|
|
351
358
|
break;
|
|
352
359
|
case "End":
|
|
353
|
-
|
|
360
|
+
k && Ze && (e.preventDefault(), U({
|
|
354
361
|
diff: "end",
|
|
355
362
|
direction: "previous",
|
|
356
363
|
reason: "keyboard",
|
|
@@ -358,186 +365,209 @@ function Xt(n) {
|
|
|
358
365
|
}));
|
|
359
366
|
break;
|
|
360
367
|
case "PageUp":
|
|
361
|
-
e.preventDefault(),
|
|
368
|
+
e.preventDefault(), U({
|
|
362
369
|
diff: -5,
|
|
363
370
|
direction: "previous",
|
|
364
371
|
reason: "keyboard",
|
|
365
372
|
event: e
|
|
366
|
-
}),
|
|
373
|
+
}), R(e);
|
|
367
374
|
break;
|
|
368
375
|
case "PageDown":
|
|
369
|
-
e.preventDefault(),
|
|
370
|
-
diff:
|
|
376
|
+
e.preventDefault(), U({
|
|
377
|
+
diff: Kt,
|
|
371
378
|
direction: "next",
|
|
372
379
|
reason: "keyboard",
|
|
373
380
|
event: e
|
|
374
|
-
}),
|
|
381
|
+
}), R(e);
|
|
375
382
|
break;
|
|
376
383
|
case "ArrowDown":
|
|
377
|
-
e.preventDefault(),
|
|
384
|
+
e.preventDefault(), U({
|
|
378
385
|
diff: 1,
|
|
379
386
|
direction: "next",
|
|
380
387
|
reason: "keyboard",
|
|
381
388
|
event: e
|
|
382
|
-
}),
|
|
389
|
+
}), R(e);
|
|
383
390
|
break;
|
|
384
391
|
case "ArrowUp":
|
|
385
|
-
e.preventDefault(),
|
|
392
|
+
e.preventDefault(), U({
|
|
386
393
|
diff: -1,
|
|
387
394
|
direction: "previous",
|
|
388
395
|
reason: "keyboard",
|
|
389
396
|
event: e
|
|
390
|
-
}),
|
|
397
|
+
}), R(e);
|
|
391
398
|
break;
|
|
392
399
|
case "ArrowLeft":
|
|
393
|
-
|
|
400
|
+
!u && L ? j(0) : Ue(e, "previous");
|
|
394
401
|
break;
|
|
395
402
|
case "ArrowRight":
|
|
396
|
-
|
|
403
|
+
!u && L ? j(-1) : Ue(e, "next");
|
|
397
404
|
break;
|
|
398
405
|
case "Enter":
|
|
399
|
-
if (
|
|
400
|
-
const r =
|
|
401
|
-
if (e.preventDefault(),
|
|
406
|
+
if (P.current !== -1 && k) {
|
|
407
|
+
const r = b[P.current], p = G ? G(r) : !1;
|
|
408
|
+
if (e.preventDefault(), p)
|
|
402
409
|
return;
|
|
403
|
-
|
|
404
|
-
} else
|
|
410
|
+
q(e, r, "selectOption"), m && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
|
|
411
|
+
} else ue && f !== "" && He === !1 && (u && e.preventDefault(), q(e, f, "createOption", "freeSolo"));
|
|
405
412
|
break;
|
|
406
413
|
case "Escape":
|
|
407
|
-
|
|
414
|
+
k ? (e.preventDefault(), e.stopPropagation(), re(e, "escape")) : B && (f !== "" || u && i.length > 0 || L) && (e.preventDefault(), e.stopPropagation(), ae(e));
|
|
408
415
|
break;
|
|
409
416
|
case "Backspace":
|
|
410
|
-
if (
|
|
411
|
-
const r =
|
|
412
|
-
|
|
413
|
-
option:
|
|
417
|
+
if (u && !_ && f === "" && i.length > 0) {
|
|
418
|
+
const r = V === -1 ? i.length - 1 : V, p = i.slice();
|
|
419
|
+
p.splice(r, 1), X(e, p, "removeOption", {
|
|
420
|
+
option: i[r]
|
|
414
421
|
});
|
|
415
422
|
}
|
|
423
|
+
!u && L && !_ && (Oe(null), j(-1));
|
|
416
424
|
break;
|
|
417
425
|
case "Delete":
|
|
418
|
-
if (
|
|
419
|
-
const r =
|
|
420
|
-
|
|
421
|
-
option:
|
|
426
|
+
if (u && !_ && f === "" && i.length > 0 && V !== -1) {
|
|
427
|
+
const r = V, p = i.slice();
|
|
428
|
+
p.splice(r, 1), X(e, p, "removeOption", {
|
|
429
|
+
option: i[r]
|
|
422
430
|
});
|
|
423
431
|
}
|
|
432
|
+
!u && L && !_ && (Oe(null), j(-1));
|
|
424
433
|
break;
|
|
425
434
|
}
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
},
|
|
429
|
-
if (a(
|
|
430
|
-
|
|
435
|
+
}, lt = (o) => {
|
|
436
|
+
Fe(!0), yt && !ce.current && R(o);
|
|
437
|
+
}, se = (o) => {
|
|
438
|
+
if (a(F)) {
|
|
439
|
+
h.current.focus();
|
|
431
440
|
return;
|
|
432
441
|
}
|
|
433
|
-
|
|
434
|
-
},
|
|
442
|
+
Fe(!1), xe.current = !0, ce.current = !1, D && P.current !== -1 && k ? q(o, b[P.current], "blur") : D && ue && f !== "" ? q(o, f, "blur", "freeSolo") : N && fe(o, i, "blur"), re(o, "blur");
|
|
443
|
+
}, Ce = (o) => {
|
|
435
444
|
const e = o.target.value;
|
|
436
|
-
f !== e && (
|
|
437
|
-
},
|
|
445
|
+
f !== e && (ne(e), ge(!1), Q && Q(o, e, "input")), e === "" ? !W && !u && X(o, null, "clear") : R(o);
|
|
446
|
+
}, $e = (o) => {
|
|
438
447
|
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
439
|
-
|
|
448
|
+
P.current !== e && J({
|
|
440
449
|
event: o,
|
|
441
450
|
index: e,
|
|
442
451
|
reason: "mouse"
|
|
443
452
|
});
|
|
444
|
-
},
|
|
445
|
-
|
|
453
|
+
}, pt = (o) => {
|
|
454
|
+
J({
|
|
446
455
|
event: o,
|
|
447
456
|
index: Number(o.currentTarget.getAttribute("data-option-index")),
|
|
448
457
|
reason: "touch"
|
|
449
|
-
}),
|
|
450
|
-
},
|
|
458
|
+
}), me.current = !0;
|
|
459
|
+
}, ut = (o) => {
|
|
451
460
|
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
452
|
-
|
|
453
|
-
},
|
|
454
|
-
const r =
|
|
455
|
-
r.splice(o, 1),
|
|
456
|
-
option:
|
|
461
|
+
q(o, b[e], "selectOption"), me.current = !1;
|
|
462
|
+
}, Be = (o) => (e) => {
|
|
463
|
+
const r = i.slice();
|
|
464
|
+
r.splice(o, 1), X(e, r, "removeOption", {
|
|
465
|
+
option: i[o]
|
|
457
466
|
});
|
|
458
|
-
},
|
|
459
|
-
X
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
},
|
|
463
|
-
|
|
467
|
+
}, vt = (o) => {
|
|
468
|
+
X(o, null, "removeOption", {
|
|
469
|
+
option: i
|
|
470
|
+
});
|
|
471
|
+
}, be = (o) => {
|
|
472
|
+
K ? re(o, "toggleInput") : R(o);
|
|
473
|
+
}, v = (o) => {
|
|
474
|
+
o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== M && o.preventDefault();
|
|
464
475
|
}, O = (o) => {
|
|
465
|
-
|
|
476
|
+
o.currentTarget.contains(o.target) && (h.current.focus(), ot && xe.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), xe.current = !1);
|
|
477
|
+
}, Z = (o) => {
|
|
478
|
+
!E && (f === "" || !K) && be(o);
|
|
466
479
|
};
|
|
467
|
-
let
|
|
468
|
-
|
|
469
|
-
let
|
|
470
|
-
if (
|
|
480
|
+
let Se = ue && f.length > 0;
|
|
481
|
+
Se = Se || (u ? i.length > 0 : i !== null);
|
|
482
|
+
let We = b;
|
|
483
|
+
if (oe) {
|
|
471
484
|
const o = /* @__PURE__ */ new Map();
|
|
472
485
|
let e = !1;
|
|
473
|
-
|
|
474
|
-
const
|
|
475
|
-
return r.length > 0 && r[r.length - 1].group ===
|
|
476
|
-
key:
|
|
477
|
-
index:
|
|
478
|
-
group:
|
|
479
|
-
options: [
|
|
486
|
+
We = b.reduce((r, p, s) => {
|
|
487
|
+
const g = oe(p);
|
|
488
|
+
return r.length > 0 && r[r.length - 1].group === g ? r[r.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (o.get(g) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${I} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(g, !0)), r.push({
|
|
489
|
+
key: s,
|
|
490
|
+
index: s,
|
|
491
|
+
group: g,
|
|
492
|
+
options: [p]
|
|
480
493
|
})), r;
|
|
481
494
|
}, []);
|
|
482
495
|
}
|
|
483
|
-
return
|
|
496
|
+
return E && de && se(), {
|
|
484
497
|
getRootProps: (o = {}) => ({
|
|
485
498
|
...o,
|
|
486
|
-
onKeyDown:
|
|
487
|
-
onMouseDown:
|
|
488
|
-
onClick:
|
|
499
|
+
onKeyDown: it(o),
|
|
500
|
+
onMouseDown: v,
|
|
501
|
+
onClick: O
|
|
489
502
|
}),
|
|
490
503
|
getInputLabelProps: () => ({
|
|
491
|
-
id: `${
|
|
492
|
-
htmlFor:
|
|
504
|
+
id: `${M}-label`,
|
|
505
|
+
htmlFor: M
|
|
493
506
|
}),
|
|
494
507
|
getInputProps: () => ({
|
|
495
|
-
id:
|
|
508
|
+
id: M,
|
|
496
509
|
value: f,
|
|
497
|
-
onBlur:
|
|
498
|
-
onFocus:
|
|
499
|
-
onChange:
|
|
500
|
-
onMouseDown:
|
|
510
|
+
onBlur: se,
|
|
511
|
+
onFocus: lt,
|
|
512
|
+
onChange: Ce,
|
|
513
|
+
onMouseDown: Z,
|
|
501
514
|
// if open then this is handled imperatively so don't let react override
|
|
502
515
|
// only have an opinion about this when closed
|
|
503
|
-
"aria-activedescendant":
|
|
504
|
-
"aria-autocomplete":
|
|
505
|
-
"aria-controls":
|
|
506
|
-
"aria-expanded":
|
|
516
|
+
"aria-activedescendant": k ? "" : null,
|
|
517
|
+
"aria-autocomplete": m ? "both" : "list",
|
|
518
|
+
"aria-controls": ze ? `${M}-listbox` : void 0,
|
|
519
|
+
"aria-expanded": ze,
|
|
507
520
|
// Disable browser's suggestion that might overlap with the popup.
|
|
508
521
|
// Handle autocomplete but not autofill.
|
|
509
522
|
autoComplete: "off",
|
|
510
|
-
ref:
|
|
523
|
+
ref: h,
|
|
511
524
|
autoCapitalize: "none",
|
|
512
525
|
spellCheck: "false",
|
|
513
526
|
role: "combobox",
|
|
514
|
-
disabled:
|
|
527
|
+
disabled: E
|
|
515
528
|
}),
|
|
516
529
|
getClearProps: () => ({
|
|
517
530
|
tabIndex: -1,
|
|
518
531
|
type: "button",
|
|
519
|
-
onClick:
|
|
532
|
+
onClick: ae
|
|
533
|
+
}),
|
|
534
|
+
getItemProps: ({
|
|
535
|
+
index: o = 0
|
|
536
|
+
} = {}) => ({
|
|
537
|
+
...u && {
|
|
538
|
+
key: o
|
|
539
|
+
},
|
|
540
|
+
...L ? {
|
|
541
|
+
"data-item-index": o
|
|
542
|
+
} : {
|
|
543
|
+
"data-tag-index": o
|
|
544
|
+
},
|
|
545
|
+
tabIndex: -1,
|
|
546
|
+
...!_ && {
|
|
547
|
+
onDelete: u ? Be(o) : vt
|
|
548
|
+
}
|
|
520
549
|
}),
|
|
521
550
|
getPopupIndicatorProps: () => ({
|
|
522
551
|
tabIndex: -1,
|
|
523
552
|
type: "button",
|
|
524
|
-
onClick:
|
|
553
|
+
onClick: be
|
|
525
554
|
}),
|
|
555
|
+
// deprecated
|
|
526
556
|
getTagProps: ({
|
|
527
557
|
index: o
|
|
528
558
|
}) => ({
|
|
529
559
|
key: o,
|
|
530
560
|
"data-tag-index": o,
|
|
531
561
|
tabIndex: -1,
|
|
532
|
-
...!
|
|
533
|
-
onDelete:
|
|
562
|
+
...!_ && {
|
|
563
|
+
onDelete: Be(o)
|
|
534
564
|
}
|
|
535
565
|
}),
|
|
536
566
|
getListboxProps: () => ({
|
|
537
567
|
role: "listbox",
|
|
538
|
-
id: `${
|
|
539
|
-
"aria-labelledby": `${
|
|
540
|
-
ref:
|
|
568
|
+
id: `${M}-listbox`,
|
|
569
|
+
"aria-labelledby": `${M}-label`,
|
|
570
|
+
ref: st,
|
|
541
571
|
onMouseDown: (o) => {
|
|
542
572
|
o.preventDefault();
|
|
543
573
|
}
|
|
@@ -546,57 +576,59 @@ function Xt(n) {
|
|
|
546
576
|
index: o,
|
|
547
577
|
option: e
|
|
548
578
|
}) => {
|
|
549
|
-
const r = (
|
|
579
|
+
const r = (u ? i : [i]).some((s) => s != null && Y(e, s)), p = G ? G(e) : !1;
|
|
550
580
|
return {
|
|
551
|
-
key: (
|
|
581
|
+
key: (Re == null ? void 0 : Re(e)) ?? $(e),
|
|
552
582
|
tabIndex: -1,
|
|
553
583
|
role: "option",
|
|
554
|
-
id: `${
|
|
555
|
-
onMouseMove:
|
|
556
|
-
onClick:
|
|
557
|
-
onTouchStart:
|
|
584
|
+
id: `${M}-option-${o}`,
|
|
585
|
+
onMouseMove: $e,
|
|
586
|
+
onClick: ut,
|
|
587
|
+
onTouchStart: pt,
|
|
558
588
|
"data-option-index": o,
|
|
559
|
-
"aria-disabled":
|
|
589
|
+
"aria-disabled": p,
|
|
560
590
|
"aria-selected": r
|
|
561
591
|
};
|
|
562
592
|
},
|
|
563
|
-
id:
|
|
593
|
+
id: M,
|
|
564
594
|
inputValue: f,
|
|
565
|
-
value:
|
|
566
|
-
dirty:
|
|
567
|
-
expanded:
|
|
568
|
-
popupOpen:
|
|
569
|
-
focused:
|
|
570
|
-
anchorEl:
|
|
595
|
+
value: i,
|
|
596
|
+
dirty: Se,
|
|
597
|
+
expanded: k && Ie,
|
|
598
|
+
popupOpen: k,
|
|
599
|
+
focused: de || V !== -1,
|
|
600
|
+
anchorEl: Ie,
|
|
571
601
|
setAnchorEl: It,
|
|
572
|
-
|
|
573
|
-
|
|
602
|
+
focusedItem: V,
|
|
603
|
+
// deprecated
|
|
604
|
+
focusedTag: V,
|
|
605
|
+
groupedOptions: We
|
|
574
606
|
};
|
|
575
607
|
}
|
|
576
|
-
function
|
|
577
|
-
return
|
|
608
|
+
function Qt(n) {
|
|
609
|
+
return Rt("MuiListSubheader", n);
|
|
578
610
|
}
|
|
579
|
-
const
|
|
611
|
+
const Eo = kt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
|
|
580
612
|
const {
|
|
581
613
|
classes: a,
|
|
582
|
-
color:
|
|
583
|
-
disableGutters:
|
|
584
|
-
inset:
|
|
585
|
-
disableSticky:
|
|
586
|
-
} = n,
|
|
587
|
-
root: ["root",
|
|
614
|
+
color: d,
|
|
615
|
+
disableGutters: m,
|
|
616
|
+
inset: S,
|
|
617
|
+
disableSticky: D
|
|
618
|
+
} = n, T = {
|
|
619
|
+
root: ["root", d !== "default" && `color${Ye(d)}`, !m && "gutters", S && "inset", !D && "sticky"]
|
|
588
620
|
};
|
|
589
|
-
return
|
|
590
|
-
},
|
|
621
|
+
return Nt(T, Qt, a);
|
|
622
|
+
}, eo = H("li", {
|
|
591
623
|
name: "MuiListSubheader",
|
|
592
624
|
slot: "Root",
|
|
593
625
|
overridesResolver: (n, a) => {
|
|
594
626
|
const {
|
|
595
|
-
ownerState:
|
|
627
|
+
ownerState: d
|
|
596
628
|
} = n;
|
|
597
|
-
return [a.root,
|
|
629
|
+
return [a.root, d.color !== "default" && a[`color${Ye(d.color)}`], !d.disableGutters && a.gutters, d.inset && a.inset, !d.disableSticky && a.sticky];
|
|
598
630
|
}
|
|
599
|
-
})(
|
|
631
|
+
})(le(({
|
|
600
632
|
theme: n
|
|
601
633
|
}) => ({
|
|
602
634
|
boxSizing: "border-box",
|
|
@@ -646,36 +678,36 @@ const Do = wt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
|
|
|
646
678
|
backgroundColor: (n.vars || n).palette.background.paper
|
|
647
679
|
}
|
|
648
680
|
}]
|
|
649
|
-
}))),
|
|
650
|
-
const
|
|
681
|
+
}))), Xe = /* @__PURE__ */ y.forwardRef(function(a, d) {
|
|
682
|
+
const m = Dt({
|
|
651
683
|
props: a,
|
|
652
684
|
name: "MuiListSubheader"
|
|
653
685
|
}), {
|
|
654
|
-
className:
|
|
655
|
-
color:
|
|
656
|
-
component:
|
|
657
|
-
disableGutters:
|
|
658
|
-
disableSticky:
|
|
686
|
+
className: S,
|
|
687
|
+
color: D = "default",
|
|
688
|
+
component: T = "li",
|
|
689
|
+
disableGutters: N = !1,
|
|
690
|
+
disableSticky: B = !1,
|
|
659
691
|
inset: I = !1,
|
|
660
|
-
...
|
|
661
|
-
} =
|
|
662
|
-
...
|
|
663
|
-
color:
|
|
664
|
-
component:
|
|
665
|
-
disableGutters:
|
|
666
|
-
disableSticky:
|
|
692
|
+
...C
|
|
693
|
+
} = m, W = {
|
|
694
|
+
...m,
|
|
695
|
+
color: D,
|
|
696
|
+
component: T,
|
|
697
|
+
disableGutters: N,
|
|
698
|
+
disableSticky: B,
|
|
667
699
|
inset: I
|
|
668
|
-
},
|
|
669
|
-
return /* @__PURE__ */
|
|
670
|
-
as:
|
|
671
|
-
className:
|
|
672
|
-
ref:
|
|
673
|
-
ownerState:
|
|
674
|
-
...
|
|
700
|
+
}, pe = Zt(W);
|
|
701
|
+
return /* @__PURE__ */ w(eo, {
|
|
702
|
+
as: T,
|
|
703
|
+
className: Je(pe.root, S),
|
|
704
|
+
ref: d,
|
|
705
|
+
ownerState: W,
|
|
706
|
+
...C
|
|
675
707
|
});
|
|
676
708
|
});
|
|
677
|
-
|
|
678
|
-
process.env.NODE_ENV !== "production" && (
|
|
709
|
+
Xe && (Xe.muiSkipListHighlight = !0);
|
|
710
|
+
process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
679
711
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
680
712
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
681
713
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -722,32 +754,32 @@ process.env.NODE_ENV !== "production" && (_e.propTypes = {
|
|
|
722
754
|
*/
|
|
723
755
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
724
756
|
});
|
|
725
|
-
function
|
|
726
|
-
return
|
|
757
|
+
function to(n) {
|
|
758
|
+
return Rt("MuiAutocomplete", n);
|
|
727
759
|
}
|
|
728
|
-
const l =
|
|
729
|
-
var
|
|
730
|
-
const
|
|
760
|
+
const l = kt("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
|
|
761
|
+
var wt, Lt;
|
|
762
|
+
const oo = (n) => {
|
|
731
763
|
const {
|
|
732
764
|
classes: a,
|
|
733
|
-
disablePortal:
|
|
734
|
-
expanded:
|
|
735
|
-
focused:
|
|
736
|
-
fullWidth:
|
|
737
|
-
hasClearIcon:
|
|
738
|
-
hasPopupIcon:
|
|
739
|
-
inputFocused:
|
|
765
|
+
disablePortal: d,
|
|
766
|
+
expanded: m,
|
|
767
|
+
focused: S,
|
|
768
|
+
fullWidth: D,
|
|
769
|
+
hasClearIcon: T,
|
|
770
|
+
hasPopupIcon: N,
|
|
771
|
+
inputFocused: B,
|
|
740
772
|
popupOpen: I,
|
|
741
|
-
size:
|
|
742
|
-
} = n,
|
|
743
|
-
root: ["root",
|
|
773
|
+
size: C
|
|
774
|
+
} = n, W = {
|
|
775
|
+
root: ["root", m && "expanded", S && "focused", D && "fullWidth", T && "hasClearIcon", N && "hasPopupIcon"],
|
|
744
776
|
inputRoot: ["inputRoot"],
|
|
745
|
-
input: ["input",
|
|
746
|
-
tag: ["tag", `tagSize${
|
|
777
|
+
input: ["input", B && "inputFocused"],
|
|
778
|
+
tag: ["tag", `tagSize${Ye(C)}`],
|
|
747
779
|
endAdornment: ["endAdornment"],
|
|
748
780
|
clearIndicator: ["clearIndicator"],
|
|
749
781
|
popupIndicator: ["popupIndicator", I && "popupIndicatorOpen"],
|
|
750
|
-
popper: ["popper",
|
|
782
|
+
popper: ["popper", d && "popperDisablePortal"],
|
|
751
783
|
paper: ["paper"],
|
|
752
784
|
listbox: ["listbox"],
|
|
753
785
|
loading: ["loading"],
|
|
@@ -756,31 +788,31 @@ const to = (n) => {
|
|
|
756
788
|
groupLabel: ["groupLabel"],
|
|
757
789
|
groupUl: ["groupUl"]
|
|
758
790
|
};
|
|
759
|
-
return
|
|
760
|
-
},
|
|
791
|
+
return Nt(W, to, a);
|
|
792
|
+
}, no = H("div", {
|
|
761
793
|
name: "MuiAutocomplete",
|
|
762
794
|
slot: "Root",
|
|
763
795
|
overridesResolver: (n, a) => {
|
|
764
796
|
const {
|
|
765
|
-
ownerState:
|
|
797
|
+
ownerState: d
|
|
766
798
|
} = n, {
|
|
767
|
-
fullWidth:
|
|
768
|
-
hasClearIcon:
|
|
769
|
-
hasPopupIcon:
|
|
770
|
-
inputFocused:
|
|
771
|
-
size:
|
|
772
|
-
} =
|
|
799
|
+
fullWidth: m,
|
|
800
|
+
hasClearIcon: S,
|
|
801
|
+
hasPopupIcon: D,
|
|
802
|
+
inputFocused: T,
|
|
803
|
+
size: N
|
|
804
|
+
} = d;
|
|
773
805
|
return [{
|
|
774
806
|
[`& .${l.tag}`]: a.tag
|
|
775
807
|
}, {
|
|
776
|
-
[`& .${l.tag}`]: a[`tagSize${
|
|
808
|
+
[`& .${l.tag}`]: a[`tagSize${Ye(N)}`]
|
|
777
809
|
}, {
|
|
778
810
|
[`& .${l.inputRoot}`]: a.inputRoot
|
|
779
811
|
}, {
|
|
780
812
|
[`& .${l.input}`]: a.input
|
|
781
813
|
}, {
|
|
782
|
-
[`& .${l.input}`]:
|
|
783
|
-
}, a.root,
|
|
814
|
+
[`& .${l.input}`]: T && a.inputFocused
|
|
815
|
+
}, a.root, m && a.fullWidth, D && a.hasPopupIcon, S && a.hasClearIcon];
|
|
784
816
|
}
|
|
785
817
|
})({
|
|
786
818
|
[`&.${l.focused} .${l.clearIndicator}`]: {
|
|
@@ -814,12 +846,12 @@ const to = (n) => {
|
|
|
814
846
|
padding: "4px 4px 4px 0px"
|
|
815
847
|
}
|
|
816
848
|
},
|
|
817
|
-
[`& .${dt.root}.${
|
|
849
|
+
[`& .${dt.root}.${ie.sizeSmall}`]: {
|
|
818
850
|
[`& .${dt.input}`]: {
|
|
819
851
|
padding: "2px 4px 3px 0"
|
|
820
852
|
}
|
|
821
853
|
},
|
|
822
|
-
[`& .${
|
|
854
|
+
[`& .${$t.root}`]: {
|
|
823
855
|
padding: 9,
|
|
824
856
|
[`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
|
|
825
857
|
paddingRight: 39
|
|
@@ -834,7 +866,7 @@ const to = (n) => {
|
|
|
834
866
|
right: 9
|
|
835
867
|
}
|
|
836
868
|
},
|
|
837
|
-
[`& .${
|
|
869
|
+
[`& .${$t.root}.${ie.sizeSmall}`]: {
|
|
838
870
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
839
871
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
840
872
|
paddingTop: 6,
|
|
@@ -844,7 +876,7 @@ const to = (n) => {
|
|
|
844
876
|
padding: "2.5px 4px 2.5px 8px"
|
|
845
877
|
}
|
|
846
878
|
},
|
|
847
|
-
[`& .${
|
|
879
|
+
[`& .${he.root}`]: {
|
|
848
880
|
paddingTop: 19,
|
|
849
881
|
paddingLeft: 8,
|
|
850
882
|
[`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
|
|
@@ -853,23 +885,23 @@ const to = (n) => {
|
|
|
853
885
|
[`.${l.hasPopupIcon}.${l.hasClearIcon}&`]: {
|
|
854
886
|
paddingRight: 65
|
|
855
887
|
},
|
|
856
|
-
[`& .${
|
|
888
|
+
[`& .${he.input}`]: {
|
|
857
889
|
padding: "7px 4px"
|
|
858
890
|
},
|
|
859
891
|
[`& .${l.endAdornment}`]: {
|
|
860
892
|
right: 9
|
|
861
893
|
}
|
|
862
894
|
},
|
|
863
|
-
[`& .${
|
|
895
|
+
[`& .${he.root}.${ie.sizeSmall}`]: {
|
|
864
896
|
paddingBottom: 1,
|
|
865
|
-
[`& .${
|
|
897
|
+
[`& .${he.input}`]: {
|
|
866
898
|
padding: "2.5px 4px"
|
|
867
899
|
}
|
|
868
900
|
},
|
|
869
|
-
[`& .${
|
|
901
|
+
[`& .${ie.hiddenLabel}`]: {
|
|
870
902
|
paddingTop: 8
|
|
871
903
|
},
|
|
872
|
-
[`& .${
|
|
904
|
+
[`& .${he.root}.${ie.hiddenLabel}`]: {
|
|
873
905
|
paddingTop: 0,
|
|
874
906
|
paddingBottom: 0,
|
|
875
907
|
[`& .${l.input}`]: {
|
|
@@ -877,7 +909,7 @@ const to = (n) => {
|
|
|
877
909
|
paddingBottom: 17
|
|
878
910
|
}
|
|
879
911
|
},
|
|
880
|
-
[`& .${
|
|
912
|
+
[`& .${he.root}.${ie.hiddenLabel}.${ie.sizeSmall}`]: {
|
|
881
913
|
[`& .${l.input}`]: {
|
|
882
914
|
paddingTop: 8,
|
|
883
915
|
paddingBottom: 9
|
|
@@ -924,7 +956,7 @@ const to = (n) => {
|
|
|
924
956
|
}
|
|
925
957
|
}
|
|
926
958
|
}]
|
|
927
|
-
}),
|
|
959
|
+
}), ro = H("div", {
|
|
928
960
|
name: "MuiAutocomplete",
|
|
929
961
|
slot: "EndAdornment",
|
|
930
962
|
overridesResolver: (n, a) => a.endAdornment
|
|
@@ -934,7 +966,7 @@ const to = (n) => {
|
|
|
934
966
|
right: 0,
|
|
935
967
|
top: "50%",
|
|
936
968
|
transform: "translate(0, -50%)"
|
|
937
|
-
}),
|
|
969
|
+
}), ao = H(Vt, {
|
|
938
970
|
name: "MuiAutocomplete",
|
|
939
971
|
slot: "ClearIndicator",
|
|
940
972
|
overridesResolver: (n, a) => a.clearIndicator
|
|
@@ -942,14 +974,14 @@ const to = (n) => {
|
|
|
942
974
|
marginRight: -2,
|
|
943
975
|
padding: 4,
|
|
944
976
|
visibility: "hidden"
|
|
945
|
-
}),
|
|
977
|
+
}), so = H(Vt, {
|
|
946
978
|
name: "MuiAutocomplete",
|
|
947
979
|
slot: "PopupIndicator",
|
|
948
980
|
overridesResolver: (n, a) => {
|
|
949
981
|
const {
|
|
950
|
-
ownerState:
|
|
982
|
+
ownerState: d
|
|
951
983
|
} = n;
|
|
952
|
-
return [a.popupIndicator,
|
|
984
|
+
return [a.popupIndicator, d.popupOpen && a.popupIndicatorOpen];
|
|
953
985
|
}
|
|
954
986
|
})({
|
|
955
987
|
padding: 2,
|
|
@@ -962,18 +994,18 @@ const to = (n) => {
|
|
|
962
994
|
transform: "rotate(180deg)"
|
|
963
995
|
}
|
|
964
996
|
}]
|
|
965
|
-
}),
|
|
997
|
+
}), io = H(Mt, {
|
|
966
998
|
name: "MuiAutocomplete",
|
|
967
999
|
slot: "Popper",
|
|
968
1000
|
overridesResolver: (n, a) => {
|
|
969
1001
|
const {
|
|
970
|
-
ownerState:
|
|
1002
|
+
ownerState: d
|
|
971
1003
|
} = n;
|
|
972
1004
|
return [{
|
|
973
1005
|
[`& .${l.option}`]: a.option
|
|
974
|
-
}, a.popper,
|
|
1006
|
+
}, a.popper, d.disablePortal && a.popperDisablePortal];
|
|
975
1007
|
}
|
|
976
|
-
})(
|
|
1008
|
+
})(le(({
|
|
977
1009
|
theme: n
|
|
978
1010
|
}) => ({
|
|
979
1011
|
zIndex: (n.vars || n).zIndex.modal,
|
|
@@ -985,38 +1017,38 @@ const to = (n) => {
|
|
|
985
1017
|
position: "absolute"
|
|
986
1018
|
}
|
|
987
1019
|
}]
|
|
988
|
-
}))),
|
|
1020
|
+
}))), lo = H(Et, {
|
|
989
1021
|
name: "MuiAutocomplete",
|
|
990
1022
|
slot: "Paper",
|
|
991
1023
|
overridesResolver: (n, a) => a.paper
|
|
992
|
-
})(
|
|
1024
|
+
})(le(({
|
|
993
1025
|
theme: n
|
|
994
1026
|
}) => ({
|
|
995
1027
|
...n.typography.body1,
|
|
996
1028
|
overflow: "auto"
|
|
997
|
-
}))),
|
|
1029
|
+
}))), po = H("div", {
|
|
998
1030
|
name: "MuiAutocomplete",
|
|
999
1031
|
slot: "Loading",
|
|
1000
1032
|
overridesResolver: (n, a) => a.loading
|
|
1001
|
-
})(
|
|
1033
|
+
})(le(({
|
|
1002
1034
|
theme: n
|
|
1003
1035
|
}) => ({
|
|
1004
1036
|
color: (n.vars || n).palette.text.secondary,
|
|
1005
1037
|
padding: "14px 16px"
|
|
1006
|
-
}))),
|
|
1038
|
+
}))), uo = H("div", {
|
|
1007
1039
|
name: "MuiAutocomplete",
|
|
1008
1040
|
slot: "NoOptions",
|
|
1009
1041
|
overridesResolver: (n, a) => a.noOptions
|
|
1010
|
-
})(
|
|
1042
|
+
})(le(({
|
|
1011
1043
|
theme: n
|
|
1012
1044
|
}) => ({
|
|
1013
1045
|
color: (n.vars || n).palette.text.secondary,
|
|
1014
1046
|
padding: "14px 16px"
|
|
1015
|
-
}))),
|
|
1047
|
+
}))), co = H("ul", {
|
|
1016
1048
|
name: "MuiAutocomplete",
|
|
1017
1049
|
slot: "Listbox",
|
|
1018
1050
|
overridesResolver: (n, a) => a.listbox
|
|
1019
|
-
})(
|
|
1051
|
+
})(le(({
|
|
1020
1052
|
theme: n
|
|
1021
1053
|
}) => ({
|
|
1022
1054
|
listStyle: "none",
|
|
@@ -1070,16 +1102,16 @@ const to = (n) => {
|
|
|
1070
1102
|
}
|
|
1071
1103
|
}
|
|
1072
1104
|
}
|
|
1073
|
-
}))),
|
|
1105
|
+
}))), fo = H(Xe, {
|
|
1074
1106
|
name: "MuiAutocomplete",
|
|
1075
1107
|
slot: "GroupLabel",
|
|
1076
1108
|
overridesResolver: (n, a) => a.groupLabel
|
|
1077
|
-
})(
|
|
1109
|
+
})(le(({
|
|
1078
1110
|
theme: n
|
|
1079
1111
|
}) => ({
|
|
1080
1112
|
backgroundColor: (n.vars || n).palette.background.paper,
|
|
1081
1113
|
top: -8
|
|
1082
|
-
}))),
|
|
1114
|
+
}))), go = H("ul", {
|
|
1083
1115
|
name: "MuiAutocomplete",
|
|
1084
1116
|
slot: "GroupUl",
|
|
1085
1117
|
overridesResolver: (n, a) => a.groupUl
|
|
@@ -1088,302 +1120,300 @@ const to = (n) => {
|
|
|
1088
1120
|
[`& .${l.option}`]: {
|
|
1089
1121
|
paddingLeft: 24
|
|
1090
1122
|
}
|
|
1091
|
-
}),
|
|
1092
|
-
const
|
|
1123
|
+
}), mo = /* @__PURE__ */ y.forwardRef(function(a, d) {
|
|
1124
|
+
const m = Dt({
|
|
1093
1125
|
props: a,
|
|
1094
1126
|
name: "MuiAutocomplete"
|
|
1095
1127
|
}), {
|
|
1096
|
-
autoComplete:
|
|
1097
|
-
autoHighlight:
|
|
1098
|
-
autoSelect:
|
|
1099
|
-
blurOnSelect:
|
|
1100
|
-
ChipProps:
|
|
1128
|
+
autoComplete: S = !1,
|
|
1129
|
+
autoHighlight: D = !1,
|
|
1130
|
+
autoSelect: T = !1,
|
|
1131
|
+
blurOnSelect: N = !1,
|
|
1132
|
+
ChipProps: B,
|
|
1101
1133
|
className: I,
|
|
1102
|
-
clearIcon:
|
|
1134
|
+
clearIcon: C = wt || (wt = /* @__PURE__ */ w(zt, {
|
|
1103
1135
|
fontSize: "small"
|
|
1104
1136
|
})),
|
|
1105
|
-
clearOnBlur:
|
|
1106
|
-
clearOnEscape:
|
|
1107
|
-
clearText:
|
|
1108
|
-
closeText:
|
|
1109
|
-
componentsProps:
|
|
1110
|
-
defaultValue:
|
|
1111
|
-
disableClearable:
|
|
1112
|
-
disableCloseOnSelect:
|
|
1113
|
-
disabled:
|
|
1114
|
-
disabledItemsFocusable:
|
|
1115
|
-
disableListWrap:
|
|
1116
|
-
disablePortal:
|
|
1117
|
-
filterOptions:
|
|
1118
|
-
filterSelectedOptions:
|
|
1119
|
-
forcePopupIcon:
|
|
1120
|
-
freeSolo:
|
|
1121
|
-
fullWidth:
|
|
1122
|
-
getLimitTagsText:
|
|
1123
|
-
getOptionDisabled:
|
|
1124
|
-
getOptionKey:
|
|
1125
|
-
getOptionLabel:
|
|
1126
|
-
isOptionEqualToValue:
|
|
1127
|
-
groupBy:
|
|
1128
|
-
handleHomeEndKeys: ht = !
|
|
1137
|
+
clearOnBlur: W = !m.freeSolo,
|
|
1138
|
+
clearOnEscape: pe = !1,
|
|
1139
|
+
clearText: E = "Clear",
|
|
1140
|
+
closeText: we = "Close",
|
|
1141
|
+
componentsProps: Le,
|
|
1142
|
+
defaultValue: mt = m.multiple ? [] : null,
|
|
1143
|
+
disableClearable: ke = !1,
|
|
1144
|
+
disableCloseOnSelect: ue = !1,
|
|
1145
|
+
disabled: G = !1,
|
|
1146
|
+
disabledItemsFocusable: Re = !1,
|
|
1147
|
+
disableListWrap: Qe = !1,
|
|
1148
|
+
disablePortal: oe = !1,
|
|
1149
|
+
filterOptions: Ze,
|
|
1150
|
+
filterSelectedOptions: bt = !1,
|
|
1151
|
+
forcePopupIcon: ye = "auto",
|
|
1152
|
+
freeSolo: De = !1,
|
|
1153
|
+
fullWidth: Y = !1,
|
|
1154
|
+
getLimitTagsText: u = (c) => `+${c}`,
|
|
1155
|
+
getOptionDisabled: et,
|
|
1156
|
+
getOptionKey: tt,
|
|
1157
|
+
getOptionLabel: Ne,
|
|
1158
|
+
isOptionEqualToValue: Q,
|
|
1159
|
+
groupBy: Ee,
|
|
1160
|
+
handleHomeEndKeys: ht = !m.freeSolo,
|
|
1129
1161
|
id: yt,
|
|
1130
1162
|
includeInputInList: xt = !1,
|
|
1131
|
-
inputValue:
|
|
1132
|
-
limitTags:
|
|
1133
|
-
ListboxComponent:
|
|
1134
|
-
ListboxProps:
|
|
1135
|
-
loading:
|
|
1136
|
-
loadingText:
|
|
1137
|
-
multiple:
|
|
1138
|
-
noOptionsText:
|
|
1139
|
-
onChange:
|
|
1140
|
-
onClose:
|
|
1141
|
-
onHighlightChange:
|
|
1142
|
-
onInputChange:
|
|
1143
|
-
onOpen:
|
|
1144
|
-
open:
|
|
1145
|
-
openOnFocus:
|
|
1146
|
-
openText:
|
|
1147
|
-
options:
|
|
1148
|
-
PaperComponent:
|
|
1149
|
-
PopperComponent:
|
|
1150
|
-
popupIcon:
|
|
1151
|
-
readOnly:
|
|
1152
|
-
renderGroup:
|
|
1153
|
-
renderInput:
|
|
1154
|
-
renderOption:
|
|
1155
|
-
renderTags:
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1163
|
+
inputValue: _,
|
|
1164
|
+
limitTags: L = -1,
|
|
1165
|
+
ListboxComponent: ot,
|
|
1166
|
+
ListboxProps: Me,
|
|
1167
|
+
loading: M = !1,
|
|
1168
|
+
loadingText: $ = "Loading…",
|
|
1169
|
+
multiple: ce = !1,
|
|
1170
|
+
noOptionsText: xe = "No options",
|
|
1171
|
+
onChange: h,
|
|
1172
|
+
onClose: F,
|
|
1173
|
+
onHighlightChange: Ie,
|
|
1174
|
+
onInputChange: It,
|
|
1175
|
+
onOpen: V,
|
|
1176
|
+
open: Ve,
|
|
1177
|
+
openOnFocus: nt = !1,
|
|
1178
|
+
openText: P = "Open",
|
|
1179
|
+
options: Ot,
|
|
1180
|
+
PaperComponent: i,
|
|
1181
|
+
PopperComponent: Oe,
|
|
1182
|
+
popupIcon: f = Lt || (Lt = /* @__PURE__ */ w(Ht, {})),
|
|
1183
|
+
readOnly: ne = !1,
|
|
1184
|
+
renderGroup: de,
|
|
1185
|
+
renderInput: Fe,
|
|
1186
|
+
renderOption: fe,
|
|
1187
|
+
renderTags: K,
|
|
1188
|
+
renderValue: Pe,
|
|
1189
|
+
selectOnFocus: Pt = !m.freeSolo,
|
|
1190
|
+
size: ge = "medium",
|
|
1191
|
+
slots: He = {},
|
|
1192
|
+
slotProps: k = {},
|
|
1193
|
+
value: b,
|
|
1194
|
+
...z
|
|
1195
|
+
} = m, {
|
|
1196
|
+
getRootProps: ze,
|
|
1197
|
+
getInputProps: j,
|
|
1198
|
+
getInputLabelProps: rt,
|
|
1199
|
+
getPopupIndicatorProps: J,
|
|
1200
|
+
getClearProps: U,
|
|
1201
|
+
getItemProps: at,
|
|
1202
|
+
getListboxProps: ve,
|
|
1203
|
+
getOptionProps: st,
|
|
1204
|
+
value: R,
|
|
1205
|
+
dirty: re,
|
|
1206
|
+
expanded: X,
|
|
1207
|
+
id: me,
|
|
1208
|
+
popupOpen: q,
|
|
1209
|
+
focused: je,
|
|
1210
|
+
focusedItem: Ue,
|
|
1211
|
+
anchorEl: ae,
|
|
1212
|
+
setAnchorEl: it,
|
|
1213
|
+
inputValue: lt,
|
|
1214
|
+
groupedOptions: se
|
|
1215
|
+
} = Yt({
|
|
1216
|
+
...m,
|
|
1184
1217
|
componentName: "Autocomplete"
|
|
1185
|
-
}),
|
|
1186
|
-
onMouseDown:
|
|
1187
|
-
} =
|
|
1188
|
-
ref:
|
|
1189
|
-
...
|
|
1190
|
-
} =
|
|
1191
|
-
...
|
|
1192
|
-
disablePortal:
|
|
1193
|
-
expanded:
|
|
1194
|
-
focused:
|
|
1195
|
-
fullWidth:
|
|
1196
|
-
getOptionLabel:
|
|
1197
|
-
hasClearIcon:
|
|
1198
|
-
hasPopupIcon:
|
|
1199
|
-
inputFocused:
|
|
1200
|
-
popupOpen:
|
|
1201
|
-
size:
|
|
1202
|
-
}, O =
|
|
1218
|
+
}), Ce = !ke && !G && re && !ne, $e = (!De || ye === !0) && ye !== !1, {
|
|
1219
|
+
onMouseDown: pt
|
|
1220
|
+
} = j(), {
|
|
1221
|
+
ref: ut,
|
|
1222
|
+
...Be
|
|
1223
|
+
} = ve(), be = Ne || ((c) => c.label ?? c), v = {
|
|
1224
|
+
...m,
|
|
1225
|
+
disablePortal: oe,
|
|
1226
|
+
expanded: X,
|
|
1227
|
+
focused: je,
|
|
1228
|
+
fullWidth: Y,
|
|
1229
|
+
getOptionLabel: be,
|
|
1230
|
+
hasClearIcon: Ce,
|
|
1231
|
+
hasPopupIcon: $e,
|
|
1232
|
+
inputFocused: Ue === -1,
|
|
1233
|
+
popupOpen: q,
|
|
1234
|
+
size: ge
|
|
1235
|
+
}, O = oo(v), Z = {
|
|
1203
1236
|
slots: {
|
|
1204
|
-
paper:
|
|
1205
|
-
popper:
|
|
1206
|
-
...
|
|
1237
|
+
paper: i,
|
|
1238
|
+
popper: Oe,
|
|
1239
|
+
...He
|
|
1207
1240
|
},
|
|
1208
1241
|
slotProps: {
|
|
1209
|
-
chip:
|
|
1210
|
-
listbox:
|
|
1211
|
-
...
|
|
1212
|
-
...
|
|
1242
|
+
chip: B,
|
|
1243
|
+
listbox: Me,
|
|
1244
|
+
...Le,
|
|
1245
|
+
...k
|
|
1213
1246
|
}
|
|
1214
|
-
}, [
|
|
1215
|
-
elementType:
|
|
1216
|
-
externalForwardedProps:
|
|
1217
|
-
ownerState:
|
|
1247
|
+
}, [Se, We] = ft("listbox", {
|
|
1248
|
+
elementType: co,
|
|
1249
|
+
externalForwardedProps: Z,
|
|
1250
|
+
ownerState: v,
|
|
1218
1251
|
className: O.listbox,
|
|
1219
|
-
additionalProps:
|
|
1220
|
-
ref:
|
|
1221
|
-
}), [
|
|
1222
|
-
elementType:
|
|
1223
|
-
externalForwardedProps:
|
|
1224
|
-
ownerState:
|
|
1252
|
+
additionalProps: Be,
|
|
1253
|
+
ref: ut
|
|
1254
|
+
}), [o, e] = ft("paper", {
|
|
1255
|
+
elementType: Et,
|
|
1256
|
+
externalForwardedProps: Z,
|
|
1257
|
+
ownerState: v,
|
|
1225
1258
|
className: O.paper
|
|
1226
|
-
}), [
|
|
1227
|
-
elementType:
|
|
1228
|
-
externalForwardedProps:
|
|
1229
|
-
ownerState:
|
|
1259
|
+
}), [r, p] = ft("popper", {
|
|
1260
|
+
elementType: Mt,
|
|
1261
|
+
externalForwardedProps: Z,
|
|
1262
|
+
ownerState: v,
|
|
1230
1263
|
className: O.popper,
|
|
1231
1264
|
additionalProps: {
|
|
1232
|
-
disablePortal:
|
|
1265
|
+
disablePortal: oe,
|
|
1233
1266
|
style: {
|
|
1234
|
-
width:
|
|
1267
|
+
width: ae ? ae.clientWidth : null
|
|
1235
1268
|
},
|
|
1236
1269
|
role: "presentation",
|
|
1237
|
-
anchorEl:
|
|
1238
|
-
open:
|
|
1270
|
+
anchorEl: ae,
|
|
1271
|
+
open: q
|
|
1239
1272
|
}
|
|
1240
1273
|
});
|
|
1241
|
-
let
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
index: Q
|
|
1254
|
-
});
|
|
1255
|
-
return /* @__PURE__ */ A(Bt, {
|
|
1256
|
-
label: Ce(q),
|
|
1257
|
-
size: de,
|
|
1258
|
-
...Vt,
|
|
1259
|
-
...G.slotProps.chip
|
|
1260
|
-
}, Te);
|
|
1274
|
+
let s;
|
|
1275
|
+
const g = (c) => ({
|
|
1276
|
+
className: O.tag,
|
|
1277
|
+
disabled: G,
|
|
1278
|
+
...at(c)
|
|
1279
|
+
});
|
|
1280
|
+
if (K && ce && R.length > 0 ? s = K(R, g, v) : Pe && R ? s = Pe(R, g, v) : ce && R.length > 0 && (s = R.map((c, ee) => {
|
|
1281
|
+
const {
|
|
1282
|
+
key: te,
|
|
1283
|
+
...Ae
|
|
1284
|
+
} = g({
|
|
1285
|
+
index: ee
|
|
1261
1286
|
});
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1287
|
+
return /* @__PURE__ */ w(Wt, {
|
|
1288
|
+
label: be(c),
|
|
1289
|
+
size: ge,
|
|
1290
|
+
...Ae,
|
|
1291
|
+
...Z.slotProps.chip
|
|
1292
|
+
}, te);
|
|
1293
|
+
})), L > -1 && Array.isArray(s)) {
|
|
1294
|
+
const c = s.length - L;
|
|
1295
|
+
!je && c > 0 && (s = s.splice(0, L), s.push(/* @__PURE__ */ w("span", {
|
|
1266
1296
|
className: O.tag,
|
|
1267
|
-
children:
|
|
1268
|
-
},
|
|
1297
|
+
children: u(c)
|
|
1298
|
+
}, s.length)));
|
|
1269
1299
|
}
|
|
1270
|
-
const
|
|
1271
|
-
children: [/* @__PURE__ */
|
|
1300
|
+
const A = de || ((c) => /* @__PURE__ */ _e("li", {
|
|
1301
|
+
children: [/* @__PURE__ */ w(fo, {
|
|
1272
1302
|
className: O.groupLabel,
|
|
1273
|
-
ownerState:
|
|
1303
|
+
ownerState: v,
|
|
1274
1304
|
component: "div",
|
|
1275
|
-
children:
|
|
1276
|
-
}), /* @__PURE__ */
|
|
1305
|
+
children: c.group
|
|
1306
|
+
}), /* @__PURE__ */ w(go, {
|
|
1277
1307
|
className: O.groupUl,
|
|
1278
|
-
ownerState:
|
|
1279
|
-
children:
|
|
1308
|
+
ownerState: v,
|
|
1309
|
+
children: c.children
|
|
1280
1310
|
})]
|
|
1281
|
-
},
|
|
1311
|
+
}, c.key)), Ft = fe || ((c, ee) => {
|
|
1282
1312
|
const {
|
|
1283
|
-
key:
|
|
1284
|
-
...
|
|
1285
|
-
} =
|
|
1286
|
-
return /* @__PURE__ */
|
|
1287
|
-
...
|
|
1288
|
-
children:
|
|
1289
|
-
},
|
|
1290
|
-
}),
|
|
1291
|
-
const
|
|
1292
|
-
option:
|
|
1293
|
-
index:
|
|
1313
|
+
key: te,
|
|
1314
|
+
...Ae
|
|
1315
|
+
} = c;
|
|
1316
|
+
return /* @__PURE__ */ w("li", {
|
|
1317
|
+
...Ae,
|
|
1318
|
+
children: be(ee)
|
|
1319
|
+
}, te);
|
|
1320
|
+
}), Ct = (c, ee) => {
|
|
1321
|
+
const te = st({
|
|
1322
|
+
option: c,
|
|
1323
|
+
index: ee
|
|
1294
1324
|
});
|
|
1295
|
-
return
|
|
1296
|
-
...
|
|
1325
|
+
return Ft({
|
|
1326
|
+
...te,
|
|
1297
1327
|
className: O.option
|
|
1298
|
-
},
|
|
1299
|
-
selected:
|
|
1300
|
-
index:
|
|
1301
|
-
inputValue:
|
|
1302
|
-
},
|
|
1303
|
-
},
|
|
1304
|
-
return /* @__PURE__ */
|
|
1305
|
-
children: [/* @__PURE__ */
|
|
1306
|
-
ref:
|
|
1307
|
-
className:
|
|
1308
|
-
ownerState:
|
|
1309
|
-
...
|
|
1310
|
-
children:
|
|
1311
|
-
id:
|
|
1312
|
-
disabled:
|
|
1328
|
+
}, c, {
|
|
1329
|
+
selected: te["aria-selected"],
|
|
1330
|
+
index: ee,
|
|
1331
|
+
inputValue: lt
|
|
1332
|
+
}, v);
|
|
1333
|
+
}, Ge = Z.slotProps.clearIndicator, qe = Z.slotProps.popupIndicator;
|
|
1334
|
+
return /* @__PURE__ */ _e(y.Fragment, {
|
|
1335
|
+
children: [/* @__PURE__ */ w(no, {
|
|
1336
|
+
ref: d,
|
|
1337
|
+
className: Je(O.root, I),
|
|
1338
|
+
ownerState: v,
|
|
1339
|
+
...ze(z),
|
|
1340
|
+
children: Fe({
|
|
1341
|
+
id: me,
|
|
1342
|
+
disabled: G,
|
|
1313
1343
|
fullWidth: !0,
|
|
1314
|
-
size:
|
|
1315
|
-
InputLabelProps:
|
|
1344
|
+
size: ge === "small" ? "small" : void 0,
|
|
1345
|
+
InputLabelProps: rt(),
|
|
1316
1346
|
InputProps: {
|
|
1317
|
-
ref:
|
|
1347
|
+
ref: it,
|
|
1318
1348
|
className: O.inputRoot,
|
|
1319
|
-
startAdornment:
|
|
1320
|
-
onMouseDown: (
|
|
1321
|
-
|
|
1349
|
+
startAdornment: s,
|
|
1350
|
+
onMouseDown: (c) => {
|
|
1351
|
+
c.target === c.currentTarget && pt(c);
|
|
1322
1352
|
},
|
|
1323
|
-
...(
|
|
1324
|
-
endAdornment: /* @__PURE__ */
|
|
1353
|
+
...(Ce || $e) && {
|
|
1354
|
+
endAdornment: /* @__PURE__ */ _e(ro, {
|
|
1325
1355
|
className: O.endAdornment,
|
|
1326
|
-
ownerState:
|
|
1327
|
-
children: [
|
|
1328
|
-
...
|
|
1329
|
-
"aria-label":
|
|
1330
|
-
title:
|
|
1331
|
-
ownerState:
|
|
1332
|
-
...
|
|
1333
|
-
className:
|
|
1334
|
-
children:
|
|
1335
|
-
}) : null,
|
|
1336
|
-
...
|
|
1337
|
-
disabled:
|
|
1338
|
-
"aria-label":
|
|
1339
|
-
title:
|
|
1340
|
-
ownerState:
|
|
1341
|
-
...
|
|
1342
|
-
className:
|
|
1343
|
-
children:
|
|
1356
|
+
ownerState: v,
|
|
1357
|
+
children: [Ce ? /* @__PURE__ */ w(ao, {
|
|
1358
|
+
...U(),
|
|
1359
|
+
"aria-label": E,
|
|
1360
|
+
title: E,
|
|
1361
|
+
ownerState: v,
|
|
1362
|
+
...Ge,
|
|
1363
|
+
className: Je(O.clearIndicator, Ge == null ? void 0 : Ge.className),
|
|
1364
|
+
children: C
|
|
1365
|
+
}) : null, $e ? /* @__PURE__ */ w(so, {
|
|
1366
|
+
...J(),
|
|
1367
|
+
disabled: G,
|
|
1368
|
+
"aria-label": q ? we : P,
|
|
1369
|
+
title: q ? we : P,
|
|
1370
|
+
ownerState: v,
|
|
1371
|
+
...qe,
|
|
1372
|
+
className: Je(O.popupIndicator, qe == null ? void 0 : qe.className),
|
|
1373
|
+
children: f
|
|
1344
1374
|
}) : null]
|
|
1345
1375
|
})
|
|
1346
1376
|
}
|
|
1347
1377
|
},
|
|
1348
1378
|
inputProps: {
|
|
1349
1379
|
className: O.input,
|
|
1350
|
-
disabled:
|
|
1351
|
-
readOnly:
|
|
1352
|
-
...
|
|
1380
|
+
disabled: G,
|
|
1381
|
+
readOnly: ne,
|
|
1382
|
+
...j()
|
|
1353
1383
|
}
|
|
1354
1384
|
})
|
|
1355
|
-
}),
|
|
1356
|
-
as:
|
|
1385
|
+
}), ae ? /* @__PURE__ */ w(io, {
|
|
1386
|
+
as: r,
|
|
1357
1387
|
...p,
|
|
1358
|
-
children: /* @__PURE__ */
|
|
1359
|
-
as:
|
|
1360
|
-
...
|
|
1361
|
-
children: [
|
|
1388
|
+
children: /* @__PURE__ */ _e(lo, {
|
|
1389
|
+
as: o,
|
|
1390
|
+
...e,
|
|
1391
|
+
children: [M && se.length === 0 ? /* @__PURE__ */ w(po, {
|
|
1362
1392
|
className: O.loading,
|
|
1363
|
-
ownerState:
|
|
1364
|
-
children:
|
|
1365
|
-
}) : null,
|
|
1393
|
+
ownerState: v,
|
|
1394
|
+
children: $
|
|
1395
|
+
}) : null, se.length === 0 && !De && !M ? /* @__PURE__ */ w(uo, {
|
|
1366
1396
|
className: O.noOptions,
|
|
1367
|
-
ownerState:
|
|
1397
|
+
ownerState: v,
|
|
1368
1398
|
role: "presentation",
|
|
1369
|
-
onMouseDown: (
|
|
1370
|
-
|
|
1399
|
+
onMouseDown: (c) => {
|
|
1400
|
+
c.preventDefault();
|
|
1371
1401
|
},
|
|
1372
|
-
children:
|
|
1373
|
-
}) : null,
|
|
1374
|
-
as:
|
|
1375
|
-
...
|
|
1376
|
-
children:
|
|
1377
|
-
key:
|
|
1378
|
-
group:
|
|
1379
|
-
children:
|
|
1380
|
-
}) :
|
|
1402
|
+
children: xe
|
|
1403
|
+
}) : null, se.length > 0 ? /* @__PURE__ */ w(Se, {
|
|
1404
|
+
as: ot,
|
|
1405
|
+
...We,
|
|
1406
|
+
children: se.map((c, ee) => Ee ? A({
|
|
1407
|
+
key: c.key,
|
|
1408
|
+
group: c.group,
|
|
1409
|
+
children: c.options.map((te, Ae) => Ct(te, c.index + Ae))
|
|
1410
|
+
}) : Ct(c, ee))
|
|
1381
1411
|
}) : null]
|
|
1382
1412
|
})
|
|
1383
1413
|
}) : null]
|
|
1384
1414
|
});
|
|
1385
1415
|
});
|
|
1386
|
-
process.env.NODE_ENV !== "production" && (
|
|
1416
|
+
process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
1387
1417
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1388
1418
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1389
1419
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1422,7 +1452,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
1422
1452
|
blurOnSelect: t.oneOfType([t.oneOf(["mouse", "touch"]), t.bool]),
|
|
1423
1453
|
/**
|
|
1424
1454
|
* Props applied to the [`Chip`](https://mui.com/material-ui/api/chip/) element.
|
|
1425
|
-
* @deprecated Use `slotProps.chip` instead. This prop will be removed in
|
|
1455
|
+
* @deprecated Use `slotProps.chip` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1426
1456
|
*/
|
|
1427
1457
|
ChipProps: t.object,
|
|
1428
1458
|
/**
|
|
@@ -1467,7 +1497,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
1467
1497
|
closeText: t.string,
|
|
1468
1498
|
/**
|
|
1469
1499
|
* The props used for each slot inside.
|
|
1470
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
1500
|
+
* @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.
|
|
1471
1501
|
*/
|
|
1472
1502
|
componentsProps: t.shape({
|
|
1473
1503
|
clearIndicator: t.object,
|
|
@@ -1479,7 +1509,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
1479
1509
|
* The default value. Use when the component is not controlled.
|
|
1480
1510
|
* @default props.multiple ? [] : null
|
|
1481
1511
|
*/
|
|
1482
|
-
defaultValue:
|
|
1512
|
+
defaultValue: St(t.any, (n) => n.multiple && n.defaultValue !== void 0 && !Array.isArray(n.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${n.defaultValue} was provided.`].join(`
|
|
1483
1513
|
`)) : null),
|
|
1484
1514
|
/**
|
|
1485
1515
|
* If `true`, the input can't be cleared.
|
|
@@ -1617,16 +1647,16 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
1617
1647
|
* Set `-1` to disable the limit.
|
|
1618
1648
|
* @default -1
|
|
1619
1649
|
*/
|
|
1620
|
-
limitTags:
|
|
1650
|
+
limitTags: Bt,
|
|
1621
1651
|
/**
|
|
1622
1652
|
* The component used to render the listbox.
|
|
1623
1653
|
* @default 'ul'
|
|
1624
|
-
* @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in
|
|
1654
|
+
* @deprecated Use `slotProps.listbox.component` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1625
1655
|
*/
|
|
1626
1656
|
ListboxComponent: t.elementType,
|
|
1627
1657
|
/**
|
|
1628
1658
|
* Props applied to the Listbox element.
|
|
1629
|
-
* @deprecated Use `slotProps.listbox` instead. This prop will be removed in
|
|
1659
|
+
* @deprecated Use `slotProps.listbox` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1630
1660
|
*/
|
|
1631
1661
|
ListboxProps: t.object,
|
|
1632
1662
|
/**
|
|
@@ -1676,7 +1706,7 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
1676
1706
|
*
|
|
1677
1707
|
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
1678
1708
|
* @param {Value} option The highlighted option.
|
|
1679
|
-
* @param {string} reason Can be: `"keyboard"`, `"
|
|
1709
|
+
* @param {string} reason Can be: `"keyboard"`, `"mouse"`, `"touch"`.
|
|
1680
1710
|
*/
|
|
1681
1711
|
onHighlightChange: t.func,
|
|
1682
1712
|
/**
|
|
@@ -1721,13 +1751,13 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
1721
1751
|
/**
|
|
1722
1752
|
* The component used to render the body of the popup.
|
|
1723
1753
|
* @default Paper
|
|
1724
|
-
* @deprecated Use `slots.paper` instead. This prop will be removed in
|
|
1754
|
+
* @deprecated Use `slots.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1725
1755
|
*/
|
|
1726
1756
|
PaperComponent: t.elementType,
|
|
1727
1757
|
/**
|
|
1728
1758
|
* The component used to position the popup.
|
|
1729
1759
|
* @default Popper
|
|
1730
|
-
* @deprecated Use `slots.popper` instead. This prop will be removed in
|
|
1760
|
+
* @deprecated Use `slots.popper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1731
1761
|
*/
|
|
1732
1762
|
PopperComponent: t.elementType,
|
|
1733
1763
|
/**
|
|
@@ -1765,7 +1795,9 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
1765
1795
|
*/
|
|
1766
1796
|
renderOption: t.func,
|
|
1767
1797
|
/**
|
|
1768
|
-
* Render the selected value.
|
|
1798
|
+
* Render the selected value when doing multiple selections.
|
|
1799
|
+
*
|
|
1800
|
+
* @deprecated Use `renderValue` prop instead
|
|
1769
1801
|
*
|
|
1770
1802
|
* @param {Value[]} value The `value` provided to the component.
|
|
1771
1803
|
* @param {function} getTagProps A tag props getter.
|
|
@@ -1773,6 +1805,15 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
1773
1805
|
* @returns {ReactNode}
|
|
1774
1806
|
*/
|
|
1775
1807
|
renderTags: t.func,
|
|
1808
|
+
/**
|
|
1809
|
+
* Renders the selected value(s) as rich content in the input for both single and multiple selections.
|
|
1810
|
+
*
|
|
1811
|
+
* @param {AutocompleteRenderValue<Value, Multiple, FreeSolo>} value The `value` provided to the component.
|
|
1812
|
+
* @param {function} getItemProps The value item props.
|
|
1813
|
+
* @param {object} ownerState The state of the Autocomplete component.
|
|
1814
|
+
* @returns {ReactNode}
|
|
1815
|
+
*/
|
|
1816
|
+
renderValue: t.func,
|
|
1776
1817
|
/**
|
|
1777
1818
|
* If `true`, the input's text is selected on focus.
|
|
1778
1819
|
* It helps the user clear the selected value.
|
|
@@ -1815,15 +1856,16 @@ process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
|
1815
1856
|
* The value must have reference equality with the option in order to be selected.
|
|
1816
1857
|
* You can customize the equality behavior with the `isOptionEqualToValue` prop.
|
|
1817
1858
|
*/
|
|
1818
|
-
value:
|
|
1859
|
+
value: St(t.any, (n) => n.multiple && n.value !== void 0 && !Array.isArray(n.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${n.value} was provided.`].join(`
|
|
1819
1860
|
`)) : null)
|
|
1820
1861
|
});
|
|
1821
1862
|
export {
|
|
1822
|
-
|
|
1823
|
-
|
|
1863
|
+
mo as A,
|
|
1864
|
+
Xe as L,
|
|
1824
1865
|
l as a,
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1866
|
+
Qt as b,
|
|
1867
|
+
qt as c,
|
|
1868
|
+
to as g,
|
|
1869
|
+
Eo as l,
|
|
1870
|
+
Gt as u
|
|
1829
1871
|
};
|