kt.js 0.17.1 → 0.17.3
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/jsx-runtime.mjs +8 -3
- package/package.json +2 -2
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -53,7 +53,7 @@ const ktEventHandlers = {
|
|
|
53
53
|
|
|
54
54
|
const defaultHandler = (element, key, value) => element.setAttribute(key, value);
|
|
55
55
|
function attrIsObject(element, attr) {
|
|
56
|
-
const classValue = attr.class;
|
|
56
|
+
const classValue = attr.class || attr.className;
|
|
57
57
|
if (classValue !== undefined) {
|
|
58
58
|
element.setAttribute('class', classValue);
|
|
59
59
|
}
|
|
@@ -69,7 +69,12 @@ function attrIsObject(element, attr) {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
for (const key in attr) {
|
|
72
|
-
if (key === 'class' ||
|
|
72
|
+
if (key === 'class' ||
|
|
73
|
+
key === 'className' ||
|
|
74
|
+
key === 'style' ||
|
|
75
|
+
key === 'children' ||
|
|
76
|
+
key === 'k-if' ||
|
|
77
|
+
key === 'ref') {
|
|
73
78
|
continue;
|
|
74
79
|
}
|
|
75
80
|
const o = attr[key];
|
|
@@ -208,7 +213,7 @@ let creator = defaultCreator;
|
|
|
208
213
|
* ## About
|
|
209
214
|
* @package @ktjs/core
|
|
210
215
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
211
|
-
* @version 0.17.
|
|
216
|
+
* @version 0.17.3 (Last Update: 2026.01.28 16:50:39.470)
|
|
212
217
|
* @license MIT
|
|
213
218
|
* @link https://github.com/baendlorel/kt.js
|
|
214
219
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kt.js",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.3",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Kasukabe Tsumugi",
|
|
6
6
|
"email": "futami16237@gmail.com"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@ktjs/core": "0.17.
|
|
44
|
+
"@ktjs/core": "0.17.3",
|
|
45
45
|
"@ktjs/shortcuts": "0.7.3"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|