@hybridcore/ui 1.1.2 → 1.2.0

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 (72) hide show
  1. package/dist/{ButtonBase-BYmh3G5j.js → ButtonBase-C7CHOX3y.js} +8 -7
  2. package/dist/{CardContent-C8PxkJz4.js → CardContent-DDFwwGfd.js} +3 -3
  3. package/dist/Checkbox-DP6_qp1v.js +469 -0
  4. package/dist/Collapse-9egEADkh.js +296 -0
  5. package/dist/{DialogContent-2aPOjKE7.js → DialogContent-MMUsECN2.js} +746 -789
  6. package/dist/{FormControl-BiAFm76F.js → FormControl-Cj5nc-Nv.js} +151 -163
  7. package/dist/FormControlLabel-j_atSYQA.js +827 -0
  8. package/dist/{IconButton-CQJ8wZE8.js → IconButton-2FRFauye.js} +4 -4
  9. package/dist/{Input-Bf5G3tFN.js → Input-BY_yKOrF.js} +5 -5
  10. package/dist/{listItemTextClasses-BvXFz-Oc.js → List-CgBXAAKA.js} +50 -62
  11. package/dist/ListItem-BFDUUjHt.js +428 -0
  12. package/dist/MenuItem-BejUFNIP.js +233 -0
  13. package/dist/{OutlinedInput-BEVE8VZQ.js → OutlinedInput-CnzESIDi.js} +5 -5
  14. package/dist/{Paper-CaiWdndQ.js → Paper-k37cShvn.js} +4 -4
  15. package/dist/{Select-DxpxZbJp.js → Select-BGt6e73I.js} +804 -1025
  16. package/dist/{Typography-XIiVCSto.js → Typography-Bjo-B13o.js} +3 -3
  17. package/dist/{chainPropTypes-DtBfUj5o.js → chainPropTypes-BmidnkZm.js} +2 -2
  18. package/dist/components/card/index.js +5 -5
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/index.js +34 -0
  21. package/dist/components/collapsible-card/style.js +575 -0
  22. package/dist/components/confirm/dialog.js +5 -5
  23. package/dist/components/container/index.js +6 -6
  24. package/dist/components/context-menu/index.js +191 -603
  25. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  26. package/dist/components/data-management/instance-form/components/variable/index.js +7 -5
  27. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  28. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  29. package/dist/components/geometry-picker/edit/index.js +1 -1
  30. package/dist/components/geometry-picker/geometry/index.js +1 -1
  31. package/dist/components/geometry-picker/index.js +2 -2
  32. package/dist/components/geometry-picker/kml/index.js +1 -1
  33. package/dist/components/geometry-picker/map/index.js +1 -1
  34. package/dist/components/geometry-picker/map/logic.js +1 -1
  35. package/dist/components/icon-button/index.js +1 -1
  36. package/dist/components/map/helpers/ol.js +2 -2
  37. package/dist/components/map/index.js +2 -2
  38. package/dist/components/map/logic.js +1 -1
  39. package/dist/components/map/styled.js +89 -6
  40. package/dist/components/search-input/index.js +119 -48
  41. package/dist/components/template-property-filters/index.js +78 -0
  42. package/dist/components/template-property-filters/property.js +7019 -0
  43. package/dist/components/tree-select/index.js +14 -13
  44. package/dist/components/treeview-filter/index.js +263 -328
  45. package/dist/components/treeview-filter/item/index.js +1 -1
  46. package/dist/components/treeview-filter/item-label/index.js +2 -2
  47. package/dist/createSvgIcon-DAR6Hwv8.js +77 -0
  48. package/dist/createSvgIcon-R_PakhKf.js +213 -0
  49. package/dist/{createTheme-agWfFD64.js → createTheme-oOCi1S_n.js} +5 -5
  50. package/dist/debounce-46wSf_lW.js +15 -0
  51. package/dist/{exactProp-CI8dagM-.js → exactProp-DhXxfU8X.js} +2 -2
  52. package/dist/index-C7W2wuUG.js +609 -0
  53. package/dist/index-DHnXB0CB.js +287 -0
  54. package/dist/{index-IvOfmM1F.js → index-JrtqxUdI.js} +6 -6
  55. package/dist/listItemTextClasses-CaI8l2PD.js +16 -0
  56. package/dist/main.d.ts +140 -0
  57. package/dist/main.js +1 -1
  58. package/dist/{ol-DXmSLlWv.js → ol-q6vTiF_t.js} +1 -1
  59. package/dist/resolveComponentProps-BwtY1IP3.js +54 -0
  60. package/dist/styled-CHMAYxVs.js +142 -0
  61. package/dist/{styled-Iq9jsO4F.js → styled-Wx2vv4j8.js} +1 -1
  62. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  63. package/dist/{useTheme-C0Dky5rV.js → useTheme-BI40KZ7w.js} +2 -1
  64. package/dist/{useTheme-CeyGVuQP.js → useTheme-CD5DEi5n.js} +2 -2
  65. package/dist/useThemeProps-D4or2IlT.js +62 -0
  66. package/dist/{useThemeProps-CzAjOL6F.js → useThemeProps-DT5EdhcP.js} +5 -4
  67. package/dist/{utils-DLpkeyhZ.js → utils-BEaBPoDF.js} +10 -10
  68. package/package.json +1 -1
  69. package/dist/Checkbox-DostZSwR.js +0 -673
  70. package/dist/index-Bw_m9ult.js +0 -1105
  71. package/dist/index-wW2D1aTG.js +0 -957
  72. package/dist/styled-C43K9x7T.js +0 -229
@@ -1,4 +1,4 @@
1
- import { k as A, o as De, d as P, e as _e, l as K, c as Pe, g as Re, p as Ie, a as xe, q as Ve, t as ze, u as ne, b as Oe, v as Fe } from "./createTheme-agWfFD64.js";
1
+ import { h as A, o as De, d as P, e as _e, f as K, c as Pe, g as Re, p as Ie, a as xe, q as Ve, t as ze, u as ne, b as Oe, v as Fe } from "./createTheme-oOCi1S_n.js";
2
2
  import { _ as W, a as _ } from "./extends-C3382pL0.js";
3
3
  var U = {}, $e = { exports: {} };
4
4
  (function(e) {
@@ -0,0 +1,9 @@
1
+ function p(n, e, t, u, o) {
2
+ if (process.env.NODE_ENV === "production")
3
+ return null;
4
+ const r = o || e;
5
+ return typeof n[e] < "u" ? new Error(`The prop \`${r}\` is not supported. Please remove it.`) : null;
6
+ }
7
+ export {
8
+ p as u
9
+ };
@@ -1,6 +1,6 @@
1
1
  import * as n from "react";
2
2
  import { ThemeContext as o } from "@emotion/react";
3
- import { a as m } from "./createTheme-agWfFD64.js";
3
+ import { a as m } from "./createTheme-oOCi1S_n.js";
4
4
  function r(e) {
5
5
  return Object.keys(e).length === 0;
6
6
  }
@@ -13,5 +13,6 @@ function f(e = u) {
13
13
  return s(e);
14
14
  }
15
15
  export {
16
+ s as a,
16
17
  f as u
17
18
  };
@@ -1,6 +1,6 @@
1
1
  import * as o from "react";
2
- import { d as r, T as s } from "./styled-Iq9jsO4F.js";
3
- import { u as t } from "./useTheme-C0Dky5rV.js";
2
+ import { d as r, T as s } from "./styled-Wx2vv4j8.js";
3
+ import { u as t } from "./useTheme-BI40KZ7w.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;
@@ -0,0 +1,62 @@
1
+ import { c as a, d as f, T as u } from "./styled-Wx2vv4j8.js";
2
+ import { f as o } from "./createTheme-oOCi1S_n.js";
3
+ import { u as h } from "./useThemeProps-DT5EdhcP.js";
4
+ function g(e, t = 0, s = 1) {
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
+ }
7
+ function l(e) {
8
+ e = e.slice(1);
9
+ const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
10
+ let s = e.match(t);
11
+ return s && s[0].length === 1 && (s = s.map((r) => r + r)), s ? `rgb${s.length === 4 ? "a" : ""}(${s.map((r, n) => n < 3 ? parseInt(r, 16) : Math.round(parseInt(r, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
12
+ }
13
+ function i(e) {
14
+ if (e.type)
15
+ return e;
16
+ if (e.charAt(0) === "#")
17
+ return i(l(e));
18
+ const t = e.indexOf("("), s = e.substring(0, t);
19
+ if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(s) === -1)
20
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
21
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : o(9, e));
22
+ let r = e.substring(t + 1, e.length - 1), n;
23
+ if (s === "color") {
24
+ if (r = r.split(" "), n = r.shift(), r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(n) === -1)
25
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${n}\` color space.
26
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : o(10, n));
27
+ } else
28
+ r = r.split(",");
29
+ return r = r.map((p) => parseFloat(p)), {
30
+ type: s,
31
+ values: r,
32
+ colorSpace: n
33
+ };
34
+ }
35
+ function c(e) {
36
+ const {
37
+ type: t,
38
+ colorSpace: s
39
+ } = e;
40
+ let {
41
+ values: r
42
+ } = e;
43
+ return t.indexOf("rgb") !== -1 ? r = r.map((n, p) => p < 3 ? parseInt(n, 10) : n) : t.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), t.indexOf("color") !== -1 ? r = `${s} ${r.join(" ")}` : r = `${r.join(", ")}`, `${t}(${r})`;
44
+ }
45
+ function b(e, t) {
46
+ return e = i(e), t = g(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, c(e);
47
+ }
48
+ function E({
49
+ props: e,
50
+ name: t
51
+ }) {
52
+ return h({
53
+ props: e,
54
+ name: t,
55
+ defaultTheme: f,
56
+ themeId: u
57
+ });
58
+ }
59
+ export {
60
+ b as a,
61
+ E as u
62
+ };
@@ -1,5 +1,5 @@
1
- import { r as n } from "./chainPropTypes-DtBfUj5o.js";
2
- import { u as p } from "./useTheme-C0Dky5rV.js";
1
+ import { r as n } from "./chainPropTypes-BmidnkZm.js";
2
+ import { u as p } from "./useTheme-BI40KZ7w.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 P({
11
+ function a({
12
12
  props: t,
13
13
  name: e,
14
14
  defaultTheme: o,
@@ -22,5 +22,6 @@ function P({
22
22
  });
23
23
  }
24
24
  export {
25
- P as u
25
+ m as g,
26
+ a as u
26
27
  };
@@ -1,6 +1,6 @@
1
1
  import { _ as D } from "./extends-C3382pL0.js";
2
- import { _ as C, T as S } from "./ButtonBase-BYmh3G5j.js";
3
- import { P as i } from "./createTheme-agWfFD64.js";
2
+ import { _ as C, T as S } from "./ButtonBase-C7CHOX3y.js";
3
+ import { P as i } from "./createTheme-oOCi1S_n.js";
4
4
  import v from "react";
5
5
  import b from "react-dom";
6
6
  const N = {
@@ -10,8 +10,7 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
10
10
  enter: i.number,
11
11
  exit: i.number,
12
12
  appear: i.number
13
- }).isRequired]) : null;
14
- process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({
13
+ }).isRequired]) : null, P = process.env.NODE_ENV !== "production" ? i.oneOfType([i.string, i.shape({
15
14
  enter: i.string,
16
15
  exit: i.string,
17
16
  active: i.string
@@ -22,8 +21,7 @@ process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({
22
21
  exit: i.string,
23
22
  exitDone: i.string,
24
23
  exitActive: i.string
25
- })]);
26
- var y = function(a) {
24
+ })]) : null, y = function(a) {
27
25
  return a.scrollTop;
28
26
  }, x = "unmounted", f = "exited", c = "entering", h = "entered", T = "exiting", l = /* @__PURE__ */ function(u) {
29
27
  C(a, u);
@@ -344,8 +342,8 @@ l.EXITED = f;
344
342
  l.ENTERING = c;
345
343
  l.ENTERED = h;
346
344
  l.EXITING = T;
347
- const P = (u) => u.scrollTop;
348
- function U(u, a) {
345
+ const U = (u) => u.scrollTop;
346
+ function w(u, a) {
349
347
  var o, r;
350
348
  const {
351
349
  timeout: e,
@@ -360,6 +358,8 @@ function U(u, a) {
360
358
  }
361
359
  export {
362
360
  l as T,
363
- U as g,
364
- P as r
361
+ P as c,
362
+ y as f,
363
+ w as g,
364
+ U as r
365
365
  };
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.1.2",
4
+ "version": "1.2.0",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",