@tamagui/core 1.65.3 → 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/native.js
CHANGED
|
@@ -2400,7 +2400,7 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
2400
2400
|
tokens: conf.tokensParsed,
|
|
2401
2401
|
theme,
|
|
2402
2402
|
fontFamily,
|
|
2403
|
-
font: fonts[fontFamily],
|
|
2403
|
+
font: fonts[fontFamily] || fonts[styleState.conf.defaultFont],
|
|
2404
2404
|
// TODO do this in splitstlye
|
|
2405
2405
|
// we avoid passing in default props for media queries because that would confuse things like SizableText.size:
|
|
2406
2406
|
props: (0, import_createProxy.createProxy)(curProps, {
|
|
@@ -2626,9 +2626,9 @@ var require_propMapper_native = __commonJS({
|
|
|
2626
2626
|
case "lineHeight":
|
|
2627
2627
|
case "letterSpacing":
|
|
2628
2628
|
case "fontWeight": {
|
|
2629
|
-
let fam = fontFamily ||
|
|
2629
|
+
let defaultFont = conf.defaultFont || "$body", fam = fontFamily || defaultFont;
|
|
2630
2630
|
if (fam) {
|
|
2631
|
-
let
|
|
2631
|
+
let fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed[fam] || fontsParsed[defaultFont];
|
|
2632
2632
|
valOrVar = ((_b = font == null ? void 0 : font[fontShorthand[key] || key]) == null ? void 0 : _b[value]) || value, hasSet = !0;
|
|
2633
2633
|
}
|
|
2634
2634
|
break;
|
|
@@ -3882,7 +3882,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3882
3882
|
if (isStyleProp && props.asChild === "except-style")
|
|
3883
3883
|
continue;
|
|
3884
3884
|
let shouldPassProp = !isStyleProp || // is in parent variants
|
|
3885
|
-
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)),
|
|
3885
|
+
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)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
3886
3886
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && (console.groupCollapsed(
|
|
3887
3887
|
`\u{1F539}\u{1F539}\u{1F539}\u{1F539} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""} \u{1F539}\u{1F539}\u{1F539}\u{1F539}`
|
|
3888
3888
|
), console.log({ isVariant, valInit, shouldPassProp }), import_constants2.isClient && console.log({
|
|
@@ -5025,7 +5025,8 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5025
5025
|
...staticConfig,
|
|
5026
5026
|
...extended,
|
|
5027
5027
|
neverFlatten: !0,
|
|
5028
|
-
isHOC: !0
|
|
5028
|
+
isHOC: !0,
|
|
5029
|
+
isStyledHOC: !1
|
|
5029
5030
|
};
|
|
5030
5031
|
}
|
|
5031
5032
|
function extractable(Component2, extended) {
|
|
@@ -5846,7 +5847,7 @@ var require_styled_native = __commonJS({
|
|
|
5846
5847
|
}), parentStaticConfig && (parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC || (defaultProps = {
|
|
5847
5848
|
...parentStaticConfig.defaultProps,
|
|
5848
5849
|
...defaultProps
|
|
5849
|
-
}
|
|
5850
|
+
}, parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants)))), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
5850
5851
|
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 = {
|
|
5851
5852
|
...parentStaticConfig,
|
|
5852
5853
|
...staticExtractionOptions,
|