@cgi-learning-hub/ui 1.6.0-dev.1750082787 → 1.6.0-dev.1750693069
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-BhLIlUBu.js +368 -0
- package/dist/Alert-DPSZppEy.cjs +1 -0
- package/dist/Alert-OeEy_IGc.js +94 -0
- package/dist/Alert-rPyl-bqs.cjs +1 -0
- package/dist/Autocomplete-BdPO9SAd.cjs +6 -0
- package/dist/{Autocomplete-BVy1WjPe.js → Autocomplete-WZw_zCjA.js} +366 -368
- package/dist/{Backdrop-BSLhsv85.js → Backdrop-CjZYrxkZ.js} +5 -5
- package/dist/Backdrop-DeNTZlA5.cjs +1 -0
- package/dist/{Badge-D9BY47ln.js → Badge-Bwcsnbsa.js} +107 -99
- package/dist/Badge-DFzvdVS-.cjs +1 -0
- package/dist/{Box-DjbKEblU.js → Box-BI4osO9v.js} +3 -3
- package/dist/Box-DR3n_po_.cjs +1 -0
- package/dist/{Button-WTdCmXYm.js → Button-DDV5EfwJ.js} +115 -151
- package/dist/Button-DyJV5llI.cjs +1 -0
- package/dist/{ButtonBase-Cog6rzwh.js → ButtonBase-6TF6t2SP.js} +21 -22
- package/dist/ButtonBase-Dp6sf_dP.cjs +74 -0
- package/dist/CardContent-COfaU6E0.cjs +1 -0
- package/dist/{CardContent-rIQGzMEo.js → CardContent-D3uGcxlr.js} +34 -36
- package/dist/Checkbox-3hTSv0EZ.cjs +1 -0
- package/dist/{Checkbox-DUMc8-SB.js → Checkbox-BfBDowB2.js} +27 -28
- package/dist/Chip-BG0OU0KI.cjs +1 -0
- package/dist/{Chip-DUN-Fb_U.js → Chip-DmjZbx_X.js} +213 -164
- package/dist/CircularProgress-CXXyPavb.cjs +28 -0
- package/dist/{CircularProgress-DnqwyXnx.js → CircularProgress-DZuYTFz-.js} +34 -36
- package/dist/{Close-BFNngmx-.cjs → Close-7S2hSoFB.cjs} +1 -1
- package/dist/{Close-BD-KPNgj.js → Close-DEMecSZ6.js} +1 -1
- package/dist/{CloseRounded-BvDxY6j7.js → CloseRounded-CioV1GK3.js} +1 -1
- package/dist/{CloseRounded-e-a3RxlE.cjs → CloseRounded-DS-4-gMR.cjs} +1 -1
- package/dist/CustomTreeItem-B9FylIhL.js +2045 -0
- package/dist/CustomTreeItem-Bg8Ub4dn.cjs +41 -0
- package/dist/DatePicker-CH8XRum0.cjs +16 -0
- package/dist/DatePicker-DasS2wq6.js +10663 -0
- package/dist/DefaultPropsProvider-Cnf49AIv.cjs +1 -0
- package/dist/{DefaultPropsProvider-CRQ3Gr22.js → DefaultPropsProvider-DqazQPtr.js} +20 -20
- package/dist/{Delete-Cy45hwCy.js → Delete-B5VTV71K.js} +1 -1
- package/dist/{Delete-fIZ9JoWy.cjs → Delete-BvkBJXEM.cjs} +1 -1
- package/dist/Dialog-Btagj_Gt.cjs +1 -0
- package/dist/{Dialog-sYVRMluM.js → Dialog-DEWB041V.js} +36 -41
- package/dist/{DialogContent-Bnuj13Sv.js → DialogContent-C294EkoQ.js} +3 -3
- package/dist/DialogContent-DXfUge3c.cjs +1 -0
- package/dist/{DialogTitle-BT0ckfTq.js → DialogTitle-BSiId6Q1.js} +38 -40
- package/dist/DialogTitle-y2PrK6uU.cjs +1 -0
- package/dist/Divider-NermA5hZ.cjs +1 -0
- package/dist/{Divider-Bsr4YOx4.js → Divider-kKp4VqHh.js} +4 -4
- package/dist/{Folder-BvPvb5St.cjs → Folder-BfLBqDHM.cjs} +1 -1
- package/dist/{Folder-cn5kD2Zm.js → Folder-BgQP5-Ve.js} +1 -1
- package/dist/{FormLabel-C_NeUysJ.js → FormLabel-B3WAnPGP.js} +36 -38
- package/dist/FormLabel-JrZR9kt8.cjs +2 -0
- package/dist/Grid-BHYQ3JNy.cjs +2 -0
- package/dist/{Grid-CpuW2Xrl.js → Grid-DFk-4jnZ.js} +75 -83
- package/dist/Grow-BULCy6GX.cjs +1 -0
- package/dist/{Grow-DrWDr0WD.js → Grow-BfjkXlG8.js} +2 -2
- package/dist/{IconButton-ZOYYBKrY.js → IconButton-BYvak8Nw.js} +13 -15
- package/dist/IconButton-CjtMjZ9e.cjs +2 -0
- package/dist/{InputAdornment-mPJEEW62.js → InputAdornment-BBZXvhZ-.js} +14 -15
- package/dist/InputAdornment-DvHQMisT.cjs +1 -0
- package/dist/{InputBase-wf6Sq2-d.js → InputBase-BS5oknUK.js} +196 -194
- package/dist/InputBase-DPdKpmOz.cjs +4 -0
- package/dist/Link-BwbY60dS.cjs +1 -0
- package/dist/{Link-CPIGW37d.js → Link-DYPjEdvu.js} +10 -11
- package/dist/{List-4Tnjo8WV.js → List-CB_cqCSw.js} +2 -2
- package/dist/List-t9bWFewp.cjs +1 -0
- package/dist/{ListItem-CeosJHtu.js → ListItem-DAZQEir2.js} +25 -26
- package/dist/ListItem-DP7YmqZk.cjs +1 -0
- package/dist/ListItemText-cVnimPLO.cjs +1 -0
- package/dist/{ListItemText-BlTklQGT.js → ListItemText-qfdqJP77.js} +9 -9
- package/dist/{Menu-CtyhzSeU.js → Menu-9BK8jmzW.js} +101 -106
- package/dist/Menu-C61wLk41.cjs +7 -0
- package/dist/{MenuItem-Cpp55CvO.js → MenuItem-C8nduSzJ.js} +7 -7
- package/dist/MenuItem-DHM3qxwr.cjs +1 -0
- package/dist/{Modal-WaX5c2ks.js → Modal-D3Q9vEAI.js} +52 -57
- package/dist/Modal-DkzrSKHd.cjs +2 -0
- package/dist/{MoreVert-B37dOc0h.cjs → MoreVert-C-Rhn-xK.cjs} +1 -1
- package/dist/{MoreVert-DcA_LRP8.js → MoreVert-C_W1m_Z_.js} +1 -1
- package/dist/Paper-BbqZL5vx.cjs +2 -0
- package/dist/{Paper-yeP8q4RO.js → Paper-IQckggbn.js} +5 -5
- package/dist/{Popper-IzGPRFl_.js → Popper-CfFLBZ7-.js} +5 -6
- package/dist/Popper-DvWx5tR3.cjs +4 -0
- package/dist/{Portal-DTB-35pe.js → Portal-BlK6ttxt.js} +4 -4
- package/dist/Portal-CPOCKeMh.cjs +1 -0
- package/dist/Radio-Bwh_t6PC.cjs +1 -0
- package/dist/{Radio-DQq7Mj29.js → Radio-DKiu6lVB.js} +17 -19
- package/dist/RadioGroup-Cvnwt4JE.cjs +1 -0
- package/dist/{RadioGroup-D-KO9Ylf.js → RadioGroup-DFKMlNWO.js} +4 -4
- package/dist/Select-3HP39Z7o.cjs +3 -0
- package/dist/{Select-CHo4cwj1.js → Select-CpNF3a57.js} +425 -410
- package/dist/Stack-CIyfgZCM.cjs +1 -0
- package/dist/{Stack-B_iq0mhq.js → Stack-DSJ2DqNd.js} +36 -37
- package/dist/Stepper-CXHfLPtA.cjs +1 -0
- package/dist/{Stepper-Co2LRzY9.js → Stepper-DE2l91K0.js} +92 -98
- package/dist/{Switch-B0HwIwIM.js → Switch-BIcwDf_P.js} +24 -27
- package/dist/Switch-CTEqKDiv.cjs +1 -0
- package/dist/{SwitchBase-DrxqSNew.js → SwitchBase-DZV8S81Z.js} +21 -22
- package/dist/SwitchBase-P3zHVmLX.cjs +1 -0
- package/dist/{Tab-fionqt7a.js → Tab-Ckr6Bn59.js} +95 -98
- package/dist/Tab-r5imbU9z.cjs +4 -0
- package/dist/{TextField-CbcJBZMa.js → TextField-BenBw4oE.js} +46 -48
- package/dist/TextField-Brw3X9cn.cjs +1 -0
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +138 -0
- package/dist/{ToggleButtonGroup-C2VnPpq_.js → ToggleButtonGroup-DhtAoGtM.js} +2916 -2878
- package/dist/Tooltip-BAOKe3SY.cjs +4 -0
- package/dist/{Tooltip-KsV9NFU9.js → Tooltip-KkgNQm4r.js} +26 -28
- package/dist/Typography-CSTmKyr8.cjs +1 -0
- package/dist/{Typography-CYUXO-Vm.js → Typography-Dy8r_tT2.js} +6 -7
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +5 -4
- 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.d.ts +1 -2
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +3 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
- 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.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +5 -7
- package/dist/components/TreeView/TreeView.es.js +1207 -1452
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +2 -2
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/types.d.ts +5 -5
- 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 +44 -44
- 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/Badge.stories.cjs.js +1 -1
- package/dist/components/stories/Badge.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/ButtonGroup.stories.cjs.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
- 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/Stepper.stories.cjs.js +1 -1
- package/dist/components/stories/Stepper.stories.es.js +4 -4
- 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 +1 -1
- package/dist/components/stories/TreeView.stories.es.js +13 -13
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BWru5SCV.js → createSvgIcon-B1E6Wo8z.js} +7 -8
- package/dist/createSvgIcon-IET9soda.cjs +1 -0
- package/dist/{dividerClasses-Brli9oB2.js → dividerClasses-BPJZ8SFy.js} +1 -1
- package/dist/dividerClasses-C07OJKLL.cjs +1 -0
- package/dist/elementAcceptingRef-BZ42cOGO.cjs +1 -0
- package/dist/{extendSxProp-DPYS2LeU.js → extendSxProp-CesAxox9.js} +1 -1
- package/dist/extendSxProp-ZMCunXYm.cjs +1 -0
- package/dist/identifier-BoZelETM.cjs +55 -0
- package/dist/{generateUtilityClasses-BbL5PyhJ.js → identifier-PWESmBq6.js} +581 -611
- package/dist/{index-Blgqpey-.js → index-8G2jvqZ8.js} +4 -4
- package/dist/index-D3lMWU76.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +44 -44
- package/dist/integerPropType-BihGt2aU.js +31 -0
- package/dist/integerPropType-CR7ytEJG.cjs +1 -0
- package/dist/{listItemTextClasses-x9hDn3Oc.js → listItemTextClasses-B5VhLd9W.js} +1 -1
- package/dist/listItemTextClasses-CJDKfXvl.cjs +1 -0
- package/dist/{memoTheme-BvyhrtrO.cjs → memoTheme-BKfsJx_F.cjs} +1 -1
- package/dist/{memoTheme-C2ZnVSVg.js → memoTheme-DAFDflPY.js} +1 -1
- package/dist/{mergeSlotProps-Cy3pJiFs.js → mergeSlotProps-ChAye7iz.js} +1 -1
- package/dist/mergeSlotProps-DXwOW3FE.cjs +1 -0
- package/dist/styled-C7gyRDlj.js +5 -0
- package/dist/styled-Cax0O00h.cjs +1 -0
- package/dist/useControlled-QrrYcKxm.cjs +3 -0
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/useSlot-BzdKwDQ5.js +125 -0
- package/dist/useSlot-C2FjoUpF.cjs +1 -0
- package/dist/useSlotProps-CrQGQLdL.cjs +1 -0
- package/dist/{useSlotProps-Bvolo5qn.js → useSlotProps-DdMuGelR.js} +1 -1
- package/dist/{useTheme-DlWqSSQs.js → useTheme--i9fxE_A.js} +1 -1
- package/dist/useTheme-BLMJDSsv.cjs +1 -0
- package/dist/useTheme-CooC_6Ep.cjs +1 -0
- package/dist/useTheme-XJ9sFCWX.js +11 -0
- package/dist/{useThemeProps-CHx0N1SM.js → useThemeProps-B4VFkcP0.js} +4 -4
- package/dist/{useThemeProps-Bf2NCpA_.cjs → useThemeProps-B9E_wuN9.cjs} +1 -1
- package/dist/useThemeProps-C1A3rnbh.cjs +1 -0
- package/dist/useThemeProps-CQ9rZe7g.js +17 -0
- package/package.json +12 -11
- package/dist/Alert-DdmE0EMo.js +0 -457
- package/dist/Alert-p6jIgCWU.cjs +0 -1
- package/dist/Autocomplete-v4ZcHulv.cjs +0 -6
- package/dist/Backdrop-0xfsnuri.cjs +0 -1
- package/dist/Badge-Dpxa8BPA.cjs +0 -1
- package/dist/Box-xgRKDOV1.cjs +0 -1
- package/dist/Button-qSgmSSw2.cjs +0 -1
- package/dist/ButtonBase-CsJxPLAx.cjs +0 -74
- package/dist/CardContent-BTTU3lDd.cjs +0 -1
- package/dist/Checkbox-jecO0f9-.cjs +0 -1
- package/dist/Chip-CkonlDiW.cjs +0 -1
- package/dist/CircularProgress-Bvcr-mus.cjs +0 -28
- package/dist/CustomTreeItem-Bo6LVL2g.cjs +0 -3
- package/dist/CustomTreeItem-D-Fd2rf4.js +0 -1342
- package/dist/DatePicker-CTAJnIvu.js +0 -10255
- package/dist/DatePicker-DDYXqvgA.cjs +0 -14
- package/dist/DefaultPropsProvider-CsTuCVNC.cjs +0 -1
- package/dist/Dialog-ByiFxqo3.cjs +0 -1
- package/dist/DialogContent-0WzVi_CB.cjs +0 -1
- package/dist/DialogTitle-Dq5hCek2.cjs +0 -1
- package/dist/Divider-DPIWZuaX.cjs +0 -1
- package/dist/FormLabel-BPReGp6x.cjs +0 -2
- package/dist/Grid-D0L0VF_j.cjs +0 -2
- package/dist/Grow-CxV2Td_c.cjs +0 -1
- package/dist/IconButton-BzvVYvTv.cjs +0 -2
- package/dist/InputAdornment-CiGypDyN.cjs +0 -1
- package/dist/InputBase-D7cWCjsM.cjs +0 -3
- package/dist/Link-6MI2s97g.cjs +0 -1
- package/dist/List-DNAAO5Md.cjs +0 -1
- package/dist/ListItem-DNNO5emo.cjs +0 -1
- package/dist/ListItemText-DTJBvetJ.cjs +0 -1
- package/dist/Menu-BD7yr5c5.cjs +0 -7
- package/dist/MenuItem-BnxRQgzx.cjs +0 -1
- package/dist/Modal-Dpz2n_rl.cjs +0 -2
- package/dist/Paper-Dy4nClba.cjs +0 -2
- package/dist/Popper-Dx7Ddmig.cjs +0 -4
- package/dist/Portal-B5KqLEa0.cjs +0 -1
- package/dist/Radio-TCZTDRDq.cjs +0 -1
- package/dist/RadioGroup-BlhT0LTh.cjs +0 -1
- package/dist/Select-YiRsvCtO.cjs +0 -3
- package/dist/Stack-CiqSL-ss.cjs +0 -1
- package/dist/Stepper-Bp48LpKw.cjs +0 -1
- package/dist/Switch-CmP4YhdJ.cjs +0 -1
- package/dist/SwitchBase-D-Pz73oW.cjs +0 -1
- package/dist/Tab-DaJQbLHr.cjs +0 -4
- package/dist/TextField-BD5v4wWW.cjs +0 -1
- package/dist/ToggleButtonGroup-cWPBztiH.cjs +0 -138
- package/dist/Tooltip-B-G3ZA40.cjs +0 -4
- package/dist/Typography-CTc5xI5k.cjs +0 -1
- package/dist/capitalize-3mO2QYxZ.js +0 -9
- package/dist/capitalize-jkeaHv-a.cjs +0 -1
- package/dist/composeClasses-6Jh42fnW.cjs +0 -1
- package/dist/composeClasses-PwLhKFRx.js +0 -51
- package/dist/createSvgIcon-r-LuM8rr.cjs +0 -1
- package/dist/dividerClasses-MIs6pQ1h.cjs +0 -1
- package/dist/extendSxProp-DjoHuUqk.cjs +0 -1
- package/dist/generateUtilityClasses-CEM-EnA0.cjs +0 -55
- package/dist/getReactElementRef-EVJnBPlV.cjs +0 -1
- package/dist/index-dnUj5rrV.cjs +0 -1
- package/dist/integerPropType-Ched4o4e.cjs +0 -1
- package/dist/integerPropType-D-nm5Xmm.js +0 -31
- package/dist/listItemTextClasses-BbeGMaIS.cjs +0 -1
- package/dist/mergeSlotProps-DTB2qS-_.cjs +0 -1
- package/dist/resolveComponentProps-CUWj-pue.cjs +0 -1
- package/dist/resolveComponentProps-DBhzJW60.js +0 -80
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useControlled-Ysk4KqoX.cjs +0 -3
- package/dist/useSlot-CVpYSDNX.cjs +0 -1
- package/dist/useSlot-PbukIIii.js +0 -48
- package/dist/useSlotProps-DOS62OUK.cjs +0 -1
- package/dist/useTheme-B0omzE6M.js +0 -11
- package/dist/useTheme-CwVFTV8w.cjs +0 -1
- package/dist/useTheme-zxjGe7nF.cjs +0 -1
- package/dist/useThemeProps-Bel8apgw.js +0 -17
- package/dist/useThemeProps-C4zuxIb5.cjs +0 -1
- package/dist/{getReactElementRef-H8kwrWP1.js → elementAcceptingRef-CEweUuUA.js} +5 -5
|
@@ -1,82 +1,81 @@
|
|
|
1
1
|
import * as x from "react";
|
|
2
2
|
import { P as t } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as Rt, G as Dt, H as Je, n as ct } from "./
|
|
4
|
-
import { A as zt, f as he, o as
|
|
5
|
-
import { i as
|
|
6
|
-
import { C as jt } from "./Close-
|
|
7
|
-
import { m as
|
|
8
|
-
import { u as ft } from "./useSlot-
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { u as Nt, s as H, c as Et } from "./DefaultPropsProvider-
|
|
3
|
+
import { F as Rt, G as Dt, H as Je, K as Ye, n as ct } from "./identifier-PWESmBq6.js";
|
|
4
|
+
import { A as zt, f as he, o as St, i as dt } from "./Select-CpNF3a57.js";
|
|
5
|
+
import { i as le } from "./InputBase-BS5oknUK.js";
|
|
6
|
+
import { C as jt } from "./Close-DEMecSZ6.js";
|
|
7
|
+
import { m as pe } from "./memoTheme-DAFDflPY.js";
|
|
8
|
+
import { u as ft } from "./useSlot-BzdKwDQ5.js";
|
|
9
|
+
import { jsx as A, jsxs as Ke } from "react/jsx-runtime";
|
|
10
|
+
import { u as Nt, s as H, c as Et } from "./DefaultPropsProvider-DqazQPtr.js";
|
|
11
11
|
import { u as Ut } from "./useId-CK6Kn3Tn.js";
|
|
12
|
-
import { u as gt } from "./useControlled-
|
|
12
|
+
import { u as gt } from "./useControlled-nm4pBabJ.js";
|
|
13
13
|
import { u as Bt } from "./usePreviousProps-ByGlbpJ6.js";
|
|
14
|
-
import { a as
|
|
15
|
-
import { s as Wt } from "./Portal-
|
|
16
|
-
import { P as Mt } from "./Paper-
|
|
17
|
-
import { P as Vt } from "./Popper-
|
|
18
|
-
import { C as Gt } from "./Chip-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
function Tt(n) {
|
|
14
|
+
import { a as _e } from "./useEventCallback-Y2KwRxBw.js";
|
|
15
|
+
import { s as Wt } from "./Portal-BlK6ttxt.js";
|
|
16
|
+
import { P as Mt } from "./Paper-IQckggbn.js";
|
|
17
|
+
import { P as Vt } from "./Popper-CfFLBZ7-.js";
|
|
18
|
+
import { C as Gt } from "./Chip-DmjZbx_X.js";
|
|
19
|
+
import { I as Ft } from "./IconButton-BYvak8Nw.js";
|
|
20
|
+
import { c as Tt } from "./chainPropTypes-D9lkm76m.js";
|
|
21
|
+
import { i as qt } from "./integerPropType-BihGt2aU.js";
|
|
22
|
+
function vt(n) {
|
|
24
23
|
return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
25
24
|
}
|
|
26
|
-
function
|
|
25
|
+
function Kt(n = {}) {
|
|
27
26
|
const {
|
|
28
|
-
ignoreAccents:
|
|
27
|
+
ignoreAccents: i = !0,
|
|
29
28
|
ignoreCase: d = !0,
|
|
30
29
|
limit: m,
|
|
31
|
-
matchFrom:
|
|
30
|
+
matchFrom: T = "any",
|
|
32
31
|
stringify: D,
|
|
33
|
-
trim:
|
|
32
|
+
trim: v = !1
|
|
34
33
|
} = n;
|
|
35
34
|
return (N, {
|
|
36
35
|
inputValue: B,
|
|
37
36
|
getOptionLabel: I
|
|
38
37
|
}) => {
|
|
39
|
-
let
|
|
40
|
-
d && (
|
|
41
|
-
const W =
|
|
42
|
-
let E = (D || I)(
|
|
43
|
-
return d && (E = E.toLowerCase()),
|
|
38
|
+
let $ = v ? B.trim() : B;
|
|
39
|
+
d && ($ = $.toLowerCase()), i && ($ = vt($));
|
|
40
|
+
const W = $ ? N.filter((ue) => {
|
|
41
|
+
let E = (D || I)(ue);
|
|
42
|
+
return d && (E = E.toLowerCase()), i && (E = vt(E)), T === "start" ? E.startsWith($) : E.includes($);
|
|
44
43
|
}) : N;
|
|
45
44
|
return typeof m == "number" ? W.slice(0, m) : W;
|
|
46
45
|
};
|
|
47
46
|
}
|
|
48
|
-
const
|
|
49
|
-
var
|
|
50
|
-
return n.current !== null && ((
|
|
47
|
+
const _t = Kt(), wt = 5, Jt = (n) => {
|
|
48
|
+
var i;
|
|
49
|
+
return n.current !== null && ((i = n.current.parentElement) == null ? void 0 : i.contains(document.activeElement));
|
|
51
50
|
}, Xt = [];
|
|
52
|
-
function
|
|
53
|
-
if (
|
|
51
|
+
function At(n, i, d, m) {
|
|
52
|
+
if (i || n == null || m)
|
|
54
53
|
return "";
|
|
55
|
-
const
|
|
56
|
-
return typeof
|
|
54
|
+
const T = d(n);
|
|
55
|
+
return typeof T == "string" ? T : "";
|
|
57
56
|
}
|
|
58
57
|
function Yt(n) {
|
|
59
58
|
const {
|
|
60
59
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
61
|
-
unstable_isActiveElementInListbox:
|
|
60
|
+
unstable_isActiveElementInListbox: i = Jt,
|
|
62
61
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
63
62
|
unstable_classNamePrefix: d = "Mui",
|
|
64
63
|
autoComplete: m = !1,
|
|
65
|
-
autoHighlight:
|
|
64
|
+
autoHighlight: T = !1,
|
|
66
65
|
autoSelect: D = !1,
|
|
67
|
-
blurOnSelect:
|
|
66
|
+
blurOnSelect: v = !1,
|
|
68
67
|
clearOnBlur: N = !n.freeSolo,
|
|
69
68
|
clearOnEscape: B = !1,
|
|
70
69
|
componentName: I = "useAutocomplete",
|
|
71
|
-
defaultValue:
|
|
70
|
+
defaultValue: $ = n.multiple ? Xt : null,
|
|
72
71
|
disableClearable: W = !1,
|
|
73
|
-
disableCloseOnSelect:
|
|
72
|
+
disableCloseOnSelect: ue = !1,
|
|
74
73
|
disabled: E,
|
|
75
|
-
disabledItemsFocusable:
|
|
74
|
+
disabledItemsFocusable: Ae = !1,
|
|
76
75
|
disableListWrap: Le = !1,
|
|
77
|
-
filterOptions: mt =
|
|
76
|
+
filterOptions: mt = _t,
|
|
78
77
|
filterSelectedOptions: ke = !1,
|
|
79
|
-
freeSolo:
|
|
78
|
+
freeSolo: ce = !1,
|
|
80
79
|
getOptionDisabled: G,
|
|
81
80
|
getOptionKey: Re,
|
|
82
81
|
getOptionLabel: Qe = (o) => o.label ?? o,
|
|
@@ -95,13 +94,13 @@ function Yt(n) {
|
|
|
95
94
|
open: ht,
|
|
96
95
|
openOnFocus: yt = !1,
|
|
97
96
|
options: xt,
|
|
98
|
-
readOnly:
|
|
97
|
+
readOnly: K = !1,
|
|
99
98
|
renderValue: L,
|
|
100
99
|
selectOnFocus: ot = !n.freeSolo,
|
|
101
100
|
value: Me
|
|
102
101
|
} = n, M = Ut(bt);
|
|
103
|
-
let
|
|
104
|
-
|
|
102
|
+
let S = Qe;
|
|
103
|
+
S = (o) => {
|
|
105
104
|
const e = Qe(o);
|
|
106
105
|
if (typeof e != "string") {
|
|
107
106
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -112,87 +111,87 @@ function Yt(n) {
|
|
|
112
111
|
}
|
|
113
112
|
return e;
|
|
114
113
|
};
|
|
115
|
-
const
|
|
114
|
+
const xe = x.useRef(!1), Ie = x.useRef(!0), h = x.useRef(null), F = x.useRef(null), [Oe, It] = x.useState(null), [V, Ve] = x.useState(-1), nt = T ? 0 : -1, C = x.useRef(nt), Ot = x.useRef(At($ ?? Me, u, S)).current, [s, Pe] = gt({
|
|
116
115
|
controlled: Me,
|
|
117
|
-
default:
|
|
116
|
+
default: $,
|
|
118
117
|
name: I
|
|
119
|
-
}), [
|
|
118
|
+
}), [g, ne] = gt({
|
|
120
119
|
controlled: De,
|
|
121
120
|
default: Ot,
|
|
122
121
|
name: I,
|
|
123
122
|
state: "inputValue"
|
|
124
123
|
}), [de, Fe] = x.useState(!1), fe = x.useCallback((o, e, r) => {
|
|
125
|
-
if (!(u ?
|
|
124
|
+
if (!(u ? s.length < e.length : e !== null) && !N)
|
|
126
125
|
return;
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
}, [
|
|
126
|
+
const a = At(e, u, S, L);
|
|
127
|
+
g !== a && (ne(a), Q && Q(o, a, r));
|
|
128
|
+
}, [S, g, u, Q, ne, N, s, L]), [_, re] = gt({
|
|
130
129
|
controlled: ht,
|
|
131
130
|
default: !1,
|
|
132
131
|
name: I,
|
|
133
132
|
state: "open"
|
|
134
|
-
}), [Pt, ge] = x.useState(!0), He = !u &&
|
|
135
|
-
xt.filter((o) => !(ke && (u ?
|
|
133
|
+
}), [Pt, ge] = x.useState(!0), He = !u && s != null && g === S(s), k = _ && !K, b = k ? mt(
|
|
134
|
+
xt.filter((o) => !(ke && (u ? s : [s]).some((e) => e !== null && Y(o, e)))),
|
|
136
135
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
137
136
|
// i.e. the filter predicate always returns true
|
|
138
137
|
{
|
|
139
|
-
inputValue: He && Pt ? "" :
|
|
140
|
-
getOptionLabel:
|
|
138
|
+
inputValue: He && Pt ? "" : g,
|
|
139
|
+
getOptionLabel: S
|
|
141
140
|
}
|
|
142
141
|
) : [], z = Bt({
|
|
143
142
|
filteredOptions: b,
|
|
144
|
-
value:
|
|
145
|
-
inputValue:
|
|
143
|
+
value: s,
|
|
144
|
+
inputValue: g
|
|
146
145
|
});
|
|
147
146
|
x.useEffect(() => {
|
|
148
|
-
const o =
|
|
149
|
-
de && !o ||
|
|
150
|
-
}, [
|
|
151
|
-
const ze =
|
|
147
|
+
const o = s !== z.value;
|
|
148
|
+
de && !o || ce && !o || fe(null, s, "reset");
|
|
149
|
+
}, [s, fe, de, z.value, ce]);
|
|
150
|
+
const ze = _ && b.length > 0 && !K, j = _e((o) => {
|
|
152
151
|
if (o === -1)
|
|
153
152
|
h.current.focus();
|
|
154
153
|
else {
|
|
155
154
|
const e = L ? "data-item-index" : "data-tag-index";
|
|
156
|
-
|
|
155
|
+
Oe.querySelector(`[${e}="${o}"]`).focus();
|
|
157
156
|
}
|
|
158
157
|
});
|
|
159
158
|
x.useEffect(() => {
|
|
160
|
-
u && V >
|
|
161
|
-
}, [
|
|
159
|
+
u && V > s.length - 1 && (Ve(-1), j(-1));
|
|
160
|
+
}, [s, u, V, j]);
|
|
162
161
|
function rt(o, e) {
|
|
163
162
|
if (!F.current || o < 0 || o >= b.length)
|
|
164
163
|
return -1;
|
|
165
164
|
let r = o;
|
|
166
165
|
for (; ; ) {
|
|
167
|
-
const p = F.current.querySelector(`[data-option-index="${r}"]`),
|
|
168
|
-
if (p && p.hasAttribute("tabindex") && !
|
|
166
|
+
const p = F.current.querySelector(`[data-option-index="${r}"]`), a = Ae ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
|
|
167
|
+
if (p && p.hasAttribute("tabindex") && !a)
|
|
169
168
|
return r;
|
|
170
169
|
if (e === "next" ? r = (r + 1) % b.length : r = (r - 1 + b.length) % b.length, r === o)
|
|
171
170
|
return -1;
|
|
172
171
|
}
|
|
173
172
|
}
|
|
174
|
-
const J =
|
|
173
|
+
const J = _e(({
|
|
175
174
|
event: o,
|
|
176
175
|
index: e,
|
|
177
176
|
reason: r
|
|
178
177
|
}) => {
|
|
179
|
-
if (
|
|
178
|
+
if (C.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)
|
|
180
179
|
return;
|
|
181
180
|
const p = F.current.querySelector(`[role="option"].${d}-focused`);
|
|
182
181
|
p && (p.classList.remove(`${d}-focused`), p.classList.remove(`${d}-focusVisible`));
|
|
183
|
-
let
|
|
184
|
-
if (F.current.getAttribute("role") !== "listbox" && (
|
|
182
|
+
let a = F.current;
|
|
183
|
+
if (F.current.getAttribute("role") !== "listbox" && (a = F.current.parentElement.querySelector('[role="listbox"]')), !a)
|
|
185
184
|
return;
|
|
186
185
|
if (e === -1) {
|
|
187
|
-
|
|
186
|
+
a.scrollTop = 0;
|
|
188
187
|
return;
|
|
189
188
|
}
|
|
190
|
-
const
|
|
191
|
-
if (
|
|
192
|
-
const y =
|
|
193
|
-
|
|
189
|
+
const f = F.current.querySelector(`[data-option-index="${e}"]`);
|
|
190
|
+
if (f && (f.classList.add(`${d}-focused`), r === "keyboard" && f.classList.add(`${d}-focusVisible`), a.scrollHeight > a.clientHeight && r !== "mouse" && r !== "touch")) {
|
|
191
|
+
const y = f, w = a.clientHeight + a.scrollTop, ve = y.offsetTop + y.offsetHeight;
|
|
192
|
+
ve > w ? a.scrollTop = ve - a.clientHeight : y.offsetTop - y.offsetHeight * (oe ? 1.3 : 0) < a.scrollTop && (a.scrollTop = y.offsetTop - y.offsetHeight * (oe ? 1.3 : 0));
|
|
194
193
|
}
|
|
195
|
-
}), U =
|
|
194
|
+
}), U = _e(({
|
|
196
195
|
event: o,
|
|
197
196
|
diff: e,
|
|
198
197
|
direction: r = "next",
|
|
@@ -200,7 +199,7 @@ function Yt(n) {
|
|
|
200
199
|
}) => {
|
|
201
200
|
if (!k)
|
|
202
201
|
return;
|
|
203
|
-
const
|
|
202
|
+
const f = rt((() => {
|
|
204
203
|
const y = b.length - 1;
|
|
205
204
|
if (e === "reset")
|
|
206
205
|
return nt;
|
|
@@ -208,40 +207,40 @@ function Yt(n) {
|
|
|
208
207
|
return 0;
|
|
209
208
|
if (e === "end")
|
|
210
209
|
return y;
|
|
211
|
-
const
|
|
212
|
-
return
|
|
210
|
+
const w = C.current + e;
|
|
211
|
+
return w < 0 ? w === -1 && ye ? -1 : Le && C.current !== -1 || Math.abs(e) > 1 ? 0 : y : w > y ? w === y + 1 && ye ? -1 : Le || Math.abs(e) > 1 ? y : 0 : w;
|
|
213
212
|
})(), r);
|
|
214
213
|
if (J({
|
|
215
|
-
index:
|
|
214
|
+
index: f,
|
|
216
215
|
reason: p,
|
|
217
216
|
event: o
|
|
218
217
|
}), m && e !== "reset")
|
|
219
|
-
if (
|
|
220
|
-
h.current.value =
|
|
218
|
+
if (f === -1)
|
|
219
|
+
h.current.value = g;
|
|
221
220
|
else {
|
|
222
|
-
const y =
|
|
223
|
-
h.current.value = y, y.toLowerCase().indexOf(
|
|
221
|
+
const y = S(b[f]);
|
|
222
|
+
h.current.value = y, y.toLowerCase().indexOf(g.toLowerCase()) === 0 && g.length > 0 && h.current.setSelectionRange(g.length, y.length);
|
|
224
223
|
}
|
|
225
224
|
}), at = () => {
|
|
226
225
|
const o = (e, r) => {
|
|
227
|
-
const p = e ?
|
|
228
|
-
return p ===
|
|
226
|
+
const p = e ? S(e) : "", a = r ? S(r) : "";
|
|
227
|
+
return p === a;
|
|
229
228
|
};
|
|
230
|
-
if (
|
|
231
|
-
const e = z.filteredOptions[
|
|
229
|
+
if (C.current !== -1 && z.filteredOptions && z.filteredOptions.length !== b.length && z.inputValue === g && (u ? s.length === z.value.length && z.value.every((e, r) => S(s[r]) === S(e)) : o(z.value, s))) {
|
|
230
|
+
const e = z.filteredOptions[C.current];
|
|
232
231
|
if (e)
|
|
233
|
-
return b.findIndex((r) =>
|
|
232
|
+
return b.findIndex((r) => S(r) === S(e));
|
|
234
233
|
}
|
|
235
234
|
return -1;
|
|
236
|
-
},
|
|
235
|
+
}, Ce = x.useCallback(() => {
|
|
237
236
|
if (!k)
|
|
238
237
|
return;
|
|
239
238
|
const o = at();
|
|
240
239
|
if (o !== -1) {
|
|
241
|
-
|
|
240
|
+
C.current = o;
|
|
242
241
|
return;
|
|
243
242
|
}
|
|
244
|
-
const e = u ?
|
|
243
|
+
const e = u ? s[0] : s;
|
|
245
244
|
if (b.length === 0 || e == null) {
|
|
246
245
|
U({
|
|
247
246
|
diff: "reset"
|
|
@@ -250,10 +249,10 @@ function Yt(n) {
|
|
|
250
249
|
}
|
|
251
250
|
if (F.current) {
|
|
252
251
|
if (e != null) {
|
|
253
|
-
const r = b[
|
|
254
|
-
if (u && r &&
|
|
252
|
+
const r = b[C.current];
|
|
253
|
+
if (u && r && s.findIndex((a) => Y(r, a)) !== -1)
|
|
255
254
|
return;
|
|
256
|
-
const p = b.findIndex((
|
|
255
|
+
const p = b.findIndex((a) => Y(a, e));
|
|
257
256
|
p === -1 ? U({
|
|
258
257
|
diff: "reset"
|
|
259
258
|
}) : J({
|
|
@@ -261,14 +260,14 @@ function Yt(n) {
|
|
|
261
260
|
});
|
|
262
261
|
return;
|
|
263
262
|
}
|
|
264
|
-
if (
|
|
263
|
+
if (C.current >= b.length - 1) {
|
|
265
264
|
J({
|
|
266
265
|
index: b.length - 1
|
|
267
266
|
});
|
|
268
267
|
return;
|
|
269
268
|
}
|
|
270
269
|
J({
|
|
271
|
-
index:
|
|
270
|
+
index: C.current
|
|
272
271
|
});
|
|
273
272
|
}
|
|
274
273
|
}, [
|
|
@@ -276,58 +275,58 @@ function Yt(n) {
|
|
|
276
275
|
b.length,
|
|
277
276
|
// Don't sync the highlighted index with the value when multiple
|
|
278
277
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
279
|
-
u ? !1 :
|
|
278
|
+
u ? !1 : s,
|
|
280
279
|
ke,
|
|
281
280
|
U,
|
|
282
281
|
J,
|
|
283
282
|
k,
|
|
284
|
-
|
|
283
|
+
g,
|
|
285
284
|
u
|
|
286
|
-
]),
|
|
287
|
-
Wt(F, o), o &&
|
|
285
|
+
]), it = _e((o) => {
|
|
286
|
+
Wt(F, o), o && Ce();
|
|
288
287
|
});
|
|
289
288
|
process.env.NODE_ENV !== "production" && x.useEffect(() => {
|
|
290
289
|
(!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(`
|
|
291
290
|
`)) : 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(`
|
|
292
291
|
`)));
|
|
293
292
|
}, [I]), x.useEffect(() => {
|
|
294
|
-
|
|
295
|
-
}, [
|
|
293
|
+
Ce();
|
|
294
|
+
}, [Ce]);
|
|
296
295
|
const R = (o) => {
|
|
297
|
-
|
|
298
|
-
},
|
|
299
|
-
|
|
296
|
+
_ || (re(!0), ge(!0), Ee && Ee(o));
|
|
297
|
+
}, ae = (o, e) => {
|
|
298
|
+
_ && (re(!1), tt && tt(o, e));
|
|
300
299
|
}, X = (o, e, r, p) => {
|
|
301
300
|
if (u) {
|
|
302
|
-
if (
|
|
301
|
+
if (s.length === e.length && s.every((a, f) => a === e[f]))
|
|
303
302
|
return;
|
|
304
|
-
} else if (
|
|
303
|
+
} else if (s === e)
|
|
305
304
|
return;
|
|
306
|
-
et && et(o, e, r, p),
|
|
305
|
+
et && et(o, e, r, p), Pe(e);
|
|
307
306
|
}, me = x.useRef(!1), q = (o, e, r = "selectOption", p = "options") => {
|
|
308
|
-
let
|
|
307
|
+
let a = r, f = e;
|
|
309
308
|
if (u) {
|
|
310
|
-
if (
|
|
311
|
-
const
|
|
312
|
-
|
|
309
|
+
if (f = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
|
|
310
|
+
const w = f.filter((ve) => Y(e, ve));
|
|
311
|
+
w.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 ${w.length} matches.`].join(`
|
|
313
312
|
`));
|
|
314
313
|
}
|
|
315
|
-
const y =
|
|
316
|
-
y === -1 ?
|
|
314
|
+
const y = f.findIndex((w) => Y(e, w));
|
|
315
|
+
y === -1 ? f.push(e) : p !== "freeSolo" && (f.splice(y, 1), a = "removeOption");
|
|
317
316
|
}
|
|
318
|
-
fe(o,
|
|
317
|
+
fe(o, f, a), X(o, f, a, {
|
|
319
318
|
option: e
|
|
320
|
-
}), !
|
|
319
|
+
}), !ue && (!o || !o.ctrlKey && !o.metaKey) && ae(o, a), (v === !0 || v === "touch" && me.current || v === "mouse" && !me.current) && h.current.blur();
|
|
321
320
|
};
|
|
322
321
|
function je(o, e) {
|
|
323
322
|
if (o === -1)
|
|
324
323
|
return -1;
|
|
325
324
|
let r = o;
|
|
326
325
|
for (; ; ) {
|
|
327
|
-
if (e === "next" && r ===
|
|
326
|
+
if (e === "next" && r === s.length || e === "previous" && r === -1)
|
|
328
327
|
return -1;
|
|
329
|
-
const p = L ? "data-item-index" : "data-tag-index",
|
|
330
|
-
if (!
|
|
328
|
+
const p = L ? "data-item-index" : "data-tag-index", a = Oe.querySelector(`[${p}="${r}"]`);
|
|
329
|
+
if (!a || !a.hasAttribute("tabindex") || a.disabled || a.getAttribute("aria-disabled") === "true")
|
|
331
330
|
r += e === "next" ? 1 : -1;
|
|
332
331
|
else
|
|
333
332
|
return r;
|
|
@@ -336,12 +335,12 @@ function Yt(n) {
|
|
|
336
335
|
const Ue = (o, e) => {
|
|
337
336
|
if (!u)
|
|
338
337
|
return;
|
|
339
|
-
|
|
338
|
+
g === "" && ae(o, "toggleInput");
|
|
340
339
|
let r = V;
|
|
341
|
-
V === -1 ?
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
},
|
|
340
|
+
V === -1 ? g === "" && e === "previous" && (r = s.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === s.length && (r = -1)), r = je(r, e), Ve(r), j(r);
|
|
341
|
+
}, ie = (o) => {
|
|
342
|
+
xe.current = !0, ne(""), Q && Q(o, "", "clear"), X(o, u ? [] : null, "clear");
|
|
343
|
+
}, st = (o) => (e) => {
|
|
345
344
|
if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (V !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), j(-1)), e.which !== 229))
|
|
346
345
|
switch (e.key) {
|
|
347
346
|
case "Home":
|
|
@@ -362,7 +361,7 @@ function Yt(n) {
|
|
|
362
361
|
break;
|
|
363
362
|
case "PageUp":
|
|
364
363
|
e.preventDefault(), U({
|
|
365
|
-
diff: -
|
|
364
|
+
diff: -wt,
|
|
366
365
|
direction: "previous",
|
|
367
366
|
reason: "keyboard",
|
|
368
367
|
event: e
|
|
@@ -370,7 +369,7 @@ function Yt(n) {
|
|
|
370
369
|
break;
|
|
371
370
|
case "PageDown":
|
|
372
371
|
e.preventDefault(), U({
|
|
373
|
-
diff:
|
|
372
|
+
diff: wt,
|
|
374
373
|
direction: "next",
|
|
375
374
|
reason: "keyboard",
|
|
376
375
|
event: e
|
|
@@ -399,49 +398,49 @@ function Yt(n) {
|
|
|
399
398
|
!u && L ? j(-1) : Ue(e, "next");
|
|
400
399
|
break;
|
|
401
400
|
case "Enter":
|
|
402
|
-
if (
|
|
403
|
-
const r = b[
|
|
401
|
+
if (C.current !== -1 && k) {
|
|
402
|
+
const r = b[C.current], p = G ? G(r) : !1;
|
|
404
403
|
if (e.preventDefault(), p)
|
|
405
404
|
return;
|
|
406
405
|
q(e, r, "selectOption"), m && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
|
|
407
|
-
} else
|
|
406
|
+
} else ce && g !== "" && He === !1 && (u && e.preventDefault(), q(e, g, "createOption", "freeSolo"));
|
|
408
407
|
break;
|
|
409
408
|
case "Escape":
|
|
410
|
-
k ? (e.preventDefault(), e.stopPropagation(),
|
|
409
|
+
k ? (e.preventDefault(), e.stopPropagation(), ae(e, "escape")) : B && (g !== "" || u && s.length > 0 || L) && (e.preventDefault(), e.stopPropagation(), ie(e));
|
|
411
410
|
break;
|
|
412
411
|
case "Backspace":
|
|
413
|
-
if (u && !
|
|
414
|
-
const r = V === -1 ?
|
|
412
|
+
if (u && !K && g === "" && s.length > 0) {
|
|
413
|
+
const r = V === -1 ? s.length - 1 : V, p = s.slice();
|
|
415
414
|
p.splice(r, 1), X(e, p, "removeOption", {
|
|
416
|
-
option:
|
|
415
|
+
option: s[r]
|
|
417
416
|
});
|
|
418
417
|
}
|
|
419
|
-
!u && L && !
|
|
418
|
+
!u && L && !K && (Pe(null), j(-1));
|
|
420
419
|
break;
|
|
421
420
|
case "Delete":
|
|
422
|
-
if (u && !
|
|
423
|
-
const r = V, p =
|
|
421
|
+
if (u && !K && g === "" && s.length > 0 && V !== -1) {
|
|
422
|
+
const r = V, p = s.slice();
|
|
424
423
|
p.splice(r, 1), X(e, p, "removeOption", {
|
|
425
|
-
option:
|
|
424
|
+
option: s[r]
|
|
426
425
|
});
|
|
427
426
|
}
|
|
428
|
-
!u && L && !
|
|
427
|
+
!u && L && !K && (Pe(null), j(-1));
|
|
429
428
|
break;
|
|
430
429
|
}
|
|
431
430
|
}, lt = (o) => {
|
|
432
|
-
Fe(!0), yt && !
|
|
431
|
+
Fe(!0), yt && !xe.current && R(o);
|
|
433
432
|
}, se = (o) => {
|
|
434
|
-
if (
|
|
433
|
+
if (i(F)) {
|
|
435
434
|
h.current.focus();
|
|
436
435
|
return;
|
|
437
436
|
}
|
|
438
|
-
Fe(!1),
|
|
439
|
-
}, Ce = (o) => {
|
|
440
|
-
const e = o.target.value;
|
|
441
|
-
f !== e && (ne(e), ge(!1), Q && Q(o, e, "input")), e === "" ? !W && !u && X(o, null, "clear") : R(o);
|
|
437
|
+
Fe(!1), Ie.current = !0, xe.current = !1, D && C.current !== -1 && k ? q(o, b[C.current], "blur") : D && ce && g !== "" ? q(o, g, "blur", "freeSolo") : N && fe(o, s, "blur"), ae(o, "blur");
|
|
442
438
|
}, $e = (o) => {
|
|
439
|
+
const e = o.target.value;
|
|
440
|
+
g !== e && (ne(e), ge(!1), Q && Q(o, e, "input")), e === "" ? !W && !u && X(o, null, "clear") : R(o);
|
|
441
|
+
}, Se = (o) => {
|
|
443
442
|
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
444
|
-
|
|
443
|
+
C.current !== e && J({
|
|
445
444
|
event: o,
|
|
446
445
|
index: e,
|
|
447
446
|
reason: "mouse"
|
|
@@ -456,35 +455,35 @@ function Yt(n) {
|
|
|
456
455
|
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
457
456
|
q(o, b[e], "selectOption"), me.current = !1;
|
|
458
457
|
}, Be = (o) => (e) => {
|
|
459
|
-
const r =
|
|
458
|
+
const r = s.slice();
|
|
460
459
|
r.splice(o, 1), X(e, r, "removeOption", {
|
|
461
|
-
option:
|
|
460
|
+
option: s[o]
|
|
462
461
|
});
|
|
463
|
-
},
|
|
462
|
+
}, Ct = (o) => {
|
|
464
463
|
X(o, null, "removeOption", {
|
|
465
|
-
option:
|
|
464
|
+
option: s
|
|
466
465
|
});
|
|
467
466
|
}, be = (o) => {
|
|
468
|
-
|
|
469
|
-
}, v = (o) => {
|
|
470
|
-
o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== M && o.preventDefault();
|
|
467
|
+
_ ? ae(o, "toggleInput") : R(o);
|
|
471
468
|
}, O = (o) => {
|
|
472
|
-
o.currentTarget.contains(o.target) &&
|
|
469
|
+
o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== M && o.preventDefault();
|
|
470
|
+
}, P = (o) => {
|
|
471
|
+
o.currentTarget.contains(o.target) && (h.current.focus(), ot && Ie.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), Ie.current = !1);
|
|
473
472
|
}, Z = (o) => {
|
|
474
|
-
!E && (
|
|
473
|
+
!E && (g === "" || !_) && be(o);
|
|
475
474
|
};
|
|
476
|
-
let
|
|
477
|
-
|
|
475
|
+
let Te = ce && g.length > 0;
|
|
476
|
+
Te = Te || (u ? s.length > 0 : s !== null);
|
|
478
477
|
let We = b;
|
|
479
478
|
if (oe) {
|
|
480
479
|
const o = /* @__PURE__ */ new Map();
|
|
481
480
|
let e = !1;
|
|
482
|
-
We = b.reduce((r, p,
|
|
483
|
-
const
|
|
484
|
-
return r.length > 0 && r[r.length - 1].group ===
|
|
485
|
-
key:
|
|
486
|
-
index:
|
|
487
|
-
group:
|
|
481
|
+
We = b.reduce((r, p, a) => {
|
|
482
|
+
const f = oe(p);
|
|
483
|
+
return r.length > 0 && r[r.length - 1].group === f ? r[r.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (o.get(f) && !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(f, !0)), r.push({
|
|
484
|
+
key: a,
|
|
485
|
+
index: a,
|
|
486
|
+
group: f,
|
|
488
487
|
options: [p]
|
|
489
488
|
})), r;
|
|
490
489
|
}, []);
|
|
@@ -492,9 +491,9 @@ function Yt(n) {
|
|
|
492
491
|
return E && de && se(), {
|
|
493
492
|
getRootProps: (o = {}) => ({
|
|
494
493
|
...o,
|
|
495
|
-
onKeyDown:
|
|
496
|
-
onMouseDown:
|
|
497
|
-
onClick:
|
|
494
|
+
onKeyDown: st(o),
|
|
495
|
+
onMouseDown: O,
|
|
496
|
+
onClick: P
|
|
498
497
|
}),
|
|
499
498
|
getInputLabelProps: () => ({
|
|
500
499
|
id: `${M}-label`,
|
|
@@ -502,10 +501,10 @@ function Yt(n) {
|
|
|
502
501
|
}),
|
|
503
502
|
getInputProps: () => ({
|
|
504
503
|
id: M,
|
|
505
|
-
value:
|
|
504
|
+
value: g,
|
|
506
505
|
onBlur: se,
|
|
507
506
|
onFocus: lt,
|
|
508
|
-
onChange:
|
|
507
|
+
onChange: $e,
|
|
509
508
|
onMouseDown: Z,
|
|
510
509
|
// if open then this is handled imperatively so don't let react override
|
|
511
510
|
// only have an opinion about this when closed
|
|
@@ -525,7 +524,7 @@ function Yt(n) {
|
|
|
525
524
|
getClearProps: () => ({
|
|
526
525
|
tabIndex: -1,
|
|
527
526
|
type: "button",
|
|
528
|
-
onClick:
|
|
527
|
+
onClick: ie
|
|
529
528
|
}),
|
|
530
529
|
getItemProps: ({
|
|
531
530
|
index: o = 0
|
|
@@ -539,8 +538,8 @@ function Yt(n) {
|
|
|
539
538
|
"data-tag-index": o
|
|
540
539
|
},
|
|
541
540
|
tabIndex: -1,
|
|
542
|
-
...!
|
|
543
|
-
onDelete: u ? Be(o) :
|
|
541
|
+
...!K && {
|
|
542
|
+
onDelete: u ? Be(o) : Ct
|
|
544
543
|
}
|
|
545
544
|
}),
|
|
546
545
|
getPopupIndicatorProps: () => ({
|
|
@@ -555,7 +554,7 @@ function Yt(n) {
|
|
|
555
554
|
key: o,
|
|
556
555
|
"data-tag-index": o,
|
|
557
556
|
tabIndex: -1,
|
|
558
|
-
...!
|
|
557
|
+
...!K && {
|
|
559
558
|
onDelete: Be(o)
|
|
560
559
|
}
|
|
561
560
|
}),
|
|
@@ -563,7 +562,7 @@ function Yt(n) {
|
|
|
563
562
|
role: "listbox",
|
|
564
563
|
id: `${M}-listbox`,
|
|
565
564
|
"aria-labelledby": `${M}-label`,
|
|
566
|
-
ref:
|
|
565
|
+
ref: it,
|
|
567
566
|
onMouseDown: (o) => {
|
|
568
567
|
o.preventDefault();
|
|
569
568
|
}
|
|
@@ -572,13 +571,13 @@ function Yt(n) {
|
|
|
572
571
|
index: o,
|
|
573
572
|
option: e
|
|
574
573
|
}) => {
|
|
575
|
-
const r = (u ?
|
|
574
|
+
const r = (u ? s : [s]).some((a) => a != null && Y(e, a)), p = G ? G(e) : !1;
|
|
576
575
|
return {
|
|
577
|
-
key: (Re == null ? void 0 : Re(e)) ??
|
|
576
|
+
key: (Re == null ? void 0 : Re(e)) ?? S(e),
|
|
578
577
|
tabIndex: -1,
|
|
579
578
|
role: "option",
|
|
580
579
|
id: `${M}-option-${o}`,
|
|
581
|
-
onMouseMove:
|
|
580
|
+
onMouseMove: Se,
|
|
582
581
|
onClick: ut,
|
|
583
582
|
onTouchStart: pt,
|
|
584
583
|
"data-option-index": o,
|
|
@@ -587,13 +586,13 @@ function Yt(n) {
|
|
|
587
586
|
};
|
|
588
587
|
},
|
|
589
588
|
id: M,
|
|
590
|
-
inputValue:
|
|
591
|
-
value:
|
|
592
|
-
dirty:
|
|
593
|
-
expanded: k &&
|
|
589
|
+
inputValue: g,
|
|
590
|
+
value: s,
|
|
591
|
+
dirty: Te,
|
|
592
|
+
expanded: k && Oe,
|
|
594
593
|
popupOpen: k,
|
|
595
594
|
focused: de || V !== -1,
|
|
596
|
-
anchorEl:
|
|
595
|
+
anchorEl: Oe,
|
|
597
596
|
setAnchorEl: It,
|
|
598
597
|
focusedItem: V,
|
|
599
598
|
// deprecated
|
|
@@ -604,27 +603,27 @@ function Yt(n) {
|
|
|
604
603
|
function Qt(n) {
|
|
605
604
|
return Dt("MuiListSubheader", n);
|
|
606
605
|
}
|
|
607
|
-
const
|
|
606
|
+
const Mo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
|
|
608
607
|
const {
|
|
609
|
-
classes:
|
|
608
|
+
classes: i,
|
|
610
609
|
color: d,
|
|
611
610
|
disableGutters: m,
|
|
612
|
-
inset:
|
|
611
|
+
inset: T,
|
|
613
612
|
disableSticky: D
|
|
614
|
-
} = n,
|
|
615
|
-
root: ["root", d !== "default" && `color${Ye(d)}`, !m && "gutters",
|
|
613
|
+
} = n, v = {
|
|
614
|
+
root: ["root", d !== "default" && `color${Ye(d)}`, !m && "gutters", T && "inset", !D && "sticky"]
|
|
616
615
|
};
|
|
617
|
-
return Et(
|
|
616
|
+
return Et(v, Qt, i);
|
|
618
617
|
}, eo = H("li", {
|
|
619
618
|
name: "MuiListSubheader",
|
|
620
619
|
slot: "Root",
|
|
621
|
-
overridesResolver: (n,
|
|
620
|
+
overridesResolver: (n, i) => {
|
|
622
621
|
const {
|
|
623
622
|
ownerState: d
|
|
624
623
|
} = n;
|
|
625
|
-
return [
|
|
624
|
+
return [i.root, d.color !== "default" && i[`color${Ye(d.color)}`], !d.disableGutters && i.gutters, d.inset && i.inset, !d.disableSticky && i.sticky];
|
|
626
625
|
}
|
|
627
|
-
})(
|
|
626
|
+
})(pe(({
|
|
628
627
|
theme: n
|
|
629
628
|
}) => ({
|
|
630
629
|
boxSizing: "border-box",
|
|
@@ -650,23 +649,23 @@ const Vo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
|
|
|
650
649
|
}
|
|
651
650
|
}, {
|
|
652
651
|
props: ({
|
|
653
|
-
ownerState:
|
|
654
|
-
}) => !
|
|
652
|
+
ownerState: i
|
|
653
|
+
}) => !i.disableGutters,
|
|
655
654
|
style: {
|
|
656
655
|
paddingLeft: 16,
|
|
657
656
|
paddingRight: 16
|
|
658
657
|
}
|
|
659
658
|
}, {
|
|
660
659
|
props: ({
|
|
661
|
-
ownerState:
|
|
662
|
-
}) =>
|
|
660
|
+
ownerState: i
|
|
661
|
+
}) => i.inset,
|
|
663
662
|
style: {
|
|
664
663
|
paddingLeft: 72
|
|
665
664
|
}
|
|
666
665
|
}, {
|
|
667
666
|
props: ({
|
|
668
|
-
ownerState:
|
|
669
|
-
}) => !
|
|
667
|
+
ownerState: i
|
|
668
|
+
}) => !i.disableSticky,
|
|
670
669
|
style: {
|
|
671
670
|
position: "sticky",
|
|
672
671
|
top: 0,
|
|
@@ -674,32 +673,32 @@ const Vo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
|
|
|
674
673
|
backgroundColor: (n.vars || n).palette.background.paper
|
|
675
674
|
}
|
|
676
675
|
}]
|
|
677
|
-
}))), Xe = /* @__PURE__ */ x.forwardRef(function(
|
|
676
|
+
}))), Xe = /* @__PURE__ */ x.forwardRef(function(i, d) {
|
|
678
677
|
const m = Nt({
|
|
679
|
-
props:
|
|
678
|
+
props: i,
|
|
680
679
|
name: "MuiListSubheader"
|
|
681
680
|
}), {
|
|
682
|
-
className:
|
|
681
|
+
className: T,
|
|
683
682
|
color: D = "default",
|
|
684
|
-
component:
|
|
683
|
+
component: v = "li",
|
|
685
684
|
disableGutters: N = !1,
|
|
686
685
|
disableSticky: B = !1,
|
|
687
686
|
inset: I = !1,
|
|
688
|
-
|
|
687
|
+
...$
|
|
689
688
|
} = m, W = {
|
|
690
689
|
...m,
|
|
691
690
|
color: D,
|
|
692
|
-
component:
|
|
691
|
+
component: v,
|
|
693
692
|
disableGutters: N,
|
|
694
693
|
disableSticky: B,
|
|
695
694
|
inset: I
|
|
696
|
-
},
|
|
697
|
-
return /* @__PURE__ */
|
|
698
|
-
as:
|
|
699
|
-
className: Je(
|
|
695
|
+
}, ue = Zt(W);
|
|
696
|
+
return /* @__PURE__ */ A(eo, {
|
|
697
|
+
as: v,
|
|
698
|
+
className: Je(ue.root, T),
|
|
700
699
|
ref: d,
|
|
701
700
|
ownerState: W,
|
|
702
|
-
|
|
701
|
+
...$
|
|
703
702
|
});
|
|
704
703
|
});
|
|
705
704
|
Xe && (Xe.muiSkipListHighlight = !0);
|
|
@@ -757,21 +756,21 @@ const l = Rt("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "fo
|
|
|
757
756
|
var Lt, kt;
|
|
758
757
|
const oo = (n) => {
|
|
759
758
|
const {
|
|
760
|
-
classes:
|
|
759
|
+
classes: i,
|
|
761
760
|
disablePortal: d,
|
|
762
761
|
expanded: m,
|
|
763
|
-
focused:
|
|
762
|
+
focused: T,
|
|
764
763
|
fullWidth: D,
|
|
765
|
-
hasClearIcon:
|
|
764
|
+
hasClearIcon: v,
|
|
766
765
|
hasPopupIcon: N,
|
|
767
766
|
inputFocused: B,
|
|
768
767
|
popupOpen: I,
|
|
769
|
-
size:
|
|
768
|
+
size: $
|
|
770
769
|
} = n, W = {
|
|
771
|
-
root: ["root", m && "expanded",
|
|
770
|
+
root: ["root", m && "expanded", T && "focused", D && "fullWidth", v && "hasClearIcon", N && "hasPopupIcon"],
|
|
772
771
|
inputRoot: ["inputRoot"],
|
|
773
772
|
input: ["input", B && "inputFocused"],
|
|
774
|
-
tag: ["tag", `tagSize${Ye(
|
|
773
|
+
tag: ["tag", `tagSize${Ye($)}`],
|
|
775
774
|
endAdornment: ["endAdornment"],
|
|
776
775
|
clearIndicator: ["clearIndicator"],
|
|
777
776
|
popupIndicator: ["popupIndicator", I && "popupIndicatorOpen"],
|
|
@@ -784,31 +783,31 @@ const oo = (n) => {
|
|
|
784
783
|
groupLabel: ["groupLabel"],
|
|
785
784
|
groupUl: ["groupUl"]
|
|
786
785
|
};
|
|
787
|
-
return Et(W, to,
|
|
786
|
+
return Et(W, to, i);
|
|
788
787
|
}, no = H("div", {
|
|
789
788
|
name: "MuiAutocomplete",
|
|
790
789
|
slot: "Root",
|
|
791
|
-
overridesResolver: (n,
|
|
790
|
+
overridesResolver: (n, i) => {
|
|
792
791
|
const {
|
|
793
792
|
ownerState: d
|
|
794
793
|
} = n, {
|
|
795
794
|
fullWidth: m,
|
|
796
|
-
hasClearIcon:
|
|
795
|
+
hasClearIcon: T,
|
|
797
796
|
hasPopupIcon: D,
|
|
798
|
-
inputFocused:
|
|
797
|
+
inputFocused: v,
|
|
799
798
|
size: N
|
|
800
799
|
} = d;
|
|
801
800
|
return [{
|
|
802
|
-
[`& .${l.tag}`]:
|
|
801
|
+
[`& .${l.tag}`]: i.tag
|
|
803
802
|
}, {
|
|
804
|
-
[`& .${l.tag}`]:
|
|
803
|
+
[`& .${l.tag}`]: i[`tagSize${Ye(N)}`]
|
|
805
804
|
}, {
|
|
806
|
-
[`& .${l.inputRoot}`]:
|
|
805
|
+
[`& .${l.inputRoot}`]: i.inputRoot
|
|
807
806
|
}, {
|
|
808
|
-
[`& .${l.input}`]:
|
|
807
|
+
[`& .${l.input}`]: i.input
|
|
809
808
|
}, {
|
|
810
|
-
[`& .${l.input}`]:
|
|
811
|
-
},
|
|
809
|
+
[`& .${l.input}`]: v && i.inputFocused
|
|
810
|
+
}, i.root, m && i.fullWidth, D && i.hasPopupIcon, T && i.hasClearIcon];
|
|
812
811
|
}
|
|
813
812
|
})({
|
|
814
813
|
[`&.${l.focused} .${l.clearIndicator}`]: {
|
|
@@ -842,12 +841,12 @@ const oo = (n) => {
|
|
|
842
841
|
padding: "4px 4px 4px 0px"
|
|
843
842
|
}
|
|
844
843
|
},
|
|
845
|
-
[`& .${dt.root}.${
|
|
844
|
+
[`& .${dt.root}.${le.sizeSmall}`]: {
|
|
846
845
|
[`& .${dt.input}`]: {
|
|
847
846
|
padding: "2px 4px 3px 0"
|
|
848
847
|
}
|
|
849
848
|
},
|
|
850
|
-
[`& .${
|
|
849
|
+
[`& .${St.root}`]: {
|
|
851
850
|
padding: 9,
|
|
852
851
|
[`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
|
|
853
852
|
paddingRight: 39
|
|
@@ -862,7 +861,7 @@ const oo = (n) => {
|
|
|
862
861
|
right: 9
|
|
863
862
|
}
|
|
864
863
|
},
|
|
865
|
-
[`& .${
|
|
864
|
+
[`& .${St.root}.${le.sizeSmall}`]: {
|
|
866
865
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
867
866
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
868
867
|
paddingTop: 6,
|
|
@@ -888,16 +887,16 @@ const oo = (n) => {
|
|
|
888
887
|
right: 9
|
|
889
888
|
}
|
|
890
889
|
},
|
|
891
|
-
[`& .${he.root}.${
|
|
890
|
+
[`& .${he.root}.${le.sizeSmall}`]: {
|
|
892
891
|
paddingBottom: 1,
|
|
893
892
|
[`& .${he.input}`]: {
|
|
894
893
|
padding: "2.5px 4px"
|
|
895
894
|
}
|
|
896
895
|
},
|
|
897
|
-
[`& .${
|
|
896
|
+
[`& .${le.hiddenLabel}`]: {
|
|
898
897
|
paddingTop: 8
|
|
899
898
|
},
|
|
900
|
-
[`& .${he.root}.${
|
|
899
|
+
[`& .${he.root}.${le.hiddenLabel}`]: {
|
|
901
900
|
paddingTop: 0,
|
|
902
901
|
paddingBottom: 0,
|
|
903
902
|
[`& .${l.input}`]: {
|
|
@@ -905,7 +904,7 @@ const oo = (n) => {
|
|
|
905
904
|
paddingBottom: 17
|
|
906
905
|
}
|
|
907
906
|
},
|
|
908
|
-
[`& .${he.root}.${
|
|
907
|
+
[`& .${he.root}.${le.hiddenLabel}.${le.sizeSmall}`]: {
|
|
909
908
|
[`& .${l.input}`]: {
|
|
910
909
|
paddingTop: 8,
|
|
911
910
|
paddingBottom: 9
|
|
@@ -954,8 +953,7 @@ const oo = (n) => {
|
|
|
954
953
|
}]
|
|
955
954
|
}), ro = H("div", {
|
|
956
955
|
name: "MuiAutocomplete",
|
|
957
|
-
slot: "EndAdornment"
|
|
958
|
-
overridesResolver: (n, a) => a.endAdornment
|
|
956
|
+
slot: "EndAdornment"
|
|
959
957
|
})({
|
|
960
958
|
// We use a position absolute to support wrapping tags.
|
|
961
959
|
position: "absolute",
|
|
@@ -964,20 +962,19 @@ const oo = (n) => {
|
|
|
964
962
|
transform: "translate(0, -50%)"
|
|
965
963
|
}), ao = H(Ft, {
|
|
966
964
|
name: "MuiAutocomplete",
|
|
967
|
-
slot: "ClearIndicator"
|
|
968
|
-
overridesResolver: (n, a) => a.clearIndicator
|
|
965
|
+
slot: "ClearIndicator"
|
|
969
966
|
})({
|
|
970
967
|
marginRight: -2,
|
|
971
968
|
padding: 4,
|
|
972
969
|
visibility: "hidden"
|
|
973
|
-
}),
|
|
970
|
+
}), io = H(Ft, {
|
|
974
971
|
name: "MuiAutocomplete",
|
|
975
972
|
slot: "PopupIndicator",
|
|
976
|
-
overridesResolver: (n,
|
|
973
|
+
overridesResolver: (n, i) => {
|
|
977
974
|
const {
|
|
978
975
|
ownerState: d
|
|
979
976
|
} = n;
|
|
980
|
-
return [
|
|
977
|
+
return [i.popupIndicator, d.popupOpen && i.popupIndicatorOpen];
|
|
981
978
|
}
|
|
982
979
|
})({
|
|
983
980
|
padding: 2,
|
|
@@ -990,18 +987,18 @@ const oo = (n) => {
|
|
|
990
987
|
transform: "rotate(180deg)"
|
|
991
988
|
}
|
|
992
989
|
}]
|
|
993
|
-
}),
|
|
990
|
+
}), so = H(Vt, {
|
|
994
991
|
name: "MuiAutocomplete",
|
|
995
992
|
slot: "Popper",
|
|
996
|
-
overridesResolver: (n,
|
|
993
|
+
overridesResolver: (n, i) => {
|
|
997
994
|
const {
|
|
998
995
|
ownerState: d
|
|
999
996
|
} = n;
|
|
1000
997
|
return [{
|
|
1001
|
-
[`& .${l.option}`]:
|
|
1002
|
-
},
|
|
998
|
+
[`& .${l.option}`]: i.option
|
|
999
|
+
}, i.popper, d.disablePortal && i.popperDisablePortal];
|
|
1003
1000
|
}
|
|
1004
|
-
})(
|
|
1001
|
+
})(pe(({
|
|
1005
1002
|
theme: n
|
|
1006
1003
|
}) => ({
|
|
1007
1004
|
zIndex: (n.vars || n).zIndex.modal,
|
|
@@ -1015,36 +1012,32 @@ const oo = (n) => {
|
|
|
1015
1012
|
}]
|
|
1016
1013
|
}))), lo = H(Mt, {
|
|
1017
1014
|
name: "MuiAutocomplete",
|
|
1018
|
-
slot: "Paper"
|
|
1019
|
-
|
|
1020
|
-
})(le(({
|
|
1015
|
+
slot: "Paper"
|
|
1016
|
+
})(pe(({
|
|
1021
1017
|
theme: n
|
|
1022
1018
|
}) => ({
|
|
1023
1019
|
...n.typography.body1,
|
|
1024
1020
|
overflow: "auto"
|
|
1025
1021
|
}))), po = H("div", {
|
|
1026
1022
|
name: "MuiAutocomplete",
|
|
1027
|
-
slot: "Loading"
|
|
1028
|
-
|
|
1029
|
-
})(le(({
|
|
1023
|
+
slot: "Loading"
|
|
1024
|
+
})(pe(({
|
|
1030
1025
|
theme: n
|
|
1031
1026
|
}) => ({
|
|
1032
1027
|
color: (n.vars || n).palette.text.secondary,
|
|
1033
1028
|
padding: "14px 16px"
|
|
1034
1029
|
}))), uo = H("div", {
|
|
1035
1030
|
name: "MuiAutocomplete",
|
|
1036
|
-
slot: "NoOptions"
|
|
1037
|
-
|
|
1038
|
-
})(le(({
|
|
1031
|
+
slot: "NoOptions"
|
|
1032
|
+
})(pe(({
|
|
1039
1033
|
theme: n
|
|
1040
1034
|
}) => ({
|
|
1041
1035
|
color: (n.vars || n).palette.text.secondary,
|
|
1042
1036
|
padding: "14px 16px"
|
|
1043
1037
|
}))), co = H("ul", {
|
|
1044
1038
|
name: "MuiAutocomplete",
|
|
1045
|
-
slot: "Listbox"
|
|
1046
|
-
|
|
1047
|
-
})(le(({
|
|
1039
|
+
slot: "Listbox"
|
|
1040
|
+
})(pe(({
|
|
1048
1041
|
theme: n
|
|
1049
1042
|
}) => ({
|
|
1050
1043
|
listStyle: "none",
|
|
@@ -1100,44 +1093,42 @@ const oo = (n) => {
|
|
|
1100
1093
|
}
|
|
1101
1094
|
}))), fo = H(Xe, {
|
|
1102
1095
|
name: "MuiAutocomplete",
|
|
1103
|
-
slot: "GroupLabel"
|
|
1104
|
-
|
|
1105
|
-
})(le(({
|
|
1096
|
+
slot: "GroupLabel"
|
|
1097
|
+
})(pe(({
|
|
1106
1098
|
theme: n
|
|
1107
1099
|
}) => ({
|
|
1108
1100
|
backgroundColor: (n.vars || n).palette.background.paper,
|
|
1109
1101
|
top: -8
|
|
1110
1102
|
}))), go = H("ul", {
|
|
1111
1103
|
name: "MuiAutocomplete",
|
|
1112
|
-
slot: "GroupUl"
|
|
1113
|
-
overridesResolver: (n, a) => a.groupUl
|
|
1104
|
+
slot: "GroupUl"
|
|
1114
1105
|
})({
|
|
1115
1106
|
padding: 0,
|
|
1116
1107
|
[`& .${l.option}`]: {
|
|
1117
1108
|
paddingLeft: 24
|
|
1118
1109
|
}
|
|
1119
|
-
}), mo = /* @__PURE__ */ x.forwardRef(function(
|
|
1110
|
+
}), mo = /* @__PURE__ */ x.forwardRef(function(i, d) {
|
|
1120
1111
|
const m = Nt({
|
|
1121
|
-
props:
|
|
1112
|
+
props: i,
|
|
1122
1113
|
name: "MuiAutocomplete"
|
|
1123
1114
|
}), {
|
|
1124
|
-
autoComplete:
|
|
1115
|
+
autoComplete: T = !1,
|
|
1125
1116
|
autoHighlight: D = !1,
|
|
1126
|
-
autoSelect:
|
|
1117
|
+
autoSelect: v = !1,
|
|
1127
1118
|
blurOnSelect: N = !1,
|
|
1128
1119
|
ChipProps: B,
|
|
1129
1120
|
className: I,
|
|
1130
|
-
clearIcon:
|
|
1121
|
+
clearIcon: $ = Lt || (Lt = /* @__PURE__ */ A(jt, {
|
|
1131
1122
|
fontSize: "small"
|
|
1132
1123
|
})),
|
|
1133
1124
|
clearOnBlur: W = !m.freeSolo,
|
|
1134
|
-
clearOnEscape:
|
|
1125
|
+
clearOnEscape: ue = !1,
|
|
1135
1126
|
clearText: E = "Clear",
|
|
1136
|
-
closeText:
|
|
1127
|
+
closeText: Ae = "Close",
|
|
1137
1128
|
componentsProps: Le,
|
|
1138
1129
|
defaultValue: mt = m.multiple ? [] : null,
|
|
1139
1130
|
disableClearable: ke = !1,
|
|
1140
|
-
disableCloseOnSelect:
|
|
1131
|
+
disableCloseOnSelect: ce = !1,
|
|
1141
1132
|
disabled: G = !1,
|
|
1142
1133
|
disabledItemsFocusable: Re = !1,
|
|
1143
1134
|
disableListWrap: Qe = !1,
|
|
@@ -1156,32 +1147,32 @@ const oo = (n) => {
|
|
|
1156
1147
|
handleHomeEndKeys: ht = !m.freeSolo,
|
|
1157
1148
|
id: yt,
|
|
1158
1149
|
includeInputInList: xt = !1,
|
|
1159
|
-
inputValue:
|
|
1150
|
+
inputValue: K,
|
|
1160
1151
|
limitTags: L = -1,
|
|
1161
1152
|
ListboxComponent: ot,
|
|
1162
1153
|
ListboxProps: Me,
|
|
1163
1154
|
loading: M = !1,
|
|
1164
|
-
loadingText:
|
|
1165
|
-
multiple:
|
|
1166
|
-
noOptionsText:
|
|
1155
|
+
loadingText: S = "Loading…",
|
|
1156
|
+
multiple: xe = !1,
|
|
1157
|
+
noOptionsText: Ie = "No options",
|
|
1167
1158
|
onChange: h,
|
|
1168
1159
|
onClose: F,
|
|
1169
|
-
onHighlightChange:
|
|
1160
|
+
onHighlightChange: Oe,
|
|
1170
1161
|
onInputChange: It,
|
|
1171
1162
|
onOpen: V,
|
|
1172
1163
|
open: Ve,
|
|
1173
1164
|
openOnFocus: nt = !1,
|
|
1174
|
-
openText:
|
|
1165
|
+
openText: C = "Open",
|
|
1175
1166
|
options: Ot,
|
|
1176
|
-
PaperComponent:
|
|
1177
|
-
PopperComponent:
|
|
1178
|
-
popupIcon:
|
|
1167
|
+
PaperComponent: s,
|
|
1168
|
+
PopperComponent: Pe,
|
|
1169
|
+
popupIcon: g = kt || (kt = /* @__PURE__ */ A(zt, {})),
|
|
1179
1170
|
readOnly: ne = !1,
|
|
1180
1171
|
renderGroup: de,
|
|
1181
1172
|
renderInput: Fe,
|
|
1182
1173
|
renderOption: fe,
|
|
1183
|
-
renderTags:
|
|
1184
|
-
renderValue:
|
|
1174
|
+
renderTags: _,
|
|
1175
|
+
renderValue: re,
|
|
1185
1176
|
selectOnFocus: Pt = !m.freeSolo,
|
|
1186
1177
|
size: ge = "medium",
|
|
1187
1178
|
slots: He = {},
|
|
@@ -1195,43 +1186,43 @@ const oo = (n) => {
|
|
|
1195
1186
|
getPopupIndicatorProps: J,
|
|
1196
1187
|
getClearProps: U,
|
|
1197
1188
|
getItemProps: at,
|
|
1198
|
-
getListboxProps:
|
|
1199
|
-
getOptionProps:
|
|
1189
|
+
getListboxProps: Ce,
|
|
1190
|
+
getOptionProps: it,
|
|
1200
1191
|
value: R,
|
|
1201
|
-
dirty:
|
|
1192
|
+
dirty: ae,
|
|
1202
1193
|
expanded: X,
|
|
1203
1194
|
id: me,
|
|
1204
1195
|
popupOpen: q,
|
|
1205
1196
|
focused: je,
|
|
1206
1197
|
focusedItem: Ue,
|
|
1207
|
-
anchorEl:
|
|
1208
|
-
setAnchorEl:
|
|
1198
|
+
anchorEl: ie,
|
|
1199
|
+
setAnchorEl: st,
|
|
1209
1200
|
inputValue: lt,
|
|
1210
1201
|
groupedOptions: se
|
|
1211
1202
|
} = Yt({
|
|
1212
1203
|
...m,
|
|
1213
1204
|
componentName: "Autocomplete"
|
|
1214
|
-
}),
|
|
1205
|
+
}), $e = !ke && !G && ae && !ne, Se = (!De || ye === !0) && ye !== !1, {
|
|
1215
1206
|
onMouseDown: pt
|
|
1216
1207
|
} = j(), {
|
|
1217
1208
|
ref: ut,
|
|
1218
1209
|
...Be
|
|
1219
|
-
} =
|
|
1210
|
+
} = Ce(), be = Ne || ((c) => c.label ?? c), O = {
|
|
1220
1211
|
...m,
|
|
1221
1212
|
disablePortal: oe,
|
|
1222
1213
|
expanded: X,
|
|
1223
1214
|
focused: je,
|
|
1224
1215
|
fullWidth: Y,
|
|
1225
1216
|
getOptionLabel: be,
|
|
1226
|
-
hasClearIcon:
|
|
1227
|
-
hasPopupIcon:
|
|
1217
|
+
hasClearIcon: $e,
|
|
1218
|
+
hasPopupIcon: Se,
|
|
1228
1219
|
inputFocused: Ue === -1,
|
|
1229
1220
|
popupOpen: q,
|
|
1230
1221
|
size: ge
|
|
1231
|
-
},
|
|
1222
|
+
}, P = oo(O), Z = {
|
|
1232
1223
|
slots: {
|
|
1233
|
-
paper:
|
|
1234
|
-
popper:
|
|
1224
|
+
paper: s,
|
|
1225
|
+
popper: Pe,
|
|
1235
1226
|
...He
|
|
1236
1227
|
},
|
|
1237
1228
|
slotProps: {
|
|
@@ -1240,98 +1231,98 @@ const oo = (n) => {
|
|
|
1240
1231
|
...Le,
|
|
1241
1232
|
...k
|
|
1242
1233
|
}
|
|
1243
|
-
}, [
|
|
1234
|
+
}, [Te, We] = ft("listbox", {
|
|
1244
1235
|
elementType: co,
|
|
1245
1236
|
externalForwardedProps: Z,
|
|
1246
|
-
ownerState:
|
|
1247
|
-
className:
|
|
1237
|
+
ownerState: O,
|
|
1238
|
+
className: P.listbox,
|
|
1248
1239
|
additionalProps: Be,
|
|
1249
1240
|
ref: ut
|
|
1250
1241
|
}), [o, e] = ft("paper", {
|
|
1251
1242
|
elementType: Mt,
|
|
1252
1243
|
externalForwardedProps: Z,
|
|
1253
|
-
ownerState:
|
|
1254
|
-
className:
|
|
1244
|
+
ownerState: O,
|
|
1245
|
+
className: P.paper
|
|
1255
1246
|
}), [r, p] = ft("popper", {
|
|
1256
1247
|
elementType: Vt,
|
|
1257
1248
|
externalForwardedProps: Z,
|
|
1258
|
-
ownerState:
|
|
1259
|
-
className:
|
|
1249
|
+
ownerState: O,
|
|
1250
|
+
className: P.popper,
|
|
1260
1251
|
additionalProps: {
|
|
1261
1252
|
disablePortal: oe,
|
|
1262
1253
|
style: {
|
|
1263
|
-
width:
|
|
1254
|
+
width: ie ? ie.clientWidth : null
|
|
1264
1255
|
},
|
|
1265
1256
|
role: "presentation",
|
|
1266
|
-
anchorEl:
|
|
1257
|
+
anchorEl: ie,
|
|
1267
1258
|
open: q
|
|
1268
1259
|
}
|
|
1269
1260
|
});
|
|
1270
|
-
let
|
|
1271
|
-
const
|
|
1272
|
-
className:
|
|
1261
|
+
let a;
|
|
1262
|
+
const f = (c) => ({
|
|
1263
|
+
className: P.tag,
|
|
1273
1264
|
disabled: G,
|
|
1274
1265
|
...at(c)
|
|
1275
1266
|
});
|
|
1276
|
-
if (
|
|
1267
|
+
if (xe ? R.length > 0 && (_ ? a = _(R, f, O) : re ? a = re(R, f, O) : a = R.map((c, ee) => {
|
|
1277
1268
|
const {
|
|
1278
1269
|
key: te,
|
|
1279
|
-
...
|
|
1280
|
-
} =
|
|
1270
|
+
...we
|
|
1271
|
+
} = f({
|
|
1281
1272
|
index: ee
|
|
1282
1273
|
});
|
|
1283
|
-
return /* @__PURE__ */
|
|
1274
|
+
return /* @__PURE__ */ A(Gt, {
|
|
1284
1275
|
label: be(c),
|
|
1285
1276
|
size: ge,
|
|
1286
|
-
...
|
|
1277
|
+
...we,
|
|
1287
1278
|
...Z.slotProps.chip
|
|
1288
1279
|
}, te);
|
|
1289
|
-
})), L > -1 && Array.isArray(
|
|
1290
|
-
const c =
|
|
1291
|
-
!je && c > 0 && (
|
|
1292
|
-
className:
|
|
1280
|
+
})) : re && R != null && (a = re(R, f, O)), L > -1 && Array.isArray(a)) {
|
|
1281
|
+
const c = a.length - L;
|
|
1282
|
+
!je && c > 0 && (a = a.splice(0, L), a.push(/* @__PURE__ */ A("span", {
|
|
1283
|
+
className: P.tag,
|
|
1293
1284
|
children: u(c)
|
|
1294
|
-
},
|
|
1285
|
+
}, a.length)));
|
|
1295
1286
|
}
|
|
1296
|
-
const
|
|
1297
|
-
children: [/* @__PURE__ */
|
|
1298
|
-
className:
|
|
1299
|
-
ownerState:
|
|
1287
|
+
const w = de || ((c) => /* @__PURE__ */ Ke("li", {
|
|
1288
|
+
children: [/* @__PURE__ */ A(fo, {
|
|
1289
|
+
className: P.groupLabel,
|
|
1290
|
+
ownerState: O,
|
|
1300
1291
|
component: "div",
|
|
1301
1292
|
children: c.group
|
|
1302
|
-
}), /* @__PURE__ */
|
|
1303
|
-
className:
|
|
1304
|
-
ownerState:
|
|
1293
|
+
}), /* @__PURE__ */ A(go, {
|
|
1294
|
+
className: P.groupUl,
|
|
1295
|
+
ownerState: O,
|
|
1305
1296
|
children: c.children
|
|
1306
1297
|
})]
|
|
1307
1298
|
}, c.key)), Ht = fe || ((c, ee) => {
|
|
1308
1299
|
const {
|
|
1309
1300
|
key: te,
|
|
1310
|
-
...
|
|
1301
|
+
...we
|
|
1311
1302
|
} = c;
|
|
1312
|
-
return /* @__PURE__ */
|
|
1313
|
-
...
|
|
1303
|
+
return /* @__PURE__ */ A("li", {
|
|
1304
|
+
...we,
|
|
1314
1305
|
children: be(ee)
|
|
1315
1306
|
}, te);
|
|
1316
|
-
}),
|
|
1317
|
-
const te =
|
|
1307
|
+
}), $t = (c, ee) => {
|
|
1308
|
+
const te = it({
|
|
1318
1309
|
option: c,
|
|
1319
1310
|
index: ee
|
|
1320
1311
|
});
|
|
1321
1312
|
return Ht({
|
|
1322
1313
|
...te,
|
|
1323
|
-
className:
|
|
1314
|
+
className: P.option
|
|
1324
1315
|
}, c, {
|
|
1325
1316
|
selected: te["aria-selected"],
|
|
1326
1317
|
index: ee,
|
|
1327
1318
|
inputValue: lt
|
|
1328
|
-
},
|
|
1319
|
+
}, O);
|
|
1329
1320
|
}, Ge = Z.slotProps.clearIndicator, qe = Z.slotProps.popupIndicator;
|
|
1330
|
-
return /* @__PURE__ */
|
|
1331
|
-
children: [/* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ Ke(x.Fragment, {
|
|
1322
|
+
children: [/* @__PURE__ */ A(no, {
|
|
1332
1323
|
ref: d,
|
|
1333
|
-
className: Je(
|
|
1334
|
-
ownerState:
|
|
1324
|
+
className: Je(P.root, I),
|
|
1325
|
+
ownerState: O,
|
|
1335
1326
|
...ze(z),
|
|
1336
1327
|
children: Fe({
|
|
1337
1328
|
id: me,
|
|
@@ -1340,70 +1331,70 @@ const oo = (n) => {
|
|
|
1340
1331
|
size: ge === "small" ? "small" : void 0,
|
|
1341
1332
|
InputLabelProps: rt(),
|
|
1342
1333
|
InputProps: {
|
|
1343
|
-
ref:
|
|
1344
|
-
className:
|
|
1345
|
-
startAdornment:
|
|
1334
|
+
ref: st,
|
|
1335
|
+
className: P.inputRoot,
|
|
1336
|
+
startAdornment: a,
|
|
1346
1337
|
onMouseDown: (c) => {
|
|
1347
1338
|
c.target === c.currentTarget && pt(c);
|
|
1348
1339
|
},
|
|
1349
|
-
...(
|
|
1350
|
-
endAdornment: /* @__PURE__ */
|
|
1351
|
-
className:
|
|
1352
|
-
ownerState:
|
|
1353
|
-
children: [
|
|
1340
|
+
...($e || Se) && {
|
|
1341
|
+
endAdornment: /* @__PURE__ */ Ke(ro, {
|
|
1342
|
+
className: P.endAdornment,
|
|
1343
|
+
ownerState: O,
|
|
1344
|
+
children: [$e ? /* @__PURE__ */ A(ao, {
|
|
1354
1345
|
...U(),
|
|
1355
1346
|
"aria-label": E,
|
|
1356
1347
|
title: E,
|
|
1357
|
-
ownerState:
|
|
1348
|
+
ownerState: O,
|
|
1358
1349
|
...Ge,
|
|
1359
|
-
className: Je(
|
|
1360
|
-
children:
|
|
1361
|
-
}) : null,
|
|
1350
|
+
className: Je(P.clearIndicator, Ge == null ? void 0 : Ge.className),
|
|
1351
|
+
children: $
|
|
1352
|
+
}) : null, Se ? /* @__PURE__ */ A(io, {
|
|
1362
1353
|
...J(),
|
|
1363
1354
|
disabled: G,
|
|
1364
|
-
"aria-label": q ?
|
|
1365
|
-
title: q ?
|
|
1366
|
-
ownerState:
|
|
1355
|
+
"aria-label": q ? Ae : C,
|
|
1356
|
+
title: q ? Ae : C,
|
|
1357
|
+
ownerState: O,
|
|
1367
1358
|
...qe,
|
|
1368
|
-
className: Je(
|
|
1369
|
-
children:
|
|
1359
|
+
className: Je(P.popupIndicator, qe == null ? void 0 : qe.className),
|
|
1360
|
+
children: g
|
|
1370
1361
|
}) : null]
|
|
1371
1362
|
})
|
|
1372
1363
|
}
|
|
1373
1364
|
},
|
|
1374
1365
|
inputProps: {
|
|
1375
|
-
className:
|
|
1366
|
+
className: P.input,
|
|
1376
1367
|
disabled: G,
|
|
1377
1368
|
readOnly: ne,
|
|
1378
1369
|
...j()
|
|
1379
1370
|
}
|
|
1380
1371
|
})
|
|
1381
|
-
}),
|
|
1372
|
+
}), ie ? /* @__PURE__ */ A(so, {
|
|
1382
1373
|
as: r,
|
|
1383
1374
|
...p,
|
|
1384
|
-
children: /* @__PURE__ */
|
|
1375
|
+
children: /* @__PURE__ */ Ke(lo, {
|
|
1385
1376
|
as: o,
|
|
1386
1377
|
...e,
|
|
1387
|
-
children: [M && se.length === 0 ? /* @__PURE__ */
|
|
1388
|
-
className:
|
|
1389
|
-
ownerState:
|
|
1390
|
-
children:
|
|
1391
|
-
}) : null, se.length === 0 && !De && !M ? /* @__PURE__ */
|
|
1392
|
-
className:
|
|
1393
|
-
ownerState:
|
|
1378
|
+
children: [M && se.length === 0 ? /* @__PURE__ */ A(po, {
|
|
1379
|
+
className: P.loading,
|
|
1380
|
+
ownerState: O,
|
|
1381
|
+
children: S
|
|
1382
|
+
}) : null, se.length === 0 && !De && !M ? /* @__PURE__ */ A(uo, {
|
|
1383
|
+
className: P.noOptions,
|
|
1384
|
+
ownerState: O,
|
|
1394
1385
|
role: "presentation",
|
|
1395
1386
|
onMouseDown: (c) => {
|
|
1396
1387
|
c.preventDefault();
|
|
1397
1388
|
},
|
|
1398
|
-
children:
|
|
1399
|
-
}) : null, se.length > 0 ? /* @__PURE__ */
|
|
1389
|
+
children: Ie
|
|
1390
|
+
}) : null, se.length > 0 ? /* @__PURE__ */ A(Te, {
|
|
1400
1391
|
as: ot,
|
|
1401
1392
|
...We,
|
|
1402
|
-
children: se.map((c, ee) => Ee ?
|
|
1393
|
+
children: se.map((c, ee) => Ee ? w({
|
|
1403
1394
|
key: c.key,
|
|
1404
1395
|
group: c.group,
|
|
1405
|
-
children: c.options.map((te,
|
|
1406
|
-
}) :
|
|
1396
|
+
children: c.options.map((te, we) => $t(te, c.index + we))
|
|
1397
|
+
}) : $t(c, ee))
|
|
1407
1398
|
}) : null]
|
|
1408
1399
|
})
|
|
1409
1400
|
}) : null]
|
|
@@ -1505,7 +1496,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
1505
1496
|
* The default value. Use when the component is not controlled.
|
|
1506
1497
|
* @default props.multiple ? [] : null
|
|
1507
1498
|
*/
|
|
1508
|
-
defaultValue:
|
|
1499
|
+
defaultValue: Tt(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(`
|
|
1509
1500
|
`)) : null),
|
|
1510
1501
|
/**
|
|
1511
1502
|
* If `true`, the input can't be cleared.
|
|
@@ -1776,6 +1767,13 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
1776
1767
|
/**
|
|
1777
1768
|
* Render the input.
|
|
1778
1769
|
*
|
|
1770
|
+
* **Note:** The `renderInput` prop must return a `TextField` component or a compatible custom component
|
|
1771
|
+
* that correctly forwards `InputProps.ref` and spreads `inputProps`. This ensures proper integration
|
|
1772
|
+
* with the Autocomplete's internal logic (e.g., focus management and keyboard navigation).
|
|
1773
|
+
*
|
|
1774
|
+
* Avoid using components like `DatePicker` or `Select` directly, as they may not forward the required props,
|
|
1775
|
+
* leading to runtime errors or unexpected behavior.
|
|
1776
|
+
*
|
|
1779
1777
|
* @param {object} params
|
|
1780
1778
|
* @returns {ReactNode}
|
|
1781
1779
|
*/
|
|
@@ -1852,7 +1850,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
1852
1850
|
* The value must have reference equality with the option in order to be selected.
|
|
1853
1851
|
* You can customize the equality behavior with the `isOptionEqualToValue` prop.
|
|
1854
1852
|
*/
|
|
1855
|
-
value:
|
|
1853
|
+
value: Tt(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(`
|
|
1856
1854
|
`)) : null)
|
|
1857
1855
|
});
|
|
1858
1856
|
export {
|
|
@@ -1860,7 +1858,7 @@ export {
|
|
|
1860
1858
|
Xe as L,
|
|
1861
1859
|
l as a,
|
|
1862
1860
|
Qt as b,
|
|
1863
|
-
|
|
1861
|
+
Kt as c,
|
|
1864
1862
|
to as g,
|
|
1865
|
-
|
|
1863
|
+
Mo as l
|
|
1866
1864
|
};
|