@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,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { a, s as i } from "../../react.esm-FR1-H8iU.js";
2
+ import { a, s as i } from "../../react.esm-DNwojocF.js";
3
3
  import { ChipCard as n } from "./ChipCard.js";
4
- import { d as s, t as c, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as s, t as c, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  s("ChipCard Component", () => {
6
6
  const r = "Test Label", o = "domain";
7
7
  c("renders the correct label and icon", () => {
@@ -1,4 +1,5 @@
1
- import { ListItemProps } from '@element/react-components';
1
+ import { ListItemProps } from '@element-public/react-list';
2
+
2
3
  type ContextMenuProps = {
3
4
  /**
4
5
  * If not null, the menu will be open
@@ -23,7 +24,7 @@ export type ActionProps = ListItemProps & {
23
24
  * @param {boolean} triggerOpen indicates if the menu should be open
24
25
  * @param {ListItemProps[]} actions list of actions to display in the context menu as ListItems
25
26
  * @recommended `primaryText`, `onClick`, `leadingBlock`
26
- * @requires `ListItemProps` from `@element/react-components`
27
+ * @requires `ListItemProps` from `@element-public/react-components`
27
28
  * @example const actions = [
28
29
  * { primaryText: 'Open', onClick: () => openSomeModal(), leadingBlock: 'add' },
29
30
  * { primaryText: 'Delete', onClick: () => DeleteSomeThing(), leadingBlock: 'delete_outline'},
@@ -1,52 +1,52 @@
1
- import "../../assets/ContextMenu.css";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import { Menu as a, List as f, ListItem as d, IconButton as _ } from "@element/react-components";
4
- import { useState as p, useCallback as c, useEffect as I } from "react";
5
- import { uniqueId as v } from "lodash";
6
- const y = "_menu_ol91v_1", C = "_icon_ol91v_5", k = "_listItem_ol91v_9", i = {
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { I as u } from "../../index.es-0lQcz8m1.js";
3
+ import { M as f, L as d, a as _ } from "../../index.es-d5xhUpJZ.js";
4
+ import { useState as p, useCallback as a, useEffect as I } from "react";
5
+ import { u as v } from "../../uniqueId-NU3-C36A.js";
6
+ import '../../assets/ContextMenu.css';const y = "_menu_ol91v_1", C = "_icon_ol91v_5", k = "_listItem_ol91v_9", l = {
7
7
  menu: y,
8
8
  icon: C,
9
9
  listItem: k
10
- }, B = ({
11
- triggerOpen: l = null,
10
+ }, b = ({
11
+ triggerOpen: s = null,
12
12
  actions: m,
13
- iconOrientation: r = "vertical"
13
+ iconOrientation: c = "vertical"
14
14
  }) => {
15
- const [t, n] = p(!1), u = c(() => {
16
- n(!t);
17
- }, [t]), s = c(() => {
18
- n(!1);
15
+ const [t, o] = p(!1), r = a(() => {
16
+ o(!t);
17
+ }, [t]), i = a(() => {
18
+ o(!1);
19
19
  }, []);
20
20
  return I(() => {
21
- n(l !== null ? l : !1);
22
- }, [l]), /* @__PURE__ */ o(
23
- a,
21
+ o(s !== null ? s : !1);
22
+ }, [s]), /* @__PURE__ */ n(
23
+ f,
24
24
  {
25
- className: i.menu,
25
+ className: l.menu,
26
26
  "data-testid": "selection-menu",
27
27
  open: t,
28
28
  surfaceOnly: !0,
29
29
  hoistToBody: !0,
30
- onClose: s,
31
- trigger: /* @__PURE__ */ o(
32
- _,
30
+ onClose: i,
31
+ trigger: /* @__PURE__ */ n(
32
+ u,
33
33
  {
34
- className: i.icon,
34
+ className: l.icon,
35
35
  variant: t ? "filled-primary" : void 0,
36
36
  "data-testid": "open-button",
37
- icon: r === "vertical" ? "more_vert" : "more_horiz",
38
- onClick: u
37
+ icon: c === "vertical" ? "more_vert" : "more_horiz",
38
+ onClick: r
39
39
  }
40
40
  ),
41
- children: /* @__PURE__ */ o(f, { children: m.map((e) => /* @__PURE__ */ o(
42
- d,
41
+ children: /* @__PURE__ */ n(d, { children: m.map((e) => /* @__PURE__ */ n(
42
+ _,
43
43
  {
44
- className: i.listItem,
44
+ className: l.listItem,
45
45
  ...e,
46
46
  leadingBlockType: "icon",
47
47
  "data-testid": `list-item-button-${e.primaryText}`,
48
48
  onClick: () => {
49
- e?.onClick?.(), e.closeOnClick !== !1 && s();
49
+ e?.onClick?.(), e.closeOnClick !== !1 && i();
50
50
  }
51
51
  },
52
52
  v(`LI_${e.primaryText?.toString()}_`)
@@ -56,5 +56,5 @@ const y = "_menu_ol91v_1", C = "_icon_ol91v_5", k = "_listItem_ol91v_9", i = {
56
56
  );
57
57
  };
58
58
  export {
59
- B as ContextMenu
59
+ b as ContextMenu
60
60
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { a as B, s as t, f as o, w as s } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as B, s as t, f as o, w as s } from "../../react.esm-DNwojocF.js";
3
3
  import { ContextMenu as p } from "./ContextMenu.js";
4
- import { v as l, d as k, t as T, g as e } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { v as l, d as k, t as T, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  const C = l.fn(), a = l.fn(), i = l.fn(), g = [
6
6
  { primaryText: "Open", onClick: C, leadingBlock: "add" },
7
7
  { primaryText: "Delete", onClick: i, leadingBlock: "delete_outline" },
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type DeleteModalProps = {
3
2
  /**
4
3
  * The title of the modal.
@@ -1,51 +1,53 @@
1
- import "../../assets/DeleteModal.css";
2
- import { jsx as o, jsxs as p, Fragment as c } from "react/jsx-runtime";
3
- import { Group as i, Button as u, Icon as I, TypoBody as l } from "@element/react-components";
4
- import { uniqueId as O } from "lodash";
1
+ import { jsx as o, jsxs as p, Fragment as i } from "react/jsx-runtime";
2
+ import { B as u } from "../../index.es-CiqbARoC.js";
3
+ import { G as c } from "../../index.es-DntoATwO.js";
4
+ import { I } from "../../index.es-3043KTnb.js";
5
+ import { b as l } from "../../index.es-CF_xy2ns.js";
6
+ import { u as O } from "../../uniqueId-NU3-C36A.js";
5
7
  import { AvailableCustomIcons as N } from "../../enums/AvailableCustomIcons.js";
6
8
  import { u as S } from "../../useBreakpoints-MzTZ0tCT.js";
7
9
  import { Iconify as x } from "../Iconify/Iconify.js";
8
- import { Modal as M } from "../Modal/Modal.js";
9
- const j = "_bulletPoint_1kyg0_1", z = "_modal_1kyg0_6", B = "_colorDanger_1kyg0_10", P = "_crossedOut_1kyg0_14", t = {
10
- bulletPoint: j,
11
- modal: z,
12
- colorDanger: B,
10
+ import { Modal as B } from "../Modal/Modal.js";
11
+ import '../../assets/DeleteModal.css';const M = "_bulletPoint_1kyg0_1", j = "_modal_1kyg0_6", z = "_colorDanger_1kyg0_10", P = "_crossedOut_1kyg0_14", t = {
12
+ bulletPoint: M,
13
+ modal: j,
14
+ colorDanger: z,
13
15
  crossedOut: P
14
- }, U = ({
15
- title: e,
16
- confirmButtonLabel: r,
16
+ }, W = ({
17
+ title: r,
18
+ confirmButtonLabel: e,
17
19
  cancelButtonLabel: n,
18
20
  deleteHeader: a,
19
21
  deleteBody: s,
20
- deleteText: g,
21
- icon: f,
22
- isIconCrossedOut: h,
23
- impossibleDeleteHeader: y,
24
- open: b,
25
- setOpen: d,
22
+ deleteText: f,
23
+ icon: g,
24
+ isIconCrossedOut: b,
25
+ impossibleDeleteHeader: h,
26
+ open: y,
27
+ setOpen: m,
26
28
  onDelete: k,
27
- onCancel: _,
28
- isDeletePossible: m = !0
29
+ onCancel: v,
30
+ isDeletePossible: d = !0
29
31
  }) => {
30
- const { isDesktop: v } = S(), C = (D) => {
31
- D.detail.action === "close" && d(!1);
32
+ const { isDesktop: _ } = S(), C = (D) => {
33
+ D.detail.action === "close" && m(!1);
32
34
  };
33
35
  return /* @__PURE__ */ o(
34
- M,
36
+ B,
35
37
  {
36
38
  className: t.modal,
37
- modalSize: v ? "small" : "fullscreen",
38
- open: b,
39
+ modalSize: _ ? "small" : "fullscreen",
40
+ open: y,
39
41
  onClose: C,
40
- title: e,
42
+ title: r,
41
43
  primaryButton: /* @__PURE__ */ o(
42
44
  u,
43
45
  {
44
46
  "data-testid": "delete-button",
45
47
  variant: "danger",
46
- label: r,
48
+ label: e,
47
49
  onClick: k,
48
- disabled: !m
50
+ disabled: !d
49
51
  }
50
52
  ),
51
53
  footerSupplemental: /* @__PURE__ */ o(
@@ -55,42 +57,42 @@ const j = "_bulletPoint_1kyg0_1", z = "_modal_1kyg0_6", B = "_colorDanger_1kyg0_
55
57
  variant: "text",
56
58
  label: n,
57
59
  onClick: () => {
58
- _?.(), d(!1);
60
+ v?.(), m(!1);
59
61
  }
60
62
  }
61
63
  ),
62
- children: /* @__PURE__ */ p(i, { direction: "vertical", secondaryAlign: "center", children: [
63
- /* @__PURE__ */ o(A, { element: /* @__PURE__ */ o(q, { icon: f }), isCrossedOut: h }),
64
- /* @__PURE__ */ o(i, { direction: "vertical", children: m ? /* @__PURE__ */ o(
65
- F,
64
+ children: /* @__PURE__ */ p(c, { direction: "vertical", secondaryAlign: "center", children: [
65
+ /* @__PURE__ */ o(A, { element: /* @__PURE__ */ o(G, { icon: g }), isCrossedOut: b }),
66
+ /* @__PURE__ */ o(c, { direction: "vertical", children: d ? /* @__PURE__ */ o(
67
+ q,
66
68
  {
67
69
  deleteHeader: a,
68
- deleteText: g,
70
+ deleteText: f,
69
71
  deleteBody: s
70
72
  }
71
- ) : /* @__PURE__ */ o(G, { impossibleDeleteHeader: y }) })
73
+ ) : /* @__PURE__ */ o(F, { impossibleDeleteHeader: h }) })
72
74
  ] })
73
75
  }
74
76
  );
75
77
  }, A = ({
76
- element: e,
77
- isCrossedOut: r = !1
78
- }) => r ? /* @__PURE__ */ o("span", { className: t.crossedOut, children: e }) : e, q = ({ icon: e }) => e ? typeof e != "string" ? e : Object.values(N).includes(e) ? /* @__PURE__ */ o(
78
+ element: r,
79
+ isCrossedOut: e = !1
80
+ }) => e ? /* @__PURE__ */ o("span", { className: t.crossedOut, children: r }) : r, G = ({ icon: r }) => r ? typeof r != "string" ? r : Object.values(N).includes(r) ? /* @__PURE__ */ o(
79
81
  x,
80
82
  {
81
- icon: e,
83
+ icon: r,
82
84
  iconSize: "xlarge",
83
85
  className: t.colorDanger
84
86
  }
85
- ) : /* @__PURE__ */ o(I, { icon: e, iconSize: "xlarge", className: t.colorDanger }) : /* @__PURE__ */ o(c, {}), F = ({
86
- deleteHeader: e,
87
- deleteText: r,
87
+ ) : /* @__PURE__ */ o(I, { icon: r, iconSize: "xlarge", className: t.colorDanger }) : /* @__PURE__ */ o(i, {}), q = ({
88
+ deleteHeader: r,
89
+ deleteText: e,
88
90
  deleteBody: n
89
- }) => /* @__PURE__ */ p(c, { children: [
90
- /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: e }),
91
- r && typeof r == "string" && /* @__PURE__ */ o(l, { level: 2, themeColor: "text-secondary-on-background", children: r }),
92
- r && typeof r != "string" && /* @__PURE__ */ o(c, { children: r }),
93
- n && r === void 0 && /* @__PURE__ */ o(i, { direction: "vertical", gap: "none", children: n.map((a, s) => /* @__PURE__ */ o(
91
+ }) => /* @__PURE__ */ p(i, { children: [
92
+ /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: r }),
93
+ e && typeof e == "string" && /* @__PURE__ */ o(l, { level: 2, themeColor: "text-secondary-on-background", children: e }),
94
+ e && typeof e != "string" && /* @__PURE__ */ o(i, { children: e }),
95
+ n && e === void 0 && /* @__PURE__ */ o(c, { direction: "vertical", gap: "none", children: n.map((a, s) => /* @__PURE__ */ o(
94
96
  l,
95
97
  {
96
98
  level: 2,
@@ -100,9 +102,9 @@ const j = "_bulletPoint_1kyg0_1", z = "_modal_1kyg0_6", B = "_colorDanger_1kyg0_
100
102
  },
101
103
  O(s.toString())
102
104
  )) })
103
- ] }), G = ({
104
- impossibleDeleteHeader: e
105
- }) => /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: e });
105
+ ] }), F = ({
106
+ impossibleDeleteHeader: r
107
+ }) => /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: r });
106
108
  export {
107
- U as DeleteModal
109
+ W as DeleteModal
108
110
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a as c, s as e } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as c, s as e } from "../../react.esm-DNwojocF.js";
3
3
  import { DeleteModal as b } from "./DeleteModal.js";
4
- import { d as B, t as a, v as o, g as t } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as B, t as a, v as o, g as t } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  B("DeleteModal Test", () => {
6
6
  a("should render the DeleteModal properly", () => {
7
7
  c(
@@ -1,22 +1,23 @@
1
- import "../../assets/Disclaimer.css";
2
- import { jsxs as n, jsx as r } from "react/jsx-runtime";
3
- import { Group as s, TypoSubtitle as t, TypoBody as m, Icon as d } from "@element/react-components";
4
- const p = "_disclaimer_1k38t_1", y = "_iconArea_1k38t_7", c = {
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
+ import { G as n } from "../../index.es-DntoATwO.js";
3
+ import { I as m } from "../../index.es-3043KTnb.js";
4
+ import { d as t, b as d } from "../../index.es-CF_xy2ns.js";
5
+ import '../../assets/Disclaimer.css';const p = "_disclaimer_1k38t_1", y = "_iconArea_1k38t_7", c = {
5
6
  disclaimer: p,
6
7
  iconArea: y
7
- }, f = ({ text: o, subtext: e, icon: i, level: l = 2, bold: a = !1 }) => /* @__PURE__ */ n(
8
- s,
8
+ }, g = ({ text: o, subtext: i, icon: e, level: a = 2, bold: s = !1 }) => /* @__PURE__ */ l(
9
+ n,
9
10
  {
10
- direction: i || e ? "vertical" : "horizontal",
11
+ direction: e || i ? "vertical" : "horizontal",
11
12
  secondaryAlign: "center",
12
13
  primaryAlign: "center",
13
14
  children: [
14
- /* @__PURE__ */ r(t, { className: c.disclaimer, level: l, bold: a, children: o }),
15
- e && /* @__PURE__ */ r(m, { level: 2, children: e }),
16
- i && /* @__PURE__ */ r("div", { className: c.iconArea, children: /* @__PURE__ */ r(d, { className: c.Icon, icon: i, iconSize: "large" }) })
15
+ /* @__PURE__ */ r(t, { className: c.disclaimer, level: a, bold: s, children: o }),
16
+ i && /* @__PURE__ */ r(d, { level: 2, children: i }),
17
+ e && /* @__PURE__ */ r("div", { className: c.iconArea, children: /* @__PURE__ */ r(m, { className: c.Icon, icon: e, iconSize: "large" }) })
17
18
  ]
18
19
  }
19
20
  );
20
21
  export {
21
- f as Disclaimer
22
+ g as Disclaimer
22
23
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { a as r, s as t } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as r, s as t } from "../../react.esm-DNwojocF.js";
3
3
  import { Disclaimer as s } from "./Disclaimer.js";
4
- import { d as i, t as m, g as e } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as i, t as m, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  i("Disclaimer test", () => {
6
6
  m("should render with default text", () => {
7
7
  r(/* @__PURE__ */ o(s, { text: "disclaimer.default" })), e(t.getByText("disclaimer.default")).toBeInTheDocument();
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+
2
3
  type EmptyViewProps = {
3
4
  /**
4
5
  * The title of the empty view, optional, default is empty string
@@ -1,32 +1,271 @@
1
- import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
- import { Hero as d, HeroContent as h, Icon as s, TypoBody as i, Group as m } from "@element/react-components";
3
- const u = ({
4
- title: r = "",
1
+ import { jsx as m, jsxs as $ } from "react/jsx-runtime";
2
+ import { G as _ } from "../../index.es-DntoATwO.js";
3
+ import { c as P, _ as C, P as e } from "../../identity-DLWZln-X.js";
4
+ import c, { forwardRef as T, useRef as H, useImperativeHandle as w, useMemo as y } from "react";
5
+ import { e as N, b as O } from "../../index.es-CF_xy2ns.js";
6
+ import { I as B } from "../../index.es-3043KTnb.js";
7
+ const j = {
8
+ /**
9
+ * Aligns the Hero contents.
10
+ *
11
+ * Defaults to **'centered'**.
12
+ */
13
+ alignment: e.oneOf(["center-bottom", "center-top", "centered", "left-bottom", "left-center", "left-top", "right-bottom", "right-center", "right-top"]),
14
+ /**
15
+ * Content to be rendered inside the Hero.
16
+ *
17
+ * Defaults to **null**.
18
+ */
19
+ children: e.node,
20
+ /**
21
+ * The css class name to be passed through to the component markup.
22
+ *
23
+ * Defaults to **undefined**.
24
+ */
25
+ className: e.string,
26
+ /**
27
+ * Image Url for Hero background image
28
+ *
29
+ * Defaults to **null**.
30
+ */
31
+ imageUrl: e.string,
32
+ /**
33
+ * Adds an overlay over the Hero. Use `overlayProps` to send props to the Hero Overlay component. See Hero Overlay for prop details.
34
+ *
35
+ * Defaults to **false**.
36
+ */
37
+ overlay: e.bool,
38
+ /**
39
+ * Props sent to Hero Overlay. See Hero Overlay for prop details.
40
+ *
41
+ * Defaults to **{}**.
42
+ */
43
+ overlayProps: e.object,
44
+ /**
45
+ * Override the default background color. Can only be used if background image is omitted.
46
+ *
47
+ * Defaults to **empty string**.
48
+ */
49
+ themeColor: e.oneOf(["", "surface", "primary", "secondary"])
50
+ }, A = {
51
+ alignment: "centered",
52
+ children: null,
53
+ className: void 0,
54
+ imageUrl: null,
55
+ overlay: !1,
56
+ overlayProps: {},
57
+ themeColor: ""
58
+ }, I = {
59
+ /**
60
+ * Content to be rendered inside the Hero Content. Will take precedence over props.
61
+ *
62
+ * Defaults to **null**.
63
+ */
64
+ children: e.node,
65
+ /**
66
+ * The css class name to be passed through to the component markup.
67
+ *
68
+ * Defaults to **undefined**.
69
+ */
70
+ className: e.string,
71
+ /**
72
+ * Button to be rendered inside the Hero Content.
73
+ *
74
+ * Defaults to **null**.
75
+ */
76
+ heroBtn: e.node,
77
+ /**
78
+ * Logo to be rendered inside the Hero Content.
79
+ *
80
+ * Defaults to **null**.
81
+ */
82
+ logo: e.node,
83
+ /**
84
+ * Overline text for the Hero Content. Cannot be used with children.
85
+ *
86
+ * Defaults to **'Overline'**.
87
+ */
88
+ overline: e.string,
89
+ /**
90
+ * Adds a padding style to the Hero. Must be a valid CSS padding declaration. i.e. 38px 30px
91
+ *
92
+ * Defaults to **null**.
93
+ */
94
+ padding: e.string,
95
+ /**
96
+ * Passthrough style object.
97
+ *
98
+ * Defaults to **null**.
99
+ */
100
+ style: e.object,
101
+ /**
102
+ * Subtitle text for the Hero Content. Cannot be used with children.
103
+ *
104
+ * Defaults to **'Subtitle'**.
105
+ */
106
+ subtitle: e.string,
107
+ /**
108
+ * Set the color of the text. Make sure to check for accessibility compliance.
109
+ *
110
+ * Defaults to **'on-unknown-black-active'**.
111
+ */
112
+ textColor: e.oneOf(["on-unknown-black-active", "on-unknown-white-active", "primary", "secondary", "on-primary", "on-secondary"]),
113
+ /**
114
+ * Title text for the Hero Content. Cannot be used with children.
115
+ *
116
+ * Defaults to **'Title'**.
117
+ */
118
+ title: e.string
119
+ }, D = {
120
+ children: null,
121
+ className: void 0,
122
+ heroBtn: null,
123
+ logo: null,
124
+ overline: "Overline",
125
+ padding: null,
126
+ style: null,
127
+ subtitle: "Subtitle",
128
+ textColor: "on-unknown-black-active",
129
+ title: "Title"
130
+ }, R = {
131
+ /**
132
+ * Content to be rendered inside the Hero Overlay. Useful for angles or other non semantic elements displayed in the Hero.
133
+ *
134
+ * Defaults to **null**.
135
+ */
136
+ children: e.node,
137
+ /**
138
+ * The css class name to be passed through to the component markup.
139
+ *
140
+ * Defaults to **undefined**.
141
+ */
142
+ className: e.string,
143
+ /**
144
+ * Overlay theme color.
145
+ *
146
+ * Defaults to **'dark'**.
147
+ */
148
+ overlayThemeColor: e.oneOf(["dark", "light", "surface", "linear-gradient-white-to-bottom", "linear-gradient-white-to-top", "linear-gradient-black-to-bottom", "linear-gradient-black-to-top", "linear-gradient-primary-dark-to-bottom", "linear-gradient-primary-dark-to-top", "linear-gradient-primary-darker-to-bottom", "linear-gradient-primary-darker-to-top", "linear-gradient-primary-to-bottom", "linear-gradient-primary-to-top", "linear-gradient-secondary-dark-to-bottom", "linear-gradient-secondary-dark-to-top", "linear-gradient-secondary-darker-to-bottom", "linear-gradient-secondary-darker-to-top", "linear-gradient-secondary-to-bottom", "linear-gradient-secondary-to-top"]),
149
+ /**
150
+ * Position of the Overlay. Use `overlayThemeColor` to change the theme color. If set to leading or trailing be sure to set `alignment` on Hero accordingly to have Hero Content over the overlay.
151
+ *
152
+ * Defaults to **'full'**.
153
+ */
154
+ position: e.oneOf(["full", "leading", "trailing"])
155
+ }, U = {
156
+ children: null,
157
+ className: void 0,
158
+ overlayThemeColor: "dark",
159
+ position: "full"
160
+ }, f = /* @__PURE__ */ T((t, o) => {
161
+ const {
162
+ children: l,
163
+ className: a,
164
+ position: n,
165
+ overlayThemeColor: r,
166
+ ...i
167
+ } = t, s = H();
168
+ w(o, () => s.current, []);
169
+ const d = y(() => n !== "none" && P("lmnt", "lmnt-hero-overlay ", !r.includes("gradient") && r !== "surface" && `lmnt-hero-overlay__${r}`, r.includes("gradient") && r !== "surface" && `lmnt-theme--bg-${r}`, r === "surface" && "lmnt-theme-surface-bg", `lmnt-hero-overlay__${n}`, a), [r, n, a]);
170
+ return /* @__PURE__ */ c.createElement("div", C({
171
+ className: d
172
+ }, i), l && l);
173
+ });
174
+ f.displayName = "HeroOverlay";
175
+ f.propTypes = R;
176
+ f.defaultProps = U;
177
+ const v = /* @__PURE__ */ T((t, o) => {
178
+ const {
179
+ alignment: l,
180
+ children: a,
181
+ className: n,
182
+ imageUrl: r,
183
+ style: i,
184
+ themeColor: s,
185
+ overlay: d,
186
+ overlayProps: g,
187
+ ...u
188
+ } = t, p = H();
189
+ w(o, () => p.current, []);
190
+ const k = y(() => P("lmnt lmnt-hero", s && `lmnt-theme-${s}-bg`, `lmnt-hero__align-${l}`, n), [l, n, s]), h = y(() => r ? {
191
+ ...i,
192
+ backgroundImage: `url(${r})`
193
+ } : i, [r, i]);
194
+ return /* @__PURE__ */ c.createElement("div", C({
195
+ ref: p,
196
+ className: k,
197
+ style: h
198
+ }, u), d && /* @__PURE__ */ c.createElement(f, g), a);
199
+ });
200
+ v.displayName = "Hero";
201
+ v.propTypes = j;
202
+ v.defaultProps = A;
203
+ const b = /* @__PURE__ */ T((t, o) => {
204
+ const {
205
+ children: l,
206
+ className: a,
207
+ heroBtn: n,
208
+ logo: r,
209
+ overline: i,
210
+ padding: s,
211
+ title: d,
212
+ style: g,
213
+ subtitle: u,
214
+ textColor: p,
215
+ ...k
216
+ } = t, h = H(), E = y(() => P("lmnt lmnt-hero-content", `lmnt-theme-${p}`, a), [a, p]);
217
+ w(o, () => h.current, []);
218
+ const x = y(() => ({
219
+ ...g,
220
+ padding: s
221
+ }), [s, g]);
222
+ return /* @__PURE__ */ c.createElement("div", C({
223
+ ref: h,
224
+ className: E
225
+ }, k, {
226
+ style: x
227
+ }), l || /* @__PURE__ */ c.createElement(_, {
228
+ gap: "dense",
229
+ direction: "vertical",
230
+ secondaryAlign: "center"
231
+ }, r && r, i && /* @__PURE__ */ c.createElement(N, {
232
+ type: "overline"
233
+ }, i), d && /* @__PURE__ */ c.createElement(N, {
234
+ type: "display2"
235
+ }, d), u && /* @__PURE__ */ c.createElement(N, {
236
+ type: "display6"
237
+ }, u), n && n));
238
+ });
239
+ b.displayName = "HeroContent";
240
+ b.propTypes = I;
241
+ b.defaultProps = D;
242
+ const F = ({
243
+ title: t = "",
5
244
  subtitle: o = "",
6
- icon: n = "dashbord",
7
- text: t = "",
8
- action: l
9
- }) => /* @__PURE__ */ e(
10
- d,
245
+ icon: l = "dashbord",
246
+ text: a = "",
247
+ action: n
248
+ }) => /* @__PURE__ */ m(
249
+ v,
11
250
  {
12
251
  "data-testid": "empty-view-container",
13
252
  style: { width: "100%", height: "25vh" },
14
253
  themeColor: "surface",
15
- children: /* @__PURE__ */ e(
16
- h,
254
+ children: /* @__PURE__ */ m(
255
+ b,
17
256
  {
18
- logo: /* @__PURE__ */ e(s, { iconSize: "large", icon: n }),
257
+ logo: /* @__PURE__ */ m(B, { iconSize: "large", icon: l }),
19
258
  overline: "",
20
259
  subtitle: o,
21
- title: r,
22
- heroBtn: /* @__PURE__ */ e(p, { action: l, text: t })
260
+ title: t,
261
+ heroBtn: /* @__PURE__ */ m(G, { action: n, text: a })
23
262
  }
24
263
  )
25
264
  }
26
- ), p = ({ action: r, text: o }) => o ? r ? /* @__PURE__ */ c(m, { direction: "vertical", primaryAlign: "center", secondaryAlign: "center", children: [
27
- /* @__PURE__ */ e(i, { level: 2, children: o }),
28
- r
29
- ] }) : /* @__PURE__ */ e(i, { level: 2, children: o }) : r;
265
+ ), G = ({ action: t, text: o }) => o ? t ? /* @__PURE__ */ $(_, { direction: "vertical", primaryAlign: "center", secondaryAlign: "center", children: [
266
+ /* @__PURE__ */ m(O, { level: 2, children: o }),
267
+ t
268
+ ] }) : /* @__PURE__ */ m(O, { level: 2, children: o }) : t;
30
269
  export {
31
- u as EmptyView
270
+ F as EmptyView
32
271
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a as s, s as o, w as r, f as l } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as s, s as o, w as r, f as l } from "../../react.esm-DNwojocF.js";
3
3
  import { EmptyView as c } from "./EmptyView.js";
4
- import { d as h, t as T, g as e, v as d } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as h, t as T, g as e, v as d } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  h("EmptyView", () => {
6
6
  T("should render", () => {
7
7
  s(/* @__PURE__ */ n(c, {})), e(o.getByText("dashbord")).toBeInTheDocument();