@hybridcore/ui 1.6.12 → 1.6.14

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 (68) hide show
  1. package/dist/{AccordionSummary-CJppWeqF.js → AccordionSummary-DUtr16g6.js} +7 -7
  2. package/dist/{Add-CqcD1PWb.js → Add-Bk8R160M.js} +9 -9
  3. package/dist/{Button-C5yquWAB.js → Button-Cem3nbwc.js} +12 -12
  4. package/dist/{ButtonBase-BEF7oTOe.js → ButtonBase-DObmf4Q_.js} +4 -5
  5. package/dist/{IconButton-BoGwbvrP.js → Delete-CVJ6FeDn.js} +91 -72
  6. package/dist/{FormGroup-CpBsIyYR.js → FormGroup-BRj1o7-E.js} +3 -3
  7. package/dist/{InputLabel-Dd8RrneV.js → InputLabel-CjD30ZHz.js} +3 -3
  8. package/dist/{MenuItem-DwqJqzuM.js → MenuItem-BKvRGLvM.js} +6 -6
  9. package/dist/{Modal-MUZygjmQ.js → Modal-BVYydOr5.js} +7 -9
  10. package/dist/{Paper-BkQLdsCI.js → Paper-B1HV8GyO.js} +37 -37
  11. package/dist/{Select-DHUl_uG3.js → Select-Bfhvigsx.js} +2793 -2795
  12. package/dist/{SwitchBase-DTndTqI8.js → SwitchBase-BEK49kdS.js} +5 -5
  13. package/dist/{TextField-e2oKaUN1.js → TextField-Ca9ykixI.js} +166 -139
  14. package/dist/{TransitionGroupContext-BDAp2T0O.js → TransitionGroupContext-Ja2CgIob.js} +1 -1
  15. package/dist/{Typography-DgsSLCFC.js → Typography-D3X-Y5fh.js} +3 -3
  16. package/dist/{_commonjsHelpers-BVfed4GL.js → _commonjsHelpers-BkfeUUK-.js} +2 -2
  17. package/dist/components/button/styled.js +1 -1
  18. package/dist/components/charts/_common/format.js +193 -41
  19. package/dist/components/charts/_common/utils.js +16 -11
  20. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1 -1
  21. package/dist/components/collapsible-card/index.js +2 -2
  22. package/dist/components/collapsible-card/styled.js +1 -1
  23. package/dist/components/color-picker/index.js +7 -7
  24. package/dist/components/color-picker/styled.js +1 -1
  25. package/dist/components/confirm/dialog.js +3 -4
  26. package/dist/components/confirm/index.js +1 -1
  27. package/dist/components/data-map/index.js +1 -1
  28. package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
  29. package/dist/components/date-picker-with-custom-range/index.js +86 -7
  30. package/dist/components/date-range-picker/index.js +2 -2
  31. package/dist/components/duration-select/index.js +1 -1
  32. package/dist/components/duration-select/styled.js +1 -1
  33. package/dist/components/heat-map/index.js +1 -1
  34. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2 -2
  35. package/dist/components/instance-hierarchy-table/styled.js +1 -1
  36. package/dist/components/metric-card/logic.js +46 -49
  37. package/dist/components/prr-map/index.js +1 -1
  38. package/dist/components/range-selector/styled.js +65 -4228
  39. package/dist/components/raster-grid-map/index.js +1 -1
  40. package/dist/components/simple-pivot-table/index.js +17 -17
  41. package/dist/components/simple-pivot-table/logic.js +67 -76
  42. package/dist/components/sortable-list/index.js +5 -5
  43. package/dist/components/template-form/components/property-list/index.js +11 -12
  44. package/dist/components/template-form/components/property-list/property-list-columns.js +4 -5
  45. package/dist/components/template-form/components/property-list/property-list-form.js +25 -26
  46. package/dist/components/template-form/components/recognition-property-list/index.js +16 -17
  47. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +3 -4
  48. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +21 -22
  49. package/dist/components/tree-select/index.js +1 -1
  50. package/dist/createSvgIcon-BghzB2Y9.js +93 -0
  51. package/dist/{createSvgIcon-Ch_cT8az.js → createSvgIcon-D7U1nd99.js} +3 -3
  52. package/dist/{DialogContent-BvVjD9z3.js → dialog-BtJhjyF5.js} +326 -185
  53. package/dist/{generateUtilityClasses-C3ivN9Ie.js → generateUtilityClasses-Cc-owZ4J.js} +9 -11
  54. package/dist/{index-C__OZmYy.js → index-CblbdqjE.js} +1 -1
  55. package/dist/{index.esm-BLLrbTzY.js → index.esm-DAf19hyR.js} +1 -1
  56. package/dist/main.d.ts +54 -8
  57. package/dist/main.js +176 -175
  58. package/dist/{styled-SoqbyrkW.js → styled-DD4BkuVf.js} +6 -6
  59. package/dist/{useSlot-B_Q4vnX5.js → useSlot-u4t0X96G.js} +3 -3
  60. package/package.json +1 -1
  61. package/dist/Box-DqUMmZjL.js +0 -31
  62. package/dist/Delete-BdyYpINH.js +0 -23
  63. package/dist/createSvgIcon-DuDuASu1.js +0 -62
  64. package/dist/dialog-BYRnCztH.js +0 -154
  65. package/dist/index-e9xTIYWt.js +0 -1934
  66. package/dist/unsupportedProp-DuqR2hj9.js +0 -36
  67. package/dist/useMobilePicker-CY8ndYRL.js +0 -8279
  68. package/dist/{objectWithoutPropertiesLoose-DJteAcBH.js → extends-C3382pL0.js} +9 -9
@@ -1,99 +1,96 @@
1
1
  import { useThemeProps as K } from "@mui/material";
2
- import { formatValue as $, resolveConditionalStyle as B } from "../charts/_common/format.js";
3
- import { c as y } from "../../createReactComponent-C7L-DMHj.js";
2
+ import { formatValue as B, resolveConditionalStyle as D } from "../charts/_common/format.js";
3
+ import { c as m } from "../../createReactComponent-C7L-DMHj.js";
4
4
  /**
5
5
  * @license @tabler/icons-react v3.44.0 - MIT
6
6
  *
7
7
  * This source code is licensed under the MIT license.
8
8
  * See the LICENSE file in the root directory of this source tree.
9
9
  */
10
- const Q = [["path", { d: "M5 12l14 0", key: "svg-0" }], ["path", { d: "M13 18l6 -6", key: "svg-1" }], ["path", { d: "M13 6l6 6", key: "svg-2" }]], W = y("outline", "arrow-right", "ArrowRight", Q);
10
+ const Q = [["path", { d: "M5 12l14 0", key: "svg-0" }], ["path", { d: "M13 18l6 -6", key: "svg-1" }], ["path", { d: "M13 6l6 6", key: "svg-2" }]], W = m("outline", "arrow-right", "ArrowRight", Q);
11
11
  /**
12
12
  * @license @tabler/icons-react v3.44.0 - MIT
13
13
  *
14
14
  * This source code is licensed under the MIT license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
16
  */
17
- const X = [["path", { d: "M3 7l6 6l4 -4l8 8", key: "svg-0" }], ["path", { d: "M21 10l0 7l-7 0", key: "svg-1" }]], Y = y("outline", "trending-down", "TrendingDown", X);
17
+ const X = [["path", { d: "M3 7l6 6l4 -4l8 8", key: "svg-0" }], ["path", { d: "M21 10l0 7l-7 0", key: "svg-1" }]], Y = m("outline", "trending-down", "TrendingDown", X);
18
18
  /**
19
19
  * @license @tabler/icons-react v3.44.0 - MIT
20
20
  *
21
21
  * This source code is licensed under the MIT license.
22
22
  * See the LICENSE file in the root directory of this source tree.
23
23
  */
24
- const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d: "M14 7l7 0l0 7", key: "svg-1" }]], oe = y("outline", "trending-up", "TrendingUp", ee), ce = (D) => {
25
- const r = K({ props: D, name: "HCMetricCard" }), {
24
+ const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d: "M14 7l7 0l0 7", key: "svg-1" }]], oe = m("outline", "trending-up", "TrendingUp", ee), ce = (F) => {
25
+ const i = K({ props: F, name: "HCMetricCard" }), {
26
26
  value: c = [],
27
- secondValue: C = [],
28
- secondValueFormat: F,
29
- variant: P = "default",
27
+ secondValue: y = [],
28
+ secondValueFormat: P,
29
+ variant: R = "default",
30
30
  layout: w = "overlay",
31
31
  valuePrefix: A,
32
32
  valueSuffix: O,
33
- format: e,
33
+ format: o,
34
34
  showChange: U = !1,
35
- changeType: s = "percentage",
35
+ changeType: a = "percentage",
36
36
  showTrend: Z = !1,
37
- showIcon: b = !1,
37
+ showIcon: C = !1,
38
38
  icon: d,
39
39
  iconPosition: u = "right"
40
- } = r, H = c.length > 0, g = c[c.length - 1], k = c[c.length - 2], o = g ? Number(g.v) : NaN, t = k ? Number(k.v) : NaN, m = !isNaN(o) && !isNaN(t), p = {
41
- prefix: (e == null ? void 0 : e.prefix) ?? A,
42
- suffix: (e == null ? void 0 : e.suffix) ?? O,
43
- decimals: e == null ? void 0 : e.decimals,
44
- color: e == null ? void 0 : e.color,
45
- backgroundColor: e == null ? void 0 : e.backgroundColor,
46
- conditionalRules: e == null ? void 0 : e.conditionalRules
40
+ } = i, H = c.length > 0, g = c[c.length - 1], S = c[c.length - 2], e = g ? Number(g.v) : NaN, t = S ? Number(S.v) : NaN, b = !isNaN(e) && !isNaN(t), p = {
41
+ ...o,
42
+ prefix: (o == null ? void 0 : o.prefix) ?? A,
43
+ suffix: (o == null ? void 0 : o.suffix) ?? O
47
44
  };
48
- let i = "—", S = "", M, V;
49
- if (!isNaN(o)) {
50
- i = $(o, p), S = g.t;
51
- const l = B(o, p);
52
- M = l.color, V = l.backgroundColor;
45
+ let r = "—", M = "", V, k;
46
+ if (!isNaN(e)) {
47
+ r = B(e, p), M = g.t;
48
+ const l = D(e, p);
49
+ V = l.color, k = l.backgroundColor;
53
50
  }
54
- const I = F ?? p;
51
+ const I = P ?? p;
55
52
  let h, T, x;
56
- const _ = C[C.length - 1], f = _ ? Number(_.v) : NaN;
53
+ const _ = y[y.length - 1], f = _ ? Number(_.v) : NaN;
57
54
  if (!isNaN(f)) {
58
- h = $(f, I);
59
- const l = B(f, I);
55
+ h = B(f, I);
56
+ const l = D(f, I);
60
57
  T = l.color, x = l.backgroundColor;
61
58
  }
62
- let a;
59
+ let s;
63
60
  if (U)
64
- if (m && !(t === 0 && s === "percentage")) {
65
- const N = s === "absolute" ? o - t : (o - t) / t * 100, z = N > 0 ? "+" : N < 0 ? "−" : "", E = s === "percentage" ? 1 : 2, G = s === "percentage" ? "%" : "";
66
- a = `${z}${Math.abs(N).toFixed(E)}${G}`;
61
+ if (b && !(t === 0 && a === "percentage")) {
62
+ const N = a === "absolute" ? e - t : (e - t) / t * 100, z = N > 0 ? "+" : N < 0 ? "−" : "", E = a === "percentage" ? 1 : 2, G = a === "percentage" ? "%" : "";
63
+ s = `${z}${Math.abs(N).toFixed(E)}${G}`;
67
64
  } else
68
- a = "—";
65
+ s = "—";
69
66
  let n;
70
- Z && m && (o > t ? n = "up" : o < t ? n = "down" : n = "neutral");
67
+ Z && b && (e > t ? n = "up" : e < t ? n = "down" : n = "neutral");
71
68
  let v = W;
72
69
  n === "up" ? v = oe : n === "down" && (v = Y);
73
- const R = [
70
+ const $ = [
74
71
  "top-left",
75
72
  "top-right",
76
73
  "bottom-left",
77
74
  "bottom-right"
78
- ].includes(u), J = b && !!d && R, L = b && !!d && !R, j = JSON.stringify({
79
- metric: r.label,
80
- value: i,
81
- change: a,
82
- asOf: S
75
+ ].includes(u), J = C && !!d && $, L = C && !!d && !$, j = JSON.stringify({
76
+ metric: i.label,
77
+ value: r,
78
+ change: s,
79
+ asOf: M
83
80
  }), q = {
84
- ...r,
85
- variant: P,
81
+ ...i,
82
+ variant: R,
86
83
  layout: w,
87
- changeType: s,
84
+ changeType: a,
88
85
  iconPosition: u,
89
- calculatedValue: i,
86
+ calculatedValue: r,
90
87
  calculatedSecondValue: h,
91
88
  calculatedSecondValueColor: T,
92
89
  calculatedSecondValueBg: x,
93
- calculatedChange: a,
90
+ calculatedChange: s,
94
91
  calculatedTrend: n,
95
- calculatedValueColor: M,
96
- calculatedValueBg: V,
92
+ calculatedValueColor: V,
93
+ calculatedValueBg: k,
97
94
  hasData: H
98
95
  };
99
96
  return {
@@ -101,9 +98,9 @@ const ee = [["path", { d: "M3 17l6 -6l4 4l8 -8", key: "svg-0" }], ["path", { d:
101
98
  state: {
102
99
  ownerState: q,
103
100
  layout: w,
104
- calculatedValue: i,
101
+ calculatedValue: r,
105
102
  calculatedSecondValue: h,
106
- calculatedChange: a,
103
+ calculatedChange: s,
107
104
  TrendIcon: v,
108
105
  Icon: d,
109
106
  showCornerIcon: J,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import { Typography as c } from "@mui/material";
3
3
  import { useEffect as l } from "react";
4
- import { u } from "../../index.esm-BLLrbTzY.js";
4
+ import { u } from "../../index.esm-DAf19hyR.js";
5
5
  import { Map as d } from "../map/index.js";
6
6
  import { Controls as h } from "./components/controls/index.js";
7
7
  import { Legend as M } from "./components/legend/index.js";