@tamagui/core 1.89.30 → 1.90.0

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
@@ -6890,12 +6890,12 @@ var require_getVariantExtras_native = __commonJS({
6890
6890
  function getVariantExtras(styleState) {
6891
6891
  var curProps = styleState.curProps, props = styleState.props, conf = styleState.conf, context = styleState.context, theme = styleState.theme, fonts = conf.fontsParsed;
6892
6892
  context != null && context.language && (fonts = getFontsForLanguage(conf.fontsParsed, context.language));
6893
- var fontFamily = (0, import_createVariable.getVariableValue)(styleState.fontFamily || styleState.curProps.fontFamily || styleState.conf.defaultFont), next = {
6893
+ var fontFamily = (0, import_createVariable.getVariableValue)(styleState.fontFamily || styleState.curProps.fontFamily || styleState.conf.defaultFont), font = fonts[fontFamily] || fonts[styleState.conf.defaultFont], next = {
6894
6894
  fonts,
6895
6895
  tokens: conf.tokensParsed,
6896
6896
  theme,
6897
6897
  fontFamily,
6898
- font: fonts[fontFamily] || fonts[styleState.conf.defaultFont],
6898
+ font,
6899
6899
  // TODO do this in splitstlye
6900
6900
  // we avoid passing in default props for media queries because that would confuse things like SizableText.size:
6901
6901
  props: new Proxy(props, {
@@ -7162,8 +7162,7 @@ var require_propMapper_native = __commonJS({
7162
7162
  if (variantValue)
7163
7163
  return variantValue;
7164
7164
  }
7165
- var shouldReturn = !1;
7166
- if (styleProps.disableExpandShorthands || key in conf.shorthands && (shouldReturn = !0, key = conf.shorthands[key]), value && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps.resolveValues, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), shouldReturn || value != null) {
7165
+ if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps.resolveValues, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), value != null) {
7167
7166
  var result = (styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value)) || [
7168
7167
  [
7169
7168
  key,
@@ -7723,11 +7722,7 @@ var require_getSplitStyles_native = __commonJS({
7723
7722
  curProps: _object_spread2({}, styleState.curProps),
7724
7723
  parentStaticConfig
7725
7724
  })), !(shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant)) && !(!styleProps.noSkip && keyInit in import_skipProps.skipProps)) {
7726
- if ((isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit), isValidStyleKeyInit && !variants && valInit !== "unset" && (valInitType === "number" || valInitType === "string" && valInit[0] !== "$")) {
7727
- var _styleState2;
7728
- (_styleState2 = styleState).style || (_styleState2.style = {}), styleState.style[keyInit] = valInit;
7729
- continue;
7730
- }
7725
+ (isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
7731
7726
  var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : (0, import_propMapper.propMapper)(keyInit, valInit, styleState);
7732
7727
  if (!avoidPropMap) {
7733
7728
  if (!expanded)
@@ -7940,12 +7935,12 @@ current`, _object_spread2({}, styleState.style)));
7940
7935
  }
7941
7936
  }
7942
7937
  for (var subKey in mediaStyle) {
7943
- var _styleState3;
7938
+ var _styleState2;
7944
7939
  if (subKey === "space") {
7945
7940
  space = valInit.space;
7946
7941
  continue;
7947
7942
  }
7948
- (_styleState3 = styleState).style || (_styleState3.style = {}), (0, import_useMedia.mergeMediaByImportance)(styleState.style, mediaKeyShort, subKey, mediaStyle[subKey], usedKeys, mediaState2[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle.fontFamily);
7943
+ (_styleState2 = styleState).style || (_styleState2.style = {}), (0, import_useMedia.mergeMediaByImportance)(styleState.style, mediaKeyShort, subKey, mediaStyle[subKey], usedKeys, mediaState2[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle.fontFamily);
7949
7944
  }
7950
7945
  }
7951
7946
  continue;
@@ -7988,8 +7983,8 @@ current`, _object_spread2({}, styleState.style)));
7988
7983
  if (style1.$$css)
7989
7984
  Object.assign(styleState.classNames, style1);
7990
7985
  else {
7991
- var _styleState4;
7992
- (_styleState4 = styleState).style || (_styleState4.style = {}), Object.assign(styleState.style, style1);
7986
+ var _styleState3;
7987
+ (_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, style1);
7993
7988
  }
7994
7989
  }
7995
7990
  } catch (err) {
@@ -8006,8 +8001,8 @@ current`, _object_spread2({}, styleState.style)));
8006
8001
  var avoidNormalize = styleProps.noNormalize === !1;
8007
8002
  if (!avoidNormalize) {
8008
8003
  if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.transforms) {
8009
- var _styleState5;
8010
- (_styleState5 = styleState).style || (_styleState5.style = {}), Object.entries(styleState.transforms).sort(function(param, param1) {
8004
+ var _styleState4;
8005
+ (_styleState4 = styleState).style || (_styleState4.style = {}), Object.entries(styleState.transforms).sort(function(param, param1) {
8011
8006
  var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
8012
8007
  return a.localeCompare(b);
8013
8008
  }).forEach(function(param) {
@@ -8023,8 +8018,8 @@ current`, _object_spread2({}, styleState.style)));
8023
8018
  var val2;
8024
8019
  if (!shouldDoClasses)
8025
8020
  for (var key3 in parentSplitStyles.style) {
8026
- var _styleState6;
8027
- key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState6 = styleState).style || (_styleState6.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
8021
+ var _styleState5;
8022
+ key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState5 = styleState).style || (_styleState5.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
8028
8023
  }
8029
8024
  }
8030
8025
  }
@@ -8175,7 +8170,8 @@ current`, _object_spread2({}, styleState.style)));
8175
8170
  rotateY: "0deg",
8176
8171
  rotateX: "0deg",
8177
8172
  x: 0,
8178
- y: 0
8173
+ y: 0,
8174
+ borderRadius: 0
8179
8175
  }, lowercaseHyphenate = function(match) {
8180
8176
  return "-".concat(match.toLowerCase());
8181
8177
  }, hyphenate = function(str) {