hplx-feature-library 1.0.269 → 1.0.270

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.
@@ -120222,61 +120222,46 @@ const PrintPediaChartsPdf = memo(
120222
120222
  }, formatText = (N) => typeof N != "string" ? N?.toString() || "" : N.replace(/<br\s*\/?>/gi, `
120223
120223
  `), stripHtml = (N) => N ? N.replace(/<[^>]*>?/gm, "") : "", TableCell = ({
120224
120224
  children: N,
120225
- // Use children for more complex content
120226
120225
  width: W,
120227
- isHeader: M = !1,
120228
- align: Y = "left",
120229
- fontSize: X
120230
- }) => /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { width: W, padding: "8px 5px", flexDirection: "row" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
120231
- Text,
120232
- {
120233
- style: {
120234
- fontFamily: M ? FontFamily.Helvetica.bold : FontFamily.Helvetica.regular,
120235
- fontSize: X,
120236
- textAlign: Y
120237
- },
120238
- children: N
120239
- }
120240
- ) }), LabTestResultTable = ({ testTemplates: N, colors: W, fontSize: M }) => {
120226
+ align: M = "left"
120227
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { width: W, padding: "8px 5px", flexDirection: "row", alignItems: "center", textAlign: M }, children: N }), LabTestResultTable = ({ testTemplates: N, colors: W, fontSize: M }) => {
120241
120228
  const Y = ["TEST PARAMETER", "RESULT", "BIOLOGICAL REF. INTERVAL"], X = ["45%", "25%", "30%"], I = StyleSheet.create({
120242
120229
  table: { marginBottom: 15, color: "#1D2939" },
120243
- tableRow: { flexDirection: "row", alignItems: "center" },
120244
- headerRow: { borderTop: `1px solid ${W.borderColor}` },
120230
+ tableRow: { flexDirection: "row", borderTop: `1px solid ${W.borderColor}` },
120231
+ headerRow: { backgroundColor: "#F8F9FC" },
120245
120232
  templateHeaderRow: {
120246
120233
  flexDirection: "row",
120247
120234
  backgroundColor: "#F8F9FC",
120248
120235
  padding: "8px 5px"
120249
120236
  },
120250
- templateHeaderText: {
120251
- fontFamily: FontFamily.Helvetica.bold,
120252
- fontSize: M
120253
- },
120237
+ templateHeaderText: { fontFamily: FontFamily.Helvetica.bold, fontSize: M },
120254
120238
  remarksRow: {
120255
120239
  flexDirection: "row",
120256
- padding: "8px 5px"
120240
+ padding: "8px 5px",
120241
+ borderTop: `1px solid ${W.borderColor}`
120257
120242
  },
120258
120243
  remarksText: { fontFamily: FontFamily.Helvetica.regular, fontSize: M },
120259
120244
  remarksLabel: { fontFamily: FontFamily.Helvetica.bold, fontSize: M },
120260
- boldText: { fontFamily: FontFamily.Helvetica.bold },
120261
- regularText: { fontFamily: FontFamily.Helvetica.regular }
120245
+ boldText: { fontFamily: FontFamily.Helvetica.bold, fontSize: M },
120246
+ regularText: { fontFamily: FontFamily.Helvetica.regular, fontSize: M }
120262
120247
  });
120263
120248
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.table, children: [
120264
- /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { ...I.tableRow, ...I.headerRow }, fixed: !0, children: Y.map((w, x) => /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[x], isHeader: !0, fontSize: M, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: w }) }, w)) }),
120249
+ /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { ...I.tableRow, ...I.headerRow }, fixed: !0, children: Y.map((w, x) => /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[x], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.boldText, children: w }) }, w)) }),
120265
120250
  N?.map((w) => {
120266
120251
  const x = stripHtml(w.remarks);
120267
120252
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
120268
120253
  /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: I.templateHeaderRow, wrap: !1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.templateHeaderText, children: w.template_name }) }),
120269
120254
  w.tests.map((D) => /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.tableRow, wrap: !1, children: [
120270
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[0], fontSize: M, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: D.out_of_range ? I.boldText : I.regularText, children: D.test_name }) }),
120271
- /* @__PURE__ */ jsxRuntimeExports.jsxs(TableCell, { width: X[1], fontSize: M, children: [
120255
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: D.out_of_range ? I.boldText : I.regularText, children: D.test_name }) }),
120256
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(TableCell, { width: X[1], children: [
120272
120257
  /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: D.out_of_range ? I.boldText : I.regularText, children: D.test_value }),
120273
120258
  /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.regularText, children: ` ${formatText(D.test_units) || ""}` })
120274
120259
  ] }),
120275
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[2], fontSize: M, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.regularText, children: D.test_range }) })
120260
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[2], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.regularText, children: D.test_range }) })
120276
120261
  ] }, D.test_id)),
120277
120262
  x && /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.remarksRow, wrap: !1, children: [
120278
120263
  /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.remarksLabel, children: "Remarks: " }),
120279
- /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.remarksText, children: x })
120264
+ /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { flex: 1, paddingLeft: 4 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.remarksText, children: x }) })
120280
120265
  ] })
120281
120266
  ] }, w.template_id);
120282
120267
  })
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { P as r } from "./PediatricsCalculatorTable-awqyE356.js";
2
- import { P as e } from "./PatientPopupContainer-Df85PZU3.js";
2
+ import { P as e } from "./PatientPopupContainer-DNAHFCpd.js";
3
3
  import { A as i } from "./Attachments-DJGZozIu.js";
4
4
  import { P } from "./PatientAddEdit-Bl8UC3Qt.js";
5
5
  import { S as m } from "./SearchPatients-Eju2303W.js";
6
6
  import { N as n } from "./NineDots-CDJrCwoA.js";
7
7
  import { U as d } from "./UserProfile-DwQiAi_t.js";
8
- import { P as c } from "./PrintModal-C9TdVGR4.js";
8
+ import { P as c } from "./PrintModal-CniXg-Js.js";
9
9
  import { A as u } from "./AllInvestigationsTable-2K35PFTn.js";
10
10
  export {
11
11
  u as AllInvestigations,
@@ -1,4 +1,4 @@
1
- import { P as f } from "../PrintModal-C9TdVGR4.js";
1
+ import { P as f } from "../PrintModal-CniXg-Js.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.269",
4
+ "version": "1.0.270",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",