@cgi-learning-hub/ui 1.6.0 → 1.7.0-dev.1750693982
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,55 +1,56 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Y as fe, G as de, F as me, H as he } from "./identifier-PWESmBq6.js";
|
|
3
3
|
import { P as e } from "./index-Sy88PpwE.js";
|
|
4
4
|
import { u as ke } from "./index-DX2Sl0Ig.js";
|
|
5
|
-
import { s as G, u as be, c as ye, r as xe } from "./DefaultPropsProvider-
|
|
6
|
-
import { u as B } from "./useSlot-
|
|
5
|
+
import { s as G, u as be, c as ye, r as xe } from "./DefaultPropsProvider-DqazQPtr.js";
|
|
6
|
+
import { u as B } from "./useSlot-BzdKwDQ5.js";
|
|
7
7
|
import { jsx as A } from "react/jsx-runtime";
|
|
8
|
-
import { u as De } from "./useSlotProps-
|
|
8
|
+
import { u as De } from "./useSlotProps-DdMuGelR.js";
|
|
9
9
|
import { i as Ne } from "./isHostComponent-kiaBvYVo.js";
|
|
10
|
-
import { P as Fe
|
|
10
|
+
import { P as Fe } from "./Paper-IQckggbn.js";
|
|
11
11
|
import { o as ee } from "./ownerDocument-CUrv0DIK.js";
|
|
12
12
|
import { o as oe } from "./ownerWindow-niciwP7I.js";
|
|
13
|
-
import { d as
|
|
14
|
-
import { G as
|
|
15
|
-
import { m as
|
|
16
|
-
import { b as
|
|
13
|
+
import { d as Ie } from "./debounce-46wSf_lW.js";
|
|
14
|
+
import { G as je } from "./Grow-BfjkXlG8.js";
|
|
15
|
+
import { m as Le } from "./mergeSlotProps-ChAye7iz.js";
|
|
16
|
+
import { b as ze, M as Ke } from "./Modal-D3Q9vEAI.js";
|
|
17
|
+
import { i as He } from "./integerPropType-BihGt2aU.js";
|
|
17
18
|
import { c as Ue } from "./chainPropTypes-D9lkm76m.js";
|
|
18
19
|
import { r as Ve } from "./refType-Dp7CJc86.js";
|
|
19
20
|
import { e as Ae } from "./elementTypeAcceptingRef-DOeckaXy.js";
|
|
20
|
-
import { H as te } from "./Portal-
|
|
21
|
-
import {
|
|
21
|
+
import { H as te } from "./Portal-BlK6ttxt.js";
|
|
22
|
+
import { u as _e } from "./useEventCallback-Y2KwRxBw.js";
|
|
22
23
|
import { u as We } from "./useForkRef-u29GSuCu.js";
|
|
23
|
-
import { L as qe } from "./List-
|
|
24
|
-
function Z(
|
|
25
|
-
return
|
|
24
|
+
import { L as qe } from "./List-CB_cqCSw.js";
|
|
25
|
+
function Z(o, t, n) {
|
|
26
|
+
return o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : o.firstChild;
|
|
26
27
|
}
|
|
27
|
-
function le(
|
|
28
|
-
return
|
|
28
|
+
function le(o, t, n) {
|
|
29
|
+
return o === t ? n ? o.firstChild : o.lastChild : t && t.previousElementSibling ? t.previousElementSibling : n ? null : o.lastChild;
|
|
29
30
|
}
|
|
30
|
-
function ge(
|
|
31
|
-
if (
|
|
31
|
+
function ge(o, t) {
|
|
32
|
+
if (t === void 0)
|
|
32
33
|
return !0;
|
|
33
|
-
let n =
|
|
34
|
-
return n === void 0 && (n =
|
|
34
|
+
let n = o.innerText;
|
|
35
|
+
return n === void 0 && (n = o.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : t.repeating ? n[0] === t.keys[0] : n.startsWith(t.keys.join(""));
|
|
35
36
|
}
|
|
36
|
-
function q(
|
|
37
|
-
let g = !1, m = E(
|
|
37
|
+
function q(o, t, n, k, E, y) {
|
|
38
|
+
let g = !1, m = E(o, t, t ? n : !1);
|
|
38
39
|
for (; m; ) {
|
|
39
|
-
if (m ===
|
|
40
|
+
if (m === o.firstChild) {
|
|
40
41
|
if (g)
|
|
41
42
|
return !1;
|
|
42
43
|
g = !0;
|
|
43
44
|
}
|
|
44
45
|
const b = k ? !1 : m.disabled || m.getAttribute("aria-disabled") === "true";
|
|
45
46
|
if (!m.hasAttribute("tabindex") || !ge(m, y) || b)
|
|
46
|
-
m = E(
|
|
47
|
+
m = E(o, m, n);
|
|
47
48
|
else
|
|
48
49
|
return m.focus(), !0;
|
|
49
50
|
}
|
|
50
51
|
return !1;
|
|
51
52
|
}
|
|
52
|
-
const Pe = /* @__PURE__ */ u.forwardRef(function(
|
|
53
|
+
const Pe = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
53
54
|
const {
|
|
54
55
|
// private
|
|
55
56
|
// eslint-disable-next-line react/prop-types
|
|
@@ -63,7 +64,7 @@ const Pe = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
|
63
64
|
onKeyDown: x,
|
|
64
65
|
variant: L = "selectedMenu",
|
|
65
66
|
...K
|
|
66
|
-
} =
|
|
67
|
+
} = t, a = u.useRef(null), P = u.useRef({
|
|
67
68
|
keys: [],
|
|
68
69
|
repeating: !0,
|
|
69
70
|
previousKeyMatched: !0,
|
|
@@ -77,7 +78,7 @@ const Pe = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
|
77
78
|
}) => {
|
|
78
79
|
const p = !a.current.style.width;
|
|
79
80
|
if (r.clientHeight < a.current.clientHeight && p) {
|
|
80
|
-
const O = `${
|
|
81
|
+
const O = `${ze(oe(r))}px`;
|
|
81
82
|
a.current.style[l === "rtl" ? "paddingLeft" : "paddingRight"] = O, a.current.style.width = `calc(100% + ${O})`;
|
|
82
83
|
}
|
|
83
84
|
return a.current;
|
|
@@ -115,7 +116,7 @@ const Pe = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
|
115
116
|
process.env.NODE_ENV !== "production" && fe.isFragment(r) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
116
117
|
`)), r.props.disabled || (L === "selectedMenu" && r.props.selected || i === -1) && (i = l), i === l && (r.props.disabled || r.props.muiSkipListHighlight || r.type.muiSkipListHighlight) && (i += 1, i >= g.length && (i = -1));
|
|
117
118
|
});
|
|
118
|
-
const
|
|
119
|
+
const v = u.Children.map(g, (r, l) => {
|
|
119
120
|
if (l === i) {
|
|
120
121
|
const p = {};
|
|
121
122
|
return y && (p.autoFocus = !0), r.props.tabIndex === void 0 && L === "selectedMenu" && (p.tabIndex = 0), /* @__PURE__ */ u.cloneElement(r, p);
|
|
@@ -129,7 +130,7 @@ const Pe = /* @__PURE__ */ u.forwardRef(function(o, n) {
|
|
|
129
130
|
onKeyDown: H,
|
|
130
131
|
tabIndex: E ? 0 : -1,
|
|
131
132
|
...K,
|
|
132
|
-
children:
|
|
133
|
+
children: v
|
|
133
134
|
});
|
|
134
135
|
});
|
|
135
136
|
process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
@@ -177,40 +178,38 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
|
177
178
|
*/
|
|
178
179
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
179
180
|
});
|
|
180
|
-
function $e(
|
|
181
|
-
return de("MuiPopover",
|
|
181
|
+
function $e(o) {
|
|
182
|
+
return de("MuiPopover", o);
|
|
182
183
|
}
|
|
183
184
|
me("MuiPopover", ["root", "paper"]);
|
|
184
|
-
function pe(
|
|
185
|
+
function pe(o, t) {
|
|
185
186
|
let n = 0;
|
|
186
|
-
return typeof
|
|
187
|
+
return typeof t == "number" ? n = t : t === "center" ? n = o.height / 2 : t === "bottom" && (n = o.height), n;
|
|
187
188
|
}
|
|
188
|
-
function ce(
|
|
189
|
+
function ce(o, t) {
|
|
189
190
|
let n = 0;
|
|
190
|
-
return typeof
|
|
191
|
+
return typeof t == "number" ? n = t : t === "center" ? n = o.width / 2 : t === "right" && (n = o.width), n;
|
|
191
192
|
}
|
|
192
|
-
function ue(
|
|
193
|
-
return [
|
|
193
|
+
function ue(o) {
|
|
194
|
+
return [o.horizontal, o.vertical].map((t) => typeof t == "number" ? `${t}px` : t).join(" ");
|
|
194
195
|
}
|
|
195
|
-
function $(
|
|
196
|
-
return typeof
|
|
196
|
+
function $(o) {
|
|
197
|
+
return typeof o == "function" ? o() : o;
|
|
197
198
|
}
|
|
198
|
-
const Be = (
|
|
199
|
+
const Be = (o) => {
|
|
199
200
|
const {
|
|
200
|
-
classes:
|
|
201
|
-
} =
|
|
201
|
+
classes: t
|
|
202
|
+
} = o;
|
|
202
203
|
return ye({
|
|
203
204
|
root: ["root"],
|
|
204
205
|
paper: ["paper"]
|
|
205
|
-
}, $e,
|
|
206
|
-
}, Ge = G(
|
|
206
|
+
}, $e, t);
|
|
207
|
+
}, Ge = G(Ke, {
|
|
207
208
|
name: "MuiPopover",
|
|
208
|
-
slot: "Root"
|
|
209
|
-
|
|
210
|
-
})({}), ve = G(Fe, {
|
|
209
|
+
slot: "Root"
|
|
210
|
+
})({}), Te = G(Fe, {
|
|
211
211
|
name: "MuiPopover",
|
|
212
|
-
slot: "Paper"
|
|
213
|
-
overridesResolver: (t, o) => o.paper
|
|
212
|
+
slot: "Paper"
|
|
214
213
|
})({
|
|
215
214
|
position: "absolute",
|
|
216
215
|
overflowY: "auto",
|
|
@@ -223,9 +222,9 @@ const Be = (t) => {
|
|
|
223
222
|
maxHeight: "calc(100% - 32px)",
|
|
224
223
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
225
224
|
outline: 0
|
|
226
|
-
}),
|
|
225
|
+
}), ve = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
227
226
|
const k = be({
|
|
228
|
-
props:
|
|
227
|
+
props: t,
|
|
229
228
|
name: "MuiPopover"
|
|
230
229
|
}), {
|
|
231
230
|
action: E,
|
|
@@ -246,7 +245,7 @@ const Be = (t) => {
|
|
|
246
245
|
// TODO: remove in v7
|
|
247
246
|
slots: F = {},
|
|
248
247
|
slotProps: i = {},
|
|
249
|
-
transformOrigin:
|
|
248
|
+
transformOrigin: v = {
|
|
250
249
|
vertical: "top",
|
|
251
250
|
horizontal: "left"
|
|
252
251
|
},
|
|
@@ -263,7 +262,7 @@ const Be = (t) => {
|
|
|
263
262
|
anchorReference: b,
|
|
264
263
|
elevation: K,
|
|
265
264
|
marginThreshold: a,
|
|
266
|
-
transformOrigin:
|
|
265
|
+
transformOrigin: v,
|
|
267
266
|
TransitionComponent: r,
|
|
268
267
|
transitionDuration: l,
|
|
269
268
|
TransitionProps: p
|
|
@@ -281,9 +280,9 @@ const Be = (t) => {
|
|
|
281
280
|
left: h.left + ce(h, g.horizontal)
|
|
282
281
|
};
|
|
283
282
|
}, [y, g.horizontal, g.vertical, m, b]), I = u.useCallback((s) => ({
|
|
284
|
-
vertical: pe(s,
|
|
285
|
-
horizontal: ce(s,
|
|
286
|
-
}), [
|
|
283
|
+
vertical: pe(s, v.vertical),
|
|
284
|
+
horizontal: ce(s, v.horizontal)
|
|
285
|
+
}), [v.horizontal, v.vertical]), Y = u.useCallback((s) => {
|
|
287
286
|
const d = {
|
|
288
287
|
width: s.offsetWidth,
|
|
289
288
|
height: s.offsetHeight
|
|
@@ -317,18 +316,18 @@ const Be = (t) => {
|
|
|
317
316
|
left: `${Math.round(V)}px`,
|
|
318
317
|
transformOrigin: ue(h)
|
|
319
318
|
};
|
|
320
|
-
}, [y, b, N, I, a]), [J,
|
|
319
|
+
}, [y, b, N, I, a]), [J, X] = u.useState(P), M = u.useCallback(() => {
|
|
321
320
|
const s = c.current;
|
|
322
321
|
if (!s)
|
|
323
322
|
return;
|
|
324
|
-
const d =
|
|
325
|
-
d.top !== null && s.style.setProperty("top", d.top), d.left !== null && (s.style.left = d.left), s.style.transformOrigin = d.transformOrigin,
|
|
326
|
-
}, [
|
|
323
|
+
const d = Y(s);
|
|
324
|
+
d.top !== null && s.style.setProperty("top", d.top), d.left !== null && (s.style.left = d.left), s.style.transformOrigin = d.transformOrigin, X(!0);
|
|
325
|
+
}, [Y]);
|
|
327
326
|
u.useEffect(() => (O && window.addEventListener("scroll", M), () => window.removeEventListener("scroll", M)), [y, O, M]);
|
|
328
327
|
const Q = () => {
|
|
329
328
|
M();
|
|
330
329
|
}, j = () => {
|
|
331
|
-
|
|
330
|
+
X(!1);
|
|
332
331
|
};
|
|
333
332
|
u.useEffect(() => {
|
|
334
333
|
P && M();
|
|
@@ -339,7 +338,7 @@ const Be = (t) => {
|
|
|
339
338
|
} : null, [P, M]), u.useEffect(() => {
|
|
340
339
|
if (!P)
|
|
341
340
|
return;
|
|
342
|
-
const s =
|
|
341
|
+
const s = Ie(() => {
|
|
343
342
|
M();
|
|
344
343
|
}), d = oe($(y));
|
|
345
344
|
return d.addEventListener("resize", s), () => {
|
|
@@ -347,7 +346,7 @@ const Be = (t) => {
|
|
|
347
346
|
};
|
|
348
347
|
}, [y, P, M]);
|
|
349
348
|
let f = l;
|
|
350
|
-
const
|
|
349
|
+
const T = {
|
|
351
350
|
slots: {
|
|
352
351
|
transition: r,
|
|
353
352
|
...F
|
|
@@ -358,8 +357,8 @@ const Be = (t) => {
|
|
|
358
357
|
...i
|
|
359
358
|
}
|
|
360
359
|
}, [_, Ee] = B("transition", {
|
|
361
|
-
elementType:
|
|
362
|
-
externalForwardedProps:
|
|
360
|
+
elementType: je,
|
|
361
|
+
externalForwardedProps: T,
|
|
363
362
|
ownerState: C,
|
|
364
363
|
getSlotProps: (s) => ({
|
|
365
364
|
...s,
|
|
@@ -386,7 +385,7 @@ const Be = (t) => {
|
|
|
386
385
|
ref: n,
|
|
387
386
|
elementType: Ge,
|
|
388
387
|
externalForwardedProps: {
|
|
389
|
-
...
|
|
388
|
+
...T,
|
|
390
389
|
...D
|
|
391
390
|
},
|
|
392
391
|
shouldForwardComponentProp: !0,
|
|
@@ -395,7 +394,7 @@ const Be = (t) => {
|
|
|
395
394
|
backdrop: F.backdrop
|
|
396
395
|
},
|
|
397
396
|
slotProps: {
|
|
398
|
-
backdrop:
|
|
397
|
+
backdrop: Le(typeof i.backdrop == "function" ? i.backdrop(C) : i.backdrop, {
|
|
399
398
|
invisible: !0
|
|
400
399
|
})
|
|
401
400
|
},
|
|
@@ -407,8 +406,8 @@ const Be = (t) => {
|
|
|
407
406
|
}), [Ce, Se] = B("paper", {
|
|
408
407
|
ref: c,
|
|
409
408
|
className: z.paper,
|
|
410
|
-
elementType:
|
|
411
|
-
externalForwardedProps:
|
|
409
|
+
elementType: Te,
|
|
410
|
+
externalForwardedProps: T,
|
|
412
411
|
shouldForwardComponentProp: !0,
|
|
413
412
|
additionalProps: {
|
|
414
413
|
elevation: K,
|
|
@@ -435,7 +434,7 @@ const Be = (t) => {
|
|
|
435
434
|
})
|
|
436
435
|
});
|
|
437
436
|
});
|
|
438
|
-
process.env.NODE_ENV !== "production" && (
|
|
437
|
+
process.env.NODE_ENV !== "production" && (ve.propTypes = {
|
|
439
438
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
440
439
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
441
440
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -450,16 +449,16 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
|
450
449
|
* or a function that returns either.
|
|
451
450
|
* It's used to set the position of the popover.
|
|
452
451
|
*/
|
|
453
|
-
anchorEl: Ue(e.oneOfType([te, e.func]), (
|
|
454
|
-
if (
|
|
455
|
-
const
|
|
456
|
-
if (
|
|
457
|
-
const n =
|
|
452
|
+
anchorEl: Ue(e.oneOfType([te, e.func]), (o) => {
|
|
453
|
+
if (o.open && (!o.anchorReference || o.anchorReference === "anchorEl")) {
|
|
454
|
+
const t = $(o.anchorEl);
|
|
455
|
+
if (t && t.nodeType === 1) {
|
|
456
|
+
const n = t.getBoundingClientRect();
|
|
458
457
|
if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0)
|
|
459
458
|
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
460
459
|
`));
|
|
461
460
|
} else
|
|
462
|
-
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${
|
|
461
|
+
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", `It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
463
462
|
`));
|
|
464
463
|
}
|
|
465
464
|
return null;
|
|
@@ -543,7 +542,7 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
|
543
542
|
* The elevation of the popover.
|
|
544
543
|
* @default 8
|
|
545
544
|
*/
|
|
546
|
-
elevation:
|
|
545
|
+
elevation: He,
|
|
547
546
|
/**
|
|
548
547
|
* Specifies how close to the edge of the window the popover can appear.
|
|
549
548
|
* If null, the popover will not be constrained by the window.
|
|
@@ -634,33 +633,31 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
|
634
633
|
*/
|
|
635
634
|
TransitionProps: e.object
|
|
636
635
|
});
|
|
637
|
-
function
|
|
638
|
-
return de("MuiMenu",
|
|
636
|
+
function Ye(o) {
|
|
637
|
+
return de("MuiMenu", o);
|
|
639
638
|
}
|
|
640
|
-
const
|
|
639
|
+
const Co = me("MuiMenu", ["root", "paper", "list"]), Xe = {
|
|
641
640
|
vertical: "top",
|
|
642
641
|
horizontal: "right"
|
|
643
642
|
}, Je = {
|
|
644
643
|
vertical: "top",
|
|
645
644
|
horizontal: "left"
|
|
646
|
-
}, Qe = (
|
|
645
|
+
}, Qe = (o) => {
|
|
647
646
|
const {
|
|
648
|
-
classes:
|
|
649
|
-
} =
|
|
647
|
+
classes: t
|
|
648
|
+
} = o;
|
|
650
649
|
return ye({
|
|
651
650
|
root: ["root"],
|
|
652
651
|
paper: ["paper"],
|
|
653
652
|
list: ["list"]
|
|
654
|
-
},
|
|
655
|
-
}, Ze = G(
|
|
656
|
-
shouldForwardProp: (
|
|
653
|
+
}, Ye, t);
|
|
654
|
+
}, Ze = G(ve, {
|
|
655
|
+
shouldForwardProp: (o) => xe(o) || o === "classes",
|
|
657
656
|
name: "MuiMenu",
|
|
658
|
-
slot: "Root"
|
|
659
|
-
|
|
660
|
-
})({}), eo = G(ve, {
|
|
657
|
+
slot: "Root"
|
|
658
|
+
})({}), eo = G(Te, {
|
|
661
659
|
name: "MuiMenu",
|
|
662
|
-
slot: "Paper"
|
|
663
|
-
overridesResolver: (t, o) => o.paper
|
|
660
|
+
slot: "Paper"
|
|
664
661
|
})({
|
|
665
662
|
// specZ: The maximum height of a simple menu should be one or more rows less than the view
|
|
666
663
|
// height. This ensures a tappable area outside of the simple menu with which to dismiss
|
|
@@ -670,14 +667,13 @@ const Ro = me("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
670
667
|
WebkitOverflowScrolling: "touch"
|
|
671
668
|
}), oo = G(Pe, {
|
|
672
669
|
name: "MuiMenu",
|
|
673
|
-
slot: "List"
|
|
674
|
-
overridesResolver: (t, o) => o.list
|
|
670
|
+
slot: "List"
|
|
675
671
|
})({
|
|
676
672
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
677
673
|
outline: 0
|
|
678
|
-
}), to = /* @__PURE__ */ u.forwardRef(function(
|
|
674
|
+
}), to = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
679
675
|
const k = be({
|
|
680
|
-
props:
|
|
676
|
+
props: t,
|
|
681
677
|
name: "MuiMenu"
|
|
682
678
|
}), {
|
|
683
679
|
autoFocus: E = !0,
|
|
@@ -696,7 +692,7 @@ const Ro = me("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
696
692
|
} = {},
|
|
697
693
|
variant: F = "selectedMenu",
|
|
698
694
|
slots: i = {},
|
|
699
|
-
slotProps:
|
|
695
|
+
slotProps: v = {},
|
|
700
696
|
...r
|
|
701
697
|
} = k, l = ke(), p = {
|
|
702
698
|
...k,
|
|
@@ -708,17 +704,17 @@ const Ro = me("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
708
704
|
transitionDuration: a,
|
|
709
705
|
TransitionProps: H,
|
|
710
706
|
variant: F
|
|
711
|
-
}, O = Qe(p), D = E && !m && x, c = u.useRef(null), C = (f,
|
|
707
|
+
}, O = Qe(p), D = E && !m && x, c = u.useRef(null), C = (f, T) => {
|
|
712
708
|
c.current && c.current.adjustStyleForScrollbar(f, {
|
|
713
709
|
direction: l ? "rtl" : "ltr"
|
|
714
|
-
}), P && P(f,
|
|
710
|
+
}), P && P(f, T);
|
|
715
711
|
}, z = (f) => {
|
|
716
712
|
f.key === "Tab" && (f.preventDefault(), R && R(f, "tabKeyDown"));
|
|
717
713
|
};
|
|
718
714
|
let N = -1;
|
|
719
|
-
u.Children.map(y, (f,
|
|
715
|
+
u.Children.map(y, (f, T) => {
|
|
720
716
|
/* @__PURE__ */ u.isValidElement(f) && (process.env.NODE_ENV !== "production" && fe.isFragment(f) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
721
|
-
`)), f.props.disabled || (F === "selectedMenu" && f.props.selected || N === -1) && (N =
|
|
717
|
+
`)), f.props.disabled || (F === "selectedMenu" && f.props.selected || N === -1) && (N = T));
|
|
722
718
|
});
|
|
723
719
|
const I = {
|
|
724
720
|
slots: i,
|
|
@@ -726,14 +722,14 @@ const Ro = me("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
726
722
|
list: b,
|
|
727
723
|
transition: H,
|
|
728
724
|
paper: L,
|
|
729
|
-
...
|
|
725
|
+
...v
|
|
730
726
|
}
|
|
731
|
-
},
|
|
727
|
+
}, Y = De({
|
|
732
728
|
elementType: i.root,
|
|
733
|
-
externalSlotProps:
|
|
729
|
+
externalSlotProps: v.root,
|
|
734
730
|
ownerState: p,
|
|
735
731
|
className: [O.root, g]
|
|
736
|
-
}), [J,
|
|
732
|
+
}), [J, X] = B("paper", {
|
|
737
733
|
className: O.paper,
|
|
738
734
|
elementType: eo,
|
|
739
735
|
externalForwardedProps: I,
|
|
@@ -746,9 +742,9 @@ const Ro = me("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
746
742
|
externalForwardedProps: I,
|
|
747
743
|
getSlotProps: (f) => ({
|
|
748
744
|
...f,
|
|
749
|
-
onKeyDown: (
|
|
745
|
+
onKeyDown: (T) => {
|
|
750
746
|
var _;
|
|
751
|
-
z(
|
|
747
|
+
z(T), (_ = f.onKeyDown) == null || _.call(f, T);
|
|
752
748
|
}
|
|
753
749
|
}),
|
|
754
750
|
ownerState: p
|
|
@@ -759,7 +755,7 @@ const Ro = me("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
759
755
|
vertical: "bottom",
|
|
760
756
|
horizontal: l ? "right" : "left"
|
|
761
757
|
},
|
|
762
|
-
transformOrigin: l ?
|
|
758
|
+
transformOrigin: l ? Xe : Je,
|
|
763
759
|
slots: {
|
|
764
760
|
root: i.root,
|
|
765
761
|
paper: J,
|
|
@@ -770,14 +766,14 @@ const Ro = me("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
770
766
|
}
|
|
771
767
|
},
|
|
772
768
|
slotProps: {
|
|
773
|
-
root:
|
|
774
|
-
paper:
|
|
775
|
-
backdrop: typeof
|
|
769
|
+
root: Y,
|
|
770
|
+
paper: X,
|
|
771
|
+
backdrop: typeof v.backdrop == "function" ? v.backdrop(p) : v.backdrop,
|
|
776
772
|
transition: {
|
|
777
773
|
...j,
|
|
778
774
|
onEntering: (...f) => {
|
|
779
|
-
var
|
|
780
|
-
C(...f), (
|
|
775
|
+
var T;
|
|
776
|
+
C(...f), (T = j == null ? void 0 : j.onEntering) == null || T.call(j, ...f);
|
|
781
777
|
}
|
|
782
778
|
}
|
|
783
779
|
},
|
|
@@ -910,6 +906,6 @@ process.env.NODE_ENV !== "production" && (to.propTypes = {
|
|
|
910
906
|
});
|
|
911
907
|
export {
|
|
912
908
|
to as M,
|
|
913
|
-
|
|
914
|
-
|
|
909
|
+
Ye as g,
|
|
910
|
+
Co as m
|
|
915
911
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const Se=require("react"),L=require("./identifier-BoZelETM.cjs"),e=require("./index-DLnSn8GT.cjs"),Re=require("./index-CrINMjCH.cjs"),k=require("./DefaultPropsProvider-Cnf49AIv.cjs"),Y=require("./useSlot-C2FjoUpF.cjs"),V=require("react/jsx-runtime"),xe=require("./useSlotProps-CrQGQLdL.cjs"),ke=require("./isHostComponent-PydJW4A4.cjs"),De=require("./Paper-BbqZL5vx.cjs"),oe=require("./ownerDocument-4MViGo3k.cjs"),te=require("./ownerWindow-DDHucZi0.cjs"),je=require("./debounce-DpCj7ugL.cjs"),Ne=require("./Grow-BULCy6GX.cjs"),Ie=require("./mergeSlotProps-DXwOW3FE.cjs"),ye=require("./Modal-DkzrSKHd.cjs"),Fe=require("./integerPropType-CR7ytEJG.cjs"),qe=require("./chainPropTypes-CEUi6Jb4.cjs"),Le=require("./refType-B_IEJm4x.cjs"),ze=require("./elementTypeAcceptingRef-BwZv9xBI.cjs"),re=require("./Portal-CPOCKeMh.cjs"),Ke=require("./useEventCallback-BxpcFap0.cjs"),He=require("./useForkRef-CFhhTu-Q.cjs"),Ue=require("./List-t9bWFewp.cjs");function _e(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const E=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,E.get?E:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const u=_e(Se);function ee(o,t,r){return o===t?o.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:o.firstChild}function le(o,t,r){return o===t?r?o.firstChild:o.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:o.lastChild}function de(o,t){if(t===void 0)return!0;let r=o.innerText;return r===void 0&&(r=o.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function B(o,t,r,E,O,h){let m=!1,d=O(o,t,t?r:!1);for(;d;){if(d===o.firstChild){if(m)return!1;m=!0}const T=E?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!de(d,h)||T)d=O(o,d,r);else return d.focus(),!0}return!1}const Pe=u.forwardRef(function(t,r){const{actions:E,autoFocus:O=!1,autoFocusItem:h=!1,children:m,className:d,disabledItemsFocusable:T=!1,disableListWrap:S=!1,onKeyDown:D,variant:z="selectedMenu",...H}=t,i=u.useRef(null),b=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ke.useEnhancedEffect(()=>{O&&i.current.focus()},[O]),u.useImperativeHandle(E,()=>({adjustStyleForScrollbar:(n,{direction:a})=>{const l=!i.current.style.width;if(n.clientHeight<i.current.clientHeight&&l){const w=`${ye.getScrollbarSize(te.ownerWindow(n))}px`;i.current.style[a==="rtl"?"paddingLeft":"paddingRight"]=w,i.current.style.width=`calc(100% + ${w})`}return i.current}}),[]);const U=n=>{const a=i.current,l=n.key;if(n.ctrlKey||n.metaKey||n.altKey){D&&D(n);return}const j=oe.ownerDocument(a).activeElement;if(l==="ArrowDown")n.preventDefault(),B(a,j,S,T,ee);else if(l==="ArrowUp")n.preventDefault(),B(a,j,S,T,le);else if(l==="Home")n.preventDefault(),B(a,null,S,T,ee);else if(l==="End")n.preventDefault(),B(a,null,S,T,le);else if(l.length===1){const c=b.current,R=l.toLowerCase(),K=performance.now();c.keys.length>0&&(K-c.lastTime>500?(c.keys=[],c.repeating=!0,c.previousKeyMatched=!0):c.repeating&&R!==c.keys[0]&&(c.repeating=!1)),c.lastTime=K,c.keys.push(R);const N=j&&!c.repeating&&de(j,c);c.previousKeyMatched&&(N||B(a,j,!1,T,ee,c))?n.preventDefault():c.previousKeyMatched=!1}D&&D(n)},I=He.useForkRef(i,r);let p=-1;u.Children.forEach(m,(n,a)=>{if(!u.isValidElement(n)){p===a&&(p+=1,p>=m.length&&(p=-1));return}process.env.NODE_ENV!=="production"&&L.reactIsExports.isFragment(n)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
2
|
+
`)),n.props.disabled||(z==="selectedMenu"&&n.props.selected||p===-1)&&(p=a),p===a&&(n.props.disabled||n.props.muiSkipListHighlight||n.type.muiSkipListHighlight)&&(p+=1,p>=m.length&&(p=-1))});const v=u.Children.map(m,(n,a)=>{if(a===p){const l={};return h&&(l.autoFocus=!0),n.props.tabIndex===void 0&&z==="selectedMenu"&&(l.tabIndex=0),u.cloneElement(n,l)}return n});return V.jsx(Ue.List,{role:"menu",ref:I,className:d,onKeyDown:U,tabIndex:O?0:-1,...H,children:v})});process.env.NODE_ENV!=="production"&&(Pe.propTypes={autoFocus:e.PropTypes.bool,autoFocusItem:e.PropTypes.bool,children:e.PropTypes.node,className:e.PropTypes.string,disabledItemsFocusable:e.PropTypes.bool,disableListWrap:e.PropTypes.bool,onKeyDown:e.PropTypes.func,variant:e.PropTypes.oneOf(["menu","selectedMenu"])});function Ae(o){return L.generateUtilityClass("MuiPopover",o)}L.generateUtilityClasses("MuiPopover",["root","paper"]);function ce(o,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=o.height/2:t==="bottom"&&(r=o.height),r}function ue(o,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=o.width/2:t==="right"&&(r=o.width),r}function fe(o){return[o.horizontal,o.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function G(o){return typeof o=="function"?o():o}const Ve=o=>{const{classes:t}=o,r={root:["root"],paper:["paper"]};return k.composeClasses(r,Ae,t)},We=k.styled(ye.Modal,{name:"MuiPopover",slot:"Root"})({}),Te=k.styled(De.Paper,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),he=u.forwardRef(function(t,r){const E=k.useDefaultProps({props:t,name:"MuiPopover"}),{action:O,anchorEl:h,anchorOrigin:m={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:T="anchorEl",children:S,className:D,container:z,elevation:H=8,marginThreshold:i=16,open:b,PaperProps:U={},slots:I={},slotProps:p={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:n,transitionDuration:a="auto",TransitionProps:l={},disableScrollLock:w=!1,...j}=E,c=u.useRef(),R={...E,anchorOrigin:m,anchorReference:T,elevation:H,marginThreshold:i,transformOrigin:v,TransitionComponent:n,transitionDuration:a,TransitionProps:l},K=Ve(R),N=u.useCallback(()=>{if(T==="anchorPosition")return process.env.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),d;const s=G(h),y=s&&s.nodeType===1?s:oe.ownerDocument(c.current).body,P=y.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const x=y.getBoundingClientRect();process.env.NODE_ENV!=="test"&&x.top===0&&x.left===0&&x.right===0&&x.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
3
|
+
`))}return{top:P.top+ce(P,m.vertical),left:P.left+ue(P,m.horizontal)}},[h,m.horizontal,m.vertical,d,T]),F=u.useCallback(s=>({vertical:ce(s,v.vertical),horizontal:ue(s,v.horizontal)}),[v.horizontal,v.vertical]),X=u.useCallback(s=>{const y={width:s.offsetWidth,height:s.offsetHeight},P=F(y);if(T==="none")return{top:null,left:null,transformOrigin:fe(P)};const x=N();let _=x.top-P.vertical,A=x.left-P.horizontal;const se=_+y.height,pe=A+y.width,ie=te.ownerWindow(G(h)),$=ie.innerHeight-i,ae=ie.innerWidth-i;if(i!==null&&_<i){const C=_-i;_-=C,P.vertical+=C}else if(i!==null&&se>$){const C=se-$;_-=C,P.vertical+=C}if(process.env.NODE_ENV!=="production"&&y.height>$&&y.height&&$&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${y.height-$}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
4
|
+
`)),i!==null&&A<i){const C=A-i;A-=C,P.horizontal+=C}else if(pe>ae){const C=pe-ae;A-=C,P.horizontal+=C}return{top:`${Math.round(_)}px`,left:`${Math.round(A)}px`,transformOrigin:fe(P)}},[h,T,N,F,i]),[Q,J]=u.useState(b),M=u.useCallback(()=>{const s=c.current;if(!s)return;const y=X(s);y.top!==null&&s.style.setProperty("top",y.top),y.left!==null&&(s.style.left=y.left),s.style.transformOrigin=y.transformOrigin,J(!0)},[X]);u.useEffect(()=>(w&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[h,w,M]);const Z=()=>{M()},q=()=>{J(!1)};u.useEffect(()=>{b&&M()}),u.useImperativeHandle(O,()=>b?{updatePosition:()=>{M()}}:null,[b,M]),u.useEffect(()=>{if(!b)return;const s=je.debounce(()=>{M()}),y=te.ownerWindow(G(h));return y.addEventListener("resize",s),()=>{s.clear(),y.removeEventListener("resize",s)}},[h,b,M]);let f=a;const g={slots:{transition:n,...I},slotProps:{transition:l,paper:U,...p}},[W,ge]=Y.useSlot("transition",{elementType:Ne.Grow,externalForwardedProps:g,ownerState:R,getSlotProps:s=>({...s,onEntering:(y,P)=>{var x;(x=s.onEntering)==null||x.call(s,y,P),Z()},onExited:y=>{var P;(P=s.onExited)==null||P.call(s,y),q()}}),additionalProps:{appear:!0,in:b}});a==="auto"&&!W.muiSupportAuto&&(f=void 0);const ve=z||(h?oe.ownerDocument(G(h)).body:void 0),[ne,{slots:Ee,slotProps:Oe,...we}]=Y.useSlot("root",{ref:r,elementType:We,externalForwardedProps:{...g,...j},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:I.backdrop},slotProps:{backdrop:Ie.mergeSlotProps(typeof p.backdrop=="function"?p.backdrop(R):p.backdrop,{invisible:!0})},container:ve,open:b},ownerState:R,className:L.clsx(K.root,D)}),[Me,Ce]=Y.useSlot("paper",{ref:c,className:K.paper,elementType:Te,externalForwardedProps:g,shouldForwardComponentProp:!0,additionalProps:{elevation:H,style:Q?void 0:{opacity:0}},ownerState:R});return V.jsx(ne,{...we,...!ke.isHostComponent(ne)&&{slots:Ee,slotProps:Oe,disableScrollLock:w},children:V.jsx(W,{...ge,timeout:f,children:V.jsx(Me,{...Ce,children:S})})})});process.env.NODE_ENV!=="production"&&(he.propTypes={action:Le.refType,anchorEl:qe.chainPropTypes(e.PropTypes.oneOfType([re.HTMLElementType,e.PropTypes.func]),o=>{if(o.open&&(!o.anchorReference||o.anchorReference==="anchorEl")){const t=G(o.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
5
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
6
|
+
`))}return null}),anchorOrigin:e.PropTypes.shape({horizontal:e.PropTypes.oneOfType([e.PropTypes.oneOf(["center","left","right"]),e.PropTypes.number]).isRequired,vertical:e.PropTypes.oneOfType([e.PropTypes.oneOf(["bottom","center","top"]),e.PropTypes.number]).isRequired}),anchorPosition:e.PropTypes.shape({left:e.PropTypes.number.isRequired,top:e.PropTypes.number.isRequired}),anchorReference:e.PropTypes.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:e.PropTypes.elementType,BackdropProps:e.PropTypes.object,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,container:e.PropTypes.oneOfType([re.HTMLElementType,e.PropTypes.func]),disableScrollLock:e.PropTypes.bool,elevation:Fe.integerPropType,marginThreshold:e.PropTypes.number,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperProps:e.PropTypes.shape({component:ze.elementTypeAcceptingRef}),slotProps:e.PropTypes.shape({backdrop:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),paper:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),transition:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({backdrop:e.PropTypes.elementType,paper:e.PropTypes.elementType,root:e.PropTypes.elementType,transition:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),transformOrigin:e.PropTypes.shape({horizontal:e.PropTypes.oneOfType([e.PropTypes.oneOf(["center","left","right"]),e.PropTypes.number]).isRequired,vertical:e.PropTypes.oneOfType([e.PropTypes.oneOf(["bottom","center","top"]),e.PropTypes.number]).isRequired}),TransitionComponent:e.PropTypes.elementType,transitionDuration:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object});function me(o){return L.generateUtilityClass("MuiMenu",o)}const $e=L.generateUtilityClasses("MuiMenu",["root","paper","list"]),Be={vertical:"top",horizontal:"right"},Ge={vertical:"top",horizontal:"left"},Ye=o=>{const{classes:t}=o,r={root:["root"],paper:["paper"],list:["list"]};return k.composeClasses(r,me,t)},Xe=k.styled(he,{shouldForwardProp:o=>k.rootShouldForwardProp(o)||o==="classes",name:"MuiMenu",slot:"Root"})({}),Je=k.styled(Te,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Qe=k.styled(Pe,{name:"MuiMenu",slot:"List"})({outline:0}),be=u.forwardRef(function(t,r){const E=k.useDefaultProps({props:t,name:"MuiMenu"}),{autoFocus:O=!0,children:h,className:m,disableAutoFocusItem:d=!1,MenuListProps:T={},onClose:S,open:D,PaperProps:z={},PopoverClasses:H,transitionDuration:i="auto",TransitionProps:{onEntering:b,...U}={},variant:I="selectedMenu",slots:p={},slotProps:v={},...n}=E,a=Re.useRtl(),l={...E,autoFocus:O,disableAutoFocusItem:d,MenuListProps:T,onEntering:b,PaperProps:z,transitionDuration:i,TransitionProps:U,variant:I},w=Ye(l),j=O&&!d&&D,c=u.useRef(null),R=(f,g)=>{c.current&&c.current.adjustStyleForScrollbar(f,{direction:a?"rtl":"ltr"}),b&&b(f,g)},K=f=>{f.key==="Tab"&&(f.preventDefault(),S&&S(f,"tabKeyDown"))};let N=-1;u.Children.map(h,(f,g)=>{u.isValidElement(f)&&(process.env.NODE_ENV!=="production"&&L.reactIsExports.isFragment(f)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
7
|
+
`)),f.props.disabled||(I==="selectedMenu"&&f.props.selected||N===-1)&&(N=g))});const F={slots:p,slotProps:{list:T,transition:U,paper:z,...v}},X=xe.useSlotProps({elementType:p.root,externalSlotProps:v.root,ownerState:l,className:[w.root,m]}),[Q,J]=Y.useSlot("paper",{className:w.paper,elementType:Je,externalForwardedProps:F,shouldForwardComponentProp:!0,ownerState:l}),[M,Z]=Y.useSlot("list",{className:L.clsx(w.list,T.className),elementType:Qe,shouldForwardComponentProp:!0,externalForwardedProps:F,getSlotProps:f=>({...f,onKeyDown:g=>{var W;K(g),(W=f.onKeyDown)==null||W.call(f,g)}}),ownerState:l}),q=typeof F.slotProps.transition=="function"?F.slotProps.transition(l):F.slotProps.transition;return V.jsx(Xe,{onClose:S,anchorOrigin:{vertical:"bottom",horizontal:a?"right":"left"},transformOrigin:a?Be:Ge,slots:{root:p.root,paper:Q,backdrop:p.backdrop,...p.transition&&{transition:p.transition}},slotProps:{root:X,paper:J,backdrop:typeof v.backdrop=="function"?v.backdrop(l):v.backdrop,transition:{...q,onEntering:(...f)=>{var g;R(...f),(g=q==null?void 0:q.onEntering)==null||g.call(q,...f)}}},open:D,ref:r,transitionDuration:i,ownerState:l,...n,classes:H,children:V.jsx(M,{actions:c,autoFocus:O&&(N===-1||d),autoFocusItem:j,variant:I,...Z,children:h})})});process.env.NODE_ENV!=="production"&&(be.propTypes={anchorEl:e.PropTypes.oneOfType([re.HTMLElementType,e.PropTypes.func]),autoFocus:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableAutoFocusItem:e.PropTypes.bool,MenuListProps:e.PropTypes.object,onClose:e.PropTypes.func,open:e.PropTypes.bool.isRequired,PaperProps:e.PropTypes.object,PopoverClasses:e.PropTypes.object,slotProps:e.PropTypes.shape({backdrop:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),list:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),paper:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),transition:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({backdrop:e.PropTypes.elementType,list:e.PropTypes.elementType,paper:e.PropTypes.elementType,root:e.PropTypes.elementType,transition:e.PropTypes.elementType}),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),transitionDuration:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})]),TransitionProps:e.PropTypes.object,variant:e.PropTypes.oneOf(["menu","selectedMenu"])});exports.Menu=be;exports.getMenuUtilityClass=me;exports.menuClasses=$e;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
2
|
import { P as t } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as T, G as k, H as C, n as d } from "./
|
|
4
|
-
import { u as F, s as L, c as P, r as U } from "./DefaultPropsProvider-
|
|
5
|
-
import { m as E } from "./memoTheme-
|
|
6
|
-
import { a as I } from "./List-
|
|
3
|
+
import { F as T, G as k, H as C, n as d } from "./identifier-PWESmBq6.js";
|
|
4
|
+
import { u as F, s as L, c as P, r as U } from "./DefaultPropsProvider-DqazQPtr.js";
|
|
5
|
+
import { m as E } from "./memoTheme-DAFDflPY.js";
|
|
6
|
+
import { a as I } from "./List-CB_cqCSw.js";
|
|
7
7
|
import { jsx as x } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
8
|
+
import { u as G } from "./useEventCallback-Y2KwRxBw.js";
|
|
9
9
|
import { u as j } from "./useForkRef-u29GSuCu.js";
|
|
10
|
-
import { B as D } from "./ButtonBase-
|
|
11
|
-
import { l as $ } from "./listItemTextClasses-
|
|
12
|
-
import { d as M } from "./dividerClasses-
|
|
10
|
+
import { B as D } from "./ButtonBase-6TF6t2SP.js";
|
|
11
|
+
import { l as $ } from "./listItemTextClasses-B5VhLd9W.js";
|
|
12
|
+
import { d as M } from "./dividerClasses-BPJZ8SFy.js";
|
|
13
13
|
function se(e) {
|
|
14
14
|
return k("MuiListItemIcon", e);
|
|
15
15
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const w=require("react"),t=require("./index-DLnSn8GT.cjs"),a=require("./identifier-BoZelETM.cjs"),d=require("./DefaultPropsProvider-Cnf49AIv.cjs"),L=require("./memoTheme-BKfsJx_F.cjs"),T=require("./List-t9bWFewp.cjs"),P=require("react/jsx-runtime"),S=require("./useEventCallback-BxpcFap0.cjs"),B=require("./useForkRef-CFhhTu-Q.cjs"),V=require("./ButtonBase-Dp6sf_dP.cjs"),x=require("./listItemTextClasses-CJDKfXvl.cjs"),O=require("./dividerClasses-C07OJKLL.cjs");function D(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(s,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return s.default=e,Object.freeze(s)}const p=D(w);function E(e){return a.generateUtilityClass("MuiListItemIcon",e)}const g=a.generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]);function $(e){return a.generateUtilityClass("MuiMenuItem",e)}const n=a.generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),F=(e,s)=>{const{ownerState:o}=e;return[s.root,o.dense&&s.dense,o.divider&&s.divider,!o.disableGutters&&s.gutters]},G=e=>{const{disabled:s,dense:o,divider:r,disableGutters:c,selected:u,classes:i}=e,y={root:["root",o&&"dense",s&&"disabled",!c&&"gutters",r&&"divider",u&&"selected"]},l=d.composeClasses(y,$,i);return{...i,...l}},_=d.styled(V.ButtonBase,{shouldForwardProp:e=>d.rootShouldForwardProp(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:F})(L.memoTheme(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${n.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:a.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${n.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:a.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${n.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:a.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:a.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${n.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${n.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${O.dividerClasses.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${O.dividerClasses.inset}`]:{marginLeft:52},[`& .${x.listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${x.listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${g.root}`]:{minWidth:36},variants:[{props:({ownerState:s})=>!s.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:s})=>s.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:s})=>!s.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:s})=>s.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${g.root} svg`]:{fontSize:"1.25rem"}}}]}))),M=p.forwardRef(function(s,o){const r=d.useDefaultProps({props:s,name:"MuiMenuItem"}),{autoFocus:c=!1,component:u="li",dense:i=!1,divider:y=!1,disableGutters:l=!1,focusVisibleClassName:k,role:R="menuitem",tabIndex:m,className:q,...j}=r,v=p.useContext(T.ListContext),C=p.useMemo(()=>({dense:i||v.dense||!1,disableGutters:l}),[v.dense,i,l]),b=p.useRef(null);S.useEnhancedEffect(()=>{c&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[c]);const N={...r,dense:C.dense,divider:y,disableGutters:l},f=G(r),U=B.useForkRef(b,o);let I;return r.disabled||(I=m!==void 0?m:-1),P.jsx(T.ListContext.Provider,{value:C,children:P.jsx(_,{ref:U,role:R,tabIndex:I,component:u,focusVisibleClassName:a.clsx(f.focusVisible,k),className:a.clsx(f.root,q),...j,ownerState:N,classes:f})})});process.env.NODE_ENV!=="production"&&(M.propTypes={autoFocus:t.PropTypes.bool,children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,component:t.PropTypes.elementType,dense:t.PropTypes.bool,disabled:t.PropTypes.bool,disableGutters:t.PropTypes.bool,divider:t.PropTypes.bool,focusVisibleClassName:t.PropTypes.string,role:t.PropTypes.string,selected:t.PropTypes.bool,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),tabIndex:t.PropTypes.number});exports.MenuItem=M;exports.getListItemIconUtilityClass=E;exports.getMenuItemUtilityClass=$;exports.listItemIconClasses=g;exports.menuItemClasses=n;
|