@tamagui/core 1.79.1 → 1.79.2
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 +7 -6
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +5 -4
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -3351,7 +3351,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3351
3351
|
fontSize: "size",
|
|
3352
3352
|
fontWeight: "weight"
|
|
3353
3353
|
}, lastFontFamilyToken = null, getTokenForKey = (key, value, resolveAs = "none", styleState) => {
|
|
3354
|
-
var _a, _b;
|
|
3354
|
+
var _a, _b, _c;
|
|
3355
3355
|
if (resolveAs === "none")
|
|
3356
3356
|
return value;
|
|
3357
3357
|
let { theme, conf = (0, import_config.getConfig)(), context, fontFamily } = styleState, tokensParsed = conf.tokensParsed, valOrVar, hasSet = !1;
|
|
@@ -3362,7 +3362,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3362
3362
|
else {
|
|
3363
3363
|
switch (key) {
|
|
3364
3364
|
case "fontFamily": {
|
|
3365
|
-
valOrVar = ((
|
|
3365
|
+
valOrVar = ((_b = (context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed)[value]) == null ? void 0 : _b.family) || value, lastFontFamilyToken = value, hasSet = !0;
|
|
3366
3366
|
break;
|
|
3367
3367
|
}
|
|
3368
3368
|
case "fontSize":
|
|
@@ -3372,7 +3372,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3372
3372
|
let defaultFont = conf.defaultFont || "$body", fam = fontFamily || defaultFont;
|
|
3373
3373
|
if (fam) {
|
|
3374
3374
|
let fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed[fam] || fontsParsed[defaultFont];
|
|
3375
|
-
valOrVar = ((
|
|
3375
|
+
valOrVar = ((_c = font == null ? void 0 : font[fontShorthand[key] || key]) == null ? void 0 : _c[value]) || value, hasSet = !0;
|
|
3376
3376
|
}
|
|
3377
3377
|
break;
|
|
3378
3378
|
}
|
|
@@ -3395,7 +3395,7 @@ var require_propMapper_native = __commonJS({
|
|
|
3395
3395
|
if ((0, import_createVariable.isVariable)(valOrVar)) {
|
|
3396
3396
|
if (resolveValues === "value")
|
|
3397
3397
|
return valOrVar.val;
|
|
3398
|
-
let get = valOrVar.get;
|
|
3398
|
+
let get = valOrVar == null ? void 0 : valOrVar.get;
|
|
3399
3399
|
return key !== "shadowColor" && typeof get == "function" ? get(resolveValues === "web" ? "web" : void 0) : valOrVar.val;
|
|
3400
3400
|
}
|
|
3401
3401
|
return valOrVar;
|
|
@@ -4631,6 +4631,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4631
4631
|
componentName,
|
|
4632
4632
|
disable: disableTheme,
|
|
4633
4633
|
shallow: stateRef.current.themeShallow,
|
|
4634
|
+
inverse: props.themeInverse,
|
|
4634
4635
|
debug: debugProp
|
|
4635
4636
|
};
|
|
4636
4637
|
typeof stateRef.current.isListeningToTheme == "boolean" && (themeStateProps.shouldUpdate = () => stateRef.current.isListeningToTheme), themeStateProps.deopt = willBeAnimated;
|