@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,14 +1,13 @@
1
- import V, { jsxs as o, Fragment as S, jsx as t } from "react/jsx-runtime";
2
- import i from "react";
3
- import { i as C } from "../../../../generateUtilityClasses-C3ivN9Ie.js";
4
- import { r as g } from "../../../../createSvgIcon-DuDuASu1.js";
1
+ import V, { jsxs as i, Fragment as S, jsx as t } from "react/jsx-runtime";
2
+ import o from "react";
3
+ import { i as C } from "../../../../generateUtilityClasses-Cc-owZ4J.js";
4
+ import { r as g } from "../../../../createSvgIcon-BghzB2Y9.js";
5
5
  import { RECOGNITION_PROPERTY_OWNER_TYPE as h, RECOGNITION_PROPERTY_TYPE as T, RECOGNITION_PROPERTY_TERM_MATCH as v } from "../../../../constants/index.js";
6
- import { F as c, T as b } from "../../../../TextField-e2oKaUN1.js";
7
- import { I as u } from "../../../../InputLabel-Dd8RrneV.js";
8
- import { S as d } from "../../../../Select-DHUl_uG3.js";
9
- import { M as m } from "../../../../MenuItem-DwqJqzuM.js";
10
- import { B as M } from "../../../../Box-DqUMmZjL.js";
11
- import { B as y } from "../../../../Button-C5yquWAB.js";
6
+ import { F as c, T as b, B as M } from "../../../../TextField-Ca9ykixI.js";
7
+ import { I as u } from "../../../../InputLabel-CjD30ZHz.js";
8
+ import { S as d } from "../../../../Select-Bfhvigsx.js";
9
+ import { M as m } from "../../../../MenuItem-BKvRGLvM.js";
10
+ import { B as y } from "../../../../Button-Cem3nbwc.js";
12
11
  var p = {}, q = C;
13
12
  Object.defineProperty(p, "__esModule", {
14
13
  value: !0
@@ -17,7 +16,7 @@ var w = p.default = void 0, N = q(g()), W = V;
17
16
  w = p.default = (0, N.default)(/* @__PURE__ */ (0, W.jsx)("path", {
18
17
  d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
19
18
  }), "Save");
20
- function L({
19
+ function A({
21
20
  defaultValues: x = {
22
21
  owner: "",
23
22
  ownerType: h[0],
@@ -30,7 +29,7 @@ function L({
30
29
  onSubmit: E,
31
30
  onCancel: O
32
31
  }) {
33
- const [r, f] = i.useState(x), [I, _] = i.useState([]), [l, s] = i.useState({
32
+ const [r, f] = o.useState(x), [I, _] = o.useState([]), [l, s] = o.useState({
34
33
  termValue: !1,
35
34
  score: !1
36
35
  }), n = (e) => {
@@ -49,9 +48,9 @@ function L({
49
48
  }
50
49
  E(r);
51
50
  };
52
- return i.useEffect(() => (l.termValue && r.termValue && s({ ...l, termValue: !1 }), () => {
53
- }), [r.termValue]), i.useEffect(() => (l.score && r.score && s({ ...l, score: !1 }), () => {
54
- }), [r.score]), i.useEffect(() => {
51
+ return o.useEffect(() => (l.termValue && r.termValue && s({ ...l, termValue: !1 }), () => {
52
+ }), [r.termValue]), o.useEffect(() => (l.score && r.score && s({ ...l, score: !1 }), () => {
53
+ }), [r.score]), o.useEffect(() => {
55
54
  if (r.ownerType === "PROPERTY") {
56
55
  const e = R("properties");
57
56
  _(e);
@@ -61,8 +60,8 @@ function L({
61
60
  owner: ""
62
61
  })), () => {
63
62
  };
64
- }, [r.ownerType]), /* @__PURE__ */ o(S, { children: [
65
- /* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
63
+ }, [r.ownerType]), /* @__PURE__ */ i(S, { children: [
64
+ /* @__PURE__ */ i(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
66
65
  /* @__PURE__ */ t(u, { id: "owner-type-select-label", children: "Owner Type" }),
67
66
  /* @__PURE__ */ t(
68
67
  d,
@@ -77,7 +76,7 @@ function L({
77
76
  }
78
77
  )
79
78
  ] }),
80
- r.ownerType === "PROPERTY" && /* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
79
+ r.ownerType === "PROPERTY" && /* @__PURE__ */ i(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
81
80
  /* @__PURE__ */ t(u, { id: "owner-select-label", children: "Owner" }),
82
81
  /* @__PURE__ */ t(
83
82
  d,
@@ -92,7 +91,7 @@ function L({
92
91
  }
93
92
  )
94
93
  ] }),
95
- /* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
94
+ /* @__PURE__ */ i(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
96
95
  /* @__PURE__ */ t(u, { id: "type-select-label", children: "Type" }),
97
96
  /* @__PURE__ */ t(
98
97
  d,
@@ -107,7 +106,7 @@ function L({
107
106
  }
108
107
  )
109
108
  ] }),
110
- /* @__PURE__ */ o(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
109
+ /* @__PURE__ */ i(c, { fullWidth: !0, variant: "standard", sx: { mb: 2 }, children: [
111
110
  /* @__PURE__ */ t(u, { id: "term-match-select-label", children: "Term Match" }),
112
111
  /* @__PURE__ */ t(
113
112
  d,
@@ -156,7 +155,7 @@ function L({
156
155
  }
157
156
  }
158
157
  ),
159
- /* @__PURE__ */ o(M, { display: "flex", justifyContent: "flex-end", children: [
158
+ /* @__PURE__ */ i(M, { display: "flex", justifyContent: "flex-end", children: [
160
159
  /* @__PURE__ */ t(y, { variant: "contained", onClick: O, sx: { marginRight: 2 }, children: "Cancel" }),
161
160
  /* @__PURE__ */ t(
162
161
  y,
@@ -171,5 +170,5 @@ function L({
171
170
  ] });
172
171
  }
173
172
  export {
174
- L as default
173
+ A as default
175
174
  };
@@ -3,7 +3,7 @@ import c from "lodash";
3
3
  import { TreeViewFilter as T } from "../treeview-filter/index.js";
4
4
  import { useTreeSelectLogic as f } from "./logic.js";
5
5
  import { TreeSelectRoot as g, TreeSelectLabel as S, TreeSelectFormControl as x, TreeSelectInput as C, TreeSelectMenuItem as v, TreeSelectDialog as I, TreeSelectDialogContent as W, TreeSelectDialogActions as D, TreeSelectConfirmButton as L } from "./styled.js";
6
- import { I as O } from "../../InputLabel-Dd8RrneV.js";
6
+ import { I as O } from "../../InputLabel-CjD30ZHz.js";
7
7
  const K = (e) => {
8
8
  const { state: h, actions: t } = f(e), { ownerState: s, open: u, expanded: m, selectedItems: i, idKey: o, variant: r, labelPosition: a } = h;
9
9
  return /* @__PURE__ */ d(g, { ownerState: s, sx: e.sx, children: [
@@ -0,0 +1,93 @@
1
+ import { a as h } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import { c as y } from "./createSvgIcon-D7U1nd99.js";
3
+ import { C as _, b as g } from "./generateUtilityClasses-Cc-owZ4J.js";
4
+ import { d as E } from "./debounce-46wSf_lW.js";
5
+ import { o as b, a as N } from "./ownerWindow-wg6foiOE.js";
6
+ import { a as S } from "./extends-C3382pL0.js";
7
+ import { s as $, a as C, b as I, u as T } from "./TransitionGroupContext-Ja2CgIob.js";
8
+ import { c as O } from "./createChainedFunction-C0nujS3O.js";
9
+ import * as P from "react";
10
+ import { u as w } from "./useId-BW-oWmul.js";
11
+ import { u as F } from "./useControlled-BYdyS7Pn.js";
12
+ import { u as V } from "./ButtonBase-DObmf4Q_.js";
13
+ var c = {};
14
+ function j(e, r) {
15
+ return process.env.NODE_ENV === "production" ? () => null : (o, t, u, n, a) => {
16
+ const s = u || "<<anonymous>>", i = a || t;
17
+ return typeof o[t] < "u" ? new Error(`The ${n} \`${i}\` of \`${s}\` is deprecated. ${r}`) : null;
18
+ };
19
+ }
20
+ function q(e, r) {
21
+ var o, t;
22
+ return /* @__PURE__ */ P.isValidElement(e) && r.indexOf(
23
+ // For server components `muiName` is avaialble in element.type._payload.value.muiName
24
+ // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
25
+ // eslint-disable-next-line no-underscore-dangle
26
+ (o = e.type.muiName) != null ? o : (t = e.type) == null || (t = t._payload) == null || (t = t.value) == null ? void 0 : t.muiName
27
+ ) !== -1;
28
+ }
29
+ function D(e, r) {
30
+ if (process.env.NODE_ENV === "production")
31
+ return () => null;
32
+ const o = r ? S({}, r.propTypes) : null;
33
+ return (u) => (n, a, s, i, l, ...v) => {
34
+ const m = l || a, f = o == null ? void 0 : o[m];
35
+ if (f) {
36
+ const p = f(n, a, s, i, l, ...v);
37
+ if (p)
38
+ return p;
39
+ }
40
+ return typeof n[a] < "u" && !n[u] ? new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${u}\` prop.`) : null;
41
+ };
42
+ }
43
+ function R(e, r, o, t, u) {
44
+ if (process.env.NODE_ENV === "production")
45
+ return null;
46
+ const n = u || r;
47
+ return typeof e[r] < "u" ? new Error(`The prop \`${n}\` is not supported. Please remove it.`) : null;
48
+ }
49
+ const k = {
50
+ configure: (e) => {
51
+ 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(`
52
+ `)), _.configure(e);
53
+ }
54
+ }, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
55
+ __proto__: null,
56
+ capitalize: g,
57
+ createChainedFunction: O,
58
+ createSvgIcon: y,
59
+ debounce: E,
60
+ deprecatedPropType: j,
61
+ isMuiElement: q,
62
+ ownerDocument: b,
63
+ ownerWindow: N,
64
+ requirePropFactory: D,
65
+ setRef: $,
66
+ unstable_ClassNameGenerator: k,
67
+ unstable_useEnhancedEffect: C,
68
+ unstable_useId: w,
69
+ unsupportedProp: R,
70
+ useControlled: F,
71
+ useEventCallback: I,
72
+ useForkRef: T,
73
+ useIsFocusVisible: V
74
+ }, Symbol.toStringTag, { value: "Module" })), M = /* @__PURE__ */ h(G);
75
+ var d;
76
+ function Q() {
77
+ return d || (d = 1, function(e) {
78
+ "use client";
79
+ Object.defineProperty(e, "__esModule", {
80
+ value: !0
81
+ }), Object.defineProperty(e, "default", {
82
+ enumerable: !0,
83
+ get: function() {
84
+ return r.createSvgIcon;
85
+ }
86
+ });
87
+ var r = M;
88
+ }(c)), c;
89
+ }
90
+ export {
91
+ q as i,
92
+ Q as r
93
+ };
@@ -1,9 +1,9 @@
1
- import { _ as b, a as S } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
1
+ import { _ as b, a as S } from "./extends-C3382pL0.js";
2
2
  import * as g from "react";
3
3
  import { jsxs as I, jsx as _ } from "react/jsx-runtime";
4
- import { P as o } from "./index-C__OZmYy.js";
4
+ import { P as o } from "./index-CblbdqjE.js";
5
5
  import { c as w } from "./clsx-OuTLNxxd.js";
6
- import { a as C, g as N, s as T, b as v, u as R, c as O } from "./generateUtilityClasses-C3ivN9Ie.js";
6
+ import { a as C, g as N, s as T, b as v, u as R, c as O } from "./generateUtilityClasses-Cc-owZ4J.js";
7
7
  function B(e) {
8
8
  return C("MuiSvgIcon", e);
9
9
  }