@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.
Files changed (46) hide show
  1. package/README.md +87 -66
  2. package/android/build.gradle +36 -0
  3. package/android/src/main/AndroidManifest.xml +14 -0
  4. package/android/src/main/java/com/kbachnative/KbachModule.kt +83 -0
  5. package/android/src/main/java/com/kbachnative/KbachPackage.kt +54 -0
  6. package/android/src/main/jniLibs/arm64-v8a/libkbach_core_engine.so +0 -0
  7. package/android/src/main/jniLibs/x86_64/libkbach_core_engine.so +0 -0
  8. package/dist/chunk-4DQXTAM3.mjs +63 -0
  9. package/dist/chunk-5MU6PEXV.mjs +14 -0
  10. package/dist/chunk-H5Z24XX5.mjs +192 -0
  11. package/dist/{chunk-YHF3QLRL.mjs → chunk-HK6PDJJK.mjs} +61 -68
  12. package/dist/chunk-RBJXE32L.mjs +73 -0
  13. package/dist/chunk-TDWBXJH5.mjs +186 -0
  14. package/dist/chunk-XHL653X2.mjs +1211 -0
  15. package/dist/chunk-YOC3SHF5.mjs +40 -0
  16. package/dist/index.d.mts +37 -102
  17. package/dist/index.d.ts +37 -102
  18. package/dist/index.js +1411 -38
  19. package/dist/index.mjs +19 -61
  20. package/dist/index.web.d.mts +15 -0
  21. package/dist/index.web.d.ts +15 -0
  22. package/dist/index.web.js +829 -0
  23. package/dist/index.web.mjs +38 -0
  24. package/dist/jsx-dev-runtime.d.mts +3 -12
  25. package/dist/jsx-dev-runtime.d.ts +3 -12
  26. package/dist/jsx-dev-runtime.js +1313 -36
  27. package/dist/jsx-dev-runtime.mjs +9 -11
  28. package/dist/jsx-dev-runtime.web.d.mts +10 -0
  29. package/dist/jsx-dev-runtime.web.d.ts +10 -0
  30. package/dist/jsx-dev-runtime.web.js +659 -0
  31. package/dist/jsx-dev-runtime.web.mjs +18 -0
  32. package/dist/jsx-runtime.d.mts +3 -23
  33. package/dist/jsx-runtime.d.ts +3 -23
  34. package/dist/jsx-runtime.js +1304 -28
  35. package/dist/jsx-runtime.mjs +7 -3
  36. package/dist/jsx-runtime.web.d.mts +7 -0
  37. package/dist/jsx-runtime.web.d.ts +7 -0
  38. package/dist/jsx-runtime.web.js +602 -0
  39. package/dist/jsx-runtime.web.mjs +12 -0
  40. package/dist/useColors-C6jyCLuG.d.mts +239 -0
  41. package/dist/useColors-C6jyCLuG.d.ts +239 -0
  42. package/package.json +57 -8
  43. package/react-native.config.js +29 -0
  44. package/specs/NativeKbachModule.ts +31 -0
  45. package/src/babel-plugin.js +74 -2
  46. package/dist/chunk-SVMYVXY6.mjs +0 -44
@@ -0,0 +1,38 @@
1
+ import {
2
+ ThemeProvider,
3
+ applyKbachConfig,
4
+ resolveKbachConfig,
5
+ useColors,
6
+ useTheme
7
+ } from "./chunk-TDWBXJH5.mjs";
8
+ import {
9
+ resolveClassName
10
+ } from "./chunk-H5Z24XX5.mjs";
11
+ import {
12
+ getGlobalDarkMode,
13
+ getGlobalThemeMode,
14
+ setGlobalThemeMode,
15
+ subscribeGlobalDarkMode,
16
+ toggleGlobalDarkMode
17
+ } from "./chunk-RBJXE32L.mjs";
18
+ import {
19
+ defaultTheme,
20
+ getTheme,
21
+ setTheme
22
+ } from "./chunk-HK6PDJJK.mjs";
23
+ export {
24
+ ThemeProvider,
25
+ applyKbachConfig,
26
+ defaultTheme,
27
+ getGlobalDarkMode,
28
+ getGlobalThemeMode,
29
+ getTheme,
30
+ resolveClassName,
31
+ resolveKbachConfig,
32
+ setGlobalThemeMode,
33
+ setTheme,
34
+ subscribeGlobalDarkMode,
35
+ toggleGlobalDarkMode,
36
+ useColors,
37
+ useTheme
38
+ };
@@ -1,19 +1,10 @@
1
- import { ReactElement } from 'react';
1
+ import * as react from 'react';
2
2
  export { Fragment } from 'react';
3
3
 
4
- /**
5
- * @kbach/react-native/jsx-dev-runtime
6
- *
7
- * Development variant — Metro calls jsxDEV instead of jsx/jsxs in dev
8
- * builds. Same pattern as @kbach/react/jsx-dev-runtime (Phase 3): reuses
9
- * jsx/jsxs for the actual interception, then patches _source/_self onto
10
- * the result so React DevTools shows the original file/line.
11
- */
12
-
13
- declare function jsxDEV(type: unknown, props: Record<string, unknown> | null, key?: string, isStaticChildren?: boolean, source?: {
4
+ declare const jsxDEV: (type: unknown, props: Record<string, unknown> | null, key?: string, isStaticChildren?: boolean, source?: {
14
5
  fileName: string;
15
6
  lineNumber: number;
16
7
  columnNumber: number;
17
- }, self?: unknown): ReactElement;
8
+ }, self?: unknown) => react.ReactElement;
18
9
 
19
10
  export { jsxDEV };
@@ -1,19 +1,10 @@
1
- import { ReactElement } from 'react';
1
+ import * as react from 'react';
2
2
  export { Fragment } from 'react';
3
3
 
4
- /**
5
- * @kbach/react-native/jsx-dev-runtime
6
- *
7
- * Development variant — Metro calls jsxDEV instead of jsx/jsxs in dev
8
- * builds. Same pattern as @kbach/react/jsx-dev-runtime (Phase 3): reuses
9
- * jsx/jsxs for the actual interception, then patches _source/_self onto
10
- * the result so React DevTools shows the original file/line.
11
- */
12
-
13
- declare function jsxDEV(type: unknown, props: Record<string, unknown> | null, key?: string, isStaticChildren?: boolean, source?: {
4
+ declare const jsxDEV: (type: unknown, props: Record<string, unknown> | null, key?: string, isStaticChildren?: boolean, source?: {
14
5
  fileName: string;
15
6
  lineNumber: number;
16
7
  columnNumber: number;
17
- }, self?: unknown): ReactElement;
8
+ }, self?: unknown) => react.ReactElement;
18
9
 
19
10
  export { jsxDEV };