@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
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
2
+
3
+ /**
4
+ * Provides a responsive padding component for modules according to the HV platform UI guidelines, based on the Bayer Element padding component.
5
+ * @param children - The module content to be rendered in the module padding
6
+ */
7
+ export declare const ModulePadding: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { P as r } from "../../index.es-D-CKRzIB.js";
3
+ import '../../assets/main.css';/* empty css */
4
+ import { u as m } from "../../useBreakpoints-MzTZ0tCT.js";
5
+ import "react";
6
+ import "../../isEmpty-B4GG2s-V.js";
7
+ import "../../react-tooltip.min-DSY6KDqS.js";
8
+ import "../../orderBy-Bd48bw88.js";
9
+ import "../../uniqueId-NU3-C36A.js";
10
+ import "react-hook-form";
11
+ import "../../get-DFv1gXfq.js";
12
+ import "../../isArray-Dub1wGJM.js";
13
+ import "../../isString-BW9UHONv.js";
14
+ const x = ({ children: o }) => {
15
+ const { isDesktop: t } = m();
16
+ return /* @__PURE__ */ i(
17
+ r,
18
+ {
19
+ id: "module-padding",
20
+ "data-testid": "module-padding",
21
+ variant: t ? "standard" : "dense",
22
+ children: o
23
+ }
24
+ );
25
+ };
26
+ export {
27
+ x as ModulePadding
28
+ };
@@ -0,0 +1,22 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { a as o, s as e } from "../../react.esm-DNwojocF.js";
3
+ import { a } from "../../useBreakpoints-MzTZ0tCT.js";
4
+ import { ModulePadding as d } from "./ModulePadding.js";
5
+ import { d as r, t as i, v as n, g as s } from "../../vi.CjhMlMwf-BCJNwXvu.js";
6
+ r("ModulePadding Test", () => {
7
+ i("should render with padding of 16px for desktop", () => {
8
+ n.spyOn(a, "useBreakpoints").mockReturnValue({
9
+ isMobile: !1,
10
+ isTablet: !1,
11
+ isDesktop: !0,
12
+ isDesktopNavbar: !0
13
+ }), o(/* @__PURE__ */ t(d, { children: "Content" })), e.debug(), s(e.getByText("Content")).toBeInTheDocument(), s(e.getByTestId("module-padding")).toHaveClass("lmnt-padding--standard");
14
+ }), i("should render with padding of 8px for mobile", () => {
15
+ n.spyOn(a, "useBreakpoints").mockReturnValue({
16
+ isMobile: !0,
17
+ isTablet: !1,
18
+ isDesktop: !1,
19
+ isDesktopNavbar: !1
20
+ }), o(/* @__PURE__ */ t(d, { children: "Content" })), s(e.getByTestId("module-padding")).toHaveClass("lmnt-padding--dense");
21
+ });
22
+ });
@@ -1,9 +1,9 @@
1
- import { jsxs as m, Fragment as a, jsx as s } from "react/jsx-runtime";
2
- import { TypoBody as p } from "@element-public/react-components";
1
+ import { jsxs as a, Fragment as m, jsx as s } from "react/jsx-runtime";
2
+ import { b as p } from "../../index.es-CF_xy2ns.js";
3
3
  import { useState as h, useMemo as d, cloneElement as f } from "react";
4
- import { M as w } from "../../react-tooltip.min-Czs4RGD1.js";
4
+ import { M as w } from "../../react-tooltip.min-DSY6KDqS.js";
5
5
  import { hasChildWithGreaterWidth as W } from "./OverflowTooltipService.js";
6
- import '../../assets/OverflowTooltip.css';const u = "_truncate_wgwcv_1", v = {
6
+ import '../../assets/OverflowTooltip.css';const u = "_truncate_wgwcv_1", b = {
7
7
  truncate: u
8
8
  }, E = ({ id: o, text: l, children: e }) => {
9
9
  const [i, n] = h(!1), r = d(
@@ -13,11 +13,11 @@ import '../../assets/OverflowTooltip.css';const u = "_truncate_wgwcv_1", v = {
13
13
  const c = t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight || W(t, t.parentElement?.clientWidth);
14
14
  n(c);
15
15
  },
16
- className: `${v.truncate} ${e.props.className}`
16
+ className: `${b.truncate} ${e.props.className}`
17
17
  }),
18
18
  [e, o]
19
19
  );
20
- return /* @__PURE__ */ m(a, { children: [
20
+ return /* @__PURE__ */ a(m, { children: [
21
21
  r,
22
22
  /* @__PURE__ */ s(
23
23
  w,
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { TypoDisplay as n } from "@element-public/react-components";
2
+ import { T as n } from "../../index.es-CF_xy2ns.js";
3
3
  import { a as i, s as e, w as s } from "../../react.esm-DNwojocF.js";
4
4
  import { u as a } from "../../index-CrcXCSzI.js";
5
5
  import { OverflowTooltip as c } from "./OverflowTooltip.js";
@@ -1,5 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { Textfield as s, IconButton as i } from "@element-public/react-components";
2
+ import { I as c } from "../../index.es-0lQcz8m1.js";
3
+ import { T as i } from "../../index.es-25EARqhH.js";
3
4
  import '../../assets/SearchBar.css';const l = "_searchbar_gnvwc_1", u = {
4
5
  searchbar: l
5
6
  }, b = ({
@@ -7,20 +8,20 @@ import '../../assets/SearchBar.css';const l = "_searchbar_gnvwc_1", u = {
7
8
  dense: n = !1,
8
9
  searchTerm: a,
9
10
  setSearchTerm: t,
10
- placeholder: e
11
+ placeholder: s
11
12
  }) => /* @__PURE__ */ r(
12
- s,
13
+ i,
13
14
  {
14
15
  "data-testid": "search-bar-input",
15
16
  className: `${o ?? ""} ${u.searchbar}`,
16
17
  dense: n,
17
18
  variant: "outlined",
18
- placeholder: e,
19
+ placeholder: s,
19
20
  value: a,
20
- onChange: (c) => t(c.target.value),
21
+ onChange: (e) => t(e.target.value),
21
22
  fullWidth: !0,
22
23
  trailingIcon: /* @__PURE__ */ r(
23
- i,
24
+ c,
24
25
  {
25
26
  icon: a ? "close" : "search",
26
27
  onClick: () => a ? t("") : void 0
@@ -1,4 +1,4 @@
1
- import { SelectProps } from '@element-public/react-components';
1
+ import { SelectProps } from '@element-public/react-select';
2
2
 
3
3
  export type ExtendedSelectProps = SelectProps & {
4
4
  'data-testid'?: string;
@@ -1,31 +1,31 @@
1
1
  import { jsx as m, Fragment as u } from "react/jsx-runtime";
2
- import { Select as d } from "@element-public/react-components";
2
+ import { S as d } from "../../index.es-UHKFl8Da.js";
3
3
  import { useEffect as a } from "react";
4
4
  import '../../assets/Select.css';const i = "_customPortal_8wq49_1", f = "_customSelect_8wq49_7", s = {
5
5
  customPortal: i,
6
6
  customSelect: f
7
7
  }, _ = ({
8
- menuMaxHeight: l = "15rem",
8
+ menuMaxHeight: n = "15rem",
9
9
  portalClassName: e,
10
- className: n,
11
- hoisted: c,
12
- ...r
10
+ className: r,
11
+ hoisted: o,
12
+ ...l
13
13
  }) => {
14
14
  const t = `custom-portal-${e ?? "default"}`;
15
15
  return a(() => {
16
- if (c && !document.getElementById(t)) {
17
- const o = document.createElement("div");
18
- o.id = t, o.className = `${s.customPortal} ${e ?? ""}`, document.body.appendChild(o);
16
+ if (o && !document.getElementById(t)) {
17
+ const c = document.createElement("div");
18
+ c.id = t, c.className = `${s.customPortal} ${e ?? ""}`, document.body.appendChild(c);
19
19
  }
20
- }, [c, t, e]), /* @__PURE__ */ m(u, { children: /* @__PURE__ */ m(
20
+ }, [o, t, e]), /* @__PURE__ */ m(u, { children: /* @__PURE__ */ m(
21
21
  d,
22
22
  {
23
23
  "data-testid": "custom-select",
24
- menuMaxHeight: l,
25
- hoisted: c,
24
+ menuMaxHeight: n,
25
+ hoisted: o,
26
26
  portalContainer: document.getElementById(t) ? `#${t}` : void 0,
27
- className: `${s.customSelect} ${n ?? ""}`,
28
- ...r
27
+ className: `${s.customSelect} ${r ?? ""}`,
28
+ ...l
29
29
  }
30
30
  ) });
31
31
  };