@hybridcore/ui 1.3.1 → 1.3.3
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-DZH9mTSs.js → ButtonBase-DE8d_U2E.js} +9 -9
- package/dist/{CardContent-CUZ9jH0z.js → CardContent-Du2i427Y.js} +4 -4
- package/dist/{Checkbox-RTVyZJPK.js → Checkbox-BGNAqLl0.js} +7 -7
- package/dist/{Collapse-9zKUPtnk.js → Collapse-FRd0_2Pt.js} +7 -7
- package/dist/{DialogContent-ijWcBrtC.js → DialogContent-CKeAZ3Ts.js} +12 -12
- package/dist/{FormControl-C0mOl3mC.js → FormControl-ChTmxscy.js} +399 -545
- package/dist/{FormControlLabel-BK6N5zeb.js → FormControlLabel-Df7csguX.js} +12 -12
- package/dist/{IconButton-D7MS15zj.js → IconButton-Cu_XEJB2.js} +5 -5
- package/dist/{Input-CIRMXtVU.js → Input-DU22-Zbo.js} +6 -6
- package/dist/InputAdornment-6aeADcPO.js +155 -0
- package/dist/{List-D26ubZNL.js → List-nOXr-cFJ.js} +6 -6
- package/dist/{ListItem-B0ZWvhCF.js → ListItem-RJvRMwkZ.js} +6 -6
- package/dist/{MenuItem-CI7xGSGZ.js → MenuItem-DF45rx2m.js} +13 -13
- package/dist/{OutlinedInput-aT_qMbXR.js → OutlinedInput-DJCHjkR3.js} +6 -6
- package/dist/{Paper-DuVFfsLZ.js → Paper-CD_ma6NJ.js} +5 -5
- package/dist/{Select-B625rLnY.js → Select-C1jD_gBQ.js} +15 -15
- package/dist/{Source-CnCcu5UP.js → Source-Hf_SiWEW.js} +123 -123
- package/dist/{Text-BT5kPHOo.js → Text-D6oGbCdi.js} +41 -41
- package/dist/{Typography-CJu4IM_v.js → Typography-C2BkMNk-.js} +4 -4
- package/dist/{chainPropTypes-DHF53jrt.js → chainPropTypes-GRMJ22CO.js} +3 -3
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +10 -10
- package/dist/components/confirm/dialog.js +6 -6
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +10 -10
- 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/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/date-time-picker/index.js +4 -4
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +2 -2
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +7 -6
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +19 -19
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/helpers/mapbox.js +3 -3
- package/dist/components/map/helpers/ol.js +3 -3
- package/dist/components/map/logic.js +2 -2
- package/dist/components/map/styled.js +2 -2
- package/dist/components/search-input/index.js +10 -9
- package/dist/components/template-property-filters/index.js +49 -481
- 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 +9 -9
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createSvgIcon-6wv0RQr3.js +63 -0
- package/dist/{createSvgIcon-uzHr0c0Y.js → createSvgIcon-DPZ7UbxM.js} +4 -4
- package/dist/{createTheme-BynOz6vJ.js → createTheme-C3DKplhE.js} +22 -22
- package/dist/{exactProp-BgztuVaT.js → exactProp--3vlJ9a9.js} +3 -3
- package/dist/{extends-C3382pL0.js → extends-Cyw62AD_.js} +2 -2
- package/dist/{has-9_asnBxn.js → has-CjQtZJa9.js} +26 -26
- package/dist/{index-C5fnQULf.js → index-CtuBGOmk.js} +10 -10
- package/dist/{index-CEj0z7vR.js → index-DzFccwzL.js} +6 -6
- package/dist/{listItemTextClasses-Lb51gZ03.js → listItemTextClasses-2BAu-hye.js} +4 -4
- package/dist/main.d.ts +6 -0
- package/dist/main.js +402 -45
- package/dist/{ol-q6vTiF_t.js → ol-BUKJ1urU.js} +3 -3
- package/dist/property-BSufYw1E.js +6888 -0
- package/dist/requirePropFactory-BItwGLRQ.js +18 -0
- package/dist/{resolveComponentProps-D6QBz-nM.js → resolveComponentProps-DozbaB8e.js} +8 -8
- package/dist/{styled-C3GYAbYC.js → styled-CVWGE9ik.js} +22 -22
- package/dist/{styled-B02_UC50.js → styled-iyoioZCr.js} +20 -20
- package/dist/{useTheme-rmCSkfoY.js → useTheme--x3BjP9A.js} +3 -4
- package/dist/{useTheme-BYHXX22B.js → useTheme-pWltVFb2.js} +2 -2
- package/dist/{useThemeProps-DzfjJKh1.js → useThemeProps-C90JF0Qc.js} +3 -3
- package/dist/{useThemeProps-CR6NzUGU.js → useThemeProps-DNZoozBw.js} +4 -5
- package/dist/{utils-CIiFkdEJ.js → utils-qcu0RzdN.js} +8 -8
- package/package.json +2 -2
- package/dist/createSvgIcon-CpwgcuKn.js +0 -77
- package/dist/property-DyLBS7uO.js +0 -7020
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { _ as d } from "./extends-Cyw62AD_.js";
|
|
2
|
+
function T(f, t) {
|
|
3
|
+
if (process.env.NODE_ENV === "production")
|
|
4
|
+
return () => null;
|
|
5
|
+
const n = t ? d({}, t.propTypes) : null;
|
|
6
|
+
return (o) => (e, r, l, p, u, ...y) => {
|
|
7
|
+
const c = u || r, i = n == null ? void 0 : n[c];
|
|
8
|
+
if (i) {
|
|
9
|
+
const s = i(e, r, l, p, u, ...y);
|
|
10
|
+
if (s)
|
|
11
|
+
return s;
|
|
12
|
+
}
|
|
13
|
+
return typeof e[r] < "u" && !e[o] ? new Error(`The prop \`${c}\` of \`${f}\` can only be used together with the \`${o}\` prop.`) : null;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
T as r
|
|
18
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as o } from "./extends-Cyw62AD_.js";
|
|
2
2
|
import { i as g } from "./isHostComponent-kiaBvYVo.js";
|
|
3
|
-
import { c as v } from "./chainPropTypes-
|
|
3
|
+
import { c as v } from "./chainPropTypes-GRMJ22CO.js";
|
|
4
4
|
function O(n, s, e) {
|
|
5
5
|
return n === void 0 || g(n) ? s : o({}, s, {
|
|
6
6
|
ownerState: o({}, s.ownerState, e)
|
|
@@ -31,15 +31,15 @@ function P(n) {
|
|
|
31
31
|
className: u
|
|
32
32
|
} = n;
|
|
33
33
|
if (!s) {
|
|
34
|
-
const f = v(e == null ? void 0 : e.className, u, l == null ? void 0 : l.className, t == null ? void 0 : t.className), m = o({}, e == null ? void 0 : e.style, l == null ? void 0 : l.style, t == null ? void 0 : t.style),
|
|
35
|
-
return f.length > 0 && (
|
|
36
|
-
props:
|
|
34
|
+
const f = v(e == null ? void 0 : e.className, u, l == null ? void 0 : l.className, t == null ? void 0 : t.className), m = o({}, e == null ? void 0 : e.style, l == null ? void 0 : l.style, t == null ? void 0 : t.style), a = o({}, e, l, t);
|
|
35
|
+
return f.length > 0 && (a.className = f), Object.keys(m).length > 0 && (a.style = m), {
|
|
36
|
+
props: a,
|
|
37
37
|
internalRef: void 0
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
const N = p(o({}, l, t)), h = y(t), S = y(l), r = s(N), d = v(r == null ? void 0 : r.className, e == null ? void 0 : e.className, u, l == null ? void 0 : l.className, t == null ? void 0 : t.className), c = o({}, r == null ? void 0 : r.style, e == null ? void 0 : e.style, l == null ? void 0 : l.style, t == null ? void 0 : t.style),
|
|
41
|
-
return d.length > 0 && (
|
|
42
|
-
props:
|
|
40
|
+
const N = p(o({}, l, t)), h = y(t), S = y(l), r = s(N), d = v(r == null ? void 0 : r.className, e == null ? void 0 : e.className, u, l == null ? void 0 : l.className, t == null ? void 0 : t.className), c = o({}, r == null ? void 0 : r.style, e == null ? void 0 : e.style, l == null ? void 0 : l.style, t == null ? void 0 : t.style), i = o({}, r, e, S, h);
|
|
41
|
+
return d.length > 0 && (i.className = d), Object.keys(c).length > 0 && (i.style = c), {
|
|
42
|
+
props: i,
|
|
43
43
|
internalRef: r.ref
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as E, _ as l } from "./extends-Cyw62AD_.js";
|
|
2
|
+
import { l as W, q, t as z, a as I, j as B, p as G, i as H } from "./createTheme-C3DKplhE.js";
|
|
3
3
|
const J = ["ownerState"], K = ["variants"], Q = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
4
4
|
function U(e) {
|
|
5
5
|
return Object.keys(e).length === 0;
|
|
@@ -13,7 +13,7 @@ function X(e) {
|
|
|
13
13
|
function A(e) {
|
|
14
14
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
15
15
|
}
|
|
16
|
-
const Y = W(),
|
|
16
|
+
const Y = W(), V = (e) => e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
17
17
|
function w({
|
|
18
18
|
defaultTheme: e,
|
|
19
19
|
theme: i,
|
|
@@ -66,36 +66,36 @@ function g(e = {}) {
|
|
|
66
66
|
}))
|
|
67
67
|
}));
|
|
68
68
|
return h.__mui_systemSx = !0, (a, d = {}) => {
|
|
69
|
-
|
|
69
|
+
q(a, (n) => n.filter((f) => !(f != null && f.__mui_systemSx)));
|
|
70
70
|
const {
|
|
71
71
|
name: t,
|
|
72
72
|
slot: s,
|
|
73
73
|
skipVariantsResolver: p,
|
|
74
|
-
skipSx:
|
|
74
|
+
skipSx: $,
|
|
75
75
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
76
76
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
77
|
-
overridesResolver: F = Z(
|
|
78
|
-
} = d,
|
|
77
|
+
overridesResolver: F = Z(V(s))
|
|
78
|
+
} = d, T = E(d, Q), b = p !== void 0 ? p : (
|
|
79
79
|
// TODO v6: remove `Root` in the next major release
|
|
80
80
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
81
81
|
s && s !== "Root" && s !== "root" || !1
|
|
82
|
-
), D =
|
|
83
|
-
let
|
|
84
|
-
process.env.NODE_ENV !== "production" && t && (
|
|
82
|
+
), D = $ || !1;
|
|
83
|
+
let j;
|
|
84
|
+
process.env.NODE_ENV !== "production" && t && (j = `${t}-${V(s || "Root")}`);
|
|
85
85
|
let v = A;
|
|
86
86
|
s === "Root" || s === "root" ? v = m : s ? v = u : X(a) && (v = void 0);
|
|
87
|
-
const O =
|
|
87
|
+
const O = z(a, l({
|
|
88
88
|
shouldForwardProp: v,
|
|
89
|
-
label:
|
|
90
|
-
},
|
|
89
|
+
label: j
|
|
90
|
+
}, T)), k = (n) => typeof n == "function" && n.__emotion_real !== n || H(n) ? (f) => x(n, l({}, f, {
|
|
91
91
|
theme: w({
|
|
92
92
|
theme: f.theme,
|
|
93
93
|
defaultTheme: o,
|
|
94
94
|
themeId: i
|
|
95
95
|
})
|
|
96
|
-
})) : n,
|
|
97
|
-
let R =
|
|
98
|
-
const y = f ? f.map(
|
|
96
|
+
})) : n, C = (n, ...f) => {
|
|
97
|
+
let R = k(n);
|
|
98
|
+
const y = f ? f.map(k) : [];
|
|
99
99
|
t && F && y.push((r) => {
|
|
100
100
|
const c = w(l({}, r, {
|
|
101
101
|
defaultTheme: o,
|
|
@@ -109,7 +109,7 @@ function g(e = {}) {
|
|
|
109
109
|
theme: c
|
|
110
110
|
}));
|
|
111
111
|
}), F(r, _);
|
|
112
|
-
}), t && !
|
|
112
|
+
}), t && !b && y.push((r) => {
|
|
113
113
|
var c;
|
|
114
114
|
const S = w(l({}, r, {
|
|
115
115
|
defaultTheme: o,
|
|
@@ -121,19 +121,19 @@ function g(e = {}) {
|
|
|
121
121
|
theme: S
|
|
122
122
|
}));
|
|
123
123
|
}), D || y.push(h);
|
|
124
|
-
const
|
|
125
|
-
if (Array.isArray(n) &&
|
|
126
|
-
const r = new Array(
|
|
124
|
+
const P = y.length - f.length;
|
|
125
|
+
if (Array.isArray(n) && P > 0) {
|
|
126
|
+
const r = new Array(P).fill("");
|
|
127
127
|
R = [...n, ...r], R.raw = [...n.raw, ...r];
|
|
128
128
|
}
|
|
129
129
|
const N = O(R, ...y);
|
|
130
130
|
if (process.env.NODE_ENV !== "production") {
|
|
131
131
|
let r;
|
|
132
|
-
t && (r = `${t}${
|
|
132
|
+
t && (r = `${t}${I(s || "")}`), r === void 0 && (r = `Styled(${B(a)})`), N.displayName = r;
|
|
133
133
|
}
|
|
134
134
|
return a.muiName && (N.muiName = a.muiName), N;
|
|
135
135
|
};
|
|
136
|
-
return O.withConfig && (
|
|
136
|
+
return O.withConfig && (C.withConfig = O.withConfig), C;
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
const oe = g();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { e as A, s as De, d as P, i as _e, f as K, a as Pe, j as Re, k as Ie, l as xe, m as Ve, n as ze, o as ne, p as Oe, u as Fe } from "./createTheme-C3DKplhE.js";
|
|
2
|
+
import { a as q, _ } from "./extends-Cyw62AD_.js";
|
|
3
3
|
var U = {}, $e = { exports: {} };
|
|
4
4
|
(function(e) {
|
|
5
5
|
function t(r) {
|
|
@@ -10,7 +10,7 @@ var U = {}, $e = { exports: {} };
|
|
|
10
10
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
11
11
|
})($e);
|
|
12
12
|
var Se = $e.exports, Z = { exports: {} }, ue;
|
|
13
|
-
function
|
|
13
|
+
function We() {
|
|
14
14
|
return ue || (ue = 1, function(e) {
|
|
15
15
|
function t() {
|
|
16
16
|
return e.exports = t = Object.assign ? Object.assign.bind() : function(r) {
|
|
@@ -25,7 +25,7 @@ function qe() {
|
|
|
25
25
|
}(Z)), Z.exports;
|
|
26
26
|
}
|
|
27
27
|
var ee = { exports: {} }, ce;
|
|
28
|
-
function
|
|
28
|
+
function qe() {
|
|
29
29
|
return ce || (ce = 1, function(e) {
|
|
30
30
|
function t(r, n) {
|
|
31
31
|
if (r == null) return {};
|
|
@@ -71,7 +71,7 @@ const Ue = /* @__PURE__ */ A(De), Le = /* @__PURE__ */ Object.freeze(/* @__PURE_
|
|
|
71
71
|
function tt(e) {
|
|
72
72
|
const {
|
|
73
73
|
sx: t
|
|
74
|
-
} = e, r =
|
|
74
|
+
} = e, r = q(e, Ze), {
|
|
75
75
|
systemProps: n,
|
|
76
76
|
otherProps: o
|
|
77
77
|
} = et(r);
|
|
@@ -97,7 +97,7 @@ Object.defineProperty(U, "__esModule", {
|
|
|
97
97
|
var ot = U.default = yt;
|
|
98
98
|
U.shouldForwardProp = G;
|
|
99
99
|
U.systemDefaultTheme = void 0;
|
|
100
|
-
var O = R(
|
|
100
|
+
var O = R(We()), re = R(qe()), fe = pt(Ue), at = He, st = R(Je), it = R(Xe), ut = R(Qe), ct = R(nt);
|
|
101
101
|
const ft = ["ownerState"], lt = ["variants"], dt = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
102
102
|
function Ee(e) {
|
|
103
103
|
if (typeof WeakMap != "function") return null;
|
|
@@ -478,7 +478,7 @@ function zt(e, t, r, n = 1) {
|
|
|
478
478
|
values: f
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const W = {
|
|
482
482
|
black: "#000",
|
|
483
483
|
white: "#fff"
|
|
484
484
|
}, Ft = {
|
|
@@ -586,7 +586,7 @@ const q = {
|
|
|
586
586
|
A200: "#69f0ae",
|
|
587
587
|
A400: "#00e676",
|
|
588
588
|
A700: "#00c853"
|
|
589
|
-
},
|
|
589
|
+
}, Wt = ["mode", "contrastThreshold", "tonalOffset"], me = {
|
|
590
590
|
// The colors used to style the text.
|
|
591
591
|
text: {
|
|
592
592
|
// The most important text.
|
|
@@ -601,8 +601,8 @@ const q = {
|
|
|
601
601
|
// The background colors used to style the surfaces.
|
|
602
602
|
// Consistency between these values is important.
|
|
603
603
|
background: {
|
|
604
|
-
paper:
|
|
605
|
-
default:
|
|
604
|
+
paper: W.white,
|
|
605
|
+
default: W.white
|
|
606
606
|
},
|
|
607
607
|
// The colors used to style the action elements.
|
|
608
608
|
action: {
|
|
@@ -625,7 +625,7 @@ const q = {
|
|
|
625
625
|
}
|
|
626
626
|
}, te = {
|
|
627
627
|
text: {
|
|
628
|
-
primary:
|
|
628
|
+
primary: W.white,
|
|
629
629
|
secondary: "rgba(255, 255, 255, 0.7)",
|
|
630
630
|
disabled: "rgba(255, 255, 255, 0.5)",
|
|
631
631
|
icon: "rgba(255, 255, 255, 0.5)"
|
|
@@ -636,7 +636,7 @@ const q = {
|
|
|
636
636
|
default: "#121212"
|
|
637
637
|
},
|
|
638
638
|
action: {
|
|
639
|
-
active:
|
|
639
|
+
active: W.white,
|
|
640
640
|
hover: "rgba(255, 255, 255, 0.08)",
|
|
641
641
|
hoverOpacity: 0.08,
|
|
642
642
|
selected: "rgba(255, 255, 255, 0.16)",
|
|
@@ -653,7 +653,7 @@ function ge(e, t, r, n) {
|
|
|
653
653
|
const o = n.light || n, a = n.dark || n * 1.5;
|
|
654
654
|
e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = Nt(e.main, o) : t === "dark" && (e.dark = At(e.main, a)));
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function qt(e = "light") {
|
|
657
657
|
return e === "dark" ? {
|
|
658
658
|
main: T[200],
|
|
659
659
|
light: T[50],
|
|
@@ -725,7 +725,7 @@ function Jt(e) {
|
|
|
725
725
|
mode: t = "light",
|
|
726
726
|
contrastThreshold: r = 3,
|
|
727
727
|
tonalOffset: n = 0.2
|
|
728
|
-
} = e, o =
|
|
728
|
+
} = e, o = q(e, Wt), a = e.primary || qt(t), s = e.secondary || Ut(t), f = e.error || Lt(t), u = e.info || Ht(t), c = e.success || Bt(t), l = e.warning || Gt(t);
|
|
729
729
|
function b(i) {
|
|
730
730
|
const m = pe(i, te.text.primary) >= r ? te.text.primary : me.text.primary;
|
|
731
731
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -767,7 +767,7 @@ const theme2 = createTheme({ palette: {
|
|
|
767
767
|
};
|
|
768
768
|
return process.env.NODE_ENV !== "production" && (S[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), P(_({
|
|
769
769
|
// A collection of common colors.
|
|
770
|
-
common: _({},
|
|
770
|
+
common: _({}, W),
|
|
771
771
|
// prevent mutable object.
|
|
772
772
|
// The palette mode, can be light or dark.
|
|
773
773
|
mode: t,
|
|
@@ -842,7 +842,7 @@ function Yt(e, t) {
|
|
|
842
842
|
// Apply the CSS properties to all the variants.
|
|
843
843
|
allVariants: l,
|
|
844
844
|
pxToRem: b
|
|
845
|
-
} = r, d =
|
|
845
|
+
} = r, d = q(r, Kt);
|
|
846
846
|
process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof c != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
847
847
|
const S = o / 14, x = b || ((g) => `${g / c * S}rem`), i = (g, w, N, L, y) => _({
|
|
848
848
|
fontFamily: n,
|
|
@@ -934,7 +934,7 @@ function sr(e) {
|
|
|
934
934
|
duration: s = r.standard,
|
|
935
935
|
easing: f = t.easeInOut,
|
|
936
936
|
delay: u = 0
|
|
937
|
-
} = a, c =
|
|
937
|
+
} = a, c = q(a, rr);
|
|
938
938
|
if (process.env.NODE_ENV !== "production") {
|
|
939
939
|
const l = (d) => typeof d == "string", b = (d) => !isNaN(parseFloat(d));
|
|
940
940
|
!l(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !b(s) && !l(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), l(f) || console.error('MUI: Argument "easing" must be a string.'), !b(u) && !l(u) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
@@ -963,7 +963,7 @@ function cr(e = {}, ...t) {
|
|
|
963
963
|
palette: n = {},
|
|
964
964
|
transitions: o = {},
|
|
965
965
|
typography: a = {}
|
|
966
|
-
} = e, s =
|
|
966
|
+
} = e, s = q(e, ur);
|
|
967
967
|
if (e.vars)
|
|
968
968
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : K(18));
|
|
969
969
|
const f = Jt(n), u = xe(e);
|
|
@@ -1020,13 +1020,13 @@ export {
|
|
|
1020
1020
|
_t as C,
|
|
1021
1021
|
lr as T,
|
|
1022
1022
|
gr as a,
|
|
1023
|
-
|
|
1023
|
+
dr as b,
|
|
1024
1024
|
Et as c,
|
|
1025
1025
|
fr as d,
|
|
1026
1026
|
tt as e,
|
|
1027
1027
|
cr as f,
|
|
1028
1028
|
Ot as g,
|
|
1029
|
-
|
|
1029
|
+
or as h,
|
|
1030
1030
|
Se as i,
|
|
1031
1031
|
pr as r,
|
|
1032
1032
|
br as s
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
2
|
import { ThemeContext as o } from "@emotion/react";
|
|
3
|
-
import {
|
|
3
|
+
import { l as m } from "./createTheme-C3DKplhE.js";
|
|
4
4
|
function r(e) {
|
|
5
5
|
return Object.keys(e).length === 0;
|
|
6
6
|
}
|
|
@@ -9,10 +9,9 @@ function s(e = null) {
|
|
|
9
9
|
return !t || r(t) ? e : t;
|
|
10
10
|
}
|
|
11
11
|
const u = m();
|
|
12
|
-
function
|
|
12
|
+
function h(e = u) {
|
|
13
13
|
return s(e);
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
f as u
|
|
16
|
+
h as u
|
|
18
17
|
};
|
|
@@ -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-iyoioZCr.js";
|
|
3
|
+
import { u as t } from "./useTheme--x3BjP9A.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as a, d as f, T as u } from "./styled-
|
|
2
|
-
import { f as o } from "./createTheme-
|
|
3
|
-
import { u as h } from "./useThemeProps-
|
|
1
|
+
import { c as a, d as f, T as u } from "./styled-iyoioZCr.js";
|
|
2
|
+
import { f as o } from "./createTheme-C3DKplhE.js";
|
|
3
|
+
import { u as h } from "./useThemeProps-DNZoozBw.js";
|
|
4
4
|
function g(e, t = 0, s = 1) {
|
|
5
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
6
|
}
|
|
@@ -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-GRMJ22CO.js";
|
|
2
|
+
import { u as p } from "./useTheme--x3BjP9A.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 P({
|
|
12
12
|
props: t,
|
|
13
13
|
name: e,
|
|
14
14
|
defaultTheme: o,
|
|
@@ -22,6 +22,5 @@ function a({
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
|
-
|
|
26
|
-
a as u
|
|
25
|
+
P as u
|
|
27
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as C,
|
|
3
|
-
import { P as i } from "./createTheme-
|
|
1
|
+
import { a as D } from "./extends-Cyw62AD_.js";
|
|
2
|
+
import { _ as C, f as S } from "./ButtonBase-DE8d_U2E.js";
|
|
3
|
+
import { P as i } from "./createTheme-C3DKplhE.js";
|
|
4
4
|
import v from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
6
|
const N = {
|
|
@@ -23,7 +23,7 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
23
23
|
exitActive: i.string
|
|
24
24
|
})]) : null, y = function(a) {
|
|
25
25
|
return a.scrollTop;
|
|
26
|
-
}, x = "unmounted", f = "exited", c = "entering", h = "entered",
|
|
26
|
+
}, x = "unmounted", f = "exited", c = "entering", h = "entered", g = "exiting", l = /* @__PURE__ */ function(u) {
|
|
27
27
|
C(a, u);
|
|
28
28
|
function a(r, e) {
|
|
29
29
|
var t;
|
|
@@ -46,7 +46,7 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
46
46
|
var t = null;
|
|
47
47
|
if (e !== this.props) {
|
|
48
48
|
var n = this.state.status;
|
|
49
|
-
this.props.in ? n !== c && n !== h && (t = c) : (n === c || n === h) && (t =
|
|
49
|
+
this.props.in ? n !== c && n !== h && (t = c) : (n === c || n === h) && (t = g);
|
|
50
50
|
}
|
|
51
51
|
this.updateStatus(!1, t);
|
|
52
52
|
}, o.componentWillUnmount = function() {
|
|
@@ -72,7 +72,7 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
72
72
|
status: x
|
|
73
73
|
});
|
|
74
74
|
}, 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],
|
|
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], T = this.getTimeouts(), O = s ? T.appear : T.enter;
|
|
76
76
|
if (!e && !n || N.disabled) {
|
|
77
77
|
this.safeSetState({
|
|
78
78
|
status: h
|
|
@@ -103,7 +103,7 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
this.props.onExit(s), this.safeSetState({
|
|
106
|
-
status:
|
|
106
|
+
status: g
|
|
107
107
|
}, function() {
|
|
108
108
|
e.props.onExiting(s), e.onTransitionEnd(n.exit, function() {
|
|
109
109
|
e.safeSetState({
|
|
@@ -341,7 +341,7 @@ l.UNMOUNTED = x;
|
|
|
341
341
|
l.EXITED = f;
|
|
342
342
|
l.ENTERING = c;
|
|
343
343
|
l.ENTERED = h;
|
|
344
|
-
l.EXITING =
|
|
344
|
+
l.EXITING = g;
|
|
345
345
|
const U = (u) => u.scrollTop;
|
|
346
346
|
function w(u, a) {
|
|
347
347
|
var o, r;
|
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.3",
|
|
5
5
|
"author": "Hybrid Core",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@mui/lab": "5.0.0-alpha.130",
|
|
31
31
|
"@mui/material": "^5.11.13",
|
|
32
32
|
"@mui/x-data-grid": "^6.0.4",
|
|
33
|
-
"@mui/x-date-pickers": "
|
|
33
|
+
"@mui/x-date-pickers": "6.3.0",
|
|
34
34
|
"@turf/turf": "^7.0.0",
|
|
35
35
|
"dayjs": "^1.11.7",
|
|
36
36
|
"fast-xml-parser": "^4.2.2",
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { c as g, h as v } from "./createTheme-BynOz6vJ.js";
|
|
2
|
-
import { c as b, u as _ } from "./createSvgIcon-uzHr0c0Y.js";
|
|
3
|
-
import { C as y } from "./styled-B02_UC50.js";
|
|
4
|
-
import { c as E, u as C } from "./useId-BHG98T5I.js";
|
|
5
|
-
import { d as N } from "./debounce-46wSf_lW.js";
|
|
6
|
-
import { o as S } from "./ownerWindow-niciwP7I.js";
|
|
7
|
-
import { a as I } from "./extends-C3382pL0.js";
|
|
8
|
-
import { s as $, b as T, c as P, a as w, d as O } from "./ButtonBase-DZH9mTSs.js";
|
|
9
|
-
import { i as j } from "./isMuiElement-CxT3_ACP.js";
|
|
10
|
-
import { o as q } from "./ownerDocument-CUrv0DIK.js";
|
|
11
|
-
import { u as F } from "./unsupportedProp-BuVD30Gh.js";
|
|
12
|
-
function k(e, r) {
|
|
13
|
-
return process.env.NODE_ENV === "production" ? () => null : (n, u, s, t, o) => {
|
|
14
|
-
const a = s || "<<anonymous>>", i = o || u;
|
|
15
|
-
return typeof n[u] < "u" ? new Error(`The ${t} \`${i}\` of \`${a}\` is deprecated. ${r}`) : null;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
function D(e, r) {
|
|
19
|
-
if (process.env.NODE_ENV === "production")
|
|
20
|
-
return () => null;
|
|
21
|
-
const n = r ? I({}, r.propTypes) : null;
|
|
22
|
-
return (s) => (t, o, a, i, l, ...h) => {
|
|
23
|
-
const m = l || o, f = n == null ? void 0 : n[m];
|
|
24
|
-
if (f) {
|
|
25
|
-
const d = f(t, o, a, i, l, ...h);
|
|
26
|
-
if (d)
|
|
27
|
-
return d;
|
|
28
|
-
}
|
|
29
|
-
return typeof t[o] < "u" && !t[s] ? new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${s}\` prop.`) : null;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const G = {
|
|
33
|
-
configure: (e) => {
|
|
34
|
-
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
35
|
-
`)), y.configure(e);
|
|
36
|
-
}
|
|
37
|
-
}, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
|
-
__proto__: null,
|
|
39
|
-
capitalize: g,
|
|
40
|
-
createChainedFunction: E,
|
|
41
|
-
createSvgIcon: b,
|
|
42
|
-
debounce: N,
|
|
43
|
-
deprecatedPropType: k,
|
|
44
|
-
isMuiElement: j,
|
|
45
|
-
ownerDocument: q,
|
|
46
|
-
ownerWindow: S,
|
|
47
|
-
requirePropFactory: D,
|
|
48
|
-
setRef: $,
|
|
49
|
-
unstable_ClassNameGenerator: G,
|
|
50
|
-
unstable_useEnhancedEffect: T,
|
|
51
|
-
unstable_useId: C,
|
|
52
|
-
unsupportedProp: F,
|
|
53
|
-
useControlled: _,
|
|
54
|
-
useEventCallback: P,
|
|
55
|
-
useForkRef: w,
|
|
56
|
-
useIsFocusVisible: O
|
|
57
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
58
|
-
var c = {};
|
|
59
|
-
const R = /* @__PURE__ */ v(M);
|
|
60
|
-
var p;
|
|
61
|
-
function L() {
|
|
62
|
-
return p || (p = 1, function(e) {
|
|
63
|
-
"use client";
|
|
64
|
-
Object.defineProperty(e, "__esModule", {
|
|
65
|
-
value: !0
|
|
66
|
-
}), Object.defineProperty(e, "default", {
|
|
67
|
-
enumerable: !0,
|
|
68
|
-
get: function() {
|
|
69
|
-
return r.createSvgIcon;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
var r = R;
|
|
73
|
-
}(c)), c;
|
|
74
|
-
}
|
|
75
|
-
export {
|
|
76
|
-
L as r
|
|
77
|
-
};
|