@hybridcore/ui 1.3.3 → 1.3.5

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 (67) hide show
  1. package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-D6qhsxB0.js} +201 -210
  2. package/dist/{CardContent-Du2i427Y.js → CardContent-B8hqgH-I.js} +15 -15
  3. package/dist/{Checkbox-BGNAqLl0.js → Checkbox-BFWhj3s-.js} +154 -144
  4. package/dist/{Collapse-FRd0_2Pt.js → Collapse-D_TjnyE5.js} +96 -87
  5. package/dist/DialogContent-BCYm_d1s.js +864 -0
  6. package/dist/{FormControl-ChTmxscy.js → FormControl-BMRUQKHh.js} +479 -449
  7. package/dist/FormControlLabel-DENNVXWL.js +639 -0
  8. package/dist/{IconButton-Cu_XEJB2.js → IconButton-D8bwME9t.js} +22 -22
  9. package/dist/{Input-DU22-Zbo.js → Input-Dxzguyp5.js} +34 -34
  10. package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-B8ERE7Zv.js} +12 -12
  11. package/dist/{List-nOXr-cFJ.js → List-DEWyK9IO.js} +12 -12
  12. package/dist/{MenuItem-DF45rx2m.js → MenuItem-DstAFfik.js} +26 -26
  13. package/dist/Modal-DNGEQJ1M.js +1267 -0
  14. package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-w2Cj9STF.js} +75 -78
  15. package/dist/{Paper-CD_ma6NJ.js → Paper-BseeergJ.js} +15 -15
  16. package/dist/Select-NDq3WyLt.js +2175 -0
  17. package/dist/Typography-Dg-ROiTA.js +201 -0
  18. package/dist/components/card/index.js +17 -17
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/style.js +222 -302
  21. package/dist/components/confirm/dialog.js +13 -13
  22. package/dist/components/container/index.js +19 -19
  23. package/dist/components/context-menu/index.js +616 -203
  24. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  25. package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
  26. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  27. package/dist/components/geometry-picker/index.js +3 -3
  28. package/dist/components/icon-button/index.js +1 -1
  29. package/dist/components/map/styled.js +14 -14
  30. package/dist/components/search-input/index.js +4 -4
  31. package/dist/components/template-property-filters/index.js +1 -1
  32. package/dist/components/template-property-filters/property.js +209 -10
  33. package/dist/components/tree-select/index.js +4 -4
  34. package/dist/components/treeview-filter/index.js +29 -30
  35. package/dist/components/treeview-filter/item/index.js +1 -1
  36. package/dist/components/treeview-filter/item-label/index.js +2 -2
  37. package/dist/createStyled-B96gjom1.js +1887 -0
  38. package/dist/createSvgIcon-B2WT0K4k.js +87 -0
  39. package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-BNrb7rDY.js} +82 -85
  40. package/dist/{exactProp--3vlJ9a9.js → exactProp-CI_rjX83.js} +2 -2
  41. package/dist/{index-CtuBGOmk.js → index-B3Oj04nl.js} +5 -5
  42. package/dist/{index-DzFccwzL.js → index-CSfSVkKj.js} +204 -218
  43. package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-CFiI_U7B.js} +2 -2
  44. package/dist/main.js +150 -144
  45. package/dist/styled-cPJbqF0E.js +677 -0
  46. package/dist/useTheme-C-T6Qisa.js +10 -0
  47. package/dist/useThemeProps-DeftUmqJ.js +107 -0
  48. package/dist/{utils-qcu0RzdN.js → utils-CCkxV0lZ.js} +15 -15
  49. package/package.json +3 -3
  50. package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
  51. package/dist/FormControlLabel-Df7csguX.js +0 -827
  52. package/dist/ListItem-RJvRMwkZ.js +0 -428
  53. package/dist/Select-C1jD_gBQ.js +0 -2305
  54. package/dist/Typography-C2BkMNk-.js +0 -178
  55. package/dist/chainPropTypes-GRMJ22CO.js +0 -96
  56. package/dist/createSvgIcon-6wv0RQr3.js +0 -63
  57. package/dist/createTheme-C3DKplhE.js +0 -2395
  58. package/dist/property-BSufYw1E.js +0 -6888
  59. package/dist/requirePropFactory-BItwGLRQ.js +0 -18
  60. package/dist/resolveComponentProps-DozbaB8e.js +0 -54
  61. package/dist/styled-CVWGE9ik.js +0 -142
  62. package/dist/styled-iyoioZCr.js +0 -1033
  63. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  64. package/dist/useTheme--x3BjP9A.js +0 -17
  65. package/dist/useTheme-pWltVFb2.js +0 -10
  66. package/dist/useThemeProps-C90JF0Qc.js +0 -62
  67. package/dist/useThemeProps-DNZoozBw.js +0 -26
@@ -0,0 +1,864 @@
1
+ import { _ as e, a as I } from "./extends-Cyw62AD_.js";
2
+ import * as b from "react";
3
+ import { a as t, P as i } from "./createStyled-B96gjom1.js";
4
+ import { g as k, r as Z, u as P, c as v, a as O } from "./useThemeProps-DeftUmqJ.js";
5
+ import { g as D, s as g, r as oo, a as R } from "./styled-cPJbqF0E.js";
6
+ import { jsx as u, jsxs as ao } from "react/jsx-runtime";
7
+ import { B as io } from "./ButtonBase-D6qhsxB0.js";
8
+ import { u as no } from "./useTheme-C-T6Qisa.js";
9
+ import { B as eo, M as ro, F as to } from "./Modal-DNGEQJ1M.js";
10
+ import { P as Y } from "./Paper-BseeergJ.js";
11
+ import { u as so } from "./useId-BHG98T5I.js";
12
+ function lo(o) {
13
+ return D("MuiButton", o);
14
+ }
15
+ const S = k("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), w = /* @__PURE__ */ b.createContext({});
16
+ process.env.NODE_ENV !== "production" && (w.displayName = "ButtonGroupContext");
17
+ const co = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], po = (o) => {
18
+ const {
19
+ color: a,
20
+ disableElevation: n,
21
+ fullWidth: r,
22
+ size: s,
23
+ variant: l,
24
+ classes: c
25
+ } = o, d = {
26
+ root: ["root", l, `${l}${t(a)}`, `size${t(s)}`, `${l}Size${t(s)}`, a === "inherit" && "colorInherit", n && "disableElevation", r && "fullWidth"],
27
+ label: ["label"],
28
+ startIcon: ["startIcon", `iconSize${t(s)}`],
29
+ endIcon: ["endIcon", `iconSize${t(s)}`]
30
+ }, p = O(d, lo, c);
31
+ return e({}, c, p);
32
+ }, X = (o) => e({}, o.size === "small" && {
33
+ "& > *:nth-of-type(1)": {
34
+ fontSize: 18
35
+ }
36
+ }, o.size === "medium" && {
37
+ "& > *:nth-of-type(1)": {
38
+ fontSize: 20
39
+ }
40
+ }, o.size === "large" && {
41
+ "& > *:nth-of-type(1)": {
42
+ fontSize: 22
43
+ }
44
+ }), uo = g(io, {
45
+ shouldForwardProp: (o) => oo(o) || o === "classes",
46
+ name: "MuiButton",
47
+ slot: "Root",
48
+ overridesResolver: (o, a) => {
49
+ const {
50
+ ownerState: n
51
+ } = o;
52
+ return [a.root, a[n.variant], a[`${n.variant}${t(n.color)}`], a[`size${t(n.size)}`], a[`${n.variant}Size${t(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth];
53
+ }
54
+ })(({
55
+ theme: o,
56
+ ownerState: a
57
+ }) => {
58
+ var n, r;
59
+ return e({}, o.typography.button, {
60
+ minWidth: 64,
61
+ padding: "6px 16px",
62
+ borderRadius: (o.vars || o).shape.borderRadius,
63
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
64
+ duration: o.transitions.duration.short
65
+ }),
66
+ "&:hover": e({
67
+ textDecoration: "none",
68
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : R(o.palette.text.primary, o.palette.action.hoverOpacity),
69
+ // Reset on touch devices, it doesn't add specificity
70
+ "@media (hover: none)": {
71
+ backgroundColor: "transparent"
72
+ }
73
+ }, a.variant === "text" && a.color !== "inherit" && {
74
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : R(o.palette[a.color].main, o.palette.action.hoverOpacity),
75
+ // Reset on touch devices, it doesn't add specificity
76
+ "@media (hover: none)": {
77
+ backgroundColor: "transparent"
78
+ }
79
+ }, a.variant === "outlined" && a.color !== "inherit" && {
80
+ border: `1px solid ${(o.vars || o).palette[a.color].main}`,
81
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : R(o.palette[a.color].main, o.palette.action.hoverOpacity),
82
+ // Reset on touch devices, it doesn't add specificity
83
+ "@media (hover: none)": {
84
+ backgroundColor: "transparent"
85
+ }
86
+ }, a.variant === "contained" && {
87
+ backgroundColor: (o.vars || o).palette.grey.A100,
88
+ boxShadow: (o.vars || o).shadows[4],
89
+ // Reset on touch devices, it doesn't add specificity
90
+ "@media (hover: none)": {
91
+ boxShadow: (o.vars || o).shadows[2],
92
+ backgroundColor: (o.vars || o).palette.grey[300]
93
+ }
94
+ }, a.variant === "contained" && a.color !== "inherit" && {
95
+ backgroundColor: (o.vars || o).palette[a.color].dark,
96
+ // Reset on touch devices, it doesn't add specificity
97
+ "@media (hover: none)": {
98
+ backgroundColor: (o.vars || o).palette[a.color].main
99
+ }
100
+ }),
101
+ "&:active": e({}, a.variant === "contained" && {
102
+ boxShadow: (o.vars || o).shadows[8]
103
+ }),
104
+ [`&.${S.focusVisible}`]: e({}, a.variant === "contained" && {
105
+ boxShadow: (o.vars || o).shadows[6]
106
+ }),
107
+ [`&.${S.disabled}`]: e({
108
+ color: (o.vars || o).palette.action.disabled
109
+ }, a.variant === "outlined" && {
110
+ border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
111
+ }, a.variant === "contained" && {
112
+ color: (o.vars || o).palette.action.disabled,
113
+ boxShadow: (o.vars || o).shadows[0],
114
+ backgroundColor: (o.vars || o).palette.action.disabledBackground
115
+ })
116
+ }, a.variant === "text" && {
117
+ padding: "6px 8px"
118
+ }, a.variant === "text" && a.color !== "inherit" && {
119
+ color: (o.vars || o).palette[a.color].main
120
+ }, a.variant === "outlined" && {
121
+ padding: "5px 15px",
122
+ border: "1px solid currentColor"
123
+ }, a.variant === "outlined" && a.color !== "inherit" && {
124
+ color: (o.vars || o).palette[a.color].main,
125
+ border: o.vars ? `1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)` : `1px solid ${R(o.palette[a.color].main, 0.5)}`
126
+ }, a.variant === "contained" && {
127
+ color: o.vars ? (
128
+ // this is safe because grey does not change between default light/dark mode
129
+ o.vars.palette.text.primary
130
+ ) : (n = (r = o.palette).getContrastText) == null ? void 0 : n.call(r, o.palette.grey[300]),
131
+ backgroundColor: (o.vars || o).palette.grey[300],
132
+ boxShadow: (o.vars || o).shadows[2]
133
+ }, a.variant === "contained" && a.color !== "inherit" && {
134
+ color: (o.vars || o).palette[a.color].contrastText,
135
+ backgroundColor: (o.vars || o).palette[a.color].main
136
+ }, a.color === "inherit" && {
137
+ color: "inherit",
138
+ borderColor: "currentColor"
139
+ }, a.size === "small" && a.variant === "text" && {
140
+ padding: "4px 5px",
141
+ fontSize: o.typography.pxToRem(13)
142
+ }, a.size === "large" && a.variant === "text" && {
143
+ padding: "8px 11px",
144
+ fontSize: o.typography.pxToRem(15)
145
+ }, a.size === "small" && a.variant === "outlined" && {
146
+ padding: "3px 9px",
147
+ fontSize: o.typography.pxToRem(13)
148
+ }, a.size === "large" && a.variant === "outlined" && {
149
+ padding: "7px 21px",
150
+ fontSize: o.typography.pxToRem(15)
151
+ }, a.size === "small" && a.variant === "contained" && {
152
+ padding: "4px 10px",
153
+ fontSize: o.typography.pxToRem(13)
154
+ }, a.size === "large" && a.variant === "contained" && {
155
+ padding: "8px 22px",
156
+ fontSize: o.typography.pxToRem(15)
157
+ }, a.fullWidth && {
158
+ width: "100%"
159
+ });
160
+ }, ({
161
+ ownerState: o
162
+ }) => o.disableElevation && {
163
+ boxShadow: "none",
164
+ "&:hover": {
165
+ boxShadow: "none"
166
+ },
167
+ [`&.${S.focusVisible}`]: {
168
+ boxShadow: "none"
169
+ },
170
+ "&:active": {
171
+ boxShadow: "none"
172
+ },
173
+ [`&.${S.disabled}`]: {
174
+ boxShadow: "none"
175
+ }
176
+ }), bo = g("span", {
177
+ name: "MuiButton",
178
+ slot: "StartIcon",
179
+ overridesResolver: (o, a) => {
180
+ const {
181
+ ownerState: n
182
+ } = o;
183
+ return [a.startIcon, a[`iconSize${t(n.size)}`]];
184
+ }
185
+ })(({
186
+ ownerState: o
187
+ }) => e({
188
+ display: "inherit",
189
+ marginRight: 8,
190
+ marginLeft: -4
191
+ }, o.size === "small" && {
192
+ marginLeft: -2
193
+ }, X(o))), go = g("span", {
194
+ name: "MuiButton",
195
+ slot: "EndIcon",
196
+ overridesResolver: (o, a) => {
197
+ const {
198
+ ownerState: n
199
+ } = o;
200
+ return [a.endIcon, a[`iconSize${t(n.size)}`]];
201
+ }
202
+ })(({
203
+ ownerState: o
204
+ }) => e({
205
+ display: "inherit",
206
+ marginRight: -4,
207
+ marginLeft: 8
208
+ }, o.size === "small" && {
209
+ marginRight: -2
210
+ }, X(o))), fo = /* @__PURE__ */ b.forwardRef(function(a, n) {
211
+ const r = b.useContext(w), s = Z(r, a), l = P({
212
+ props: s,
213
+ name: "MuiButton"
214
+ }), {
215
+ children: c,
216
+ color: d = "primary",
217
+ component: p = "button",
218
+ className: M,
219
+ disabled: z = !1,
220
+ disableElevation: E = !1,
221
+ disableFocusRipple: y = !1,
222
+ endIcon: $,
223
+ focusVisibleClassName: j,
224
+ fullWidth: V = !1,
225
+ size: W = "medium",
226
+ startIcon: x,
227
+ type: h,
228
+ variant: _ = "text"
229
+ } = l, T = I(l, co), m = e({}, l, {
230
+ color: d,
231
+ component: p,
232
+ disabled: z,
233
+ disableElevation: E,
234
+ disableFocusRipple: y,
235
+ fullWidth: V,
236
+ size: W,
237
+ type: h,
238
+ variant: _
239
+ }), f = po(m), B = x && /* @__PURE__ */ u(bo, {
240
+ className: f.startIcon,
241
+ ownerState: m,
242
+ children: x
243
+ }), A = $ && /* @__PURE__ */ u(go, {
244
+ className: f.endIcon,
245
+ ownerState: m,
246
+ children: $
247
+ });
248
+ return /* @__PURE__ */ ao(uo, e({
249
+ ownerState: m,
250
+ className: v(r.className, f.root, M),
251
+ component: p,
252
+ disabled: z,
253
+ focusRipple: !y,
254
+ focusVisibleClassName: v(f.focusVisible, j),
255
+ ref: n,
256
+ type: h
257
+ }, T, {
258
+ classes: f,
259
+ children: [B, c, A]
260
+ }));
261
+ });
262
+ process.env.NODE_ENV !== "production" && (fo.propTypes = {
263
+ // ----------------------------- Warning --------------------------------
264
+ // | These PropTypes are generated from the TypeScript type definitions |
265
+ // | To update them edit the d.ts file and run "yarn proptypes" |
266
+ // ----------------------------------------------------------------------
267
+ /**
268
+ * The content of the component.
269
+ */
270
+ children: i.node,
271
+ /**
272
+ * Override or extend the styles applied to the component.
273
+ */
274
+ classes: i.object,
275
+ /**
276
+ * @ignore
277
+ */
278
+ className: i.string,
279
+ /**
280
+ * The color of the component.
281
+ * It supports both default and custom theme colors, which can be added as shown in the
282
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
283
+ * @default 'primary'
284
+ */
285
+ color: i.oneOfType([i.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), i.string]),
286
+ /**
287
+ * The component used for the root node.
288
+ * Either a string to use a HTML element or a component.
289
+ */
290
+ component: i.elementType,
291
+ /**
292
+ * If `true`, the component is disabled.
293
+ * @default false
294
+ */
295
+ disabled: i.bool,
296
+ /**
297
+ * If `true`, no elevation is used.
298
+ * @default false
299
+ */
300
+ disableElevation: i.bool,
301
+ /**
302
+ * If `true`, the keyboard focus ripple is disabled.
303
+ * @default false
304
+ */
305
+ disableFocusRipple: i.bool,
306
+ /**
307
+ * If `true`, the ripple effect is disabled.
308
+ *
309
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
310
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
311
+ * @default false
312
+ */
313
+ disableRipple: i.bool,
314
+ /**
315
+ * Element placed after the children.
316
+ */
317
+ endIcon: i.node,
318
+ /**
319
+ * @ignore
320
+ */
321
+ focusVisibleClassName: i.string,
322
+ /**
323
+ * If `true`, the button will take up the full width of its container.
324
+ * @default false
325
+ */
326
+ fullWidth: i.bool,
327
+ /**
328
+ * The URL to link to when the button is clicked.
329
+ * If defined, an `a` element will be used as the root node.
330
+ */
331
+ href: i.string,
332
+ /**
333
+ * The size of the component.
334
+ * `small` is equivalent to the dense button styling.
335
+ * @default 'medium'
336
+ */
337
+ size: i.oneOfType([i.oneOf(["small", "medium", "large"]), i.string]),
338
+ /**
339
+ * Element placed before the children.
340
+ */
341
+ startIcon: i.node,
342
+ /**
343
+ * The system prop that allows defining system overrides as well as additional CSS styles.
344
+ */
345
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
346
+ /**
347
+ * @ignore
348
+ */
349
+ type: i.oneOfType([i.oneOf(["button", "reset", "submit"]), i.string]),
350
+ /**
351
+ * The variant to use.
352
+ * @default 'text'
353
+ */
354
+ variant: i.oneOfType([i.oneOf(["contained", "outlined", "text"]), i.string])
355
+ });
356
+ function vo(o) {
357
+ return D("MuiDialog", o);
358
+ }
359
+ const K = k("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), G = /* @__PURE__ */ b.createContext({});
360
+ process.env.NODE_ENV !== "production" && (G.displayName = "DialogContext");
361
+ const xo = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], mo = g(eo, {
362
+ name: "MuiDialog",
363
+ slot: "Backdrop",
364
+ overrides: (o, a) => a.backdrop
365
+ })({
366
+ // Improve scrollable dialog support.
367
+ zIndex: -1
368
+ }), yo = (o) => {
369
+ const {
370
+ classes: a,
371
+ scroll: n,
372
+ maxWidth: r,
373
+ fullWidth: s,
374
+ fullScreen: l
375
+ } = o, c = {
376
+ root: ["root"],
377
+ container: ["container", `scroll${t(n)}`],
378
+ paper: ["paper", `paperScroll${t(n)}`, `paperWidth${t(String(r))}`, s && "paperFullWidth", l && "paperFullScreen"]
379
+ };
380
+ return O(c, vo, a);
381
+ }, ho = g(ro, {
382
+ name: "MuiDialog",
383
+ slot: "Root",
384
+ overridesResolver: (o, a) => a.root
385
+ })({
386
+ "@media print": {
387
+ // Use !important to override the Modal inline-style.
388
+ position: "absolute !important"
389
+ }
390
+ }), Co = g("div", {
391
+ name: "MuiDialog",
392
+ slot: "Container",
393
+ overridesResolver: (o, a) => {
394
+ const {
395
+ ownerState: n
396
+ } = o;
397
+ return [a.container, a[`scroll${t(n.scroll)}`]];
398
+ }
399
+ })(({
400
+ ownerState: o
401
+ }) => e({
402
+ height: "100%",
403
+ "@media print": {
404
+ height: "auto"
405
+ },
406
+ // We disable the focus ring for mouse, touch and keyboard users.
407
+ outline: 0
408
+ }, o.scroll === "paper" && {
409
+ display: "flex",
410
+ justifyContent: "center",
411
+ alignItems: "center"
412
+ }, o.scroll === "body" && {
413
+ overflowY: "auto",
414
+ overflowX: "hidden",
415
+ textAlign: "center",
416
+ "&:after": {
417
+ content: '""',
418
+ display: "inline-block",
419
+ verticalAlign: "middle",
420
+ height: "100%",
421
+ width: "0"
422
+ }
423
+ })), ko = g(Y, {
424
+ name: "MuiDialog",
425
+ slot: "Paper",
426
+ overridesResolver: (o, a) => {
427
+ const {
428
+ ownerState: n
429
+ } = o;
430
+ return [a.paper, a[`scrollPaper${t(n.scroll)}`], a[`paperWidth${t(String(n.maxWidth))}`], n.fullWidth && a.paperFullWidth, n.fullScreen && a.paperFullScreen];
431
+ }
432
+ })(({
433
+ theme: o,
434
+ ownerState: a
435
+ }) => e({
436
+ margin: 32,
437
+ position: "relative",
438
+ overflowY: "auto",
439
+ // Fix IE11 issue, to remove at some point.
440
+ "@media print": {
441
+ overflowY: "visible",
442
+ boxShadow: "none"
443
+ }
444
+ }, a.scroll === "paper" && {
445
+ display: "flex",
446
+ flexDirection: "column",
447
+ maxHeight: "calc(100% - 64px)"
448
+ }, a.scroll === "body" && {
449
+ display: "inline-block",
450
+ verticalAlign: "middle",
451
+ textAlign: "left"
452
+ // 'initial' doesn't work on IE11
453
+ }, !a.maxWidth && {
454
+ maxWidth: "calc(100% - 64px)"
455
+ }, a.maxWidth === "xs" && {
456
+ maxWidth: o.breakpoints.unit === "px" ? Math.max(o.breakpoints.values.xs, 444) : `${o.breakpoints.values.xs}${o.breakpoints.unit}`,
457
+ [`&.${K.paperScrollBody}`]: {
458
+ [o.breakpoints.down(Math.max(o.breakpoints.values.xs, 444) + 32 * 2)]: {
459
+ maxWidth: "calc(100% - 64px)"
460
+ }
461
+ }
462
+ }, a.maxWidth && a.maxWidth !== "xs" && {
463
+ maxWidth: `${o.breakpoints.values[a.maxWidth]}${o.breakpoints.unit}`,
464
+ [`&.${K.paperScrollBody}`]: {
465
+ [o.breakpoints.down(o.breakpoints.values[a.maxWidth] + 32 * 2)]: {
466
+ maxWidth: "calc(100% - 64px)"
467
+ }
468
+ }
469
+ }, a.fullWidth && {
470
+ width: "calc(100% - 64px)"
471
+ }, a.fullScreen && {
472
+ margin: 0,
473
+ width: "100%",
474
+ maxWidth: "100%",
475
+ height: "100%",
476
+ maxHeight: "none",
477
+ borderRadius: 0,
478
+ [`&.${K.paperScrollBody}`]: {
479
+ margin: 0,
480
+ maxWidth: "100%"
481
+ }
482
+ })), Do = /* @__PURE__ */ b.forwardRef(function(a, n) {
483
+ const r = P({
484
+ props: a,
485
+ name: "MuiDialog"
486
+ }), s = no(), l = {
487
+ enter: s.transitions.duration.enteringScreen,
488
+ exit: s.transitions.duration.leavingScreen
489
+ }, {
490
+ "aria-describedby": c,
491
+ "aria-labelledby": d,
492
+ BackdropComponent: p,
493
+ BackdropProps: M,
494
+ children: z,
495
+ className: E,
496
+ disableEscapeKeyDown: y = !1,
497
+ fullScreen: $ = !1,
498
+ fullWidth: j = !1,
499
+ maxWidth: V = "sm",
500
+ onBackdropClick: W,
501
+ onClose: x,
502
+ open: h,
503
+ PaperComponent: _ = Y,
504
+ PaperProps: T = {},
505
+ scroll: m = "paper",
506
+ TransitionComponent: f = to,
507
+ transitionDuration: B = l,
508
+ TransitionProps: A
509
+ } = r, H = I(r, xo), N = e({}, r, {
510
+ disableEscapeKeyDown: y,
511
+ fullScreen: $,
512
+ fullWidth: j,
513
+ maxWidth: V,
514
+ scroll: m
515
+ }), F = yo(N), L = b.useRef(), q = (C) => {
516
+ L.current = C.target === C.currentTarget;
517
+ }, J = (C) => {
518
+ L.current && (L.current = null, W && W(C), x && x(C, "backdropClick"));
519
+ }, U = so(d), Q = b.useMemo(() => ({
520
+ titleId: U
521
+ }), [U]);
522
+ return /* @__PURE__ */ u(ho, e({
523
+ className: v(F.root, E),
524
+ closeAfterTransition: !0,
525
+ components: {
526
+ Backdrop: mo
527
+ },
528
+ componentsProps: {
529
+ backdrop: e({
530
+ transitionDuration: B,
531
+ as: p
532
+ }, M)
533
+ },
534
+ disableEscapeKeyDown: y,
535
+ onClose: x,
536
+ open: h,
537
+ ref: n,
538
+ onClick: J,
539
+ ownerState: N
540
+ }, H, {
541
+ children: /* @__PURE__ */ u(f, e({
542
+ appear: !0,
543
+ in: h,
544
+ timeout: B,
545
+ role: "presentation"
546
+ }, A, {
547
+ children: /* @__PURE__ */ u(Co, {
548
+ className: v(F.container),
549
+ onMouseDown: q,
550
+ ownerState: N,
551
+ children: /* @__PURE__ */ u(ko, e({
552
+ as: _,
553
+ elevation: 24,
554
+ role: "dialog",
555
+ "aria-describedby": c,
556
+ "aria-labelledby": U
557
+ }, T, {
558
+ className: v(F.paper, T.className),
559
+ ownerState: N,
560
+ children: /* @__PURE__ */ u(G.Provider, {
561
+ value: Q,
562
+ children: z
563
+ })
564
+ }))
565
+ })
566
+ }))
567
+ }));
568
+ });
569
+ process.env.NODE_ENV !== "production" && (Do.propTypes = {
570
+ // ----------------------------- Warning --------------------------------
571
+ // | These PropTypes are generated from the TypeScript type definitions |
572
+ // | To update them edit the d.ts file and run "yarn proptypes" |
573
+ // ----------------------------------------------------------------------
574
+ /**
575
+ * The id(s) of the element(s) that describe the dialog.
576
+ */
577
+ "aria-describedby": i.string,
578
+ /**
579
+ * The id(s) of the element(s) that label the dialog.
580
+ */
581
+ "aria-labelledby": i.string,
582
+ /**
583
+ * A backdrop component. This prop enables custom backdrop rendering.
584
+ * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
585
+ * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
586
+ * @default styled(Backdrop, {
587
+ * name: 'MuiModal',
588
+ * slot: 'Backdrop',
589
+ * overridesResolver: (props, styles) => {
590
+ * return styles.backdrop;
591
+ * },
592
+ * })({
593
+ * zIndex: -1,
594
+ * })
595
+ */
596
+ BackdropComponent: i.elementType,
597
+ /**
598
+ * @ignore
599
+ */
600
+ BackdropProps: i.object,
601
+ /**
602
+ * Dialog children, usually the included sub-components.
603
+ */
604
+ children: i.node,
605
+ /**
606
+ * Override or extend the styles applied to the component.
607
+ */
608
+ classes: i.object,
609
+ /**
610
+ * @ignore
611
+ */
612
+ className: i.string,
613
+ /**
614
+ * If `true`, hitting escape will not fire the `onClose` callback.
615
+ * @default false
616
+ */
617
+ disableEscapeKeyDown: i.bool,
618
+ /**
619
+ * If `true`, the dialog is full-screen.
620
+ * @default false
621
+ */
622
+ fullScreen: i.bool,
623
+ /**
624
+ * If `true`, the dialog stretches to `maxWidth`.
625
+ *
626
+ * Notice that the dialog width grow is limited by the default margin.
627
+ * @default false
628
+ */
629
+ fullWidth: i.bool,
630
+ /**
631
+ * Determine the max-width of the dialog.
632
+ * The dialog width grows with the size of the screen.
633
+ * Set to `false` to disable `maxWidth`.
634
+ * @default 'sm'
635
+ */
636
+ maxWidth: i.oneOfType([i.oneOf(["xs", "sm", "md", "lg", "xl", !1]), i.string]),
637
+ /**
638
+ * Callback fired when the backdrop is clicked.
639
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
640
+ */
641
+ onBackdropClick: i.func,
642
+ /**
643
+ * Callback fired when the component requests to be closed.
644
+ *
645
+ * @param {object} event The event source of the callback.
646
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
647
+ */
648
+ onClose: i.func,
649
+ /**
650
+ * If `true`, the component is shown.
651
+ */
652
+ open: i.bool.isRequired,
653
+ /**
654
+ * The component used to render the body of the dialog.
655
+ * @default Paper
656
+ */
657
+ PaperComponent: i.elementType,
658
+ /**
659
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
660
+ * @default {}
661
+ */
662
+ PaperProps: i.object,
663
+ /**
664
+ * Determine the container for scrolling the dialog.
665
+ * @default 'paper'
666
+ */
667
+ scroll: i.oneOf(["body", "paper"]),
668
+ /**
669
+ * The system prop that allows defining system overrides as well as additional CSS styles.
670
+ */
671
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
672
+ /**
673
+ * The component used for the transition.
674
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
675
+ * @default Fade
676
+ */
677
+ TransitionComponent: i.elementType,
678
+ /**
679
+ * The duration for the transition, in milliseconds.
680
+ * You may specify a single timeout for all transitions, or individually with an object.
681
+ * @default {
682
+ * enter: theme.transitions.duration.enteringScreen,
683
+ * exit: theme.transitions.duration.leavingScreen,
684
+ * }
685
+ */
686
+ transitionDuration: i.oneOfType([i.number, i.shape({
687
+ appear: i.number,
688
+ enter: i.number,
689
+ exit: i.number
690
+ })]),
691
+ /**
692
+ * Props applied to the transition element.
693
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
694
+ */
695
+ TransitionProps: i.object
696
+ });
697
+ function zo(o) {
698
+ return D("MuiDialogActions", o);
699
+ }
700
+ k("MuiDialogActions", ["root", "spacing"]);
701
+ const $o = ["className", "disableSpacing"], Wo = (o) => {
702
+ const {
703
+ classes: a,
704
+ disableSpacing: n
705
+ } = o;
706
+ return O({
707
+ root: ["root", !n && "spacing"]
708
+ }, zo, a);
709
+ }, To = g("div", {
710
+ name: "MuiDialogActions",
711
+ slot: "Root",
712
+ overridesResolver: (o, a) => {
713
+ const {
714
+ ownerState: n
715
+ } = o;
716
+ return [a.root, !n.disableSpacing && a.spacing];
717
+ }
718
+ })(({
719
+ ownerState: o
720
+ }) => e({
721
+ display: "flex",
722
+ alignItems: "center",
723
+ padding: 8,
724
+ justifyContent: "flex-end",
725
+ flex: "0 0 auto"
726
+ }, !o.disableSpacing && {
727
+ "& > :not(:first-of-type)": {
728
+ marginLeft: 8
729
+ }
730
+ })), Bo = /* @__PURE__ */ b.forwardRef(function(a, n) {
731
+ const r = P({
732
+ props: a,
733
+ name: "MuiDialogActions"
734
+ }), {
735
+ className: s,
736
+ disableSpacing: l = !1
737
+ } = r, c = I(r, $o), d = e({}, r, {
738
+ disableSpacing: l
739
+ }), p = Wo(d);
740
+ return /* @__PURE__ */ u(To, e({
741
+ className: v(p.root, s),
742
+ ownerState: d,
743
+ ref: n
744
+ }, c));
745
+ });
746
+ process.env.NODE_ENV !== "production" && (Bo.propTypes = {
747
+ // ----------------------------- Warning --------------------------------
748
+ // | These PropTypes are generated from the TypeScript type definitions |
749
+ // | To update them edit the d.ts file and run "yarn proptypes" |
750
+ // ----------------------------------------------------------------------
751
+ /**
752
+ * The content of the component.
753
+ */
754
+ children: i.node,
755
+ /**
756
+ * Override or extend the styles applied to the component.
757
+ */
758
+ classes: i.object,
759
+ /**
760
+ * @ignore
761
+ */
762
+ className: i.string,
763
+ /**
764
+ * If `true`, the actions do not have additional margin.
765
+ * @default false
766
+ */
767
+ disableSpacing: i.bool,
768
+ /**
769
+ * The system prop that allows defining system overrides as well as additional CSS styles.
770
+ */
771
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object])
772
+ });
773
+ function No(o) {
774
+ return D("MuiDialogContent", o);
775
+ }
776
+ k("MuiDialogContent", ["root", "dividers"]);
777
+ function Yo(o) {
778
+ return D("MuiDialogTitle", o);
779
+ }
780
+ const Ro = k("MuiDialogTitle", ["root"]), So = ["className", "dividers"], Io = (o) => {
781
+ const {
782
+ classes: a,
783
+ dividers: n
784
+ } = o;
785
+ return O({
786
+ root: ["root", n && "dividers"]
787
+ }, No, a);
788
+ }, Po = g("div", {
789
+ name: "MuiDialogContent",
790
+ slot: "Root",
791
+ overridesResolver: (o, a) => {
792
+ const {
793
+ ownerState: n
794
+ } = o;
795
+ return [a.root, n.dividers && a.dividers];
796
+ }
797
+ })(({
798
+ theme: o,
799
+ ownerState: a
800
+ }) => e({
801
+ flex: "1 1 auto",
802
+ // Add iOS momentum scrolling for iOS < 13.0
803
+ WebkitOverflowScrolling: "touch",
804
+ overflowY: "auto",
805
+ padding: "20px 24px"
806
+ }, a.dividers ? {
807
+ padding: "16px 24px",
808
+ borderTop: `1px solid ${(o.vars || o).palette.divider}`,
809
+ borderBottom: `1px solid ${(o.vars || o).palette.divider}`
810
+ } : {
811
+ [`.${Ro.root} + &`]: {
812
+ paddingTop: 0
813
+ }
814
+ })), Oo = /* @__PURE__ */ b.forwardRef(function(a, n) {
815
+ const r = P({
816
+ props: a,
817
+ name: "MuiDialogContent"
818
+ }), {
819
+ className: s,
820
+ dividers: l = !1
821
+ } = r, c = I(r, So), d = e({}, r, {
822
+ dividers: l
823
+ }), p = Io(d);
824
+ return /* @__PURE__ */ u(Po, e({
825
+ className: v(p.root, s),
826
+ ownerState: d,
827
+ ref: n
828
+ }, c));
829
+ });
830
+ process.env.NODE_ENV !== "production" && (Oo.propTypes = {
831
+ // ----------------------------- Warning --------------------------------
832
+ // | These PropTypes are generated from the TypeScript type definitions |
833
+ // | To update them edit the d.ts file and run "yarn proptypes" |
834
+ // ----------------------------------------------------------------------
835
+ /**
836
+ * The content of the component.
837
+ */
838
+ children: i.node,
839
+ /**
840
+ * Override or extend the styles applied to the component.
841
+ */
842
+ classes: i.object,
843
+ /**
844
+ * @ignore
845
+ */
846
+ className: i.string,
847
+ /**
848
+ * Display the top and bottom dividers.
849
+ * @default false
850
+ */
851
+ dividers: i.bool,
852
+ /**
853
+ * The system prop that allows defining system overrides as well as additional CSS styles.
854
+ */
855
+ sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object])
856
+ });
857
+ export {
858
+ fo as B,
859
+ Do as D,
860
+ Oo as a,
861
+ Bo as b,
862
+ G as c,
863
+ Yo as g
864
+ };