@hortiview/shared-components 0.0.4775 → 0.0.4779
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 +67 -0
- package/dist/assets/DeleteModal.css +1 -22
- package/dist/assets/main.css +22 -0
- package/dist/components/BaseView/BaseView.js +23 -21
- package/dist/components/BaseView/BaseView.test.js +1 -1
- package/dist/components/BasicHeading/BasicHeading.js +52 -41
- package/dist/components/BlockView/BlockView.js +51 -41
- package/dist/components/DeleteModal/DeleteModal.js +34 -51
- package/dist/components/Disclaimer/Disclaimer.js +11 -8
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +31 -29
- package/dist/components/FormComponents/FormSelect/FormSelect.js +57 -53
- package/dist/components/FormComponents/FormText/FormText.js +64 -59
- package/dist/components/HashTabView/HashTabView.js +48 -40
- package/dist/components/HeaderFilter/HeaderFilter.js +16 -14
- package/dist/components/ListArea/ListArea.js +494 -283
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/ListArea/ListAreaService.js +8 -55
- package/dist/components/SearchBar/SearchBar.js +23 -21
- package/dist/components/VerticalDivider/VerticalDivider.js +6 -4
- package/dist/get-Dyz8NMrE.js +321 -0
- package/dist/hooks/useBreakpoint.js +2 -2
- package/dist/main.js +44 -43
- package/dist/{useBreakpoint-DyAmuka7.js → useBreakpoint-DROHPVxO.js} +2 -2
- package/package.json +1 -1
- package/dist/BlockView.module-8kbPxxc4.js +0 -15
- package/dist/HashTabView.module-BY0tbl3B.js +0 -13
- package/dist/HeaderFilter.module-DiBmulr5.js +0 -7
- package/dist/_baseToString-ByHt83eL.js +0 -282
- package/dist/_getTag-D4bRay2z.js +0 -226
- package/dist/baseView.module-DXWalo9p.js +0 -7
- package/dist/basicHeading.module-ClcvD7x2.js +0 -16
- package/dist/disclaimer.module-BZydt-Q_.js +0 -8
- package/dist/formDatePicker.module-DllLVp7D.js +0 -7
- package/dist/formSelect.module-CdHEvmH_.js +0 -9
- package/dist/formText.module-3BZ0M2vV.js +0 -10
- package/dist/get-BYajYtEc.js +0 -46
- package/dist/listArea.module-B04TR5bj.js +0 -14
- package/dist/searchBar.module-9gKyrZRT.js +0 -7
- package/dist/verticalDivider.module-C3_GL-fH.js +0 -7
- /package/dist/assets/{baseView.css → BaseView.css} +0 -0
- /package/dist/assets/{basicHeading.css → BasicHeading.css} +0 -0
- /package/dist/assets/{disclaimer.css → Disclaimer.css} +0 -0
- /package/dist/assets/{formDatePicker.css → FormDatePicker.css} +0 -0
- /package/dist/assets/{formSelect.css → FormSelect.css} +0 -0
- /package/dist/assets/{formText.css → FormText.css} +0 -0
- /package/dist/assets/{listArea.css → ListAreaService.css} +0 -0
- /package/dist/assets/{searchBar.css → SearchBar.css} +0 -0
- /package/dist/assets/{verticalDivider.css → VerticalDivider.css} +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
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";
|
|
6
|
+
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
|
+
fullWidth: E,
|
|
8
|
+
mainElevation: N,
|
|
9
|
+
searchbar: W,
|
|
10
|
+
roundedBottom: $,
|
|
11
|
+
list: j,
|
|
12
|
+
listItem: S,
|
|
13
|
+
trailingIcon: w,
|
|
14
|
+
groupedListItem: A
|
|
15
|
+
}, J = (o, i, n, r) => {
|
|
16
|
+
const l = o.reduce((e, a) => {
|
|
17
|
+
const { groupName: t, ...m } = a;
|
|
18
|
+
return !t || typeof t != "string" || (e[t] || (e[t] = {
|
|
19
|
+
groupName: /* @__PURE__ */ s(b, { children: t }),
|
|
20
|
+
id: t,
|
|
21
|
+
items: []
|
|
22
|
+
}), e[t].items = [
|
|
23
|
+
...e[t].items,
|
|
24
|
+
g(m, i, n, !0, r)
|
|
25
|
+
]), e;
|
|
26
|
+
}, {});
|
|
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) => {
|
|
29
|
+
const {
|
|
30
|
+
title: e,
|
|
31
|
+
subTitle: a,
|
|
32
|
+
route: t,
|
|
33
|
+
value: m,
|
|
34
|
+
noNavigation: d,
|
|
35
|
+
disabled: I,
|
|
36
|
+
icon: h,
|
|
37
|
+
iconType: p,
|
|
38
|
+
trailingIcon: v,
|
|
39
|
+
trailingIconType: y,
|
|
40
|
+
actionButton: f,
|
|
41
|
+
onClick: T,
|
|
42
|
+
customTitle: u
|
|
43
|
+
} = o, c = i === t;
|
|
44
|
+
return {
|
|
45
|
+
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" }),
|
|
49
|
+
leadingBlock: G(h),
|
|
50
|
+
nonInteractive: I,
|
|
51
|
+
value: m,
|
|
52
|
+
componentProps: {
|
|
53
|
+
leadingBlockType: p ?? "icon",
|
|
54
|
+
trailingBlockType: y ?? "icon",
|
|
55
|
+
className: `${p === "avatar" ? "" : _.listItem} ${n} ${r ? _.groupedListItem : ""}`,
|
|
56
|
+
onClick: (O, B) => T?.(B),
|
|
57
|
+
tag: d ? void 0 : l ?? "a",
|
|
58
|
+
to: d ? void 0 : t
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}, G = (o) => typeof o == "string" && o in x ? /* @__PURE__ */ s(C, { icon: o }) : o;
|
|
62
|
+
export {
|
|
63
|
+
K as a,
|
|
64
|
+
J as g,
|
|
65
|
+
g as m,
|
|
66
|
+
_ as s
|
|
67
|
+
};
|