@hortiview/shared-components 0.0.4721 → 0.0.4722

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 (51) hide show
  1. package/dist/BlockView.module-8kbPxxc4.js +15 -0
  2. package/dist/HashTabView.module-BY0tbl3B.js +13 -0
  3. package/dist/HeaderFilter.module-DiBmulr5.js +7 -0
  4. package/dist/_getTag-DNUtgXkb.js +136 -0
  5. package/dist/_stringToPath-BfzwTbL6.js +54 -0
  6. package/dist/baseView.module-DXWalo9p.js +7 -0
  7. package/dist/basicHeading.module-ClcvD7x2.js +16 -0
  8. package/dist/{component-DCtofpGS.js → component-Rx4bNsGO.js} +1 -1
  9. package/dist/components/BaseView/BaseView.js +28 -30
  10. package/dist/components/BaseView/BaseView.test.js +1 -1
  11. package/dist/components/BasicHeading/BasicHeading.js +40 -51
  12. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  13. package/dist/components/BlockView/BlockView.js +41 -51
  14. package/dist/components/DeleteModal/DeleteModal.js +34 -36
  15. package/dist/components/Disclaimer/Disclaimer.js +11 -14
  16. package/dist/components/EmptyView/EmptyView.js +4 -4
  17. package/dist/components/HashTabView/HashTabView.js +60 -68
  18. package/dist/components/HeaderFilter/HeaderFilter.js +628 -629
  19. package/dist/components/Iconify/Iconify.js +1 -1
  20. package/dist/components/ListArea/ListArea.js +189 -233
  21. package/dist/components/ListArea/ListArea.test.js +2 -2
  22. package/dist/components/ListArea/ListAreaService.js +56 -9
  23. package/dist/components/SearchBar/SearchBar.js +47 -48
  24. package/dist/components/VerticalDivider/VerticalDivider.js +4 -6
  25. package/dist/disclaimer.module-BZydt-Q_.js +8 -0
  26. package/dist/hooks/useBreakpoint.js +2 -2
  27. package/dist/index.es-Ba9oZK_n.js +769 -0
  28. package/dist/{index.es-CcfZlo4c.js → index.es-C1ojb4Lq.js} +1 -1
  29. package/dist/{index.es-hAl7Wxm5.js → index.es-CNBieliG.js} +1 -1
  30. package/dist/{index.es-C3EKMb0J.js → index.es-CQ3ep412.js} +3 -3
  31. package/dist/{index.es-STyHqa-8.js → index.es-CVCp4d0C.js} +2 -2
  32. package/dist/{index.es-BahjEG5L.js → index.es-Cct4Uapb.js} +28 -28
  33. package/dist/index.es-Cj9DW-2T.js +430 -0
  34. package/dist/{index.es-z8RCxF8n.js → index.es-Cm4X20_S.js} +2 -2
  35. package/dist/{index.es-3I3oam0G.js → index.es-InSNsV4f.js} +1 -1
  36. package/dist/{index.es-BcHAMD5J.js → index.es-L0ZCcbUf.js} +1676 -1805
  37. package/dist/listArea.module-B04TR5bj.js +14 -0
  38. package/dist/main.js +6 -6
  39. package/dist/searchBar.module-9gKyrZRT.js +7 -0
  40. package/dist/{tslib.es6-BOWp4lfV.js → tslib.es6-CIXEwqhg.js} +4 -4
  41. package/dist/{useBreakpoint-DROHPVxO.js → useBreakpoint-DyAmuka7.js} +2 -2
  42. package/dist/verticalDivider.module-C3_GL-fH.js +7 -0
  43. package/package.json +1 -1
  44. package/dist/ListAreaService-BQCdQv7a.js +0 -68
  45. package/dist/index.es-DVNdCQvl.js +0 -1192
  46. /package/dist/assets/{BaseView.css → baseView.css} +0 -0
  47. /package/dist/assets/{BasicHeading.css → basicHeading.css} +0 -0
  48. /package/dist/assets/{Disclaimer.css → disclaimer.css} +0 -0
  49. /package/dist/assets/{ListAreaService.css → listArea.css} +0 -0
  50. /package/dist/assets/{SearchBar.css → searchBar.css} +0 -0
  51. /package/dist/assets/{VerticalDivider.css → verticalDivider.css} +0 -0
@@ -0,0 +1,14 @@
1
+ import "./assets/listArea.css";
2
+ const t = "_fullWidth_1l0qh_1", o = "_mainElevation_1l0qh_5", l = "_searchbar_1l0qh_11", i = "_roundedBottom_1l0qh_19", s = "_list_1l0qh_24", n = "_listItem_1l0qh_48", _ = "_trailingIcon_1l0qh_52", e = "_groupedListItem_1l0qh_64", a = {
3
+ fullWidth: t,
4
+ mainElevation: o,
5
+ searchbar: l,
6
+ roundedBottom: i,
7
+ list: s,
8
+ listItem: n,
9
+ trailingIcon: _,
10
+ groupedListItem: e
11
+ };
12
+ export {
13
+ a as s
14
+ };
package/dist/main.js CHANGED
@@ -7,12 +7,12 @@ import { EmptyView as c } from "./components/EmptyView/EmptyView.js";
7
7
  import { HashTabView as V } from "./components/HashTabView/HashTabView.js";
8
8
  import { HeaderFilter as d } from "./components/HeaderFilter/HeaderFilter.js";
9
9
  import { Iconify as w } from "./components/Iconify/Iconify.js";
10
- import { ListArea as H } from "./components/ListArea/ListArea.js";
11
- import { ScrollbarX as h, ScrollbarY as k } from "./components/Scrollbar/Scrollbar.js";
10
+ import { ListArea as D } from "./components/ListArea/ListArea.js";
11
+ import { ScrollbarX as S, ScrollbarY as h } from "./components/Scrollbar/Scrollbar.js";
12
12
  import { SearchBar as v } from "./components/SearchBar/SearchBar.js";
13
13
  import { VerticalDivider as A } from "./components/VerticalDivider/VerticalDivider.js";
14
14
  import { AvailableCustomIcons as I } from "./enums/AvailableCustomIcons.js";
15
- import { a as g } from "./useBreakpoint-DROHPVxO.js";
15
+ import { u as g } from "./useBreakpoint-DyAmuka7.js";
16
16
  import { capitalizeFirstLetters as C } from "./services/UtilService.js";
17
17
  export {
18
18
  I as AvailableCustomIcons,
@@ -25,9 +25,9 @@ export {
25
25
  V as HashTabView,
26
26
  d as HeaderFilter,
27
27
  w as Iconify,
28
- H as ListArea,
29
- h as ScrollbarX,
30
- k as ScrollbarY,
28
+ D as ListArea,
29
+ S as ScrollbarX,
30
+ h as ScrollbarY,
31
31
  v as SearchBar,
32
32
  A as VerticalDivider,
33
33
  C as capitalizeFirstLetters,
@@ -0,0 +1,7 @@
1
+ import "./assets/searchBar.css";
2
+ const s = "_searchbar_gnvwc_1", a = {
3
+ searchbar: s
4
+ };
5
+ export {
6
+ a as s
7
+ };
@@ -64,9 +64,9 @@ function y(t, r, n) {
64
64
  return t.concat(a || Array.prototype.slice.call(r));
65
65
  }
66
66
  export {
67
- l as _,
68
- y as a,
69
- p as b,
70
- s as c,
67
+ s as _,
68
+ l as a,
69
+ y as b,
70
+ p as c,
71
71
  f as d
72
72
  };
@@ -29,7 +29,7 @@ const u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29
29
  useMediaQuery: t
30
30
  }, Symbol.toStringTag, { value: "Module" }));
31
31
  export {
32
- d as a,
32
+ u as a,
33
33
  t as b,
34
- u
34
+ d as u
35
35
  };
@@ -0,0 +1,7 @@
1
+ import "./assets/verticalDivider.css";
2
+ const i = "_divider_opvom_1", o = {
3
+ divider: i
4
+ };
5
+ export {
6
+ o as s
7
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hortiview/shared-components",
3
3
  "description": "This is a shared component library. It should used in the HortiView platform and its modules.",
4
- "version": "0.0.4721",
4
+ "version": "0.0.4722",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1,68 +0,0 @@
1
- import "./assets/ListAreaService.css";
2
- import { jsx as l } from "react/jsx-runtime";
3
- import { Iconify as B } from "./components/Iconify/Iconify.js";
4
- import { AvailableCustomIcons as q } from "./enums/AvailableCustomIcons.js";
5
- import { T as k, a as L, b as C } from "./index.es-z8RCxF8n.js";
6
- import { I as x } from "./index.es-3I3oam0G.js";
7
- const E = "_fullWidth_1l0qh_1", N = "_mainElevation_1l0qh_5", W = "_searchbar_1l0qh_11", $ = "_roundedBottom_1l0qh_19", j = "_list_1l0qh_24", S = "_listItem_1l0qh_48", w = "_trailingIcon_1l0qh_52", A = "_groupedListItem_1l0qh_64", _ = {
8
- fullWidth: E,
9
- mainElevation: N,
10
- searchbar: W,
11
- roundedBottom: $,
12
- list: j,
13
- listItem: S,
14
- trailingIcon: w,
15
- groupedListItem: A
16
- }, K = (o, i, n, r) => {
17
- const s = o.reduce((e, a) => {
18
- const { groupName: t, ...m } = a;
19
- return !t || typeof t != "string" || (e[t] || (e[t] = {
20
- groupName: /* @__PURE__ */ l(k, { children: t }),
21
- id: t,
22
- items: []
23
- }), e[t].items = [
24
- ...e[t].items,
25
- g(m, i, n, !0, r)
26
- ]), e;
27
- }, {});
28
- return Object.values(s);
29
- }, M = (o, i, n, r) => o.map((s) => g(s, i, n, !1, r)), g = (o, i, n, r, s) => {
30
- const {
31
- title: e,
32
- subTitle: a,
33
- route: t,
34
- value: m,
35
- noNavigation: d,
36
- disabled: I,
37
- icon: h,
38
- iconType: p,
39
- trailingIcon: v,
40
- trailingIconType: y,
41
- actionButton: f,
42
- onClick: T,
43
- customTitle: u
44
- } = o, c = i === t;
45
- return {
46
- select: c,
47
- primaryText: u ?? /* @__PURE__ */ l(L, { level: 1, bold: c, themeColor: c ? "primary" : void 0, children: e }),
48
- secondaryText: a && !u ? /* @__PURE__ */ l(C, { level: 2, themeColor: c ? "primary" : void 0, children: a }) : void 0,
49
- trailingBlock: f ?? v ?? /* @__PURE__ */ l(x, { icon: "arrow_right" }),
50
- leadingBlock: G(h),
51
- nonInteractive: I,
52
- value: m,
53
- componentProps: {
54
- leadingBlockType: p ?? "icon",
55
- trailingBlockType: y ?? "icon",
56
- className: `${p === "avatar" ? "" : _.listItem} ${n} ${r ? _.groupedListItem : ""}`,
57
- onClick: (O, b) => T?.(b),
58
- tag: d ? void 0 : s ?? "a",
59
- to: d ? void 0 : t
60
- }
61
- };
62
- }, G = (o) => typeof o == "string" && o in q ? /* @__PURE__ */ l(B, { icon: o }) : o;
63
- export {
64
- M as a,
65
- K as g,
66
- g as m,
67
- _ as s
68
- };