@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.
Files changed (81) hide show
  1. package/dist/BlockView.module-8kbPxxc4.js +15 -0
  2. package/dist/BlockView.module-ypKp14Lt.cjs +1 -0
  3. package/dist/HashTabView.module-B20c3S70.cjs +1 -0
  4. package/dist/HashTabView.module-BY0tbl3B.js +13 -0
  5. package/dist/HeaderFilter.module-DSCJz6-s.cjs +1 -0
  6. package/dist/HeaderFilter.module-DiBmulr5.js +7 -0
  7. package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
  8. package/dist/_getTag-DNUtgXkb.js +136 -0
  9. package/dist/_getTag-DSIzMwlx.cjs +1 -0
  10. package/dist/_stringToPath-B-GSTJ2e.cjs +1 -0
  11. package/dist/_stringToPath-BfzwTbL6.js +54 -0
  12. package/dist/assets/DeleteModal.css +1 -1
  13. package/dist/baseView.module--VUY4h_X.cjs +1 -0
  14. package/dist/baseView.module-DXWalo9p.js +7 -0
  15. package/dist/basicHeading.module-BbcVMp42.cjs +1 -0
  16. package/dist/basicHeading.module-ClcvD7x2.js +16 -0
  17. package/dist/component-DJvMx3oL.cjs +148 -0
  18. package/dist/{component-DCtofpGS.js → component-Rx4bNsGO.js} +1 -1
  19. package/dist/components/BaseView/BaseView.js +28 -30
  20. package/dist/components/BaseView/BaseView.test.js +1 -1
  21. package/dist/components/BasicHeading/BasicHeading.js +40 -51
  22. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  23. package/dist/components/BlockView/BlockView.js +41 -51
  24. package/dist/components/DeleteModal/DeleteModal.js +34 -36
  25. package/dist/components/Disclaimer/Disclaimer.js +11 -14
  26. package/dist/components/EmptyView/EmptyView.js +4 -4
  27. package/dist/components/HashTabView/HashTabView.js +60 -68
  28. package/dist/components/HeaderFilter/HeaderFilter.js +628 -629
  29. package/dist/components/Iconify/Iconify.js +1 -1
  30. package/dist/components/ListArea/ListArea.js +189 -233
  31. package/dist/components/ListArea/ListArea.test.js +2 -2
  32. package/dist/components/ListArea/ListAreaService.js +56 -9
  33. package/dist/components/SearchBar/SearchBar.js +47 -48
  34. package/dist/components/VerticalDivider/VerticalDivider.js +4 -6
  35. package/dist/disclaimer.module-BZydt-Q_.js +8 -0
  36. package/dist/disclaimer.module-BfrBh-Rf.cjs +1 -0
  37. package/dist/hooks/useBreakpoint.js +2 -2
  38. package/dist/index.es-80RhGkCD.cjs +1 -0
  39. package/dist/index.es-Ba9oZK_n.js +769 -0
  40. package/dist/{index.es-CcfZlo4c.js → index.es-C1ojb4Lq.js} +1 -1
  41. package/dist/index.es-CEydmFbW.cjs +23 -0
  42. package/dist/index.es-CKdjg72r.cjs +64 -0
  43. package/dist/{index.es-hAl7Wxm5.js → index.es-CNBieliG.js} +1 -1
  44. package/dist/index.es-CPRODq-I.cjs +127 -0
  45. package/dist/{index.es-C3EKMb0J.js → index.es-CQ3ep412.js} +3 -3
  46. package/dist/index.es-CSD_u-fK.cjs +1 -0
  47. package/dist/{index.es-STyHqa-8.js → index.es-CVCp4d0C.js} +2 -2
  48. package/dist/{index.es-BahjEG5L.js → index.es-Cct4Uapb.js} +28 -28
  49. package/dist/index.es-Cj9DW-2T.js +430 -0
  50. package/dist/{index.es-z8RCxF8n.js → index.es-Cm4X20_S.js} +2 -2
  51. package/dist/index.es-Cqx46S1V.cjs +540 -0
  52. package/dist/index.es-DiO-sp-V.cjs +1 -0
  53. package/dist/index.es-DyXn5zZ8.cjs +1 -0
  54. package/dist/{index.es-3I3oam0G.js → index.es-InSNsV4f.js} +1 -1
  55. package/dist/index.es-J3ub0jmR.cjs +1 -0
  56. package/dist/{index.es-BcHAMD5J.js → index.es-L0ZCcbUf.js} +1676 -1805
  57. package/dist/index.es-gvcK6-6t.cjs +1 -0
  58. package/dist/listArea.module-B04TR5bj.js +14 -0
  59. package/dist/listArea.module-CMO-yRdf.cjs +1 -0
  60. package/dist/magic-string.es-EQkD18No.cjs +10 -0
  61. package/dist/main.d.ts +1 -0
  62. package/dist/main.js +6 -6
  63. package/dist/react.esm-CMNZXU0t.cjs +93 -0
  64. package/dist/searchBar.module-9gKyrZRT.js +7 -0
  65. package/dist/searchBar.module-CFi8D8zn.cjs +1 -0
  66. package/dist/{tslib.es6-BOWp4lfV.js → tslib.es6-CIXEwqhg.js} +4 -4
  67. package/dist/tslib.es6-D1TYK0An.cjs +1 -0
  68. package/dist/{useBreakpoint-DROHPVxO.js → useBreakpoint-DyAmuka7.js} +2 -2
  69. package/dist/useBreakpoint-PUopk3AO.cjs +1 -0
  70. package/dist/verticalDivider.module-C3_GL-fH.js +7 -0
  71. package/dist/verticalDivider.module-Ciw9Fnt1.cjs +1 -0
  72. package/dist/vi.JYQecGiw-M1q0RI3O.cjs +512 -0
  73. package/package.json +1 -1
  74. package/dist/ListAreaService-BQCdQv7a.js +0 -68
  75. package/dist/index.es-DVNdCQvl.js +0 -1192
  76. /package/dist/assets/{BaseView.css → baseView.css} +0 -0
  77. /package/dist/assets/{BasicHeading.css → basicHeading.css} +0 -0
  78. /package/dist/assets/{Disclaimer.css → disclaimer.css} +0 -0
  79. /package/dist/assets/{ListAreaService.css → listArea.css} +0 -0
  80. /package/dist/assets/{SearchBar.css → searchBar.css} +0 -0
  81. /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.4721",
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
- };