@hybridcore/ui 1.4.31 → 1.4.32

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 (107) hide show
  1. package/dist/AccordionDetails-mpRYHtGq.js +743 -0
  2. package/dist/{Add-eepk2WTM.js → Add-BKnWHZ7A.js} +10 -9
  3. package/dist/{Box-BPyg-Ybm.js → Box-SSMZuKnS.js} +8 -8
  4. package/dist/{Button-DLwB_sKd.js → Button-jy67CcTH.js} +8 -7
  5. package/dist/{ButtonBase-D0qccOVb.js → ButtonBase-CgQC8DUB.js} +13 -12
  6. package/dist/{CardContent-DFsCCOWk.js → CardContent-CCq4R1KS.js} +14 -13
  7. package/dist/{Checkbox-qy3cjvnb.js → Checkbox-B0P8LhCl.js} +10 -9
  8. package/dist/{Delete-OHEw9lDi.js → Delete-DfyX03ib.js} +1 -1
  9. package/dist/{DialogContent-CxOSq6h9.js → DialogContent-B0_-g7B0.js} +10 -9
  10. package/dist/{FormControlLabel-D9KFjcIx.js → FormControlLabel-BNT5EI0b.js} +10 -9
  11. package/dist/{IconButton-BaiyAtmS.js → IconButton-DekcZv4i.js} +16 -15
  12. package/dist/{Input-CmCkXczh.js → Input-BAbDr3Tk.js} +17 -16
  13. package/dist/{InputAdornment-CZUPEeia.js → InputAdornment-BAVRrRts.js} +8 -7
  14. package/dist/{InputLabel-CWkW8NtU.js → InputLabel-ClDXuWBr.js} +16 -14
  15. package/dist/{List-PpNAWJ_I.js → List-CNeRnfGL.js} +10 -9
  16. package/dist/{ListItem-CZbZ91vp.js → ListItem-N_dSd02S.js} +15 -14
  17. package/dist/{MenuItem-D-INSvZa.js → MenuItem-Lcjh1XlV.js} +11 -10
  18. package/dist/{Modal-KrI5qFIq.js → Modal-CJn-Bqyo.js} +14 -13
  19. package/dist/{OutlinedInput-DkIUD30e.js → OutlinedInput-De2keFJK.js} +28 -27
  20. package/dist/{Paper-btu3j72o.js → Paper-DRRYGupP.js} +22 -21
  21. package/dist/{Select-ClaBvSqf.js → Select-DwAJxKTN.js} +65 -63
  22. package/dist/{Source-Hf_SiWEW.js → Source-CnCcu5UP.js} +123 -123
  23. package/dist/{Tabs-BzelDJKy.js → Tabs-DqdkJU6b.js} +16 -14
  24. package/dist/{Text-D6oGbCdi.js → Text-BT5kPHOo.js} +41 -41
  25. package/dist/{TextField-D87qTh1k.js → TextField-BAXUnwnR.js} +14 -13
  26. package/dist/{Typography-Bm7PFqUT.js → Typography-CLq43OVQ.js} +21 -20
  27. package/dist/components/access/helpers.js +1 -1
  28. package/dist/components/access/index.js +1 -1
  29. package/dist/components/card/index.js +49 -48
  30. package/dist/components/card/styled.js +1 -1
  31. package/dist/components/collapsible-card/style.js +3 -3
  32. package/dist/components/confirm/dialog.js +3 -3
  33. package/dist/components/confirm/index.js +1 -1
  34. package/dist/components/container/index.js +10 -9
  35. package/dist/components/context-menu/index.js +13 -12
  36. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  37. package/dist/components/data-security-selectors/security-level/index.js +7 -7
  38. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  39. package/dist/components/geometry-picker/edit/index.js +2 -2
  40. package/dist/components/geometry-picker/geometry/index.js +1 -1
  41. package/dist/components/geometry-picker/index.js +3 -3
  42. package/dist/components/geometry-picker/kml/index.js +1 -1
  43. package/dist/components/geometry-picker/map/logic.js +19 -19
  44. package/dist/components/geometry-picker/map/style.js +1 -1
  45. package/dist/components/icon-button/index.js +1 -1
  46. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  47. package/dist/components/instance-form/components/variable/index.js +8 -8
  48. package/dist/components/instance-form/components/variables/index.js +1 -1
  49. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  50. package/dist/components/map/helpers/mapbox.js +3 -3
  51. package/dist/components/map/helpers/ol.js +3 -3
  52. package/dist/components/map/logic.js +2 -2
  53. package/dist/components/map/styled.js +2 -2
  54. package/dist/components/property-mapping/index.js +2 -2
  55. package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
  56. package/dist/components/range-selector/components/date-range/index.js +1 -1
  57. package/dist/components/range-selector/index.js +1 -1
  58. package/dist/components/search-input/index.js +4 -4
  59. package/dist/components/tabs/index.js +1 -1
  60. package/dist/components/template-filters/components/filter/index.js +44 -0
  61. package/dist/components/template-filters/components/tab-panel/index.js +27 -0
  62. package/dist/components/template-filters/index.js +39 -0
  63. package/dist/components/template-filters/styled.js +1 -0
  64. package/dist/components/template-form/components/property-list/index.js +7 -7
  65. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  66. package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
  67. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  68. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  69. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
  70. package/dist/components/template-form/index.js +5 -5
  71. package/dist/components/template-property-filters/property.js +5 -5
  72. package/dist/components/tree-select/index.js +5 -5
  73. package/dist/components/treeview-filter/index.js +384 -318
  74. package/dist/components/treeview-filter/item/index.js +56 -5
  75. package/dist/components/treeview-filter/item/styled.js +38 -0
  76. package/dist/components/treeview-filter/item-label/index.js +27 -26
  77. package/dist/createStyled-CUatW1r9.js +352 -0
  78. package/dist/{createSvgIcon-Cfm1LkEe.js → createSvgIcon-BXjHHQ0B.js} +28 -29
  79. package/dist/{createSvgIcon-DEXLbMwp.js → createSvgIcon-CBoAEepv.js} +9 -8
  80. package/dist/{styled-LNCprp4n.js → createTheme-DVoJnXAT.js} +134 -142
  81. package/dist/createTheme-DrgvKMA_.js +1563 -0
  82. package/dist/{dialog-v5-nL5yy.js → dialog-DPGR2gik.js} +7 -7
  83. package/dist/{exactProp-DkmnwNVS.js → exactProp-H1i70prd.js} +3 -3
  84. package/dist/{extendSxProp-qqdkfHzS.js → extendSxProp-BmK2hLmq.js} +4 -4
  85. package/dist/{has-CjQtZJa9.js → has-9_asnBxn.js} +26 -26
  86. package/dist/{helpers-B4UL9NMD.js → helpers-DaCoWmi2.js} +3 -3
  87. package/dist/{index-oPY7k6mu.js → index-B_GNCJdV.js} +7 -7
  88. package/dist/{index-C1fczHEW.js → index-RfDWDd66.js} +28 -27
  89. package/dist/{listItemTextClasses-DsHGzpPM.js → listItemTextClasses-CC7nbQWN.js} +4 -4
  90. package/dist/main.js +35 -35
  91. package/dist/{objectWithoutPropertiesLoose-BK36oJDi.js → objectWithoutPropertiesLoose-DJteAcBH.js} +2 -2
  92. package/dist/{ol-CHaVTXvL.js → ol-9hySGI6D.js} +3 -3
  93. package/dist/{property-list-form-B1GZ9ZGO.js → property-list-form-DgmTiBvu.js} +36 -35
  94. package/dist/styled-DkqItiLo.js +12 -0
  95. package/dist/unsupportedProp-BND8AB6O.js +25 -0
  96. package/dist/{useTheme-DBiahn6p.js → useTheme-B6oa3v5u.js} +4 -4
  97. package/dist/useTheme-GN5Dc3mG.js +18 -0
  98. package/dist/useThemeProps-BlXpIqSE.js +95 -0
  99. package/dist/{utils-DNe_YYjm.js → utils-BRsEqTye.js} +8 -8
  100. package/package.json +1 -1
  101. package/dist/AccordionDetails-CGs6GZQK.js +0 -454
  102. package/dist/Collapse-CL6LGGZw.js +0 -298
  103. package/dist/createStyled-BzvgQjjR.js +0 -1910
  104. package/dist/index-B0JPwFI9.js +0 -596
  105. package/dist/requirePropFactory-BjhhI-AW.js +0 -18
  106. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  107. package/dist/useThemeProps-uYx_RkOH.js +0 -109
@@ -1,596 +0,0 @@
1
- import { jsx as T, jsxs as re } from "react/jsx-runtime";
2
- import ye from "./components/treeview-filter/item-label/index.js";
3
- import se from "lodash";
4
- import * as l from "react";
5
- import { c as ie, g as xe, u as Ie, a as Te } from "./useThemeProps-uYx_RkOH.js";
6
- import { P as n } from "./createStyled-BzvgQjjR.js";
7
- import { u as Ee, a as he, e as De } from "./ButtonBase-D0qccOVb.js";
8
- import { g as ve, s as W, a as $ } from "./styled-LNCprp4n.js";
9
- import { C as ce } from "./Collapse-CL6LGGZw.js";
10
- import { u as Ne } from "./unsupportedProp-BuVD30Gh.js";
11
- import { o as Oe } from "./ownerDocument-CUrv0DIK.js";
12
- const z = /* @__PURE__ */ l.createContext({});
13
- process.env.NODE_ENV !== "production" && (z.displayName = "TreeViewContext");
14
- function Se(e, t) {
15
- for (let o = 0; o < e.length; o += 1)
16
- if (t(e[o]))
17
- return o;
18
- return -1;
19
- }
20
- function ke(e, t) {
21
- let o = 0, s = e.length - 1;
22
- for (; o <= s; ) {
23
- const a = Math.floor((o + s) / 2);
24
- if (e[a].element === t)
25
- return a;
26
- e[a].element.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_PRECEDING ? s = a - 1 : o = a + 1;
27
- }
28
- return o;
29
- }
30
- const J = /* @__PURE__ */ l.createContext({});
31
- process.env.NODE_ENV !== "production" && (J.displayName = "DescendantContext");
32
- function we(e) {
33
- const t = l.useRef(null);
34
- return l.useEffect(() => {
35
- t.current = e;
36
- }, [e]), t.current;
37
- }
38
- const ae = () => {
39
- };
40
- function Re(e) {
41
- const [, t] = l.useState(), {
42
- registerDescendant: o = ae,
43
- unregisterDescendant: s = ae,
44
- descendants: a = [],
45
- parentId: b = null
46
- } = l.useContext(J), f = Se(a, (p) => p.element === e.element), m = we(a), d = a.some((p, c) => m && m[c] && m[c].element !== p.element);
47
- return Ee(() => {
48
- if (e.element)
49
- return o({
50
- ...e,
51
- index: f
52
- }), () => {
53
- s(e.element);
54
- };
55
- t({});
56
- }, [o, s, f, d, e]), {
57
- parentId: b,
58
- index: f
59
- };
60
- }
61
- function le(e) {
62
- const {
63
- children: t,
64
- id: o
65
- } = e, [s, a] = l.useState([]), b = l.useCallback(({
66
- element: d,
67
- ...p
68
- }) => {
69
- a((c) => {
70
- let u;
71
- if (c.length === 0)
72
- return [{
73
- ...p,
74
- element: d,
75
- index: 0
76
- }];
77
- const C = ke(c, d);
78
- if (c[C] && c[C].element === d)
79
- u = c;
80
- else {
81
- const g = {
82
- ...p,
83
- element: d,
84
- index: C
85
- };
86
- u = c.slice(), u.splice(C, 0, g);
87
- }
88
- return u.forEach((g, y) => {
89
- g.index = y;
90
- }), u;
91
- });
92
- }, []), f = l.useCallback((d) => {
93
- a((p) => p.filter((c) => d !== c.element));
94
- }, []), m = l.useMemo(() => ({
95
- descendants: s,
96
- registerDescendant: b,
97
- unregisterDescendant: f,
98
- parentId: o
99
- }), [s, b, f, o]);
100
- return /* @__PURE__ */ T(J.Provider, {
101
- value: m,
102
- children: t
103
- });
104
- }
105
- process.env.NODE_ENV !== "production" && (le.propTypes = {
106
- children: n.node,
107
- id: n.string
108
- });
109
- function $e(e) {
110
- const {
111
- focus: t,
112
- isExpanded: o,
113
- isExpandable: s,
114
- isFocused: a,
115
- isDisabled: b,
116
- isSelected: f,
117
- multiSelect: m,
118
- selectNode: d,
119
- selectRange: p,
120
- toggleExpansion: c
121
- } = l.useContext(z), u = s ? s(e) : !1, C = o ? o(e) : !1, g = a ? a(e) : !1, y = b ? b(e) : !1, i = f ? f(e) : !1;
122
- return {
123
- disabled: y,
124
- expanded: C,
125
- selected: i,
126
- focused: g,
127
- handleExpansion: (r) => {
128
- if (!y) {
129
- g || t(r, e);
130
- const D = m && (r.shiftKey || r.ctrlKey || r.metaKey);
131
- u && !(D && o(e)) && c(r, e);
132
- }
133
- },
134
- handleSelection: (r) => {
135
- y || (g || t(r, e), m && (r.shiftKey || r.ctrlKey || r.metaKey) ? r.shiftKey ? p(r, {
136
- end: e
137
- }) : d(r, e, !0) : d(r, e));
138
- },
139
- preventSelection: (r) => {
140
- (r.shiftKey || r.ctrlKey || r.metaKey || y) && r.preventDefault();
141
- }
142
- };
143
- }
144
- const Q = /* @__PURE__ */ l.forwardRef(function(t, o) {
145
- const {
146
- classes: s,
147
- className: a,
148
- displayIcon: b,
149
- expansionIcon: f,
150
- icon: m,
151
- label: d,
152
- nodeId: p,
153
- onClick: c,
154
- onMouseDown: u,
155
- ...C
156
- } = t, {
157
- disabled: g,
158
- expanded: y,
159
- selected: i,
160
- focused: S,
161
- handleExpansion: k,
162
- handleSelection: w,
163
- preventSelection: r
164
- } = $e(p), D = m || f || b, v = (x) => {
165
- r(x), u && u(x);
166
- }, M = (x) => {
167
- k(x), w(x), c && c(x);
168
- };
169
- return (
170
- /* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
171
- /* @__PURE__ */ re("div", {
172
- className: ie(a, s.root, y && s.expanded, i && s.selected, S && s.focused, g && s.disabled),
173
- onClick: M,
174
- onMouseDown: v,
175
- ref: o,
176
- ...C,
177
- children: [/* @__PURE__ */ T("div", {
178
- className: s.iconContainer,
179
- children: D
180
- }), /* @__PURE__ */ T("div", {
181
- className: s.label,
182
- children: d
183
- })]
184
- })
185
- );
186
- });
187
- process.env.NODE_ENV !== "production" && (Q.propTypes = {
188
- // ----------------------------- Warning --------------------------------
189
- // | These PropTypes are generated from the TypeScript type definitions |
190
- // | To update them edit the d.ts file and run "yarn proptypes" |
191
- // ----------------------------------------------------------------------
192
- /**
193
- * Override or extend the styles applied to the component.
194
- * See [CSS API](#css) below for more details.
195
- */
196
- classes: n.object,
197
- /**
198
- * className applied to the root element.
199
- */
200
- className: n.string,
201
- /**
202
- * The icon to display next to the tree node's label. Either a parent or end icon.
203
- */
204
- displayIcon: n.node,
205
- /**
206
- * The icon to display next to the tree node's label. Either an expansion or collapse icon.
207
- */
208
- expansionIcon: n.node,
209
- /**
210
- * The icon to display next to the tree node's label.
211
- */
212
- icon: n.node,
213
- /**
214
- * The tree node label.
215
- */
216
- label: n.node,
217
- /**
218
- * The id of the node.
219
- */
220
- nodeId: n.string.isRequired,
221
- /**
222
- * @ignore
223
- */
224
- onClick: n.func,
225
- /**
226
- * @ignore
227
- */
228
- onMouseDown: n.func
229
- });
230
- function Me(e) {
231
- return ve("MuiTreeItem", e);
232
- }
233
- const h = xe("MuiTreeItem", ["root", "group", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label"]), Pe = (e) => {
234
- const {
235
- classes: t
236
- } = e;
237
- return Te({
238
- root: ["root"],
239
- content: ["content"],
240
- expanded: ["expanded"],
241
- selected: ["selected"],
242
- focused: ["focused"],
243
- disabled: ["disabled"],
244
- iconContainer: ["iconContainer"],
245
- label: ["label"],
246
- group: ["group"]
247
- }, Me, t);
248
- }, Fe = W("li", {
249
- name: "MuiTreeItem",
250
- slot: "Root",
251
- overridesResolver: (e, t) => t.root
252
- })({
253
- listStyle: "none",
254
- margin: 0,
255
- padding: 0,
256
- outline: 0
257
- }), je = W(Q, {
258
- name: "MuiTreeItem",
259
- slot: "Content",
260
- overridesResolver: (e, t) => [t.content, t.iconContainer && {
261
- [`& .${h.iconContainer}`]: t.iconContainer
262
- }, t.label && {
263
- [`& .${h.label}`]: t.label
264
- }]
265
- })(({
266
- theme: e
267
- }) => ({
268
- padding: "0 8px",
269
- width: "100%",
270
- display: "flex",
271
- alignItems: "center",
272
- cursor: "pointer",
273
- WebkitTapHighlightColor: "transparent",
274
- "&:hover": {
275
- backgroundColor: (e.vars || e).palette.action.hover,
276
- // Reset on touch devices, it doesn't add specificity
277
- "@media (hover: none)": {
278
- backgroundColor: "transparent"
279
- }
280
- },
281
- [`&.${h.disabled}`]: {
282
- opacity: (e.vars || e).palette.action.disabledOpacity,
283
- backgroundColor: "transparent"
284
- },
285
- [`&.${h.focused}`]: {
286
- backgroundColor: (e.vars || e).palette.action.focus
287
- },
288
- [`&.${h.selected}`]: {
289
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : $(e.palette.primary.main, e.palette.action.selectedOpacity),
290
- "&:hover": {
291
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : $(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
292
- // Reset on touch devices, it doesn't add specificity
293
- "@media (hover: none)": {
294
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : $(e.palette.primary.main, e.palette.action.selectedOpacity)
295
- }
296
- },
297
- [`&.${h.focused}`]: {
298
- backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : $(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
299
- }
300
- },
301
- [`& .${h.iconContainer}`]: {
302
- marginRight: 4,
303
- width: 15,
304
- display: "flex",
305
- flexShrink: 0,
306
- justifyContent: "center",
307
- "& svg": {
308
- fontSize: 18
309
- }
310
- },
311
- [`& .${h.label}`]: {
312
- width: "100%",
313
- // fixes overflow - see https://github.com/mui/material-ui/issues/27372
314
- minWidth: 0,
315
- paddingLeft: 4,
316
- position: "relative",
317
- ...e.typography.body1
318
- }
319
- })), Ke = W(ce, {
320
- name: "MuiTreeItem",
321
- slot: "Group",
322
- overridesResolver: (e, t) => t.group
323
- })({
324
- margin: 0,
325
- padding: 0,
326
- marginLeft: 17
327
- }), de = /* @__PURE__ */ l.forwardRef(function(t, o) {
328
- const s = Ie({
329
- props: t,
330
- name: "MuiTreeItem"
331
- }), {
332
- children: a,
333
- className: b,
334
- collapseIcon: f,
335
- ContentComponent: m = Q,
336
- ContentProps: d,
337
- endIcon: p,
338
- expandIcon: c,
339
- disabled: u,
340
- icon: C,
341
- id: g,
342
- label: y,
343
- nodeId: i,
344
- onClick: S,
345
- onMouseDown: k,
346
- TransitionComponent: w = ce,
347
- TransitionProps: r,
348
- ...D
349
- } = s, {
350
- icons: v = {},
351
- focus: M,
352
- isExpanded: x,
353
- isFocused: X,
354
- isSelected: Y,
355
- isDisabled: Z,
356
- multiSelect: pe,
357
- disabledItemsFocusable: ue,
358
- mapFirstChar: P,
359
- unMapFirstChar: F,
360
- registerNode: j,
361
- unregisterNode: K,
362
- treeId: _
363
- } = l.useContext(z);
364
- let N = null;
365
- g != null ? N = g : _ && i && (N = `${_}-${i}`);
366
- const [ee, fe] = l.useState(null), ne = l.useRef(null), me = he(fe, o), be = l.useMemo(() => ({
367
- element: ee,
368
- id: i
369
- }), [i, ee]), {
370
- index: V,
371
- parentId: te
372
- } = Re(be), O = !!(Array.isArray(a) ? a.length : a), R = x ? x(i) : !1, oe = X ? X(i) : !1, U = Y ? Y(i) : !1, A = Z ? Z(i) : !1, L = {
373
- ...s,
374
- expanded: R,
375
- focused: oe,
376
- selected: U,
377
- disabled: A
378
- }, I = Pe(L);
379
- let G, q;
380
- O && (R ? q = f || v.defaultCollapseIcon : q = c || v.defaultExpandIcon), O ? G = v.defaultParentIcon : G = p || v.defaultEndIcon, l.useEffect(() => {
381
- if (j && K && V !== -1)
382
- return j({
383
- id: i,
384
- idAttribute: N,
385
- index: V,
386
- parentId: te,
387
- expandable: O,
388
- disabled: u
389
- }), () => {
390
- K(i);
391
- };
392
- }, [j, K, te, V, i, O, u, N]), l.useEffect(() => {
393
- if (P && F && y)
394
- return P(i, ne.current.textContent.substring(0, 1).toLowerCase()), () => {
395
- F(i);
396
- };
397
- }, [P, F, i, y]);
398
- let B;
399
- pe ? B = U : U && (B = !0);
400
- function ge(E) {
401
- if (E.target === E.currentTarget) {
402
- let H;
403
- typeof E.target.getRootNode == "function" ? H = E.target.getRootNode() : H = Oe(E.target), H.getElementById(_).focus({
404
- preventScroll: !0
405
- });
406
- }
407
- const Ce = !ue && A;
408
- !oe && E.currentTarget === E.target && !Ce && M(E, i);
409
- }
410
- return /* @__PURE__ */ re(Fe, {
411
- className: ie(I.root, b),
412
- role: "treeitem",
413
- "aria-expanded": O ? R : null,
414
- "aria-selected": B,
415
- "aria-disabled": A || null,
416
- ref: me,
417
- id: N,
418
- tabIndex: -1,
419
- ...D,
420
- ownerState: L,
421
- onFocus: ge,
422
- children: [/* @__PURE__ */ T(je, {
423
- as: m,
424
- ref: ne,
425
- classes: {
426
- root: I.content,
427
- expanded: I.expanded,
428
- selected: I.selected,
429
- focused: I.focused,
430
- disabled: I.disabled,
431
- iconContainer: I.iconContainer,
432
- label: I.label
433
- },
434
- label: y,
435
- nodeId: i,
436
- onClick: S,
437
- onMouseDown: k,
438
- icon: C,
439
- expansionIcon: q,
440
- displayIcon: G,
441
- ownerState: L,
442
- ...d
443
- }), a && /* @__PURE__ */ T(le, {
444
- id: i,
445
- children: /* @__PURE__ */ T(Ke, {
446
- as: w,
447
- unmountOnExit: !0,
448
- className: I.group,
449
- in: R,
450
- component: "ul",
451
- role: "group",
452
- ...r,
453
- children: a
454
- })
455
- })]
456
- });
457
- });
458
- process.env.NODE_ENV !== "production" && (de.propTypes = {
459
- // ----------------------------- Warning --------------------------------
460
- // | These PropTypes are generated from the TypeScript type definitions |
461
- // | To update them edit the d.ts file and run "yarn proptypes" |
462
- // ----------------------------------------------------------------------
463
- /**
464
- * The content of the component.
465
- */
466
- children: n.node,
467
- /**
468
- * Override or extend the styles applied to the component.
469
- */
470
- classes: n.object,
471
- /**
472
- * @ignore
473
- */
474
- className: n.string,
475
- /**
476
- * The icon used to collapse the node.
477
- */
478
- collapseIcon: n.node,
479
- /**
480
- * The component used for the content node.
481
- * @default TreeItemContent
482
- */
483
- ContentComponent: De,
484
- /**
485
- * Props applied to ContentComponent
486
- */
487
- ContentProps: n.object,
488
- /**
489
- * If `true`, the node is disabled.
490
- * @default false
491
- */
492
- disabled: n.bool,
493
- /**
494
- * The icon displayed next to a end node.
495
- */
496
- endIcon: n.node,
497
- /**
498
- * The icon used to expand the node.
499
- */
500
- expandIcon: n.node,
501
- /**
502
- * The icon to display next to the tree node's label.
503
- */
504
- icon: n.node,
505
- /**
506
- * @ignore
507
- */
508
- id: n.string,
509
- /**
510
- * The tree node label.
511
- */
512
- label: n.node,
513
- /**
514
- * The id of the node.
515
- */
516
- nodeId: n.string.isRequired,
517
- /**
518
- * @ignore
519
- */
520
- onClick: n.func,
521
- /**
522
- * This prop isn't supported.
523
- * Use the `onNodeFocus` callback on the tree if you need to monitor a node's focus.
524
- */
525
- onFocus: Ne,
526
- /**
527
- * @ignore
528
- */
529
- onMouseDown: n.func,
530
- /**
531
- * The system prop that allows defining system overrides as well as additional CSS styles.
532
- */
533
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
534
- /**
535
- * The component used for the transition.
536
- * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
537
- * @default Collapse
538
- */
539
- TransitionComponent: n.elementType,
540
- /**
541
- * Props applied to the transition element.
542
- * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
543
- */
544
- TransitionProps: n.object
545
- });
546
- function _e({
547
- id: e,
548
- idKey: t,
549
- name: o,
550
- checked: s,
551
- disabled: a,
552
- disabledIds: b,
553
- onChange: f,
554
- children: m,
555
- defaultSelected: d
556
- }) {
557
- return /* @__PURE__ */ T(
558
- de,
559
- {
560
- nodeId: String(e),
561
- label: /* @__PURE__ */ T(
562
- ye,
563
- {
564
- id: e,
565
- name: o,
566
- checked: s,
567
- disabled: a,
568
- onChange: f
569
- }
570
- ),
571
- children: m && m.map((p, c) => {
572
- const u = String(p[t]), C = se.includes(d, u), g = se.includes(b, u);
573
- return /* @__PURE__ */ T(
574
- _e,
575
- {
576
- id: u,
577
- idKey: t,
578
- name: p.name,
579
- checked: C,
580
- disabled: g,
581
- disabledIds: b,
582
- children: p.children,
583
- onChange: f,
584
- defaultSelected: d
585
- },
586
- c
587
- );
588
- })
589
- }
590
- );
591
- }
592
- export {
593
- le as D,
594
- _e as I,
595
- z as T
596
- };
@@ -1,18 +0,0 @@
1
- import { _ as d } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
2
- function T(f, t) {
3
- if (process.env.NODE_ENV === "production")
4
- return () => null;
5
- const n = t ? d({}, t.propTypes) : null;
6
- return (o) => (e, r, l, p, u, ...y) => {
7
- const c = u || r, i = n == null ? void 0 : n[c];
8
- if (i) {
9
- const s = i(e, r, l, p, u, ...y);
10
- if (s)
11
- return s;
12
- }
13
- return typeof e[r] < "u" && !e[o] ? new Error(`The prop \`${c}\` of \`${f}\` can only be used together with the \`${o}\` prop.`) : null;
14
- };
15
- }
16
- export {
17
- T as r
18
- };
@@ -1,9 +0,0 @@
1
- function p(n, e, t, u, o) {
2
- if (process.env.NODE_ENV === "production")
3
- return null;
4
- const r = o || e;
5
- return typeof n[e] < "u" ? new Error(`The prop \`${r}\` is not supported. Please remove it.`) : null;
6
- }
7
- export {
8
- p as u
9
- };