@tamagui/core 1.81.2 → 1.81.4

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 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 shorthand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null;
4072
- if (b && (key in b || shorthand && shorthand in b))
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[shorthand || key] = val;
4079
+ b && (key in b || longhand && longhand in b) || (out[longhand || key] = val);
4083
4080
  }
4084
4081
  }
4085
4082
  });
@@ -4958,7 +4955,7 @@ var require_createComponent_native = __commonJS({
4958
4955
  let componentClassName = props.asChild ? "" : props.componentName ? `is_${props.componentName}` : defaultComponentClassName, hasTextAncestor = !!(import_constants3.isWeb && isText && componentContext.inText), isDisabled = props.disabled ?? ((_c = props.accessibilityState) == null ? void 0 : _c.disabled);
4959
4956
  process.env.NODE_ENV === "development" && time && time`use-context`;
4960
4957
  let element = import_constants3.isWeb && (!Component || typeof Component == "string") && props.tag || Component, elementType = isText ? BaseText || element || "span" : BaseView || element || (hasTextAncestor ? "span" : "div");
4961
- if (animationsConfig && willBeAnimated && (animationsConfig.Text && (elementType = animationsConfig.Text), animationsConfig.View && (elementType = animationsConfig.View)), isAnimated && presence) {
4958
+ if (animationsConfig && willBeAnimated && (elementType = animationsConfig[isText ? "Text" : "View"] || elementType), isAnimated && presence) {
4962
4959
  let presenceState = presence[2];
4963
4960
  if (presenceState) {
4964
4961
  let isEntering = state.unmounted, isExiting2 = !presenceState.isPresent, enterExitVariant = presenceState.enterExitVariant, enterVariant = enterExitVariant ?? presenceState.enterVariant, exitVariant = enterExitVariant ?? presenceState.exitVariant;
@@ -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
- }), ResetPresence = (_l = config == null ? void 0 : config.animations) == null ? void 0 : _l.ResetPresence;
5229
- willBeAnimated && presence && ResetPresence && (content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ResetPresence, { children: content })), asChild && (elementType = import_Slot.Slot, Object.assign(viewProps, { onPress, onLongPress })), process.env.NODE_ENV === "development" && time && time`spaced-as-child`;
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), process.env.NODE_ENV === "development" && time && time`create-element`;
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(), {