react-pdf-levelup 2.0.32 → 3.0.34
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/README.md +237 -47
- package/dist/index.cjs +954 -0
- package/dist/{index.d.mts → index.d.cts} +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +237 -252
- package/license +17 -0
- package/package.json +8 -2
- package/dist/index.mjs +0 -792
|
@@ -4,11 +4,13 @@ export { Font, StyleSheet, Text, View } from '@react-pdf/renderer';
|
|
|
4
4
|
interface LayoutPDFProps {
|
|
5
5
|
children: React$1.ReactNode;
|
|
6
6
|
size?: string;
|
|
7
|
-
orientation?: "
|
|
7
|
+
orientation?: "vertical" | "horizontal";
|
|
8
8
|
backgroundColor?: string;
|
|
9
|
-
showPageNumbers?: boolean;
|
|
10
9
|
padding?: number;
|
|
10
|
+
margen?: "apa" | "normal" | "estrecho" | "ancho";
|
|
11
11
|
style?: any;
|
|
12
|
+
footer?: React$1.ReactNode;
|
|
13
|
+
lines?: number;
|
|
12
14
|
}
|
|
13
15
|
declare const LayoutPDF: React$1.FC<LayoutPDFProps>;
|
|
14
16
|
|
|
@@ -49,6 +51,12 @@ declare const BR: React$1.FC<{
|
|
|
49
51
|
style?: any;
|
|
50
52
|
}>;
|
|
51
53
|
declare const Span: React$1.FC<TextProps>;
|
|
54
|
+
interface HeaderProps {
|
|
55
|
+
children: React$1.ReactNode;
|
|
56
|
+
style?: any;
|
|
57
|
+
fixed?: boolean;
|
|
58
|
+
}
|
|
59
|
+
declare const Header: React$1.FC<HeaderProps>;
|
|
52
60
|
|
|
53
61
|
interface TableProps {
|
|
54
62
|
children: React$1.ReactNode;
|
|
@@ -101,14 +109,6 @@ declare const Col10: React$1.FC<ColProps>;
|
|
|
101
109
|
declare const Col11: React$1.FC<ColProps>;
|
|
102
110
|
declare const Col12: React$1.FC<ColProps>;
|
|
103
111
|
|
|
104
|
-
interface PageElementProps {
|
|
105
|
-
children: React$1.ReactNode;
|
|
106
|
-
style?: any;
|
|
107
|
-
fixed?: boolean;
|
|
108
|
-
}
|
|
109
|
-
declare const Header: React$1.FC<PageElementProps>;
|
|
110
|
-
declare const Footer: React$1.FC<PageElementProps>;
|
|
111
|
-
|
|
112
112
|
interface QRProps {
|
|
113
113
|
value: string;
|
|
114
114
|
size?: number;
|
|
@@ -151,4 +151,4 @@ interface PDFData {
|
|
|
151
151
|
}
|
|
152
152
|
declare const generatePDF: ({ template: Template, data }: PDFData) => Promise<string>;
|
|
153
153
|
|
|
154
|
-
export { A, BR, Blockquote, Center, Col1, Col10, Col11, Col12, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Container, Em,
|
|
154
|
+
export { A, BR, Blockquote, Center, Col1, Col10, Col11, Col12, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Container, Em, H1, H2, H3, H4, H5, H6, Header, Img, LI, LayoutPDF, Left, Mark, OL, P, QR, Right, Row, Small, Span, Strong, Table, Tbody, Td, Th, Thead, Tr, U, UL, decodeBase64Pdf, generatePDF };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,11 +4,13 @@ export { Font, StyleSheet, Text, View } from '@react-pdf/renderer';
|
|
|
4
4
|
interface LayoutPDFProps {
|
|
5
5
|
children: React$1.ReactNode;
|
|
6
6
|
size?: string;
|
|
7
|
-
orientation?: "
|
|
7
|
+
orientation?: "vertical" | "horizontal";
|
|
8
8
|
backgroundColor?: string;
|
|
9
|
-
showPageNumbers?: boolean;
|
|
10
9
|
padding?: number;
|
|
10
|
+
margen?: "apa" | "normal" | "estrecho" | "ancho";
|
|
11
11
|
style?: any;
|
|
12
|
+
footer?: React$1.ReactNode;
|
|
13
|
+
lines?: number;
|
|
12
14
|
}
|
|
13
15
|
declare const LayoutPDF: React$1.FC<LayoutPDFProps>;
|
|
14
16
|
|
|
@@ -49,6 +51,12 @@ declare const BR: React$1.FC<{
|
|
|
49
51
|
style?: any;
|
|
50
52
|
}>;
|
|
51
53
|
declare const Span: React$1.FC<TextProps>;
|
|
54
|
+
interface HeaderProps {
|
|
55
|
+
children: React$1.ReactNode;
|
|
56
|
+
style?: any;
|
|
57
|
+
fixed?: boolean;
|
|
58
|
+
}
|
|
59
|
+
declare const Header: React$1.FC<HeaderProps>;
|
|
52
60
|
|
|
53
61
|
interface TableProps {
|
|
54
62
|
children: React$1.ReactNode;
|
|
@@ -101,14 +109,6 @@ declare const Col10: React$1.FC<ColProps>;
|
|
|
101
109
|
declare const Col11: React$1.FC<ColProps>;
|
|
102
110
|
declare const Col12: React$1.FC<ColProps>;
|
|
103
111
|
|
|
104
|
-
interface PageElementProps {
|
|
105
|
-
children: React$1.ReactNode;
|
|
106
|
-
style?: any;
|
|
107
|
-
fixed?: boolean;
|
|
108
|
-
}
|
|
109
|
-
declare const Header: React$1.FC<PageElementProps>;
|
|
110
|
-
declare const Footer: React$1.FC<PageElementProps>;
|
|
111
|
-
|
|
112
112
|
interface QRProps {
|
|
113
113
|
value: string;
|
|
114
114
|
size?: number;
|
|
@@ -151,4 +151,4 @@ interface PDFData {
|
|
|
151
151
|
}
|
|
152
152
|
declare const generatePDF: ({ template: Template, data }: PDFData) => Promise<string>;
|
|
153
153
|
|
|
154
|
-
export { A, BR, Blockquote, Center, Col1, Col10, Col11, Col12, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Container, Em,
|
|
154
|
+
export { A, BR, Blockquote, Center, Col1, Col10, Col11, Col12, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Container, Em, H1, H2, H3, H4, H5, H6, Header, Img, LI, LayoutPDF, Left, Mark, OL, P, QR, Right, Row, Small, Span, Strong, Table, Tbody, Td, Th, Thead, Tr, U, UL, decodeBase64Pdf, generatePDF };
|