@kbach/react-native 1.0.0-beta.24 → 1.0.0-beta.26
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/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-BEXNFWW6.mjs +564 -0
- package/dist/{chunk-OS7EPBH5.mjs → chunk-GHQ7DWLO.mjs} +1 -1
- package/dist/{chunk-TS2EEVOE.mjs → chunk-LWD6JATB.mjs} +5 -1
- package/dist/darkModeStore.d.ts +16 -1
- package/dist/darkModeStore.js +5 -0
- package/dist/index.d.ts +1 -84
- package/dist/index.js +74 -45
- package/dist/index.web.d.ts +1 -1
- package/dist/index.web.js +38 -22
- package/dist/index.web.mjs +7 -3
- package/dist/jsx-dev-runtime.js +50 -25
- package/dist/jsx-dev-runtime.web.js +14 -2
- package/dist/jsx-dev-runtime.web.mjs +3 -3
- package/dist/jsx-runtime.js +50 -25
- package/dist/jsx-runtime.web.js +14 -2
- package/dist/jsx-runtime.web.mjs +2 -2
- package/dist/{useDynamicToken-DAHQob1u.d.ts → useDynamicToken-C8T9r6Cl.d.ts} +7 -1
- package/package.json +1 -1
- package/dist/chunk-AG7ZQ2K4.mjs +0 -552
package/dist/jsx-runtime.web.mjs
CHANGED
|
@@ -57,7 +57,13 @@ interface KbachConfig {
|
|
|
57
57
|
}
|
|
58
58
|
/** Merges a `KbachConfig` into `defaultTheme` — a pure function, no side effects. */
|
|
59
59
|
declare function resolveKbachConfig(config: KbachConfig): ThemeConfig;
|
|
60
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* `resolveKbachConfig()` + `setTheme()` in one call — the usual entry point
|
|
62
|
+
* from app code. Also re-syncs the DOM (Expo Web only) to the CURRENT
|
|
63
|
+
* dark-mode state right after `setTheme()` — see
|
|
64
|
+
* `resyncDomWithActiveTheme`'s own doc comment for why this is required,
|
|
65
|
+
* not optional.
|
|
66
|
+
*/
|
|
61
67
|
declare function applyKbachConfig(config: KbachConfig): ThemeConfig;
|
|
62
68
|
|
|
63
69
|
interface ThemeState {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kbach/react-native",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.26",
|
|
4
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
5
|
"keywords": [
|
|
6
6
|
"css",
|