@tamagui/core 1.90.2 → 1.90.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.
@@ -7498,8 +7498,6 @@ var require_getSplitStyles_native = __commonJS({
7498
7498
  mergeTransform(styleState.style, key6, val4, !0);
7499
7499
  });
7500
7500
  }
7501
- if (0)
7502
- var _styleState_style;
7503
7501
  if (parentSplitStyles) {
7504
7502
  if (0)
7505
7503
  for (var key2 in parentSplitStyles.classNames)
@@ -7511,6 +7509,8 @@ var require_getSplitStyles_native = __commonJS({
7511
7509
  }
7512
7510
  }
7513
7511
  }
7512
+ if (0)
7513
+ var _styleState_style, shouldStringifyTransforms;
7514
7514
  if (0) {
7515
7515
  if (styleState.style && shouldDoClasses) {
7516
7516
  var retainedStyles, shouldRetain;
@@ -8601,7 +8601,7 @@ var require_createComponent_native = __commonJS({
8601
8601
  groupContextState[groupName] = next;
8602
8602
  };
8603
8603
  }
8604
- var hasTextAncestor = !!(import_constants.isWeb && isText && componentContext.inText), _props_disabled, isDisabled = (_props_disabled = props.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : (_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled, isTaggable = !Component || typeof Component == "string", element = import_constants.isWeb && isTaggable && props.tag || Component, BaseTextComponent = BaseText || element || "span", BaseViewComponent = BaseView || element || (hasTextAncestor ? "span" : "div"), elementType = isText ? BaseTextComponent : BaseViewComponent;
8604
+ var hasTextAncestor = !!(import_constants.isWeb && isText && componentContext.inText), _props_disabled, isDisabled = (_props_disabled = props.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : (_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled, isTaggable = !Component || typeof Component == "string", tagProp = props.tag, element = import_constants.isWeb && isTaggable && tagProp || Component, BaseTextComponent = BaseText || element || "span", BaseViewComponent = BaseView || element || (hasTextAncestor ? "span" : "div"), elementType = isText ? BaseTextComponent : BaseViewComponent;
8605
8605
  animationsConfig && isAnimated && (elementType = animationsConfig[isText ? "Text" : "View"] || elementType);
8606
8606
  var disableThemeProp = !1, disableTheme = disableThemeProp || isHOC;
8607
8607
  props.themeShallow && (curState.themeShallow = !0);
@@ -8668,7 +8668,7 @@ var require_createComponent_native = __commonJS({
8668
8668
  "theme",
8669
8669
  "defaultVariants"
8670
8670
  ]), viewProps = nonTamaguiProps;
8671
- isHOC && _themeProp && (viewProps.theme = _themeProp);
8671
+ isHOC && _themeProp && (viewProps.theme = _themeProp), elementType.acceptTagProp && (viewProps.tag = tagProp);
8672
8672
  var animationStyles;
8673
8673
  if (
8674
8674
  // if it supports css vars we run it on server too to get matching initial style
@@ -8696,9 +8696,7 @@ var require_createComponent_native = __commonJS({
8696
8696
  }), !stateRef.current.hasMeasured && props.untilMeasured === "hide" && setState(function(prev) {
8697
8697
  return _object_spread2({}, prev);
8698
8698
  }), stateRef.current.hasMeasured = !0;
8699
- }));
8700
- var _hooks_usePropsTransform1;
8701
- viewProps = (_hooks_usePropsTransform1 = (_hooks_usePropsTransform = import_setupHooks.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_setupHooks.hooks, elementType, nonTamaguiProps, stateRef, curState.willHydrate)) !== null && _hooks_usePropsTransform1 !== void 0 ? _hooks_usePropsTransform1 : nonTamaguiProps, curState.composedRef || (curState.composedRef = (0, import_compose_refs.composeRefs)(function(x) {
8699
+ })), viewProps = ((_hooks_usePropsTransform = import_setupHooks.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_setupHooks.hooks, elementType, nonTamaguiProps, stateRef, curState.willHydrate)) || nonTamaguiProps, curState.composedRef || (curState.composedRef = (0, import_compose_refs.composeRefs)(function(x) {
8702
8700
  return stateRef.current.host = x;
8703
8701
  }, forwardedRef)), viewProps.ref = curState.composedRef;
8704
8702
  var pseudoGroups = splitStyles.pseudoGroups, mediaGroups = splitStyles.mediaGroups;