@tamagui/core 1.65.4 → 1.67.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 +50 -11
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +13 -7
- package/dist/test.native.js.map +2 -2
- package/package.json +7 -7
package/dist/test.native.js
CHANGED
|
@@ -1144,6 +1144,7 @@ var require_config_native = __commonJS({
|
|
|
1144
1144
|
}, __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: !0 }), mod), config_exports = {};
|
|
1145
1145
|
__export2(config_exports, {
|
|
1146
1146
|
configListeners: () => configListeners,
|
|
1147
|
+
devConfig: () => devConfig,
|
|
1147
1148
|
getConfig: () => getConfig2,
|
|
1148
1149
|
getFont: () => getFont,
|
|
1149
1150
|
getThemes: () => getThemes2,
|
|
@@ -1155,6 +1156,7 @@ var require_config_native = __commonJS({
|
|
|
1155
1156
|
setConfig: () => setConfig,
|
|
1156
1157
|
setConfigFont: () => setConfigFont,
|
|
1157
1158
|
setTokens: () => setTokens,
|
|
1159
|
+
setupDev: () => setupDev2,
|
|
1158
1160
|
updateConfig: () => updateConfig2,
|
|
1159
1161
|
useTokens: () => useTokens
|
|
1160
1162
|
});
|
|
@@ -1197,7 +1199,9 @@ var require_config_native = __commonJS({
|
|
|
1197
1199
|
return ((_b = (_a2 = conf2.fontsParsed[k]) == null ? void 0 : _a2.family) == null ? void 0 : _b.val) === name;
|
|
1198
1200
|
}
|
|
1199
1201
|
)) == null ? void 0 : _a[1]);
|
|
1200
|
-
};
|
|
1202
|
+
}, devConfig;
|
|
1203
|
+
function setupDev2(conf2) {
|
|
1204
|
+
}
|
|
1201
1205
|
}
|
|
1202
1206
|
});
|
|
1203
1207
|
|
|
@@ -2342,7 +2346,7 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
2342
2346
|
tokens: conf.tokensParsed,
|
|
2343
2347
|
theme,
|
|
2344
2348
|
fontFamily,
|
|
2345
|
-
font: fonts[fontFamily],
|
|
2349
|
+
font: fonts[fontFamily] || fonts[styleState.conf.defaultFont],
|
|
2346
2350
|
// TODO do this in splitstlye
|
|
2347
2351
|
// we avoid passing in default props for media queries because that would confuse things like SizableText.size:
|
|
2348
2352
|
props: (0, import_createProxy.createProxy)(curProps, {
|
|
@@ -2556,9 +2560,9 @@ var require_propMapper_native = __commonJS({
|
|
|
2556
2560
|
case "lineHeight":
|
|
2557
2561
|
case "letterSpacing":
|
|
2558
2562
|
case "fontWeight": {
|
|
2559
|
-
let fam = fontFamily ||
|
|
2563
|
+
let defaultFont = conf.defaultFont || "$body", fam = fontFamily || defaultFont;
|
|
2560
2564
|
if (fam) {
|
|
2561
|
-
let
|
|
2565
|
+
let fontsParsed = context != null && context.language ? (0, import_getVariantExtras.getFontsForLanguage)(conf.fontsParsed, context.language) : conf.fontsParsed, font = fontsParsed[fam] || fontsParsed[defaultFont];
|
|
2562
2566
|
valOrVar = ((_b = font == null ? void 0 : font[fontShorthand[key] || key]) == null ? void 0 : _b[value]) || value, hasSet = !0;
|
|
2563
2567
|
}
|
|
2564
2568
|
break;
|
|
@@ -3739,7 +3743,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3739
3743
|
if (isStyleProp && props.asChild === "except-style")
|
|
3740
3744
|
continue;
|
|
3741
3745
|
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)),
|
|
3746
|
+
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
3747
|
if ((shouldPassProp || isHOCShouldPassThrough) && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || keyInit in skipProps)
|
|
3744
3748
|
continue;
|
|
3745
3749
|
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 +4717,8 @@ var require_createComponent_native = __commonJS({
|
|
|
4713
4717
|
...staticConfig,
|
|
4714
4718
|
...extended,
|
|
4715
4719
|
neverFlatten: !0,
|
|
4716
|
-
isHOC: !0
|
|
4720
|
+
isHOC: !0,
|
|
4721
|
+
isStyledHOC: !1
|
|
4717
4722
|
};
|
|
4718
4723
|
}
|
|
4719
4724
|
function extractable(Component2, extended) {
|
|
@@ -5517,7 +5522,7 @@ var require_styled_native = __commonJS({
|
|
|
5517
5522
|
}), parentStaticConfig && (parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC || (defaultProps = {
|
|
5518
5523
|
...parentStaticConfig.defaultProps,
|
|
5519
5524
|
...defaultProps
|
|
5520
|
-
}
|
|
5525
|
+
}, parentStaticConfig.variants && (variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants)))), parentStaticConfig != null && parentStaticConfig.isHOC && name && (defaultProps.componentName = name);
|
|
5521
5526
|
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
5527
|
...parentStaticConfig,
|
|
5523
5528
|
...staticExtractionOptions,
|
|
@@ -6186,6 +6191,7 @@ var require_index_native9 = __commonJS({
|
|
|
6186
6191
|
mediaObjectToString: () => import_useMedia.mediaObjectToString,
|
|
6187
6192
|
mediaQueryConfig: () => import_useMedia.mediaQueryConfig,
|
|
6188
6193
|
mediaState: () => import_useMedia.mediaState,
|
|
6194
|
+
setupDev: () => import_config.setupDev,
|
|
6189
6195
|
updateConfig: () => import_config.updateConfig,
|
|
6190
6196
|
useMedia: () => import_useMedia.useMedia,
|
|
6191
6197
|
useMediaPropsActive: () => import_useMedia.useMediaPropsActive
|