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