@hortiview/shared-components 0.0.11176 → 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 (190) hide show
  1. package/README.md +58 -8
  2. package/dist/BigLoadingSpinner-iegTbDcD.js +16 -0
  3. package/dist/GenericCard-6J558OgP.js +350 -0
  4. package/dist/ListAreaService-DOwtdRa4.js +109 -0
  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/assets/HashTabView.css +1 -1
  10. package/dist/assets/Select.css +1 -0
  11. package/dist/component-DsB0poTj.js +571 -0
  12. package/dist/component-neHBNHRu.js +114 -0
  13. package/dist/components/AlertBanner/AlertBanner.d.ts +0 -1
  14. package/dist/components/AlertBanner/AlertBanner.js +15 -15
  15. package/dist/components/AlertBanner/AlertBanner.test.js +11 -9
  16. package/dist/components/BaseView/BaseView.d.ts +1 -1
  17. package/dist/components/BaseView/BaseView.js +27 -28
  18. package/dist/components/BaseView/BaseView.test.js +25 -25
  19. package/dist/components/BasicHeading/BasicHeading.d.ts +1 -0
  20. package/dist/components/BasicHeading/BasicHeading.js +17 -17
  21. package/dist/components/BasicHeading/BasicHeading.test.js +10 -10
  22. package/dist/components/BlockView/BlockView.d.ts +1 -0
  23. package/dist/components/BlockView/BlockView.js +24 -25
  24. package/dist/components/BlockView/BlockView.test.js +2 -2
  25. package/dist/components/ChipCard/ChipCard.js +1765 -15
  26. package/dist/components/ChipCard/ChipCard.test.js +2 -2
  27. package/dist/components/ContextMenu/ContextMenu.d.ts +3 -2
  28. package/dist/components/ContextMenu/ContextMenu.js +28 -28
  29. package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
  30. package/dist/components/DeleteModal/DeleteModal.d.ts +0 -1
  31. package/dist/components/DeleteModal/DeleteModal.js +53 -51
  32. package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
  33. package/dist/components/Disclaimer/Disclaimer.js +12 -11
  34. package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
  35. package/dist/components/EmptyView/EmptyView.d.ts +1 -0
  36. package/dist/components/EmptyView/EmptyView.js +258 -19
  37. package/dist/components/EmptyView/EmptyView.test.js +2 -2
  38. package/dist/components/Filter/Filter.d.ts +1 -0
  39. package/dist/components/Filter/Filter.js +81 -77
  40. package/dist/components/Filter/Filter.test.js +2 -2
  41. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -0
  42. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
  43. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
  44. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -2
  45. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5975 -6389
  46. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
  47. package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +2 -1
  48. package/dist/components/FormComponents/FormNumber/CustomTextField.js +13 -14
  49. package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +2 -1
  50. package/dist/components/FormComponents/FormNumber/FormNumber.js +2 -2
  51. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
  52. package/dist/components/FormComponents/FormRadio/FormRadio.d.ts +1 -0
  53. package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
  54. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
  55. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +4 -7
  56. package/dist/components/FormComponents/FormSelect/FormSelect.js +100 -110
  57. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
  58. package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -0
  59. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
  60. package/dist/components/FormComponents/FormSlider/FormSlider.d.ts +1 -0
  61. package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
  62. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
  63. package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
  64. package/dist/components/FormComponents/FormText/FormText.js +28 -28
  65. package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
  66. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +2 -1
  67. package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
  68. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
  69. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +2 -1
  70. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  71. package/dist/components/GenericTable/GenericTable.d.ts +1 -0
  72. package/dist/components/GenericTable/GenericTable.js +10487 -76
  73. package/dist/components/GenericTable/GenericTable.test.js +2 -2
  74. package/dist/components/GenericTable/GenericTableService.d.ts +1 -0
  75. package/dist/components/GenericTable/GenericTableService.js +41 -41
  76. package/dist/components/GenericTable/Mobile/GenericCard.d.ts +1 -1
  77. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
  78. package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
  79. package/dist/components/GenericTable/Mobile/GenericCardList.d.ts +1 -1
  80. package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
  81. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
  82. package/dist/components/HashTabView/HashTabView.d.ts +6 -1
  83. package/dist/components/HashTabView/HashTabView.js +1805 -72
  84. package/dist/components/HashTabView/HashTabView.test.js +2 -2
  85. package/dist/components/HeaderFilter/HeaderFilter.d.ts +3 -2
  86. package/dist/components/HeaderFilter/HeaderFilter.js +14 -14
  87. package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
  88. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +19 -17
  89. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
  90. package/dist/components/Iconify/Iconify.d.ts +2 -3
  91. package/dist/components/Iconify/Iconify.js +44 -45
  92. package/dist/components/Iconify/Iconify.test.js +2 -2
  93. package/dist/components/InfoGroup/InfoGroup.d.ts +4 -3
  94. package/dist/components/InfoGroup/InfoGroup.js +30 -29
  95. package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
  96. package/dist/components/ListArea/ListArea.d.ts +1 -1
  97. package/dist/components/ListArea/ListArea.js +29 -27
  98. package/dist/components/ListArea/ListArea.test.js +5 -5
  99. package/dist/components/ListArea/ListAreaService.d.ts +9 -8
  100. package/dist/components/ListArea/ListAreaService.js +7 -5
  101. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  102. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -3
  103. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -38
  104. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
  105. package/dist/components/Modal/Modal.d.ts +2 -1
  106. package/dist/components/Modal/Modal.js +926 -10
  107. package/dist/components/ModulePadding/ModulePadding.d.ts +7 -0
  108. package/dist/components/ModulePadding/ModulePadding.js +28 -0
  109. package/dist/components/ModulePadding/ModulePadding.test.d.ts +1 -0
  110. package/dist/components/ModulePadding/ModulePadding.test.js +22 -0
  111. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +0 -1
  112. package/dist/components/OverflowTooltip/OverflowTooltip.js +13 -14
  113. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
  114. package/dist/components/Scrollbar/Scrollbar.js +5 -6
  115. package/dist/components/Scrollbar/scrollbar.test.js +2 -2
  116. package/dist/components/SearchBar/SearchBar.js +11 -11
  117. package/dist/components/SearchBar/SearchBar.test.js +2 -2
  118. package/dist/components/Select/Select.d.ts +14 -0
  119. package/dist/components/Select/Select.js +34 -0
  120. package/dist/components/Select/Select.test.d.ts +1 -0
  121. package/dist/components/Select/Select.test.js +28 -0
  122. package/dist/components/VerticalDivider/VerticalDivider.js +4 -5
  123. package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
  124. package/dist/floating-ui.dom-CeD8zknG.js +978 -0
  125. package/dist/get-7ACccM2X.js +114 -0
  126. package/dist/{get-BiqanC9_.js → get-DFv1gXfq.js} +1 -1
  127. package/dist/hooks/useBreakpoints.test.js +2 -2
  128. package/dist/hooks/useHelperText.d.ts +1 -0
  129. package/dist/hooks/useHelperText.js +1 -1
  130. package/dist/identity-DLWZln-X.js +1763 -0
  131. package/dist/{index-DzM8o582.js → index-CrcXCSzI.js} +1940 -1796
  132. package/dist/index.es-0lQcz8m1.js +444 -0
  133. package/dist/index.es-25EARqhH.js +2027 -0
  134. package/dist/index.es-3043KTnb.js +1066 -0
  135. package/dist/index.es-41ztjcFT.js +724 -0
  136. package/dist/index.es-6TJ1S8Jr.js +954 -0
  137. package/dist/index.es-8GOVkuo-.js +374 -0
  138. package/dist/index.es-B-_jXDuz.js +216 -0
  139. package/dist/index.es-BWgXLqXn.js +102 -0
  140. package/dist/index.es-BtjV0oNv.js +360 -0
  141. package/dist/index.es-BvrQnJ3j.js +509 -0
  142. package/dist/index.es-CF_xy2ns.js +674 -0
  143. package/dist/index.es-CL_Heu1n.js +54 -0
  144. package/dist/index.es-CiqbARoC.js +306 -0
  145. package/dist/index.es-D-CKRzIB.js +63 -0
  146. package/dist/index.es-D6N-XWHe.js +56 -0
  147. package/dist/index.es-DKDgy7Kt.js +45 -0
  148. package/dist/index.es-DntoATwO.js +159 -0
  149. package/dist/index.es-UHKFl8Da.js +7075 -0
  150. package/dist/index.es-d5xhUpJZ.js +3242 -0
  151. package/dist/index.es-da0cf7oE.js +569 -0
  152. package/dist/index.es-h2lMdt7G.js +107 -0
  153. package/dist/index.es-zr101OF5.js +4853 -0
  154. package/dist/{isArray-2zMxXFEr.js → isArray-DN9s620O.js} +3 -3
  155. package/dist/{isArray-C_5XvIlE.js → isArray-Dub1wGJM.js} +1 -1
  156. package/dist/isEmpty-B4GG2s-V.js +31 -0
  157. package/dist/isPlainObject-C273y67K.js +40 -0
  158. package/dist/isString-BW9UHONv.js +21 -0
  159. package/dist/keyboard-Bpt0aBqQ.js +107 -0
  160. package/dist/main.d.ts +3 -0
  161. package/dist/main.js +58 -54
  162. package/dist/orderBy-Bd48bw88.js +316 -0
  163. package/dist/{react-number-format.es-BD3_OvMU.js → react-number-format.es-BK1EpVXq.js} +151 -151
  164. package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
  165. package/dist/{react.esm-FR1-H8iU.js → react.esm-DNwojocF.js} +5289 -4990
  166. package/dist/services/BlockService.d.ts +1 -0
  167. package/dist/services/NumberService.d.ts +1 -0
  168. package/dist/services/UtilService.d.ts +1 -0
  169. package/dist/services/UtilService.js +2 -2
  170. package/dist/services/services.test.js +1 -1
  171. package/dist/toString-CrgB_7Pe.js +54 -0
  172. package/dist/tslib.es6-BDCynO9F.js +162 -0
  173. package/dist/types/GenericTable.d.ts +2 -2
  174. package/dist/types/HashTab.d.ts +0 -1
  175. package/dist/types/ListElement.d.ts +0 -1
  176. package/dist/types/internal/ReactRouterTypes.d.ts +0 -1
  177. package/dist/uniqueId-NU3-C36A.js +18 -0
  178. package/dist/util-DA21pZXj.js +78 -0
  179. package/dist/{vi.CjhMlMwf-DWv7vrn7.js → vi.CjhMlMwf-BCJNwXvu.js} +1 -1
  180. package/package.json +15 -15
  181. package/dist/BigLoadingSpinner-C3wTbTD0.js +0 -17
  182. package/dist/GenericCard-B8x1DMa8.js +0 -81
  183. package/dist/ListAreaService-CRX4eEUJ.js +0 -108
  184. package/dist/_Map-Dtlps7IZ.js +0 -113
  185. package/dist/_overArg-_0pUmCsX.js +0 -14
  186. package/dist/get-P-5PYZOE.js +0 -426
  187. package/dist/isEmpty-BimaZd5G.js +0 -225
  188. package/dist/isString-BOHPtrlm.js +0 -44
  189. package/dist/orderBy-BVQIswlJ.js +0 -765
  190. package/dist/react-tooltip.min-c2wVkjF2.js +0 -1354
@@ -1,56 +1,57 @@
1
- import "../../assets/InfoGroup.css";
2
1
  import { jsxs as d, Fragment as p, jsx as t } from "react/jsx-runtime";
3
- import { Divider as h, Group as c, TypoCaption as g, TypoSubtitle as f } from "@element/react-components";
4
- import { useMemo as _, Fragment as C } from "react";
5
- import { u } from "../../useBreakpoints-MzTZ0tCT.js";
6
- const D = "_dividerContainer_4c1hq_1", y = "_centerDefaultComponent_4c1hq_10", A = "_verticalDivider_4c1hq_14", G = "_mainGroup_4c1hq_22", x = "_textAlignRight_4c1hq_28", l = {
7
- 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,
8
9
  centerDefaultComponent: y,
9
10
  verticalDivider: A,
10
11
  mainGroup: G,
11
12
  textAlignRight: x
12
- }, W = ({ fields: n, bold: i }) => {
13
- const { isDesktop: o } = u(), e = !!n.length && Array.isArray(n.at(0)), r = _(() => e && o ? n.map((a, s) => /* @__PURE__ */ d(p, { children: [
14
- s != 0 && /* @__PURE__ */ t("span", { "data-testid": "test-divider", className: l.dividerContainer, children: /* @__PURE__ */ t(h, {}) }),
15
- /* @__PURE__ */ t(m, { fields: a, bold: i })
16
- ] })) : /* @__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]);
17
18
  return /* @__PURE__ */ t(
18
- c,
19
+ s,
19
20
  {
20
21
  "data-testid": "infoGroup",
21
22
  direction: "vertical",
22
23
  fullWidth: !0,
23
24
  className: l.mainGroup,
24
25
  gap: "none",
25
- children: r
26
+ children: i
26
27
  }
27
28
  );
28
- }, m = ({ fields: n, bold: i }) => {
29
- const { isDesktop: o } = u();
29
+ }, u = ({ fields: r, bold: n }) => {
30
+ const { isDesktop: o } = m();
30
31
  return /* @__PURE__ */ t(
31
- c,
32
+ s,
32
33
  {
33
34
  "data-testid": "singleRow",
34
35
  fullWidth: !0,
35
36
  direction: o ? "horizontal" : "vertical",
36
37
  secondaryAlign: "start",
37
- children: n.map((e, r) => {
38
+ children: r.map((e, i) => {
38
39
  const a = o ? /* @__PURE__ */ t("div", { className: l.verticalDivider }) : /* @__PURE__ */ t(h, {});
39
- return /* @__PURE__ */ d(C, { children: [
40
- r != 0 && a,
41
- /* @__PURE__ */ t(R, { field: e, bold: i, variant: e.componentVariant })
42
- ] }, `${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}`);
43
44
  })
44
45
  }
45
46
  );
46
47
  }, R = ({
47
- field: n,
48
- bold: i,
48
+ field: r,
49
+ bold: n,
49
50
  variant: o = "default"
50
51
  }) => {
51
- const { isDesktop: e } = u(), { component: r, value: a, label: s, themeColor: v } = n;
52
- return r && o === "default" ? /* @__PURE__ */ t(c, { fullWidth: !0, primaryAlign: "center", className: l.centerDefaultComponent, children: r }) : /* @__PURE__ */ d(
53
- 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,
54
55
  {
55
56
  fullWidth: !0,
56
57
  "data-testid": "infoGroupItem",
@@ -60,13 +61,13 @@ const D = "_dividerContainer_4c1hq_1", y = "_centerDefaultComponent_4c1hq_10", A
60
61
  secondaryAlign: e ? "baseline" : "center",
61
62
  className: e ? "" : l.textAlignRight,
62
63
  children: [
63
- /* @__PURE__ */ t(g, { themeColor: "text-hint-on-light", children: s }),
64
- 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 })
65
66
  ]
66
67
  }
67
68
  );
68
69
  };
69
70
  export {
70
71
  R as Cell,
71
- W as InfoGroup
72
+ F as InfoGroup
72
73
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { a as l, s as t } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as l, s as t } from "../../react.esm-DNwojocF.js";
3
3
  import { InfoGroup as r } from "./InfoGroup.js";
4
- import { d as s, t as i, g as e } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as s, t as i, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  s("InfoGroup Test", () => {
6
6
  i("render Single InfoGroup", () => {
7
7
  l(/* @__PURE__ */ o(r, { fields: m }));
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { ListElement } from '../../types/ListElement';
3
2
  import { LinkProps } from '../../types/internal/ReactRouterTypes';
3
+
4
4
  type ListAreaProps = {
5
5
  /**
6
6
  * elements to be displayed in the list area
@@ -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/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-CRX4eEUJ.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,9 +1,9 @@
1
1
  import { jsx as r, Fragment as i } from "react/jsx-runtime";
2
- import { TypoButton as p } from "@element/react-components";
3
- import { a as s, s as a, f as u } from "../../react.esm-FR1-H8iU.js";
2
+ import { c as p } from "../../index.es-CF_xy2ns.js";
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 d } from "../../ListAreaService-CRX4eEUJ.js";
6
- import { d as m, t as n, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
5
+ import { g as h } from "../../ListAreaService-DOwtdRa4.js";
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 = [
9
9
  {
@@ -99,7 +99,7 @@ m("ListAreaService Test", () => {
99
99
  }
100
100
  ];
101
101
  n("should return grouped items", () => {
102
- const e = d(o, "", "", void 0);
102
+ const e = h(o, "", "", void 0);
103
103
  t(e.length).toBe(2), t(e[0].groupName).toStrictEqual(/* @__PURE__ */ r(p, { tag: "span", children: "farm-1" })), t(e[0].items.length).toBe(2), t(e[1].groupName).toStrictEqual(/* @__PURE__ */ r(p, { tag: "span", children: "farm-2" })), t(e[1].items.length).toBe(1);
104
104
  });
105
105
  });
@@ -1,6 +1,7 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  import { ListElement } from '../../types/ListElement';
3
3
  import { LinkProps } from '../../types/internal/ReactRouterTypes';
4
+
4
5
  /**
5
6
  * Groups items by groupName property and maps them to the schema of Bayer's List component
6
7
  * @param items the items to group
@@ -27,18 +28,18 @@ export declare const getListedItems: (items: ListElement[], pathname: string, it
27
28
  primaryText: string;
28
29
  secondaryText: import("react/jsx-runtime").JSX.Element;
29
30
  overlineText: import("react/jsx-runtime").JSX.Element | undefined;
30
- trailingBlock: string | number | boolean | JSX.Element | Iterable<import("react").ReactNode>;
31
+ trailingBlock: string | number | boolean | JSX.Element | Iterable<import('react').ReactNode>;
31
32
  leadingBlock: string | JSX.Element | undefined;
32
33
  value: string | undefined;
33
34
  componentProps: {
34
35
  id: string;
35
36
  'data-testid': string;
36
37
  key: string;
37
- leadingBlockType: "icon" | "badge" | "image" | "meta" | "checkbox" | "radio" | "switch" | "avatar" | "lgImage" | "thumbnail";
38
- trailingBlockType: "icon" | "badge" | "image" | "meta" | "checkbox" | "radio" | "switch" | "avatar" | "lgImage" | "thumbnail";
38
+ leadingBlockType: "checkbox" | "radio" | "switch" | "meta" | "image" | "icon" | "badge" | "avatar" | "lgImage" | "thumbnail";
39
+ trailingBlockType: "checkbox" | "radio" | "switch" | "meta" | "image" | "icon" | "badge" | "avatar" | "lgImage" | "thumbnail";
39
40
  className: string;
40
41
  onClick: (_: ChangeEvent, value: string) => void | undefined;
41
- tag: string | import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>> | undefined;
42
+ tag: string | import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>> | undefined;
42
43
  to: string | undefined;
43
44
  disabled: boolean | undefined;
44
45
  };
@@ -57,18 +58,18 @@ export declare const mapListElement: (element: ListElement, pathname: string | u
57
58
  primaryText: string;
58
59
  secondaryText: import("react/jsx-runtime").JSX.Element;
59
60
  overlineText: import("react/jsx-runtime").JSX.Element | undefined;
60
- trailingBlock: string | number | boolean | JSX.Element | Iterable<import("react").ReactNode>;
61
+ trailingBlock: string | number | boolean | JSX.Element | Iterable<import('react').ReactNode>;
61
62
  leadingBlock: string | JSX.Element | undefined;
62
63
  value: string | undefined;
63
64
  componentProps: {
64
65
  id: string;
65
66
  'data-testid': string;
66
67
  key: string;
67
- leadingBlockType: "icon" | "badge" | "image" | "meta" | "checkbox" | "radio" | "switch" | "avatar" | "lgImage" | "thumbnail";
68
- trailingBlockType: "icon" | "badge" | "image" | "meta" | "checkbox" | "radio" | "switch" | "avatar" | "lgImage" | "thumbnail";
68
+ leadingBlockType: "checkbox" | "radio" | "switch" | "meta" | "image" | "icon" | "badge" | "avatar" | "lgImage" | "thumbnail";
69
+ trailingBlockType: "checkbox" | "radio" | "switch" | "meta" | "image" | "icon" | "badge" | "avatar" | "lgImage" | "thumbnail";
69
70
  className: string;
70
71
  onClick: (_: ChangeEvent, value: string) => void | undefined;
71
- tag: string | import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>> | undefined;
72
+ tag: string | import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>> | undefined;
72
73
  to: string | undefined;
73
74
  disabled: boolean | undefined;
74
75
  };
@@ -1,10 +1,12 @@
1
1
  import "react/jsx-runtime";
2
- import "@element/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-CRX4eEUJ.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/react-components";
3
- import { B as t } from "../../../BigLoadingSpinner-C3wTbTD0.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,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { s as r, B as n } from "../../../BigLoadingSpinner-C3wTbTD0.js";
3
- import { a as i, s as e } from "../../../react.esm-FR1-H8iU.js";
4
- import { d as g, t as a, g as t } from "../../../vi.CjhMlMwf-DWv7vrn7.js";
2
+ import { s as r, B as n } from "../../../BigLoadingSpinner-iegTbDcD.js";
3
+ import { a as i, s as e } from "../../../react.esm-DNwojocF.js";
4
+ import { d as g, t as a, g as t } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  g("BigLoadingSpinner Test", () => {
6
6
  a("render BigLoadingSpinner with custom loading text", () => {
7
7
  i(/* @__PURE__ */ o(n, { text: "Please wait..." })), t(e.getByText("Please wait...")).toBeInTheDocument(), t(e.getByRole("progressbar")).toBeInTheDocument();