@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 +10 -8
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +10 -8
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -7266,9 +7266,9 @@ var require_propMapper_native = __commonJS({
|
|
|
7266
7266
|
case "lineHeight":
|
|
7267
7267
|
case "letterSpacing":
|
|
7268
7268
|
case "fontWeight": {
|
|
7269
|
-
var
|
|
7269
|
+
var fam = fontFamily || conf.defaultFontToken;
|
|
7270
7270
|
if (fam) {
|
|
7271
|
-
var _font_, fontsParsed1 = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed1[fam] || fontsParsed1[
|
|
7271
|
+
var _font_, fontsParsed1 = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed1[fam] || fontsParsed1[conf.defaultFontToken];
|
|
7272
7272
|
valOrVar = (font == null || (_font_ = font[fontShorthand[key] || key]) === null || _font_ === void 0 ? void 0 : _font_[value]) || value, hasSet = !0;
|
|
7273
7273
|
}
|
|
7274
7274
|
break;
|
|
@@ -10525,10 +10525,11 @@ var require_createTamagui_native = __commonJS({
|
|
|
10525
10525
|
return getCSS(_object_spread_props(_object_spread2({}, opts), {
|
|
10526
10526
|
sinceLastCall: !0
|
|
10527
10527
|
}));
|
|
10528
|
-
}, _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,
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10528
|
+
}, _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() {
|
|
10529
|
+
var val2 = defaultFontSetting || // uses font named "body" if present for compat
|
|
10530
|
+
configIn.fonts && ("body" in configIn.fonts ? "body" : "");
|
|
10531
|
+
return !val2 && configIn.fonts && (val2 = Object.keys(configIn.fonts)[0]), (val2 == null ? void 0 : val2[0]) === "$" && (val2 = val2.slice(1)), val2;
|
|
10532
|
+
}(), defaultFontToken = "$".concat(defaultFont), config = _object_spread_props(_object_spread2({
|
|
10532
10533
|
fonts: {},
|
|
10533
10534
|
onlyAllowShorthands: !1,
|
|
10534
10535
|
fontLanguages: [],
|
|
@@ -10536,7 +10537,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
10536
10537
|
media: {}
|
|
10537
10538
|
}, configIn), {
|
|
10538
10539
|
unset: _object_spread2({
|
|
10539
|
-
fontFamily:
|
|
10540
|
+
fontFamily: defaultFont ? defaultFontToken : void 0
|
|
10540
10541
|
}, configIn.unset),
|
|
10541
10542
|
settings: _object_spread2({
|
|
10542
10543
|
// move deprecated settings here so we can reference them all using `getSetting`
|
|
@@ -10569,7 +10570,8 @@ var require_createTamagui_native = __commonJS({
|
|
|
10569
10570
|
getCSS,
|
|
10570
10571
|
defaultFont,
|
|
10571
10572
|
fontSizeTokens: fontSizeTokens || /* @__PURE__ */ new Set(),
|
|
10572
|
-
specificTokens
|
|
10573
|
+
specificTokens,
|
|
10574
|
+
defaultFontToken
|
|
10573
10575
|
});
|
|
10574
10576
|
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) {
|
|
10575
10577
|
return cb(config);
|