@bookmypuja-tech/bmp-pdf 0.3.13 → 0.3.15
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.d.ts +3 -0
- package/dist/index.js +19 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ var notoSansRegular = "https://res.cloudinary.com/dpaigt2bx/raw/upload/v17434209
|
|
|
34
34
|
var notoSansBold = "https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743431605/NotoSans-Bold_kagtvd.ttf";
|
|
35
35
|
var notoSansSemiBold = "https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743431765/NotoSans-SemiBold_o96oas.ttf";
|
|
36
36
|
var bmpLogo2 = "https://res.cloudinary.com/dpaigt2bx/image/upload/v1752653165/BookMyPuja_1_1_bd1xa0.png";
|
|
37
|
+
var paidIcon = "https://res.cloudinary.com/dpaigt2bx/image/upload/v1752654066/paid-5025785_1280_ugmi2p.png";
|
|
37
38
|
|
|
38
39
|
// src/sizes/A4Print.tsx
|
|
39
40
|
Font.register({
|
|
@@ -3072,7 +3073,6 @@ var A4Invoice = ({ data }) => {
|
|
|
3072
3073
|
/* @__PURE__ */ React17.createElement(
|
|
3073
3074
|
Image14,
|
|
3074
3075
|
{
|
|
3075
|
-
fixed: true,
|
|
3076
3076
|
style: {
|
|
3077
3077
|
height: 20,
|
|
3078
3078
|
width: 85,
|
|
@@ -3090,9 +3090,25 @@ var A4Invoice = ({ data }) => {
|
|
|
3090
3090
|
display: "flex",
|
|
3091
3091
|
flexDirection: "column",
|
|
3092
3092
|
alignItems: "center",
|
|
3093
|
-
marginTop: 20
|
|
3093
|
+
marginTop: 20,
|
|
3094
|
+
position: "relative"
|
|
3094
3095
|
}
|
|
3095
3096
|
},
|
|
3097
|
+
data.status === "confirmed" ? /* @__PURE__ */ React17.createElement(
|
|
3098
|
+
Image14,
|
|
3099
|
+
{
|
|
3100
|
+
style: {
|
|
3101
|
+
height: 75,
|
|
3102
|
+
width: 75,
|
|
3103
|
+
marginBottom: 5,
|
|
3104
|
+
objectFit: "contain",
|
|
3105
|
+
position: "absolute",
|
|
3106
|
+
right: "0",
|
|
3107
|
+
bottom: "0"
|
|
3108
|
+
},
|
|
3109
|
+
src: paidIcon
|
|
3110
|
+
}
|
|
3111
|
+
) : null,
|
|
3096
3112
|
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 12, marginTop: 5, fontWeight: "semibold" } }, "INVOICE #", data.invoiceNumber),
|
|
3097
3113
|
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 10, marginTop: 2 } }, "Status: ", data.status == "confirmed" ? "PAID" : "PENDING")
|
|
3098
3114
|
), /* @__PURE__ */ React17.createElement(
|
|
@@ -3517,8 +3533,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3517
3533
|
paddingHorizontal: 10
|
|
3518
3534
|
}
|
|
3519
3535
|
},
|
|
3520
|
-
/* @__PURE__ */ React17.createElement(Text_default,
|
|
3521
|
-
/* @__PURE__ */ React17.createElement(Text_default, null, "2) Prasadam Collection Schedule: Morning Pujas: Sundays, Tuesdays, and Fridays: Collect before 12:00 PM; Mondays, Wednesdays, Thursdays, and Saturdays: Collect before 11:00 AM. Evening Pujas: Collect before 8:00 PM")
|
|
3536
|
+
data.instructions.map((instruction, index) => /* @__PURE__ */ React17.createElement(Text_default, { key: index, style: { fontSize: 8 } }, index + 1, ") ", instruction.instruction))
|
|
3522
3537
|
)
|
|
3523
3538
|
), /* @__PURE__ */ React17.createElement(
|
|
3524
3539
|
View12,
|
package/package.json
CHANGED