@hortiview/shared-components 0.0.6504 → 0.0.6849

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 (55) hide show
  1. package/dist/ListAreaService-DDlsV9UD.js +100 -0
  2. package/dist/assets/BaseView.css +1 -1
  3. package/dist/assets/HashTabView.css +1 -1
  4. package/dist/assets/ListAreaService.css +1 -1
  5. package/dist/components/AlertBanner/AlertBanner.js +19 -11
  6. package/dist/components/AlertBanner/AlertBanner.test.js +17 -23
  7. package/dist/components/BaseView/BaseView.d.ts +1 -1
  8. package/dist/components/BaseView/BaseView.js +57 -55
  9. package/dist/components/BaseView/BaseView.test.js +19 -25
  10. package/dist/components/BasicHeading/BasicHeading.js +52 -45
  11. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  12. package/dist/components/BlockView/BlockView.test.js +7 -7
  13. package/dist/components/ContextMenu/ContextMenu.test.js +6 -6
  14. package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
  15. package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
  16. package/dist/components/EmptyView/EmptyView.test.js +1 -1
  17. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
  18. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +5 -5
  19. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +8 -8
  20. package/dist/components/FormComponents/FormSelect/FormSelect.js +90 -1465
  21. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +70 -3027
  22. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +1 -1
  23. package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
  24. package/dist/components/GenericTable/GenericTable.test.js +1 -1
  25. package/dist/components/HashTabView/HashTabView.js +33 -33
  26. package/dist/components/HashTabView/HashTabView.test.js +1 -1
  27. package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
  28. package/dist/components/Iconify/Iconify.test.js +1 -1
  29. package/dist/components/InfoGroup/InfoGroup.js +4 -4
  30. package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
  31. package/dist/components/ListArea/ListArea.js +1 -1
  32. package/dist/components/ListArea/ListArea.test.js +2 -2
  33. package/dist/components/ListArea/ListAreaService.d.ts +2 -2
  34. package/dist/components/ListArea/ListAreaService.js +1 -1
  35. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +7 -7
  36. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
  37. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +30 -0
  38. package/dist/components/OverflowTooltip/OverflowTooltip.js +22 -0
  39. package/dist/components/OverflowTooltip/OverflowTooltip.test.d.ts +1 -0
  40. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +37 -0
  41. package/dist/components/Scrollbar/scrollbar.test.js +8 -8
  42. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  43. package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
  44. package/dist/hooks/useBreakpoint.d.ts +16 -11
  45. package/dist/hooks/useBreakpoint.js +2 -3
  46. package/dist/hooks/useBreakpoints.test.d.ts +1 -0
  47. package/dist/hooks/useBreakpoints.test.js +11 -0
  48. package/dist/index-DP2ENnrX.js +2963 -0
  49. package/dist/main.js +7 -7
  50. package/dist/react-tooltip.min-BzHiZW8k.js +1380 -0
  51. package/dist/{react.esm-BBemCHUU.js → react.esm-DoZanrUz.js} +1223 -1190
  52. package/dist/useBreakpoint-2MH8ICuE.js +28 -0
  53. package/package.json +1 -1
  54. package/dist/ListAreaService-BoNnFzrZ.js +0 -82
  55. package/dist/useBreakpoint-DROHPVxO.js +0 -35
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { r as a, s as n } from "../../../react.esm-BBemCHUU.js";
2
+ import { a, s as n } from "../../../react.esm-DoZanrUz.js";
3
3
  import { FormSlider as l } from "./FormSlider.js";
4
4
  import { v as e, d as m, t as i, g as r } from "../../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  const o = e.fn();
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { r as s, s as r, f as d } from "../../../react.esm-BBemCHUU.js";
2
+ import { a as s, s as r, f as d } from "../../../react.esm-DoZanrUz.js";
3
3
  import { FormText as o } from "./FormText.js";
4
4
  import { v as a, d as i, t as l, g as e } from "../../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  const m = a.fn();
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
- import { r as i, s as e } from "../../react.esm-BBemCHUU.js";
2
+ import { a as i, s as e } from "../../react.esm-DoZanrUz.js";
3
3
  import { GenericTable as c } from "./GenericTable.js";
4
4
  import { d as B, t as d, g as t, v as r } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  B("GenericTable Test", () => {
@@ -1,55 +1,55 @@
1
1
  import "../../assets/HashTabView.css";
2
- import { jsx as a, jsxs as d, Fragment as w } from "react/jsx-runtime";
3
- import { Elevation as T, Group as i, TabBar as C, Tab as k, Padding as A } from "@element/react-components";
4
- import { useState as I, useEffect as L } from "react";
5
- import { a as N } from "../../useBreakpoint-DROHPVxO.js";
6
- const x = "_elevation_1rcw6_1", y = "_themeBackground_1rcw6_6", W = "_tabBar_1rcw6_10", $ = "_tabWrapper_1rcw6_16", j = "_tabButton_1rcw6_20", E = "_childContainer_1rcw6_24", z = "_childContainerLg_1rcw6_28", t = {
7
- elevation: x,
8
- themeBackground: y,
9
- tabBar: W,
10
- tabWrapper: $,
2
+ import { jsx as a, jsxs as d, Fragment as T } from "react/jsx-runtime";
3
+ import { Elevation as C, Group as i, TabBar as k, Tab as A, Padding as I } from "@element/react-components";
4
+ import { useState as N, useEffect as P } from "react";
5
+ import { u as x } from "../../useBreakpoint-2MH8ICuE.js";
6
+ const y = "_elevation_16c7u_1", W = "_themeBackground_16c7u_6", $ = "_tabBar_16c7u_10", w = "_tabWrapper_16c7u_16", j = "_tabButton_16c7u_20", E = "_childContainer_16c7u_24", z = "_childContainerPhone_16c7u_28", t = {
7
+ elevation: y,
8
+ themeBackground: W,
9
+ tabBar: $,
10
+ tabWrapper: w,
11
11
  tabButton: j,
12
12
  childContainer: E,
13
- childContainerLg: z
14
- }, p = (n, r) => !r || !n ? 0 : n.findIndex((c) => c.hash === r.replace("#", "")) ?? 0, q = ({
13
+ childContainerPhone: z
14
+ }, p = (n, r) => !r || !n ? 0 : n.findIndex((o) => o.hash === r.replace("#", "")) ?? 0, q = ({
15
15
  tabs: n,
16
16
  hasHash: r = !0,
17
- hash: c = "",
18
- clusterAlign: _ = "start",
19
- hasClusteredTabs: u,
17
+ hash: o = "",
18
+ clusterAlign: m = "start",
19
+ hasClusteredTabs: _,
20
20
  children: s,
21
21
  verticalGap: g = "none",
22
22
  elevation: B = 0,
23
23
  backgroundColor: v = "themeBackground",
24
24
  onChange: b
25
25
  }) => {
26
- const [h, m] = I(p(n, c)), { isLg: l } = N();
27
- L(() => {
28
- const e = p(n, c);
29
- m(e);
30
- }, [c, n, r]);
26
+ const [u, h] = N(p(n, o)), { isDesktop: l } = x();
27
+ P(() => {
28
+ const e = p(n, o);
29
+ h(e);
30
+ }, [o, n, r]);
31
31
  const f = (e) => {
32
- const o = n[e].hash;
33
- o != null && r && (window.location.hash = o), m(e), b?.(e);
32
+ const c = n[e].hash;
33
+ c != null && r && (window.location.hash = c), h(e), b?.(e);
34
34
  };
35
35
  return /* @__PURE__ */ a(
36
- T,
36
+ C,
37
37
  {
38
38
  elevation: B,
39
39
  className: `${t.elevation} ${v === "none" ? "" : t.themeBackground}`,
40
40
  children: /* @__PURE__ */ d(i, { direction: "vertical", gap: g, secondaryAlign: "stretch", children: [
41
41
  /* @__PURE__ */ d(i, { direction: l ? "horizontal" : "vertical", className: t.tabWrapper, children: [
42
42
  /* @__PURE__ */ a(
43
- C,
43
+ k,
44
44
  {
45
45
  className: t.tabBar,
46
- clustered: l ? u : !1,
47
- clusterAlign: _,
46
+ clustered: l ? _ : !1,
47
+ clusterAlign: m,
48
48
  variant: "surface",
49
- activeTabIndex: h,
49
+ activeTabIndex: u,
50
50
  onTabActivated: f,
51
- children: n.map((e, o) => /* @__PURE__ */ a(
52
- k,
51
+ children: n.map((e, c) => /* @__PURE__ */ a(
52
+ A,
53
53
  {
54
54
  icon: e.leadingIcon,
55
55
  className: s ? t.tabButton : "",
@@ -58,20 +58,20 @@ const x = "_elevation_1rcw6_1", y = "_themeBackground_1rcw6_6", W = "_tabBar_1rc
58
58
  e.trailingIcon
59
59
  ] })
60
60
  },
61
- `${o}_${e.hash}`
61
+ `${c}_${e.hash}`
62
62
  ))
63
63
  }
64
64
  ),
65
65
  s ? /* @__PURE__ */ a(
66
- A,
66
+ I,
67
67
  {
68
68
  variant: "dense",
69
- className: l ? t.childContainer : t.childContainerLg,
69
+ className: l ? t.childContainer : t.childContainerPhone,
70
70
  children: /* @__PURE__ */ a(i, { gap: "dense", primaryAlign: "center", secondaryAlign: "center", children: s })
71
71
  }
72
- ) : /* @__PURE__ */ a(w, {})
72
+ ) : /* @__PURE__ */ a(T, {})
73
73
  ] }),
74
- n[h]?.component
74
+ n[u]?.component
75
75
  ] })
76
76
  }
77
77
  );
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, Fragment as o } from "react/jsx-runtime";
2
- import { r as a, s as e, f as r } from "../../react.esm-BBemCHUU.js";
2
+ import { a, s as e, f as r } from "../../react.esm-DoZanrUz.js";
3
3
  import { HashTabView as c } from "./HashTabView.js";
4
4
  import { d as h, t as l, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  const m = [
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { r as i, s as t, f as T } from "../../react.esm-BBemCHUU.js";
2
+ import { a as i, s as t, f as T } from "../../react.esm-DoZanrUz.js";
3
3
  import { HeaderFilter as s } from "./HeaderFilter.js";
4
4
  import { d as c, t as o, v as l, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  c("HeaderFilter-Test", () => {
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { Iconify as c } from "./Iconify.js";
3
3
  import { AvailableCustomIcons as l } from "../../enums/AvailableCustomIcons.js";
4
- import { r, w as s, s as i } from "../../react.esm-BBemCHUU.js";
4
+ import { a as r, w as s, s as i } from "../../react.esm-DoZanrUz.js";
5
5
  import { d as f, t as a, g as o } from "../../vi.JYQecGiw-BbUbJcT8.js";
6
6
  f("Iconify Test", async () => {
7
7
  const m = Object.keys(l).filter((e) => isNaN(Number(e)));
@@ -1,8 +1,8 @@
1
1
  import "../../assets/InfoGroup.css";
2
2
  import { jsxs as c, jsx as e, Fragment as _ } from "react/jsx-runtime";
3
3
  import { Divider as d, Group as s, TypoCaption as v, TypoSubtitle as h } from "@element/react-components";
4
- import { a as g } from "../../useBreakpoint-DROHPVxO.js";
5
4
  import { Fragment as p } from "react";
5
+ import { u as g } from "../../useBreakpoint-2MH8ICuE.js";
6
6
  import { VerticalDivider as b } from "../VerticalDivider/VerticalDivider.js";
7
7
  const f = "_container_egebs_1", C = "_dividerContainer_egebs_10", y = "_mainGroup_egebs_16", w = "_row_egebs_21", G = "_valueText_egebs_46", N = "_component_egebs_54", x = "_componentContainer_egebs_87", A = "_field_egebs_95", r = {
8
8
  container: f,
@@ -13,14 +13,14 @@ const f = "_container_egebs_1", C = "_dividerContainer_egebs_10", y = "_mainGrou
13
13
  component: N,
14
14
  componentContainer: x,
15
15
  field: A
16
- }, S = ({ fields: n, bold: i }) => {
16
+ }, I = ({ fields: n, bold: i }) => {
17
17
  const t = n.length > 1 && Array.isArray(n.at(0)) ? n.map((o, a) => /* @__PURE__ */ c(p, { children: [
18
18
  a != 0 && /* @__PURE__ */ e("div", { "data-testid": "test-divider", className: r.dividerContainer, children: /* @__PURE__ */ e(d, {}) }),
19
19
  /* @__PURE__ */ e(m, { fields: o, bold: i })
20
20
  ] }, `row_${a}`)) : /* @__PURE__ */ e(m, { fields: n, bold: i });
21
21
  return /* @__PURE__ */ e(s, { direction: "vertical", fullWidth: !0, className: r.mainGroup, children: t });
22
22
  }, m = ({ fields: n, bold: i }) => {
23
- const { isLg: l } = g();
23
+ const { isDesktop: l } = g();
24
24
  return /* @__PURE__ */ e(
25
25
  s,
26
26
  {
@@ -72,5 +72,5 @@ const f = "_container_egebs_1", C = "_dividerContainer_egebs_10", y = "_mainGrou
72
72
  };
73
73
  export {
74
74
  T as Cell,
75
- S as InfoGroup
75
+ I as InfoGroup
76
76
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { r as l, s as t } from "../../react.esm-BBemCHUU.js";
2
+ import { a as l, s as t } from "../../react.esm-DoZanrUz.js";
3
3
  import { InfoGroup as r } from "./InfoGroup.js";
4
4
  import { d as s, t as i, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  s("InfoGroup Test", () => {
@@ -4,7 +4,7 @@ import { g as Hr } from "../../_commonjsHelpers-CT_km90n.js";
4
4
  import { _ as H, a as Tr, b as wr, c as w, d as Nr, e as Wr, f as h, h as N, j as B, k as Xr, l as zr, m as I, n as Yr, o as Zr, p as Jr, q as W, r as Qr, s as Or, t as Pr, u as kr, v as Vr } from "../../get-BRDhkfK0.js";
5
5
  import { useState as re, useMemo as k } from "react";
6
6
  import { SearchBar as ee } from "../SearchBar/SearchBar.js";
7
- import { g as ae, a as te, s as T } from "../../ListAreaService-BoNnFzrZ.js";
7
+ import { g as ae, a as te, s as T } from "../../ListAreaService-DDlsV9UD.js";
8
8
  var ne = H;
9
9
  function se() {
10
10
  this.__data__ = new ne(), this.size = 0;
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, Fragment as i } from "react/jsx-runtime";
2
2
  import { TypoButton as p } from "@element/react-components";
3
- import { r as s, s as a, f as u } from "../../react.esm-BBemCHUU.js";
3
+ import { a as s, s as a, f as u } from "../../react.esm-DoZanrUz.js";
4
4
  import { ListArea as c } from "./ListArea.js";
5
- import { g as h } from "../../ListAreaService-BoNnFzrZ.js";
5
+ import { g as h } from "../../ListAreaService-DDlsV9UD.js";
6
6
  import { d as m, t as n, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
7
7
  m("ListArea Test", () => {
8
8
  const o = [
@@ -26,7 +26,7 @@ export declare const getListedItems: (items: ListElement[], pathname: string, it
26
26
  select: boolean;
27
27
  primaryText: string;
28
28
  secondaryText: import("react/jsx-runtime").JSX.Element;
29
- overlineText: string | undefined;
29
+ overlineText: import("react/jsx-runtime").JSX.Element;
30
30
  trailingBlock: string | number | boolean | JSX.Element | Iterable<import("react").ReactNode>;
31
31
  leadingBlock: string | JSX.Element | undefined;
32
32
  value: string | undefined;
@@ -55,7 +55,7 @@ export declare const mapListElement: (element: ListElement, pathname: string | u
55
55
  select: boolean;
56
56
  primaryText: string;
57
57
  secondaryText: import("react/jsx-runtime").JSX.Element;
58
- overlineText: string | undefined;
58
+ overlineText: import("react/jsx-runtime").JSX.Element;
59
59
  trailingBlock: string | number | boolean | JSX.Element | Iterable<import("react").ReactNode>;
60
60
  leadingBlock: string | JSX.Element | undefined;
61
61
  value: string | undefined;
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "@element/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-BoNnFzrZ.js";
5
+ import { g as s, a as i, m as a } from "../../ListAreaService-DDlsV9UD.js";
6
6
  export {
7
7
  s as getGroupedItems,
8
8
  i as getListedItems,
@@ -1,15 +1,15 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { s as r, B as n } from "../../../BigLoadingSpinner-Df2k3xOD.js";
3
- import { r as i, s as e } from "../../../react.esm-BBemCHUU.js";
4
- import { d as g, t as s, g as t } from "../../../vi.JYQecGiw-BbUbJcT8.js";
3
+ import { a as i, s as e } from "../../../react.esm-DoZanrUz.js";
4
+ import { d as g, t as a, g as t } from "../../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  g("BigLoadingSpinner Test", () => {
6
- s("render BigLoadingSpinner with custom loading text", () => {
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();
8
- }), s("renders BigLoadingSpinner with default loading text", () => {
8
+ }), a("renders BigLoadingSpinner with default loading text", () => {
9
9
  i(/* @__PURE__ */ o(n, { text: "loadingtext" })), t(e.getByText("loadingtext")).toBeInTheDocument();
10
- }), s('Icon component contains className attribute "logo"', () => {
10
+ }), a('Icon component contains className attribute "logo"', () => {
11
11
  i(/* @__PURE__ */ o(n, {}));
12
- const a = e.getByTestId("logo-icon");
13
- t(a).toHaveClass(r.logo);
12
+ const s = e.getByTestId("logo-icon");
13
+ t(s).toHaveClass(r.logo);
14
14
  });
15
15
  });
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { r as o, s as e } from "../../../react.esm-BBemCHUU.js";
2
+ import { a as o, s as e } from "../../../react.esm-DoZanrUz.js";
3
3
  import { LoadingSpinner as r } from "./LoadingSpinner.js";
4
4
  import { d as a, t as i, g as n } from "../../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  a("LoadingSpinner Test", () => {
@@ -0,0 +1,30 @@
1
+ /// <reference types="react" />
2
+ type OverflowTooltipProps = {
3
+ /**
4
+ * the id of the tooltip
5
+ */
6
+ id: string;
7
+ /**
8
+ * the full text to be displayed
9
+ */
10
+ text: string;
11
+ /**
12
+ * the children that will have the tooltip
13
+ */
14
+ children: JSX.Element;
15
+ };
16
+ /**
17
+ * A component that displays a tooltip when the text is overflowing.
18
+ * It can be wrapped around Element's Typography components (e.g. TypoDisplay).
19
+ * It clones the child element and adds the tooltip functionality.
20
+ *
21
+ * Hint: It was not written as a component that directly takes the Typography string as child,
22
+ * because then the OverflowTooltip would be nested within the Typography component and thus inherit the Typography styles.
23
+ * Furthermore, OverflowTooltip does not work on hovering ListArea items.
24
+ *
25
+ * @param id - the id of the tooltip
26
+ * @param text - the full text to be displayed
27
+ * @param children - the children that will have the tooltip
28
+ */
29
+ export declare const OverflowTooltip: ({ id, text, children }: OverflowTooltipProps) => import("react/jsx-runtime").JSX.Element;
30
+ export {};
@@ -0,0 +1,22 @@
1
+ import { jsxs as m, Fragment as p, jsx as c } from "react/jsx-runtime";
2
+ import { useState as h, useMemo as f, cloneElement as d } from "react";
3
+ import { H as x } from "../../react-tooltip.min-BzHiZW8k.js";
4
+ const a = ({ id: t, text: e, children: i }) => {
5
+ const [l, s] = h(""), n = f(
6
+ () => d(i, {
7
+ "data-tooltip-id": t,
8
+ onMouseEnter: ({ currentTarget: o }) => {
9
+ const r = o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight;
10
+ s(r ? e : "");
11
+ }
12
+ }),
13
+ [i, t, e]
14
+ );
15
+ return /* @__PURE__ */ m(p, { children: [
16
+ n,
17
+ /* @__PURE__ */ c(x, { id: t, noArrow: !0, place: "bottom", children: l })
18
+ ] });
19
+ };
20
+ export {
21
+ a as OverflowTooltip
22
+ };
@@ -0,0 +1,37 @@
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-DoZanrUz.js";
4
+ import { u as a } from "../../index-DP2ENnrX.js";
5
+ import { OverflowTooltip as c } from "./OverflowTooltip.js";
6
+ import { d as u, t as p, g as r } from "../../vi.JYQecGiw-BbUbJcT8.js";
7
+ u("OverflowTooltip Test", () => {
8
+ p("should render OverflowTooltip on hover", async () => {
9
+ Object.defineProperty(HTMLElement.prototype, "clientWidth", {
10
+ configurable: !0,
11
+ value: 100
12
+ }), Object.defineProperty(HTMLElement.prototype, "scrollWidth", {
13
+ configurable: !0,
14
+ value: 200
15
+ });
16
+ const l = a.setup(), o = "Block name that should be truncated with an ellipsis because it is very very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong";
17
+ i(
18
+ /* @__PURE__ */ t(c, { id: o, text: o, children: /* @__PURE__ */ t(n, { children: o }) })
19
+ ), r(e.getByText(o)).toBeInTheDocument(), l.hover(e.getByText(o)), await s(() => {
20
+ r(e.getByRole("tooltip")).toBeInTheDocument();
21
+ });
22
+ }), p("should not render OverflowTooltip on hover", async () => {
23
+ Object.defineProperty(HTMLElement.prototype, "clientWidth", {
24
+ configurable: !0,
25
+ value: 200
26
+ }), Object.defineProperty(HTMLElement.prototype, "scrollWidth", {
27
+ configurable: !0,
28
+ value: 200
29
+ });
30
+ const l = a.setup(), o = "Block name that should be truncated with an ellipsis because it is very very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong";
31
+ i(
32
+ /* @__PURE__ */ t(c, { id: o, text: o, children: /* @__PURE__ */ t(n, { children: o }) })
33
+ ), r(e.getByText(o)).toBeInTheDocument(), l.hover(e.getByText(o)), await s(() => {
34
+ r(e.queryByRole("tooltip")).not.toBeInTheDocument();
35
+ });
36
+ });
37
+ });
@@ -1,15 +1,15 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { r as e, s as t } from "../../react.esm-BBemCHUU.js";
2
+ import { a, s as e } from "../../react.esm-DoZanrUz.js";
3
3
  import { ScrollbarY as d, ScrollbarX as l } from "./Scrollbar.js";
4
- import { d as c, t as a, g as o } from "../../vi.JYQecGiw-BbUbJcT8.js";
4
+ import { d as c, t, g as o } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  c("Scrollbar", () => {
6
- a("should render Y correctly", () => {
7
- e(/* @__PURE__ */ s("div", { "data-testid": "div", className: d }));
8
- const r = t.getByTestId("div");
6
+ t("should render Y correctly", () => {
7
+ a(/* @__PURE__ */ s("div", { "data-testid": "div", className: d }));
8
+ const r = e.getByTestId("div");
9
9
  o(r).toHaveClass(/scrollbarY/);
10
- }), a("should render X correctly", () => {
11
- e(/* @__PURE__ */ s("div", { "data-testid": "div", className: l }));
12
- const r = t.getByTestId("div");
10
+ }), t("should render X correctly", () => {
11
+ a(/* @__PURE__ */ s("div", { "data-testid": "div", className: l }));
12
+ const r = e.getByTestId("div");
13
13
  o(r).toHaveClass(/scrollbarX/);
14
14
  });
15
15
  });
@@ -1,5 +1,5 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { r, s as t, f as h, a as l } from "../../react.esm-BBemCHUU.js";
2
+ import { a as r, s as t, f as h, b as l } from "../../react.esm-DoZanrUz.js";
3
3
  import { SearchBar as s } from "./SearchBar.js";
4
4
  import { d as m, t as o, v as n, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  m("SearchBar Test", () => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { r } from "../../react.esm-BBemCHUU.js";
2
+ import { a as r } from "../../react.esm-DoZanrUz.js";
3
3
  import { VerticalDivider as s } from "./VerticalDivider.js";
4
4
  import { d as o, t as l, g as i } from "../../vi.JYQecGiw-BbUbJcT8.js";
5
5
  o("VerticalDivider Test", () => {
@@ -1,15 +1,20 @@
1
1
  /**
2
- * Custom hook that tells you whether a given media query is active.
2
+ * Hook that returns the current breakpoint. It uses the following breakpoints:
3
+ * - xs: 0-599px
4
+ * - sm: 600-719px
5
+ * - md: 720-839px
6
+ * - lg: 840-1023px
7
+ * - xl: 1024-1439px
8
+ * - xxl: 1440px and up
3
9
  *
4
- * Inspired by https://usehooks.com/useMedia/
5
- * https://gist.github.com/gragland/ed8cac563f5df71d78f4a1fefa8c5633
10
+ * They are combined as follows:
11
+ * - isMobile: xs
12
+ * - isTablet: sm, md
13
+ * - isDesktop: lg, xl, xxl
14
+ * @returns {Object} An object with the current breakpoint
6
15
  */
7
- export declare function useMediaQuery(query: string): boolean;
8
- export declare function useBreakpoints(): {
9
- isXs: boolean;
10
- isSm: boolean;
11
- isMd: boolean;
12
- isLg: boolean;
13
- isXlg: boolean;
14
- active: string;
16
+ export declare const useBreakpoints: () => {
17
+ isMobile: boolean;
18
+ isTablet: boolean;
19
+ isDesktop: boolean;
15
20
  };
@@ -1,6 +1,5 @@
1
1
  import "react";
2
- import { a as s, b as o } from "../useBreakpoint-DROHPVxO.js";
2
+ import { u as p } from "../useBreakpoint-2MH8ICuE.js";
3
3
  export {
4
- s as useBreakpoints,
5
- o as useMediaQuery
4
+ p as useBreakpoints
6
5
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import { r as t, w as s } from "../react.esm-DoZanrUz.js";
2
+ import { u as o } from "../useBreakpoint-2MH8ICuE.js";
3
+ import { d as a, t as i, g as r } from "../vi.JYQecGiw-BbUbJcT8.js";
4
+ a("useBreakpoint Test", () => {
5
+ i("returns object", () => {
6
+ const { result: e } = t(() => o());
7
+ s(() => {
8
+ r(e.current.isDesktop).toBe(!1), r(e.current.isTablet).toBe(!1), r(e.current.isMobile).toBe(!1);
9
+ });
10
+ });
11
+ });