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.
@@ -5925,14 +5925,14 @@ var require_propMapper_native = __commonJS({
5925
5925
  }, lastFontFamilyToken = null, getTokenForKey = function(key, value, styleProps, styleState) {
5926
5926
  var _staticConfig_accept, resolveAs = styleProps.resolveValues || "none";
5927
5927
  if (resolveAs === "none") return value;
5928
- 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];
5928
+ 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];
5929
5929
  if (customTokenAccept) {
5930
- var _theme_value, val = (_theme_value = theme == null ? void 0 : theme[value]) !== null && _theme_value !== void 0 ? _theme_value : tokensParsed[customTokenAccept][value];
5930
+ var val = themeValue ?? tokensParsed[customTokenAccept][value];
5931
5931
  val != null && (resolveAs = "value", valOrVar = val, hasSet = !0);
5932
5932
  }
5933
- if (theme && value in theme) {
5933
+ if (themeValue) {
5934
5934
  if (resolveAs === "except-theme") return value;
5935
- valOrVar = theme[value], hasSet = !0;
5935
+ valOrVar = themeValue, hasSet = !0;
5936
5936
  } else {
5937
5937
  if (value in conf.specificTokens) hasSet = !0, valOrVar = conf.specificTokens[value];
5938
5938
  else {