@bahmni/home-app 0.0.1-dev.386 → 0.0.1-dev.387

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 p } from "react/jsx-runtime";
2
- import { u as m, Z as b, r as y, s as H, t as N, Q as v, v as P, H as E, C as G, F as f, J as C, M as O, O as S } from "./index-DZoI2hHO.js";
2
+ import { u as m, r as b, s as y, t as H, v as N, Q as v, x as P, H as E, F as G, J as f, M as S, R as T, S as C } from "./index-C0DNi_Vd.js";
3
3
  import "react";
4
- import { useQuery as T } from "@tanstack/react-query";
5
- const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "AppTile-module_bottom__lcJiG", d = {
4
+ import { useQuery as O } from "@tanstack/react-query";
5
+ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "AppTile-module_bottom__lcJiG", d = {
6
6
  tile: L,
7
7
  label: B,
8
- bottom: F
9
- }, M = ({ id: r, label: n, icon: s, url: l }) => {
8
+ bottom: M
9
+ }, x = ({ id: r, label: n, icon: s, url: l }) => {
10
10
  const { t } = m(), i = t(n);
11
11
  return /* @__PURE__ */ c(
12
12
  b,
@@ -24,10 +24,10 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "
24
24
  ]
25
25
  }
26
26
  );
27
- }, A = "HomePageGrid-module_container__Kxfim", k = "HomePageGrid-module_tileGrid__X6-Bm", x = "HomePageGrid-module_skeletonTile__U-1vu", D = "HomePageGrid-module_emptyState__xEwoK", K = "HomePageGrid-module_errorContainer__IKR3E", o = {
27
+ }, A = "HomePageGrid-module_container__Kxfim", F = "HomePageGrid-module_tileGrid__X6-Bm", k = "HomePageGrid-module_skeletonTile__U-1vu", D = "HomePageGrid-module_emptyState__xEwoK", K = "HomePageGrid-module_errorContainer__IKR3E", o = {
28
28
  container: A,
29
- tileGrid: k,
30
- skeletonTile: x,
29
+ tileGrid: F,
30
+ skeletonTile: k,
31
31
  emptyState: D,
32
32
  errorContainer: K
33
33
  }, I = () => {
@@ -40,7 +40,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "
40
40
  isLoading: _,
41
41
  isError: u,
42
42
  refetch: h
43
- } = T({
43
+ } = O({
44
44
  queryKey: ["home-modules", t],
45
45
  queryFn: () => P("org.bahmni.home.dashboard", t),
46
46
  enabled: !s && l === null && t !== null
@@ -75,7 +75,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "
75
75
  )
76
76
  }
77
77
  ) : i.length === 0 ? /* @__PURE__ */ e("div", { className: o.emptyState, role: "status", children: r("HOME_NO_MODULES") }) : /* @__PURE__ */ e("div", { className: o.container, children: /* @__PURE__ */ e("div", { className: o.tileGrid, children: i.map((a) => /* @__PURE__ */ e(
78
- M,
78
+ x,
79
79
  {
80
80
  id: a.id,
81
81
  label: a.translationKey ?? a.label,
@@ -84,23 +84,23 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "
84
84
  },
85
85
  a.id
86
86
  )) }) });
87
- }, $ = "HomePageHeader-module_locationSelector__foYmn", R = {
88
- locationSelector: $
89
- }, U = () => /* @__PURE__ */ e(
90
- C,
87
+ }, R = "HomePageHeader-module_locationSelector__foYmn", $ = {
88
+ locationSelector: R
89
+ }, q = () => /* @__PURE__ */ e(
90
+ S,
91
91
  {
92
92
  ariaLabel: "Bahmni",
93
93
  brandPrefix: "Home",
94
94
  brandHref: "/",
95
95
  globalFeatures: [
96
- /* @__PURE__ */ e("div", { className: R.locationSelector, children: /* @__PURE__ */ e(S, {}) }, "location")
96
+ /* @__PURE__ */ e("div", { className: $.locationSelector, children: /* @__PURE__ */ e(C, {}) }, "location")
97
97
  ],
98
- userMenu: /* @__PURE__ */ e(O, {})
98
+ userMenu: /* @__PURE__ */ e(T, {})
99
99
  }
100
- ), q = "HomePage-module_homePageBody__0qtrS", z = {
101
- homePageBody: q
100
+ ), U = "HomePage-module_homePageBody__0qtrS", z = {
101
+ homePageBody: U
102
102
  }, X = () => /* @__PURE__ */ c(p, { children: [
103
- /* @__PURE__ */ e(U, {}),
103
+ /* @__PURE__ */ e(q, {}),
104
104
  /* @__PURE__ */ e("main", { className: z.homePageBody, children: /* @__PURE__ */ e(I, {}) })
105
105
  ] });
106
106
  export {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aK as a } from "./index-DZoI2hHO.js";
1
+ import { aK as a } from "./index-C0DNi_Vd.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.386",
3
+ "version": "0.0.1-dev.387",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",