@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
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { g as l, d as m } from "./styled-cPJbqF0E.js";
|
|
2
|
+
import { _ as i } from "./extends-Cyw62AD_.js";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { ThemeContext as g } from "@emotion/react";
|
|
5
|
+
import { h as y } from "./createStyled-B96gjom1.js";
|
|
6
|
+
function f(e) {
|
|
7
|
+
var n, s, t = "";
|
|
8
|
+
if (typeof e == "string" || typeof e == "number") t += e;
|
|
9
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (n = 0; n < e.length; n++) e[n] && (s = f(e[n])) && (t && (t += " "), t += s);
|
|
10
|
+
else for (n in e) e[n] && (t && (t += " "), t += n);
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
function p() {
|
|
14
|
+
for (var e, n, s = 0, t = ""; s < arguments.length; ) (e = arguments[s++]) && (n = f(e)) && (t && (t += " "), t += n);
|
|
15
|
+
return t;
|
|
16
|
+
}
|
|
17
|
+
function $(e, n) {
|
|
18
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...t) {
|
|
19
|
+
return e(...t) || n(...t);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function h(e, n) {
|
|
23
|
+
const s = i({}, n);
|
|
24
|
+
return Object.keys(e).forEach((t) => {
|
|
25
|
+
if (t.toString().match(/^(components|slots)$/))
|
|
26
|
+
s[t] = i({}, e[t], s[t]);
|
|
27
|
+
else if (t.toString().match(/^(componentsProps|slotProps)$/)) {
|
|
28
|
+
const r = e[t] || {}, o = n[t];
|
|
29
|
+
s[t] = {}, !o || !Object.keys(o) ? s[t] = r : !r || !Object.keys(r) ? s[t] = o : (s[t] = i({}, o), Object.keys(r).forEach((u) => {
|
|
30
|
+
s[t][u] = h(r[u], o[u]);
|
|
31
|
+
}));
|
|
32
|
+
} else s[t] === void 0 && (s[t] = e[t]);
|
|
33
|
+
}), s;
|
|
34
|
+
}
|
|
35
|
+
function k(e, n, s = void 0) {
|
|
36
|
+
const t = {};
|
|
37
|
+
return Object.keys(e).forEach(
|
|
38
|
+
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
39
|
+
// @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
|
|
40
|
+
(r) => {
|
|
41
|
+
t[r] = e[r].reduce((o, u) => {
|
|
42
|
+
if (u) {
|
|
43
|
+
const c = n(u);
|
|
44
|
+
c !== "" && o.push(c), s && s[u] && o.push(s[u]);
|
|
45
|
+
}
|
|
46
|
+
return o;
|
|
47
|
+
}, []).join(" ");
|
|
48
|
+
}
|
|
49
|
+
), t;
|
|
50
|
+
}
|
|
51
|
+
function S(e, n, s = "Mui") {
|
|
52
|
+
const t = {};
|
|
53
|
+
return n.forEach((r) => {
|
|
54
|
+
t[r] = l(e, r, s);
|
|
55
|
+
}), t;
|
|
56
|
+
}
|
|
57
|
+
function d(e) {
|
|
58
|
+
return Object.keys(e).length === 0;
|
|
59
|
+
}
|
|
60
|
+
function T(e = null) {
|
|
61
|
+
const n = a.useContext(g);
|
|
62
|
+
return !n || d(n) ? e : n;
|
|
63
|
+
}
|
|
64
|
+
const b = y();
|
|
65
|
+
function j(e = b) {
|
|
66
|
+
return T(e);
|
|
67
|
+
}
|
|
68
|
+
function O(e) {
|
|
69
|
+
const {
|
|
70
|
+
theme: n,
|
|
71
|
+
name: s,
|
|
72
|
+
props: t
|
|
73
|
+
} = e;
|
|
74
|
+
return !n || !n.components || !n.components[s] || !n.components[s].defaultProps ? t : h(n.components[s].defaultProps, t);
|
|
75
|
+
}
|
|
76
|
+
function P({
|
|
77
|
+
props: e,
|
|
78
|
+
name: n,
|
|
79
|
+
defaultTheme: s,
|
|
80
|
+
themeId: t
|
|
81
|
+
}) {
|
|
82
|
+
let r = j(s);
|
|
83
|
+
return t && (r = r[t] || r), O({
|
|
84
|
+
theme: r,
|
|
85
|
+
name: n,
|
|
86
|
+
props: e
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function _({
|
|
90
|
+
props: e,
|
|
91
|
+
name: n
|
|
92
|
+
}) {
|
|
93
|
+
return P({
|
|
94
|
+
props: e,
|
|
95
|
+
name: n,
|
|
96
|
+
defaultTheme: m
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
k as a,
|
|
101
|
+
$ as b,
|
|
102
|
+
p as c,
|
|
103
|
+
j as d,
|
|
104
|
+
S as g,
|
|
105
|
+
h as r,
|
|
106
|
+
_ as u
|
|
107
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as D } from "./extends-Cyw62AD_.js";
|
|
2
|
-
import { _ as C,
|
|
3
|
-
import { P as i } from "./
|
|
2
|
+
import { _ as C, T as S } from "./ButtonBase-D6qhsxB0.js";
|
|
3
|
+
import { P as i } from "./createStyled-B96gjom1.js";
|
|
4
4
|
import v from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
6
|
const N = {
|
|
@@ -10,7 +10,8 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
10
10
|
enter: i.number,
|
|
11
11
|
exit: i.number,
|
|
12
12
|
appear: i.number
|
|
13
|
-
}).isRequired]) : null
|
|
13
|
+
}).isRequired]) : null;
|
|
14
|
+
process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({
|
|
14
15
|
enter: i.string,
|
|
15
16
|
exit: i.string,
|
|
16
17
|
active: i.string
|
|
@@ -21,9 +22,10 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
21
22
|
exit: i.string,
|
|
22
23
|
exitDone: i.string,
|
|
23
24
|
exitActive: i.string
|
|
24
|
-
})])
|
|
25
|
+
})]);
|
|
26
|
+
var y = function(a) {
|
|
25
27
|
return a.scrollTop;
|
|
26
|
-
}, x = "unmounted", f = "exited", c = "entering", h = "entered",
|
|
28
|
+
}, x = "unmounted", f = "exited", c = "entering", h = "entered", T = "exiting", l = /* @__PURE__ */ function(u) {
|
|
27
29
|
C(a, u);
|
|
28
30
|
function a(r, e) {
|
|
29
31
|
var t;
|
|
@@ -46,7 +48,7 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
46
48
|
var t = null;
|
|
47
49
|
if (e !== this.props) {
|
|
48
50
|
var n = this.state.status;
|
|
49
|
-
this.props.in ? n !== c && n !== h && (t = c) : (n === c || n === h) && (t =
|
|
51
|
+
this.props.in ? n !== c && n !== h && (t = c) : (n === c || n === h) && (t = T);
|
|
50
52
|
}
|
|
51
53
|
this.updateStatus(!1, t);
|
|
52
54
|
}, o.componentWillUnmount = function() {
|
|
@@ -72,7 +74,7 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
72
74
|
status: x
|
|
73
75
|
});
|
|
74
76
|
}, o.performEnter = function(e) {
|
|
75
|
-
var t = this, n = this.props.enter, s = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [s] : [b.findDOMNode(this), s], d = p[0], m = p[1],
|
|
77
|
+
var t = this, n = this.props.enter, s = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [s] : [b.findDOMNode(this), s], d = p[0], m = p[1], g = this.getTimeouts(), O = s ? g.appear : g.enter;
|
|
76
78
|
if (!e && !n || N.disabled) {
|
|
77
79
|
this.safeSetState({
|
|
78
80
|
status: h
|
|
@@ -103,7 +105,7 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
103
105
|
return;
|
|
104
106
|
}
|
|
105
107
|
this.props.onExit(s), this.safeSetState({
|
|
106
|
-
status:
|
|
108
|
+
status: T
|
|
107
109
|
}, function() {
|
|
108
110
|
e.props.onExiting(s), e.onTransitionEnd(n.exit, function() {
|
|
109
111
|
e.safeSetState({
|
|
@@ -341,9 +343,9 @@ l.UNMOUNTED = x;
|
|
|
341
343
|
l.EXITED = f;
|
|
342
344
|
l.ENTERING = c;
|
|
343
345
|
l.ENTERED = h;
|
|
344
|
-
l.EXITING =
|
|
345
|
-
const
|
|
346
|
-
function
|
|
346
|
+
l.EXITING = T;
|
|
347
|
+
const P = (u) => u.scrollTop;
|
|
348
|
+
function U(u, a) {
|
|
347
349
|
var o, r;
|
|
348
350
|
const {
|
|
349
351
|
timeout: e,
|
|
@@ -358,8 +360,6 @@ function w(u, a) {
|
|
|
358
360
|
}
|
|
359
361
|
export {
|
|
360
362
|
l as T,
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
w as g,
|
|
364
|
-
U as r
|
|
363
|
+
U as g,
|
|
364
|
+
P as r
|
|
365
365
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridcore/ui",
|
|
3
3
|
"description": "Hybrid Core UI Library",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.5",
|
|
5
5
|
"author": "Hybrid Core",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"type": "module",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@emotion/styled": "^11.10.6",
|
|
29
29
|
"@mui/icons-material": "^5.11.11",
|
|
30
30
|
"@mui/lab": "5.0.0-alpha.130",
|
|
31
|
-
"@mui/material": "
|
|
32
|
-
"@mui/x-data-grid": "
|
|
31
|
+
"@mui/material": "5.11.13",
|
|
32
|
+
"@mui/x-data-grid": "6.0.4",
|
|
33
33
|
"@mui/x-date-pickers": "6.3.0",
|
|
34
34
|
"@turf/turf": "^7.0.0",
|
|
35
35
|
"dayjs": "^1.11.7",
|