@hybridcore/ui 1.6.12 → 1.6.14

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 (68) hide show
  1. package/dist/{AccordionSummary-CJppWeqF.js → AccordionSummary-DUtr16g6.js} +7 -7
  2. package/dist/{Add-CqcD1PWb.js → Add-Bk8R160M.js} +9 -9
  3. package/dist/{Button-C5yquWAB.js → Button-Cem3nbwc.js} +12 -12
  4. package/dist/{ButtonBase-BEF7oTOe.js → ButtonBase-DObmf4Q_.js} +4 -5
  5. package/dist/{IconButton-BoGwbvrP.js → Delete-CVJ6FeDn.js} +91 -72
  6. package/dist/{FormGroup-CpBsIyYR.js → FormGroup-BRj1o7-E.js} +3 -3
  7. package/dist/{InputLabel-Dd8RrneV.js → InputLabel-CjD30ZHz.js} +3 -3
  8. package/dist/{MenuItem-DwqJqzuM.js → MenuItem-BKvRGLvM.js} +6 -6
  9. package/dist/{Modal-MUZygjmQ.js → Modal-BVYydOr5.js} +7 -9
  10. package/dist/{Paper-BkQLdsCI.js → Paper-B1HV8GyO.js} +37 -37
  11. package/dist/{Select-DHUl_uG3.js → Select-Bfhvigsx.js} +2793 -2795
  12. package/dist/{SwitchBase-DTndTqI8.js → SwitchBase-BEK49kdS.js} +5 -5
  13. package/dist/{TextField-e2oKaUN1.js → TextField-Ca9ykixI.js} +166 -139
  14. package/dist/{TransitionGroupContext-BDAp2T0O.js → TransitionGroupContext-Ja2CgIob.js} +1 -1
  15. package/dist/{Typography-DgsSLCFC.js → Typography-D3X-Y5fh.js} +3 -3
  16. package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
  17. package/dist/components/button/styled.js +1 -1
  18. package/dist/components/charts/_common/format.js +193 -41
  19. package/dist/components/charts/_common/utils.js +16 -11
  20. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  21. package/dist/components/collapsible-card/index.js +2 -2
  22. package/dist/components/collapsible-card/styled.js +1 -1
  23. package/dist/components/color-picker/index.js +7 -7
  24. package/dist/components/color-picker/styled.js +1 -1
  25. package/dist/components/confirm/dialog.js +3 -4
  26. package/dist/components/confirm/index.js +1 -1
  27. package/dist/components/data-map/index.js +1 -1
  28. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  29. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  30. package/dist/components/date-range-picker/index.js +2 -2
  31. package/dist/components/duration-select/index.js +1 -1
  32. package/dist/components/duration-select/styled.js +1 -1
  33. package/dist/components/heat-map/index.js +1 -1
  34. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
  35. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  36. package/dist/components/metric-card/logic.js +46 -49
  37. package/dist/components/prr-map/index.js +1 -1
  38. package/dist/components/range-selector/styled.js +65 -4228
  39. package/dist/components/raster-grid-map/index.js +1 -1
  40. package/dist/components/simple-pivot-table/index.js +17 -17
  41. package/dist/components/simple-pivot-table/logic.js +67 -76
  42. package/dist/components/sortable-list/index.js +5 -5
  43. package/dist/components/template-form/components/property-list/index.js +11 -12
  44. package/dist/components/template-form/components/property-list/property-list-columns.js +4 -5
  45. package/dist/components/template-form/components/property-list/property-list-form.js +25 -26
  46. package/dist/components/template-form/components/recognition-property-list/index.js +16 -17
  47. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +3 -4
  48. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +21 -22
  49. package/dist/components/tree-select/index.js +1 -1
  50. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  51. package/dist/{createSvgIcon-Ch_cT8az.js → createSvgIcon-D7U1nd99.js} +3 -3
  52. package/dist/{DialogContent-BvVjD9z3.js → dialog-BtJhjyF5.js} +326 -185
  53. package/dist/{generateUtilityClasses-C3ivN9Ie.js → generateUtilityClasses-Cc-owZ4J.js} +9 -11
  54. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  55. package/dist/{index.esm-BLLrbTzY.js → index.esm-DAf19hyR.js} +1 -1
  56. package/dist/main.d.ts +54 -8
  57. package/dist/main.js +176 -175
  58. package/dist/{styled-SoqbyrkW.js → styled-DD4BkuVf.js} +6 -6
  59. package/dist/{useSlot-B_Q4vnX5.js → useSlot-u4t0X96G.js} +3 -3
  60. package/package.json +1 -1
  61. package/dist/Box-DqUMmZjL.js +0 -31
  62. package/dist/Delete-BdyYpINH.js +0 -23
  63. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  64. package/dist/dialog-BYRnCztH.js +0 -154
  65. package/dist/index-e9xTIYWt.js +0 -1934
  66. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  67. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  68. package/dist/{objectWithoutPropertiesLoose-DJteAcBH.js → extends-C3382pL0.js} +9 -9
@@ -1,58 +1,63 @@
1
- import { a as t, _ as T } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as u from "react";
3
- import { P as o } from "./index-C__OZmYy.js";
4
- import { c as b } from "./clsx-OuTLNxxd.js";
5
- import { g as h, a as y, s as f, b as m, u as S, c as P } from "./generateUtilityClasses-C3ivN9Ie.js";
6
- import { P as R, u as G } from "./Paper-BkQLdsCI.js";
7
- import { jsx as p } from "react/jsx-runtime";
8
- import { B as J, M as Q, F as Z } from "./Modal-MUZygjmQ.js";
9
- import { u as oo } from "./useId-BW-oWmul.js";
10
- function eo(e) {
11
- return y("MuiDialog", e);
1
+ import { jsx as l, jsxs as B } from "react/jsx-runtime";
2
+ import { confirmable as to } from "react-confirm";
3
+ import { IconButton as ao } from "@mui/material";
4
+ import { Close as io } from "@mui/icons-material";
5
+ import { a as r, _ as h } from "./extends-C3382pL0.js";
6
+ import * as d from "react";
7
+ import { P as o } from "./index-CblbdqjE.js";
8
+ import { c as g } from "./clsx-OuTLNxxd.js";
9
+ import { g as y, a as C, s as m, b, u as D, c as v } from "./generateUtilityClasses-Cc-owZ4J.js";
10
+ import { P as _, u as no } from "./Paper-B1HV8GyO.js";
11
+ import { B as ro, M as so, F as lo } from "./Modal-BVYydOr5.js";
12
+ import { u as co } from "./useId-BW-oWmul.js";
13
+ import { T as po } from "./Typography-D3X-Y5fh.js";
14
+ import { B as E } from "./Button-Cem3nbwc.js";
15
+ function uo(e) {
16
+ return C("MuiDialog", e);
12
17
  }
13
- const W = h("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), j = /* @__PURE__ */ u.createContext({});
14
- process.env.NODE_ENV !== "production" && (j.displayName = "DialogContext");
15
- const ao = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], ro = f(J, {
18
+ const N = y("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), P = /* @__PURE__ */ d.createContext({});
19
+ process.env.NODE_ENV !== "production" && (P.displayName = "DialogContext");
20
+ const mo = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], fo = m(ro, {
16
21
  name: "MuiDialog",
17
22
  slot: "Backdrop",
18
- overrides: (e, a) => a.backdrop
23
+ overrides: (e, t) => t.backdrop
19
24
  })({
20
25
  // Improve scrollable dialog support.
21
26
  zIndex: -1
22
- }), io = (e) => {
27
+ }), go = (e) => {
23
28
  const {
24
- classes: a,
25
- scroll: r,
29
+ classes: t,
30
+ scroll: a,
26
31
  maxWidth: i,
27
- fullWidth: s,
28
- fullScreen: n
29
- } = e, l = {
32
+ fullWidth: n,
33
+ fullScreen: s
34
+ } = e, c = {
30
35
  root: ["root"],
31
- container: ["container", `scroll${m(r)}`],
32
- paper: ["paper", `paperScroll${m(r)}`, `paperWidth${m(String(i))}`, s && "paperFullWidth", n && "paperFullScreen"]
36
+ container: ["container", `scroll${b(a)}`],
37
+ paper: ["paper", `paperScroll${b(a)}`, `paperWidth${b(String(i))}`, n && "paperFullWidth", s && "paperFullScreen"]
33
38
  };
34
- return P(l, eo, a);
35
- }, to = f(Q, {
39
+ return v(c, uo, t);
40
+ }, bo = m(so, {
36
41
  name: "MuiDialog",
37
42
  slot: "Root",
38
- overridesResolver: (e, a) => a.root
43
+ overridesResolver: (e, t) => t.root
39
44
  })({
40
45
  "@media print": {
41
46
  // Use !important to override the Modal inline-style.
42
47
  position: "absolute !important"
43
48
  }
44
- }), so = f("div", {
49
+ }), xo = m("div", {
45
50
  name: "MuiDialog",
46
51
  slot: "Container",
47
- overridesResolver: (e, a) => {
52
+ overridesResolver: (e, t) => {
48
53
  const {
49
- ownerState: r
54
+ ownerState: a
50
55
  } = e;
51
- return [a.container, a[`scroll${m(r.scroll)}`]];
56
+ return [t.container, t[`scroll${b(a.scroll)}`]];
52
57
  }
53
58
  })(({
54
59
  ownerState: e
55
- }) => t({
60
+ }) => r({
56
61
  height: "100%",
57
62
  "@media print": {
58
63
  height: "auto"
@@ -74,19 +79,19 @@ const ao = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
74
79
  height: "100%",
75
80
  width: "0"
76
81
  }
77
- })), no = f(R, {
82
+ })), ho = m(_, {
78
83
  name: "MuiDialog",
79
84
  slot: "Paper",
80
- overridesResolver: (e, a) => {
85
+ overridesResolver: (e, t) => {
81
86
  const {
82
- ownerState: r
87
+ ownerState: a
83
88
  } = e;
84
- return [a.paper, a[`scrollPaper${m(r.scroll)}`], a[`paperWidth${m(String(r.maxWidth))}`], r.fullWidth && a.paperFullWidth, r.fullScreen && a.paperFullScreen];
89
+ return [t.paper, t[`scrollPaper${b(a.scroll)}`], t[`paperWidth${b(String(a.maxWidth))}`], a.fullWidth && t.paperFullWidth, a.fullScreen && t.paperFullScreen];
85
90
  }
86
91
  })(({
87
92
  theme: e,
88
- ownerState: a
89
- }) => t({
93
+ ownerState: t
94
+ }) => r({
90
95
  margin: 32,
91
96
  position: "relative",
92
97
  overflowY: "auto",
@@ -95,133 +100,133 @@ const ao = ["aria-describedby", "aria-labelledby", "BackdropComponent", "Backdro
95
100
  overflowY: "visible",
96
101
  boxShadow: "none"
97
102
  }
98
- }, a.scroll === "paper" && {
103
+ }, t.scroll === "paper" && {
99
104
  display: "flex",
100
105
  flexDirection: "column",
101
106
  maxHeight: "calc(100% - 64px)"
102
- }, a.scroll === "body" && {
107
+ }, t.scroll === "body" && {
103
108
  display: "inline-block",
104
109
  verticalAlign: "middle",
105
110
  textAlign: "left"
106
111
  // 'initial' doesn't work on IE11
107
- }, !a.maxWidth && {
112
+ }, !t.maxWidth && {
108
113
  maxWidth: "calc(100% - 64px)"
109
- }, a.maxWidth === "xs" && {
114
+ }, t.maxWidth === "xs" && {
110
115
  maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,
111
- [`&.${W.paperScrollBody}`]: {
116
+ [`&.${N.paperScrollBody}`]: {
112
117
  [e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
113
118
  maxWidth: "calc(100% - 64px)"
114
119
  }
115
120
  }
116
- }, a.maxWidth && a.maxWidth !== "xs" && {
117
- maxWidth: `${e.breakpoints.values[a.maxWidth]}${e.breakpoints.unit}`,
118
- [`&.${W.paperScrollBody}`]: {
119
- [e.breakpoints.down(e.breakpoints.values[a.maxWidth] + 32 * 2)]: {
121
+ }, t.maxWidth && t.maxWidth !== "xs" && {
122
+ maxWidth: `${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,
123
+ [`&.${N.paperScrollBody}`]: {
124
+ [e.breakpoints.down(e.breakpoints.values[t.maxWidth] + 32 * 2)]: {
120
125
  maxWidth: "calc(100% - 64px)"
121
126
  }
122
127
  }
123
- }, a.fullWidth && {
128
+ }, t.fullWidth && {
124
129
  width: "calc(100% - 64px)"
125
- }, a.fullScreen && {
130
+ }, t.fullScreen && {
126
131
  margin: 0,
127
132
  width: "100%",
128
133
  maxWidth: "100%",
129
134
  height: "100%",
130
135
  maxHeight: "none",
131
136
  borderRadius: 0,
132
- [`&.${W.paperScrollBody}`]: {
137
+ [`&.${N.paperScrollBody}`]: {
133
138
  margin: 0,
134
139
  maxWidth: "100%"
135
140
  }
136
- })), lo = /* @__PURE__ */ u.forwardRef(function(a, r) {
137
- const i = S({
138
- props: a,
141
+ })), F = /* @__PURE__ */ d.forwardRef(function(t, a) {
142
+ const i = D({
143
+ props: t,
139
144
  name: "MuiDialog"
140
- }), s = G(), n = {
141
- enter: s.transitions.duration.enteringScreen,
142
- exit: s.transitions.duration.leavingScreen
145
+ }), n = no(), s = {
146
+ enter: n.transitions.duration.enteringScreen,
147
+ exit: n.transitions.duration.leavingScreen
143
148
  }, {
144
- "aria-describedby": l,
145
- "aria-labelledby": c,
146
- BackdropComponent: g,
147
- BackdropProps: A,
148
- children: E,
149
- className: _,
150
- disableEscapeKeyDown: M = !1,
151
- fullScreen: F = !1,
152
- fullWidth: U = !1,
153
- maxWidth: I = "sm",
154
- onBackdropClick: N,
155
- onClick: w,
156
- onClose: D,
157
- open: B,
158
- PaperComponent: L = R,
159
- PaperProps: $ = {},
160
- scroll: V = "paper",
161
- TransitionComponent: K = Z,
162
- transitionDuration: O = n,
163
- TransitionProps: Y
164
- } = i, X = T(i, ao), x = t({}, i, {
165
- disableEscapeKeyDown: M,
166
- fullScreen: F,
167
- fullWidth: U,
168
- maxWidth: I,
169
- scroll: V
170
- }), C = io(x), v = u.useRef(), z = (d) => {
171
- v.current = d.target === d.currentTarget;
172
- }, H = (d) => {
173
- w && w(d), v.current && (v.current = null, N && N(d), D && D(d, "backdropClick"));
174
- }, k = oo(c), q = u.useMemo(() => ({
175
- titleId: k
176
- }), [k]);
177
- return /* @__PURE__ */ p(to, t({
178
- className: b(C.root, _),
149
+ "aria-describedby": c,
150
+ "aria-labelledby": p,
151
+ BackdropComponent: u,
152
+ BackdropProps: T,
153
+ children: K,
154
+ className: L,
155
+ disableEscapeKeyDown: w = !1,
156
+ fullScreen: Y = !1,
157
+ fullWidth: z = !1,
158
+ maxWidth: X = "sm",
159
+ onBackdropClick: O,
160
+ onClick: $,
161
+ onClose: k,
162
+ open: R,
163
+ PaperComponent: H = _,
164
+ PaperProps: j = {},
165
+ scroll: q = "paper",
166
+ TransitionComponent: G = lo,
167
+ transitionDuration: A = s,
168
+ TransitionProps: J
169
+ } = i, Q = h(i, mo), x = r({}, i, {
170
+ disableEscapeKeyDown: w,
171
+ fullScreen: Y,
172
+ fullWidth: z,
173
+ maxWidth: X,
174
+ scroll: q
175
+ }), W = go(x), S = d.useRef(), Z = (f) => {
176
+ S.current = f.target === f.currentTarget;
177
+ }, oo = (f) => {
178
+ $ && $(f), S.current && (S.current = null, O && O(f), k && k(f, "backdropClick"));
179
+ }, M = co(p), eo = d.useMemo(() => ({
180
+ titleId: M
181
+ }), [M]);
182
+ return /* @__PURE__ */ l(bo, r({
183
+ className: g(W.root, L),
179
184
  closeAfterTransition: !0,
180
185
  components: {
181
- Backdrop: ro
186
+ Backdrop: fo
182
187
  },
183
188
  componentsProps: {
184
- backdrop: t({
185
- transitionDuration: O,
186
- as: g
187
- }, A)
189
+ backdrop: r({
190
+ transitionDuration: A,
191
+ as: u
192
+ }, T)
188
193
  },
189
- disableEscapeKeyDown: M,
190
- onClose: D,
191
- open: B,
192
- ref: r,
193
- onClick: H,
194
+ disableEscapeKeyDown: w,
195
+ onClose: k,
196
+ open: R,
197
+ ref: a,
198
+ onClick: oo,
194
199
  ownerState: x
195
- }, X, {
196
- children: /* @__PURE__ */ p(K, t({
200
+ }, Q, {
201
+ children: /* @__PURE__ */ l(G, r({
197
202
  appear: !0,
198
- in: B,
199
- timeout: O,
203
+ in: R,
204
+ timeout: A,
200
205
  role: "presentation"
201
- }, Y, {
202
- children: /* @__PURE__ */ p(so, {
203
- className: b(C.container),
204
- onMouseDown: z,
206
+ }, J, {
207
+ children: /* @__PURE__ */ l(xo, {
208
+ className: g(W.container),
209
+ onMouseDown: Z,
205
210
  ownerState: x,
206
- children: /* @__PURE__ */ p(no, t({
207
- as: L,
211
+ children: /* @__PURE__ */ l(ho, r({
212
+ as: H,
208
213
  elevation: 24,
209
214
  role: "dialog",
210
- "aria-describedby": l,
211
- "aria-labelledby": k
212
- }, $, {
213
- className: b(C.paper, $.className),
215
+ "aria-describedby": c,
216
+ "aria-labelledby": M
217
+ }, j, {
218
+ className: g(W.paper, j.className),
214
219
  ownerState: x,
215
- children: /* @__PURE__ */ p(j.Provider, {
216
- value: q,
217
- children: E
220
+ children: /* @__PURE__ */ l(P.Provider, {
221
+ value: eo,
222
+ children: K
218
223
  })
219
224
  }))
220
225
  })
221
226
  }))
222
227
  }));
223
228
  });
224
- process.env.NODE_ENV !== "production" && (lo.propTypes = {
229
+ process.env.NODE_ENV !== "production" && (F.propTypes = {
225
230
  // ┌────────────────────────────── Warning ──────────────────────────────┐
226
231
  // │ These PropTypes are generated from the TypeScript type definitions. │
227
232
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -353,30 +358,30 @@ process.env.NODE_ENV !== "production" && (lo.propTypes = {
353
358
  */
354
359
  TransitionProps: o.object
355
360
  });
356
- function co(e) {
357
- return y("MuiDialogActions", e);
361
+ function yo(e) {
362
+ return C("MuiDialogActions", e);
358
363
  }
359
- h("MuiDialogActions", ["root", "spacing"]);
360
- const po = ["className", "disableSpacing"], uo = (e) => {
364
+ y("MuiDialogActions", ["root", "spacing"]);
365
+ const Co = ["className", "disableSpacing"], Do = (e) => {
361
366
  const {
362
- classes: a,
363
- disableSpacing: r
367
+ classes: t,
368
+ disableSpacing: a
364
369
  } = e;
365
- return P({
366
- root: ["root", !r && "spacing"]
367
- }, co, a);
368
- }, mo = f("div", {
370
+ return v({
371
+ root: ["root", !a && "spacing"]
372
+ }, yo, t);
373
+ }, vo = m("div", {
369
374
  name: "MuiDialogActions",
370
375
  slot: "Root",
371
- overridesResolver: (e, a) => {
376
+ overridesResolver: (e, t) => {
372
377
  const {
373
- ownerState: r
378
+ ownerState: a
374
379
  } = e;
375
- return [a.root, !r.disableSpacing && a.spacing];
380
+ return [t.root, !a.disableSpacing && t.spacing];
376
381
  }
377
382
  })(({
378
383
  ownerState: e
379
- }) => t({
384
+ }) => r({
380
385
  display: "flex",
381
386
  alignItems: "center",
382
387
  padding: 8,
@@ -386,23 +391,23 @@ const po = ["className", "disableSpacing"], uo = (e) => {
386
391
  "& > :not(style) ~ :not(style)": {
387
392
  marginLeft: 8
388
393
  }
389
- })), fo = /* @__PURE__ */ u.forwardRef(function(a, r) {
390
- const i = S({
391
- props: a,
394
+ })), U = /* @__PURE__ */ d.forwardRef(function(t, a) {
395
+ const i = D({
396
+ props: t,
392
397
  name: "MuiDialogActions"
393
398
  }), {
394
- className: s,
395
- disableSpacing: n = !1
396
- } = i, l = T(i, po), c = t({}, i, {
397
- disableSpacing: n
398
- }), g = uo(c);
399
- return /* @__PURE__ */ p(mo, t({
400
- className: b(g.root, s),
401
- ownerState: c,
402
- ref: r
403
- }, l));
399
+ className: n,
400
+ disableSpacing: s = !1
401
+ } = i, c = h(i, Co), p = r({}, i, {
402
+ disableSpacing: s
403
+ }), u = Do(p);
404
+ return /* @__PURE__ */ l(vo, r({
405
+ className: g(u.root, n),
406
+ ownerState: p,
407
+ ref: a
408
+ }, c));
404
409
  });
405
- process.env.NODE_ENV !== "production" && (fo.propTypes = {
410
+ process.env.NODE_ENV !== "production" && (U.propTypes = {
406
411
  // ┌────────────────────────────── Warning ──────────────────────────────┐
407
412
  // │ These PropTypes are generated from the TypeScript type definitions. │
408
413
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -429,64 +434,64 @@ process.env.NODE_ENV !== "production" && (fo.propTypes = {
429
434
  */
430
435
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
431
436
  });
432
- function go(e) {
433
- return y("MuiDialogContent", e);
437
+ function To(e) {
438
+ return C("MuiDialogContent", e);
434
439
  }
435
- h("MuiDialogContent", ["root", "dividers"]);
436
- function No(e) {
437
- return y("MuiDialogTitle", e);
440
+ y("MuiDialogContent", ["root", "dividers"]);
441
+ function ko(e) {
442
+ return C("MuiDialogTitle", e);
438
443
  }
439
- const bo = h("MuiDialogTitle", ["root"]), xo = ["className", "dividers"], ho = (e) => {
444
+ const Wo = y("MuiDialogTitle", ["root"]), So = ["className", "dividers"], Mo = (e) => {
440
445
  const {
441
- classes: a,
442
- dividers: r
446
+ classes: t,
447
+ dividers: a
443
448
  } = e;
444
- return P({
445
- root: ["root", r && "dividers"]
446
- }, go, a);
447
- }, yo = f("div", {
449
+ return v({
450
+ root: ["root", a && "dividers"]
451
+ }, To, t);
452
+ }, Bo = m("div", {
448
453
  name: "MuiDialogContent",
449
454
  slot: "Root",
450
- overridesResolver: (e, a) => {
455
+ overridesResolver: (e, t) => {
451
456
  const {
452
- ownerState: r
457
+ ownerState: a
453
458
  } = e;
454
- return [a.root, r.dividers && a.dividers];
459
+ return [t.root, a.dividers && t.dividers];
455
460
  }
456
461
  })(({
457
462
  theme: e,
458
- ownerState: a
459
- }) => t({
463
+ ownerState: t
464
+ }) => r({
460
465
  flex: "1 1 auto",
461
466
  // Add iOS momentum scrolling for iOS < 13.0
462
467
  WebkitOverflowScrolling: "touch",
463
468
  overflowY: "auto",
464
469
  padding: "20px 24px"
465
- }, a.dividers ? {
470
+ }, t.dividers ? {
466
471
  padding: "16px 24px",
467
472
  borderTop: `1px solid ${(e.vars || e).palette.divider}`,
468
473
  borderBottom: `1px solid ${(e.vars || e).palette.divider}`
469
474
  } : {
470
- [`.${bo.root} + &`]: {
475
+ [`.${Wo.root} + &`]: {
471
476
  paddingTop: 0
472
477
  }
473
- })), Do = /* @__PURE__ */ u.forwardRef(function(a, r) {
474
- const i = S({
475
- props: a,
478
+ })), I = /* @__PURE__ */ d.forwardRef(function(t, a) {
479
+ const i = D({
480
+ props: t,
476
481
  name: "MuiDialogContent"
477
482
  }), {
478
- className: s,
479
- dividers: n = !1
480
- } = i, l = T(i, xo), c = t({}, i, {
481
- dividers: n
482
- }), g = ho(c);
483
- return /* @__PURE__ */ p(yo, t({
484
- className: b(g.root, s),
485
- ownerState: c,
486
- ref: r
487
- }, l));
483
+ className: n,
484
+ dividers: s = !1
485
+ } = i, c = h(i, So), p = r({}, i, {
486
+ dividers: s
487
+ }), u = Mo(p);
488
+ return /* @__PURE__ */ l(Bo, r({
489
+ className: g(u.root, n),
490
+ ownerState: p,
491
+ ref: a
492
+ }, c));
488
493
  });
489
- process.env.NODE_ENV !== "production" && (Do.propTypes = {
494
+ process.env.NODE_ENV !== "production" && (I.propTypes = {
490
495
  // ┌────────────────────────────── Warning ──────────────────────────────┐
491
496
  // │ These PropTypes are generated from the TypeScript type definitions. │
492
497
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -513,11 +518,147 @@ process.env.NODE_ENV !== "production" && (Do.propTypes = {
513
518
  */
514
519
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
515
520
  });
521
+ const No = ["className", "id"], Po = (e) => {
522
+ const {
523
+ classes: t
524
+ } = e;
525
+ return v({
526
+ root: ["root"]
527
+ }, ko, t);
528
+ }, wo = m(po, {
529
+ name: "MuiDialogTitle",
530
+ slot: "Root",
531
+ overridesResolver: (e, t) => t.root
532
+ })({
533
+ padding: "16px 24px",
534
+ flex: "0 0 auto"
535
+ }), V = /* @__PURE__ */ d.forwardRef(function(t, a) {
536
+ const i = D({
537
+ props: t,
538
+ name: "MuiDialogTitle"
539
+ }), {
540
+ className: n,
541
+ id: s
542
+ } = i, c = h(i, No), p = i, u = Po(p), {
543
+ titleId: T = s
544
+ } = d.useContext(P);
545
+ return /* @__PURE__ */ l(wo, r({
546
+ component: "h2",
547
+ className: g(u.root, n),
548
+ ownerState: p,
549
+ ref: a,
550
+ variant: "h6",
551
+ id: s ?? T
552
+ }, c));
553
+ });
554
+ process.env.NODE_ENV !== "production" && (V.propTypes = {
555
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
556
+ // │ These PropTypes are generated from the TypeScript type definitions. │
557
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
558
+ // └─────────────────────────────────────────────────────────────────────┘
559
+ /**
560
+ * The content of the component.
561
+ */
562
+ children: o.node,
563
+ /**
564
+ * Override or extend the styles applied to the component.
565
+ */
566
+ classes: o.object,
567
+ /**
568
+ * @ignore
569
+ */
570
+ className: o.string,
571
+ /**
572
+ * @ignore
573
+ */
574
+ id: o.string,
575
+ /**
576
+ * The system prop that allows defining system overrides as well as additional CSS styles.
577
+ */
578
+ sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
579
+ });
580
+ const Oo = {
581
+ confirmButtonText: "OK",
582
+ cancelButtonText: "Cancel",
583
+ disableCancelButton: !1
584
+ }, $o = ({
585
+ show: e = !0,
586
+ proceed: t = () => {
587
+ },
588
+ title: a,
589
+ description: i,
590
+ options: n
591
+ }) => {
592
+ n = { ...Oo, ...n };
593
+ const s = () => {
594
+ t(!1);
595
+ }, c = () => {
596
+ t(!1);
597
+ }, p = () => {
598
+ t(!0);
599
+ };
600
+ return /* @__PURE__ */ B(
601
+ F,
602
+ {
603
+ open: e,
604
+ onClose: s,
605
+ "aria-labelledby": "dialog-title",
606
+ "aria-describedby": "dialog-description",
607
+ sx: {
608
+ zIndex: 9999,
609
+ "& .MuiDialog-paper": {
610
+ borderRadius: 3
611
+ },
612
+ "& .MuiDialogTitle-root": {
613
+ px: 4,
614
+ py: 3
615
+ },
616
+ "& .MuiDialogContent-root": {
617
+ p: 4,
618
+ pt: 0
619
+ },
620
+ "& .MuiDialogActions-root": {
621
+ p: 4,
622
+ background: "#0439910A"
623
+ }
624
+ },
625
+ children: [
626
+ /* @__PURE__ */ B(
627
+ V,
628
+ {
629
+ id: "dialog-title",
630
+ sx: {
631
+ display: "flex",
632
+ justifyContent: "space-between",
633
+ alignItems: "center"
634
+ },
635
+ children: [
636
+ a,
637
+ /* @__PURE__ */ l(ao, { onClick: c, children: /* @__PURE__ */ l(io, {}) })
638
+ ]
639
+ }
640
+ ),
641
+ /* @__PURE__ */ l(I, { sx: { minWidth: 400 }, children: i }),
642
+ /* @__PURE__ */ B(U, { children: [
643
+ !n.disableCancelButton && /* @__PURE__ */ l(E, { color: "inherit", onClick: c, children: n.cancelButtonText }),
644
+ /* @__PURE__ */ l(
645
+ E,
646
+ {
647
+ variant: "contained",
648
+ color: "primary",
649
+ onClick: p,
650
+ autoFocus: !0,
651
+ children: n.confirmButtonText
652
+ }
653
+ )
654
+ ] })
655
+ ]
656
+ }
657
+ );
658
+ }, Xo = to($o);
516
659
  export {
517
- lo as D,
518
- Do as a,
519
- j as b,
520
- fo as c,
521
- W as d,
522
- No as g
660
+ Xo as D,
661
+ F as a,
662
+ V as b,
663
+ I as c
523
664
  };