@hortiview/shared-components 0.0.11528 → 0.0.11589

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 +21 -4
  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,4 +1,4 @@
1
- import { ListItemProps } from '@element-public/react-components';
1
+ import { ListItemProps } from '@element-public/react-list';
2
2
 
3
3
  type ContextMenuProps = {
4
4
  /**
@@ -1,54 +1,55 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Menu as u, List as f, ListItem as d, IconButton as _ } from "@element-public/react-components";
3
- import { useState as p, useCallback as c, useEffect as v } from "react";
4
- import { uniqueId as I } from "lodash";
5
- import '../../assets/ContextMenu.css';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 = {
6
7
  menu: y,
7
8
  icon: C,
8
9
  listItem: k
9
10
  }, b = ({
10
- triggerOpen: l = null,
11
+ triggerOpen: s = null,
11
12
  actions: m,
12
- iconOrientation: r = "vertical"
13
+ iconOrientation: c = "vertical"
13
14
  }) => {
14
- const [t, n] = p(!1), a = c(() => {
15
- n(!t);
16
- }, [t]), s = c(() => {
17
- n(!1);
15
+ const [t, o] = p(!1), r = a(() => {
16
+ o(!t);
17
+ }, [t]), i = a(() => {
18
+ o(!1);
18
19
  }, []);
19
- return v(() => {
20
- n(l !== null ? l : !1);
21
- }, [l]), /* @__PURE__ */ o(
22
- u,
20
+ return I(() => {
21
+ o(s !== null ? s : !1);
22
+ }, [s]), /* @__PURE__ */ n(
23
+ f,
23
24
  {
24
- className: i.menu,
25
+ className: l.menu,
25
26
  "data-testid": "selection-menu",
26
27
  open: t,
27
28
  surfaceOnly: !0,
28
29
  hoistToBody: !0,
29
- onClose: s,
30
- trigger: /* @__PURE__ */ o(
31
- _,
30
+ onClose: i,
31
+ trigger: /* @__PURE__ */ n(
32
+ u,
32
33
  {
33
- className: i.icon,
34
+ className: l.icon,
34
35
  variant: t ? "filled-primary" : void 0,
35
36
  "data-testid": "open-button",
36
- icon: r === "vertical" ? "more_vert" : "more_horiz",
37
- onClick: a
37
+ icon: c === "vertical" ? "more_vert" : "more_horiz",
38
+ onClick: r
38
39
  }
39
40
  ),
40
- children: /* @__PURE__ */ o(f, { children: m.map((e) => /* @__PURE__ */ o(
41
- d,
41
+ children: /* @__PURE__ */ n(d, { children: m.map((e) => /* @__PURE__ */ n(
42
+ _,
42
43
  {
43
- className: i.listItem,
44
+ className: l.listItem,
44
45
  ...e,
45
46
  leadingBlockType: "icon",
46
47
  "data-testid": `list-item-button-${e.primaryText}`,
47
48
  onClick: () => {
48
- e?.onClick?.(), e.closeOnClick !== !1 && s();
49
+ e?.onClick?.(), e.closeOnClick !== !1 && i();
49
50
  }
50
51
  },
51
- I(`LI_${e.primaryText?.toString()}_`)
52
+ v(`LI_${e.primaryText?.toString()}_`)
52
53
  )) })
53
54
  },
54
55
  "selectionmenu"
@@ -1,40 +1,43 @@
1
- import { jsx as o, jsxs as g, Fragment as c } from "react/jsx-runtime";
2
- import { Group as i, Button as u, Icon as I, TypoBody as l } from "@element-public/react-components";
3
- 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";
4
7
  import { AvailableCustomIcons as N } from "../../enums/AvailableCustomIcons.js";
5
8
  import { u as S } from "../../useBreakpoints-MzTZ0tCT.js";
6
9
  import { Iconify as x } from "../Iconify/Iconify.js";
7
- import { Modal as M } from "../Modal/Modal.js";
8
- import '../../assets/DeleteModal.css';const j = "_bulletPoint_1kyg0_1", z = "_modal_1kyg0_6", B = "_colorDanger_1kyg0_10", P = "_crossedOut_1kyg0_14", t = {
9
- bulletPoint: j,
10
- modal: z,
11
- 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,
12
15
  crossedOut: P
13
- }, R = ({
16
+ }, W = ({
14
17
  title: r,
15
18
  confirmButtonLabel: e,
16
19
  cancelButtonLabel: n,
17
20
  deleteHeader: a,
18
21
  deleteBody: s,
19
- deleteText: p,
20
- icon: f,
21
- isIconCrossedOut: h,
22
- impossibleDeleteHeader: y,
23
- open: b,
24
- setOpen: d,
22
+ deleteText: f,
23
+ icon: g,
24
+ isIconCrossedOut: b,
25
+ impossibleDeleteHeader: h,
26
+ open: y,
27
+ setOpen: m,
25
28
  onDelete: k,
26
29
  onCancel: v,
27
- isDeletePossible: m = !0
30
+ isDeletePossible: d = !0
28
31
  }) => {
29
32
  const { isDesktop: _ } = S(), C = (D) => {
30
- D.detail.action === "close" && d(!1);
33
+ D.detail.action === "close" && m(!1);
31
34
  };
32
35
  return /* @__PURE__ */ o(
33
- M,
36
+ B,
34
37
  {
35
38
  className: t.modal,
36
39
  modalSize: _ ? "small" : "fullscreen",
37
- open: b,
40
+ open: y,
38
41
  onClose: C,
39
42
  title: r,
40
43
  primaryButton: /* @__PURE__ */ o(
@@ -44,7 +47,7 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_1kyg0_1", z = "_mo
44
47
  variant: "danger",
45
48
  label: e,
46
49
  onClick: k,
47
- disabled: !m
50
+ disabled: !d
48
51
  }
49
52
  ),
50
53
  footerSupplemental: /* @__PURE__ */ o(
@@ -54,42 +57,42 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_1kyg0_1", z = "_mo
54
57
  variant: "text",
55
58
  label: n,
56
59
  onClick: () => {
57
- v?.(), d(!1);
60
+ v?.(), m(!1);
58
61
  }
59
62
  }
60
63
  ),
61
- children: /* @__PURE__ */ g(i, { direction: "vertical", secondaryAlign: "center", children: [
62
- /* @__PURE__ */ o(A, { element: /* @__PURE__ */ o(q, { icon: f }), isCrossedOut: h }),
63
- /* @__PURE__ */ o(i, { direction: "vertical", children: m ? /* @__PURE__ */ o(
64
- 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,
65
68
  {
66
69
  deleteHeader: a,
67
- deleteText: p,
70
+ deleteText: f,
68
71
  deleteBody: s
69
72
  }
70
- ) : /* @__PURE__ */ o(G, { impossibleDeleteHeader: y }) })
73
+ ) : /* @__PURE__ */ o(F, { impossibleDeleteHeader: h }) })
71
74
  ] })
72
75
  }
73
76
  );
74
77
  }, A = ({
75
78
  element: r,
76
79
  isCrossedOut: e = !1
77
- }) => e ? /* @__PURE__ */ o("span", { className: t.crossedOut, children: r }) : r, q = ({ icon: r }) => r ? typeof r != "string" ? r : Object.values(N).includes(r) ? /* @__PURE__ */ o(
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(
78
81
  x,
79
82
  {
80
83
  icon: r,
81
84
  iconSize: "xlarge",
82
85
  className: t.colorDanger
83
86
  }
84
- ) : /* @__PURE__ */ o(I, { icon: r, iconSize: "xlarge", className: t.colorDanger }) : /* @__PURE__ */ o(c, {}), F = ({
87
+ ) : /* @__PURE__ */ o(I, { icon: r, iconSize: "xlarge", className: t.colorDanger }) : /* @__PURE__ */ o(i, {}), q = ({
85
88
  deleteHeader: r,
86
89
  deleteText: e,
87
90
  deleteBody: n
88
- }) => /* @__PURE__ */ g(c, { children: [
91
+ }) => /* @__PURE__ */ p(i, { children: [
89
92
  /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: r }),
90
93
  e && typeof e == "string" && /* @__PURE__ */ o(l, { level: 2, themeColor: "text-secondary-on-background", children: e }),
91
- e && typeof e != "string" && /* @__PURE__ */ o(c, { children: e }),
92
- n && e === void 0 && /* @__PURE__ */ o(i, { direction: "vertical", gap: "none", children: n.map((a, s) => /* @__PURE__ */ o(
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(
93
96
  l,
94
97
  {
95
98
  level: 2,
@@ -99,9 +102,9 @@ import '../../assets/DeleteModal.css';const j = "_bulletPoint_1kyg0_1", z = "_mo
99
102
  },
100
103
  O(s.toString())
101
104
  )) })
102
- ] }), G = ({
105
+ ] }), F = ({
103
106
  impossibleDeleteHeader: r
104
107
  }) => /* @__PURE__ */ o(l, { level: 1, themeColor: "text-primary-on-background", children: r });
105
108
  export {
106
- R as DeleteModal
109
+ W as DeleteModal
107
110
  };
@@ -1,21 +1,23 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { Group as s, TypoSubtitle as t, TypoBody as m, Icon as d } from "@element-public/react-components";
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";
3
5
  import '../../assets/Disclaimer.css';const p = "_disclaimer_1k38t_1", y = "_iconArea_1k38t_7", c = {
4
6
  disclaimer: p,
5
7
  iconArea: y
6
- }, h = ({ text: l, subtext: r, icon: i, level: o = 2, bold: a = !1 }) => /* @__PURE__ */ n(
7
- s,
8
+ }, g = ({ text: o, subtext: i, icon: e, level: a = 2, bold: s = !1 }) => /* @__PURE__ */ l(
9
+ n,
8
10
  {
9
- direction: i || r ? "vertical" : "horizontal",
11
+ direction: e || i ? "vertical" : "horizontal",
10
12
  secondaryAlign: "center",
11
13
  primaryAlign: "center",
12
14
  children: [
13
- /* @__PURE__ */ e(t, { className: c.disclaimer, level: o, bold: a, children: l }),
14
- r && /* @__PURE__ */ e(m, { level: 2, children: r }),
15
- i && /* @__PURE__ */ e("div", { className: c.iconArea, children: /* @__PURE__ */ e(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" }) })
16
18
  ]
17
19
  }
18
20
  );
19
21
  export {
20
- h as Disclaimer
22
+ g as Disclaimer
21
23
  };
@@ -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-public/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
  };