@hybridcore/ui 1.3.7 → 1.4.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.
- package/dist/AccordionDetails-CGs6GZQK.js +454 -0
- package/dist/Add-eepk2WTM.js +379 -0
- package/dist/Box-BPyg-Ybm.js +70 -0
- package/dist/Button-DLwB_sKd.js +354 -0
- package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
- package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
- package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
- package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
- package/dist/Delete-OHEw9lDi.js +22 -0
- package/dist/DialogContent-CxOSq6h9.js +519 -0
- package/dist/FormControlLabel-D9KFjcIx.js +193 -0
- package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
- package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
- package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
- package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
- package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
- package/dist/ListItem-CZbZ91vp.js +428 -0
- package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
- package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
- package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
- package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
- package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
- package/dist/Tabs-BzelDJKy.js +787 -0
- package/dist/TextField-D87qTh1k.js +457 -0
- package/dist/Typography-Bm7PFqUT.js +176 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +20 -466
- package/dist/components/confirm/dialog.js +8 -149
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +191 -604
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/data-security-selectors/security-level/index.js +42 -40
- package/dist/components/date-time-picker/index.js +18 -19
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +16 -16
- package/dist/components/geometry-picker/geometry/index.js +35 -35
- package/dist/components/geometry-picker/index.js +3 -3
- package/dist/components/geometry-picker/kml/index.js +14 -14
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +38 -37
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
- package/dist/components/geometry-picker/parser/logic.js +33 -32
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button/styled.js +0 -2
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
- package/dist/components/instance-form/components/variable/index.js +19 -0
- package/dist/components/instance-form/components/variables/index.js +40 -0
- package/dist/components/{data-management/instance-form → instance-form}/index.js +106 -100
- package/dist/components/instance-hierarchy-table/index.js +58 -0
- package/dist/components/instance-hierarchy-table/styled.js +29 -0
- package/dist/components/instance-table/index.js +125 -0
- package/dist/components/instance-table/styled.js +13 -0
- package/dist/components/map/helpers/ol.js +1 -1
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/property-mapping/index.js +558 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
- package/dist/components/range-selector/components/date-range/index.js +9 -0
- package/dist/components/range-selector/components/geometry-range/index.js +26 -0
- package/dist/components/range-selector/components/number-range/index.js +86 -0
- package/dist/components/range-selector/components/string-range/index.js +31 -0
- package/dist/components/range-selector/index.js +59 -0
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/tabs/appleTabs.style.js +55 -0
- package/dist/components/tabs/index.js +93 -0
- package/dist/components/tabs/tab-panel.js +18 -0
- package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
- package/dist/components/template-form/components/property-list/index.js +72 -0
- package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
- package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
- package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
- package/dist/components/template-form/components/property-list/types.js +8 -0
- package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
- package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
- package/dist/components/template-form/components/select-icon/index.js +186 -0
- package/dist/components/template-form/components/select-icon/styled.js +76 -0
- package/dist/components/template-form/index.js +338 -0
- package/dist/components/template-property-filters/property.js +48 -46
- package/dist/components/tree-select/index.js +16 -15
- package/dist/components/tree-select/styled.js +2 -2
- package/dist/components/treeview-filter/index.js +8 -8
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +18 -17
- package/dist/constants/index.js +41 -0
- package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
- package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
- package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
- package/dist/dialog-v5-nL5yy.js +153 -0
- package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
- package/dist/extendSxProp-qqdkfHzS.js +30 -0
- package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
- package/dist/index-C1fczHEW.js +11042 -0
- package/dist/{index-CJVcedWy.js → index-DPf5olog.js} +29 -27
- package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
- package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
- package/dist/main.d.ts +561 -78
- package/dist/main.js +157 -157
- package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
- package/dist/property-list-form-BfP9gzSo.js +391 -0
- package/dist/requirePropFactory-BjhhI-AW.js +18 -0
- package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
- package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
- package/dist/utils/ontology.js +52 -30
- package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
- package/package.json +2 -1
- package/dist/DialogContent-BCYm_d1s.js +0 -864
- package/dist/FormControlLabel-DENNVXWL.js +0 -639
- package/dist/Typography-Dg-ROiTA.js +0 -201
- package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
- package/dist/components/data-management/instance-form/components/variables/index.js +0 -41
- package/dist/createSvgIcon-B2WT0K4k.js +0 -87
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +0 -0
- package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
- package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import { _ as i, a as T } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { a as u, P as o } from "./createStyled-BzvgQjjR.js";
|
|
4
|
+
import { g as h, u as S, c as b, a as P } from "./useThemeProps-uYx_RkOH.js";
|
|
5
|
+
import { g as y, s as m } from "./styled-LNCprp4n.js";
|
|
6
|
+
import { u as q } from "./useTheme-DBiahn6p.js";
|
|
7
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
8
|
+
import { B as G, M as J, F as Q } from "./Modal-KrI5qFIq.js";
|
|
9
|
+
import { P as O } from "./Paper-btu3j72o.js";
|
|
10
|
+
import { u as Z } from "./useId-BHG98T5I.js";
|
|
11
|
+
function oo(e) {
|
|
12
|
+
return y("MuiDialog", e);
|
|
13
|
+
}
|
|
14
|
+
const W = h("MuiDialog", ["root", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), R = /* @__PURE__ */ d.createContext({});
|
|
15
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "DialogContext");
|
|
16
|
+
const eo = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"], ao = m(G, {
|
|
17
|
+
name: "MuiDialog",
|
|
18
|
+
slot: "Backdrop",
|
|
19
|
+
overrides: (e, a) => a.backdrop
|
|
20
|
+
})({
|
|
21
|
+
// Improve scrollable dialog support.
|
|
22
|
+
zIndex: -1
|
|
23
|
+
}), ro = (e) => {
|
|
24
|
+
const {
|
|
25
|
+
classes: a,
|
|
26
|
+
scroll: r,
|
|
27
|
+
maxWidth: t,
|
|
28
|
+
fullWidth: s,
|
|
29
|
+
fullScreen: n
|
|
30
|
+
} = e, l = {
|
|
31
|
+
root: ["root"],
|
|
32
|
+
container: ["container", `scroll${u(r)}`],
|
|
33
|
+
paper: ["paper", `paperScroll${u(r)}`, `paperWidth${u(String(t))}`, s && "paperFullWidth", n && "paperFullScreen"]
|
|
34
|
+
};
|
|
35
|
+
return P(l, oo, a);
|
|
36
|
+
}, to = m(J, {
|
|
37
|
+
name: "MuiDialog",
|
|
38
|
+
slot: "Root",
|
|
39
|
+
overridesResolver: (e, a) => a.root
|
|
40
|
+
})({
|
|
41
|
+
"@media print": {
|
|
42
|
+
// Use !important to override the Modal inline-style.
|
|
43
|
+
position: "absolute !important"
|
|
44
|
+
}
|
|
45
|
+
}), io = m("div", {
|
|
46
|
+
name: "MuiDialog",
|
|
47
|
+
slot: "Container",
|
|
48
|
+
overridesResolver: (e, a) => {
|
|
49
|
+
const {
|
|
50
|
+
ownerState: r
|
|
51
|
+
} = e;
|
|
52
|
+
return [a.container, a[`scroll${u(r.scroll)}`]];
|
|
53
|
+
}
|
|
54
|
+
})(({
|
|
55
|
+
ownerState: e
|
|
56
|
+
}) => i({
|
|
57
|
+
height: "100%",
|
|
58
|
+
"@media print": {
|
|
59
|
+
height: "auto"
|
|
60
|
+
},
|
|
61
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
62
|
+
outline: 0
|
|
63
|
+
}, e.scroll === "paper" && {
|
|
64
|
+
display: "flex",
|
|
65
|
+
justifyContent: "center",
|
|
66
|
+
alignItems: "center"
|
|
67
|
+
}, e.scroll === "body" && {
|
|
68
|
+
overflowY: "auto",
|
|
69
|
+
overflowX: "hidden",
|
|
70
|
+
textAlign: "center",
|
|
71
|
+
"&:after": {
|
|
72
|
+
content: '""',
|
|
73
|
+
display: "inline-block",
|
|
74
|
+
verticalAlign: "middle",
|
|
75
|
+
height: "100%",
|
|
76
|
+
width: "0"
|
|
77
|
+
}
|
|
78
|
+
})), so = m(O, {
|
|
79
|
+
name: "MuiDialog",
|
|
80
|
+
slot: "Paper",
|
|
81
|
+
overridesResolver: (e, a) => {
|
|
82
|
+
const {
|
|
83
|
+
ownerState: r
|
|
84
|
+
} = e;
|
|
85
|
+
return [a.paper, a[`scrollPaper${u(r.scroll)}`], a[`paperWidth${u(String(r.maxWidth))}`], r.fullWidth && a.paperFullWidth, r.fullScreen && a.paperFullScreen];
|
|
86
|
+
}
|
|
87
|
+
})(({
|
|
88
|
+
theme: e,
|
|
89
|
+
ownerState: a
|
|
90
|
+
}) => i({
|
|
91
|
+
margin: 32,
|
|
92
|
+
position: "relative",
|
|
93
|
+
overflowY: "auto",
|
|
94
|
+
// Fix IE11 issue, to remove at some point.
|
|
95
|
+
"@media print": {
|
|
96
|
+
overflowY: "visible",
|
|
97
|
+
boxShadow: "none"
|
|
98
|
+
}
|
|
99
|
+
}, a.scroll === "paper" && {
|
|
100
|
+
display: "flex",
|
|
101
|
+
flexDirection: "column",
|
|
102
|
+
maxHeight: "calc(100% - 64px)"
|
|
103
|
+
}, a.scroll === "body" && {
|
|
104
|
+
display: "inline-block",
|
|
105
|
+
verticalAlign: "middle",
|
|
106
|
+
textAlign: "left"
|
|
107
|
+
// 'initial' doesn't work on IE11
|
|
108
|
+
}, !a.maxWidth && {
|
|
109
|
+
maxWidth: "calc(100% - 64px)"
|
|
110
|
+
}, a.maxWidth === "xs" && {
|
|
111
|
+
maxWidth: e.breakpoints.unit === "px" ? Math.max(e.breakpoints.values.xs, 444) : `${e.breakpoints.values.xs}${e.breakpoints.unit}`,
|
|
112
|
+
[`&.${W.paperScrollBody}`]: {
|
|
113
|
+
[e.breakpoints.down(Math.max(e.breakpoints.values.xs, 444) + 32 * 2)]: {
|
|
114
|
+
maxWidth: "calc(100% - 64px)"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}, a.maxWidth && a.maxWidth !== "xs" && {
|
|
118
|
+
maxWidth: `${e.breakpoints.values[a.maxWidth]}${e.breakpoints.unit}`,
|
|
119
|
+
[`&.${W.paperScrollBody}`]: {
|
|
120
|
+
[e.breakpoints.down(e.breakpoints.values[a.maxWidth] + 32 * 2)]: {
|
|
121
|
+
maxWidth: "calc(100% - 64px)"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}, a.fullWidth && {
|
|
125
|
+
width: "calc(100% - 64px)"
|
|
126
|
+
}, a.fullScreen && {
|
|
127
|
+
margin: 0,
|
|
128
|
+
width: "100%",
|
|
129
|
+
maxWidth: "100%",
|
|
130
|
+
height: "100%",
|
|
131
|
+
maxHeight: "none",
|
|
132
|
+
borderRadius: 0,
|
|
133
|
+
[`&.${W.paperScrollBody}`]: {
|
|
134
|
+
margin: 0,
|
|
135
|
+
maxWidth: "100%"
|
|
136
|
+
}
|
|
137
|
+
})), no = /* @__PURE__ */ d.forwardRef(function(a, r) {
|
|
138
|
+
const t = S({
|
|
139
|
+
props: a,
|
|
140
|
+
name: "MuiDialog"
|
|
141
|
+
}), s = q(), n = {
|
|
142
|
+
enter: s.transitions.duration.enteringScreen,
|
|
143
|
+
exit: s.transitions.duration.leavingScreen
|
|
144
|
+
}, {
|
|
145
|
+
"aria-describedby": l,
|
|
146
|
+
"aria-labelledby": c,
|
|
147
|
+
BackdropComponent: f,
|
|
148
|
+
BackdropProps: j,
|
|
149
|
+
children: A,
|
|
150
|
+
className: E,
|
|
151
|
+
disableEscapeKeyDown: M = !1,
|
|
152
|
+
fullScreen: _ = !1,
|
|
153
|
+
fullWidth: F = !1,
|
|
154
|
+
maxWidth: U = "sm",
|
|
155
|
+
onBackdropClick: N,
|
|
156
|
+
onClose: D,
|
|
157
|
+
open: w,
|
|
158
|
+
PaperComponent: I = O,
|
|
159
|
+
PaperProps: B = {},
|
|
160
|
+
scroll: L = "paper",
|
|
161
|
+
TransitionComponent: V = Q,
|
|
162
|
+
transitionDuration: $ = n,
|
|
163
|
+
TransitionProps: K
|
|
164
|
+
} = t, Y = T(t, eo), x = i({}, t, {
|
|
165
|
+
disableEscapeKeyDown: M,
|
|
166
|
+
fullScreen: _,
|
|
167
|
+
fullWidth: F,
|
|
168
|
+
maxWidth: U,
|
|
169
|
+
scroll: L
|
|
170
|
+
}), v = ro(x), C = d.useRef(), X = (g) => {
|
|
171
|
+
C.current = g.target === g.currentTarget;
|
|
172
|
+
}, z = (g) => {
|
|
173
|
+
C.current && (C.current = null, N && N(g), D && D(g, "backdropClick"));
|
|
174
|
+
}, k = Z(c), H = d.useMemo(() => ({
|
|
175
|
+
titleId: k
|
|
176
|
+
}), [k]);
|
|
177
|
+
return /* @__PURE__ */ p(to, i({
|
|
178
|
+
className: b(v.root, E),
|
|
179
|
+
closeAfterTransition: !0,
|
|
180
|
+
components: {
|
|
181
|
+
Backdrop: ao
|
|
182
|
+
},
|
|
183
|
+
componentsProps: {
|
|
184
|
+
backdrop: i({
|
|
185
|
+
transitionDuration: $,
|
|
186
|
+
as: f
|
|
187
|
+
}, j)
|
|
188
|
+
},
|
|
189
|
+
disableEscapeKeyDown: M,
|
|
190
|
+
onClose: D,
|
|
191
|
+
open: w,
|
|
192
|
+
ref: r,
|
|
193
|
+
onClick: z,
|
|
194
|
+
ownerState: x
|
|
195
|
+
}, Y, {
|
|
196
|
+
children: /* @__PURE__ */ p(V, i({
|
|
197
|
+
appear: !0,
|
|
198
|
+
in: w,
|
|
199
|
+
timeout: $,
|
|
200
|
+
role: "presentation"
|
|
201
|
+
}, K, {
|
|
202
|
+
children: /* @__PURE__ */ p(io, {
|
|
203
|
+
className: b(v.container),
|
|
204
|
+
onMouseDown: X,
|
|
205
|
+
ownerState: x,
|
|
206
|
+
children: /* @__PURE__ */ p(so, i({
|
|
207
|
+
as: I,
|
|
208
|
+
elevation: 24,
|
|
209
|
+
role: "dialog",
|
|
210
|
+
"aria-describedby": l,
|
|
211
|
+
"aria-labelledby": k
|
|
212
|
+
}, B, {
|
|
213
|
+
className: b(v.paper, B.className),
|
|
214
|
+
ownerState: x,
|
|
215
|
+
children: /* @__PURE__ */ p(R.Provider, {
|
|
216
|
+
value: H,
|
|
217
|
+
children: A
|
|
218
|
+
})
|
|
219
|
+
}))
|
|
220
|
+
})
|
|
221
|
+
}))
|
|
222
|
+
}));
|
|
223
|
+
});
|
|
224
|
+
process.env.NODE_ENV !== "production" && (no.propTypes = {
|
|
225
|
+
// ----------------------------- Warning --------------------------------
|
|
226
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
227
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
228
|
+
// ----------------------------------------------------------------------
|
|
229
|
+
/**
|
|
230
|
+
* The id(s) of the element(s) that describe the dialog.
|
|
231
|
+
*/
|
|
232
|
+
"aria-describedby": o.string,
|
|
233
|
+
/**
|
|
234
|
+
* The id(s) of the element(s) that label the dialog.
|
|
235
|
+
*/
|
|
236
|
+
"aria-labelledby": o.string,
|
|
237
|
+
/**
|
|
238
|
+
* A backdrop component. This prop enables custom backdrop rendering.
|
|
239
|
+
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
240
|
+
* Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
|
|
241
|
+
* @default styled(Backdrop, {
|
|
242
|
+
* name: 'MuiModal',
|
|
243
|
+
* slot: 'Backdrop',
|
|
244
|
+
* overridesResolver: (props, styles) => {
|
|
245
|
+
* return styles.backdrop;
|
|
246
|
+
* },
|
|
247
|
+
* })({
|
|
248
|
+
* zIndex: -1,
|
|
249
|
+
* })
|
|
250
|
+
*/
|
|
251
|
+
BackdropComponent: o.elementType,
|
|
252
|
+
/**
|
|
253
|
+
* @ignore
|
|
254
|
+
*/
|
|
255
|
+
BackdropProps: o.object,
|
|
256
|
+
/**
|
|
257
|
+
* Dialog children, usually the included sub-components.
|
|
258
|
+
*/
|
|
259
|
+
children: o.node,
|
|
260
|
+
/**
|
|
261
|
+
* Override or extend the styles applied to the component.
|
|
262
|
+
*/
|
|
263
|
+
classes: o.object,
|
|
264
|
+
/**
|
|
265
|
+
* @ignore
|
|
266
|
+
*/
|
|
267
|
+
className: o.string,
|
|
268
|
+
/**
|
|
269
|
+
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
270
|
+
* @default false
|
|
271
|
+
*/
|
|
272
|
+
disableEscapeKeyDown: o.bool,
|
|
273
|
+
/**
|
|
274
|
+
* If `true`, the dialog is full-screen.
|
|
275
|
+
* @default false
|
|
276
|
+
*/
|
|
277
|
+
fullScreen: o.bool,
|
|
278
|
+
/**
|
|
279
|
+
* If `true`, the dialog stretches to `maxWidth`.
|
|
280
|
+
*
|
|
281
|
+
* Notice that the dialog width grow is limited by the default margin.
|
|
282
|
+
* @default false
|
|
283
|
+
*/
|
|
284
|
+
fullWidth: o.bool,
|
|
285
|
+
/**
|
|
286
|
+
* Determine the max-width of the dialog.
|
|
287
|
+
* The dialog width grows with the size of the screen.
|
|
288
|
+
* Set to `false` to disable `maxWidth`.
|
|
289
|
+
* @default 'sm'
|
|
290
|
+
*/
|
|
291
|
+
maxWidth: o.oneOfType([o.oneOf(["xs", "sm", "md", "lg", "xl", !1]), o.string]),
|
|
292
|
+
/**
|
|
293
|
+
* Callback fired when the backdrop is clicked.
|
|
294
|
+
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
295
|
+
*/
|
|
296
|
+
onBackdropClick: o.func,
|
|
297
|
+
/**
|
|
298
|
+
* Callback fired when the component requests to be closed.
|
|
299
|
+
*
|
|
300
|
+
* @param {object} event The event source of the callback.
|
|
301
|
+
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
302
|
+
*/
|
|
303
|
+
onClose: o.func,
|
|
304
|
+
/**
|
|
305
|
+
* If `true`, the component is shown.
|
|
306
|
+
*/
|
|
307
|
+
open: o.bool.isRequired,
|
|
308
|
+
/**
|
|
309
|
+
* The component used to render the body of the dialog.
|
|
310
|
+
* @default Paper
|
|
311
|
+
*/
|
|
312
|
+
PaperComponent: o.elementType,
|
|
313
|
+
/**
|
|
314
|
+
* Props applied to the [`Paper`](/material-ui/api/paper/) element.
|
|
315
|
+
* @default {}
|
|
316
|
+
*/
|
|
317
|
+
PaperProps: o.object,
|
|
318
|
+
/**
|
|
319
|
+
* Determine the container for scrolling the dialog.
|
|
320
|
+
* @default 'paper'
|
|
321
|
+
*/
|
|
322
|
+
scroll: o.oneOf(["body", "paper"]),
|
|
323
|
+
/**
|
|
324
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
325
|
+
*/
|
|
326
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
327
|
+
/**
|
|
328
|
+
* The component used for the transition.
|
|
329
|
+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
330
|
+
* @default Fade
|
|
331
|
+
*/
|
|
332
|
+
TransitionComponent: o.elementType,
|
|
333
|
+
/**
|
|
334
|
+
* The duration for the transition, in milliseconds.
|
|
335
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
336
|
+
* @default {
|
|
337
|
+
* enter: theme.transitions.duration.enteringScreen,
|
|
338
|
+
* exit: theme.transitions.duration.leavingScreen,
|
|
339
|
+
* }
|
|
340
|
+
*/
|
|
341
|
+
transitionDuration: o.oneOfType([o.number, o.shape({
|
|
342
|
+
appear: o.number,
|
|
343
|
+
enter: o.number,
|
|
344
|
+
exit: o.number
|
|
345
|
+
})]),
|
|
346
|
+
/**
|
|
347
|
+
* Props applied to the transition element.
|
|
348
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
349
|
+
*/
|
|
350
|
+
TransitionProps: o.object
|
|
351
|
+
});
|
|
352
|
+
function lo(e) {
|
|
353
|
+
return y("MuiDialogActions", e);
|
|
354
|
+
}
|
|
355
|
+
h("MuiDialogActions", ["root", "spacing"]);
|
|
356
|
+
const co = ["className", "disableSpacing"], po = (e) => {
|
|
357
|
+
const {
|
|
358
|
+
classes: a,
|
|
359
|
+
disableSpacing: r
|
|
360
|
+
} = e;
|
|
361
|
+
return P({
|
|
362
|
+
root: ["root", !r && "spacing"]
|
|
363
|
+
}, lo, a);
|
|
364
|
+
}, uo = m("div", {
|
|
365
|
+
name: "MuiDialogActions",
|
|
366
|
+
slot: "Root",
|
|
367
|
+
overridesResolver: (e, a) => {
|
|
368
|
+
const {
|
|
369
|
+
ownerState: r
|
|
370
|
+
} = e;
|
|
371
|
+
return [a.root, !r.disableSpacing && a.spacing];
|
|
372
|
+
}
|
|
373
|
+
})(({
|
|
374
|
+
ownerState: e
|
|
375
|
+
}) => i({
|
|
376
|
+
display: "flex",
|
|
377
|
+
alignItems: "center",
|
|
378
|
+
padding: 8,
|
|
379
|
+
justifyContent: "flex-end",
|
|
380
|
+
flex: "0 0 auto"
|
|
381
|
+
}, !e.disableSpacing && {
|
|
382
|
+
"& > :not(:first-of-type)": {
|
|
383
|
+
marginLeft: 8
|
|
384
|
+
}
|
|
385
|
+
})), mo = /* @__PURE__ */ d.forwardRef(function(a, r) {
|
|
386
|
+
const t = S({
|
|
387
|
+
props: a,
|
|
388
|
+
name: "MuiDialogActions"
|
|
389
|
+
}), {
|
|
390
|
+
className: s,
|
|
391
|
+
disableSpacing: n = !1
|
|
392
|
+
} = t, l = T(t, co), c = i({}, t, {
|
|
393
|
+
disableSpacing: n
|
|
394
|
+
}), f = po(c);
|
|
395
|
+
return /* @__PURE__ */ p(uo, i({
|
|
396
|
+
className: b(f.root, s),
|
|
397
|
+
ownerState: c,
|
|
398
|
+
ref: r
|
|
399
|
+
}, l));
|
|
400
|
+
});
|
|
401
|
+
process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
402
|
+
// ----------------------------- Warning --------------------------------
|
|
403
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
404
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
405
|
+
// ----------------------------------------------------------------------
|
|
406
|
+
/**
|
|
407
|
+
* The content of the component.
|
|
408
|
+
*/
|
|
409
|
+
children: o.node,
|
|
410
|
+
/**
|
|
411
|
+
* Override or extend the styles applied to the component.
|
|
412
|
+
*/
|
|
413
|
+
classes: o.object,
|
|
414
|
+
/**
|
|
415
|
+
* @ignore
|
|
416
|
+
*/
|
|
417
|
+
className: o.string,
|
|
418
|
+
/**
|
|
419
|
+
* If `true`, the actions do not have additional margin.
|
|
420
|
+
* @default false
|
|
421
|
+
*/
|
|
422
|
+
disableSpacing: o.bool,
|
|
423
|
+
/**
|
|
424
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
425
|
+
*/
|
|
426
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
427
|
+
});
|
|
428
|
+
function fo(e) {
|
|
429
|
+
return y("MuiDialogContent", e);
|
|
430
|
+
}
|
|
431
|
+
h("MuiDialogContent", ["root", "dividers"]);
|
|
432
|
+
function No(e) {
|
|
433
|
+
return y("MuiDialogTitle", e);
|
|
434
|
+
}
|
|
435
|
+
const go = h("MuiDialogTitle", ["root"]), bo = ["className", "dividers"], xo = (e) => {
|
|
436
|
+
const {
|
|
437
|
+
classes: a,
|
|
438
|
+
dividers: r
|
|
439
|
+
} = e;
|
|
440
|
+
return P({
|
|
441
|
+
root: ["root", r && "dividers"]
|
|
442
|
+
}, fo, a);
|
|
443
|
+
}, ho = m("div", {
|
|
444
|
+
name: "MuiDialogContent",
|
|
445
|
+
slot: "Root",
|
|
446
|
+
overridesResolver: (e, a) => {
|
|
447
|
+
const {
|
|
448
|
+
ownerState: r
|
|
449
|
+
} = e;
|
|
450
|
+
return [a.root, r.dividers && a.dividers];
|
|
451
|
+
}
|
|
452
|
+
})(({
|
|
453
|
+
theme: e,
|
|
454
|
+
ownerState: a
|
|
455
|
+
}) => i({
|
|
456
|
+
flex: "1 1 auto",
|
|
457
|
+
// Add iOS momentum scrolling for iOS < 13.0
|
|
458
|
+
WebkitOverflowScrolling: "touch",
|
|
459
|
+
overflowY: "auto",
|
|
460
|
+
padding: "20px 24px"
|
|
461
|
+
}, a.dividers ? {
|
|
462
|
+
padding: "16px 24px",
|
|
463
|
+
borderTop: `1px solid ${(e.vars || e).palette.divider}`,
|
|
464
|
+
borderBottom: `1px solid ${(e.vars || e).palette.divider}`
|
|
465
|
+
} : {
|
|
466
|
+
[`.${go.root} + &`]: {
|
|
467
|
+
paddingTop: 0
|
|
468
|
+
}
|
|
469
|
+
})), yo = /* @__PURE__ */ d.forwardRef(function(a, r) {
|
|
470
|
+
const t = S({
|
|
471
|
+
props: a,
|
|
472
|
+
name: "MuiDialogContent"
|
|
473
|
+
}), {
|
|
474
|
+
className: s,
|
|
475
|
+
dividers: n = !1
|
|
476
|
+
} = t, l = T(t, bo), c = i({}, t, {
|
|
477
|
+
dividers: n
|
|
478
|
+
}), f = xo(c);
|
|
479
|
+
return /* @__PURE__ */ p(ho, i({
|
|
480
|
+
className: b(f.root, s),
|
|
481
|
+
ownerState: c,
|
|
482
|
+
ref: r
|
|
483
|
+
}, l));
|
|
484
|
+
});
|
|
485
|
+
process.env.NODE_ENV !== "production" && (yo.propTypes = {
|
|
486
|
+
// ----------------------------- Warning --------------------------------
|
|
487
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
488
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
489
|
+
// ----------------------------------------------------------------------
|
|
490
|
+
/**
|
|
491
|
+
* The content of the component.
|
|
492
|
+
*/
|
|
493
|
+
children: o.node,
|
|
494
|
+
/**
|
|
495
|
+
* Override or extend the styles applied to the component.
|
|
496
|
+
*/
|
|
497
|
+
classes: o.object,
|
|
498
|
+
/**
|
|
499
|
+
* @ignore
|
|
500
|
+
*/
|
|
501
|
+
className: o.string,
|
|
502
|
+
/**
|
|
503
|
+
* Display the top and bottom dividers.
|
|
504
|
+
* @default false
|
|
505
|
+
*/
|
|
506
|
+
dividers: o.bool,
|
|
507
|
+
/**
|
|
508
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
509
|
+
*/
|
|
510
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
511
|
+
});
|
|
512
|
+
export {
|
|
513
|
+
no as D,
|
|
514
|
+
yo as a,
|
|
515
|
+
mo as b,
|
|
516
|
+
R as c,
|
|
517
|
+
W as d,
|
|
518
|
+
No as g
|
|
519
|
+
};
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { _ as m, a as _ } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
|
|
2
|
+
import * as P from "react";
|
|
3
|
+
import { a as L, P as e } from "./createStyled-BzvgQjjR.js";
|
|
4
|
+
import { g as O, u as D, c as h, a as E } from "./useThemeProps-uYx_RkOH.js";
|
|
5
|
+
import { g as M, s as S } from "./styled-LNCprp4n.js";
|
|
6
|
+
import { f as U } from "./InputLabel-CWkW8NtU.js";
|
|
7
|
+
import { jsx as w, jsxs as W } from "react/jsx-runtime";
|
|
8
|
+
import { u as k } from "./useFormControl-CatNKXAi.js";
|
|
9
|
+
import { T as C } from "./Typography-Bm7PFqUT.js";
|
|
10
|
+
import { r as q } from "./ButtonBase-D0qccOVb.js";
|
|
11
|
+
function z(l) {
|
|
12
|
+
return M("MuiFormControlLabel", l);
|
|
13
|
+
}
|
|
14
|
+
const c = O("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlacementTop", "labelPlacementBottom", "disabled", "label", "error"]), A = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "slotProps", "value"], B = (l) => {
|
|
15
|
+
const {
|
|
16
|
+
classes: o,
|
|
17
|
+
disabled: r,
|
|
18
|
+
labelPlacement: n,
|
|
19
|
+
error: t
|
|
20
|
+
} = l, b = {
|
|
21
|
+
root: ["root", r && "disabled", `labelPlacement${L(n)}`, t && "error"],
|
|
22
|
+
label: ["label", r && "disabled"]
|
|
23
|
+
};
|
|
24
|
+
return E(b, z, o);
|
|
25
|
+
}, H = S("label", {
|
|
26
|
+
name: "MuiFormControlLabel",
|
|
27
|
+
slot: "Root",
|
|
28
|
+
overridesResolver: (l, o) => {
|
|
29
|
+
const {
|
|
30
|
+
ownerState: r
|
|
31
|
+
} = l;
|
|
32
|
+
return [{
|
|
33
|
+
[`& .${c.label}`]: o.label
|
|
34
|
+
}, o.root, o[`labelPlacement${L(r.labelPlacement)}`]];
|
|
35
|
+
}
|
|
36
|
+
})(({
|
|
37
|
+
theme: l,
|
|
38
|
+
ownerState: o
|
|
39
|
+
}) => m({
|
|
40
|
+
display: "inline-flex",
|
|
41
|
+
alignItems: "center",
|
|
42
|
+
cursor: "pointer",
|
|
43
|
+
// For correct alignment with the text.
|
|
44
|
+
verticalAlign: "middle",
|
|
45
|
+
WebkitTapHighlightColor: "transparent",
|
|
46
|
+
marginLeft: -11,
|
|
47
|
+
marginRight: 16,
|
|
48
|
+
// used for row presentation of radio/checkbox
|
|
49
|
+
[`&.${c.disabled}`]: {
|
|
50
|
+
cursor: "default"
|
|
51
|
+
}
|
|
52
|
+
}, o.labelPlacement === "start" && {
|
|
53
|
+
flexDirection: "row-reverse",
|
|
54
|
+
marginLeft: 16,
|
|
55
|
+
// used for row presentation of radio/checkbox
|
|
56
|
+
marginRight: -11
|
|
57
|
+
}, o.labelPlacement === "top" && {
|
|
58
|
+
flexDirection: "column-reverse",
|
|
59
|
+
marginLeft: 16
|
|
60
|
+
}, o.labelPlacement === "bottom" && {
|
|
61
|
+
flexDirection: "column",
|
|
62
|
+
marginLeft: 16
|
|
63
|
+
}, {
|
|
64
|
+
[`& .${c.label}`]: {
|
|
65
|
+
[`&.${c.disabled}`]: {
|
|
66
|
+
color: (l.vars || l).palette.text.disabled
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
})), I = /* @__PURE__ */ P.forwardRef(function(o, r) {
|
|
70
|
+
var n;
|
|
71
|
+
const t = D({
|
|
72
|
+
props: o,
|
|
73
|
+
name: "MuiFormControlLabel"
|
|
74
|
+
}), {
|
|
75
|
+
className: b,
|
|
76
|
+
componentsProps: v = {},
|
|
77
|
+
control: i,
|
|
78
|
+
disabled: T,
|
|
79
|
+
disableTypography: x,
|
|
80
|
+
label: F,
|
|
81
|
+
labelPlacement: R = "end",
|
|
82
|
+
slotProps: j = {}
|
|
83
|
+
} = t, N = _(t, A), d = k();
|
|
84
|
+
let a = T;
|
|
85
|
+
typeof a > "u" && typeof i.props.disabled < "u" && (a = i.props.disabled), typeof a > "u" && d && (a = d.disabled);
|
|
86
|
+
const u = {
|
|
87
|
+
disabled: a
|
|
88
|
+
};
|
|
89
|
+
["checked", "name", "onChange", "value", "inputRef"].forEach((p) => {
|
|
90
|
+
typeof i.props[p] > "u" && typeof t[p] < "u" && (u[p] = t[p]);
|
|
91
|
+
});
|
|
92
|
+
const $ = U({
|
|
93
|
+
props: t,
|
|
94
|
+
muiFormControl: d,
|
|
95
|
+
states: ["error"]
|
|
96
|
+
}), y = m({}, t, {
|
|
97
|
+
disabled: a,
|
|
98
|
+
labelPlacement: R,
|
|
99
|
+
error: $.error
|
|
100
|
+
}), g = B(y), f = (n = j.typography) != null ? n : v.typography;
|
|
101
|
+
let s = F;
|
|
102
|
+
return s != null && s.type !== C && !x && (s = /* @__PURE__ */ w(C, m({
|
|
103
|
+
component: "span"
|
|
104
|
+
}, f, {
|
|
105
|
+
className: h(g.label, f == null ? void 0 : f.className),
|
|
106
|
+
children: s
|
|
107
|
+
}))), /* @__PURE__ */ W(H, m({
|
|
108
|
+
className: h(g.root, b),
|
|
109
|
+
ownerState: y,
|
|
110
|
+
ref: r
|
|
111
|
+
}, N, {
|
|
112
|
+
children: [/* @__PURE__ */ P.cloneElement(i, u), s]
|
|
113
|
+
}));
|
|
114
|
+
});
|
|
115
|
+
process.env.NODE_ENV !== "production" && (I.propTypes = {
|
|
116
|
+
// ----------------------------- Warning --------------------------------
|
|
117
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
118
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
119
|
+
// ----------------------------------------------------------------------
|
|
120
|
+
/**
|
|
121
|
+
* If `true`, the component appears selected.
|
|
122
|
+
*/
|
|
123
|
+
checked: e.bool,
|
|
124
|
+
/**
|
|
125
|
+
* Override or extend the styles applied to the component.
|
|
126
|
+
*/
|
|
127
|
+
classes: e.object,
|
|
128
|
+
/**
|
|
129
|
+
* @ignore
|
|
130
|
+
*/
|
|
131
|
+
className: e.string,
|
|
132
|
+
/**
|
|
133
|
+
* The props used for each slot inside.
|
|
134
|
+
* @default {}
|
|
135
|
+
*/
|
|
136
|
+
componentsProps: e.shape({
|
|
137
|
+
typography: e.object
|
|
138
|
+
}),
|
|
139
|
+
/**
|
|
140
|
+
* A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
|
|
141
|
+
*/
|
|
142
|
+
control: e.element.isRequired,
|
|
143
|
+
/**
|
|
144
|
+
* If `true`, the control is disabled.
|
|
145
|
+
*/
|
|
146
|
+
disabled: e.bool,
|
|
147
|
+
/**
|
|
148
|
+
* If `true`, the label is rendered as it is passed without an additional typography node.
|
|
149
|
+
*/
|
|
150
|
+
disableTypography: e.bool,
|
|
151
|
+
/**
|
|
152
|
+
* Pass a ref to the `input` element.
|
|
153
|
+
*/
|
|
154
|
+
inputRef: q,
|
|
155
|
+
/**
|
|
156
|
+
* A text or an element to be used in an enclosing label element.
|
|
157
|
+
*/
|
|
158
|
+
label: e.node,
|
|
159
|
+
/**
|
|
160
|
+
* The position of the label.
|
|
161
|
+
* @default 'end'
|
|
162
|
+
*/
|
|
163
|
+
labelPlacement: e.oneOf(["bottom", "end", "start", "top"]),
|
|
164
|
+
/**
|
|
165
|
+
* @ignore
|
|
166
|
+
*/
|
|
167
|
+
name: e.string,
|
|
168
|
+
/**
|
|
169
|
+
* Callback fired when the state is changed.
|
|
170
|
+
*
|
|
171
|
+
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
172
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
173
|
+
*/
|
|
174
|
+
onChange: e.func,
|
|
175
|
+
/**
|
|
176
|
+
* The props used for each slot inside.
|
|
177
|
+
* @default {}
|
|
178
|
+
*/
|
|
179
|
+
slotProps: e.shape({
|
|
180
|
+
typography: e.object
|
|
181
|
+
}),
|
|
182
|
+
/**
|
|
183
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
184
|
+
*/
|
|
185
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
186
|
+
/**
|
|
187
|
+
* The value of the component.
|
|
188
|
+
*/
|
|
189
|
+
value: e.any
|
|
190
|
+
});
|
|
191
|
+
export {
|
|
192
|
+
I as F
|
|
193
|
+
};
|