@kbach/react 0.6.50 → 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.
- package/README.md +90 -390
- package/dist/chunk-AFY36PRX.mjs +414 -0
- package/dist/chunk-G3RJJNSY.mjs +100 -0
- package/dist/chunk-VBPQAIZL.mjs +32 -0
- package/dist/index.d.mts +117 -0
- package/dist/index.d.ts +84 -295
- package/dist/index.js +618 -1101
- package/dist/index.mjs +143 -550
- package/dist/jsx-dev-runtime.d.mts +22 -0
- package/dist/jsx-dev-runtime.d.ts +6 -5
- package/dist/jsx-dev-runtime.js +453 -695
- package/dist/jsx-dev-runtime.mjs +3 -3
- package/dist/jsx-runtime.d.mts +22 -0
- package/dist/jsx-runtime.d.ts +11 -6
- package/dist/jsx-runtime.js +455 -706
- package/dist/jsx-runtime.mjs +4 -9
- package/dist/theme-BKAb78KP.d.mts +20 -0
- package/dist/theme-BKAb78KP.d.ts +20 -0
- package/dist/vite-plugin.d.mts +20 -147
- package/dist/vite-plugin.d.ts +20 -147
- package/dist/vite-plugin.js +1380 -3722
- package/dist/vite-plugin.mjs +994 -3713
- package/package.json +20 -46
- package/KBACH.md +0 -1044
- package/dist/chunk-KRRGLJLA.mjs +0 -4187
- package/dist/chunk-LIUJPOTS.mjs +0 -208
- package/dist/core/index.d.ts +0 -1346
- package/dist/core/index.js +0 -3712
- package/dist/native.d.ts +0 -314
- package/dist/native.js +0 -99
- package/dist/web-substitute-CfpYFnE7.d.ts +0 -22
- package/jsx-dev-runtime.js +0 -3
- package/jsx-runtime.js +0 -3
- package/kbach-react.md +0 -889
- package/scripts/postinstall.js +0 -28
- package/src/native/babel/index.js +0 -30
- package/src/native/babel-plugin/index.js +0 -605
- package/src/native/babel-plugin/index.test.ts +0 -86
- package/types.d.ts +0 -1
package/dist/jsx-dev-runtime.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
'use client';
|
|
2
1
|
import {
|
|
3
2
|
Fragment,
|
|
4
3
|
jsx,
|
|
5
4
|
jsxs
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
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 };
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
10
|
-
*
|
|
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 {
|
|
22
|
+
export { jsx, jsxs };
|