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