@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.
Files changed (67) hide show
  1. package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-D6qhsxB0.js} +201 -210
  2. package/dist/{CardContent-Du2i427Y.js → CardContent-B8hqgH-I.js} +15 -15
  3. package/dist/{Checkbox-BGNAqLl0.js → Checkbox-BFWhj3s-.js} +154 -144
  4. package/dist/{Collapse-FRd0_2Pt.js → Collapse-D_TjnyE5.js} +96 -87
  5. package/dist/DialogContent-BCYm_d1s.js +864 -0
  6. package/dist/{FormControl-ChTmxscy.js → FormControl-BMRUQKHh.js} +479 -449
  7. package/dist/FormControlLabel-DENNVXWL.js +639 -0
  8. package/dist/{IconButton-Cu_XEJB2.js → IconButton-D8bwME9t.js} +22 -22
  9. package/dist/{Input-DU22-Zbo.js → Input-Dxzguyp5.js} +34 -34
  10. package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-B8ERE7Zv.js} +12 -12
  11. package/dist/{List-nOXr-cFJ.js → List-DEWyK9IO.js} +12 -12
  12. package/dist/{MenuItem-DF45rx2m.js → MenuItem-DstAFfik.js} +26 -26
  13. package/dist/Modal-DNGEQJ1M.js +1267 -0
  14. package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-w2Cj9STF.js} +75 -78
  15. package/dist/{Paper-CD_ma6NJ.js → Paper-BseeergJ.js} +15 -15
  16. package/dist/Select-NDq3WyLt.js +2175 -0
  17. package/dist/Typography-Dg-ROiTA.js +201 -0
  18. package/dist/components/card/index.js +17 -17
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/style.js +222 -302
  21. package/dist/components/confirm/dialog.js +13 -13
  22. package/dist/components/container/index.js +19 -19
  23. package/dist/components/context-menu/index.js +616 -203
  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 +14 -14
  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 +29 -30
  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-B96gjom1.js +1887 -0
  38. package/dist/createSvgIcon-B2WT0K4k.js +87 -0
  39. package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-BNrb7rDY.js} +82 -85
  40. package/dist/{exactProp--3vlJ9a9.js → exactProp-CI_rjX83.js} +2 -2
  41. package/dist/{index-CtuBGOmk.js → index-B3Oj04nl.js} +5 -5
  42. package/dist/{index-DzFccwzL.js → index-CSfSVkKj.js} +204 -218
  43. package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-CFiI_U7B.js} +2 -2
  44. package/dist/main.js +150 -144
  45. package/dist/styled-cPJbqF0E.js +677 -0
  46. package/dist/useTheme-C-T6Qisa.js +10 -0
  47. package/dist/useThemeProps-DeftUmqJ.js +107 -0
  48. package/dist/{utils-qcu0RzdN.js → utils-CCkxV0lZ.js} +15 -15
  49. package/package.json +3 -3
  50. package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
  51. package/dist/FormControlLabel-Df7csguX.js +0 -827
  52. package/dist/ListItem-RJvRMwkZ.js +0 -428
  53. package/dist/Select-C1jD_gBQ.js +0 -2305
  54. package/dist/Typography-C2BkMNk-.js +0 -178
  55. package/dist/chainPropTypes-GRMJ22CO.js +0 -96
  56. package/dist/createSvgIcon-6wv0RQr3.js +0 -63
  57. package/dist/createTheme-C3DKplhE.js +0 -2395
  58. package/dist/property-BSufYw1E.js +0 -6888
  59. package/dist/requirePropFactory-BItwGLRQ.js +0 -18
  60. package/dist/resolveComponentProps-DozbaB8e.js +0 -54
  61. package/dist/styled-CVWGE9ik.js +0 -142
  62. package/dist/styled-iyoioZCr.js +0 -1033
  63. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  64. package/dist/useTheme--x3BjP9A.js +0 -17
  65. package/dist/useTheme-pWltVFb2.js +0 -10
  66. package/dist/useThemeProps-C90JF0Qc.js +0 -62
  67. package/dist/useThemeProps-DNZoozBw.js +0 -26
@@ -1,29 +1,35 @@
1
1
  import { _ as r, a as ee } from "./extends-Cyw62AD_.js";
2
- import * as z from "react";
3
- import { g as te, u as ne, c as oe, a as ie } from "./chainPropTypes-GRMJ22CO.js";
4
- import { P as e } from "./createTheme-C3DKplhE.js";
5
- import { g as re, s as b, h as se } from "./styled-iyoioZCr.js";
6
- import { T as ae, g as A } from "./utils-qcu0RzdN.js";
7
- import { u as le } from "./useTheme-pWltVFb2.js";
2
+ import * as d from "react";
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
8
  import { jsx as C } from "react/jsx-runtime";
9
- import { c as pe, u as ce, e as de } from "./ButtonBase-DE8d_U2E.js";
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
+ }
10
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 he = ["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, d = {
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(d, ue, s);
26
- }, me = 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 he = ["addEndListener", "children", "className", "collapsedSize", "compone
50
56
  width: "auto"
51
57
  }), n.state === "exited" && !n.in && n.collapsedSize === "0px" && {
52
58
  visibility: "hidden"
53
- })), ge = 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 he = ["addEndListener", "children", "className", "collapsedSize", "compone
63
69
  }, o.orientation === "horizontal" && {
64
70
  width: "auto",
65
71
  height: "100%"
66
- })), Ee = b("div", {
72
+ })), ge = D("div", {
67
73
  name: "MuiCollapse",
68
74
  slot: "WrapperInner",
69
75
  overridesResolver: (o, n) => n.wrapperInner
@@ -74,81 +80,85 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
74
80
  }, o.orientation === "horizontal" && {
75
81
  width: "auto",
76
82
  height: "100%"
77
- })), F = /* @__PURE__ */ z.forwardRef(function(n, s) {
78
- const d = ne({
83
+ })), H = /* @__PURE__ */ d.forwardRef(function(n, s) {
84
+ const c = ne({
79
85
  props: n,
80
86
  name: "MuiCollapse"
81
87
  }), {
82
- addEndListener: S,
83
- children: H,
84
- className: _,
85
- collapsedSize: g = "0px",
86
- component: U,
87
- easing: D,
88
+ addEndListener: E,
89
+ children: v,
90
+ className: U,
91
+ collapsedSize: x = "0px",
92
+ component: V,
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
- onExited: V,
94
- onExiting: P,
95
- orientation: j = "vertical",
96
- style: T,
99
+ onExited: k,
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
- TransitionComponent: k = ae
100
- } = d, q = ee(d, he), E = r({}, d, {
101
- orientation: j,
102
- collapsedSize: g
103
- }), u = fe(E), I = le(), B = pe(), p = z.useRef(null), v = z.useRef(), x = typeof g == "number" ? `${g}px` : g, h = j === "horizontal", f = h ? "width" : "height", y = z.useRef(null), G = ce(s, y), c = (t) => (i) => {
105
+ TransitionComponent: q = ae
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";
110
+ d.useEffect(() => () => {
111
+ clearTimeout(M.current);
112
+ }, []);
113
+ const T = d.useRef(null), G = pe(s, T), u = (t) => (i) => {
104
114
  if (t) {
105
- const a = y.current;
115
+ const a = T.current;
106
116
  i === void 0 ? t(a) : t(a, i);
107
117
  }
108
- }, R = () => p.current ? p.current[h ? "clientWidth" : "clientHeight"] : 0, J = c((t, i) => {
109
- p.current && h && (p.current.style.position = "absolute"), t.style[f] = x, O && O(t, i);
110
- }), K = c((t, i) => {
111
- const a = R();
112
- 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 = "");
113
123
  const {
114
- duration: m,
115
- easing: w
124
+ duration: g,
125
+ easing: z
116
126
  } = A({
117
- style: T,
127
+ style: R,
118
128
  timeout: l,
119
- easing: D
129
+ easing: N
120
130
  }, {
121
131
  mode: "enter"
122
132
  });
123
133
  if (l === "auto") {
124
- const M = I.transitions.getAutoHeightDuration(a);
125
- t.style.transitionDuration = `${M}ms`, v.current = M;
134
+ const _ = I.transitions.getAutoHeightDuration(a);
135
+ t.style.transitionDuration = `${_}ms`, b.current = _;
126
136
  } else
127
- t.style.transitionDuration = typeof m == "string" ? m : `${m}ms`;
128
- t.style[f] = `${a}px`, t.style.transitionTimingFunction = w, W && W(t, i);
129
- }), Q = c((t, i) => {
130
- t.style[f] = "auto", N && N(t, i);
131
- }), X = c((t) => {
132
- t.style[f] = `${R()}px`, L && L(t);
133
- }), Y = c(V), Z = c((t) => {
134
- const i = R(), {
137
+ t.style.transitionDuration = typeof g == "string" ? g : `${g}ms`;
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(), {
135
145
  duration: a,
136
- easing: m
146
+ easing: g
137
147
  } = A({
138
- style: T,
148
+ style: R,
139
149
  timeout: l,
140
- easing: D
150
+ easing: N
141
151
  }, {
142
152
  mode: "exit"
143
153
  });
144
154
  if (l === "auto") {
145
- const w = I.transitions.getAutoHeightDuration(i);
146
- t.style.transitionDuration = `${w}ms`, v.current = w;
155
+ const z = I.transitions.getAutoHeightDuration(i);
156
+ t.style.transitionDuration = `${z}ms`, b.current = z;
147
157
  } else
148
158
  t.style.transitionDuration = typeof a == "string" ? a : `${a}ms`;
149
- t.style[f] = x, t.style.transitionTimingFunction = m, P && P(t);
159
+ t.style[h] = w, t.style.transitionTimingFunction = g, j && j(t);
150
160
  });
151
- return /* @__PURE__ */ C(k, r({
161
+ return /* @__PURE__ */ C(q, r({
152
162
  in: $,
153
163
  onEnter: J,
154
164
  onEntered: Q,
@@ -157,49 +167,47 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
157
167
  onExited: Y,
158
168
  onExiting: Z,
159
169
  addEndListener: (t) => {
160
- l === "auto" && B.start(v.current || 0, t), S && S(y.current, t);
170
+ l === "auto" && (M.current = setTimeout(t, b.current || 0)), E && E(T.current, t);
161
171
  },
162
- nodeRef: y,
172
+ nodeRef: T,
163
173
  timeout: l === "auto" ? null : l
164
- }, q, {
174
+ }, B, {
165
175
  children: (t, i) => /* @__PURE__ */ C(me, r({
166
- as: U,
167
- className: oe(u.root, _, {
168
- entered: u.entered,
169
- exited: !$ && x === "0px" && u.hidden
176
+ as: V,
177
+ className: oe(f.root, U, {
178
+ entered: f.entered,
179
+ exited: !$ && w === "0px" && f.hidden
170
180
  }[t]),
171
181
  style: r({
172
- [h ? "minWidth" : "minHeight"]: x
173
- }, T),
174
- ref: G
175
- }, i, {
176
- // `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
177
- // that might have been forwarded from the Transition component.
178
- ownerState: r({}, E, {
182
+ [m ? "minWidth" : "minHeight"]: w
183
+ }, R),
184
+ ownerState: r({}, y, {
179
185
  state: t
180
186
  }),
181
- children: /* @__PURE__ */ C(ge, {
182
- ownerState: r({}, E, {
187
+ ref: G
188
+ }, i, {
189
+ children: /* @__PURE__ */ C(he, {
190
+ ownerState: r({}, y, {
183
191
  state: t
184
192
  }),
185
- className: u.wrapper,
193
+ className: f.wrapper,
186
194
  ref: p,
187
- children: /* @__PURE__ */ C(Ee, {
188
- ownerState: r({}, E, {
195
+ children: /* @__PURE__ */ C(ge, {
196
+ ownerState: r({}, y, {
189
197
  state: t
190
198
  }),
191
- className: u.wrapperInner,
192
- children: H
199
+ className: f.wrapperInner,
200
+ children: v
193
201
  })
194
202
  })
195
203
  }))
196
204
  }));
197
205
  });
198
- process.env.NODE_ENV !== "production" && (F.propTypes = {
199
- // ┌────────────────────────────── Warning ──────────────────────────────┐
200
- // These PropTypes are generated from the TypeScript type definitions.
201
- // To update them, edit the d.ts file and run `pnpm proptypes`.
202
- // └─────────────────────────────────────────────────────────────────────┘
206
+ process.env.NODE_ENV !== "production" && (H.propTypes = {
207
+ // ----------------------------- Warning --------------------------------
208
+ // | These PropTypes are generated from the TypeScript type definitions |
209
+ // | To update them edit the d.ts file and run "yarn proptypes" |
210
+ // ----------------------------------------------------------------------
203
211
  /**
204
212
  * Add a custom transition end trigger. Called with the transitioning DOM
205
213
  * node and a done callback. Allows for more fine grained transition end
@@ -227,7 +235,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
227
235
  * The component used for the root node.
228
236
  * Either a string to use a HTML element or a component.
229
237
  */
230
- component: de,
238
+ component: ce,
231
239
  /**
232
240
  * The transition timing function.
233
241
  * You may specify a single easing or a object containing enter and exit values.
@@ -290,7 +298,8 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
290
298
  exit: e.number
291
299
  })])
292
300
  });
293
- F.muiSupportAuto = !0;
301
+ H.muiSupportAuto = !0;
294
302
  export {
295
- F as C
303
+ H as C,
304
+ be as u
296
305
  };