@hybridcore/ui 1.3.4 → 1.3.6
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-DJz-TFGO.js → ButtonBase-D6qhsxB0.js} +7 -8
- package/dist/{CardContent-DZnCVGy9.js → CardContent-B8hqgH-I.js} +3 -3
- package/dist/{Checkbox-DzmWBCrt.js → Checkbox-BFWhj3s-.js} +6 -6
- package/dist/{Collapse-NqW0GIK_.js → Collapse-D_TjnyE5.js} +74 -67
- package/dist/DialogContent-BCYm_d1s.js +864 -0
- package/dist/{FormControl-aXQs42m6.js → FormControl-BMRUQKHh.js} +55 -55
- package/dist/{FormControlLabel-hDa-xf_q.js → FormControlLabel-DENNVXWL.js} +9 -9
- package/dist/{IconButton-SnBOFQ43.js → IconButton-D8bwME9t.js} +4 -4
- package/dist/{Input-CeVb6kjv.js → Input-Dxzguyp5.js} +5 -5
- package/dist/{InputAdornment-fM3loNyx.js → InputAdornment-B8ERE7Zv.js} +4 -4
- package/dist/{List-DLIiXc6r.js → List-DEWyK9IO.js} +5 -5
- package/dist/{MenuItem-BEW28T9O.js → MenuItem-DstAFfik.js} +12 -12
- package/dist/Modal-DNGEQJ1M.js +1267 -0
- package/dist/{OutlinedInput-DkzLHRTd.js → OutlinedInput-w2Cj9STF.js} +5 -5
- package/dist/{Paper-Dp3qO0cK.js → Paper-BseeergJ.js} +8 -8
- package/dist/{Select-Cdmu0dQ4.js → Select-NDq3WyLt.js} +51 -51
- package/dist/{Typography-CXe5ytr0.js → Typography-Dg-ROiTA.js} +3 -3
- package/dist/components/card/index.js +5 -5
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +26 -26
- package/dist/components/confirm/dialog.js +5 -5
- package/dist/components/container/index.js +6 -6
- package/dist/components/context-menu/index.js +604 -191
- 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 +1 -1
- 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 +8 -8
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/{createStyled-liRRhQcN.js → createStyled-B96gjom1.js} +461 -484
- package/dist/createSvgIcon-B2WT0K4k.js +87 -0
- package/dist/{createSvgIcon-Cl8kMTkx.js → createSvgIcon-BNrb7rDY.js} +3 -3
- package/dist/{exactProp-CT2wqJXE.js → exactProp-CI_rjX83.js} +2 -2
- package/dist/{index-D9TdkXAs.js → index-B3Oj04nl.js} +5 -5
- package/dist/{index-DRy8nExS.js → index-CSfSVkKj.js} +5 -6
- package/dist/{listItemTextClasses-BrCbmCR1.js → listItemTextClasses-CFiI_U7B.js} +2 -2
- package/dist/main.js +150 -144
- package/dist/{styled-Dm8rXzIG.js → styled-cPJbqF0E.js} +24 -24
- package/dist/{useTheme-CTuK-wFF.js → useTheme-C-T6Qisa.js} +2 -2
- package/dist/{useThemeProps-BXn-nVhw.js → useThemeProps-DeftUmqJ.js} +14 -14
- package/dist/{utils-DY9Jk4Ah.js → utils-CCkxV0lZ.js} +15 -15
- package/package.json +1 -1
- package/dist/DialogContent-D51w7KVX.js +0 -2119
- package/dist/ListItem-BkxmqFI8.js +0 -428
- package/dist/createSvgIcon-B4TFefhd.js +0 -73
- package/dist/property-BsU8ijQF.js +0 -6857
- package/dist/requirePropFactory-BItwGLRQ.js +0 -18
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as Y, a as ue } from "./extends-Cyw62AD_.js";
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import X, { Children as qe, isValidElement as G, cloneElement as J } from "react";
|
|
4
|
-
import { P as n } from "./createStyled-
|
|
5
|
-
import {
|
|
6
|
-
import { s as ae, g as Ge } from "./styled-
|
|
4
|
+
import { P as n } from "./createStyled-B96gjom1.js";
|
|
5
|
+
import { b as We, c as v, g as Ce, u as ve, a as He } from "./useThemeProps-DeftUmqJ.js";
|
|
6
|
+
import { s as ae, g as Ge } from "./styled-cPJbqF0E.js";
|
|
7
7
|
import { jsx as $, jsxs as Je } from "react/jsx-runtime";
|
|
8
8
|
import { _ as Qe, a as Ze } from "./assertThisInitialized-BUtkG-md.js";
|
|
9
9
|
import { keyframes as le } from "@emotion/react";
|
|
@@ -947,14 +947,13 @@ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
|
|
|
947
947
|
});
|
|
948
948
|
export {
|
|
949
949
|
Lt as B,
|
|
950
|
-
|
|
950
|
+
ge as T,
|
|
951
951
|
ht as _,
|
|
952
|
-
|
|
953
|
-
|
|
952
|
+
ye as a,
|
|
953
|
+
H as b,
|
|
954
954
|
dt as c,
|
|
955
|
-
ge as d,
|
|
956
955
|
nt as e,
|
|
957
956
|
ot as r,
|
|
958
957
|
rt as s,
|
|
959
|
-
|
|
958
|
+
it as u
|
|
960
959
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as d, _ as c } from "./extends-Cyw62AD_.js";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import { P as o } from "./createStyled-
|
|
4
|
-
import { g as C, u, c as f, a as y } from "./useThemeProps-
|
|
5
|
-
import { g, s as v } from "./styled-
|
|
3
|
+
import { P as o } from "./createStyled-B96gjom1.js";
|
|
4
|
+
import { g as C, u, c as f, a as y } from "./useThemeProps-DeftUmqJ.js";
|
|
5
|
+
import { g, s as v } from "./styled-cPJbqF0E.js";
|
|
6
6
|
import { jsx as x } from "react/jsx-runtime";
|
|
7
7
|
function N(t) {
|
|
8
8
|
return g("MuiCardContent", t);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as oe, C as ne, g as E, s as S, r as te, a as se } from "./styled-
|
|
1
|
+
import { l as Z, s as ee, P as e, a as F } from "./createStyled-B96gjom1.js";
|
|
2
|
+
import { c as oe, C as ne, g as E, s as S, r as te, a as se } from "./styled-cPJbqF0E.js";
|
|
3
3
|
import { a as T, _ as r } from "./extends-Cyw62AD_.js";
|
|
4
4
|
import * as B from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { d as ce, g as M, c as q, a as V, u as ae } from "./useThemeProps-DeftUmqJ.js";
|
|
6
6
|
import { jsx as u, jsxs as re } from "react/jsx-runtime";
|
|
7
|
-
import { e as ie } from "./Typography-
|
|
7
|
+
import { e as ie } from "./Typography-Dg-ROiTA.js";
|
|
8
8
|
import { u as le } from "./useFormControl-CatNKXAi.js";
|
|
9
|
-
import { B as de, r as U } from "./ButtonBase-
|
|
10
|
-
import { u as ue, c as z } from "./createSvgIcon-
|
|
9
|
+
import { B as de, r as U } from "./ButtonBase-D6qhsxB0.js";
|
|
10
|
+
import { u as ue, c as z } from "./createSvgIcon-BNrb7rDY.js";
|
|
11
11
|
function H(o) {
|
|
12
12
|
var n, s, t = "";
|
|
13
13
|
if (typeof o == "string" || typeof o == "number") t += o;
|
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
import { _ as r, a as ee } from "./extends-Cyw62AD_.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { g as te, u as ne, c as oe, a as ie } from "./useThemeProps-
|
|
4
|
-
import { P as e } from "./createStyled-
|
|
5
|
-
import { g as re, s as
|
|
6
|
-
import { T as ae, g as
|
|
7
|
-
import { u as le } from "./useTheme-
|
|
8
|
-
import { jsx as
|
|
9
|
-
import {
|
|
10
|
-
function
|
|
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
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
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
|
+
}
|
|
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
|
-
},
|
|
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 ue = ["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 ue = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
63
69
|
}, o.orientation === "horizontal" && {
|
|
64
70
|
width: "auto",
|
|
65
71
|
height: "100%"
|
|
66
|
-
})), ge =
|
|
72
|
+
})), ge = D("div", {
|
|
67
73
|
name: "MuiCollapse",
|
|
68
74
|
slot: "WrapperInner",
|
|
69
75
|
overridesResolver: (o, n) => n.wrapperInner
|
|
@@ -75,84 +81,84 @@ const ue = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
75
81
|
width: "auto",
|
|
76
82
|
height: "100%"
|
|
77
83
|
})), H = /* @__PURE__ */ d.forwardRef(function(n, s) {
|
|
78
|
-
const
|
|
84
|
+
const c = ne({
|
|
79
85
|
props: n,
|
|
80
86
|
name: "MuiCollapse"
|
|
81
87
|
}), {
|
|
82
|
-
addEndListener:
|
|
83
|
-
children:
|
|
88
|
+
addEndListener: E,
|
|
89
|
+
children: v,
|
|
84
90
|
className: U,
|
|
85
|
-
collapsedSize:
|
|
91
|
+
collapsedSize: x = "0px",
|
|
86
92
|
component: V,
|
|
87
|
-
easing:
|
|
93
|
+
easing: N,
|
|
88
94
|
in: $,
|
|
89
95
|
onEnter: O,
|
|
90
|
-
onEntered:
|
|
96
|
+
onEntered: P,
|
|
91
97
|
onEntering: W,
|
|
92
98
|
onExit: L,
|
|
93
99
|
onExited: k,
|
|
94
|
-
onExiting:
|
|
95
|
-
orientation:
|
|
96
|
-
style:
|
|
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
105
|
TransitionComponent: q = ae
|
|
100
|
-
} =
|
|
101
|
-
orientation:
|
|
102
|
-
collapsedSize:
|
|
103
|
-
}), f = fe(
|
|
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";
|
|
104
110
|
d.useEffect(() => () => {
|
|
105
111
|
clearTimeout(M.current);
|
|
106
112
|
}, []);
|
|
107
|
-
const
|
|
113
|
+
const T = d.useRef(null), G = pe(s, T), u = (t) => (i) => {
|
|
108
114
|
if (t) {
|
|
109
|
-
const a =
|
|
115
|
+
const a = T.current;
|
|
110
116
|
i === void 0 ? t(a) : t(a, i);
|
|
111
117
|
}
|
|
112
|
-
},
|
|
113
|
-
p.current &&
|
|
114
|
-
}), K =
|
|
115
|
-
const a =
|
|
116
|
-
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 = "");
|
|
117
123
|
const {
|
|
118
124
|
duration: g,
|
|
119
|
-
easing:
|
|
120
|
-
} =
|
|
121
|
-
style:
|
|
125
|
+
easing: z
|
|
126
|
+
} = A({
|
|
127
|
+
style: R,
|
|
122
128
|
timeout: l,
|
|
123
|
-
easing:
|
|
129
|
+
easing: N
|
|
124
130
|
}, {
|
|
125
131
|
mode: "enter"
|
|
126
132
|
});
|
|
127
133
|
if (l === "auto") {
|
|
128
|
-
const
|
|
129
|
-
t.style.transitionDuration = `${
|
|
134
|
+
const _ = I.transitions.getAutoHeightDuration(a);
|
|
135
|
+
t.style.transitionDuration = `${_}ms`, b.current = _;
|
|
130
136
|
} else
|
|
131
137
|
t.style.transitionDuration = typeof g == "string" ? g : `${g}ms`;
|
|
132
|
-
t.style[
|
|
133
|
-
}), Q =
|
|
134
|
-
t.style[
|
|
135
|
-
}), X =
|
|
136
|
-
t.style[
|
|
137
|
-
}), Y =
|
|
138
|
-
const i =
|
|
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(), {
|
|
139
145
|
duration: a,
|
|
140
146
|
easing: g
|
|
141
|
-
} =
|
|
142
|
-
style:
|
|
147
|
+
} = A({
|
|
148
|
+
style: R,
|
|
143
149
|
timeout: l,
|
|
144
|
-
easing:
|
|
150
|
+
easing: N
|
|
145
151
|
}, {
|
|
146
152
|
mode: "exit"
|
|
147
153
|
});
|
|
148
154
|
if (l === "auto") {
|
|
149
|
-
const
|
|
150
|
-
t.style.transitionDuration = `${
|
|
155
|
+
const z = I.transitions.getAutoHeightDuration(i);
|
|
156
|
+
t.style.transitionDuration = `${z}ms`, b.current = z;
|
|
151
157
|
} else
|
|
152
158
|
t.style.transitionDuration = typeof a == "string" ? a : `${a}ms`;
|
|
153
|
-
t.style[
|
|
159
|
+
t.style[h] = w, t.style.transitionTimingFunction = g, j && j(t);
|
|
154
160
|
});
|
|
155
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ C(q, r({
|
|
156
162
|
in: $,
|
|
157
163
|
onEnter: J,
|
|
158
164
|
onEntered: Q,
|
|
@@ -161,37 +167,37 @@ const ue = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
161
167
|
onExited: Y,
|
|
162
168
|
onExiting: Z,
|
|
163
169
|
addEndListener: (t) => {
|
|
164
|
-
l === "auto" && (M.current = setTimeout(t,
|
|
170
|
+
l === "auto" && (M.current = setTimeout(t, b.current || 0)), E && E(T.current, t);
|
|
165
171
|
},
|
|
166
|
-
nodeRef:
|
|
172
|
+
nodeRef: T,
|
|
167
173
|
timeout: l === "auto" ? null : l
|
|
168
174
|
}, B, {
|
|
169
|
-
children: (t, i) => /* @__PURE__ */
|
|
175
|
+
children: (t, i) => /* @__PURE__ */ C(me, r({
|
|
170
176
|
as: V,
|
|
171
177
|
className: oe(f.root, U, {
|
|
172
178
|
entered: f.entered,
|
|
173
|
-
exited: !$ &&
|
|
179
|
+
exited: !$ && w === "0px" && f.hidden
|
|
174
180
|
}[t]),
|
|
175
181
|
style: r({
|
|
176
|
-
[
|
|
177
|
-
},
|
|
178
|
-
ownerState: r({},
|
|
182
|
+
[m ? "minWidth" : "minHeight"]: w
|
|
183
|
+
}, R),
|
|
184
|
+
ownerState: r({}, y, {
|
|
179
185
|
state: t
|
|
180
186
|
}),
|
|
181
187
|
ref: G
|
|
182
188
|
}, i, {
|
|
183
|
-
children: /* @__PURE__ */
|
|
184
|
-
ownerState: r({},
|
|
189
|
+
children: /* @__PURE__ */ C(he, {
|
|
190
|
+
ownerState: r({}, y, {
|
|
185
191
|
state: t
|
|
186
192
|
}),
|
|
187
193
|
className: f.wrapper,
|
|
188
194
|
ref: p,
|
|
189
|
-
children: /* @__PURE__ */
|
|
190
|
-
ownerState: r({},
|
|
195
|
+
children: /* @__PURE__ */ C(ge, {
|
|
196
|
+
ownerState: r({}, y, {
|
|
191
197
|
state: t
|
|
192
198
|
}),
|
|
193
199
|
className: f.wrapperInner,
|
|
194
|
-
children:
|
|
200
|
+
children: v
|
|
195
201
|
})
|
|
196
202
|
})
|
|
197
203
|
}))
|
|
@@ -294,5 +300,6 @@ process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
|
294
300
|
});
|
|
295
301
|
H.muiSupportAuto = !0;
|
|
296
302
|
export {
|
|
297
|
-
H as C
|
|
303
|
+
H as C,
|
|
304
|
+
be as u
|
|
298
305
|
};
|