@crystaltech/hsms-shared-ui 0.7.3-alpha-0.5 → 0.7.3-alpha-0.6

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.
@@ -2,9 +2,11 @@ interface BannerProps {
2
2
  leftLogoMaxWidth?: number;
3
3
  rightLogoMaxWidth?: number;
4
4
  govtTitleFontSize?: number;
5
+ govtTitleMarginBottom?: number;
5
6
  hospitalNameFontSize?: number;
7
+ hospitalNameMarginBottom?: number;
6
8
  addressFontSize?: number;
7
9
  metaFontSize?: number;
8
10
  }
9
- export default function Banner({ leftLogoMaxWidth, rightLogoMaxWidth, govtTitleFontSize, hospitalNameFontSize, addressFontSize, metaFontSize, }: BannerProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function Banner({ leftLogoMaxWidth, rightLogoMaxWidth, govtTitleFontSize, govtTitleMarginBottom, hospitalNameFontSize, hospitalNameMarginBottom, addressFontSize, metaFontSize, }: BannerProps): import("react/jsx-runtime").JSX.Element;
10
12
  export {};
package/dist/index.es.js CHANGED
@@ -28062,18 +28062,20 @@ function hF({
28062
28062
  leftLogoMaxWidth: e = 120,
28063
28063
  rightLogoMaxWidth: t = 120,
28064
28064
  govtTitleFontSize: n = 18,
28065
- hospitalNameFontSize: r = 28,
28066
- addressFontSize: i = 14,
28067
- metaFontSize: a = 13
28065
+ govtTitleMarginBottom: r = 1,
28066
+ hospitalNameFontSize: i = 28,
28067
+ hospitalNameMarginBottom: a = 1.5,
28068
+ addressFontSize: s = 14,
28069
+ metaFontSize: l = 13
28068
28070
  }) {
28069
- const s = localStorage.getItem("hospital_info"), l = s ? JSON.parse(s) : {
28071
+ const c = localStorage.getItem("hospital_info"), u = c ? JSON.parse(c) : {
28070
28072
  hospitalName: "Hospital Name",
28071
28073
  logoUrl: "default-logo.png"
28072
28074
  };
28073
- return /* @__PURE__ */ g.jsx(g.Fragment, { children: l != null && l.bannerWithImage ? /* @__PURE__ */ g.jsx(g.Fragment, { children: (l == null ? void 0 : l.bannerUrl) && /* @__PURE__ */ g.jsx(
28075
+ return /* @__PURE__ */ g.jsx(g.Fragment, { children: u != null && u.bannerWithImage ? /* @__PURE__ */ g.jsx(g.Fragment, { children: (u == null ? void 0 : u.bannerUrl) && /* @__PURE__ */ g.jsx(
28074
28076
  "img",
28075
28077
  {
28076
- src: _n(l.bannerUrl),
28078
+ src: _n(u.bannerUrl),
28077
28079
  alt: "logo",
28078
28080
  style: { width: "100%" },
28079
28081
  className: "prescription-banner"
@@ -28107,7 +28109,7 @@ function hF({
28107
28109
  sx: {
28108
28110
  fontWeight: 700,
28109
28111
  color: "#1a1a1a",
28110
- mb: 1,
28112
+ mb: r,
28111
28113
  fontSize: n
28112
28114
  },
28113
28115
  children: "গণপ্রজাতন্ত্রী বাংলাদেশ সরকার"
@@ -28118,32 +28120,32 @@ function hF({
28118
28120
  {
28119
28121
  sx: {
28120
28122
  color: "#333",
28121
- mb: 1.5,
28122
- fontSize: r,
28123
+ mb: a,
28124
+ fontSize: i,
28123
28125
  fontWeight: 600
28124
28126
  },
28125
- children: l.hospitalNameBn ?? l.hospitalName
28127
+ children: u.hospitalNameBn ?? u.hospitalName
28126
28128
  }
28127
28129
  ),
28128
- /* @__PURE__ */ g.jsxs(Ft, { spacing: 0.5, children: [
28129
- /* @__PURE__ */ g.jsxs(De, { sx: { fontSize: i }, children: [
28130
- l.address,
28130
+ /* @__PURE__ */ g.jsxs(Ft, { children: [
28131
+ /* @__PURE__ */ g.jsxs(De, { sx: { fontSize: s }, children: [
28132
+ u.address,
28131
28133
  " | ফোন: ",
28132
- l.phone
28134
+ u.phone
28133
28135
  ] }),
28134
- /* @__PURE__ */ g.jsxs(De, { sx: { color: "#555", fontSize: a }, children: [
28136
+ /* @__PURE__ */ g.jsxs(De, { sx: { color: "#555", fontSize: l }, children: [
28135
28137
  "ইমেইল: ",
28136
- l.email,
28138
+ u.email,
28137
28139
  " | ",
28138
- l.website
28140
+ u.website
28139
28141
  ] })
28140
28142
  ] })
28141
28143
  ] }),
28142
- /* @__PURE__ */ g.jsx(Qe, { display: "flex", justifyContent: "center", alignItems: "center", children: l.logoUrl && /* @__PURE__ */ g.jsx(
28144
+ /* @__PURE__ */ g.jsx(Qe, { display: "flex", justifyContent: "center", alignItems: "center", children: u.logoUrl && /* @__PURE__ */ g.jsx(
28143
28145
  Qe,
28144
28146
  {
28145
28147
  component: "img",
28146
- src: _n(l.logoUrl),
28148
+ src: _n(u.logoUrl),
28147
28149
  alt: "Hospital Logo",
28148
28150
  sx: {
28149
28151
  maxWidth: t,