@hybridcore/ui 1.1.3 → 1.3.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/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
- package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
- package/dist/Checkbox-DP6_qp1v.js +469 -0
- package/dist/Collapse-9egEADkh.js +296 -0
- package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
- package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
- package/dist/FormControlLabel-j_atSYQA.js +827 -0
- package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
- package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
- package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
- package/dist/ListItem-BFDUUjHt.js +428 -0
- package/dist/MenuItem-BejUFNIP.js +233 -0
- package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
- package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
- package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
- package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
- package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
- package/dist/components/card/index.js +5 -5
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/index.js +34 -0
- package/dist/components/collapsible-card/style.js +575 -0
- package/dist/components/confirm/dialog.js +5 -5
- package/dist/components/container/index.js +6 -6
- package/dist/components/context-menu/index.js +191 -603
- 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 +7 -5
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +2 -2
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/helpers/ol.js +2 -2
- package/dist/components/map/index.js +2 -2
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +89 -6
- package/dist/components/search-input/index.js +3 -3
- package/dist/components/template-property-filters/index.js +78 -0
- package/dist/components/template-property-filters/property.js +7019 -0
- package/dist/components/tree-select/index.js +14 -13
- package/dist/components/treeview-filter/index.js +263 -328
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
- package/dist/createSvgIcon-R_PakhKf.js +213 -0
- package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
- package/dist/index-C7W2wuUG.js +609 -0
- package/dist/index-DHnXB0CB.js +287 -0
- package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
- package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
- package/dist/main.d.ts +158 -0
- package/dist/main.js +33 -29
- package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
- package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
- package/dist/styled-CHMAYxVs.js +142 -0
- package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
- package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
- package/dist/useThemeProps-D4or2IlT.js +62 -0
- package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
- package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
- package/package.json +1 -1
- package/dist/Checkbox-DostZSwR.js +0 -673
- package/dist/index-Bw_m9ult.js +0 -1105
- package/dist/index-wW2D1aTG.js +0 -957
- package/dist/styled-C43K9x7T.js +0 -229
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { _ as E, a as l } from "./extends-C3382pL0.js";
|
|
2
|
+
import { a as W, i as z, s as I, c as q, g as B, b as G, e as H } from "./createTheme-oOCi1S_n.js";
|
|
3
|
+
const J = ["ownerState"], K = ["variants"], Q = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
4
|
+
function U(e) {
|
|
5
|
+
return Object.keys(e).length === 0;
|
|
6
|
+
}
|
|
7
|
+
function X(e) {
|
|
8
|
+
return typeof e == "string" && // 96 is one less than the char code
|
|
9
|
+
// for "a" so this is checking that
|
|
10
|
+
// it's a lowercase character
|
|
11
|
+
e.charCodeAt(0) > 96;
|
|
12
|
+
}
|
|
13
|
+
function A(e) {
|
|
14
|
+
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
15
|
+
}
|
|
16
|
+
const Y = W(), $ = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
17
|
+
function w({
|
|
18
|
+
defaultTheme: e,
|
|
19
|
+
theme: i,
|
|
20
|
+
themeId: o
|
|
21
|
+
}) {
|
|
22
|
+
return U(i) ? e : i[o] || i;
|
|
23
|
+
}
|
|
24
|
+
function Z(e) {
|
|
25
|
+
return e ? (i, o) => o[e] : null;
|
|
26
|
+
}
|
|
27
|
+
function x(e, i) {
|
|
28
|
+
let {
|
|
29
|
+
ownerState: o
|
|
30
|
+
} = i, m = E(i, J);
|
|
31
|
+
const u = typeof e == "function" ? e(l({
|
|
32
|
+
ownerState: o
|
|
33
|
+
}, m)) : e;
|
|
34
|
+
if (Array.isArray(u))
|
|
35
|
+
return u.flatMap((h) => x(h, l({
|
|
36
|
+
ownerState: o
|
|
37
|
+
}, m)));
|
|
38
|
+
if (u && typeof u == "object" && Array.isArray(u.variants)) {
|
|
39
|
+
const {
|
|
40
|
+
variants: h = []
|
|
41
|
+
} = u;
|
|
42
|
+
let d = E(u, K);
|
|
43
|
+
return h.forEach((t) => {
|
|
44
|
+
let s = !0;
|
|
45
|
+
typeof t.props == "function" ? s = t.props(l({
|
|
46
|
+
ownerState: o
|
|
47
|
+
}, m, o)) : Object.keys(t.props).forEach((p) => {
|
|
48
|
+
(o == null ? void 0 : o[p]) !== t.props[p] && m[p] !== t.props[p] && (s = !1);
|
|
49
|
+
}), s && (Array.isArray(d) || (d = [d]), d.push(typeof t.style == "function" ? t.style(l({
|
|
50
|
+
ownerState: o
|
|
51
|
+
}, m, o)) : t.style));
|
|
52
|
+
}), d;
|
|
53
|
+
}
|
|
54
|
+
return u;
|
|
55
|
+
}
|
|
56
|
+
function g(e = {}) {
|
|
57
|
+
const {
|
|
58
|
+
themeId: i,
|
|
59
|
+
defaultTheme: o = Y,
|
|
60
|
+
rootShouldForwardProp: m = A,
|
|
61
|
+
slotShouldForwardProp: u = A
|
|
62
|
+
} = e, h = (a) => G(l({}, a, {
|
|
63
|
+
theme: w(l({}, a, {
|
|
64
|
+
defaultTheme: o,
|
|
65
|
+
themeId: i
|
|
66
|
+
}))
|
|
67
|
+
}));
|
|
68
|
+
return h.__mui_systemSx = !0, (a, d = {}) => {
|
|
69
|
+
z(a, (n) => n.filter((f) => !(f != null && f.__mui_systemSx)));
|
|
70
|
+
const {
|
|
71
|
+
name: t,
|
|
72
|
+
slot: s,
|
|
73
|
+
skipVariantsResolver: p,
|
|
74
|
+
skipSx: b,
|
|
75
|
+
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
76
|
+
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
77
|
+
overridesResolver: F = Z($(s))
|
|
78
|
+
} = d, j = E(d, Q), T = p !== void 0 ? p : (
|
|
79
|
+
// TODO v6: remove `Root` in the next major release
|
|
80
|
+
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
81
|
+
s && s !== "Root" && s !== "root" || !1
|
|
82
|
+
), D = b || !1;
|
|
83
|
+
let k;
|
|
84
|
+
process.env.NODE_ENV !== "production" && t && (k = `${t}-${$(s || "Root")}`);
|
|
85
|
+
let v = A;
|
|
86
|
+
s === "Root" || s === "root" ? v = m : s ? v = u : X(a) && (v = void 0);
|
|
87
|
+
const O = I(a, l({
|
|
88
|
+
shouldForwardProp: v,
|
|
89
|
+
label: k
|
|
90
|
+
}, j)), C = (n) => typeof n == "function" && n.__emotion_real !== n || H(n) ? (f) => x(n, l({}, f, {
|
|
91
|
+
theme: w({
|
|
92
|
+
theme: f.theme,
|
|
93
|
+
defaultTheme: o,
|
|
94
|
+
themeId: i
|
|
95
|
+
})
|
|
96
|
+
})) : n, P = (n, ...f) => {
|
|
97
|
+
let R = C(n);
|
|
98
|
+
const y = f ? f.map(C) : [];
|
|
99
|
+
t && F && y.push((r) => {
|
|
100
|
+
const c = w(l({}, r, {
|
|
101
|
+
defaultTheme: o,
|
|
102
|
+
themeId: i
|
|
103
|
+
}));
|
|
104
|
+
if (!c.components || !c.components[t] || !c.components[t].styleOverrides)
|
|
105
|
+
return null;
|
|
106
|
+
const S = c.components[t].styleOverrides, _ = {};
|
|
107
|
+
return Object.entries(S).forEach(([L, M]) => {
|
|
108
|
+
_[L] = x(M, l({}, r, {
|
|
109
|
+
theme: c
|
|
110
|
+
}));
|
|
111
|
+
}), F(r, _);
|
|
112
|
+
}), t && !T && y.push((r) => {
|
|
113
|
+
var c;
|
|
114
|
+
const S = w(l({}, r, {
|
|
115
|
+
defaultTheme: o,
|
|
116
|
+
themeId: i
|
|
117
|
+
})), _ = S == null || (c = S.components) == null || (c = c[t]) == null ? void 0 : c.variants;
|
|
118
|
+
return x({
|
|
119
|
+
variants: _
|
|
120
|
+
}, l({}, r, {
|
|
121
|
+
theme: S
|
|
122
|
+
}));
|
|
123
|
+
}), D || y.push(h);
|
|
124
|
+
const V = y.length - f.length;
|
|
125
|
+
if (Array.isArray(n) && V > 0) {
|
|
126
|
+
const r = new Array(V).fill("");
|
|
127
|
+
R = [...n, ...r], R.raw = [...n.raw, ...r];
|
|
128
|
+
}
|
|
129
|
+
const N = O(R, ...y);
|
|
130
|
+
if (process.env.NODE_ENV !== "production") {
|
|
131
|
+
let r;
|
|
132
|
+
t && (r = `${t}${q(s || "")}`), r === void 0 && (r = `Styled(${B(a)})`), N.displayName = r;
|
|
133
|
+
}
|
|
134
|
+
return a.muiName && (N.muiName = a.muiName), N;
|
|
135
|
+
};
|
|
136
|
+
return O.withConfig && (P.withConfig = O.withConfig), P;
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
const oe = g();
|
|
140
|
+
export {
|
|
141
|
+
oe as s
|
|
142
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as A, o as De, d as P, e as _e, f as K, c as Pe, g as Re, p as Ie, a as xe, q as Ve, t as ze, u as ne, b as Oe, v as Fe } from "./createTheme-oOCi1S_n.js";
|
|
2
2
|
import { _ as W, a as _ } from "./extends-C3382pL0.js";
|
|
3
3
|
var U = {}, $e = { exports: {} };
|
|
4
4
|
(function(e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
2
|
import { ThemeContext as o } from "@emotion/react";
|
|
3
|
-
import { a as m } from "./createTheme-
|
|
3
|
+
import { a as m } from "./createTheme-oOCi1S_n.js";
|
|
4
4
|
function r(e) {
|
|
5
5
|
return Object.keys(e).length === 0;
|
|
6
6
|
}
|
|
@@ -13,5 +13,6 @@ function f(e = u) {
|
|
|
13
13
|
return s(e);
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
+
s as a,
|
|
16
17
|
f as u
|
|
17
18
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
import { d as r, T as s } from "./styled-
|
|
3
|
-
import { u as t } from "./useTheme-
|
|
2
|
+
import { d as r, T as s } from "./styled-Wx2vv4j8.js";
|
|
3
|
+
import { u as t } from "./useTheme-BI40KZ7w.js";
|
|
4
4
|
function a() {
|
|
5
5
|
const e = t(r);
|
|
6
6
|
return process.env.NODE_ENV !== "production" && o.useDebugValue(e), e[s] || e;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { c as a, d as f, T as u } from "./styled-Wx2vv4j8.js";
|
|
2
|
+
import { f as o } from "./createTheme-oOCi1S_n.js";
|
|
3
|
+
import { u as h } from "./useThemeProps-DT5EdhcP.js";
|
|
4
|
+
function g(e, t = 0, s = 1) {
|
|
5
|
+
return process.env.NODE_ENV !== "production" && (e < t || e > s) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${s}].`), a(e, t, s);
|
|
6
|
+
}
|
|
7
|
+
function l(e) {
|
|
8
|
+
e = e.slice(1);
|
|
9
|
+
const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
10
|
+
let s = e.match(t);
|
|
11
|
+
return s && s[0].length === 1 && (s = s.map((r) => r + r)), s ? `rgb${s.length === 4 ? "a" : ""}(${s.map((r, n) => n < 3 ? parseInt(r, 16) : Math.round(parseInt(r, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
12
|
+
}
|
|
13
|
+
function i(e) {
|
|
14
|
+
if (e.type)
|
|
15
|
+
return e;
|
|
16
|
+
if (e.charAt(0) === "#")
|
|
17
|
+
return i(l(e));
|
|
18
|
+
const t = e.indexOf("("), s = e.substring(0, t);
|
|
19
|
+
if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(s) === -1)
|
|
20
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
21
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : o(9, e));
|
|
22
|
+
let r = e.substring(t + 1, e.length - 1), n;
|
|
23
|
+
if (s === "color") {
|
|
24
|
+
if (r = r.split(" "), n = r.shift(), r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(n) === -1)
|
|
25
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${n}\` color space.
|
|
26
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : o(10, n));
|
|
27
|
+
} else
|
|
28
|
+
r = r.split(",");
|
|
29
|
+
return r = r.map((p) => parseFloat(p)), {
|
|
30
|
+
type: s,
|
|
31
|
+
values: r,
|
|
32
|
+
colorSpace: n
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function c(e) {
|
|
36
|
+
const {
|
|
37
|
+
type: t,
|
|
38
|
+
colorSpace: s
|
|
39
|
+
} = e;
|
|
40
|
+
let {
|
|
41
|
+
values: r
|
|
42
|
+
} = e;
|
|
43
|
+
return t.indexOf("rgb") !== -1 ? r = r.map((n, p) => p < 3 ? parseInt(n, 10) : n) : t.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), t.indexOf("color") !== -1 ? r = `${s} ${r.join(" ")}` : r = `${r.join(", ")}`, `${t}(${r})`;
|
|
44
|
+
}
|
|
45
|
+
function b(e, t) {
|
|
46
|
+
return e = i(e), t = g(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, c(e);
|
|
47
|
+
}
|
|
48
|
+
function E({
|
|
49
|
+
props: e,
|
|
50
|
+
name: t
|
|
51
|
+
}) {
|
|
52
|
+
return h({
|
|
53
|
+
props: e,
|
|
54
|
+
name: t,
|
|
55
|
+
defaultTheme: f,
|
|
56
|
+
themeId: u
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
b as a,
|
|
61
|
+
E as u
|
|
62
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as n } from "./chainPropTypes-
|
|
2
|
-
import { u as p } from "./useTheme-
|
|
1
|
+
import { r as n } from "./chainPropTypes-BmidnkZm.js";
|
|
2
|
+
import { u as p } from "./useTheme-BI40KZ7w.js";
|
|
3
3
|
function m(t) {
|
|
4
4
|
const {
|
|
5
5
|
theme: e,
|
|
@@ -8,7 +8,7 @@ function m(t) {
|
|
|
8
8
|
} = t;
|
|
9
9
|
return !e || !e.components || !e.components[o] || !e.components[o].defaultProps ? r : n(e.components[o].defaultProps, r);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function a({
|
|
12
12
|
props: t,
|
|
13
13
|
name: e,
|
|
14
14
|
defaultTheme: o,
|
|
@@ -22,5 +22,6 @@ function P({
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
m as g,
|
|
26
|
+
a as u
|
|
26
27
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as D } from "./extends-C3382pL0.js";
|
|
2
|
-
import { _ as C, T as S } from "./ButtonBase-
|
|
3
|
-
import { P as i } from "./createTheme-
|
|
2
|
+
import { _ as C, T as S } from "./ButtonBase-C7CHOX3y.js";
|
|
3
|
+
import { P as i } from "./createTheme-oOCi1S_n.js";
|
|
4
4
|
import v from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
6
|
const N = {
|
|
@@ -10,8 +10,7 @@ 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
|
|
14
|
-
process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({
|
|
13
|
+
}).isRequired]) : null, P = process.env.NODE_ENV !== "production" ? i.oneOfType([i.string, i.shape({
|
|
15
14
|
enter: i.string,
|
|
16
15
|
exit: i.string,
|
|
17
16
|
active: i.string
|
|
@@ -22,8 +21,7 @@ process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({
|
|
|
22
21
|
exit: i.string,
|
|
23
22
|
exitDone: i.string,
|
|
24
23
|
exitActive: i.string
|
|
25
|
-
})])
|
|
26
|
-
var y = function(a) {
|
|
24
|
+
})]) : null, y = function(a) {
|
|
27
25
|
return a.scrollTop;
|
|
28
26
|
}, x = "unmounted", f = "exited", c = "entering", h = "entered", T = "exiting", l = /* @__PURE__ */ function(u) {
|
|
29
27
|
C(a, u);
|
|
@@ -344,8 +342,8 @@ l.EXITED = f;
|
|
|
344
342
|
l.ENTERING = c;
|
|
345
343
|
l.ENTERED = h;
|
|
346
344
|
l.EXITING = T;
|
|
347
|
-
const
|
|
348
|
-
function
|
|
345
|
+
const U = (u) => u.scrollTop;
|
|
346
|
+
function w(u, a) {
|
|
349
347
|
var o, r;
|
|
350
348
|
const {
|
|
351
349
|
timeout: e,
|
|
@@ -360,6 +358,8 @@ function U(u, a) {
|
|
|
360
358
|
}
|
|
361
359
|
export {
|
|
362
360
|
l as T,
|
|
363
|
-
|
|
364
|
-
|
|
361
|
+
P as c,
|
|
362
|
+
y as f,
|
|
363
|
+
w as g,
|
|
364
|
+
U as r
|
|
365
365
|
};
|