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.
package/dist/native.js CHANGED
@@ -6810,7 +6810,7 @@ var require_propMapper_native = __commonJS({
6810
6810
  return;
6811
6811
  }
6812
6812
  }
6813
- 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) {
6813
+ 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) {
6814
6814
  key === "fontFamily" && lastFontFamilyToken && (styleState.fontFamily = lastFontFamilyToken);
6815
6815
  var expanded = styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value);
6816
6816
  if (expanded) for (var max2 = expanded.length, i = 0; i < max2; i++) {
@@ -6872,7 +6872,7 @@ var require_propMapper_native = __commonJS({
6872
6872
  if (styleProps.noExpand) res[subKey] = val;
6873
6873
  else if (variants && subKey in variants) {
6874
6874
  if (parentVariantKey && parentVariantKey === key) res[subKey] = // SYNC WITH *1
6875
- val[0] === "$" ? getTokenForKey(subKey, val, styleProps.resolveValues, styleState) : val;
6875
+ val[0] === "$" ? getTokenForKey(subKey, val, styleProps, styleState) : val;
6876
6876
  else {
6877
6877
  var variantOut = resolveVariants(subKey, val, styleProps, styleState, key);
6878
6878
  if (variantOut) {
@@ -6905,7 +6905,7 @@ var require_propMapper_native = __commonJS({
6905
6905
  if (typeof val == "string") {
6906
6906
  var fVal = (
6907
6907
  // SYNC WITH *1
6908
- val[0] === "$" ? getTokenForKey(subKey, val, styleProps.resolveValues, styleState) : val
6908
+ val[0] === "$" ? getTokenForKey(subKey, val, styleProps, styleState) : val
6909
6909
  );
6910
6910
  res[subKey] = fVal;
6911
6911
  continue;
@@ -6965,16 +6965,18 @@ var require_propMapper_native = __commonJS({
6965
6965
  var fontShorthand = {
6966
6966
  fontSize: "size",
6967
6967
  fontWeight: "weight"
6968
- }, lastFontFamilyToken = null, getTokenForKey = function(key, value) {
6969
- var resolveAs = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "none", styleState = arguments.length > 3 ? arguments[3] : void 0, _staticConfig_accept;
6968
+ }, lastFontFamilyToken = null, getTokenForKey = function(key, value, styleProps, styleState) {
6969
+ var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
6970
6970
  if (resolveAs === "none") return value;
6971
6971
  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];
6972
6972
  if (customTokenAccept) {
6973
6973
  var _theme_value, val = (_theme_value = theme == null ? void 0 : theme[value]) !== null && _theme_value !== void 0 ? _theme_value : tokensParsed[customTokenAccept][value];
6974
6974
  val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
6975
6975
  }
6976
- if (theme && value in theme) valOrVar = theme[value], process.env.NODE_ENV === "development" && styleState.debug === "verbose" && (globalThis.tamaguiAvoidTracking = !0, console.info(` - resolving ${key} to theme value ${value} resolveAs ${resolveAs}`, valOrVar), globalThis.tamaguiAvoidTracking = !1), hasSet = !0;
6977
- else {
6976
+ if (theme && value in theme) {
6977
+ if (resolveAs === "except-theme") return value;
6978
+ valOrVar = theme[value], process.env.NODE_ENV === "development" && styleState.debug === "verbose" && (globalThis.tamaguiAvoidTracking = !0, console.info(` - resolving ${key} to theme value ${value} resolveAs ${resolveAs}`, valOrVar), globalThis.tamaguiAvoidTracking = !1), hasSet = !0;
6979
+ } else {
6978
6980
  if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
6979
6981
  else {
6980
6982
  switch (key) {
@@ -7480,7 +7482,7 @@ var require_getSplitStyles_native = __commonJS({
7480
7482
  console.groupEnd();
7481
7483
  }
7482
7484
  };
7483
- props.reddish && (debug = "verbose"), conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
7485
+ conf = conf || (0, import_config.getConfig)(), import_constants4.isWeb && styleProps.isAnimated && conf.animations.isReactNative && !styleProps.noNormalize && (styleProps.noNormalize = "values");
7484
7486
  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);
7485
7487
  process.env.NODE_ENV === "development" && debug === "profile" && time`split-styles-setup`;
7486
7488
  var styleState = {