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

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-2RXP6YSV.mjs";
1
+ import "./chunk-LOTFFRZP.mjs";
2
2
  import {
3
3
  Fragment,
4
4
  jsx,
5
5
  jsxs
6
- } from "./chunk-Q2L7M7FC.mjs";
7
- import "./chunk-B36TKRB6.mjs";
6
+ } from "./chunk-UJYEYY6S.mjs";
7
+ import "./chunk-DDNGWPS4.mjs";
8
8
 
9
9
  // src/jsxRuntimeCore.ts
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -1627,11 +1627,11 @@ function resolveNative(parsed, theme) {
1627
1627
  case "backface-hidden":
1628
1628
  return [decl("backface-visibility", "hidden")];
1629
1629
  case "translate-x": {
1630
- const v = resolveNegatableLength(theme, parsed);
1630
+ const v = resolveNegatableSize(theme, parsed);
1631
1631
  return v === null ? null : [decl("transform-op-translate-x", v)];
1632
1632
  }
1633
1633
  case "translate-y": {
1634
- const v = resolveNegatableLength(theme, parsed);
1634
+ const v = resolveNegatableSize(theme, parsed);
1635
1635
  return v === null ? null : [decl("transform-op-translate-y", v)];
1636
1636
  }
1637
1637
  case "scale": {
@@ -1882,7 +1882,9 @@ function rnStyleValue(property, value) {
1882
1882
  if (reduced !== null) {
1883
1883
  return { value: reduced, warning: null };
1884
1884
  }
1885
- const warning = `Kbach: "${value}" is not a valid native value for "${property}" \u2014 dropped. calc()/clamp()/min()/max() only resolve on native when every operand is a constant px/rem length (no %, vw, vh, var(), or other viewport/CSS-variable units \u2014 those need real layout/DOM, which doesn't exist on native at paint time). Use a plain px/rem calc, a fraction utility (e.g. w-1/2), or resolve this value in JS instead.`;
1885
+ const warning = `[Kbach] "${value}" isn't a valid native value for "${property}" \u2014 dropped.
1886
+ calc()/min()/max()/clamp() only resolve on native when every operand is a constant px/rem length (no %, vw, vh, var(), or other viewport/CSS-variable units \u2014 those need real layout/DOM, which doesn't exist on native at paint time).
1887
+ Fix: use a plain px/rem calc, a fraction utility (e.g. w-1/2), or resolve this value in JS instead.`;
1886
1888
  return { value: null, warning };
1887
1889
  }
1888
1890
  function resolveStyleJsWithWarnings(classString, theme, colorScheme, pressed, width) {
@@ -1977,7 +1979,8 @@ function warnIfDev(classString, warnings) {
1977
1979
  if (warnings.length === 0) return;
1978
1980
  if (typeof __DEV__ !== "undefined" && !__DEV__) return;
1979
1981
  for (const warning of warnings) {
1980
- const message = `${warning} (from className "${classString}")`;
1982
+ const message = `${warning}
1983
+ From className: "${classString}"`;
1981
1984
  if (warnedMessages.has(message)) continue;
1982
1985
  warnedMessages.add(message);
1983
1986
  console.warn(message);