@crystaltech/hsms-shared-ui 0.7.10 → 0.7.11
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/index.es.js +22 -18
- package/dist/index.js +2 -2
- package/dist/sw.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -32,11 +32,11 @@ const Ln = {
|
|
|
32
32
|
// Changed to match primary color
|
|
33
33
|
},
|
|
34
34
|
primary: {
|
|
35
|
-
main: "#
|
|
35
|
+
main: "#2363ec"
|
|
36
36
|
// Changed to Material UI default primary blue
|
|
37
37
|
},
|
|
38
38
|
secondary: {
|
|
39
|
-
main: "#
|
|
39
|
+
main: "#2aac9f"
|
|
40
40
|
// Changed to Material UI default secondary color
|
|
41
41
|
},
|
|
42
42
|
background: {
|
|
@@ -28053,15 +28053,18 @@ function yF({
|
|
|
28053
28053
|
hospitalInfo: c
|
|
28054
28054
|
}) {
|
|
28055
28055
|
const d = c || JSON.parse(localStorage.getItem("hospital_info") || "{}") || {}, f = `${n * 1.2}px`, p = `${i * 1.2}px`, A = `${s * 1.4}px`, m = `${l * 1.4}px`;
|
|
28056
|
-
|
|
28057
|
-
|
|
28058
|
-
|
|
28059
|
-
|
|
28060
|
-
|
|
28061
|
-
|
|
28062
|
-
|
|
28063
|
-
|
|
28064
|
-
|
|
28056
|
+
if (d.bannerWithImage && d.bannerUrl)
|
|
28057
|
+
return /* @__PURE__ */ g.jsx(
|
|
28058
|
+
"img",
|
|
28059
|
+
{
|
|
28060
|
+
src: Gr(d.bannerUrl),
|
|
28061
|
+
alt: "Banner",
|
|
28062
|
+
style: { width: "100%" },
|
|
28063
|
+
className: "prescription-banner"
|
|
28064
|
+
}
|
|
28065
|
+
);
|
|
28066
|
+
const h = (...b) => b.filter((y) => !!y).join(", ");
|
|
28067
|
+
return /* @__PURE__ */ g.jsx(Qe, { children: /* @__PURE__ */ g.jsxs(
|
|
28065
28068
|
Ft,
|
|
28066
28069
|
{
|
|
28067
28070
|
direction: "row",
|
|
@@ -28120,18 +28123,19 @@ function yF({
|
|
|
28120
28123
|
}
|
|
28121
28124
|
),
|
|
28122
28125
|
/* @__PURE__ */ g.jsxs(Ft, { spacing: 0.25, children: [
|
|
28123
|
-
/* @__PURE__ */ g.
|
|
28126
|
+
/* @__PURE__ */ g.jsx(
|
|
28124
28127
|
ke,
|
|
28125
28128
|
{
|
|
28126
28129
|
sx: {
|
|
28127
28130
|
fontSize: s,
|
|
28128
28131
|
lineHeight: A
|
|
28129
28132
|
},
|
|
28130
|
-
children:
|
|
28131
|
-
d.
|
|
28132
|
-
|
|
28133
|
-
d.
|
|
28134
|
-
|
|
28133
|
+
children: h(
|
|
28134
|
+
d.city,
|
|
28135
|
+
d.upazila,
|
|
28136
|
+
d.district,
|
|
28137
|
+
d.division
|
|
28138
|
+
) || "Address"
|
|
28135
28139
|
}
|
|
28136
28140
|
),
|
|
28137
28141
|
/* @__PURE__ */ g.jsxs(
|
|
@@ -29047,7 +29051,7 @@ const xQ = () => {
|
|
|
29047
29051
|
"hsms-qms-client": {
|
|
29048
29052
|
roles: ["QMS_ADMIN", "QMS_USER"]
|
|
29049
29053
|
}
|
|
29050
|
-
}, i = JSON.parse(localStorage.getItem("user_info") || "{}"), a = na(i, ["SUPER_ADMIN"]) ? r : JSON.parse(localStorage.getItem("user_info") || "{}").resource_access || r, s = (u) => {
|
|
29054
|
+
}, i = JSON.parse(localStorage.getItem("user_info") || "{}"), a = na(i, ["SUPER_ADMIN", "FACILITY_ADMIN"]) ? r : JSON.parse(localStorage.getItem("user_info") || "{}").resource_access || r, s = (u) => {
|
|
29051
29055
|
t(u.currentTarget);
|
|
29052
29056
|
}, l = () => {
|
|
29053
29057
|
t(null);
|