@cgi-learning-hub/ui 1.7.0-dev.1754301696 → 1.7.0-dev.1754384740
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-D7CiHM6d.js → Alert-6yOnGlLE.js} +6 -6
- package/dist/Alert-CWHOYWde.cjs +1 -0
- package/dist/Alert-D4-73fYc.cjs +1 -0
- package/dist/{Alert-kxWN2hw0.js → Alert-D6SQnjuJ.js} +83 -84
- package/dist/{Autocomplete-BfNqYbav.js → Autocomplete-B8u-WYi5.js} +690 -675
- package/dist/Autocomplete-BA6NkciB.cjs +6 -0
- package/dist/Backdrop-Dp1hKKfU.cjs +1 -0
- package/dist/{Backdrop-D7dPrxSb.js → Backdrop-DuOPKUSY.js} +36 -35
- package/dist/{Badge-DBzOcFK5.js → Badge-BJ4yH_Da.js} +9 -10
- package/dist/Badge-XMr4Ygjv.cjs +1 -0
- package/dist/Box-B5E7sstc.cjs +1 -0
- package/dist/{Box-CBqFcDTK.js → Box-BWETzF5p.js} +3 -3
- package/dist/Button-BJB830NI.cjs +1 -0
- package/dist/{Button-CdzT4uYI.js → Button-C8_HxKFe.js} +139 -173
- package/dist/{ButtonBase-C1FIHWcD.js → ButtonBase-CJYV8wgs.js} +2 -2
- package/dist/{ButtonBase-BOnOTx73.cjs → ButtonBase-DPIkh47Q.cjs} +1 -1
- package/dist/CardContent-H0z20SY7.cjs +1 -0
- package/dist/{CardContent-cbluqmUz.js → CardContent-V9JMSLmA.js} +3 -3
- package/dist/Checkbox-BZPMiwbF.cjs +1 -0
- package/dist/{Checkbox-CXMDqMmf.js → Checkbox-DMMz_IAP.js} +85 -86
- package/dist/Chip-BDVqkZZM.js +573 -0
- package/dist/Chip-DMBSp59F.cjs +1 -0
- package/dist/CircularProgress-BMVNeiSf.cjs +28 -0
- package/dist/{CircularProgress-ByBabaUG.js → CircularProgress-CrWnCGqN.js} +13 -14
- package/dist/{Close-NlNVwj8F.cjs → Close-2eEmvKPH.cjs} +1 -1
- package/dist/{Close-BjQCC0qE.js → Close-Cr2OT0GV.js} +1 -1
- package/dist/{CloseRounded-XK3z7Pzh.cjs → CloseRounded-B6cT7aGi.cjs} +1 -1
- package/dist/{CloseRounded-DHTxUBWk.js → CloseRounded-BrGeesu1.js} +1 -1
- package/dist/{CustomTreeItem-C1bfen5B.cjs → CustomTreeItem-BXgsWbl_.cjs} +1 -1
- package/dist/{CustomTreeItem-D-4kMx41.js → CustomTreeItem-DhB3ECa2.js} +12 -12
- package/dist/DatePicker-DtPvvFiK.cjs +16 -0
- package/dist/{DatePicker-DZrDegSu.js → DatePicker-ofISDY8Q.js} +2862 -2864
- package/dist/DefaultPropsProvider-BFTLy05-.cjs +1 -0
- package/dist/{DefaultPropsProvider-BrNsAtD3.js → DefaultPropsProvider-nxIPd34m.js} +23 -23
- package/dist/{Delete-jSTHS8bP.cjs → Delete-BF63Gpr-.cjs} +1 -1
- package/dist/{Delete-De1w6Wb0.js → Delete-CwWpjEOT.js} +1 -1
- package/dist/Dialog-Cymf3DJ2.cjs +1 -0
- package/dist/{Dialog-Cx__5cTV.js → Dialog-eK1zTFBm.js} +14 -15
- package/dist/{DialogContent-DrRkY205.js → DialogContent-BsPZJR2a.js} +3 -3
- package/dist/DialogContent-Gy1s3ela.cjs +1 -0
- package/dist/DialogTitle-BDyrzRXS.cjs +1 -0
- package/dist/{DialogTitle-CdH-pj3R.js → DialogTitle-CaAd59jN.js} +5 -5
- package/dist/Divider-BzdMIEJJ.cjs +1 -0
- package/dist/{Divider-BTDjUp2v.js → Divider-D_gbcyWE.js} +26 -26
- package/dist/{Folder-BdmrBiSE.js → Folder-COKXTjZ4.js} +1 -1
- package/dist/{Folder-Ry-DhShC.cjs → Folder-D0fZbyc-.cjs} +1 -1
- package/dist/FormLabel-BLySmpkL.cjs +2 -0
- package/dist/{FormLabel-BqkN_xxS.js → FormLabel-DmLckqyT.js} +15 -16
- package/dist/Grid-DFaRzlB4.cjs +2 -0
- package/dist/{Grid-Dal_bzkG.js → Grid-vM--ojbL.js} +74 -82
- package/dist/{Grow-BpiZp6xU.js → Grow-DE5x7F5S.js} +1 -1
- package/dist/{Grow-DPkmt9jI.cjs → Grow-ovNT7Sot.cjs} +1 -1
- package/dist/IconButton-DCQiOq7W.cjs +2 -0
- package/dist/{IconButton-BrEiwZs1.js → IconButton-f9EZgwvD.js} +66 -67
- package/dist/{InputAdornment-6pibWhBs.js → InputAdornment-B615VSjF.js} +14 -15
- package/dist/InputAdornment-BrrJ8chb.cjs +1 -0
- package/dist/{InputBase--Jk0Al5O.js → InputBase-BCbPPzW1.js} +50 -51
- package/dist/InputBase-CRrFludT.cjs +4 -0
- package/dist/Link-CMes5bws.cjs +1 -0
- package/dist/{Link-8wJ87d6M.js → Link-GBRiPElP.js} +56 -44
- package/dist/{List-q9c0EQIN.js → List-DZkddOsr.js} +2 -2
- package/dist/List-E_TAQ1jJ.cjs +1 -0
- package/dist/{ListItem-iH38wGFD.js → ListItem-CMoibMI7.js} +4 -4
- package/dist/ListItem-qTKJTg7f.cjs +1 -0
- package/dist/ListItemText-B3z5dHrQ.cjs +1 -0
- package/dist/{ListItemText-7p6JHq3z.js → ListItemText-BbrPf29n.js} +139 -139
- package/dist/{Menu-B-AGEy5x.js → Menu-3UjlpKRJ.js} +28 -28
- package/dist/{Menu-CZF84BcH.cjs → Menu-C0uY9Dd0.cjs} +5 -5
- package/dist/MenuItem--a878rw9.cjs +1 -0
- package/dist/{MenuItem-D-Y0l50p.js → MenuItem-CHEWce5u.js} +94 -94
- package/dist/Modal-CdcolE0C.cjs +2 -0
- package/dist/{Modal-rm4Wr5mr.js → Modal-Du5LfkZg.js} +6 -6
- package/dist/{MoreVert-4w5beLFq.cjs → MoreVert-DZjEMvuw.cjs} +1 -1
- package/dist/{MoreVert-K_wr6kJS.js → MoreVert-PLU7h8WO.js} +1 -1
- package/dist/{Paper-CFhnudKQ.js → Paper-BylmTlAJ.js} +4 -4
- package/dist/Paper-DgHGh6vt.cjs +2 -0
- package/dist/Popper-BsNp09Gg.cjs +4 -0
- package/dist/{Popper-tW85AcRT.js → Popper-CvQLHjwo.js} +4 -4
- package/dist/{Portal-DZrHcvYi.js → Portal-BlK6ttxt.js} +15 -15
- package/dist/Portal-CPOCKeMh.cjs +1 -0
- package/dist/Radio-CLNMQGNf.cjs +1 -0
- package/dist/{Radio-C1IIog7f.js → Radio-CbYgci2-.js} +124 -120
- package/dist/{RadioGroup-C03E_nJT.js → RadioGroup-D-Cq8SmM.js} +3 -3
- package/dist/RadioGroup-Dyf8fKum.cjs +1 -0
- package/dist/{Select-qUF3oQz8.js → Select-Bx0yVOZE.js} +596 -563
- package/dist/Select-CRVPbesC.cjs +3 -0
- package/dist/Stack-COmIqMxy.cjs +1 -0
- package/dist/{Stack-D1BZQ4nk.js → Stack-CbK4a2n5.js} +16 -16
- package/dist/Stepper-CWq9t5jy.cjs +1 -0
- package/dist/{Stepper-N5qN-x7q.js → Stepper-DU9nixCp.js} +22 -23
- package/dist/{Switch-PlSZBWfd.js → Switch-Bm3Gclye.js} +97 -95
- package/dist/Switch-kHZOqjeU.cjs +1 -0
- package/dist/{SwitchBase-CAOV2ay6.js → SwitchBase-9CKmTWdZ.js} +50 -48
- package/dist/SwitchBase-Hbqxtooi.cjs +1 -0
- package/dist/{Tab-DfH7qAIY.js → Tab-DBCv1T9W.js} +75 -76
- package/dist/Tab-DnxFjc89.cjs +4 -0
- package/dist/TextField-BhdmUny-.cjs +1 -0
- package/dist/{TextField-CUhKk24w.js → TextField-V-EQ80Y6.js} +22 -23
- package/dist/ToggleButtonGroup-B2FBwoDV.cjs +138 -0
- package/dist/{ToggleButtonGroup-D_I3DjEz.js → ToggleButtonGroup-_UpIjysl.js} +1742 -1760
- package/dist/{Tooltip-BLSnjkFh.js → Tooltip-DKHOTDh0.js} +84 -85
- package/dist/Tooltip-DYTDIzp4.cjs +4 -0
- package/dist/Typography-BvRUTdLD.cjs +1 -0
- package/dist/{Typography-Bdfl0Alf.js → Typography-o0iALAVg.js} +6 -7
- package/dist/components/ActionBar/style.cjs.js +1 -1
- package/dist/components/ActionBar/style.es.js +2 -2
- 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.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +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/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +44 -44
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Badge.stories.cjs.js +1 -1
- package/dist/components/stories/Badge.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.cjs.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/Stepper.stories.cjs.js +1 -1
- package/dist/components/stories/Stepper.stories.es.js +4 -4
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +1 -1
- package/dist/components/stories/TreeView.stories.es.js +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-BJRigbha.cjs +1 -0
- package/dist/{createSvgIcon-nrGLeL-I.js → createSvgIcon-BV54rC7k.js} +7 -8
- package/dist/dividerClasses-CbwbHy8r.cjs +1 -0
- package/dist/{dividerClasses-Cds5AHtx.js → dividerClasses-DDXs86hs.js} +1 -1
- package/dist/extendSxProp-CxMSlckP.cjs +1 -0
- package/dist/{extendSxProp-e_bx8m3Z.js → extendSxProp-XouBF-Ct.js} +1 -1
- package/dist/identifier-DBvccNCw.cjs +55 -0
- package/dist/{generateUtilityClasses-32ARRWdA.js → identifier-Dnc8T93Z.js} +1062 -1021
- package/dist/{index-B9KBbi0q.js → index-9te7SXrs.js} +4 -4
- package/dist/index-BkNQtUZJ.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +44 -44
- package/dist/{listItemTextClasses-D1H_8v-c.js → listItemTextClasses-4p_83pwn.js} +1 -1
- package/dist/listItemTextClasses-Cxo4anAo.cjs +1 -0
- package/dist/{memoTheme-BsSXjuJK.cjs → memoTheme-Dv-rDqFz.cjs} +1 -1
- package/dist/{memoTheme-BBxIYGG7.js → memoTheme-K37vidlb.js} +1 -1
- package/dist/mergeSlotProps-CXO1f70l.cjs +1 -0
- package/dist/{mergeSlotProps-r8Lw8Cah.js → mergeSlotProps-DSWiBSbD.js} +1 -1
- package/dist/styled-B7pKW9DQ.cjs +1 -0
- package/dist/styled-JnAdiSL5.js +5 -0
- package/dist/{useSlot-DnOTNYbF.js → useSlot-GooGQrej.js} +1 -1
- package/dist/useSlot-ONna5RyM.cjs +1 -0
- package/dist/{useSlotProps-BwBEemtt.js → useSlotProps-C34Wr67s.js} +1 -1
- package/dist/{useSlotProps-5aNXGFYF.cjs → useSlotProps-CtYqUyy1.cjs} +1 -1
- package/dist/useTheme-CH7DA5fq.js +11 -0
- package/dist/useTheme-D6wPRo0G.cjs +1 -0
- package/dist/useTheme-DkiCyF-9.cjs +1 -0
- package/dist/{useTheme-CMVVKo4v.js → useTheme-VH02z7nF.js} +1 -1
- package/dist/{useThemeProps-BIb0QYVO.cjs → useThemeProps-BU5PNyhK.cjs} +1 -1
- package/dist/useThemeProps-CnZ-QgwI.cjs +1 -0
- package/dist/useThemeProps-DT4QxdFn.js +17 -0
- package/dist/{useThemeProps-lFVeX-f0.js → useThemeProps-DZ05-54P.js} +4 -4
- package/package.json +7 -7
- package/dist/Alert-C6iEisoq.cjs +0 -1
- package/dist/Alert-D4JVZyQU.cjs +0 -1
- package/dist/Autocomplete-1xee2eiQ.cjs +0 -6
- package/dist/Backdrop-DgkaE-oT.cjs +0 -1
- package/dist/Badge-BUbP5vp-.cjs +0 -1
- package/dist/Box-C1W2izKY.cjs +0 -1
- package/dist/Button-cDSw19Nq.cjs +0 -1
- package/dist/CardContent-D4botNGC.cjs +0 -1
- package/dist/Checkbox-BXKolrmm.cjs +0 -1
- package/dist/Chip-BpeHDShb.js +0 -573
- package/dist/Chip-Ch-5oIUc.cjs +0 -1
- package/dist/CircularProgress-CTG6zAAM.cjs +0 -28
- package/dist/DatePicker-Slqqr585.cjs +0 -16
- package/dist/DefaultPropsProvider-H9bB_0gL.cjs +0 -1
- package/dist/Dialog-CzMU1Vaw.cjs +0 -1
- package/dist/DialogContent-mzqgUnTG.cjs +0 -1
- package/dist/DialogTitle-Ba_P5rRd.cjs +0 -1
- package/dist/Divider-CZPVxsPO.cjs +0 -1
- package/dist/FormLabel-DJ9MlN95.cjs +0 -2
- package/dist/Grid-gwsV6B8i.cjs +0 -2
- package/dist/IconButton-DQ0-3085.cjs +0 -2
- package/dist/InputAdornment-BM3llcq_.cjs +0 -1
- package/dist/InputBase-C4hx7uf2.cjs +0 -4
- package/dist/Link-CIQePe28.cjs +0 -1
- package/dist/List--5MPONUQ.cjs +0 -1
- package/dist/ListItem-C2_Z7drq.cjs +0 -1
- package/dist/ListItemText-D9-Pz-Pv.cjs +0 -1
- package/dist/MenuItem-Tfoo4dBw.cjs +0 -1
- package/dist/Modal-DeI0Mlfa.cjs +0 -2
- package/dist/Paper-_oaR1_0W.cjs +0 -2
- package/dist/Popper-D60dNc4H.cjs +0 -4
- package/dist/Portal-BXwfYalF.cjs +0 -1
- package/dist/Radio-DTyaqbCx.cjs +0 -1
- package/dist/RadioGroup-Ch703c6I.cjs +0 -1
- package/dist/Select-BFy88I22.cjs +0 -3
- package/dist/Stack-DraxEahz.cjs +0 -1
- package/dist/Stepper-DZ3G6yg0.cjs +0 -1
- package/dist/Switch-JAYiSudG.cjs +0 -1
- package/dist/SwitchBase-CLGs4Tit.cjs +0 -1
- package/dist/Tab-BnZwSzzt.cjs +0 -4
- package/dist/TextField-3tuxHLZ9.cjs +0 -1
- package/dist/ToggleButtonGroup-BZRf-b3W.cjs +0 -138
- package/dist/Tooltip-Bzb_mXr7.cjs +0 -4
- package/dist/Typography-CZKR4ZRK.cjs +0 -1
- package/dist/capitalize-CgHuXq7I.js +0 -9
- package/dist/capitalize-N-bUbBKG.cjs +0 -1
- package/dist/composeClasses-CZaHK87I.js +0 -51
- package/dist/composeClasses-DLNLdr2K.cjs +0 -1
- package/dist/createSvgIcon-DzMPK9Wt.cjs +0 -1
- package/dist/dividerClasses-DT1ACCA-.cjs +0 -1
- package/dist/extendSxProp-IrF6qCII.cjs +0 -1
- package/dist/generateUtilityClasses-CdsrTlgj.cjs +0 -55
- package/dist/index-DGUCeeBA.cjs +0 -1
- package/dist/listItemTextClasses-BK-fvEix.cjs +0 -1
- package/dist/mergeSlotProps-wZnr2VqA.cjs +0 -1
- package/dist/useSlot-BI_E4Zjs.cjs +0 -1
- package/dist/useTheme-6FgHgKII.cjs +0 -1
- package/dist/useTheme-Bjns7t5p.js +0 -11
- package/dist/useTheme-BxDf8E3o.cjs +0 -1
- package/dist/useThemeProps-BwzAhOV5.cjs +0 -1
- package/dist/useThemeProps-DV7UxDZG.js +0 -17
|
@@ -1,28 +1,28 @@
|
|
|
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";
|
|
20
20
|
import { e as Ae } from "./elementTypeAcceptingRef-DOeckaXy.js";
|
|
21
|
-
import { H as te } from "./Portal-
|
|
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,7 +1,7 @@
|
|
|
1
|
-
"use strict";const Se=require("react"),L=require("./
|
|
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(
|
|
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
|
+
`)),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
|
-
`)),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:
|
|
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
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:
|
|
7
|
-
`)),f.props.disabled||(I==="selectedMenu"&&f.props.selected||N===-1)&&(N=g))});const F={slots:p,slotProps:{list:T,transition:
|
|
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;
|
|
@@ -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
|
};
|