@hybridcore/ui 1.3.7 → 1.4.1

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 (126) hide show
  1. package/dist/AccordionDetails-CGs6GZQK.js +454 -0
  2. package/dist/Add-eepk2WTM.js +379 -0
  3. package/dist/Box-BPyg-Ybm.js +70 -0
  4. package/dist/Button-DLwB_sKd.js +354 -0
  5. package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
  6. package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
  7. package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
  8. package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
  9. package/dist/Delete-OHEw9lDi.js +22 -0
  10. package/dist/DialogContent-CxOSq6h9.js +519 -0
  11. package/dist/FormControlLabel-D9KFjcIx.js +193 -0
  12. package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
  13. package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
  14. package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
  15. package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
  16. package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
  17. package/dist/ListItem-CZbZ91vp.js +428 -0
  18. package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
  19. package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
  20. package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
  21. package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
  22. package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
  23. package/dist/Tabs-BzelDJKy.js +787 -0
  24. package/dist/TextField-D87qTh1k.js +457 -0
  25. package/dist/Typography-Bm7PFqUT.js +176 -0
  26. package/dist/assets/index.css +1 -1
  27. package/dist/assets/index2.css +1 -1
  28. package/dist/components/card/index.js +341 -179
  29. package/dist/components/card/styled.js +1 -1
  30. package/dist/components/collapsible-card/style.js +20 -466
  31. package/dist/components/confirm/dialog.js +8 -149
  32. package/dist/components/confirm/index.js +1 -1
  33. package/dist/components/container/index.js +7 -7
  34. package/dist/components/context-menu/index.js +191 -604
  35. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  36. package/dist/components/data-security-selectors/security-level/index.js +42 -40
  37. package/dist/components/date-time-picker/index.js +18 -19
  38. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  39. package/dist/components/geometry-picker/edit/index.js +16 -16
  40. package/dist/components/geometry-picker/geometry/index.js +35 -35
  41. package/dist/components/geometry-picker/index.js +3 -3
  42. package/dist/components/geometry-picker/kml/index.js +14 -14
  43. package/dist/components/geometry-picker/map/index.js +1 -1
  44. package/dist/components/geometry-picker/map/logic.js +38 -37
  45. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
  46. package/dist/components/geometry-picker/parser/logic.js +33 -32
  47. package/dist/components/icon-button/index.js +1 -1
  48. package/dist/components/icon-button/styled.js +0 -2
  49. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
  50. package/dist/components/instance-form/components/variable/index.js +19 -0
  51. package/dist/components/instance-form/components/variables/index.js +40 -0
  52. package/dist/components/{data-management/instance-form → instance-form}/index.js +106 -100
  53. package/dist/components/instance-hierarchy-table/index.js +58 -0
  54. package/dist/components/instance-hierarchy-table/styled.js +29 -0
  55. package/dist/components/instance-table/index.js +125 -0
  56. package/dist/components/instance-table/styled.js +13 -0
  57. package/dist/components/map/helpers/ol.js +1 -1
  58. package/dist/components/map/index.js +1 -1
  59. package/dist/components/map/logic.js +1 -1
  60. package/dist/components/map/styled.js +1 -1
  61. package/dist/components/phone-input/index.js +1 -1
  62. package/dist/components/property-mapping/index.js +558 -0
  63. package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
  64. package/dist/components/range-selector/components/date-range/index.js +9 -0
  65. package/dist/components/range-selector/components/geometry-range/index.js +26 -0
  66. package/dist/components/range-selector/components/number-range/index.js +86 -0
  67. package/dist/components/range-selector/components/string-range/index.js +31 -0
  68. package/dist/components/range-selector/index.js +59 -0
  69. package/dist/components/search-input/index.js +4 -4
  70. package/dist/components/tabs/appleTabs.style.js +55 -0
  71. package/dist/components/tabs/index.js +93 -0
  72. package/dist/components/tabs/tab-panel.js +18 -0
  73. package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
  74. package/dist/components/template-form/components/property-list/index.js +72 -0
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
  76. package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
  77. package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
  78. package/dist/components/template-form/components/property-list/types.js +8 -0
  79. package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
  80. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
  81. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
  82. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
  83. package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
  84. package/dist/components/template-form/components/select-icon/index.js +186 -0
  85. package/dist/components/template-form/components/select-icon/styled.js +76 -0
  86. package/dist/components/template-form/index.js +338 -0
  87. package/dist/components/template-property-filters/property.js +48 -46
  88. package/dist/components/tree-select/index.js +16 -15
  89. package/dist/components/tree-select/styled.js +2 -2
  90. package/dist/components/treeview-filter/index.js +8 -8
  91. package/dist/components/treeview-filter/item/index.js +1 -1
  92. package/dist/components/treeview-filter/item-label/index.js +18 -17
  93. package/dist/constants/index.js +41 -0
  94. package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
  95. package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
  96. package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
  97. package/dist/dialog-v5-nL5yy.js +153 -0
  98. package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
  99. package/dist/extendSxProp-qqdkfHzS.js +30 -0
  100. package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
  101. package/dist/index-C1fczHEW.js +11042 -0
  102. package/dist/{index-CJVcedWy.js → index-DPf5olog.js} +29 -27
  103. package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
  104. package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
  105. package/dist/main.d.ts +562 -78
  106. package/dist/main.js +157 -157
  107. package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
  108. package/dist/property-list-form-BfP9gzSo.js +391 -0
  109. package/dist/requirePropFactory-BjhhI-AW.js +18 -0
  110. package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
  111. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  112. package/dist/useControlled-BYdyS7Pn.js +31 -0
  113. package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
  114. package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
  115. package/dist/utils/ontology.js +52 -30
  116. package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
  117. package/package.json +2 -1
  118. package/dist/DialogContent-BCYm_d1s.js +0 -864
  119. package/dist/FormControlLabel-DENNVXWL.js +0 -639
  120. package/dist/Typography-Dg-ROiTA.js +0 -201
  121. package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
  122. package/dist/components/data-management/instance-form/components/variables/index.js +0 -41
  123. package/dist/createSvgIcon-B2WT0K4k.js +0 -87
  124. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +0 -0
  125. package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
  126. package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
@@ -1,51 +1,43 @@
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) => {
1
+ import { jsx as y, jsxs as V, Fragment as G } from "react/jsx-runtime";
2
+ import * as d from "react";
3
+ import { P as t } from "../../createStyled-BzvgQjjR.js";
4
+ import { B as W, u as z, a as D, b as H } from "../../ButtonBase-D0qccOVb.js";
5
+ import { o as k } from "../../ownerDocument-CUrv0DIK.js";
6
+ import { e as q, a as X } from "../../exactProp-DkmnwNVS.js";
7
+ import { L, a as Y } from "../../List-PpNAWJ_I.js";
8
+ import { l as T, g as J, L as K } from "../../ListItem-CZbZ91vp.js";
9
+ import { _ as b, a as P } from "../../objectWithoutPropertiesLoose-BK36oJDi.js";
10
+ import { u as $, c as R, a as w } from "../../useThemeProps-uYx_RkOH.js";
11
+ import { s as B, r as Q, a as C } from "../../styled-LNCprp4n.js";
12
+ import { g as Z, l as S, a as ee } from "../../listItemTextClasses-DsHGzpPM.js";
13
+ import { T as E } from "../../Typography-Bm7PFqUT.js";
14
+ const te = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"], oe = (e, o) => {
23
15
  const {
24
16
  ownerState: s
25
17
  } = e;
26
18
  return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters];
27
- }, Ee = (e) => {
19
+ }, se = (e) => {
28
20
  const {
29
21
  alignItems: o,
30
22
  classes: s,
31
23
  dense: n,
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",
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",
42
34
  name: "MuiListItemButton",
43
35
  slot: "Root",
44
- overridesResolver: Pe
36
+ overridesResolver: oe
45
37
  })(({
46
38
  theme: e,
47
39
  ownerState: o
48
- }) => u({
40
+ }) => b({
49
41
  display: "flex",
50
42
  flexGrow: 1,
51
43
  justifyContent: "flex-start",
@@ -68,23 +60,23 @@ const E = Y("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFl
68
60
  backgroundColor: "transparent"
69
61
  }
70
62
  },
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)
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)
75
67
  }
76
68
  },
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),
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),
79
71
  // Reset on touch devices, it doesn't add specificity
80
72
  "@media (hover: none)": {
81
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : h(e.palette.primary.main, e.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)
82
74
  }
83
75
  },
84
- [`&.${E.focusVisible}`]: {
76
+ [`&.${T.focusVisible}`]: {
85
77
  backgroundColor: (e.vars || e).palette.action.focus
86
78
  },
87
- [`&.${E.disabled}`]: {
79
+ [`&.${T.disabled}`]: {
88
80
  opacity: (e.vars || e).palette.action.disabledOpacity
89
81
  }
90
82
  }, o.divider && {
@@ -98,52 +90,52 @@ const E = Y("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFl
98
90
  }, o.dense && {
99
91
  paddingTop: 4,
100
92
  paddingBottom: 4
101
- })), re = /* @__PURE__ */ l.forwardRef(function(o, s) {
102
- const n = M({
93
+ })), F = /* @__PURE__ */ d.forwardRef(function(o, s) {
94
+ const n = $({
103
95
  props: o,
104
96
  name: "MuiListItemButton"
105
97
  }), {
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,
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,
113
105
  focusVisibleClassName: 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),
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 = D(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" ? "a" : l,
129
+ focusVisibleClassName: R(N.focusVisible, g),
138
130
  ownerState: j,
139
- className: L(S.root, I)
140
- }, a, {
141
- classes: S,
142
- children: r
131
+ className: R(N.root, x)
132
+ }, r, {
133
+ classes: N,
134
+ children: a
143
135
  }))
144
136
  });
145
137
  });
146
- process.env.NODE_ENV !== "production" && (re.propTypes = {
138
+ process.env.NODE_ENV !== "production" && (F.propTypes = {
147
139
  // ----------------------------- Warning --------------------------------
148
140
  // | These PropTypes are generated from the TypeScript type definitions |
149
141
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -221,420 +213,15 @@ process.env.NODE_ENV !== "production" && (re.propTypes = {
221
213
  */
222
214
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
223
215
  });
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) => {
216
+ const ne = ["className"], ae = (e) => {
630
217
  const {
631
218
  alignItems: o,
632
219
  classes: s
633
220
  } = e;
634
221
  return w({
635
222
  root: ["root", o === "flex-start" && "alignItemsFlexStart"]
636
- }, Te, s);
637
- }, De = A("div", {
223
+ }, Z, s);
224
+ }, ie = B("div", {
638
225
  name: "MuiListItemIcon",
639
226
  slot: "Root",
640
227
  overridesResolver: (e, o) => {
@@ -646,29 +233,29 @@ const Ue = ["className"], _e = (e) => {
646
233
  })(({
647
234
  theme: e,
648
235
  ownerState: o
649
- }) => u({
236
+ }) => b({
650
237
  minWidth: 56,
651
238
  color: (e.vars || e).palette.action.active,
652
239
  flexShrink: 0,
653
240
  display: "inline-flex"
654
241
  }, o.alignItems === "flex-start" && {
655
242
  marginTop: 8
656
- })), ce = /* @__PURE__ */ l.forwardRef(function(o, s) {
657
- const n = M({
243
+ })), _ = /* @__PURE__ */ d.forwardRef(function(o, s) {
244
+ const n = $({
658
245
  props: o,
659
246
  name: "MuiListItemIcon"
660
247
  }), {
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,
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,
668
255
  ref: s
669
- }, i));
256
+ }, c));
670
257
  });
671
- process.env.NODE_ENV !== "production" && (ce.propTypes = {
258
+ process.env.NODE_ENV !== "production" && (_.propTypes = {
672
259
  // ----------------------------- Warning --------------------------------
673
260
  // | These PropTypes are generated from the TypeScript type definitions |
674
261
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -691,20 +278,20 @@ process.env.NODE_ENV !== "production" && (ce.propTypes = {
691
278
  */
692
279
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
693
280
  });
694
- const We = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"], ze = (e) => {
281
+ const ce = ["children", "className", "disableTypography", "inset", "primary", "primaryTypographyProps", "secondary", "secondaryTypographyProps"], le = (e) => {
695
282
  const {
696
283
  classes: o,
697
284
  inset: s,
698
285
  primary: n,
699
- secondary: c,
700
- dense: i
286
+ secondary: p,
287
+ dense: c
701
288
  } = e;
702
289
  return w({
703
- root: ["root", s && "inset", i && "dense", n && c && "multiline"],
290
+ root: ["root", s && "inset", c && "dense", n && p && "multiline"],
704
291
  primary: ["primary"],
705
292
  secondary: ["secondary"]
706
- }, Le, o);
707
- }, He = A("div", {
293
+ }, ee, o);
294
+ }, de = B("div", {
708
295
  name: "MuiListItemText",
709
296
  slot: "Root",
710
297
  overridesResolver: (e, o) => {
@@ -712,14 +299,14 @@ const We = ["children", "className", "disableTypography", "inset", "primary", "p
712
299
  ownerState: s
713
300
  } = e;
714
301
  return [{
715
- [`& .${te.primary}`]: o.primary
302
+ [`& .${S.primary}`]: o.primary
716
303
  }, {
717
- [`& .${te.secondary}`]: o.secondary
304
+ [`& .${S.secondary}`]: o.secondary
718
305
  }, o.root, s.inset && o.inset, s.primary && s.secondary && o.multiline, s.dense && o.dense];
719
306
  }
720
307
  })(({
721
308
  ownerState: e
722
- }) => u({
309
+ }) => b({
723
310
  flex: "1 1 auto",
724
311
  minWidth: 0,
725
312
  marginTop: 4,
@@ -729,53 +316,53 @@ const We = ["children", "className", "disableTypography", "inset", "primary", "p
729
316
  marginBottom: 6
730
317
  }, e.inset && {
731
318
  paddingLeft: 56
732
- })), le = /* @__PURE__ */ l.forwardRef(function(o, s) {
733
- const n = M({
319
+ })), U = /* @__PURE__ */ d.forwardRef(function(o, s) {
320
+ const n = $({
734
321
  props: o,
735
322
  name: "MuiListItemText"
736
323
  }), {
737
- children: c,
738
- className: i,
739
- disableTypography: d = !1,
740
- inset: r = !1,
741
- primary: m,
742
- primaryTypographyProps: f,
743
- secondary: C,
324
+ children: p,
325
+ className: c,
326
+ disableTypography: l = !1,
327
+ inset: a = !1,
328
+ primary: u,
329
+ primaryTypographyProps: m,
330
+ secondary: I,
744
331
  secondaryTypographyProps: g
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",
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",
758
345
  className: v.primary,
759
- component: f != null && f.variant ? void 0 : "span",
346
+ component: m != null && m.variant ? void 0 : "span",
760
347
  display: "block"
761
- }, f, {
762
- children: a
763
- }))), p != null && p.type !== F && !d && (p = /* @__PURE__ */ b(F, u({
348
+ }, m, {
349
+ children: r
350
+ }))), i != null && i.type !== E && !l && (i = /* @__PURE__ */ y(E, b({
764
351
  variant: "body2",
765
352
  className: v.secondary,
766
353
  color: "text.secondary",
767
354
  display: "block"
768
355
  }, g, {
769
- children: p
770
- }))), /* @__PURE__ */ U(He, u({
771
- className: L(v.root, i),
772
- ownerState: y,
356
+ children: i
357
+ }))), /* @__PURE__ */ V(de, b({
358
+ className: R(v.root, c),
359
+ ownerState: f,
773
360
  ref: s
774
- }, x, {
775
- children: [a, p]
361
+ }, h, {
362
+ children: [r, i]
776
363
  }));
777
364
  });
778
- process.env.NODE_ENV !== "production" && (le.propTypes = {
365
+ process.env.NODE_ENV !== "production" && (U.propTypes = {
779
366
  // ----------------------------- Warning --------------------------------
780
367
  // | These PropTypes are generated from the TypeScript type definitions |
781
368
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -829,75 +416,75 @@ process.env.NODE_ENV !== "production" && (le.propTypes = {
829
416
  */
830
417
  sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
831
418
  });
832
- function oe(e) {
419
+ function M(e) {
833
420
  return e.substring(2).toLowerCase();
834
421
  }
835
- function Ye(e, o) {
422
+ function pe(e, o) {
836
423
  return o.documentElement.clientWidth < e.clientX || o.documentElement.clientHeight < e.clientY;
837
424
  }
838
- function _(e) {
425
+ function O(e) {
839
426
  const {
840
427
  children: o,
841
428
  disableReactTree: s = !1,
842
429
  mouseEvent: n = "onClick",
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;
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;
848
435
  }, 0), () => {
849
- m.current = !1;
436
+ u.current = !1;
850
437
  }), []);
851
- const C = H(
438
+ const I = D(
852
439
  // @ts-expect-error TODO upstream fix
853
440
  o.ref,
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))
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))
860
447
  return;
861
- if (d.current) {
862
- d.current = !1;
448
+ if (l.current) {
449
+ l.current = !1;
863
450
  return;
864
451
  }
865
452
  let v;
866
- a.composedPath ? v = a.composedPath().indexOf(r.current) > -1 : v = !y.documentElement.contains(
453
+ r.composedPath ? v = r.composedPath().indexOf(a.current) > -1 : v = !f.documentElement.contains(
867
454
  // @ts-expect-error returns `false` as intended when not dispatched from a Node
868
- a.target
869
- ) || r.current.contains(
455
+ r.target
456
+ ) || a.current.contains(
870
457
  // @ts-expect-error returns `false` as intended when not dispatched from a Node
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
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
879
466
  };
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;
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;
884
471
  };
885
- return p.addEventListener(a, g), p.addEventListener("touchmove", y), () => {
886
- p.removeEventListener(a, g), p.removeEventListener("touchmove", y);
472
+ return i.addEventListener(r, g), i.addEventListener("touchmove", f), () => {
473
+ i.removeEventListener(r, g), i.removeEventListener("touchmove", f);
887
474
  };
888
475
  }
889
- }, [g, i]), n !== !1 && (I[n] = x(n)), l.useEffect(() => {
476
+ }, [g, c]), n !== !1 && (x[n] = h(n)), d.useEffect(() => {
890
477
  if (n !== !1) {
891
- const a = oe(n), p = z(r.current);
892
- return p.addEventListener(a, g), () => {
893
- p.removeEventListener(a, g);
478
+ const r = M(n), i = k(a.current);
479
+ return i.addEventListener(r, g), () => {
480
+ i.removeEventListener(r, g);
894
481
  };
895
482
  }
896
- }, [g, n]), /* @__PURE__ */ b(l.Fragment, {
897
- children: /* @__PURE__ */ l.cloneElement(o, I)
483
+ }, [g, n]), /* @__PURE__ */ y(d.Fragment, {
484
+ children: /* @__PURE__ */ d.cloneElement(o, x)
898
485
  });
899
486
  }
900
- process.env.NODE_ENV !== "production" && (_.propTypes = {
487
+ process.env.NODE_ENV !== "production" && (O.propTypes = {
901
488
  // ----------------------------- Warning --------------------------------
902
489
  // | These PropTypes are generated from the TypeScript type definitions |
903
490
  // | To update them edit TypeScript types and run "yarn proptypes" |
@@ -905,7 +492,7 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
905
492
  /**
906
493
  * The wrapped element.
907
494
  */
908
- children: ve.isRequired,
495
+ children: q.isRequired,
909
496
  /**
910
497
  * If `true`, the React tree is ignored and only the DOM tree is considered.
911
498
  * This prop changes how portaled elements are handled.
@@ -927,20 +514,20 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
927
514
  */
928
515
  touchEvent: t.oneOf(["onTouchEnd", "onTouchStart", !1])
929
516
  });
930
- process.env.NODE_ENV !== "production" && (_.propTypes = Ie(_.propTypes));
931
- const it = ({
517
+ process.env.NODE_ENV !== "production" && (O.propTypes = X(O.propTypes));
518
+ const Ee = ({
932
519
  open: e,
933
520
  buttons: o,
934
521
  position: s,
935
522
  width: n = 160,
936
- sx: c,
937
- onClose: i
523
+ sx: p,
524
+ onClose: c
938
525
  }) => {
939
- const d = () => {
940
- i && i();
526
+ const l = () => {
527
+ c && c();
941
528
  };
942
- return e ? /* @__PURE__ */ b(_, { onClickAway: d, children: /* @__PURE__ */ b(
943
- Ce,
529
+ return e ? /* @__PURE__ */ y(O, { onClickAway: l, children: /* @__PURE__ */ y(
530
+ Y,
944
531
  {
945
532
  sx: {
946
533
  position: "absolute",
@@ -951,24 +538,24 @@ const it = ({
951
538
  left: s == null ? void 0 : s.left,
952
539
  top: s == null ? void 0 : s.top,
953
540
  borderRadius: 0.5,
954
- ...c
541
+ ...p
955
542
  },
956
543
  disablePadding: !0,
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,
544
+ children: o.map((a, u) => /* @__PURE__ */ y(K, { secondaryAction: a.endIcon, disablePadding: !0, children: /* @__PURE__ */ V(F, { role: void 0, onClick: a.onClick, dense: !0, children: [
545
+ a.startIcon !== void 0 && /* @__PURE__ */ y(_, { sx: { minWidth: "auto", mr: 1 }, children: a.startIcon }),
546
+ /* @__PURE__ */ y(
547
+ U,
961
548
  {
962
- primary: r.label,
549
+ primary: a.label,
963
550
  primaryTypographyProps: {
964
551
  fontSize: "12px"
965
552
  }
966
553
  }
967
554
  )
968
- ] }) }, m))
555
+ ] }) }, u))
969
556
  }
970
- ) }) : /* @__PURE__ */ b(ye, {});
557
+ ) }) : /* @__PURE__ */ y(G, {});
971
558
  };
972
559
  export {
973
- it as ContextMenu
560
+ Ee as ContextMenu
974
561
  };