@nxavis/pdf 0.1.0 → 0.1.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.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1424,6 +1424,7 @@ function KeyValue({
|
|
|
1424
1424
|
const containerStyles = [styles.container];
|
|
1425
1425
|
if (style) containerStyles.push(style);
|
|
1426
1426
|
return /* @__PURE__ */ jsx(View, { wrap: !noWrap, style: containerStyles, children: items.map((item, index) => {
|
|
1427
|
+
const itemKey = `${item.key}-${index}`;
|
|
1427
1428
|
const isLast = index === items.length - 1;
|
|
1428
1429
|
const keyStyles = [keyStyleMap[size]];
|
|
1429
1430
|
if (labelColor) {
|
|
@@ -1454,14 +1455,14 @@ function KeyValue({
|
|
|
1454
1455
|
return /* @__PURE__ */ jsxs(View, { style: rowStyles2, children: [
|
|
1455
1456
|
/* @__PURE__ */ jsx(Text, { style: [...keyStyles, { flex: labelFlex }], children: item.key }),
|
|
1456
1457
|
/* @__PURE__ */ jsx(Text, { style: [...valStyles, { flex: 1, textAlign: "right" }], children: item.value })
|
|
1457
|
-
] },
|
|
1458
|
+
] }, itemKey);
|
|
1458
1459
|
}
|
|
1459
1460
|
const rowStyles = [styles.rowVertical];
|
|
1460
1461
|
if (divided && !isLast) rowStyles.push(styles.divider);
|
|
1461
1462
|
return /* @__PURE__ */ jsxs(View, { style: rowStyles, children: [
|
|
1462
1463
|
/* @__PURE__ */ jsx(Text, { style: keyStyles, children: item.key }),
|
|
1463
1464
|
/* @__PURE__ */ jsx(Text, { style: valStyles, children: item.value })
|
|
1464
|
-
] },
|
|
1465
|
+
] }, itemKey);
|
|
1465
1466
|
}) });
|
|
1466
1467
|
}
|
|
1467
1468
|
function createDividerStyles(t) {
|