@clearstory/drywall-react 4.3.0 → 5.1.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/{Accordion-D97bkP2u.js → Accordion-m2AFrwDc.js} +7 -7
- package/dist/{AccordionActions-BFqcg9_4.js → AccordionActions-L21Aj5lh.js} +3 -3
- package/dist/{AccordionDetails-k8yFFcsY.js → AccordionDetails-Vkh8-XxB.js} +4 -4
- package/dist/{AccordionSummary-Gm_LUUL5.js → AccordionSummary-Db2tRAW5.js} +5 -5
- package/dist/{AdapterDayjs-BnooHBDD.js → AdapterDayjs-DxEdpe9o.js} +3 -3
- package/dist/{Alert-yLEmXuhM.js → Alert-CUOGimrv.js} +9 -9
- package/dist/{AlertTitle-BizznSLk.js → AlertTitle-1LYXa5e7.js} +5 -5
- package/dist/{ArrowDropDown-C5I7YoZ2.js → ArrowDropDown-CJcUO7Km.js} +2 -2
- package/dist/{Autocomplete-DjCUxQwI.js → Autocomplete-BG3jpE2X.js} +345 -346
- package/dist/{Avatar-7BzScxcu.js → Avatar-CVN_sISr.js} +5 -5
- package/dist/{AvatarGroup-OvY125UU.js → AvatarGroup-4vfSz-PC.js} +6 -6
- package/dist/{Backdrop-WRor_nxN.js → Backdrop-CfSoI3NV.js} +4 -4
- package/dist/{Badge-C9DKdGvy.js → Badge-xO2A6UtP.js} +5 -5
- package/dist/{Box-ofHJnHkX.js → Box-DRIsV4J3.js} +5 -5
- package/dist/{Breadcrumbs-B-4fE764.js → Breadcrumbs-DCnGkMd5.js} +8 -8
- package/dist/{Button-r03ztkS2.js → Button-CdA9C690.js} +8 -8
- package/dist/{ButtonBase-C2fJySxj.js → ButtonBase-es4rY3j-.js} +65 -57
- package/dist/{ButtonGroup-CX4JYMM8.js → ButtonGroup-Btb5I3qo.js} +5 -5
- package/dist/{Card-B-3dQsLY.js → Card-fbliA_F9.js} +4 -4
- package/dist/{CardActionArea--Fa0Lrbv.js → CardActionArea-DFoDWYk5.js} +5 -5
- package/dist/{CardActions--PODbzwD.js → CardActions-C2qAKvYG.js} +3 -3
- package/dist/{CardContent-CAGK6LNJ.js → CardContent-Cr-99or3.js} +3 -3
- package/dist/{CardHeader-Cv8TpwTh.js → CardHeader-BvvTaPUv.js} +4 -4
- package/dist/{CardMedia-vNBM5dYT.js → CardMedia-Bh9X1Ecc.js} +3 -3
- package/dist/{Checkbox-CnineNTk.js → Checkbox-l14tfKVr.js} +7 -7
- package/dist/{Chip-1yVEJRUJ.js → Chip-Dvsr-37n.js} +8 -8
- package/dist/{CircularProgress-C_7Rtpvy.js → CircularProgress-BL36kuy5.js} +6 -6
- package/dist/{Clear-C5vTrJfH.js → Clear-BX3xsbCY.js} +1 -1
- package/dist/{ClickAwayListener-BhNP8Zmy.js → ClickAwayListener-DwFm5IeK.js} +2 -2
- package/dist/{Close-DkPIVjsJ.js → Close-B446Lybf.js} +1 -1
- package/dist/{Close-B69TW6Mc.js → Close-C2_eLkhZ.js} +1 -1
- package/dist/{Collapse-B63vRxiY.js → Collapse-BorUfOHf.js} +8 -8
- package/dist/{CssBaseline-BjgTSNJ-.js → CssBaseline-BYGHpCrN.js} +4 -4
- package/dist/{Datepicker-BaoVwYUL.js → Datepicker-BQ9gxoUL.js} +34 -34
- package/dist/{DefaultPropsProvider-Hks9kyHW.js → DefaultPropsProvider-CE6KNOqW.js} +2 -2
- package/dist/{DefaultPropsProvider-972kdsvD.js → DefaultPropsProvider-xtbK4i1d.js} +1 -1
- package/dist/{Dialog-CWkRRLYB.js → Dialog-Cn2dsmZm.js} +10 -10
- package/dist/{DialogActions-HyvruXJm.js → DialogActions-BRC0yQxA.js} +3 -3
- package/dist/{DialogContent-C3Iw89yZ.js → DialogContent-CleX6liG.js} +4 -4
- package/dist/{DialogContentText-CqtHzKJG.js → DialogContentText-SFI1f9BE.js} +4 -4
- package/dist/{DialogTitle-B0wo1Nee.js → DialogTitle-N0_CfiI0.js} +4 -4
- package/dist/{Divider-CRp6DYDo.js → Divider-Crp-cD16.js} +4 -4
- package/dist/{Drawer--mikgVAA.js → Drawer-BVvVj14Z.js} +10 -10
- package/dist/{Fade-A_UchBOH.js → Fade-u5tWcT4o.js} +4 -4
- package/dist/{FormControl-DGDyZWmP.js → FormControl-DRR12yE7.js} +4 -4
- package/dist/{FormControlLabel-BHsU9-2v.js → FormControlLabel-DIUWtdgI.js} +7 -7
- package/dist/{FormGroup-n8mW1ikh.js → FormGroup-De8mcanm.js} +3 -3
- package/dist/{FormHelperText-XGRtUL8k.js → FormHelperText-CmONy7Rj.js} +5 -5
- package/dist/{FormLabel-CD8GLPIn.js → FormLabel-r7XSjt-O.js} +5 -5
- package/dist/{GlobalStyles-ChlXdNjM.js → GlobalStyles-DMJykQ5R.js} +4 -4
- package/dist/{Grow-BMsXTwJH.js → Grow-BxcnX1h6.js} +4 -4
- package/dist/{IconButton-MVzChLzw.js → IconButton-C233MDPx.js} +7 -7
- package/dist/{Info-BJQ9wuGi.js → Info-BIwRC_L9.js} +1 -1
- package/dist/{InputAdornment-Brkig0oR.js → InputAdornment-DotstpVf.js} +6 -6
- package/dist/{InputBase-BSTVzjZo.js → InputBase-BM3Auzz5.js} +8 -8
- package/dist/{KeyboardArrowRight-By0XOofn.js → KeyboardArrowRight-Cm6Izw7f.js} +1 -1
- package/dist/{LinearProgress-BT1YkV7a.js → LinearProgress-dgGy3j_3.js} +7 -7
- package/dist/{Link-C3teKpnQ.js → Link-B6cIxbWI.js} +8 -8
- package/dist/{List-CiAWVw0m.js → List-cWz0PH7P.js} +3 -3
- package/dist/{ListItem-5PtJ2I6A.js → ListItem-ZE8vLL1k.js} +156 -143
- package/dist/{ListItemAvatar-Wo31xwLj.js → ListItemAvatar-2nC-p706.js} +3 -3
- package/dist/{ListItemButton-DbQjmJRg.js → ListItemButton-DQtMbD5o.js} +5 -5
- package/dist/{ListItemIcon-C7PQ3Itp.js → ListItemIcon-RBnXnRIX.js} +4 -4
- package/dist/{ListItemText-DzL5Tz1i.js → ListItemText-C4XjsjPe.js} +4 -4
- package/dist/{ListSubheader-B89d0LHx.js → ListSubheader-Dr443Sr5.js} +5 -5
- package/dist/{Menu-vY_gThtK.js → Menu-BExv75wS.js} +7 -7
- package/dist/{MenuItem-C77PRnO4.js → MenuItem-D15dnYfh.js} +5 -5
- package/dist/{MenuList-w-HYxks2.js → MenuList-C5RKUMIo.js} +17 -16
- package/dist/{Modal-CuuH45sn.js → Modal-DWjk-ELn.js} +250 -247
- package/dist/{Paper-C9LeVPWQ.js → Paper-COvzoSpI.js} +6 -6
- package/dist/{Popover-DNdYdnyR.js → Popover-CsFfsZ3j.js} +8 -8
- package/dist/{Popper-Cma-1V4k.js → Popper-JL6hDc7M.js} +6 -6
- package/dist/{Portal-R03qxPC_.js → Portal-DdS5LtfN.js} +1 -1
- package/dist/{Radio-ovlL_az0.js → Radio-Bd2tUvwi.js} +8 -8
- package/dist/{RadioGroup-zrWjz1kA.js → RadioGroup-i1LrWzVl.js} +2 -2
- package/dist/{Select-CmCl5UDv.js → Select-De55ndN6.js} +355 -351
- package/dist/{Skeleton-oZjjqlBF.js → Skeleton-B1s6csXR.js} +5 -5
- package/dist/{Slide-BSx4P5wi.js → Slide-BE2ALpHy.js} +4 -4
- package/dist/{Snackbar-CnOQJtPF.js → Snackbar-D_R2UAVj.js} +10 -12
- package/dist/{Step-DFlBG6d9.js → Step-C6VqWx5k.js} +3 -3
- package/dist/{StepButton-xwT3S9QO.js → StepButton-BGCwBo-2.js} +5 -5
- package/dist/{StepConnector-D2azDlce.js → StepConnector-jOEzxHeh.js} +5 -5
- package/dist/{StepContent-CvuKktFy.js → StepContent-DP-2AduZ.js} +5 -5
- package/dist/{StepIcon-9fyVYW6J.js → StepIcon-Cz4Jn8JZ.js} +6 -6
- package/dist/{StepLabel-COIOAPIJ.js → StepLabel-dtJKHl3T.js} +5 -5
- package/dist/{Stepper-0GL94UrK.js → Stepper-CGLBQfx-.js} +4 -4
- package/dist/{SvgIcon-CDnGKHUA.js → SvgIcon-CwzlDqJ-.js} +5 -5
- package/dist/{Switch-Byl8c4Oc.js → Switch-UrF12x0u.js} +7 -7
- package/dist/{SwitchBase-BIm-EQtR.js → SwitchBase-CbbeqU9c.js} +5 -5
- package/dist/{Tab-o1ogWQqV.js → Tab-CfdValV7.js} +6 -6
- package/dist/{Table-B6dWo5WC.js → Table-D0MqhHHZ.js} +4 -4
- package/dist/{TableBody-CSW1H1eh.js → TableBody-D8jW-DyI.js} +3 -3
- package/dist/{TableCell-B1xBwC04.js → TableCell-aY2DRcSY.js} +5 -5
- package/dist/{TableContainer-CXIJh9rs.js → TableContainer-D3bI6ghm.js} +3 -3
- package/dist/{TableFooter-Dq72p_w2.js → TableFooter-DLonntm2.js} +3 -3
- package/dist/{TableHead-Cal8q5sQ.js → TableHead-asHSNPOi.js} +3 -3
- package/dist/{TablePagination-94ZyOOIt.js → TablePagination-DfEbbPT0.js} +13 -13
- package/dist/{TableRow-CxGPvHo1.js → TableRow-COzpGHHV.js} +4 -4
- package/dist/{Tabs-Cps79opW.js → Tabs-b6WnXeJW.js} +46 -45
- package/dist/{ThemeProviderWithVars-DcpOOTh-.js → ThemeProviderWithVars-hLmfDgWo.js} +8 -9
- package/dist/{ToggleButton-CniSTF0L.js → ToggleButton-DktXGko4.js} +7 -7
- package/dist/{ToggleButtonGroup-7IctTuCy.js → ToggleButtonGroup-CANZAjlQ.js} +5 -5
- package/dist/{Toolbar-DcfUie7h.js → Toolbar-BSA6rp2f.js} +4 -4
- package/dist/{Tooltip-lmU5jPqX.js → Tooltip-CslS55e6.js} +10 -10
- package/dist/{Typography--7tWeGoH.js → Typography-BqFA8mSI.js} +6 -6
- package/dist/{WarningAmberOutlined-_I7wHrGs.js → WarningAmberOutlined-pXw3j692.js} +1 -1
- package/dist/{Zoom-DaoDggO-.js → Zoom-Ia0xnNsL.js} +4 -4
- package/dist/{ZoomOut-DumR4lVD.js → ZoomOut-DBqhueV6.js} +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionActions/index.js +1 -1
- package/dist/components/AccordionDetails/index.js +1 -1
- package/dist/components/AccordionSummary/index.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/AlertTitle/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/Autocomplete.theme.js +7 -4
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/AutocompleteControl/AutocompleteControl.d.ts +5 -4
- package/dist/components/AutocompleteControl/AutocompleteControl.js +27 -26
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/AvatarGroup/index.js +1 -1
- package/dist/components/Backdrop/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Box/index.js +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBase/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/CardActionArea/index.js +1 -1
- package/dist/components/CardActions/index.js +1 -1
- package/dist/components/CardContent/index.js +1 -1
- package/dist/components/CardHeader/index.js +1 -1
- package/dist/components/CardMedia/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/CircularProgress/index.js +1 -1
- package/dist/components/ClickAwayListener/index.js +1 -1
- package/dist/components/Collapse/index.js +1 -1
- package/dist/components/Container/index.js +1 -1
- package/dist/components/CssBaseline/index.js +1 -1
- package/dist/components/Datepicker/Datepicker.js +3 -3
- package/dist/components/Datepicker/index.js +2 -2
- package/dist/components/DatepickerControl/DatepickerControl.d.ts +7 -25
- package/dist/components/DatepickerControl/DatepickerControl.js +32 -62
- package/dist/components/DescriptionDetails/DescriptionDetails.js +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +1 -1
- package/dist/components/DescriptionTerm/DescriptionTerm.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DialogActions/index.js +1 -1
- package/dist/components/DialogClose/DialogClose.js +2 -2
- package/dist/components/DialogContent/index.js +1 -1
- package/dist/components/DialogContentText/index.js +1 -1
- package/dist/components/DialogTitle/index.js +1 -1
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Fade/index.js +1 -1
- package/dist/components/FormControl/index.js +1 -1
- package/dist/components/FormControlLabel/index.js +1 -1
- package/dist/components/FormGroup/index.js +1 -1
- package/dist/components/FormHelperText/index.js +1 -1
- package/dist/components/FormLabel/index.js +1 -1
- package/dist/components/FormSublabel/FormSublabel.js +2 -2
- package/dist/components/Grow/index.js +1 -1
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/InputAdornment/index.js +1 -1
- package/dist/components/InputControl/InputControl.d.ts +5 -4
- package/dist/components/InputControl/InputControl.js +28 -26
- package/dist/components/LinearProgress/index.js +1 -1
- package/dist/components/Link/index.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/ListItem/index.js +1 -1
- package/dist/components/ListItemAvatar/index.js +1 -1
- package/dist/components/ListItemButton/index.js +1 -1
- package/dist/components/ListItemIcon/index.js +1 -1
- package/dist/components/ListItemText/index.js +1 -1
- package/dist/components/ListSubheader/index.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/MenuItem/index.js +1 -1
- package/dist/components/MenuList/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +2 -0
- package/dist/components/NumberInput/NumberInput.js +26 -25
- package/dist/components/NumberInputControl/NumberInputControl.d.ts +4 -3
- package/dist/components/NumberInputControl/NumberInputControl.js +28 -26
- package/dist/components/Paper/index.js +1 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popper/index.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectControl/SelectControl.d.ts +5 -4
- package/dist/components/SelectControl/SelectControl.js +28 -26
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Slide/index.js +1 -1
- package/dist/components/Snackbar/index.js +1 -1
- package/dist/components/Stack/index.js +1 -1
- package/dist/components/Step/index.js +1 -1
- package/dist/components/StepButton/index.js +1 -1
- package/dist/components/StepConnector/index.js +1 -1
- package/dist/components/StepContent/index.js +1 -1
- package/dist/components/StepIcon/index.js +1 -1
- package/dist/components/StepLabel/index.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/SvgIcon/index.js +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Tab/index.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/TableBody/index.js +1 -1
- package/dist/components/TableCell/index.js +1 -1
- package/dist/components/TableContainer/index.js +1 -1
- package/dist/components/TableFooter/index.js +1 -1
- package/dist/components/TableHead/index.js +1 -1
- package/dist/components/TablePagination/index.js +1 -1
- package/dist/components/TableRow/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/components/ToastContainer/ToastContainer.js +1 -1
- package/dist/components/ToastContainer/useToast.js +5 -5
- package/dist/components/ToggleButton/index.js +1 -1
- package/dist/components/ToggleButtonGroup/index.js +1 -1
- package/dist/components/Toolbar/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Zoom/index.js +1 -1
- package/dist/{containerClasses-DbyQ8Hp1.js → containerClasses-Dx9S-Uog.js} +6 -6
- package/dist/{createSvgIcon-Bfm-cjVr.js → createSvgIcon-CuFjlgU2.js} +1 -1
- package/dist/{createTheme-DHUIafsh.js → createTheme-Cr8frjQ0.js} +3 -21
- package/dist/defaultTheme-B6FbMXaQ.js +5 -0
- package/dist/{elementAcceptingRef-C0N4y82j.js → elementAcceptingRef-DuLJFUGe.js} +1 -1
- package/dist/{elementTypeAcceptingRef-B2d5_Vhf.js → elementTypeAcceptingRef-I_eZHB1B.js} +1 -1
- package/dist/{emotion-react.browser.esm-CvjRvNuP.js → emotion-react.browser.esm-BOjBP5R6.js} +1 -1
- package/dist/{extendSxProp-BK1wn2VP.js → extendSxProp-BY4rSlhb.js} +1 -1
- package/dist/getActiveElement-DQsgVmYn.js +9 -0
- package/dist/{getThemeProps-EVOScHVn.js → getThemeProps-DD5fEXGs.js} +1 -1
- package/dist/icons/ClearstoryIcon.js +1 -1
- package/dist/icons/InternalOnlyIcon.js +1 -1
- package/dist/icons/MoneyBucketIcon.js +1 -1
- package/dist/icons/MoreCircleOutlineIcon.js +1 -1
- package/dist/icons/index.js +5 -5
- package/dist/{index-CyAhC1RZ.js → index-B5q5ym9h.js} +2 -23
- package/dist/{index-CFunVsti.js → index-BJi91Is8.js} +0 -7
- package/dist/{index-BCBnk-9Z.js → index-DdNQ5i6R.js} +2 -2
- package/dist/{index-D2IRntbh.js → index-Dv2Px4OL.js} +1 -1
- package/dist/{index-B_Px1R6r.js → index-Gq_iW04U.js} +4 -4
- package/dist/main.js +104 -104
- package/dist/{memoTheme-DKj-Vdvf.js → memoTheme-D7rECXXN.js} +1 -1
- package/dist/{refType-CedFpkve.js → refType-C3kIdphZ.js} +1 -1
- package/dist/{stackClasses-C3NX-cBP.js → stackClasses-oeGuYndJ.js} +7 -7
- package/dist/{styled-DeKjjxu7.js → styled-BKpRY52y.js} +3 -3
- package/dist/styled-jbbQ0rDV.js +5 -0
- package/dist/theme/index.js +6 -6
- package/dist/theme/internal.js +1 -1
- package/dist/{useTheme-DNEoTUfV.js → useTheme-nuDW3plC.js} +1 -1
- package/dist/{useTheme-rxhFY1gT.js → useTheme-uuKxCqA4.js} +2 -2
- package/dist/{useThemeProps-Dz0XskTc.js → useThemeProps-DNdk7d02.js} +2 -2
- package/dist/{utils-CAuCuXQr.js → utils-Cv_fD1h5.js} +1 -1
- package/package.json +12 -12
- package/dist/defaultTheme-BvWB-Z-U.js +0 -5
- package/dist/styled-BnnrhYgz.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as $, jsxs as
|
|
1
|
+
import { jsx as $, jsxs as Ue } from "react/jsx-runtime";
|
|
2
2
|
import * as y from "react";
|
|
3
3
|
import { forwardRef as Vt } from "react";
|
|
4
4
|
import { Input as Ft } from "./components/Input/Input.js";
|
|
@@ -6,30 +6,30 @@ import "./icons/ClearstoryIcon.js";
|
|
|
6
6
|
import "./icons/InternalOnlyIcon.js";
|
|
7
7
|
import "./icons/MoneyBucketIcon.js";
|
|
8
8
|
import "./icons/MoreCircleOutlineIcon.js";
|
|
9
|
-
import { A as Ht, C as zt } from "./Clear-
|
|
9
|
+
import { A as Ht, C as zt } from "./Clear-BX3xsbCY.js";
|
|
10
10
|
import { g as kt } from "./generateUtilityClass-BhfUaMgk.js";
|
|
11
|
-
import { P as o } from "./index-
|
|
11
|
+
import { P as o } from "./index-B5q5ym9h.js";
|
|
12
12
|
import { c as it } from "./clsx-OuTLNxxd.js";
|
|
13
|
-
import { A as jt, f as
|
|
14
|
-
import { i as
|
|
15
|
-
import { C as Bt } from "./Close-
|
|
16
|
-
import { m as
|
|
13
|
+
import { A as jt, f as xe, o as Ct, i as st } from "./ArrowDropDown-CJcUO7Km.js";
|
|
14
|
+
import { i as ue } from "./InputBase-BM3Auzz5.js";
|
|
15
|
+
import { C as Bt } from "./Close-C2_eLkhZ.js";
|
|
16
|
+
import { m as ye } from "./memoTheme-D7rECXXN.js";
|
|
17
17
|
import { g as Ut } from "./generateUtilityClasses-E9gROIFd.js";
|
|
18
18
|
import { u as pt } from "./useSlot-CoTIuujp.js";
|
|
19
|
-
import { u as Wt } from "./DefaultPropsProvider-
|
|
19
|
+
import { u as Wt } from "./DefaultPropsProvider-CE6KNOqW.js";
|
|
20
20
|
import { u as Gt } from "./useId-CK6Kn3Tn.js";
|
|
21
21
|
import { u as ut } from "./useControlled-D1L5tREc.js";
|
|
22
22
|
import { u as Kt } from "./usePreviousProps-7NDRTUOj.js";
|
|
23
|
-
import { u as
|
|
24
|
-
import { s as qt } from "./Portal-
|
|
25
|
-
import { s as B } from "./styled-
|
|
26
|
-
import { P as Dt } from "./Paper-
|
|
27
|
-
import { P as Rt } from "./Popper-
|
|
28
|
-
import { C as _t } from "./Chip-
|
|
29
|
-
import { h as Et } from "./createTheme-
|
|
23
|
+
import { u as We } from "./useEventCallback-BAQJJ3ye.js";
|
|
24
|
+
import { s as qt } from "./Portal-DdS5LtfN.js";
|
|
25
|
+
import { s as B } from "./styled-BKpRY52y.js";
|
|
26
|
+
import { P as Dt } from "./Paper-COvzoSpI.js";
|
|
27
|
+
import { P as Rt } from "./Popper-JL6hDc7M.js";
|
|
28
|
+
import { C as _t } from "./Chip-Dvsr-37n.js";
|
|
29
|
+
import { h as Et } from "./createTheme-Cr8frjQ0.js";
|
|
30
30
|
import { c as Jt } from "./composeClasses-2Ou-RZJr.js";
|
|
31
|
-
import { I as Nt } from "./IconButton-
|
|
32
|
-
import { L as Xt } from "./ListSubheader-
|
|
31
|
+
import { I as Nt } from "./IconButton-C233MDPx.js";
|
|
32
|
+
import { L as Xt } from "./ListSubheader-Dr443Sr5.js";
|
|
33
33
|
import { c as $t } from "./chainPropTypes-D9lkm76m.js";
|
|
34
34
|
import { i as Yt } from "./integerPropType-BihGt2aU.js";
|
|
35
35
|
function At({
|
|
@@ -48,20 +48,20 @@ function Qt(n = {}) {
|
|
|
48
48
|
ignoreCase: g = !0,
|
|
49
49
|
limit: f,
|
|
50
50
|
matchFrom: S = "any",
|
|
51
|
-
stringify:
|
|
51
|
+
stringify: F,
|
|
52
52
|
trim: N = !1
|
|
53
53
|
} = n;
|
|
54
|
-
return (
|
|
54
|
+
return (R, {
|
|
55
55
|
inputValue: U,
|
|
56
56
|
getOptionLabel: O
|
|
57
57
|
}) => {
|
|
58
58
|
let A = N ? U.trim() : U;
|
|
59
59
|
g && (A = A.toLowerCase()), p && (A = Tt(A));
|
|
60
|
-
const
|
|
61
|
-
let v = (
|
|
60
|
+
const H = A ? R.filter((ce) => {
|
|
61
|
+
let v = (F || O)(ce);
|
|
62
62
|
return g && (v = v.toLowerCase()), p && (v = Tt(v)), S === "start" ? v.startsWith(A) : v.includes(A);
|
|
63
|
-
}) :
|
|
64
|
-
return typeof f == "number" ?
|
|
63
|
+
}) : R;
|
|
64
|
+
return typeof f == "number" ? H.slice(0, f) : H;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
const Zt = Qt(), wt = 5, eo = (n) => n.current !== null && n.current.parentElement?.contains(document.activeElement), to = [];
|
|
@@ -79,34 +79,34 @@ function oo(n) {
|
|
|
79
79
|
unstable_classNamePrefix: g = "Mui",
|
|
80
80
|
autoComplete: f = !1,
|
|
81
81
|
autoHighlight: S = !1,
|
|
82
|
-
autoSelect:
|
|
82
|
+
autoSelect: F = !1,
|
|
83
83
|
blurOnSelect: N = !1,
|
|
84
|
-
clearOnBlur:
|
|
84
|
+
clearOnBlur: R = !n.freeSolo,
|
|
85
85
|
clearOnEscape: U = !1,
|
|
86
86
|
componentName: O = "useAutocomplete",
|
|
87
87
|
defaultValue: A = n.multiple ? to : null,
|
|
88
|
-
disableClearable:
|
|
89
|
-
disableCloseOnSelect:
|
|
88
|
+
disableClearable: H = !1,
|
|
89
|
+
disableCloseOnSelect: ce = !1,
|
|
90
90
|
disabled: v,
|
|
91
|
-
disabledItemsFocusable:
|
|
92
|
-
disableListWrap:
|
|
91
|
+
disabledItemsFocusable: ke = !1,
|
|
92
|
+
disableListWrap: De = !1,
|
|
93
93
|
filterOptions: ct = Zt,
|
|
94
|
-
filterSelectedOptions:
|
|
95
|
-
freeSolo:
|
|
94
|
+
filterSelectedOptions: Ge = !1,
|
|
95
|
+
freeSolo: de = !1,
|
|
96
96
|
getOptionDisabled: W,
|
|
97
97
|
getOptionKey: dt,
|
|
98
98
|
getOptionLabel: Ke = (t) => t.label ?? t,
|
|
99
|
-
groupBy:
|
|
99
|
+
groupBy: ae,
|
|
100
100
|
handleHomeEndKeys: qe = !n.freeSolo,
|
|
101
101
|
id: ft,
|
|
102
|
-
includeInputInList:
|
|
102
|
+
includeInputInList: Oe = !1,
|
|
103
103
|
inputValue: Re,
|
|
104
|
-
isOptionEqualToValue:
|
|
104
|
+
isOptionEqualToValue: Q = (t, e) => t === e,
|
|
105
105
|
multiple: u = !1,
|
|
106
106
|
onChange: _e,
|
|
107
107
|
onClose: Je,
|
|
108
108
|
onHighlightChange: Ee,
|
|
109
|
-
onInputChange:
|
|
109
|
+
onInputChange: Z,
|
|
110
110
|
onOpen: Ne,
|
|
111
111
|
open: gt,
|
|
112
112
|
openOnFocus: mt = !1,
|
|
@@ -115,7 +115,7 @@ function oo(n) {
|
|
|
115
115
|
renderValue: L,
|
|
116
116
|
selectOnFocus: Xe = !n.freeSolo,
|
|
117
117
|
value: Me
|
|
118
|
-
} = n,
|
|
118
|
+
} = n, E = Gt(ft);
|
|
119
119
|
let P = Ke;
|
|
120
120
|
P = (t) => {
|
|
121
121
|
const e = Ke(t);
|
|
@@ -128,87 +128,87 @@ function oo(n) {
|
|
|
128
128
|
}
|
|
129
129
|
return e;
|
|
130
130
|
};
|
|
131
|
-
const
|
|
131
|
+
const Pe = y.useRef(!1), Ce = y.useRef(!0), b = y.useRef(null), M = y.useRef(null), [$e, bt] = y.useState(null), [k, K] = y.useState(-1), Ye = S ? 0 : -1, T = y.useRef(Ye), It = y.useRef(St(A ?? Me, u, P)).current, [l, Ae] = ut({
|
|
132
132
|
controlled: Me,
|
|
133
133
|
default: A,
|
|
134
134
|
name: O
|
|
135
|
-
}), [d,
|
|
135
|
+
}), [d, le] = ut({
|
|
136
136
|
controlled: Re,
|
|
137
137
|
default: It,
|
|
138
138
|
name: O,
|
|
139
139
|
state: "inputValue"
|
|
140
|
-
}), [
|
|
141
|
-
if (!(u ?
|
|
140
|
+
}), [fe, Ve] = y.useState(!1), ge = y.useCallback((t, e, r) => {
|
|
141
|
+
if (!(u ? l.length < e.length : e !== null) && !R)
|
|
142
142
|
return;
|
|
143
|
-
const
|
|
144
|
-
d !==
|
|
145
|
-
}, [P, d, u,
|
|
143
|
+
const i = St(e, u, P, L);
|
|
144
|
+
d !== i && (le(i), Z && Z(t, i, r));
|
|
145
|
+
}, [P, d, u, Z, le, R, l, L]), [q, ie] = ut({
|
|
146
146
|
controlled: gt,
|
|
147
147
|
default: !1,
|
|
148
148
|
name: O,
|
|
149
149
|
state: "open"
|
|
150
|
-
}), [xt,
|
|
151
|
-
ht.filter((t) => !(
|
|
150
|
+
}), [xt, me] = y.useState(!0), Fe = !u && l != null && d === P(l), w = q && !G, m = w ? ct(
|
|
151
|
+
ht.filter((t) => !(Ge && (u ? l : [l]).some((e) => e !== null && Q(t, e)))),
|
|
152
152
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
153
153
|
// i.e. the filter predicate always returns true
|
|
154
154
|
{
|
|
155
|
-
inputValue:
|
|
155
|
+
inputValue: Fe && xt ? "" : d,
|
|
156
156
|
getOptionLabel: P
|
|
157
157
|
}
|
|
158
|
-
) : [],
|
|
158
|
+
) : [], z = Kt({
|
|
159
159
|
filteredOptions: m,
|
|
160
|
-
value:
|
|
160
|
+
value: l,
|
|
161
161
|
inputValue: d
|
|
162
162
|
});
|
|
163
163
|
y.useEffect(() => {
|
|
164
|
-
const t =
|
|
165
|
-
|
|
166
|
-
}, [
|
|
167
|
-
const
|
|
164
|
+
const t = l !== z.value;
|
|
165
|
+
fe && !t || de && !t || ge(null, l, "reset");
|
|
166
|
+
}, [l, ge, fe, z.value, de]);
|
|
167
|
+
const He = q && m.length > 0 && !G, V = We((t) => {
|
|
168
168
|
if (t === -1)
|
|
169
169
|
b.current.focus();
|
|
170
170
|
else {
|
|
171
171
|
const e = L ? "data-item-index" : "data-tag-index";
|
|
172
|
-
|
|
172
|
+
$e.querySelector(`[${e}="${t}"]`).focus();
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
y.useEffect(() => {
|
|
176
|
-
u &&
|
|
177
|
-
}, [
|
|
176
|
+
u && k > l.length - 1 && (K(-1), V(-1));
|
|
177
|
+
}, [l, u, k, V]);
|
|
178
178
|
function Qe(t, e) {
|
|
179
179
|
if (!M.current || t < 0 || t >= m.length)
|
|
180
180
|
return -1;
|
|
181
181
|
let r = t;
|
|
182
182
|
for (; ; ) {
|
|
183
|
-
const a = M.current.querySelector(`[data-option-index="${r}"]`),
|
|
184
|
-
if (a && a.hasAttribute("tabindex") && !
|
|
183
|
+
const a = M.current.querySelector(`[data-option-index="${r}"]`), i = ke ? !1 : !a || a.disabled || a.getAttribute("aria-disabled") === "true";
|
|
184
|
+
if (a && a.hasAttribute("tabindex") && !i)
|
|
185
185
|
return r;
|
|
186
186
|
if (e === "next" ? r = (r + 1) % m.length : r = (r - 1 + m.length) % m.length, r === t)
|
|
187
187
|
return -1;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const _ = We(({
|
|
191
191
|
event: t,
|
|
192
192
|
index: e,
|
|
193
193
|
reason: r
|
|
194
194
|
}) => {
|
|
195
|
-
if (T.current = e, e === -1 ? b.current.removeAttribute("aria-activedescendant") : b.current.setAttribute("aria-activedescendant", `${
|
|
195
|
+
if (T.current = e, e === -1 ? b.current.removeAttribute("aria-activedescendant") : b.current.setAttribute("aria-activedescendant", `${E}-option-${e}`), Ee && ["mouse", "keyboard", "touch"].includes(r) && Ee(t, e === -1 ? null : m[e], r), !M.current)
|
|
196
196
|
return;
|
|
197
197
|
const a = M.current.querySelector(`[role="option"].${g}-focused`);
|
|
198
198
|
a && (a.classList.remove(`${g}-focused`), a.classList.remove(`${g}-focusVisible`));
|
|
199
|
-
let
|
|
200
|
-
if (M.current.getAttribute("role") !== "listbox" && (
|
|
199
|
+
let i = M.current;
|
|
200
|
+
if (M.current.getAttribute("role") !== "listbox" && (i = M.current.parentElement.querySelector('[role="listbox"]')), !i)
|
|
201
201
|
return;
|
|
202
202
|
if (e === -1) {
|
|
203
|
-
|
|
203
|
+
i.scrollTop = 0;
|
|
204
204
|
return;
|
|
205
205
|
}
|
|
206
206
|
const h = M.current.querySelector(`[data-option-index="${e}"]`);
|
|
207
|
-
if (h && (h.classList.add(`${g}-focused`), r === "keyboard" && h.classList.add(`${g}-focusVisible`),
|
|
208
|
-
const I = h,
|
|
209
|
-
|
|
207
|
+
if (h && (h.classList.add(`${g}-focused`), r === "keyboard" && h.classList.add(`${g}-focusVisible`), i.scrollHeight > i.clientHeight && r !== "mouse" && r !== "touch")) {
|
|
208
|
+
const I = h, D = i.clientHeight + i.scrollTop, Ie = I.offsetTop + I.offsetHeight;
|
|
209
|
+
Ie > D ? i.scrollTop = Ie - i.clientHeight : I.offsetTop - I.offsetHeight * (ae ? 1.3 : 0) < i.scrollTop && (i.scrollTop = I.offsetTop - I.offsetHeight * (ae ? 1.3 : 0));
|
|
210
210
|
}
|
|
211
|
-
}), j =
|
|
211
|
+
}), j = We(({
|
|
212
212
|
event: t,
|
|
213
213
|
diff: e,
|
|
214
214
|
direction: r = "next",
|
|
@@ -224,10 +224,10 @@ function oo(n) {
|
|
|
224
224
|
return 0;
|
|
225
225
|
if (e === "end")
|
|
226
226
|
return I;
|
|
227
|
-
const
|
|
228
|
-
return
|
|
227
|
+
const D = T.current + e;
|
|
228
|
+
return D < 0 ? D === -1 && Oe ? -1 : De && T.current !== -1 || Math.abs(e) > 1 ? 0 : I : D > I ? D === I + 1 && Oe ? -1 : De || Math.abs(e) > 1 ? I : 0 : D;
|
|
229
229
|
})(), r);
|
|
230
|
-
if (
|
|
230
|
+
if (_({
|
|
231
231
|
index: h,
|
|
232
232
|
reason: a,
|
|
233
233
|
event: t
|
|
@@ -238,26 +238,26 @@ function oo(n) {
|
|
|
238
238
|
const I = P(m[h]);
|
|
239
239
|
b.current.value = I, I.toLowerCase().indexOf(d.toLowerCase()) === 0 && d.length > 0 && b.current.setSelectionRange(d.length, I.length);
|
|
240
240
|
}
|
|
241
|
-
}),
|
|
242
|
-
array1:
|
|
241
|
+
}), ze = !At({
|
|
242
|
+
array1: z.filteredOptions,
|
|
243
243
|
array2: m,
|
|
244
244
|
parser: P
|
|
245
245
|
}), Ze = () => {
|
|
246
246
|
const t = (e, r) => {
|
|
247
|
-
const a = e ? P(e) : "",
|
|
248
|
-
return a ===
|
|
247
|
+
const a = e ? P(e) : "", i = r ? P(r) : "";
|
|
248
|
+
return a === i;
|
|
249
249
|
};
|
|
250
250
|
if (T.current !== -1 && !At({
|
|
251
|
-
array1:
|
|
251
|
+
array1: z.filteredOptions,
|
|
252
252
|
array2: m,
|
|
253
253
|
parser: P
|
|
254
|
-
}) &&
|
|
255
|
-
const e =
|
|
254
|
+
}) && z.inputValue === d && (u ? l.length === z.value.length && z.value.every((e, r) => P(l[r]) === P(e)) : t(z.value, l))) {
|
|
255
|
+
const e = z.filteredOptions[T.current];
|
|
256
256
|
if (e)
|
|
257
257
|
return m.findIndex((r) => P(r) === P(e));
|
|
258
258
|
}
|
|
259
259
|
return -1;
|
|
260
|
-
},
|
|
260
|
+
}, Te = y.useCallback(() => {
|
|
261
261
|
if (!w)
|
|
262
262
|
return;
|
|
263
263
|
const t = Ze();
|
|
@@ -265,7 +265,7 @@ function oo(n) {
|
|
|
265
265
|
T.current = t;
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
|
-
const e = u ?
|
|
268
|
+
const e = u ? l[0] : l;
|
|
269
269
|
if (m.length === 0 || e == null) {
|
|
270
270
|
j({
|
|
271
271
|
diff: "reset"
|
|
@@ -275,23 +275,23 @@ function oo(n) {
|
|
|
275
275
|
if (M.current) {
|
|
276
276
|
if (e != null) {
|
|
277
277
|
const r = m[T.current];
|
|
278
|
-
if (u && r &&
|
|
278
|
+
if (u && r && l.findIndex((i) => Q(r, i)) !== -1)
|
|
279
279
|
return;
|
|
280
|
-
const a = m.findIndex((
|
|
280
|
+
const a = m.findIndex((i) => Q(i, e));
|
|
281
281
|
a === -1 ? j({
|
|
282
282
|
diff: "reset"
|
|
283
|
-
}) :
|
|
283
|
+
}) : _({
|
|
284
284
|
index: a
|
|
285
285
|
});
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
288
|
if (T.current >= m.length - 1) {
|
|
289
|
-
|
|
289
|
+
_({
|
|
290
290
|
index: m.length - 1
|
|
291
291
|
});
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
|
-
|
|
294
|
+
_({
|
|
295
295
|
index: T.current
|
|
296
296
|
});
|
|
297
297
|
}
|
|
@@ -300,73 +300,72 @@ function oo(n) {
|
|
|
300
300
|
m.length,
|
|
301
301
|
// Don't sync the highlighted index with the value when multiple
|
|
302
302
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
303
|
-
u ? !1 :
|
|
304
|
-
De,
|
|
303
|
+
u ? !1 : l,
|
|
305
304
|
j,
|
|
306
|
-
|
|
305
|
+
_,
|
|
307
306
|
w,
|
|
308
307
|
d,
|
|
309
308
|
u
|
|
310
|
-
]),
|
|
311
|
-
qt(M, t), t &&
|
|
309
|
+
]), ee = We((t) => {
|
|
310
|
+
qt(M, t), t && Te();
|
|
312
311
|
});
|
|
313
312
|
process.env.NODE_ENV !== "production" && y.useEffect(() => {
|
|
314
313
|
(!b.current || b.current.nodeName !== "INPUT") && (b.current && b.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${O} 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(`
|
|
315
314
|
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${b.current} while an HTMLInputElement was expected.`, `Instead, ${O} expects an input element.`, "", O === "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(`
|
|
316
315
|
`)));
|
|
317
316
|
}, [O]), y.useEffect(() => {
|
|
318
|
-
(
|
|
319
|
-
}, [
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
},
|
|
323
|
-
|
|
324
|
-
},
|
|
317
|
+
(ze || w) && Te();
|
|
318
|
+
}, [Te, ze, w]);
|
|
319
|
+
const J = (t) => {
|
|
320
|
+
q || (ie(!0), me(!0), Ne && Ne(t));
|
|
321
|
+
}, se = (t, e) => {
|
|
322
|
+
q && (ie(!1), Je && Je(t, e));
|
|
323
|
+
}, X = (t, e, r, a) => {
|
|
325
324
|
if (u) {
|
|
326
|
-
if (
|
|
325
|
+
if (l.length === e.length && l.every((i, h) => i === e[h]))
|
|
327
326
|
return;
|
|
328
|
-
} else if (
|
|
327
|
+
} else if (l === e)
|
|
329
328
|
return;
|
|
330
|
-
_e && _e(t, e, r, a),
|
|
331
|
-
},
|
|
332
|
-
let
|
|
329
|
+
_e && _e(t, e, r, a), Ae(e);
|
|
330
|
+
}, Y = y.useRef(!1), te = (t, e, r = "selectOption", a = "options") => {
|
|
331
|
+
let i = r, h = e;
|
|
333
332
|
if (u) {
|
|
334
|
-
if (h = Array.isArray(
|
|
335
|
-
const
|
|
336
|
-
|
|
333
|
+
if (h = Array.isArray(l) ? l.slice() : [], process.env.NODE_ENV !== "production") {
|
|
334
|
+
const D = h.filter((Ie) => Q(e, Ie));
|
|
335
|
+
D.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${O} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${D.length} matches.`].join(`
|
|
337
336
|
`));
|
|
338
337
|
}
|
|
339
|
-
const I = h.findIndex((
|
|
340
|
-
I === -1 ? h.push(e) : a !== "freeSolo" && (h.splice(I, 1),
|
|
338
|
+
const I = h.findIndex((D) => Q(e, D));
|
|
339
|
+
I === -1 ? h.push(e) : a !== "freeSolo" && (h.splice(I, 1), i = "removeOption");
|
|
341
340
|
}
|
|
342
|
-
|
|
341
|
+
ge(t, h, i), X(t, h, i, {
|
|
343
342
|
option: e
|
|
344
|
-
}), !
|
|
343
|
+
}), !ce && (!t || !t.ctrlKey && !t.metaKey) && se(t, i), (N === !0 || N === "touch" && Y.current || N === "mouse" && !Y.current) && b.current.blur();
|
|
345
344
|
};
|
|
346
345
|
function et(t, e) {
|
|
347
346
|
if (t === -1)
|
|
348
347
|
return -1;
|
|
349
348
|
let r = t;
|
|
350
349
|
for (; ; ) {
|
|
351
|
-
if (e === "next" && r ===
|
|
350
|
+
if (e === "next" && r === l.length || e === "previous" && r === -1)
|
|
352
351
|
return -1;
|
|
353
|
-
const a = L ? "data-item-index" : "data-tag-index",
|
|
354
|
-
if (!
|
|
352
|
+
const a = L ? "data-item-index" : "data-tag-index", i = $e.querySelector(`[${a}="${r}"]`);
|
|
353
|
+
if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
|
|
355
354
|
r += e === "next" ? 1 : -1;
|
|
356
355
|
else
|
|
357
356
|
return r;
|
|
358
357
|
}
|
|
359
358
|
}
|
|
360
|
-
const
|
|
359
|
+
const pe = (t, e) => {
|
|
361
360
|
if (!u)
|
|
362
361
|
return;
|
|
363
|
-
d === "" &&
|
|
364
|
-
let r =
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
|
|
362
|
+
d === "" && se(t, "toggleInput");
|
|
363
|
+
let r = k;
|
|
364
|
+
k === -1 ? d === "" && e === "previous" && (r = l.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === l.length && (r = -1)), r = et(r, e), K(r), V(r);
|
|
365
|
+
}, je = (t) => {
|
|
366
|
+
Pe.current = !0, le(""), Z && Z(t, "", "clear"), X(t, u ? [] : null, "clear");
|
|
368
367
|
}, tt = (t) => (e) => {
|
|
369
|
-
if (t.onKeyDown && t.onKeyDown(e), !e.defaultMuiPrevented && (
|
|
368
|
+
if (t.onKeyDown && t.onKeyDown(e), !e.defaultMuiPrevented && (k !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (K(-1), V(-1)), e.which !== 229))
|
|
370
369
|
switch (e.key) {
|
|
371
370
|
case "Home":
|
|
372
371
|
w && qe && (e.preventDefault(), j({
|
|
@@ -390,7 +389,7 @@ function oo(n) {
|
|
|
390
389
|
direction: "previous",
|
|
391
390
|
reason: "keyboard",
|
|
392
391
|
event: e
|
|
393
|
-
}),
|
|
392
|
+
}), J(e);
|
|
394
393
|
break;
|
|
395
394
|
case "PageDown":
|
|
396
395
|
e.preventDefault(), j({
|
|
@@ -398,7 +397,7 @@ function oo(n) {
|
|
|
398
397
|
direction: "next",
|
|
399
398
|
reason: "keyboard",
|
|
400
399
|
event: e
|
|
401
|
-
}),
|
|
400
|
+
}), J(e);
|
|
402
401
|
break;
|
|
403
402
|
case "ArrowDown":
|
|
404
403
|
e.preventDefault(), j({
|
|
@@ -406,7 +405,7 @@ function oo(n) {
|
|
|
406
405
|
direction: "next",
|
|
407
406
|
reason: "keyboard",
|
|
408
407
|
event: e
|
|
409
|
-
}),
|
|
408
|
+
}), J(e);
|
|
410
409
|
break;
|
|
411
410
|
case "ArrowUp":
|
|
412
411
|
e.preventDefault(), j({
|
|
@@ -414,129 +413,129 @@ function oo(n) {
|
|
|
414
413
|
direction: "previous",
|
|
415
414
|
reason: "keyboard",
|
|
416
415
|
event: e
|
|
417
|
-
}),
|
|
416
|
+
}), J(e);
|
|
418
417
|
break;
|
|
419
418
|
case "ArrowLeft":
|
|
420
|
-
!u && L ?
|
|
419
|
+
!u && L && l != null ? (K(0), V(0)) : pe(e, "previous");
|
|
421
420
|
break;
|
|
422
421
|
case "ArrowRight":
|
|
423
|
-
!u && L ?
|
|
422
|
+
!u && L ? (K(-1), V(-1)) : pe(e, "next");
|
|
424
423
|
break;
|
|
425
424
|
case "Enter":
|
|
426
425
|
if (T.current !== -1 && w) {
|
|
427
426
|
const r = m[T.current], a = W ? W(r) : !1;
|
|
428
427
|
if (e.preventDefault(), a)
|
|
429
428
|
return;
|
|
430
|
-
|
|
431
|
-
} else
|
|
429
|
+
te(e, r, "selectOption"), f && b.current.setSelectionRange(b.current.value.length, b.current.value.length);
|
|
430
|
+
} else de && d !== "" && Fe === !1 && (u && e.preventDefault(), te(e, d, "createOption", "freeSolo"));
|
|
432
431
|
break;
|
|
433
432
|
case "Escape":
|
|
434
|
-
w ? (e.preventDefault(), e.stopPropagation(),
|
|
433
|
+
w ? (e.preventDefault(), e.stopPropagation(), se(e, "escape")) : U && (d !== "" || u && l.length > 0 || L) && (e.preventDefault(), e.stopPropagation(), je(e));
|
|
435
434
|
break;
|
|
436
435
|
case "Backspace":
|
|
437
|
-
if (u && !G && d === "" &&
|
|
438
|
-
const r =
|
|
439
|
-
a.splice(r, 1),
|
|
440
|
-
option:
|
|
436
|
+
if (u && !G && d === "" && l.length > 0) {
|
|
437
|
+
const r = k === -1 ? l.length - 1 : k, a = l.slice();
|
|
438
|
+
a.splice(r, 1), X(e, a, "removeOption", {
|
|
439
|
+
option: l[r]
|
|
441
440
|
});
|
|
442
441
|
}
|
|
443
|
-
!u && L && !G && (
|
|
442
|
+
!u && L && !G && (Ae(null), K(-1), V(-1));
|
|
444
443
|
break;
|
|
445
444
|
case "Delete":
|
|
446
|
-
if (u && !G && d === "" &&
|
|
447
|
-
const r =
|
|
448
|
-
a.splice(r, 1),
|
|
449
|
-
option:
|
|
445
|
+
if (u && !G && d === "" && l.length > 0 && k !== -1) {
|
|
446
|
+
const r = k, a = l.slice();
|
|
447
|
+
a.splice(r, 1), X(e, a, "removeOption", {
|
|
448
|
+
option: l[r]
|
|
450
449
|
});
|
|
451
450
|
}
|
|
452
|
-
!u && L && !G && (
|
|
451
|
+
!u && L && !G && (Ae(null), K(-1), V(-1));
|
|
453
452
|
break;
|
|
454
453
|
}
|
|
455
|
-
}, me = (t) => {
|
|
456
|
-
Fe(!0), mt && !Oe.current && _(t);
|
|
457
454
|
}, he = (t) => {
|
|
455
|
+
Ve(!0), k !== -1 && (K(-1), V(-1)), mt && !Pe.current && J(t);
|
|
456
|
+
}, be = (t) => {
|
|
458
457
|
if (p(M)) {
|
|
459
458
|
b.current.focus();
|
|
460
459
|
return;
|
|
461
460
|
}
|
|
462
|
-
|
|
463
|
-
},
|
|
461
|
+
Ve(!1), Ce.current = !0, Pe.current = !1, F && T.current !== -1 && w ? te(t, m[T.current], "blur") : F && de && d !== "" ? te(t, d, "blur", "freeSolo") : R && ge(t, l, "blur"), se(t, "blur");
|
|
462
|
+
}, we = (t) => {
|
|
464
463
|
const e = t.target.value;
|
|
465
|
-
d !== e && (
|
|
464
|
+
d !== e && (le(e), me(!1), Z && Z(t, e, "input")), e === "" ? !H && !u && X(t, null, "clear") : J(t);
|
|
466
465
|
}, ot = (t) => {
|
|
467
466
|
const e = Number(t.currentTarget.getAttribute("data-option-index"));
|
|
468
|
-
T.current !== e &&
|
|
467
|
+
T.current !== e && _({
|
|
469
468
|
event: t,
|
|
470
469
|
index: e,
|
|
471
470
|
reason: "mouse"
|
|
472
471
|
});
|
|
473
472
|
}, nt = (t) => {
|
|
474
|
-
|
|
473
|
+
_({
|
|
475
474
|
event: t,
|
|
476
475
|
index: Number(t.currentTarget.getAttribute("data-option-index")),
|
|
477
476
|
reason: "touch"
|
|
478
|
-
}),
|
|
477
|
+
}), Y.current = !0;
|
|
479
478
|
}, rt = (t) => {
|
|
480
479
|
const e = Number(t.currentTarget.getAttribute("data-option-index"));
|
|
481
|
-
|
|
480
|
+
te(t, m[e], "selectOption"), Y.current = !1;
|
|
482
481
|
}, at = (t) => (e) => {
|
|
483
|
-
const r =
|
|
484
|
-
r.splice(t, 1),
|
|
485
|
-
option:
|
|
482
|
+
const r = l.slice();
|
|
483
|
+
r.splice(t, 1), X(e, r, "removeOption", {
|
|
484
|
+
option: l[t]
|
|
486
485
|
});
|
|
487
|
-
},
|
|
488
|
-
|
|
489
|
-
option:
|
|
486
|
+
}, Se = (t) => {
|
|
487
|
+
X(t, null, "removeOption", {
|
|
488
|
+
option: l
|
|
490
489
|
});
|
|
491
490
|
}, x = (t) => {
|
|
492
|
-
|
|
491
|
+
q ? se(t, "toggleInput") : J(t);
|
|
493
492
|
}, C = (t) => {
|
|
494
|
-
t.currentTarget.contains(t.target) && t.target.getAttribute("id") !==
|
|
495
|
-
},
|
|
496
|
-
t.currentTarget.contains(t.target) && (b.current.focus(), Xe &&
|
|
493
|
+
t.currentTarget.contains(t.target) && t.target.getAttribute("id") !== E && t.preventDefault();
|
|
494
|
+
}, oe = (t) => {
|
|
495
|
+
t.currentTarget.contains(t.target) && (b.current.focus(), Xe && Ce.current && b.current.selectionEnd - b.current.selectionStart === 0 && b.current.select(), Ce.current = !1);
|
|
497
496
|
}, lt = (t) => {
|
|
498
|
-
!v && (d === "" || !
|
|
497
|
+
!v && (d === "" || !q) && x(t);
|
|
499
498
|
};
|
|
500
|
-
let
|
|
501
|
-
|
|
502
|
-
let
|
|
503
|
-
if (
|
|
499
|
+
let ve = de && d.length > 0;
|
|
500
|
+
ve = ve || (u ? l.length > 0 : l !== null);
|
|
501
|
+
let Be = m;
|
|
502
|
+
if (ae) {
|
|
504
503
|
const t = /* @__PURE__ */ new Map();
|
|
505
504
|
let e = !1;
|
|
506
|
-
|
|
507
|
-
const h =
|
|
505
|
+
Be = m.reduce((r, a, i) => {
|
|
506
|
+
const h = ae(a);
|
|
508
507
|
return r.length > 0 && r[r.length - 1].group === h ? r[r.length - 1].options.push(a) : (process.env.NODE_ENV !== "production" && (t.get(h) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${O} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), t.set(h, !0)), r.push({
|
|
509
|
-
key:
|
|
510
|
-
index:
|
|
508
|
+
key: i,
|
|
509
|
+
index: i,
|
|
511
510
|
group: h,
|
|
512
511
|
options: [a]
|
|
513
512
|
})), r;
|
|
514
513
|
}, []);
|
|
515
514
|
}
|
|
516
|
-
return v &&
|
|
515
|
+
return v && fe && be(), {
|
|
517
516
|
getRootProps: (t = {}) => ({
|
|
518
517
|
...t,
|
|
519
518
|
onKeyDown: tt(t),
|
|
520
519
|
onMouseDown: C,
|
|
521
|
-
onClick:
|
|
520
|
+
onClick: oe
|
|
522
521
|
}),
|
|
523
522
|
getInputLabelProps: () => ({
|
|
524
|
-
id: `${
|
|
525
|
-
htmlFor:
|
|
523
|
+
id: `${E}-label`,
|
|
524
|
+
htmlFor: E
|
|
526
525
|
}),
|
|
527
526
|
getInputProps: () => ({
|
|
528
|
-
id:
|
|
527
|
+
id: E,
|
|
529
528
|
value: d,
|
|
530
|
-
onBlur:
|
|
531
|
-
onFocus:
|
|
532
|
-
onChange:
|
|
529
|
+
onBlur: be,
|
|
530
|
+
onFocus: he,
|
|
531
|
+
onChange: we,
|
|
533
532
|
onMouseDown: lt,
|
|
534
533
|
// if open then this is handled imperatively so don't let react override
|
|
535
534
|
// only have an opinion about this when closed
|
|
536
535
|
"aria-activedescendant": w ? "" : null,
|
|
537
536
|
"aria-autocomplete": f ? "both" : "list",
|
|
538
|
-
"aria-controls":
|
|
539
|
-
"aria-expanded":
|
|
537
|
+
"aria-controls": He ? `${E}-listbox` : void 0,
|
|
538
|
+
"aria-expanded": He,
|
|
540
539
|
// Disable browser's suggestion that might overlap with the popup.
|
|
541
540
|
// Handle autocomplete but not autofill.
|
|
542
541
|
autoComplete: "off",
|
|
@@ -549,7 +548,7 @@ function oo(n) {
|
|
|
549
548
|
getClearProps: () => ({
|
|
550
549
|
tabIndex: -1,
|
|
551
550
|
type: "button",
|
|
552
|
-
onClick:
|
|
551
|
+
onClick: je
|
|
553
552
|
}),
|
|
554
553
|
getItemProps: ({
|
|
555
554
|
index: t = 0
|
|
@@ -564,7 +563,7 @@ function oo(n) {
|
|
|
564
563
|
},
|
|
565
564
|
tabIndex: -1,
|
|
566
565
|
...!G && {
|
|
567
|
-
onDelete: u ? at(t) :
|
|
566
|
+
onDelete: u ? at(t) : Se
|
|
568
567
|
}
|
|
569
568
|
}),
|
|
570
569
|
getPopupIndicatorProps: () => ({
|
|
@@ -585,9 +584,9 @@ function oo(n) {
|
|
|
585
584
|
}),
|
|
586
585
|
getListboxProps: () => ({
|
|
587
586
|
role: "listbox",
|
|
588
|
-
id: `${
|
|
589
|
-
"aria-labelledby": `${
|
|
590
|
-
ref:
|
|
587
|
+
id: `${E}-listbox`,
|
|
588
|
+
"aria-labelledby": `${E}-label`,
|
|
589
|
+
ref: ee,
|
|
591
590
|
onMouseDown: (t) => {
|
|
592
591
|
t.preventDefault();
|
|
593
592
|
}
|
|
@@ -596,12 +595,12 @@ function oo(n) {
|
|
|
596
595
|
index: t,
|
|
597
596
|
option: e
|
|
598
597
|
}) => {
|
|
599
|
-
const r = (u ?
|
|
598
|
+
const r = (u ? l : [l]).some((i) => i != null && Q(e, i)), a = W ? W(e) : !1;
|
|
600
599
|
return {
|
|
601
600
|
key: dt?.(e) ?? P(e),
|
|
602
601
|
tabIndex: -1,
|
|
603
602
|
role: "option",
|
|
604
|
-
id: `${
|
|
603
|
+
id: `${E}-option-${t}`,
|
|
605
604
|
onMouseMove: ot,
|
|
606
605
|
onClick: rt,
|
|
607
606
|
onTouchStart: nt,
|
|
@@ -610,19 +609,19 @@ function oo(n) {
|
|
|
610
609
|
"aria-selected": r
|
|
611
610
|
};
|
|
612
611
|
},
|
|
613
|
-
id:
|
|
612
|
+
id: E,
|
|
614
613
|
inputValue: d,
|
|
615
|
-
value:
|
|
616
|
-
dirty:
|
|
617
|
-
expanded: w &&
|
|
614
|
+
value: l,
|
|
615
|
+
dirty: ve,
|
|
616
|
+
expanded: w && $e,
|
|
618
617
|
popupOpen: w,
|
|
619
|
-
focused:
|
|
620
|
-
anchorEl:
|
|
618
|
+
focused: fe || k !== -1,
|
|
619
|
+
anchorEl: $e,
|
|
621
620
|
setAnchorEl: bt,
|
|
622
|
-
focusedItem:
|
|
621
|
+
focusedItem: k,
|
|
623
622
|
// deprecated
|
|
624
|
-
focusedTag:
|
|
625
|
-
groupedOptions:
|
|
623
|
+
focusedTag: k,
|
|
624
|
+
groupedOptions: Be
|
|
626
625
|
};
|
|
627
626
|
}
|
|
628
627
|
function no(n) {
|
|
@@ -636,14 +635,14 @@ const ro = (n) => {
|
|
|
636
635
|
disablePortal: g,
|
|
637
636
|
expanded: f,
|
|
638
637
|
focused: S,
|
|
639
|
-
fullWidth:
|
|
638
|
+
fullWidth: F,
|
|
640
639
|
hasClearIcon: N,
|
|
641
|
-
hasPopupIcon:
|
|
640
|
+
hasPopupIcon: R,
|
|
642
641
|
inputFocused: U,
|
|
643
642
|
popupOpen: O,
|
|
644
643
|
size: A
|
|
645
|
-
} = n,
|
|
646
|
-
root: ["root", f && "expanded", S && "focused",
|
|
644
|
+
} = n, H = {
|
|
645
|
+
root: ["root", f && "expanded", S && "focused", F && "fullWidth", N && "hasClearIcon", R && "hasPopupIcon"],
|
|
647
646
|
inputRoot: ["inputRoot"],
|
|
648
647
|
input: ["input", U && "inputFocused"],
|
|
649
648
|
tag: ["tag", `tagSize${Et(A)}`],
|
|
@@ -659,7 +658,7 @@ const ro = (n) => {
|
|
|
659
658
|
groupLabel: ["groupLabel"],
|
|
660
659
|
groupUl: ["groupUl"]
|
|
661
660
|
};
|
|
662
|
-
return Jt(
|
|
661
|
+
return Jt(H, no, p);
|
|
663
662
|
}, ao = B("div", {
|
|
664
663
|
name: "MuiAutocomplete",
|
|
665
664
|
slot: "Root",
|
|
@@ -669,21 +668,21 @@ const ro = (n) => {
|
|
|
669
668
|
} = n, {
|
|
670
669
|
fullWidth: f,
|
|
671
670
|
hasClearIcon: S,
|
|
672
|
-
hasPopupIcon:
|
|
671
|
+
hasPopupIcon: F,
|
|
673
672
|
inputFocused: N,
|
|
674
|
-
size:
|
|
673
|
+
size: R
|
|
675
674
|
} = g;
|
|
676
675
|
return [{
|
|
677
676
|
[`& .${s.tag}`]: p.tag
|
|
678
677
|
}, {
|
|
679
|
-
[`& .${s.tag}`]: p[`tagSize${Et(
|
|
678
|
+
[`& .${s.tag}`]: p[`tagSize${Et(R)}`]
|
|
680
679
|
}, {
|
|
681
680
|
[`& .${s.inputRoot}`]: p.inputRoot
|
|
682
681
|
}, {
|
|
683
682
|
[`& .${s.input}`]: p.input
|
|
684
683
|
}, {
|
|
685
684
|
[`& .${s.input}`]: N && p.inputFocused
|
|
686
|
-
}, p.root, f && p.fullWidth,
|
|
685
|
+
}, p.root, f && p.fullWidth, F && p.hasPopupIcon, S && p.hasClearIcon];
|
|
687
686
|
}
|
|
688
687
|
})({
|
|
689
688
|
[`&.${s.focused} .${s.clearIndicator}`]: {
|
|
@@ -717,7 +716,7 @@ const ro = (n) => {
|
|
|
717
716
|
padding: "4px 4px 4px 0px"
|
|
718
717
|
}
|
|
719
718
|
},
|
|
720
|
-
[`& .${st.root}.${
|
|
719
|
+
[`& .${st.root}.${ue.sizeSmall}`]: {
|
|
721
720
|
[`& .${st.input}`]: {
|
|
722
721
|
padding: "2px 4px 3px 0"
|
|
723
722
|
}
|
|
@@ -737,7 +736,7 @@ const ro = (n) => {
|
|
|
737
736
|
right: 9
|
|
738
737
|
}
|
|
739
738
|
},
|
|
740
|
-
[`& .${Ct.root}.${
|
|
739
|
+
[`& .${Ct.root}.${ue.sizeSmall}`]: {
|
|
741
740
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
742
741
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
743
742
|
paddingTop: 6,
|
|
@@ -747,7 +746,7 @@ const ro = (n) => {
|
|
|
747
746
|
padding: "2.5px 4px 2.5px 8px"
|
|
748
747
|
}
|
|
749
748
|
},
|
|
750
|
-
[`& .${
|
|
749
|
+
[`& .${xe.root}`]: {
|
|
751
750
|
paddingTop: 19,
|
|
752
751
|
paddingLeft: 8,
|
|
753
752
|
[`.${s.hasPopupIcon}&, .${s.hasClearIcon}&`]: {
|
|
@@ -756,23 +755,23 @@ const ro = (n) => {
|
|
|
756
755
|
[`.${s.hasPopupIcon}.${s.hasClearIcon}&`]: {
|
|
757
756
|
paddingRight: 65
|
|
758
757
|
},
|
|
759
|
-
[`& .${
|
|
758
|
+
[`& .${xe.input}`]: {
|
|
760
759
|
padding: "7px 4px"
|
|
761
760
|
},
|
|
762
761
|
[`& .${s.endAdornment}`]: {
|
|
763
762
|
right: 9
|
|
764
763
|
}
|
|
765
764
|
},
|
|
766
|
-
[`& .${
|
|
765
|
+
[`& .${xe.root}.${ue.sizeSmall}`]: {
|
|
767
766
|
paddingBottom: 1,
|
|
768
|
-
[`& .${
|
|
767
|
+
[`& .${xe.input}`]: {
|
|
769
768
|
padding: "2.5px 4px"
|
|
770
769
|
}
|
|
771
770
|
},
|
|
772
|
-
[`& .${
|
|
771
|
+
[`& .${ue.hiddenLabel}`]: {
|
|
773
772
|
paddingTop: 8
|
|
774
773
|
},
|
|
775
|
-
[`& .${
|
|
774
|
+
[`& .${xe.root}.${ue.hiddenLabel}`]: {
|
|
776
775
|
paddingTop: 0,
|
|
777
776
|
paddingBottom: 0,
|
|
778
777
|
[`& .${s.input}`]: {
|
|
@@ -780,7 +779,7 @@ const ro = (n) => {
|
|
|
780
779
|
paddingBottom: 17
|
|
781
780
|
}
|
|
782
781
|
},
|
|
783
|
-
[`& .${
|
|
782
|
+
[`& .${xe.root}.${ue.hiddenLabel}.${ue.sizeSmall}`]: {
|
|
784
783
|
[`& .${s.input}`]: {
|
|
785
784
|
paddingTop: 8,
|
|
786
785
|
paddingBottom: 9
|
|
@@ -874,7 +873,7 @@ const ro = (n) => {
|
|
|
874
873
|
[`& .${s.option}`]: p.option
|
|
875
874
|
}, p.popper, g.disablePortal && p.popperDisablePortal];
|
|
876
875
|
}
|
|
877
|
-
})(
|
|
876
|
+
})(ye(({
|
|
878
877
|
theme: n
|
|
879
878
|
}) => ({
|
|
880
879
|
zIndex: (n.vars || n).zIndex.modal,
|
|
@@ -889,7 +888,7 @@ const ro = (n) => {
|
|
|
889
888
|
}))), uo = B(Dt, {
|
|
890
889
|
name: "MuiAutocomplete",
|
|
891
890
|
slot: "Paper"
|
|
892
|
-
})(
|
|
891
|
+
})(ye(({
|
|
893
892
|
theme: n
|
|
894
893
|
}) => ({
|
|
895
894
|
...n.typography.body1,
|
|
@@ -897,7 +896,7 @@ const ro = (n) => {
|
|
|
897
896
|
}))), co = B("div", {
|
|
898
897
|
name: "MuiAutocomplete",
|
|
899
898
|
slot: "Loading"
|
|
900
|
-
})(
|
|
899
|
+
})(ye(({
|
|
901
900
|
theme: n
|
|
902
901
|
}) => ({
|
|
903
902
|
color: (n.vars || n).palette.text.secondary,
|
|
@@ -905,7 +904,7 @@ const ro = (n) => {
|
|
|
905
904
|
}))), fo = B("div", {
|
|
906
905
|
name: "MuiAutocomplete",
|
|
907
906
|
slot: "NoOptions"
|
|
908
|
-
})(
|
|
907
|
+
})(ye(({
|
|
909
908
|
theme: n
|
|
910
909
|
}) => ({
|
|
911
910
|
color: (n.vars || n).palette.text.secondary,
|
|
@@ -913,7 +912,7 @@ const ro = (n) => {
|
|
|
913
912
|
}))), go = B("ul", {
|
|
914
913
|
name: "MuiAutocomplete",
|
|
915
914
|
slot: "Listbox"
|
|
916
|
-
})(
|
|
915
|
+
})(ye(({
|
|
917
916
|
theme: n
|
|
918
917
|
}) => ({
|
|
919
918
|
listStyle: "none",
|
|
@@ -970,7 +969,7 @@ const ro = (n) => {
|
|
|
970
969
|
}))), mo = B(Xt, {
|
|
971
970
|
name: "MuiAutocomplete",
|
|
972
971
|
slot: "GroupLabel"
|
|
973
|
-
})(
|
|
972
|
+
})(ye(({
|
|
974
973
|
theme: n
|
|
975
974
|
}) => ({
|
|
976
975
|
backgroundColor: (n.vars || n).palette.background.paper,
|
|
@@ -989,36 +988,36 @@ const ro = (n) => {
|
|
|
989
988
|
name: "MuiAutocomplete"
|
|
990
989
|
}), {
|
|
991
990
|
autoComplete: S = !1,
|
|
992
|
-
autoHighlight:
|
|
991
|
+
autoHighlight: F = !1,
|
|
993
992
|
autoSelect: N = !1,
|
|
994
|
-
blurOnSelect:
|
|
993
|
+
blurOnSelect: R = !1,
|
|
995
994
|
ChipProps: U,
|
|
996
995
|
className: O,
|
|
997
996
|
clearIcon: A = vt || (vt = /* @__PURE__ */ $(Bt, {
|
|
998
997
|
fontSize: "small"
|
|
999
998
|
})),
|
|
1000
|
-
clearOnBlur:
|
|
1001
|
-
clearOnEscape:
|
|
999
|
+
clearOnBlur: H = !f.freeSolo,
|
|
1000
|
+
clearOnEscape: ce = !1,
|
|
1002
1001
|
clearText: v = "Clear",
|
|
1003
|
-
closeText:
|
|
1004
|
-
componentsProps:
|
|
1002
|
+
closeText: ke = "Close",
|
|
1003
|
+
componentsProps: De,
|
|
1005
1004
|
defaultValue: ct = f.multiple ? [] : null,
|
|
1006
|
-
disableClearable:
|
|
1007
|
-
disableCloseOnSelect:
|
|
1005
|
+
disableClearable: Ge = !1,
|
|
1006
|
+
disableCloseOnSelect: de = !1,
|
|
1008
1007
|
disabled: W = !1,
|
|
1009
1008
|
disabledItemsFocusable: dt = !1,
|
|
1010
1009
|
disableListWrap: Ke = !1,
|
|
1011
|
-
disablePortal:
|
|
1010
|
+
disablePortal: ae = !1,
|
|
1012
1011
|
filterOptions: qe,
|
|
1013
1012
|
filterSelectedOptions: ft = !1,
|
|
1014
|
-
forcePopupIcon:
|
|
1013
|
+
forcePopupIcon: Oe = "auto",
|
|
1015
1014
|
freeSolo: Re = !1,
|
|
1016
|
-
fullWidth:
|
|
1015
|
+
fullWidth: Q = !1,
|
|
1017
1016
|
getLimitTagsText: u = (c) => `+${c}`,
|
|
1018
1017
|
getOptionDisabled: _e,
|
|
1019
1018
|
getOptionKey: Je,
|
|
1020
1019
|
getOptionLabel: Ee,
|
|
1021
|
-
isOptionEqualToValue:
|
|
1020
|
+
isOptionEqualToValue: Z,
|
|
1022
1021
|
groupBy: Ne,
|
|
1023
1022
|
handleHomeEndKeys: gt = !f.freeSolo,
|
|
1024
1023
|
id: mt,
|
|
@@ -1027,140 +1026,140 @@ const ro = (n) => {
|
|
|
1027
1026
|
limitTags: L = -1,
|
|
1028
1027
|
ListboxComponent: Xe,
|
|
1029
1028
|
ListboxProps: Me,
|
|
1030
|
-
loading:
|
|
1029
|
+
loading: E = !1,
|
|
1031
1030
|
loadingText: P = "Loading…",
|
|
1032
|
-
multiple:
|
|
1033
|
-
noOptionsText:
|
|
1031
|
+
multiple: Pe = !1,
|
|
1032
|
+
noOptionsText: Ce = "No options",
|
|
1034
1033
|
onChange: b,
|
|
1035
1034
|
onClose: M,
|
|
1036
|
-
onHighlightChange:
|
|
1035
|
+
onHighlightChange: $e,
|
|
1037
1036
|
onInputChange: bt,
|
|
1038
|
-
onOpen:
|
|
1039
|
-
open:
|
|
1037
|
+
onOpen: k,
|
|
1038
|
+
open: K,
|
|
1040
1039
|
openOnFocus: Ye = !1,
|
|
1041
1040
|
openText: T = "Open",
|
|
1042
1041
|
options: It,
|
|
1043
|
-
PaperComponent:
|
|
1044
|
-
PopperComponent:
|
|
1042
|
+
PaperComponent: l,
|
|
1043
|
+
PopperComponent: Ae,
|
|
1045
1044
|
popupIcon: d = Lt || (Lt = /* @__PURE__ */ $(jt, {})),
|
|
1046
|
-
readOnly:
|
|
1047
|
-
renderGroup:
|
|
1048
|
-
renderInput:
|
|
1049
|
-
renderOption:
|
|
1050
|
-
renderTags:
|
|
1051
|
-
renderValue:
|
|
1045
|
+
readOnly: le = !1,
|
|
1046
|
+
renderGroup: fe,
|
|
1047
|
+
renderInput: Ve,
|
|
1048
|
+
renderOption: ge,
|
|
1049
|
+
renderTags: q,
|
|
1050
|
+
renderValue: ie,
|
|
1052
1051
|
selectOnFocus: xt = !f.freeSolo,
|
|
1053
|
-
size:
|
|
1054
|
-
slots:
|
|
1052
|
+
size: me = "medium",
|
|
1053
|
+
slots: Fe = {},
|
|
1055
1054
|
slotProps: w = {},
|
|
1056
1055
|
value: m,
|
|
1057
|
-
...
|
|
1056
|
+
...z
|
|
1058
1057
|
} = f, {
|
|
1059
|
-
getRootProps:
|
|
1060
|
-
getInputProps:
|
|
1058
|
+
getRootProps: He,
|
|
1059
|
+
getInputProps: V,
|
|
1061
1060
|
getInputLabelProps: Qe,
|
|
1062
|
-
getPopupIndicatorProps:
|
|
1061
|
+
getPopupIndicatorProps: _,
|
|
1063
1062
|
getClearProps: j,
|
|
1064
|
-
getItemProps:
|
|
1063
|
+
getItemProps: ze,
|
|
1065
1064
|
getListboxProps: Ze,
|
|
1066
|
-
getOptionProps:
|
|
1067
|
-
value:
|
|
1068
|
-
dirty:
|
|
1069
|
-
expanded:
|
|
1070
|
-
id:
|
|
1071
|
-
popupOpen:
|
|
1072
|
-
focused:
|
|
1065
|
+
getOptionProps: Te,
|
|
1066
|
+
value: ee,
|
|
1067
|
+
dirty: J,
|
|
1068
|
+
expanded: se,
|
|
1069
|
+
id: X,
|
|
1070
|
+
popupOpen: Y,
|
|
1071
|
+
focused: te,
|
|
1073
1072
|
focusedItem: et,
|
|
1074
|
-
anchorEl:
|
|
1075
|
-
setAnchorEl:
|
|
1073
|
+
anchorEl: pe,
|
|
1074
|
+
setAnchorEl: je,
|
|
1076
1075
|
inputValue: tt,
|
|
1077
|
-
groupedOptions:
|
|
1076
|
+
groupedOptions: he
|
|
1078
1077
|
} = oo({
|
|
1079
1078
|
...f,
|
|
1080
1079
|
componentName: "Autocomplete"
|
|
1081
|
-
}),
|
|
1080
|
+
}), be = !Ge && !W && J && !le, we = (!Re || Oe === !0) && Oe !== !1, {
|
|
1082
1081
|
onMouseDown: ot
|
|
1083
|
-
} =
|
|
1082
|
+
} = V(), {
|
|
1084
1083
|
ref: nt,
|
|
1085
1084
|
...rt
|
|
1086
|
-
} = Ze(),
|
|
1085
|
+
} = Ze(), Se = Ee || ((c) => c.label ?? c), x = {
|
|
1087
1086
|
...f,
|
|
1088
|
-
disablePortal:
|
|
1089
|
-
expanded:
|
|
1090
|
-
focused:
|
|
1091
|
-
fullWidth:
|
|
1092
|
-
getOptionLabel:
|
|
1093
|
-
hasClearIcon:
|
|
1094
|
-
hasPopupIcon:
|
|
1087
|
+
disablePortal: ae,
|
|
1088
|
+
expanded: se,
|
|
1089
|
+
focused: te,
|
|
1090
|
+
fullWidth: Q,
|
|
1091
|
+
getOptionLabel: Se,
|
|
1092
|
+
hasClearIcon: be,
|
|
1093
|
+
hasPopupIcon: we,
|
|
1095
1094
|
inputFocused: et === -1,
|
|
1096
|
-
popupOpen:
|
|
1097
|
-
size:
|
|
1098
|
-
}, C = ro(x),
|
|
1095
|
+
popupOpen: Y,
|
|
1096
|
+
size: me
|
|
1097
|
+
}, C = ro(x), oe = {
|
|
1099
1098
|
slots: {
|
|
1100
|
-
paper:
|
|
1101
|
-
popper:
|
|
1102
|
-
...
|
|
1099
|
+
paper: l,
|
|
1100
|
+
popper: Ae,
|
|
1101
|
+
...Fe
|
|
1103
1102
|
},
|
|
1104
1103
|
slotProps: {
|
|
1105
1104
|
chip: U,
|
|
1106
1105
|
listbox: Me,
|
|
1107
|
-
...
|
|
1106
|
+
...De,
|
|
1108
1107
|
...w
|
|
1109
1108
|
}
|
|
1110
|
-
}, [lt,
|
|
1109
|
+
}, [lt, ve] = pt("listbox", {
|
|
1111
1110
|
elementType: go,
|
|
1112
|
-
externalForwardedProps:
|
|
1111
|
+
externalForwardedProps: oe,
|
|
1113
1112
|
ownerState: x,
|
|
1114
1113
|
className: C.listbox,
|
|
1115
1114
|
additionalProps: rt,
|
|
1116
1115
|
ref: nt
|
|
1117
|
-
}), [
|
|
1116
|
+
}), [Be, t] = pt("paper", {
|
|
1118
1117
|
elementType: Dt,
|
|
1119
|
-
externalForwardedProps:
|
|
1118
|
+
externalForwardedProps: oe,
|
|
1120
1119
|
ownerState: x,
|
|
1121
1120
|
className: C.paper
|
|
1122
1121
|
}), [e, r] = pt("popper", {
|
|
1123
1122
|
elementType: Rt,
|
|
1124
|
-
externalForwardedProps:
|
|
1123
|
+
externalForwardedProps: oe,
|
|
1125
1124
|
ownerState: x,
|
|
1126
1125
|
className: C.popper,
|
|
1127
1126
|
additionalProps: {
|
|
1128
|
-
disablePortal:
|
|
1127
|
+
disablePortal: ae,
|
|
1129
1128
|
style: {
|
|
1130
|
-
width:
|
|
1129
|
+
width: pe ? pe.clientWidth : null
|
|
1131
1130
|
},
|
|
1132
1131
|
role: "presentation",
|
|
1133
|
-
anchorEl:
|
|
1134
|
-
open:
|
|
1132
|
+
anchorEl: pe,
|
|
1133
|
+
open: Y
|
|
1135
1134
|
}
|
|
1136
1135
|
});
|
|
1137
1136
|
let a;
|
|
1138
|
-
const
|
|
1137
|
+
const i = (c) => ({
|
|
1139
1138
|
className: C.tag,
|
|
1140
1139
|
disabled: W,
|
|
1141
|
-
...
|
|
1140
|
+
...ze(c)
|
|
1142
1141
|
});
|
|
1143
|
-
if (
|
|
1142
|
+
if (Pe ? ee.length > 0 && (q ? a = q(ee, i, x) : ie ? a = ie(ee, i, x) : a = ee.map((c, ne) => {
|
|
1144
1143
|
const {
|
|
1145
|
-
key:
|
|
1146
|
-
...
|
|
1147
|
-
} =
|
|
1148
|
-
index:
|
|
1144
|
+
key: re,
|
|
1145
|
+
...Le
|
|
1146
|
+
} = i({
|
|
1147
|
+
index: ne
|
|
1149
1148
|
});
|
|
1150
1149
|
return /* @__PURE__ */ $(_t, {
|
|
1151
|
-
label:
|
|
1152
|
-
size:
|
|
1153
|
-
...
|
|
1154
|
-
...
|
|
1155
|
-
},
|
|
1156
|
-
})) :
|
|
1150
|
+
label: Se(c),
|
|
1151
|
+
size: me,
|
|
1152
|
+
...Le,
|
|
1153
|
+
...oe.slotProps.chip
|
|
1154
|
+
}, re);
|
|
1155
|
+
})) : ie && ee != null && (a = ie(ee, i, x)), L > -1 && Array.isArray(a)) {
|
|
1157
1156
|
const c = a.length - L;
|
|
1158
|
-
!
|
|
1157
|
+
!te && c > 0 && (a = a.splice(0, L), a.push(/* @__PURE__ */ $("span", {
|
|
1159
1158
|
className: C.tag,
|
|
1160
1159
|
children: u(c)
|
|
1161
1160
|
}, a.length)));
|
|
1162
1161
|
}
|
|
1163
|
-
const I =
|
|
1162
|
+
const I = fe || ((c) => /* @__PURE__ */ Ue("li", {
|
|
1164
1163
|
children: [/* @__PURE__ */ $(mo, {
|
|
1165
1164
|
className: C.groupLabel,
|
|
1166
1165
|
ownerState: x,
|
|
@@ -1171,53 +1170,53 @@ const ro = (n) => {
|
|
|
1171
1170
|
ownerState: x,
|
|
1172
1171
|
children: c.children
|
|
1173
1172
|
})]
|
|
1174
|
-
}, c.key)),
|
|
1173
|
+
}, c.key)), Ie = ge || ((c, ne) => {
|
|
1175
1174
|
const {
|
|
1176
|
-
key:
|
|
1177
|
-
...
|
|
1175
|
+
key: re,
|
|
1176
|
+
...Le
|
|
1178
1177
|
} = c;
|
|
1179
1178
|
return /* @__PURE__ */ $("li", {
|
|
1180
|
-
...
|
|
1181
|
-
children:
|
|
1182
|
-
},
|
|
1183
|
-
}), yt = (c,
|
|
1184
|
-
const
|
|
1179
|
+
...Le,
|
|
1180
|
+
children: Se(ne)
|
|
1181
|
+
}, re);
|
|
1182
|
+
}), yt = (c, ne) => {
|
|
1183
|
+
const re = Te({
|
|
1185
1184
|
option: c,
|
|
1186
|
-
index:
|
|
1185
|
+
index: ne
|
|
1187
1186
|
});
|
|
1188
|
-
return
|
|
1189
|
-
...
|
|
1187
|
+
return Ie({
|
|
1188
|
+
...re,
|
|
1190
1189
|
className: C.option
|
|
1191
1190
|
}, c, {
|
|
1192
|
-
selected:
|
|
1193
|
-
index:
|
|
1191
|
+
selected: re["aria-selected"],
|
|
1192
|
+
index: ne,
|
|
1194
1193
|
inputValue: tt
|
|
1195
1194
|
}, x);
|
|
1196
|
-
}, Ot =
|
|
1197
|
-
return /* @__PURE__ */
|
|
1195
|
+
}, Ot = oe.slotProps.clearIndicator, Pt = oe.slotProps.popupIndicator;
|
|
1196
|
+
return /* @__PURE__ */ Ue(y.Fragment, {
|
|
1198
1197
|
children: [/* @__PURE__ */ $(ao, {
|
|
1199
1198
|
ref: g,
|
|
1200
1199
|
className: it(C.root, O),
|
|
1201
1200
|
ownerState: x,
|
|
1202
|
-
...
|
|
1203
|
-
children:
|
|
1204
|
-
id:
|
|
1201
|
+
...He(z),
|
|
1202
|
+
children: Ve({
|
|
1203
|
+
id: X,
|
|
1205
1204
|
disabled: W,
|
|
1206
1205
|
fullWidth: !0,
|
|
1207
|
-
size:
|
|
1206
|
+
size: me === "small" ? "small" : void 0,
|
|
1208
1207
|
InputLabelProps: Qe(),
|
|
1209
1208
|
InputProps: {
|
|
1210
|
-
ref:
|
|
1209
|
+
ref: je,
|
|
1211
1210
|
className: C.inputRoot,
|
|
1212
1211
|
startAdornment: a,
|
|
1213
1212
|
onMouseDown: (c) => {
|
|
1214
1213
|
c.target === c.currentTarget && ot(c);
|
|
1215
1214
|
},
|
|
1216
|
-
...(
|
|
1217
|
-
endAdornment: /* @__PURE__ */
|
|
1215
|
+
...(be || we) && {
|
|
1216
|
+
endAdornment: /* @__PURE__ */ Ue(lo, {
|
|
1218
1217
|
className: C.endAdornment,
|
|
1219
1218
|
ownerState: x,
|
|
1220
|
-
children: [
|
|
1219
|
+
children: [be ? /* @__PURE__ */ $(io, {
|
|
1221
1220
|
...j(),
|
|
1222
1221
|
"aria-label": v,
|
|
1223
1222
|
title: v,
|
|
@@ -1225,11 +1224,11 @@ const ro = (n) => {
|
|
|
1225
1224
|
...Ot,
|
|
1226
1225
|
className: it(C.clearIndicator, Ot?.className),
|
|
1227
1226
|
children: A
|
|
1228
|
-
}) : null,
|
|
1229
|
-
...
|
|
1227
|
+
}) : null, we ? /* @__PURE__ */ $(so, {
|
|
1228
|
+
..._(),
|
|
1230
1229
|
disabled: W,
|
|
1231
|
-
"aria-label":
|
|
1232
|
-
title:
|
|
1230
|
+
"aria-label": Y ? ke : T,
|
|
1231
|
+
title: Y ? ke : T,
|
|
1233
1232
|
ownerState: x,
|
|
1234
1233
|
...Pt,
|
|
1235
1234
|
className: it(C.popupIndicator, Pt?.className),
|
|
@@ -1241,36 +1240,36 @@ const ro = (n) => {
|
|
|
1241
1240
|
inputProps: {
|
|
1242
1241
|
className: C.input,
|
|
1243
1242
|
disabled: W,
|
|
1244
|
-
readOnly:
|
|
1245
|
-
...
|
|
1243
|
+
readOnly: le,
|
|
1244
|
+
...V()
|
|
1246
1245
|
}
|
|
1247
1246
|
})
|
|
1248
|
-
}),
|
|
1247
|
+
}), pe ? /* @__PURE__ */ $(po, {
|
|
1249
1248
|
as: e,
|
|
1250
1249
|
...r,
|
|
1251
|
-
children: /* @__PURE__ */
|
|
1252
|
-
as:
|
|
1250
|
+
children: /* @__PURE__ */ Ue(uo, {
|
|
1251
|
+
as: Be,
|
|
1253
1252
|
...t,
|
|
1254
|
-
children: [
|
|
1253
|
+
children: [E && he.length === 0 ? /* @__PURE__ */ $(co, {
|
|
1255
1254
|
className: C.loading,
|
|
1256
1255
|
ownerState: x,
|
|
1257
1256
|
children: P
|
|
1258
|
-
}) : null,
|
|
1257
|
+
}) : null, he.length === 0 && !Re && !E ? /* @__PURE__ */ $(fo, {
|
|
1259
1258
|
className: C.noOptions,
|
|
1260
1259
|
ownerState: x,
|
|
1261
1260
|
role: "presentation",
|
|
1262
1261
|
onMouseDown: (c) => {
|
|
1263
1262
|
c.preventDefault();
|
|
1264
1263
|
},
|
|
1265
|
-
children:
|
|
1266
|
-
}) : null,
|
|
1264
|
+
children: Ce
|
|
1265
|
+
}) : null, he.length > 0 ? /* @__PURE__ */ $(lt, {
|
|
1267
1266
|
as: Xe,
|
|
1268
|
-
...
|
|
1269
|
-
children:
|
|
1267
|
+
...ve,
|
|
1268
|
+
children: he.map((c, ne) => Ne ? I({
|
|
1270
1269
|
key: c.key,
|
|
1271
1270
|
group: c.group,
|
|
1272
|
-
children: c.options.map((
|
|
1273
|
-
}) : yt(c,
|
|
1271
|
+
children: c.options.map((re, Le) => yt(re, c.index + Le))
|
|
1272
|
+
}) : yt(c, ne))
|
|
1274
1273
|
}) : null]
|
|
1275
1274
|
})
|
|
1276
1275
|
}) : null]
|
|
@@ -1738,21 +1737,21 @@ function Io(n, p) {
|
|
|
1738
1737
|
color: g = "primary",
|
|
1739
1738
|
size: f = "small",
|
|
1740
1739
|
placeholder: S,
|
|
1741
|
-
error:
|
|
1740
|
+
error: F,
|
|
1742
1741
|
name: N,
|
|
1743
|
-
renderInput:
|
|
1744
|
-
const { ref:
|
|
1742
|
+
renderInput: R = (H) => {
|
|
1743
|
+
const { ref: ce, ...v } = H.InputProps;
|
|
1745
1744
|
return /* @__PURE__ */ $(
|
|
1746
1745
|
Ft,
|
|
1747
1746
|
{
|
|
1748
|
-
ref:
|
|
1747
|
+
ref: ce,
|
|
1749
1748
|
...v,
|
|
1750
|
-
inputProps:
|
|
1751
|
-
inputRef:
|
|
1749
|
+
inputProps: H.inputProps,
|
|
1750
|
+
inputRef: H.inputProps.ref,
|
|
1752
1751
|
placeholder: S,
|
|
1753
1752
|
color: g,
|
|
1754
1753
|
size: f,
|
|
1755
|
-
error:
|
|
1754
|
+
error: F,
|
|
1756
1755
|
name: N,
|
|
1757
1756
|
sx: {
|
|
1758
1757
|
...A.multiple && {
|
|
@@ -1778,7 +1777,7 @@ function Io(n, p) {
|
|
|
1778
1777
|
{
|
|
1779
1778
|
ref: p,
|
|
1780
1779
|
...A,
|
|
1781
|
-
renderInput:
|
|
1780
|
+
renderInput: R,
|
|
1782
1781
|
popupIcon: U,
|
|
1783
1782
|
clearIcon: O
|
|
1784
1783
|
}
|