@hybridcore/ui 1.4.31 → 1.4.33

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 (108) 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.d.ts +13 -0
  91. package/dist/main.js +49 -47
  92. package/dist/{objectWithoutPropertiesLoose-BK36oJDi.js → objectWithoutPropertiesLoose-DJteAcBH.js} +2 -2
  93. package/dist/{ol-CHaVTXvL.js → ol-9hySGI6D.js} +3 -3
  94. package/dist/{property-list-form-B1GZ9ZGO.js → property-list-form-DgmTiBvu.js} +36 -35
  95. package/dist/styled-DkqItiLo.js +12 -0
  96. package/dist/unsupportedProp-BND8AB6O.js +25 -0
  97. package/dist/{useTheme-DBiahn6p.js → useTheme-B6oa3v5u.js} +4 -4
  98. package/dist/useTheme-GN5Dc3mG.js +18 -0
  99. package/dist/useThemeProps-BlXpIqSE.js +95 -0
  100. package/dist/{utils-DNe_YYjm.js → utils-BRsEqTye.js} +8 -8
  101. package/package.json +1 -1
  102. package/dist/AccordionDetails-CGs6GZQK.js +0 -454
  103. package/dist/Collapse-CL6LGGZw.js +0 -298
  104. package/dist/createStyled-BzvgQjjR.js +0 -1910
  105. package/dist/index-B0JPwFI9.js +0 -596
  106. package/dist/requirePropFactory-BjhhI-AW.js +0 -18
  107. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  108. package/dist/useThemeProps-uYx_RkOH.js +0 -109
@@ -0,0 +1,743 @@
1
+ import { a as i, _ as k } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
+ import * as a from "react";
3
+ import { r as le } from "./createStyled-CUatW1r9.js";
4
+ import { P as e } from "./createTheme-DrgvKMA_.js";
5
+ import { g as L, u as B, c as P, a as q, b as pe } from "./useThemeProps-BlXpIqSE.js";
6
+ import { s as E } from "./styled-DkqItiLo.js";
7
+ import { g as F, d as ue } from "./createTheme-DVoJnXAT.js";
8
+ import { jsx as g, jsxs as ne } from "react/jsx-runtime";
9
+ import { P as fe } from "./Paper-DRRYGupP.js";
10
+ import { u as me } from "./useControlled-BYdyS7Pn.js";
11
+ import { T as ge, g as oe } from "./utils-BRsEqTye.js";
12
+ import { u as be } from "./useTheme-B6oa3v5u.js";
13
+ import { e as he, a as xe, B as ye } from "./ButtonBase-CgQC8DUB.js";
14
+ function Ce(o) {
15
+ return F("MuiCollapse", o);
16
+ }
17
+ L("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
18
+ const Ee = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], ve = (o) => {
19
+ const {
20
+ orientation: n,
21
+ classes: r
22
+ } = o, s = {
23
+ root: ["root", `${n}`],
24
+ entered: ["entered"],
25
+ hidden: ["hidden"],
26
+ wrapper: ["wrapper", `${n}`],
27
+ wrapperInner: ["wrapperInner", `${n}`]
28
+ };
29
+ return q(s, Ce, r);
30
+ }, Re = E("div", {
31
+ name: "MuiCollapse",
32
+ slot: "Root",
33
+ overridesResolver: (o, n) => {
34
+ const {
35
+ ownerState: r
36
+ } = o;
37
+ return [n.root, n[r.orientation], r.state === "entered" && n.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && n.hidden];
38
+ }
39
+ })(({
40
+ theme: o,
41
+ ownerState: n
42
+ }) => i({
43
+ height: 0,
44
+ overflow: "hidden",
45
+ transition: o.transitions.create("height")
46
+ }, n.orientation === "horizontal" && {
47
+ height: "auto",
48
+ width: 0,
49
+ transition: o.transitions.create("width")
50
+ }, n.state === "entered" && i({
51
+ height: "auto",
52
+ overflow: "visible"
53
+ }, n.orientation === "horizontal" && {
54
+ width: "auto"
55
+ }), n.state === "exited" && !n.in && n.collapsedSize === "0px" && {
56
+ visibility: "hidden"
57
+ })), Te = E("div", {
58
+ name: "MuiCollapse",
59
+ slot: "Wrapper",
60
+ overridesResolver: (o, n) => n.wrapper
61
+ })(({
62
+ ownerState: o
63
+ }) => i({
64
+ // Hack to get children with a negative margin to not falsify the height computation.
65
+ display: "flex",
66
+ width: "100%"
67
+ }, o.orientation === "horizontal" && {
68
+ width: "auto",
69
+ height: "100%"
70
+ })), Ae = E("div", {
71
+ name: "MuiCollapse",
72
+ slot: "WrapperInner",
73
+ overridesResolver: (o, n) => n.wrapperInner
74
+ })(({
75
+ ownerState: o
76
+ }) => i({
77
+ width: "100%"
78
+ }, o.orientation === "horizontal" && {
79
+ width: "auto",
80
+ height: "100%"
81
+ })), Q = /* @__PURE__ */ a.forwardRef(function(n, r) {
82
+ const s = B({
83
+ props: n,
84
+ name: "MuiCollapse"
85
+ }), {
86
+ addEndListener: d,
87
+ children: u,
88
+ className: f,
89
+ collapsedSize: l = "0px",
90
+ component: y,
91
+ easing: $,
92
+ in: b,
93
+ onEnter: v,
94
+ onEntered: R,
95
+ onEntering: T,
96
+ onExit: M,
97
+ onExited: c,
98
+ onExiting: m,
99
+ orientation: C = "vertical",
100
+ style: A,
101
+ timeout: h = ue.standard,
102
+ // eslint-disable-next-line react/prop-types
103
+ TransitionComponent: H = ge
104
+ } = s, V = k(s, Ee), w = i({}, s, {
105
+ orientation: C,
106
+ collapsedSize: l
107
+ }), N = ve(w), Y = be(), Z = a.useRef(), S = a.useRef(null), J = a.useRef(), W = typeof l == "number" ? `${l}px` : l, z = C === "horizontal", I = z ? "width" : "height";
108
+ a.useEffect(() => () => {
109
+ clearTimeout(Z.current);
110
+ }, []);
111
+ const G = a.useRef(null), te = xe(r, G), O = (t) => (p) => {
112
+ if (t) {
113
+ const x = G.current;
114
+ p === void 0 ? t(x) : t(x, p);
115
+ }
116
+ }, K = () => S.current ? S.current[z ? "clientWidth" : "clientHeight"] : 0, re = O((t, p) => {
117
+ S.current && z && (S.current.style.position = "absolute"), t.style[I] = W, v && v(t, p);
118
+ }), se = O((t, p) => {
119
+ const x = K();
120
+ S.current && z && (S.current.style.position = "");
121
+ const {
122
+ duration: j,
123
+ easing: U
124
+ } = oe({
125
+ style: A,
126
+ timeout: h,
127
+ easing: $
128
+ }, {
129
+ mode: "enter"
130
+ });
131
+ if (h === "auto") {
132
+ const ee = Y.transitions.getAutoHeightDuration(x);
133
+ t.style.transitionDuration = `${ee}ms`, J.current = ee;
134
+ } else
135
+ t.style.transitionDuration = typeof j == "string" ? j : `${j}ms`;
136
+ t.style[I] = `${x}px`, t.style.transitionTimingFunction = U, T && T(t, p);
137
+ }), ie = O((t, p) => {
138
+ t.style[I] = "auto", R && R(t, p);
139
+ }), ae = O((t) => {
140
+ t.style[I] = `${K()}px`, M && M(t);
141
+ }), ce = O(c), de = O((t) => {
142
+ const p = K(), {
143
+ duration: x,
144
+ easing: j
145
+ } = oe({
146
+ style: A,
147
+ timeout: h,
148
+ easing: $
149
+ }, {
150
+ mode: "exit"
151
+ });
152
+ if (h === "auto") {
153
+ const U = Y.transitions.getAutoHeightDuration(p);
154
+ t.style.transitionDuration = `${U}ms`, J.current = U;
155
+ } else
156
+ t.style.transitionDuration = typeof x == "string" ? x : `${x}ms`;
157
+ t.style[I] = W, t.style.transitionTimingFunction = j, m && m(t);
158
+ });
159
+ return /* @__PURE__ */ g(H, i({
160
+ in: b,
161
+ onEnter: re,
162
+ onEntered: ie,
163
+ onEntering: se,
164
+ onExit: ae,
165
+ onExited: ce,
166
+ onExiting: de,
167
+ addEndListener: (t) => {
168
+ h === "auto" && (Z.current = setTimeout(t, J.current || 0)), d && d(G.current, t);
169
+ },
170
+ nodeRef: G,
171
+ timeout: h === "auto" ? null : h
172
+ }, V, {
173
+ children: (t, p) => /* @__PURE__ */ g(Re, i({
174
+ as: y,
175
+ className: P(N.root, f, {
176
+ entered: N.entered,
177
+ exited: !b && W === "0px" && N.hidden
178
+ }[t]),
179
+ style: i({
180
+ [z ? "minWidth" : "minHeight"]: W
181
+ }, A),
182
+ ownerState: i({}, w, {
183
+ state: t
184
+ }),
185
+ ref: te
186
+ }, p, {
187
+ children: /* @__PURE__ */ g(Te, {
188
+ ownerState: i({}, w, {
189
+ state: t
190
+ }),
191
+ className: N.wrapper,
192
+ ref: S,
193
+ children: /* @__PURE__ */ g(Ae, {
194
+ ownerState: i({}, w, {
195
+ state: t
196
+ }),
197
+ className: N.wrapperInner,
198
+ children: u
199
+ })
200
+ })
201
+ }))
202
+ }));
203
+ });
204
+ process.env.NODE_ENV !== "production" && (Q.propTypes = {
205
+ // ----------------------------- Warning --------------------------------
206
+ // | These PropTypes are generated from the TypeScript type definitions |
207
+ // | To update them edit the d.ts file and run "yarn proptypes" |
208
+ // ----------------------------------------------------------------------
209
+ /**
210
+ * Add a custom transition end trigger. Called with the transitioning DOM
211
+ * node and a done callback. Allows for more fine grained transition end
212
+ * logic. Note: Timeouts are still used as a fallback if provided.
213
+ */
214
+ addEndListener: e.func,
215
+ /**
216
+ * The content node to be collapsed.
217
+ */
218
+ children: e.node,
219
+ /**
220
+ * Override or extend the styles applied to the component.
221
+ */
222
+ classes: e.object,
223
+ /**
224
+ * @ignore
225
+ */
226
+ className: e.string,
227
+ /**
228
+ * The width (horizontal) or height (vertical) of the container when collapsed.
229
+ * @default '0px'
230
+ */
231
+ collapsedSize: e.oneOfType([e.number, e.string]),
232
+ /**
233
+ * The component used for the root node.
234
+ * Either a string to use a HTML element or a component.
235
+ */
236
+ component: he,
237
+ /**
238
+ * The transition timing function.
239
+ * You may specify a single easing or a object containing enter and exit values.
240
+ */
241
+ easing: e.oneOfType([e.shape({
242
+ enter: e.string,
243
+ exit: e.string
244
+ }), e.string]),
245
+ /**
246
+ * If `true`, the component will transition in.
247
+ */
248
+ in: e.bool,
249
+ /**
250
+ * @ignore
251
+ */
252
+ onEnter: e.func,
253
+ /**
254
+ * @ignore
255
+ */
256
+ onEntered: e.func,
257
+ /**
258
+ * @ignore
259
+ */
260
+ onEntering: e.func,
261
+ /**
262
+ * @ignore
263
+ */
264
+ onExit: e.func,
265
+ /**
266
+ * @ignore
267
+ */
268
+ onExited: e.func,
269
+ /**
270
+ * @ignore
271
+ */
272
+ onExiting: e.func,
273
+ /**
274
+ * The transition orientation.
275
+ * @default 'vertical'
276
+ */
277
+ orientation: e.oneOf(["horizontal", "vertical"]),
278
+ /**
279
+ * @ignore
280
+ */
281
+ style: e.object,
282
+ /**
283
+ * The system prop that allows defining system overrides as well as additional CSS styles.
284
+ */
285
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
286
+ /**
287
+ * The duration for the transition, in milliseconds.
288
+ * You may specify a single timeout for all transitions, or individually with an object.
289
+ *
290
+ * Set to 'auto' to automatically calculate transition time based on height.
291
+ * @default duration.standard
292
+ */
293
+ timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
294
+ appear: e.number,
295
+ enter: e.number,
296
+ exit: e.number
297
+ })])
298
+ });
299
+ Q.muiSupportAuto = !0;
300
+ const X = /* @__PURE__ */ a.createContext({});
301
+ process.env.NODE_ENV !== "production" && (X.displayName = "AccordionContext");
302
+ function we(o) {
303
+ return F("MuiAccordion", o);
304
+ }
305
+ const _ = L("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]), Ne = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"], Se = (o) => {
306
+ const {
307
+ classes: n,
308
+ square: r,
309
+ expanded: s,
310
+ disabled: d,
311
+ disableGutters: u
312
+ } = o;
313
+ return q({
314
+ root: ["root", !r && "rounded", s && "expanded", d && "disabled", !u && "gutters"],
315
+ region: ["region"]
316
+ }, we, n);
317
+ }, $e = E(fe, {
318
+ name: "MuiAccordion",
319
+ slot: "Root",
320
+ overridesResolver: (o, n) => {
321
+ const {
322
+ ownerState: r
323
+ } = o;
324
+ return [{
325
+ [`& .${_.region}`]: n.region
326
+ }, n.root, !r.square && n.rounded, !r.disableGutters && n.gutters];
327
+ }
328
+ })(({
329
+ theme: o
330
+ }) => {
331
+ const n = {
332
+ duration: o.transitions.duration.shortest
333
+ };
334
+ return {
335
+ position: "relative",
336
+ transition: o.transitions.create(["margin"], n),
337
+ overflowAnchor: "none",
338
+ // Keep the same scrolling position
339
+ "&:before": {
340
+ position: "absolute",
341
+ left: 0,
342
+ top: -1,
343
+ right: 0,
344
+ height: 1,
345
+ content: '""',
346
+ opacity: 1,
347
+ backgroundColor: (o.vars || o).palette.divider,
348
+ transition: o.transitions.create(["opacity", "background-color"], n)
349
+ },
350
+ "&:first-of-type": {
351
+ "&:before": {
352
+ display: "none"
353
+ }
354
+ },
355
+ [`&.${_.expanded}`]: {
356
+ "&:before": {
357
+ opacity: 0
358
+ },
359
+ "&:first-of-type": {
360
+ marginTop: 0
361
+ },
362
+ "&:last-of-type": {
363
+ marginBottom: 0
364
+ },
365
+ "& + &": {
366
+ "&:before": {
367
+ display: "none"
368
+ }
369
+ }
370
+ },
371
+ [`&.${_.disabled}`]: {
372
+ backgroundColor: (o.vars || o).palette.action.disabledBackground
373
+ }
374
+ };
375
+ }, ({
376
+ theme: o,
377
+ ownerState: n
378
+ }) => i({}, !n.square && {
379
+ borderRadius: 0,
380
+ "&:first-of-type": {
381
+ borderTopLeftRadius: (o.vars || o).shape.borderRadius,
382
+ borderTopRightRadius: (o.vars || o).shape.borderRadius
383
+ },
384
+ "&:last-of-type": {
385
+ borderBottomLeftRadius: (o.vars || o).shape.borderRadius,
386
+ borderBottomRightRadius: (o.vars || o).shape.borderRadius,
387
+ // Fix a rendering issue on Edge
388
+ "@supports (-ms-ime-align: auto)": {
389
+ borderBottomLeftRadius: 0,
390
+ borderBottomRightRadius: 0
391
+ }
392
+ }
393
+ }, !n.disableGutters && {
394
+ [`&.${_.expanded}`]: {
395
+ margin: "16px 0"
396
+ }
397
+ })), Me = /* @__PURE__ */ a.forwardRef(function(n, r) {
398
+ const s = B({
399
+ props: n,
400
+ name: "MuiAccordion"
401
+ }), {
402
+ children: d,
403
+ className: u,
404
+ defaultExpanded: f = !1,
405
+ disabled: l = !1,
406
+ disableGutters: y = !1,
407
+ expanded: $,
408
+ onChange: b,
409
+ square: v = !1,
410
+ TransitionComponent: R = Q,
411
+ TransitionProps: T
412
+ } = s, M = k(s, Ne), [c, m] = me({
413
+ controlled: $,
414
+ default: f,
415
+ name: "Accordion",
416
+ state: "expanded"
417
+ }), C = a.useCallback((N) => {
418
+ m(!c), b && b(N, !c);
419
+ }, [c, b, m]), [A, ...h] = a.Children.toArray(d), H = a.useMemo(() => ({
420
+ expanded: c,
421
+ disabled: l,
422
+ disableGutters: y,
423
+ toggle: C
424
+ }), [c, l, y, C]), V = i({}, s, {
425
+ square: v,
426
+ disabled: l,
427
+ disableGutters: y,
428
+ expanded: c
429
+ }), w = Se(V);
430
+ return /* @__PURE__ */ ne($e, i({
431
+ className: P(w.root, u),
432
+ ref: r,
433
+ ownerState: V,
434
+ square: v
435
+ }, M, {
436
+ children: [/* @__PURE__ */ g(X.Provider, {
437
+ value: H,
438
+ children: A
439
+ }), /* @__PURE__ */ g(R, i({
440
+ in: c,
441
+ timeout: "auto"
442
+ }, T, {
443
+ children: /* @__PURE__ */ g("div", {
444
+ "aria-labelledby": A.props.id,
445
+ id: A.props["aria-controls"],
446
+ role: "region",
447
+ className: w.region,
448
+ children: h
449
+ })
450
+ }))]
451
+ }));
452
+ });
453
+ process.env.NODE_ENV !== "production" && (Me.propTypes = {
454
+ // ----------------------------- Warning --------------------------------
455
+ // | These PropTypes are generated from the TypeScript type definitions |
456
+ // | To update them edit the d.ts file and run "yarn proptypes" |
457
+ // ----------------------------------------------------------------------
458
+ /**
459
+ * The content of the component.
460
+ */
461
+ children: pe(e.node.isRequired, (o) => {
462
+ const n = a.Children.toArray(o.children)[0];
463
+ return le.isFragment(n) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ a.isValidElement(n) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
464
+ }),
465
+ /**
466
+ * Override or extend the styles applied to the component.
467
+ */
468
+ classes: e.object,
469
+ /**
470
+ * @ignore
471
+ */
472
+ className: e.string,
473
+ /**
474
+ * If `true`, expands the accordion by default.
475
+ * @default false
476
+ */
477
+ defaultExpanded: e.bool,
478
+ /**
479
+ * If `true`, the component is disabled.
480
+ * @default false
481
+ */
482
+ disabled: e.bool,
483
+ /**
484
+ * If `true`, it removes the margin between two expanded accordion items and the increase of height.
485
+ * @default false
486
+ */
487
+ disableGutters: e.bool,
488
+ /**
489
+ * If `true`, expands the accordion, otherwise collapse it.
490
+ * Setting this prop enables control over the accordion.
491
+ */
492
+ expanded: e.bool,
493
+ /**
494
+ * Callback fired when the expand/collapse state is changed.
495
+ *
496
+ * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
497
+ * @param {boolean} expanded The `expanded` state of the accordion.
498
+ */
499
+ onChange: e.func,
500
+ /**
501
+ * If `true`, rounded corners are disabled.
502
+ * @default false
503
+ */
504
+ square: e.bool,
505
+ /**
506
+ * The system prop that allows defining system overrides as well as additional CSS styles.
507
+ */
508
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
509
+ /**
510
+ * The component used for the transition.
511
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
512
+ * @default Collapse
513
+ */
514
+ TransitionComponent: e.elementType,
515
+ /**
516
+ * Props applied to the transition element.
517
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
518
+ */
519
+ TransitionProps: e.object
520
+ });
521
+ function Oe(o) {
522
+ return F("MuiAccordionSummary", o);
523
+ }
524
+ const D = L("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), De = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"], ze = (o) => {
525
+ const {
526
+ classes: n,
527
+ expanded: r,
528
+ disabled: s,
529
+ disableGutters: d
530
+ } = o;
531
+ return q({
532
+ root: ["root", r && "expanded", s && "disabled", !d && "gutters"],
533
+ focusVisible: ["focusVisible"],
534
+ content: ["content", r && "expanded", !d && "contentGutters"],
535
+ expandIconWrapper: ["expandIconWrapper", r && "expanded"]
536
+ }, Oe, n);
537
+ }, Ie = E(ye, {
538
+ name: "MuiAccordionSummary",
539
+ slot: "Root",
540
+ overridesResolver: (o, n) => n.root
541
+ })(({
542
+ theme: o,
543
+ ownerState: n
544
+ }) => {
545
+ const r = {
546
+ duration: o.transitions.duration.shortest
547
+ };
548
+ return i({
549
+ display: "flex",
550
+ minHeight: 48,
551
+ padding: o.spacing(0, 2),
552
+ transition: o.transitions.create(["min-height", "background-color"], r),
553
+ [`&.${D.focusVisible}`]: {
554
+ backgroundColor: (o.vars || o).palette.action.focus
555
+ },
556
+ [`&.${D.disabled}`]: {
557
+ opacity: (o.vars || o).palette.action.disabledOpacity
558
+ },
559
+ [`&:hover:not(.${D.disabled})`]: {
560
+ cursor: "pointer"
561
+ }
562
+ }, !n.disableGutters && {
563
+ [`&.${D.expanded}`]: {
564
+ minHeight: 64
565
+ }
566
+ });
567
+ }), je = E("div", {
568
+ name: "MuiAccordionSummary",
569
+ slot: "Content",
570
+ overridesResolver: (o, n) => n.content
571
+ })(({
572
+ theme: o,
573
+ ownerState: n
574
+ }) => i({
575
+ display: "flex",
576
+ flexGrow: 1,
577
+ margin: "12px 0"
578
+ }, !n.disableGutters && {
579
+ transition: o.transitions.create(["margin"], {
580
+ duration: o.transitions.duration.shortest
581
+ }),
582
+ [`&.${D.expanded}`]: {
583
+ margin: "20px 0"
584
+ }
585
+ })), Pe = E("div", {
586
+ name: "MuiAccordionSummary",
587
+ slot: "ExpandIconWrapper",
588
+ overridesResolver: (o, n) => n.expandIconWrapper
589
+ })(({
590
+ theme: o
591
+ }) => ({
592
+ display: "flex",
593
+ color: (o.vars || o).palette.action.active,
594
+ transform: "rotate(0deg)",
595
+ transition: o.transitions.create("transform", {
596
+ duration: o.transitions.duration.shortest
597
+ }),
598
+ [`&.${D.expanded}`]: {
599
+ transform: "rotate(180deg)"
600
+ }
601
+ })), Ve = /* @__PURE__ */ a.forwardRef(function(n, r) {
602
+ const s = B({
603
+ props: n,
604
+ name: "MuiAccordionSummary"
605
+ }), {
606
+ children: d,
607
+ className: u,
608
+ expandIcon: f,
609
+ focusVisibleClassName: l,
610
+ onClick: y
611
+ } = s, $ = k(s, De), {
612
+ disabled: b = !1,
613
+ disableGutters: v,
614
+ expanded: R,
615
+ toggle: T
616
+ } = a.useContext(X), M = (C) => {
617
+ T && T(C), y && y(C);
618
+ }, c = i({}, s, {
619
+ expanded: R,
620
+ disabled: b,
621
+ disableGutters: v
622
+ }), m = ze(c);
623
+ return /* @__PURE__ */ ne(Ie, i({
624
+ focusRipple: !1,
625
+ disableRipple: !0,
626
+ disabled: b,
627
+ component: "div",
628
+ "aria-expanded": R,
629
+ className: P(m.root, u),
630
+ focusVisibleClassName: P(m.focusVisible, l),
631
+ onClick: M,
632
+ ref: r,
633
+ ownerState: c
634
+ }, $, {
635
+ children: [/* @__PURE__ */ g(je, {
636
+ className: m.content,
637
+ ownerState: c,
638
+ children: d
639
+ }), f && /* @__PURE__ */ g(Pe, {
640
+ className: m.expandIconWrapper,
641
+ ownerState: c,
642
+ children: f
643
+ })]
644
+ }));
645
+ });
646
+ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
647
+ // ----------------------------- Warning --------------------------------
648
+ // | These PropTypes are generated from the TypeScript type definitions |
649
+ // | To update them edit the d.ts file and run "yarn proptypes" |
650
+ // ----------------------------------------------------------------------
651
+ /**
652
+ * The content of the component.
653
+ */
654
+ children: e.node,
655
+ /**
656
+ * Override or extend the styles applied to the component.
657
+ */
658
+ classes: e.object,
659
+ /**
660
+ * @ignore
661
+ */
662
+ className: e.string,
663
+ /**
664
+ * The icon to display as the expand indicator.
665
+ */
666
+ expandIcon: e.node,
667
+ /**
668
+ * This prop can help identify which element has keyboard focus.
669
+ * The class name will be applied when the element gains the focus through keyboard interaction.
670
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
671
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
672
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
673
+ * if needed.
674
+ */
675
+ focusVisibleClassName: e.string,
676
+ /**
677
+ * @ignore
678
+ */
679
+ onClick: e.func,
680
+ /**
681
+ * The system prop that allows defining system overrides as well as additional CSS styles.
682
+ */
683
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
684
+ });
685
+ function We(o) {
686
+ return F("MuiAccordionDetails", o);
687
+ }
688
+ L("MuiAccordionDetails", ["root"]);
689
+ const Ge = ["className"], Ue = (o) => {
690
+ const {
691
+ classes: n
692
+ } = o;
693
+ return q({
694
+ root: ["root"]
695
+ }, We, n);
696
+ }, _e = E("div", {
697
+ name: "MuiAccordionDetails",
698
+ slot: "Root",
699
+ overridesResolver: (o, n) => n.root
700
+ })(({
701
+ theme: o
702
+ }) => ({
703
+ padding: o.spacing(1, 2, 2)
704
+ })), ke = /* @__PURE__ */ a.forwardRef(function(n, r) {
705
+ const s = B({
706
+ props: n,
707
+ name: "MuiAccordionDetails"
708
+ }), {
709
+ className: d
710
+ } = s, u = k(s, Ge), f = s, l = Ue(f);
711
+ return /* @__PURE__ */ g(_e, i({
712
+ className: P(l.root, d),
713
+ ref: r,
714
+ ownerState: f
715
+ }, u));
716
+ });
717
+ process.env.NODE_ENV !== "production" && (ke.propTypes = {
718
+ // ----------------------------- Warning --------------------------------
719
+ // | These PropTypes are generated from the TypeScript type definitions |
720
+ // | To update them edit the d.ts file and run "yarn proptypes" |
721
+ // ----------------------------------------------------------------------
722
+ /**
723
+ * The content of the component.
724
+ */
725
+ children: e.node,
726
+ /**
727
+ * Override or extend the styles applied to the component.
728
+ */
729
+ classes: e.object,
730
+ /**
731
+ * @ignore
732
+ */
733
+ className: e.string,
734
+ /**
735
+ * The system prop that allows defining system overrides as well as additional CSS styles.
736
+ */
737
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
738
+ });
739
+ export {
740
+ Me as A,
741
+ Ve as a,
742
+ ke as b
743
+ };