@cgi-learning-hub/ui 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Alert-OeEy_IGc.js → Alert-6yOnGlLE.js} +6 -6
- package/dist/{Alert-rPyl-bqs.cjs → Alert-CWHOYWde.cjs} +1 -1
- package/dist/{Alert-DPSZppEy.cjs → Alert-D4-73fYc.cjs} +1 -1
- package/dist/{Alert-BhLIlUBu.js → Alert-D6SQnjuJ.js} +83 -83
- package/dist/{Autocomplete-WZw_zCjA.js → Autocomplete-B8u-WYi5.js} +680 -664
- package/dist/Autocomplete-BA6NkciB.cjs +6 -0
- package/dist/Backdrop-Dp1hKKfU.cjs +1 -0
- package/dist/{Backdrop-CjZYrxkZ.js → Backdrop-DuOPKUSY.js} +36 -35
- package/dist/{Badge-Bwcsnbsa.js → Badge-BJ4yH_Da.js} +4 -4
- package/dist/{Badge-DFzvdVS-.cjs → Badge-XMr4Ygjv.cjs} +1 -1
- package/dist/{Box-DR3n_po_.cjs → Box-B5E7sstc.cjs} +1 -1
- package/dist/{Box-BI4osO9v.js → Box-BWETzF5p.js} +3 -3
- package/dist/Button-BJB830NI.cjs +1 -0
- package/dist/{Button-DDV5EfwJ.js → Button-C8_HxKFe.js} +95 -95
- package/dist/{ButtonBase-6TF6t2SP.js → ButtonBase-CJYV8wgs.js} +2 -2
- package/dist/{ButtonBase-Dp6sf_dP.cjs → ButtonBase-DPIkh47Q.cjs} +1 -1
- package/dist/{CardContent-COfaU6E0.cjs → CardContent-H0z20SY7.cjs} +1 -1
- package/dist/{CardContent-D3uGcxlr.js → CardContent-V9JMSLmA.js} +3 -3
- package/dist/Checkbox-BZPMiwbF.cjs +1 -0
- package/dist/{Checkbox-BfBDowB2.js → Checkbox-DMMz_IAP.js} +86 -86
- package/dist/Chip-BDVqkZZM.js +573 -0
- package/dist/Chip-DMBSp59F.cjs +1 -0
- package/dist/{CircularProgress-CXXyPavb.cjs → CircularProgress-BMVNeiSf.cjs} +1 -1
- package/dist/{CircularProgress-DZuYTFz-.js → CircularProgress-CrWnCGqN.js} +3 -3
- package/dist/{Close-7S2hSoFB.cjs → Close-2eEmvKPH.cjs} +1 -1
- package/dist/{Close-DEMecSZ6.js → Close-Cr2OT0GV.js} +1 -1
- package/dist/{CloseRounded-DS-4-gMR.cjs → CloseRounded-B6cT7aGi.cjs} +1 -1
- package/dist/{CloseRounded-CioV1GK3.js → CloseRounded-BrGeesu1.js} +1 -1
- package/dist/{CustomTreeItem-Bg8Ub4dn.cjs → CustomTreeItem-BXgsWbl_.cjs} +1 -1
- package/dist/{CustomTreeItem-B9FylIhL.js → CustomTreeItem-DhB3ECa2.js} +12 -12
- package/dist/DatePicker-DtPvvFiK.cjs +16 -0
- package/dist/{DatePicker-DasS2wq6.js → DatePicker-ofISDY8Q.js} +2822 -2821
- package/dist/DefaultPropsProvider-BFTLy05-.cjs +1 -0
- package/dist/DefaultPropsProvider-nxIPd34m.js +312 -0
- package/dist/{Delete-BvkBJXEM.cjs → Delete-BF63Gpr-.cjs} +1 -1
- package/dist/{Delete-B5VTV71K.js → Delete-CwWpjEOT.js} +1 -1
- package/dist/Dialog-Cymf3DJ2.cjs +1 -0
- package/dist/{Dialog-DEWB041V.js → Dialog-eK1zTFBm.js} +10 -10
- package/dist/{DialogContent-C294EkoQ.js → DialogContent-BsPZJR2a.js} +3 -3
- package/dist/{DialogContent-DXfUge3c.cjs → DialogContent-Gy1s3ela.cjs} +1 -1
- package/dist/{DialogTitle-y2PrK6uU.cjs → DialogTitle-BDyrzRXS.cjs} +1 -1
- package/dist/{DialogTitle-BSiId6Q1.js → DialogTitle-CaAd59jN.js} +5 -5
- package/dist/Divider-BzdMIEJJ.cjs +1 -0
- package/dist/{Divider-kKp4VqHh.js → Divider-D_gbcyWE.js} +26 -26
- package/dist/{Folder-BgQP5-Ve.js → Folder-COKXTjZ4.js} +1 -1
- package/dist/{Folder-BfLBqDHM.cjs → Folder-D0fZbyc-.cjs} +1 -1
- package/dist/{FormLabel-JrZR9kt8.cjs → FormLabel-BLySmpkL.cjs} +1 -1
- package/dist/{FormLabel-B3WAnPGP.js → FormLabel-DmLckqyT.js} +3 -3
- package/dist/{Grid-BHYQ3JNy.cjs → Grid-DFaRzlB4.cjs} +1 -1
- package/dist/{Grid-DFk-4jnZ.js → Grid-vM--ojbL.js} +7 -7
- package/dist/{Grow-BfjkXlG8.js → Grow-DE5x7F5S.js} +1 -1
- package/dist/{Grow-BULCy6GX.cjs → Grow-ovNT7Sot.cjs} +1 -1
- package/dist/IconButton-DCQiOq7W.cjs +2 -0
- package/dist/{IconButton-BYvak8Nw.js → IconButton-f9EZgwvD.js} +66 -66
- package/dist/{InputAdornment-BBZXvhZ-.js → InputAdornment-B615VSjF.js} +4 -4
- package/dist/{InputAdornment-DvHQMisT.cjs → InputAdornment-BrrJ8chb.cjs} +1 -1
- package/dist/{InputBase-BS5oknUK.js → InputBase-BCbPPzW1.js} +4 -4
- package/dist/{InputBase-DPdKpmOz.cjs → InputBase-CRrFludT.cjs} +1 -1
- package/dist/Link-CMes5bws.cjs +1 -0
- package/dist/{Link-DYPjEdvu.js → Link-GBRiPElP.js} +52 -39
- package/dist/{List-CB_cqCSw.js → List-DZkddOsr.js} +2 -2
- package/dist/{List-t9bWFewp.cjs → List-E_TAQ1jJ.cjs} +1 -1
- package/dist/{ListItem-DAZQEir2.js → ListItem-CMoibMI7.js} +4 -4
- package/dist/{ListItem-DP7YmqZk.cjs → ListItem-qTKJTg7f.cjs} +1 -1
- package/dist/ListItemText-B3z5dHrQ.cjs +1 -0
- package/dist/{ListItemText-qfdqJP77.js → ListItemText-BbrPf29n.js} +139 -139
- package/dist/{Menu-9BK8jmzW.js → Menu-3UjlpKRJ.js} +27 -27
- package/dist/{Menu-C61wLk41.cjs → Menu-C0uY9Dd0.cjs} +1 -1
- package/dist/MenuItem--a878rw9.cjs +1 -0
- package/dist/{MenuItem-C8nduSzJ.js → MenuItem-CHEWce5u.js} +94 -94
- package/dist/{Modal-DkzrSKHd.cjs → Modal-CdcolE0C.cjs} +1 -1
- package/dist/{Modal-D3Q9vEAI.js → Modal-Du5LfkZg.js} +5 -5
- package/dist/{MoreVert-C-Rhn-xK.cjs → MoreVert-DZjEMvuw.cjs} +1 -1
- package/dist/{MoreVert-C_W1m_Z_.js → MoreVert-PLU7h8WO.js} +1 -1
- package/dist/{Paper-IQckggbn.js → Paper-BylmTlAJ.js} +4 -4
- package/dist/{Paper-BbqZL5vx.cjs → Paper-DgHGh6vt.cjs} +1 -1
- package/dist/{Popper-DvWx5tR3.cjs → Popper-BsNp09Gg.cjs} +1 -1
- package/dist/{Popper-CfFLBZ7-.js → Popper-CvQLHjwo.js} +3 -3
- package/dist/Radio-CLNMQGNf.cjs +1 -0
- package/dist/{Radio-DKiu6lVB.js → Radio-CbYgci2-.js} +195 -190
- package/dist/{RadioGroup-DFKMlNWO.js → RadioGroup-D-Cq8SmM.js} +3 -3
- package/dist/{RadioGroup-Cvnwt4JE.cjs → RadioGroup-Dyf8fKum.cjs} +1 -1
- package/dist/{Select-CpNF3a57.js → Select-Bx0yVOZE.js} +641 -607
- package/dist/Select-CRVPbesC.cjs +3 -0
- package/dist/{Stack-CIyfgZCM.cjs → Stack-COmIqMxy.cjs} +1 -1
- package/dist/{Stack-DSJ2DqNd.js → Stack-CbK4a2n5.js} +5 -5
- package/dist/{Stepper-CXHfLPtA.cjs → Stepper-CWq9t5jy.cjs} +1 -1
- package/dist/{Stepper-DE2l91K0.js → Stepper-DU9nixCp.js} +6 -6
- package/dist/{Switch-BIcwDf_P.js → Switch-Bm3Gclye.js} +102 -99
- package/dist/Switch-kHZOqjeU.cjs +1 -0
- package/dist/{SwitchBase-DZV8S81Z.js → SwitchBase-9CKmTWdZ.js} +47 -44
- package/dist/SwitchBase-Hbqxtooi.cjs +1 -0
- package/dist/{Tab-Ckr6Bn59.js → Tab-DBCv1T9W.js} +58 -58
- package/dist/{Tab-r5imbU9z.cjs → Tab-DnxFjc89.cjs} +1 -1
- package/dist/{TextField-Brw3X9cn.cjs → TextField-BhdmUny-.cjs} +1 -1
- package/dist/{TextField-BenBw4oE.js → TextField-V-EQ80Y6.js} +6 -6
- package/dist/ToggleButtonGroup-B2FBwoDV.cjs +138 -0
- package/dist/{ToggleButtonGroup-DhtAoGtM.js → ToggleButtonGroup-_UpIjysl.js} +1567 -1537
- package/dist/{Tooltip-KkgNQm4r.js → Tooltip-DKHOTDh0.js} +81 -81
- package/dist/{Tooltip-BAOKe3SY.cjs → Tooltip-DYTDIzp4.cjs} +3 -3
- package/dist/{Typography-CSTmKyr8.cjs → Typography-BvRUTdLD.cjs} +1 -1
- package/dist/{Typography-Dy8r_tT2.js → Typography-o0iALAVg.js} +4 -4
- package/dist/components/ActionBar/ActionBar.cjs.js +1 -0
- package/dist/components/ActionBar/ActionBar.d.ts +3 -0
- package/dist/components/ActionBar/ActionBar.es.js +63 -0
- package/dist/components/ActionBar/index.cjs.js +1 -0
- package/dist/components/ActionBar/index.d.ts +2 -0
- package/dist/components/ActionBar/index.es.js +4 -0
- package/dist/components/ActionBar/style.cjs.js +1 -0
- package/dist/components/ActionBar/style.es.js +61 -0
- package/dist/components/ActionBar/types.cjs.js +1 -0
- package/dist/components/ActionBar/types.d.ts +17 -0
- package/dist/components/ActionBar/types.es.js +1 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +4 -4
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +3 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.es.js +22 -20
- 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 +2 -2
- package/dist/components/TreeView/TreeView.es.js +39 -39
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/types.d.ts +1 -0
- 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 +2 -1
- package/dist/components/index.es.js +302 -300
- package/dist/components/stories/ActionBar.stories.cjs.js +1 -0
- package/dist/components/stories/ActionBar.stories.d.ts +11 -0
- package/dist/components/stories/ActionBar.stories.es.js +206 -0
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Badge.stories.cjs.js +1 -1
- package/dist/components/stories/Badge.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.cjs.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/Stepper.stories.cjs.js +1 -1
- package/dist/components/stories/Stepper.stories.es.js +4 -4
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +1 -1
- package/dist/components/stories/TreeView.stories.es.js +12 -12
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-IET9soda.cjs → createSvgIcon-BJRigbha.cjs} +1 -1
- package/dist/{createSvgIcon-B1E6Wo8z.js → createSvgIcon-BV54rC7k.js} +3 -3
- package/dist/{dividerClasses-C07OJKLL.cjs → dividerClasses-CbwbHy8r.cjs} +1 -1
- package/dist/{dividerClasses-BPJZ8SFy.js → dividerClasses-DDXs86hs.js} +1 -1
- package/dist/{extendSxProp-ZMCunXYm.cjs → extendSxProp-CxMSlckP.cjs} +1 -1
- package/dist/{extendSxProp-CesAxox9.js → extendSxProp-XouBF-Ct.js} +1 -1
- package/dist/identifier-DBvccNCw.cjs +55 -0
- package/dist/identifier-Dnc8T93Z.js +2673 -0
- package/dist/{index-8G2jvqZ8.js → index-9te7SXrs.js} +47 -41
- package/dist/index-BkNQtUZJ.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +302 -300
- package/dist/{listItemTextClasses-B5VhLd9W.js → listItemTextClasses-4p_83pwn.js} +1 -1
- package/dist/{listItemTextClasses-CJDKfXvl.cjs → listItemTextClasses-Cxo4anAo.cjs} +1 -1
- package/dist/{memoTheme-BKfsJx_F.cjs → memoTheme-Dv-rDqFz.cjs} +1 -1
- package/dist/{memoTheme-DAFDflPY.js → memoTheme-K37vidlb.js} +1 -1
- package/dist/{mergeSlotProps-DXwOW3FE.cjs → mergeSlotProps-CXO1f70l.cjs} +1 -1
- package/dist/{mergeSlotProps-ChAye7iz.js → mergeSlotProps-DSWiBSbD.js} +1 -1
- package/dist/styled-B7pKW9DQ.cjs +1 -0
- package/dist/styled-JnAdiSL5.js +5 -0
- package/dist/{useSlot-BzdKwDQ5.js → useSlot-GooGQrej.js} +1 -1
- package/dist/{useSlot-C2FjoUpF.cjs → useSlot-ONna5RyM.cjs} +1 -1
- package/dist/{useSlotProps-DdMuGelR.js → useSlotProps-C34Wr67s.js} +1 -1
- package/dist/{useSlotProps-CrQGQLdL.cjs → useSlotProps-CtYqUyy1.cjs} +1 -1
- package/dist/{useTheme-XJ9sFCWX.js → useTheme-CH7DA5fq.js} +3 -3
- package/dist/{useTheme-BLMJDSsv.cjs → useTheme-D6wPRo0G.cjs} +1 -1
- package/dist/{useTheme-CooC_6Ep.cjs → useTheme-DkiCyF-9.cjs} +1 -1
- package/dist/{useTheme--i9fxE_A.js → useTheme-VH02z7nF.js} +1 -1
- package/dist/{useThemeProps-B9E_wuN9.cjs → useThemeProps-BU5PNyhK.cjs} +1 -1
- package/dist/useThemeProps-CnZ-QgwI.cjs +1 -0
- package/dist/useThemeProps-DT4QxdFn.js +17 -0
- package/dist/{useThemeProps-B4VFkcP0.js → useThemeProps-DZ05-54P.js} +2 -2
- package/package.json +7 -7
- package/dist/Autocomplete-BdPO9SAd.cjs +0 -6
- package/dist/Backdrop-DeNTZlA5.cjs +0 -1
- package/dist/Button-DyJV5llI.cjs +0 -1
- package/dist/Checkbox-3hTSv0EZ.cjs +0 -1
- package/dist/Chip-BG0OU0KI.cjs +0 -1
- package/dist/Chip-DmjZbx_X.js +0 -572
- package/dist/DatePicker-CH8XRum0.cjs +0 -16
- package/dist/DefaultPropsProvider-Cnf49AIv.cjs +0 -1
- package/dist/DefaultPropsProvider-DqazQPtr.js +0 -306
- package/dist/Dialog-Btagj_Gt.cjs +0 -1
- package/dist/Divider-NermA5hZ.cjs +0 -1
- package/dist/IconButton-CjtMjZ9e.cjs +0 -2
- package/dist/Link-BwbY60dS.cjs +0 -1
- package/dist/ListItemText-cVnimPLO.cjs +0 -1
- package/dist/MenuItem-DHM3qxwr.cjs +0 -1
- package/dist/Radio-Bwh_t6PC.cjs +0 -1
- package/dist/Select-3HP39Z7o.cjs +0 -3
- package/dist/Switch-CTEqKDiv.cjs +0 -1
- package/dist/SwitchBase-P3zHVmLX.cjs +0 -1
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +0 -138
- package/dist/identifier-BoZelETM.cjs +0 -55
- package/dist/identifier-PWESmBq6.js +0 -2598
- package/dist/index-D3lMWU76.cjs +0 -1
- package/dist/styled-C7gyRDlj.js +0 -5
- package/dist/styled-Cax0O00h.cjs +0 -1
- package/dist/useThemeProps-C1A3rnbh.cjs +0 -1
- package/dist/useThemeProps-CQ9rZe7g.js +0 -17
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Z as fe, G as de, F as me, H as he } from "./identifier-Dnc8T93Z.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-nxIPd34m.js";
|
|
6
|
+
import { u as B } from "./useSlot-GooGQrej.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-C34Wr67s.js";
|
|
9
9
|
import { i as Ne } from "./isHostComponent-kiaBvYVo.js";
|
|
10
|
-
import { P as Fe } from "./Paper-
|
|
10
|
+
import { P as Fe } from "./Paper-BylmTlAJ.js";
|
|
11
11
|
import { o as ee } from "./ownerDocument-CUrv0DIK.js";
|
|
12
12
|
import { o as oe } from "./ownerWindow-niciwP7I.js";
|
|
13
13
|
import { d as Ie } from "./debounce-46wSf_lW.js";
|
|
14
|
-
import { G as je } from "./Grow-
|
|
15
|
-
import { m as Le } from "./mergeSlotProps-
|
|
16
|
-
import { b as ze, M as Ke } from "./Modal-
|
|
14
|
+
import { G as je } from "./Grow-DE5x7F5S.js";
|
|
15
|
+
import { m as Le } from "./mergeSlotProps-DSWiBSbD.js";
|
|
16
|
+
import { b as ze, M as Ke } from "./Modal-Du5LfkZg.js";
|
|
17
17
|
import { i as He } from "./integerPropType-BihGt2aU.js";
|
|
18
18
|
import { c as Ue } from "./chainPropTypes-D9lkm76m.js";
|
|
19
19
|
import { r as Ve } from "./refType-Dp7CJc86.js";
|
|
@@ -21,8 +21,8 @@ import { e as Ae } from "./elementTypeAcceptingRef-DOeckaXy.js";
|
|
|
21
21
|
import { H as te } from "./Portal-BlK6ttxt.js";
|
|
22
22
|
import { u as _e } from "./useEventCallback-Y2KwRxBw.js";
|
|
23
23
|
import { u as We } from "./useForkRef-u29GSuCu.js";
|
|
24
|
-
import { L as qe } from "./List-
|
|
25
|
-
function
|
|
24
|
+
import { L as qe } from "./List-DZkddOsr.js";
|
|
25
|
+
function Q(o, t, n) {
|
|
26
26
|
return o === t ? o.firstChild : t && t.nextElementSibling ? t.nextElementSibling : n ? null : o.firstChild;
|
|
27
27
|
}
|
|
28
28
|
function le(o, t, n) {
|
|
@@ -92,18 +92,18 @@ const Pe = /* @__PURE__ */ u.forwardRef(function(t, n) {
|
|
|
92
92
|
}
|
|
93
93
|
const D = ee(l).activeElement;
|
|
94
94
|
if (p === "ArrowDown")
|
|
95
|
-
r.preventDefault(), q(l, D, R, b,
|
|
95
|
+
r.preventDefault(), q(l, D, R, b, Q);
|
|
96
96
|
else if (p === "ArrowUp")
|
|
97
97
|
r.preventDefault(), q(l, D, R, b, le);
|
|
98
98
|
else if (p === "Home")
|
|
99
|
-
r.preventDefault(), q(l, null, R, b,
|
|
99
|
+
r.preventDefault(), q(l, null, R, b, Q);
|
|
100
100
|
else if (p === "End")
|
|
101
101
|
r.preventDefault(), q(l, null, R, b, le);
|
|
102
102
|
else if (p.length === 1) {
|
|
103
103
|
const c = P.current, C = p.toLowerCase(), z = performance.now();
|
|
104
104
|
c.keys.length > 0 && (z - c.lastTime > 500 ? (c.keys = [], c.repeating = !0, c.previousKeyMatched = !0) : c.repeating && C !== c.keys[0] && (c.repeating = !1)), c.lastTime = z, c.keys.push(C);
|
|
105
105
|
const N = D && !c.repeating && ge(D, c);
|
|
106
|
-
c.previousKeyMatched && (N || q(l, D, !1, b,
|
|
106
|
+
c.previousKeyMatched && (N || q(l, D, !1, b, Q, c)) ? r.preventDefault() : c.previousKeyMatched = !1;
|
|
107
107
|
}
|
|
108
108
|
x && x(r);
|
|
109
109
|
}, F = We(a, n);
|
|
@@ -316,7 +316,7 @@ const Be = (o) => {
|
|
|
316
316
|
left: `${Math.round(V)}px`,
|
|
317
317
|
transformOrigin: ue(h)
|
|
318
318
|
};
|
|
319
|
-
}, [y, b, N, I, a]), [
|
|
319
|
+
}, [y, b, N, I, a]), [Z, X] = u.useState(P), M = u.useCallback(() => {
|
|
320
320
|
const s = c.current;
|
|
321
321
|
if (!s)
|
|
322
322
|
return;
|
|
@@ -324,7 +324,7 @@ const Be = (o) => {
|
|
|
324
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
325
|
}, [Y]);
|
|
326
326
|
u.useEffect(() => (O && window.addEventListener("scroll", M), () => window.removeEventListener("scroll", M)), [y, O, M]);
|
|
327
|
-
const
|
|
327
|
+
const J = () => {
|
|
328
328
|
M();
|
|
329
329
|
}, j = () => {
|
|
330
330
|
X(!1);
|
|
@@ -364,7 +364,7 @@ const Be = (o) => {
|
|
|
364
364
|
...s,
|
|
365
365
|
onEntering: (d, h) => {
|
|
366
366
|
var S;
|
|
367
|
-
(S = s.onEntering) == null || S.call(s, d, h),
|
|
367
|
+
(S = s.onEntering) == null || S.call(s, d, h), J();
|
|
368
368
|
},
|
|
369
369
|
onExited: (d) => {
|
|
370
370
|
var h;
|
|
@@ -411,7 +411,7 @@ const Be = (o) => {
|
|
|
411
411
|
shouldForwardComponentProp: !0,
|
|
412
412
|
additionalProps: {
|
|
413
413
|
elevation: K,
|
|
414
|
-
style:
|
|
414
|
+
style: Z ? void 0 : {
|
|
415
415
|
opacity: 0
|
|
416
416
|
}
|
|
417
417
|
},
|
|
@@ -639,10 +639,10 @@ function Ye(o) {
|
|
|
639
639
|
const Co = me("MuiMenu", ["root", "paper", "list"]), Xe = {
|
|
640
640
|
vertical: "top",
|
|
641
641
|
horizontal: "right"
|
|
642
|
-
},
|
|
642
|
+
}, Ze = {
|
|
643
643
|
vertical: "top",
|
|
644
644
|
horizontal: "left"
|
|
645
|
-
},
|
|
645
|
+
}, Je = (o) => {
|
|
646
646
|
const {
|
|
647
647
|
classes: t
|
|
648
648
|
} = o;
|
|
@@ -651,7 +651,7 @@ const Co = me("MuiMenu", ["root", "paper", "list"]), Xe = {
|
|
|
651
651
|
paper: ["paper"],
|
|
652
652
|
list: ["list"]
|
|
653
653
|
}, Ye, t);
|
|
654
|
-
},
|
|
654
|
+
}, Qe = G(ve, {
|
|
655
655
|
shouldForwardProp: (o) => xe(o) || o === "classes",
|
|
656
656
|
name: "MuiMenu",
|
|
657
657
|
slot: "Root"
|
|
@@ -704,7 +704,7 @@ const Co = me("MuiMenu", ["root", "paper", "list"]), Xe = {
|
|
|
704
704
|
transitionDuration: a,
|
|
705
705
|
TransitionProps: H,
|
|
706
706
|
variant: F
|
|
707
|
-
}, O =
|
|
707
|
+
}, O = Je(p), D = E && !m && x, c = u.useRef(null), C = (f, T) => {
|
|
708
708
|
c.current && c.current.adjustStyleForScrollbar(f, {
|
|
709
709
|
direction: l ? "rtl" : "ltr"
|
|
710
710
|
}), P && P(f, T);
|
|
@@ -729,13 +729,13 @@ const Co = me("MuiMenu", ["root", "paper", "list"]), Xe = {
|
|
|
729
729
|
externalSlotProps: v.root,
|
|
730
730
|
ownerState: p,
|
|
731
731
|
className: [O.root, g]
|
|
732
|
-
}), [
|
|
732
|
+
}), [Z, X] = B("paper", {
|
|
733
733
|
className: O.paper,
|
|
734
734
|
elementType: eo,
|
|
735
735
|
externalForwardedProps: I,
|
|
736
736
|
shouldForwardComponentProp: !0,
|
|
737
737
|
ownerState: p
|
|
738
|
-
}), [M,
|
|
738
|
+
}), [M, J] = B("list", {
|
|
739
739
|
className: he(O.list, b.className),
|
|
740
740
|
elementType: oo,
|
|
741
741
|
shouldForwardComponentProp: !0,
|
|
@@ -749,16 +749,16 @@ const Co = me("MuiMenu", ["root", "paper", "list"]), Xe = {
|
|
|
749
749
|
}),
|
|
750
750
|
ownerState: p
|
|
751
751
|
}), j = typeof I.slotProps.transition == "function" ? I.slotProps.transition(p) : I.slotProps.transition;
|
|
752
|
-
return /* @__PURE__ */ A(
|
|
752
|
+
return /* @__PURE__ */ A(Qe, {
|
|
753
753
|
onClose: R,
|
|
754
754
|
anchorOrigin: {
|
|
755
755
|
vertical: "bottom",
|
|
756
756
|
horizontal: l ? "right" : "left"
|
|
757
757
|
},
|
|
758
|
-
transformOrigin: l ? Xe :
|
|
758
|
+
transformOrigin: l ? Xe : Ze,
|
|
759
759
|
slots: {
|
|
760
760
|
root: i.root,
|
|
761
|
-
paper:
|
|
761
|
+
paper: Z,
|
|
762
762
|
backdrop: i.backdrop,
|
|
763
763
|
...i.transition && {
|
|
764
764
|
// TODO: pass `slots.transition` directly once `TransitionComponent` is removed from Popover
|
|
@@ -788,7 +788,7 @@ const Co = me("MuiMenu", ["root", "paper", "list"]), Xe = {
|
|
|
788
788
|
autoFocus: E && (N === -1 || m),
|
|
789
789
|
autoFocusItem: D,
|
|
790
790
|
variant: F,
|
|
791
|
-
...
|
|
791
|
+
...J,
|
|
792
792
|
children: y
|
|
793
793
|
})
|
|
794
794
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Se=require("react"),L=require("./identifier-
|
|
1
|
+
"use strict";const Se=require("react"),L=require("./identifier-DBvccNCw.cjs"),e=require("./index-DLnSn8GT.cjs"),Re=require("./index-CrINMjCH.cjs"),k=require("./DefaultPropsProvider-BFTLy05-.cjs"),Y=require("./useSlot-ONna5RyM.cjs"),V=require("react/jsx-runtime"),xe=require("./useSlotProps-CtYqUyy1.cjs"),ke=require("./isHostComponent-PydJW4A4.cjs"),De=require("./Paper-DgHGh6vt.cjs"),oe=require("./ownerDocument-4MViGo3k.cjs"),te=require("./ownerWindow-DDHucZi0.cjs"),je=require("./debounce-DpCj7ugL.cjs"),Ne=require("./Grow-ovNT7Sot.cjs"),Ie=require("./mergeSlotProps-CXO1f70l.cjs"),ye=require("./Modal-CdcolE0C.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-E_TAQ1jJ.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
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
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
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(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const w=require("react"),s=require("./index-DLnSn8GT.cjs"),a=require("./identifier-DBvccNCw.cjs"),d=require("./DefaultPropsProvider-BFTLy05-.cjs"),L=require("./memoTheme-Dv-rDqFz.cjs"),T=require("./List-E_TAQ1jJ.cjs"),P=require("react/jsx-runtime"),S=require("./useEventCallback-BxpcFap0.cjs"),B=require("./useForkRef-CFhhTu-Q.cjs"),V=require("./ButtonBase-DPIkh47Q.cjs"),x=require("./listItemTextClasses-Cxo4anAo.cjs"),M=require("./dividerClasses-CbwbHy8r.cjs");function D(e){const t=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(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const p=D(w);function E(e){return a.generateUtilityClass("MuiListItemIcon",e)}const g=a.generateUtilityClasses("MuiListItemIcon",["root","alignItemsFlexStart"]);function O(e){return a.generateUtilityClass("MuiMenuItem",e)}const n=a.generateUtilityClasses("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),F=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]},G=e=>{const{disabled:t,dense:o,divider:r,disableGutters:c,selected:u,classes:i}=e,b={root:["root",o&&"dense",t&&"disabled",!c&&"gutters",r&&"divider",u&&"selected"]},l=d.composeClasses(b,O,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.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${n.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${n.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${n.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${n.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${M.dividerClasses.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${M.dividerClasses.inset}`]:{marginLeft:52},[`& .${x.listItemTextClasses.root}`]:{marginTop:0,marginBottom:0},[`& .${x.listItemTextClasses.inset}`]:{paddingLeft:36},[`& .${g.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${g.root} svg`]:{fontSize:"1.25rem"}}}]}))),$=p.forwardRef(function(t,o){const r=d.useDefaultProps({props:t,name:"MuiMenuItem"}),{autoFocus:c=!1,component:u="li",dense:i=!1,divider:b=!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]),y=p.useRef(null);S.useEnhancedEffect(()=>{c&&(y.current?y.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:b,disableGutters:l},f=G(r),U=B.useForkRef(y,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"&&($.propTypes={autoFocus:s.PropTypes.bool,children:s.PropTypes.node,classes:s.PropTypes.object,className:s.PropTypes.string,component:s.PropTypes.elementType,dense:s.PropTypes.bool,disabled:s.PropTypes.bool,disableGutters:s.PropTypes.bool,divider:s.PropTypes.bool,focusVisibleClassName:s.PropTypes.string,role:s.PropTypes.string,selected:s.PropTypes.bool,sx:s.PropTypes.oneOfType([s.PropTypes.arrayOf(s.PropTypes.oneOfType([s.PropTypes.func,s.PropTypes.object,s.PropTypes.bool])),s.PropTypes.func,s.PropTypes.object]),tabIndex:s.PropTypes.number});exports.MenuItem=$;exports.getListItemIconUtilityClass=E;exports.getMenuItemUtilityClass=O;exports.listItemIconClasses=g;exports.menuItemClasses=n;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { P as
|
|
3
|
-
import { F as
|
|
4
|
-
import { u as
|
|
5
|
-
import { m as
|
|
6
|
-
import { a as I } from "./List-
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { B as
|
|
11
|
-
import { l as
|
|
12
|
-
import { d as M } from "./dividerClasses-
|
|
1
|
+
import * as d from "react";
|
|
2
|
+
import { P as o } from "./index-Sy88PpwE.js";
|
|
3
|
+
import { F as O, G as T, H as y } from "./identifier-Dnc8T93Z.js";
|
|
4
|
+
import { u as S, s as F, c as L, r as P } from "./DefaultPropsProvider-nxIPd34m.js";
|
|
5
|
+
import { m as U } from "./memoTheme-K37vidlb.js";
|
|
6
|
+
import { a as I } from "./List-DZkddOsr.js";
|
|
7
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
8
|
+
import { u as E } from "./useEventCallback-Y2KwRxBw.js";
|
|
9
|
+
import { u as G } from "./useForkRef-u29GSuCu.js";
|
|
10
|
+
import { B as j } from "./ButtonBase-CJYV8wgs.js";
|
|
11
|
+
import { l as x } from "./listItemTextClasses-4p_83pwn.js";
|
|
12
|
+
import { d as M } from "./dividerClasses-DDXs86hs.js";
|
|
13
13
|
function se(e) {
|
|
14
|
-
return
|
|
14
|
+
return T("MuiListItemIcon", e);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
17
|
-
function
|
|
18
|
-
return
|
|
16
|
+
const $ = O("MuiListItemIcon", ["root", "alignItemsFlexStart"]);
|
|
17
|
+
function D(e) {
|
|
18
|
+
return T("MuiMenuItem", e);
|
|
19
19
|
}
|
|
20
|
-
const i =
|
|
20
|
+
const i = O("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divider", "gutters", "selected"]), H = (e, s) => {
|
|
21
21
|
const {
|
|
22
|
-
ownerState:
|
|
22
|
+
ownerState: t
|
|
23
23
|
} = e;
|
|
24
|
-
return [
|
|
25
|
-
},
|
|
24
|
+
return [s.root, t.dense && s.dense, t.divider && s.divider, !t.disableGutters && s.gutters];
|
|
25
|
+
}, z = (e) => {
|
|
26
26
|
const {
|
|
27
|
-
disabled:
|
|
28
|
-
dense:
|
|
27
|
+
disabled: s,
|
|
28
|
+
dense: t,
|
|
29
29
|
divider: a,
|
|
30
30
|
disableGutters: l,
|
|
31
|
-
selected:
|
|
31
|
+
selected: c,
|
|
32
32
|
classes: r
|
|
33
|
-
} = e, n =
|
|
34
|
-
root: ["root",
|
|
35
|
-
},
|
|
33
|
+
} = e, n = L({
|
|
34
|
+
root: ["root", t && "dense", s && "disabled", !l && "gutters", a && "divider", c && "selected"]
|
|
35
|
+
}, D, r);
|
|
36
36
|
return {
|
|
37
37
|
...r,
|
|
38
38
|
...n
|
|
39
39
|
};
|
|
40
|
-
},
|
|
41
|
-
shouldForwardProp: (e) =>
|
|
40
|
+
}, _ = F(j, {
|
|
41
|
+
shouldForwardProp: (e) => P(e) || e === "classes",
|
|
42
42
|
name: "MuiMenuItem",
|
|
43
43
|
slot: "Root",
|
|
44
|
-
overridesResolver:
|
|
45
|
-
})(
|
|
44
|
+
overridesResolver: H
|
|
45
|
+
})(U(({
|
|
46
46
|
theme: e
|
|
47
47
|
}) => ({
|
|
48
48
|
...e.typography.body1,
|
|
@@ -65,16 +65,16 @@ const i = T("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
[`&.${i.selected}`]: {
|
|
68
|
-
backgroundColor: e.
|
|
68
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity),
|
|
69
69
|
[`&.${i.focusVisible}`]: {
|
|
70
|
-
backgroundColor: e.vars
|
|
70
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`)
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
[`&.${i.selected}:hover`]: {
|
|
74
|
-
backgroundColor: e.vars
|
|
74
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
|
|
75
75
|
// Reset on touch devices, it doesn't add specificity
|
|
76
76
|
"@media (hover: none)": {
|
|
77
|
-
backgroundColor: e.
|
|
77
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity)
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
[`&.${i.focusVisible}`]: {
|
|
@@ -90,36 +90,36 @@ const i = T("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
90
90
|
[`& + .${M.inset}`]: {
|
|
91
91
|
marginLeft: 52
|
|
92
92
|
},
|
|
93
|
-
[`& .${
|
|
93
|
+
[`& .${x.root}`]: {
|
|
94
94
|
marginTop: 0,
|
|
95
95
|
marginBottom: 0
|
|
96
96
|
},
|
|
97
|
-
[`& .${
|
|
97
|
+
[`& .${x.inset}`]: {
|
|
98
98
|
paddingLeft: 36
|
|
99
99
|
},
|
|
100
|
-
[`& .${
|
|
100
|
+
[`& .${$.root}`]: {
|
|
101
101
|
minWidth: 36
|
|
102
102
|
},
|
|
103
103
|
variants: [{
|
|
104
104
|
props: ({
|
|
105
|
-
ownerState:
|
|
106
|
-
}) => !
|
|
105
|
+
ownerState: s
|
|
106
|
+
}) => !s.disableGutters,
|
|
107
107
|
style: {
|
|
108
108
|
paddingLeft: 16,
|
|
109
109
|
paddingRight: 16
|
|
110
110
|
}
|
|
111
111
|
}, {
|
|
112
112
|
props: ({
|
|
113
|
-
ownerState:
|
|
114
|
-
}) =>
|
|
113
|
+
ownerState: s
|
|
114
|
+
}) => s.divider,
|
|
115
115
|
style: {
|
|
116
116
|
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
117
117
|
backgroundClip: "padding-box"
|
|
118
118
|
}
|
|
119
119
|
}, {
|
|
120
120
|
props: ({
|
|
121
|
-
ownerState:
|
|
122
|
-
}) => !
|
|
121
|
+
ownerState: s
|
|
122
|
+
}) => !s.dense,
|
|
123
123
|
style: {
|
|
124
124
|
[e.breakpoints.up("sm")]: {
|
|
125
125
|
minHeight: "auto"
|
|
@@ -127,64 +127,64 @@ const i = T("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divide
|
|
|
127
127
|
}
|
|
128
128
|
}, {
|
|
129
129
|
props: ({
|
|
130
|
-
ownerState:
|
|
131
|
-
}) =>
|
|
130
|
+
ownerState: s
|
|
131
|
+
}) => s.dense,
|
|
132
132
|
style: {
|
|
133
133
|
minHeight: 32,
|
|
134
134
|
// https://m2.material.io/components/menus#specs > Dense
|
|
135
135
|
paddingTop: 4,
|
|
136
136
|
paddingBottom: 4,
|
|
137
137
|
...e.typography.body2,
|
|
138
|
-
[`& .${
|
|
138
|
+
[`& .${$.root} svg`]: {
|
|
139
139
|
fontSize: "1.25rem"
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}]
|
|
143
|
-
}))),
|
|
144
|
-
const a =
|
|
145
|
-
props:
|
|
143
|
+
}))), W = /* @__PURE__ */ d.forwardRef(function(s, t) {
|
|
144
|
+
const a = S({
|
|
145
|
+
props: s,
|
|
146
146
|
name: "MuiMenuItem"
|
|
147
147
|
}), {
|
|
148
148
|
autoFocus: l = !1,
|
|
149
|
-
component:
|
|
149
|
+
component: c = "li",
|
|
150
150
|
dense: r = !1,
|
|
151
151
|
divider: f = !1,
|
|
152
152
|
disableGutters: n = !1,
|
|
153
|
-
focusVisibleClassName:
|
|
154
|
-
role:
|
|
155
|
-
tabIndex:
|
|
156
|
-
className:
|
|
157
|
-
...
|
|
158
|
-
} = a,
|
|
159
|
-
dense: r ||
|
|
153
|
+
focusVisibleClassName: k,
|
|
154
|
+
role: N = "menuitem",
|
|
155
|
+
tabIndex: m,
|
|
156
|
+
className: R,
|
|
157
|
+
...w
|
|
158
|
+
} = a, b = d.useContext(I), g = d.useMemo(() => ({
|
|
159
|
+
dense: r || b.dense || !1,
|
|
160
160
|
disableGutters: n
|
|
161
|
-
}), [
|
|
162
|
-
|
|
163
|
-
l && (
|
|
161
|
+
}), [b.dense, r, n]), p = d.useRef(null);
|
|
162
|
+
E(() => {
|
|
163
|
+
l && (p.current ? p.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
164
164
|
}, [l]);
|
|
165
|
-
const
|
|
165
|
+
const V = {
|
|
166
166
|
...a,
|
|
167
|
-
dense:
|
|
167
|
+
dense: g.dense,
|
|
168
168
|
divider: f,
|
|
169
169
|
disableGutters: n
|
|
170
|
-
},
|
|
171
|
-
let
|
|
172
|
-
return a.disabled || (
|
|
173
|
-
value:
|
|
174
|
-
children: /* @__PURE__ */
|
|
175
|
-
ref:
|
|
176
|
-
role:
|
|
177
|
-
tabIndex:
|
|
178
|
-
component:
|
|
179
|
-
focusVisibleClassName:
|
|
180
|
-
className:
|
|
181
|
-
...
|
|
182
|
-
ownerState:
|
|
183
|
-
classes:
|
|
170
|
+
}, u = z(a), B = G(p, t);
|
|
171
|
+
let v;
|
|
172
|
+
return a.disabled || (v = m !== void 0 ? m : -1), /* @__PURE__ */ C(I.Provider, {
|
|
173
|
+
value: g,
|
|
174
|
+
children: /* @__PURE__ */ C(_, {
|
|
175
|
+
ref: B,
|
|
176
|
+
role: N,
|
|
177
|
+
tabIndex: v,
|
|
178
|
+
component: c,
|
|
179
|
+
focusVisibleClassName: y(u.focusVisible, k),
|
|
180
|
+
className: y(u.root, R),
|
|
181
|
+
...w,
|
|
182
|
+
ownerState: V,
|
|
183
|
+
classes: u
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
|
-
process.env.NODE_ENV !== "production" && (
|
|
187
|
+
process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
188
188
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
189
189
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
190
190
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -194,44 +194,44 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
194
194
|
* Focus will also be triggered if the value changes from false to true.
|
|
195
195
|
* @default false
|
|
196
196
|
*/
|
|
197
|
-
autoFocus:
|
|
197
|
+
autoFocus: o.bool,
|
|
198
198
|
/**
|
|
199
199
|
* The content of the component.
|
|
200
200
|
*/
|
|
201
|
-
children:
|
|
201
|
+
children: o.node,
|
|
202
202
|
/**
|
|
203
203
|
* Override or extend the styles applied to the component.
|
|
204
204
|
*/
|
|
205
|
-
classes:
|
|
205
|
+
classes: o.object,
|
|
206
206
|
/**
|
|
207
207
|
* @ignore
|
|
208
208
|
*/
|
|
209
|
-
className:
|
|
209
|
+
className: o.string,
|
|
210
210
|
/**
|
|
211
211
|
* The component used for the root node.
|
|
212
212
|
* Either a string to use a HTML element or a component.
|
|
213
213
|
*/
|
|
214
|
-
component:
|
|
214
|
+
component: o.elementType,
|
|
215
215
|
/**
|
|
216
216
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
217
217
|
* The prop defaults to the value inherited from the parent Menu component.
|
|
218
218
|
* @default false
|
|
219
219
|
*/
|
|
220
|
-
dense:
|
|
220
|
+
dense: o.bool,
|
|
221
221
|
/**
|
|
222
222
|
* @ignore
|
|
223
223
|
*/
|
|
224
|
-
disabled:
|
|
224
|
+
disabled: o.bool,
|
|
225
225
|
/**
|
|
226
226
|
* If `true`, the left and right padding is removed.
|
|
227
227
|
* @default false
|
|
228
228
|
*/
|
|
229
|
-
disableGutters:
|
|
229
|
+
disableGutters: o.bool,
|
|
230
230
|
/**
|
|
231
231
|
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
232
232
|
* @default false
|
|
233
233
|
*/
|
|
234
|
-
divider:
|
|
234
|
+
divider: o.bool,
|
|
235
235
|
/**
|
|
236
236
|
* This prop can help identify which element has keyboard focus.
|
|
237
237
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -240,29 +240,29 @@ process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
|
240
240
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
241
241
|
* if needed.
|
|
242
242
|
*/
|
|
243
|
-
focusVisibleClassName:
|
|
243
|
+
focusVisibleClassName: o.string,
|
|
244
244
|
/**
|
|
245
245
|
* @ignore
|
|
246
246
|
*/
|
|
247
|
-
role:
|
|
247
|
+
role: o.string,
|
|
248
248
|
/**
|
|
249
249
|
* If `true`, the component is selected.
|
|
250
250
|
* @default false
|
|
251
251
|
*/
|
|
252
|
-
selected:
|
|
252
|
+
selected: o.bool,
|
|
253
253
|
/**
|
|
254
254
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
255
255
|
*/
|
|
256
|
-
sx:
|
|
256
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
257
257
|
/**
|
|
258
258
|
* @default 0
|
|
259
259
|
*/
|
|
260
|
-
tabIndex:
|
|
260
|
+
tabIndex: o.number
|
|
261
261
|
});
|
|
262
262
|
export {
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
W as M,
|
|
264
|
+
D as a,
|
|
265
265
|
se as g,
|
|
266
|
-
|
|
266
|
+
$ as l,
|
|
267
267
|
i as m
|
|
268
268
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const he=require("react"),n=require("./index-DLnSn8GT.cjs"),_=require("./identifier-
|
|
1
|
+
"use strict";const he=require("react"),n=require("./index-DLnSn8GT.cjs"),_=require("./identifier-DBvccNCw.cjs"),Pe=require("./memoTheme-Dv-rDqFz.cjs"),V=require("./ownerWindow-DDHucZi0.cjs"),A=require("./ownerDocument-4MViGo3k.cjs"),ce=require("./useForkRef-CFhhTu-Q.cjs"),oe=require("./useEventCallback-BxpcFap0.cjs"),ne=require("./createChainedFunction-CJmlQuW8.cjs"),X=require("./useSlot-ONna5RyM.cjs"),F=require("react/jsx-runtime"),$=require("./DefaultPropsProvider-BFTLy05-.cjs"),J=require("./Portal-CPOCKeMh.cjs"),Q=require("./elementAcceptingRef-BZ42cOGO.cjs"),ge=require("./Backdrop-Dp1hKKfU.cjs");function Ee(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=Ee(he);function ae(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function xe(e){const t=A.ownerDocument(e);return t.body===e?V.ownerWindow(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function B(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function re(e){return parseInt(V.ownerWindow(e).getComputedStyle(e).paddingRight,10)||0}function Re(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function se(e,t,r,o,i){const s=[t,r,...o];[].forEach.call(e.children,c=>{const a=!s.includes(c),b=!Re(c);a&&b&&B(c,i)})}function G(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function ve(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(xe(o)){const c=ae(V.ownerWindow(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${re(o)+c}px`;const a=A.ownerDocument(o).querySelectorAll(".mui-fixed");[].forEach.call(a,b=>{r.push({value:b.style.paddingRight,property:"padding-right",el:b}),b.style.paddingRight=`${re(b)+c}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=A.ownerDocument(o).body;else{const c=o.parentElement,a=V.ownerWindow(o);s=(c==null?void 0:c.nodeName)==="HTML"&&a.getComputedStyle(c).overflowY==="scroll"?c:o}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:a})=>{s?c.style.setProperty(a,s):c.style.removeProperty(a)})}}function ke(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class le{constructor(){this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&B(t.modalRef,!1);const i=ke(r);se(r,t.mount,t.modalRef,i,!0);const s=G(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=G(this.containers,s=>s.modals.includes(t)),i=this.containers[o];i.restore||(i.restore=ve(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=G(this.containers,c=>c.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&B(t.modalRef,r),se(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&B(c.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const we=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ne(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Ie(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Se(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ie(e))}function Ce(e){const t=[],r=[];return Array.from(e.querySelectorAll(we)).forEach((o,i)=>{const s=Ne(o);s===-1||!Se(o)||(s===0?t.push(o):r.push({documentOrder:i,tabIndex:s,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function Fe(){return!0}function U(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:s=Ce,isEnabled:c=Fe,open:a}=e,b=u.useRef(!1),h=u.useRef(null),v=u.useRef(null),y=u.useRef(null),g=u.useRef(null),T=u.useRef(!1),f=u.useRef(null),M=ce.useForkRef(Q.getReactElementRef(t),f),N=u.useRef(null);u.useEffect(()=>{!a||!f.current||(T.current=!r)},[r,a]),u.useEffect(()=>{if(!a||!f.current)return;const l=A.ownerDocument(f.current);return f.current.contains(l.activeElement)||(f.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
2
2
|
`)),f.current.setAttribute("tabIndex","-1")),T.current&&f.current.focus()),()=>{i||(y.current&&y.current.focus&&(b.current=!0,y.current.focus()),y.current=null)}},[a]),u.useEffect(()=>{if(!a||!f.current)return;const l=A.ownerDocument(f.current),m=P=>{N.current=P,!(o||!c()||P.key!=="Tab")&&l.activeElement===f.current&&P.shiftKey&&(b.current=!0,v.current&&v.current.focus())},k=()=>{var E,O;const P=f.current;if(P===null)return;if(!l.hasFocus()||!c()||b.current){b.current=!1;return}if(P.contains(l.activeElement)||o&&l.activeElement!==h.current&&l.activeElement!==v.current)return;if(l.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!T.current)return;let S=[];if((l.activeElement===h.current||l.activeElement===v.current)&&(S=s(f.current)),S.length>0){const j=!!((E=N.current)!=null&&E.shiftKey&&((O=N.current)==null?void 0:O.key)==="Tab"),K=S[0],q=S[S.length-1];typeof K!="string"&&typeof q!="string"&&(j?q.focus():K.focus())}else P.focus()};l.addEventListener("focusin",k),l.addEventListener("keydown",m,!0);const D=setInterval(()=>{l.activeElement&&l.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(D),l.removeEventListener("focusin",k),l.removeEventListener("keydown",m,!0)}},[r,o,i,c,a,s]);const I=l=>{y.current===null&&(y.current=l.relatedTarget),T.current=!0,g.current=l.target;const m=t.props.onFocus;m&&m(l)},x=l=>{y.current===null&&(y.current=l.relatedTarget),T.current=!0};return F.jsxs(u.Fragment,{children:[F.jsx("div",{tabIndex:a?0:-1,onFocus:x,ref:h,"data-testid":"sentinelStart"}),u.cloneElement(t,{ref:M,onFocus:I}),F.jsx("div",{tabIndex:a?0:-1,onFocus:x,ref:v,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(U.propTypes={children:Q.elementAcceptingRef,disableAutoFocus:n.PropTypes.bool,disableEnforceFocus:n.PropTypes.bool,disableRestoreFocus:n.PropTypes.bool,getTabbable:n.PropTypes.func,isEnabled:n.PropTypes.func,open:n.PropTypes.bool.isRequired});process.env.NODE_ENV!=="production"&&(U.propTypes=J.exactProp(U.propTypes));function Me(e){return typeof e=="function"?e():e}function Oe(e){return e?e.props.hasOwnProperty("in"):!1}const ie=()=>{},z=new le;function Ae(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:c,children:a,onClose:b,open:h,rootRef:v}=e,y=u.useRef({}),g=u.useRef(null),T=u.useRef(null),f=ce.useForkRef(T,v),[M,N]=u.useState(!h),I=Oe(a);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const l=()=>A.ownerDocument(g.current),m=()=>(y.current.modalRef=T.current,y.current.mount=g.current,y.current),k=()=>{z.mount(m(),{disableScrollLock:o}),T.current&&(T.current.scrollTop=0)},D=oe.useEventCallback(()=>{const p=Me(t)||l().body;z.add(m(),p),T.current&&k()}),P=()=>z.isTopModal(m()),S=oe.useEventCallback(p=>{g.current=p,p&&(h&&P()?k():T.current&&B(T.current,x))}),E=u.useCallback(()=>{z.remove(m(),x)},[x]);u.useEffect(()=>()=>{E()},[E]),u.useEffect(()=>{h?D():(!I||!i)&&E()},[h,E,I,i,D]);const O=p=>d=>{var R;(R=p.onKeyDown)==null||R.call(p,d),!(d.key!=="Escape"||d.which===229||!P())&&(r||(d.stopPropagation(),b&&b(d,"escapeKeyDown")))},j=p=>d=>{var R;(R=p.onClick)==null||R.call(p,d),d.target===d.currentTarget&&b&&b(d,"backdropClick")};return{getRootProps:(p={})=>{const d=X.extractEventHandlers(e);delete d.onTransitionEnter,delete d.onTransitionExited;const R={...d,...p};return{role:"presentation",...R,onKeyDown:O(R),ref:f}},getBackdropProps:(p={})=>{const d=p;return{"aria-hidden":!0,...d,onClick:j(d),open:h}},getTransitionProps:()=>{const p=()=>{N(!1),s&&s()},d=()=>{N(!0),c&&c(),i&&E()};return{onEnter:ne.createChainedFunction(p,(a==null?void 0:a.props.onEnter)??ie),onExited:ne.createChainedFunction(d,(a==null?void 0:a.props.onExited)??ie)}},rootRef:f,portalRef:S,isTopModal:P,exited:M,hasTransition:I}}function ue(e){return _.generateUtilityClass("MuiModal",e)}const De=_.generateUtilityClasses("MuiModal",["root","hidden","backdrop"]),je=e=>{const{open:t,exited:r,classes:o}=e,i={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return $.composeClasses(i,ue,o)},qe=$.styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Pe.memoTheme(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Le=$.styled(ge.Backdrop,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),de=u.forwardRef(function(t,r){const o=$.useDefaultProps({name:"MuiModal",props:t}),{BackdropComponent:i=Le,BackdropProps:s,classes:c,className:a,closeAfterTransition:b=!1,children:h,container:v,component:y,components:g={},componentsProps:T={},disableAutoFocus:f=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:N=!1,disablePortal:I=!1,disableRestoreFocus:x=!1,disableScrollLock:l=!1,hideBackdrop:m=!1,keepMounted:k=!1,onClose:D,onTransitionEnter:P,onTransitionExited:S,open:E,slotProps:O={},slots:j={},theme:K,...q}=o,H={...o,closeAfterTransition:b,disableAutoFocus:f,disableEnforceFocus:M,disableEscapeKeyDown:N,disablePortal:I,disableRestoreFocus:x,disableScrollLock:l,hideBackdrop:m,keepMounted:k},{getRootProps:p,getBackdropProps:d,getTransitionProps:R,portalRef:pe,isTopModal:fe,exited:Z,hasTransition:ee}=Ae({...H,rootRef:r}),L={...H,exited:Z},w=je(L),W={};if(h.props.tabIndex===void 0&&(W.tabIndex="-1"),ee){const{onEnter:C,onExited:Y}=R();W.onEnter=C,W.onExited=Y}const te={slots:{root:g.Root,backdrop:g.Backdrop,...j},slotProps:{...T,...O}},[be,Te]=X.useSlot("root",{ref:r,elementType:qe,externalForwardedProps:{...te,...q,component:y},getSlotProps:p,ownerState:L,className:_.clsx(a,w==null?void 0:w.root,!L.open&&L.exited&&(w==null?void 0:w.hidden))}),[ye,me]=X.useSlot("backdrop",{ref:s==null?void 0:s.ref,elementType:i,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:C=>d({...C,onClick:Y=>{C!=null&&C.onClick&&C.onClick(Y)}}),className:_.clsx(s==null?void 0:s.className,w==null?void 0:w.backdrop),ownerState:L});return!k&&!E&&(!ee||Z)?null:F.jsx(J.Portal,{ref:pe,container:v,disablePortal:I,children:F.jsxs(be,{...Te,children:[!m&&i?F.jsx(ye,{...me}):null,F.jsx(U,{disableEnforceFocus:M,disableAutoFocus:f,disableRestoreFocus:x,isEnabled:fe,open:E,children:u.cloneElement(h,W)})]})})});process.env.NODE_ENV!=="production"&&(de.propTypes={BackdropComponent:n.PropTypes.elementType,BackdropProps:n.PropTypes.object,children:Q.elementAcceptingRef.isRequired,classes:n.PropTypes.object,className:n.PropTypes.string,closeAfterTransition:n.PropTypes.bool,component:n.PropTypes.elementType,components:n.PropTypes.shape({Backdrop:n.PropTypes.elementType,Root:n.PropTypes.elementType}),componentsProps:n.PropTypes.shape({backdrop:n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.object]),root:n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.object])}),container:n.PropTypes.oneOfType([J.HTMLElementType,n.PropTypes.func]),disableAutoFocus:n.PropTypes.bool,disableEnforceFocus:n.PropTypes.bool,disableEscapeKeyDown:n.PropTypes.bool,disablePortal:n.PropTypes.bool,disableRestoreFocus:n.PropTypes.bool,disableScrollLock:n.PropTypes.bool,hideBackdrop:n.PropTypes.bool,keepMounted:n.PropTypes.bool,onClose:n.PropTypes.func,onTransitionEnter:n.PropTypes.func,onTransitionExited:n.PropTypes.func,open:n.PropTypes.bool.isRequired,slotProps:n.PropTypes.shape({backdrop:n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.object]),root:n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.object])}),slots:n.PropTypes.shape({backdrop:n.PropTypes.elementType,root:n.PropTypes.elementType}),sx:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.object,n.PropTypes.bool])),n.PropTypes.func,n.PropTypes.object])});exports.FocusTrap=U;exports.Modal=de;exports.ModalManager=le;exports.getModalUtilityClass=ue;exports.getScrollbarSize=ae;exports.modalClasses=De;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
2
|
import { P as n } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as me, G as be, H as J } from "./identifier-
|
|
4
|
-
import { m as he } from "./memoTheme-
|
|
3
|
+
import { F as me, G as be, H as J } from "./identifier-Dnc8T93Z.js";
|
|
4
|
+
import { m as he } from "./memoTheme-K37vidlb.js";
|
|
5
5
|
import { o as H } from "./ownerWindow-niciwP7I.js";
|
|
6
6
|
import { o as O } from "./ownerDocument-CUrv0DIK.js";
|
|
7
7
|
import { u as re } from "./useForkRef-u29GSuCu.js";
|
|
8
8
|
import { a as Q } from "./useEventCallback-Y2KwRxBw.js";
|
|
9
9
|
import { c as Z } from "./createChainedFunction-C0nujS3O.js";
|
|
10
|
-
import { e as ge, u as ee } from "./useSlot-
|
|
10
|
+
import { e as ge, u as ee } from "./useSlot-GooGQrej.js";
|
|
11
11
|
import { jsxs as se, jsx as j } from "react/jsx-runtime";
|
|
12
|
-
import { u as Ee, s as ie, c as Te } from "./DefaultPropsProvider-
|
|
12
|
+
import { u as Ee, s as ie, c as Te } from "./DefaultPropsProvider-nxIPd34m.js";
|
|
13
13
|
import { e as ye, P as xe, H as Re } from "./Portal-BlK6ttxt.js";
|
|
14
14
|
import { g as Pe, e as ae } from "./elementAcceptingRef-CEweUuUA.js";
|
|
15
|
-
import { B as ve } from "./Backdrop-
|
|
15
|
+
import { B as ve } from "./Backdrop-DuOPKUSY.js";
|
|
16
16
|
function ke(e = window) {
|
|
17
17
|
const t = e.document.documentElement.clientWidth;
|
|
18
18
|
return e.innerWidth - t;
|