patronet-pdf-generator 1.0.5 → 1.0.7

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 (58) hide show
  1. package/dist/components/generator/index.d.ts +4 -0
  2. package/dist/components/generator/index.d.ts.map +1 -0
  3. package/dist/components/generator/pdf-generator/index.d.ts +2 -0
  4. package/dist/components/generator/pdf-generator/index.d.ts.map +1 -0
  5. package/dist/components/generator/pdf-generator/pdf-generator.d.ts +9 -0
  6. package/dist/components/generator/pdf-generator/pdf-generator.d.ts.map +1 -0
  7. package/dist/components/generator/pdf-generator-blob/index.d.ts +2 -0
  8. package/dist/components/generator/pdf-generator-blob/index.d.ts.map +1 -0
  9. package/dist/components/generator/pdf-generator-blob/pdf-generator-blob.d.ts +8 -0
  10. package/dist/components/generator/pdf-generator-blob/pdf-generator-blob.d.ts.map +1 -0
  11. package/dist/components/generator/pdf-generator-view/index.d.ts +2 -0
  12. package/dist/components/generator/pdf-generator-view/index.d.ts.map +1 -0
  13. package/dist/components/generator/pdf-generator-view/pdf-generator-view.d.ts +7 -0
  14. package/dist/components/generator/pdf-generator-view/pdf-generator-view.d.ts.map +1 -0
  15. package/dist/components/index.d.ts +3 -0
  16. package/dist/components/index.d.ts.map +1 -0
  17. package/dist/components/template/index.d.ts +3 -0
  18. package/dist/components/template/index.d.ts.map +1 -0
  19. package/dist/components/template/offer-pdf/index.d.ts +3 -0
  20. package/dist/components/template/offer-pdf/index.d.ts.map +1 -0
  21. package/dist/components/template/offer-pdf/offer-pdf-component/footer.d.ts +3 -0
  22. package/dist/components/template/offer-pdf/offer-pdf-component/footer.d.ts.map +1 -0
  23. package/dist/components/template/offer-pdf/offer-pdf-component/header.d.ts +3 -0
  24. package/dist/components/template/offer-pdf/offer-pdf-component/header.d.ts.map +1 -0
  25. package/dist/components/template/offer-pdf/offer-pdf-component/notes-offers.d.ts +3 -0
  26. package/dist/components/template/offer-pdf/offer-pdf-component/notes-offers.d.ts.map +1 -0
  27. package/dist/components/template/offer-pdf/offer-pdf-component/pdf-styles.d.ts +207 -0
  28. package/dist/components/template/offer-pdf/offer-pdf-component/pdf-styles.d.ts.map +1 -0
  29. package/dist/components/template/offer-pdf/offer-pdf-component/table-offer-details.d.ts +3 -0
  30. package/dist/components/template/offer-pdf/offer-pdf-component/table-offer-details.d.ts.map +1 -0
  31. package/dist/components/template/offer-pdf/types/index.d.ts +60 -0
  32. package/dist/components/template/offer-pdf/types/index.d.ts.map +1 -0
  33. package/dist/components/template/variant-pdf/index.d.ts +3 -0
  34. package/dist/components/template/variant-pdf/index.d.ts.map +1 -0
  35. package/dist/components/template/variant-pdf/types/index.d.ts +49 -0
  36. package/dist/components/template/variant-pdf/types/index.d.ts.map +1 -0
  37. package/dist/components/template/variant-pdf/variant-pdf-component/header.d.ts +3 -0
  38. package/dist/components/template/variant-pdf/variant-pdf-component/header.d.ts.map +1 -0
  39. package/dist/components/template/variant-pdf/variant-pdf-component/pdf-styles.d.ts +104 -0
  40. package/dist/components/template/variant-pdf/variant-pdf-component/pdf-styles.d.ts.map +1 -0
  41. package/dist/components/template/variant-pdf/variant-pdf-component/table-variant-details.d.ts +3 -0
  42. package/dist/components/template/variant-pdf/variant-pdf-component/table-variant-details.d.ts.map +1 -0
  43. package/dist/components/template/variant-pdf/variant-pdf-component/variant-details.d.ts +3 -0
  44. package/dist/components/template/variant-pdf/variant-pdf-component/variant-details.d.ts.map +1 -0
  45. package/dist/index.d.ts +3 -0
  46. package/dist/index.d.ts.map +1 -0
  47. package/dist/main.js +1 -1
  48. package/dist/stories/test.stories.d.ts +7 -0
  49. package/dist/stories/test.stories.d.ts.map +1 -0
  50. package/dist/types/index.d.ts +4 -0
  51. package/dist/types/index.d.ts.map +1 -0
  52. package/dist/types/product.d.ts +55 -0
  53. package/dist/types/product.d.ts.map +1 -0
  54. package/dist/utils/date/dateFormat.d.ts +2 -0
  55. package/dist/utils/date/dateFormat.d.ts.map +1 -0
  56. package/package.json +52 -51
  57. package/dist/fonts/vazir-medium.ttf +0 -0
  58. package/dist/fonts/vazir-regular.ttf +0 -0
@@ -0,0 +1,4 @@
1
+ export * from "./pdf-generator";
2
+ export * from "./pdf-generator-view";
3
+ export * from "./pdf-generator-blob";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/generator/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./pdf-generator";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { JSXElementConstructor, ReactElement } from "react";
2
+ import { BlobProviderParams, DocumentProps } from "@react-pdf/renderer";
3
+ export interface PDFGeneratorProps {
4
+ document?: ReactElement<DocumentProps, string | JSXElementConstructor<any>>;
5
+ customButton?: ({ loading, error, url, blob, }?: BlobProviderParams) => ReactElement;
6
+ fileName?: string;
7
+ }
8
+ export declare function PDFGenerator({ document, fileName, customButton, }: PDFGeneratorProps): import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=pdf-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-generator.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator/pdf-generator.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EACL,kBAAkB,EAClB,aAAa,EAEd,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E,YAAY,CAAC,EAAE,CAAC,EACd,OAAO,EACP,KAAK,EACL,GAAG,EACH,IAAI,GACL,CAAC,EAAE,kBAAkB,KAAK,YAAY,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAyB,EACzB,YAAY,GACb,EAAE,iBAAiB,2CAwBnB"}
@@ -0,0 +1,2 @@
1
+ export * from "./pdf-generator-blob";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-blob/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { DocumentProps } from "@react-pdf/renderer";
2
+ interface pdfGeneratorBlobProps {
3
+ setIsLoadingPdf?: (props: boolean) => void;
4
+ documentPDf: React.ReactElement<DocumentProps>;
5
+ }
6
+ export declare const pdfGeneratorBlob: ({ setIsLoadingPdf, documentPDf, }: pdfGeneratorBlobProps) => Promise<void>;
7
+ export {};
8
+ //# sourceMappingURL=pdf-generator-blob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-generator-blob.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-blob/pdf-generator-blob.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAO,MAAM,qBAAqB,CAAC;AAEzD,UAAU,qBAAqB;IAC7B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;CAChD;AACD,eAAO,MAAM,gBAAgB,GAAU,mCAGpC,qBAAqB,kBAiBvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./pdf-generator-view";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-view/index.tsx"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { JSXElementConstructor, ReactElement } from "react";
2
+ import { DocumentProps } from "@react-pdf/renderer";
3
+ export interface PDFGeneratorViewProps {
4
+ document?: ReactElement<DocumentProps, string | JSXElementConstructor<any>>;
5
+ }
6
+ export declare function PDFGeneratorView({ document }: PDFGeneratorViewProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=pdf-generator-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-generator-view.d.ts","sourceRoot":"","sources":["../../../../src/components/generator/pdf-generator-view/pdf-generator-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAa,MAAM,qBAAqB,CAAC;AAE/D,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7E;AACD,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE,qBAAqB,2CAUnE"}
@@ -0,0 +1,3 @@
1
+ export * from "./generator";
2
+ export * from "./template";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./offer-pdf";
2
+ export * from "./variant-pdf";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/template/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OfferPDfType } from "./types";
2
+ export declare function OfferPDf({ data, type, pdfDate, user, footerDetails, isDefaultFooterDetails, }: OfferPDfType): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/offer-pdf/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAc,EACd,OAAO,EACP,IAAI,EACJ,aAAa,EACb,sBAAsB,GACvB,EAAE,YAAY,2CAiCd"}
@@ -0,0 +1,3 @@
1
+ import { footerDetailsTypes } from "../types";
2
+ export declare const Footer: ({ footerDetails, isDefaultFooterDetails, }: footerDetailsTypes) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=footer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/footer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA2B9C,eAAO,MAAM,MAAM,GAAI,4CAGpB,kBAAkB,4CAqDpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { headerType } from "../types";
2
+ export declare const Header: ({ type, pdfDate, user }: headerType) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMtC,eAAO,MAAM,MAAM,GAAI,yBAAyB,UAAU,4CAkFzD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { NoteOfferType } from "../types";
2
+ export declare const NotesOffer: ({ products, isProformaType, commercialNotesValue, technicalNotes, additionalNotes, }: NoteOfferType) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=notes-offers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notes-offers.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/notes-offers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAuB,MAAM,UAAU,CAAC;AAc9D,eAAO,MAAM,UAAU,GAAI,sFAMxB,aAAa,4CAkEf,CAAC"}
@@ -0,0 +1,207 @@
1
+ export declare const styles: {
2
+ page: {
3
+ padding: number;
4
+ paddingBottom: number;
5
+ fontSize: number;
6
+ fontFamily: string;
7
+ position: "relative";
8
+ };
9
+ fontBold: {
10
+ fontFamily: string;
11
+ };
12
+ header: {
13
+ position: "relative";
14
+ flexDirection: "row";
15
+ justifyContent: "space-between";
16
+ alignItems: "flex-end";
17
+ height: number;
18
+ overflow: "hidden";
19
+ marginBottom: number;
20
+ };
21
+ logoBox: {
22
+ position: "absolute";
23
+ top: number;
24
+ width: string;
25
+ height: string;
26
+ flexDirection: "row";
27
+ justifyContent: "center";
28
+ };
29
+ logo: {
30
+ width: number;
31
+ objectFit: string;
32
+ };
33
+ title: {
34
+ fontSize: number;
35
+ };
36
+ subTitle: {
37
+ fontSize: number;
38
+ color: string;
39
+ };
40
+ informationContainer: {
41
+ flexDirection: "row";
42
+ justifyContent: "space-between";
43
+ border: string;
44
+ borderRadius: number;
45
+ padding: number;
46
+ };
47
+ informationBox: {
48
+ flexDirection: "row";
49
+ gap: number;
50
+ };
51
+ informationText: {
52
+ flexDirection: "column";
53
+ };
54
+ informationKey: {
55
+ fontSize: number;
56
+ color: string;
57
+ };
58
+ informationValue: {
59
+ fontSize: number;
60
+ };
61
+ table: {
62
+ border: string;
63
+ marginTop: number;
64
+ borderRadius: number;
65
+ };
66
+ tableHeader: {
67
+ flexDirection: "row";
68
+ fontWeight: string;
69
+ paddingVertical: number;
70
+ borderTopLeftRadius: number;
71
+ borderTopRightRadius: number;
72
+ backgroundColor: string;
73
+ };
74
+ tableRow: {
75
+ flexDirection: "row";
76
+ paddingVertical: number;
77
+ };
78
+ col: {
79
+ paddingHorizontal: number;
80
+ fontSize: number;
81
+ fontWeight: string;
82
+ };
83
+ colItem: {
84
+ paddingHorizontal: number;
85
+ marginVertical: number;
86
+ justifyContent: "center";
87
+ fontSize: number;
88
+ fontWeight: string;
89
+ borderRight: string;
90
+ };
91
+ colItemOfferFontSize: {
92
+ fontSize: number;
93
+ };
94
+ colItemProformaFontSize: {
95
+ fontSize: number;
96
+ };
97
+ colWidths: {
98
+ index: number;
99
+ code: number;
100
+ delivery: number;
101
+ quantity: number;
102
+ unitPrice: number;
103
+ totalPrice: number;
104
+ };
105
+ colDescription: {
106
+ flex: number;
107
+ overflow: "hidden";
108
+ };
109
+ productImage: {
110
+ width: number;
111
+ height: string;
112
+ objectFit: string;
113
+ };
114
+ commercialNotes: {
115
+ flexDirection: "row";
116
+ justifyContent: "space-between";
117
+ paddingLeft: number;
118
+ border: string;
119
+ marginTop: number;
120
+ borderRadius: number;
121
+ };
122
+ commercialNotesBox: {
123
+ width: string;
124
+ margin: number;
125
+ paddingBottom: number;
126
+ };
127
+ PriceBox: {
128
+ width: string;
129
+ flexDirection: "column";
130
+ justifyContent: "space-between";
131
+ margin: number;
132
+ borderRadius: number;
133
+ paddingHorizontal: number;
134
+ minHeight: number;
135
+ backgroundColor: string;
136
+ };
137
+ priceDetails: {
138
+ flex: number;
139
+ flexDirection: "column";
140
+ justifyContent: "space-between";
141
+ paddingBottom: number;
142
+ };
143
+ sectionTitle: {
144
+ fontWeight: string;
145
+ fontSize: number;
146
+ paddingVertical: number;
147
+ };
148
+ price: {
149
+ flex: number;
150
+ flexDirection: "column";
151
+ justifyContent: "space-evenly";
152
+ borderBottom: string;
153
+ };
154
+ priceTotal: {
155
+ fontWeight: string;
156
+ paddingTop: number;
157
+ };
158
+ technicalNotes: {
159
+ borderTop: string;
160
+ marginTop: number;
161
+ };
162
+ footer: {
163
+ fontSize: number;
164
+ paddingTop: number;
165
+ width: string;
166
+ position: "absolute";
167
+ bottom: number;
168
+ };
169
+ footerPages: {
170
+ fontSize: number;
171
+ color: string;
172
+ width: string;
173
+ position: "absolute";
174
+ bottom: number;
175
+ left: number;
176
+ paddingHorizontal: number;
177
+ flexDirection: "row";
178
+ justifyContent: "space-between";
179
+ alignItems: "center";
180
+ };
181
+ contactContainer: {
182
+ flexDirection: "row";
183
+ width: string;
184
+ gap: number;
185
+ };
186
+ contactBox: {
187
+ flexDirection: "row";
188
+ maxWidth: number;
189
+ gap: number;
190
+ };
191
+ contactIcon: {
192
+ width: number;
193
+ height: number;
194
+ objectFit: string;
195
+ };
196
+ contactText: {
197
+ flexDirection: "row";
198
+ justifyContent: "flex-start";
199
+ textAlign: "left";
200
+ alignItems: "flex-start";
201
+ maxWidth: number;
202
+ maxLines: number;
203
+ fontSize: number;
204
+ color: string;
205
+ };
206
+ };
207
+ //# sourceMappingURL=pdf-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/pdf-styles.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6MjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { TableOfferDetailsType } from "../types";
2
+ export declare const TableOfferDetails: ({ products, isProformaType, }: TableOfferDetailsType) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=table-offer-details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-offer-details.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/offer-pdf-component/table-offer-details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AA6FjD,eAAO,MAAM,iBAAiB,GAAI,+BAG/B,qBAAqB,4CAuLvB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { ProductPDfType } from "@src/types";
2
+ export type typeOfPdfProps = "Offer" | "Proforma";
3
+ export interface headerType {
4
+ type: typeOfPdfProps;
5
+ pdfDate?: string;
6
+ user?: userDetails;
7
+ }
8
+ export interface OfferPDfType {
9
+ type: typeOfPdfProps;
10
+ data: OfferPpfDataType;
11
+ pdfDate?: string;
12
+ user?: userDetails;
13
+ footerDetails?: footerDetailsTextType;
14
+ isDefaultFooterDetails?: boolean;
15
+ }
16
+ export interface TableOfferDetailsType {
17
+ products?: ProductPDfType[];
18
+ isProformaType?: boolean;
19
+ }
20
+ export interface OfferPpfDataType {
21
+ products?: ProductPDfType[];
22
+ commercialNotesValue?: commercialPropsType[];
23
+ technicalNotes?: string;
24
+ additionalNotes?: string;
25
+ comments?: string;
26
+ }
27
+ export interface NoteOfferType extends OfferPpfDataType {
28
+ isProformaType?: boolean;
29
+ }
30
+ export type commercialPropsType = {
31
+ subject?: string;
32
+ value?: string;
33
+ };
34
+ export type userDetails = {
35
+ username?: string;
36
+ type?: string;
37
+ company_name?: string;
38
+ userEconomicCode?: string | number;
39
+ yourRef?: string | number;
40
+ ourRef?: string | number;
41
+ };
42
+ export interface footerDetailsTypes {
43
+ footerDetails?: footerDetailsTextType;
44
+ isDefaultFooterDetails?: boolean;
45
+ }
46
+ interface footerDetailsTextType {
47
+ location?: {
48
+ firstText?: string;
49
+ };
50
+ phone?: {
51
+ firstText?: string;
52
+ secondText?: string;
53
+ };
54
+ web?: {
55
+ firstText?: string;
56
+ secondText?: string;
57
+ };
58
+ }
59
+ export {};
60
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/offer-pdf/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,CAAC;AAClD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AACD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AACD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AACD,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,KAAK,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,GAAG,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD"}
@@ -0,0 +1,3 @@
1
+ import { ProductPdfTypes } from "./types";
2
+ export declare function VariantPdf({ logo, productImage, naming, coding, itemsRequired, itemsIntrinsic, }: ProductPdfTypes): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/template/variant-pdf/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAa,MAAM,SAAS,CAAC;AAoErD,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,MAAM,EACN,aAAa,EACb,cAAc,GACf,EAAE,eAAe,2CAwCjB"}
@@ -0,0 +1,49 @@
1
+ import { ProductPDfType } from "@src/types";
2
+ import { JSX } from "react";
3
+ export interface ProductPdfTypes {
4
+ logo?: string;
5
+ productImage?: string;
6
+ naming?: string;
7
+ coding?: string;
8
+ itemsRequired?: itemsType[];
9
+ itemsIntrinsic?: itemsType[];
10
+ }
11
+ export interface variantDetailsTypes {
12
+ items?: ProductPDfType[][];
13
+ logo?: string;
14
+ productImage?: string;
15
+ naming?: string;
16
+ coding?: string;
17
+ isIntrinsicPartAfterOptional?: boolean;
18
+ IntrinsicPartData?: ProductPDfType[];
19
+ isIntrinsic?: boolean;
20
+ }
21
+ export interface tableVariantDetailsTypes {
22
+ data?: ProductPDfType[];
23
+ columns?: {
24
+ name: string;
25
+ filedValue: string;
26
+ }[];
27
+ stylesTable?: {};
28
+ }
29
+ export interface itemsType {
30
+ propertyName: {
31
+ value: string | undefined;
32
+ className: string;
33
+ };
34
+ code: {
35
+ value: string;
36
+ className: string;
37
+ };
38
+ description: {
39
+ value: JSX.Element;
40
+ printValue: string;
41
+ sideLongPrintValue: {
42
+ name?: string;
43
+ description?: string;
44
+ }[] | undefined;
45
+ className: string;
46
+ options: {};
47
+ };
48
+ }
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC;CAC9B;AACD,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,iBAAiB,CAAC,EAAE,cAAc,EAAE,CAAC;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AACD,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACjD,WAAW,CAAC,EAAE,EAAE,CAAC;CAClB;AACD,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,WAAW,EAAE;QACX,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,kBAAkB,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,GAAG,SAAS,CAAC;QAC1E,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH"}
@@ -0,0 +1,3 @@
1
+ import { ProductPdfTypes } from '../types';
2
+ export declare const Header: ({ productImage, logo, naming, coding }: ProductPdfTypes) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/variant-pdf-component/header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI3C,eAAO,MAAM,MAAM,GAAI,wCAAwC,eAAe,4CAwB7E,CAAC"}
@@ -0,0 +1,104 @@
1
+ export declare const styles: {
2
+ page: {
3
+ paddingHorizontal: number;
4
+ paddingBottom: number;
5
+ paddingTop: number;
6
+ fontSize: number;
7
+ fontFamily: string;
8
+ };
9
+ header: {
10
+ position: "absolute";
11
+ top: number;
12
+ left: number;
13
+ paddingHorizontal: number;
14
+ flexDirection: "row";
15
+ width: string;
16
+ justifyContent: "space-between";
17
+ flexWrap: "nowrap";
18
+ height: number;
19
+ gap: number;
20
+ };
21
+ headerContainer: {
22
+ flex: number;
23
+ };
24
+ titleContainer: {
25
+ paddingLeft: number;
26
+ borderLeft: string;
27
+ };
28
+ title: {
29
+ fontSize: number;
30
+ fontWeight: string;
31
+ marginBottom: number;
32
+ paddingBottom: number;
33
+ borderBottom: string;
34
+ };
35
+ subtitleCode: {
36
+ fontSize: number;
37
+ fontWeight: string;
38
+ color: string;
39
+ };
40
+ productImageContainer: {
41
+ maxHeight: number;
42
+ flexDirection: "row";
43
+ alignItems: "center";
44
+ justifyContent: "center";
45
+ textAlign: "center";
46
+ };
47
+ brandImageContainer: {
48
+ flexDirection: "row";
49
+ alignItems: "flex-start";
50
+ justifyContent: "flex-start";
51
+ textAlign: "left";
52
+ };
53
+ image: {
54
+ width: number;
55
+ maxHeight: string;
56
+ objectFit: string;
57
+ };
58
+ brandImage: {
59
+ maxWidth: number;
60
+ height: number;
61
+ marginBottom: number;
62
+ objectFit: string;
63
+ };
64
+ tableHeader: {
65
+ fontFamily: string;
66
+ flexDirection: "row";
67
+ gap: number;
68
+ borderBottom: string;
69
+ fontWeight: string;
70
+ };
71
+ row: {
72
+ flexDirection: "row";
73
+ gap: number;
74
+ paddingVertical: number;
75
+ };
76
+ propertyCell: {
77
+ width: number;
78
+ fontSize: number;
79
+ };
80
+ valueCell: {
81
+ flex: number;
82
+ flexDirection: "column";
83
+ fontSize: number;
84
+ };
85
+ codeCell: {
86
+ width: number;
87
+ fontSize: number;
88
+ };
89
+ footer: {
90
+ position: "absolute";
91
+ bottom: number;
92
+ left: number;
93
+ right: number;
94
+ fontSize: number;
95
+ color: string;
96
+ flexDirection: "row";
97
+ alignItems: "center";
98
+ justifyContent: "space-between";
99
+ };
100
+ colorGray: {
101
+ color: string;
102
+ };
103
+ };
104
+ //# sourceMappingURL=pdf-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf-styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/variant-pdf-component/pdf-styles.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { tableVariantDetailsTypes } from '../types';
2
+ export declare const TableVariantDetails: ({ data, columns, stylesTable }: tableVariantDetailsTypes) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=table-variant-details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-variant-details.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/variant-pdf-component/table-variant-details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpD,eAAO,MAAM,mBAAmB,GAAI,gCAIjC,wBAAwB,4CA4E1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { variantDetailsTypes } from "../types";
2
+ export declare const VariantDetails: ({ items, logo, productImage, naming, coding, isIntrinsicPartAfterOptional, IntrinsicPartData, isIntrinsic, }: variantDetailsTypes) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=variant-details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variant-details.d.ts","sourceRoot":"","sources":["../../../../../src/components/template/variant-pdf/variant-pdf-component/variant-details.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAsB/C,eAAO,MAAM,cAAc,GAAI,8GAS5B,mBAAmB,4CAmCrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./components";
2
+ export * from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}