@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.
- package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-D6qhsxB0.js} +201 -210
- package/dist/{CardContent-Du2i427Y.js → CardContent-B8hqgH-I.js} +15 -15
- package/dist/{Checkbox-BGNAqLl0.js → Checkbox-BFWhj3s-.js} +154 -144
- package/dist/{Collapse-FRd0_2Pt.js → Collapse-D_TjnyE5.js} +96 -87
- package/dist/DialogContent-BCYm_d1s.js +864 -0
- package/dist/{FormControl-ChTmxscy.js → FormControl-BMRUQKHh.js} +479 -449
- package/dist/FormControlLabel-DENNVXWL.js +639 -0
- package/dist/{IconButton-Cu_XEJB2.js → IconButton-D8bwME9t.js} +22 -22
- package/dist/{Input-DU22-Zbo.js → Input-Dxzguyp5.js} +34 -34
- package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-B8ERE7Zv.js} +12 -12
- package/dist/{List-nOXr-cFJ.js → List-DEWyK9IO.js} +12 -12
- package/dist/{MenuItem-DF45rx2m.js → MenuItem-DstAFfik.js} +26 -26
- package/dist/Modal-DNGEQJ1M.js +1267 -0
- package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-w2Cj9STF.js} +75 -78
- package/dist/{Paper-CD_ma6NJ.js → Paper-BseeergJ.js} +15 -15
- package/dist/Select-NDq3WyLt.js +2175 -0
- package/dist/Typography-Dg-ROiTA.js +201 -0
- package/dist/components/card/index.js +17 -17
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +222 -302
- package/dist/components/confirm/dialog.js +13 -13
- package/dist/components/container/index.js +19 -19
- package/dist/components/context-menu/index.js +616 -203
- package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/index.js +3 -3
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/styled.js +14 -14
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/template-property-filters/index.js +1 -1
- package/dist/components/template-property-filters/property.js +209 -10
- package/dist/components/tree-select/index.js +4 -4
- package/dist/components/treeview-filter/index.js +29 -30
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createStyled-B96gjom1.js +1887 -0
- package/dist/createSvgIcon-B2WT0K4k.js +87 -0
- package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-BNrb7rDY.js} +82 -85
- package/dist/{exactProp--3vlJ9a9.js → exactProp-CI_rjX83.js} +2 -2
- package/dist/{index-CtuBGOmk.js → index-B3Oj04nl.js} +5 -5
- package/dist/{index-DzFccwzL.js → index-CSfSVkKj.js} +204 -218
- package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-CFiI_U7B.js} +2 -2
- package/dist/main.js +150 -144
- package/dist/styled-cPJbqF0E.js +677 -0
- package/dist/useTheme-C-T6Qisa.js +10 -0
- package/dist/useThemeProps-DeftUmqJ.js +107 -0
- package/dist/{utils-qcu0RzdN.js → utils-CCkxV0lZ.js} +15 -15
- package/package.json +3 -3
- package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
- package/dist/FormControlLabel-Df7csguX.js +0 -827
- package/dist/ListItem-RJvRMwkZ.js +0 -428
- package/dist/Select-C1jD_gBQ.js +0 -2305
- package/dist/Typography-C2BkMNk-.js +0 -178
- package/dist/chainPropTypes-GRMJ22CO.js +0 -96
- package/dist/createSvgIcon-6wv0RQr3.js +0 -63
- package/dist/createTheme-C3DKplhE.js +0 -2395
- package/dist/property-BSufYw1E.js +0 -6888
- package/dist/requirePropFactory-BItwGLRQ.js +0 -18
- package/dist/resolveComponentProps-DozbaB8e.js +0 -54
- package/dist/styled-CVWGE9ik.js +0 -142
- package/dist/styled-iyoioZCr.js +0 -1033
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- package/dist/useTheme--x3BjP9A.js +0 -17
- package/dist/useTheme-pWltVFb2.js +0 -10
- package/dist/useThemeProps-C90JF0Qc.js +0 -62
- package/dist/useThemeProps-DNZoozBw.js +0 -26
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
import { _ as r, a as ee } from "./extends-Cyw62AD_.js";
|
|
2
|
-
import * as
|
|
3
|
-
import { g as te, u as ne, c as oe, a as ie } from "./
|
|
4
|
-
import { P as e } from "./
|
|
5
|
-
import { g as re, s as
|
|
6
|
-
import { T as ae, g as A } from "./utils-
|
|
7
|
-
import { u as le } from "./useTheme-
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { g as te, u as ne, c as oe, a as ie } from "./useThemeProps-DeftUmqJ.js";
|
|
4
|
+
import { P as e } from "./createStyled-B96gjom1.js";
|
|
5
|
+
import { g as re, s as D, e as se } from "./styled-cPJbqF0E.js";
|
|
6
|
+
import { T as ae, g as A } from "./utils-CCkxV0lZ.js";
|
|
7
|
+
import { u as le } from "./useTheme-C-T6Qisa.js";
|
|
8
8
|
import { jsx as C } from "react/jsx-runtime";
|
|
9
|
-
import {
|
|
9
|
+
import { a as pe, e as ce } from "./ButtonBase-D6qhsxB0.js";
|
|
10
|
+
function be(o, n, s, c, E) {
|
|
11
|
+
if (process.env.NODE_ENV === "production")
|
|
12
|
+
return null;
|
|
13
|
+
const v = E || n;
|
|
14
|
+
return typeof o[n] < "u" ? new Error(`The prop \`${v}\` is not supported. Please remove it.`) : null;
|
|
15
|
+
}
|
|
10
16
|
function ue(o) {
|
|
11
17
|
return re("MuiCollapse", o);
|
|
12
18
|
}
|
|
13
19
|
te("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
14
|
-
const
|
|
20
|
+
const de = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], fe = (o) => {
|
|
15
21
|
const {
|
|
16
22
|
orientation: n,
|
|
17
23
|
classes: s
|
|
18
|
-
} = o,
|
|
24
|
+
} = o, c = {
|
|
19
25
|
root: ["root", `${n}`],
|
|
20
26
|
entered: ["entered"],
|
|
21
27
|
hidden: ["hidden"],
|
|
22
28
|
wrapper: ["wrapper", `${n}`],
|
|
23
29
|
wrapperInner: ["wrapperInner", `${n}`]
|
|
24
30
|
};
|
|
25
|
-
return ie(
|
|
26
|
-
}, me =
|
|
31
|
+
return ie(c, ue, s);
|
|
32
|
+
}, me = D("div", {
|
|
27
33
|
name: "MuiCollapse",
|
|
28
34
|
slot: "Root",
|
|
29
35
|
overridesResolver: (o, n) => {
|
|
@@ -50,7 +56,7 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
50
56
|
width: "auto"
|
|
51
57
|
}), n.state === "exited" && !n.in && n.collapsedSize === "0px" && {
|
|
52
58
|
visibility: "hidden"
|
|
53
|
-
})),
|
|
59
|
+
})), he = D("div", {
|
|
54
60
|
name: "MuiCollapse",
|
|
55
61
|
slot: "Wrapper",
|
|
56
62
|
overridesResolver: (o, n) => n.wrapper
|
|
@@ -63,7 +69,7 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
63
69
|
}, o.orientation === "horizontal" && {
|
|
64
70
|
width: "auto",
|
|
65
71
|
height: "100%"
|
|
66
|
-
})),
|
|
72
|
+
})), ge = D("div", {
|
|
67
73
|
name: "MuiCollapse",
|
|
68
74
|
slot: "WrapperInner",
|
|
69
75
|
overridesResolver: (o, n) => n.wrapperInner
|
|
@@ -74,81 +80,85 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
74
80
|
}, o.orientation === "horizontal" && {
|
|
75
81
|
width: "auto",
|
|
76
82
|
height: "100%"
|
|
77
|
-
})),
|
|
78
|
-
const
|
|
83
|
+
})), H = /* @__PURE__ */ d.forwardRef(function(n, s) {
|
|
84
|
+
const c = ne({
|
|
79
85
|
props: n,
|
|
80
86
|
name: "MuiCollapse"
|
|
81
87
|
}), {
|
|
82
|
-
addEndListener:
|
|
83
|
-
children:
|
|
84
|
-
className:
|
|
85
|
-
collapsedSize:
|
|
86
|
-
component:
|
|
87
|
-
easing:
|
|
88
|
+
addEndListener: E,
|
|
89
|
+
children: v,
|
|
90
|
+
className: U,
|
|
91
|
+
collapsedSize: x = "0px",
|
|
92
|
+
component: V,
|
|
93
|
+
easing: N,
|
|
88
94
|
in: $,
|
|
89
95
|
onEnter: O,
|
|
90
|
-
onEntered:
|
|
96
|
+
onEntered: P,
|
|
91
97
|
onEntering: W,
|
|
92
98
|
onExit: L,
|
|
93
|
-
onExited:
|
|
94
|
-
onExiting:
|
|
95
|
-
orientation:
|
|
96
|
-
style:
|
|
99
|
+
onExited: k,
|
|
100
|
+
onExiting: j,
|
|
101
|
+
orientation: F = "vertical",
|
|
102
|
+
style: R,
|
|
97
103
|
timeout: l = se.standard,
|
|
98
104
|
// eslint-disable-next-line react/prop-types
|
|
99
|
-
TransitionComponent:
|
|
100
|
-
} =
|
|
101
|
-
orientation:
|
|
102
|
-
collapsedSize:
|
|
103
|
-
}),
|
|
105
|
+
TransitionComponent: q = ae
|
|
106
|
+
} = c, B = ee(c, de), y = r({}, c, {
|
|
107
|
+
orientation: F,
|
|
108
|
+
collapsedSize: x
|
|
109
|
+
}), f = fe(y), I = le(), M = d.useRef(), p = d.useRef(null), b = d.useRef(), w = typeof x == "number" ? `${x}px` : x, m = F === "horizontal", h = m ? "width" : "height";
|
|
110
|
+
d.useEffect(() => () => {
|
|
111
|
+
clearTimeout(M.current);
|
|
112
|
+
}, []);
|
|
113
|
+
const T = d.useRef(null), G = pe(s, T), u = (t) => (i) => {
|
|
104
114
|
if (t) {
|
|
105
|
-
const a =
|
|
115
|
+
const a = T.current;
|
|
106
116
|
i === void 0 ? t(a) : t(a, i);
|
|
107
117
|
}
|
|
108
|
-
},
|
|
109
|
-
p.current &&
|
|
110
|
-
}), K =
|
|
111
|
-
const a =
|
|
112
|
-
p.current &&
|
|
118
|
+
}, S = () => p.current ? p.current[m ? "clientWidth" : "clientHeight"] : 0, J = u((t, i) => {
|
|
119
|
+
p.current && m && (p.current.style.position = "absolute"), t.style[h] = w, O && O(t, i);
|
|
120
|
+
}), K = u((t, i) => {
|
|
121
|
+
const a = S();
|
|
122
|
+
p.current && m && (p.current.style.position = "");
|
|
113
123
|
const {
|
|
114
|
-
duration:
|
|
115
|
-
easing:
|
|
124
|
+
duration: g,
|
|
125
|
+
easing: z
|
|
116
126
|
} = A({
|
|
117
|
-
style:
|
|
127
|
+
style: R,
|
|
118
128
|
timeout: l,
|
|
119
|
-
easing:
|
|
129
|
+
easing: N
|
|
120
130
|
}, {
|
|
121
131
|
mode: "enter"
|
|
122
132
|
});
|
|
123
133
|
if (l === "auto") {
|
|
124
|
-
const
|
|
125
|
-
t.style.transitionDuration = `${
|
|
134
|
+
const _ = I.transitions.getAutoHeightDuration(a);
|
|
135
|
+
t.style.transitionDuration = `${_}ms`, b.current = _;
|
|
126
136
|
} else
|
|
127
|
-
t.style.transitionDuration = typeof
|
|
128
|
-
t.style[
|
|
129
|
-
}), Q =
|
|
130
|
-
t.style[
|
|
131
|
-
}), X =
|
|
132
|
-
t.style[
|
|
133
|
-
}), Y =
|
|
134
|
-
const i =
|
|
137
|
+
t.style.transitionDuration = typeof g == "string" ? g : `${g}ms`;
|
|
138
|
+
t.style[h] = `${a}px`, t.style.transitionTimingFunction = z, W && W(t, i);
|
|
139
|
+
}), Q = u((t, i) => {
|
|
140
|
+
t.style[h] = "auto", P && P(t, i);
|
|
141
|
+
}), X = u((t) => {
|
|
142
|
+
t.style[h] = `${S()}px`, L && L(t);
|
|
143
|
+
}), Y = u(k), Z = u((t) => {
|
|
144
|
+
const i = S(), {
|
|
135
145
|
duration: a,
|
|
136
|
-
easing:
|
|
146
|
+
easing: g
|
|
137
147
|
} = A({
|
|
138
|
-
style:
|
|
148
|
+
style: R,
|
|
139
149
|
timeout: l,
|
|
140
|
-
easing:
|
|
150
|
+
easing: N
|
|
141
151
|
}, {
|
|
142
152
|
mode: "exit"
|
|
143
153
|
});
|
|
144
154
|
if (l === "auto") {
|
|
145
|
-
const
|
|
146
|
-
t.style.transitionDuration = `${
|
|
155
|
+
const z = I.transitions.getAutoHeightDuration(i);
|
|
156
|
+
t.style.transitionDuration = `${z}ms`, b.current = z;
|
|
147
157
|
} else
|
|
148
158
|
t.style.transitionDuration = typeof a == "string" ? a : `${a}ms`;
|
|
149
|
-
t.style[
|
|
159
|
+
t.style[h] = w, t.style.transitionTimingFunction = g, j && j(t);
|
|
150
160
|
});
|
|
151
|
-
return /* @__PURE__ */ C(
|
|
161
|
+
return /* @__PURE__ */ C(q, r({
|
|
152
162
|
in: $,
|
|
153
163
|
onEnter: J,
|
|
154
164
|
onEntered: Q,
|
|
@@ -157,49 +167,47 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
157
167
|
onExited: Y,
|
|
158
168
|
onExiting: Z,
|
|
159
169
|
addEndListener: (t) => {
|
|
160
|
-
l === "auto" &&
|
|
170
|
+
l === "auto" && (M.current = setTimeout(t, b.current || 0)), E && E(T.current, t);
|
|
161
171
|
},
|
|
162
|
-
nodeRef:
|
|
172
|
+
nodeRef: T,
|
|
163
173
|
timeout: l === "auto" ? null : l
|
|
164
|
-
},
|
|
174
|
+
}, B, {
|
|
165
175
|
children: (t, i) => /* @__PURE__ */ C(me, r({
|
|
166
|
-
as:
|
|
167
|
-
className: oe(
|
|
168
|
-
entered:
|
|
169
|
-
exited: !$ &&
|
|
176
|
+
as: V,
|
|
177
|
+
className: oe(f.root, U, {
|
|
178
|
+
entered: f.entered,
|
|
179
|
+
exited: !$ && w === "0px" && f.hidden
|
|
170
180
|
}[t]),
|
|
171
181
|
style: r({
|
|
172
|
-
[
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
}, i, {
|
|
176
|
-
// `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
|
|
177
|
-
// that might have been forwarded from the Transition component.
|
|
178
|
-
ownerState: r({}, E, {
|
|
182
|
+
[m ? "minWidth" : "minHeight"]: w
|
|
183
|
+
}, R),
|
|
184
|
+
ownerState: r({}, y, {
|
|
179
185
|
state: t
|
|
180
186
|
}),
|
|
181
|
-
|
|
182
|
-
|
|
187
|
+
ref: G
|
|
188
|
+
}, i, {
|
|
189
|
+
children: /* @__PURE__ */ C(he, {
|
|
190
|
+
ownerState: r({}, y, {
|
|
183
191
|
state: t
|
|
184
192
|
}),
|
|
185
|
-
className:
|
|
193
|
+
className: f.wrapper,
|
|
186
194
|
ref: p,
|
|
187
|
-
children: /* @__PURE__ */ C(
|
|
188
|
-
ownerState: r({},
|
|
195
|
+
children: /* @__PURE__ */ C(ge, {
|
|
196
|
+
ownerState: r({}, y, {
|
|
189
197
|
state: t
|
|
190
198
|
}),
|
|
191
|
-
className:
|
|
192
|
-
children:
|
|
199
|
+
className: f.wrapperInner,
|
|
200
|
+
children: v
|
|
193
201
|
})
|
|
194
202
|
})
|
|
195
203
|
}))
|
|
196
204
|
}));
|
|
197
205
|
});
|
|
198
|
-
process.env.NODE_ENV !== "production" && (
|
|
199
|
-
//
|
|
200
|
-
//
|
|
201
|
-
//
|
|
202
|
-
//
|
|
206
|
+
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
207
|
+
// ----------------------------- Warning --------------------------------
|
|
208
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
209
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
210
|
+
// ----------------------------------------------------------------------
|
|
203
211
|
/**
|
|
204
212
|
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
205
213
|
* node and a done callback. Allows for more fine grained transition end
|
|
@@ -227,7 +235,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
227
235
|
* The component used for the root node.
|
|
228
236
|
* Either a string to use a HTML element or a component.
|
|
229
237
|
*/
|
|
230
|
-
component:
|
|
238
|
+
component: ce,
|
|
231
239
|
/**
|
|
232
240
|
* The transition timing function.
|
|
233
241
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -290,7 +298,8 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
290
298
|
exit: e.number
|
|
291
299
|
})])
|
|
292
300
|
});
|
|
293
|
-
|
|
301
|
+
H.muiSupportAuto = !0;
|
|
294
302
|
export {
|
|
295
|
-
|
|
303
|
+
H as C,
|
|
304
|
+
be as u
|
|
296
305
|
};
|