react-pdf-levelup 1.0.4 → 1.0.8

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 (73) hide show
  1. package/dist/index.cjs +652 -0
  2. package/dist/index.d.cts +123 -0
  3. package/dist/index.d.ts +123 -0
  4. package/dist/index.js +575 -0
  5. package/package.json +8 -2
  6. package/fn/aggAlias.js +0 -21
  7. package/fn/moveComponents.js +0 -129
  8. package/fn/postinstall.js +0 -66
  9. package/fn/upVersion.js +0 -12
  10. package/fn/updateTsconfig.js +0 -10
  11. package/next.config.mjs +0 -6
  12. package/public/bg-login.jpg +0 -0
  13. package/public/codigo_guardado.js +0 -1
  14. package/public/css/style.css +0 -751
  15. package/public/dboard/logo.png +0 -0
  16. package/public/favicon.ico +0 -0
  17. package/public/fonts/TimesNewerRoman-Bold.otf +0 -0
  18. package/public/fonts/TimesNewerRoman-BoldItalic.otf +0 -0
  19. package/public/fonts/TimesNewerRoman-Italic.otf +0 -0
  20. package/public/fonts/TimesNewerRoman-Regular.otf +0 -0
  21. package/public/header-pdf.jpg +0 -0
  22. package/public/home/bgHome.jpg +0 -0
  23. package/public/home/bgHome2.jpg +0 -0
  24. package/public/home/download.jpg +0 -0
  25. package/public/home/undraw_elements_re_25t9.svg +0 -1
  26. package/public/home/undraw_project_completed_re_jr7u.svg +0 -1
  27. package/public/home/undraw_shared_goals_re_jvqd.svg +0 -1
  28. package/public/home/undraw_spread_love_re_v3cl.svg +0 -1
  29. package/public/home/undraw_target_re_fi8j.svg +0 -1
  30. package/public/home/undraw_visionary_technology_re_jfp7.svg +0 -1
  31. package/public/logo.png +0 -0
  32. package/public/marca/logo.svg +0 -1
  33. package/src/components/PDF/components/DocumentoTemplate.tsx +0 -140
  34. package/src/components/PDF/components/PDFContent.tsx +0 -192
  35. package/src/components/PDF/core/Etiquetas.tsx +0 -152
  36. package/src/components/PDF/core/Grid.tsx +0 -101
  37. package/src/components/PDF/core/Img.tsx +0 -22
  38. package/src/components/PDF/core/LayoutPDF.tsx +0 -186
  39. package/src/components/PDF/core/Listas.tsx +0 -10
  40. package/src/components/PDF/core/MakePDF.tsx +0 -50
  41. package/src/components/PDF/core/PageElements.tsx +0 -50
  42. package/src/components/PDF/core/Position.tsx +0 -33
  43. package/src/components/PDF/core/Tablet.tsx +0 -121
  44. package/src/components/PDF/core/index.tsx +0 -56
  45. package/src/components/PDF/lib/pdfParser.ts +0 -620
  46. package/src/components/PDF/services/apiService.ts +0 -17
  47. package/src/components/PDF/templates/AllTemplate.tsx +0 -134
  48. package/src/components/PDF/templates/BusinessCardTemplate.tsx +0 -139
  49. package/src/components/PDF/templates/CertificateTemplate.tsx +0 -31
  50. package/src/components/PDF/templates/HeaderFooterTemplate.tsx +0 -61
  51. package/src/components/PDF/templates/InvoiceTemplate.tsx +0 -53
  52. package/src/components/PDF/templates/ProposalTemplate.tsx +0 -246
  53. package/src/components/PDF/templates/ReportTemplate.tsx +0 -57
  54. package/src/components/PDF/templates/ResumeTemplate.tsx +0 -170
  55. package/src/components/PDF/templates/TablasTemplate.tsx +0 -307
  56. package/src/components/PDF/templates/index.ts +0 -9
  57. package/src/components/PDF/view/ColorPicker.tsx +0 -147
  58. package/src/components/PDF/view/Header.tsx +0 -102
  59. package/src/components/PDF/view/HomePDF.tsx +0 -177
  60. package/src/components/PDF/view/SettingsPanel.tsx +0 -703
  61. package/src/pages/AllTemplate.tsx +0 -53
  62. package/src/pages/Documento2.tsx +0 -45
  63. package/src/pages/_app.tsx +0 -6
  64. package/src/pages/_document.tsx +0 -13
  65. package/src/pages/api/generatePDF.ts +0 -74
  66. package/src/pages/api/hello.ts +0 -13
  67. package/src/pages/api/readFile.ts +0 -18
  68. package/src/pages/api/readTemplateFile.ts +0 -26
  69. package/src/pages/api/save.ts +0 -22
  70. package/src/pages/api/saveFile.ts +0 -20
  71. package/src/pages/index.tsx +0 -13
  72. package/src/pages/template/[template].tsx +0 -250
  73. package/tsconfig.json +0 -63
@@ -0,0 +1,123 @@
1
+ import React from 'react';
2
+
3
+ interface LayoutPDFProps {
4
+ children: React.ReactNode;
5
+ size?: string;
6
+ orientation?: "portrait" | "landscape";
7
+ backgroundColor?: string;
8
+ showPageNumbers?: boolean;
9
+ padding?: number | string;
10
+ paddingTop?: number;
11
+ paddingRight?: number;
12
+ paddingBottom?: number;
13
+ paddingLeft?: number;
14
+ style?: any;
15
+ width?: number;
16
+ height?: number;
17
+ fontFamily?: string;
18
+ fontSize?: number;
19
+ lineHeight?: number;
20
+ }
21
+ declare const LayoutPDF: React.FC<LayoutPDFProps>;
22
+
23
+ interface MakePDFProps {
24
+ namePDF?: string;
25
+ document: React.ReactElement;
26
+ children?: React.ReactNode;
27
+ }
28
+ declare const _default: React.ComponentType<MakePDFProps>;
29
+
30
+ interface ImgProps {
31
+ src?: string;
32
+ alt?: string;
33
+ style?: any;
34
+ }
35
+ declare const Img: React.FC<ImgProps>;
36
+
37
+ interface PositionProps {
38
+ children: React.ReactNode;
39
+ style?: any;
40
+ }
41
+ declare const Left: React.FC<PositionProps>;
42
+ declare const Right: React.FC<PositionProps>;
43
+ declare const Center: React.FC<PositionProps>;
44
+
45
+ interface TextProps {
46
+ children: React.ReactNode;
47
+ style?: any;
48
+ href?: string;
49
+ }
50
+ declare const P: React.FC<TextProps>;
51
+ declare const H1: React.FC<TextProps>;
52
+ declare const H2: React.FC<TextProps>;
53
+ declare const H3: React.FC<TextProps>;
54
+ declare const H4: React.FC<TextProps>;
55
+ declare const H5: React.FC<TextProps>;
56
+ declare const H6: React.FC<TextProps>;
57
+ declare const Strong: React.FC<TextProps>;
58
+ declare const Em: React.FC<TextProps>;
59
+ declare const U: React.FC<TextProps>;
60
+ declare const Small: React.FC<TextProps>;
61
+ declare const Blockquote: React.FC<TextProps>;
62
+ declare const Mark: React.FC<TextProps>;
63
+ declare const A: React.FC<TextProps>;
64
+ declare const BR: React.FC<{
65
+ style?: any;
66
+ }>;
67
+ declare const Span: React.FC<TextProps>;
68
+
69
+ interface TableProps {
70
+ children: React.ReactNode;
71
+ style?: any;
72
+ }
73
+ interface CellProps {
74
+ children?: React.ReactNode;
75
+ style?: any;
76
+ cellSize?: "small" | "medium" | "large";
77
+ width?: string | number;
78
+ height?: string | number;
79
+ colSpan?: number;
80
+ }
81
+ declare const Table: React.FC<TableProps>;
82
+ declare const Thead: React.FC<TableProps>;
83
+ declare const Tbody: React.FC<TableProps>;
84
+ declare const Tr: React.FC<TableProps>;
85
+ declare const Th: React.FC<CellProps>;
86
+ declare const Td: React.FC<CellProps>;
87
+
88
+ interface ContainerProps {
89
+ children: React.ReactNode;
90
+ style?: any;
91
+ }
92
+ interface RowProps {
93
+ children: React.ReactNode;
94
+ style?: any;
95
+ }
96
+ interface ColProps {
97
+ children: React.ReactNode;
98
+ style?: any;
99
+ }
100
+ declare const Container: React.FC<ContainerProps>;
101
+ declare const Row: React.FC<RowProps>;
102
+ declare const Col1: React.FC<ColProps>;
103
+ declare const Col2: React.FC<ColProps>;
104
+ declare const Col3: React.FC<ColProps>;
105
+ declare const Col4: React.FC<ColProps>;
106
+ declare const Col5: React.FC<ColProps>;
107
+ declare const Col6: React.FC<ColProps>;
108
+ declare const Col7: React.FC<ColProps>;
109
+ declare const Col8: React.FC<ColProps>;
110
+ declare const Col9: React.FC<ColProps>;
111
+ declare const Col10: React.FC<ColProps>;
112
+ declare const Col11: React.FC<ColProps>;
113
+ declare const Col12: React.FC<ColProps>;
114
+
115
+ interface PageElementProps {
116
+ children: React.ReactNode;
117
+ style?: any;
118
+ fixed?: boolean;
119
+ }
120
+ declare const Header: React.FC<PageElementProps>;
121
+ declare const Footer: React.FC<PageElementProps>;
122
+
123
+ export { A, BR, Blockquote, Center, Col1, Col10, Col11, Col12, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Container, Em, Footer, H1, H2, H3, H4, H5, H6, Header, Img, LayoutPDF, Left, _default as MakePDF, Mark, P, Right, Row, Small, Span, Strong, Table, Tbody, Td, Th, Thead, Tr, U };
@@ -0,0 +1,123 @@
1
+ import React from 'react';
2
+
3
+ interface LayoutPDFProps {
4
+ children: React.ReactNode;
5
+ size?: string;
6
+ orientation?: "portrait" | "landscape";
7
+ backgroundColor?: string;
8
+ showPageNumbers?: boolean;
9
+ padding?: number | string;
10
+ paddingTop?: number;
11
+ paddingRight?: number;
12
+ paddingBottom?: number;
13
+ paddingLeft?: number;
14
+ style?: any;
15
+ width?: number;
16
+ height?: number;
17
+ fontFamily?: string;
18
+ fontSize?: number;
19
+ lineHeight?: number;
20
+ }
21
+ declare const LayoutPDF: React.FC<LayoutPDFProps>;
22
+
23
+ interface MakePDFProps {
24
+ namePDF?: string;
25
+ document: React.ReactElement;
26
+ children?: React.ReactNode;
27
+ }
28
+ declare const _default: React.ComponentType<MakePDFProps>;
29
+
30
+ interface ImgProps {
31
+ src?: string;
32
+ alt?: string;
33
+ style?: any;
34
+ }
35
+ declare const Img: React.FC<ImgProps>;
36
+
37
+ interface PositionProps {
38
+ children: React.ReactNode;
39
+ style?: any;
40
+ }
41
+ declare const Left: React.FC<PositionProps>;
42
+ declare const Right: React.FC<PositionProps>;
43
+ declare const Center: React.FC<PositionProps>;
44
+
45
+ interface TextProps {
46
+ children: React.ReactNode;
47
+ style?: any;
48
+ href?: string;
49
+ }
50
+ declare const P: React.FC<TextProps>;
51
+ declare const H1: React.FC<TextProps>;
52
+ declare const H2: React.FC<TextProps>;
53
+ declare const H3: React.FC<TextProps>;
54
+ declare const H4: React.FC<TextProps>;
55
+ declare const H5: React.FC<TextProps>;
56
+ declare const H6: React.FC<TextProps>;
57
+ declare const Strong: React.FC<TextProps>;
58
+ declare const Em: React.FC<TextProps>;
59
+ declare const U: React.FC<TextProps>;
60
+ declare const Small: React.FC<TextProps>;
61
+ declare const Blockquote: React.FC<TextProps>;
62
+ declare const Mark: React.FC<TextProps>;
63
+ declare const A: React.FC<TextProps>;
64
+ declare const BR: React.FC<{
65
+ style?: any;
66
+ }>;
67
+ declare const Span: React.FC<TextProps>;
68
+
69
+ interface TableProps {
70
+ children: React.ReactNode;
71
+ style?: any;
72
+ }
73
+ interface CellProps {
74
+ children?: React.ReactNode;
75
+ style?: any;
76
+ cellSize?: "small" | "medium" | "large";
77
+ width?: string | number;
78
+ height?: string | number;
79
+ colSpan?: number;
80
+ }
81
+ declare const Table: React.FC<TableProps>;
82
+ declare const Thead: React.FC<TableProps>;
83
+ declare const Tbody: React.FC<TableProps>;
84
+ declare const Tr: React.FC<TableProps>;
85
+ declare const Th: React.FC<CellProps>;
86
+ declare const Td: React.FC<CellProps>;
87
+
88
+ interface ContainerProps {
89
+ children: React.ReactNode;
90
+ style?: any;
91
+ }
92
+ interface RowProps {
93
+ children: React.ReactNode;
94
+ style?: any;
95
+ }
96
+ interface ColProps {
97
+ children: React.ReactNode;
98
+ style?: any;
99
+ }
100
+ declare const Container: React.FC<ContainerProps>;
101
+ declare const Row: React.FC<RowProps>;
102
+ declare const Col1: React.FC<ColProps>;
103
+ declare const Col2: React.FC<ColProps>;
104
+ declare const Col3: React.FC<ColProps>;
105
+ declare const Col4: React.FC<ColProps>;
106
+ declare const Col5: React.FC<ColProps>;
107
+ declare const Col6: React.FC<ColProps>;
108
+ declare const Col7: React.FC<ColProps>;
109
+ declare const Col8: React.FC<ColProps>;
110
+ declare const Col9: React.FC<ColProps>;
111
+ declare const Col10: React.FC<ColProps>;
112
+ declare const Col11: React.FC<ColProps>;
113
+ declare const Col12: React.FC<ColProps>;
114
+
115
+ interface PageElementProps {
116
+ children: React.ReactNode;
117
+ style?: any;
118
+ fixed?: boolean;
119
+ }
120
+ declare const Header: React.FC<PageElementProps>;
121
+ declare const Footer: React.FC<PageElementProps>;
122
+
123
+ export { A, BR, Blockquote, Center, Col1, Col10, Col11, Col12, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Container, Em, Footer, H1, H2, H3, H4, H5, H6, Header, Img, LayoutPDF, Left, _default as MakePDF, Mark, P, Right, Row, Small, Span, Strong, Table, Tbody, Td, Th, Thead, Tr, U };