@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.
- package/android/src/main/jniLibs/arm64-v8a/libkbach_core_engine.so +0 -0
- package/android/src/main/jniLibs/x86_64/libkbach_core_engine.so +0 -0
- package/dist/{chunk-B36TKRB6.mjs → chunk-DDNGWPS4.mjs} +1 -1
- package/dist/{chunk-2RXP6YSV.mjs → chunk-LOTFFRZP.mjs} +1 -1
- package/dist/{chunk-Q2L7M7FC.mjs → chunk-UJYEYY6S.mjs} +1 -1
- package/dist/index.js +8 -5
- package/dist/index.web.js +2 -2
- package/dist/index.web.mjs +3 -3
- package/dist/jsx-dev-runtime.js +7 -4
- package/dist/jsx-dev-runtime.web.js +1 -1
- package/dist/jsx-dev-runtime.web.mjs +3 -3
- package/dist/jsx-runtime.js +7 -4
- package/dist/jsx-runtime.web.js +1 -1
- package/dist/jsx-runtime.web.mjs +2 -2
- package/package.json +3 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-LOTFFRZP.mjs";
|
|
2
2
|
import {
|
|
3
3
|
Fragment,
|
|
4
4
|
jsx,
|
|
5
5
|
jsxs
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
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";
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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
|
|
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}
|
|
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);
|