@hortiview/shared-components 0.0.4775 → 0.0.4801

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 (52) hide show
  1. package/dist/ListAreaService-BPp_O2BH.js +67 -0
  2. package/dist/assets/DeleteModal.css +1 -22
  3. package/dist/assets/FormDatePicker.css +1 -0
  4. package/dist/assets/main.css +22 -0
  5. package/dist/components/BaseView/BaseView.js +23 -21
  6. package/dist/components/BaseView/BaseView.test.js +1 -1
  7. package/dist/components/BasicHeading/BasicHeading.js +52 -41
  8. package/dist/components/BlockView/BlockView.js +51 -41
  9. package/dist/components/DeleteModal/DeleteModal.js +34 -51
  10. package/dist/components/Disclaimer/Disclaimer.js +11 -8
  11. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +74 -49
  12. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +8 -21
  13. package/dist/components/FormComponents/FormSelect/FormSelect.js +57 -53
  14. package/dist/components/FormComponents/FormText/FormText.d.ts +11 -18
  15. package/dist/components/FormComponents/FormText/FormText.js +83 -77
  16. package/dist/components/FormComponents/FormText/FormText.test.js +85 -41
  17. package/dist/components/HashTabView/HashTabView.js +48 -40
  18. package/dist/components/HeaderFilter/HeaderFilter.js +16 -14
  19. package/dist/components/ListArea/ListArea.js +494 -283
  20. package/dist/components/ListArea/ListArea.test.js +1 -1
  21. package/dist/components/ListArea/ListAreaService.js +8 -55
  22. package/dist/components/SearchBar/SearchBar.js +23 -21
  23. package/dist/components/VerticalDivider/VerticalDivider.js +6 -4
  24. package/dist/get-Dyz8NMrE.js +321 -0
  25. package/dist/hooks/useBreakpoint.js +2 -2
  26. package/dist/main.js +44 -43
  27. package/dist/{useBreakpoint-DyAmuka7.js → useBreakpoint-DROHPVxO.js} +2 -2
  28. package/package.json +1 -1
  29. package/dist/BlockView.module-8kbPxxc4.js +0 -15
  30. package/dist/HashTabView.module-BY0tbl3B.js +0 -13
  31. package/dist/HeaderFilter.module-DiBmulr5.js +0 -7
  32. package/dist/_baseToString-ByHt83eL.js +0 -282
  33. package/dist/_getTag-D4bRay2z.js +0 -226
  34. package/dist/assets/formDatePicker.css +0 -1
  35. package/dist/baseView.module-DXWalo9p.js +0 -7
  36. package/dist/basicHeading.module-ClcvD7x2.js +0 -16
  37. package/dist/disclaimer.module-BZydt-Q_.js +0 -8
  38. package/dist/formDatePicker.module-DllLVp7D.js +0 -7
  39. package/dist/formSelect.module-CdHEvmH_.js +0 -9
  40. package/dist/formText.module-3BZ0M2vV.js +0 -10
  41. package/dist/get-BYajYtEc.js +0 -46
  42. package/dist/listArea.module-B04TR5bj.js +0 -14
  43. package/dist/searchBar.module-9gKyrZRT.js +0 -7
  44. package/dist/verticalDivider.module-C3_GL-fH.js +0 -7
  45. /package/dist/assets/{baseView.css → BaseView.css} +0 -0
  46. /package/dist/assets/{basicHeading.css → BasicHeading.css} +0 -0
  47. /package/dist/assets/{disclaimer.css → Disclaimer.css} +0 -0
  48. /package/dist/assets/{formSelect.css → FormSelect.css} +0 -0
  49. /package/dist/assets/{formText.css → FormText.css} +0 -0
  50. /package/dist/assets/{listArea.css → ListAreaService.css} +0 -0
  51. /package/dist/assets/{searchBar.css → SearchBar.css} +0 -0
  52. /package/dist/assets/{verticalDivider.css → VerticalDivider.css} +0 -0
@@ -1,50 +1,58 @@
1
- import { jsx as a, jsxs as d, Fragment as I } from "react/jsx-runtime";
2
- import { Elevation as N, Group as o, TabBar as b, Tab as x, Padding as y } from "@element/react-components";
3
- import { useState as k, useEffect as w } from "react";
4
- import { s as t } from "../../HashTabView.module-BY0tbl3B.js";
5
- import { u as $ } from "../../useBreakpoint-DyAmuka7.js";
6
- const g = (n, r, i) => !i || !r || !n ? 0 : n.findIndex((c) => `#${c.hash}` === r) ?? 0, F = ({
1
+ import "../../assets/HashTabView.css";
2
+ import { jsx as r, jsxs as d, Fragment as w } from "react/jsx-runtime";
3
+ import { Elevation as T, Group as o, 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", a = {
7
+ elevation: x,
8
+ themeBackground: y,
9
+ tabBar: W,
10
+ tabWrapper: $,
11
+ tabButton: j,
12
+ childContainer: E,
13
+ childContainerLg: z
14
+ }, _ = (n, t, c) => !c || !t || !n ? 0 : n.findIndex((i) => `#${i.hash}` === t) ?? 0, q = ({
7
15
  tabs: n,
8
- hasHash: r = !0,
9
- hash: i = "",
10
- clusterAlign: c = "start",
11
- hasClusteredTabs: f,
12
- children: s,
16
+ hasHash: t = !0,
17
+ hash: c = "",
18
+ clusterAlign: i = "start",
19
+ hasClusteredTabs: g,
20
+ children: l,
13
21
  verticalGap: h = "none",
14
- elevation: v = 0,
15
- backgroundColor: T = "themeBackground",
16
- onChange: A
22
+ elevation: B = 0,
23
+ backgroundColor: v = "themeBackground",
24
+ onChange: b
17
25
  }) => {
18
- const [m, p] = k(g(n, i, r)), { isLg: l } = $();
19
- w(() => {
20
- const e = g(n, i, r);
26
+ const [m, p] = I(_(n, c, t)), { isLg: s } = N();
27
+ L(() => {
28
+ const e = _(n, c, t);
21
29
  p(e);
22
- }, [i, n, r]);
23
- const B = (e) => {
30
+ }, [c, n, t]);
31
+ const f = (e) => {
24
32
  const u = n[e].hash;
25
- u != null && r && (window.location.hash = u), p(e), A?.(e);
33
+ u != null && t && (window.location.hash = u), p(e), b?.(e);
26
34
  };
27
- return /* @__PURE__ */ a(
28
- N,
35
+ return /* @__PURE__ */ r(
36
+ T,
29
37
  {
30
- elevation: v,
31
- className: `${t.elevation} ${T === "none" ? "" : t.themeBackground}`,
38
+ elevation: B,
39
+ className: `${a.elevation} ${v === "none" ? "" : a.themeBackground}`,
32
40
  children: /* @__PURE__ */ d(o, { direction: "vertical", gap: h, secondaryAlign: "stretch", children: [
33
- /* @__PURE__ */ d(o, { direction: l ? "horizontal" : "vertical", className: t.tabWrapper, children: [
34
- /* @__PURE__ */ a(
35
- b,
41
+ /* @__PURE__ */ d(o, { direction: s ? "horizontal" : "vertical", className: a.tabWrapper, children: [
42
+ /* @__PURE__ */ r(
43
+ C,
36
44
  {
37
- className: t.tabBar,
38
- clustered: l ? f : !1,
39
- clusterAlign: c,
45
+ className: a.tabBar,
46
+ clustered: s ? g : !1,
47
+ clusterAlign: i,
40
48
  variant: "surface",
41
49
  activeTabIndex: m,
42
- onTabActivated: B,
43
- children: n.map((e) => /* @__PURE__ */ a(
44
- x,
50
+ onTabActivated: f,
51
+ children: n.map((e) => /* @__PURE__ */ r(
52
+ k,
45
53
  {
46
54
  icon: e.leadingIcon,
47
- className: s ? t.tabButton : "",
55
+ className: l ? a.tabButton : "",
48
56
  children: /* @__PURE__ */ d(o, { gap: "dense", children: [
49
57
  e.title,
50
58
  e.trailingIcon
@@ -54,14 +62,14 @@ const g = (n, r, i) => !i || !r || !n ? 0 : n.findIndex((c) => `#${c.hash}` ===
54
62
  ))
55
63
  }
56
64
  ),
57
- s ? /* @__PURE__ */ a(
58
- y,
65
+ l ? /* @__PURE__ */ r(
66
+ A,
59
67
  {
60
68
  variant: "dense",
61
- className: l ? t.childContainer : t.childContainerLg,
62
- children: /* @__PURE__ */ a(o, { gap: "dense", primaryAlign: "center", secondaryAlign: "center", children: s })
69
+ className: s ? a.childContainer : a.childContainerLg,
70
+ children: /* @__PURE__ */ r(o, { gap: "dense", primaryAlign: "center", secondaryAlign: "center", children: l })
63
71
  }
64
- ) : /* @__PURE__ */ a(I, {})
72
+ ) : /* @__PURE__ */ r(w, {})
65
73
  ] }),
66
74
  n[m]?.component
67
75
  ] })
@@ -69,5 +77,5 @@ const g = (n, r, i) => !i || !r || !n ? 0 : n.findIndex((c) => `#${c.hash}` ===
69
77
  );
70
78
  };
71
79
  export {
72
- F as HashTabView
80
+ q as HashTabView
73
81
  };
@@ -1,25 +1,27 @@
1
- import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { TypoBody as n, Select as d } from "@element/react-components";
3
- import { BasicHeading as l } from "../BasicHeading/BasicHeading.js";
4
- import { s as m } from "../../HeaderFilter.module-DiBmulr5.js";
5
- const h = ({
1
+ import "../../assets/HeaderFilter.css";
2
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
3
+ import { TypoBody as a, Select as s } from "@element/react-components";
4
+ import { BasicHeading as c } from "../BasicHeading/BasicHeading.js";
5
+ const d = "_filterSelect_923nc_1", m = {
6
+ filterSelect: d
7
+ }, h = ({
6
8
  heading: r,
7
9
  filterByText: e,
8
- setFilter: o,
9
- filterValue: a,
10
- filterOptions: i
11
- }) => /* @__PURE__ */ s(l, { "data-testid": "HeaderContainer", heading: r, children: [
12
- e && /* @__PURE__ */ t(n, { level: 2, children: e }),
10
+ setFilter: i,
11
+ filterValue: l,
12
+ filterOptions: o
13
+ }) => /* @__PURE__ */ n(c, { "data-testid": "HeaderContainer", heading: r, children: [
14
+ e && /* @__PURE__ */ t(a, { level: 2, children: e }),
13
15
  /* @__PURE__ */ t(
14
- d,
16
+ s,
15
17
  {
16
18
  "data-testid": "Select",
17
19
  dense: !0,
18
20
  className: m.filterSelect,
19
21
  variant: "outlined",
20
- onChange: o,
21
- value: a,
22
- options: i
22
+ onChange: i,
23
+ value: l,
24
+ options: o
23
25
  }
24
26
  )
25
27
  ] });