tamagui 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.
@@ -497,7 +497,7 @@ var require_PresenceChild_native = __commonJS({
497
497
  * we want to make a new context value to ensure they get re-rendered
498
498
  * so they can detect that layout change.
499
499
  */
500
- presenceAffectsLayout ? void 0 : [
500
+ presenceAffectsLayout ? [] : [
501
501
  isPresent,
502
502
  exitVariant,
503
503
  enterVariant
@@ -6620,12 +6620,12 @@ var require_getVariantExtras_native = __commonJS({
6620
6620
  function getVariantExtras(styleState) {
6621
6621
  var curProps = styleState.curProps, props = styleState.props, conf = styleState.conf, context = styleState.context, theme = styleState.theme, fonts = conf.fontsParsed;
6622
6622
  context != null && context.language && (fonts = getFontsForLanguage(conf.fontsParsed, context.language));
6623
- var fontFamily = (0, import_createVariable.getVariableValue)(styleState.fontFamily || styleState.curProps.fontFamily || styleState.conf.defaultFont), next = {
6623
+ var fontFamily = (0, import_createVariable.getVariableValue)(styleState.fontFamily || styleState.curProps.fontFamily || styleState.conf.defaultFont), font = fonts[fontFamily] || fonts[styleState.conf.defaultFont], next = {
6624
6624
  fonts,
6625
6625
  tokens: conf.tokensParsed,
6626
6626
  theme,
6627
6627
  fontFamily,
6628
- font: fonts[fontFamily] || fonts[styleState.conf.defaultFont],
6628
+ font,
6629
6629
  // TODO do this in splitstlye
6630
6630
  // we avoid passing in default props for media queries because that would confuse things like SizableText.size:
6631
6631
  props: new Proxy(props, {
@@ -6873,8 +6873,7 @@ var require_propMapper_native = __commonJS({
6873
6873
  if (variantValue)
6874
6874
  return variantValue;
6875
6875
  }
6876
- var shouldReturn = !1;
6877
- 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) {
6876
+ 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) {
6878
6877
  var result = (styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value)) || [
6879
6878
  [
6880
6879
  key,
@@ -7379,11 +7378,7 @@ var require_getSplitStyles_native = __commonJS({
7379
7378
  var shouldPassProp = !isStyleProp || // is in parent variants
7380
7379
  isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
7381
7380
  if (!(shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant)) && !(!styleProps.noSkip && keyInit in import_skipProps.skipProps)) {
7382
- 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] !== "$")) {
7383
- var _styleState2;
7384
- (_styleState2 = styleState).style || (_styleState2.style = {}), styleState.style[keyInit] = valInit;
7385
- continue;
7386
- }
7381
+ (isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
7387
7382
  var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : (0, import_propMapper.propMapper)(keyInit, valInit, styleState);
7388
7383
  if (!avoidPropMap) {
7389
7384
  if (!expanded)
@@ -7543,12 +7538,12 @@ var require_getSplitStyles_native = __commonJS({
7543
7538
  }
7544
7539
  }
7545
7540
  for (var subKey in mediaStyle) {
7546
- var _styleState3;
7541
+ var _styleState2;
7547
7542
  if (subKey === "space") {
7548
7543
  space = valInit.space;
7549
7544
  continue;
7550
7545
  }
7551
- (_styleState3 = styleState).style || (_styleState3.style = {}), (0, import_useMedia.mergeMediaByImportance)(styleState.style, mediaKeyShort, subKey, mediaStyle[subKey], usedKeys, mediaState3[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle.fontFamily);
7546
+ (_styleState2 = styleState).style || (_styleState2.style = {}), (0, import_useMedia.mergeMediaByImportance)(styleState.style, mediaKeyShort, subKey, mediaStyle[subKey], usedKeys, mediaState3[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle.fontFamily);
7552
7547
  }
7553
7548
  }
7554
7549
  continue;
@@ -7588,8 +7583,8 @@ var require_getSplitStyles_native = __commonJS({
7588
7583
  if (style1.$$css)
7589
7584
  Object.assign(styleState.classNames, style1);
7590
7585
  else {
7591
- var _styleState4;
7592
- (_styleState4 = styleState).style || (_styleState4.style = {}), Object.assign(styleState.style, style1);
7586
+ var _styleState3;
7587
+ (_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, style1);
7593
7588
  }
7594
7589
  }
7595
7590
  } catch (err) {
@@ -7606,8 +7601,8 @@ var require_getSplitStyles_native = __commonJS({
7606
7601
  var avoidNormalize = styleProps.noNormalize === !1;
7607
7602
  if (!avoidNormalize) {
7608
7603
  if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.transforms) {
7609
- var _styleState5;
7610
- (_styleState5 = styleState).style || (_styleState5.style = {}), Object.entries(styleState.transforms).sort(function(param, param1) {
7604
+ var _styleState4;
7605
+ (_styleState4 = styleState).style || (_styleState4.style = {}), Object.entries(styleState.transforms).sort(function(param, param1) {
7611
7606
  var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
7612
7607
  return a.localeCompare(b);
7613
7608
  }).forEach(function(param) {
@@ -7623,8 +7618,8 @@ var require_getSplitStyles_native = __commonJS({
7623
7618
  var val2;
7624
7619
  if (!shouldDoClasses)
7625
7620
  for (var key3 in parentSplitStyles.style) {
7626
- var _styleState6;
7627
- key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState6 = styleState).style || (_styleState6.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
7621
+ var _styleState5;
7622
+ key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState5 = styleState).style || (_styleState5.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
7628
7623
  }
7629
7624
  }
7630
7625
  }
@@ -7764,7 +7759,8 @@ var require_getSplitStyles_native = __commonJS({
7764
7759
  rotateY: "0deg",
7765
7760
  rotateX: "0deg",
7766
7761
  x: 0,
7767
- y: 0
7762
+ y: 0,
7763
+ borderRadius: 0
7768
7764
  }, lowercaseHyphenate = function(match) {
7769
7765
  return "-".concat(match.toLowerCase());
7770
7766
  }, hyphenate = function(str) {
@@ -34726,9 +34722,8 @@ var require_Switch_native = __commonJS({
34726
34722
  }
34727
34723
  });
34728
34724
  module2.exports = __toCommonJS2(Switch_exports);
34729
- var import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_stacks3 = require_index_native20(), import_StyledContext = require_StyledContext_native(), SwitchThumb = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
34725
+ var import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_stacks3 = require_index_native20(), SwitchThumb = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
34730
34726
  name: "SwitchThumb",
34731
- context: import_StyledContext.SwitchStyledContext,
34732
34727
  variants: {
34733
34728
  unstyled: {
34734
34729
  false: {
@@ -34760,7 +34755,6 @@ var require_Switch_native = __commonJS({
34760
34755
  }, SwitchFrame = (0, import_core12.styled)(import_stacks3.YStack, {
34761
34756
  name: "Switch",
34762
34757
  tag: "button",
34763
- context: import_StyledContext.SwitchStyledContext,
34764
34758
  variants: {
34765
34759
  unstyled: {
34766
34760
  false: {