@hortiview/shared-components 0.0.11528 → 0.0.11587

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 (118) hide show
  1. package/README.md +17 -0
  2. package/dist/{BigLoadingSpinner-D7H28pr5.js → BigLoadingSpinner-iegTbDcD.js} +6 -6
  3. package/dist/GenericCard-6J558OgP.js +350 -0
  4. package/dist/{ListAreaService-YS_UUPh5.js → ListAreaService-DOwtdRa4.js} +18 -16
  5. package/dist/_MapCache-B75yWNNd.js +376 -0
  6. package/dist/_baseIsEqual-D0Dsajdb.js +317 -0
  7. package/dist/_getTag-BCf9b56Z.js +81 -0
  8. package/dist/animationframe-EMBh6XeO.js +54 -0
  9. package/dist/component-DsB0poTj.js +571 -0
  10. package/dist/component-neHBNHRu.js +114 -0
  11. package/dist/components/AlertBanner/AlertBanner.js +16 -15
  12. package/dist/components/BaseView/BaseView.js +5 -5
  13. package/dist/components/BasicHeading/BasicHeading.js +25 -24
  14. package/dist/components/BasicHeading/BasicHeading.test.js +9 -9
  15. package/dist/components/BlockView/BlockView.js +5 -5
  16. package/dist/components/ChipCard/ChipCard.js +1765 -14
  17. package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
  18. package/dist/components/ContextMenu/ContextMenu.js +28 -27
  19. package/dist/components/DeleteModal/DeleteModal.js +37 -34
  20. package/dist/components/Disclaimer/Disclaimer.js +11 -9
  21. package/dist/components/EmptyView/EmptyView.js +258 -19
  22. package/dist/components/Filter/Filter.js +58 -54
  23. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
  24. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +1 -1
  25. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5974 -6387
  26. package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +1 -1
  27. package/dist/components/FormComponents/FormNumber/CustomTextField.js +5 -5
  28. package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +1 -1
  29. package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
  30. package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
  31. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +1 -1
  32. package/dist/components/FormComponents/FormSelect/FormSelect.js +3 -3
  33. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
  34. package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
  35. package/dist/components/FormComponents/FormText/FormText.d.ts +1 -1
  36. package/dist/components/FormComponents/FormText/FormText.js +33 -32
  37. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +1 -1
  38. package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
  39. package/dist/components/GenericTable/GenericTable.js +10486 -74
  40. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
  41. package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
  42. package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
  43. package/dist/components/HashTabView/HashTabView.js +1805 -72
  44. package/dist/components/HeaderFilter/HeaderFilter.d.ts +1 -1
  45. package/dist/components/HeaderFilter/HeaderFilter.js +4 -4
  46. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +20 -17
  47. package/dist/components/Iconify/Iconify.d.ts +1 -2
  48. package/dist/components/Iconify/Iconify.js +42 -42
  49. package/dist/components/InfoGroup/InfoGroup.js +30 -28
  50. package/dist/components/ListArea/ListArea.js +29 -27
  51. package/dist/components/ListArea/ListArea.test.js +2 -2
  52. package/dist/components/ListArea/ListAreaService.js +7 -5
  53. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  54. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  55. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -37
  56. package/dist/components/Modal/Modal.d.ts +1 -1
  57. package/dist/components/Modal/Modal.js +926 -9
  58. package/dist/components/ModulePadding/ModulePadding.d.ts +7 -0
  59. package/dist/components/ModulePadding/ModulePadding.js +28 -0
  60. package/dist/components/ModulePadding/ModulePadding.test.d.ts +1 -0
  61. package/dist/components/ModulePadding/ModulePadding.test.js +22 -0
  62. package/dist/components/OverflowTooltip/OverflowTooltip.js +6 -6
  63. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
  64. package/dist/components/SearchBar/SearchBar.js +7 -6
  65. package/dist/components/Select/Select.d.ts +1 -1
  66. package/dist/components/Select/Select.js +13 -13
  67. package/dist/floating-ui.dom-CeD8zknG.js +978 -0
  68. package/dist/get-7ACccM2X.js +114 -0
  69. package/dist/{get-BiqanC9_.js → get-DFv1gXfq.js} +1 -1
  70. package/dist/hooks/useHelperText.js +1 -1
  71. package/dist/identity-DLWZln-X.js +1763 -0
  72. package/dist/index.es-0lQcz8m1.js +444 -0
  73. package/dist/index.es-25EARqhH.js +2027 -0
  74. package/dist/index.es-3043KTnb.js +1066 -0
  75. package/dist/index.es-41ztjcFT.js +724 -0
  76. package/dist/index.es-6TJ1S8Jr.js +954 -0
  77. package/dist/index.es-8GOVkuo-.js +374 -0
  78. package/dist/index.es-B-_jXDuz.js +216 -0
  79. package/dist/index.es-BWgXLqXn.js +102 -0
  80. package/dist/index.es-BtjV0oNv.js +360 -0
  81. package/dist/index.es-BvrQnJ3j.js +509 -0
  82. package/dist/index.es-CF_xy2ns.js +674 -0
  83. package/dist/index.es-CL_Heu1n.js +54 -0
  84. package/dist/index.es-CiqbARoC.js +306 -0
  85. package/dist/index.es-D-CKRzIB.js +63 -0
  86. package/dist/index.es-D6N-XWHe.js +56 -0
  87. package/dist/index.es-DKDgy7Kt.js +45 -0
  88. package/dist/index.es-DntoATwO.js +159 -0
  89. package/dist/index.es-UHKFl8Da.js +7075 -0
  90. package/dist/index.es-d5xhUpJZ.js +3242 -0
  91. package/dist/index.es-da0cf7oE.js +569 -0
  92. package/dist/index.es-h2lMdt7G.js +107 -0
  93. package/dist/index.es-zr101OF5.js +4853 -0
  94. package/dist/{isArray-2zMxXFEr.js → isArray-DN9s620O.js} +3 -3
  95. package/dist/{isArray-C_5XvIlE.js → isArray-Dub1wGJM.js} +1 -1
  96. package/dist/isEmpty-B4GG2s-V.js +31 -0
  97. package/dist/isPlainObject-C273y67K.js +40 -0
  98. package/dist/isString-BW9UHONv.js +21 -0
  99. package/dist/keyboard-Bpt0aBqQ.js +107 -0
  100. package/dist/main.d.ts +1 -0
  101. package/dist/main.js +57 -55
  102. package/dist/orderBy-Bd48bw88.js +316 -0
  103. package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
  104. package/dist/services/UtilService.js +2 -2
  105. package/dist/toString-CrgB_7Pe.js +54 -0
  106. package/dist/tslib.es6-BDCynO9F.js +162 -0
  107. package/dist/types/GenericTable.d.ts +1 -1
  108. package/dist/uniqueId-NU3-C36A.js +18 -0
  109. package/dist/util-DA21pZXj.js +78 -0
  110. package/package.json +1 -1
  111. package/dist/GenericCard-jlt8ZsHi.js +0 -80
  112. package/dist/_Map-Dtlps7IZ.js +0 -113
  113. package/dist/_overArg-_0pUmCsX.js +0 -14
  114. package/dist/get-P-5PYZOE.js +0 -426
  115. package/dist/isEmpty-BimaZd5G.js +0 -225
  116. package/dist/isString-BOHPtrlm.js +0 -44
  117. package/dist/orderBy-BVQIswlJ.js +0 -765
  118. package/dist/react-tooltip.min-Czs4RGD1.js +0 -1400
@@ -1,55 +1,57 @@
1
1
  import { jsxs as d, Fragment as p, jsx as t } from "react/jsx-runtime";
2
- import { Divider as h, Group as c, TypoCaption as g, TypoSubtitle as f } from "@element-public/react-components";
3
- import { useMemo as _, Fragment as C } from "react";
4
- import { u } from "../../useBreakpoints-MzTZ0tCT.js";
5
- import '../../assets/InfoGroup.css';const D = "_dividerContainer_4c1hq_1", y = "_centerDefaultComponent_4c1hq_10", A = "_verticalDivider_4c1hq_14", G = "_mainGroup_4c1hq_22", x = "_textAlignRight_4c1hq_28", l = {
6
- dividerContainer: D,
2
+ import { D as h } from "../../index.es-BWgXLqXn.js";
3
+ import { G as s } from "../../index.es-DntoATwO.js";
4
+ import { a as g, d as f } from "../../index.es-CF_xy2ns.js";
5
+ import { useMemo as _, Fragment as D } from "react";
6
+ import { u as m } from "../../useBreakpoints-MzTZ0tCT.js";
7
+ import '../../assets/InfoGroup.css';const C = "_dividerContainer_4c1hq_1", y = "_centerDefaultComponent_4c1hq_10", A = "_verticalDivider_4c1hq_14", G = "_mainGroup_4c1hq_22", x = "_textAlignRight_4c1hq_28", l = {
8
+ dividerContainer: C,
7
9
  centerDefaultComponent: y,
8
10
  verticalDivider: A,
9
11
  mainGroup: G,
10
12
  textAlignRight: x
11
- }, w = ({ fields: n, bold: i }) => {
12
- const { isDesktop: o } = u(), e = !!n.length && Array.isArray(n.at(0)), r = _(() => e && o ? n.map((a, s) => /* @__PURE__ */ d(p, { children: [
13
- s != 0 && /* @__PURE__ */ t("span", { "data-testid": "test-divider", className: l.dividerContainer, children: /* @__PURE__ */ t(h, {}) }),
14
- /* @__PURE__ */ t(m, { fields: a, bold: i })
15
- ] })) : /* @__PURE__ */ t(m, { fields: n.flat(), bold: i }), [o, e, n, i]);
13
+ }, F = ({ fields: r, bold: n }) => {
14
+ const { isDesktop: o } = m(), e = !!r.length && Array.isArray(r.at(0)), i = _(() => e && o ? r.map((a, c) => /* @__PURE__ */ d(p, { children: [
15
+ c != 0 && /* @__PURE__ */ t("span", { "data-testid": "test-divider", className: l.dividerContainer, children: /* @__PURE__ */ t(h, {}) }),
16
+ /* @__PURE__ */ t(u, { fields: a, bold: n })
17
+ ] })) : /* @__PURE__ */ t(u, { fields: r.flat(), bold: n }), [o, e, r, n]);
16
18
  return /* @__PURE__ */ t(
17
- c,
19
+ s,
18
20
  {
19
21
  "data-testid": "infoGroup",
20
22
  direction: "vertical",
21
23
  fullWidth: !0,
22
24
  className: l.mainGroup,
23
25
  gap: "none",
24
- children: r
26
+ children: i
25
27
  }
26
28
  );
27
- }, m = ({ fields: n, bold: i }) => {
28
- const { isDesktop: o } = u();
29
+ }, u = ({ fields: r, bold: n }) => {
30
+ const { isDesktop: o } = m();
29
31
  return /* @__PURE__ */ t(
30
- c,
32
+ s,
31
33
  {
32
34
  "data-testid": "singleRow",
33
35
  fullWidth: !0,
34
36
  direction: o ? "horizontal" : "vertical",
35
37
  secondaryAlign: "start",
36
- children: n.map((e, r) => {
38
+ children: r.map((e, i) => {
37
39
  const a = o ? /* @__PURE__ */ t("div", { className: l.verticalDivider }) : /* @__PURE__ */ t(h, {});
38
- return /* @__PURE__ */ d(C, { children: [
39
- r != 0 && a,
40
- /* @__PURE__ */ t(R, { field: e, bold: i, variant: e.componentVariant })
41
- ] }, `${e.label ?? "label"}_${r}`);
40
+ return /* @__PURE__ */ d(D, { children: [
41
+ i != 0 && a,
42
+ /* @__PURE__ */ t(R, { field: e, bold: n, variant: e.componentVariant })
43
+ ] }, `${e.label ?? "label"}_${i}`);
42
44
  })
43
45
  }
44
46
  );
45
47
  }, R = ({
46
- field: n,
47
- bold: i,
48
+ field: r,
49
+ bold: n,
48
50
  variant: o = "default"
49
51
  }) => {
50
- const { isDesktop: e } = u(), { component: r, value: a, label: s, themeColor: v } = n;
51
- return r && o === "default" ? /* @__PURE__ */ t(c, { fullWidth: !0, primaryAlign: "center", className: l.centerDefaultComponent, children: r }) : /* @__PURE__ */ d(
52
- c,
52
+ const { isDesktop: e } = m(), { component: i, value: a, label: c, themeColor: v } = r;
53
+ return i && o === "default" ? /* @__PURE__ */ t(s, { fullWidth: !0, primaryAlign: "center", className: l.centerDefaultComponent, children: i }) : /* @__PURE__ */ d(
54
+ s,
53
55
  {
54
56
  fullWidth: !0,
55
57
  "data-testid": "infoGroupItem",
@@ -59,13 +61,13 @@ import '../../assets/InfoGroup.css';const D = "_dividerContainer_4c1hq_1", y = "
59
61
  secondaryAlign: e ? "baseline" : "center",
60
62
  className: e ? "" : l.textAlignRight,
61
63
  children: [
62
- /* @__PURE__ */ t(g, { themeColor: "text-hint-on-light", children: s }),
63
- r ? /* @__PURE__ */ t(p, { children: r }) : /* @__PURE__ */ t(f, { level: 1, "data-testid": "infoGroupValue", themeColor: v, bold: i, children: a })
64
+ /* @__PURE__ */ t(g, { themeColor: "text-hint-on-light", children: c }),
65
+ i ? /* @__PURE__ */ t(p, { children: i }) : /* @__PURE__ */ t(f, { level: 1, "data-testid": "infoGroupValue", themeColor: v, bold: n, children: a })
64
66
  ]
65
67
  }
66
68
  );
67
69
  };
68
70
  export {
69
71
  R as Cell,
70
- w as InfoGroup
72
+ F as InfoGroup
71
73
  };
@@ -1,56 +1,58 @@
1
- import { jsx as s, jsxs as m } from "react/jsx-runtime";
2
- import { Elevation as C, Divider as u, List as $ } from "@element-public/react-components";
3
- import { o as v } from "../../orderBy-BVQIswlJ.js";
4
- import { useState as b, useMemo as p } from "react";
1
+ import { jsx as s, jsxs as h } from "react/jsx-runtime";
2
+ import { D as u } from "../../index.es-BWgXLqXn.js";
3
+ import { E as y } from "../../index.es-h2lMdt7G.js";
4
+ import { L as C } from "../../index.es-d5xhUpJZ.js";
5
+ import { o as p } from "../../orderBy-Bd48bw88.js";
6
+ import { useState as b, useMemo as v } from "react";
5
7
  import { SearchBar as B } from "../SearchBar/SearchBar.js";
6
- import { g as j, a as D, s as t } from "../../ListAreaService-YS_UUPh5.js";
7
- const M = ({
8
+ import { g as D, a as j, s as t } from "../../ListAreaService-DOwtdRa4.js";
9
+ const q = ({
8
10
  elements: r,
9
11
  pathname: o,
10
12
  isGrouped: i = !1,
11
- hasSearch: w = !1,
12
- searchPlaceholder: L = "",
13
- isIntegrated: n = !1,
13
+ hasSearch: L = !1,
14
+ searchPlaceholder: w = "",
15
+ isIntegrated: m = !1,
14
16
  isSorted: l = !0,
15
17
  itemClassName: c = "",
16
18
  maxHeight: T = "100%",
17
- noElementsView: g,
19
+ noElementsView: $,
18
20
  routerLinkElement: d
19
21
  }) => {
20
- const [e, x] = b(""), a = p(() => {
21
- if (!e) return l ? v(r, "title") : r;
22
- const h = r.filter((f) => f.title.toLowerCase().includes(e.toLowerCase()) || f.subTitle?.toLowerCase().includes(e.toLowerCase()) || f.overlineTitle?.toLowerCase().includes(e.toLowerCase()));
23
- return l ? v(h, "title") : h;
24
- }, [e, r, l]), y = p(
25
- () => i ? j(a, o, c, d) : D(a, o, c, d),
22
+ const [e, g] = b(""), a = v(() => {
23
+ if (!e) return l ? p(r, "title") : r;
24
+ const n = r.filter((f) => f.title.toLowerCase().includes(e.toLowerCase()) || f.subTitle?.toLowerCase().includes(e.toLowerCase()) || f.overlineTitle?.toLowerCase().includes(e.toLowerCase()));
25
+ return l ? p(n, "title") : n;
26
+ }, [e, r, l]), x = v(
27
+ () => i ? D(a, o, c, d) : j(a, o, c, d),
26
28
  [a, o, c, i, d]
27
29
  );
28
30
  return /* @__PURE__ */ s(
29
- C,
31
+ y,
30
32
  {
31
33
  "data-testid": "elevation",
32
- elevation: n ? 0 : 1,
34
+ elevation: m ? 0 : 1,
33
35
  className: `${t.mainElevation}`,
34
- children: /* @__PURE__ */ m("div", { className: t.fullWidth, children: [
35
- w && r.length > 0 && /* @__PURE__ */ m("span", { "data-testid": "search-bar-container", children: [
36
- n && /* @__PURE__ */ s(u, {}),
36
+ children: /* @__PURE__ */ h("div", { className: t.fullWidth, children: [
37
+ L && r.length > 0 && /* @__PURE__ */ h("span", { "data-testid": "search-bar-container", children: [
38
+ m && /* @__PURE__ */ s(u, {}),
37
39
  /* @__PURE__ */ s(
38
40
  B,
39
41
  {
40
42
  searchTerm: e,
41
- setSearchTerm: x,
43
+ setSearchTerm: g,
42
44
  className: t.searchbar,
43
- placeholder: L
45
+ placeholder: w
44
46
  }
45
47
  ),
46
48
  /* @__PURE__ */ s(u, {})
47
49
  ] }),
48
- a.length === 0 && g,
50
+ a.length === 0 && $,
49
51
  /* @__PURE__ */ s(
50
- $,
52
+ C,
51
53
  {
52
54
  "data-testid": "list",
53
- items: y,
55
+ items: x,
54
56
  className: `${t.list} ${t.primaryText} ${i ? "" : t.roundedBottom}`,
55
57
  style: { maxHeight: T },
56
58
  showDivider: !1
@@ -61,5 +63,5 @@ const M = ({
61
63
  );
62
64
  };
63
65
  export {
64
- M as ListArea
66
+ q as ListArea
65
67
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, Fragment as i } from "react/jsx-runtime";
2
- import { TypoButton as p } from "@element-public/react-components";
2
+ import { c as p } from "../../index.es-CF_xy2ns.js";
3
3
  import { a as s, s as a, f as u } from "../../react.esm-DNwojocF.js";
4
4
  import { ListArea as c } from "./ListArea.js";
5
- import { g as h } from "../../ListAreaService-YS_UUPh5.js";
5
+ import { g as h } from "../../ListAreaService-DOwtdRa4.js";
6
6
  import { d as m, t as n, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
7
7
  m("ListArea Test", () => {
8
8
  const o = [
@@ -1,10 +1,12 @@
1
1
  import "react/jsx-runtime";
2
- import "@element-public/react-components";
2
+ import "../../index.es-DntoATwO.js";
3
+ import "../../index.es-3043KTnb.js";
4
+ import "../../index.es-CF_xy2ns.js";
3
5
  import "../Iconify/Iconify.js";
4
6
  import "../../enums/AvailableCustomIcons.js";
5
- import { g as s, a as i, m as a } from "../../ListAreaService-YS_UUPh5.js";
7
+ import { g as a, a as g, m as d } from "../../ListAreaService-DOwtdRa4.js";
6
8
  export {
7
- s as getGroupedItems,
8
- i as getListedItems,
9
- a as mapListElement
9
+ a as getGroupedItems,
10
+ g as getListedItems,
11
+ d as mapListElement
10
12
  };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
- import "@element-public/react-components";
3
- import { B as t } from "../../../BigLoadingSpinner-D7H28pr5.js";
2
+ import "../../../index.es-CF_xy2ns.js";
4
3
  import "../../Iconify/Iconify.js";
4
+ import { B as t } from "../../../BigLoadingSpinner-iegTbDcD.js";
5
5
  export {
6
6
  t as BigLoadingSpinner
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { s as r, B as n } from "../../../BigLoadingSpinner-D7H28pr5.js";
2
+ import { s as r, B as n } from "../../../BigLoadingSpinner-iegTbDcD.js";
3
3
  import { a as i, s as e } from "../../../react.esm-DNwojocF.js";
4
4
  import { d as g, t as a, g as t } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  g("BigLoadingSpinner Test", () => {