@kbach/ui 0.1.0-beta.0

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.
@@ -0,0 +1,22 @@
1
+ /**
2
+ * React Native → HTML element substitution for web rendering.
3
+ *
4
+ * When isWeb is true, known React Native component types (View, Text, Pressable, …)
5
+ * are replaced with plain HTML element strings ('div', 'span', …) so the DOM shows
6
+ * clean Kbach class names instead of React Native Web's generated css-view-* classes.
7
+ *
8
+ * Used by: jsx-runtime (bare JSX), styled(), DarkWrapper, InteractiveWrapper.
9
+ */
10
+ /**
11
+ * Register a custom React Native component → HTML tag substitution.
12
+ * Call once at app startup before first render.
13
+ *
14
+ * ```ts
15
+ * import { Animated } from 'react-native';
16
+ * import { registerWebElement } from '@kbach/ui';
17
+ * registerWebElement(Animated.View, 'div');
18
+ * ```
19
+ */
20
+ declare function registerWebElement(rnComponent: unknown, htmlTag: string): void;
21
+
22
+ export { registerWebElement as r };
@@ -0,0 +1,3 @@
1
+ 'use client';
2
+ 'use strict';
3
+ module.exports = require('./dist/jsx-dev-runtime.js');
package/jsx-runtime.js ADDED
@@ -0,0 +1,3 @@
1
+ 'use client';
2
+ 'use strict';
3
+ module.exports = require('./dist/jsx-runtime.js');