@tamagui/core 1.110.4 → 1.110.5

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
@@ -7630,9 +7630,9 @@ var require_propMapper_native = __commonJS({
7630
7630
  case "lineHeight":
7631
7631
  case "letterSpacing":
7632
7632
  case "fontWeight": {
7633
- var defaultFont = conf.defaultFont || "$body", fam = fontFamily || defaultFont;
7633
+ var fam = fontFamily || conf.defaultFontToken;
7634
7634
  if (fam) {
7635
- var _font_, fontsParsed1 = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed1[fam] || fontsParsed1[defaultFont];
7635
+ var _font_, fontsParsed1 = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed1[fam] || fontsParsed1[conf.defaultFontToken];
7636
7636
  valOrVar = (font == null || (_font_ = font[fontShorthand[key] || key]) === null || _font_ === void 0 ? void 0 : _font_[value]) || value, hasSet = !0;
7637
7637
  }
7638
7638
  break;
@@ -11318,10 +11318,11 @@ var require_createTamagui_native = __commonJS({
11318
11318
  return getCSS(_object_spread_props(_object_spread2({}, opts), {
11319
11319
  sinceLastCall: !0
11320
11320
  }));
11321
- }, _configIn_settings_defaultFont, defaultFontSetting = (_configIn_settings_defaultFont = (_configIn_settings = configIn.settings) === null || _configIn_settings === void 0 ? void 0 : _configIn_settings.defaultFont) !== null && _configIn_settings_defaultFont !== void 0 ? _configIn_settings_defaultFont : configIn.defaultFont, defaultFontName = defaultFontSetting || // uses font named "body" if present for compat
11322
- configIn.fonts && ("body" in configIn.fonts ? "body" : "");
11323
- !defaultFontName && configIn.fonts && (defaultFontName = Object.keys(configIn.fonts)[0]), (defaultFontName == null ? void 0 : defaultFontName[0]) === "$" && (defaultFontName = defaultFontName.slice(1));
11324
- var defaultFont = "$".concat(defaultFontName), config = _object_spread_props(_object_spread2({
11321
+ }, _configIn_settings_defaultFont, defaultFontSetting = (_configIn_settings_defaultFont = (_configIn_settings = configIn.settings) === null || _configIn_settings === void 0 ? void 0 : _configIn_settings.defaultFont) !== null && _configIn_settings_defaultFont !== void 0 ? _configIn_settings_defaultFont : configIn.defaultFont, defaultFont = function() {
11322
+ var val2 = defaultFontSetting || // uses font named "body" if present for compat
11323
+ configIn.fonts && ("body" in configIn.fonts ? "body" : "");
11324
+ return !val2 && configIn.fonts && (val2 = Object.keys(configIn.fonts)[0]), (val2 == null ? void 0 : val2[0]) === "$" && (val2 = val2.slice(1)), val2;
11325
+ }(), defaultFontToken = "$".concat(defaultFont), config = _object_spread_props(_object_spread2({
11325
11326
  fonts: {},
11326
11327
  onlyAllowShorthands: !1,
11327
11328
  fontLanguages: [],
@@ -11329,7 +11330,7 @@ var require_createTamagui_native = __commonJS({
11329
11330
  media: {}
11330
11331
  }, configIn), {
11331
11332
  unset: _object_spread2({
11332
- fontFamily: defaultFontName ? defaultFont : void 0
11333
+ fontFamily: defaultFont ? defaultFontToken : void 0
11333
11334
  }, configIn.unset),
11334
11335
  settings: _object_spread2({
11335
11336
  // move deprecated settings here so we can reference them all using `getSetting`
@@ -11362,7 +11363,8 @@ var require_createTamagui_native = __commonJS({
11362
11363
  getCSS,
11363
11364
  defaultFont,
11364
11365
  fontSizeTokens: fontSizeTokens || /* @__PURE__ */ new Set(),
11365
- specificTokens
11366
+ specificTokens,
11367
+ defaultFontToken
11366
11368
  });
11367
11369
  if ((0, import_config.setConfig)(config), (0, import_useMedia.configureMedia)(config), createdConfigs.set(config, !0), import_config.configListeners.size && (import_config.configListeners.forEach(function(cb) {
11368
11370
  return cb(config);