@ktjs/core 0.17.2 → 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/index.d.ts CHANGED
@@ -69,6 +69,7 @@ interface KTBaseAttribute {
69
69
  // # normal HTML attributes
70
70
  id?: string;
71
71
  class?: string;
72
+ className?: string;
72
73
  style?: string | Partial<CSSStyleDeclaration>;
73
74
 
74
75
  type?:
@@ -171,7 +172,7 @@ type HTML<T extends (HTMLTag | SVGTag) & otherstring> = T extends SVGTag ? SVGEl
171
172
  * ## About
172
173
  * @package @ktjs/core
173
174
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
174
- * @version 0.17.2 (Last Update: 2026.01.28 15:54:29.326)
175
+ * @version 0.17.3 (Last Update: 2026.01.28 16:50:39.470)
175
176
  * @license MIT
176
177
  * @link https://github.com/baendlorel/kt.js
177
178
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -56,7 +56,7 @@ var __ktjs_core__ = (function (exports) {
56
56
 
57
57
  const defaultHandler = (element, key, value) => element.setAttribute(key, value);
58
58
  function attrIsObject(element, attr) {
59
- const classValue = attr.class;
59
+ const classValue = attr.class || attr.className;
60
60
  if (classValue !== undefined) {
61
61
  element.setAttribute('class', classValue);
62
62
  }
@@ -72,7 +72,12 @@ var __ktjs_core__ = (function (exports) {
72
72
  }
73
73
  }
74
74
  for (const key in attr) {
75
- if (key === 'class' || key === 'style' || key === 'children' || key === 'k-if' || key === 'ref') {
75
+ if (key === 'class' ||
76
+ key === 'className' ||
77
+ key === 'style' ||
78
+ key === 'children' ||
79
+ key === 'k-if' ||
80
+ key === 'ref') {
76
81
  continue;
77
82
  }
78
83
  const o = attr[key];
@@ -211,7 +216,7 @@ var __ktjs_core__ = (function (exports) {
211
216
  * ## About
212
217
  * @package @ktjs/core
213
218
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
214
- * @version 0.17.2 (Last Update: 2026.01.28 15:54:29.326)
219
+ * @version 0.17.3 (Last Update: 2026.01.28 16:50:39.470)
215
220
  * @license MIT
216
221
  * @link https://github.com/baendlorel/kt.js
217
222
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -68,7 +68,7 @@ var __ktjs_core__ = (function (exports) {
68
68
 
69
69
  var defaultHandler = function (element, key, value) { return element.setAttribute(key, value); };
70
70
  function attrIsObject(element, attr) {
71
- var classValue = attr.class;
71
+ var classValue = attr.class || attr.className;
72
72
  if (classValue !== undefined) {
73
73
  element.setAttribute('class', classValue);
74
74
  }
@@ -84,7 +84,12 @@ var __ktjs_core__ = (function (exports) {
84
84
  }
85
85
  }
86
86
  for (var key in attr) {
87
- if (key === 'class' || key === 'style' || key === 'children' || key === 'k-if' || key === 'ref') {
87
+ if (key === 'class' ||
88
+ key === 'className' ||
89
+ key === 'style' ||
90
+ key === 'children' ||
91
+ key === 'k-if' ||
92
+ key === 'ref') {
88
93
  continue;
89
94
  }
90
95
  var o = attr[key];
@@ -236,7 +241,7 @@ var __ktjs_core__ = (function (exports) {
236
241
  * ## About
237
242
  * @package @ktjs/core
238
243
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
239
- * @version 0.17.2 (Last Update: 2026.01.28 15:54:29.326)
244
+ * @version 0.17.3 (Last Update: 2026.01.28 16:50:39.470)
240
245
  * @license MIT
241
246
  * @link https://github.com/baendlorel/kt.js
242
247
  * @link https://baendlorel.github.io/ Welcome to my site!
package/dist/index.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' || key === 'style' || key === 'children' || key === 'k-if' || key === 'ref') {
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.2 (Last Update: 2026.01.28 15:54:29.326)
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!
@@ -63,6 +63,7 @@ interface KTBaseAttribute {
63
63
  // # normal HTML attributes
64
64
  id?: string;
65
65
  class?: string;
66
+ className?: string;
66
67
  style?: string | Partial<CSSStyleDeclaration>;
67
68
 
68
69
  type?:
@@ -157,7 +158,7 @@ type HTML<T extends (HTMLTag | SVGTag) & otherstring> = T extends SVGTag ? SVGEl
157
158
  * ## About
158
159
  * @package @ktjs/core
159
160
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
160
- * @version 0.17.2 (Last Update: 2026.01.28 15:54:29.326)
161
+ * @version 0.17.3 (Last Update: 2026.01.28 16:50:39.470)
161
162
  * @license MIT
162
163
  * @link https://github.com/baendlorel/kt.js
163
164
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -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' || key === 'style' || key === 'children' || key === 'k-if' || key === 'ref') {
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.2 (Last Update: 2026.01.28 15:54:29.326)
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!
@@ -57,6 +57,7 @@ interface KTBaseAttribute {
57
57
  // # normal HTML attributes
58
58
  id?: string;
59
59
  class?: string;
60
+ className?: string;
60
61
  style?: string | Partial<CSSStyleDeclaration>;
61
62
 
62
63
  type?:
@@ -151,7 +152,7 @@ type HTML<T extends (HTMLTag | SVGTag) & otherstring> = T extends SVGTag ? SVGEl
151
152
  * ## About
152
153
  * @package @ktjs/core
153
154
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
154
- * @version 0.17.2 (Last Update: 2026.01.28 15:54:29.326)
155
+ * @version 0.17.3 (Last Update: 2026.01.28 16:50:39.470)
155
156
  * @license MIT
156
157
  * @link https://github.com/baendlorel/kt.js
157
158
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -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' || key === 'style' || key === 'children' || key === 'k-if' || key === 'ref') {
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.2 (Last Update: 2026.01.28 15:54:29.326)
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": "@ktjs/core",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",