@hortiview/shared-components 0.0.6829 → 0.0.6890

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 (46) hide show
  1. package/dist/assets/HashTabView.css +1 -1
  2. package/dist/components/AlertBanner/AlertBanner.js +19 -11
  3. package/dist/components/AlertBanner/AlertBanner.test.js +17 -23
  4. package/dist/components/BaseView/BaseView.js +15 -15
  5. package/dist/components/BaseView/BaseView.test.js +19 -25
  6. package/dist/components/BasicHeading/BasicHeading.js +37 -31
  7. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  8. package/dist/components/BlockView/BlockView.test.js +7 -7
  9. package/dist/components/ContextMenu/ContextMenu.test.js +6 -6
  10. package/dist/components/DeleteModal/DeleteModal.test.js +1 -1
  11. package/dist/components/Disclaimer/Disclaimer.test.js +1 -1
  12. package/dist/components/EmptyView/EmptyView.test.js +1 -1
  13. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +1 -1
  14. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +5 -5
  15. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +8 -8
  16. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +2 -2
  17. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +1 -1
  18. package/dist/components/FormComponents/FormText/FormText.test.js +1 -1
  19. package/dist/components/GenericTable/GenericTable.test.js +1 -1
  20. package/dist/components/HashTabView/HashTabView.js +33 -33
  21. package/dist/components/HashTabView/HashTabView.test.js +1 -1
  22. package/dist/components/HeaderFilter/HeaderFilter.test.js +1 -1
  23. package/dist/components/Iconify/Iconify.d.ts +1 -1
  24. package/dist/components/Iconify/Iconify.js +120 -82
  25. package/dist/components/Iconify/Iconify.test.js +1 -1
  26. package/dist/components/InfoGroup/InfoGroup.js +4 -4
  27. package/dist/components/InfoGroup/InfoGroup.test.js +1 -1
  28. package/dist/components/ListArea/ListArea.test.js +1 -1
  29. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +7 -7
  30. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +1 -1
  31. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +2 -2
  32. package/dist/components/Scrollbar/scrollbar.test.js +8 -8
  33. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  34. package/dist/components/VerticalDivider/VerticalDivider.test.js +1 -1
  35. package/dist/enums/AvailableCustomIcons.d.ts +32 -17
  36. package/dist/enums/AvailableCustomIcons.js +1 -1
  37. package/dist/hooks/useBreakpoint.d.ts +16 -11
  38. package/dist/hooks/useBreakpoint.js +2 -3
  39. package/dist/hooks/useBreakpoints.test.d.ts +1 -0
  40. package/dist/hooks/useBreakpoints.test.js +11 -0
  41. package/dist/{index-DfbRag7b.js → index-DP2ENnrX.js} +1 -1
  42. package/dist/main.js +7 -7
  43. package/dist/{react.esm-BBemCHUU.js → react.esm-DoZanrUz.js} +1223 -1190
  44. package/dist/useBreakpoint-2MH8ICuE.js +28 -0
  45. package/package.json +1 -1
  46. package/dist/useBreakpoint-DROHPVxO.js +0 -35
@@ -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", () => {
@@ -18,7 +18,7 @@ export type IconifyProps = {
18
18
  * @example <Iconify icon='farm' />
19
19
  * @returns
20
20
  */
21
- export declare const Iconify: ({ icon: iconName, pure, ...props }: IconifyProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const Iconify: ({ icon: iconName, pure, ...props }: IconifyProps) => JSX.Element;
22
22
  /**
23
23
  * A component that renders an icon from the available custom icons.
24
24
  * @param icon The icon to display. The available icons are listed in the {@link AvailableCustomIcons} enum.