@tamagui/core 1.81.2 → 1.81.3
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/dist/native.js +9 -10
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +8 -9
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -3874,7 +3874,7 @@ var require_mergeProps_native = __commonJS({
|
|
|
3874
3874
|
mergeProps: () => mergeProps
|
|
3875
3875
|
});
|
|
3876
3876
|
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
3877
|
-
var import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = (a, b, inverseShorthands) => {
|
|
3877
|
+
var import_useMedia = require_useMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = (a, b, inverseShorthands) => {
|
|
3878
3878
|
let out = {};
|
|
3879
3879
|
for (let key in a)
|
|
3880
3880
|
mergeProp(out, a, b, key, inverseShorthands);
|
|
@@ -3884,18 +3884,15 @@ var require_mergeProps_native = __commonJS({
|
|
|
3884
3884
|
return out;
|
|
3885
3885
|
};
|
|
3886
3886
|
function mergeProp(out, a, b, key, inverseShorthands) {
|
|
3887
|
-
let
|
|
3888
|
-
if (
|
|
3889
|
-
return;
|
|
3890
|
-
let val = a[key];
|
|
3891
|
-
if (key in import_pseudoDescriptors.pseudoDescriptors) {
|
|
3887
|
+
let longhand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null, val = a[key];
|
|
3888
|
+
if (key in import_pseudoDescriptors.pseudoDescriptors || import_useMedia.mediaKeys.has(key)) {
|
|
3892
3889
|
out[key] = {
|
|
3893
3890
|
...out[key],
|
|
3894
3891
|
...val
|
|
3895
3892
|
};
|
|
3896
3893
|
return;
|
|
3897
3894
|
}
|
|
3898
|
-
out[
|
|
3895
|
+
b && (key in b || longhand && longhand in b) || (out[longhand || key] = val);
|
|
3899
3896
|
}
|
|
3900
3897
|
}
|
|
3901
3898
|
});
|
|
@@ -4910,8 +4907,8 @@ var require_createComponent_native = __commonJS({
|
|
|
4910
4907
|
direction,
|
|
4911
4908
|
isZStack,
|
|
4912
4909
|
debug: debugProp
|
|
4913
|
-
})
|
|
4914
|
-
|
|
4910
|
+
});
|
|
4911
|
+
asChild && (elementType = import_Slot.Slot, Object.assign(viewProps, { onPress, onLongPress }));
|
|
4915
4912
|
let useChildrenResult;
|
|
4916
4913
|
import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(
|
|
4917
4914
|
elementType,
|
|
@@ -4920,6 +4917,8 @@ var require_createComponent_native = __commonJS({
|
|
|
4920
4917
|
events,
|
|
4921
4918
|
staticConfig
|
|
4922
4919
|
)), useChildrenResult ? content = useChildrenResult : content = (0, import_react3.createElement)(elementType, viewProps, content);
|
|
4920
|
+
let ResetPresence = (_l = config == null ? void 0 : config.animations) == null ? void 0 : _l.ResetPresence;
|
|
4921
|
+
willBeAnimated && presence && ResetPresence && typeof content != "string" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ResetPresence, { children: content }));
|
|
4923
4922
|
let groupState = stateRef.current.group, subGroupContext = (0, import_react3.useMemo)(() => {
|
|
4924
4923
|
if (!(!groupState || !groupName))
|
|
4925
4924
|
return groupState.listeners.clear(), {
|