@zeus-js/zeus 0.0.2 → 0.1.0-beta.0

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/zeus.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * zeus v0.0.2
2
+ * zeus v0.1.0-beta.0
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -9,7 +9,7 @@ Object.defineProperties(exports, {
9
9
  });
10
10
  let _zeus_js_signal = require("@zeus-js/signal");
11
11
  let _zeus_js_runtime_dom = require("@zeus-js/runtime-dom");
12
- //#region packages/zeus/src/jsx-runtime.ts
12
+ //#region packages/core/zeus/src/jsx-runtime.ts
13
13
  const Fragment = Symbol.for("zeus.fragment");
14
14
  function jsx(type, props) {
15
15
  return createJSXNode(type, props);
@@ -21,6 +21,7 @@ function jsxDEV(type, props) {
21
21
  return createJSXNode(type, props);
22
22
  }
23
23
  function createJSXNode(type, props) {
24
+ if (type === Fragment) return props === null || props === void 0 ? void 0 : props.children;
24
25
  if (typeof type === "function") return (0, _zeus_js_runtime_dom.createComponent)(type, props !== null && props !== void 0 ? props : {});
25
26
  if (typeof type !== "string") return null;
26
27
  const el = document.createElement(type);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * zeus v0.0.2
2
+ * zeus v0.1.0-beta.0
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -9,7 +9,7 @@ Object.defineProperties(exports, {
9
9
  });
10
10
  let _zeus_js_signal = require("@zeus-js/signal");
11
11
  let _zeus_js_runtime_dom = require("@zeus-js/runtime-dom");
12
- //#region packages/zeus/src/jsx-runtime.ts
12
+ //#region packages/core/zeus/src/jsx-runtime.ts
13
13
  const Fragment = Symbol.for("zeus.fragment");
14
14
  function jsx(type, props) {
15
15
  return createJSXNode(type, props);
@@ -21,6 +21,7 @@ function jsxDEV(type, props) {
21
21
  return createJSXNode(type, props);
22
22
  }
23
23
  function createJSXNode(type, props) {
24
+ if (type === Fragment) return props === null || props === void 0 ? void 0 : props.children;
24
25
  if (typeof type === "function") return (0, _zeus_js_runtime_dom.createComponent)(type, props !== null && props !== void 0 ? props : {});
25
26
  if (typeof type !== "string") return null;
26
27
  const el = document.createElement(type);