tamagui 1.123.9 → 1.123.10

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.
@@ -6472,7 +6472,7 @@ var require_propMapper_native = __commonJS({
6472
6472
  return;
6473
6473
  }
6474
6474
  }
6475
- if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps.resolveValues, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), value != null) {
6475
+ if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value != null && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), value != null) {
6476
6476
  key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
6477
6477
  var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value);
6478
6478
  if (expanded) for (var max2 = expanded.length, i = 0; i < max2; i++) {
@@ -6526,7 +6526,7 @@ var require_propMapper_native = __commonJS({
6526
6526
  if (styleProps.noExpand) res[subKey] = val;
6527
6527
  else if (variants && subKey in variants) {
6528
6528
  if (parentVariantKey && parentVariantKey === key) res[subKey] = // SYNC WITH *1
6529
- val[0] === "$" ? getTokenForKey(subKey, val, styleProps.resolveValues, styleState) : val;
6529
+ val[0] === "$" ? getTokenForKey(subKey, val, styleProps, styleState) : val;
6530
6530
  else {
6531
6531
  var variantOut = resolveVariants(subKey, val, styleProps, styleState, key);
6532
6532
  if (variantOut) {
@@ -6559,7 +6559,7 @@ var require_propMapper_native = __commonJS({
6559
6559
  if (typeof val == "string") {
6560
6560
  var fVal = (
6561
6561
  // SYNC WITH *1
6562
- val[0] === "$" ? getTokenForKey(subKey, val, styleProps.resolveValues, styleState) : val
6562
+ val[0] === "$" ? getTokenForKey(subKey, val, styleProps, styleState) : val
6563
6563
  );
6564
6564
  res[subKey] = fVal;
6565
6565
  continue;
@@ -6615,16 +6615,18 @@ var require_propMapper_native = __commonJS({
6615
6615
  var fontShorthand = {
6616
6616
  fontSize: "size",
6617
6617
  fontWeight: "weight"
6618
- }, lastFontFamilyToken = null, getTokenForKey = function(key, value) {
6619
- var resolveAs = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none", styleState = arguments.length > 3 ? arguments[3] : void 0, _staticConfig_accept;
6618
+ }, lastFontFamilyToken = null, getTokenForKey = function(key, value, styleProps, styleState) {
6619
+ var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
6620
6620
  if (resolveAs === "none") return value;
6621
6621
  var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1, customTokenAccept = staticConfig == null || (_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key];
6622
6622
  if (customTokenAccept) {
6623
6623
  var _theme_value, val = (_theme_value = theme == null ? void 0 : theme[value]) !== null && _theme_value !== void 0 ? _theme_value : tokensParsed[customTokenAccept][value];
6624
6624
  val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
6625
6625
  }
6626
- if (theme && value in theme) valOrVar = theme[value], hasSet = !0;
6627
- else {
6626
+ if (theme && value in theme) {
6627
+ if (resolveAs === "except-theme") return value;
6628
+ valOrVar = theme[value], hasSet = !0;
6629
+ } else {
6628
6630
  if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
6629
6631
  else {
6630
6632
  switch (key) {
@@ -7067,7 +7069,7 @@ var require_getSplitStyles_native = __commonJS({
7067
7069
  }
7068
7070
  });
7069
7071
  };
7070
- props.reddish && (debug = "verbose"), conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
7072
+ conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
7071
7073
  var { shorthands } = conf, { isHOC, isText, isInput, variants, isReactNative, inlineProps, inlineWhenUnflattened, parentStaticConfig, acceptsClassName } = staticConfig, viewProps = {}, mediaState3 = styleProps.mediaState || import_useMedia.mediaState, usedKeys = {}, shouldDoClasses = acceptsClassName && import_constants4.isWeb && !styleProps.noClass, rulesToInsert = void 0, classNames = {}, transforms = {}, pseudos = null, space = props.space, hasMedia = !1, dynamicThemeAccess, pseudoGroups, mediaGroups, className = props.className || "", mediaStylesSeen = 0, validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles), styleState = {
7072
7074
  classNames,
7073
7075
  conf,