@hybridcore/ui 1.1.3 → 1.3.0

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 (72) hide show
  1. package/dist/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
  2. package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
  3. package/dist/Checkbox-DP6_qp1v.js +469 -0
  4. package/dist/Collapse-9egEADkh.js +296 -0
  5. package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
  6. package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
  7. package/dist/FormControlLabel-j_atSYQA.js +827 -0
  8. package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
  9. package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
  10. package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
  11. package/dist/ListItem-BFDUUjHt.js +428 -0
  12. package/dist/MenuItem-BejUFNIP.js +233 -0
  13. package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
  14. package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
  15. package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
  16. package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
  17. package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
  18. package/dist/components/card/index.js +5 -5
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/index.js +34 -0
  21. package/dist/components/collapsible-card/style.js +575 -0
  22. package/dist/components/confirm/dialog.js +5 -5
  23. package/dist/components/container/index.js +6 -6
  24. package/dist/components/context-menu/index.js +191 -603
  25. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  26. package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
  27. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  28. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  29. package/dist/components/geometry-picker/edit/index.js +1 -1
  30. package/dist/components/geometry-picker/geometry/index.js +1 -1
  31. package/dist/components/geometry-picker/index.js +2 -2
  32. package/dist/components/geometry-picker/kml/index.js +1 -1
  33. package/dist/components/geometry-picker/map/index.js +1 -1
  34. package/dist/components/geometry-picker/map/logic.js +1 -1
  35. package/dist/components/icon-button/index.js +1 -1
  36. package/dist/components/map/helpers/ol.js +2 -2
  37. package/dist/components/map/index.js +2 -2
  38. package/dist/components/map/logic.js +1 -1
  39. package/dist/components/map/styled.js +89 -6
  40. package/dist/components/search-input/index.js +3 -3
  41. package/dist/components/template-property-filters/index.js +78 -0
  42. package/dist/components/template-property-filters/property.js +7019 -0
  43. package/dist/components/tree-select/index.js +14 -13
  44. package/dist/components/treeview-filter/index.js +263 -328
  45. package/dist/components/treeview-filter/item/index.js +1 -1
  46. package/dist/components/treeview-filter/item-label/index.js +2 -2
  47. package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
  48. package/dist/createSvgIcon-R_PakhKf.js +213 -0
  49. package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
  50. package/dist/debounce-46wSf_lW.js +15 -0
  51. package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
  52. package/dist/index-C7W2wuUG.js +609 -0
  53. package/dist/index-DHnXB0CB.js +287 -0
  54. package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
  55. package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
  56. package/dist/main.d.ts +158 -0
  57. package/dist/main.js +33 -29
  58. package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
  59. package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
  60. package/dist/styled-CHMAYxVs.js +142 -0
  61. package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
  62. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  63. package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
  64. package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
  65. package/dist/useThemeProps-D4or2IlT.js +62 -0
  66. package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
  67. package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
  68. package/package.json +1 -1
  69. package/dist/Checkbox-DostZSwR.js +0 -673
  70. package/dist/index-Bw_m9ult.js +0 -1105
  71. package/dist/index-wW2D1aTG.js +0 -957
  72. package/dist/styled-C43K9x7T.js +0 -229
@@ -1,8 +1,8 @@
1
1
  import { a as s, _ as B } from "./extends-C3382pL0.js";
2
2
  import * as W from "react";
3
- import { c as f, P as t } from "./createTheme-agWfFD64.js";
4
- import { g as C, u as M, c as O, a as j } from "./chainPropTypes-DtBfUj5o.js";
5
- import { g as P, s as N, e as R } from "./styled-Iq9jsO4F.js";
3
+ import { c as f, P as t } from "./createTheme-oOCi1S_n.js";
4
+ import { g as C, u as M, c as O, a as j } from "./chainPropTypes-BmidnkZm.js";
5
+ import { g as P, s as N, e as R } from "./styled-Wx2vv4j8.js";
6
6
  import { jsx as _ } from "react/jsx-runtime";
7
7
  function U(a) {
8
8
  return P("MuiTypography", a);
@@ -1,8 +1,8 @@
1
1
  import * as a from "react";
2
- import { P as u } from "./createTheme-agWfFD64.js";
2
+ import { P as u } from "./createTheme-oOCi1S_n.js";
3
3
  import "react/jsx-runtime";
4
4
  import { a as c } from "./extends-C3382pL0.js";
5
- import { g as h } from "./styled-Iq9jsO4F.js";
5
+ import { g as h } from "./styled-Wx2vv4j8.js";
6
6
  function d(e) {
7
7
  var o, n, t = "";
8
8
  if (typeof e == "string" || typeof e == "number") t += e;
@@ -3,11 +3,11 @@ import { Box as p, Avatar as b } from "@mui/material";
3
3
  import { LandscapeCardRoot as A, LandscapeInfoBox as I, LandscapeCardExtraActions as P, PortraitCardRoot as _, PortraitCardExtraActions as L } from "./styled.js";
4
4
  import { a as m, _ as v } from "../../extends-C3382pL0.js";
5
5
  import * as M from "react";
6
- import { P as t } from "../../createTheme-agWfFD64.js";
7
- import { g as w, u as O, c as N, a as S, b as B } from "../../chainPropTypes-DtBfUj5o.js";
8
- import { g as T, s as j } from "../../styled-Iq9jsO4F.js";
9
- import { C as y } from "../../CardContent-C8PxkJz4.js";
10
- import { T as d } from "../../Typography-XIiVCSto.js";
6
+ import { P as t } from "../../createTheme-oOCi1S_n.js";
7
+ import { g as w, u as O, c as N, a as S, b as B } from "../../chainPropTypes-BmidnkZm.js";
8
+ import { g as T, s as j } from "../../styled-Wx2vv4j8.js";
9
+ import { C as y } from "../../CardContent-DDFwwGfd.js";
10
+ import { T as d } from "../../Typography-Bjo-B13o.js";
11
11
  function U(e) {
12
12
  return T("MuiCardActions", e);
13
13
  }
@@ -1,5 +1,5 @@
1
1
  import { Card as t, Box as o } from "@mui/material";
2
- import { s as i } from "../../styled-Iq9jsO4F.js";
2
+ import { s as i } from "../../styled-Wx2vv4j8.js";
3
3
  const s = i(t, {
4
4
  name: "SNCard",
5
5
  // The component name
@@ -0,0 +1,34 @@
1
+ import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
+ import { Box as r } from "@mui/material";
3
+ import { Container as a } from "../container/index.js";
4
+ import { Accordion as o, AccordionSummary as i, AccordionDetails as t } from "./style.js";
5
+ const h = (e) => /* @__PURE__ */ n(
6
+ a,
7
+ {
8
+ disableHeader: !0,
9
+ sx: { marginTop: 1, borderRadius: "13px", ...e.sx },
10
+ contentSx: {
11
+ p: "0 !important",
12
+ m: 0,
13
+ "& .MuiPaper-root": { borderRadius: "13px" }
14
+ },
15
+ children: /* @__PURE__ */ d(
16
+ o,
17
+ {
18
+ defaultExpanded: e.defaultExpanded,
19
+ expanded: e.expanded,
20
+ onChange: e.onChange,
21
+ children: [
22
+ /* @__PURE__ */ d(i, { "aria-controls": "panel1d-content", id: "panel1d-header", children: [
23
+ /* @__PURE__ */ n(r, { children: e.header }),
24
+ /* @__PURE__ */ n(r, { children: e.actions })
25
+ ] }),
26
+ /* @__PURE__ */ n(t, { children: e.content })
27
+ ]
28
+ }
29
+ )
30
+ }
31
+ );
32
+ export {
33
+ h as CollapsibleCard
34
+ };
@@ -0,0 +1,575 @@
1
+ import Q, { jsxs as q, jsx as f } from "react/jsx-runtime";
2
+ import { i as X, g as _, s as y } from "../../styled-Wx2vv4j8.js";
3
+ import { r as Y } from "../../createSvgIcon-DAR6Hwv8.js";
4
+ import { _ as A, a as c } from "../../extends-C3382pL0.js";
5
+ import * as l from "react";
6
+ import { n as Z, P as e } from "../../createTheme-oOCi1S_n.js";
7
+ import { g as $, u as j, c as I, b as oo, a as D } from "../../chainPropTypes-BmidnkZm.js";
8
+ import { r as eo, m as ro, a as to } from "../../resolveComponentProps-BwtY1IP3.js";
9
+ import { a as so, B as no } from "../../ButtonBase-C7CHOX3y.js";
10
+ import { P as ao } from "../../Paper-k37cShvn.js";
11
+ import { u as io } from "../../createSvgIcon-R_PakhKf.js";
12
+ import { C as co } from "../../Collapse-9egEADkh.js";
13
+ var k = {}, lo = X;
14
+ Object.defineProperty(k, "__esModule", {
15
+ value: !0
16
+ });
17
+ var F = k.default = void 0, po = lo(Y()), uo = Q;
18
+ F = k.default = (0, po.default)(/* @__PURE__ */ (0, uo.jsx)("path", {
19
+ d: "M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"
20
+ }), "ArrowForwardIosSharp");
21
+ const V = /* @__PURE__ */ l.createContext({});
22
+ process.env.NODE_ENV !== "production" && (V.displayName = "AccordionContext");
23
+ const fo = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], mo = ["component", "slots", "slotProps"], bo = ["component"];
24
+ function go(o, r) {
25
+ const {
26
+ className: t,
27
+ elementType: s,
28
+ ownerState: n,
29
+ externalForwardedProps: i,
30
+ getSlotOwnerState: d,
31
+ internalForwardedProps: p
32
+ } = r, m = A(r, fo), {
33
+ component: T,
34
+ slots: u = {
35
+ [o]: void 0
36
+ },
37
+ slotProps: C = {
38
+ [o]: void 0
39
+ }
40
+ } = i;
41
+ A(i, mo);
42
+ const v = u[o] || s, b = eo(C[o], n), S = ro(c({
43
+ className: t
44
+ }, m, {
45
+ externalForwardedProps: void 0,
46
+ externalSlotProps: b
47
+ })), {
48
+ props: {
49
+ component: g
50
+ },
51
+ internalRef: x
52
+ } = S, a = A(S.props, bo), N = so(x, b == null ? void 0 : b.ref, r.ref), P = d ? d(a) : {}, R = c({}, n, P), E = g, M = to(v, c({}, o === "root", !u[o] && p, a, E && {
53
+ as: E
54
+ }, {
55
+ ref: N
56
+ }), R);
57
+ return Object.keys(P).forEach((w) => {
58
+ delete M[w];
59
+ }), [v, M];
60
+ }
61
+ function xo(o) {
62
+ return _("MuiAccordion", o);
63
+ }
64
+ const O = $("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]), yo = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "slots", "slotProps", "TransitionComponent", "TransitionProps"], vo = (o) => {
65
+ const {
66
+ classes: r,
67
+ square: t,
68
+ expanded: s,
69
+ disabled: n,
70
+ disableGutters: i
71
+ } = o;
72
+ return D({
73
+ root: ["root", !t && "rounded", s && "expanded", n && "disabled", !i && "gutters"],
74
+ region: ["region"]
75
+ }, xo, r);
76
+ }, Co = y(ao, {
77
+ name: "MuiAccordion",
78
+ slot: "Root",
79
+ overridesResolver: (o, r) => {
80
+ const {
81
+ ownerState: t
82
+ } = o;
83
+ return [{
84
+ [`& .${O.region}`]: r.region
85
+ }, r.root, !t.square && r.rounded, !t.disableGutters && r.gutters];
86
+ }
87
+ })(({
88
+ theme: o
89
+ }) => {
90
+ const r = {
91
+ duration: o.transitions.duration.shortest
92
+ };
93
+ return {
94
+ position: "relative",
95
+ transition: o.transitions.create(["margin"], r),
96
+ overflowAnchor: "none",
97
+ // Keep the same scrolling position
98
+ "&::before": {
99
+ position: "absolute",
100
+ left: 0,
101
+ top: -1,
102
+ right: 0,
103
+ height: 1,
104
+ content: '""',
105
+ opacity: 1,
106
+ backgroundColor: (o.vars || o).palette.divider,
107
+ transition: o.transitions.create(["opacity", "background-color"], r)
108
+ },
109
+ "&:first-of-type": {
110
+ "&::before": {
111
+ display: "none"
112
+ }
113
+ },
114
+ [`&.${O.expanded}`]: {
115
+ "&::before": {
116
+ opacity: 0
117
+ },
118
+ "&:first-of-type": {
119
+ marginTop: 0
120
+ },
121
+ "&:last-of-type": {
122
+ marginBottom: 0
123
+ },
124
+ "& + &": {
125
+ "&::before": {
126
+ display: "none"
127
+ }
128
+ }
129
+ },
130
+ [`&.${O.disabled}`]: {
131
+ backgroundColor: (o.vars || o).palette.action.disabledBackground
132
+ }
133
+ };
134
+ }, ({
135
+ theme: o
136
+ }) => ({
137
+ variants: [{
138
+ props: (r) => !r.square,
139
+ style: {
140
+ borderRadius: 0,
141
+ "&:first-of-type": {
142
+ borderTopLeftRadius: (o.vars || o).shape.borderRadius,
143
+ borderTopRightRadius: (o.vars || o).shape.borderRadius
144
+ },
145
+ "&:last-of-type": {
146
+ borderBottomLeftRadius: (o.vars || o).shape.borderRadius,
147
+ borderBottomRightRadius: (o.vars || o).shape.borderRadius,
148
+ // Fix a rendering issue on Edge
149
+ "@supports (-ms-ime-align: auto)": {
150
+ borderBottomLeftRadius: 0,
151
+ borderBottomRightRadius: 0
152
+ }
153
+ }
154
+ }
155
+ }, {
156
+ props: (r) => !r.disableGutters,
157
+ style: {
158
+ [`&.${O.expanded}`]: {
159
+ margin: "16px 0"
160
+ }
161
+ }
162
+ }]
163
+ })), B = /* @__PURE__ */ l.forwardRef(function(r, t) {
164
+ const s = j({
165
+ props: r,
166
+ name: "MuiAccordion"
167
+ }), {
168
+ children: n,
169
+ className: i,
170
+ defaultExpanded: d = !1,
171
+ disabled: p = !1,
172
+ disableGutters: m = !1,
173
+ expanded: T,
174
+ onChange: u,
175
+ square: C = !1,
176
+ slots: v = {},
177
+ slotProps: b = {},
178
+ TransitionComponent: S,
179
+ TransitionProps: g
180
+ } = s, x = A(s, yo), [a, N] = io({
181
+ controlled: T,
182
+ default: d,
183
+ name: "Accordion",
184
+ state: "expanded"
185
+ }), P = l.useCallback((K) => {
186
+ N(!a), u && u(K, !a);
187
+ }, [a, u, N]), [R, ...E] = l.Children.toArray(n), M = l.useMemo(() => ({
188
+ expanded: a,
189
+ disabled: p,
190
+ disableGutters: m,
191
+ toggle: P
192
+ }), [a, p, m, P]), w = c({}, s, {
193
+ square: C,
194
+ disabled: p,
195
+ disableGutters: m,
196
+ expanded: a
197
+ }), G = vo(w), L = c({
198
+ transition: S
199
+ }, v), z = c({
200
+ transition: g
201
+ }, b), [H, J] = go("transition", {
202
+ elementType: co,
203
+ externalForwardedProps: {
204
+ slots: L,
205
+ slotProps: z
206
+ },
207
+ ownerState: w
208
+ });
209
+ return /* @__PURE__ */ q(Co, c({
210
+ className: I(G.root, i),
211
+ ref: t,
212
+ ownerState: w,
213
+ square: C
214
+ }, x, {
215
+ children: [/* @__PURE__ */ f(V.Provider, {
216
+ value: M,
217
+ children: R
218
+ }), /* @__PURE__ */ f(H, c({
219
+ in: a,
220
+ timeout: "auto"
221
+ }, J, {
222
+ children: /* @__PURE__ */ f("div", {
223
+ "aria-labelledby": R.props.id,
224
+ id: R.props["aria-controls"],
225
+ role: "region",
226
+ className: G.region,
227
+ children: E
228
+ })
229
+ }))]
230
+ }));
231
+ });
232
+ process.env.NODE_ENV !== "production" && (B.propTypes = {
233
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
234
+ // │ These PropTypes are generated from the TypeScript type definitions. │
235
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
236
+ // └─────────────────────────────────────────────────────────────────────┘
237
+ /**
238
+ * The content of the component.
239
+ */
240
+ children: oo(e.node.isRequired, (o) => {
241
+ const r = l.Children.toArray(o.children)[0];
242
+ return Z.isFragment(r) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ l.isValidElement(r) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
243
+ }),
244
+ /**
245
+ * Override or extend the styles applied to the component.
246
+ */
247
+ classes: e.object,
248
+ /**
249
+ * @ignore
250
+ */
251
+ className: e.string,
252
+ /**
253
+ * If `true`, expands the accordion by default.
254
+ * @default false
255
+ */
256
+ defaultExpanded: e.bool,
257
+ /**
258
+ * If `true`, the component is disabled.
259
+ * @default false
260
+ */
261
+ disabled: e.bool,
262
+ /**
263
+ * If `true`, it removes the margin between two expanded accordion items and the increase of height.
264
+ * @default false
265
+ */
266
+ disableGutters: e.bool,
267
+ /**
268
+ * If `true`, expands the accordion, otherwise collapse it.
269
+ * Setting this prop enables control over the accordion.
270
+ */
271
+ expanded: e.bool,
272
+ /**
273
+ * Callback fired when the expand/collapse state is changed.
274
+ *
275
+ * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
276
+ * @param {boolean} expanded The `expanded` state of the accordion.
277
+ */
278
+ onChange: e.func,
279
+ /**
280
+ * The props used for each slot inside.
281
+ * @default {}
282
+ */
283
+ slotProps: e.shape({
284
+ transition: e.oneOfType([e.func, e.object])
285
+ }),
286
+ /**
287
+ * The components used for each slot inside.
288
+ * @default {}
289
+ */
290
+ slots: e.shape({
291
+ transition: e.elementType
292
+ }),
293
+ /**
294
+ * If `true`, rounded corners are disabled.
295
+ * @default false
296
+ */
297
+ square: e.bool,
298
+ /**
299
+ * The system prop that allows defining system overrides as well as additional CSS styles.
300
+ */
301
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
302
+ /**
303
+ * The component used for the transition.
304
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
305
+ * @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
306
+ */
307
+ TransitionComponent: e.elementType,
308
+ /**
309
+ * Props applied to the transition element.
310
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
311
+ * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
312
+ */
313
+ TransitionProps: e.object
314
+ });
315
+ function So(o) {
316
+ return _("MuiAccordionSummary", o);
317
+ }
318
+ const h = $("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), ho = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"], Ao = (o) => {
319
+ const {
320
+ classes: r,
321
+ expanded: t,
322
+ disabled: s,
323
+ disableGutters: n
324
+ } = o;
325
+ return D({
326
+ root: ["root", t && "expanded", s && "disabled", !n && "gutters"],
327
+ focusVisible: ["focusVisible"],
328
+ content: ["content", t && "expanded", !n && "contentGutters"],
329
+ expandIconWrapper: ["expandIconWrapper", t && "expanded"]
330
+ }, So, r);
331
+ }, Po = y(no, {
332
+ name: "MuiAccordionSummary",
333
+ slot: "Root",
334
+ overridesResolver: (o, r) => r.root
335
+ })(({
336
+ theme: o
337
+ }) => {
338
+ const r = {
339
+ duration: o.transitions.duration.shortest
340
+ };
341
+ return {
342
+ display: "flex",
343
+ minHeight: 48,
344
+ padding: o.spacing(0, 2),
345
+ transition: o.transitions.create(["min-height", "background-color"], r),
346
+ [`&.${h.focusVisible}`]: {
347
+ backgroundColor: (o.vars || o).palette.action.focus
348
+ },
349
+ [`&.${h.disabled}`]: {
350
+ opacity: (o.vars || o).palette.action.disabledOpacity
351
+ },
352
+ [`&:hover:not(.${h.disabled})`]: {
353
+ cursor: "pointer"
354
+ },
355
+ variants: [{
356
+ props: (t) => !t.disableGutters,
357
+ style: {
358
+ [`&.${h.expanded}`]: {
359
+ minHeight: 64
360
+ }
361
+ }
362
+ }]
363
+ };
364
+ }), Ro = y("div", {
365
+ name: "MuiAccordionSummary",
366
+ slot: "Content",
367
+ overridesResolver: (o, r) => r.content
368
+ })(({
369
+ theme: o
370
+ }) => ({
371
+ display: "flex",
372
+ flexGrow: 1,
373
+ margin: "12px 0",
374
+ variants: [{
375
+ props: (r) => !r.disableGutters,
376
+ style: {
377
+ transition: o.transitions.create(["margin"], {
378
+ duration: o.transitions.duration.shortest
379
+ }),
380
+ [`&.${h.expanded}`]: {
381
+ margin: "20px 0"
382
+ }
383
+ }
384
+ }]
385
+ })), wo = y("div", {
386
+ name: "MuiAccordionSummary",
387
+ slot: "ExpandIconWrapper",
388
+ overridesResolver: (o, r) => r.expandIconWrapper
389
+ })(({
390
+ theme: o
391
+ }) => ({
392
+ display: "flex",
393
+ color: (o.vars || o).palette.action.active,
394
+ transform: "rotate(0deg)",
395
+ transition: o.transitions.create("transform", {
396
+ duration: o.transitions.duration.shortest
397
+ }),
398
+ [`&.${h.expanded}`]: {
399
+ transform: "rotate(180deg)"
400
+ }
401
+ })), U = /* @__PURE__ */ l.forwardRef(function(r, t) {
402
+ const s = j({
403
+ props: r,
404
+ name: "MuiAccordionSummary"
405
+ }), {
406
+ children: n,
407
+ className: i,
408
+ expandIcon: d,
409
+ focusVisibleClassName: p,
410
+ onClick: m
411
+ } = s, T = A(s, ho), {
412
+ disabled: u = !1,
413
+ disableGutters: C,
414
+ expanded: v,
415
+ toggle: b
416
+ } = l.useContext(V), S = (a) => {
417
+ b && b(a), m && m(a);
418
+ }, g = c({}, s, {
419
+ expanded: v,
420
+ disabled: u,
421
+ disableGutters: C
422
+ }), x = Ao(g);
423
+ return /* @__PURE__ */ q(Po, c({
424
+ focusRipple: !1,
425
+ disableRipple: !0,
426
+ disabled: u,
427
+ component: "div",
428
+ "aria-expanded": v,
429
+ className: I(x.root, i),
430
+ focusVisibleClassName: I(x.focusVisible, p),
431
+ onClick: S,
432
+ ref: t,
433
+ ownerState: g
434
+ }, T, {
435
+ children: [/* @__PURE__ */ f(Ro, {
436
+ className: x.content,
437
+ ownerState: g,
438
+ children: n
439
+ }), d && /* @__PURE__ */ f(wo, {
440
+ className: x.expandIconWrapper,
441
+ ownerState: g,
442
+ children: d
443
+ })]
444
+ }));
445
+ });
446
+ process.env.NODE_ENV !== "production" && (U.propTypes = {
447
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
448
+ // │ These PropTypes are generated from the TypeScript type definitions. │
449
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
450
+ // └─────────────────────────────────────────────────────────────────────┘
451
+ /**
452
+ * The content of the component.
453
+ */
454
+ children: e.node,
455
+ /**
456
+ * Override or extend the styles applied to the component.
457
+ */
458
+ classes: e.object,
459
+ /**
460
+ * @ignore
461
+ */
462
+ className: e.string,
463
+ /**
464
+ * The icon to display as the expand indicator.
465
+ */
466
+ expandIcon: e.node,
467
+ /**
468
+ * This prop can help identify which element has keyboard focus.
469
+ * The class name will be applied when the element gains the focus through keyboard interaction.
470
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
471
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
472
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
473
+ * if needed.
474
+ */
475
+ focusVisibleClassName: e.string,
476
+ /**
477
+ * @ignore
478
+ */
479
+ onClick: e.func,
480
+ /**
481
+ * The system prop that allows defining system overrides as well as additional CSS styles.
482
+ */
483
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
484
+ });
485
+ function To(o) {
486
+ return _("MuiAccordionDetails", o);
487
+ }
488
+ $("MuiAccordionDetails", ["root"]);
489
+ const No = ["className"], Eo = (o) => {
490
+ const {
491
+ classes: r
492
+ } = o;
493
+ return D({
494
+ root: ["root"]
495
+ }, To, r);
496
+ }, Mo = y("div", {
497
+ name: "MuiAccordionDetails",
498
+ slot: "Root",
499
+ overridesResolver: (o, r) => r.root
500
+ })(({
501
+ theme: o
502
+ }) => ({
503
+ padding: o.spacing(1, 2, 2)
504
+ })), W = /* @__PURE__ */ l.forwardRef(function(r, t) {
505
+ const s = j({
506
+ props: r,
507
+ name: "MuiAccordionDetails"
508
+ }), {
509
+ className: n
510
+ } = s, i = A(s, No), d = s, p = Eo(d);
511
+ return /* @__PURE__ */ f(Mo, c({
512
+ className: I(p.root, n),
513
+ ref: t,
514
+ ownerState: d
515
+ }, i));
516
+ });
517
+ process.env.NODE_ENV !== "production" && (W.propTypes = {
518
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
519
+ // │ These PropTypes are generated from the TypeScript type definitions. │
520
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
521
+ // └─────────────────────────────────────────────────────────────────────┘
522
+ /**
523
+ * The content of the component.
524
+ */
525
+ children: e.node,
526
+ /**
527
+ * Override or extend the styles applied to the component.
528
+ */
529
+ classes: e.object,
530
+ /**
531
+ * @ignore
532
+ */
533
+ className: e.string,
534
+ /**
535
+ * The system prop that allows defining system overrides as well as additional CSS styles.
536
+ */
537
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
538
+ });
539
+ const Bo = y((o) => /* @__PURE__ */ f(B, { disableGutters: !0, elevation: 0, square: !0, ...o }))(() => ({
540
+ "&:not(:last-child)": {
541
+ borderBottom: 0
542
+ },
543
+ "&:before": {
544
+ display: "none"
545
+ }
546
+ })), Uo = y((o) => /* @__PURE__ */ f(
547
+ U,
548
+ {
549
+ expandIcon: /* @__PURE__ */ f(F, { sx: { fontSize: 12 } }),
550
+ ...o
551
+ }
552
+ ))(({ theme: o }) => ({
553
+ fontSize: "14px",
554
+ minHeight: "auto",
555
+ height: 44,
556
+ flexDirection: "row-reverse",
557
+ "& .MuiAccordionSummary-expandIconWrapper.Mui-expanded": {
558
+ transform: "rotate(90deg)"
559
+ },
560
+ "& .MuiAccordionSummary-content": {
561
+ display: "flex",
562
+ margin: o.spacing(1),
563
+ marginRight: 0,
564
+ justifyContent: "space-between",
565
+ alignItems: "center"
566
+ }
567
+ })), Wo = y(W)(({ theme: o }) => ({
568
+ padding: o.spacing(2),
569
+ paddingTop: 0
570
+ }));
571
+ export {
572
+ Bo as Accordion,
573
+ Wo as AccordionDetails,
574
+ Uo as AccordionSummary
575
+ };
@@ -2,13 +2,13 @@ import { jsx as s, jsxs as d } from "react/jsx-runtime";
2
2
  import { confirmable as x } from "react-confirm";
3
3
  import { IconButton as C } from "@mui/material";
4
4
  import { Close as D } from "@mui/icons-material";
5
- import { c as h, g as T, D as b, a as y, b as B, B as p } from "../../DialogContent-2aPOjKE7.js";
5
+ import { c as h, g as T, D as b, a as y, b as B, B as p } from "../../DialogContent-MMUsECN2.js";
6
6
  import { _ as j, a as v } from "../../extends-C3382pL0.js";
7
7
  import * as u from "react";
8
- import { P as o } from "../../createTheme-agWfFD64.js";
9
- import { u as M, c as N, a as O } from "../../chainPropTypes-DtBfUj5o.js";
10
- import { s as R } from "../../styled-Iq9jsO4F.js";
11
- import { T as P } from "../../Typography-XIiVCSto.js";
8
+ import { P as o } from "../../createTheme-oOCi1S_n.js";
9
+ import { u as M, c as N, a as O } from "../../chainPropTypes-BmidnkZm.js";
10
+ import { s as R } from "../../styled-Wx2vv4j8.js";
11
+ import { T as P } from "../../Typography-Bjo-B13o.js";
12
12
  const _ = ["className", "id"], k = (a) => {
13
13
  const {
14
14
  classes: t