@bookmypuja-tech/bmp-pdf 0.2.5 → 0.2.6

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 CHANGED
@@ -147,6 +147,14 @@ interface ISummaryPujaList {
147
147
  pujas: ISummaryPuja[];
148
148
  }
149
149
 
150
+ interface CombinedReportData {
151
+ date: Date;
152
+ templeName: string;
153
+ pujaData: IPuja[];
154
+ prasadData: IPrasadItem[];
155
+ deliveryData: IPrasadItem$1[];
156
+ }
157
+
150
158
  type sizeOptions = "A4" | "2Inch";
151
159
  declare const getPrintBlob: ({ size, data, dates, }: {
152
160
  size: sizeOptions;
@@ -158,7 +166,7 @@ declare const printDevoteeReceipt2Inch: (data: IPujaReceipt) => Promise<void>;
158
166
  declare const printTotalReceipt2Inch: (data: ITotalReceipt) => Promise<void>;
159
167
  declare const printePujaReport2Inch: (data: IPujaReport) => Promise<void>;
160
168
  declare const printQuickPrintReceipt2Inch: (data: IQuickReport) => Promise<void>;
161
- type IReportOptions = "kitchen" | "transaction" | "prasad-delivery" | "prasad" | "puja" | "puja-summary";
169
+ type IReportOptions = "kitchen" | "transaction" | "prasad-delivery" | "prasad" | "puja" | "puja-summary" | "combined-repot";
162
170
  type IReportSize = "A4";
163
171
  type ReportDataTypes = {
164
172
  kitchen: KitchenReportProps;
@@ -167,6 +175,7 @@ type ReportDataTypes = {
167
175
  prasad: IPrasadReport;
168
176
  puja: IPujaList;
169
177
  "puja-summary": ISummaryPujaList;
178
+ "combined-repot": CombinedReportData;
170
179
  };
171
180
  declare class reportPrinter<T extends IReportOptions> {
172
181
  option: T;
package/dist/index.js CHANGED
@@ -216,7 +216,7 @@ var A4Print = ({
216
216
  var A4Print_default = A4Print;
217
217
 
218
218
  // src/index.tsx
219
- import React13 from "react";
219
+ import React14 from "react";
220
220
 
221
221
  // src/sizes/T2Inch.tsx
222
222
  import React2 from "react";
@@ -1687,21 +1687,591 @@ var A4Summary_default = A4Summary;
1687
1687
 
1688
1688
  // src/index.tsx
1689
1689
  import { Font as Font3 } from "@react-pdf/renderer";
1690
+
1691
+ // src/sizes/a4/A4CombinedReport.tsx
1692
+ import { Document as Document9, Image as Image11, Page as Page9, Text as Text13, View as View9 } from "@react-pdf/renderer";
1693
+ import React13 from "react";
1694
+ var A4CombinedReport = ({
1695
+ date,
1696
+ templeName,
1697
+ pujaData,
1698
+ prasadData,
1699
+ deliveryData
1700
+ }) => {
1701
+ return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(Document9, null, /* @__PURE__ */ React13.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
1702
+ Image11,
1703
+ {
1704
+ fixed: true,
1705
+ style: {
1706
+ height: 15,
1707
+ width: 75,
1708
+ marginBottom: 10
1709
+ },
1710
+ src: bmpLogo
1711
+ }
1712
+ ), /* @__PURE__ */ React13.createElement(Text13, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React13.createElement(Text13, { style: { fontSize: 14, fontWeight: "bold" } }, "Puja List"), /* @__PURE__ */ React13.createElement(Text13, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React13.createElement(
1713
+ View9,
1714
+ {
1715
+ style: {
1716
+ display: "flex",
1717
+ flexDirection: "column",
1718
+ marginTop: 20
1719
+ }
1720
+ },
1721
+ pujaData.map((puja, pujaIndex) => {
1722
+ return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(View9, { wrap: false, style: { marginBottom: 25 } }, /* @__PURE__ */ React13.createElement(View9, null, /* @__PURE__ */ React13.createElement(
1723
+ Text13,
1724
+ {
1725
+ style: {
1726
+ fontSize: 10,
1727
+ fontWeight: "bold",
1728
+ border: "1px solid black",
1729
+ padding: 6,
1730
+ textAlign: "center",
1731
+ borderBottom: "none"
1732
+ }
1733
+ },
1734
+ puja.name,
1735
+ " - ",
1736
+ puja.bookings.length
1737
+ )), /* @__PURE__ */ React13.createElement(
1738
+ View9,
1739
+ {
1740
+ style: {
1741
+ display: "flex",
1742
+ flexDirection: "row",
1743
+ border: "1px solid black"
1744
+ }
1745
+ },
1746
+ /* @__PURE__ */ React13.createElement(
1747
+ View9,
1748
+ {
1749
+ style: {
1750
+ padding: 6,
1751
+ fontSize: 10,
1752
+ borderRight: "1px solid black",
1753
+ fontWeight: "semibold",
1754
+ width: "10%"
1755
+ }
1756
+ },
1757
+ /* @__PURE__ */ React13.createElement(Text13, null, "Sr No")
1758
+ ),
1759
+ /* @__PURE__ */ React13.createElement(
1760
+ View9,
1761
+ {
1762
+ style: {
1763
+ padding: 6,
1764
+ fontSize: 10,
1765
+ borderRight: "1px solid black",
1766
+ fontWeight: "semibold",
1767
+ width: "20%"
1768
+ }
1769
+ },
1770
+ /* @__PURE__ */ React13.createElement(Text13, null, "Invoice No")
1771
+ ),
1772
+ /* @__PURE__ */ React13.createElement(
1773
+ View9,
1774
+ {
1775
+ style: {
1776
+ padding: 6,
1777
+ fontSize: 10,
1778
+ borderRight: "1px solid black",
1779
+ fontWeight: "semibold",
1780
+ width: "35%"
1781
+ }
1782
+ },
1783
+ /* @__PURE__ */ React13.createElement(Text13, null, "Devotee Name")
1784
+ ),
1785
+ /* @__PURE__ */ React13.createElement(
1786
+ View9,
1787
+ {
1788
+ style: {
1789
+ padding: 6,
1790
+ fontSize: 10,
1791
+ borderRight: "1px solid black",
1792
+ fontWeight: "semibold",
1793
+ width: "25%"
1794
+ }
1795
+ },
1796
+ /* @__PURE__ */ React13.createElement(Text13, null, "Nakshatra")
1797
+ ),
1798
+ /* @__PURE__ */ React13.createElement(
1799
+ View9,
1800
+ {
1801
+ style: {
1802
+ padding: 6,
1803
+ fontSize: 10,
1804
+ borderRight: "none",
1805
+ fontWeight: "semibold",
1806
+ width: "10%"
1807
+ }
1808
+ },
1809
+ /* @__PURE__ */ React13.createElement(Text13, null, "Qty")
1810
+ )
1811
+ ), puja.bookings.map((booking, bookingIndex) => {
1812
+ return /* @__PURE__ */ React13.createElement(React13.Fragment, null, /* @__PURE__ */ React13.createElement(
1813
+ View9,
1814
+ {
1815
+ style: {
1816
+ display: "flex",
1817
+ flexDirection: "row",
1818
+ border: "1px solid black",
1819
+ borderTop: "none",
1820
+ width: "100%"
1821
+ }
1822
+ },
1823
+ /* @__PURE__ */ React13.createElement(
1824
+ View9,
1825
+ {
1826
+ style: {
1827
+ padding: 6,
1828
+ fontSize: 10,
1829
+ borderRight: "1px solid black",
1830
+ width: "10%"
1831
+ }
1832
+ },
1833
+ /* @__PURE__ */ React13.createElement(Text13, null, bookingIndex + 1)
1834
+ ),
1835
+ /* @__PURE__ */ React13.createElement(
1836
+ View9,
1837
+ {
1838
+ style: {
1839
+ display: "flex",
1840
+ flexDirection: "column",
1841
+ width: "90%"
1842
+ }
1843
+ },
1844
+ /* @__PURE__ */ React13.createElement(
1845
+ View9,
1846
+ {
1847
+ style: {
1848
+ display: "flex",
1849
+ flexDirection: "row"
1850
+ }
1851
+ },
1852
+ /* @__PURE__ */ React13.createElement(
1853
+ View9,
1854
+ {
1855
+ style: {
1856
+ padding: 6,
1857
+ fontSize: 10,
1858
+ borderRight: "1px solid black",
1859
+ width: `${20 * 1.11111}%`
1860
+ }
1861
+ },
1862
+ /* @__PURE__ */ React13.createElement(Text13, null, booking.invoiceNumber)
1863
+ ),
1864
+ /* @__PURE__ */ React13.createElement(
1865
+ View9,
1866
+ {
1867
+ style: {
1868
+ padding: 6,
1869
+ fontSize: 10,
1870
+ borderRight: "1px solid black",
1871
+ width: `${35 * 1.11111}%`
1872
+ }
1873
+ },
1874
+ /* @__PURE__ */ React13.createElement(Text13, null, booking.devoteeName)
1875
+ ),
1876
+ /* @__PURE__ */ React13.createElement(
1877
+ View9,
1878
+ {
1879
+ style: {
1880
+ padding: 6,
1881
+ fontSize: 10,
1882
+ borderRight: "1px solid black",
1883
+ width: `${25 * 1.11111}%`
1884
+ }
1885
+ },
1886
+ /* @__PURE__ */ React13.createElement(Text13, null, booking.nakshatra)
1887
+ ),
1888
+ /* @__PURE__ */ React13.createElement(
1889
+ View9,
1890
+ {
1891
+ style: {
1892
+ padding: 6,
1893
+ fontSize: 10,
1894
+ borderRight: "none",
1895
+ width: `${10 * 1.11111}%`
1896
+ }
1897
+ },
1898
+ /* @__PURE__ */ React13.createElement(Text13, null, booking.quantity)
1899
+ )
1900
+ ),
1901
+ booking.priestNote && /* @__PURE__ */ React13.createElement(
1902
+ View9,
1903
+ {
1904
+ style: {
1905
+ padding: 6,
1906
+ fontSize: 10,
1907
+ borderTop: "1px solid black",
1908
+ width: "100%"
1909
+ }
1910
+ },
1911
+ /* @__PURE__ */ React13.createElement(Text13, null, booking.priestNote)
1912
+ )
1913
+ )
1914
+ ));
1915
+ })));
1916
+ })
1917
+ )), /* @__PURE__ */ React13.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
1918
+ Image11,
1919
+ {
1920
+ fixed: true,
1921
+ style: {
1922
+ height: 15,
1923
+ width: 75,
1924
+ marginBottom: 10
1925
+ },
1926
+ src: bmpLogo
1927
+ }
1928
+ ), /* @__PURE__ */ React13.createElement(Text13, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React13.createElement(Text13, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Report"), /* @__PURE__ */ React13.createElement(Text13, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React13.createElement(
1929
+ View9,
1930
+ {
1931
+ style: {
1932
+ display: "flex",
1933
+ flexDirection: "column",
1934
+ marginTop: 20
1935
+ }
1936
+ },
1937
+ /* @__PURE__ */ React13.createElement(
1938
+ View9,
1939
+ {
1940
+ style: {
1941
+ display: "flex",
1942
+ flexDirection: "row",
1943
+ border: "1px solid black",
1944
+ fontWeight: "semibold",
1945
+ fontSize: 10
1946
+ }
1947
+ },
1948
+ /* @__PURE__ */ React13.createElement(
1949
+ View9,
1950
+ {
1951
+ style: {
1952
+ padding: 6,
1953
+ borderRight: "1px solid black",
1954
+ width: "10%"
1955
+ }
1956
+ },
1957
+ /* @__PURE__ */ React13.createElement(Text13, null, "Sr no")
1958
+ ),
1959
+ /* @__PURE__ */ React13.createElement(
1960
+ View9,
1961
+ {
1962
+ style: {
1963
+ padding: 6,
1964
+ borderRight: "1px solid black",
1965
+ width: "20%"
1966
+ }
1967
+ },
1968
+ /* @__PURE__ */ React13.createElement(Text13, null, "Invoice Number")
1969
+ ),
1970
+ /* @__PURE__ */ React13.createElement(
1971
+ View9,
1972
+ {
1973
+ style: {
1974
+ padding: 6,
1975
+ borderRight: "1px solid black",
1976
+ width: "30%"
1977
+ }
1978
+ },
1979
+ /* @__PURE__ */ React13.createElement(Text13, null, "Devotee Name")
1980
+ ),
1981
+ /* @__PURE__ */ React13.createElement(
1982
+ View9,
1983
+ {
1984
+ style: {
1985
+ padding: 6,
1986
+ borderRight: "1px solid black",
1987
+ width: "30%"
1988
+ }
1989
+ },
1990
+ /* @__PURE__ */ React13.createElement(Text13, null, "Prasad Name")
1991
+ ),
1992
+ /* @__PURE__ */ React13.createElement(
1993
+ View9,
1994
+ {
1995
+ style: {
1996
+ padding: 6,
1997
+ width: "10%"
1998
+ }
1999
+ },
2000
+ /* @__PURE__ */ React13.createElement(Text13, null, "Qty")
2001
+ )
2002
+ ),
2003
+ prasadData.map((item, index) => {
2004
+ return /* @__PURE__ */ React13.createElement(
2005
+ View9,
2006
+ {
2007
+ style: {
2008
+ display: "flex",
2009
+ flexDirection: "row",
2010
+ border: "1px solid black",
2011
+ borderTop: "none",
2012
+ fontSize: 10
2013
+ }
2014
+ },
2015
+ /* @__PURE__ */ React13.createElement(
2016
+ View9,
2017
+ {
2018
+ style: {
2019
+ padding: 6,
2020
+ borderRight: "1px solid black",
2021
+ width: "10%"
2022
+ }
2023
+ },
2024
+ /* @__PURE__ */ React13.createElement(Text13, null, index + 1)
2025
+ ),
2026
+ /* @__PURE__ */ React13.createElement(
2027
+ View9,
2028
+ {
2029
+ style: {
2030
+ padding: 6,
2031
+ borderRight: "1px solid black",
2032
+ width: "20%"
2033
+ }
2034
+ },
2035
+ /* @__PURE__ */ React13.createElement(Text13, null, item.invoiceNumber)
2036
+ ),
2037
+ /* @__PURE__ */ React13.createElement(
2038
+ View9,
2039
+ {
2040
+ style: {
2041
+ padding: 6,
2042
+ borderRight: "1px solid black",
2043
+ width: "30%"
2044
+ }
2045
+ },
2046
+ /* @__PURE__ */ React13.createElement(Text13, null, item.devoteeName)
2047
+ ),
2048
+ /* @__PURE__ */ React13.createElement(
2049
+ View9,
2050
+ {
2051
+ style: {
2052
+ padding: 6,
2053
+ borderRight: "1px solid black",
2054
+ width: "30%"
2055
+ }
2056
+ },
2057
+ /* @__PURE__ */ React13.createElement(Text13, null, item.prasadName)
2058
+ ),
2059
+ /* @__PURE__ */ React13.createElement(
2060
+ View9,
2061
+ {
2062
+ style: {
2063
+ padding: 6,
2064
+ width: "10%"
2065
+ }
2066
+ },
2067
+ /* @__PURE__ */ React13.createElement(Text13, null, item.quantity)
2068
+ )
2069
+ );
2070
+ })
2071
+ )), /* @__PURE__ */ React13.createElement(Page9, { size: "A4", style: { padding: 30, fontFamily: "Noto Sans" } }, /* @__PURE__ */ React13.createElement(
2072
+ Image11,
2073
+ {
2074
+ fixed: true,
2075
+ style: {
2076
+ height: 15,
2077
+ width: 75,
2078
+ marginBottom: 10
2079
+ },
2080
+ src: bmpLogo
2081
+ }
2082
+ ), /* @__PURE__ */ React13.createElement(Text13, { style: { fontSize: 11, marginTop: 5, textAlign: "right" } }, "Date: ", date.toDateString()), /* @__PURE__ */ React13.createElement(Text13, { style: { fontSize: 14, fontWeight: "bold" } }, "Prasad Delivery Address"), /* @__PURE__ */ React13.createElement(Text13, { style: { fontSize: 12 } }, `${templeName}`), /* @__PURE__ */ React13.createElement(
2083
+ View9,
2084
+ {
2085
+ style: {
2086
+ display: "flex",
2087
+ flexDirection: "column",
2088
+ marginTop: 20
2089
+ }
2090
+ },
2091
+ /* @__PURE__ */ React13.createElement(
2092
+ View9,
2093
+ {
2094
+ style: {
2095
+ display: "flex",
2096
+ flexDirection: "row",
2097
+ border: "1px solid black",
2098
+ fontWeight: "semibold",
2099
+ fontSize: 10
2100
+ }
2101
+ },
2102
+ /* @__PURE__ */ React13.createElement(
2103
+ View9,
2104
+ {
2105
+ style: {
2106
+ padding: 6,
2107
+ borderRight: "1px solid black",
2108
+ width: "10%"
2109
+ }
2110
+ },
2111
+ /* @__PURE__ */ React13.createElement(Text13, null, "Date")
2112
+ ),
2113
+ /* @__PURE__ */ React13.createElement(
2114
+ View9,
2115
+ {
2116
+ style: {
2117
+ padding: 6,
2118
+ borderRight: "1px solid black",
2119
+ width: "13%"
2120
+ }
2121
+ },
2122
+ /* @__PURE__ */ React13.createElement(Text13, null, "Invoice")
2123
+ ),
2124
+ /* @__PURE__ */ React13.createElement(
2125
+ View9,
2126
+ {
2127
+ style: {
2128
+ padding: 6,
2129
+ borderRight: "1px solid black",
2130
+ width: "18%"
2131
+ }
2132
+ },
2133
+ /* @__PURE__ */ React13.createElement(Text13, null, "Devotee Name")
2134
+ ),
2135
+ /* @__PURE__ */ React13.createElement(
2136
+ View9,
2137
+ {
2138
+ style: {
2139
+ padding: 6,
2140
+ borderRight: "1px solid black",
2141
+ width: "25%"
2142
+ }
2143
+ },
2144
+ /* @__PURE__ */ React13.createElement(Text13, null, "Address")
2145
+ ),
2146
+ /* @__PURE__ */ React13.createElement(
2147
+ View9,
2148
+ {
2149
+ style: {
2150
+ padding: 6,
2151
+ borderRight: "1px solid black",
2152
+ width: "20%"
2153
+ }
2154
+ },
2155
+ /* @__PURE__ */ React13.createElement(Text13, null, "Puja Name")
2156
+ ),
2157
+ /* @__PURE__ */ React13.createElement(
2158
+ View9,
2159
+ {
2160
+ style: {
2161
+ padding: 6,
2162
+ width: "15%"
2163
+ }
2164
+ },
2165
+ /* @__PURE__ */ React13.createElement(Text13, null, "Amount")
2166
+ )
2167
+ ),
2168
+ deliveryData.map((item, index) => {
2169
+ return /* @__PURE__ */ React13.createElement(
2170
+ View9,
2171
+ {
2172
+ style: {
2173
+ display: "flex",
2174
+ flexDirection: "row",
2175
+ border: "1px solid black",
2176
+ borderTop: "none",
2177
+ fontSize: 10
2178
+ }
2179
+ },
2180
+ /* @__PURE__ */ React13.createElement(
2181
+ View9,
2182
+ {
2183
+ style: {
2184
+ padding: 6,
2185
+ borderRight: "1px solid black",
2186
+ width: "10%"
2187
+ }
2188
+ },
2189
+ /* @__PURE__ */ React13.createElement(Text13, null, new Date(item.date).toLocaleDateString("en-GB", {
2190
+ day: "2-digit",
2191
+ month: "2-digit",
2192
+ year: "2-digit"
2193
+ }))
2194
+ ),
2195
+ /* @__PURE__ */ React13.createElement(
2196
+ View9,
2197
+ {
2198
+ style: {
2199
+ padding: 6,
2200
+ borderRight: "1px solid black",
2201
+ width: "13%"
2202
+ }
2203
+ },
2204
+ /* @__PURE__ */ React13.createElement(Text13, null, item.invoiceNumber)
2205
+ ),
2206
+ /* @__PURE__ */ React13.createElement(
2207
+ View9,
2208
+ {
2209
+ style: {
2210
+ padding: 6,
2211
+ borderRight: "1px solid black",
2212
+ width: "18%"
2213
+ }
2214
+ },
2215
+ /* @__PURE__ */ React13.createElement(Text13, null, item.devoteeName)
2216
+ ),
2217
+ /* @__PURE__ */ React13.createElement(
2218
+ View9,
2219
+ {
2220
+ style: {
2221
+ padding: 6,
2222
+ borderRight: "1px solid black",
2223
+ width: "25%"
2224
+ }
2225
+ },
2226
+ /* @__PURE__ */ React13.createElement(Text13, null, item.address)
2227
+ ),
2228
+ /* @__PURE__ */ React13.createElement(
2229
+ View9,
2230
+ {
2231
+ style: {
2232
+ padding: 6,
2233
+ borderRight: "1px solid black",
2234
+ width: "20%"
2235
+ }
2236
+ },
2237
+ /* @__PURE__ */ React13.createElement(Text13, null, item.pujaName)
2238
+ ),
2239
+ /* @__PURE__ */ React13.createElement(
2240
+ View9,
2241
+ {
2242
+ style: {
2243
+ padding: 6,
2244
+ width: "15%"
2245
+ }
2246
+ },
2247
+ /* @__PURE__ */ React13.createElement(Text13, null, item.amount.toLocaleString("en-IN", {
2248
+ maximumFractionDigits: 2,
2249
+ style: "currency",
2250
+ currency: "INR"
2251
+ }))
2252
+ )
2253
+ );
2254
+ })
2255
+ ))));
2256
+ };
2257
+ var A4CombinedReport_default = A4CombinedReport;
2258
+
2259
+ // src/index.tsx
1690
2260
  var getPrintBlob = ({
1691
2261
  size,
1692
2262
  data,
1693
2263
  dates
1694
2264
  }) => {
1695
2265
  if (size === "A4") {
1696
- const blob = pdf(/* @__PURE__ */ React13.createElement(A4Print_default, { data, dates })).toBlob();
2266
+ const blob = pdf(/* @__PURE__ */ React14.createElement(A4Print_default, { data, dates })).toBlob();
1697
2267
  return blob;
1698
2268
  } else {
1699
- const blob = pdf(/* @__PURE__ */ React13.createElement(T2Inch_default, { data, dates })).toBlob();
2269
+ const blob = pdf(/* @__PURE__ */ React14.createElement(T2Inch_default, { data, dates })).toBlob();
1700
2270
  return blob;
1701
2271
  }
1702
2272
  };
1703
2273
  var getA4SummaryBlob = async () => {
1704
- const blob = await pdf(/* @__PURE__ */ React13.createElement(A4Print_default, { data: [], dates: ["", ""] })).toBlob();
2274
+ const blob = await pdf(/* @__PURE__ */ React14.createElement(A4Print_default, { data: [], dates: ["", ""] })).toBlob();
1705
2275
  return blob;
1706
2276
  };
1707
2277
  var printDevoteeReceipt2Inch = async (data) => {
@@ -1746,6 +2316,9 @@ var options = {
1746
2316
  },
1747
2317
  "puja-summary": {
1748
2318
  A4: A4Summary_default
2319
+ },
2320
+ "combined-repot": {
2321
+ A4: A4CombinedReport_default
1749
2322
  }
1750
2323
  };
1751
2324
  var reportPrinter = class {
@@ -1772,7 +2345,7 @@ var reportPrinter = class {
1772
2345
  }
1773
2346
  async print(data) {
1774
2347
  const ReportComponent = options[this.option][this.size];
1775
- const document = /* @__PURE__ */ React13.createElement(ReportComponent, { ...data });
2348
+ const document = /* @__PURE__ */ React14.createElement(ReportComponent, { ...data });
1776
2349
  const blob = pdf(document).toBlob();
1777
2350
  blob.then((blob2) => {
1778
2351
  var blobURL = URL.createObjectURL(blob2);
@@ -1787,7 +2360,7 @@ var reportPrinter = class {
1787
2360
  }
1788
2361
  async getBlob(data) {
1789
2362
  const ReportComponent = options[this.option][this.size];
1790
- const document = /* @__PURE__ */ React13.createElement(ReportComponent, { ...data });
2363
+ const document = /* @__PURE__ */ React14.createElement(ReportComponent, { ...data });
1791
2364
  const blob = pdf(document).toBlob();
1792
2365
  return blob;
1793
2366
  }
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.2.5",
4
+ "version": "0.2.6",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",