@kbach/react 0.6.24 → 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.
@@ -24,7 +24,7 @@ import {
24
24
  transformToWebProps,
25
25
  useConditionalGlobalDarkMode,
26
26
  useConditionalWidth
27
- } from "./chunk-GJSZUC6Q.mjs";
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 classStr = className ?? kbProp ?? __kbachClasses;
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, {