@bookmypuja-tech/bmp-pdf 0.3.12 → 0.3.14
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 +25 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33,6 +33,8 @@ var robotoBold = "https://res.cloudinary.com/dpaigt2bx/raw/upload/v1742817493/fo
|
|
|
33
33
|
var notoSansRegular = "https://res.cloudinary.com/dpaigt2bx/raw/upload/v1743420993/NotoSans-Regular_pmvebt.ttf";
|
|
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
|
+
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";
|
|
36
38
|
|
|
37
39
|
// src/sizes/A4Print.tsx
|
|
38
40
|
Font.register({
|
|
@@ -3071,13 +3073,13 @@ var A4Invoice = ({ data }) => {
|
|
|
3071
3073
|
/* @__PURE__ */ React17.createElement(
|
|
3072
3074
|
Image14,
|
|
3073
3075
|
{
|
|
3074
|
-
fixed: true,
|
|
3075
3076
|
style: {
|
|
3076
|
-
height:
|
|
3077
|
-
width:
|
|
3078
|
-
marginBottom:
|
|
3077
|
+
height: 20,
|
|
3078
|
+
width: 85,
|
|
3079
|
+
marginBottom: 5,
|
|
3080
|
+
objectFit: "contain"
|
|
3079
3081
|
},
|
|
3080
|
-
src:
|
|
3082
|
+
src: bmpLogo2
|
|
3081
3083
|
}
|
|
3082
3084
|
)
|
|
3083
3085
|
))
|
|
@@ -3088,9 +3090,25 @@ var A4Invoice = ({ data }) => {
|
|
|
3088
3090
|
display: "flex",
|
|
3089
3091
|
flexDirection: "column",
|
|
3090
3092
|
alignItems: "center",
|
|
3091
|
-
marginTop: 20
|
|
3093
|
+
marginTop: 20,
|
|
3094
|
+
position: "relative"
|
|
3092
3095
|
}
|
|
3093
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,
|
|
3094
3112
|
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 12, marginTop: 5, fontWeight: "semibold" } }, "INVOICE #", data.invoiceNumber),
|
|
3095
3113
|
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 10, marginTop: 2 } }, "Status: ", data.status == "confirmed" ? "PAID" : "PENDING")
|
|
3096
3114
|
), /* @__PURE__ */ React17.createElement(
|
|
@@ -3102,7 +3120,7 @@ var A4Invoice = ({ data }) => {
|
|
|
3102
3120
|
},
|
|
3103
3121
|
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 11 } }, "Bill to:"),
|
|
3104
3122
|
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 11 } }, data.devoteeDetails.name),
|
|
3105
|
-
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 11 } },
|
|
3123
|
+
data.devoteeDetails.phone ? /* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 11 } }, data.devoteeDetails.phone) : null,
|
|
3106
3124
|
/* @__PURE__ */ React17.createElement(Text_default, { style: { fontSize: 11 } }, data.bookingDate)
|
|
3107
3125
|
), /* @__PURE__ */ React17.createElement(
|
|
3108
3126
|
View12,
|
package/package.json
CHANGED