@hybridcore/ui 1.3.3 → 1.3.4
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-DJz-TFGO.js} +199 -207
- package/dist/{CardContent-Du2i427Y.js → CardContent-DZnCVGy9.js} +15 -15
- package/dist/{Checkbox-BGNAqLl0.js → Checkbox-DzmWBCrt.js} +154 -144
- package/dist/{Collapse-FRd0_2Pt.js → Collapse-NqW0GIK_.js} +79 -77
- package/dist/DialogContent-D51w7KVX.js +2119 -0
- package/dist/{FormControl-ChTmxscy.js → FormControl-aXQs42m6.js} +496 -466
- package/dist/FormControlLabel-hDa-xf_q.js +639 -0
- package/dist/{IconButton-Cu_XEJB2.js → IconButton-SnBOFQ43.js} +22 -22
- package/dist/{Input-DU22-Zbo.js → Input-CeVb6kjv.js} +34 -34
- package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-fM3loNyx.js} +12 -12
- package/dist/{List-nOXr-cFJ.js → List-DLIiXc6r.js} +10 -10
- package/dist/{ListItem-RJvRMwkZ.js → ListItem-BkxmqFI8.js} +23 -23
- package/dist/{MenuItem-DF45rx2m.js → MenuItem-BEW28T9O.js} +27 -27
- package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-DkzLHRTd.js} +75 -78
- package/dist/{Paper-CD_ma6NJ.js → Paper-Dp3qO0cK.js} +18 -18
- package/dist/Select-Cdmu0dQ4.js +2175 -0
- package/dist/Typography-CXe5ytr0.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 +32 -32
- 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 +4 -4
- 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-liRRhQcN.js +1910 -0
- package/dist/createSvgIcon-B4TFefhd.js +73 -0
- package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-Cl8kMTkx.js} +82 -85
- package/dist/{exactProp--3vlJ9a9.js → exactProp-CT2wqJXE.js} +2 -2
- package/dist/{index-CtuBGOmk.js → index-D9TdkXAs.js} +5 -5
- package/dist/{index-DzFccwzL.js → index-DRy8nExS.js} +205 -218
- package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-BrCbmCR1.js} +2 -2
- package/dist/main.js +2 -2
- package/dist/{property-BSufYw1E.js → property-BsU8ijQF.js} +1056 -1087
- package/dist/styled-Dm8rXzIG.js +677 -0
- package/dist/useTheme-CTuK-wFF.js +10 -0
- package/dist/useThemeProps-BXn-nVhw.js +107 -0
- package/dist/{utils-qcu0RzdN.js → utils-DY9Jk4Ah.js} +2 -2
- package/package.json +3 -3
- package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
- package/dist/FormControlLabel-Df7csguX.js +0 -827
- 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/resolveComponentProps-DozbaB8e.js +0 -54
- package/dist/styled-CVWGE9ik.js +0 -142
- package/dist/styled-iyoioZCr.js +0 -1033
- 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,29 @@
|
|
|
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 b,
|
|
6
|
-
import { T as ae, g as
|
|
7
|
-
import { u as le } from "./useTheme-
|
|
8
|
-
import { jsx as
|
|
9
|
-
import {
|
|
10
|
-
function
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { g as te, u as ne, c as oe, a as ie } from "./useThemeProps-BXn-nVhw.js";
|
|
4
|
+
import { P as e } from "./createStyled-liRRhQcN.js";
|
|
5
|
+
import { g as re, s as b, e as se } from "./styled-Dm8rXzIG.js";
|
|
6
|
+
import { T as ae, g as F } from "./utils-DY9Jk4Ah.js";
|
|
7
|
+
import { u as le } from "./useTheme-CTuK-wFF.js";
|
|
8
|
+
import { jsx as z } from "react/jsx-runtime";
|
|
9
|
+
import { u as pe, e as ce } from "./ButtonBase-DJz-TFGO.js";
|
|
10
|
+
function de(o) {
|
|
11
11
|
return re("MuiCollapse", o);
|
|
12
12
|
}
|
|
13
13
|
te("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
14
|
-
const
|
|
14
|
+
const ue = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], fe = (o) => {
|
|
15
15
|
const {
|
|
16
16
|
orientation: n,
|
|
17
17
|
classes: s
|
|
18
|
-
} = o,
|
|
18
|
+
} = o, u = {
|
|
19
19
|
root: ["root", `${n}`],
|
|
20
20
|
entered: ["entered"],
|
|
21
21
|
hidden: ["hidden"],
|
|
22
22
|
wrapper: ["wrapper", `${n}`],
|
|
23
23
|
wrapperInner: ["wrapperInner", `${n}`]
|
|
24
24
|
};
|
|
25
|
-
return ie(
|
|
26
|
-
},
|
|
25
|
+
return ie(u, de, s);
|
|
26
|
+
}, he = b("div", {
|
|
27
27
|
name: "MuiCollapse",
|
|
28
28
|
slot: "Root",
|
|
29
29
|
overridesResolver: (o, n) => {
|
|
@@ -50,7 +50,7 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
50
50
|
width: "auto"
|
|
51
51
|
}), n.state === "exited" && !n.in && n.collapsedSize === "0px" && {
|
|
52
52
|
visibility: "hidden"
|
|
53
|
-
})),
|
|
53
|
+
})), me = b("div", {
|
|
54
54
|
name: "MuiCollapse",
|
|
55
55
|
slot: "Wrapper",
|
|
56
56
|
overridesResolver: (o, n) => n.wrapper
|
|
@@ -63,7 +63,7 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
63
63
|
}, o.orientation === "horizontal" && {
|
|
64
64
|
width: "auto",
|
|
65
65
|
height: "100%"
|
|
66
|
-
})),
|
|
66
|
+
})), ge = b("div", {
|
|
67
67
|
name: "MuiCollapse",
|
|
68
68
|
slot: "WrapperInner",
|
|
69
69
|
overridesResolver: (o, n) => n.wrapperInner
|
|
@@ -74,81 +74,85 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
74
74
|
}, o.orientation === "horizontal" && {
|
|
75
75
|
width: "auto",
|
|
76
76
|
height: "100%"
|
|
77
|
-
})),
|
|
78
|
-
const
|
|
77
|
+
})), H = /* @__PURE__ */ d.forwardRef(function(n, s) {
|
|
78
|
+
const u = ne({
|
|
79
79
|
props: n,
|
|
80
80
|
name: "MuiCollapse"
|
|
81
81
|
}), {
|
|
82
82
|
addEndListener: S,
|
|
83
|
-
children:
|
|
84
|
-
className:
|
|
85
|
-
collapsedSize:
|
|
86
|
-
component:
|
|
83
|
+
children: _,
|
|
84
|
+
className: U,
|
|
85
|
+
collapsedSize: E = "0px",
|
|
86
|
+
component: V,
|
|
87
87
|
easing: D,
|
|
88
88
|
in: $,
|
|
89
89
|
onEnter: O,
|
|
90
90
|
onEntered: N,
|
|
91
91
|
onEntering: W,
|
|
92
92
|
onExit: L,
|
|
93
|
-
onExited:
|
|
93
|
+
onExited: k,
|
|
94
94
|
onExiting: P,
|
|
95
95
|
orientation: j = "vertical",
|
|
96
|
-
style:
|
|
96
|
+
style: C,
|
|
97
97
|
timeout: l = se.standard,
|
|
98
98
|
// eslint-disable-next-line react/prop-types
|
|
99
|
-
TransitionComponent:
|
|
100
|
-
} =
|
|
99
|
+
TransitionComponent: q = ae
|
|
100
|
+
} = u, B = ee(u, ue), x = r({}, u, {
|
|
101
101
|
orientation: j,
|
|
102
|
-
collapsedSize:
|
|
103
|
-
}),
|
|
102
|
+
collapsedSize: E
|
|
103
|
+
}), f = fe(x), I = le(), M = d.useRef(), p = d.useRef(null), v = d.useRef(), y = typeof E == "number" ? `${E}px` : E, h = j === "horizontal", m = h ? "width" : "height";
|
|
104
|
+
d.useEffect(() => () => {
|
|
105
|
+
clearTimeout(M.current);
|
|
106
|
+
}, []);
|
|
107
|
+
const w = d.useRef(null), G = pe(s, w), c = (t) => (i) => {
|
|
104
108
|
if (t) {
|
|
105
|
-
const a =
|
|
109
|
+
const a = w.current;
|
|
106
110
|
i === void 0 ? t(a) : t(a, i);
|
|
107
111
|
}
|
|
108
112
|
}, R = () => p.current ? p.current[h ? "clientWidth" : "clientHeight"] : 0, J = c((t, i) => {
|
|
109
|
-
p.current && h && (p.current.style.position = "absolute"), t.style[
|
|
113
|
+
p.current && h && (p.current.style.position = "absolute"), t.style[m] = y, O && O(t, i);
|
|
110
114
|
}), K = c((t, i) => {
|
|
111
115
|
const a = R();
|
|
112
116
|
p.current && h && (p.current.style.position = "");
|
|
113
117
|
const {
|
|
114
|
-
duration:
|
|
115
|
-
easing:
|
|
116
|
-
} =
|
|
117
|
-
style:
|
|
118
|
+
duration: g,
|
|
119
|
+
easing: T
|
|
120
|
+
} = F({
|
|
121
|
+
style: C,
|
|
118
122
|
timeout: l,
|
|
119
123
|
easing: D
|
|
120
124
|
}, {
|
|
121
125
|
mode: "enter"
|
|
122
126
|
});
|
|
123
127
|
if (l === "auto") {
|
|
124
|
-
const
|
|
125
|
-
t.style.transitionDuration = `${
|
|
128
|
+
const A = I.transitions.getAutoHeightDuration(a);
|
|
129
|
+
t.style.transitionDuration = `${A}ms`, v.current = A;
|
|
126
130
|
} else
|
|
127
|
-
t.style.transitionDuration = typeof
|
|
128
|
-
t.style[
|
|
131
|
+
t.style.transitionDuration = typeof g == "string" ? g : `${g}ms`;
|
|
132
|
+
t.style[m] = `${a}px`, t.style.transitionTimingFunction = T, W && W(t, i);
|
|
129
133
|
}), Q = c((t, i) => {
|
|
130
|
-
t.style[
|
|
134
|
+
t.style[m] = "auto", N && N(t, i);
|
|
131
135
|
}), X = c((t) => {
|
|
132
|
-
t.style[
|
|
133
|
-
}), Y = c(
|
|
136
|
+
t.style[m] = `${R()}px`, L && L(t);
|
|
137
|
+
}), Y = c(k), Z = c((t) => {
|
|
134
138
|
const i = R(), {
|
|
135
139
|
duration: a,
|
|
136
|
-
easing:
|
|
137
|
-
} =
|
|
138
|
-
style:
|
|
140
|
+
easing: g
|
|
141
|
+
} = F({
|
|
142
|
+
style: C,
|
|
139
143
|
timeout: l,
|
|
140
144
|
easing: D
|
|
141
145
|
}, {
|
|
142
146
|
mode: "exit"
|
|
143
147
|
});
|
|
144
148
|
if (l === "auto") {
|
|
145
|
-
const
|
|
146
|
-
t.style.transitionDuration = `${
|
|
149
|
+
const T = I.transitions.getAutoHeightDuration(i);
|
|
150
|
+
t.style.transitionDuration = `${T}ms`, v.current = T;
|
|
147
151
|
} else
|
|
148
152
|
t.style.transitionDuration = typeof a == "string" ? a : `${a}ms`;
|
|
149
|
-
t.style[
|
|
153
|
+
t.style[m] = y, t.style.transitionTimingFunction = g, P && P(t);
|
|
150
154
|
});
|
|
151
|
-
return /* @__PURE__ */
|
|
155
|
+
return /* @__PURE__ */ z(q, r({
|
|
152
156
|
in: $,
|
|
153
157
|
onEnter: J,
|
|
154
158
|
onEntered: Q,
|
|
@@ -157,49 +161,47 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
157
161
|
onExited: Y,
|
|
158
162
|
onExiting: Z,
|
|
159
163
|
addEndListener: (t) => {
|
|
160
|
-
l === "auto" &&
|
|
164
|
+
l === "auto" && (M.current = setTimeout(t, v.current || 0)), S && S(w.current, t);
|
|
161
165
|
},
|
|
162
|
-
nodeRef:
|
|
166
|
+
nodeRef: w,
|
|
163
167
|
timeout: l === "auto" ? null : l
|
|
164
|
-
},
|
|
165
|
-
children: (t, i) => /* @__PURE__ */
|
|
166
|
-
as:
|
|
167
|
-
className: oe(
|
|
168
|
-
entered:
|
|
169
|
-
exited: !$ &&
|
|
168
|
+
}, B, {
|
|
169
|
+
children: (t, i) => /* @__PURE__ */ z(he, r({
|
|
170
|
+
as: V,
|
|
171
|
+
className: oe(f.root, U, {
|
|
172
|
+
entered: f.entered,
|
|
173
|
+
exited: !$ && y === "0px" && f.hidden
|
|
170
174
|
}[t]),
|
|
171
175
|
style: r({
|
|
172
|
-
[h ? "minWidth" : "minHeight"]:
|
|
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, {
|
|
176
|
+
[h ? "minWidth" : "minHeight"]: y
|
|
177
|
+
}, C),
|
|
178
|
+
ownerState: r({}, x, {
|
|
179
179
|
state: t
|
|
180
180
|
}),
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
ref: G
|
|
182
|
+
}, i, {
|
|
183
|
+
children: /* @__PURE__ */ z(me, {
|
|
184
|
+
ownerState: r({}, x, {
|
|
183
185
|
state: t
|
|
184
186
|
}),
|
|
185
|
-
className:
|
|
187
|
+
className: f.wrapper,
|
|
186
188
|
ref: p,
|
|
187
|
-
children: /* @__PURE__ */
|
|
188
|
-
ownerState: r({},
|
|
189
|
+
children: /* @__PURE__ */ z(ge, {
|
|
190
|
+
ownerState: r({}, x, {
|
|
189
191
|
state: t
|
|
190
192
|
}),
|
|
191
|
-
className:
|
|
192
|
-
children:
|
|
193
|
+
className: f.wrapperInner,
|
|
194
|
+
children: _
|
|
193
195
|
})
|
|
194
196
|
})
|
|
195
197
|
}))
|
|
196
198
|
}));
|
|
197
199
|
});
|
|
198
|
-
process.env.NODE_ENV !== "production" && (
|
|
199
|
-
//
|
|
200
|
-
//
|
|
201
|
-
//
|
|
202
|
-
//
|
|
200
|
+
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
201
|
+
// ----------------------------- Warning --------------------------------
|
|
202
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
203
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
204
|
+
// ----------------------------------------------------------------------
|
|
203
205
|
/**
|
|
204
206
|
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
205
207
|
* node and a done callback. Allows for more fine grained transition end
|
|
@@ -227,7 +229,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
227
229
|
* The component used for the root node.
|
|
228
230
|
* Either a string to use a HTML element or a component.
|
|
229
231
|
*/
|
|
230
|
-
component:
|
|
232
|
+
component: ce,
|
|
231
233
|
/**
|
|
232
234
|
* The transition timing function.
|
|
233
235
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -290,7 +292,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
290
292
|
exit: e.number
|
|
291
293
|
})])
|
|
292
294
|
});
|
|
293
|
-
|
|
295
|
+
H.muiSupportAuto = !0;
|
|
294
296
|
export {
|
|
295
|
-
|
|
297
|
+
H as C
|
|
296
298
|
};
|