tamagui 1.89.30 → 1.90.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 +17 -23
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +16 -22
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
- package/types/views/Input.d.ts +12 -12
- package/types/views/TamaguiProvider.d.ts +1 -2
- package/types/views/TamaguiProvider.d.ts.map +1 -1
package/dist/native.js
CHANGED
|
@@ -497,7 +497,7 @@ var require_PresenceChild_native = __commonJS({
|
|
|
497
497
|
* we want to make a new context value to ensure they get re-rendered
|
|
498
498
|
* so they can detect that layout change.
|
|
499
499
|
*/
|
|
500
|
-
presenceAffectsLayout ?
|
|
500
|
+
presenceAffectsLayout ? [] : [
|
|
501
501
|
isPresent,
|
|
502
502
|
exitVariant,
|
|
503
503
|
enterVariant
|
|
@@ -6986,12 +6986,12 @@ var require_getVariantExtras_native = __commonJS({
|
|
|
6986
6986
|
function getVariantExtras(styleState) {
|
|
6987
6987
|
var curProps = styleState.curProps, props = styleState.props, conf = styleState.conf, context = styleState.context, theme = styleState.theme, fonts = conf.fontsParsed;
|
|
6988
6988
|
context != null && context.language && (fonts = getFontsForLanguage(conf.fontsParsed, context.language));
|
|
6989
|
-
var fontFamily = (0, import_createVariable.getVariableValue)(styleState.fontFamily || styleState.curProps.fontFamily || styleState.conf.defaultFont), next = {
|
|
6989
|
+
var fontFamily = (0, import_createVariable.getVariableValue)(styleState.fontFamily || styleState.curProps.fontFamily || styleState.conf.defaultFont), font = fonts[fontFamily] || fonts[styleState.conf.defaultFont], next = {
|
|
6990
6990
|
fonts,
|
|
6991
6991
|
tokens: conf.tokensParsed,
|
|
6992
6992
|
theme,
|
|
6993
6993
|
fontFamily,
|
|
6994
|
-
font
|
|
6994
|
+
font,
|
|
6995
6995
|
// TODO do this in splitstlye
|
|
6996
6996
|
// we avoid passing in default props for media queries because that would confuse things like SizableText.size:
|
|
6997
6997
|
props: new Proxy(props, {
|
|
@@ -7258,8 +7258,7 @@ var require_propMapper_native = __commonJS({
|
|
|
7258
7258
|
if (variantValue)
|
|
7259
7259
|
return variantValue;
|
|
7260
7260
|
}
|
|
7261
|
-
|
|
7262
|
-
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) {
|
|
7261
|
+
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) {
|
|
7263
7262
|
var result = (styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(key, value)) || [
|
|
7264
7263
|
[
|
|
7265
7264
|
key,
|
|
@@ -7819,11 +7818,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
7819
7818
|
curProps: _object_spread9({}, styleState.curProps),
|
|
7820
7819
|
parentStaticConfig
|
|
7821
7820
|
})), !(shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo1), !isVariant)) && !(!styleProps.noSkip && keyInit in import_skipProps.skipProps)) {
|
|
7822
|
-
|
|
7823
|
-
var _styleState2;
|
|
7824
|
-
(_styleState2 = styleState).style || (_styleState2.style = {}), styleState.style[keyInit] = valInit;
|
|
7825
|
-
continue;
|
|
7826
|
-
}
|
|
7821
|
+
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
7827
7822
|
var avoidPropMap = isMediaOrPseudo1 || !isVariant && !isValidStyleKeyInit, expanded = avoidPropMap ? null : (0, import_propMapper.propMapper)(keyInit, valInit, styleState);
|
|
7828
7823
|
if (!avoidPropMap) {
|
|
7829
7824
|
if (!expanded)
|
|
@@ -8036,12 +8031,12 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8036
8031
|
}
|
|
8037
8032
|
}
|
|
8038
8033
|
for (var subKey in mediaStyle) {
|
|
8039
|
-
var
|
|
8034
|
+
var _styleState2;
|
|
8040
8035
|
if (subKey === "space") {
|
|
8041
8036
|
space = valInit.space;
|
|
8042
8037
|
continue;
|
|
8043
8038
|
}
|
|
8044
|
-
(
|
|
8039
|
+
(_styleState2 = styleState).style || (_styleState2.style = {}), (0, import_useMedia.mergeMediaByImportance)(styleState.style, mediaKeyShort, subKey, mediaStyle[subKey], usedKeys, mediaState3[mediaKeyShort], importanceBump), key === "fontFamily" && (styleState.fontFamily = mediaStyle.fontFamily);
|
|
8045
8040
|
}
|
|
8046
8041
|
}
|
|
8047
8042
|
continue;
|
|
@@ -8084,8 +8079,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8084
8079
|
if (style1.$$css)
|
|
8085
8080
|
Object.assign(styleState.classNames, style1);
|
|
8086
8081
|
else {
|
|
8087
|
-
var
|
|
8088
|
-
(
|
|
8082
|
+
var _styleState3;
|
|
8083
|
+
(_styleState3 = styleState).style || (_styleState3.style = {}), Object.assign(styleState.style, style1);
|
|
8089
8084
|
}
|
|
8090
8085
|
}
|
|
8091
8086
|
} catch (err) {
|
|
@@ -8102,8 +8097,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8102
8097
|
var avoidNormalize = styleProps.noNormalize === !1;
|
|
8103
8098
|
if (!avoidNormalize) {
|
|
8104
8099
|
if (styleState.style && ((0, import_expandStyles.fixStyles)(styleState.style), import_constants4.isWeb && !staticConfig.isReactNative && (0, import_getStylesAtomic.styleToCSS)(styleState.style)), styleState.transforms) {
|
|
8105
|
-
var
|
|
8106
|
-
(
|
|
8100
|
+
var _styleState4;
|
|
8101
|
+
(_styleState4 = styleState).style || (_styleState4.style = {}), Object.entries(styleState.transforms).sort(function(param, param1) {
|
|
8107
8102
|
var _param = _sliced_to_array(param, 1), a = _param[0], _param1 = _sliced_to_array(param1, 1), b = _param1[0];
|
|
8108
8103
|
return a.localeCompare(b);
|
|
8109
8104
|
}).forEach(function(param) {
|
|
@@ -8119,8 +8114,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8119
8114
|
var val2;
|
|
8120
8115
|
if (!shouldDoClasses)
|
|
8121
8116
|
for (var key3 in parentSplitStyles.style) {
|
|
8122
|
-
var
|
|
8123
|
-
key3 in classNames || styleState.style && key3 in styleState.style || ((
|
|
8117
|
+
var _styleState5;
|
|
8118
|
+
key3 in classNames || styleState.style && key3 in styleState.style || ((_styleState5 = styleState).style || (_styleState5.style = {}), styleState.style[key3] = parentSplitStyles.style[key3]);
|
|
8124
8119
|
}
|
|
8125
8120
|
}
|
|
8126
8121
|
}
|
|
@@ -8271,7 +8266,8 @@ current`, _object_spread9({}, styleState.style)));
|
|
|
8271
8266
|
rotateY: "0deg",
|
|
8272
8267
|
rotateX: "0deg",
|
|
8273
8268
|
x: 0,
|
|
8274
|
-
y: 0
|
|
8269
|
+
y: 0,
|
|
8270
|
+
borderRadius: 0
|
|
8275
8271
|
}, lowercaseHyphenate = function(match) {
|
|
8276
8272
|
return "-".concat(match.toLowerCase());
|
|
8277
8273
|
}, hyphenate = function(str) {
|
|
@@ -35790,9 +35786,8 @@ var require_Switch_native = __commonJS({
|
|
|
35790
35786
|
}
|
|
35791
35787
|
});
|
|
35792
35788
|
module2.exports = __toCommonJS2(Switch_exports);
|
|
35793
|
-
var import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_stacks3 = require_index_native20(),
|
|
35789
|
+
var import_core12 = require_index_native16(), import_get_token2 = require_index_native18(), import_stacks3 = require_index_native20(), SwitchThumb = (0, import_core12.styled)(import_stacks3.ThemeableStack, {
|
|
35794
35790
|
name: "SwitchThumb",
|
|
35795
|
-
context: import_StyledContext.SwitchStyledContext,
|
|
35796
35791
|
variants: {
|
|
35797
35792
|
unstyled: {
|
|
35798
35793
|
false: {
|
|
@@ -35824,7 +35819,6 @@ var require_Switch_native = __commonJS({
|
|
|
35824
35819
|
}, SwitchFrame = (0, import_core12.styled)(import_stacks3.YStack, {
|
|
35825
35820
|
name: "Switch",
|
|
35826
35821
|
tag: "button",
|
|
35827
|
-
context: import_StyledContext.SwitchStyledContext,
|
|
35828
35822
|
variants: {
|
|
35829
35823
|
unstyled: {
|
|
35830
35824
|
false: {
|
|
@@ -36033,7 +36027,7 @@ var require_createSwitch_native = __commonJS({
|
|
|
36033
36027
|
});
|
|
36034
36028
|
function createSwitch(createProps) {
|
|
36035
36029
|
var disableActiveTheme = createProps.disableActiveTheme, _createProps_Frame = createProps.Frame, Frame = _createProps_Frame === void 0 ? import_Switch.SwitchFrame : _createProps_Frame, _createProps_Thumb = createProps.Thumb, Thumb = _createProps_Thumb === void 0 ? import_Switch.SwitchThumb : _createProps_Thumb;
|
|
36036
|
-
process.env.NODE_ENV === "development" && (Frame !== import_Switch.SwitchFrame && Frame.staticConfig.context || Thumb !== import_Switch.SwitchThumb && Thumb.staticConfig.context) && console.warn("Warning: createSwitch() needs to control context to pass checked state from Frame to Thumb, any custom context passed will be overridden."), Frame.staticConfig.context = import_StyledContext.SwitchStyledContext, Thumb.staticConfig.context = import_StyledContext.SwitchStyledContext;
|
|
36030
|
+
process.env.NODE_ENV === "development" && (Frame !== import_Switch.SwitchFrame && Frame.staticConfig.context && Frame.staticConfig.context !== import_StyledContext.SwitchStyledContext || Thumb !== import_Switch.SwitchThumb && Thumb.staticConfig.context && Thumb.staticConfig.context !== import_StyledContext.SwitchStyledContext) && console.warn("Warning: createSwitch() needs to control context to pass checked state from Frame to Thumb, any custom context passed will be overridden."), Frame.staticConfig.context = import_StyledContext.SwitchStyledContext, Thumb.staticConfig.context = import_StyledContext.SwitchStyledContext;
|
|
36037
36031
|
var SwitchThumbComponent = Thumb.styleable(function(props, forwardedRef) {
|
|
36038
36032
|
var sizeProp = props.size, unstyledProp = props.unstyled, nativeID = props.nativeID, thumbProps = _object_without_properties5(props, [
|
|
36039
36033
|
"size",
|