@tamagui/core 1.89.30 → 1.90.1
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 +14 -18
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +14 -18
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -6520,12 +6520,12 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
6520
6520
|
function getVariantExtras(styleState) {
|
|
6521
6521
|
var curProps = styleState.curProps, props = styleState.props, conf = styleState.conf, context = styleState.context, theme = styleState.theme, fonts = conf.fontsParsed;
|
|
6522
6522
|
context != null && context.language && (fonts = getFontsForLanguage(conf.fontsParsed, context.language));
|
|
6523
|
-
var fontFamily = (0, import_createVariable.getVariableValue)(styleState.fontFamily || styleState.curProps.fontFamily || styleState.conf.defaultFont), next = {
|
|
6523
|
+
var fontFamily = (0, import_createVariable.getVariableValue)(styleState.fontFamily || styleState.curProps.fontFamily || styleState.conf.defaultFont), font = fonts[fontFamily] || fonts[styleState.conf.defaultFont], next = {
|
|
6524
6524
|
fonts,
|
|
6525
6525
|
tokens: conf.tokensParsed,
|
|
6526
6526
|
theme,
|
|
6527
6527
|
fontFamily,
|
|
6528
|
-
font
|
|
6528
|
+
font,
|
|
6529
6529
|
// TODO do this in splitstlye
|
|
6530
6530
|
// we avoid passing in default props for media queries because that would confuse things like SizableText.size:
|
|
6531
6531
|
props: new Proxy(props, {
|
|
@@ -6773,8 +6773,7 @@ var require_propMapper_native = __commonJS({
|
|
|
6773
6773
|
if (variantValue)
|
|
6774
6774
|
return variantValue;
|
|
6775
6775
|
}
|
|
6776
|
-
|
|
6777
|
-
if (styleProps.disableExpandShorthands || key in conf.shorthands && (shouldReturn = !0, key = conf.shorthands[key]), value && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps.resolveValues, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), shouldReturn || value != null) {
|
|
6776
|
+
if (styleProps.disableExpandShorthands || key in conf.shorthands && (key = conf.shorthands[key]), value && (value[0] === "$" ? value = getTokenForKey(key, value, styleProps.resolveValues, styleState) : (0, import_createVariable.isVariable)(value) && (value = resolveVariableValue(key, value, styleProps.resolveValues))), value != null) {
|
|
6778
6777
|
var result = (styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value)) || [
|
|
6779
6778
|
[
|
|
6780
6779
|
key,
|
|
@@ -7279,11 +7278,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7279
7278
|
var shouldPassProp = !isStyleProp || // is in parent variants
|
|
7280
7279
|
isHOC && (parentStaticConfig == null ? void 0 : parentStaticConfig.variants) && keyInit in parentStaticConfig.variants || (inlineProps == null ? void 0 : inlineProps.has(keyInit)), parentVariant = parentStaticConfig == null || (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit], isHOCShouldPassThrough = !!(isHOC && (isShorthand || isValidStyleKeyInit || isMediaOrPseudo1 || parentVariant || keyInit in import_skipProps.skipProps)), shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
7281
7280
|
if (!(shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant)) && !(!styleProps.noSkip && keyInit in import_skipProps.skipProps)) {
|
|
7282
|
-
|
|
7283
|
-
var _styleState2;
|
|
7284
|
-
(_styleState2 = styleState).style || (_styleState2.style = {}), styleState.style[keyInit] = valInit;
|
|
7285
|
-
continue;
|
|
7286
|
-
}
|
|
7281
|
+
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
7287
7282
|
var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : (0, import_propMapper.propMapper)(keyInit, valInit, styleState);
|
|
7288
7283
|
if (!avoidPropMap) {
|
|
7289
7284
|
if (!expanded)
|
|
@@ -7443,12 +7438,12 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7443
7438
|
}
|
|
7444
7439
|
}
|
|
7445
7440
|
for (var subKey in mediaStyle) {
|
|
7446
|
-
var
|
|
7441
|
+
var _styleState2;
|
|
7447
7442
|
if (subKey === "space") {
|
|
7448
7443
|
space = valInit.space;
|
|
7449
7444
|
continue;
|
|
7450
7445
|
}
|
|
7451
|
-
(
|
|
7446
|
+
(_styleState2 = styleState).style || (_styleState2.style = {}), (0, import_useMedia.mergeMediaByImportance)(styleState.style, mediaKeyShort, subKey, mediaStyle[subKey], usedKeys, mediaState2[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle.fontFamily);
|
|
7452
7447
|
}
|
|
7453
7448
|
}
|
|
7454
7449
|
continue;
|
|
@@ -7488,8 +7483,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7488
7483
|
if (style1.$$css)
|
|
7489
7484
|
Object.assign(styleState.classNames, style1);
|
|
7490
7485
|
else {
|
|
7491
|
-
var
|
|
7492
|
-
(
|
|
7486
|
+
var _styleState3;
|
|
7487
|
+
(_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, style1);
|
|
7493
7488
|
}
|
|
7494
7489
|
}
|
|
7495
7490
|
} catch (err) {
|
|
@@ -7506,8 +7501,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7506
7501
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
7507
7502
|
if (!avoidNormalize) {
|
|
7508
7503
|
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.transforms) {
|
|
7509
|
-
var
|
|
7510
|
-
(
|
|
7504
|
+
var _styleState4;
|
|
7505
|
+
(_styleState4 = styleState).style || (_styleState4.style = {}), Object.entries(styleState.transforms).sort(function(param, param1) {
|
|
7511
7506
|
var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
|
|
7512
7507
|
return a.localeCompare(b);
|
|
7513
7508
|
}).forEach(function(param) {
|
|
@@ -7523,8 +7518,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7523
7518
|
var val2;
|
|
7524
7519
|
if (!shouldDoClasses)
|
|
7525
7520
|
for (var key3 in parentSplitStyles.style) {
|
|
7526
|
-
var
|
|
7527
|
-
key3 in classNames || styleState.style && key3 in styleState.style || ((
|
|
7521
|
+
var _styleState5;
|
|
7522
|
+
key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState5 = styleState).style || (_styleState5.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
|
|
7528
7523
|
}
|
|
7529
7524
|
}
|
|
7530
7525
|
}
|
|
@@ -7664,7 +7659,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7664
7659
|
rotateY: "0deg",
|
|
7665
7660
|
rotateX: "0deg",
|
|
7666
7661
|
x: 0,
|
|
7667
|
-
y: 0
|
|
7662
|
+
y: 0,
|
|
7663
|
+
borderRadius: 0
|
|
7668
7664
|
}, lowercaseHyphenate = function(match) {
|
|
7669
7665
|
return "-".concat(match.toLowerCase());
|
|
7670
7666
|
}, hyphenate = function(str) {
|