@hortiview/shared-components 0.0.4723 → 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 (58) hide show
  1. package/dist/_getTag-DyrzUAbj.js +494 -0
  2. package/dist/components/BaseView/BaseView.js +43 -297
  3. package/dist/components/BasicHeading/BasicHeading.js +24 -25
  4. package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
  5. package/dist/components/BlockView/BlockView.js +14 -14
  6. package/dist/components/DeleteModal/DeleteModal.js +49 -4687
  7. package/dist/components/Disclaimer/Disclaimer.js +8 -10
  8. package/dist/components/EmptyView/EmptyView.js +8 -247
  9. package/dist/components/HashTabView/HashTabView.js +52 -1838
  10. package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
  11. package/dist/components/Iconify/Iconify.js +1 -1
  12. package/dist/components/ListArea/ListArea.js +316 -261
  13. package/dist/components/ListArea/ListArea.test.js +1 -1
  14. package/dist/components/ListArea/ListAreaService.js +34 -35
  15. package/dist/components/SearchBar/SearchBar.js +21 -2043
  16. package/package.json +1 -1
  17. package/dist/BlockView.module-ypKp14Lt.cjs +0 -1
  18. package/dist/HashTabView.module-B20c3S70.cjs +0 -1
  19. package/dist/HeaderFilter.module-DSCJz6-s.cjs +0 -1
  20. package/dist/_commonjsHelpers-DwTZ_eVU.cjs +0 -1
  21. package/dist/_getTag-DNUtgXkb.js +0 -136
  22. package/dist/_getTag-DSIzMwlx.cjs +0 -1
  23. package/dist/_stringToPath-B-GSTJ2e.cjs +0 -1
  24. package/dist/_stringToPath-BfzwTbL6.js +0 -54
  25. package/dist/baseView.module--VUY4h_X.cjs +0 -1
  26. package/dist/basicHeading.module-BbcVMp42.cjs +0 -1
  27. package/dist/component-DJvMx3oL.cjs +0 -148
  28. package/dist/component-Rx4bNsGO.js +0 -680
  29. package/dist/disclaimer.module-BfrBh-Rf.cjs +0 -1
  30. package/dist/index.es-80RhGkCD.cjs +0 -1
  31. package/dist/index.es-Ba9oZK_n.js +0 -769
  32. package/dist/index.es-C1ojb4Lq.js +0 -106
  33. package/dist/index.es-CEydmFbW.cjs +0 -23
  34. package/dist/index.es-CKdjg72r.cjs +0 -64
  35. package/dist/index.es-CNBieliG.js +0 -151
  36. package/dist/index.es-CPRODq-I.cjs +0 -127
  37. package/dist/index.es-CQ3ep412.js +0 -305
  38. package/dist/index.es-CSD_u-fK.cjs +0 -1
  39. package/dist/index.es-CVCp4d0C.js +0 -45
  40. package/dist/index.es-Cct4Uapb.js +0 -1776
  41. package/dist/index.es-Cj9DW-2T.js +0 -430
  42. package/dist/index.es-Cm4X20_S.js +0 -673
  43. package/dist/index.es-Cqx46S1V.cjs +0 -540
  44. package/dist/index.es-DiO-sp-V.cjs +0 -1
  45. package/dist/index.es-DyXn5zZ8.cjs +0 -1
  46. package/dist/index.es-InSNsV4f.js +0 -1067
  47. package/dist/index.es-J3ub0jmR.cjs +0 -1
  48. package/dist/index.es-L0ZCcbUf.js +0 -4939
  49. package/dist/index.es-gvcK6-6t.cjs +0 -1
  50. package/dist/listArea.module-CMO-yRdf.cjs +0 -1
  51. package/dist/magic-string.es-EQkD18No.cjs +0 -10
  52. package/dist/react.esm-CMNZXU0t.cjs +0 -93
  53. package/dist/searchBar.module-CFi8D8zn.cjs +0 -1
  54. package/dist/tslib.es6-CIXEwqhg.js +0 -72
  55. package/dist/tslib.es6-D1TYK0An.cjs +0 -1
  56. package/dist/useBreakpoint-PUopk3AO.cjs +0 -1
  57. package/dist/verticalDivider.module-Ciw9Fnt1.cjs +0 -1
  58. package/dist/vi.JYQecGiw-M1q0RI3O.cjs +0 -512
@@ -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
  };