@hortiview/shared-components 0.0.11155 → 0.0.11528

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 (134) hide show
  1. package/README.md +41 -8
  2. package/dist/BigLoadingSpinner-D7H28pr5.js +16 -0
  3. package/dist/{GenericCard-B8x1DMa8.js → GenericCard-jlt8ZsHi.js} +18 -19
  4. package/dist/ListAreaService-YS_UUPh5.js +107 -0
  5. package/dist/assets/HashTabView.css +1 -1
  6. package/dist/assets/Select.css +1 -0
  7. package/dist/components/AlertBanner/AlertBanner.d.ts +0 -1
  8. package/dist/components/AlertBanner/AlertBanner.js +7 -8
  9. package/dist/components/AlertBanner/AlertBanner.test.js +11 -9
  10. package/dist/components/BaseView/BaseView.d.ts +1 -1
  11. package/dist/components/BaseView/BaseView.js +24 -25
  12. package/dist/components/BaseView/BaseView.test.js +25 -25
  13. package/dist/components/BasicHeading/BasicHeading.d.ts +1 -0
  14. package/dist/components/BasicHeading/BasicHeading.js +11 -12
  15. package/dist/components/BasicHeading/BasicHeading.test.js +3 -3
  16. package/dist/components/BlockView/BlockView.d.ts +1 -0
  17. package/dist/components/BlockView/BlockView.js +24 -25
  18. package/dist/components/BlockView/BlockView.test.js +2 -2
  19. package/dist/components/ChipCard/ChipCard.js +6 -7
  20. package/dist/components/ChipCard/ChipCard.test.js +2 -2
  21. package/dist/components/ContextMenu/ContextMenu.d.ts +3 -2
  22. package/dist/components/ContextMenu/ContextMenu.js +11 -12
  23. package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
  24. package/dist/components/DeleteModal/DeleteModal.d.ts +6 -2
  25. package/dist/components/DeleteModal/DeleteModal.js +48 -46
  26. package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
  27. package/dist/components/Disclaimer/Disclaimer.js +9 -10
  28. package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
  29. package/dist/components/EmptyView/EmptyView.d.ts +1 -0
  30. package/dist/components/EmptyView/EmptyView.js +1 -1
  31. package/dist/components/EmptyView/EmptyView.test.js +2 -2
  32. package/dist/components/Filter/Filter.d.ts +1 -0
  33. package/dist/components/Filter/Filter.js +62 -62
  34. package/dist/components/Filter/Filter.test.js +2 -2
  35. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -0
  36. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  37. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
  38. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -2
  39. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +629 -630
  40. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
  41. package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +2 -1
  42. package/dist/components/FormComponents/FormNumber/CustomTextField.js +11 -12
  43. package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +2 -1
  44. package/dist/components/FormComponents/FormNumber/FormNumber.js +1 -1
  45. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
  46. package/dist/components/FormComponents/FormRadio/FormRadio.d.ts +1 -0
  47. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  48. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
  49. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +4 -7
  50. package/dist/components/FormComponents/FormSelect/FormSelect.js +100 -110
  51. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
  52. package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -0
  53. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +5 -5
  54. package/dist/components/FormComponents/FormSlider/FormSlider.d.ts +1 -0
  55. package/dist/components/FormComponents/FormSlider/FormSlider.js +1 -1
  56. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
  57. package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
  58. package/dist/components/FormComponents/FormText/FormText.js +14 -15
  59. package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
  60. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +2 -1
  61. package/dist/components/FormComponents/FormToggle/FormToggle.js +1 -1
  62. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
  63. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +2 -1
  64. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  65. package/dist/components/GenericTable/GenericTable.d.ts +1 -0
  66. package/dist/components/GenericTable/GenericTable.js +23 -24
  67. package/dist/components/GenericTable/GenericTable.test.js +2 -2
  68. package/dist/components/GenericTable/GenericTableService.d.ts +1 -0
  69. package/dist/components/GenericTable/GenericTableService.js +41 -41
  70. package/dist/components/GenericTable/Mobile/GenericCard.d.ts +1 -1
  71. package/dist/components/GenericTable/Mobile/GenericCard.js +2 -2
  72. package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
  73. package/dist/components/GenericTable/Mobile/GenericCardList.d.ts +1 -1
  74. package/dist/components/GenericTable/Mobile/GenericCardList.js +2 -2
  75. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
  76. package/dist/components/HashTabView/HashTabView.d.ts +6 -1
  77. package/dist/components/HashTabView/HashTabView.js +53 -53
  78. package/dist/components/HashTabView/HashTabView.test.js +2 -2
  79. package/dist/components/HeaderFilter/HeaderFilter.d.ts +3 -2
  80. package/dist/components/HeaderFilter/HeaderFilter.js +12 -12
  81. package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
  82. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +7 -8
  83. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
  84. package/dist/components/Iconify/Iconify.d.ts +2 -2
  85. package/dist/components/Iconify/Iconify.js +4 -5
  86. package/dist/components/Iconify/Iconify.test.js +2 -2
  87. package/dist/components/InfoGroup/InfoGroup.d.ts +4 -3
  88. package/dist/components/InfoGroup/InfoGroup.js +4 -5
  89. package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
  90. package/dist/components/ListArea/ListArea.d.ts +1 -1
  91. package/dist/components/ListArea/ListArea.js +2 -2
  92. package/dist/components/ListArea/ListArea.test.js +5 -5
  93. package/dist/components/ListArea/ListAreaService.d.ts +9 -8
  94. package/dist/components/ListArea/ListAreaService.js +2 -2
  95. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  96. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -3
  97. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +5 -6
  98. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
  99. package/dist/components/Modal/Modal.d.ts +2 -1
  100. package/dist/components/Modal/Modal.js +5 -6
  101. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +0 -1
  102. package/dist/components/OverflowTooltip/OverflowTooltip.js +10 -11
  103. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
  104. package/dist/components/Scrollbar/Scrollbar.js +5 -6
  105. package/dist/components/Scrollbar/scrollbar.test.js +2 -2
  106. package/dist/components/SearchBar/SearchBar.js +10 -11
  107. package/dist/components/SearchBar/SearchBar.test.js +2 -2
  108. package/dist/components/Select/Select.d.ts +14 -0
  109. package/dist/components/Select/Select.js +34 -0
  110. package/dist/components/Select/Select.test.d.ts +1 -0
  111. package/dist/components/Select/Select.test.js +28 -0
  112. package/dist/components/VerticalDivider/VerticalDivider.js +4 -5
  113. package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
  114. package/dist/hooks/useBreakpoints.test.js +2 -2
  115. package/dist/hooks/useHelperText.d.ts +1 -0
  116. package/dist/{index-DzM8o582.js → index-CrcXCSzI.js} +1940 -1796
  117. package/dist/main.d.ts +2 -0
  118. package/dist/main.js +33 -31
  119. package/dist/{react-number-format.es-BD3_OvMU.js → react-number-format.es-BK1EpVXq.js} +151 -151
  120. package/dist/react-tooltip.min-Czs4RGD1.js +1400 -0
  121. package/dist/{react.esm-FR1-H8iU.js → react.esm-DNwojocF.js} +5289 -4990
  122. package/dist/services/BlockService.d.ts +1 -0
  123. package/dist/services/NumberService.d.ts +1 -0
  124. package/dist/services/UtilService.d.ts +1 -0
  125. package/dist/services/services.test.js +1 -1
  126. package/dist/types/GenericTable.d.ts +2 -2
  127. package/dist/types/HashTab.d.ts +0 -1
  128. package/dist/types/ListElement.d.ts +0 -1
  129. package/dist/types/internal/ReactRouterTypes.d.ts +0 -1
  130. package/dist/{vi.CjhMlMwf-DWv7vrn7.js → vi.CjhMlMwf-BCJNwXvu.js} +1 -1
  131. package/package.json +15 -15
  132. package/dist/BigLoadingSpinner-C3wTbTD0.js +0 -17
  133. package/dist/ListAreaService-CRX4eEUJ.js +0 -108
  134. package/dist/react-tooltip.min-c2wVkjF2.js +0 -1354
@@ -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 { TypoButton as p } from "@element-public/react-components";
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-YS_UUPh5.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,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
- import "@element/react-components";
2
+ import "@element-public/react-components";
3
3
  import "../Iconify/Iconify.js";
4
4
  import "../../enums/AvailableCustomIcons.js";
5
- import { g as s, a as i, m as a } from "../../ListAreaService-CRX4eEUJ.js";
5
+ import { g as s, a as i, m as a } from "../../ListAreaService-YS_UUPh5.js";
6
6
  export {
7
7
  s as getGroupedItems,
8
8
  i as getListedItems,
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import "@element/react-components";
3
- import { B as t } from "../../../BigLoadingSpinner-C3wTbTD0.js";
2
+ import "@element-public/react-components";
3
+ import { B as t } from "../../../BigLoadingSpinner-D7H28pr5.js";
4
4
  import "../../Iconify/Iconify.js";
5
5
  export {
6
6
  t as BigLoadingSpinner
@@ -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-D7H28pr5.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();
@@ -1,11 +1,10 @@
1
- import "../../../assets/LoadingSpinner.css";
2
1
  import { jsx as n, jsxs as u } from "react/jsx-runtime";
3
- import { CircularProgress as s, Padding as h, Group as S, TypoBody as x } from "@element/react-components";
2
+ import { CircularProgress as s, Padding as h, Group as S, TypoBody as x } from "@element-public/react-components";
4
3
  import { useState as C, useEffect as y, useMemo as v } from "react";
5
- import { B as b } from "../../../BigLoadingSpinner-C3wTbTD0.js";
6
- const A = "_loadingSpinnerContainer_1f3ss_1", B = {
4
+ import { B as b } from "../../../BigLoadingSpinner-D7H28pr5.js";
5
+ import '../../../assets/LoadingSpinner.css';const A = "_loadingSpinnerContainer_1f3ss_1", B = {
7
6
  loadingSpinnerContainer: A
8
- }, I = ({
7
+ }, k = ({
9
8
  size: r,
10
9
  center: l = !1,
11
10
  text: i,
@@ -61,5 +60,5 @@ const A = "_loadingSpinnerContainer_1f3ss_1", B = {
61
60
  );
62
61
  };
63
62
  export {
64
- I as LoadingSpinner
63
+ k as LoadingSpinner
65
64
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a, s as e, b as s } from "../../../react.esm-FR1-H8iU.js";
2
+ import { a, s as e, b as s } from "../../../react.esm-DNwojocF.js";
3
3
  import { LoadingSpinner as i } from "./LoadingSpinner.js";
4
- import { d as m, b as d, t as o, g as t, a as r } from "../../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as m, b as d, t as o, g as t, a as r } from "../../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  m("LoadingSpinner Test", () => {
6
6
  d(() => {
7
7
  r.useFakeTimers();
@@ -1,2 +1,3 @@
1
- import { ModalProps } from '@element/react-components';
1
+ import { ModalProps } from '@element-public/react-components';
2
+
2
3
  export declare const Modal: (props: ModalProps & React.HTMLProps<HTMLElement> & React.DOMAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,15 @@
1
- import "../../assets/Modal.css";
2
1
  import { jsx as o } from "react/jsx-runtime";
3
- import { Modal as l } from "@element/react-components";
4
- const m = "_modal_a4n3a_1", t = {
2
+ import { Modal as l } from "@element-public/react-components";
3
+ import '../../assets/Modal.css';const m = "_modal_a4n3a_1", d = {
5
4
  modal: m
6
- }, r = (a) => /* @__PURE__ */ o(
5
+ }, e = (a) => /* @__PURE__ */ o(
7
6
  l,
8
7
  {
9
8
  ...a,
10
9
  "data-testid": "modal",
11
- className: `${a.className ?? ""} ${a.modalSize === "fullscreen" ? t.modal : ""}`
10
+ className: `${a.className ?? ""} ${a.modalSize === "fullscreen" ? d.modal : ""}`
12
11
  }
13
12
  );
14
13
  export {
15
- r as Modal
14
+ e as Modal
16
15
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type OverflowTooltipProps = {
3
2
  /**
4
3
  * the id of the tooltip
@@ -1,25 +1,24 @@
1
- import "../../assets/OverflowTooltip.css";
2
1
  import { jsxs as m, Fragment as a, jsx as s } from "react/jsx-runtime";
3
- import { TypoBody as p } from "@element/react-components";
2
+ import { TypoBody as p } from "@element-public/react-components";
4
3
  import { useState as h, useMemo as d, cloneElement as f } from "react";
5
- import { H as w } from "../../react-tooltip.min-c2wVkjF2.js";
4
+ import { M as w } from "../../react-tooltip.min-Czs4RGD1.js";
6
5
  import { hasChildWithGreaterWidth as W } from "./OverflowTooltipService.js";
7
- const u = "_truncate_wgwcv_1", v = {
6
+ import '../../assets/OverflowTooltip.css';const u = "_truncate_wgwcv_1", v = {
8
7
  truncate: u
9
- }, H = ({ id: o, text: i, children: e }) => {
10
- const [l, r] = h(!1), n = d(
8
+ }, E = ({ id: o, text: l, children: e }) => {
9
+ const [i, n] = h(!1), r = d(
11
10
  () => f(e, {
12
11
  "data-tooltip-id": o,
13
12
  onMouseEnter: ({ currentTarget: t }) => {
14
13
  const c = t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight || W(t, t.parentElement?.clientWidth);
15
- r(c);
14
+ n(c);
16
15
  },
17
16
  className: `${v.truncate} ${e.props.className}`
18
17
  }),
19
18
  [e, o]
20
19
  );
21
20
  return /* @__PURE__ */ m(a, { children: [
22
- n,
21
+ r,
23
22
  /* @__PURE__ */ s(
24
23
  w,
25
24
  {
@@ -27,17 +26,17 @@ const u = "_truncate_wgwcv_1", v = {
27
26
  noArrow: !0,
28
27
  place: "bottom",
29
28
  clickable: !0,
30
- hidden: !l,
29
+ hidden: !i,
31
30
  style: {
32
31
  whiteSpace: "normal",
33
32
  maxWidth: "90%",
34
33
  wordBreak: "break-word"
35
34
  },
36
- children: /* @__PURE__ */ s(p, { level: 2, children: i })
35
+ children: /* @__PURE__ */ s(p, { level: 2, children: l })
37
36
  }
38
37
  )
39
38
  ] });
40
39
  };
41
40
  export {
42
- H as OverflowTooltip
41
+ E as OverflowTooltip
43
42
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { TypoDisplay as n } from "@element/react-components";
3
- import { a as i, s as e, w as s } from "../../react.esm-FR1-H8iU.js";
4
- import { u as a } from "../../index-DzM8o582.js";
2
+ import { TypoDisplay as n } from "@element-public/react-components";
3
+ import { a as i, s as e, w as s } from "../../react.esm-DNwojocF.js";
4
+ import { u as a } from "../../index-CrcXCSzI.js";
5
5
  import { OverflowTooltip as c } from "./OverflowTooltip.js";
6
- import { d as u, t as p, g as r } from "../../vi.CjhMlMwf-DWv7vrn7.js";
6
+ import { d as u, t as p, g as r } from "../../vi.CjhMlMwf-BCJNwXvu.js";
7
7
  u("OverflowTooltip Test", () => {
8
8
  p("should render OverflowTooltip on hover", async () => {
9
9
  Object.defineProperty(HTMLElement.prototype, "clientWidth", {
@@ -1,9 +1,8 @@
1
- import "../../assets/Scrollbar.css";
2
- const l = "_scrollbarY_1m6g8_1", o = "_scrollbarX_1m6g8_5", r = {
3
- scrollbarY: l,
1
+ import '../../assets/Scrollbar.css';const r = "_scrollbarY_1m6g8_1", o = "_scrollbarX_1m6g8_5", l = {
2
+ scrollbarY: r,
4
3
  scrollbarX: o
5
- }, s = r.scrollbarY, a = r.scrollbarX;
4
+ }, c = l.scrollbarY, s = l.scrollbarX;
6
5
  export {
7
- a as ScrollbarX,
8
- s as ScrollbarY
6
+ s as ScrollbarX,
7
+ c as ScrollbarY
9
8
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { a, s as e } from "../../react.esm-FR1-H8iU.js";
2
+ import { a, s as e } from "../../react.esm-DNwojocF.js";
3
3
  import { ScrollbarY as d, ScrollbarX as l } from "./Scrollbar.js";
4
- import { d as c, t, g as o } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as c, t, g as o } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  c("Scrollbar", () => {
6
6
  t("should render Y correctly", () => {
7
7
  a(/* @__PURE__ */ s("div", { "data-testid": "div", className: d }));
@@ -1,27 +1,26 @@
1
- import "../../assets/SearchBar.css";
2
1
  import { jsx as r } from "react/jsx-runtime";
3
- import { Textfield as i, IconButton as s } from "@element/react-components";
4
- const l = "_searchbar_gnvwc_1", u = {
2
+ import { Textfield as s, IconButton as i } from "@element-public/react-components";
3
+ import '../../assets/SearchBar.css';const l = "_searchbar_gnvwc_1", u = {
5
4
  searchbar: l
6
5
  }, b = ({
7
- className: n = "",
8
- dense: e = !1,
6
+ className: o = "",
7
+ dense: n = !1,
9
8
  searchTerm: a,
10
9
  setSearchTerm: t,
11
- placeholder: o
10
+ placeholder: e
12
11
  }) => /* @__PURE__ */ r(
13
- i,
12
+ s,
14
13
  {
15
14
  "data-testid": "search-bar-input",
16
- className: `${n ?? ""} ${u.searchbar}`,
17
- dense: e,
15
+ className: `${o ?? ""} ${u.searchbar}`,
16
+ dense: n,
18
17
  variant: "outlined",
19
- placeholder: o,
18
+ placeholder: e,
20
19
  value: a,
21
20
  onChange: (c) => t(c.target.value),
22
21
  fullWidth: !0,
23
22
  trailingIcon: /* @__PURE__ */ r(
24
- s,
23
+ i,
25
24
  {
26
25
  icon: a ? "close" : "search",
27
26
  onClick: () => a ? t("") : void 0
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { a as r, s as t, f as h, b as l } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as r, s as t, f as h, b as l } from "../../react.esm-DNwojocF.js";
3
3
  import { SearchBar as s } from "./SearchBar.js";
4
- import { d as m, t as o, v as n, g as e } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as m, t as o, v as n, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  m("SearchBar Test", () => {
6
6
  o("renders SearchBar component", () => {
7
7
  r(
@@ -0,0 +1,14 @@
1
+ import { SelectProps } from '@element-public/react-components';
2
+
3
+ export type ExtendedSelectProps = SelectProps & {
4
+ 'data-testid'?: string;
5
+ /** Custom class name for the portal. Only works if portalContainer is not set. */
6
+ portalClassName?: string;
7
+ };
8
+ /**
9
+ * Provides the normal element select with some presets and the possibility to pass a custom portal class name
10
+ * @param menuMaxHeight Default: 15rem
11
+ * @param portalClassName Custom class name for the portal. Only works if portalContainer is not set.
12
+ * @param props Element Select props
13
+ */
14
+ export declare const Select: ({ menuMaxHeight, portalClassName, className, hoisted, ...props }: ExtendedSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { jsx as m, Fragment as u } from "react/jsx-runtime";
2
+ import { Select as d } from "@element-public/react-components";
3
+ import { useEffect as a } from "react";
4
+ import '../../assets/Select.css';const i = "_customPortal_8wq49_1", f = "_customSelect_8wq49_7", s = {
5
+ customPortal: i,
6
+ customSelect: f
7
+ }, _ = ({
8
+ menuMaxHeight: l = "15rem",
9
+ portalClassName: e,
10
+ className: n,
11
+ hoisted: c,
12
+ ...r
13
+ }) => {
14
+ const t = `custom-portal-${e ?? "default"}`;
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);
19
+ }
20
+ }, [c, t, e]), /* @__PURE__ */ m(u, { children: /* @__PURE__ */ m(
21
+ d,
22
+ {
23
+ "data-testid": "custom-select",
24
+ menuMaxHeight: l,
25
+ hoisted: c,
26
+ portalContainer: document.getElementById(t) ? `#${t}` : void 0,
27
+ className: `${s.customSelect} ${n ?? ""}`,
28
+ ...r
29
+ }
30
+ ) });
31
+ };
32
+ export {
33
+ _ as Select
34
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,28 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { a, s as c } from "../../react.esm-DNwojocF.js";
3
+ import { Select as n } from "./Select.js";
4
+ import { d as l, t as m, g as e } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
+ l("Select", () => {
6
+ const o = [
7
+ { value: "1", text: "Option 1" },
8
+ { value: "2", text: "Option 2" },
9
+ { value: "3", text: "Option 3" }
10
+ ];
11
+ m("render select without portal when not hoisted and with default data-testid", () => {
12
+ a(/* @__PURE__ */ s(n, { options: o })), e(c.getByTestId("custom-select")).toBeInTheDocument();
13
+ const t = c.queryByTestId("custom-portal");
14
+ e(t).not.toBeInTheDocument();
15
+ }), m("render select with custom data-testid", () => {
16
+ a(/* @__PURE__ */ s(n, { options: o, "data-testid": "custom-test-id" })), e(c.getByTestId("custom-test-id")).toBeInTheDocument();
17
+ const t = c.queryByTestId("custom-select");
18
+ e(t).not.toBeInTheDocument();
19
+ }), m("render select with default portal class name", () => {
20
+ a(/* @__PURE__ */ s(n, { hoisted: !0, options: o }));
21
+ const t = document.getElementById("custom-portal-default");
22
+ e(t).toBeInTheDocument();
23
+ }), m("render select with custom portal class name", () => {
24
+ a(/* @__PURE__ */ s(n, { hoisted: !0, options: o, portalClassName: "test-custom-portal-class-name" }));
25
+ const t = document.getElementById("custom-portal-test-custom-portal-class-name");
26
+ e(t).toBeInTheDocument();
27
+ });
28
+ });
@@ -1,8 +1,7 @@
1
- import "../../assets/VerticalDivider.css";
2
- import { jsx as e } from "react/jsx-runtime";
3
- const d = "_divider_opvom_1", t = {
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import '../../assets/VerticalDivider.css';const d = "_divider_opvom_1", s = {
4
3
  divider: d
5
- }, v = ({ height: i = "2rem", className: r = "" }) => /* @__PURE__ */ e("div", { className: `${t.divider} ${r}`, style: { height: i } });
4
+ }, o = ({ height: i = "2rem", className: e = "" }) => /* @__PURE__ */ r("div", { className: `${s.divider} ${e}`, style: { height: i } });
6
5
  export {
7
- v as VerticalDivider
6
+ o as VerticalDivider
8
7
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { a as r } from "../../react.esm-FR1-H8iU.js";
2
+ import { a as r } from "../../react.esm-DNwojocF.js";
3
3
  import { VerticalDivider as s } from "./VerticalDivider.js";
4
- import { d as o, t as l, g as i } from "../../vi.CjhMlMwf-DWv7vrn7.js";
4
+ import { d as o, t as l, g as i } from "../../vi.CjhMlMwf-BCJNwXvu.js";
5
5
  o("VerticalDivider Test", () => {
6
6
  l("it should render with basic styling", () => {
7
7
  r(/* @__PURE__ */ e(s, {}));
@@ -1,6 +1,6 @@
1
- import { r as t, w as s } from "../react.esm-FR1-H8iU.js";
1
+ import { r as t, w as s } from "../react.esm-DNwojocF.js";
2
2
  import { u as o } from "../useBreakpoints-MzTZ0tCT.js";
3
- import { d as a, t as i, g as r } from "../vi.CjhMlMwf-DWv7vrn7.js";
3
+ import { d as a, t as i, g as r } from "../vi.CjhMlMwf-BCJNwXvu.js";
4
4
  a("useBreakpoint Test", () => {
5
5
  i("returns object", () => {
6
6
  const { result: e } = t(() => o());
@@ -1,4 +1,5 @@
1
1
  import { FieldValues, Path } from 'react-hook-form';
2
+
2
3
  type HelperTextProps<T> = {
3
4
  propertyName: Path<T>;
4
5
  helperText: string | null;