@kbach/react 0.5.38 → 0.5.40
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 +173 -98
- package/dist/{chunk-EJFQKJPT.mjs → chunk-6NHHYHNV.mjs} +36 -55
- package/dist/{chunk-W7UBSRE5.mjs → chunk-EYPBYQSB.mjs} +16 -10
- package/dist/{chunk-NWVL4BES.mjs → chunk-IZ3W6G3V.mjs} +404 -1017
- package/dist/index.d.mts +10 -20
- package/dist/index.d.ts +10 -20
- package/dist/index.js +438 -1047
- package/dist/index.mjs +40 -22
- package/dist/jsx-dev-runtime.d.mts +6 -4
- package/dist/jsx-dev-runtime.d.ts +6 -4
- package/dist/jsx-dev-runtime.js +437 -1071
- package/dist/jsx-dev-runtime.mjs +10 -5
- package/dist/jsx-runtime.d.mts +2 -3
- package/dist/jsx-runtime.d.ts +2 -3
- package/dist/jsx-runtime.js +435 -1069
- package/dist/jsx-runtime.mjs +5 -3
- package/dist/types-D-24rbXu.d.mts +126 -0
- package/dist/types-D-24rbXu.d.ts +126 -0
- package/dist/vite-plugin.d.mts +1 -1
- package/dist/vite-plugin.d.ts +1 -1
- package/dist/vite-plugin.js +301 -841
- package/dist/vite-plugin.mjs +76 -25
- package/package.json +4 -2
- package/types.d.ts +1 -0
- package/dist/types-CV5vXnSH.d.mts +0 -70
- package/dist/types-CV5vXnSH.d.ts +0 -70
package/dist/jsx-dev-runtime.mjs
CHANGED
|
@@ -2,13 +2,18 @@ import {
|
|
|
2
2
|
Fragment,
|
|
3
3
|
jsx,
|
|
4
4
|
jsxs
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-6NHHYHNV.mjs";
|
|
6
|
+
import "./chunk-EYPBYQSB.mjs";
|
|
7
|
+
import "./chunk-IZ3W6G3V.mjs";
|
|
8
8
|
|
|
9
9
|
// src/jsx-dev-runtime.tsx
|
|
10
|
-
function jsxDEV(type, props, key, isStaticChildren,
|
|
11
|
-
|
|
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" && "_source" in Object.getPrototypeOf(element ?? {})) {
|
|
13
|
+
element._source = source;
|
|
14
|
+
element._self = self;
|
|
15
|
+
}
|
|
16
|
+
return element;
|
|
12
17
|
}
|
|
13
18
|
export {
|
|
14
19
|
Fragment,
|
package/dist/jsx-runtime.d.mts
CHANGED
|
@@ -9,9 +9,8 @@ export { Fragment, JSX } from 'react';
|
|
|
9
9
|
* built-ins, HTML elements on web, and any third-party library component.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
declare function _invalidateDefaultFontCache(): void;
|
|
13
13
|
declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
14
|
-
/** jsxs() — elements with 2+ static children. Children array is compile-time stable. */
|
|
15
14
|
declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
16
15
|
|
|
17
|
-
export { jsx, jsxs };
|
|
16
|
+
export { _invalidateDefaultFontCache, jsx, jsxs };
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -9,9 +9,8 @@ export { Fragment, JSX } from 'react';
|
|
|
9
9
|
* built-ins, HTML elements on web, and any third-party library component.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
declare function _invalidateDefaultFontCache(): void;
|
|
13
13
|
declare function jsx(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
14
|
-
/** jsxs() — elements with 2+ static children. Children array is compile-time stable. */
|
|
15
14
|
declare function jsxs(type: unknown, props: Record<string, unknown> | null, key?: string): ReactElement;
|
|
16
15
|
|
|
17
|
-
export { jsx, jsxs };
|
|
16
|
+
export { _invalidateDefaultFontCache, jsx, jsxs };
|