@hybridcore/ui 1.3.3 → 1.3.5

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