@hybridcore/ui 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
- package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
- package/dist/Checkbox-DP6_qp1v.js +469 -0
- package/dist/Collapse-9egEADkh.js +296 -0
- package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
- package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
- package/dist/FormControlLabel-j_atSYQA.js +827 -0
- package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
- package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
- package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
- package/dist/ListItem-BFDUUjHt.js +428 -0
- package/dist/MenuItem-BejUFNIP.js +233 -0
- package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
- package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
- package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
- package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
- package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
- package/dist/components/card/index.js +5 -5
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/index.js +34 -0
- package/dist/components/collapsible-card/style.js +575 -0
- package/dist/components/confirm/dialog.js +5 -5
- package/dist/components/container/index.js +6 -6
- package/dist/components/context-menu/index.js +191 -603
- package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +2 -2
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/helpers/ol.js +2 -2
- package/dist/components/map/index.js +2 -2
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +89 -6
- package/dist/components/search-input/index.js +3 -3
- package/dist/components/template-property-filters/index.js +78 -0
- package/dist/components/template-property-filters/property.js +7019 -0
- package/dist/components/tree-select/index.js +14 -13
- package/dist/components/treeview-filter/index.js +263 -328
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
- package/dist/createSvgIcon-R_PakhKf.js +213 -0
- package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
- package/dist/index-C7W2wuUG.js +609 -0
- package/dist/index-DHnXB0CB.js +287 -0
- package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
- package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
- package/dist/main.d.ts +138 -0
- package/dist/main.js +1 -1
- package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
- package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
- package/dist/styled-CHMAYxVs.js +142 -0
- package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
- package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
- package/dist/useThemeProps-D4or2IlT.js +62 -0
- package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
- package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
- package/package.json +1 -1
- package/dist/Checkbox-DostZSwR.js +0 -673
- package/dist/index-Bw_m9ult.js +0 -1105
- package/dist/index-wW2D1aTG.js +0 -957
- package/dist/styled-C43K9x7T.js +0 -229
|
@@ -1,50 +1,43 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { P as t } from "../../createTheme-
|
|
4
|
-
import { B as
|
|
5
|
-
import { o as
|
|
6
|
-
import { e as
|
|
7
|
-
import { L,
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { T as
|
|
14
|
-
|
|
15
|
-
return q("MuiListItem", e);
|
|
16
|
-
}
|
|
17
|
-
const P = Y("MuiListItem", ["root", "container", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "padding", "button", "secondaryAction", "selected"]);
|
|
18
|
-
function Re(e) {
|
|
19
|
-
return q("MuiListItemButton", e);
|
|
20
|
-
}
|
|
21
|
-
const E = Y("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]), Ne = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"], Pe = (e, o) => {
|
|
1
|
+
import { jsx as y, jsxs as D, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { P as t } from "../../createTheme-oOCi1S_n.js";
|
|
4
|
+
import { B as W, b as z, a as V, c as H } from "../../ButtonBase-C7CHOX3y.js";
|
|
5
|
+
import { o as k } from "../../ownerDocument-CUrv0DIK.js";
|
|
6
|
+
import { e as q, a as X } from "../../exactProp-DhXxfU8X.js";
|
|
7
|
+
import { L, a as Y } from "../../List-CgBXAAKA.js";
|
|
8
|
+
import { l as T, g as J, L as K } from "../../ListItem-BFDUUjHt.js";
|
|
9
|
+
import { a as b, _ as P } from "../../extends-C3382pL0.js";
|
|
10
|
+
import { u as $, c as R, a as w } from "../../chainPropTypes-BmidnkZm.js";
|
|
11
|
+
import { s as B, r as Q, a as C } from "../../styled-Wx2vv4j8.js";
|
|
12
|
+
import { g as Z, l as S, b as ee } from "../../listItemTextClasses-CaI8l2PD.js";
|
|
13
|
+
import { T as E } from "../../Typography-Bjo-B13o.js";
|
|
14
|
+
const te = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"], oe = (e, o) => {
|
|
22
15
|
const {
|
|
23
16
|
ownerState: s
|
|
24
17
|
} = e;
|
|
25
18
|
return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters];
|
|
26
|
-
},
|
|
19
|
+
}, se = (e) => {
|
|
27
20
|
const {
|
|
28
21
|
alignItems: o,
|
|
29
22
|
classes: s,
|
|
30
23
|
dense: n,
|
|
31
|
-
disabled:
|
|
32
|
-
disableGutters:
|
|
33
|
-
divider:
|
|
34
|
-
selected:
|
|
35
|
-
} = e,
|
|
36
|
-
root: ["root", n && "dense", !
|
|
37
|
-
},
|
|
38
|
-
return
|
|
39
|
-
},
|
|
40
|
-
shouldForwardProp: (e) =>
|
|
24
|
+
disabled: p,
|
|
25
|
+
disableGutters: c,
|
|
26
|
+
divider: l,
|
|
27
|
+
selected: a
|
|
28
|
+
} = e, m = w({
|
|
29
|
+
root: ["root", n && "dense", !c && "gutters", l && "divider", p && "disabled", o === "flex-start" && "alignItemsFlexStart", a && "selected"]
|
|
30
|
+
}, J, s);
|
|
31
|
+
return b({}, s, m);
|
|
32
|
+
}, re = B(W, {
|
|
33
|
+
shouldForwardProp: (e) => Q(e) || e === "classes",
|
|
41
34
|
name: "MuiListItemButton",
|
|
42
35
|
slot: "Root",
|
|
43
|
-
overridesResolver:
|
|
36
|
+
overridesResolver: oe
|
|
44
37
|
})(({
|
|
45
38
|
theme: e,
|
|
46
39
|
ownerState: o
|
|
47
|
-
}) =>
|
|
40
|
+
}) => b({
|
|
48
41
|
display: "flex",
|
|
49
42
|
flexGrow: 1,
|
|
50
43
|
justifyContent: "flex-start",
|
|
@@ -67,23 +60,23 @@ const E = Y("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFl
|
|
|
67
60
|
backgroundColor: "transparent"
|
|
68
61
|
}
|
|
69
62
|
},
|
|
70
|
-
[`&.${
|
|
71
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
72
|
-
[`&.${
|
|
73
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
63
|
+
[`&.${T.selected}`]: {
|
|
64
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : C(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
65
|
+
[`&.${T.focusVisible}`]: {
|
|
66
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : C(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
74
67
|
}
|
|
75
68
|
},
|
|
76
|
-
[`&.${
|
|
77
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
69
|
+
[`&.${T.selected}:hover`]: {
|
|
70
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : C(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
78
71
|
// Reset on touch devices, it doesn't add specificity
|
|
79
72
|
"@media (hover: none)": {
|
|
80
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
73
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : C(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
81
74
|
}
|
|
82
75
|
},
|
|
83
|
-
[`&.${
|
|
76
|
+
[`&.${T.focusVisible}`]: {
|
|
84
77
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
85
78
|
},
|
|
86
|
-
[`&.${
|
|
79
|
+
[`&.${T.disabled}`]: {
|
|
87
80
|
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
88
81
|
}
|
|
89
82
|
}, o.divider && {
|
|
@@ -97,52 +90,52 @@ const E = Y("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFl
|
|
|
97
90
|
}, o.dense && {
|
|
98
91
|
paddingTop: 4,
|
|
99
92
|
paddingBottom: 4
|
|
100
|
-
})),
|
|
101
|
-
const n =
|
|
93
|
+
})), _ = /* @__PURE__ */ d.forwardRef(function(o, s) {
|
|
94
|
+
const n = $({
|
|
102
95
|
props: o,
|
|
103
96
|
name: "MuiListItemButton"
|
|
104
97
|
}), {
|
|
105
|
-
alignItems:
|
|
106
|
-
autoFocus:
|
|
107
|
-
component:
|
|
108
|
-
children:
|
|
109
|
-
dense:
|
|
110
|
-
disableGutters:
|
|
111
|
-
divider:
|
|
98
|
+
alignItems: p = "center",
|
|
99
|
+
autoFocus: c = !1,
|
|
100
|
+
component: l = "div",
|
|
101
|
+
children: a,
|
|
102
|
+
dense: u = !1,
|
|
103
|
+
disableGutters: m = !1,
|
|
104
|
+
divider: I = !1,
|
|
112
105
|
focusVisibleClassName: g,
|
|
113
|
-
selected:
|
|
114
|
-
className:
|
|
115
|
-
} = n,
|
|
116
|
-
dense:
|
|
117
|
-
alignItems:
|
|
118
|
-
disableGutters:
|
|
119
|
-
}), [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}, [
|
|
123
|
-
const j =
|
|
124
|
-
alignItems:
|
|
125
|
-
dense:
|
|
126
|
-
disableGutters:
|
|
127
|
-
divider:
|
|
128
|
-
selected:
|
|
129
|
-
}),
|
|
130
|
-
return /* @__PURE__ */
|
|
131
|
-
value:
|
|
132
|
-
children: /* @__PURE__ */
|
|
133
|
-
ref:
|
|
134
|
-
href:
|
|
135
|
-
component: (
|
|
136
|
-
focusVisibleClassName:
|
|
106
|
+
selected: h = !1,
|
|
107
|
+
className: x
|
|
108
|
+
} = n, r = P(n, te), i = d.useContext(L), f = d.useMemo(() => ({
|
|
109
|
+
dense: u || i.dense || !1,
|
|
110
|
+
alignItems: p,
|
|
111
|
+
disableGutters: m
|
|
112
|
+
}), [p, i.dense, u, m]), v = d.useRef(null);
|
|
113
|
+
z(() => {
|
|
114
|
+
c && (v.current ? v.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
|
|
115
|
+
}, [c]);
|
|
116
|
+
const j = b({}, n, {
|
|
117
|
+
alignItems: p,
|
|
118
|
+
dense: f.dense,
|
|
119
|
+
disableGutters: m,
|
|
120
|
+
divider: I,
|
|
121
|
+
selected: h
|
|
122
|
+
}), N = se(j), A = V(v, s);
|
|
123
|
+
return /* @__PURE__ */ y(L.Provider, {
|
|
124
|
+
value: f,
|
|
125
|
+
children: /* @__PURE__ */ y(re, b({
|
|
126
|
+
ref: A,
|
|
127
|
+
href: r.href || r.to,
|
|
128
|
+
component: (r.href || r.to) && l === "div" ? "button" : l,
|
|
129
|
+
focusVisibleClassName: R(N.focusVisible, g),
|
|
137
130
|
ownerState: j,
|
|
138
|
-
className:
|
|
139
|
-
},
|
|
140
|
-
classes:
|
|
141
|
-
children:
|
|
131
|
+
className: R(N.root, x)
|
|
132
|
+
}, r, {
|
|
133
|
+
classes: N,
|
|
134
|
+
children: a
|
|
142
135
|
}))
|
|
143
136
|
});
|
|
144
137
|
});
|
|
145
|
-
process.env.NODE_ENV !== "production" && (
|
|
138
|
+
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
146
139
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
147
140
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
148
141
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -220,420 +213,15 @@ process.env.NODE_ENV !== "production" && (re.propTypes = {
|
|
|
220
213
|
*/
|
|
221
214
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
222
215
|
});
|
|
223
|
-
|
|
224
|
-
return q("MuiListItemSecondaryAction", e);
|
|
225
|
-
}
|
|
226
|
-
Y("MuiListItemSecondaryAction", ["root", "disableGutters"]);
|
|
227
|
-
const Se = ["className"], ke = (e) => {
|
|
228
|
-
const {
|
|
229
|
-
disableGutters: o,
|
|
230
|
-
classes: s
|
|
231
|
-
} = e;
|
|
232
|
-
return w({
|
|
233
|
-
root: ["root", o && "disableGutters"]
|
|
234
|
-
}, Ae, s);
|
|
235
|
-
}, Me = A("div", {
|
|
236
|
-
name: "MuiListItemSecondaryAction",
|
|
237
|
-
slot: "Root",
|
|
238
|
-
overridesResolver: (e, o) => {
|
|
239
|
-
const {
|
|
240
|
-
ownerState: s
|
|
241
|
-
} = e;
|
|
242
|
-
return [o.root, s.disableGutters && o.disableGutters];
|
|
243
|
-
}
|
|
244
|
-
})(({
|
|
245
|
-
ownerState: e
|
|
246
|
-
}) => u({
|
|
247
|
-
position: "absolute",
|
|
248
|
-
right: 16,
|
|
249
|
-
top: "50%",
|
|
250
|
-
transform: "translateY(-50%)"
|
|
251
|
-
}, e.disableGutters && {
|
|
252
|
-
right: 0
|
|
253
|
-
})), X = /* @__PURE__ */ l.forwardRef(function(o, s) {
|
|
254
|
-
const n = M({
|
|
255
|
-
props: o,
|
|
256
|
-
name: "MuiListItemSecondaryAction"
|
|
257
|
-
}), {
|
|
258
|
-
className: c
|
|
259
|
-
} = n, i = $(n, Se), d = l.useContext(L), r = u({}, n, {
|
|
260
|
-
disableGutters: d.disableGutters
|
|
261
|
-
}), m = ke(r);
|
|
262
|
-
return /* @__PURE__ */ b(Me, u({
|
|
263
|
-
className: T(m.root, c),
|
|
264
|
-
ownerState: r,
|
|
265
|
-
ref: s
|
|
266
|
-
}, i));
|
|
267
|
-
});
|
|
268
|
-
process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
269
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
270
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
271
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
272
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
273
|
-
/**
|
|
274
|
-
* The content of the component, normally an `IconButton` or selection control.
|
|
275
|
-
*/
|
|
276
|
-
children: t.node,
|
|
277
|
-
/**
|
|
278
|
-
* Override or extend the styles applied to the component.
|
|
279
|
-
*/
|
|
280
|
-
classes: t.object,
|
|
281
|
-
/**
|
|
282
|
-
* @ignore
|
|
283
|
-
*/
|
|
284
|
-
className: t.string,
|
|
285
|
-
/**
|
|
286
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
287
|
-
*/
|
|
288
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
289
|
-
});
|
|
290
|
-
X.muiName = "ListItemSecondaryAction";
|
|
291
|
-
const we = ["className"], je = ["alignItems", "autoFocus", "button", "children", "className", "component", "components", "componentsProps", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "disablePadding", "divider", "focusVisibleClassName", "secondaryAction", "selected", "slotProps", "slots"], Ve = (e, o) => {
|
|
292
|
-
const {
|
|
293
|
-
ownerState: s
|
|
294
|
-
} = e;
|
|
295
|
-
return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters, !s.disablePadding && o.padding, s.button && o.button, s.hasSecondaryAction && o.secondaryAction];
|
|
296
|
-
}, Be = (e) => {
|
|
297
|
-
const {
|
|
298
|
-
alignItems: o,
|
|
299
|
-
button: s,
|
|
300
|
-
classes: n,
|
|
301
|
-
dense: c,
|
|
302
|
-
disabled: i,
|
|
303
|
-
disableGutters: d,
|
|
304
|
-
disablePadding: r,
|
|
305
|
-
divider: m,
|
|
306
|
-
hasSecondaryAction: f,
|
|
307
|
-
selected: C
|
|
308
|
-
} = e;
|
|
309
|
-
return w({
|
|
310
|
-
root: ["root", c && "dense", !d && "gutters", !r && "padding", m && "divider", i && "disabled", s && "button", o === "flex-start" && "alignItemsFlexStart", f && "secondaryAction", C && "selected"],
|
|
311
|
-
container: ["container"]
|
|
312
|
-
}, Oe, n);
|
|
313
|
-
}, Ge = A("div", {
|
|
314
|
-
name: "MuiListItem",
|
|
315
|
-
slot: "Root",
|
|
316
|
-
overridesResolver: Ve
|
|
317
|
-
})(({
|
|
318
|
-
theme: e,
|
|
319
|
-
ownerState: o
|
|
320
|
-
}) => u({
|
|
321
|
-
display: "flex",
|
|
322
|
-
justifyContent: "flex-start",
|
|
323
|
-
alignItems: "center",
|
|
324
|
-
position: "relative",
|
|
325
|
-
textDecoration: "none",
|
|
326
|
-
width: "100%",
|
|
327
|
-
boxSizing: "border-box",
|
|
328
|
-
textAlign: "left"
|
|
329
|
-
}, !o.disablePadding && u({
|
|
330
|
-
paddingTop: 8,
|
|
331
|
-
paddingBottom: 8
|
|
332
|
-
}, o.dense && {
|
|
333
|
-
paddingTop: 4,
|
|
334
|
-
paddingBottom: 4
|
|
335
|
-
}, !o.disableGutters && {
|
|
336
|
-
paddingLeft: 16,
|
|
337
|
-
paddingRight: 16
|
|
338
|
-
}, !!o.secondaryAction && {
|
|
339
|
-
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
340
|
-
// is absolutely positioned.
|
|
341
|
-
paddingRight: 48
|
|
342
|
-
}), !!o.secondaryAction && {
|
|
343
|
-
[`& > .${E.root}`]: {
|
|
344
|
-
paddingRight: 48
|
|
345
|
-
}
|
|
346
|
-
}, {
|
|
347
|
-
[`&.${P.focusVisible}`]: {
|
|
348
|
-
backgroundColor: (e.vars || e).palette.action.focus
|
|
349
|
-
},
|
|
350
|
-
[`&.${P.selected}`]: {
|
|
351
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : h(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
352
|
-
[`&.${P.focusVisible}`]: {
|
|
353
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : h(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
[`&.${P.disabled}`]: {
|
|
357
|
-
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
358
|
-
}
|
|
359
|
-
}, o.alignItems === "flex-start" && {
|
|
360
|
-
alignItems: "flex-start"
|
|
361
|
-
}, o.divider && {
|
|
362
|
-
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
363
|
-
backgroundClip: "padding-box"
|
|
364
|
-
}, o.button && {
|
|
365
|
-
transition: e.transitions.create("background-color", {
|
|
366
|
-
duration: e.transitions.duration.shortest
|
|
367
|
-
}),
|
|
368
|
-
"&:hover": {
|
|
369
|
-
textDecoration: "none",
|
|
370
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
371
|
-
// Reset on touch devices, it doesn't add specificity
|
|
372
|
-
"@media (hover: none)": {
|
|
373
|
-
backgroundColor: "transparent"
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
[`&.${P.selected}:hover`]: {
|
|
377
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : h(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
378
|
-
// Reset on touch devices, it doesn't add specificity
|
|
379
|
-
"@media (hover: none)": {
|
|
380
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : h(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}, o.hasSecondaryAction && {
|
|
384
|
-
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
385
|
-
// is absolutely positioned.
|
|
386
|
-
paddingRight: 48
|
|
387
|
-
})), Fe = A("li", {
|
|
388
|
-
name: "MuiListItem",
|
|
389
|
-
slot: "Container",
|
|
390
|
-
overridesResolver: (e, o) => o.container
|
|
391
|
-
})({
|
|
392
|
-
position: "relative"
|
|
393
|
-
}), ie = /* @__PURE__ */ l.forwardRef(function(o, s) {
|
|
394
|
-
const n = M({
|
|
395
|
-
props: o,
|
|
396
|
-
name: "MuiListItem"
|
|
397
|
-
}), {
|
|
398
|
-
alignItems: c = "center",
|
|
399
|
-
autoFocus: i = !1,
|
|
400
|
-
button: d = !1,
|
|
401
|
-
children: r,
|
|
402
|
-
className: m,
|
|
403
|
-
component: f,
|
|
404
|
-
components: C = {},
|
|
405
|
-
componentsProps: g = {},
|
|
406
|
-
ContainerComponent: x = "li",
|
|
407
|
-
ContainerProps: {
|
|
408
|
-
className: I
|
|
409
|
-
} = {},
|
|
410
|
-
dense: a = !1,
|
|
411
|
-
disabled: p = !1,
|
|
412
|
-
disableGutters: y = !1,
|
|
413
|
-
disablePadding: v = !1,
|
|
414
|
-
divider: j = !1,
|
|
415
|
-
focusVisibleClassName: S,
|
|
416
|
-
secondaryAction: V,
|
|
417
|
-
selected: de = !1,
|
|
418
|
-
slotProps: pe = {},
|
|
419
|
-
slots: ue = {}
|
|
420
|
-
} = n, me = $(n.ContainerProps, we), fe = $(n, je), J = l.useContext(L), D = l.useMemo(() => ({
|
|
421
|
-
dense: a || J.dense || !1,
|
|
422
|
-
alignItems: c,
|
|
423
|
-
disableGutters: y
|
|
424
|
-
}), [c, J.dense, a, y]), W = l.useRef(null);
|
|
425
|
-
ne(() => {
|
|
426
|
-
i && (W.current ? W.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."));
|
|
427
|
-
}, [i]);
|
|
428
|
-
const N = l.Children.toArray(r), K = N.length && ae(N[N.length - 1], ["ListItemSecondaryAction"]), B = u({}, n, {
|
|
429
|
-
alignItems: c,
|
|
430
|
-
autoFocus: i,
|
|
431
|
-
button: d,
|
|
432
|
-
dense: D.dense,
|
|
433
|
-
disabled: p,
|
|
434
|
-
disableGutters: y,
|
|
435
|
-
disablePadding: v,
|
|
436
|
-
divider: j,
|
|
437
|
-
hasSecondaryAction: K,
|
|
438
|
-
selected: de
|
|
439
|
-
}), Q = Be(B), Z = H(W, s), G = ue.root || C.Root || Ge, k = pe.root || g.root || {}, O = u({
|
|
440
|
-
className: T(Q.root, k.className, m),
|
|
441
|
-
disabled: p
|
|
442
|
-
}, fe);
|
|
443
|
-
let R = f || "li";
|
|
444
|
-
return d && (O.component = f || "div", O.focusVisibleClassName = T(P.focusVisible, S), R = se), K ? (R = !O.component && !f ? "div" : R, x === "li" && (R === "li" ? R = "div" : O.component === "li" && (O.component = "div")), /* @__PURE__ */ b(L.Provider, {
|
|
445
|
-
value: D,
|
|
446
|
-
children: /* @__PURE__ */ U(Fe, u({
|
|
447
|
-
as: x,
|
|
448
|
-
className: T(Q.container, I),
|
|
449
|
-
ref: Z,
|
|
450
|
-
ownerState: B
|
|
451
|
-
}, me, {
|
|
452
|
-
children: [/* @__PURE__ */ b(G, u({}, k, !te(G) && {
|
|
453
|
-
as: R,
|
|
454
|
-
ownerState: u({}, B, k.ownerState)
|
|
455
|
-
}, O, {
|
|
456
|
-
children: N
|
|
457
|
-
})), N.pop()]
|
|
458
|
-
}))
|
|
459
|
-
})) : /* @__PURE__ */ b(L.Provider, {
|
|
460
|
-
value: D,
|
|
461
|
-
children: /* @__PURE__ */ U(G, u({}, k, {
|
|
462
|
-
as: R,
|
|
463
|
-
ref: Z
|
|
464
|
-
}, !te(G) && {
|
|
465
|
-
ownerState: u({}, B, k.ownerState)
|
|
466
|
-
}, O, {
|
|
467
|
-
children: [N, V && /* @__PURE__ */ b(X, {
|
|
468
|
-
children: V
|
|
469
|
-
})]
|
|
470
|
-
}))
|
|
471
|
-
});
|
|
472
|
-
});
|
|
473
|
-
process.env.NODE_ENV !== "production" && (ie.propTypes = {
|
|
474
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
475
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
476
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
477
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
478
|
-
/**
|
|
479
|
-
* Defines the `align-items` style property.
|
|
480
|
-
* @default 'center'
|
|
481
|
-
*/
|
|
482
|
-
alignItems: t.oneOf(["center", "flex-start"]),
|
|
483
|
-
/**
|
|
484
|
-
* If `true`, the list item is focused during the first mount.
|
|
485
|
-
* Focus will also be triggered if the value changes from false to true.
|
|
486
|
-
* @default false
|
|
487
|
-
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
|
488
|
-
*/
|
|
489
|
-
autoFocus: t.bool,
|
|
490
|
-
/**
|
|
491
|
-
* If `true`, the list item is a button (using `ButtonBase`). Props intended
|
|
492
|
-
* for `ButtonBase` can then be applied to `ListItem`.
|
|
493
|
-
* @default false
|
|
494
|
-
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
|
495
|
-
*/
|
|
496
|
-
button: t.bool,
|
|
497
|
-
/**
|
|
498
|
-
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
499
|
-
* be the last child.
|
|
500
|
-
*/
|
|
501
|
-
children: Le(t.node, (e) => {
|
|
502
|
-
const o = l.Children.toArray(e.children);
|
|
503
|
-
let s = -1;
|
|
504
|
-
for (let n = o.length - 1; n >= 0; n -= 1) {
|
|
505
|
-
const c = o[n];
|
|
506
|
-
if (ae(c, ["ListItemSecondaryAction"])) {
|
|
507
|
-
s = n;
|
|
508
|
-
break;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
return s !== -1 && s !== o.length - 1 ? new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem.") : null;
|
|
512
|
-
}),
|
|
513
|
-
/**
|
|
514
|
-
* Override or extend the styles applied to the component.
|
|
515
|
-
*/
|
|
516
|
-
classes: t.object,
|
|
517
|
-
/**
|
|
518
|
-
* @ignore
|
|
519
|
-
*/
|
|
520
|
-
className: t.string,
|
|
521
|
-
/**
|
|
522
|
-
* The component used for the root node.
|
|
523
|
-
* Either a string to use a HTML element or a component.
|
|
524
|
-
*/
|
|
525
|
-
component: t.elementType,
|
|
526
|
-
/**
|
|
527
|
-
* The components used for each slot inside.
|
|
528
|
-
*
|
|
529
|
-
* This prop is an alias for the `slots` prop.
|
|
530
|
-
* It's recommended to use the `slots` prop instead.
|
|
531
|
-
*
|
|
532
|
-
* @default {}
|
|
533
|
-
*/
|
|
534
|
-
components: t.shape({
|
|
535
|
-
Root: t.elementType
|
|
536
|
-
}),
|
|
537
|
-
/**
|
|
538
|
-
* The extra props for the slot components.
|
|
539
|
-
* You can override the existing props or add new ones.
|
|
540
|
-
*
|
|
541
|
-
* This prop is an alias for the `slotProps` prop.
|
|
542
|
-
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
543
|
-
*
|
|
544
|
-
* @default {}
|
|
545
|
-
*/
|
|
546
|
-
componentsProps: t.shape({
|
|
547
|
-
root: t.object
|
|
548
|
-
}),
|
|
549
|
-
/**
|
|
550
|
-
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
551
|
-
* @default 'li'
|
|
552
|
-
* @deprecated
|
|
553
|
-
*/
|
|
554
|
-
ContainerComponent: be,
|
|
555
|
-
/**
|
|
556
|
-
* Props applied to the container component if used.
|
|
557
|
-
* @default {}
|
|
558
|
-
* @deprecated
|
|
559
|
-
*/
|
|
560
|
-
ContainerProps: t.object,
|
|
561
|
-
/**
|
|
562
|
-
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
563
|
-
* The prop defaults to the value inherited from the parent List component.
|
|
564
|
-
* @default false
|
|
565
|
-
*/
|
|
566
|
-
dense: t.bool,
|
|
567
|
-
/**
|
|
568
|
-
* If `true`, the component is disabled.
|
|
569
|
-
* @default false
|
|
570
|
-
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
|
571
|
-
*/
|
|
572
|
-
disabled: t.bool,
|
|
573
|
-
/**
|
|
574
|
-
* If `true`, the left and right padding is removed.
|
|
575
|
-
* @default false
|
|
576
|
-
*/
|
|
577
|
-
disableGutters: t.bool,
|
|
578
|
-
/**
|
|
579
|
-
* If `true`, all padding is removed.
|
|
580
|
-
* @default false
|
|
581
|
-
*/
|
|
582
|
-
disablePadding: t.bool,
|
|
583
|
-
/**
|
|
584
|
-
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
585
|
-
* @default false
|
|
586
|
-
*/
|
|
587
|
-
divider: t.bool,
|
|
588
|
-
/**
|
|
589
|
-
* @ignore
|
|
590
|
-
*/
|
|
591
|
-
focusVisibleClassName: t.string,
|
|
592
|
-
/**
|
|
593
|
-
* The element to display at the end of ListItem.
|
|
594
|
-
*/
|
|
595
|
-
secondaryAction: t.node,
|
|
596
|
-
/**
|
|
597
|
-
* Use to apply selected styling.
|
|
598
|
-
* @default false
|
|
599
|
-
* @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
|
|
600
|
-
*/
|
|
601
|
-
selected: t.bool,
|
|
602
|
-
/**
|
|
603
|
-
* The extra props for the slot components.
|
|
604
|
-
* You can override the existing props or add new ones.
|
|
605
|
-
*
|
|
606
|
-
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
607
|
-
*
|
|
608
|
-
* @default {}
|
|
609
|
-
*/
|
|
610
|
-
slotProps: t.shape({
|
|
611
|
-
root: t.object
|
|
612
|
-
}),
|
|
613
|
-
/**
|
|
614
|
-
* The components used for each slot inside.
|
|
615
|
-
*
|
|
616
|
-
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
617
|
-
*
|
|
618
|
-
* @default {}
|
|
619
|
-
*/
|
|
620
|
-
slots: t.shape({
|
|
621
|
-
root: t.elementType
|
|
622
|
-
}),
|
|
623
|
-
/**
|
|
624
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
625
|
-
*/
|
|
626
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
627
|
-
});
|
|
628
|
-
const Ue = ["className"], _e = (e) => {
|
|
216
|
+
const ne = ["className"], ae = (e) => {
|
|
629
217
|
const {
|
|
630
218
|
alignItems: o,
|
|
631
219
|
classes: s
|
|
632
220
|
} = e;
|
|
633
221
|
return w({
|
|
634
222
|
root: ["root", o === "flex-start" && "alignItemsFlexStart"]
|
|
635
|
-
},
|
|
636
|
-
},
|
|
223
|
+
}, Z, s);
|
|
224
|
+
}, ie = B("div", {
|
|
637
225
|
name: "MuiListItemIcon",
|
|
638
226
|
slot: "Root",
|
|
639
227
|
overridesResolver: (e, o) => {
|
|
@@ -645,29 +233,29 @@ const Ue = ["className"], _e = (e) => {
|
|
|
645
233
|
})(({
|
|
646
234
|
theme: e,
|
|
647
235
|
ownerState: o
|
|
648
|
-
}) =>
|
|
236
|
+
}) => b({
|
|
649
237
|
minWidth: 56,
|
|
650
238
|
color: (e.vars || e).palette.action.active,
|
|
651
239
|
flexShrink: 0,
|
|
652
240
|
display: "inline-flex"
|
|
653
241
|
}, o.alignItems === "flex-start" && {
|
|
654
242
|
marginTop: 8
|
|
655
|
-
})),
|
|
656
|
-
const n =
|
|
243
|
+
})), F = /* @__PURE__ */ d.forwardRef(function(o, s) {
|
|
244
|
+
const n = $({
|
|
657
245
|
props: o,
|
|
658
246
|
name: "MuiListItemIcon"
|
|
659
247
|
}), {
|
|
660
|
-
className:
|
|
661
|
-
} = n,
|
|
662
|
-
alignItems:
|
|
663
|
-
}),
|
|
664
|
-
return /* @__PURE__ */
|
|
665
|
-
className:
|
|
666
|
-
ownerState:
|
|
248
|
+
className: p
|
|
249
|
+
} = n, c = P(n, ne), l = d.useContext(L), a = b({}, n, {
|
|
250
|
+
alignItems: l.alignItems
|
|
251
|
+
}), u = ae(a);
|
|
252
|
+
return /* @__PURE__ */ y(ie, b({
|
|
253
|
+
className: R(u.root, p),
|
|
254
|
+
ownerState: a,
|
|
667
255
|
ref: s
|
|
668
|
-
},
|
|
256
|
+
}, c));
|
|
669
257
|
});
|
|
670
|
-
process.env.NODE_ENV !== "production" && (
|
|
258
|
+
process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
671
259
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
672
260
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
673
261
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -690,20 +278,20 @@ process.env.NODE_ENV !== "production" && (ce.propTypes = {
|
|
|
690
278
|
*/
|
|
691
279
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
692
280
|
});
|
|
693
|
-
const
|
|
281
|
+
const ce = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"], le = (e) => {
|
|
694
282
|
const {
|
|
695
283
|
classes: o,
|
|
696
284
|
inset: s,
|
|
697
285
|
primary: n,
|
|
698
|
-
secondary:
|
|
699
|
-
dense:
|
|
286
|
+
secondary: p,
|
|
287
|
+
dense: c
|
|
700
288
|
} = e;
|
|
701
289
|
return w({
|
|
702
|
-
root: ["root", s && "inset",
|
|
290
|
+
root: ["root", s && "inset", c && "dense", n && p && "multiline"],
|
|
703
291
|
primary: ["primary"],
|
|
704
292
|
secondary: ["secondary"]
|
|
705
|
-
},
|
|
706
|
-
},
|
|
293
|
+
}, ee, o);
|
|
294
|
+
}, de = B("div", {
|
|
707
295
|
name: "MuiListItemText",
|
|
708
296
|
slot: "Root",
|
|
709
297
|
overridesResolver: (e, o) => {
|
|
@@ -711,14 +299,14 @@ const We = ["children", "className", "disableTypography", "inset", "primary", "p
|
|
|
711
299
|
ownerState: s
|
|
712
300
|
} = e;
|
|
713
301
|
return [{
|
|
714
|
-
[`& .${
|
|
302
|
+
[`& .${S.primary}`]: o.primary
|
|
715
303
|
}, {
|
|
716
|
-
[`& .${
|
|
304
|
+
[`& .${S.secondary}`]: o.secondary
|
|
717
305
|
}, o.root, s.inset && o.inset, s.primary && s.secondary && o.multiline, s.dense && o.dense];
|
|
718
306
|
}
|
|
719
307
|
})(({
|
|
720
308
|
ownerState: e
|
|
721
|
-
}) =>
|
|
309
|
+
}) => b({
|
|
722
310
|
flex: "1 1 auto",
|
|
723
311
|
minWidth: 0,
|
|
724
312
|
marginTop: 4,
|
|
@@ -728,53 +316,53 @@ const We = ["children", "className", "disableTypography", "inset", "primary", "p
|
|
|
728
316
|
marginBottom: 6
|
|
729
317
|
}, e.inset && {
|
|
730
318
|
paddingLeft: 56
|
|
731
|
-
})),
|
|
732
|
-
const n =
|
|
319
|
+
})), U = /* @__PURE__ */ d.forwardRef(function(o, s) {
|
|
320
|
+
const n = $({
|
|
733
321
|
props: o,
|
|
734
322
|
name: "MuiListItemText"
|
|
735
323
|
}), {
|
|
736
|
-
children:
|
|
737
|
-
className:
|
|
738
|
-
disableTypography:
|
|
739
|
-
inset:
|
|
740
|
-
primary:
|
|
741
|
-
primaryTypographyProps:
|
|
742
|
-
secondary:
|
|
324
|
+
children: p,
|
|
325
|
+
className: c,
|
|
326
|
+
disableTypography: l = !1,
|
|
327
|
+
inset: a = !1,
|
|
328
|
+
primary: u,
|
|
329
|
+
primaryTypographyProps: m,
|
|
330
|
+
secondary: I,
|
|
743
331
|
secondaryTypographyProps: g
|
|
744
|
-
} = n,
|
|
745
|
-
dense:
|
|
746
|
-
} =
|
|
747
|
-
let
|
|
748
|
-
const
|
|
749
|
-
disableTypography:
|
|
750
|
-
inset:
|
|
751
|
-
primary: !!
|
|
752
|
-
secondary: !!
|
|
753
|
-
dense:
|
|
754
|
-
}), v =
|
|
755
|
-
return
|
|
756
|
-
variant:
|
|
332
|
+
} = n, h = P(n, ce), {
|
|
333
|
+
dense: x
|
|
334
|
+
} = d.useContext(L);
|
|
335
|
+
let r = u ?? p, i = I;
|
|
336
|
+
const f = b({}, n, {
|
|
337
|
+
disableTypography: l,
|
|
338
|
+
inset: a,
|
|
339
|
+
primary: !!r,
|
|
340
|
+
secondary: !!i,
|
|
341
|
+
dense: x
|
|
342
|
+
}), v = le(f);
|
|
343
|
+
return r != null && r.type !== E && !l && (r = /* @__PURE__ */ y(E, b({
|
|
344
|
+
variant: x ? "body2" : "body1",
|
|
757
345
|
className: v.primary,
|
|
758
|
-
component:
|
|
346
|
+
component: m != null && m.variant ? void 0 : "span",
|
|
759
347
|
display: "block"
|
|
760
|
-
},
|
|
761
|
-
children:
|
|
762
|
-
}))),
|
|
348
|
+
}, m, {
|
|
349
|
+
children: r
|
|
350
|
+
}))), i != null && i.type !== E && !l && (i = /* @__PURE__ */ y(E, b({
|
|
763
351
|
variant: "body2",
|
|
764
352
|
className: v.secondary,
|
|
765
353
|
color: "text.secondary",
|
|
766
354
|
display: "block"
|
|
767
355
|
}, g, {
|
|
768
|
-
children:
|
|
769
|
-
}))), /* @__PURE__ */
|
|
770
|
-
className:
|
|
771
|
-
ownerState:
|
|
356
|
+
children: i
|
|
357
|
+
}))), /* @__PURE__ */ D(de, b({
|
|
358
|
+
className: R(v.root, c),
|
|
359
|
+
ownerState: f,
|
|
772
360
|
ref: s
|
|
773
|
-
},
|
|
774
|
-
children: [
|
|
361
|
+
}, h, {
|
|
362
|
+
children: [r, i]
|
|
775
363
|
}));
|
|
776
364
|
});
|
|
777
|
-
process.env.NODE_ENV !== "production" && (
|
|
365
|
+
process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
778
366
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
779
367
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
780
368
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -828,75 +416,75 @@ process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
|
828
416
|
*/
|
|
829
417
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
830
418
|
});
|
|
831
|
-
function
|
|
419
|
+
function M(e) {
|
|
832
420
|
return e.substring(2).toLowerCase();
|
|
833
421
|
}
|
|
834
|
-
function
|
|
422
|
+
function pe(e, o) {
|
|
835
423
|
return o.documentElement.clientWidth < e.clientX || o.documentElement.clientHeight < e.clientY;
|
|
836
424
|
}
|
|
837
|
-
function
|
|
425
|
+
function O(e) {
|
|
838
426
|
const {
|
|
839
427
|
children: o,
|
|
840
428
|
disableReactTree: s = !1,
|
|
841
429
|
mouseEvent: n = "onClick",
|
|
842
|
-
onClickAway:
|
|
843
|
-
touchEvent:
|
|
844
|
-
} = e,
|
|
845
|
-
|
|
846
|
-
|
|
430
|
+
onClickAway: p,
|
|
431
|
+
touchEvent: c = "onTouchEnd"
|
|
432
|
+
} = e, l = d.useRef(!1), a = d.useRef(null), u = d.useRef(!1), m = d.useRef(!1);
|
|
433
|
+
d.useEffect(() => (setTimeout(() => {
|
|
434
|
+
u.current = !0;
|
|
847
435
|
}, 0), () => {
|
|
848
|
-
|
|
436
|
+
u.current = !1;
|
|
849
437
|
}), []);
|
|
850
|
-
const
|
|
438
|
+
const I = V(
|
|
851
439
|
// @ts-expect-error TODO upstream fix
|
|
852
440
|
o.ref,
|
|
853
|
-
|
|
854
|
-
), g =
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
const
|
|
858
|
-
if (!
|
|
441
|
+
a
|
|
442
|
+
), g = H((r) => {
|
|
443
|
+
const i = m.current;
|
|
444
|
+
m.current = !1;
|
|
445
|
+
const f = k(a.current);
|
|
446
|
+
if (!u.current || !a.current || "clientX" in r && pe(r, f))
|
|
859
447
|
return;
|
|
860
|
-
if (
|
|
861
|
-
|
|
448
|
+
if (l.current) {
|
|
449
|
+
l.current = !1;
|
|
862
450
|
return;
|
|
863
451
|
}
|
|
864
452
|
let v;
|
|
865
|
-
|
|
453
|
+
r.composedPath ? v = r.composedPath().indexOf(a.current) > -1 : v = !f.documentElement.contains(
|
|
866
454
|
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
867
|
-
|
|
868
|
-
) ||
|
|
455
|
+
r.target
|
|
456
|
+
) || a.current.contains(
|
|
869
457
|
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
870
|
-
|
|
871
|
-
), !v && (s || !
|
|
872
|
-
}),
|
|
873
|
-
|
|
874
|
-
const
|
|
875
|
-
|
|
876
|
-
},
|
|
877
|
-
ref:
|
|
458
|
+
r.target
|
|
459
|
+
), !v && (s || !i) && p(r);
|
|
460
|
+
}), h = (r) => (i) => {
|
|
461
|
+
m.current = !0;
|
|
462
|
+
const f = o.props[r];
|
|
463
|
+
f && f(i);
|
|
464
|
+
}, x = {
|
|
465
|
+
ref: I
|
|
878
466
|
};
|
|
879
|
-
return
|
|
880
|
-
if (
|
|
881
|
-
const
|
|
882
|
-
|
|
467
|
+
return c !== !1 && (x[c] = h(c)), d.useEffect(() => {
|
|
468
|
+
if (c !== !1) {
|
|
469
|
+
const r = M(c), i = k(a.current), f = () => {
|
|
470
|
+
l.current = !0;
|
|
883
471
|
};
|
|
884
|
-
return
|
|
885
|
-
|
|
472
|
+
return i.addEventListener(r, g), i.addEventListener("touchmove", f), () => {
|
|
473
|
+
i.removeEventListener(r, g), i.removeEventListener("touchmove", f);
|
|
886
474
|
};
|
|
887
475
|
}
|
|
888
|
-
}, [g,
|
|
476
|
+
}, [g, c]), n !== !1 && (x[n] = h(n)), d.useEffect(() => {
|
|
889
477
|
if (n !== !1) {
|
|
890
|
-
const
|
|
891
|
-
return
|
|
892
|
-
|
|
478
|
+
const r = M(n), i = k(a.current);
|
|
479
|
+
return i.addEventListener(r, g), () => {
|
|
480
|
+
i.removeEventListener(r, g);
|
|
893
481
|
};
|
|
894
482
|
}
|
|
895
|
-
}, [g, n]), /* @__PURE__ */
|
|
896
|
-
children: /* @__PURE__ */
|
|
483
|
+
}, [g, n]), /* @__PURE__ */ y(d.Fragment, {
|
|
484
|
+
children: /* @__PURE__ */ d.cloneElement(o, x)
|
|
897
485
|
});
|
|
898
486
|
}
|
|
899
|
-
process.env.NODE_ENV !== "production" && (
|
|
487
|
+
process.env.NODE_ENV !== "production" && (O.propTypes = {
|
|
900
488
|
// ----------------------------- Warning --------------------------------
|
|
901
489
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
902
490
|
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
@@ -904,7 +492,7 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
904
492
|
/**
|
|
905
493
|
* The wrapped element.
|
|
906
494
|
*/
|
|
907
|
-
children:
|
|
495
|
+
children: q.isRequired,
|
|
908
496
|
/**
|
|
909
497
|
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
910
498
|
* This prop changes how portaled elements are handled.
|
|
@@ -926,20 +514,20 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
|
926
514
|
*/
|
|
927
515
|
touchEvent: t.oneOf(["onTouchEnd", "onTouchStart", !1])
|
|
928
516
|
});
|
|
929
|
-
process.env.NODE_ENV !== "production" && (
|
|
930
|
-
const
|
|
517
|
+
process.env.NODE_ENV !== "production" && (O.propTypes = X(O.propTypes));
|
|
518
|
+
const Ee = ({
|
|
931
519
|
open: e,
|
|
932
520
|
buttons: o,
|
|
933
521
|
position: s,
|
|
934
522
|
width: n = 160,
|
|
935
|
-
sx:
|
|
936
|
-
onClose:
|
|
523
|
+
sx: p,
|
|
524
|
+
onClose: c
|
|
937
525
|
}) => {
|
|
938
|
-
const
|
|
939
|
-
|
|
526
|
+
const l = () => {
|
|
527
|
+
c && c();
|
|
940
528
|
};
|
|
941
|
-
return e ? /* @__PURE__ */
|
|
942
|
-
|
|
529
|
+
return e ? /* @__PURE__ */ y(O, { onClickAway: l, children: /* @__PURE__ */ y(
|
|
530
|
+
Y,
|
|
943
531
|
{
|
|
944
532
|
sx: {
|
|
945
533
|
position: "absolute",
|
|
@@ -950,24 +538,24 @@ const rt = ({
|
|
|
950
538
|
left: s == null ? void 0 : s.left,
|
|
951
539
|
top: s == null ? void 0 : s.top,
|
|
952
540
|
borderRadius: 0.5,
|
|
953
|
-
...
|
|
541
|
+
...p
|
|
954
542
|
},
|
|
955
543
|
disablePadding: !0,
|
|
956
|
-
children: o.map((
|
|
957
|
-
|
|
958
|
-
/* @__PURE__ */
|
|
959
|
-
|
|
544
|
+
children: o.map((a, u) => /* @__PURE__ */ y(K, { secondaryAction: a.endIcon, disablePadding: !0, children: /* @__PURE__ */ D(_, { role: void 0, onClick: a.onClick, dense: !0, children: [
|
|
545
|
+
a.startIcon !== void 0 && /* @__PURE__ */ y(F, { sx: { minWidth: "auto", mr: 1 }, children: a.startIcon }),
|
|
546
|
+
/* @__PURE__ */ y(
|
|
547
|
+
U,
|
|
960
548
|
{
|
|
961
|
-
primary:
|
|
549
|
+
primary: a.label,
|
|
962
550
|
primaryTypographyProps: {
|
|
963
551
|
fontSize: "12px"
|
|
964
552
|
}
|
|
965
553
|
}
|
|
966
554
|
)
|
|
967
|
-
] }) },
|
|
555
|
+
] }) }, u))
|
|
968
556
|
}
|
|
969
|
-
) }) : /* @__PURE__ */
|
|
557
|
+
) }) : /* @__PURE__ */ y(G, {});
|
|
970
558
|
};
|
|
971
559
|
export {
|
|
972
|
-
|
|
560
|
+
Ee as ContextMenu
|
|
973
561
|
};
|