@hortiview/shared-components 0.0.4721 → 0.0.4723
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/BlockView.module-8kbPxxc4.js +15 -0
- package/dist/BlockView.module-ypKp14Lt.cjs +1 -0
- package/dist/HashTabView.module-B20c3S70.cjs +1 -0
- package/dist/HashTabView.module-BY0tbl3B.js +13 -0
- package/dist/HeaderFilter.module-DSCJz6-s.cjs +1 -0
- package/dist/HeaderFilter.module-DiBmulr5.js +7 -0
- package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
- package/dist/_getTag-DNUtgXkb.js +136 -0
- package/dist/_getTag-DSIzMwlx.cjs +1 -0
- package/dist/_stringToPath-B-GSTJ2e.cjs +1 -0
- package/dist/_stringToPath-BfzwTbL6.js +54 -0
- package/dist/assets/DeleteModal.css +1 -1
- package/dist/baseView.module--VUY4h_X.cjs +1 -0
- package/dist/baseView.module-DXWalo9p.js +7 -0
- package/dist/basicHeading.module-BbcVMp42.cjs +1 -0
- package/dist/basicHeading.module-ClcvD7x2.js +16 -0
- package/dist/component-DJvMx3oL.cjs +148 -0
- package/dist/{component-DCtofpGS.js → component-Rx4bNsGO.js} +1 -1
- package/dist/components/BaseView/BaseView.js +28 -30
- package/dist/components/BaseView/BaseView.test.js +1 -1
- package/dist/components/BasicHeading/BasicHeading.js +40 -51
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.js +41 -51
- package/dist/components/DeleteModal/DeleteModal.js +34 -36
- package/dist/components/Disclaimer/Disclaimer.js +11 -14
- package/dist/components/EmptyView/EmptyView.js +4 -4
- package/dist/components/HashTabView/HashTabView.js +60 -68
- package/dist/components/HeaderFilter/HeaderFilter.js +628 -629
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/ListArea/ListArea.js +189 -233
- package/dist/components/ListArea/ListArea.test.js +2 -2
- package/dist/components/ListArea/ListAreaService.js +56 -9
- package/dist/components/SearchBar/SearchBar.js +47 -48
- package/dist/components/VerticalDivider/VerticalDivider.js +4 -6
- package/dist/disclaimer.module-BZydt-Q_.js +8 -0
- package/dist/disclaimer.module-BfrBh-Rf.cjs +1 -0
- package/dist/hooks/useBreakpoint.js +2 -2
- package/dist/index.es-80RhGkCD.cjs +1 -0
- package/dist/index.es-Ba9oZK_n.js +769 -0
- package/dist/{index.es-CcfZlo4c.js → index.es-C1ojb4Lq.js} +1 -1
- package/dist/index.es-CEydmFbW.cjs +23 -0
- package/dist/index.es-CKdjg72r.cjs +64 -0
- package/dist/{index.es-hAl7Wxm5.js → index.es-CNBieliG.js} +1 -1
- package/dist/index.es-CPRODq-I.cjs +127 -0
- package/dist/{index.es-C3EKMb0J.js → index.es-CQ3ep412.js} +3 -3
- package/dist/index.es-CSD_u-fK.cjs +1 -0
- package/dist/{index.es-STyHqa-8.js → index.es-CVCp4d0C.js} +2 -2
- package/dist/{index.es-BahjEG5L.js → index.es-Cct4Uapb.js} +28 -28
- package/dist/index.es-Cj9DW-2T.js +430 -0
- package/dist/{index.es-z8RCxF8n.js → index.es-Cm4X20_S.js} +2 -2
- package/dist/index.es-Cqx46S1V.cjs +540 -0
- package/dist/index.es-DiO-sp-V.cjs +1 -0
- package/dist/index.es-DyXn5zZ8.cjs +1 -0
- package/dist/{index.es-3I3oam0G.js → index.es-InSNsV4f.js} +1 -1
- package/dist/index.es-J3ub0jmR.cjs +1 -0
- package/dist/{index.es-BcHAMD5J.js → index.es-L0ZCcbUf.js} +1676 -1805
- package/dist/index.es-gvcK6-6t.cjs +1 -0
- package/dist/listArea.module-B04TR5bj.js +14 -0
- package/dist/listArea.module-CMO-yRdf.cjs +1 -0
- package/dist/magic-string.es-EQkD18No.cjs +10 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +6 -6
- package/dist/react.esm-CMNZXU0t.cjs +93 -0
- package/dist/searchBar.module-9gKyrZRT.js +7 -0
- package/dist/searchBar.module-CFi8D8zn.cjs +1 -0
- package/dist/{tslib.es6-BOWp4lfV.js → tslib.es6-CIXEwqhg.js} +4 -4
- package/dist/tslib.es6-D1TYK0An.cjs +1 -0
- package/dist/{useBreakpoint-DROHPVxO.js → useBreakpoint-DyAmuka7.js} +2 -2
- package/dist/useBreakpoint-PUopk3AO.cjs +1 -0
- package/dist/verticalDivider.module-C3_GL-fH.js +7 -0
- package/dist/verticalDivider.module-Ciw9Fnt1.cjs +1 -0
- package/dist/vi.JYQecGiw-M1q0RI3O.cjs +512 -0
- package/package.json +1 -1
- package/dist/ListAreaService-BQCdQv7a.js +0 -68
- package/dist/index.es-DVNdCQvl.js +0 -1192
- /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/{ListAreaService.css → listArea.css} +0 -0
- /package/dist/assets/{SearchBar.css → searchBar.css} +0 -0
- /package/dist/assets/{VerticalDivider.css → verticalDivider.css} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
3
|
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4723",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import "./assets/ListAreaService.css";
|
|
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, b as C } from "./index.es-z8RCxF8n.js";
|
|
6
|
-
import { I as x } from "./index.es-3I3oam0G.js";
|
|
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", _ = {
|
|
8
|
-
fullWidth: E,
|
|
9
|
-
mainElevation: N,
|
|
10
|
-
searchbar: W,
|
|
11
|
-
roundedBottom: $,
|
|
12
|
-
list: j,
|
|
13
|
-
listItem: S,
|
|
14
|
-
trailingIcon: w,
|
|
15
|
-
groupedListItem: A
|
|
16
|
-
}, K = (o, i, n, r) => {
|
|
17
|
-
const s = o.reduce((e, a) => {
|
|
18
|
-
const { groupName: t, ...m } = a;
|
|
19
|
-
return !t || typeof t != "string" || (e[t] || (e[t] = {
|
|
20
|
-
groupName: /* @__PURE__ */ l(k, { children: t }),
|
|
21
|
-
id: t,
|
|
22
|
-
items: []
|
|
23
|
-
}), e[t].items = [
|
|
24
|
-
...e[t].items,
|
|
25
|
-
g(m, i, n, !0, r)
|
|
26
|
-
]), e;
|
|
27
|
-
}, {});
|
|
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) => {
|
|
30
|
-
const {
|
|
31
|
-
title: e,
|
|
32
|
-
subTitle: a,
|
|
33
|
-
route: t,
|
|
34
|
-
value: m,
|
|
35
|
-
noNavigation: d,
|
|
36
|
-
disabled: I,
|
|
37
|
-
icon: h,
|
|
38
|
-
iconType: p,
|
|
39
|
-
trailingIcon: v,
|
|
40
|
-
trailingIconType: y,
|
|
41
|
-
actionButton: f,
|
|
42
|
-
onClick: T,
|
|
43
|
-
customTitle: u
|
|
44
|
-
} = o, c = i === t;
|
|
45
|
-
return {
|
|
46
|
-
select: c,
|
|
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" }),
|
|
50
|
-
leadingBlock: G(h),
|
|
51
|
-
nonInteractive: I,
|
|
52
|
-
value: m,
|
|
53
|
-
componentProps: {
|
|
54
|
-
leadingBlockType: p ?? "icon",
|
|
55
|
-
trailingBlockType: y ?? "icon",
|
|
56
|
-
className: `${p === "avatar" ? "" : _.listItem} ${n} ${r ? _.groupedListItem : ""}`,
|
|
57
|
-
onClick: (O, b) => T?.(b),
|
|
58
|
-
tag: d ? void 0 : s ?? "a",
|
|
59
|
-
to: d ? void 0 : t
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}, G = (o) => typeof o == "string" && o in q ? /* @__PURE__ */ l(B, { icon: o }) : o;
|
|
63
|
-
export {
|
|
64
|
-
M as a,
|
|
65
|
-
K as g,
|
|
66
|
-
g as m,
|
|
67
|
-
_ as s
|
|
68
|
-
};
|