@kbach/react-native 1.0.0-beta.16 → 1.0.0-beta.17
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 +75 -0
- package/dist/{chunk-XGQWM65X.mjs → chunk-45GOGUHJ.mjs} +36 -2
- package/dist/{chunk-6ML62O2R.mjs → chunk-MJWWZJMH.mjs} +1 -1
- package/dist/chunk-OGFB3OXS.mjs +552 -0
- package/dist/dynamicTokens.d.ts +35 -0
- package/dist/dynamicTokens.js +75 -0
- package/dist/index.d.ts +15 -1
- package/dist/index.js +223 -19
- package/dist/index.web.d.ts +2 -1
- package/dist/index.web.js +21 -1
- package/dist/index.web.mjs +17 -2
- package/dist/jsx-dev-runtime.js +222 -22
- package/dist/jsx-dev-runtime.web.js +2 -1
- package/dist/jsx-dev-runtime.web.mjs +3 -3
- package/dist/jsx-runtime.js +222 -22
- package/dist/jsx-runtime.web.js +1 -1
- package/dist/jsx-runtime.web.mjs +2 -2
- package/dist/{useColors-Br8QhIlE.d.ts → useDynamicToken-Dr15c88t.d.ts} +14 -1
- package/package.json +1 -1
- package/dist/chunk-3ED4FIO2.mjs +0 -552
package/dist/jsx-runtime.web.mjs
CHANGED
|
@@ -144,4 +144,17 @@ type ColorsAPI = {
|
|
|
144
144
|
*/
|
|
145
145
|
declare function useColors(): ColorsAPI;
|
|
146
146
|
|
|
147
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.0-beta.17",
|
|
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",
|