@hybridcore/ui 1.3.4 → 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.
Files changed (55) hide show
  1. package/dist/{ButtonBase-DJz-TFGO.js → ButtonBase-D6qhsxB0.js} +7 -8
  2. package/dist/{CardContent-DZnCVGy9.js → CardContent-B8hqgH-I.js} +3 -3
  3. package/dist/{Checkbox-DzmWBCrt.js → Checkbox-BFWhj3s-.js} +6 -6
  4. package/dist/{Collapse-NqW0GIK_.js → Collapse-D_TjnyE5.js} +74 -67
  5. package/dist/DialogContent-BCYm_d1s.js +864 -0
  6. package/dist/{FormControl-aXQs42m6.js → FormControl-BMRUQKHh.js} +55 -55
  7. package/dist/{FormControlLabel-hDa-xf_q.js → FormControlLabel-DENNVXWL.js} +9 -9
  8. package/dist/{IconButton-SnBOFQ43.js → IconButton-D8bwME9t.js} +4 -4
  9. package/dist/{Input-CeVb6kjv.js → Input-Dxzguyp5.js} +5 -5
  10. package/dist/{InputAdornment-fM3loNyx.js → InputAdornment-B8ERE7Zv.js} +4 -4
  11. package/dist/{List-DLIiXc6r.js → List-DEWyK9IO.js} +5 -5
  12. package/dist/{MenuItem-BEW28T9O.js → MenuItem-DstAFfik.js} +12 -12
  13. package/dist/Modal-DNGEQJ1M.js +1267 -0
  14. package/dist/{OutlinedInput-DkzLHRTd.js → OutlinedInput-w2Cj9STF.js} +5 -5
  15. package/dist/{Paper-Dp3qO0cK.js → Paper-BseeergJ.js} +8 -8
  16. package/dist/{Select-Cdmu0dQ4.js → Select-NDq3WyLt.js} +51 -51
  17. package/dist/{Typography-CXe5ytr0.js → Typography-Dg-ROiTA.js} +3 -3
  18. package/dist/components/card/index.js +5 -5
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/style.js +26 -26
  21. package/dist/components/confirm/dialog.js +5 -5
  22. package/dist/components/container/index.js +6 -6
  23. package/dist/components/context-menu/index.js +604 -191
  24. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  25. package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
  26. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  27. package/dist/components/geometry-picker/index.js +3 -3
  28. package/dist/components/icon-button/index.js +1 -1
  29. package/dist/components/map/styled.js +1 -1
  30. package/dist/components/search-input/index.js +4 -4
  31. package/dist/components/template-property-filters/index.js +1 -1
  32. package/dist/components/template-property-filters/property.js +209 -10
  33. package/dist/components/tree-select/index.js +4 -4
  34. package/dist/components/treeview-filter/index.js +8 -8
  35. package/dist/components/treeview-filter/item/index.js +1 -1
  36. package/dist/components/treeview-filter/item-label/index.js +2 -2
  37. package/dist/{createStyled-liRRhQcN.js → createStyled-B96gjom1.js} +461 -484
  38. package/dist/createSvgIcon-B2WT0K4k.js +87 -0
  39. package/dist/{createSvgIcon-Cl8kMTkx.js → createSvgIcon-BNrb7rDY.js} +3 -3
  40. package/dist/{exactProp-CT2wqJXE.js → exactProp-CI_rjX83.js} +2 -2
  41. package/dist/{index-D9TdkXAs.js → index-B3Oj04nl.js} +5 -5
  42. package/dist/{index-DRy8nExS.js → index-CSfSVkKj.js} +5 -6
  43. package/dist/{listItemTextClasses-BrCbmCR1.js → listItemTextClasses-CFiI_U7B.js} +2 -2
  44. package/dist/main.js +150 -144
  45. package/dist/{styled-Dm8rXzIG.js → styled-cPJbqF0E.js} +24 -24
  46. package/dist/{useTheme-CTuK-wFF.js → useTheme-C-T6Qisa.js} +2 -2
  47. package/dist/{useThemeProps-BXn-nVhw.js → useThemeProps-DeftUmqJ.js} +14 -14
  48. package/dist/{utils-DY9Jk4Ah.js → utils-CCkxV0lZ.js} +15 -15
  49. package/package.json +1 -1
  50. package/dist/DialogContent-D51w7KVX.js +0 -2119
  51. package/dist/ListItem-BkxmqFI8.js +0 -428
  52. package/dist/createSvgIcon-B4TFefhd.js +0 -73
  53. package/dist/property-BsU8ijQF.js +0 -6857
  54. package/dist/requirePropFactory-BItwGLRQ.js +0 -18
  55. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
@@ -1,9 +1,9 @@
1
1
  import { _ as Y, a as ue } from "./extends-Cyw62AD_.js";
2
2
  import * as l from "react";
3
3
  import X, { Children as qe, isValidElement as G, cloneElement as J } from "react";
4
- import { P as n } from "./createStyled-liRRhQcN.js";
5
- import { d as We, c as v, g as Ce, u as ve, a as He } from "./useThemeProps-BXn-nVhw.js";
6
- import { s as ae, g as Ge } from "./styled-Dm8rXzIG.js";
4
+ import { P as n } from "./createStyled-B96gjom1.js";
5
+ import { b as We, c as v, g as Ce, u as ve, a as He } from "./useThemeProps-DeftUmqJ.js";
6
+ import { s as ae, g as Ge } from "./styled-cPJbqF0E.js";
7
7
  import { jsx as $, jsxs as Je } from "react/jsx-runtime";
8
8
  import { _ as Qe, a as Ze } from "./assertThisInitialized-BUtkG-md.js";
9
9
  import { keyframes as le } from "@emotion/react";
@@ -947,14 +947,13 @@ process.env.NODE_ENV !== "production" && (Lt.propTypes = {
947
947
  });
948
948
  export {
949
949
  Lt as B,
950
- fe as T,
950
+ ge as T,
951
951
  ht as _,
952
- H as a,
953
- it as b,
952
+ ye as a,
953
+ H as b,
954
954
  dt as c,
955
- ge as d,
956
955
  nt as e,
957
956
  ot as r,
958
957
  rt as s,
959
- ye as u
958
+ it as u
960
959
  };
@@ -1,8 +1,8 @@
1
1
  import { a as d, _ as c } from "./extends-Cyw62AD_.js";
2
2
  import * as m from "react";
3
- import { P as o } from "./createStyled-liRRhQcN.js";
4
- import { g as C, u, c as f, a as y } from "./useThemeProps-BXn-nVhw.js";
5
- import { g, s as v } from "./styled-Dm8rXzIG.js";
3
+ import { P as o } from "./createStyled-B96gjom1.js";
4
+ import { g as C, u, c as f, a as y } from "./useThemeProps-DeftUmqJ.js";
5
+ import { g, s as v } from "./styled-cPJbqF0E.js";
6
6
  import { jsx as x } from "react/jsx-runtime";
7
7
  function N(t) {
8
8
  return g("MuiCardContent", t);
@@ -1,13 +1,13 @@
1
- import { n as Z, s as ee, P as e, a as F } from "./createStyled-liRRhQcN.js";
2
- import { c as oe, C as ne, g as E, s as S, r as te, a as se } from "./styled-Dm8rXzIG.js";
1
+ import { l as Z, s as ee, P as e, a as F } from "./createStyled-B96gjom1.js";
2
+ import { c as oe, C as ne, g as E, s as S, r as te, a as se } from "./styled-cPJbqF0E.js";
3
3
  import { a as T, _ as r } from "./extends-Cyw62AD_.js";
4
4
  import * as B from "react";
5
- import { b as ce, g as M, c as q, a as V, u as ae } from "./useThemeProps-BXn-nVhw.js";
5
+ import { d as ce, g as M, c as q, a as V, u as ae } from "./useThemeProps-DeftUmqJ.js";
6
6
  import { jsx as u, jsxs as re } from "react/jsx-runtime";
7
- import { e as ie } from "./Typography-CXe5ytr0.js";
7
+ import { e as ie } from "./Typography-Dg-ROiTA.js";
8
8
  import { u as le } from "./useFormControl-CatNKXAi.js";
9
- import { B as de, r as U } from "./ButtonBase-DJz-TFGO.js";
10
- import { u as ue, c as z } from "./createSvgIcon-Cl8kMTkx.js";
9
+ import { B as de, r as U } from "./ButtonBase-D6qhsxB0.js";
10
+ import { u as ue, c as z } from "./createSvgIcon-BNrb7rDY.js";
11
11
  function H(o) {
12
12
  var n, s, t = "";
13
13
  if (typeof o == "string" || typeof o == "number") t += o;
@@ -1,29 +1,35 @@
1
1
  import { _ as r, a as ee } from "./extends-Cyw62AD_.js";
2
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) {
3
+ import { g as te, u as ne, c as oe, a as ie } from "./useThemeProps-DeftUmqJ.js";
4
+ import { P as e } from "./createStyled-B96gjom1.js";
5
+ import { g as re, s as D, e as se } from "./styled-cPJbqF0E.js";
6
+ import { T as ae, g as A } from "./utils-CCkxV0lZ.js";
7
+ import { u as le } from "./useTheme-C-T6Qisa.js";
8
+ import { jsx as C } from "react/jsx-runtime";
9
+ import { a as pe, e as ce } from "./ButtonBase-D6qhsxB0.js";
10
+ function be(o, n, s, c, E) {
11
+ if (process.env.NODE_ENV === "production")
12
+ return null;
13
+ const v = E || n;
14
+ return typeof o[n] < "u" ? new Error(`The prop \`${v}\` is not supported. Please remove it.`) : null;
15
+ }
16
+ function ue(o) {
11
17
  return re("MuiCollapse", o);
12
18
  }
13
19
  te("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
14
- const ue = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], fe = (o) => {
20
+ const de = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], fe = (o) => {
15
21
  const {
16
22
  orientation: n,
17
23
  classes: s
18
- } = o, u = {
24
+ } = o, c = {
19
25
  root: ["root", `${n}`],
20
26
  entered: ["entered"],
21
27
  hidden: ["hidden"],
22
28
  wrapper: ["wrapper", `${n}`],
23
29
  wrapperInner: ["wrapperInner", `${n}`]
24
30
  };
25
- return ie(u, de, s);
26
- }, he = b("div", {
31
+ return ie(c, ue, s);
32
+ }, me = D("div", {
27
33
  name: "MuiCollapse",
28
34
  slot: "Root",
29
35
  overridesResolver: (o, n) => {
@@ -50,7 +56,7 @@ const ue = ["addEndListener", "children", "className", "collapsedSize", "compone
50
56
  width: "auto"
51
57
  }), n.state === "exited" && !n.in && n.collapsedSize === "0px" && {
52
58
  visibility: "hidden"
53
- })), me = b("div", {
59
+ })), he = D("div", {
54
60
  name: "MuiCollapse",
55
61
  slot: "Wrapper",
56
62
  overridesResolver: (o, n) => n.wrapper
@@ -63,7 +69,7 @@ const ue = ["addEndListener", "children", "className", "collapsedSize", "compone
63
69
  }, o.orientation === "horizontal" && {
64
70
  width: "auto",
65
71
  height: "100%"
66
- })), ge = b("div", {
72
+ })), ge = D("div", {
67
73
  name: "MuiCollapse",
68
74
  slot: "WrapperInner",
69
75
  overridesResolver: (o, n) => n.wrapperInner
@@ -75,84 +81,84 @@ const ue = ["addEndListener", "children", "className", "collapsedSize", "compone
75
81
  width: "auto",
76
82
  height: "100%"
77
83
  })), H = /* @__PURE__ */ d.forwardRef(function(n, s) {
78
- const u = ne({
84
+ const c = ne({
79
85
  props: n,
80
86
  name: "MuiCollapse"
81
87
  }), {
82
- addEndListener: S,
83
- children: _,
88
+ addEndListener: E,
89
+ children: v,
84
90
  className: U,
85
- collapsedSize: E = "0px",
91
+ collapsedSize: x = "0px",
86
92
  component: V,
87
- easing: D,
93
+ easing: N,
88
94
  in: $,
89
95
  onEnter: O,
90
- onEntered: N,
96
+ onEntered: P,
91
97
  onEntering: W,
92
98
  onExit: L,
93
99
  onExited: k,
94
- onExiting: P,
95
- orientation: j = "vertical",
96
- style: C,
100
+ onExiting: j,
101
+ orientation: F = "vertical",
102
+ style: R,
97
103
  timeout: l = se.standard,
98
104
  // eslint-disable-next-line react/prop-types
99
105
  TransitionComponent: q = ae
100
- } = u, B = ee(u, ue), x = r({}, u, {
101
- orientation: j,
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";
106
+ } = c, B = ee(c, de), y = r({}, c, {
107
+ orientation: F,
108
+ collapsedSize: x
109
+ }), f = fe(y), I = le(), M = d.useRef(), p = d.useRef(null), b = d.useRef(), w = typeof x == "number" ? `${x}px` : x, m = F === "horizontal", h = m ? "width" : "height";
104
110
  d.useEffect(() => () => {
105
111
  clearTimeout(M.current);
106
112
  }, []);
107
- const w = d.useRef(null), G = pe(s, w), c = (t) => (i) => {
113
+ const T = d.useRef(null), G = pe(s, T), u = (t) => (i) => {
108
114
  if (t) {
109
- const a = w.current;
115
+ const a = T.current;
110
116
  i === void 0 ? t(a) : t(a, i);
111
117
  }
112
- }, R = () => p.current ? p.current[h ? "clientWidth" : "clientHeight"] : 0, J = c((t, i) => {
113
- p.current && h && (p.current.style.position = "absolute"), t.style[m] = y, O && O(t, i);
114
- }), K = c((t, i) => {
115
- const a = R();
116
- p.current && h && (p.current.style.position = "");
118
+ }, S = () => p.current ? p.current[m ? "clientWidth" : "clientHeight"] : 0, J = u((t, i) => {
119
+ p.current && m && (p.current.style.position = "absolute"), t.style[h] = w, O && O(t, i);
120
+ }), K = u((t, i) => {
121
+ const a = S();
122
+ p.current && m && (p.current.style.position = "");
117
123
  const {
118
124
  duration: g,
119
- easing: T
120
- } = F({
121
- style: C,
125
+ easing: z
126
+ } = A({
127
+ style: R,
122
128
  timeout: l,
123
- easing: D
129
+ easing: N
124
130
  }, {
125
131
  mode: "enter"
126
132
  });
127
133
  if (l === "auto") {
128
- const A = I.transitions.getAutoHeightDuration(a);
129
- t.style.transitionDuration = `${A}ms`, v.current = A;
134
+ const _ = I.transitions.getAutoHeightDuration(a);
135
+ t.style.transitionDuration = `${_}ms`, b.current = _;
130
136
  } else
131
137
  t.style.transitionDuration = typeof g == "string" ? g : `${g}ms`;
132
- t.style[m] = `${a}px`, t.style.transitionTimingFunction = T, W && W(t, i);
133
- }), Q = c((t, i) => {
134
- t.style[m] = "auto", N && N(t, i);
135
- }), X = c((t) => {
136
- t.style[m] = `${R()}px`, L && L(t);
137
- }), Y = c(k), Z = c((t) => {
138
- const i = R(), {
138
+ t.style[h] = `${a}px`, t.style.transitionTimingFunction = z, W && W(t, i);
139
+ }), Q = u((t, i) => {
140
+ t.style[h] = "auto", P && P(t, i);
141
+ }), X = u((t) => {
142
+ t.style[h] = `${S()}px`, L && L(t);
143
+ }), Y = u(k), Z = u((t) => {
144
+ const i = S(), {
139
145
  duration: a,
140
146
  easing: g
141
- } = F({
142
- style: C,
147
+ } = A({
148
+ style: R,
143
149
  timeout: l,
144
- easing: D
150
+ easing: N
145
151
  }, {
146
152
  mode: "exit"
147
153
  });
148
154
  if (l === "auto") {
149
- const T = I.transitions.getAutoHeightDuration(i);
150
- t.style.transitionDuration = `${T}ms`, v.current = T;
155
+ const z = I.transitions.getAutoHeightDuration(i);
156
+ t.style.transitionDuration = `${z}ms`, b.current = z;
151
157
  } else
152
158
  t.style.transitionDuration = typeof a == "string" ? a : `${a}ms`;
153
- t.style[m] = y, t.style.transitionTimingFunction = g, P && P(t);
159
+ t.style[h] = w, t.style.transitionTimingFunction = g, j && j(t);
154
160
  });
155
- return /* @__PURE__ */ z(q, r({
161
+ return /* @__PURE__ */ C(q, r({
156
162
  in: $,
157
163
  onEnter: J,
158
164
  onEntered: Q,
@@ -161,37 +167,37 @@ const ue = ["addEndListener", "children", "className", "collapsedSize", "compone
161
167
  onExited: Y,
162
168
  onExiting: Z,
163
169
  addEndListener: (t) => {
164
- l === "auto" && (M.current = setTimeout(t, v.current || 0)), S && S(w.current, t);
170
+ l === "auto" && (M.current = setTimeout(t, b.current || 0)), E && E(T.current, t);
165
171
  },
166
- nodeRef: w,
172
+ nodeRef: T,
167
173
  timeout: l === "auto" ? null : l
168
174
  }, B, {
169
- children: (t, i) => /* @__PURE__ */ z(he, r({
175
+ children: (t, i) => /* @__PURE__ */ C(me, r({
170
176
  as: V,
171
177
  className: oe(f.root, U, {
172
178
  entered: f.entered,
173
- exited: !$ && y === "0px" && f.hidden
179
+ exited: !$ && w === "0px" && f.hidden
174
180
  }[t]),
175
181
  style: r({
176
- [h ? "minWidth" : "minHeight"]: y
177
- }, C),
178
- ownerState: r({}, x, {
182
+ [m ? "minWidth" : "minHeight"]: w
183
+ }, R),
184
+ ownerState: r({}, y, {
179
185
  state: t
180
186
  }),
181
187
  ref: G
182
188
  }, i, {
183
- children: /* @__PURE__ */ z(me, {
184
- ownerState: r({}, x, {
189
+ children: /* @__PURE__ */ C(he, {
190
+ ownerState: r({}, y, {
185
191
  state: t
186
192
  }),
187
193
  className: f.wrapper,
188
194
  ref: p,
189
- children: /* @__PURE__ */ z(ge, {
190
- ownerState: r({}, x, {
195
+ children: /* @__PURE__ */ C(ge, {
196
+ ownerState: r({}, y, {
191
197
  state: t
192
198
  }),
193
199
  className: f.wrapperInner,
194
- children: _
200
+ children: v
195
201
  })
196
202
  })
197
203
  }))
@@ -294,5 +300,6 @@ process.env.NODE_ENV !== "production" && (H.propTypes = {
294
300
  });
295
301
  H.muiSupportAuto = !0;
296
302
  export {
297
- H as C
303
+ H as C,
304
+ be as u
298
305
  };