@cgi-learning-hub/ui 1.7.0 → 1.8.0-dev.1756195117
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-CCAddvmN.cjs +1 -0
- package/dist/{Alert-OeEy_IGc.js → Alert-CY0ot7Q9.js} +7 -7
- package/dist/Alert-Dqk8yUzj.cjs +1 -0
- package/dist/{Alert-BhLIlUBu.js → Alert-bpzERS3n.js} +85 -84
- package/dist/{Autocomplete-WZw_zCjA.js → Autocomplete-C58-IF0F.js} +692 -675
- package/dist/Autocomplete-Dr_nOPLP.cjs +6 -0
- package/dist/{Backdrop-CjZYrxkZ.js → Backdrop-BKhYF22u.js} +39 -38
- package/dist/Backdrop-D0LHg40V.cjs +1 -0
- package/dist/Badge-BLQ9lQDm.cjs +1 -0
- package/dist/{Badge-Bwcsnbsa.js → Badge-BYxYuye1.js} +11 -10
- package/dist/{Box-BI4osO9v.js → Box-CQ3BMNr_.js} +4 -4
- package/dist/Box-VEPJVs-3.cjs +1 -0
- package/dist/Button-7-ViQGIl.cjs +1 -0
- package/dist/{Button-DDV5EfwJ.js → Button-Bb0YW9kM.js} +162 -125
- package/dist/{ButtonBase-Dp6sf_dP.cjs → ButtonBase-B1T-Lqz2.cjs} +1 -1
- package/dist/{ButtonBase-6TF6t2SP.js → ButtonBase-BEtR8-Lv.js} +7 -7
- package/dist/CardContent-DHsA4vHZ.cjs +1 -0
- package/dist/{CardContent-D3uGcxlr.js → CardContent-D_O38a2P.js} +4 -4
- package/dist/{Checkbox-BfBDowB2.js → Checkbox-BUc4uLEm.js} +85 -84
- package/dist/Checkbox-CCUAaeKc.cjs +1 -0
- package/dist/Chip-BqD6kZQu.js +574 -0
- package/dist/Chip-Gtwf_H4u.cjs +1 -0
- package/dist/CircularProgress-9SSFT_JT.cjs +28 -0
- package/dist/{CircularProgress-DZuYTFz-.js → CircularProgress-DLHunSUI.js} +15 -14
- package/dist/{Close-DEMecSZ6.js → Close-Bfa6kvKL.js} +1 -1
- package/dist/{Close-7S2hSoFB.cjs → Close-DgAWdt-h.cjs} +1 -1
- package/dist/{CloseRounded-CioV1GK3.js → CloseRounded-BmxvxW3h.js} +1 -1
- package/dist/{CloseRounded-DS-4-gMR.cjs → CloseRounded-Cmyp8ExI.cjs} +1 -1
- package/dist/{CustomTreeItem-Bg8Ub4dn.cjs → CustomTreeItem-CAWvvti1.cjs} +3 -3
- package/dist/{CustomTreeItem-B9FylIhL.js → CustomTreeItem-R9JdfW5S.js} +19 -19
- package/dist/{DatePicker-DasS2wq6.js → DatePicker-CPl6e2jQ.js} +2766 -2762
- package/dist/DatePicker-DzmgZZm2.cjs +16 -0
- package/dist/DefaultPropsProvider--EgnwFDi.cjs +1 -0
- package/dist/DefaultPropsProvider-BwYGfRVu.js +312 -0
- package/dist/{Delete-B5VTV71K.js → Delete-BbsnDAxB.js} +1 -1
- package/dist/{Delete-BvkBJXEM.cjs → Delete-CP1l1lK0.cjs} +1 -1
- package/dist/{Dialog-DEWB041V.js → Dialog-Bopi9166.js} +18 -17
- package/dist/Dialog-DBeA-P-5.cjs +1 -0
- package/dist/{DialogContent-C294EkoQ.js → DialogContent-BjQDm7Pm.js} +4 -4
- package/dist/DialogContent-LhC5HOzk.cjs +1 -0
- package/dist/DialogTitle-BngRm8Ai.cjs +1 -0
- package/dist/{DialogTitle-BSiId6Q1.js → DialogTitle-Bo0Gi01d.js} +6 -6
- package/dist/Divider-BMvxID38.cjs +1 -0
- package/dist/{Divider-kKp4VqHh.js → Divider-DY0U9aTK.js} +27 -27
- package/dist/{Folder-BgQP5-Ve.js → Folder-BEocKcZQ.js} +1 -1
- package/dist/{Folder-BfLBqDHM.cjs → Folder-DH_JFLkH.cjs} +1 -1
- package/dist/{FormLabel-B3WAnPGP.js → FormLabel-BfxjK0e6.js} +17 -16
- package/dist/FormLabel-D8szBNPL.cjs +2 -0
- package/dist/Grid-BK4F7WMn.cjs +2 -0
- package/dist/{Grid-DFk-4jnZ.js → Grid-BcHG0Tju.js} +83 -75
- package/dist/{Grow-BULCy6GX.cjs → Grow-CYNh0mFI.cjs} +1 -1
- package/dist/{Grow-BfjkXlG8.js → Grow-DIADFmT4.js} +4 -4
- package/dist/{IconButton-BYvak8Nw.js → IconButton-Bkyl-NVE.js} +60 -59
- package/dist/IconButton-CW3Ax1Re.cjs +2 -0
- package/dist/InputAdornment-CUNCJ9uu.cjs +1 -0
- package/dist/{InputAdornment-BBZXvhZ-.js → InputAdornment-RdcIDDtB.js} +16 -15
- package/dist/{InputBase-BS5oknUK.js → InputBase-BQvkpGXw.js} +52 -51
- package/dist/InputBase-DlQ4AmeL.cjs +4 -0
- package/dist/Link-BSTFC-cm.cjs +1 -0
- package/dist/{Link-DYPjEdvu.js → Link-B_3z4AZj.js} +81 -67
- package/dist/{List-CB_cqCSw.js → List-3IHU9lAZ.js} +3 -3
- package/dist/List-D6OWN6pC.cjs +1 -0
- package/dist/{ListItem-DAZQEir2.js → ListItem-C40mdSeT.js} +6 -6
- package/dist/ListItem-DAW9xSDR.cjs +1 -0
- package/dist/ListItemText-CSkIbczH.cjs +1 -0
- package/dist/{ListItemText-qfdqJP77.js → ListItemText-DKZYTXDc.js} +139 -139
- package/dist/{Menu-C61wLk41.cjs → Menu-CYG4lAV5.cjs} +5 -5
- package/dist/{Menu-9BK8jmzW.js → Menu-v2809GzG.js} +14 -14
- package/dist/MenuItem-CE1zzd3t.cjs +1 -0
- package/dist/{MenuItem-C8nduSzJ.js → MenuItem-CtaUN7Tf.js} +94 -94
- package/dist/{Modal-D3Q9vEAI.js → Modal-5Sd-onxN.js} +8 -8
- package/dist/Modal-Czds3gRe.cjs +2 -0
- package/dist/{MoreVert-C_W1m_Z_.js → MoreVert-D8Vmampk.js} +1 -1
- package/dist/{MoreVert-C-Rhn-xK.cjs → MoreVert-oRU8DXq_.cjs} +1 -1
- package/dist/{Paper-IQckggbn.js → Paper-CVfXywZr.js} +5 -5
- package/dist/Paper-DfgCIvIc.cjs +2 -0
- package/dist/{Popper-CfFLBZ7-.js → Popper-AaewvJPc.js} +7 -7
- package/dist/Popper-D7N2KmyK.cjs +4 -0
- package/dist/Portal-Cmv45gpL.cjs +1 -0
- package/dist/{Portal-BlK6ttxt.js → Portal-PkRJuFYN.js} +17 -17
- package/dist/{Radio-DKiu6lVB.js → Radio-CJMMhGKK.js} +196 -190
- package/dist/Radio-DSTF6-0u.cjs +1 -0
- package/dist/RadioGroup-Dv2H8eCy.cjs +1 -0
- package/dist/{RadioGroup-DFKMlNWO.js → RadioGroup-HN8d8Ia5.js} +4 -4
- package/dist/{Select-CpNF3a57.js → Select-B3A-Agfw.js} +643 -608
- package/dist/Select-Dx8bhqFc.cjs +3 -0
- package/dist/Stack-BLHXEe7p.cjs +1 -0
- package/dist/{Stack-DSJ2DqNd.js → Stack-Dxm_cNN7.js} +17 -17
- package/dist/{Stepper-DE2l91K0.js → Stepper-BzU8ArmD.js} +24 -23
- package/dist/Stepper-DKRSy-u6.cjs +1 -0
- package/dist/{Switch-BIcwDf_P.js → Switch-Kkgo0WAh.js} +103 -99
- package/dist/Switch-pAIsJqNE.cjs +1 -0
- package/dist/{SwitchBase-DZV8S81Z.js → SwitchBase-D25OhIzI.js} +47 -43
- package/dist/SwitchBase-Rj-rHz4Z.cjs +1 -0
- package/dist/{Tab-Ckr6Bn59.js → Tab-CD-dlBpG.js} +29 -28
- package/dist/Tab-DAnZTr_J.cjs +4 -0
- package/dist/TextField-BOV-t6n5.cjs +1 -0
- package/dist/{TextField-BenBw4oE.js → TextField-hWLcPKMC.js} +25 -24
- package/dist/{ToggleButtonGroup-DhtAoGtM.js → ToggleButtonGroup-DnkyxRyH.js} +2192 -2136
- package/dist/ToggleButtonGroup-tZHZu6VI.cjs +138 -0
- package/dist/{Tooltip-KkgNQm4r.js → Tooltip-Dyhu9Axq.js} +87 -86
- package/dist/Tooltip-uaa7kSpb.cjs +4 -0
- package/dist/{Typography-Dy8r_tT2.js → Typography-BCrXGKM_.js} +8 -7
- package/dist/Typography-CzfDwsAP.cjs +1 -0
- package/dist/capitalize-CqfTUOe6.js +9 -0
- package/dist/capitalize-nmXHj--f.cjs +1 -0
- 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/ColorPicker/ColorPicker.cjs.js +4 -4
- package/dist/components/ColorPicker/ColorPicker.es.js +64 -64
- 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 +4 -4
- 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 +5 -5
- 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 +41 -41
- 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/composeClasses-CF8TNlsM.cjs +1 -0
- package/dist/composeClasses-YZNMOb8-.js +51 -0
- package/dist/{createSvgIcon-B1E6Wo8z.js → createSvgIcon-CjBLQGwH.js} +9 -8
- package/dist/createSvgIcon-D6Bf0D-L.cjs +1 -0
- package/dist/dividerClasses-B-pTb1RM.cjs +1 -0
- package/dist/{dividerClasses-BPJZ8SFy.js → dividerClasses-DaeUd1Wt.js} +1 -1
- package/dist/{elementAcceptingRef-CEweUuUA.js → elementAcceptingRef-CZLfau9O.js} +1 -1
- package/dist/{elementAcceptingRef-BZ42cOGO.cjs → elementAcceptingRef-CuMilXz3.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-DOeckaXy.js → elementTypeAcceptingRef-vRb2iI4O.js} +1 -1
- package/dist/{elementTypeAcceptingRef-BwZv9xBI.cjs → elementTypeAcceptingRef-vjR5jGLx.cjs} +1 -1
- package/dist/extendSxProp-B7ear6Mt.cjs +1 -0
- package/dist/{extendSxProp-CesAxox9.js → extendSxProp-CYcZXmNy.js} +1 -1
- package/dist/generateUtilityClasses-BMLLB4Uz.cjs +55 -0
- package/dist/generateUtilityClasses-BSBs8sf8.js +2703 -0
- package/dist/{index-Sy88PpwE.js → index-B9vkf41S.js} +2 -2
- package/dist/{index-DIyAQH20.cjs → index-BS46Ff4t.cjs} +1 -1
- package/dist/{index-DX2Sl0Ig.js → index-Ba4TEBpP.js} +1 -1
- package/dist/index-C7LHZznM.cjs +1 -0
- package/dist/{index-CX0sAlmK.js → index-CJMnfcQs.js} +1 -1
- package/dist/{index-CrINMjCH.cjs → index-D_kvDIOz.cjs} +1 -1
- package/dist/{index-8G2jvqZ8.js → index-DoJhn5B5.js} +48 -42
- package/dist/{index-DLnSn8GT.cjs → index-kjfz41UI.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +302 -300
- package/dist/{listItemTextClasses-B5VhLd9W.js → listItemTextClasses-BXp3ggQU.js} +1 -1
- package/dist/listItemTextClasses-DbXYCyua.cjs +1 -0
- package/dist/{memoTheme-BKfsJx_F.cjs → memoTheme-DZ3r2a_u.cjs} +1 -1
- package/dist/{memoTheme-DAFDflPY.js → memoTheme-_Lq-6t75.js} +1 -1
- package/dist/{mergeSlotProps-ChAye7iz.js → mergeSlotProps-BauotErM.js} +1 -1
- package/dist/mergeSlotProps-DxEGON0Z.cjs +1 -0
- package/dist/{refType-Dp7CJc86.js → refType-8hihVLUh.js} +1 -1
- package/dist/{refType-B_IEJm4x.cjs → refType-DJyA--UV.cjs} +1 -1
- package/dist/useSlot-BQ5B4uxv.cjs +1 -0
- package/dist/{useSlot-BzdKwDQ5.js → useSlot-EJyrOSVX.js} +1 -1
- package/dist/{useSlotProps-CrQGQLdL.cjs → useSlotProps-BgLi3k0l.cjs} +1 -1
- package/dist/{useSlotProps-DdMuGelR.js → useSlotProps-Dqdl-VjK.js} +1 -1
- package/dist/useTheme-B-uC25ym.js +11 -0
- package/dist/useTheme-BF7BEGuC.cjs +1 -0
- package/dist/useTheme-Bp-Kqg9p.cjs +1 -0
- package/dist/{useTheme--i9fxE_A.js → useTheme-DiTK5w6x.js} +1 -1
- package/dist/useThemeProps-BPpcxcBc.cjs +1 -0
- package/dist/{useThemeProps-B9E_wuN9.cjs → useThemeProps-BR4m1AIN.cjs} +1 -1
- package/dist/{useThemeProps-B4VFkcP0.js → useThemeProps-Ddl3KJ8f.js} +4 -4
- package/dist/useThemeProps-zsxJokxk.js +17 -0
- package/dist/{utils-BQenyzDz.js → utils-B_pVp6UZ.js} +3 -3
- package/dist/utils-XujN9ndp.cjs +1 -0
- package/package.json +7 -7
- package/dist/Alert-DPSZppEy.cjs +0 -1
- package/dist/Alert-rPyl-bqs.cjs +0 -1
- package/dist/Autocomplete-BdPO9SAd.cjs +0 -6
- package/dist/Backdrop-DeNTZlA5.cjs +0 -1
- package/dist/Badge-DFzvdVS-.cjs +0 -1
- package/dist/Box-DR3n_po_.cjs +0 -1
- package/dist/Button-DyJV5llI.cjs +0 -1
- package/dist/CardContent-COfaU6E0.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/CircularProgress-CXXyPavb.cjs +0 -28
- 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/DialogContent-DXfUge3c.cjs +0 -1
- package/dist/DialogTitle-y2PrK6uU.cjs +0 -1
- package/dist/Divider-NermA5hZ.cjs +0 -1
- package/dist/FormLabel-JrZR9kt8.cjs +0 -2
- package/dist/Grid-BHYQ3JNy.cjs +0 -2
- package/dist/IconButton-CjtMjZ9e.cjs +0 -2
- package/dist/InputAdornment-DvHQMisT.cjs +0 -1
- package/dist/InputBase-DPdKpmOz.cjs +0 -4
- package/dist/Link-BwbY60dS.cjs +0 -1
- package/dist/List-t9bWFewp.cjs +0 -1
- package/dist/ListItem-DP7YmqZk.cjs +0 -1
- package/dist/ListItemText-cVnimPLO.cjs +0 -1
- package/dist/MenuItem-DHM3qxwr.cjs +0 -1
- package/dist/Modal-DkzrSKHd.cjs +0 -2
- package/dist/Paper-BbqZL5vx.cjs +0 -2
- package/dist/Popper-DvWx5tR3.cjs +0 -4
- package/dist/Portal-CPOCKeMh.cjs +0 -1
- package/dist/Radio-Bwh_t6PC.cjs +0 -1
- package/dist/RadioGroup-Cvnwt4JE.cjs +0 -1
- package/dist/Select-3HP39Z7o.cjs +0 -3
- package/dist/Stack-CIyfgZCM.cjs +0 -1
- package/dist/Stepper-CXHfLPtA.cjs +0 -1
- package/dist/Switch-CTEqKDiv.cjs +0 -1
- package/dist/SwitchBase-P3zHVmLX.cjs +0 -1
- package/dist/Tab-r5imbU9z.cjs +0 -4
- package/dist/TextField-Brw3X9cn.cjs +0 -1
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +0 -138
- package/dist/Tooltip-BAOKe3SY.cjs +0 -4
- package/dist/Typography-CSTmKyr8.cjs +0 -1
- package/dist/createSvgIcon-IET9soda.cjs +0 -1
- package/dist/dividerClasses-C07OJKLL.cjs +0 -1
- package/dist/extendSxProp-ZMCunXYm.cjs +0 -1
- package/dist/identifier-BoZelETM.cjs +0 -55
- package/dist/identifier-PWESmBq6.js +0 -2598
- package/dist/index-D3lMWU76.cjs +0 -1
- package/dist/listItemTextClasses-CJDKfXvl.cjs +0 -1
- package/dist/mergeSlotProps-DXwOW3FE.cjs +0 -1
- package/dist/styled-C7gyRDlj.js +0 -5
- package/dist/styled-Cax0O00h.cjs +0 -1
- package/dist/useSlot-C2FjoUpF.cjs +0 -1
- package/dist/useTheme-BLMJDSsv.cjs +0 -1
- package/dist/useTheme-CooC_6Ep.cjs +0 -1
- package/dist/useTheme-XJ9sFCWX.js +0 -11
- package/dist/useThemeProps-C1A3rnbh.cjs +0 -1
- package/dist/useThemeProps-CQ9rZe7g.js +0 -17
- package/dist/utils-ByXw_ZY1.cjs +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import { P as
|
|
3
|
-
import { H as
|
|
4
|
-
import { m as
|
|
5
|
-
import { u as
|
|
6
|
-
import { a as
|
|
7
|
-
import { b as
|
|
8
|
-
import { jsx as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { B as
|
|
12
|
-
import { g as
|
|
13
|
-
import { u as
|
|
14
|
-
import { T as
|
|
15
|
-
const
|
|
2
|
+
import { P as e } from "./index-B9vkf41S.js";
|
|
3
|
+
import { H as B } from "./generateUtilityClasses-BSBs8sf8.js";
|
|
4
|
+
import { m as M } from "./memoTheme-_Lq-6t75.js";
|
|
5
|
+
import { u as j, s as w, c as k, r as U } from "./DefaultPropsProvider-BwYGfRVu.js";
|
|
6
|
+
import { a as R } from "./List-3IHU9lAZ.js";
|
|
7
|
+
import { b as _, a as x } from "./ListItem-C40mdSeT.js";
|
|
8
|
+
import { jsx as O, jsxs as W } from "react/jsx-runtime";
|
|
9
|
+
import { u as z } from "./useEventCallback-Y2KwRxBw.js";
|
|
10
|
+
import { u as A } from "./useForkRef-u29GSuCu.js";
|
|
11
|
+
import { B as H } from "./ButtonBase-BEtR8-Lv.js";
|
|
12
|
+
import { g as q, l as I } from "./listItemTextClasses-BXp3ggQU.js";
|
|
13
|
+
import { u as h } from "./useSlot-EJyrOSVX.js";
|
|
14
|
+
import { T as C, t as S } from "./Typography-BCrXGKM_.js";
|
|
15
|
+
const J = (o, s) => {
|
|
16
16
|
const {
|
|
17
|
-
ownerState:
|
|
18
|
-
} =
|
|
19
|
-
return [
|
|
20
|
-
},
|
|
17
|
+
ownerState: t
|
|
18
|
+
} = o;
|
|
19
|
+
return [s.root, t.dense && s.dense, t.alignItems === "flex-start" && s.alignItemsFlexStart, t.divider && s.divider, !t.disableGutters && s.gutters];
|
|
20
|
+
}, K = (o) => {
|
|
21
21
|
const {
|
|
22
|
-
alignItems:
|
|
23
|
-
classes:
|
|
22
|
+
alignItems: s,
|
|
23
|
+
classes: t,
|
|
24
24
|
dense: a,
|
|
25
25
|
disabled: n,
|
|
26
26
|
disableGutters: c,
|
|
27
27
|
divider: i,
|
|
28
28
|
selected: b
|
|
29
|
-
} =
|
|
30
|
-
root: ["root", a && "dense", !c && "gutters", i && "divider", n && "disabled",
|
|
31
|
-
},
|
|
29
|
+
} = o, p = k({
|
|
30
|
+
root: ["root", a && "dense", !c && "gutters", i && "divider", n && "disabled", s === "flex-start" && "alignItemsFlexStart", b && "selected"]
|
|
31
|
+
}, _, t);
|
|
32
32
|
return {
|
|
33
|
-
...
|
|
33
|
+
...t,
|
|
34
34
|
...p
|
|
35
35
|
};
|
|
36
|
-
},
|
|
37
|
-
shouldForwardProp: (
|
|
36
|
+
}, Q = w(H, {
|
|
37
|
+
shouldForwardProp: (o) => U(o) || o === "classes",
|
|
38
38
|
name: "MuiListItemButton",
|
|
39
39
|
slot: "Root",
|
|
40
|
-
overridesResolver:
|
|
41
|
-
})(
|
|
42
|
-
theme:
|
|
40
|
+
overridesResolver: J
|
|
41
|
+
})(M(({
|
|
42
|
+
theme: o
|
|
43
43
|
}) => ({
|
|
44
44
|
display: "flex",
|
|
45
45
|
flexGrow: 1,
|
|
@@ -52,42 +52,42 @@ const K = (e, t) => {
|
|
|
52
52
|
textAlign: "left",
|
|
53
53
|
paddingTop: 8,
|
|
54
54
|
paddingBottom: 8,
|
|
55
|
-
transition:
|
|
56
|
-
duration:
|
|
55
|
+
transition: o.transitions.create("background-color", {
|
|
56
|
+
duration: o.transitions.duration.shortest
|
|
57
57
|
}),
|
|
58
58
|
"&:hover": {
|
|
59
59
|
textDecoration: "none",
|
|
60
|
-
backgroundColor: (
|
|
60
|
+
backgroundColor: (o.vars || o).palette.action.hover,
|
|
61
61
|
// Reset on touch devices, it doesn't add specificity
|
|
62
62
|
"@media (hover: none)": {
|
|
63
63
|
backgroundColor: "transparent"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
[`&.${x.selected}`]: {
|
|
67
|
-
backgroundColor:
|
|
67
|
+
backgroundColor: o.alpha((o.vars || o).palette.primary.main, (o.vars || o).palette.action.selectedOpacity),
|
|
68
68
|
[`&.${x.focusVisible}`]: {
|
|
69
|
-
backgroundColor:
|
|
69
|
+
backgroundColor: o.alpha((o.vars || o).palette.primary.main, `${(o.vars || o).palette.action.selectedOpacity} + ${(o.vars || o).palette.action.focusOpacity}`)
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
[`&.${x.selected}:hover`]: {
|
|
73
|
-
backgroundColor:
|
|
73
|
+
backgroundColor: o.alpha((o.vars || o).palette.primary.main, `${(o.vars || o).palette.action.selectedOpacity} + ${(o.vars || o).palette.action.hoverOpacity}`),
|
|
74
74
|
// Reset on touch devices, it doesn't add specificity
|
|
75
75
|
"@media (hover: none)": {
|
|
76
|
-
backgroundColor:
|
|
76
|
+
backgroundColor: o.alpha((o.vars || o).palette.primary.main, (o.vars || o).palette.action.selectedOpacity)
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
[`&.${x.focusVisible}`]: {
|
|
80
|
-
backgroundColor: (
|
|
80
|
+
backgroundColor: (o.vars || o).palette.action.focus
|
|
81
81
|
},
|
|
82
82
|
[`&.${x.disabled}`]: {
|
|
83
|
-
opacity: (
|
|
83
|
+
opacity: (o.vars || o).palette.action.disabledOpacity
|
|
84
84
|
},
|
|
85
85
|
variants: [{
|
|
86
86
|
props: ({
|
|
87
|
-
ownerState:
|
|
88
|
-
}) =>
|
|
87
|
+
ownerState: s
|
|
88
|
+
}) => s.divider,
|
|
89
89
|
style: {
|
|
90
|
-
borderBottom: `1px solid ${(
|
|
90
|
+
borderBottom: `1px solid ${(o.vars || o).palette.divider}`,
|
|
91
91
|
backgroundClip: "padding-box"
|
|
92
92
|
}
|
|
93
93
|
}, {
|
|
@@ -99,24 +99,24 @@ const K = (e, t) => {
|
|
|
99
99
|
}
|
|
100
100
|
}, {
|
|
101
101
|
props: ({
|
|
102
|
-
ownerState:
|
|
103
|
-
}) => !
|
|
102
|
+
ownerState: s
|
|
103
|
+
}) => !s.disableGutters,
|
|
104
104
|
style: {
|
|
105
105
|
paddingLeft: 16,
|
|
106
106
|
paddingRight: 16
|
|
107
107
|
}
|
|
108
108
|
}, {
|
|
109
109
|
props: ({
|
|
110
|
-
ownerState:
|
|
111
|
-
}) =>
|
|
110
|
+
ownerState: s
|
|
111
|
+
}) => s.dense,
|
|
112
112
|
style: {
|
|
113
113
|
paddingTop: 4,
|
|
114
114
|
paddingBottom: 4
|
|
115
115
|
}
|
|
116
116
|
}]
|
|
117
|
-
}))),
|
|
118
|
-
const a =
|
|
119
|
-
props:
|
|
117
|
+
}))), X = /* @__PURE__ */ f.forwardRef(function(s, t) {
|
|
118
|
+
const a = j({
|
|
119
|
+
props: s,
|
|
120
120
|
name: "MuiListItemButton"
|
|
121
121
|
}), {
|
|
122
122
|
alignItems: n = "center",
|
|
@@ -126,16 +126,16 @@ const K = (e, t) => {
|
|
|
126
126
|
dense: u = !1,
|
|
127
127
|
disableGutters: p = !1,
|
|
128
128
|
divider: P = !1,
|
|
129
|
-
focusVisibleClassName:
|
|
130
|
-
selected:
|
|
131
|
-
className:
|
|
129
|
+
focusVisibleClassName: L,
|
|
130
|
+
selected: N = !1,
|
|
131
|
+
className: $,
|
|
132
132
|
...d
|
|
133
|
-
} = a, g = f.useContext(
|
|
133
|
+
} = a, g = f.useContext(R), l = f.useMemo(() => ({
|
|
134
134
|
dense: u || g.dense || !1,
|
|
135
135
|
alignItems: n,
|
|
136
136
|
disableGutters: p
|
|
137
137
|
}), [n, g.dense, u, p]), r = f.useRef(null);
|
|
138
|
-
|
|
138
|
+
z(() => {
|
|
139
139
|
c && (r.current ? r.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
|
|
140
140
|
}, [c]);
|
|
141
141
|
const y = {
|
|
@@ -144,24 +144,24 @@ const K = (e, t) => {
|
|
|
144
144
|
dense: l.dense,
|
|
145
145
|
disableGutters: p,
|
|
146
146
|
divider: P,
|
|
147
|
-
selected:
|
|
148
|
-
}, m =
|
|
149
|
-
return /* @__PURE__ */
|
|
147
|
+
selected: N
|
|
148
|
+
}, m = K(y), v = A(r, t);
|
|
149
|
+
return /* @__PURE__ */ O(R.Provider, {
|
|
150
150
|
value: l,
|
|
151
|
-
children: /* @__PURE__ */
|
|
151
|
+
children: /* @__PURE__ */ O(Q, {
|
|
152
152
|
ref: v,
|
|
153
153
|
href: d.href || d.to,
|
|
154
154
|
component: (d.href || d.to) && i === "div" ? "button" : i,
|
|
155
|
-
focusVisibleClassName:
|
|
155
|
+
focusVisibleClassName: B(m.focusVisible, L),
|
|
156
156
|
ownerState: y,
|
|
157
|
-
className:
|
|
157
|
+
className: B(m.root, $),
|
|
158
158
|
...d,
|
|
159
159
|
classes: m,
|
|
160
160
|
children: b
|
|
161
161
|
})
|
|
162
162
|
});
|
|
163
163
|
});
|
|
164
|
-
process.env.NODE_ENV !== "production" && (
|
|
164
|
+
process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
165
165
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
166
166
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
167
167
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -170,52 +170,52 @@ process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
|
170
170
|
* Defines the `align-items` style property.
|
|
171
171
|
* @default 'center'
|
|
172
172
|
*/
|
|
173
|
-
alignItems:
|
|
173
|
+
alignItems: e.oneOf(["center", "flex-start"]),
|
|
174
174
|
/**
|
|
175
175
|
* If `true`, the list item is focused during the first mount.
|
|
176
176
|
* Focus will also be triggered if the value changes from false to true.
|
|
177
177
|
* @default false
|
|
178
178
|
*/
|
|
179
|
-
autoFocus:
|
|
179
|
+
autoFocus: e.bool,
|
|
180
180
|
/**
|
|
181
181
|
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
182
182
|
* be the last child.
|
|
183
183
|
*/
|
|
184
|
-
children:
|
|
184
|
+
children: e.node,
|
|
185
185
|
/**
|
|
186
186
|
* Override or extend the styles applied to the component.
|
|
187
187
|
*/
|
|
188
|
-
classes:
|
|
188
|
+
classes: e.object,
|
|
189
189
|
/**
|
|
190
190
|
* @ignore
|
|
191
191
|
*/
|
|
192
|
-
className:
|
|
192
|
+
className: e.string,
|
|
193
193
|
/**
|
|
194
194
|
* The component used for the root node.
|
|
195
195
|
* Either a string to use a HTML element or a component.
|
|
196
196
|
*/
|
|
197
|
-
component:
|
|
197
|
+
component: e.elementType,
|
|
198
198
|
/**
|
|
199
199
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
200
200
|
* The prop defaults to the value inherited from the parent List component.
|
|
201
201
|
* @default false
|
|
202
202
|
*/
|
|
203
|
-
dense:
|
|
203
|
+
dense: e.bool,
|
|
204
204
|
/**
|
|
205
205
|
* If `true`, the component is disabled.
|
|
206
206
|
* @default false
|
|
207
207
|
*/
|
|
208
|
-
disabled:
|
|
208
|
+
disabled: e.bool,
|
|
209
209
|
/**
|
|
210
210
|
* If `true`, the left and right padding is removed.
|
|
211
211
|
* @default false
|
|
212
212
|
*/
|
|
213
|
-
disableGutters:
|
|
213
|
+
disableGutters: e.bool,
|
|
214
214
|
/**
|
|
215
215
|
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
216
216
|
* @default false
|
|
217
217
|
*/
|
|
218
|
-
divider:
|
|
218
|
+
divider: e.bool,
|
|
219
219
|
/**
|
|
220
220
|
* This prop can help identify which element has keyboard focus.
|
|
221
221
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -224,77 +224,77 @@ process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
|
224
224
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
225
225
|
* if needed.
|
|
226
226
|
*/
|
|
227
|
-
focusVisibleClassName:
|
|
227
|
+
focusVisibleClassName: e.string,
|
|
228
228
|
/**
|
|
229
229
|
* @ignore
|
|
230
230
|
*/
|
|
231
|
-
href:
|
|
231
|
+
href: e.string,
|
|
232
232
|
/**
|
|
233
233
|
* Use to apply selected styling.
|
|
234
234
|
* @default false
|
|
235
235
|
*/
|
|
236
|
-
selected:
|
|
236
|
+
selected: e.bool,
|
|
237
237
|
/**
|
|
238
238
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
239
239
|
*/
|
|
240
|
-
sx:
|
|
240
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
241
241
|
});
|
|
242
|
-
const
|
|
242
|
+
const Y = (o) => {
|
|
243
243
|
const {
|
|
244
|
-
classes:
|
|
245
|
-
inset:
|
|
244
|
+
classes: s,
|
|
245
|
+
inset: t,
|
|
246
246
|
primary: a,
|
|
247
247
|
secondary: n,
|
|
248
248
|
dense: c
|
|
249
|
-
} =
|
|
250
|
-
return
|
|
251
|
-
root: ["root",
|
|
249
|
+
} = o;
|
|
250
|
+
return k({
|
|
251
|
+
root: ["root", t && "inset", c && "dense", a && n && "multiline"],
|
|
252
252
|
primary: ["primary"],
|
|
253
253
|
secondary: ["secondary"]
|
|
254
|
-
},
|
|
255
|
-
},
|
|
254
|
+
}, q, s);
|
|
255
|
+
}, Z = w("div", {
|
|
256
256
|
name: "MuiListItemText",
|
|
257
257
|
slot: "Root",
|
|
258
|
-
overridesResolver: (
|
|
258
|
+
overridesResolver: (o, s) => {
|
|
259
259
|
const {
|
|
260
|
-
ownerState:
|
|
261
|
-
} =
|
|
260
|
+
ownerState: t
|
|
261
|
+
} = o;
|
|
262
262
|
return [{
|
|
263
|
-
[`& .${I.primary}`]:
|
|
263
|
+
[`& .${I.primary}`]: s.primary
|
|
264
264
|
}, {
|
|
265
|
-
[`& .${I.secondary}`]:
|
|
266
|
-
},
|
|
265
|
+
[`& .${I.secondary}`]: s.secondary
|
|
266
|
+
}, s.root, t.inset && s.inset, t.primary && t.secondary && s.multiline, t.dense && s.dense];
|
|
267
267
|
}
|
|
268
268
|
})({
|
|
269
269
|
flex: "1 1 auto",
|
|
270
270
|
minWidth: 0,
|
|
271
271
|
marginTop: 4,
|
|
272
272
|
marginBottom: 4,
|
|
273
|
-
[`.${
|
|
273
|
+
[`.${S.root}:where(& .${I.primary})`]: {
|
|
274
274
|
display: "block"
|
|
275
275
|
},
|
|
276
|
-
[`.${
|
|
276
|
+
[`.${S.root}:where(& .${I.secondary})`]: {
|
|
277
277
|
display: "block"
|
|
278
278
|
},
|
|
279
279
|
variants: [{
|
|
280
280
|
props: ({
|
|
281
|
-
ownerState:
|
|
282
|
-
}) =>
|
|
281
|
+
ownerState: o
|
|
282
|
+
}) => o.primary && o.secondary,
|
|
283
283
|
style: {
|
|
284
284
|
marginTop: 6,
|
|
285
285
|
marginBottom: 6
|
|
286
286
|
}
|
|
287
287
|
}, {
|
|
288
288
|
props: ({
|
|
289
|
-
ownerState:
|
|
290
|
-
}) =>
|
|
289
|
+
ownerState: o
|
|
290
|
+
}) => o.inset,
|
|
291
291
|
style: {
|
|
292
292
|
paddingLeft: 56
|
|
293
293
|
}
|
|
294
294
|
}]
|
|
295
|
-
}),
|
|
296
|
-
const a =
|
|
297
|
-
props:
|
|
295
|
+
}), oo = /* @__PURE__ */ f.forwardRef(function(s, t) {
|
|
296
|
+
const a = j({
|
|
297
|
+
props: s,
|
|
298
298
|
name: "MuiListItemText"
|
|
299
299
|
}), {
|
|
300
300
|
children: n,
|
|
@@ -304,13 +304,13 @@ const Z = (e) => {
|
|
|
304
304
|
primary: u,
|
|
305
305
|
primaryTypographyProps: p,
|
|
306
306
|
secondary: P,
|
|
307
|
-
secondaryTypographyProps:
|
|
308
|
-
slots:
|
|
309
|
-
slotProps:
|
|
307
|
+
secondaryTypographyProps: L,
|
|
308
|
+
slots: N = {},
|
|
309
|
+
slotProps: $ = {},
|
|
310
310
|
...d
|
|
311
311
|
} = a, {
|
|
312
312
|
dense: g
|
|
313
|
-
} = f.useContext(
|
|
313
|
+
} = f.useContext(R);
|
|
314
314
|
let l = u ?? n, r = P;
|
|
315
315
|
const y = {
|
|
316
316
|
...a,
|
|
@@ -319,49 +319,49 @@ const Z = (e) => {
|
|
|
319
319
|
primary: !!l,
|
|
320
320
|
secondary: !!r,
|
|
321
321
|
dense: g
|
|
322
|
-
}, m =
|
|
323
|
-
slots:
|
|
322
|
+
}, m = Y(y), v = {
|
|
323
|
+
slots: N,
|
|
324
324
|
slotProps: {
|
|
325
325
|
primary: p,
|
|
326
|
-
secondary:
|
|
327
|
-
|
|
326
|
+
secondary: L,
|
|
327
|
+
...$
|
|
328
328
|
}
|
|
329
|
-
}, [
|
|
330
|
-
className:
|
|
331
|
-
elementType:
|
|
329
|
+
}, [F, V] = h("root", {
|
|
330
|
+
className: B(m.root, c),
|
|
331
|
+
elementType: Z,
|
|
332
332
|
externalForwardedProps: {
|
|
333
333
|
...v,
|
|
334
334
|
...d
|
|
335
335
|
},
|
|
336
336
|
ownerState: y,
|
|
337
|
-
ref:
|
|
338
|
-
}), [
|
|
337
|
+
ref: t
|
|
338
|
+
}), [E, T] = h("primary", {
|
|
339
339
|
className: m.primary,
|
|
340
|
-
elementType:
|
|
340
|
+
elementType: C,
|
|
341
341
|
externalForwardedProps: v,
|
|
342
342
|
ownerState: y
|
|
343
|
-
}), [
|
|
343
|
+
}), [D, G] = h("secondary", {
|
|
344
344
|
className: m.secondary,
|
|
345
|
-
elementType:
|
|
345
|
+
elementType: C,
|
|
346
346
|
externalForwardedProps: v,
|
|
347
347
|
ownerState: y
|
|
348
348
|
});
|
|
349
|
-
return l != null && l.type !==
|
|
349
|
+
return l != null && l.type !== C && !i && (l = /* @__PURE__ */ O(E, {
|
|
350
350
|
variant: g ? "body2" : "body1",
|
|
351
351
|
component: T != null && T.variant ? void 0 : "span",
|
|
352
352
|
...T,
|
|
353
353
|
children: l
|
|
354
|
-
})), r != null && r.type !==
|
|
354
|
+
})), r != null && r.type !== C && !i && (r = /* @__PURE__ */ O(D, {
|
|
355
355
|
variant: "body2",
|
|
356
356
|
color: "textSecondary",
|
|
357
|
-
...
|
|
357
|
+
...G,
|
|
358
358
|
children: r
|
|
359
|
-
})), /* @__PURE__ */
|
|
360
|
-
...
|
|
359
|
+
})), /* @__PURE__ */ W(F, {
|
|
360
|
+
...V,
|
|
361
361
|
children: [l, r]
|
|
362
362
|
});
|
|
363
363
|
});
|
|
364
|
-
process.env.NODE_ENV !== "production" && (
|
|
364
|
+
process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
365
365
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
366
366
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
367
367
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -369,15 +369,15 @@ process.env.NODE_ENV !== "production" && (oe.propTypes = {
|
|
|
369
369
|
/**
|
|
370
370
|
* Alias for the `primary` prop.
|
|
371
371
|
*/
|
|
372
|
-
children:
|
|
372
|
+
children: e.node,
|
|
373
373
|
/**
|
|
374
374
|
* Override or extend the styles applied to the component.
|
|
375
375
|
*/
|
|
376
|
-
classes:
|
|
376
|
+
classes: e.object,
|
|
377
377
|
/**
|
|
378
378
|
* @ignore
|
|
379
379
|
*/
|
|
380
|
-
className:
|
|
380
|
+
className: e.string,
|
|
381
381
|
/**
|
|
382
382
|
* If `true`, the children won't be wrapped by a Typography component.
|
|
383
383
|
* This can be useful to render an alternative Typography variant by wrapping
|
|
@@ -385,57 +385,57 @@ process.env.NODE_ENV !== "production" && (oe.propTypes = {
|
|
|
385
385
|
* with the Typography component.
|
|
386
386
|
* @default false
|
|
387
387
|
*/
|
|
388
|
-
disableTypography:
|
|
388
|
+
disableTypography: e.bool,
|
|
389
389
|
/**
|
|
390
390
|
* If `true`, the children are indented.
|
|
391
391
|
* This should be used if there is no left avatar or left icon.
|
|
392
392
|
* @default false
|
|
393
393
|
*/
|
|
394
|
-
inset:
|
|
394
|
+
inset: e.bool,
|
|
395
395
|
/**
|
|
396
396
|
* The main content element.
|
|
397
397
|
*/
|
|
398
|
-
primary:
|
|
398
|
+
primary: e.node,
|
|
399
399
|
/**
|
|
400
400
|
* These props will be forwarded to the primary typography component
|
|
401
401
|
* (as long as disableTypography is not `true`).
|
|
402
402
|
* @deprecated Use `slotProps.primary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
403
403
|
*/
|
|
404
|
-
primaryTypographyProps:
|
|
404
|
+
primaryTypographyProps: e.object,
|
|
405
405
|
/**
|
|
406
406
|
* The secondary content element.
|
|
407
407
|
*/
|
|
408
|
-
secondary:
|
|
408
|
+
secondary: e.node,
|
|
409
409
|
/**
|
|
410
410
|
* These props will be forwarded to the secondary typography component
|
|
411
411
|
* (as long as disableTypography is not `true`).
|
|
412
412
|
* @deprecated Use `slotProps.secondary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
413
413
|
*/
|
|
414
|
-
secondaryTypographyProps:
|
|
414
|
+
secondaryTypographyProps: e.object,
|
|
415
415
|
/**
|
|
416
416
|
* The props used for each slot inside.
|
|
417
417
|
* @default {}
|
|
418
418
|
*/
|
|
419
|
-
slotProps:
|
|
420
|
-
primary:
|
|
421
|
-
root:
|
|
422
|
-
secondary:
|
|
419
|
+
slotProps: e.shape({
|
|
420
|
+
primary: e.oneOfType([e.func, e.object]),
|
|
421
|
+
root: e.oneOfType([e.func, e.object]),
|
|
422
|
+
secondary: e.oneOfType([e.func, e.object])
|
|
423
423
|
}),
|
|
424
424
|
/**
|
|
425
425
|
* The components used for each slot inside.
|
|
426
426
|
* @default {}
|
|
427
427
|
*/
|
|
428
|
-
slots:
|
|
429
|
-
primary:
|
|
430
|
-
root:
|
|
431
|
-
secondary:
|
|
428
|
+
slots: e.shape({
|
|
429
|
+
primary: e.elementType,
|
|
430
|
+
root: e.elementType,
|
|
431
|
+
secondary: e.elementType
|
|
432
432
|
}),
|
|
433
433
|
/**
|
|
434
434
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
435
435
|
*/
|
|
436
|
-
sx:
|
|
436
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
437
437
|
});
|
|
438
438
|
export {
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
X as L,
|
|
440
|
+
oo as a
|
|
441
441
|
};
|
|
@@ -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("./generateUtilityClasses-BMLLB4Uz.cjs"),e=require("./index-kjfz41UI.cjs"),Re=require("./index-D_kvDIOz.cjs"),k=require("./DefaultPropsProvider--EgnwFDi.cjs"),Y=require("./useSlot-BQ5B4uxv.cjs"),V=require("react/jsx-runtime"),xe=require("./useSlotProps-BgLi3k0l.cjs"),ke=require("./isHostComponent-PydJW4A4.cjs"),De=require("./Paper-DfgCIvIc.cjs"),oe=require("./ownerDocument-4MViGo3k.cjs"),te=require("./ownerWindow-DDHucZi0.cjs"),je=require("./debounce-DpCj7ugL.cjs"),Ne=require("./Grow-CYNh0mFI.cjs"),Ie=require("./mergeSlotProps-DxEGON0Z.cjs"),ye=require("./Modal-Czds3gRe.cjs"),Fe=require("./integerPropType-CR7ytEJG.cjs"),qe=require("./chainPropTypes-CEUi6Jb4.cjs"),Le=require("./refType-DJyA--UV.cjs"),ze=require("./elementTypeAcceptingRef-vjR5jGLx.cjs"),re=require("./Portal-Cmv45gpL.cjs"),Ke=require("./useEventCallback-BxpcFap0.cjs"),Ue=require("./useForkRef-CFhhTu-Q.cjs"),He=require("./List-D6OWN6pC.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",...U}=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 H=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=Ue.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(He.List,{role:"menu",ref:I,className:d,onKeyDown:H,tabIndex:O?0:-1,...U,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:U=8,marginThreshold:i=16,open:b,PaperProps:H={},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:U,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:H,...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:U,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:U,transitionDuration:i="auto",TransitionProps:{onEntering:b,...H}={},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:H,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:H,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:U,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;
|