@bookmypuja-tech/bmp-pdf 0.3.26 → 0.3.27

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.
Files changed (2) hide show
  1. package/dist/index.js +41 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1534,9 +1534,13 @@ var A4PujaList = ({
1534
1534
  /* @__PURE__ */ React12.createElement(Text_default, null, "Date")
1535
1535
  )
1536
1536
  ))), pujas.some(
1537
- (puja) => puja.bookings.some((booking) => booking.is_early_reminder && !booking.requires_coupon)
1537
+ (puja) => puja.bookings.some(
1538
+ (booking) => booking.is_early_reminder && !booking.requires_coupon
1539
+ )
1538
1540
  ) ? pujas.flatMap(
1539
- (puja, pujaIndex) => puja.bookings.filter((booking) => booking.is_early_reminder && !booking.requires_coupon).map((booking, bookingIndex) => {
1541
+ (puja, pujaIndex) => puja.bookings.filter(
1542
+ (booking) => booking.is_early_reminder && !booking.requires_coupon
1543
+ ).map((booking, bookingIndex) => {
1540
1544
  serialOfEarlyReminders++;
1541
1545
  return /* @__PURE__ */ React12.createElement(
1542
1546
  View7,
@@ -1609,7 +1613,9 @@ var A4PujaList = ({
1609
1613
  }
1610
1614
  },
1611
1615
  pujas.map((puja, pujaIndex) => {
1612
- if (puja.bookings.every((booking) => booking.is_early_reminder || booking.requires_coupon))
1616
+ if (puja.bookings.every(
1617
+ (booking) => booking.is_early_reminder || booking.requires_coupon
1618
+ ))
1613
1619
  return null;
1614
1620
  serialOfNormalPujas = 0;
1615
1621
  return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(View7, { wrap: false, style: { marginBottom: 25 } }, /* @__PURE__ */ React12.createElement(View7, null, /* @__PURE__ */ React12.createElement(
@@ -1700,7 +1706,8 @@ var A4PujaList = ({
1700
1706
  /* @__PURE__ */ React12.createElement(Text_default, null, "Qty")
1701
1707
  )
1702
1708
  ), puja.bookings.map((booking, bookingIndex) => {
1703
- if (booking.is_early_reminder || booking.requires_coupon) return null;
1709
+ if (booking.is_early_reminder || booking.requires_coupon)
1710
+ return null;
1704
1711
  serialOfNormalPujas++;
1705
1712
  return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
1706
1713
  View7,
@@ -1877,12 +1884,11 @@ var A4PujaList = ({
1877
1884
  ),
1878
1885
  /* @__PURE__ */ React12.createElement(Text_default, null, booking.phone_number)
1879
1886
  ),
1880
- /* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 16 } }, puja.name),
1881
1887
  /* @__PURE__ */ React12.createElement(
1882
1888
  View7,
1883
1889
  {
1884
1890
  style: {
1885
- height: 8,
1891
+ height: 15,
1886
1892
  width: "100%"
1887
1893
  }
1888
1894
  }
@@ -1892,14 +1898,37 @@ var A4PujaList = ({
1892
1898
  {
1893
1899
  style: {
1894
1900
  display: "flex",
1895
- flexDirection: "row",
1896
- flexWrap: "wrap"
1901
+ flexDirection: "row"
1897
1902
  }
1898
1903
  },
1899
- /* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 16 } }, "Name: "),
1900
- /* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 16, flexWrap: "wrap" } }, booking.devoteeName)
1901
- ),
1902
- /* @__PURE__ */ React12.createElement(Text_default, { style: { fontSize: 16 } }, "Nakshatra: ", booking.nakshatra)
1904
+ /* @__PURE__ */ React12.createElement(
1905
+ View7,
1906
+ {
1907
+ style: {
1908
+ width: "40%"
1909
+ }
1910
+ },
1911
+ /* @__PURE__ */ React12.createElement(Text_default, null, booking.devoteeName)
1912
+ ),
1913
+ /* @__PURE__ */ React12.createElement(
1914
+ View7,
1915
+ {
1916
+ style: {
1917
+ width: "30%"
1918
+ }
1919
+ },
1920
+ /* @__PURE__ */ React12.createElement(Text_default, null, booking.nakshatra)
1921
+ ),
1922
+ /* @__PURE__ */ React12.createElement(
1923
+ View7,
1924
+ {
1925
+ style: {
1926
+ width: "30%"
1927
+ }
1928
+ },
1929
+ /* @__PURE__ */ React12.createElement(Text_default, null, puja.name)
1930
+ )
1931
+ )
1903
1932
  );
1904
1933
  });
1905
1934
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bookmypuja-tech/bmp-pdf",
3
3
  "description": "PDF Report Generation for Temple360 and T-360 by BookMyPuja",
4
- "version": "0.3.26",
4
+ "version": "0.3.27",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",