@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.
- package/KBACH.md +1044 -0
- package/README.md +473 -0
- package/dist/chunk-BPCFICND.mjs +4187 -0
- package/dist/chunk-UE54W6ZG.mjs +208 -0
- package/dist/core/index.d.ts +1346 -0
- package/dist/core/index.js +3712 -0
- package/dist/index.d.ts +328 -0
- package/dist/index.js +1191 -0
- package/dist/index.mjs +589 -0
- package/dist/jsx-dev-runtime.d.ts +21 -0
- package/dist/jsx-dev-runtime.js +780 -0
- package/dist/jsx-dev-runtime.mjs +21 -0
- package/dist/jsx-runtime.d.ts +17 -0
- package/dist/jsx-runtime.js +779 -0
- package/dist/jsx-runtime.mjs +17 -0
- package/dist/native.d.ts +314 -0
- package/dist/native.js +99 -0
- package/dist/vite-plugin.d.mts +155 -0
- package/dist/vite-plugin.d.ts +155 -0
- package/dist/vite-plugin.js +3939 -0
- package/dist/vite-plugin.mjs +3903 -0
- package/dist/web-substitute-6xH1WxpZ.d.ts +22 -0
- package/jsx-dev-runtime.js +3 -0
- package/jsx-runtime.js +3 -0
- package/kbach-ui.md +889 -0
- package/package.json +104 -0
- package/scripts/postinstall.js +28 -0
- package/src/native/babel/index.js +30 -0
- package/src/native/babel-plugin/index.js +605 -0
- package/src/native/babel-plugin/index.test.ts +86 -0
- package/types.d.ts +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
Fragment,
|
|
4
|
+
jsx,
|
|
5
|
+
jsxs
|
|
6
|
+
} from "./chunk-UE54W6ZG.mjs";
|
|
7
|
+
import "./chunk-BPCFICND.mjs";
|
|
8
|
+
|
|
9
|
+
// src/jsx-dev-runtime.tsx
|
|
10
|
+
function jsxDEV(type, props, key, isStaticChildren, source, self) {
|
|
11
|
+
const element = (isStaticChildren ? jsxs : jsx)(type, props, key);
|
|
12
|
+
if (source && element && typeof element === "object" && Object.isExtensible(element)) {
|
|
13
|
+
element._source = source;
|
|
14
|
+
element._self = self;
|
|
15
|
+
}
|
|
16
|
+
return element;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
Fragment,
|
|
20
|
+
jsxDEV
|
|
21
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export { Fragment, JSX } from 'react';
|
|
3
|
+
export { r as registerWebElement } from './web-substitute-6xH1WxpZ.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @kbach/ui/jsx-runtime
|
|
7
|
+
*
|
|
8
|
+
* Drop-in replacement for react/jsx-runtime.
|
|
9
|
+
* Intercepts `className` and `kb` props on EVERY JSX element — React Native
|
|
10
|
+
* built-ins, HTML elements on web, and any third-party library component.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
declare function _invalidateDefaultFontCache(): void;
|
|
14
|
+
declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
15
|
+
declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
16
|
+
|
|
17
|
+
export { _invalidateDefaultFontCache, jsx, jsxs };
|