react-pdf-levelup 2.0.20 → 2.0.25

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 CHANGED
@@ -1,54 +1,54 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
-
14
- ```js
15
- export default tseslint.config({
16
- extends: [
17
- // Remove ...tseslint.configs.recommended and replace with this
18
- ...tseslint.configs.recommendedTypeChecked,
19
- // Alternatively, use this for stricter rules
20
- ...tseslint.configs.strictTypeChecked,
21
- // Optionally, add this for stylistic rules
22
- ...tseslint.configs.stylisticTypeChecked,
23
- ],
24
- languageOptions: {
25
- // other options...
26
- parserOptions: {
27
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
28
- tsconfigRootDir: import.meta.dirname,
29
- },
30
- },
31
- })
32
- ```
33
-
34
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
35
-
36
- ```js
37
- // eslint.config.js
38
- import reactX from 'eslint-plugin-react-x'
39
- import reactDom from 'eslint-plugin-react-dom'
40
-
41
- export default tseslint.config({
42
- plugins: {
43
- // Add the react-x and react-dom plugins
44
- 'react-x': reactX,
45
- 'react-dom': reactDom,
46
- },
47
- rules: {
48
- // other rules...
49
- // Enable its recommended typescript rules
50
- ...reactX.configs['recommended-typescript'].rules,
51
- ...reactDom.configs.recommended.rules,
52
- },
53
- })
54
- ```
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
+
14
+ ```js
15
+ export default tseslint.config({
16
+ extends: [
17
+ // Remove ...tseslint.configs.recommended and replace with this
18
+ ...tseslint.configs.recommendedTypeChecked,
19
+ // Alternatively, use this for stricter rules
20
+ ...tseslint.configs.strictTypeChecked,
21
+ // Optionally, add this for stylistic rules
22
+ ...tseslint.configs.stylisticTypeChecked,
23
+ ],
24
+ languageOptions: {
25
+ // other options...
26
+ parserOptions: {
27
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
28
+ tsconfigRootDir: import.meta.dirname,
29
+ },
30
+ },
31
+ })
32
+ ```
33
+
34
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
35
+
36
+ ```js
37
+ // eslint.config.js
38
+ import reactX from 'eslint-plugin-react-x'
39
+ import reactDom from 'eslint-plugin-react-dom'
40
+
41
+ export default tseslint.config({
42
+ plugins: {
43
+ // Add the react-x and react-dom plugins
44
+ 'react-x': reactX,
45
+ 'react-dom': reactDom,
46
+ },
47
+ rules: {
48
+ // other rules...
49
+ // Enable its recommended typescript rules
50
+ ...reactX.configs['recommended-typescript'].rules,
51
+ ...reactDom.configs.recommended.rules,
52
+ },
53
+ })
54
+ ```
package/dist/index.d.mts CHANGED
@@ -57,15 +57,20 @@ interface TableProps {
57
57
  interface CellProps {
58
58
  children?: React$1.ReactNode;
59
59
  style?: any;
60
- cellSize?: "small" | "medium" | "large";
61
60
  width?: string | number;
62
61
  height?: string | number;
63
62
  colSpan?: number;
63
+ isLast?: boolean;
64
+ isLastRow?: boolean;
65
+ isOdd?: boolean;
64
66
  }
65
67
  declare const Table: React$1.FC<TableProps>;
66
68
  declare const Thead: React$1.FC<TableProps>;
67
69
  declare const Tbody: React$1.FC<TableProps>;
68
- declare const Tr: React$1.FC<TableProps>;
70
+ declare const Tr: React$1.FC<TableProps & {
71
+ isLastRow?: boolean;
72
+ isOdd?: boolean;
73
+ }>;
69
74
  declare const Th: React$1.FC<CellProps>;
70
75
  declare const Td: React$1.FC<CellProps>;
71
76
 
@@ -104,19 +109,33 @@ interface PageElementProps {
104
109
  declare const Header: React$1.FC<PageElementProps>;
105
110
  declare const Footer: React$1.FC<PageElementProps>;
106
111
 
107
- interface QRProps {
108
- value: string;
112
+ interface QRCustomProps {
113
+ url: string;
109
114
  size?: number;
110
- style?: any;
111
- colorDark?: string;
112
- colorLight?: string;
113
- margin?: number;
115
+ colorData?: string;
116
+ colorDataBG?: string;
114
117
  logo?: string;
115
118
  logoWidth?: number;
116
119
  logoHeight?: number;
120
+ margin?: number;
117
121
  errorCorrectionLevel?: "L" | "M" | "Q" | "H";
122
+ style?: any;
123
+ dotType?: "rounded" | "dots" | "classy" | "classy-rounded" | "square" | "extra-rounded";
124
+ cornerSquareType?: "square" | "dot" | "extra-rounded";
125
+ cornerDotType?: "square" | "dot";
126
+ cornerSquareColor?: string;
127
+ cornerDotColor?: string;
128
+ logoBG?: string;
129
+ logoText?: string;
130
+ moveText?: number;
131
+ textColor?: string;
132
+ fontSize?: number;
133
+ fontFamily?: string;
134
+ textBackgroundColor?: string;
135
+ textPadding?: number;
136
+ textBold?: boolean;
118
137
  }
119
- declare const QR: React$1.FC<QRProps>;
138
+ declare const QR: React$1.FC<QRCustomProps>;
120
139
 
121
140
  interface ListProps {
122
141
  children: React$1.ReactNode;
package/dist/index.d.ts CHANGED
@@ -57,15 +57,20 @@ interface TableProps {
57
57
  interface CellProps {
58
58
  children?: React$1.ReactNode;
59
59
  style?: any;
60
- cellSize?: "small" | "medium" | "large";
61
60
  width?: string | number;
62
61
  height?: string | number;
63
62
  colSpan?: number;
63
+ isLast?: boolean;
64
+ isLastRow?: boolean;
65
+ isOdd?: boolean;
64
66
  }
65
67
  declare const Table: React$1.FC<TableProps>;
66
68
  declare const Thead: React$1.FC<TableProps>;
67
69
  declare const Tbody: React$1.FC<TableProps>;
68
- declare const Tr: React$1.FC<TableProps>;
70
+ declare const Tr: React$1.FC<TableProps & {
71
+ isLastRow?: boolean;
72
+ isOdd?: boolean;
73
+ }>;
69
74
  declare const Th: React$1.FC<CellProps>;
70
75
  declare const Td: React$1.FC<CellProps>;
71
76
 
@@ -104,19 +109,33 @@ interface PageElementProps {
104
109
  declare const Header: React$1.FC<PageElementProps>;
105
110
  declare const Footer: React$1.FC<PageElementProps>;
106
111
 
107
- interface QRProps {
108
- value: string;
112
+ interface QRCustomProps {
113
+ url: string;
109
114
  size?: number;
110
- style?: any;
111
- colorDark?: string;
112
- colorLight?: string;
113
- margin?: number;
115
+ colorData?: string;
116
+ colorDataBG?: string;
114
117
  logo?: string;
115
118
  logoWidth?: number;
116
119
  logoHeight?: number;
120
+ margin?: number;
117
121
  errorCorrectionLevel?: "L" | "M" | "Q" | "H";
122
+ style?: any;
123
+ dotType?: "rounded" | "dots" | "classy" | "classy-rounded" | "square" | "extra-rounded";
124
+ cornerSquareType?: "square" | "dot" | "extra-rounded";
125
+ cornerDotType?: "square" | "dot";
126
+ cornerSquareColor?: string;
127
+ cornerDotColor?: string;
128
+ logoBG?: string;
129
+ logoText?: string;
130
+ moveText?: number;
131
+ textColor?: string;
132
+ fontSize?: number;
133
+ fontFamily?: string;
134
+ textBackgroundColor?: string;
135
+ textPadding?: number;
136
+ textBold?: boolean;
118
137
  }
119
- declare const QR: React$1.FC<QRProps>;
138
+ declare const QR: React$1.FC<QRCustomProps>;
120
139
 
121
140
  interface ListProps {
122
141
  children: React$1.ReactNode;