@kbach/react-native 1.0.0-beta.16 → 1.0.0-beta.18

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.
@@ -2,8 +2,8 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-6ML62O2R.mjs";
6
- import "./chunk-3ED4FIO2.mjs";
5
+ } from "./chunk-MJWWZJMH.mjs";
6
+ import "./chunk-OGFB3OXS.mjs";
7
7
  export {
8
8
  Fragment,
9
9
  jsx,
@@ -144,4 +144,17 @@ type ColorsAPI = {
144
144
  */
145
145
  declare function useColors(): ColorsAPI;
146
146
 
147
- export { type ColorScale as C, type KbachConfig as K, ThemeProvider as T, type ColorsAPI as a, type ThemeProviderProps as b, type ThemeState as c, applyKbachConfig as d, useTheme as e, resolveKbachConfig as r, useColors as u };
147
+ /**
148
+ * Reads a dynamic token's CURRENT value reactively — the JS-value
149
+ * counterpart to using `var(--name)` directly in a `className` (see
150
+ * `jsxRuntimeCore.ts`'s own `substituteDynamicTokens`/`ReactiveElement` for
151
+ * how that path stays live). Useful when a component needs the raw value
152
+ * itself (e.g. to drive an Animated value, or a calculation), not just a
153
+ * resolved style. Subscribes to the store's shared version counter (same
154
+ * one every token change bumps — see `dynamicTokens.ts`'s own doc comment
155
+ * on why there's no per-token subscription), so this re-renders on ANY
156
+ * token change, then re-reads just the one name it was asked for.
157
+ */
158
+ declare function useDynamicToken(name: string): string | undefined;
159
+
160
+ export { type ColorScale as C, type KbachConfig as K, ThemeProvider as T, type ColorsAPI as a, type ThemeProviderProps as b, type ThemeState as c, applyKbachConfig as d, useDynamicToken as e, useTheme as f, resolveKbachConfig as r, useColors as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbach/react-native",
3
- "version": "1.0.0-beta.16",
3
+ "version": "1.0.0-beta.18",
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",