@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
@@ -0,0 +1,73 @@
1
+ import { a as l, m as p } from "./createStyled-liRRhQcN.js";
2
+ import { c as d, u as _ } from "./createSvgIcon-Cl8kMTkx.js";
3
+ import { C as g } from "./styled-Dm8rXzIG.js";
4
+ import { c as v, u as b } from "./useId-BHG98T5I.js";
5
+ import { d as h } from "./debounce-46wSf_lW.js";
6
+ import { o as E } from "./ownerWindow-niciwP7I.js";
7
+ import { r as N } from "./requirePropFactory-BItwGLRQ.js";
8
+ import { s as C, b as I, a as S, u as x, c as y } from "./ButtonBase-DJz-TFGO.js";
9
+ import { i as q } from "./isMuiElement-CxT3_ACP.js";
10
+ import { o as $ } from "./ownerDocument-CUrv0DIK.js";
11
+ import { u as D } from "./unsupportedProp-BuVD30Gh.js";
12
+ function M(e, t) {
13
+ return process.env.NODE_ENV === "production" ? () => null : (r, a, u, i, c) => {
14
+ const m = u || "<<anonymous>>", f = c || a;
15
+ return typeof r[a] < "u" ? new Error(`The ${i} \`${f}\` of \`${m}\` is deprecated. ${t}`) : null;
16
+ };
17
+ }
18
+ const O = {
19
+ configure: (e) => {
20
+ 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(`
21
+ `)), g.configure(e);
22
+ }
23
+ }, P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24
+ __proto__: null,
25
+ capitalize: l,
26
+ createChainedFunction: v,
27
+ createSvgIcon: d,
28
+ debounce: h,
29
+ deprecatedPropType: M,
30
+ isMuiElement: q,
31
+ ownerDocument: $,
32
+ ownerWindow: E,
33
+ requirePropFactory: N,
34
+ setRef: C,
35
+ unstable_ClassNameGenerator: O,
36
+ unstable_useEnhancedEffect: I,
37
+ unstable_useId: b,
38
+ unsupportedProp: D,
39
+ useControlled: _,
40
+ useEventCallback: S,
41
+ useForkRef: x,
42
+ useIsFocusVisible: y
43
+ }, Symbol.toStringTag, { value: "Module" }));
44
+ var n = { exports: {} };
45
+ (function(e) {
46
+ function t(r) {
47
+ return r && r.__esModule ? r : {
48
+ default: r
49
+ };
50
+ }
51
+ e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
52
+ })(n);
53
+ var Y = n.exports, o = {};
54
+ const R = /* @__PURE__ */ p(P);
55
+ var s;
56
+ function B() {
57
+ return s || (s = 1, function(e) {
58
+ "use client";
59
+ Object.defineProperty(e, "__esModule", {
60
+ value: !0
61
+ }), Object.defineProperty(e, "default", {
62
+ enumerable: !0,
63
+ get: function() {
64
+ return t.createSvgIcon;
65
+ }
66
+ });
67
+ var t = R;
68
+ }(o)), o;
69
+ }
70
+ export {
71
+ Y as i,
72
+ B as r
73
+ };
@@ -1,133 +1,130 @@
1
1
  import * as l from "react";
2
- import { a as z, _ as S } from "./extends-Cyw62AD_.js";
3
- import { jsxs as I, jsx as _ } from "react/jsx-runtime";
4
- import { a as v, P as o } from "./createTheme-C3DKplhE.js";
5
- import { g as w, u as C, c as N, a as T } from "./chainPropTypes-GRMJ22CO.js";
6
- import { g as O, s as R } from "./styled-iyoioZCr.js";
7
- function L({
2
+ import { a as z, _ } from "./extends-Cyw62AD_.js";
3
+ import { jsxs as I, jsx as w } from "react/jsx-runtime";
4
+ import { a as S, P as o } from "./createStyled-liRRhQcN.js";
5
+ import { g as N, u as T, c as C, a as O } from "./useThemeProps-BXn-nVhw.js";
6
+ import { g as R, s as E } from "./styled-Dm8rXzIG.js";
7
+ function F({
8
8
  controlled: e,
9
- default: n,
10
- name: t,
9
+ default: t,
10
+ name: n,
11
11
  state: r = "value"
12
12
  }) {
13
13
  const {
14
14
  current: i
15
- } = l.useRef(e !== void 0), [u, p] = l.useState(n), c = i ? e : u;
15
+ } = l.useRef(e !== void 0), [f, c] = l.useState(t), a = i ? e : f;
16
16
  if (process.env.NODE_ENV !== "production") {
17
17
  l.useEffect(() => {
18
- i !== (e !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${r} state of ${t} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
18
+ i !== (e !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${r} state of ${n} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
19
19
  `));
20
- }, [r, t, e]);
20
+ }, [r, n, e]);
21
21
  const {
22
22
  current: s
23
- } = l.useRef(n);
23
+ } = l.useRef(t);
24
24
  l.useEffect(() => {
25
- !i && !Object.is(s, n) && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
25
+ !i && !Object.is(s, t) && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
26
26
  `));
27
- }, [JSON.stringify(n)]);
27
+ }, [JSON.stringify(t)]);
28
28
  }
29
- const m = l.useCallback((s) => {
30
- i || p(s);
29
+ const u = l.useCallback((s) => {
30
+ i || c(s);
31
31
  }, []);
32
- return [c, m];
32
+ return [a, u];
33
33
  }
34
- function E(e) {
35
- return O("MuiSvgIcon", e);
34
+ function j(e) {
35
+ return R("MuiSvgIcon", e);
36
36
  }
37
- w("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
38
- const V = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], j = (e) => {
37
+ N("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
38
+ const V = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], M = (e) => {
39
39
  const {
40
- color: n,
41
- fontSize: t,
40
+ color: t,
41
+ fontSize: n,
42
42
  classes: r
43
43
  } = e, i = {
44
- root: ["root", n !== "inherit" && `color${v(n)}`, `fontSize${v(t)}`]
44
+ root: ["root", t !== "inherit" && `color${S(t)}`, `fontSize${S(n)}`]
45
45
  };
46
- return T(i, E, r);
47
- }, A = R("svg", {
46
+ return O(i, j, r);
47
+ }, B = E("svg", {
48
48
  name: "MuiSvgIcon",
49
49
  slot: "Root",
50
- overridesResolver: (e, n) => {
50
+ overridesResolver: (e, t) => {
51
51
  const {
52
- ownerState: t
52
+ ownerState: n
53
53
  } = e;
54
- return [n.root, t.color !== "inherit" && n[`color${v(t.color)}`], n[`fontSize${v(t.fontSize)}`]];
54
+ return [t.root, n.color !== "inherit" && t[`color${S(n.color)}`], t[`fontSize${S(n.fontSize)}`]];
55
55
  }
56
56
  })(({
57
57
  theme: e,
58
- ownerState: n
58
+ ownerState: t
59
59
  }) => {
60
- var t, r, i, u, p, c, m, s, g, d, f, h, a;
60
+ var n, r, i, f, c, a, u, s, p, d, m, v, h, g, y, x, b;
61
61
  return {
62
62
  userSelect: "none",
63
63
  width: "1em",
64
64
  height: "1em",
65
65
  display: "inline-block",
66
- // the <svg> will define the property that has `currentColor`
67
- // for example heroicons uses fill="none" and stroke="currentColor"
68
- fill: n.hasSvgAsChild ? void 0 : "currentColor",
66
+ fill: "currentColor",
69
67
  flexShrink: 0,
70
- transition: (t = e.transitions) == null || (r = t.create) == null ? void 0 : r.call(t, "fill", {
71
- duration: (i = e.transitions) == null || (i = i.duration) == null ? void 0 : i.shorter
68
+ transition: (n = e.transitions) == null || (r = n.create) == null ? void 0 : r.call(n, "fill", {
69
+ duration: (i = e.transitions) == null || (f = i.duration) == null ? void 0 : f.shorter
72
70
  }),
73
71
  fontSize: {
74
72
  inherit: "inherit",
75
- small: ((u = e.typography) == null || (p = u.pxToRem) == null ? void 0 : p.call(u, 20)) || "1.25rem",
76
- medium: ((c = e.typography) == null || (m = c.pxToRem) == null ? void 0 : m.call(c, 24)) || "1.5rem",
77
- large: ((s = e.typography) == null || (g = s.pxToRem) == null ? void 0 : g.call(s, 35)) || "2.1875rem"
78
- }[n.fontSize],
73
+ small: ((c = e.typography) == null || (a = c.pxToRem) == null ? void 0 : a.call(c, 20)) || "1.25rem",
74
+ medium: ((u = e.typography) == null || (s = u.pxToRem) == null ? void 0 : s.call(u, 24)) || "1.5rem",
75
+ large: ((p = e.typography) == null || (d = p.pxToRem) == null ? void 0 : d.call(p, 35)) || "2.1875rem"
76
+ }[t.fontSize],
79
77
  // TODO v5 deprecate, v6 remove for sx
80
- color: (d = (f = (e.vars || e).palette) == null || (f = f[n.color]) == null ? void 0 : f.main) != null ? d : {
81
- action: (h = (e.vars || e).palette) == null || (h = h.action) == null ? void 0 : h.active,
82
- disabled: (a = (e.vars || e).palette) == null || (a = a.action) == null ? void 0 : a.disabled,
78
+ color: (m = (v = (e.vars || e).palette) == null || (h = v[t.color]) == null ? void 0 : h.main) != null ? m : {
79
+ action: (g = (e.vars || e).palette) == null || (y = g.action) == null ? void 0 : y.active,
80
+ disabled: (x = (e.vars || e).palette) == null || (b = x.action) == null ? void 0 : b.disabled,
83
81
  inherit: void 0
84
- }[n.color]
82
+ }[t.color]
85
83
  };
86
- }), y = /* @__PURE__ */ l.forwardRef(function(n, t) {
87
- const r = C({
88
- props: n,
84
+ }), $ = /* @__PURE__ */ l.forwardRef(function(t, n) {
85
+ const r = T({
86
+ props: t,
89
87
  name: "MuiSvgIcon"
90
88
  }), {
91
89
  children: i,
92
- className: u,
93
- color: p = "inherit",
94
- component: c = "svg",
95
- fontSize: m = "medium",
90
+ className: f,
91
+ color: c = "inherit",
92
+ component: a = "svg",
93
+ fontSize: u = "medium",
96
94
  htmlColor: s,
97
- inheritViewBox: g = !1,
95
+ inheritViewBox: p = !1,
98
96
  titleAccess: d,
99
- viewBox: f = "0 0 24 24"
100
- } = r, h = z(r, V), a = /* @__PURE__ */ l.isValidElement(i) && i.type === "svg", $ = S({}, r, {
101
- color: p,
102
- component: c,
103
- fontSize: m,
104
- instanceFontSize: n.fontSize,
105
- inheritViewBox: g,
106
- viewBox: f,
107
- hasSvgAsChild: a
108
- }), x = {};
109
- g || (x.viewBox = f);
110
- const b = j($);
111
- return /* @__PURE__ */ I(A, S({
112
- as: c,
113
- className: N(b.root, u),
97
+ viewBox: m = "0 0 24 24"
98
+ } = r, v = z(r, V), h = _({}, r, {
99
+ color: c,
100
+ component: a,
101
+ fontSize: u,
102
+ instanceFontSize: t.fontSize,
103
+ inheritViewBox: p,
104
+ viewBox: m
105
+ }), g = {};
106
+ p || (g.viewBox = m);
107
+ const y = M(h);
108
+ return /* @__PURE__ */ I(B, _({
109
+ as: a,
110
+ className: C(y.root, f),
114
111
  focusable: "false",
115
112
  color: s,
116
113
  "aria-hidden": d ? void 0 : !0,
117
114
  role: d ? "img" : void 0,
118
- ref: t
119
- }, x, h, a && i.props, {
120
- ownerState: $,
121
- children: [a ? i.props.children : i, d ? /* @__PURE__ */ _("title", {
115
+ ref: n
116
+ }, g, v, {
117
+ ownerState: h,
118
+ children: [i, d ? /* @__PURE__ */ w("title", {
122
119
  children: d
123
120
  }) : null]
124
121
  }));
125
122
  });
126
- process.env.NODE_ENV !== "production" && (y.propTypes = {
127
- // ┌────────────────────────────── Warning ──────────────────────────────┐
128
- // These PropTypes are generated from the TypeScript type definitions.
129
- // To update them, edit the d.ts file and run `pnpm proptypes`.
130
- // └─────────────────────────────────────────────────────────────────────┘
123
+ process.env.NODE_ENV !== "production" && ($.propTypes = {
124
+ // ----------------------------- Warning --------------------------------
125
+ // | These PropTypes are generated from the TypeScript type definitions |
126
+ // | To update them edit the d.ts file and run "yarn proptypes" |
127
+ // ----------------------------------------------------------------------
131
128
  /**
132
129
  * Node passed into the SVG element.
133
130
  */
@@ -143,7 +140,7 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
143
140
  /**
144
141
  * The color of the component.
145
142
  * It supports both default and custom theme colors, which can be added as shown in the
146
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
143
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
147
144
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
148
145
  * @default 'inherit'
149
146
  */
@@ -195,19 +192,19 @@ process.env.NODE_ENV !== "production" && (y.propTypes = {
195
192
  */
196
193
  viewBox: o.string
197
194
  });
198
- y.muiName = "SvgIcon";
199
- function F(e, n) {
200
- function t(r, i) {
201
- return /* @__PURE__ */ _(y, S({
202
- "data-testid": `${n}Icon`,
195
+ $.muiName = "SvgIcon";
196
+ function J(e, t) {
197
+ function n(r, i) {
198
+ return /* @__PURE__ */ w($, _({
199
+ "data-testid": `${t}Icon`,
203
200
  ref: i
204
201
  }, r, {
205
202
  children: e
206
203
  }));
207
204
  }
208
- return process.env.NODE_ENV !== "production" && (t.displayName = `${n}Icon`), t.muiName = y.muiName, /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef(t));
205
+ return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = $.muiName, /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef(n));
209
206
  }
210
207
  export {
211
- F as c,
212
- L as u
208
+ J as c,
209
+ F as u
213
210
  };
@@ -1,5 +1,5 @@
1
- import { P as a } from "./createTheme-C3DKplhE.js";
2
- import { b as p } from "./chainPropTypes-GRMJ22CO.js";
1
+ import { P as a } from "./createStyled-liRRhQcN.js";
2
+ import { d as p } from "./useThemeProps-BXn-nVhw.js";
3
3
  import { _ as f } from "./extends-Cyw62AD_.js";
4
4
  function m(e) {
5
5
  const {
@@ -8,11 +8,11 @@ import $ from "./hooks/useToggle.js";
8
8
  import { GeometryPicker as q } from "./components/geometry-picker/index.js";
9
9
  import { PhoneInput as J } from "./components/phone-input/index.js";
10
10
  import { DateTimePicker as K } from "./components/date-time-picker/index.js";
11
- import { T as D, F as Q } from "./FormControlLabel-Df7csguX.js";
12
- import { B as x, C as U } from "./Checkbox-BGNAqLl0.js";
13
- import { F as X, I as Z } from "./FormControl-ChTmxscy.js";
14
- import { S as M } from "./Select-C1jD_gBQ.js";
15
- import { M as z } from "./MenuItem-DF45rx2m.js";
11
+ import { T as D, F as Q } from "./FormControlLabel-hDa-xf_q.js";
12
+ import { B as x, C as U } from "./Checkbox-DzmWBCrt.js";
13
+ import { F as X, I as Z } from "./FormControl-aXQs42m6.js";
14
+ import { S as M } from "./Select-Cdmu0dQ4.js";
15
+ import { M as z } from "./MenuItem-BEW28T9O.js";
16
16
  import { useState as ee } from "react";
17
17
  function ne({
18
18
  property: m,