@kbach/react-native 1.0.0-beta.28 → 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.
- 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-TNMCSVJ5.mjs → chunk-2RXP6YSV.mjs} +1 -1
- package/dist/chunk-B36TKRB6.mjs +564 -0
- package/dist/{chunk-SETYQXTP.mjs → chunk-Q2L7M7FC.mjs} +2 -2
- package/dist/{useDynamicToken-C8T9r6Cl.d.ts → clsx-BCXALPGh.d.ts} +43 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +32 -1
- package/dist/index.web.d.ts +1 -1
- package/dist/index.web.js +29 -1
- package/dist/index.web.mjs +29 -2
- package/dist/jsx-dev-runtime.js +11 -3
- package/dist/jsx-dev-runtime.web.js +2 -2
- package/dist/jsx-dev-runtime.web.mjs +3 -3
- package/dist/jsx-runtime.js +11 -3
- package/dist/jsx-runtime.web.js +2 -2
- package/dist/jsx-runtime.web.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-NJZIH3NL.mjs +0 -564
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-2RXP6YSV.mjs";
|
|
2
2
|
import {
|
|
3
3
|
Fragment,
|
|
4
4
|
jsx,
|
|
5
5
|
jsxs
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
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";
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -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(
|
|
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)
|
|
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);
|