@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.
- package/dist/{AccordionSummary-CJppWeqF.js → AccordionSummary-DUtr16g6.js} +7 -7
- package/dist/{Add-CqcD1PWb.js → Add-Bk8R160M.js} +9 -9
- package/dist/{Button-C5yquWAB.js → Button-Cem3nbwc.js} +12 -12
- package/dist/{ButtonBase-BEF7oTOe.js → ButtonBase-DObmf4Q_.js} +4 -5
- package/dist/{IconButton-BoGwbvrP.js → Delete-CVJ6FeDn.js} +91 -72
- package/dist/{FormGroup-CpBsIyYR.js → FormGroup-BRj1o7-E.js} +3 -3
- package/dist/{InputLabel-Dd8RrneV.js → InputLabel-CjD30ZHz.js} +3 -3
- package/dist/{MenuItem-DwqJqzuM.js → MenuItem-BKvRGLvM.js} +6 -6
- package/dist/{Modal-MUZygjmQ.js → Modal-BVYydOr5.js} +7 -9
- package/dist/{Paper-BkQLdsCI.js → Paper-B1HV8GyO.js} +37 -37
- package/dist/{Select-DHUl_uG3.js → Select-Bfhvigsx.js} +2793 -2795
- package/dist/{SwitchBase-DTndTqI8.js → SwitchBase-BEK49kdS.js} +5 -5
- package/dist/{TextField-e2oKaUN1.js → TextField-Ca9ykixI.js} +166 -139
- package/dist/{TransitionGroupContext-BDAp2T0O.js → TransitionGroupContext-Ja2CgIob.js} +1 -1
- package/dist/{Typography-DgsSLCFC.js → Typography-D3X-Y5fh.js} +3 -3
- package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/_common/format.js +193 -41
- package/dist/components/charts/_common/utils.js +16 -11
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
- package/dist/components/collapsible-card/index.js +2 -2
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7 -7
- package/dist/components/color-picker/styled.js +1 -1
- package/dist/components/confirm/dialog.js +3 -4
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-map/index.js +1 -1
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/date-picker-with-custom-range/index.js +86 -7
- package/dist/components/date-range-picker/index.js +2 -2
- package/dist/components/duration-select/index.js +1 -1
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/heat-map/index.js +1 -1
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/metric-card/logic.js +46 -49
- package/dist/components/prr-map/index.js +1 -1
- package/dist/components/range-selector/styled.js +65 -4228
- package/dist/components/raster-grid-map/index.js +1 -1
- package/dist/components/simple-pivot-table/index.js +17 -17
- package/dist/components/simple-pivot-table/logic.js +67 -76
- package/dist/components/sortable-list/index.js +5 -5
- package/dist/components/template-form/components/property-list/index.js +11 -12
- package/dist/components/template-form/components/property-list/property-list-columns.js +4 -5
- package/dist/components/template-form/components/property-list/property-list-form.js +25 -26
- package/dist/components/template-form/components/recognition-property-list/index.js +16 -17
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +3 -4
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +21 -22
- package/dist/components/tree-select/index.js +1 -1
- package/dist/createSvgIcon-BghzB2Y9.js +93 -0
- package/dist/{createSvgIcon-Ch_cT8az.js → createSvgIcon-D7U1nd99.js} +3 -3
- package/dist/{DialogContent-BvVjD9z3.js → dialog-BtJhjyF5.js} +326 -185
- package/dist/{generateUtilityClasses-C3ivN9Ie.js → generateUtilityClasses-Cc-owZ4J.js} +9 -11
- package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
- package/dist/{index.esm-BLLrbTzY.js → index.esm-DAf19hyR.js} +1 -1
- package/dist/main.d.ts +54 -8
- package/dist/main.js +176 -175
- package/dist/{styled-SoqbyrkW.js → styled-DD4BkuVf.js} +6 -6
- package/dist/{useSlot-B_Q4vnX5.js → useSlot-u4t0X96G.js} +3 -3
- package/package.json +1 -1
- package/dist/Box-DqUMmZjL.js +0 -31
- package/dist/Delete-BdyYpINH.js +0 -23
- package/dist/createSvgIcon-DuDuASu1.js +0 -62
- package/dist/dialog-BYRnCztH.js +0 -154
- package/dist/index-e9xTIYWt.js +0 -1934
- package/dist/unsupportedProp-DuqR2hj9.js +0 -36
- package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
- package/dist/{objectWithoutPropertiesLoose-DJteAcBH.js → extends-C3382pL0.js} +9 -9
|
@@ -1,58 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
14
|
-
process.env.NODE_ENV !== "production" && (
|
|
15
|
-
const
|
|
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,
|
|
23
|
+
overrides: (e, t) => t.backdrop
|
|
19
24
|
})({
|
|
20
25
|
// Improve scrollable dialog support.
|
|
21
26
|
zIndex: -1
|
|
22
|
-
}),
|
|
27
|
+
}), go = (e) => {
|
|
23
28
|
const {
|
|
24
|
-
classes:
|
|
25
|
-
scroll:
|
|
29
|
+
classes: t,
|
|
30
|
+
scroll: a,
|
|
26
31
|
maxWidth: i,
|
|
27
|
-
fullWidth:
|
|
28
|
-
fullScreen:
|
|
29
|
-
} = e,
|
|
32
|
+
fullWidth: n,
|
|
33
|
+
fullScreen: s
|
|
34
|
+
} = e, c = {
|
|
30
35
|
root: ["root"],
|
|
31
|
-
container: ["container", `scroll${
|
|
32
|
-
paper: ["paper", `paperScroll${
|
|
36
|
+
container: ["container", `scroll${b(a)}`],
|
|
37
|
+
paper: ["paper", `paperScroll${b(a)}`, `paperWidth${b(String(i))}`, n && "paperFullWidth", s && "paperFullScreen"]
|
|
33
38
|
};
|
|
34
|
-
return
|
|
35
|
-
},
|
|
39
|
+
return v(c, uo, t);
|
|
40
|
+
}, bo = m(so, {
|
|
36
41
|
name: "MuiDialog",
|
|
37
42
|
slot: "Root",
|
|
38
|
-
overridesResolver: (e,
|
|
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
|
-
}),
|
|
49
|
+
}), xo = m("div", {
|
|
45
50
|
name: "MuiDialog",
|
|
46
51
|
slot: "Container",
|
|
47
|
-
overridesResolver: (e,
|
|
52
|
+
overridesResolver: (e, t) => {
|
|
48
53
|
const {
|
|
49
|
-
ownerState:
|
|
54
|
+
ownerState: a
|
|
50
55
|
} = e;
|
|
51
|
-
return [
|
|
56
|
+
return [t.container, t[`scroll${b(a.scroll)}`]];
|
|
52
57
|
}
|
|
53
58
|
})(({
|
|
54
59
|
ownerState: e
|
|
55
|
-
}) =>
|
|
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
|
-
})),
|
|
82
|
+
})), ho = m(_, {
|
|
78
83
|
name: "MuiDialog",
|
|
79
84
|
slot: "Paper",
|
|
80
|
-
overridesResolver: (e,
|
|
85
|
+
overridesResolver: (e, t) => {
|
|
81
86
|
const {
|
|
82
|
-
ownerState:
|
|
87
|
+
ownerState: a
|
|
83
88
|
} = e;
|
|
84
|
-
return [
|
|
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:
|
|
89
|
-
}) =>
|
|
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
|
-
},
|
|
103
|
+
}, t.scroll === "paper" && {
|
|
99
104
|
display: "flex",
|
|
100
105
|
flexDirection: "column",
|
|
101
106
|
maxHeight: "calc(100% - 64px)"
|
|
102
|
-
},
|
|
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
|
-
}, !
|
|
112
|
+
}, !t.maxWidth && {
|
|
108
113
|
maxWidth: "calc(100% - 64px)"
|
|
109
|
-
},
|
|
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
|
-
[`&.${
|
|
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
|
-
},
|
|
117
|
-
maxWidth: `${e.breakpoints.values[
|
|
118
|
-
[`&.${
|
|
119
|
-
[e.breakpoints.down(e.breakpoints.values[
|
|
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
|
-
},
|
|
128
|
+
}, t.fullWidth && {
|
|
124
129
|
width: "calc(100% - 64px)"
|
|
125
|
-
},
|
|
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
|
-
[`&.${
|
|
137
|
+
[`&.${N.paperScrollBody}`]: {
|
|
133
138
|
margin: 0,
|
|
134
139
|
maxWidth: "100%"
|
|
135
140
|
}
|
|
136
|
-
})),
|
|
137
|
-
const i =
|
|
138
|
-
props:
|
|
141
|
+
})), F = /* @__PURE__ */ d.forwardRef(function(t, a) {
|
|
142
|
+
const i = D({
|
|
143
|
+
props: t,
|
|
139
144
|
name: "MuiDialog"
|
|
140
|
-
}),
|
|
141
|
-
enter:
|
|
142
|
-
exit:
|
|
145
|
+
}), n = no(), s = {
|
|
146
|
+
enter: n.transitions.duration.enteringScreen,
|
|
147
|
+
exit: n.transitions.duration.leavingScreen
|
|
143
148
|
}, {
|
|
144
|
-
"aria-describedby":
|
|
145
|
-
"aria-labelledby":
|
|
146
|
-
BackdropComponent:
|
|
147
|
-
BackdropProps:
|
|
148
|
-
children:
|
|
149
|
-
className:
|
|
150
|
-
disableEscapeKeyDown:
|
|
151
|
-
fullScreen:
|
|
152
|
-
fullWidth:
|
|
153
|
-
maxWidth:
|
|
154
|
-
onBackdropClick:
|
|
155
|
-
onClick:
|
|
156
|
-
onClose:
|
|
157
|
-
open:
|
|
158
|
-
PaperComponent:
|
|
159
|
-
PaperProps:
|
|
160
|
-
scroll:
|
|
161
|
-
TransitionComponent:
|
|
162
|
-
transitionDuration:
|
|
163
|
-
TransitionProps:
|
|
164
|
-
} = i,
|
|
165
|
-
disableEscapeKeyDown:
|
|
166
|
-
fullScreen:
|
|
167
|
-
fullWidth:
|
|
168
|
-
maxWidth:
|
|
169
|
-
scroll:
|
|
170
|
-
}),
|
|
171
|
-
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
titleId:
|
|
176
|
-
}), [
|
|
177
|
-
return /* @__PURE__ */
|
|
178
|
-
className:
|
|
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:
|
|
186
|
+
Backdrop: fo
|
|
182
187
|
},
|
|
183
188
|
componentsProps: {
|
|
184
|
-
backdrop:
|
|
185
|
-
transitionDuration:
|
|
186
|
-
as:
|
|
187
|
-
},
|
|
189
|
+
backdrop: r({
|
|
190
|
+
transitionDuration: A,
|
|
191
|
+
as: u
|
|
192
|
+
}, T)
|
|
188
193
|
},
|
|
189
|
-
disableEscapeKeyDown:
|
|
190
|
-
onClose:
|
|
191
|
-
open:
|
|
192
|
-
ref:
|
|
193
|
-
onClick:
|
|
194
|
+
disableEscapeKeyDown: w,
|
|
195
|
+
onClose: k,
|
|
196
|
+
open: R,
|
|
197
|
+
ref: a,
|
|
198
|
+
onClick: oo,
|
|
194
199
|
ownerState: x
|
|
195
|
-
},
|
|
196
|
-
children: /* @__PURE__ */
|
|
200
|
+
}, Q, {
|
|
201
|
+
children: /* @__PURE__ */ l(G, r({
|
|
197
202
|
appear: !0,
|
|
198
|
-
in:
|
|
199
|
-
timeout:
|
|
203
|
+
in: R,
|
|
204
|
+
timeout: A,
|
|
200
205
|
role: "presentation"
|
|
201
|
-
},
|
|
202
|
-
children: /* @__PURE__ */
|
|
203
|
-
className:
|
|
204
|
-
onMouseDown:
|
|
206
|
+
}, J, {
|
|
207
|
+
children: /* @__PURE__ */ l(xo, {
|
|
208
|
+
className: g(W.container),
|
|
209
|
+
onMouseDown: Z,
|
|
205
210
|
ownerState: x,
|
|
206
|
-
children: /* @__PURE__ */
|
|
207
|
-
as:
|
|
211
|
+
children: /* @__PURE__ */ l(ho, r({
|
|
212
|
+
as: H,
|
|
208
213
|
elevation: 24,
|
|
209
214
|
role: "dialog",
|
|
210
|
-
"aria-describedby":
|
|
211
|
-
"aria-labelledby":
|
|
212
|
-
},
|
|
213
|
-
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__ */
|
|
216
|
-
value:
|
|
217
|
-
children:
|
|
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" && (
|
|
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
|
|
357
|
-
return
|
|
361
|
+
function yo(e) {
|
|
362
|
+
return C("MuiDialogActions", e);
|
|
358
363
|
}
|
|
359
|
-
|
|
360
|
-
const
|
|
364
|
+
y("MuiDialogActions", ["root", "spacing"]);
|
|
365
|
+
const Co = ["className", "disableSpacing"], Do = (e) => {
|
|
361
366
|
const {
|
|
362
|
-
classes:
|
|
363
|
-
disableSpacing:
|
|
367
|
+
classes: t,
|
|
368
|
+
disableSpacing: a
|
|
364
369
|
} = e;
|
|
365
|
-
return
|
|
366
|
-
root: ["root", !
|
|
367
|
-
},
|
|
368
|
-
},
|
|
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,
|
|
376
|
+
overridesResolver: (e, t) => {
|
|
372
377
|
const {
|
|
373
|
-
ownerState:
|
|
378
|
+
ownerState: a
|
|
374
379
|
} = e;
|
|
375
|
-
return [
|
|
380
|
+
return [t.root, !a.disableSpacing && t.spacing];
|
|
376
381
|
}
|
|
377
382
|
})(({
|
|
378
383
|
ownerState: e
|
|
379
|
-
}) =>
|
|
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
|
-
})),
|
|
390
|
-
const i =
|
|
391
|
-
props:
|
|
394
|
+
})), U = /* @__PURE__ */ d.forwardRef(function(t, a) {
|
|
395
|
+
const i = D({
|
|
396
|
+
props: t,
|
|
392
397
|
name: "MuiDialogActions"
|
|
393
398
|
}), {
|
|
394
|
-
className:
|
|
395
|
-
disableSpacing:
|
|
396
|
-
} = i,
|
|
397
|
-
disableSpacing:
|
|
398
|
-
}),
|
|
399
|
-
return /* @__PURE__ */
|
|
400
|
-
className:
|
|
401
|
-
ownerState:
|
|
402
|
-
ref:
|
|
403
|
-
},
|
|
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" && (
|
|
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
|
|
433
|
-
return
|
|
437
|
+
function To(e) {
|
|
438
|
+
return C("MuiDialogContent", e);
|
|
434
439
|
}
|
|
435
|
-
|
|
436
|
-
function
|
|
437
|
-
return
|
|
440
|
+
y("MuiDialogContent", ["root", "dividers"]);
|
|
441
|
+
function ko(e) {
|
|
442
|
+
return C("MuiDialogTitle", e);
|
|
438
443
|
}
|
|
439
|
-
const
|
|
444
|
+
const Wo = y("MuiDialogTitle", ["root"]), So = ["className", "dividers"], Mo = (e) => {
|
|
440
445
|
const {
|
|
441
|
-
classes:
|
|
442
|
-
dividers:
|
|
446
|
+
classes: t,
|
|
447
|
+
dividers: a
|
|
443
448
|
} = e;
|
|
444
|
-
return
|
|
445
|
-
root: ["root",
|
|
446
|
-
},
|
|
447
|
-
},
|
|
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,
|
|
455
|
+
overridesResolver: (e, t) => {
|
|
451
456
|
const {
|
|
452
|
-
ownerState:
|
|
457
|
+
ownerState: a
|
|
453
458
|
} = e;
|
|
454
|
-
return [
|
|
459
|
+
return [t.root, a.dividers && t.dividers];
|
|
455
460
|
}
|
|
456
461
|
})(({
|
|
457
462
|
theme: e,
|
|
458
|
-
ownerState:
|
|
459
|
-
}) =>
|
|
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
|
-
},
|
|
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
|
-
[`.${
|
|
475
|
+
[`.${Wo.root} + &`]: {
|
|
471
476
|
paddingTop: 0
|
|
472
477
|
}
|
|
473
|
-
})),
|
|
474
|
-
const i =
|
|
475
|
-
props:
|
|
478
|
+
})), I = /* @__PURE__ */ d.forwardRef(function(t, a) {
|
|
479
|
+
const i = D({
|
|
480
|
+
props: t,
|
|
476
481
|
name: "MuiDialogContent"
|
|
477
482
|
}), {
|
|
478
|
-
className:
|
|
479
|
-
dividers:
|
|
480
|
-
} = i,
|
|
481
|
-
dividers:
|
|
482
|
-
}),
|
|
483
|
-
return /* @__PURE__ */
|
|
484
|
-
className:
|
|
485
|
-
ownerState:
|
|
486
|
-
ref:
|
|
487
|
-
},
|
|
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" && (
|
|
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
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
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
|
};
|