@tamagui/core 1.110.3 → 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/cjs/hooks/useElementLayout.native.js +1 -1
- package/dist/cjs/hooks/useElementLayout.native.js.map +1 -1
- package/dist/esm/hooks/useElementLayout.native.js +1 -1
- package/dist/esm/hooks/useElementLayout.native.js.map +1 -1
- package/dist/native.js +16 -11
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +16 -11
- package/dist/test.native.js.map +2 -2
- package/package.json +7 -7
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;
|
|
@@ -7758,8 +7758,11 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7758
7758
|
}
|
|
7759
7759
|
var valInitType = (typeof valInit > "u" ? "undefined" : _type_of(valInit)) > "u" ? "undefined" : _type_of1(valInit), isValidStyleKeyInit = isValidStyleKey(keyInit, staticConfig);
|
|
7760
7760
|
if (0) {
|
|
7761
|
-
var
|
|
7762
|
-
if (
|
|
7761
|
+
if (staticConfig.isReactNative && keyInit.startsWith("data-")) var _viewProps, _dataSet;
|
|
7762
|
+
if (isValidStyleKeyInit && valInitType === "string" && valInit[0] === "_") {
|
|
7763
|
+
var isValidClassName, isMediaOrPseudo;
|
|
7764
|
+
if ((isValidClassName || isMediaOrPseudo) && !shouldDoClasses) var _styleState;
|
|
7765
|
+
}
|
|
7763
7766
|
}
|
|
7764
7767
|
if (!isValidStyleKeyInit) {
|
|
7765
7768
|
if (!import_constants.isAndroid && keyInit === "elevationAndroid") continue;
|
|
@@ -7842,7 +7845,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7842
7845
|
}
|
|
7843
7846
|
}
|
|
7844
7847
|
if (isReactNative) {
|
|
7845
|
-
if (viewProps.tabIndex === 0) var
|
|
7848
|
+
if (viewProps.tabIndex === 0) var _viewProps1, _accessible;
|
|
7846
7849
|
} else if (viewProps.tabIndex == null) var _viewProps_focusable, isFocusable, role;
|
|
7847
7850
|
}
|
|
7848
7851
|
var styleProp = props.style;
|
|
@@ -10522,10 +10525,11 @@ var require_createTamagui_native = __commonJS({
|
|
|
10522
10525
|
return getCSS(_object_spread_props(_object_spread2({}, opts), {
|
|
10523
10526
|
sinceLastCall: !0
|
|
10524
10527
|
}));
|
|
10525
|
-
}, _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,
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
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({
|
|
10529
10533
|
fonts: {},
|
|
10530
10534
|
onlyAllowShorthands: !1,
|
|
10531
10535
|
fontLanguages: [],
|
|
@@ -10533,7 +10537,7 @@ var require_createTamagui_native = __commonJS({
|
|
|
10533
10537
|
media: {}
|
|
10534
10538
|
}, configIn), {
|
|
10535
10539
|
unset: _object_spread2({
|
|
10536
|
-
fontFamily:
|
|
10540
|
+
fontFamily: defaultFont ? defaultFontToken : void 0
|
|
10537
10541
|
}, configIn.unset),
|
|
10538
10542
|
settings: _object_spread2({
|
|
10539
10543
|
// move deprecated settings here so we can reference them all using `getSetting`
|
|
@@ -10566,7 +10570,8 @@ var require_createTamagui_native = __commonJS({
|
|
|
10566
10570
|
getCSS,
|
|
10567
10571
|
defaultFont,
|
|
10568
10572
|
fontSizeTokens: fontSizeTokens || /* @__PURE__ */ new Set(),
|
|
10569
|
-
specificTokens
|
|
10573
|
+
specificTokens,
|
|
10574
|
+
defaultFontToken
|
|
10570
10575
|
});
|
|
10571
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) {
|
|
10572
10577
|
return cb(config);
|