@cgi-learning-hub/ui 1.6.0 → 1.7.0-dev.1750752562
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-PmI169Dq.js → Alert-BhLIlUBu.js} +126 -212
- 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-BIBR54X2.js → Autocomplete-WZw_zCjA.js} +391 -398
- package/dist/{Backdrop-BxgGvlLM.js → Backdrop-CjZYrxkZ.js} +5 -5
- package/dist/Backdrop-DeNTZlA5.cjs +1 -0
- package/dist/Badge-Bwcsnbsa.js +465 -0
- package/dist/Badge-DFzvdVS-.cjs +1 -0
- package/dist/{Box-o7Tjjyko.js → Box-BI4osO9v.js} +3 -3
- package/dist/Box-DR3n_po_.cjs +1 -0
- package/dist/{Button-D974vesA.js → Button-DDV5EfwJ.js} +115 -151
- package/dist/Button-DyJV5llI.cjs +1 -0
- package/dist/{ButtonBase-Chb99sDQ.js → ButtonBase-6TF6t2SP.js} +22 -23
- package/dist/ButtonBase-Dp6sf_dP.cjs +74 -0
- package/dist/CardContent-COfaU6E0.cjs +1 -0
- package/dist/{CardContent-DaZl2i3G.js → CardContent-D3uGcxlr.js} +34 -36
- package/dist/Checkbox-3hTSv0EZ.cjs +1 -0
- package/dist/{Checkbox-p-PKpEw_.js → Checkbox-BfBDowB2.js} +27 -28
- package/dist/Chip-BG0OU0KI.cjs +1 -0
- package/dist/{Chip-CPR3r42q.js → Chip-DmjZbx_X.js} +213 -164
- package/dist/CircularProgress-CXXyPavb.cjs +28 -0
- package/dist/{CircularProgress-DVKNRMKq.js → CircularProgress-DZuYTFz-.js} +34 -36
- package/dist/{Close-DyRqry3p.cjs → Close-7S2hSoFB.cjs} +1 -1
- package/dist/{Close-m-MX3rFn.js → Close-DEMecSZ6.js} +1 -1
- package/dist/{CloseRounded-CjjQdrNy.js → CloseRounded-CioV1GK3.js} +1 -1
- package/dist/{CloseRounded-Bpxbxvyb.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-hFv1J_xl.js → DefaultPropsProvider-DqazQPtr.js} +36 -34
- package/dist/{Delete-9fJbdRit.js → Delete-B5VTV71K.js} +1 -1
- package/dist/{Delete-CEX2hq0f.cjs → Delete-BvkBJXEM.cjs} +1 -1
- package/dist/Dialog-Btagj_Gt.cjs +1 -0
- package/dist/{Dialog-BzsWl6Vl.js → Dialog-DEWB041V.js} +36 -41
- package/dist/{DialogContent-B41jvlMn.js → DialogContent-C294EkoQ.js} +3 -3
- package/dist/DialogContent-DXfUge3c.cjs +1 -0
- package/dist/{DialogTitle-CVvztEM0.js → DialogTitle-BSiId6Q1.js} +38 -40
- package/dist/DialogTitle-y2PrK6uU.cjs +1 -0
- package/dist/Divider-NermA5hZ.cjs +1 -0
- package/dist/{Divider-CJwnMdVg.js → Divider-kKp4VqHh.js} +4 -4
- package/dist/{Folder-7plrMkOp.cjs → Folder-BfLBqDHM.cjs} +1 -1
- package/dist/{Folder-CutUz0bW.js → Folder-BgQP5-Ve.js} +1 -1
- package/dist/{FormLabel-DSi2pGSZ.js → FormLabel-B3WAnPGP.js} +36 -38
- package/dist/FormLabel-JrZR9kt8.cjs +2 -0
- package/dist/Grid-BHYQ3JNy.cjs +2 -0
- package/dist/Grid-DFk-4jnZ.js +411 -0
- package/dist/Grow-BULCy6GX.cjs +1 -0
- package/dist/{Grow-FFFqe81C.js → Grow-BfjkXlG8.js} +2 -2
- package/dist/{IconButton-CgwURB2g.js → IconButton-BYvak8Nw.js} +13 -15
- package/dist/IconButton-CjtMjZ9e.cjs +2 -0
- package/dist/{InputAdornment-DgWvMLgR.js → InputAdornment-BBZXvhZ-.js} +14 -15
- package/dist/InputAdornment-DvHQMisT.cjs +1 -0
- package/dist/{InputBase-DxLqRpcl.js → InputBase-BS5oknUK.js} +196 -194
- package/dist/InputBase-DPdKpmOz.cjs +4 -0
- package/dist/Link-BwbY60dS.cjs +1 -0
- package/dist/{Link-rb-SwfiY.js → Link-DYPjEdvu.js} +10 -11
- package/dist/{List-BjfdkeEI.js → List-CB_cqCSw.js} +2 -2
- package/dist/List-t9bWFewp.cjs +1 -0
- package/dist/{ListItem-B0EiObKw.js → ListItem-DAZQEir2.js} +25 -26
- package/dist/ListItem-DP7YmqZk.cjs +1 -0
- package/dist/ListItemText-cVnimPLO.cjs +1 -0
- package/dist/ListItemText-qfdqJP77.js +441 -0
- package/dist/{Menu-By6cOqEO.js → Menu-9BK8jmzW.js} +110 -114
- package/dist/Menu-C61wLk41.cjs +7 -0
- package/dist/{MenuItem-B1FTx8Uo.js → MenuItem-C8nduSzJ.js} +8 -8
- package/dist/MenuItem-DHM3qxwr.cjs +1 -0
- package/dist/{Modal-vrLLqk9Y.js → Modal-D3Q9vEAI.js} +51 -55
- package/dist/Modal-DkzrSKHd.cjs +2 -0
- package/dist/{MoreVert-DC6HBf1h.cjs → MoreVert-C-Rhn-xK.cjs} +1 -1
- package/dist/{MoreVert-DJ8sAY3o.js → MoreVert-C_W1m_Z_.js} +1 -1
- package/dist/Paper-BbqZL5vx.cjs +2 -0
- package/dist/Paper-IQckggbn.js +158 -0
- package/dist/{Popper-DfwuvxaQ.js → Popper-CfFLBZ7-.js} +6 -7
- package/dist/Popper-DvWx5tR3.cjs +4 -0
- package/dist/{Portal-ChC9wmMZ.js → Portal-BlK6ttxt.js} +5 -5
- package/dist/Portal-CPOCKeMh.cjs +1 -0
- package/dist/Radio-Bwh_t6PC.cjs +1 -0
- package/dist/{Radio-BqY-su_F.js → Radio-DKiu6lVB.js} +17 -19
- package/dist/RadioGroup-Cvnwt4JE.cjs +1 -0
- package/dist/{RadioGroup-BQvlYFpE.js → RadioGroup-DFKMlNWO.js} +4 -4
- package/dist/Select-3HP39Z7o.cjs +3 -0
- package/dist/{Select-DZMwqCYA.js → Select-CpNF3a57.js} +425 -410
- package/dist/Stack-CIyfgZCM.cjs +1 -0
- package/dist/{Stack-CMUWQxQn.js → Stack-DSJ2DqNd.js} +36 -37
- package/dist/Stepper-CXHfLPtA.cjs +1 -0
- package/dist/Stepper-DE2l91K0.js +965 -0
- package/dist/{Switch-Bg4QB4PJ.js → Switch-BIcwDf_P.js} +24 -27
- package/dist/Switch-CTEqKDiv.cjs +1 -0
- package/dist/{SwitchBase-EDFBMPd7.js → SwitchBase-DZV8S81Z.js} +21 -22
- package/dist/SwitchBase-P3zHVmLX.cjs +1 -0
- package/dist/{Tab-52AkFc9v.js → Tab-Ckr6Bn59.js} +96 -99
- package/dist/Tab-r5imbU9z.cjs +4 -0
- package/dist/{TextField-DG9mRp_m.js → TextField-BenBw4oE.js} +46 -48
- package/dist/TextField-Brw3X9cn.cjs +1 -0
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +138 -0
- package/dist/{Badge-rX7YUmBc.js → ToggleButtonGroup-DhtAoGtM.js} +3144 -4140
- package/dist/Tooltip-BAOKe3SY.cjs +4 -0
- package/dist/{Tooltip-DCgaU2em.js → Tooltip-KkgNQm4r.js} +27 -29
- package/dist/Typography-CSTmKyr8.cjs +1 -0
- package/dist/{Typography-DwMlN0K5.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/ButtonGroup/ButtonGroup.cjs.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/components/ButtonGroup/ButtonGroup.es.js +38 -0
- package/dist/components/ButtonGroup/index.cjs.js +1 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.es.js +4 -0
- package/dist/components/ButtonGroup/style.cjs.js +1 -0
- package/dist/components/ButtonGroup/style.es.js +29 -0
- package/dist/components/ButtonGroup/types.cjs.js +1 -0
- package/dist/components/ButtonGroup/types.d.ts +22 -0
- package/dist/components/ButtonGroup/types.es.js +1 -0
- package/dist/components/ColorPicker/ColorPicker.cjs.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.es.js +5 -5
- package/dist/components/ColorPicker/styles.es.js +13 -11
- 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 +8 -3
- 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.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.es.js +13 -12
- 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 +3 -3
- 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.d.ts +7 -2
- package/dist/components/index.es.js +402 -391
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Badge.stories.cjs.js +1 -0
- package/dist/components/stories/Badge.stories.d.ts +17 -0
- package/dist/components/stories/Badge.stories.es.js +188 -0
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.d.ts +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.cjs.js +153 -0
- package/dist/components/stories/ButtonGroup.stories.d.ts +17 -0
- package/dist/components/stories/ButtonGroup.stories.es.js +1296 -0
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.d.ts +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.d.ts +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.d.ts +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.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/Dropzone.stories.d.ts +1 -1
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +1 -1
- package/dist/components/stories/EmptyState.stories.d.ts +1 -1
- package/dist/components/stories/FileList.stories.d.ts +1 -1
- package/dist/components/stories/FolderCard.stories.d.ts +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/ImagePicker.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Loader.stories.d.ts +1 -1
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/PasswordInput.stories.d.ts +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/SearchInput.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/Stepper.stories.cjs.js +1 -0
- package/dist/components/stories/Stepper.stories.d.ts +7 -0
- package/dist/components/stories/Stepper.stories.es.js +161 -0
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.d.ts +1 -1
- package/dist/components/stories/TreeView.stories.es.js +39 -38
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.d.ts +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BlKmtOkV.js → createSvgIcon-B1E6Wo8z.js} +7 -8
- package/dist/createSvgIcon-IET9soda.cjs +1 -0
- package/dist/{dividerClasses-Glz8RJdF.js → dividerClasses-BPJZ8SFy.js} +1 -1
- package/dist/dividerClasses-C07OJKLL.cjs +1 -0
- package/dist/elementAcceptingRef-BZ42cOGO.cjs +1 -0
- package/dist/{extendSxProp-BouzOuB6.js → extendSxProp-CesAxox9.js} +1 -1
- package/dist/extendSxProp-ZMCunXYm.cjs +1 -0
- package/dist/identifier-BoZelETM.cjs +55 -0
- package/dist/{generateUtilityClasses-DngCqveO.js → identifier-PWESmBq6.js} +582 -612
- package/dist/{index-l8yqod25.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 +402 -391
- package/dist/integerPropType-BihGt2aU.js +31 -0
- package/dist/integerPropType-CR7ytEJG.cjs +1 -0
- package/dist/{listItemTextClasses-BRj19IXv.js → listItemTextClasses-B5VhLd9W.js} +1 -1
- package/dist/listItemTextClasses-CJDKfXvl.cjs +1 -0
- package/dist/{memoTheme-BAbn60Cb.cjs → memoTheme-BKfsJx_F.cjs} +1 -1
- package/dist/{memoTheme-nmt7i1dS.js → memoTheme-DAFDflPY.js} +1 -1
- package/dist/{mergeSlotProps-BBciKnr4.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/{useEventCallback-Yoj9nCug.js → useEventCallback-Y2KwRxBw.js} +2 -2
- package/dist/usePreviousProps-ByGlbpJ6.js +10 -0
- package/dist/usePreviousProps-jC3PWcIp.cjs +1 -0
- package/dist/{useSlot-BDb1lvxu.js → useSlot-BzdKwDQ5.js} +1 -1
- package/dist/useSlot-C2FjoUpF.cjs +1 -0
- package/dist/{useSlotProps-OhEflPiz.cjs → useSlotProps-CrQGQLdL.cjs} +1 -1
- package/dist/{useSlotProps-B_D8u0j-.js → useSlotProps-DdMuGelR.js} +1 -1
- package/dist/{useTheme-D9cVynB-.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-ggw56DH-.js → useThemeProps-B4VFkcP0.js} +4 -4
- package/dist/{useThemeProps-DQOn-ezC.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-DW8yCR-B.cjs +0 -1
- package/dist/Autocomplete-D9hZ2wrR.cjs +0 -6
- package/dist/Backdrop-3TL73mAe.cjs +0 -1
- package/dist/Badge-DhyDno9j.cjs +0 -138
- package/dist/Box-DYD6q-6M.cjs +0 -1
- package/dist/Button-y1LmxqGA.cjs +0 -1
- package/dist/ButtonBase-Cteo-mSC.cjs +0 -74
- package/dist/CardContent-ji0_AneN.cjs +0 -1
- package/dist/Checkbox-XXqW_dbW.cjs +0 -1
- package/dist/Chip-Bpcd3tnL.cjs +0 -1
- package/dist/CircularProgress-Wqx0-T36.cjs +0 -28
- package/dist/CustomTreeItem-DPyfIueW.cjs +0 -3
- package/dist/CustomTreeItem-hIRSCwAW.js +0 -1336
- package/dist/DatePicker-BMzW4v1g.js +0 -10255
- package/dist/DatePicker-CNhBoaI3.cjs +0 -14
- package/dist/DefaultPropsProvider-B1crdkTC.cjs +0 -1
- package/dist/Dialog-B2LKe7ZM.cjs +0 -1
- package/dist/DialogContent-BbCu_OEw.cjs +0 -1
- package/dist/DialogTitle-SwUSpeBT.cjs +0 -1
- package/dist/Divider-Cshcr5kR.cjs +0 -1
- package/dist/FormLabel-0LbNeQQU.cjs +0 -2
- package/dist/Grow-aEgTOewU.cjs +0 -1
- package/dist/IconButton-BKwDNYJl.cjs +0 -2
- package/dist/InputAdornment-C7e-kyf7.cjs +0 -1
- package/dist/InputBase-pYQWRFK2.cjs +0 -3
- package/dist/Link-DUtuCYMx.cjs +0 -1
- package/dist/List-BH_S4Hqm.cjs +0 -1
- package/dist/ListItem-D33t-hkx.cjs +0 -1
- package/dist/ListItemText-B8jlTz59.cjs +0 -2
- package/dist/ListItemText-BeyHu1da.js +0 -853
- package/dist/Menu-BjrN8rMF.cjs +0 -7
- package/dist/MenuItem-Cz_x60jl.cjs +0 -1
- package/dist/Modal-DxwlW5NV.cjs +0 -2
- package/dist/Paper-984iTz4H.js +0 -186
- package/dist/Paper-Bh9CKUCb.cjs +0 -2
- package/dist/Popper-yO_RaCbM.cjs +0 -4
- package/dist/Portal-B5KqLEa0.cjs +0 -1
- package/dist/Radio-C7zzpRFc.cjs +0 -1
- package/dist/RadioGroup-BlUWRmLG.cjs +0 -1
- package/dist/Select-Doay7ukI.cjs +0 -3
- package/dist/Stack-BVWbOqY_.cjs +0 -1
- package/dist/Switch-CEfqaD33.cjs +0 -1
- package/dist/SwitchBase-DvCITKv8.cjs +0 -1
- package/dist/Tab-C6H241Pf.cjs +0 -4
- package/dist/TextField-bE2NUKKK.cjs +0 -1
- package/dist/Tooltip-D_w-IJoD.cjs +0 -4
- package/dist/Typography-De-21leI.cjs +0 -1
- package/dist/capitalize-BHFotl9B.js +0 -9
- package/dist/capitalize-CKLkSyDO.cjs +0 -1
- package/dist/composeClasses-CJKlIaRn.js +0 -51
- package/dist/composeClasses-CWgX5SFD.cjs +0 -1
- package/dist/createSvgIcon-BgBODH2F.cjs +0 -1
- package/dist/dividerClasses-D3gnW6kZ.cjs +0 -1
- package/dist/extendSxProp-Cm-DtZe3.cjs +0 -1
- package/dist/generateUtilityClasses-CMlilM6r.cjs +0 -55
- package/dist/getReactElementRef-EVJnBPlV.cjs +0 -1
- package/dist/index-BzsuDIEl.cjs +0 -1
- package/dist/listItemTextClasses-BJFgw1ah.cjs +0 -1
- package/dist/mergeSlotProps-Z5-o9vSe.cjs +0 -1
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useControlled-Ysk4KqoX.cjs +0 -3
- package/dist/useSlot-W0PiuVaZ.cjs +0 -1
- package/dist/useTheme-C59wIJ3-.js +0 -11
- package/dist/useTheme-ClhInrO2.cjs +0 -1
- package/dist/useTheme-CqYtLDbs.cjs +0 -1
- package/dist/useThemeProps-BFQ8ndnj.js +0 -17
- package/dist/useThemeProps-DYpozGhe.cjs +0 -1
- package/dist/{getReactElementRef-H8kwrWP1.js → elementAcceptingRef-CEweUuUA.js} +5 -5
|
@@ -1,86 +1,81 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as x from "react";
|
|
2
2
|
import { P as t } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as
|
|
4
|
-
import { A as
|
|
5
|
-
import { i as
|
|
6
|
-
import { C as
|
|
7
|
-
import { m as
|
|
8
|
-
import { u as ft } from "./useSlot-
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as gt } from "./useControlled-
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { P as Mt } from "./
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { I as
|
|
20
|
-
import { c as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return y.useEffect(() => {
|
|
24
|
-
a.current = n;
|
|
25
|
-
}), a.current;
|
|
26
|
-
};
|
|
27
|
-
function Tt(n) {
|
|
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
|
+
import { u as Ut } from "./useId-CK6Kn3Tn.js";
|
|
12
|
+
import { u as gt } from "./useControlled-nm4pBabJ.js";
|
|
13
|
+
import { u as Bt } from "./usePreviousProps-ByGlbpJ6.js";
|
|
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) {
|
|
28
23
|
return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
29
24
|
}
|
|
30
|
-
function
|
|
25
|
+
function Kt(n = {}) {
|
|
31
26
|
const {
|
|
32
|
-
ignoreAccents:
|
|
27
|
+
ignoreAccents: i = !0,
|
|
33
28
|
ignoreCase: d = !0,
|
|
34
29
|
limit: m,
|
|
35
|
-
matchFrom:
|
|
30
|
+
matchFrom: T = "any",
|
|
36
31
|
stringify: D,
|
|
37
|
-
trim:
|
|
32
|
+
trim: v = !1
|
|
38
33
|
} = n;
|
|
39
34
|
return (N, {
|
|
40
35
|
inputValue: B,
|
|
41
36
|
getOptionLabel: I
|
|
42
37
|
}) => {
|
|
43
|
-
let
|
|
44
|
-
d && (
|
|
45
|
-
const W =
|
|
46
|
-
let E = (D || I)(
|
|
47
|
-
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($);
|
|
48
43
|
}) : N;
|
|
49
44
|
return typeof m == "number" ? W.slice(0, m) : W;
|
|
50
45
|
};
|
|
51
46
|
}
|
|
52
|
-
const _t =
|
|
53
|
-
var
|
|
54
|
-
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));
|
|
55
50
|
}, Xt = [];
|
|
56
|
-
function At(n,
|
|
57
|
-
if (
|
|
51
|
+
function At(n, i, d, m) {
|
|
52
|
+
if (i || n == null || m)
|
|
58
53
|
return "";
|
|
59
|
-
const
|
|
60
|
-
return typeof
|
|
54
|
+
const T = d(n);
|
|
55
|
+
return typeof T == "string" ? T : "";
|
|
61
56
|
}
|
|
62
57
|
function Yt(n) {
|
|
63
58
|
const {
|
|
64
59
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
65
|
-
unstable_isActiveElementInListbox:
|
|
60
|
+
unstable_isActiveElementInListbox: i = Jt,
|
|
66
61
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
67
62
|
unstable_classNamePrefix: d = "Mui",
|
|
68
63
|
autoComplete: m = !1,
|
|
69
|
-
autoHighlight:
|
|
64
|
+
autoHighlight: T = !1,
|
|
70
65
|
autoSelect: D = !1,
|
|
71
|
-
blurOnSelect:
|
|
66
|
+
blurOnSelect: v = !1,
|
|
72
67
|
clearOnBlur: N = !n.freeSolo,
|
|
73
68
|
clearOnEscape: B = !1,
|
|
74
69
|
componentName: I = "useAutocomplete",
|
|
75
|
-
defaultValue:
|
|
70
|
+
defaultValue: $ = n.multiple ? Xt : null,
|
|
76
71
|
disableClearable: W = !1,
|
|
77
|
-
disableCloseOnSelect:
|
|
72
|
+
disableCloseOnSelect: ue = !1,
|
|
78
73
|
disabled: E,
|
|
79
|
-
disabledItemsFocusable:
|
|
74
|
+
disabledItemsFocusable: Ae = !1,
|
|
80
75
|
disableListWrap: Le = !1,
|
|
81
76
|
filterOptions: mt = _t,
|
|
82
77
|
filterSelectedOptions: ke = !1,
|
|
83
|
-
freeSolo:
|
|
78
|
+
freeSolo: ce = !1,
|
|
84
79
|
getOptionDisabled: G,
|
|
85
80
|
getOptionKey: Re,
|
|
86
81
|
getOptionLabel: Qe = (o) => o.label ?? o,
|
|
@@ -99,13 +94,13 @@ function Yt(n) {
|
|
|
99
94
|
open: ht,
|
|
100
95
|
openOnFocus: yt = !1,
|
|
101
96
|
options: xt,
|
|
102
|
-
readOnly:
|
|
97
|
+
readOnly: K = !1,
|
|
103
98
|
renderValue: L,
|
|
104
99
|
selectOnFocus: ot = !n.freeSolo,
|
|
105
100
|
value: Me
|
|
106
|
-
} = n, M =
|
|
107
|
-
let
|
|
108
|
-
|
|
101
|
+
} = n, M = Ut(bt);
|
|
102
|
+
let S = Qe;
|
|
103
|
+
S = (o) => {
|
|
109
104
|
const e = Qe(o);
|
|
110
105
|
if (typeof e != "string") {
|
|
111
106
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -116,87 +111,87 @@ function Yt(n) {
|
|
|
116
111
|
}
|
|
117
112
|
return e;
|
|
118
113
|
};
|
|
119
|
-
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({
|
|
120
115
|
controlled: Me,
|
|
121
|
-
default:
|
|
116
|
+
default: $,
|
|
122
117
|
name: I
|
|
123
|
-
}), [
|
|
118
|
+
}), [g, ne] = gt({
|
|
124
119
|
controlled: De,
|
|
125
120
|
default: Ot,
|
|
126
121
|
name: I,
|
|
127
122
|
state: "inputValue"
|
|
128
|
-
}), [de, Fe] =
|
|
129
|
-
if (!(u ?
|
|
123
|
+
}), [de, Fe] = x.useState(!1), fe = x.useCallback((o, e, r) => {
|
|
124
|
+
if (!(u ? s.length < e.length : e !== null) && !N)
|
|
130
125
|
return;
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
}, [
|
|
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({
|
|
134
129
|
controlled: ht,
|
|
135
130
|
default: !1,
|
|
136
131
|
name: I,
|
|
137
132
|
state: "open"
|
|
138
|
-
}), [Pt, ge] =
|
|
139
|
-
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)))),
|
|
140
135
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
141
136
|
// i.e. the filter predicate always returns true
|
|
142
137
|
{
|
|
143
|
-
inputValue: He && Pt ? "" :
|
|
144
|
-
getOptionLabel:
|
|
138
|
+
inputValue: He && Pt ? "" : g,
|
|
139
|
+
getOptionLabel: S
|
|
145
140
|
}
|
|
146
|
-
) : [], z =
|
|
141
|
+
) : [], z = Bt({
|
|
147
142
|
filteredOptions: b,
|
|
148
|
-
value:
|
|
149
|
-
inputValue:
|
|
143
|
+
value: s,
|
|
144
|
+
inputValue: g
|
|
150
145
|
});
|
|
151
|
-
|
|
152
|
-
const o =
|
|
153
|
-
de && !o ||
|
|
154
|
-
}, [
|
|
155
|
-
const ze =
|
|
146
|
+
x.useEffect(() => {
|
|
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) => {
|
|
156
151
|
if (o === -1)
|
|
157
152
|
h.current.focus();
|
|
158
153
|
else {
|
|
159
154
|
const e = L ? "data-item-index" : "data-tag-index";
|
|
160
|
-
|
|
155
|
+
Oe.querySelector(`[${e}="${o}"]`).focus();
|
|
161
156
|
}
|
|
162
157
|
});
|
|
163
|
-
|
|
164
|
-
u && V >
|
|
165
|
-
}, [
|
|
158
|
+
x.useEffect(() => {
|
|
159
|
+
u && V > s.length - 1 && (Ve(-1), j(-1));
|
|
160
|
+
}, [s, u, V, j]);
|
|
166
161
|
function rt(o, e) {
|
|
167
162
|
if (!F.current || o < 0 || o >= b.length)
|
|
168
163
|
return -1;
|
|
169
164
|
let r = o;
|
|
170
165
|
for (; ; ) {
|
|
171
|
-
const p = F.current.querySelector(`[data-option-index="${r}"]`),
|
|
172
|
-
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)
|
|
173
168
|
return r;
|
|
174
169
|
if (e === "next" ? r = (r + 1) % b.length : r = (r - 1 + b.length) % b.length, r === o)
|
|
175
170
|
return -1;
|
|
176
171
|
}
|
|
177
172
|
}
|
|
178
|
-
const J =
|
|
173
|
+
const J = _e(({
|
|
179
174
|
event: o,
|
|
180
175
|
index: e,
|
|
181
176
|
reason: r
|
|
182
177
|
}) => {
|
|
183
|
-
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)
|
|
184
179
|
return;
|
|
185
180
|
const p = F.current.querySelector(`[role="option"].${d}-focused`);
|
|
186
181
|
p && (p.classList.remove(`${d}-focused`), p.classList.remove(`${d}-focusVisible`));
|
|
187
|
-
let
|
|
188
|
-
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)
|
|
189
184
|
return;
|
|
190
185
|
if (e === -1) {
|
|
191
|
-
|
|
186
|
+
a.scrollTop = 0;
|
|
192
187
|
return;
|
|
193
188
|
}
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
196
|
-
const
|
|
197
|
-
|
|
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));
|
|
198
193
|
}
|
|
199
|
-
}), U =
|
|
194
|
+
}), U = _e(({
|
|
200
195
|
event: o,
|
|
201
196
|
diff: e,
|
|
202
197
|
direction: r = "next",
|
|
@@ -204,48 +199,48 @@ function Yt(n) {
|
|
|
204
199
|
}) => {
|
|
205
200
|
if (!k)
|
|
206
201
|
return;
|
|
207
|
-
const
|
|
208
|
-
const
|
|
202
|
+
const f = rt((() => {
|
|
203
|
+
const y = b.length - 1;
|
|
209
204
|
if (e === "reset")
|
|
210
205
|
return nt;
|
|
211
206
|
if (e === "start")
|
|
212
207
|
return 0;
|
|
213
208
|
if (e === "end")
|
|
214
|
-
return
|
|
215
|
-
const
|
|
216
|
-
return
|
|
209
|
+
return y;
|
|
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;
|
|
217
212
|
})(), r);
|
|
218
213
|
if (J({
|
|
219
|
-
index:
|
|
214
|
+
index: f,
|
|
220
215
|
reason: p,
|
|
221
216
|
event: o
|
|
222
217
|
}), m && e !== "reset")
|
|
223
|
-
if (
|
|
224
|
-
h.current.value =
|
|
218
|
+
if (f === -1)
|
|
219
|
+
h.current.value = g;
|
|
225
220
|
else {
|
|
226
|
-
const
|
|
227
|
-
h.current.value =
|
|
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);
|
|
228
223
|
}
|
|
229
224
|
}), at = () => {
|
|
230
225
|
const o = (e, r) => {
|
|
231
|
-
const p = e ?
|
|
232
|
-
return p ===
|
|
226
|
+
const p = e ? S(e) : "", a = r ? S(r) : "";
|
|
227
|
+
return p === a;
|
|
233
228
|
};
|
|
234
|
-
if (
|
|
235
|
-
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];
|
|
236
231
|
if (e)
|
|
237
|
-
return b.findIndex((r) =>
|
|
232
|
+
return b.findIndex((r) => S(r) === S(e));
|
|
238
233
|
}
|
|
239
234
|
return -1;
|
|
240
|
-
},
|
|
235
|
+
}, Ce = x.useCallback(() => {
|
|
241
236
|
if (!k)
|
|
242
237
|
return;
|
|
243
238
|
const o = at();
|
|
244
239
|
if (o !== -1) {
|
|
245
|
-
|
|
240
|
+
C.current = o;
|
|
246
241
|
return;
|
|
247
242
|
}
|
|
248
|
-
const e = u ?
|
|
243
|
+
const e = u ? s[0] : s;
|
|
249
244
|
if (b.length === 0 || e == null) {
|
|
250
245
|
U({
|
|
251
246
|
diff: "reset"
|
|
@@ -254,10 +249,10 @@ function Yt(n) {
|
|
|
254
249
|
}
|
|
255
250
|
if (F.current) {
|
|
256
251
|
if (e != null) {
|
|
257
|
-
const r = b[
|
|
258
|
-
if (u && r &&
|
|
252
|
+
const r = b[C.current];
|
|
253
|
+
if (u && r && s.findIndex((a) => Y(r, a)) !== -1)
|
|
259
254
|
return;
|
|
260
|
-
const p = b.findIndex((
|
|
255
|
+
const p = b.findIndex((a) => Y(a, e));
|
|
261
256
|
p === -1 ? U({
|
|
262
257
|
diff: "reset"
|
|
263
258
|
}) : J({
|
|
@@ -265,14 +260,14 @@ function Yt(n) {
|
|
|
265
260
|
});
|
|
266
261
|
return;
|
|
267
262
|
}
|
|
268
|
-
if (
|
|
263
|
+
if (C.current >= b.length - 1) {
|
|
269
264
|
J({
|
|
270
265
|
index: b.length - 1
|
|
271
266
|
});
|
|
272
267
|
return;
|
|
273
268
|
}
|
|
274
269
|
J({
|
|
275
|
-
index:
|
|
270
|
+
index: C.current
|
|
276
271
|
});
|
|
277
272
|
}
|
|
278
273
|
}, [
|
|
@@ -280,58 +275,58 @@ function Yt(n) {
|
|
|
280
275
|
b.length,
|
|
281
276
|
// Don't sync the highlighted index with the value when multiple
|
|
282
277
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
283
|
-
u ? !1 :
|
|
278
|
+
u ? !1 : s,
|
|
284
279
|
ke,
|
|
285
280
|
U,
|
|
286
281
|
J,
|
|
287
282
|
k,
|
|
288
|
-
|
|
283
|
+
g,
|
|
289
284
|
u
|
|
290
|
-
]),
|
|
291
|
-
|
|
285
|
+
]), it = _e((o) => {
|
|
286
|
+
Wt(F, o), o && Ce();
|
|
292
287
|
});
|
|
293
|
-
process.env.NODE_ENV !== "production" &&
|
|
288
|
+
process.env.NODE_ENV !== "production" && x.useEffect(() => {
|
|
294
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(`
|
|
295
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(`
|
|
296
291
|
`)));
|
|
297
|
-
}, [I]),
|
|
298
|
-
|
|
299
|
-
}, [
|
|
292
|
+
}, [I]), x.useEffect(() => {
|
|
293
|
+
Ce();
|
|
294
|
+
}, [Ce]);
|
|
300
295
|
const R = (o) => {
|
|
301
|
-
|
|
302
|
-
},
|
|
303
|
-
|
|
296
|
+
_ || (re(!0), ge(!0), Ee && Ee(o));
|
|
297
|
+
}, ae = (o, e) => {
|
|
298
|
+
_ && (re(!1), tt && tt(o, e));
|
|
304
299
|
}, X = (o, e, r, p) => {
|
|
305
300
|
if (u) {
|
|
306
|
-
if (
|
|
301
|
+
if (s.length === e.length && s.every((a, f) => a === e[f]))
|
|
307
302
|
return;
|
|
308
|
-
} else if (
|
|
303
|
+
} else if (s === e)
|
|
309
304
|
return;
|
|
310
|
-
et && et(o, e, r, p),
|
|
311
|
-
}, me =
|
|
312
|
-
let
|
|
305
|
+
et && et(o, e, r, p), Pe(e);
|
|
306
|
+
}, me = x.useRef(!1), q = (o, e, r = "selectOption", p = "options") => {
|
|
307
|
+
let a = r, f = e;
|
|
313
308
|
if (u) {
|
|
314
|
-
if (
|
|
315
|
-
const
|
|
316
|
-
|
|
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(`
|
|
317
312
|
`));
|
|
318
313
|
}
|
|
319
|
-
const
|
|
320
|
-
|
|
314
|
+
const y = f.findIndex((w) => Y(e, w));
|
|
315
|
+
y === -1 ? f.push(e) : p !== "freeSolo" && (f.splice(y, 1), a = "removeOption");
|
|
321
316
|
}
|
|
322
|
-
fe(o,
|
|
317
|
+
fe(o, f, a), X(o, f, a, {
|
|
323
318
|
option: e
|
|
324
|
-
}), !
|
|
319
|
+
}), !ue && (!o || !o.ctrlKey && !o.metaKey) && ae(o, a), (v === !0 || v === "touch" && me.current || v === "mouse" && !me.current) && h.current.blur();
|
|
325
320
|
};
|
|
326
321
|
function je(o, e) {
|
|
327
322
|
if (o === -1)
|
|
328
323
|
return -1;
|
|
329
324
|
let r = o;
|
|
330
325
|
for (; ; ) {
|
|
331
|
-
if (e === "next" && r ===
|
|
326
|
+
if (e === "next" && r === s.length || e === "previous" && r === -1)
|
|
332
327
|
return -1;
|
|
333
|
-
const p = L ? "data-item-index" : "data-tag-index",
|
|
334
|
-
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")
|
|
335
330
|
r += e === "next" ? 1 : -1;
|
|
336
331
|
else
|
|
337
332
|
return r;
|
|
@@ -340,12 +335,12 @@ function Yt(n) {
|
|
|
340
335
|
const Ue = (o, e) => {
|
|
341
336
|
if (!u)
|
|
342
337
|
return;
|
|
343
|
-
|
|
338
|
+
g === "" && ae(o, "toggleInput");
|
|
344
339
|
let r = V;
|
|
345
|
-
V === -1 ?
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
},
|
|
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) => {
|
|
349
344
|
if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (V !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Ve(-1), j(-1)), e.which !== 229))
|
|
350
345
|
switch (e.key) {
|
|
351
346
|
case "Home":
|
|
@@ -366,7 +361,7 @@ function Yt(n) {
|
|
|
366
361
|
break;
|
|
367
362
|
case "PageUp":
|
|
368
363
|
e.preventDefault(), U({
|
|
369
|
-
diff: -
|
|
364
|
+
diff: -wt,
|
|
370
365
|
direction: "previous",
|
|
371
366
|
reason: "keyboard",
|
|
372
367
|
event: e
|
|
@@ -374,7 +369,7 @@ function Yt(n) {
|
|
|
374
369
|
break;
|
|
375
370
|
case "PageDown":
|
|
376
371
|
e.preventDefault(), U({
|
|
377
|
-
diff:
|
|
372
|
+
diff: wt,
|
|
378
373
|
direction: "next",
|
|
379
374
|
reason: "keyboard",
|
|
380
375
|
event: e
|
|
@@ -403,49 +398,49 @@ function Yt(n) {
|
|
|
403
398
|
!u && L ? j(-1) : Ue(e, "next");
|
|
404
399
|
break;
|
|
405
400
|
case "Enter":
|
|
406
|
-
if (
|
|
407
|
-
const r = b[
|
|
401
|
+
if (C.current !== -1 && k) {
|
|
402
|
+
const r = b[C.current], p = G ? G(r) : !1;
|
|
408
403
|
if (e.preventDefault(), p)
|
|
409
404
|
return;
|
|
410
405
|
q(e, r, "selectOption"), m && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
|
|
411
|
-
} else
|
|
406
|
+
} else ce && g !== "" && He === !1 && (u && e.preventDefault(), q(e, g, "createOption", "freeSolo"));
|
|
412
407
|
break;
|
|
413
408
|
case "Escape":
|
|
414
|
-
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));
|
|
415
410
|
break;
|
|
416
411
|
case "Backspace":
|
|
417
|
-
if (u && !
|
|
418
|
-
const r = V === -1 ?
|
|
412
|
+
if (u && !K && g === "" && s.length > 0) {
|
|
413
|
+
const r = V === -1 ? s.length - 1 : V, p = s.slice();
|
|
419
414
|
p.splice(r, 1), X(e, p, "removeOption", {
|
|
420
|
-
option:
|
|
415
|
+
option: s[r]
|
|
421
416
|
});
|
|
422
417
|
}
|
|
423
|
-
!u && L && !
|
|
418
|
+
!u && L && !K && (Pe(null), j(-1));
|
|
424
419
|
break;
|
|
425
420
|
case "Delete":
|
|
426
|
-
if (u && !
|
|
427
|
-
const r = V, p =
|
|
421
|
+
if (u && !K && g === "" && s.length > 0 && V !== -1) {
|
|
422
|
+
const r = V, p = s.slice();
|
|
428
423
|
p.splice(r, 1), X(e, p, "removeOption", {
|
|
429
|
-
option:
|
|
424
|
+
option: s[r]
|
|
430
425
|
});
|
|
431
426
|
}
|
|
432
|
-
!u && L && !
|
|
427
|
+
!u && L && !K && (Pe(null), j(-1));
|
|
433
428
|
break;
|
|
434
429
|
}
|
|
435
430
|
}, lt = (o) => {
|
|
436
|
-
Fe(!0), yt && !
|
|
431
|
+
Fe(!0), yt && !xe.current && R(o);
|
|
437
432
|
}, se = (o) => {
|
|
438
|
-
if (
|
|
433
|
+
if (i(F)) {
|
|
439
434
|
h.current.focus();
|
|
440
435
|
return;
|
|
441
436
|
}
|
|
442
|
-
Fe(!1),
|
|
443
|
-
}, Ce = (o) => {
|
|
444
|
-
const e = o.target.value;
|
|
445
|
-
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");
|
|
446
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) => {
|
|
447
442
|
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
448
|
-
|
|
443
|
+
C.current !== e && J({
|
|
449
444
|
event: o,
|
|
450
445
|
index: e,
|
|
451
446
|
reason: "mouse"
|
|
@@ -460,35 +455,35 @@ function Yt(n) {
|
|
|
460
455
|
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
461
456
|
q(o, b[e], "selectOption"), me.current = !1;
|
|
462
457
|
}, Be = (o) => (e) => {
|
|
463
|
-
const r =
|
|
458
|
+
const r = s.slice();
|
|
464
459
|
r.splice(o, 1), X(e, r, "removeOption", {
|
|
465
|
-
option:
|
|
460
|
+
option: s[o]
|
|
466
461
|
});
|
|
467
|
-
},
|
|
462
|
+
}, Ct = (o) => {
|
|
468
463
|
X(o, null, "removeOption", {
|
|
469
|
-
option:
|
|
464
|
+
option: s
|
|
470
465
|
});
|
|
471
466
|
}, be = (o) => {
|
|
472
|
-
|
|
473
|
-
}, v = (o) => {
|
|
474
|
-
o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== M && o.preventDefault();
|
|
467
|
+
_ ? ae(o, "toggleInput") : R(o);
|
|
475
468
|
}, O = (o) => {
|
|
476
|
-
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);
|
|
477
472
|
}, Z = (o) => {
|
|
478
|
-
!E && (
|
|
473
|
+
!E && (g === "" || !_) && be(o);
|
|
479
474
|
};
|
|
480
|
-
let
|
|
481
|
-
|
|
475
|
+
let Te = ce && g.length > 0;
|
|
476
|
+
Te = Te || (u ? s.length > 0 : s !== null);
|
|
482
477
|
let We = b;
|
|
483
478
|
if (oe) {
|
|
484
479
|
const o = /* @__PURE__ */ new Map();
|
|
485
480
|
let e = !1;
|
|
486
|
-
We = b.reduce((r, p,
|
|
487
|
-
const
|
|
488
|
-
return r.length > 0 && r[r.length - 1].group ===
|
|
489
|
-
key:
|
|
490
|
-
index:
|
|
491
|
-
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,
|
|
492
487
|
options: [p]
|
|
493
488
|
})), r;
|
|
494
489
|
}, []);
|
|
@@ -496,9 +491,9 @@ function Yt(n) {
|
|
|
496
491
|
return E && de && se(), {
|
|
497
492
|
getRootProps: (o = {}) => ({
|
|
498
493
|
...o,
|
|
499
|
-
onKeyDown:
|
|
500
|
-
onMouseDown:
|
|
501
|
-
onClick:
|
|
494
|
+
onKeyDown: st(o),
|
|
495
|
+
onMouseDown: O,
|
|
496
|
+
onClick: P
|
|
502
497
|
}),
|
|
503
498
|
getInputLabelProps: () => ({
|
|
504
499
|
id: `${M}-label`,
|
|
@@ -506,10 +501,10 @@ function Yt(n) {
|
|
|
506
501
|
}),
|
|
507
502
|
getInputProps: () => ({
|
|
508
503
|
id: M,
|
|
509
|
-
value:
|
|
504
|
+
value: g,
|
|
510
505
|
onBlur: se,
|
|
511
506
|
onFocus: lt,
|
|
512
|
-
onChange:
|
|
507
|
+
onChange: $e,
|
|
513
508
|
onMouseDown: Z,
|
|
514
509
|
// if open then this is handled imperatively so don't let react override
|
|
515
510
|
// only have an opinion about this when closed
|
|
@@ -529,7 +524,7 @@ function Yt(n) {
|
|
|
529
524
|
getClearProps: () => ({
|
|
530
525
|
tabIndex: -1,
|
|
531
526
|
type: "button",
|
|
532
|
-
onClick:
|
|
527
|
+
onClick: ie
|
|
533
528
|
}),
|
|
534
529
|
getItemProps: ({
|
|
535
530
|
index: o = 0
|
|
@@ -543,8 +538,8 @@ function Yt(n) {
|
|
|
543
538
|
"data-tag-index": o
|
|
544
539
|
},
|
|
545
540
|
tabIndex: -1,
|
|
546
|
-
...!
|
|
547
|
-
onDelete: u ? Be(o) :
|
|
541
|
+
...!K && {
|
|
542
|
+
onDelete: u ? Be(o) : Ct
|
|
548
543
|
}
|
|
549
544
|
}),
|
|
550
545
|
getPopupIndicatorProps: () => ({
|
|
@@ -559,7 +554,7 @@ function Yt(n) {
|
|
|
559
554
|
key: o,
|
|
560
555
|
"data-tag-index": o,
|
|
561
556
|
tabIndex: -1,
|
|
562
|
-
...!
|
|
557
|
+
...!K && {
|
|
563
558
|
onDelete: Be(o)
|
|
564
559
|
}
|
|
565
560
|
}),
|
|
@@ -567,7 +562,7 @@ function Yt(n) {
|
|
|
567
562
|
role: "listbox",
|
|
568
563
|
id: `${M}-listbox`,
|
|
569
564
|
"aria-labelledby": `${M}-label`,
|
|
570
|
-
ref:
|
|
565
|
+
ref: it,
|
|
571
566
|
onMouseDown: (o) => {
|
|
572
567
|
o.preventDefault();
|
|
573
568
|
}
|
|
@@ -576,13 +571,13 @@ function Yt(n) {
|
|
|
576
571
|
index: o,
|
|
577
572
|
option: e
|
|
578
573
|
}) => {
|
|
579
|
-
const r = (u ?
|
|
574
|
+
const r = (u ? s : [s]).some((a) => a != null && Y(e, a)), p = G ? G(e) : !1;
|
|
580
575
|
return {
|
|
581
|
-
key: (Re == null ? void 0 : Re(e)) ??
|
|
576
|
+
key: (Re == null ? void 0 : Re(e)) ?? S(e),
|
|
582
577
|
tabIndex: -1,
|
|
583
578
|
role: "option",
|
|
584
579
|
id: `${M}-option-${o}`,
|
|
585
|
-
onMouseMove:
|
|
580
|
+
onMouseMove: Se,
|
|
586
581
|
onClick: ut,
|
|
587
582
|
onTouchStart: pt,
|
|
588
583
|
"data-option-index": o,
|
|
@@ -591,13 +586,13 @@ function Yt(n) {
|
|
|
591
586
|
};
|
|
592
587
|
},
|
|
593
588
|
id: M,
|
|
594
|
-
inputValue:
|
|
595
|
-
value:
|
|
596
|
-
dirty:
|
|
597
|
-
expanded: k &&
|
|
589
|
+
inputValue: g,
|
|
590
|
+
value: s,
|
|
591
|
+
dirty: Te,
|
|
592
|
+
expanded: k && Oe,
|
|
598
593
|
popupOpen: k,
|
|
599
594
|
focused: de || V !== -1,
|
|
600
|
-
anchorEl:
|
|
595
|
+
anchorEl: Oe,
|
|
601
596
|
setAnchorEl: It,
|
|
602
597
|
focusedItem: V,
|
|
603
598
|
// deprecated
|
|
@@ -606,29 +601,29 @@ function Yt(n) {
|
|
|
606
601
|
};
|
|
607
602
|
}
|
|
608
603
|
function Qt(n) {
|
|
609
|
-
return
|
|
604
|
+
return Dt("MuiListSubheader", n);
|
|
610
605
|
}
|
|
611
|
-
const
|
|
606
|
+
const Mo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
|
|
612
607
|
const {
|
|
613
|
-
classes:
|
|
608
|
+
classes: i,
|
|
614
609
|
color: d,
|
|
615
610
|
disableGutters: m,
|
|
616
|
-
inset:
|
|
611
|
+
inset: T,
|
|
617
612
|
disableSticky: D
|
|
618
|
-
} = n,
|
|
619
|
-
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"]
|
|
620
615
|
};
|
|
621
|
-
return
|
|
616
|
+
return Et(v, Qt, i);
|
|
622
617
|
}, eo = H("li", {
|
|
623
618
|
name: "MuiListSubheader",
|
|
624
619
|
slot: "Root",
|
|
625
|
-
overridesResolver: (n,
|
|
620
|
+
overridesResolver: (n, i) => {
|
|
626
621
|
const {
|
|
627
622
|
ownerState: d
|
|
628
623
|
} = n;
|
|
629
|
-
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];
|
|
630
625
|
}
|
|
631
|
-
})(
|
|
626
|
+
})(pe(({
|
|
632
627
|
theme: n
|
|
633
628
|
}) => ({
|
|
634
629
|
boxSizing: "border-box",
|
|
@@ -654,23 +649,23 @@ const Eo = kt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
|
|
|
654
649
|
}
|
|
655
650
|
}, {
|
|
656
651
|
props: ({
|
|
657
|
-
ownerState:
|
|
658
|
-
}) => !
|
|
652
|
+
ownerState: i
|
|
653
|
+
}) => !i.disableGutters,
|
|
659
654
|
style: {
|
|
660
655
|
paddingLeft: 16,
|
|
661
656
|
paddingRight: 16
|
|
662
657
|
}
|
|
663
658
|
}, {
|
|
664
659
|
props: ({
|
|
665
|
-
ownerState:
|
|
666
|
-
}) =>
|
|
660
|
+
ownerState: i
|
|
661
|
+
}) => i.inset,
|
|
667
662
|
style: {
|
|
668
663
|
paddingLeft: 72
|
|
669
664
|
}
|
|
670
665
|
}, {
|
|
671
666
|
props: ({
|
|
672
|
-
ownerState:
|
|
673
|
-
}) => !
|
|
667
|
+
ownerState: i
|
|
668
|
+
}) => !i.disableSticky,
|
|
674
669
|
style: {
|
|
675
670
|
position: "sticky",
|
|
676
671
|
top: 0,
|
|
@@ -678,32 +673,32 @@ const Eo = kt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
|
|
|
678
673
|
backgroundColor: (n.vars || n).palette.background.paper
|
|
679
674
|
}
|
|
680
675
|
}]
|
|
681
|
-
}))), Xe = /* @__PURE__ */
|
|
682
|
-
const m =
|
|
683
|
-
props:
|
|
676
|
+
}))), Xe = /* @__PURE__ */ x.forwardRef(function(i, d) {
|
|
677
|
+
const m = Nt({
|
|
678
|
+
props: i,
|
|
684
679
|
name: "MuiListSubheader"
|
|
685
680
|
}), {
|
|
686
|
-
className:
|
|
681
|
+
className: T,
|
|
687
682
|
color: D = "default",
|
|
688
|
-
component:
|
|
683
|
+
component: v = "li",
|
|
689
684
|
disableGutters: N = !1,
|
|
690
685
|
disableSticky: B = !1,
|
|
691
686
|
inset: I = !1,
|
|
692
|
-
|
|
687
|
+
...$
|
|
693
688
|
} = m, W = {
|
|
694
689
|
...m,
|
|
695
690
|
color: D,
|
|
696
|
-
component:
|
|
691
|
+
component: v,
|
|
697
692
|
disableGutters: N,
|
|
698
693
|
disableSticky: B,
|
|
699
694
|
inset: I
|
|
700
|
-
},
|
|
701
|
-
return /* @__PURE__ */
|
|
702
|
-
as:
|
|
703
|
-
className: Je(
|
|
695
|
+
}, ue = Zt(W);
|
|
696
|
+
return /* @__PURE__ */ A(eo, {
|
|
697
|
+
as: v,
|
|
698
|
+
className: Je(ue.root, T),
|
|
704
699
|
ref: d,
|
|
705
700
|
ownerState: W,
|
|
706
|
-
|
|
701
|
+
...$
|
|
707
702
|
});
|
|
708
703
|
});
|
|
709
704
|
Xe && (Xe.muiSkipListHighlight = !0);
|
|
@@ -755,27 +750,27 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
755
750
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
756
751
|
});
|
|
757
752
|
function to(n) {
|
|
758
|
-
return
|
|
753
|
+
return Dt("MuiAutocomplete", n);
|
|
759
754
|
}
|
|
760
|
-
const l =
|
|
761
|
-
var
|
|
755
|
+
const l = Rt("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
|
|
756
|
+
var Lt, kt;
|
|
762
757
|
const oo = (n) => {
|
|
763
758
|
const {
|
|
764
|
-
classes:
|
|
759
|
+
classes: i,
|
|
765
760
|
disablePortal: d,
|
|
766
761
|
expanded: m,
|
|
767
|
-
focused:
|
|
762
|
+
focused: T,
|
|
768
763
|
fullWidth: D,
|
|
769
|
-
hasClearIcon:
|
|
764
|
+
hasClearIcon: v,
|
|
770
765
|
hasPopupIcon: N,
|
|
771
766
|
inputFocused: B,
|
|
772
767
|
popupOpen: I,
|
|
773
|
-
size:
|
|
768
|
+
size: $
|
|
774
769
|
} = n, W = {
|
|
775
|
-
root: ["root", m && "expanded",
|
|
770
|
+
root: ["root", m && "expanded", T && "focused", D && "fullWidth", v && "hasClearIcon", N && "hasPopupIcon"],
|
|
776
771
|
inputRoot: ["inputRoot"],
|
|
777
772
|
input: ["input", B && "inputFocused"],
|
|
778
|
-
tag: ["tag", `tagSize${Ye(
|
|
773
|
+
tag: ["tag", `tagSize${Ye($)}`],
|
|
779
774
|
endAdornment: ["endAdornment"],
|
|
780
775
|
clearIndicator: ["clearIndicator"],
|
|
781
776
|
popupIndicator: ["popupIndicator", I && "popupIndicatorOpen"],
|
|
@@ -788,31 +783,31 @@ const oo = (n) => {
|
|
|
788
783
|
groupLabel: ["groupLabel"],
|
|
789
784
|
groupUl: ["groupUl"]
|
|
790
785
|
};
|
|
791
|
-
return
|
|
786
|
+
return Et(W, to, i);
|
|
792
787
|
}, no = H("div", {
|
|
793
788
|
name: "MuiAutocomplete",
|
|
794
789
|
slot: "Root",
|
|
795
|
-
overridesResolver: (n,
|
|
790
|
+
overridesResolver: (n, i) => {
|
|
796
791
|
const {
|
|
797
792
|
ownerState: d
|
|
798
793
|
} = n, {
|
|
799
794
|
fullWidth: m,
|
|
800
|
-
hasClearIcon:
|
|
795
|
+
hasClearIcon: T,
|
|
801
796
|
hasPopupIcon: D,
|
|
802
|
-
inputFocused:
|
|
797
|
+
inputFocused: v,
|
|
803
798
|
size: N
|
|
804
799
|
} = d;
|
|
805
800
|
return [{
|
|
806
|
-
[`& .${l.tag}`]:
|
|
801
|
+
[`& .${l.tag}`]: i.tag
|
|
807
802
|
}, {
|
|
808
|
-
[`& .${l.tag}`]:
|
|
803
|
+
[`& .${l.tag}`]: i[`tagSize${Ye(N)}`]
|
|
809
804
|
}, {
|
|
810
|
-
[`& .${l.inputRoot}`]:
|
|
805
|
+
[`& .${l.inputRoot}`]: i.inputRoot
|
|
811
806
|
}, {
|
|
812
|
-
[`& .${l.input}`]:
|
|
807
|
+
[`& .${l.input}`]: i.input
|
|
813
808
|
}, {
|
|
814
|
-
[`& .${l.input}`]:
|
|
815
|
-
},
|
|
809
|
+
[`& .${l.input}`]: v && i.inputFocused
|
|
810
|
+
}, i.root, m && i.fullWidth, D && i.hasPopupIcon, T && i.hasClearIcon];
|
|
816
811
|
}
|
|
817
812
|
})({
|
|
818
813
|
[`&.${l.focused} .${l.clearIndicator}`]: {
|
|
@@ -846,12 +841,12 @@ const oo = (n) => {
|
|
|
846
841
|
padding: "4px 4px 4px 0px"
|
|
847
842
|
}
|
|
848
843
|
},
|
|
849
|
-
[`& .${dt.root}.${
|
|
844
|
+
[`& .${dt.root}.${le.sizeSmall}`]: {
|
|
850
845
|
[`& .${dt.input}`]: {
|
|
851
846
|
padding: "2px 4px 3px 0"
|
|
852
847
|
}
|
|
853
848
|
},
|
|
854
|
-
[`& .${
|
|
849
|
+
[`& .${St.root}`]: {
|
|
855
850
|
padding: 9,
|
|
856
851
|
[`.${l.hasPopupIcon}&, .${l.hasClearIcon}&`]: {
|
|
857
852
|
paddingRight: 39
|
|
@@ -866,7 +861,7 @@ const oo = (n) => {
|
|
|
866
861
|
right: 9
|
|
867
862
|
}
|
|
868
863
|
},
|
|
869
|
-
[`& .${
|
|
864
|
+
[`& .${St.root}.${le.sizeSmall}`]: {
|
|
870
865
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
871
866
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
872
867
|
paddingTop: 6,
|
|
@@ -892,16 +887,16 @@ const oo = (n) => {
|
|
|
892
887
|
right: 9
|
|
893
888
|
}
|
|
894
889
|
},
|
|
895
|
-
[`& .${he.root}.${
|
|
890
|
+
[`& .${he.root}.${le.sizeSmall}`]: {
|
|
896
891
|
paddingBottom: 1,
|
|
897
892
|
[`& .${he.input}`]: {
|
|
898
893
|
padding: "2.5px 4px"
|
|
899
894
|
}
|
|
900
895
|
},
|
|
901
|
-
[`& .${
|
|
896
|
+
[`& .${le.hiddenLabel}`]: {
|
|
902
897
|
paddingTop: 8
|
|
903
898
|
},
|
|
904
|
-
[`& .${he.root}.${
|
|
899
|
+
[`& .${he.root}.${le.hiddenLabel}`]: {
|
|
905
900
|
paddingTop: 0,
|
|
906
901
|
paddingBottom: 0,
|
|
907
902
|
[`& .${l.input}`]: {
|
|
@@ -909,7 +904,7 @@ const oo = (n) => {
|
|
|
909
904
|
paddingBottom: 17
|
|
910
905
|
}
|
|
911
906
|
},
|
|
912
|
-
[`& .${he.root}.${
|
|
907
|
+
[`& .${he.root}.${le.hiddenLabel}.${le.sizeSmall}`]: {
|
|
913
908
|
[`& .${l.input}`]: {
|
|
914
909
|
paddingTop: 8,
|
|
915
910
|
paddingBottom: 9
|
|
@@ -958,30 +953,28 @@ const oo = (n) => {
|
|
|
958
953
|
}]
|
|
959
954
|
}), ro = H("div", {
|
|
960
955
|
name: "MuiAutocomplete",
|
|
961
|
-
slot: "EndAdornment"
|
|
962
|
-
overridesResolver: (n, a) => a.endAdornment
|
|
956
|
+
slot: "EndAdornment"
|
|
963
957
|
})({
|
|
964
958
|
// We use a position absolute to support wrapping tags.
|
|
965
959
|
position: "absolute",
|
|
966
960
|
right: 0,
|
|
967
961
|
top: "50%",
|
|
968
962
|
transform: "translate(0, -50%)"
|
|
969
|
-
}), ao = H(
|
|
963
|
+
}), ao = H(Ft, {
|
|
970
964
|
name: "MuiAutocomplete",
|
|
971
|
-
slot: "ClearIndicator"
|
|
972
|
-
overridesResolver: (n, a) => a.clearIndicator
|
|
965
|
+
slot: "ClearIndicator"
|
|
973
966
|
})({
|
|
974
967
|
marginRight: -2,
|
|
975
968
|
padding: 4,
|
|
976
969
|
visibility: "hidden"
|
|
977
|
-
}),
|
|
970
|
+
}), io = H(Ft, {
|
|
978
971
|
name: "MuiAutocomplete",
|
|
979
972
|
slot: "PopupIndicator",
|
|
980
|
-
overridesResolver: (n,
|
|
973
|
+
overridesResolver: (n, i) => {
|
|
981
974
|
const {
|
|
982
975
|
ownerState: d
|
|
983
976
|
} = n;
|
|
984
|
-
return [
|
|
977
|
+
return [i.popupIndicator, d.popupOpen && i.popupIndicatorOpen];
|
|
985
978
|
}
|
|
986
979
|
})({
|
|
987
980
|
padding: 2,
|
|
@@ -994,18 +987,18 @@ const oo = (n) => {
|
|
|
994
987
|
transform: "rotate(180deg)"
|
|
995
988
|
}
|
|
996
989
|
}]
|
|
997
|
-
}),
|
|
990
|
+
}), so = H(Vt, {
|
|
998
991
|
name: "MuiAutocomplete",
|
|
999
992
|
slot: "Popper",
|
|
1000
|
-
overridesResolver: (n,
|
|
993
|
+
overridesResolver: (n, i) => {
|
|
1001
994
|
const {
|
|
1002
995
|
ownerState: d
|
|
1003
996
|
} = n;
|
|
1004
997
|
return [{
|
|
1005
|
-
[`& .${l.option}`]:
|
|
1006
|
-
},
|
|
998
|
+
[`& .${l.option}`]: i.option
|
|
999
|
+
}, i.popper, d.disablePortal && i.popperDisablePortal];
|
|
1007
1000
|
}
|
|
1008
|
-
})(
|
|
1001
|
+
})(pe(({
|
|
1009
1002
|
theme: n
|
|
1010
1003
|
}) => ({
|
|
1011
1004
|
zIndex: (n.vars || n).zIndex.modal,
|
|
@@ -1017,38 +1010,34 @@ const oo = (n) => {
|
|
|
1017
1010
|
position: "absolute"
|
|
1018
1011
|
}
|
|
1019
1012
|
}]
|
|
1020
|
-
}))), lo = H(
|
|
1013
|
+
}))), lo = H(Mt, {
|
|
1021
1014
|
name: "MuiAutocomplete",
|
|
1022
|
-
slot: "Paper"
|
|
1023
|
-
|
|
1024
|
-
})(le(({
|
|
1015
|
+
slot: "Paper"
|
|
1016
|
+
})(pe(({
|
|
1025
1017
|
theme: n
|
|
1026
1018
|
}) => ({
|
|
1027
1019
|
...n.typography.body1,
|
|
1028
1020
|
overflow: "auto"
|
|
1029
1021
|
}))), po = H("div", {
|
|
1030
1022
|
name: "MuiAutocomplete",
|
|
1031
|
-
slot: "Loading"
|
|
1032
|
-
|
|
1033
|
-
})(le(({
|
|
1023
|
+
slot: "Loading"
|
|
1024
|
+
})(pe(({
|
|
1034
1025
|
theme: n
|
|
1035
1026
|
}) => ({
|
|
1036
1027
|
color: (n.vars || n).palette.text.secondary,
|
|
1037
1028
|
padding: "14px 16px"
|
|
1038
1029
|
}))), uo = H("div", {
|
|
1039
1030
|
name: "MuiAutocomplete",
|
|
1040
|
-
slot: "NoOptions"
|
|
1041
|
-
|
|
1042
|
-
})(le(({
|
|
1031
|
+
slot: "NoOptions"
|
|
1032
|
+
})(pe(({
|
|
1043
1033
|
theme: n
|
|
1044
1034
|
}) => ({
|
|
1045
1035
|
color: (n.vars || n).palette.text.secondary,
|
|
1046
1036
|
padding: "14px 16px"
|
|
1047
1037
|
}))), co = H("ul", {
|
|
1048
1038
|
name: "MuiAutocomplete",
|
|
1049
|
-
slot: "Listbox"
|
|
1050
|
-
|
|
1051
|
-
})(le(({
|
|
1039
|
+
slot: "Listbox"
|
|
1040
|
+
})(pe(({
|
|
1052
1041
|
theme: n
|
|
1053
1042
|
}) => ({
|
|
1054
1043
|
listStyle: "none",
|
|
@@ -1104,44 +1093,42 @@ const oo = (n) => {
|
|
|
1104
1093
|
}
|
|
1105
1094
|
}))), fo = H(Xe, {
|
|
1106
1095
|
name: "MuiAutocomplete",
|
|
1107
|
-
slot: "GroupLabel"
|
|
1108
|
-
|
|
1109
|
-
})(le(({
|
|
1096
|
+
slot: "GroupLabel"
|
|
1097
|
+
})(pe(({
|
|
1110
1098
|
theme: n
|
|
1111
1099
|
}) => ({
|
|
1112
1100
|
backgroundColor: (n.vars || n).palette.background.paper,
|
|
1113
1101
|
top: -8
|
|
1114
1102
|
}))), go = H("ul", {
|
|
1115
1103
|
name: "MuiAutocomplete",
|
|
1116
|
-
slot: "GroupUl"
|
|
1117
|
-
overridesResolver: (n, a) => a.groupUl
|
|
1104
|
+
slot: "GroupUl"
|
|
1118
1105
|
})({
|
|
1119
1106
|
padding: 0,
|
|
1120
1107
|
[`& .${l.option}`]: {
|
|
1121
1108
|
paddingLeft: 24
|
|
1122
1109
|
}
|
|
1123
|
-
}), mo = /* @__PURE__ */
|
|
1124
|
-
const m =
|
|
1125
|
-
props:
|
|
1110
|
+
}), mo = /* @__PURE__ */ x.forwardRef(function(i, d) {
|
|
1111
|
+
const m = Nt({
|
|
1112
|
+
props: i,
|
|
1126
1113
|
name: "MuiAutocomplete"
|
|
1127
1114
|
}), {
|
|
1128
|
-
autoComplete:
|
|
1115
|
+
autoComplete: T = !1,
|
|
1129
1116
|
autoHighlight: D = !1,
|
|
1130
|
-
autoSelect:
|
|
1117
|
+
autoSelect: v = !1,
|
|
1131
1118
|
blurOnSelect: N = !1,
|
|
1132
1119
|
ChipProps: B,
|
|
1133
1120
|
className: I,
|
|
1134
|
-
clearIcon:
|
|
1121
|
+
clearIcon: $ = Lt || (Lt = /* @__PURE__ */ A(jt, {
|
|
1135
1122
|
fontSize: "small"
|
|
1136
1123
|
})),
|
|
1137
1124
|
clearOnBlur: W = !m.freeSolo,
|
|
1138
|
-
clearOnEscape:
|
|
1125
|
+
clearOnEscape: ue = !1,
|
|
1139
1126
|
clearText: E = "Clear",
|
|
1140
|
-
closeText:
|
|
1127
|
+
closeText: Ae = "Close",
|
|
1141
1128
|
componentsProps: Le,
|
|
1142
1129
|
defaultValue: mt = m.multiple ? [] : null,
|
|
1143
1130
|
disableClearable: ke = !1,
|
|
1144
|
-
disableCloseOnSelect:
|
|
1131
|
+
disableCloseOnSelect: ce = !1,
|
|
1145
1132
|
disabled: G = !1,
|
|
1146
1133
|
disabledItemsFocusable: Re = !1,
|
|
1147
1134
|
disableListWrap: Qe = !1,
|
|
@@ -1160,32 +1147,32 @@ const oo = (n) => {
|
|
|
1160
1147
|
handleHomeEndKeys: ht = !m.freeSolo,
|
|
1161
1148
|
id: yt,
|
|
1162
1149
|
includeInputInList: xt = !1,
|
|
1163
|
-
inputValue:
|
|
1150
|
+
inputValue: K,
|
|
1164
1151
|
limitTags: L = -1,
|
|
1165
1152
|
ListboxComponent: ot,
|
|
1166
1153
|
ListboxProps: Me,
|
|
1167
1154
|
loading: M = !1,
|
|
1168
|
-
loadingText:
|
|
1169
|
-
multiple:
|
|
1170
|
-
noOptionsText:
|
|
1155
|
+
loadingText: S = "Loading…",
|
|
1156
|
+
multiple: xe = !1,
|
|
1157
|
+
noOptionsText: Ie = "No options",
|
|
1171
1158
|
onChange: h,
|
|
1172
1159
|
onClose: F,
|
|
1173
|
-
onHighlightChange:
|
|
1160
|
+
onHighlightChange: Oe,
|
|
1174
1161
|
onInputChange: It,
|
|
1175
1162
|
onOpen: V,
|
|
1176
1163
|
open: Ve,
|
|
1177
1164
|
openOnFocus: nt = !1,
|
|
1178
|
-
openText:
|
|
1165
|
+
openText: C = "Open",
|
|
1179
1166
|
options: Ot,
|
|
1180
|
-
PaperComponent:
|
|
1181
|
-
PopperComponent:
|
|
1182
|
-
popupIcon:
|
|
1167
|
+
PaperComponent: s,
|
|
1168
|
+
PopperComponent: Pe,
|
|
1169
|
+
popupIcon: g = kt || (kt = /* @__PURE__ */ A(zt, {})),
|
|
1183
1170
|
readOnly: ne = !1,
|
|
1184
1171
|
renderGroup: de,
|
|
1185
1172
|
renderInput: Fe,
|
|
1186
1173
|
renderOption: fe,
|
|
1187
|
-
renderTags:
|
|
1188
|
-
renderValue:
|
|
1174
|
+
renderTags: _,
|
|
1175
|
+
renderValue: re,
|
|
1189
1176
|
selectOnFocus: Pt = !m.freeSolo,
|
|
1190
1177
|
size: ge = "medium",
|
|
1191
1178
|
slots: He = {},
|
|
@@ -1199,43 +1186,43 @@ const oo = (n) => {
|
|
|
1199
1186
|
getPopupIndicatorProps: J,
|
|
1200
1187
|
getClearProps: U,
|
|
1201
1188
|
getItemProps: at,
|
|
1202
|
-
getListboxProps:
|
|
1203
|
-
getOptionProps:
|
|
1189
|
+
getListboxProps: Ce,
|
|
1190
|
+
getOptionProps: it,
|
|
1204
1191
|
value: R,
|
|
1205
|
-
dirty:
|
|
1192
|
+
dirty: ae,
|
|
1206
1193
|
expanded: X,
|
|
1207
1194
|
id: me,
|
|
1208
1195
|
popupOpen: q,
|
|
1209
1196
|
focused: je,
|
|
1210
1197
|
focusedItem: Ue,
|
|
1211
|
-
anchorEl:
|
|
1212
|
-
setAnchorEl:
|
|
1198
|
+
anchorEl: ie,
|
|
1199
|
+
setAnchorEl: st,
|
|
1213
1200
|
inputValue: lt,
|
|
1214
1201
|
groupedOptions: se
|
|
1215
1202
|
} = Yt({
|
|
1216
1203
|
...m,
|
|
1217
1204
|
componentName: "Autocomplete"
|
|
1218
|
-
}),
|
|
1205
|
+
}), $e = !ke && !G && ae && !ne, Se = (!De || ye === !0) && ye !== !1, {
|
|
1219
1206
|
onMouseDown: pt
|
|
1220
1207
|
} = j(), {
|
|
1221
1208
|
ref: ut,
|
|
1222
1209
|
...Be
|
|
1223
|
-
} =
|
|
1210
|
+
} = Ce(), be = Ne || ((c) => c.label ?? c), O = {
|
|
1224
1211
|
...m,
|
|
1225
1212
|
disablePortal: oe,
|
|
1226
1213
|
expanded: X,
|
|
1227
1214
|
focused: je,
|
|
1228
1215
|
fullWidth: Y,
|
|
1229
1216
|
getOptionLabel: be,
|
|
1230
|
-
hasClearIcon:
|
|
1231
|
-
hasPopupIcon:
|
|
1217
|
+
hasClearIcon: $e,
|
|
1218
|
+
hasPopupIcon: Se,
|
|
1232
1219
|
inputFocused: Ue === -1,
|
|
1233
1220
|
popupOpen: q,
|
|
1234
1221
|
size: ge
|
|
1235
|
-
},
|
|
1222
|
+
}, P = oo(O), Z = {
|
|
1236
1223
|
slots: {
|
|
1237
|
-
paper:
|
|
1238
|
-
popper:
|
|
1224
|
+
paper: s,
|
|
1225
|
+
popper: Pe,
|
|
1239
1226
|
...He
|
|
1240
1227
|
},
|
|
1241
1228
|
slotProps: {
|
|
@@ -1244,98 +1231,98 @@ const oo = (n) => {
|
|
|
1244
1231
|
...Le,
|
|
1245
1232
|
...k
|
|
1246
1233
|
}
|
|
1247
|
-
}, [
|
|
1234
|
+
}, [Te, We] = ft("listbox", {
|
|
1248
1235
|
elementType: co,
|
|
1249
1236
|
externalForwardedProps: Z,
|
|
1250
|
-
ownerState:
|
|
1251
|
-
className:
|
|
1237
|
+
ownerState: O,
|
|
1238
|
+
className: P.listbox,
|
|
1252
1239
|
additionalProps: Be,
|
|
1253
1240
|
ref: ut
|
|
1254
1241
|
}), [o, e] = ft("paper", {
|
|
1255
|
-
elementType:
|
|
1242
|
+
elementType: Mt,
|
|
1256
1243
|
externalForwardedProps: Z,
|
|
1257
|
-
ownerState:
|
|
1258
|
-
className:
|
|
1244
|
+
ownerState: O,
|
|
1245
|
+
className: P.paper
|
|
1259
1246
|
}), [r, p] = ft("popper", {
|
|
1260
|
-
elementType:
|
|
1247
|
+
elementType: Vt,
|
|
1261
1248
|
externalForwardedProps: Z,
|
|
1262
|
-
ownerState:
|
|
1263
|
-
className:
|
|
1249
|
+
ownerState: O,
|
|
1250
|
+
className: P.popper,
|
|
1264
1251
|
additionalProps: {
|
|
1265
1252
|
disablePortal: oe,
|
|
1266
1253
|
style: {
|
|
1267
|
-
width:
|
|
1254
|
+
width: ie ? ie.clientWidth : null
|
|
1268
1255
|
},
|
|
1269
1256
|
role: "presentation",
|
|
1270
|
-
anchorEl:
|
|
1257
|
+
anchorEl: ie,
|
|
1271
1258
|
open: q
|
|
1272
1259
|
}
|
|
1273
1260
|
});
|
|
1274
|
-
let
|
|
1275
|
-
const
|
|
1276
|
-
className:
|
|
1261
|
+
let a;
|
|
1262
|
+
const f = (c) => ({
|
|
1263
|
+
className: P.tag,
|
|
1277
1264
|
disabled: G,
|
|
1278
1265
|
...at(c)
|
|
1279
1266
|
});
|
|
1280
|
-
if (
|
|
1267
|
+
if (xe ? R.length > 0 && (_ ? a = _(R, f, O) : re ? a = re(R, f, O) : a = R.map((c, ee) => {
|
|
1281
1268
|
const {
|
|
1282
1269
|
key: te,
|
|
1283
|
-
...
|
|
1284
|
-
} =
|
|
1270
|
+
...we
|
|
1271
|
+
} = f({
|
|
1285
1272
|
index: ee
|
|
1286
1273
|
});
|
|
1287
|
-
return /* @__PURE__ */
|
|
1274
|
+
return /* @__PURE__ */ A(Gt, {
|
|
1288
1275
|
label: be(c),
|
|
1289
1276
|
size: ge,
|
|
1290
|
-
...
|
|
1277
|
+
...we,
|
|
1291
1278
|
...Z.slotProps.chip
|
|
1292
1279
|
}, te);
|
|
1293
|
-
})), L > -1 && Array.isArray(
|
|
1294
|
-
const c =
|
|
1295
|
-
!je && c > 0 && (
|
|
1296
|
-
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,
|
|
1297
1284
|
children: u(c)
|
|
1298
|
-
},
|
|
1285
|
+
}, a.length)));
|
|
1299
1286
|
}
|
|
1300
|
-
const
|
|
1301
|
-
children: [/* @__PURE__ */
|
|
1302
|
-
className:
|
|
1303
|
-
ownerState:
|
|
1287
|
+
const w = de || ((c) => /* @__PURE__ */ Ke("li", {
|
|
1288
|
+
children: [/* @__PURE__ */ A(fo, {
|
|
1289
|
+
className: P.groupLabel,
|
|
1290
|
+
ownerState: O,
|
|
1304
1291
|
component: "div",
|
|
1305
1292
|
children: c.group
|
|
1306
|
-
}), /* @__PURE__ */
|
|
1307
|
-
className:
|
|
1308
|
-
ownerState:
|
|
1293
|
+
}), /* @__PURE__ */ A(go, {
|
|
1294
|
+
className: P.groupUl,
|
|
1295
|
+
ownerState: O,
|
|
1309
1296
|
children: c.children
|
|
1310
1297
|
})]
|
|
1311
|
-
}, c.key)),
|
|
1298
|
+
}, c.key)), Ht = fe || ((c, ee) => {
|
|
1312
1299
|
const {
|
|
1313
1300
|
key: te,
|
|
1314
|
-
...
|
|
1301
|
+
...we
|
|
1315
1302
|
} = c;
|
|
1316
|
-
return /* @__PURE__ */
|
|
1317
|
-
...
|
|
1303
|
+
return /* @__PURE__ */ A("li", {
|
|
1304
|
+
...we,
|
|
1318
1305
|
children: be(ee)
|
|
1319
1306
|
}, te);
|
|
1320
|
-
}),
|
|
1321
|
-
const te =
|
|
1307
|
+
}), $t = (c, ee) => {
|
|
1308
|
+
const te = it({
|
|
1322
1309
|
option: c,
|
|
1323
1310
|
index: ee
|
|
1324
1311
|
});
|
|
1325
|
-
return
|
|
1312
|
+
return Ht({
|
|
1326
1313
|
...te,
|
|
1327
|
-
className:
|
|
1314
|
+
className: P.option
|
|
1328
1315
|
}, c, {
|
|
1329
1316
|
selected: te["aria-selected"],
|
|
1330
1317
|
index: ee,
|
|
1331
1318
|
inputValue: lt
|
|
1332
|
-
},
|
|
1319
|
+
}, O);
|
|
1333
1320
|
}, Ge = Z.slotProps.clearIndicator, qe = Z.slotProps.popupIndicator;
|
|
1334
|
-
return /* @__PURE__ */
|
|
1335
|
-
children: [/* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ Ke(x.Fragment, {
|
|
1322
|
+
children: [/* @__PURE__ */ A(no, {
|
|
1336
1323
|
ref: d,
|
|
1337
|
-
className: Je(
|
|
1338
|
-
ownerState:
|
|
1324
|
+
className: Je(P.root, I),
|
|
1325
|
+
ownerState: O,
|
|
1339
1326
|
...ze(z),
|
|
1340
1327
|
children: Fe({
|
|
1341
1328
|
id: me,
|
|
@@ -1344,70 +1331,70 @@ const oo = (n) => {
|
|
|
1344
1331
|
size: ge === "small" ? "small" : void 0,
|
|
1345
1332
|
InputLabelProps: rt(),
|
|
1346
1333
|
InputProps: {
|
|
1347
|
-
ref:
|
|
1348
|
-
className:
|
|
1349
|
-
startAdornment:
|
|
1334
|
+
ref: st,
|
|
1335
|
+
className: P.inputRoot,
|
|
1336
|
+
startAdornment: a,
|
|
1350
1337
|
onMouseDown: (c) => {
|
|
1351
1338
|
c.target === c.currentTarget && pt(c);
|
|
1352
1339
|
},
|
|
1353
|
-
...(
|
|
1354
|
-
endAdornment: /* @__PURE__ */
|
|
1355
|
-
className:
|
|
1356
|
-
ownerState:
|
|
1357
|
-
children: [
|
|
1340
|
+
...($e || Se) && {
|
|
1341
|
+
endAdornment: /* @__PURE__ */ Ke(ro, {
|
|
1342
|
+
className: P.endAdornment,
|
|
1343
|
+
ownerState: O,
|
|
1344
|
+
children: [$e ? /* @__PURE__ */ A(ao, {
|
|
1358
1345
|
...U(),
|
|
1359
1346
|
"aria-label": E,
|
|
1360
1347
|
title: E,
|
|
1361
|
-
ownerState:
|
|
1348
|
+
ownerState: O,
|
|
1362
1349
|
...Ge,
|
|
1363
|
-
className: Je(
|
|
1364
|
-
children:
|
|
1365
|
-
}) : null,
|
|
1350
|
+
className: Je(P.clearIndicator, Ge == null ? void 0 : Ge.className),
|
|
1351
|
+
children: $
|
|
1352
|
+
}) : null, Se ? /* @__PURE__ */ A(io, {
|
|
1366
1353
|
...J(),
|
|
1367
1354
|
disabled: G,
|
|
1368
|
-
"aria-label": q ?
|
|
1369
|
-
title: q ?
|
|
1370
|
-
ownerState:
|
|
1355
|
+
"aria-label": q ? Ae : C,
|
|
1356
|
+
title: q ? Ae : C,
|
|
1357
|
+
ownerState: O,
|
|
1371
1358
|
...qe,
|
|
1372
|
-
className: Je(
|
|
1373
|
-
children:
|
|
1359
|
+
className: Je(P.popupIndicator, qe == null ? void 0 : qe.className),
|
|
1360
|
+
children: g
|
|
1374
1361
|
}) : null]
|
|
1375
1362
|
})
|
|
1376
1363
|
}
|
|
1377
1364
|
},
|
|
1378
1365
|
inputProps: {
|
|
1379
|
-
className:
|
|
1366
|
+
className: P.input,
|
|
1380
1367
|
disabled: G,
|
|
1381
1368
|
readOnly: ne,
|
|
1382
1369
|
...j()
|
|
1383
1370
|
}
|
|
1384
1371
|
})
|
|
1385
|
-
}),
|
|
1372
|
+
}), ie ? /* @__PURE__ */ A(so, {
|
|
1386
1373
|
as: r,
|
|
1387
1374
|
...p,
|
|
1388
|
-
children: /* @__PURE__ */
|
|
1375
|
+
children: /* @__PURE__ */ Ke(lo, {
|
|
1389
1376
|
as: o,
|
|
1390
1377
|
...e,
|
|
1391
|
-
children: [M && se.length === 0 ? /* @__PURE__ */
|
|
1392
|
-
className:
|
|
1393
|
-
ownerState:
|
|
1394
|
-
children:
|
|
1395
|
-
}) : null, se.length === 0 && !De && !M ? /* @__PURE__ */
|
|
1396
|
-
className:
|
|
1397
|
-
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,
|
|
1398
1385
|
role: "presentation",
|
|
1399
1386
|
onMouseDown: (c) => {
|
|
1400
1387
|
c.preventDefault();
|
|
1401
1388
|
},
|
|
1402
|
-
children:
|
|
1403
|
-
}) : null, se.length > 0 ? /* @__PURE__ */
|
|
1389
|
+
children: Ie
|
|
1390
|
+
}) : null, se.length > 0 ? /* @__PURE__ */ A(Te, {
|
|
1404
1391
|
as: ot,
|
|
1405
1392
|
...We,
|
|
1406
|
-
children: se.map((c, ee) => Ee ?
|
|
1393
|
+
children: se.map((c, ee) => Ee ? w({
|
|
1407
1394
|
key: c.key,
|
|
1408
1395
|
group: c.group,
|
|
1409
|
-
children: c.options.map((te,
|
|
1410
|
-
}) :
|
|
1396
|
+
children: c.options.map((te, we) => $t(te, c.index + we))
|
|
1397
|
+
}) : $t(c, ee))
|
|
1411
1398
|
}) : null]
|
|
1412
1399
|
})
|
|
1413
1400
|
}) : null]
|
|
@@ -1509,7 +1496,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
1509
1496
|
* The default value. Use when the component is not controlled.
|
|
1510
1497
|
* @default props.multiple ? [] : null
|
|
1511
1498
|
*/
|
|
1512
|
-
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(`
|
|
1513
1500
|
`)) : null),
|
|
1514
1501
|
/**
|
|
1515
1502
|
* If `true`, the input can't be cleared.
|
|
@@ -1647,7 +1634,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
1647
1634
|
* Set `-1` to disable the limit.
|
|
1648
1635
|
* @default -1
|
|
1649
1636
|
*/
|
|
1650
|
-
limitTags:
|
|
1637
|
+
limitTags: qt,
|
|
1651
1638
|
/**
|
|
1652
1639
|
* The component used to render the listbox.
|
|
1653
1640
|
* @default 'ul'
|
|
@@ -1780,6 +1767,13 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
1780
1767
|
/**
|
|
1781
1768
|
* Render the input.
|
|
1782
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
|
+
*
|
|
1783
1777
|
* @param {object} params
|
|
1784
1778
|
* @returns {ReactNode}
|
|
1785
1779
|
*/
|
|
@@ -1856,7 +1850,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
1856
1850
|
* The value must have reference equality with the option in order to be selected.
|
|
1857
1851
|
* You can customize the equality behavior with the `isOptionEqualToValue` prop.
|
|
1858
1852
|
*/
|
|
1859
|
-
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(`
|
|
1860
1854
|
`)) : null)
|
|
1861
1855
|
});
|
|
1862
1856
|
export {
|
|
@@ -1864,8 +1858,7 @@ export {
|
|
|
1864
1858
|
Xe as L,
|
|
1865
1859
|
l as a,
|
|
1866
1860
|
Qt as b,
|
|
1867
|
-
|
|
1861
|
+
Kt as c,
|
|
1868
1862
|
to as g,
|
|
1869
|
-
|
|
1870
|
-
Gt as u
|
|
1863
|
+
Mo as l
|
|
1871
1864
|
};
|