tamagui 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
@@ -3894,7 +3894,7 @@ var require_mergeProps_native = __commonJS({
3894
3894
  mergeProps: () => mergeProps
3895
3895
  });
3896
3896
  module2.exports = __toCommonJS2(mergeProps_exports);
3897
- var import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = (a, b, inverseShorthands) => {
3897
+ var import_useMedia = require_useMedia_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), mergeProps = (a, b, inverseShorthands) => {
3898
3898
  let out = {};
3899
3899
  for (let key in a)
3900
3900
  mergeProp(out, a, b, key, inverseShorthands);
@@ -3904,18 +3904,15 @@ var require_mergeProps_native = __commonJS({
3904
3904
  return out;
3905
3905
  };
3906
3906
  function mergeProp(out, a, b, key, inverseShorthands) {
3907
- let shorthand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null;
3908
- if (b && (key in b || shorthand && shorthand in b))
3909
- return;
3910
- let val = a[key];
3911
- if (key in import_pseudoDescriptors.pseudoDescriptors) {
3907
+ let longhand = (inverseShorthands == null ? void 0 : inverseShorthands[key]) || null, val = a[key];
3908
+ if (key in import_pseudoDescriptors.pseudoDescriptors || import_useMedia.mediaKeys.has(key)) {
3912
3909
  out[key] = {
3913
3910
  ...out[key],
3914
3911
  ...val
3915
3912
  };
3916
3913
  return;
3917
3914
  }
3918
- out[shorthand || key] = val;
3915
+ b && (key in b || longhand && longhand in b) || (out[longhand || key] = val);
3919
3916
  }
3920
3917
  }
3921
3918
  });
@@ -4794,7 +4791,7 @@ var require_createComponent_native = __commonJS({
4794
4791
  let componentClassName = props.asChild ? "" : props.componentName ? `is_${props.componentName}` : defaultComponentClassName, hasTextAncestor = !!(import_constants4.isWeb && isText && componentContext.inText), isDisabled = props.disabled ?? ((_c = props.accessibilityState) == null ? void 0 : _c.disabled);
4795
4792
  process.env.NODE_ENV === "development" && time && time`use-context`;
4796
4793
  let element = import_constants4.isWeb && (!Component || typeof Component == "string") && props.tag || Component, elementType = isText ? BaseText || element || "span" : BaseView || element || (hasTextAncestor ? "span" : "div");
4797
- if (animationsConfig && willBeAnimated && (animationsConfig.Text && (elementType = animationsConfig.Text), animationsConfig.View && (elementType = animationsConfig.View)), isAnimated && presence) {
4794
+ if (animationsConfig && willBeAnimated && (elementType = animationsConfig[isText ? "Text" : "View"] || elementType), isAnimated && presence) {
4798
4795
  let presenceState = presence[2];
4799
4796
  if (presenceState) {
4800
4797
  let isEntering = state.unmounted, isExiting2 = !presenceState.isPresent, enterExitVariant = presenceState.enterExitVariant, enterVariant = enterExitVariant ?? presenceState.enterVariant, exitVariant = enterExitVariant ?? presenceState.exitVariant;
@@ -5061,8 +5058,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5061
5058
  direction,
5062
5059
  isZStack,
5063
5060
  debug: debugProp
5064
- }), ResetPresence = (_l = config == null ? void 0 : config.animations) == null ? void 0 : _l.ResetPresence;
5065
- willBeAnimated && presence && ResetPresence && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ResetPresence, { children: content })), asChild && (elementType = import_Slot.Slot, Object.assign(viewProps, { onPress, onLongPress })), process.env.NODE_ENV === "development" && time && time`spaced-as-child`;
5061
+ });
5062
+ asChild && (elementType = import_Slot.Slot, Object.assign(viewProps, { onPress, onLongPress })), process.env.NODE_ENV === "development" && time && time`spaced-as-child`;
5066
5063
  let useChildrenResult;
5067
5064
  import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(
5068
5065
  elementType,
@@ -5070,7 +5067,9 @@ If you meant to do this, you can disable this warning - either change untilMeasu
5070
5067
  viewProps,
5071
5068
  events,
5072
5069
  staticConfig
5073
- )), useChildrenResult ? content = useChildrenResult : content = (0, import_react2.createElement)(elementType, viewProps, content), process.env.NODE_ENV === "development" && time && time`create-element`;
5070
+ )), useChildrenResult ? content = useChildrenResult : content = (0, import_react2.createElement)(elementType, viewProps, content);
5071
+ let ResetPresence = (_l = config == null ? void 0 : config.animations) == null ? void 0 : _l.ResetPresence;
5072
+ willBeAnimated && presence && ResetPresence && typeof content != "string" && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ResetPresence, { children: content })), process.env.NODE_ENV === "development" && time && time`create-element`;
5074
5073
  let groupState = stateRef.current.group, subGroupContext = (0, import_react2.useMemo)(() => {
5075
5074
  if (!(!groupState || !groupName))
5076
5075
  return groupState.listeners.clear(), {