@hybridcore/ui 1.6.13 → 1.6.16

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