@crystaltech/hsms-shared-ui 0.7.10 → 0.7.11-alpha.0.1

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 CHANGED
@@ -21,45 +21,37 @@ const Ln = {
21
21
  palette: {
22
22
  mode: "light",
23
23
  navbar: {
24
- background: "#1976d2",
25
- // Changed to Material UI primary blue
26
- foreground: "#ffffff"
27
- // Changed to white for contrast
24
+ background: "#ffffff",
25
+ foreground: "#000000"
28
26
  },
29
27
  sidebar: {
30
28
  background: "#ffffff",
31
- foreground: "#1976d2"
32
- // Changed to match primary color
29
+ foreground: "#000000"
33
30
  },
34
31
  primary: {
35
32
  main: "#1976d2"
36
- // Changed to Material UI default primary blue
37
33
  },
38
34
  secondary: {
39
- main: "#dc004e"
40
- // Changed to Material UI default secondary color
35
+ main: "#9c27b0"
41
36
  },
42
37
  background: {
43
- default: "#f5f5f5",
44
- // Changed to standard light grey background
38
+ default: "#fafafa",
45
39
  paper: "#ffffff"
46
40
  },
47
41
  text: {
48
42
  primary: "#212121",
49
- // Changed to standard dark text
50
43
  secondary: "#757575"
51
- // Changed to standard secondary text
52
44
  },
53
45
  neutral: {
54
- 100: "#f6f9fc",
55
- 200: "#e9ecef",
56
- 300: "#dee2e6",
57
- 400: "#ced4da",
58
- 500: "#adb5bd",
59
- 600: "#868e96",
60
- 700: "#495057",
61
- 800: "#343a40",
62
- 900: "#212529"
46
+ 100: "#f5f5f5",
47
+ 200: "#eeeeee",
48
+ 300: "#e0e0e0",
49
+ 400: "#bdbdbd",
50
+ 500: "#9e9e9e",
51
+ 600: "#757575",
52
+ 700: "#616161",
53
+ 800: "#424242",
54
+ 900: "#212121"
63
55
  }
64
56
  },
65
57
  typography: {
@@ -28053,15 +28045,18 @@ function yF({
28053
28045
  hospitalInfo: c
28054
28046
  }) {
28055
28047
  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
- return d.bannerWithImage && d.bannerUrl ? /* @__PURE__ */ g.jsx(
28057
- "img",
28058
- {
28059
- src: Gr(d.bannerUrl),
28060
- alt: "Banner",
28061
- style: { width: "100%" },
28062
- className: "prescription-banner"
28063
- }
28064
- ) : /* @__PURE__ */ g.jsx(Qe, { children: /* @__PURE__ */ g.jsxs(
28048
+ if (d.bannerWithImage && d.bannerUrl)
28049
+ return /* @__PURE__ */ g.jsx(
28050
+ "img",
28051
+ {
28052
+ src: Gr(d.bannerUrl),
28053
+ alt: "Banner",
28054
+ style: { width: "100%" },
28055
+ className: "prescription-banner"
28056
+ }
28057
+ );
28058
+ const h = (...b) => b.filter((y) => !!y).join(", ");
28059
+ return /* @__PURE__ */ g.jsx(Qe, { children: /* @__PURE__ */ g.jsxs(
28065
28060
  Ft,
28066
28061
  {
28067
28062
  direction: "row",
@@ -28120,18 +28115,19 @@ function yF({
28120
28115
  }
28121
28116
  ),
28122
28117
  /* @__PURE__ */ g.jsxs(Ft, { spacing: 0.25, children: [
28123
- /* @__PURE__ */ g.jsxs(
28118
+ /* @__PURE__ */ g.jsx(
28124
28119
  ke,
28125
28120
  {
28126
28121
  sx: {
28127
28122
  fontSize: s,
28128
28123
  lineHeight: A
28129
28124
  },
28130
- children: [
28131
- d.address || "Address",
28132
- " | ফোন: ",
28133
- d.phone || "-"
28134
- ]
28125
+ children: h(
28126
+ d.city,
28127
+ d.upazila,
28128
+ d.district,
28129
+ d.division
28130
+ ) || "Address"
28135
28131
  }
28136
28132
  ),
28137
28133
  /* @__PURE__ */ g.jsxs(
@@ -29047,7 +29043,7 @@ const xQ = () => {
29047
29043
  "hsms-qms-client": {
29048
29044
  roles: ["QMS_ADMIN", "QMS_USER"]
29049
29045
  }
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) => {
29046
+ }, 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
29047
  t(u.currentTarget);
29052
29048
  }, l = () => {
29053
29049
  t(null);