@cgi-learning-hub/ui 1.4.0-dev.1742033609 → 1.4.0-dev.1742203139
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-BCd1tHk0.js → Alert-DdpAZix8.js} +9 -9
- package/dist/{Backdrop-CjDitjBW.js → Backdrop-BctCVgLy.js} +19 -20
- package/dist/Backdrop-DWp3AktL.cjs +1 -0
- package/dist/{Box-GMNejc_m.js → Box-DgqaLb7j.js} +7 -7
- package/dist/{Button-x5rtZxJN.js → Button-B7kOjNW1.js} +6 -6
- package/dist/{ButtonBase-CU1npQuI.js → ButtonBase-IZ_QjbpE.js} +4 -4
- package/dist/{CardContent-CL_61cm-.js → CardContent-F4-KcZH8.js} +3 -3
- package/dist/{Checkbox-CtRSDqOe.js → Checkbox-qUSjau0g.js} +7 -7
- package/dist/{Chip-ZIBpWC4I.js → Chip-OpRIs-sL.js} +6 -6
- package/dist/{CircularProgress-B28FKeiH.js → CircularProgress-CQxzJquv.js} +4 -4
- package/dist/{CloseRounded-pP8asZiP.js → CloseRounded-BMEGLs8y.js} +1 -1
- package/dist/DatePicker-DrLKgvkx.cjs +14 -0
- package/dist/{DatePicker-XdCuICxv.js → DatePicker-fFsWvNFc.js} +2535 -2117
- package/dist/{DefaultPropsProvider-CQixa6JQ.js → DefaultPropsProvider-Cqcb4sws.js} +7 -7
- package/dist/{Dialog-CgEvhrbZ.cjs → Dialog-B1wnk5BT.cjs} +1 -1
- package/dist/{Dialog-C-Ptqtq-.js → Dialog-CKS7yjT5.js} +9 -9
- package/dist/{DialogContent-1sjO2rQK.js → DialogContent-BzPaz5G8.js} +3 -3
- package/dist/{DialogTitle-CGpa_QH9.js → DialogTitle-D3E_lDHD.js} +5 -5
- package/dist/{DialogTitle-F6JD1f_z.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
- package/dist/{Divider-CNGfzZqD.js → Divider-D-pZeQTm.js} +8 -8
- package/dist/{FormLabel-BlaPVlwX.js → FormLabel-3-CC-ZGw.js} +76 -67
- package/dist/FormLabel-BV7-a0i5.cjs +2 -0
- package/dist/{Grow-D5UIC41W.js → Grow-DKgYCxiY.js} +13 -14
- package/dist/Grow-Z3KzFaK5.cjs +1 -0
- package/dist/{IconButton-CFUIddNg.js → IconButton-CCNUMz2l.js} +6 -6
- package/dist/{InputAdornment-GcbiriFv.js → InputAdornment-DL8XIM8r.js} +5 -5
- package/dist/{InputBase-DJuF09Rf.js → InputBase-By7jMrFP.js} +7 -7
- package/dist/{Link-DtsZ0d_s.js → Link-C_GPIs0q.js} +7 -7
- package/dist/{Menu-DD_bqi6q.js → Menu-BunOW0ot.js} +428 -306
- package/dist/Menu-Cngt8Va9.cjs +7 -0
- package/dist/MenuItem-Bha8aBMr.cjs +1 -0
- package/dist/{MenuItem-Byj-2QQd.js → MenuItem-Cu3FTLl8.js} +77 -72
- package/dist/{Modal-S2P14Nsp.js → Modal-DTJd7JJ6.js} +8 -8
- package/dist/{Modal-BG3hPYyH.cjs → Modal-u82Ss4h_.cjs} +1 -1
- package/dist/MoreVert-CrM_1EkN.js +8 -0
- package/dist/MoreVert-CxgmXooO.cjs +1 -0
- package/dist/{Paper-BrsaeLlu.js → Paper-BiZq6EF2.js} +4 -4
- package/dist/Popper-BVYscbsI.cjs +4 -0
- package/dist/{Popper-BNftxeQ5.js → Popper-DjwR55WH.js} +30 -31
- package/dist/{Portal-BLEnzj1v.js → Portal-BByeByPq.js} +2 -2
- package/dist/Portal-DUHpWdY1.cjs +1 -0
- package/dist/{Radio-CRTKwNe5.js → Radio-DSRS-tjj.js} +9 -9
- package/dist/{RadioGroup-NjI5PlIb.js → RadioGroup-cPdOWdYD.js} +3 -3
- package/dist/{Select-C0jrZLRg.js → Select-CZnKFG3o.js} +30 -30
- package/dist/{Select-8kBUq_SZ.cjs → Select-DZAzJA0y.cjs} +1 -1
- package/dist/{Stack-Bm7M81n8.js → Stack-hbAJHQhq.js} +22 -22
- package/dist/{Switch-D5FnE7HW.js → Switch-B9uT9-d0.js} +6 -6
- package/dist/{SwitchBase-91Mand9t.js → SwitchBase-CDkmnGAP.js} +5 -5
- package/dist/Tabs-AyJ_tKtV.cjs +4 -0
- package/dist/{Tabs-C5VIdTSp.js → Tabs-BYfDlOR9.js} +24 -25
- package/dist/{TextField-D5jS5WjF.js → TextField-BKfXjPdH.js} +8 -8
- package/dist/{TextField-BzqflYRV.cjs → TextField-CwcPgdgD.cjs} +1 -1
- package/dist/{ToggleButtonGroup-CipWZLXf.js → ToggleButtonGroup-B1yghh29.js} +3886 -2652
- package/dist/ToggleButtonGroup-NqurNgWT.cjs +140 -0
- package/dist/{Tooltip-DgTrUaHJ.js → Tooltip-B1NGvrJP.js} +10 -10
- package/dist/Tooltip-oNmnF7Bc.cjs +4 -0
- package/dist/{Typography-Ct2Sc9KM.js → Typography-SIQ6eleU.js} +5 -5
- package/dist/{capitalize-BJ0FEsU7.js → capitalize-3KLkrEtk.js} +1 -1
- package/dist/components/Alert/Alert.es.js +1 -1
- package/dist/components/Alert/index.es.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.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -0
- package/dist/components/FolderCard/FolderCard.d.ts +10 -0
- package/dist/components/FolderCard/FolderCard.es.js +77 -0
- package/dist/components/FolderCard/index.cjs.js +1 -0
- package/dist/components/FolderCard/index.d.ts +2 -0
- package/dist/components/FolderCard/index.es.js +4 -0
- package/dist/components/FolderCard/styles.cjs.js +1 -0
- package/dist/components/FolderCard/styles.d.ts +10 -0
- package/dist/components/FolderCard/styles.es.js +13 -0
- package/dist/components/FolderCard/types.cjs.js +1 -0
- package/dist/components/FolderCard/types.d.ts +11 -0
- package/dist/components/FolderCard/types.es.js +14 -0
- 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 +46 -45
- 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 +16 -18
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.es.js +299 -302
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.es.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.es.js +1 -1
- package/dist/components/stories/FolderCard.stories.cjs.js +1 -0
- package/dist/components/stories/FolderCard.stories.d.ts +7 -0
- package/dist/components/stories/FolderCard.stories.es.js +71 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- 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.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.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/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +4 -4
- 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/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-B62eln-G.js → createSvgIcon-K2ZAdASa.js} +6 -6
- package/dist/{dividerClasses-DjJZQ2Lt.js → dividerClasses-afsB3Yy1.js} +1 -1
- package/dist/{elementTypeAcceptingRef-B04tk6ag.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
- package/dist/{extendSxProp-CgS-3O19.js → extendSxProp-dlShX1xL.js} +1 -1
- package/dist/{generateUtilityClasses-EXBFO7eY.js → generateUtilityClasses-DotvgSDH.js} +9 -9
- package/dist/{index-DcwdJ8a_.js → index-B1u7G33_.js} +1 -1
- package/dist/{index-BZ7ldAwE.js → index-DTTmpNYg.js} +4 -4
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +299 -302
- package/dist/{memoTheme-DJWQ754x.js → memoTheme-CqmIydD-.js} +1 -1
- package/dist/{refType-Bpj8bod6.js → refType-C210ipRY.js} +1 -1
- package/dist/{resolveComponentProps-CIdMNno4.js → resolveComponentProps-CPmhKPdH.js} +1 -1
- package/dist/{useSlot-RbAtahZu.js → useSlot-GZu0V5wJ.js} +1 -1
- package/dist/useSlotProps-C9tsxDNg.js +45 -0
- package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
- package/dist/useTheme-BA7tMglY.js +11 -0
- package/dist/{useTheme-CUKf8NYA.js → useTheme-tdgDVH1p.js} +1 -1
- package/dist/{useThemeProps-Bxjrhw9q.js → useThemeProps-BQlPXzo3.js} +2 -2
- package/dist/useThemeProps-BTfGtNci.js +17 -0
- package/dist/utils-CFI_-FMV.cjs +1 -0
- package/dist/{utils-B2jSugkj.js → utils-CXhh35wP.js} +104 -76
- package/package.json +1 -2
- package/dist/Backdrop-DOdBqGqq.cjs +0 -1
- package/dist/Collapse-Bvxtq7n-.cjs +0 -1
- package/dist/Collapse-wS8A5zc5.js +0 -334
- package/dist/CustomTreeItem-dmAy1wfu.cjs +0 -3
- package/dist/CustomTreeItem-kFMLEWpp.js +0 -1003
- package/dist/DatePicker-64gpvkmk.cjs +0 -13
- package/dist/Delete-BQA9--_t.js +0 -8
- package/dist/Delete-DmeDAs0n.cjs +0 -1
- package/dist/FormLabel-XpwTqbs8.cjs +0 -2
- package/dist/Grow-wjlsaPJ-.cjs +0 -1
- package/dist/List-BTPrBGqY.js +0 -130
- package/dist/List-Bo4pzQqG.cjs +0 -1
- package/dist/ListItem-C9OfYRAP.js +0 -423
- package/dist/ListItem-CB4JyjSb.cjs +0 -1
- package/dist/ListItemText-B_hEVsaT.js +0 -928
- package/dist/ListItemText-Bjd08uk4.cjs +0 -1
- package/dist/Menu-XypIRgTl.cjs +0 -7
- package/dist/MenuItem-vb36Ljmd.cjs +0 -1
- package/dist/Popper-BaxEpkdE.cjs +0 -4
- package/dist/Portal-Bw9XOIah.cjs +0 -1
- package/dist/Tabs-Csp29aqN.cjs +0 -4
- package/dist/ToggleButtonGroup-Bpi3kmko.cjs +0 -140
- package/dist/Tooltip-DJmbLjU6.cjs +0 -4
- package/dist/components/TreeView/TreeView.cjs.js +0 -7
- package/dist/components/TreeView/TreeView.d.ts +0 -4
- package/dist/components/TreeView/TreeView.es.js +0 -1892
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +0 -1
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +0 -3
- package/dist/components/TreeView/components/CustomTreeItem.es.js +0 -9
- package/dist/components/TreeView/index.cjs.js +0 -1
- package/dist/components/TreeView/index.d.ts +0 -2
- package/dist/components/TreeView/index.es.js +0 -6
- package/dist/components/TreeView/style.cjs.js +0 -1
- package/dist/components/TreeView/style.d.ts +0 -12
- package/dist/components/TreeView/style.es.js +0 -24
- package/dist/components/TreeView/types.cjs.js +0 -1
- package/dist/components/TreeView/types.d.ts +0 -37
- package/dist/components/TreeView/types.es.js +0 -4
- package/dist/components/TreeView/utils.cjs.js +0 -1
- package/dist/components/TreeView/utils.d.ts +0 -6
- package/dist/components/TreeView/utils.es.js +0 -51
- package/dist/components/stories/TreeView.stories.cjs.js +0 -63
- package/dist/components/stories/TreeView.stories.d.ts +0 -12
- package/dist/components/stories/TreeView.stories.es.js +0 -663
- package/dist/getReactElementRef-CTRMtaOQ.cjs +0 -1
- package/dist/getReactElementRef-DjLvttrJ.js +0 -31
- package/dist/index-Cr54V0sz.cjs +0 -1
- package/dist/index-D_xl88AE.js +0 -22
- package/dist/isMuiElement-BzDAj3yJ.cjs +0 -1
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/listItemTextClasses-BCuJjsDp.cjs +0 -1
- package/dist/listItemTextClasses-Kxu3VILo.js +0 -9
- package/dist/useSlotProps-BTRhbYwP.cjs +0 -1
- package/dist/useSlotProps-U2Iu6E0j.js +0 -25
- package/dist/useTheme-Czi7oO55.js +0 -11
- package/dist/useThemeProps-v-SfXuGn.js +0 -17
- package/dist/utils-lBmb5bp_.cjs +0 -1
- package/dist/warning-C8W811fV.js +0 -11
- package/dist/warning-DMUNDgRg.cjs +0 -2
|
@@ -1,136 +1,254 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import { jsx as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { o as J } from "./
|
|
12
|
-
import {
|
|
13
|
-
import { d as ze } from "./debounce-46wSf_lW.js";
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { H as ee, I as oe, G as Y, P as e, Z as ye } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
|
+
import { u as Le, a as fe } from "./useSlotProps-C9tsxDNg.js";
|
|
4
|
+
import { u as te, s as V, c as ne, r as je } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
5
|
+
import { jsx as z, jsxs as ke } from "react/jsx-runtime";
|
|
6
|
+
import { i as Fe } from "./isHostComponent-kiaBvYVo.js";
|
|
7
|
+
import { u as de } from "./useSlot-GZu0V5wJ.js";
|
|
8
|
+
import { P as ze, i as Ke } from "./Paper-BiZq6EF2.js";
|
|
9
|
+
import { G as He } from "./Grow-DKgYCxiY.js";
|
|
10
|
+
import { o as Z } from "./ownerDocument-CUrv0DIK.js";
|
|
11
|
+
import { o as J } from "./ownerWindow-niciwP7I.js";
|
|
12
|
+
import { d as Ue } from "./debounce-46wSf_lW.js";
|
|
14
13
|
import { u as ve } from "./useForkRef-C_4o__cU.js";
|
|
15
|
-
import { b as
|
|
16
|
-
import { c as
|
|
17
|
-
import { r as
|
|
18
|
-
import { e as
|
|
19
|
-
import { H as
|
|
20
|
-
import { u as
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
import { b as Ve, M as _e } from "./Modal-DTJd7JJ6.js";
|
|
15
|
+
import { c as Ae } from "./chainPropTypes-D9lkm76m.js";
|
|
16
|
+
import { r as We } from "./refType-C210ipRY.js";
|
|
17
|
+
import { e as $e } from "./elementTypeAcceptingRef-5ESWTE79.js";
|
|
18
|
+
import { H as Q } from "./Portal-BByeByPq.js";
|
|
19
|
+
import { u as qe } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
20
|
+
const Pe = /* @__PURE__ */ s.createContext({});
|
|
21
|
+
process.env.NODE_ENV !== "production" && (Pe.displayName = "ListContext");
|
|
22
|
+
function Be(t) {
|
|
23
|
+
return oe("MuiList", t);
|
|
24
|
+
}
|
|
25
|
+
const wo = ee("MuiList", ["root", "padding", "dense", "subheader"]), Ge = (t) => {
|
|
26
|
+
const {
|
|
27
|
+
classes: o,
|
|
28
|
+
disablePadding: n,
|
|
29
|
+
dense: y,
|
|
30
|
+
subheader: g
|
|
31
|
+
} = t;
|
|
32
|
+
return ne({
|
|
33
|
+
root: ["root", !n && "padding", y && "dense", g && "subheader"]
|
|
34
|
+
}, Be, o);
|
|
35
|
+
}, Ye = V("ul", {
|
|
36
|
+
name: "MuiList",
|
|
37
|
+
slot: "Root",
|
|
38
|
+
overridesResolver: (t, o) => {
|
|
39
|
+
const {
|
|
40
|
+
ownerState: n
|
|
41
|
+
} = t;
|
|
42
|
+
return [o.root, !n.disablePadding && o.padding, n.dense && o.dense, n.subheader && o.subheader];
|
|
43
|
+
}
|
|
44
|
+
})({
|
|
45
|
+
listStyle: "none",
|
|
46
|
+
margin: 0,
|
|
47
|
+
padding: 0,
|
|
48
|
+
position: "relative",
|
|
49
|
+
variants: [{
|
|
50
|
+
props: ({
|
|
51
|
+
ownerState: t
|
|
52
|
+
}) => !t.disablePadding,
|
|
53
|
+
style: {
|
|
54
|
+
paddingTop: 8,
|
|
55
|
+
paddingBottom: 8
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
props: ({
|
|
59
|
+
ownerState: t
|
|
60
|
+
}) => t.subheader,
|
|
61
|
+
style: {
|
|
62
|
+
paddingTop: 0
|
|
63
|
+
}
|
|
64
|
+
}]
|
|
65
|
+
}), Te = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
66
|
+
const y = te({
|
|
67
|
+
props: o,
|
|
68
|
+
name: "MuiList"
|
|
69
|
+
}), {
|
|
70
|
+
children: g,
|
|
71
|
+
className: h,
|
|
72
|
+
component: b = "ul",
|
|
73
|
+
dense: a = !1,
|
|
74
|
+
disablePadding: m = !1,
|
|
75
|
+
subheader: E,
|
|
76
|
+
...O
|
|
77
|
+
} = y, S = s.useMemo(() => ({
|
|
78
|
+
dense: a
|
|
79
|
+
}), [a]), D = {
|
|
80
|
+
...y,
|
|
81
|
+
component: b,
|
|
82
|
+
dense: a,
|
|
83
|
+
disablePadding: m
|
|
84
|
+
}, i = Ge(D);
|
|
85
|
+
return /* @__PURE__ */ z(Pe.Provider, {
|
|
86
|
+
value: S,
|
|
87
|
+
children: /* @__PURE__ */ ke(Ye, {
|
|
88
|
+
as: b,
|
|
89
|
+
className: Y(i.root, h),
|
|
90
|
+
ref: n,
|
|
91
|
+
ownerState: D,
|
|
92
|
+
...O,
|
|
93
|
+
children: [E, g]
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
98
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
99
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
100
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
101
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
102
|
+
/**
|
|
103
|
+
* The content of the component.
|
|
104
|
+
*/
|
|
105
|
+
children: e.node,
|
|
106
|
+
/**
|
|
107
|
+
* Override or extend the styles applied to the component.
|
|
108
|
+
*/
|
|
109
|
+
classes: e.object,
|
|
110
|
+
/**
|
|
111
|
+
* @ignore
|
|
112
|
+
*/
|
|
113
|
+
className: e.string,
|
|
114
|
+
/**
|
|
115
|
+
* The component used for the root node.
|
|
116
|
+
* Either a string to use a HTML element or a component.
|
|
117
|
+
*/
|
|
118
|
+
component: e.elementType,
|
|
119
|
+
/**
|
|
120
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used for
|
|
121
|
+
* the list and list items.
|
|
122
|
+
* The prop is available to descendant components as the `dense` context.
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
dense: e.bool,
|
|
126
|
+
/**
|
|
127
|
+
* If `true`, vertical padding is removed from the list.
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
disablePadding: e.bool,
|
|
131
|
+
/**
|
|
132
|
+
* The content of the subheader, normally `ListSubheader`.
|
|
133
|
+
*/
|
|
134
|
+
subheader: e.node,
|
|
135
|
+
/**
|
|
136
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
137
|
+
*/
|
|
138
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
139
|
+
});
|
|
140
|
+
function X(t, o, n) {
|
|
23
141
|
return t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : n ? null : t.firstChild;
|
|
24
142
|
}
|
|
25
|
-
function
|
|
143
|
+
function he(t, o, n) {
|
|
26
144
|
return t === o ? n ? t.firstChild : t.lastChild : o && o.previousElementSibling ? o.previousElementSibling : n ? null : t.lastChild;
|
|
27
145
|
}
|
|
28
|
-
function
|
|
146
|
+
function Ee(t, o) {
|
|
29
147
|
if (o === void 0)
|
|
30
148
|
return !0;
|
|
31
149
|
let n = t.innerText;
|
|
32
150
|
return n === void 0 && (n = t.textContent), n = n.trim().toLowerCase(), n.length === 0 ? !1 : o.repeating ? n[0] === o.keys[0] : n.startsWith(o.keys.join(""));
|
|
33
151
|
}
|
|
34
|
-
function
|
|
35
|
-
let
|
|
36
|
-
for (;
|
|
37
|
-
if (
|
|
38
|
-
if (
|
|
152
|
+
function W(t, o, n, y, g, h) {
|
|
153
|
+
let b = !1, a = g(t, o, o ? n : !1);
|
|
154
|
+
for (; a; ) {
|
|
155
|
+
if (a === t.firstChild) {
|
|
156
|
+
if (b)
|
|
39
157
|
return !1;
|
|
40
|
-
|
|
158
|
+
b = !0;
|
|
41
159
|
}
|
|
42
|
-
const m =
|
|
43
|
-
if (!
|
|
44
|
-
|
|
160
|
+
const m = y ? !1 : a.disabled || a.getAttribute("aria-disabled") === "true";
|
|
161
|
+
if (!a.hasAttribute("tabindex") || !Ee(a, h) || m)
|
|
162
|
+
a = g(t, a, n);
|
|
45
163
|
else
|
|
46
|
-
return
|
|
164
|
+
return a.focus(), !0;
|
|
47
165
|
}
|
|
48
166
|
return !1;
|
|
49
167
|
}
|
|
50
|
-
const
|
|
168
|
+
const Me = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
51
169
|
const {
|
|
52
170
|
// private
|
|
53
171
|
// eslint-disable-next-line react/prop-types
|
|
54
|
-
actions:
|
|
55
|
-
autoFocus:
|
|
172
|
+
actions: y,
|
|
173
|
+
autoFocus: g = !1,
|
|
56
174
|
autoFocusItem: h = !1,
|
|
57
|
-
children:
|
|
58
|
-
className:
|
|
175
|
+
children: b,
|
|
176
|
+
className: a,
|
|
59
177
|
disabledItemsFocusable: m = !1,
|
|
60
|
-
disableListWrap:
|
|
61
|
-
onKeyDown:
|
|
62
|
-
variant:
|
|
63
|
-
...
|
|
64
|
-
} = o,
|
|
178
|
+
disableListWrap: E = !1,
|
|
179
|
+
onKeyDown: O,
|
|
180
|
+
variant: S = "selectedMenu",
|
|
181
|
+
...D
|
|
182
|
+
} = o, i = s.useRef(null), v = s.useRef({
|
|
65
183
|
keys: [],
|
|
66
184
|
repeating: !0,
|
|
67
185
|
previousKeyMatched: !0,
|
|
68
186
|
lastTime: null
|
|
69
187
|
});
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}, [
|
|
188
|
+
qe(() => {
|
|
189
|
+
g && i.current.focus();
|
|
190
|
+
}, [g]), s.useImperativeHandle(y, () => ({
|
|
73
191
|
adjustStyleForScrollbar: (r, {
|
|
74
|
-
direction:
|
|
192
|
+
direction: l
|
|
75
193
|
}) => {
|
|
76
|
-
const
|
|
77
|
-
if (r.clientHeight <
|
|
78
|
-
const
|
|
79
|
-
|
|
194
|
+
const f = !i.current.style.width;
|
|
195
|
+
if (r.clientHeight < i.current.clientHeight && f) {
|
|
196
|
+
const N = `${Ve(J(r))}px`;
|
|
197
|
+
i.current.style[l === "rtl" ? "paddingLeft" : "paddingRight"] = N, i.current.style.width = `calc(100% + ${N})`;
|
|
80
198
|
}
|
|
81
|
-
return
|
|
199
|
+
return i.current;
|
|
82
200
|
}
|
|
83
201
|
}), []);
|
|
84
|
-
const
|
|
85
|
-
const
|
|
202
|
+
const K = (r) => {
|
|
203
|
+
const l = i.current, f = r.key;
|
|
86
204
|
if (r.ctrlKey || r.metaKey || r.altKey) {
|
|
87
|
-
|
|
205
|
+
O && O(r);
|
|
88
206
|
return;
|
|
89
207
|
}
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
92
|
-
r.preventDefault(),
|
|
93
|
-
else if (
|
|
94
|
-
r.preventDefault(),
|
|
95
|
-
else if (
|
|
96
|
-
r.preventDefault(),
|
|
97
|
-
else if (
|
|
98
|
-
r.preventDefault(),
|
|
99
|
-
else if (
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
|
|
208
|
+
const R = Z(l).activeElement;
|
|
209
|
+
if (f === "ArrowDown")
|
|
210
|
+
r.preventDefault(), W(l, R, E, m, X);
|
|
211
|
+
else if (f === "ArrowUp")
|
|
212
|
+
r.preventDefault(), W(l, R, E, m, he);
|
|
213
|
+
else if (f === "Home")
|
|
214
|
+
r.preventDefault(), W(l, null, E, m, X);
|
|
215
|
+
else if (f === "End")
|
|
216
|
+
r.preventDefault(), W(l, null, E, m, he);
|
|
217
|
+
else if (f.length === 1) {
|
|
218
|
+
const p = v.current, M = f.toLowerCase(), L = performance.now();
|
|
219
|
+
p.keys.length > 0 && (L - p.lastTime > 500 ? (p.keys = [], p.repeating = !0, p.previousKeyMatched = !0) : p.repeating && M !== p.keys[0] && (p.repeating = !1)), p.lastTime = L, p.keys.push(M);
|
|
220
|
+
const x = R && !p.repeating && Ee(R, p);
|
|
221
|
+
p.previousKeyMatched && (x || W(l, R, !1, m, X, p)) ? r.preventDefault() : p.previousKeyMatched = !1;
|
|
104
222
|
}
|
|
105
|
-
|
|
106
|
-
}, j = ve(
|
|
107
|
-
let
|
|
108
|
-
|
|
109
|
-
if (!/* @__PURE__ */
|
|
110
|
-
|
|
223
|
+
O && O(r);
|
|
224
|
+
}, j = ve(i, n);
|
|
225
|
+
let c = -1;
|
|
226
|
+
s.Children.forEach(b, (r, l) => {
|
|
227
|
+
if (!/* @__PURE__ */ s.isValidElement(r)) {
|
|
228
|
+
c === l && (c += 1, c >= b.length && (c = -1));
|
|
111
229
|
return;
|
|
112
230
|
}
|
|
113
|
-
process.env.NODE_ENV !== "production" &&
|
|
114
|
-
`)), r.props.disabled || (
|
|
231
|
+
process.env.NODE_ENV !== "production" && ye.isFragment(r) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
232
|
+
`)), r.props.disabled || (S === "selectedMenu" && r.props.selected || c === -1) && (c = l), c === l && (r.props.disabled || r.props.muiSkipListHighlight || r.type.muiSkipListHighlight) && (c += 1, c >= b.length && (c = -1));
|
|
115
233
|
});
|
|
116
|
-
const
|
|
117
|
-
if (
|
|
118
|
-
const
|
|
119
|
-
return h && (
|
|
234
|
+
const C = s.Children.map(b, (r, l) => {
|
|
235
|
+
if (l === c) {
|
|
236
|
+
const f = {};
|
|
237
|
+
return h && (f.autoFocus = !0), r.props.tabIndex === void 0 && S === "selectedMenu" && (f.tabIndex = 0), /* @__PURE__ */ s.cloneElement(r, f);
|
|
120
238
|
}
|
|
121
239
|
return r;
|
|
122
240
|
});
|
|
123
|
-
return /* @__PURE__ */
|
|
241
|
+
return /* @__PURE__ */ z(Te, {
|
|
124
242
|
role: "menu",
|
|
125
243
|
ref: j,
|
|
126
|
-
className:
|
|
127
|
-
onKeyDown:
|
|
128
|
-
tabIndex:
|
|
129
|
-
...
|
|
130
|
-
children:
|
|
244
|
+
className: a,
|
|
245
|
+
onKeyDown: K,
|
|
246
|
+
tabIndex: g ? 0 : -1,
|
|
247
|
+
...D,
|
|
248
|
+
children: C
|
|
131
249
|
});
|
|
132
250
|
});
|
|
133
|
-
process.env.NODE_ENV !== "production" && (
|
|
251
|
+
process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
134
252
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
135
253
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
136
254
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -175,37 +293,37 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
|
|
|
175
293
|
*/
|
|
176
294
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
177
295
|
});
|
|
178
|
-
function
|
|
179
|
-
return
|
|
296
|
+
function Xe(t) {
|
|
297
|
+
return oe("MuiPopover", t);
|
|
180
298
|
}
|
|
181
|
-
|
|
182
|
-
function
|
|
299
|
+
ee("MuiPopover", ["root", "paper"]);
|
|
300
|
+
function me(t, o) {
|
|
183
301
|
let n = 0;
|
|
184
302
|
return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
|
|
185
303
|
}
|
|
186
|
-
function
|
|
304
|
+
function be(t, o) {
|
|
187
305
|
let n = 0;
|
|
188
306
|
return typeof o == "number" ? n = o : o === "center" ? n = t.width / 2 : o === "right" && (n = t.width), n;
|
|
189
307
|
}
|
|
190
|
-
function
|
|
308
|
+
function ge(t) {
|
|
191
309
|
return [t.horizontal, t.vertical].map((o) => typeof o == "number" ? `${o}px` : o).join(" ");
|
|
192
310
|
}
|
|
193
311
|
function G(t) {
|
|
194
312
|
return typeof t == "function" ? t() : t;
|
|
195
313
|
}
|
|
196
|
-
const
|
|
314
|
+
const Ze = (t) => {
|
|
197
315
|
const {
|
|
198
316
|
classes: o
|
|
199
317
|
} = t;
|
|
200
|
-
return
|
|
318
|
+
return ne({
|
|
201
319
|
root: ["root"],
|
|
202
320
|
paper: ["paper"]
|
|
203
|
-
},
|
|
204
|
-
},
|
|
321
|
+
}, Xe, o);
|
|
322
|
+
}, Je = V(_e, {
|
|
205
323
|
name: "MuiPopover",
|
|
206
324
|
slot: "Root",
|
|
207
325
|
overridesResolver: (t, o) => o.root
|
|
208
|
-
})({}),
|
|
326
|
+
})({}), Oe = V(ze, {
|
|
209
327
|
name: "MuiPopover",
|
|
210
328
|
slot: "Paper",
|
|
211
329
|
overridesResolver: (t, o) => o.paper
|
|
@@ -221,192 +339,192 @@ const $e = (t) => {
|
|
|
221
339
|
maxHeight: "calc(100% - 32px)",
|
|
222
340
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
223
341
|
outline: 0
|
|
224
|
-
}),
|
|
225
|
-
const
|
|
342
|
+
}), Re = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
343
|
+
const y = te({
|
|
226
344
|
props: o,
|
|
227
345
|
name: "MuiPopover"
|
|
228
346
|
}), {
|
|
229
|
-
action:
|
|
347
|
+
action: g,
|
|
230
348
|
anchorEl: h,
|
|
231
|
-
anchorOrigin:
|
|
349
|
+
anchorOrigin: b = {
|
|
232
350
|
vertical: "top",
|
|
233
351
|
horizontal: "left"
|
|
234
352
|
},
|
|
235
|
-
anchorPosition:
|
|
353
|
+
anchorPosition: a,
|
|
236
354
|
anchorReference: m = "anchorEl",
|
|
237
|
-
children:
|
|
238
|
-
className:
|
|
239
|
-
container:
|
|
240
|
-
elevation:
|
|
241
|
-
marginThreshold:
|
|
242
|
-
open:
|
|
243
|
-
PaperProps:
|
|
355
|
+
children: E,
|
|
356
|
+
className: O,
|
|
357
|
+
container: S,
|
|
358
|
+
elevation: D = 8,
|
|
359
|
+
marginThreshold: i = 16,
|
|
360
|
+
open: v,
|
|
361
|
+
PaperProps: K = {},
|
|
244
362
|
slots: j = {},
|
|
245
|
-
slotProps:
|
|
246
|
-
transformOrigin:
|
|
363
|
+
slotProps: c = {},
|
|
364
|
+
transformOrigin: C = {
|
|
247
365
|
vertical: "top",
|
|
248
366
|
horizontal: "left"
|
|
249
367
|
},
|
|
250
|
-
TransitionComponent: r =
|
|
251
|
-
transitionDuration:
|
|
368
|
+
TransitionComponent: r = He,
|
|
369
|
+
transitionDuration: l = "auto",
|
|
252
370
|
TransitionProps: {
|
|
253
|
-
onEntering:
|
|
254
|
-
...
|
|
371
|
+
onEntering: f,
|
|
372
|
+
...N
|
|
255
373
|
} = {},
|
|
256
|
-
disableScrollLock:
|
|
257
|
-
...
|
|
258
|
-
} =
|
|
259
|
-
...
|
|
260
|
-
anchorOrigin:
|
|
374
|
+
disableScrollLock: R = !1,
|
|
375
|
+
...p
|
|
376
|
+
} = y, M = (c == null ? void 0 : c.paper) ?? K, L = s.useRef(), x = {
|
|
377
|
+
...y,
|
|
378
|
+
anchorOrigin: b,
|
|
261
379
|
anchorReference: m,
|
|
262
|
-
elevation:
|
|
263
|
-
marginThreshold:
|
|
264
|
-
externalPaperSlotProps:
|
|
265
|
-
transformOrigin:
|
|
380
|
+
elevation: D,
|
|
381
|
+
marginThreshold: i,
|
|
382
|
+
externalPaperSlotProps: M,
|
|
383
|
+
transformOrigin: C,
|
|
266
384
|
TransitionComponent: r,
|
|
267
|
-
transitionDuration:
|
|
268
|
-
TransitionProps:
|
|
269
|
-
},
|
|
385
|
+
transitionDuration: l,
|
|
386
|
+
TransitionProps: N
|
|
387
|
+
}, _ = Ze(x), $ = s.useCallback(() => {
|
|
270
388
|
if (m === "anchorPosition")
|
|
271
|
-
return process.env.NODE_ENV !== "production" && (
|
|
272
|
-
const
|
|
389
|
+
return process.env.NODE_ENV !== "production" && (a || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), a;
|
|
390
|
+
const u = G(h), d = u && u.nodeType === 1 ? u : Z(L.current).body, T = d.getBoundingClientRect();
|
|
273
391
|
if (process.env.NODE_ENV !== "production") {
|
|
274
|
-
const F =
|
|
392
|
+
const F = d.getBoundingClientRect();
|
|
275
393
|
process.env.NODE_ENV !== "test" && F.top === 0 && F.left === 0 && F.right === 0 && F.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(`
|
|
276
394
|
`));
|
|
277
395
|
}
|
|
278
396
|
return {
|
|
279
|
-
top:
|
|
280
|
-
left:
|
|
397
|
+
top: T.top + me(T, b.vertical),
|
|
398
|
+
left: T.left + be(T, b.horizontal)
|
|
281
399
|
};
|
|
282
|
-
}, [h,
|
|
283
|
-
vertical:
|
|
284
|
-
horizontal:
|
|
285
|
-
}), [
|
|
286
|
-
const
|
|
287
|
-
width:
|
|
288
|
-
height:
|
|
289
|
-
},
|
|
400
|
+
}, [h, b.horizontal, b.vertical, a, m]), q = s.useCallback((u) => ({
|
|
401
|
+
vertical: me(u, C.vertical),
|
|
402
|
+
horizontal: be(u, C.horizontal)
|
|
403
|
+
}), [C.horizontal, C.vertical]), B = s.useCallback((u) => {
|
|
404
|
+
const d = {
|
|
405
|
+
width: u.offsetWidth,
|
|
406
|
+
height: u.offsetHeight
|
|
407
|
+
}, T = q(d);
|
|
290
408
|
if (m === "none")
|
|
291
409
|
return {
|
|
292
410
|
top: null,
|
|
293
411
|
left: null,
|
|
294
|
-
transformOrigin:
|
|
412
|
+
transformOrigin: ge(T)
|
|
295
413
|
};
|
|
296
|
-
const F =
|
|
297
|
-
let
|
|
298
|
-
const
|
|
299
|
-
if (
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
} else if (
|
|
303
|
-
const
|
|
304
|
-
|
|
414
|
+
const F = $();
|
|
415
|
+
let H = F.top - T.vertical, U = F.left - T.horizontal;
|
|
416
|
+
const le = H + d.height, ce = U + d.width, pe = J(G(h)), A = pe.innerHeight - i, ue = pe.innerWidth - i;
|
|
417
|
+
if (i !== null && H < i) {
|
|
418
|
+
const w = H - i;
|
|
419
|
+
H -= w, T.vertical += w;
|
|
420
|
+
} else if (i !== null && le > A) {
|
|
421
|
+
const w = le - A;
|
|
422
|
+
H -= w, T.vertical += w;
|
|
305
423
|
}
|
|
306
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
307
|
-
`)),
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
} else if (
|
|
311
|
-
const
|
|
312
|
-
|
|
424
|
+
if (process.env.NODE_ENV !== "production" && d.height > A && d.height && A && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${d.height - A}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
425
|
+
`)), i !== null && U < i) {
|
|
426
|
+
const w = U - i;
|
|
427
|
+
U -= w, T.horizontal += w;
|
|
428
|
+
} else if (ce > ue) {
|
|
429
|
+
const w = ce - ue;
|
|
430
|
+
U -= w, T.horizontal += w;
|
|
313
431
|
}
|
|
314
432
|
return {
|
|
315
|
-
top: `${Math.round(
|
|
316
|
-
left: `${Math.round(
|
|
317
|
-
transformOrigin:
|
|
433
|
+
top: `${Math.round(H)}px`,
|
|
434
|
+
left: `${Math.round(U)}px`,
|
|
435
|
+
transformOrigin: ge(T)
|
|
318
436
|
};
|
|
319
|
-
}, [h, m, q,
|
|
320
|
-
const
|
|
321
|
-
if (!
|
|
437
|
+
}, [h, m, $, q, i]), [P, k] = s.useState(v), I = s.useCallback(() => {
|
|
438
|
+
const u = L.current;
|
|
439
|
+
if (!u)
|
|
322
440
|
return;
|
|
323
|
-
const
|
|
324
|
-
|
|
441
|
+
const d = B(u);
|
|
442
|
+
d.top !== null && u.style.setProperty("top", d.top), d.left !== null && (u.style.left = d.left), u.style.transformOrigin = d.transformOrigin, k(!0);
|
|
325
443
|
}, [B]);
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
|
|
329
|
-
},
|
|
444
|
+
s.useEffect(() => (R && window.addEventListener("scroll", I), () => window.removeEventListener("scroll", I)), [h, R, I]);
|
|
445
|
+
const we = (u, d) => {
|
|
446
|
+
f && f(u, d), I();
|
|
447
|
+
}, Ce = () => {
|
|
330
448
|
k(!1);
|
|
331
449
|
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}),
|
|
450
|
+
s.useEffect(() => {
|
|
451
|
+
v && I();
|
|
452
|
+
}), s.useImperativeHandle(g, () => v ? {
|
|
335
453
|
updatePosition: () => {
|
|
336
|
-
|
|
454
|
+
I();
|
|
337
455
|
}
|
|
338
|
-
} : null, [
|
|
339
|
-
if (!
|
|
456
|
+
} : null, [v, I]), s.useEffect(() => {
|
|
457
|
+
if (!v)
|
|
340
458
|
return;
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
}),
|
|
344
|
-
return
|
|
345
|
-
|
|
459
|
+
const u = Ue(() => {
|
|
460
|
+
I();
|
|
461
|
+
}), d = J(h);
|
|
462
|
+
return d.addEventListener("resize", u), () => {
|
|
463
|
+
u.clear(), d.removeEventListener("resize", u);
|
|
346
464
|
};
|
|
347
|
-
}, [h,
|
|
348
|
-
let
|
|
349
|
-
|
|
350
|
-
const
|
|
465
|
+
}, [h, v, I]);
|
|
466
|
+
let re = l;
|
|
467
|
+
l === "auto" && !r.muiSupportAuto && (re = void 0);
|
|
468
|
+
const Ne = S || (h ? Z(G(h)).body : void 0), se = {
|
|
351
469
|
slots: j,
|
|
352
470
|
slotProps: {
|
|
353
|
-
...
|
|
354
|
-
paper:
|
|
471
|
+
...c,
|
|
472
|
+
paper: M
|
|
355
473
|
}
|
|
356
|
-
}, [
|
|
357
|
-
elementType:
|
|
358
|
-
externalForwardedProps:
|
|
474
|
+
}, [xe, ie] = de("paper", {
|
|
475
|
+
elementType: Oe,
|
|
476
|
+
externalForwardedProps: se,
|
|
359
477
|
additionalProps: {
|
|
360
|
-
elevation:
|
|
361
|
-
className:
|
|
362
|
-
style:
|
|
363
|
-
...
|
|
478
|
+
elevation: D,
|
|
479
|
+
className: Y(_.paper, M == null ? void 0 : M.className),
|
|
480
|
+
style: P ? M.style : {
|
|
481
|
+
...M.style,
|
|
364
482
|
opacity: 0
|
|
365
483
|
}
|
|
366
484
|
},
|
|
367
|
-
ownerState:
|
|
368
|
-
}), [
|
|
369
|
-
slotProps:
|
|
370
|
-
...
|
|
371
|
-
}] =
|
|
372
|
-
elementType:
|
|
373
|
-
externalForwardedProps:
|
|
485
|
+
ownerState: x
|
|
486
|
+
}), [ae, {
|
|
487
|
+
slotProps: Se,
|
|
488
|
+
...De
|
|
489
|
+
}] = de("root", {
|
|
490
|
+
elementType: Je,
|
|
491
|
+
externalForwardedProps: se,
|
|
374
492
|
additionalProps: {
|
|
375
493
|
slotProps: {
|
|
376
494
|
backdrop: {
|
|
377
495
|
invisible: !0
|
|
378
496
|
}
|
|
379
497
|
},
|
|
380
|
-
container:
|
|
381
|
-
open:
|
|
498
|
+
container: Ne,
|
|
499
|
+
open: v
|
|
382
500
|
},
|
|
383
|
-
ownerState:
|
|
384
|
-
className:
|
|
385
|
-
}),
|
|
386
|
-
return /* @__PURE__ */
|
|
387
|
-
...
|
|
388
|
-
...!
|
|
389
|
-
slotProps:
|
|
390
|
-
disableScrollLock:
|
|
501
|
+
ownerState: x,
|
|
502
|
+
className: Y(_.root, O)
|
|
503
|
+
}), Ie = ve(L, ie.ref);
|
|
504
|
+
return /* @__PURE__ */ z(ae, {
|
|
505
|
+
...De,
|
|
506
|
+
...!Fe(ae) && {
|
|
507
|
+
slotProps: Se,
|
|
508
|
+
disableScrollLock: R
|
|
391
509
|
},
|
|
392
|
-
...
|
|
510
|
+
...p,
|
|
393
511
|
ref: n,
|
|
394
|
-
children: /* @__PURE__ */
|
|
512
|
+
children: /* @__PURE__ */ z(r, {
|
|
395
513
|
appear: !0,
|
|
396
|
-
in:
|
|
397
|
-
onEntering:
|
|
398
|
-
onExited:
|
|
399
|
-
timeout:
|
|
400
|
-
...
|
|
401
|
-
children: /* @__PURE__ */
|
|
402
|
-
...
|
|
403
|
-
ref:
|
|
404
|
-
children:
|
|
514
|
+
in: v,
|
|
515
|
+
onEntering: we,
|
|
516
|
+
onExited: Ce,
|
|
517
|
+
timeout: re,
|
|
518
|
+
...N,
|
|
519
|
+
children: /* @__PURE__ */ z(xe, {
|
|
520
|
+
...ie,
|
|
521
|
+
ref: Ie,
|
|
522
|
+
children: E
|
|
405
523
|
})
|
|
406
524
|
})
|
|
407
525
|
});
|
|
408
526
|
});
|
|
409
|
-
process.env.NODE_ENV !== "production" && (
|
|
527
|
+
process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
410
528
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
411
529
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
412
530
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -415,13 +533,13 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
415
533
|
* A ref for imperative actions.
|
|
416
534
|
* It currently only supports updatePosition() action.
|
|
417
535
|
*/
|
|
418
|
-
action:
|
|
536
|
+
action: We,
|
|
419
537
|
/**
|
|
420
538
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
421
539
|
* or a function that returns either.
|
|
422
540
|
* It's used to set the position of the popover.
|
|
423
541
|
*/
|
|
424
|
-
anchorEl:
|
|
542
|
+
anchorEl: Ae(e.oneOfType([Q, e.func]), (t) => {
|
|
425
543
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
426
544
|
const o = G(t.anchorEl);
|
|
427
545
|
if (o && o.nodeType === 1) {
|
|
@@ -505,7 +623,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
505
623
|
* By default, it uses the body of the anchorEl's top-level document object,
|
|
506
624
|
* so it's simply `document.body` most of the time.
|
|
507
625
|
*/
|
|
508
|
-
container: e.oneOfType([
|
|
626
|
+
container: e.oneOfType([Q, e.func]),
|
|
509
627
|
/**
|
|
510
628
|
* Disable the scroll lock behavior.
|
|
511
629
|
* @default false
|
|
@@ -515,7 +633,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
515
633
|
* The elevation of the popover.
|
|
516
634
|
* @default 8
|
|
517
635
|
*/
|
|
518
|
-
elevation:
|
|
636
|
+
elevation: Ke,
|
|
519
637
|
/**
|
|
520
638
|
* Specifies how close to the edge of the window the popover can appear.
|
|
521
639
|
* If null, the popover will not be constrained by the window.
|
|
@@ -540,7 +658,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
540
658
|
* @default {}
|
|
541
659
|
*/
|
|
542
660
|
PaperProps: e.shape({
|
|
543
|
-
component:
|
|
661
|
+
component: $e
|
|
544
662
|
}),
|
|
545
663
|
/**
|
|
546
664
|
* The props used for each slot inside.
|
|
@@ -600,30 +718,30 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
600
718
|
*/
|
|
601
719
|
TransitionProps: e.object
|
|
602
720
|
});
|
|
603
|
-
function
|
|
604
|
-
return
|
|
721
|
+
function Qe(t) {
|
|
722
|
+
return oe("MuiMenu", t);
|
|
605
723
|
}
|
|
606
|
-
const
|
|
724
|
+
const Co = ee("MuiMenu", ["root", "paper", "list"]), eo = {
|
|
607
725
|
vertical: "top",
|
|
608
726
|
horizontal: "right"
|
|
609
|
-
},
|
|
727
|
+
}, oo = {
|
|
610
728
|
vertical: "top",
|
|
611
729
|
horizontal: "left"
|
|
612
|
-
},
|
|
730
|
+
}, to = (t) => {
|
|
613
731
|
const {
|
|
614
732
|
classes: o
|
|
615
733
|
} = t;
|
|
616
|
-
return
|
|
734
|
+
return ne({
|
|
617
735
|
root: ["root"],
|
|
618
736
|
paper: ["paper"],
|
|
619
737
|
list: ["list"]
|
|
620
|
-
},
|
|
621
|
-
},
|
|
622
|
-
shouldForwardProp: (t) =>
|
|
738
|
+
}, Qe, o);
|
|
739
|
+
}, no = V(Re, {
|
|
740
|
+
shouldForwardProp: (t) => je(t) || t === "classes",
|
|
623
741
|
name: "MuiMenu",
|
|
624
742
|
slot: "Root",
|
|
625
743
|
overridesResolver: (t, o) => o.root
|
|
626
|
-
})({}),
|
|
744
|
+
})({}), ro = V(Oe, {
|
|
627
745
|
name: "MuiMenu",
|
|
628
746
|
slot: "Paper",
|
|
629
747
|
overridesResolver: (t, o) => o.paper
|
|
@@ -634,107 +752,107 @@ const Mo = ge("MuiMenu", ["root", "paper", "list"]), Ye = {
|
|
|
634
752
|
maxHeight: "calc(100% - 96px)",
|
|
635
753
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
636
754
|
WebkitOverflowScrolling: "touch"
|
|
637
|
-
}),
|
|
755
|
+
}), so = V(Me, {
|
|
638
756
|
name: "MuiMenu",
|
|
639
757
|
slot: "List",
|
|
640
758
|
overridesResolver: (t, o) => o.list
|
|
641
759
|
})({
|
|
642
760
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
643
761
|
outline: 0
|
|
644
|
-
}),
|
|
645
|
-
const
|
|
762
|
+
}), io = /* @__PURE__ */ s.forwardRef(function(o, n) {
|
|
763
|
+
const y = te({
|
|
646
764
|
props: o,
|
|
647
765
|
name: "MuiMenu"
|
|
648
766
|
}), {
|
|
649
|
-
autoFocus:
|
|
767
|
+
autoFocus: g = !0,
|
|
650
768
|
children: h,
|
|
651
|
-
className:
|
|
652
|
-
disableAutoFocusItem:
|
|
769
|
+
className: b,
|
|
770
|
+
disableAutoFocusItem: a = !1,
|
|
653
771
|
MenuListProps: m = {},
|
|
654
|
-
onClose:
|
|
655
|
-
open:
|
|
656
|
-
PaperProps:
|
|
657
|
-
PopoverClasses:
|
|
658
|
-
transitionDuration:
|
|
772
|
+
onClose: E,
|
|
773
|
+
open: O,
|
|
774
|
+
PaperProps: S = {},
|
|
775
|
+
PopoverClasses: D,
|
|
776
|
+
transitionDuration: i = "auto",
|
|
659
777
|
TransitionProps: {
|
|
660
|
-
onEntering:
|
|
661
|
-
...
|
|
778
|
+
onEntering: v,
|
|
779
|
+
...K
|
|
662
780
|
} = {},
|
|
663
781
|
variant: j = "selectedMenu",
|
|
664
|
-
slots:
|
|
665
|
-
slotProps:
|
|
782
|
+
slots: c = {},
|
|
783
|
+
slotProps: C = {},
|
|
666
784
|
...r
|
|
667
|
-
} =
|
|
668
|
-
...
|
|
669
|
-
autoFocus:
|
|
670
|
-
disableAutoFocusItem:
|
|
785
|
+
} = y, l = Le(), f = {
|
|
786
|
+
...y,
|
|
787
|
+
autoFocus: g,
|
|
788
|
+
disableAutoFocusItem: a,
|
|
671
789
|
MenuListProps: m,
|
|
672
|
-
onEntering:
|
|
673
|
-
PaperProps:
|
|
674
|
-
transitionDuration:
|
|
675
|
-
TransitionProps:
|
|
790
|
+
onEntering: v,
|
|
791
|
+
PaperProps: S,
|
|
792
|
+
transitionDuration: i,
|
|
793
|
+
TransitionProps: K,
|
|
676
794
|
variant: j
|
|
677
|
-
},
|
|
678
|
-
|
|
679
|
-
direction:
|
|
680
|
-
}),
|
|
681
|
-
},
|
|
682
|
-
|
|
795
|
+
}, N = to(f), R = g && !a && O, p = s.useRef(null), M = (P, k) => {
|
|
796
|
+
p.current && p.current.adjustStyleForScrollbar(P, {
|
|
797
|
+
direction: l ? "rtl" : "ltr"
|
|
798
|
+
}), v && v(P, k);
|
|
799
|
+
}, L = (P) => {
|
|
800
|
+
P.key === "Tab" && (P.preventDefault(), E && E(P, "tabKeyDown"));
|
|
683
801
|
};
|
|
684
|
-
let
|
|
685
|
-
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
`)),
|
|
802
|
+
let x = -1;
|
|
803
|
+
s.Children.map(h, (P, k) => {
|
|
804
|
+
/* @__PURE__ */ s.isValidElement(P) && (process.env.NODE_ENV !== "production" && ye.isFragment(P) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
805
|
+
`)), P.props.disabled || (j === "selectedMenu" && P.props.selected || x === -1) && (x = k));
|
|
688
806
|
});
|
|
689
|
-
const
|
|
690
|
-
elementType:
|
|
691
|
-
externalSlotProps:
|
|
692
|
-
ownerState:
|
|
693
|
-
className: [
|
|
694
|
-
}), B =
|
|
695
|
-
elementType:
|
|
696
|
-
externalSlotProps:
|
|
697
|
-
ownerState:
|
|
698
|
-
className:
|
|
807
|
+
const _ = c.paper ?? ro, $ = C.paper ?? S, q = fe({
|
|
808
|
+
elementType: c.root,
|
|
809
|
+
externalSlotProps: C.root,
|
|
810
|
+
ownerState: f,
|
|
811
|
+
className: [N.root, b]
|
|
812
|
+
}), B = fe({
|
|
813
|
+
elementType: _,
|
|
814
|
+
externalSlotProps: $,
|
|
815
|
+
ownerState: f,
|
|
816
|
+
className: N.paper
|
|
699
817
|
});
|
|
700
|
-
return /* @__PURE__ */
|
|
701
|
-
onClose:
|
|
818
|
+
return /* @__PURE__ */ z(no, {
|
|
819
|
+
onClose: E,
|
|
702
820
|
anchorOrigin: {
|
|
703
821
|
vertical: "bottom",
|
|
704
|
-
horizontal:
|
|
822
|
+
horizontal: l ? "right" : "left"
|
|
705
823
|
},
|
|
706
|
-
transformOrigin:
|
|
824
|
+
transformOrigin: l ? eo : oo,
|
|
707
825
|
slots: {
|
|
708
|
-
paper:
|
|
709
|
-
root:
|
|
826
|
+
paper: _,
|
|
827
|
+
root: c.root
|
|
710
828
|
},
|
|
711
829
|
slotProps: {
|
|
712
|
-
root:
|
|
830
|
+
root: q,
|
|
713
831
|
paper: B
|
|
714
832
|
},
|
|
715
|
-
open:
|
|
833
|
+
open: O,
|
|
716
834
|
ref: n,
|
|
717
|
-
transitionDuration:
|
|
835
|
+
transitionDuration: i,
|
|
718
836
|
TransitionProps: {
|
|
719
|
-
onEntering:
|
|
720
|
-
...
|
|
837
|
+
onEntering: M,
|
|
838
|
+
...K
|
|
721
839
|
},
|
|
722
|
-
ownerState:
|
|
840
|
+
ownerState: f,
|
|
723
841
|
...r,
|
|
724
|
-
classes:
|
|
725
|
-
children: /* @__PURE__ */
|
|
726
|
-
onKeyDown:
|
|
727
|
-
actions:
|
|
728
|
-
autoFocus:
|
|
729
|
-
autoFocusItem:
|
|
842
|
+
classes: D,
|
|
843
|
+
children: /* @__PURE__ */ z(so, {
|
|
844
|
+
onKeyDown: L,
|
|
845
|
+
actions: p,
|
|
846
|
+
autoFocus: g && (x === -1 || a),
|
|
847
|
+
autoFocusItem: R,
|
|
730
848
|
variant: j,
|
|
731
849
|
...m,
|
|
732
|
-
className:
|
|
850
|
+
className: Y(N.list, m.className),
|
|
733
851
|
children: h
|
|
734
852
|
})
|
|
735
853
|
});
|
|
736
854
|
});
|
|
737
|
-
process.env.NODE_ENV !== "production" && (
|
|
855
|
+
process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
738
856
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
739
857
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
740
858
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -743,7 +861,7 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
743
861
|
* An HTML element, or a function that returns one.
|
|
744
862
|
* It's used to set the position of the menu.
|
|
745
863
|
*/
|
|
746
|
-
anchorEl: e.oneOfType([
|
|
864
|
+
anchorEl: e.oneOfType([Q, e.func]),
|
|
747
865
|
/**
|
|
748
866
|
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
749
867
|
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
@@ -838,7 +956,11 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
|
|
|
838
956
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
839
957
|
});
|
|
840
958
|
export {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
959
|
+
Te as L,
|
|
960
|
+
io as M,
|
|
961
|
+
Qe as a,
|
|
962
|
+
Pe as b,
|
|
963
|
+
Be as g,
|
|
964
|
+
wo as l,
|
|
965
|
+
Co as m
|
|
844
966
|
};
|