react-pdf-levelup 3.1.52 → 3.1.57
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.cjs +5 -0
- package/dist/index.d.cts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +4 -0
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -47,6 +47,7 @@ __export(index_exports, {
|
|
|
47
47
|
Col8: () => Col8,
|
|
48
48
|
Col9: () => Col9,
|
|
49
49
|
Container: () => Container,
|
|
50
|
+
Div: () => Div,
|
|
50
51
|
Em: () => Em,
|
|
51
52
|
Font: () => import_renderer12.Font,
|
|
52
53
|
H1: () => H1,
|
|
@@ -429,6 +430,9 @@ var Span = ({ children, style }) => {
|
|
|
429
430
|
var Header = ({ children, style, fixed = false }) => {
|
|
430
431
|
return /* @__PURE__ */ import_react4.default.createElement(import_renderer4.View, { style: [styles4.header, style], fixed }, typeof children === "string" ? /* @__PURE__ */ import_react4.default.createElement(import_renderer4.Text, null, children) : children);
|
|
431
432
|
};
|
|
433
|
+
var Div = ({ children, style }) => {
|
|
434
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_renderer4.View, { style }, children);
|
|
435
|
+
};
|
|
432
436
|
|
|
433
437
|
// src/components/core/Tablet.tsx
|
|
434
438
|
var import_react5 = __toESM(require("react"), 1);
|
|
@@ -1014,6 +1018,7 @@ var ImgBg_default = ImgBg;
|
|
|
1014
1018
|
Col8,
|
|
1015
1019
|
Col9,
|
|
1016
1020
|
Container,
|
|
1021
|
+
Div,
|
|
1017
1022
|
Em,
|
|
1018
1023
|
Font,
|
|
1019
1024
|
H1,
|
package/dist/index.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ interface LayoutPDFProps {
|
|
|
9
9
|
padding?: number;
|
|
10
10
|
margen?: "apa" | "normal" | "estrecho" | "ancho";
|
|
11
11
|
style?: any;
|
|
12
|
-
pagination
|
|
12
|
+
pagination: boolean;
|
|
13
13
|
footer?: React$1.ReactNode;
|
|
14
14
|
lines?: number;
|
|
15
15
|
}
|
|
@@ -34,6 +34,15 @@ interface TextProps {
|
|
|
34
34
|
style?: any;
|
|
35
35
|
href?: string;
|
|
36
36
|
}
|
|
37
|
+
interface DivProps {
|
|
38
|
+
children: React$1.ReactNode;
|
|
39
|
+
style?: any;
|
|
40
|
+
}
|
|
41
|
+
interface HeaderProps {
|
|
42
|
+
children: React$1.ReactNode;
|
|
43
|
+
style?: any;
|
|
44
|
+
fixed?: boolean;
|
|
45
|
+
}
|
|
37
46
|
declare const P: React$1.FC<TextProps>;
|
|
38
47
|
declare const H1: React$1.FC<TextProps>;
|
|
39
48
|
declare const H2: React$1.FC<TextProps>;
|
|
@@ -52,12 +61,8 @@ declare const BR: React$1.FC<{
|
|
|
52
61
|
style?: any;
|
|
53
62
|
}>;
|
|
54
63
|
declare const Span: React$1.FC<TextProps>;
|
|
55
|
-
interface HeaderProps {
|
|
56
|
-
children: React$1.ReactNode;
|
|
57
|
-
style?: any;
|
|
58
|
-
fixed?: boolean;
|
|
59
|
-
}
|
|
60
64
|
declare const Header: React$1.FC<HeaderProps>;
|
|
65
|
+
declare const Div: React$1.FC<DivProps>;
|
|
61
66
|
|
|
62
67
|
interface TableProps {
|
|
63
68
|
children: React$1.ReactNode;
|
|
@@ -172,4 +177,4 @@ interface ImgBgProps {
|
|
|
172
177
|
}
|
|
173
178
|
declare const ImgBg: React$1.FC<ImgBgProps>;
|
|
174
179
|
|
|
175
|
-
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, ImgBg, LI, LayoutPDF, Left, Mark, OL, P, QR, Right, Row, Small, Span, Strong, Table, Tbody, Td, Th, Thead, Tr, U, UL, decodeBase64Pdf, generatePDF };
|
|
180
|
+
export { A, BR, Blockquote, Center, Col1, Col10, Col11, Col12, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Container, Div, Em, H1, H2, H3, H4, H5, H6, Header, Img, ImgBg, 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
|
@@ -9,7 +9,7 @@ interface LayoutPDFProps {
|
|
|
9
9
|
padding?: number;
|
|
10
10
|
margen?: "apa" | "normal" | "estrecho" | "ancho";
|
|
11
11
|
style?: any;
|
|
12
|
-
pagination
|
|
12
|
+
pagination: boolean;
|
|
13
13
|
footer?: React$1.ReactNode;
|
|
14
14
|
lines?: number;
|
|
15
15
|
}
|
|
@@ -34,6 +34,15 @@ interface TextProps {
|
|
|
34
34
|
style?: any;
|
|
35
35
|
href?: string;
|
|
36
36
|
}
|
|
37
|
+
interface DivProps {
|
|
38
|
+
children: React$1.ReactNode;
|
|
39
|
+
style?: any;
|
|
40
|
+
}
|
|
41
|
+
interface HeaderProps {
|
|
42
|
+
children: React$1.ReactNode;
|
|
43
|
+
style?: any;
|
|
44
|
+
fixed?: boolean;
|
|
45
|
+
}
|
|
37
46
|
declare const P: React$1.FC<TextProps>;
|
|
38
47
|
declare const H1: React$1.FC<TextProps>;
|
|
39
48
|
declare const H2: React$1.FC<TextProps>;
|
|
@@ -52,12 +61,8 @@ declare const BR: React$1.FC<{
|
|
|
52
61
|
style?: any;
|
|
53
62
|
}>;
|
|
54
63
|
declare const Span: React$1.FC<TextProps>;
|
|
55
|
-
interface HeaderProps {
|
|
56
|
-
children: React$1.ReactNode;
|
|
57
|
-
style?: any;
|
|
58
|
-
fixed?: boolean;
|
|
59
|
-
}
|
|
60
64
|
declare const Header: React$1.FC<HeaderProps>;
|
|
65
|
+
declare const Div: React$1.FC<DivProps>;
|
|
61
66
|
|
|
62
67
|
interface TableProps {
|
|
63
68
|
children: React$1.ReactNode;
|
|
@@ -172,4 +177,4 @@ interface ImgBgProps {
|
|
|
172
177
|
}
|
|
173
178
|
declare const ImgBg: React$1.FC<ImgBgProps>;
|
|
174
179
|
|
|
175
|
-
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, ImgBg, LI, LayoutPDF, Left, Mark, OL, P, QR, Right, Row, Small, Span, Strong, Table, Tbody, Td, Th, Thead, Tr, U, UL, decodeBase64Pdf, generatePDF };
|
|
180
|
+
export { A, BR, Blockquote, Center, Col1, Col10, Col11, Col12, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Container, Div, Em, H1, H2, H3, H4, H5, H6, Header, Img, ImgBg, 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.js
CHANGED
|
@@ -340,6 +340,9 @@ var Span = ({ children, style }) => {
|
|
|
340
340
|
var Header = ({ children, style, fixed = false }) => {
|
|
341
341
|
return /* @__PURE__ */ React4.createElement(View3, { style: [styles4.header, style], fixed }, typeof children === "string" ? /* @__PURE__ */ React4.createElement(Text2, null, children) : children);
|
|
342
342
|
};
|
|
343
|
+
var Div = ({ children, style }) => {
|
|
344
|
+
return /* @__PURE__ */ React4.createElement(View3, { style }, children);
|
|
345
|
+
};
|
|
343
346
|
|
|
344
347
|
// src/components/core/Tablet.tsx
|
|
345
348
|
import React5, { createContext, useContext } from "react";
|
|
@@ -924,6 +927,7 @@ export {
|
|
|
924
927
|
Col8,
|
|
925
928
|
Col9,
|
|
926
929
|
Container,
|
|
930
|
+
Div,
|
|
927
931
|
Em,
|
|
928
932
|
Font,
|
|
929
933
|
H1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-pdf-levelup",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.57",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"react-dom": ">=18 <=19"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"qrcode": "^1.5.4"
|
|
26
|
+
"qrcode": "^1.5.4",
|
|
27
|
+
"react-pdf-levelup": "^3.1.54"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {}
|
|
29
30
|
}
|