@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.
Files changed (64) hide show
  1. package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-DJz-TFGO.js} +199 -207
  2. package/dist/{CardContent-Du2i427Y.js → CardContent-DZnCVGy9.js} +15 -15
  3. package/dist/{Checkbox-BGNAqLl0.js → Checkbox-DzmWBCrt.js} +154 -144
  4. package/dist/{Collapse-FRd0_2Pt.js → Collapse-NqW0GIK_.js} +79 -77
  5. package/dist/DialogContent-D51w7KVX.js +2119 -0
  6. package/dist/{FormControl-ChTmxscy.js → FormControl-aXQs42m6.js} +496 -466
  7. package/dist/FormControlLabel-hDa-xf_q.js +639 -0
  8. package/dist/{IconButton-Cu_XEJB2.js → IconButton-SnBOFQ43.js} +22 -22
  9. package/dist/{Input-DU22-Zbo.js → Input-CeVb6kjv.js} +34 -34
  10. package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-fM3loNyx.js} +12 -12
  11. package/dist/{List-nOXr-cFJ.js → List-DLIiXc6r.js} +10 -10
  12. package/dist/{ListItem-RJvRMwkZ.js → ListItem-BkxmqFI8.js} +23 -23
  13. package/dist/{MenuItem-DF45rx2m.js → MenuItem-BEW28T9O.js} +27 -27
  14. package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-DkzLHRTd.js} +75 -78
  15. package/dist/{Paper-CD_ma6NJ.js → Paper-Dp3qO0cK.js} +18 -18
  16. package/dist/Select-Cdmu0dQ4.js +2175 -0
  17. package/dist/Typography-CXe5ytr0.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 +32 -32
  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 +4 -4
  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-liRRhQcN.js +1910 -0
  38. package/dist/createSvgIcon-B4TFefhd.js +73 -0
  39. package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-Cl8kMTkx.js} +82 -85
  40. package/dist/{exactProp--3vlJ9a9.js → exactProp-CT2wqJXE.js} +2 -2
  41. package/dist/{index-CtuBGOmk.js → index-D9TdkXAs.js} +5 -5
  42. package/dist/{index-DzFccwzL.js → index-DRy8nExS.js} +205 -218
  43. package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-BrCbmCR1.js} +2 -2
  44. package/dist/main.js +2 -2
  45. package/dist/{property-BSufYw1E.js → property-BsU8ijQF.js} +1056 -1087
  46. package/dist/styled-Dm8rXzIG.js +677 -0
  47. package/dist/useTheme-CTuK-wFF.js +10 -0
  48. package/dist/useThemeProps-BXn-nVhw.js +107 -0
  49. package/dist/{utils-qcu0RzdN.js → utils-DY9Jk4Ah.js} +2 -2
  50. package/package.json +3 -3
  51. package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
  52. package/dist/FormControlLabel-Df7csguX.js +0 -827
  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/resolveComponentProps-DozbaB8e.js +0 -54
  59. package/dist/styled-CVWGE9ik.js +0 -142
  60. package/dist/styled-iyoioZCr.js +0 -1033
  61. package/dist/useTheme--x3BjP9A.js +0 -17
  62. package/dist/useTheme-pWltVFb2.js +0 -10
  63. package/dist/useThemeProps-C90JF0Qc.js +0 -62
  64. package/dist/useThemeProps-DNZoozBw.js +0 -26
@@ -1,29 +1,29 @@
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";
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";
10
- function ue(o) {
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) {
11
11
  return re("MuiCollapse", o);
12
12
  }
13
13
  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) => {
14
+ const ue = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], fe = (o) => {
15
15
  const {
16
16
  orientation: n,
17
17
  classes: s
18
- } = o, d = {
18
+ } = o, u = {
19
19
  root: ["root", `${n}`],
20
20
  entered: ["entered"],
21
21
  hidden: ["hidden"],
22
22
  wrapper: ["wrapper", `${n}`],
23
23
  wrapperInner: ["wrapperInner", `${n}`]
24
24
  };
25
- return ie(d, ue, s);
26
- }, me = b("div", {
25
+ return ie(u, de, s);
26
+ }, he = b("div", {
27
27
  name: "MuiCollapse",
28
28
  slot: "Root",
29
29
  overridesResolver: (o, n) => {
@@ -50,7 +50,7 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
50
50
  width: "auto"
51
51
  }), n.state === "exited" && !n.in && n.collapsedSize === "0px" && {
52
52
  visibility: "hidden"
53
- })), ge = b("div", {
53
+ })), me = b("div", {
54
54
  name: "MuiCollapse",
55
55
  slot: "Wrapper",
56
56
  overridesResolver: (o, n) => n.wrapper
@@ -63,7 +63,7 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
63
63
  }, o.orientation === "horizontal" && {
64
64
  width: "auto",
65
65
  height: "100%"
66
- })), Ee = b("div", {
66
+ })), ge = b("div", {
67
67
  name: "MuiCollapse",
68
68
  slot: "WrapperInner",
69
69
  overridesResolver: (o, n) => n.wrapperInner
@@ -74,81 +74,85 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
74
74
  }, o.orientation === "horizontal" && {
75
75
  width: "auto",
76
76
  height: "100%"
77
- })), F = /* @__PURE__ */ z.forwardRef(function(n, s) {
78
- const d = ne({
77
+ })), H = /* @__PURE__ */ d.forwardRef(function(n, s) {
78
+ const u = ne({
79
79
  props: n,
80
80
  name: "MuiCollapse"
81
81
  }), {
82
82
  addEndListener: S,
83
- children: H,
84
- className: _,
85
- collapsedSize: g = "0px",
86
- component: U,
83
+ children: _,
84
+ className: U,
85
+ collapsedSize: E = "0px",
86
+ component: V,
87
87
  easing: D,
88
88
  in: $,
89
89
  onEnter: O,
90
90
  onEntered: N,
91
91
  onEntering: W,
92
92
  onExit: L,
93
- onExited: V,
93
+ onExited: k,
94
94
  onExiting: P,
95
95
  orientation: j = "vertical",
96
- style: T,
96
+ style: C,
97
97
  timeout: l = se.standard,
98
98
  // eslint-disable-next-line react/prop-types
99
- TransitionComponent: k = ae
100
- } = d, q = ee(d, he), E = r({}, d, {
99
+ TransitionComponent: q = ae
100
+ } = u, B = ee(u, ue), x = r({}, u, {
101
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) => {
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";
104
+ d.useEffect(() => () => {
105
+ clearTimeout(M.current);
106
+ }, []);
107
+ const w = d.useRef(null), G = pe(s, w), c = (t) => (i) => {
104
108
  if (t) {
105
- const a = y.current;
109
+ const a = w.current;
106
110
  i === void 0 ? t(a) : t(a, i);
107
111
  }
108
112
  }, 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);
113
+ p.current && h && (p.current.style.position = "absolute"), t.style[m] = y, O && O(t, i);
110
114
  }), K = c((t, i) => {
111
115
  const a = R();
112
116
  p.current && h && (p.current.style.position = "");
113
117
  const {
114
- duration: m,
115
- easing: w
116
- } = A({
117
- style: T,
118
+ duration: g,
119
+ easing: T
120
+ } = F({
121
+ style: C,
118
122
  timeout: l,
119
123
  easing: D
120
124
  }, {
121
125
  mode: "enter"
122
126
  });
123
127
  if (l === "auto") {
124
- const M = I.transitions.getAutoHeightDuration(a);
125
- t.style.transitionDuration = `${M}ms`, v.current = M;
128
+ const A = I.transitions.getAutoHeightDuration(a);
129
+ t.style.transitionDuration = `${A}ms`, v.current = A;
126
130
  } 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);
131
+ t.style.transitionDuration = typeof g == "string" ? g : `${g}ms`;
132
+ t.style[m] = `${a}px`, t.style.transitionTimingFunction = T, W && W(t, i);
129
133
  }), Q = c((t, i) => {
130
- t.style[f] = "auto", N && N(t, i);
134
+ t.style[m] = "auto", N && N(t, i);
131
135
  }), X = c((t) => {
132
- t.style[f] = `${R()}px`, L && L(t);
133
- }), Y = c(V), Z = c((t) => {
136
+ t.style[m] = `${R()}px`, L && L(t);
137
+ }), Y = c(k), Z = c((t) => {
134
138
  const i = R(), {
135
139
  duration: a,
136
- easing: m
137
- } = A({
138
- style: T,
140
+ easing: g
141
+ } = F({
142
+ style: C,
139
143
  timeout: l,
140
144
  easing: D
141
145
  }, {
142
146
  mode: "exit"
143
147
  });
144
148
  if (l === "auto") {
145
- const w = I.transitions.getAutoHeightDuration(i);
146
- t.style.transitionDuration = `${w}ms`, v.current = w;
149
+ const T = I.transitions.getAutoHeightDuration(i);
150
+ t.style.transitionDuration = `${T}ms`, v.current = T;
147
151
  } else
148
152
  t.style.transitionDuration = typeof a == "string" ? a : `${a}ms`;
149
- t.style[f] = x, t.style.transitionTimingFunction = m, P && P(t);
153
+ t.style[m] = y, t.style.transitionTimingFunction = g, P && P(t);
150
154
  });
151
- return /* @__PURE__ */ C(k, r({
155
+ return /* @__PURE__ */ z(q, r({
152
156
  in: $,
153
157
  onEnter: J,
154
158
  onEntered: Q,
@@ -157,49 +161,47 @@ const he = ["addEndListener", "children", "className", "collapsedSize", "compone
157
161
  onExited: Y,
158
162
  onExiting: Z,
159
163
  addEndListener: (t) => {
160
- l === "auto" && B.start(v.current || 0, t), S && S(y.current, t);
164
+ l === "auto" && (M.current = setTimeout(t, v.current || 0)), S && S(w.current, t);
161
165
  },
162
- nodeRef: y,
166
+ nodeRef: w,
163
167
  timeout: l === "auto" ? null : l
164
- }, q, {
165
- 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
168
+ }, B, {
169
+ children: (t, i) => /* @__PURE__ */ z(he, r({
170
+ as: V,
171
+ className: oe(f.root, U, {
172
+ entered: f.entered,
173
+ exited: !$ && y === "0px" && f.hidden
170
174
  }[t]),
171
175
  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, {
176
+ [h ? "minWidth" : "minHeight"]: y
177
+ }, C),
178
+ ownerState: r({}, x, {
179
179
  state: t
180
180
  }),
181
- children: /* @__PURE__ */ C(ge, {
182
- ownerState: r({}, E, {
181
+ ref: G
182
+ }, i, {
183
+ children: /* @__PURE__ */ z(me, {
184
+ ownerState: r({}, x, {
183
185
  state: t
184
186
  }),
185
- className: u.wrapper,
187
+ className: f.wrapper,
186
188
  ref: p,
187
- children: /* @__PURE__ */ C(Ee, {
188
- ownerState: r({}, E, {
189
+ children: /* @__PURE__ */ z(ge, {
190
+ ownerState: r({}, x, {
189
191
  state: t
190
192
  }),
191
- className: u.wrapperInner,
192
- children: H
193
+ className: f.wrapperInner,
194
+ children: _
193
195
  })
194
196
  })
195
197
  }))
196
198
  }));
197
199
  });
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
- // └─────────────────────────────────────────────────────────────────────┘
200
+ process.env.NODE_ENV !== "production" && (H.propTypes = {
201
+ // ----------------------------- Warning --------------------------------
202
+ // | These PropTypes are generated from the TypeScript type definitions |
203
+ // | To update them edit the d.ts file and run "yarn proptypes" |
204
+ // ----------------------------------------------------------------------
203
205
  /**
204
206
  * Add a custom transition end trigger. Called with the transitioning DOM
205
207
  * node and a done callback. Allows for more fine grained transition end
@@ -227,7 +229,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
227
229
  * The component used for the root node.
228
230
  * Either a string to use a HTML element or a component.
229
231
  */
230
- component: de,
232
+ component: ce,
231
233
  /**
232
234
  * The transition timing function.
233
235
  * You may specify a single easing or a object containing enter and exit values.
@@ -290,7 +292,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
290
292
  exit: e.number
291
293
  })])
292
294
  });
293
- F.muiSupportAuto = !0;
295
+ H.muiSupportAuto = !0;
294
296
  export {
295
- F as C
297
+ H as C
296
298
  };