@hortiview/shared-components 0.0.4722 → 0.0.4724

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 (32) hide show
  1. package/dist/_getTag-DyrzUAbj.js +494 -0
  2. package/dist/assets/DeleteModal.css +1 -1
  3. package/dist/components/BaseView/BaseView.js +43 -297
  4. package/dist/components/BasicHeading/BasicHeading.js +24 -25
  5. package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
  6. package/dist/components/BlockView/BlockView.js +14 -14
  7. package/dist/components/DeleteModal/DeleteModal.js +49 -4687
  8. package/dist/components/Disclaimer/Disclaimer.js +8 -10
  9. package/dist/components/EmptyView/EmptyView.js +8 -247
  10. package/dist/components/HashTabView/HashTabView.js +52 -1838
  11. package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
  12. package/dist/components/Iconify/Iconify.js +1 -1
  13. package/dist/components/ListArea/ListArea.js +316 -261
  14. package/dist/components/ListArea/ListArea.test.js +1 -1
  15. package/dist/components/ListArea/ListAreaService.js +34 -35
  16. package/dist/components/SearchBar/SearchBar.js +21 -2043
  17. package/dist/main.d.ts +1 -0
  18. package/package.json +1 -1
  19. package/dist/_getTag-DNUtgXkb.js +0 -136
  20. package/dist/_stringToPath-BfzwTbL6.js +0 -54
  21. package/dist/component-Rx4bNsGO.js +0 -680
  22. package/dist/index.es-Ba9oZK_n.js +0 -769
  23. package/dist/index.es-C1ojb4Lq.js +0 -106
  24. package/dist/index.es-CNBieliG.js +0 -151
  25. package/dist/index.es-CQ3ep412.js +0 -305
  26. package/dist/index.es-CVCp4d0C.js +0 -45
  27. package/dist/index.es-Cct4Uapb.js +0 -1776
  28. package/dist/index.es-Cj9DW-2T.js +0 -430
  29. package/dist/index.es-Cm4X20_S.js +0 -673
  30. package/dist/index.es-InSNsV4f.js +0 -1067
  31. package/dist/index.es-L0ZCcbUf.js +0 -4939
  32. package/dist/tslib.es6-CIXEwqhg.js +0 -72
@@ -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";
2
3
  import { r as s, s as a, f as u } from "../../react.esm-BeDwcQWb.js";
3
4
  import { ListArea as c } from "./ListArea.js";
4
5
  import { getGroupedItems as h } from "./ListAreaService.js";
5
6
  import { d as m, t as n, g as t } from "../../vi.JYQecGiw-BbUbJcT8.js";
6
- import { T as p } from "../../index.es-Cm4X20_S.js";
7
7
  m("ListArea Test", () => {
8
8
  const o = [
9
9
  {
@@ -1,58 +1,57 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { Iconify as k } from "../Iconify/Iconify.js";
2
+ import { TypoButton as k, TypoSubtitle as C, TypoBody as x, Icon as N } from "@element/react-components";
3
+ import { Iconify as L } from "../Iconify/Iconify.js";
3
4
  import { s as u } from "../../listArea.module-B04TR5bj.js";
4
- import { AvailableCustomIcons as C } from "../../enums/AvailableCustomIcons.js";
5
- import { T as x, a as N, b as L } from "../../index.es-Cm4X20_S.js";
6
- import { I as $ } from "../../index.es-InSNsV4f.js";
7
- const P = (o, i, r, n) => {
8
- const a = o.reduce((e, c) => {
9
- const { groupName: t, ...l } = c;
10
- return !t || typeof t != "string" || (e[t] || (e[t] = {
11
- groupName: /* @__PURE__ */ s(x, { children: t }),
5
+ import { AvailableCustomIcons as $ } from "../../enums/AvailableCustomIcons.js";
6
+ const O = (e, i, r, n) => {
7
+ const c = e.reduce((o, a) => {
8
+ const { groupName: t, ...m } = a;
9
+ return !t || typeof t != "string" || (o[t] || (o[t] = {
10
+ groupName: /* @__PURE__ */ s(k, { children: t }),
12
11
  id: t,
13
12
  items: []
14
- }), e[t].items = [
15
- ...e[t].items,
16
- y(l, i, r, !0, n)
17
- ]), e;
13
+ }), o[t].items = [
14
+ ...o[t].items,
15
+ y(m, i, r, !0, n)
16
+ ]), o;
18
17
  }, {});
19
- return Object.values(a);
20
- }, q = (o, i, r, n) => o.map((a) => y(a, i, r, !1, n)), y = (o, i, r, n, a) => {
18
+ return Object.values(c);
19
+ }, P = (e, i, r, n) => e.map((c) => y(c, i, r, !1, n)), y = (e, i, r, n, c) => {
21
20
  const {
22
- title: e,
23
- subTitle: c,
21
+ title: o,
22
+ subTitle: a,
24
23
  route: t,
25
- value: l,
24
+ value: m,
26
25
  noNavigation: p,
27
- disabled: f,
28
- icon: v,
26
+ disabled: v,
27
+ icon: f,
29
28
  iconType: d,
30
29
  trailingIcon: I,
31
30
  trailingIconType: T,
32
- actionButton: b,
33
- onClick: B,
31
+ actionButton: B,
32
+ onClick: b,
34
33
  customTitle: g
35
- } = o, m = i === t;
34
+ } = e, l = i === t;
36
35
  return {
37
- select: m,
38
- primaryText: g ?? /* @__PURE__ */ s(N, { level: 1, bold: m, themeColor: m ? "primary" : void 0, children: e }),
39
- secondaryText: c && !g ? /* @__PURE__ */ s(L, { level: 2, themeColor: m ? "primary" : void 0, children: c }) : void 0,
40
- trailingBlock: b ?? I ?? /* @__PURE__ */ s($, { icon: "arrow_right" }),
41
- leadingBlock: j(v),
42
- nonInteractive: f,
43
- value: l,
36
+ select: l,
37
+ primaryText: g ?? /* @__PURE__ */ s(C, { level: 1, bold: l, themeColor: l ? "primary" : void 0, children: o }),
38
+ secondaryText: a && !g ? /* @__PURE__ */ s(x, { level: 2, themeColor: l ? "primary" : void 0, children: a }) : void 0,
39
+ trailingBlock: B ?? I ?? /* @__PURE__ */ s(N, { icon: "arrow_right" }),
40
+ leadingBlock: j(f),
41
+ nonInteractive: v,
42
+ value: m,
44
43
  componentProps: {
45
44
  leadingBlockType: d ?? "icon",
46
45
  trailingBlockType: T ?? "icon",
47
46
  className: `${d === "avatar" ? "" : u.listItem} ${r} ${n ? u.groupedListItem : ""}`,
48
- onClick: (S, h) => B?.(h),
49
- tag: p ? void 0 : a ?? "a",
47
+ onClick: (S, h) => b?.(h),
48
+ tag: p ? void 0 : c ?? "a",
50
49
  to: p ? void 0 : t
51
50
  }
52
51
  };
53
- }, j = (o) => typeof o == "string" && o in C ? /* @__PURE__ */ s(k, { icon: o }) : o;
52
+ }, j = (e) => typeof e == "string" && e in $ ? /* @__PURE__ */ s(L, { icon: e }) : e;
54
53
  export {
55
- P as getGroupedItems,
56
- q as getListedItems,
54
+ O as getGroupedItems,
55
+ P as getListedItems,
57
56
  y as mapListElement
58
57
  };