@hortiview/shared-components 0.0.4529 → 0.0.4539

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.
@@ -1,8 +1,9 @@
1
1
  import "./assets/ListAreaService.css";
2
- import { jsx as s } from "react/jsx-runtime";
3
- import { TypoButton as b, TypoSubtitle as q, TypoBody as k, Icon as L } from "@element/react-components";
4
- import { Iconify as C } from "./components/Iconify/Iconify.js";
5
- import { AvailableCustomIcons as x } from "./enums/AvailableCustomIcons.js";
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, c as C } from "./index.es-BD4kFWFx.js";
6
+ import { I as x } from "./index.es-Cv6meSAn.js";
6
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", _ = {
7
8
  fullWidth: E,
8
9
  mainElevation: N,
@@ -12,11 +13,11 @@ const E = "_fullWidth_1l0qh_1", N = "_mainElevation_1l0qh_5", W = "_searchbar_1l
12
13
  listItem: S,
13
14
  trailingIcon: w,
14
15
  groupedListItem: A
15
- }, J = (o, i, n, r) => {
16
- const l = o.reduce((e, a) => {
16
+ }, K = (o, i, n, r) => {
17
+ const s = o.reduce((e, a) => {
17
18
  const { groupName: t, ...m } = a;
18
19
  return !t || typeof t != "string" || (e[t] || (e[t] = {
19
- groupName: /* @__PURE__ */ s(b, { children: t }),
20
+ groupName: /* @__PURE__ */ l(k, { children: t }),
20
21
  id: t,
21
22
  items: []
22
23
  }), e[t].items = [
@@ -24,8 +25,8 @@ const E = "_fullWidth_1l0qh_1", N = "_mainElevation_1l0qh_5", W = "_searchbar_1l
24
25
  g(m, i, n, !0, r)
25
26
  ]), e;
26
27
  }, {});
27
- return Object.values(l);
28
- }, K = (o, i, n, r) => o.map((l) => g(l, i, n, !1, r)), g = (o, i, n, r, l) => {
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) => {
29
30
  const {
30
31
  title: e,
31
32
  subTitle: a,
@@ -43,9 +44,9 @@ const E = "_fullWidth_1l0qh_1", N = "_mainElevation_1l0qh_5", W = "_searchbar_1l
43
44
  } = o, c = i === t;
44
45
  return {
45
46
  select: c,
46
- primaryText: u ?? /* @__PURE__ */ s(q, { level: 1, bold: c, themeColor: c ? "primary" : void 0, children: e }),
47
- secondaryText: a && !u ? /* @__PURE__ */ s(k, { level: 2, themeColor: c ? "primary" : void 0, children: a }) : void 0,
48
- trailingBlock: f ?? v ?? /* @__PURE__ */ s(L, { icon: "arrow_right" }),
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" }),
49
50
  leadingBlock: G(h),
50
51
  nonInteractive: I,
51
52
  value: m,
@@ -54,14 +55,14 @@ const E = "_fullWidth_1l0qh_1", N = "_mainElevation_1l0qh_5", W = "_searchbar_1l
54
55
  trailingBlockType: y ?? "icon",
55
56
  className: `${p === "avatar" ? "" : _.listItem} ${n} ${r ? _.groupedListItem : ""}`,
56
57
  onClick: (O, B) => T?.(B),
57
- tag: d ? void 0 : l ?? "a",
58
+ tag: d ? void 0 : s ?? "a",
58
59
  to: d ? void 0 : t
59
60
  }
60
61
  };
61
- }, G = (o) => typeof o == "string" && o in x ? /* @__PURE__ */ s(C, { icon: o }) : o;
62
+ }, G = (o) => typeof o == "string" && o in q ? /* @__PURE__ */ l(b, { icon: o }) : o;
62
63
  export {
63
- K as a,
64
- J as g,
64
+ M as a,
65
+ K as g,
65
66
  g as m,
66
67
  _ as s
67
68
  };