@kbach/react 0.6.25 → 0.6.26
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 +53 -27
- package/dist/{chunk-XISB5W3A.mjs → chunk-AKX6I7WP.mjs} +1301 -1297
- package/dist/{chunk-RUI5EQDF.mjs → chunk-NWQIZZCW.mjs} +6 -2
- package/dist/core/index.d.ts +1274 -0
- package/dist/core/index.js +3457 -0
- package/dist/index.d.ts +50 -224
- package/dist/index.js +215 -3445
- package/dist/index.mjs +77 -36
- package/dist/jsx-dev-runtime.js +54 -3279
- package/dist/jsx-dev-runtime.mjs +2 -2
- package/dist/jsx-runtime.js +54 -3279
- package/dist/jsx-runtime.mjs +2 -2
- package/dist/vite-plugin.js +1348 -1292
- package/dist/vite-plugin.mjs +1348 -1292
- package/kbach-react.md +15 -1
- package/package.json +4 -8
- package/dist/index.d.mts +0 -455
- package/dist/jsx-dev-runtime.d.mts +0 -21
- package/dist/jsx-runtime.d.mts +0 -17
- package/dist/vite-plugin-client.d.mts +0 -8
- package/dist/vite-plugin-client.d.ts +0 -8
- package/dist/web-substitute-CfpYFnE7.d.mts +0 -22
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
transformToWebProps,
|
|
25
25
|
useConditionalGlobalDarkMode,
|
|
26
26
|
useConditionalWidth
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AKX6I7WP.mjs";
|
|
28
28
|
|
|
29
29
|
// src/jsx-runtime.tsx
|
|
30
30
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -121,7 +121,11 @@ function processElement(type, rawProps, key, isStaticChildren) {
|
|
|
121
121
|
if (!rawProps) return _jsx(effectiveType, null, key);
|
|
122
122
|
const workingProps = webTag && originalName ? transformToWebProps(originalName, webTag, rawProps) : rawProps;
|
|
123
123
|
const { className, kb: kbProp, __kbachStyles, __kbachClasses } = workingProps;
|
|
124
|
-
const
|
|
124
|
+
const classStrRaw = className ?? kbProp ?? __kbachClasses;
|
|
125
|
+
if (classStrRaw !== void 0 && typeof classStrRaw !== "string") {
|
|
126
|
+
return makeElement(isStaticChildren, effectiveType, workingProps, key);
|
|
127
|
+
}
|
|
128
|
+
const classStr = classStrRaw;
|
|
125
129
|
if (!isNative && isRuntimeCSSDisabled() && classStr && !__kbachStyles) {
|
|
126
130
|
const { style: userStyle2, ...passProps2 } = omitConsumed(workingProps);
|
|
127
131
|
return makeElement(isStaticChildren, effectiveType, {
|