@kbach/react-native 1.0.0-beta.1 → 1.0.0-beta.11
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 +87 -66
- package/android/build.gradle +36 -0
- package/android/src/main/AndroidManifest.xml +14 -0
- package/android/src/main/java/com/kbachnative/KbachModule.kt +83 -0
- package/android/src/main/java/com/kbachnative/KbachPackage.kt +54 -0
- package/android/src/main/jniLibs/arm64-v8a/libkbach_core_engine.so +0 -0
- package/android/src/main/jniLibs/x86_64/libkbach_core_engine.so +0 -0
- package/dist/chunk-4DQXTAM3.mjs +63 -0
- package/dist/chunk-5MU6PEXV.mjs +14 -0
- package/dist/chunk-H5Z24XX5.mjs +192 -0
- package/dist/{chunk-YHF3QLRL.mjs → chunk-HK6PDJJK.mjs} +61 -68
- package/dist/chunk-RBJXE32L.mjs +73 -0
- package/dist/chunk-TDWBXJH5.mjs +186 -0
- package/dist/chunk-XHL653X2.mjs +1211 -0
- package/dist/chunk-YOC3SHF5.mjs +40 -0
- package/dist/index.d.mts +37 -102
- package/dist/index.d.ts +37 -102
- package/dist/index.js +1411 -38
- package/dist/index.mjs +19 -61
- package/dist/index.web.d.mts +15 -0
- package/dist/index.web.d.ts +15 -0
- package/dist/index.web.js +829 -0
- package/dist/index.web.mjs +38 -0
- package/dist/jsx-dev-runtime.d.mts +3 -12
- package/dist/jsx-dev-runtime.d.ts +3 -12
- package/dist/jsx-dev-runtime.js +1313 -36
- package/dist/jsx-dev-runtime.mjs +9 -11
- package/dist/jsx-dev-runtime.web.d.mts +10 -0
- package/dist/jsx-dev-runtime.web.d.ts +10 -0
- package/dist/jsx-dev-runtime.web.js +659 -0
- package/dist/jsx-dev-runtime.web.mjs +18 -0
- package/dist/jsx-runtime.d.mts +3 -23
- package/dist/jsx-runtime.d.ts +3 -23
- package/dist/jsx-runtime.js +1304 -28
- package/dist/jsx-runtime.mjs +7 -3
- package/dist/jsx-runtime.web.d.mts +7 -0
- package/dist/jsx-runtime.web.d.ts +7 -0
- package/dist/jsx-runtime.web.js +602 -0
- package/dist/jsx-runtime.web.mjs +12 -0
- package/dist/useColors-C6jyCLuG.d.mts +239 -0
- package/dist/useColors-C6jyCLuG.d.ts +239 -0
- package/package.json +57 -8
- package/react-native.config.js +29 -0
- package/specs/NativeKbachModule.ts +31 -0
- package/src/babel-plugin.js +74 -2
- package/dist/chunk-SVMYVXY6.mjs +0 -44
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Fragment,
|
|
3
|
+
jsx,
|
|
4
|
+
jsxs
|
|
5
|
+
} from "./chunk-YOC3SHF5.mjs";
|
|
6
|
+
import "./chunk-H5Z24XX5.mjs";
|
|
7
|
+
import {
|
|
8
|
+
createJsxDEV
|
|
9
|
+
} from "./chunk-4DQXTAM3.mjs";
|
|
10
|
+
import "./chunk-RBJXE32L.mjs";
|
|
11
|
+
import "./chunk-HK6PDJJK.mjs";
|
|
12
|
+
|
|
13
|
+
// src/jsx-dev-runtime.web.tsx
|
|
14
|
+
var jsxDEV = createJsxDEV(jsx, jsxs);
|
|
15
|
+
export {
|
|
16
|
+
Fragment,
|
|
17
|
+
jsxDEV
|
|
18
|
+
};
|
package/dist/jsx-runtime.d.mts
CHANGED
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
export { Fragment, JSX } from 'react';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* Drop-in replacement for react/jsx-runtime — same interception shape as
|
|
8
|
-
* @kbach/react/jsx-runtime (Phase 3), but the resolved value becomes the
|
|
9
|
-
* `style` prop instead of `className`: View/Text have no `className` prop
|
|
10
|
-
* at all. Covers layout, color, spacing, border, typography, dark:, and
|
|
11
|
-
* active: (Pressable only) — see nativeBridge.ts / resolve_style.rs for
|
|
12
|
-
* exactly what's resolved; every other modifier (hover:/responsive/...)
|
|
13
|
-
* parses but isn't applied yet.
|
|
14
|
-
*
|
|
15
|
-
* `active:` needs different handling from every other modifier: whether an
|
|
16
|
-
* element is "pressed" isn't a value that can be read once and reused like
|
|
17
|
-
* `dark:`'s color scheme — only RN's `Pressable` ever knows it, and only
|
|
18
|
-
* via a style FUNCTION it calls on every press/release
|
|
19
|
-
* (`style={({pressed}) => ...}`). So for `type === Pressable` specifically,
|
|
20
|
-
* `style` is built as a function instead of a static value; every other
|
|
21
|
-
* element type is completely unaffected by this — same code path as before.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
25
|
-
declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
4
|
+
declare const jsx: (type: unknown, props: Record<string, unknown> | null, key?: string) => react.ReactElement;
|
|
5
|
+
declare const jsxs: (type: unknown, props: Record<string, unknown> | null, key?: string) => react.ReactElement;
|
|
26
6
|
|
|
27
7
|
export { jsx, jsxs };
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
export { Fragment, JSX } from 'react';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
* Drop-in replacement for react/jsx-runtime — same interception shape as
|
|
8
|
-
* @kbach/react/jsx-runtime (Phase 3), but the resolved value becomes the
|
|
9
|
-
* `style` prop instead of `className`: View/Text have no `className` prop
|
|
10
|
-
* at all. Covers layout, color, spacing, border, typography, dark:, and
|
|
11
|
-
* active: (Pressable only) — see nativeBridge.ts / resolve_style.rs for
|
|
12
|
-
* exactly what's resolved; every other modifier (hover:/responsive/...)
|
|
13
|
-
* parses but isn't applied yet.
|
|
14
|
-
*
|
|
15
|
-
* `active:` needs different handling from every other modifier: whether an
|
|
16
|
-
* element is "pressed" isn't a value that can be read once and reused like
|
|
17
|
-
* `dark:`'s color scheme — only RN's `Pressable` ever knows it, and only
|
|
18
|
-
* via a style FUNCTION it calls on every press/release
|
|
19
|
-
* (`style={({pressed}) => ...}`). So for `type === Pressable` specifically,
|
|
20
|
-
* `style` is built as a function instead of a static value; every other
|
|
21
|
-
* element type is completely unaffected by this — same code path as before.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
25
|
-
declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
4
|
+
declare const jsx: (type: unknown, props: Record<string, unknown> | null, key?: string) => react.ReactElement;
|
|
5
|
+
declare const jsxs: (type: unknown, props: Record<string, unknown> | null, key?: string) => react.ReactElement;
|
|
26
6
|
|
|
27
7
|
export { jsx, jsxs };
|