@tamagui/core 1.65.4 → 1.66.0
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 +7 -6
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -2342,7 +2342,7 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
2342
2342
|
tokens: conf.tokensParsed,
|
|
2343
2343
|
theme,
|
|
2344
2344
|
fontFamily,
|
|
2345
|
-
font: fonts[fontFamily],
|
|
2345
|
+
font: fonts[fontFamily] || fonts[styleState.conf.defaultFont],
|
|
2346
2346
|
// TODO do this in splitstlye
|
|
2347
2347
|
// we avoid passing in default props for media queries because that would confuse things like SizableText.size:
|
|
2348
2348
|
props: (0, import_createProxy.createProxy)(curProps, {
|
|
@@ -2556,9 +2556,9 @@ var require_propMapper_native = __commonJS({
|
|
|
2556
2556
|
case "lineHeight":
|
|
2557
2557
|
case "letterSpacing":
|
|
2558
2558
|
case "fontWeight": {
|
|
2559
|
-
let fam = fontFamily ||
|
|
2559
|
+
let defaultFont = conf.defaultFont || "$body", fam = fontFamily || defaultFont;
|
|
2560
2560
|
if (fam) {
|
|
2561
|
-
let
|
|
2561
|
+
let fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed[fam] || fontsParsed[defaultFont];
|
|
2562
2562
|
valOrVar = ((_b = font == null ? void 0 : font[fontShorthand[key] || key]) == null ? void 0 : _b[value]) || value, hasSet = !0;
|
|
2563
2563
|
}
|
|
2564
2564
|
break;
|
|
@@ -3739,7 +3739,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3739
3739
|
if (isStyleProp && props.asChild === "except-style")
|
|
3740
3740
|
continue;
|
|
3741
3741
|
let shouldPassProp = !isStyleProp || // is in parent variants
|
|
3742
|
-
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)),
|
|
3742
|
+
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = (_a = parentStaticConfig == null ? void 0 : parentStaticConfig.variants) == null ? void 0 : _a[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in skipProps));
|
|
3743
3743
|
if ((shouldPassProp || isHOCShouldPassThrough) && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || keyInit in skipProps)
|
|
3744
3744
|
continue;
|
|
3745
3745
|
if (isText && valInit && (keyInit === fontFamilyKey || keyInit === shorthands[fontFamilyKey]) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit), isValidStyleKeyInit && !variants && (valInitType === "number" || valInitType === "string" && valInit[0] !== "$")) {
|
|
@@ -4713,7 +4713,8 @@ var require_createComponent_native = __commonJS({
|
|
|
4713
4713
|
...staticConfig,
|
|
4714
4714
|
...extended,
|
|
4715
4715
|
neverFlatten: !0,
|
|
4716
|
-
isHOC: !0
|
|
4716
|
+
isHOC: !0,
|
|
4717
|
+
isStyledHOC: !1
|
|
4717
4718
|
};
|
|
4718
4719
|
}
|
|
4719
4720
|
function extractable(Component2, extended) {
|
|
@@ -5517,7 +5518,7 @@ var require_styled_native = __commonJS({
|
|
|
5517
5518
|
}), parentStaticConfig && (parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC || (defaultProps = {
|
|
5518
5519
|
...parentStaticConfig.defaultProps,
|
|
5519
5520
|
...defaultProps
|
|
5520
|
-
}
|
|
5521
|
+
}, parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants)))), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
5521
5522
|
let isText = !!(staticExtractionOptions != null && staticExtractionOptions.isText || parentStaticConfig != null && parentStaticConfig.isText), acceptsClassName = acceptsClassNameProp ?? (isPlainStyledComponent || isReactNative || (parentStaticConfig == null ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig == null ? void 0 : parentStaticConfig.acceptsClassName)), conf = {
|
|
5522
5523
|
...parentStaticConfig,
|
|
5523
5524
|
...staticExtractionOptions,
|