tamagui 1.124.16 → 1.124.17

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
@@ -6213,14 +6213,14 @@ var require_propMapper_native = __commonJS({
6213
6213
  }, lastFontFamilyToken = null, getTokenForKey = function(key, value, styleProps, styleState) {
6214
6214
  var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
6215
6215
  if (resolveAs === "none") return value;
6216
- 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];
6216
+ var { theme, conf = (0, import_config.getConfig)(), context, fontFamily, staticConfig } = styleState, themeValue = theme ? theme[value] || theme[value.slice(1)] : void 0, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1, customTokenAccept = staticConfig == null || (_staticConfig_accept = staticConfig.accept) === null || _staticConfig_accept === void 0 ? void 0 : _staticConfig_accept[key];
6217
6217
  if (customTokenAccept) {
6218
- var _theme_value, val = (_theme_value = theme == null ? void 0 : theme[value]) !== null && _theme_value !== void 0 ? _theme_value : tokensParsed[customTokenAccept][value];
6218
+ var val = themeValue ?? tokensParsed[customTokenAccept][value];
6219
6219
  val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
6220
6220
  }
6221
- if (theme && value in theme) {
6221
+ if (themeValue) {
6222
6222
  if (resolveAs === "except-theme") return value;
6223
- 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;
6223
+ valOrVar = themeValue, 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;
6224
6224
  } else {
6225
6225
  if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
6226
6226
  else {