@kbach/react-native 1.0.0-beta.27 → 1.0.0-beta.29

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.
@@ -1,10 +1,10 @@
1
- import "./chunk-MXIT3EDJ.mjs";
1
+ import "./chunk-2RXP6YSV.mjs";
2
2
  import {
3
3
  Fragment,
4
4
  jsx,
5
5
  jsxs
6
- } from "./chunk-GHQ7DWLO.mjs";
7
- import "./chunk-BEXNFWW6.mjs";
6
+ } from "./chunk-Q2L7M7FC.mjs";
7
+ import "./chunk-B36TKRB6.mjs";
8
8
 
9
9
  // src/jsxRuntimeCore.ts
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -654,7 +654,12 @@ function ReactiveElement({
654
654
  }
655
655
  const states = { hover: isHovered, focus: isFocused, disabled: hostRest.disabled === true };
656
656
  const finalStyle = hostType === import_react_native.Pressable ? (state) => resolvedStyleFor(resolveStyle2, classStrRaw, userStyle, state.pressed, layoutOverrides, states) : resolvedStyleFor(resolveStyle2, classStrRaw, userStyle, false, layoutOverrides, states);
657
- return makeElement(isStaticChildren, hostType, { ...hostRestWithLayout, style: finalStyle }, elementKey);
657
+ return makeElement(
658
+ isStaticChildren,
659
+ hostType,
660
+ { ...hostRestWithLayout, className: classStrRaw, style: finalStyle },
661
+ elementKey
662
+ );
658
663
  }
659
664
  function processElement(resolveStyle2, type, rawProps, key, isStaticChildren) {
660
665
  if (type === null || typeof type === "symbol" || !rawProps) {
@@ -673,7 +678,7 @@ function processElement(resolveStyle2, type, rawProps, key, isStaticChildren) {
673
678
  }
674
679
  const staticStates = { hover: false, focus: false, disabled: rest.disabled === true };
675
680
  const finalStyle = type === import_react_native.Pressable ? (state) => resolvedStyleFor(resolveStyle2, classStrRaw, userStyle, state.pressed, void 0, staticStates) : resolvedStyleFor(resolveStyle2, classStrRaw, userStyle, false, void 0, staticStates);
676
- return makeElement(isStaticChildren, type, { ...rest, style: finalStyle }, key);
681
+ return makeElement(isStaticChildren, type, { ...rest, className: classStrRaw, style: finalStyle }, key);
677
682
  }
678
683
  function createJsxFunctions(resolveStyle2) {
679
684
  function jsx2(type, props, key) {
@@ -712,7 +717,10 @@ function resolveLength(theme, parsed) {
712
717
  }
713
718
  function resolveNegatableLength(theme, parsed) {
714
719
  if (!parsed.negative) return resolveLength(theme, parsed);
715
- if (parsed.isArbitrary) return null;
720
+ if (parsed.isArbitrary) {
721
+ const value2 = parsed.value;
722
+ return value2 === null ? null : `calc(${value2} * -1)`;
723
+ }
716
724
  const value = parsed.value;
717
725
  if (value === null) return null;
718
726
  const px = spacingPx(theme, value);