@bahmni/home-app 0.0.1-dev.416 → 0.0.1-dev.418

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,12 +1,12 @@
1
1
  import { jsxs as c, jsx as e, Fragment as b } from "react/jsx-runtime";
2
- import { u as m, D as p, E as y, I as E, J as H, e as N, K as P, L as v, Q as G, R as f, U as L, X as O, Z as S } from "./index-CEBQlhug.js";
2
+ import { u as m, W as p, D as y, G as H, H as N, e as E, Z as P, I as G, K as v, M as f, Q as L, U as O, X as S } from "./index-BQYW4q1k.js";
3
3
  import "react";
4
4
  import { useQuery as T } from "@tanstack/react-query";
5
- const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "AppTile-module_bottom__lcJiG", d = {
5
+ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "AppTile-module_bottom__lcJiG", d = {
6
6
  tile: C,
7
7
  label: B,
8
- bottom: A
9
- }, M = ({ id: o, label: n, icon: s, url: l }) => {
8
+ bottom: M
9
+ }, A = ({ id: o, label: n, icon: s, url: l }) => {
10
10
  const { t } = m(), i = t(n);
11
11
  return /* @__PURE__ */ c(
12
12
  p,
@@ -18,24 +18,24 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
18
18
  children: [
19
19
  /* @__PURE__ */ e("h2", { className: d.label, "aria-hidden": "true", children: i }),
20
20
  /* @__PURE__ */ c("div", { className: d.bottom, children: [
21
- /* @__PURE__ */ e(y, { name: s, id: o, size: E.X2, "aria-hidden": "true" }),
22
- /* @__PURE__ */ e(H, { size: 20, "aria-hidden": "true" })
21
+ /* @__PURE__ */ e(y, { name: s, id: o, size: H.X2, "aria-hidden": "true" }),
22
+ /* @__PURE__ */ e(N, { size: 20, "aria-hidden": "true" })
23
23
  ] })
24
24
  ]
25
25
  }
26
26
  );
27
- }, F = "HomePageGrid-module_container__Kxfim", K = "HomePageGrid-module_tileGrid__X6-Bm", k = "HomePageGrid-module_skeletonTile__U-1vu", x = "HomePageGrid-module_emptyState__xEwoK", I = "HomePageGrid-module_errorContainer__IKR3E", r = {
28
- container: F,
29
- tileGrid: K,
30
- skeletonTile: k,
31
- emptyState: x,
27
+ }, K = "HomePageGrid-module_container__Kxfim", k = "HomePageGrid-module_tileGrid__X6-Bm", x = "HomePageGrid-module_skeletonTile__U-1vu", F = "HomePageGrid-module_emptyState__xEwoK", I = "HomePageGrid-module_errorContainer__IKR3E", r = {
28
+ container: K,
29
+ tileGrid: k,
30
+ skeletonTile: x,
31
+ emptyState: F,
32
32
  errorContainer: I
33
33
  }, D = () => {
34
34
  const { t: o } = m(), {
35
35
  userPrivileges: n,
36
36
  isLoading: s,
37
37
  error: l
38
- } = N(), t = n?.map((a) => a.name) ?? null, {
38
+ } = E(), t = n?.map((a) => a.name) ?? null, {
39
39
  data: i = [],
40
40
  isLoading: _,
41
41
  isError: u,
@@ -53,9 +53,9 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
53
53
  "aria-label": o("HOME_LOADING_MODULES"),
54
54
  "aria-busy": "true",
55
55
  children: /* @__PURE__ */ e("div", { className: r.tileGrid, children: Array.from(
56
- { length: v },
56
+ { length: G },
57
57
  (a, g) => `skeleton-${g}`
58
- ).map((a) => /* @__PURE__ */ e(G, { className: r.skeletonTile }, a)) })
58
+ ).map((a) => /* @__PURE__ */ e(v, { className: r.skeletonTile }, a)) })
59
59
  }
60
60
  ) : l || u ? /* @__PURE__ */ e(
61
61
  "div",
@@ -75,7 +75,7 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
75
75
  )
76
76
  }
77
77
  ) : i.length === 0 ? /* @__PURE__ */ e("div", { className: r.emptyState, role: "status", children: o("HOME_NO_MODULES") }) : /* @__PURE__ */ e("div", { className: r.container, children: /* @__PURE__ */ e("div", { className: r.tileGrid, children: i.map((a) => /* @__PURE__ */ e(
78
- M,
78
+ A,
79
79
  {
80
80
  id: a.id,
81
81
  label: a.translationKey ?? a.label,
@@ -100,12 +100,12 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
100
100
  userMenu: /* @__PURE__ */ e(O, {})
101
101
  }
102
102
  );
103
- }, z = "HomePage-module_homePageBody__0qtrS", j = {
104
- homePageBody: z
105
- }, Q = () => /* @__PURE__ */ c(b, { children: [
103
+ }, q = "HomePage-module_homePageBody__0qtrS", j = {
104
+ homePageBody: q
105
+ }, W = () => /* @__PURE__ */ c(b, { children: [
106
106
  /* @__PURE__ */ e($, {}),
107
107
  /* @__PURE__ */ e("main", { className: j.homePageBody, children: /* @__PURE__ */ e(D, {}) })
108
108
  ] });
109
109
  export {
110
- Q as HomePage
110
+ W as HomePage
111
111
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aN as a } from "./index-CEBQlhug.js";
1
+ import { aN as a } from "./index-BQYW4q1k.js";
2
2
  export {
3
3
  a as HomeApp
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/home-app",
3
- "version": "0.0.1-dev.416",
3
+ "version": "0.0.1-dev.418",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",