tamagui 1.110.0 → 1.110.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 +10 -19
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +10 -19
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
package/dist/native.js
CHANGED
|
@@ -5917,6 +5917,7 @@ var require_normalize_color = __commonJS({
|
|
|
5917
5917
|
switch (name) {
|
|
5918
5918
|
case "transparent":
|
|
5919
5919
|
return 0;
|
|
5920
|
+
// http://www.w3.org/TR/css3-color/#svg-color
|
|
5920
5921
|
case "aliceblue":
|
|
5921
5922
|
return 4042850303;
|
|
5922
5923
|
case "antiquewhite":
|
|
@@ -8390,7 +8391,10 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
8390
8391
|
// this fixes issues where style prop got merged with wrong priority
|
|
8391
8392
|
!isHOC && (isValidStyleKey(key, staticConfig) || import_constants4.isAndroid && key === "elevation")
|
|
8392
8393
|
) return mergeStyle(styleState, key, val), "continue";
|
|
8393
|
-
|
|
8394
|
+
if (!isVariant) {
|
|
8395
|
+
if (styleProps.styledContextProps && key in styleProps.styledContextProps) return "continue";
|
|
8396
|
+
viewProps[key] = val;
|
|
8397
|
+
}
|
|
8394
8398
|
}, keyInit = keyOg, valInit = props[keyInit];
|
|
8395
8399
|
if (accept) {
|
|
8396
8400
|
var accepted = accept[keyInit];
|
|
@@ -10018,12 +10022,7 @@ var require_createComponent_native = __commonJS({
|
|
|
10018
10022
|
var inverseShorthands = (0, import_config.getConfig)().inverseShorthands;
|
|
10019
10023
|
for (var key in context.props) {
|
|
10020
10024
|
var _propsIn_key, _ref, _ref1, propVal = (_ref1 = (_ref = (_propsIn_key = propsIn[key]) !== null && _propsIn_key !== void 0 ? _propsIn_key : propsIn[inverseShorthands[key]]) !== null && _ref !== void 0 ? _ref : defaultProps == null ? void 0 : defaultProps[key]) !== null && _ref1 !== void 0 ? _ref1 : defaultProps == null ? void 0 : defaultProps[inverseShorthands[key]];
|
|
10021
|
-
|
|
10022
|
-
if (contextValue) {
|
|
10023
|
-
var isValidValue = key in _$validStyles || key in variants;
|
|
10024
|
-
isValidValue && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = contextValue[key]);
|
|
10025
|
-
}
|
|
10026
|
-
} else overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = propVal;
|
|
10025
|
+
propVal === void 0 ? contextValue && (styledContextProps || (styledContextProps = {}), styledContextProps[key] = contextValue[key]) : (overriddenContextProps || (overriddenContextProps = {}), overriddenContextProps[key] = propVal);
|
|
10027
10026
|
}
|
|
10028
10027
|
}
|
|
10029
10028
|
var curDefaultProps = styledContextProps ? _object_spread9({}, defaultProps, styledContextProps) : defaultProps, props = propsIn;
|
|
@@ -10107,7 +10106,8 @@ var require_createComponent_native = __commonJS({
|
|
|
10107
10106
|
resolveValues,
|
|
10108
10107
|
isExiting,
|
|
10109
10108
|
isAnimated,
|
|
10110
|
-
willBeAnimated
|
|
10109
|
+
willBeAnimated,
|
|
10110
|
+
styledContextProps
|
|
10111
10111
|
}, splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, (themeState == null || (_themeState_state = themeState.state) === null || _themeState_state === void 0 ? void 0 : _themeState_state.name) || "", state, styleProps, null, componentContext, elementType, debugProp);
|
|
10112
10112
|
if (props.group && props.untilMeasured === "hide" && !curStateRef.hasMeasured) {
|
|
10113
10113
|
var _splitStyles;
|
|
@@ -17252,17 +17252,8 @@ var require_index_native22 = __commonJS({
|
|
|
17252
17252
|
var getFontSized2 = function() {
|
|
17253
17253
|
var sizeTokenIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "$true", _ref = arguments.length > 1 ? arguments[1] : void 0, font = _ref.font, fontFamily = _ref.fontFamily, props = _ref.props, _font_lineHeight, _font_weight, _font_letterSpacing, _font_transform, _font_style, _font_color;
|
|
17254
17254
|
if (font) {
|
|
17255
|
-
var sizeToken = sizeTokenIn === "$true" ? getDefaultSizeToken(font) : sizeTokenIn, fontSize = font.size[sizeToken], lineHeight = (_font_lineHeight = font.lineHeight) === null || _font_lineHeight === void 0 ? void 0 : _font_lineHeight[sizeToken], fontWeight = (_font_weight = font.weight) === null || _font_weight === void 0 ? void 0 : _font_weight[sizeToken], letterSpacing = (_font_letterSpacing = font.letterSpacing) === null || _font_letterSpacing === void 0 ? void 0 : _font_letterSpacing[sizeToken], textTransform = (_font_transform = font.transform) === null || _font_transform === void 0 ? void 0 : _font_transform[sizeToken], _props_fontStyle, fontStyle = (_props_fontStyle = props.fontStyle) !== null && _props_fontStyle !== void 0 ? _props_fontStyle : (_font_style = font.style) === null || _font_style === void 0 ? void 0 : _font_style[sizeToken], _props_color, color = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : (_font_color = font.color) === null || _font_color === void 0 ? void 0 : _font_color[sizeToken]
|
|
17256
|
-
|
|
17257
|
-
fontStyle,
|
|
17258
|
-
textTransform,
|
|
17259
|
-
fontFamily,
|
|
17260
|
-
fontWeight,
|
|
17261
|
-
letterSpacing,
|
|
17262
|
-
fontSize,
|
|
17263
|
-
lineHeight
|
|
17264
|
-
};
|
|
17265
|
-
return process.env.NODE_ENV === "development" && props.debug && props.debug === "verbose" && (console.groupCollapsed(" \u{1F539} getFontSized", sizeTokenIn, sizeToken), console.info({
|
|
17255
|
+
var sizeToken = sizeTokenIn === "$true" ? getDefaultSizeToken(font) : sizeTokenIn, style = {}, fontSize = font.size[sizeToken], lineHeight = (_font_lineHeight = font.lineHeight) === null || _font_lineHeight === void 0 ? void 0 : _font_lineHeight[sizeToken], fontWeight = (_font_weight = font.weight) === null || _font_weight === void 0 ? void 0 : _font_weight[sizeToken], letterSpacing = (_font_letterSpacing = font.letterSpacing) === null || _font_letterSpacing === void 0 ? void 0 : _font_letterSpacing[sizeToken], textTransform = (_font_transform = font.transform) === null || _font_transform === void 0 ? void 0 : _font_transform[sizeToken], _props_fontStyle, fontStyle = (_props_fontStyle = props.fontStyle) !== null && _props_fontStyle !== void 0 ? _props_fontStyle : (_font_style = font.style) === null || _font_style === void 0 ? void 0 : _font_style[sizeToken], _props_color, color = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : (_font_color = font.color) === null || _font_color === void 0 ? void 0 : _font_color[sizeToken];
|
|
17256
|
+
return fontStyle && (style.fontStyle = fontStyle), textTransform && (style.textTransform = textTransform), fontFamily && (style.fontFamily = fontFamily), fontWeight && (style.fontWeight = fontWeight), letterSpacing && (style.letterSpacing = letterSpacing), fontSize && (style.fontSize = fontSize), lineHeight && (style.lineHeight = lineHeight), color && (style.color = color), process.env.NODE_ENV === "development" && props.debug && props.debug === "verbose" && (console.groupCollapsed(" \u{1F539} getFontSized", sizeTokenIn, sizeToken), console.info({
|
|
17266
17257
|
style,
|
|
17267
17258
|
props,
|
|
17268
17259
|
font
|