@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.
- package/dist/{ListAreaService-BPp_O2BH.js → ListAreaService-CFOmATRF.js} +17 -16
- package/dist/SearchBar-CY2zfu6B.js +3232 -0
- package/dist/assets/main.css +22 -0
- package/dist/component-D1YrRAXe.js +673 -0
- package/dist/components/BaseView/BaseView.js +300 -46
- package/dist/components/BasicHeading/BasicHeading.js +24 -23
- package/dist/components/BasicHeading/BasicHeading.test.js +333 -32
- package/dist/components/BlockView/BlockView.js +17 -17
- package/dist/components/EmptyView/EmptyView.js +247 -8
- package/dist/components/HashTabView/HashTabView.js +1845 -59
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/ListArea/ListArea.js +5326 -755
- package/dist/components/ListArea/ListArea.test.js +2 -2
- package/dist/components/ListArea/ListAreaService.js +5 -4
- package/dist/components/SearchBar/SearchBar.js +3 -31
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/index.es-BD4kFWFx.js +673 -0
- package/dist/index.es-CUWXKh7P.js +106 -0
- package/dist/index.es-Cv6meSAn.js +1067 -0
- package/dist/index.es-DYsXox--.js +151 -0
- package/dist/index.es-WZ1mqvGz.js +1769 -0
- package/dist/index.es-mBp_Btvi.js +45 -0
- package/dist/main.js +23 -22
- package/dist/tslib.es6-BOWp4lfV.js +72 -0
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "./assets/ListAreaService.css";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
},
|
|
16
|
-
const
|
|
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__ */
|
|
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(
|
|
28
|
-
},
|
|
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__ */
|
|
47
|
-
secondaryText: a && !u ? /* @__PURE__ */
|
|
48
|
-
trailingBlock: f ?? v ?? /* @__PURE__ */
|
|
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 :
|
|
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
|
|
62
|
+
}, G = (o) => typeof o == "string" && o in q ? /* @__PURE__ */ l(b, { icon: o }) : o;
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
M as a,
|
|
65
|
+
K as g,
|
|
65
66
|
g as m,
|
|
66
67
|
_ as s
|
|
67
68
|
};
|