react-ink-scripter 0.0.23 → 0.0.24
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/cjs/index.js +4 -3
- package/dist/esm/index.js +3 -3
- package/package.json +19 -7
package/dist/cjs/index.js
CHANGED
|
@@ -193,11 +193,12 @@ var TableCell = function TableCell(_ref2) {
|
|
|
193
193
|
header = item.header,
|
|
194
194
|
colSpan = item.colSpan,
|
|
195
195
|
rowSpan = item.rowSpan,
|
|
196
|
-
value = item.value
|
|
196
|
+
value = item.value,
|
|
197
|
+
className = item.className;
|
|
197
198
|
if (header) {
|
|
198
199
|
return jsxRuntime.jsx("th", {
|
|
199
200
|
id: id,
|
|
200
|
-
className:
|
|
201
|
+
className: clsx('inks-cell', className),
|
|
201
202
|
colSpan: colSpan,
|
|
202
203
|
rowSpan: rowSpan,
|
|
203
204
|
children: value
|
|
@@ -205,7 +206,7 @@ var TableCell = function TableCell(_ref2) {
|
|
|
205
206
|
}
|
|
206
207
|
return jsxRuntime.jsx("td", {
|
|
207
208
|
id: id,
|
|
208
|
-
className:
|
|
209
|
+
className: clsx('inks-cell', className),
|
|
209
210
|
colSpan: colSpan,
|
|
210
211
|
rowSpan: rowSpan,
|
|
211
212
|
children: value
|
package/dist/esm/index.js
CHANGED
|
@@ -134,11 +134,11 @@ const TableCell = ({ item }) => {
|
|
|
134
134
|
if (typeof item === 'string') {
|
|
135
135
|
return jsx("td", { className: "inks-cell", children: item });
|
|
136
136
|
}
|
|
137
|
-
const { id, header, colSpan, rowSpan, value } = item;
|
|
137
|
+
const { id, header, colSpan, rowSpan, value, className } = item;
|
|
138
138
|
if (header) {
|
|
139
|
-
return (jsx("th", { id: id, className:
|
|
139
|
+
return (jsx("th", { id: id, className: clsx('inks-cell', className), colSpan: colSpan, rowSpan: rowSpan, children: value }));
|
|
140
140
|
}
|
|
141
|
-
return (jsx("td", { id: id, className:
|
|
141
|
+
return (jsx("td", { id: id, className: clsx('inks-cell', className), colSpan: colSpan, rowSpan: rowSpan, children: value }));
|
|
142
142
|
};
|
|
143
143
|
const TableRow = ({ cells }) => {
|
|
144
144
|
if (!cells.length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-ink-scripter",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "a react component for generate page to print",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -9,7 +9,13 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/lawrsp/react-ink-scripter.git"
|
|
11
11
|
},
|
|
12
|
-
"keywords": [
|
|
12
|
+
"keywords": [
|
|
13
|
+
"react",
|
|
14
|
+
"component",
|
|
15
|
+
"print",
|
|
16
|
+
"printer",
|
|
17
|
+
"iframe"
|
|
18
|
+
],
|
|
13
19
|
"author": "lawrsp",
|
|
14
20
|
"license": "MIT",
|
|
15
21
|
"bugs": {
|
|
@@ -29,15 +35,13 @@
|
|
|
29
35
|
"clsx": "^1.2.1"
|
|
30
36
|
},
|
|
31
37
|
"devDependencies": {
|
|
32
|
-
"@babel/runtime": "^7.21.0",
|
|
33
|
-
"react": "^18.2.0",
|
|
34
|
-
"react-dom": "^18.2.0",
|
|
35
38
|
"@babel/core": "^7.21.0",
|
|
36
39
|
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
37
40
|
"@babel/plugin-transform-runtime": "^7.21.0",
|
|
38
41
|
"@babel/preset-env": "^7.20.2",
|
|
39
42
|
"@babel/preset-react": "^7.18.6",
|
|
40
43
|
"@babel/preset-typescript": "^7.21.0",
|
|
44
|
+
"@babel/runtime": "^7.21.0",
|
|
41
45
|
"@rollup/plugin-babel": "^6.0.3",
|
|
42
46
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
43
47
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
@@ -55,9 +59,12 @@
|
|
|
55
59
|
"@vitejs/plugin-react": "^3.1.0",
|
|
56
60
|
"babel-loader": "^8.3.0",
|
|
57
61
|
"json": "^11.0.0",
|
|
62
|
+
"react": "^18.2.0",
|
|
63
|
+
"react-dom": "^18.2.0",
|
|
58
64
|
"rimraf": "^4.1.3",
|
|
59
65
|
"rollup": "^3.18.0",
|
|
60
66
|
"rollup-plugin-sizes": "^1.0.5",
|
|
67
|
+
"tslib": "^2.8.1",
|
|
61
68
|
"typescript": "^4.9.3",
|
|
62
69
|
"vite": "^4.1.0"
|
|
63
70
|
},
|
|
@@ -75,6 +82,11 @@
|
|
|
75
82
|
"optional": true
|
|
76
83
|
}
|
|
77
84
|
},
|
|
78
|
-
"sideEffects": [
|
|
79
|
-
|
|
85
|
+
"sideEffects": [
|
|
86
|
+
"*.css"
|
|
87
|
+
],
|
|
88
|
+
"files": [
|
|
89
|
+
"dist"
|
|
90
|
+
],
|
|
91
|
+
"packageManager": "yarn@4.0.2+sha256.825003a0f561ad09a3b1ac4a3b3ea6207af2796d54f62a9420520915721f5186"
|
|
80
92
|
}
|