@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
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { g as h, d as m } from "./styled-Dm8rXzIG.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 { k as y } from "./createStyled-liRRhQcN.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 k() {
|
|
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 p(e, n) {
|
|
18
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...t) {
|
|
19
|
+
return e(...t) || n(...t);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function l(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] = l(r[u], o[u]);
|
|
31
|
+
}));
|
|
32
|
+
} else s[t] === void 0 && (s[t] = e[t]);
|
|
33
|
+
}), s;
|
|
34
|
+
}
|
|
35
|
+
function $(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] = h(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 : l(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
|
+
$ as a,
|
|
101
|
+
j as b,
|
|
102
|
+
k as c,
|
|
103
|
+
p as d,
|
|
104
|
+
S as g,
|
|
105
|
+
l 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, d as S } from "./ButtonBase-DJz-TFGO.js";
|
|
3
|
+
import { P as i } from "./createStyled-liRRhQcN.js";
|
|
4
4
|
import v from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
6
|
const N = {
|
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.4",
|
|
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",
|