@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/native.js
CHANGED
|
@@ -4058,7 +4058,7 @@ var require_mergeProps_native = __commonJS({
|
|
|
4058
4058
|
mergeProps: () => mergeProps
|
|
4059
4059
|
});
|
|
4060
4060
|
module2.exports = __toCommonJS2(mergeProps_exports);
|
|
4061
|
-
var import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = (a, b, inverseShorthands) => {
|
|
4061
|
+
var import_useMedia = require_useMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = (a, b, inverseShorthands) => {
|
|
4062
4062
|
let out = {};
|
|
4063
4063
|
for (let key in a)
|
|
4064
4064
|
mergeProp(out, a, b, key, inverseShorthands);
|
|
@@ -4068,18 +4068,15 @@ var require_mergeProps_native = __commonJS({
|
|
|
4068
4068
|
return out;
|
|
4069
4069
|
};
|
|
4070
4070
|
function mergeProp(out, a, b, key, inverseShorthands) {
|
|
4071
|
-
let
|
|
4072
|
-
if (
|
|
4073
|
-
return;
|
|
4074
|
-
let val = a[key];
|
|
4075
|
-
if (key in import_pseudoDescriptors.pseudoDescriptors) {
|
|
4071
|
+
let longhand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null, val = a[key];
|
|
4072
|
+
if (key in import_pseudoDescriptors.pseudoDescriptors || import_useMedia.mediaKeys.has(key)) {
|
|
4076
4073
|
out[key] = {
|
|
4077
4074
|
...out[key],
|
|
4078
4075
|
...val
|
|
4079
4076
|
};
|
|
4080
4077
|
return;
|
|
4081
4078
|
}
|
|
4082
|
-
out[
|
|
4079
|
+
b && (key in b || longhand && longhand in b) || (out[longhand || key] = val);
|
|
4083
4080
|
}
|
|
4084
4081
|
}
|
|
4085
4082
|
});
|
|
@@ -5225,8 +5222,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5225
5222
|
direction,
|
|
5226
5223
|
isZStack,
|
|
5227
5224
|
debug: debugProp
|
|
5228
|
-
})
|
|
5229
|
-
|
|
5225
|
+
});
|
|
5226
|
+
asChild && (elementType = import_Slot.Slot, Object.assign(viewProps, { onPress, onLongPress })), process.env.NODE_ENV === "development" && time && time`spaced-as-child`;
|
|
5230
5227
|
let useChildrenResult;
|
|
5231
5228
|
import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(
|
|
5232
5229
|
elementType,
|
|
@@ -5234,7 +5231,9 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5234
5231
|
viewProps,
|
|
5235
5232
|
events,
|
|
5236
5233
|
staticConfig
|
|
5237
|
-
)), useChildrenResult ? content = useChildrenResult : content = (0, import_react3.createElement)(elementType, viewProps, content)
|
|
5234
|
+
)), useChildrenResult ? content = useChildrenResult : content = (0, import_react3.createElement)(elementType, viewProps, content);
|
|
5235
|
+
let ResetPresence = (_l = config == null ? void 0 : config.animations) == null ? void 0 : _l.ResetPresence;
|
|
5236
|
+
willBeAnimated && presence && ResetPresence && typeof content != "string" && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ResetPresence, { children: content })), process.env.NODE_ENV === "development" && time && time`create-element`;
|
|
5238
5237
|
let groupState = stateRef.current.group, subGroupContext = (0, import_react3.useMemo)(() => {
|
|
5239
5238
|
if (!(!groupState || !groupName))
|
|
5240
5239
|
return groupState.listeners.clear(), {
|