@kbach/react 0.6.51 → 1.0.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.
@@ -1,10 +1,10 @@
1
- 'use client';
2
1
  import {
3
2
  Fragment,
4
3
  jsx,
5
4
  jsxs
6
- } from "./chunk-LIUJPOTS.mjs";
7
- import "./chunk-KRRGLJLA.mjs";
5
+ } from "./chunk-VBPQAIZL.mjs";
6
+ import "./chunk-G3RJJNSY.mjs";
7
+ import "./chunk-AFY36PRX.mjs";
8
8
 
9
9
  // src/jsx-dev-runtime.tsx
10
10
  function jsxDEV(type, props, key, isStaticChildren, source, self) {
@@ -0,0 +1,22 @@
1
+ import { ReactElement } from 'react';
2
+ export { Fragment, JSX } from 'react';
3
+
4
+ /**
5
+ * @kbach/react/jsx-runtime
6
+ *
7
+ * Drop-in replacement for react/jsx-runtime. Intercepts the `className` prop
8
+ * on EVERY JSX element and resolves it through `kb()` — same resolve+inject
9
+ * logic `kb()` already uses when called explicitly, just applied
10
+ * automatically per element instead of per call site.
11
+ *
12
+ * No InteractiveWrapper/DarkWrapper equivalent (unlike old-kbach's version)
13
+ * — this engine is web-only, and packages/core-engine's css.rs already
14
+ * emits real :hover/@media/[data-theme] CSS the browser handles natively
15
+ * once the rule is injected. Nothing here needs to re-render on hover,
16
+ * focus, dark-mode, or viewport changes.
17
+ */
18
+
19
+ declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
20
+ declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
21
+
22
+ export { jsx, jsxs };
@@ -1,17 +1,22 @@
1
1
  import { ReactElement } from 'react';
2
2
  export { Fragment, JSX } from 'react';
3
- export { r as registerWebElement } from './web-substitute-CfpYFnE7.js';
4
3
 
5
4
  /**
6
5
  * @kbach/react/jsx-runtime
7
6
  *
8
- * Drop-in replacement for react/jsx-runtime.
9
- * Intercepts `className` and `kb` props on EVERY JSX element — React Native
10
- * built-ins, HTML elements on web, and any third-party library component.
7
+ * Drop-in replacement for react/jsx-runtime. Intercepts the `className` prop
8
+ * on EVERY JSX element and resolves it through `kb()` — same resolve+inject
9
+ * logic `kb()` already uses when called explicitly, just applied
10
+ * automatically per element instead of per call site.
11
+ *
12
+ * No InteractiveWrapper/DarkWrapper equivalent (unlike old-kbach's version)
13
+ * — this engine is web-only, and packages/core-engine's css.rs already
14
+ * emits real :hover/@media/[data-theme] CSS the browser handles natively
15
+ * once the rule is injected. Nothing here needs to re-render on hover,
16
+ * focus, dark-mode, or viewport changes.
11
17
  */
12
18
 
13
- declare function _invalidateDefaultFontCache(): void;
14
19
  declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
15
20
  declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
16
21
 
17
- export { _invalidateDefaultFontCache, jsx, jsxs };
22
+ export { jsx, jsxs };