@kbach/react-native 1.0.0-beta.7 → 1.0.0-beta.8
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 +108 -39
- package/dist/ThemeContext-Dc5AC-m0.d.mts +98 -0
- package/dist/ThemeContext-Dc5AC-m0.d.ts +98 -0
- package/dist/{chunk-AEVOM2NB.mjs → chunk-4BXM3QUV.mjs} +38 -57
- package/dist/{chunk-4KCCEMEN.mjs → chunk-CGU7UM2F.mjs} +1 -1
- package/dist/chunk-JR3BLUAV.mjs +1204 -0
- package/dist/chunk-JS5KIGAB.mjs +192 -0
- package/dist/{chunk-OJQAJLYT.mjs → chunk-KV3ZIXSH.mjs} +1 -1
- package/dist/chunk-OIW7OQWO.mjs +40 -0
- package/dist/chunk-Z664AKW7.mjs +54 -0
- package/dist/index.d.mts +21 -98
- package/dist/index.d.ts +21 -98
- package/dist/index.js +1219 -5
- package/dist/index.mjs +8 -6
- package/dist/index.web.d.mts +12 -4
- package/dist/index.web.d.ts +12 -4
- package/dist/index.web.js +101 -36
- package/dist/index.web.mjs +11 -9
- package/dist/jsx-dev-runtime.js +1223 -5
- package/dist/jsx-dev-runtime.mjs +4 -3
- package/dist/jsx-dev-runtime.web.js +108 -71
- package/dist/jsx-dev-runtime.web.mjs +4 -4
- package/dist/jsx-runtime.js +1223 -5
- package/dist/jsx-runtime.mjs +4 -3
- package/dist/jsx-runtime.web.js +93 -61
- package/dist/jsx-runtime.web.mjs +4 -6
- package/package.json +22 -4
- package/dist/chunk-5WK55Z56.mjs +0 -14
- package/dist/chunk-FG5E4NLJ.mjs +0 -18
- package/dist/chunk-T3HPTH62.mjs +0 -161
package/dist/jsx-runtime.web.mjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
+
Fragment,
|
|
2
3
|
jsx,
|
|
3
4
|
jsxs
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import
|
|
7
|
-
Fragment
|
|
8
|
-
} from "./chunk-DLIXI5OW.mjs";
|
|
9
|
-
import "./chunk-AEVOM2NB.mjs";
|
|
5
|
+
} from "./chunk-OIW7OQWO.mjs";
|
|
6
|
+
import "./chunk-JS5KIGAB.mjs";
|
|
7
|
+
import "./chunk-4BXM3QUV.mjs";
|
|
10
8
|
export {
|
|
11
9
|
Fragment,
|
|
12
10
|
jsx,
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kbach/react-native",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
4
|
-
"description": "Kbach's utility-class styling engine for React Native — the same class names as @kbach/react, resolved to a StyleSheet-ready style object via a Kotlin/JNI TurboModule (native)
|
|
5
|
-
"keywords": [
|
|
3
|
+
"version": "1.0.0-beta.8",
|
|
4
|
+
"description": "Kbach's utility-class styling engine for React Native — the same class names as @kbach/react, resolved to a StyleSheet-ready style object via a Kotlin/JNI TurboModule (native), the same WASM engine @kbach/react uses (Expo Web / react-native-web), or a pure-JS fallback engine (Expo Go). Ships its own native Android module — one npm install, no separate native package. Beta. Native is Android-only (no iOS bridge yet); works with the React Native CLI, an Expo dev client, AND Expo Go (a reduced-coverage pure-JS fallback, since Expo Go can't load any custom native module).",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"css",
|
|
7
|
+
"react-native",
|
|
8
|
+
"expo",
|
|
9
|
+
"tailwind",
|
|
10
|
+
"utility-first",
|
|
11
|
+
"styling",
|
|
12
|
+
"android",
|
|
13
|
+
"web",
|
|
14
|
+
"wasm"
|
|
15
|
+
],
|
|
6
16
|
"license": "MIT",
|
|
7
17
|
"author": "semsakadanupol",
|
|
8
18
|
"repository": {
|
|
@@ -17,7 +27,14 @@
|
|
|
17
27
|
"publishConfig": {
|
|
18
28
|
"access": "public"
|
|
19
29
|
},
|
|
20
|
-
"files": [
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"src/babel-plugin.js",
|
|
33
|
+
"android/build.gradle",
|
|
34
|
+
"android/src",
|
|
35
|
+
"specs",
|
|
36
|
+
"react-native.config.js"
|
|
37
|
+
],
|
|
21
38
|
"source": "./src/index.ts",
|
|
22
39
|
"main": "./dist/index.js",
|
|
23
40
|
"module": "./dist/index.mjs",
|
|
@@ -79,6 +96,7 @@
|
|
|
79
96
|
"devDependencies": {
|
|
80
97
|
"@types/react": "^19.2.0",
|
|
81
98
|
"@types/react-test-renderer": "^19.1.0",
|
|
99
|
+
"jsdom": "^30.0.1",
|
|
82
100
|
"react-native": "^0.87.0",
|
|
83
101
|
"react-test-renderer": "^19.2.0",
|
|
84
102
|
"tsup": "^8.0.0",
|
package/dist/chunk-5WK55Z56.mjs
DELETED
package/dist/chunk-FG5E4NLJ.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getGlobalDarkMode,
|
|
3
|
-
getThemeJson
|
|
4
|
-
} from "./chunk-AEVOM2NB.mjs";
|
|
5
|
-
|
|
6
|
-
// src/nativeBridge.ts
|
|
7
|
-
import { Dimensions, TurboModuleRegistry } from "react-native";
|
|
8
|
-
function resolveStyle(classString, pressed = false) {
|
|
9
|
-
const KbachModule = TurboModuleRegistry.getEnforcing("KbachModule");
|
|
10
|
-
const colorScheme = getGlobalDarkMode() ? "dark" : "light";
|
|
11
|
-
const width = Dimensions.get("window").width;
|
|
12
|
-
const json = KbachModule.resolveStyle(classString, getThemeJson(), colorScheme, pressed, width);
|
|
13
|
-
return JSON.parse(json);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
resolveStyle
|
|
18
|
-
};
|