@tamagui/core 1.88.5 → 1.88.7
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 +5 -3
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +5 -3
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
- package/src/index.tsx +2 -2
- package/types/index.d.ts +2 -2
- package/types/index.d.ts.map +1 -1
package/dist/native.js
CHANGED
|
@@ -3978,7 +3978,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3978
3978
|
module2.exports = __toCommonJS2(getSplitStyles_exports);
|
|
3979
3979
|
var import_constants = require_index_native3(), import_helpers = require_index_native4(), import_react3 = require("react"), import_config = require_config_native(), import_accessibilityDirectMap = require_accessibilityDirectMap_native(), import_constants2 = require_constants_native2(), import_isDevTools = require_isDevTools_native(), import_useMedia = require_useMedia_native(), import_createMediaStyle = require_createMediaStyle_native(), import_expandStyles = require_expandStyles_native(), import_getGroupPropParts = require_getGroupPropParts_native(), import_getStylesAtomic = require_getStylesAtomic_native(), import_insertStyleRule = require_insertStyleRule_native(), import_log = require_log_native(), import_normalizeValueWithProperty = require_normalizeValueWithProperty_native(), import_propMapper = require_propMapper_native(), import_pseudoDescriptors = require_pseudoDescriptors_native(), IS_STATIC = process.env.IS_STATIC === "is_static", conf, PROP_SPLIT = "-";
|
|
3980
3980
|
function isValidStyleKey(key, staticConfig) {
|
|
3981
|
-
return (staticConfig.validStyles || (staticConfig.isText ? import_helpers.stylePropsText : import_helpers.validStyles))[key] || staticConfig.acceptTokens && staticConfig.acceptTokens[key];
|
|
3981
|
+
return (staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles))[key] || staticConfig.acceptTokens && staticConfig.acceptTokens[key];
|
|
3982
3982
|
}
|
|
3983
3983
|
var getSplitStyles = (props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, context, elementType, debug) => {
|
|
3984
3984
|
var _a, _b, _c, _e, _f, _g;
|
|
@@ -3986,6 +3986,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3986
3986
|
let { shorthands } = conf, {
|
|
3987
3987
|
isHOC,
|
|
3988
3988
|
isText,
|
|
3989
|
+
isInput,
|
|
3989
3990
|
variants,
|
|
3990
3991
|
isReactNative,
|
|
3991
3992
|
inlineProps,
|
|
@@ -4087,7 +4088,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
4087
4088
|
parentStaticConfig
|
|
4088
4089
|
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !styleProps.noSkip && keyInit in skipProps)
|
|
4089
4090
|
continue;
|
|
4090
|
-
if (isText && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit), isValidStyleKeyInit && !variants && valInit !== "unset" && (valInitType === "number" || valInitType === "string" && valInit[0] !== "$")) {
|
|
4091
|
+
if ((isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit), isValidStyleKeyInit && !variants && valInit !== "unset" && (valInitType === "number" || valInitType === "string" && valInit[0] !== "$")) {
|
|
4091
4092
|
style[keyInit] = valInit;
|
|
4092
4093
|
continue;
|
|
4093
4094
|
}
|
|
@@ -4797,6 +4798,7 @@ var require_createComponent_native = __commonJS({
|
|
|
4797
4798
|
let {
|
|
4798
4799
|
Component,
|
|
4799
4800
|
isText,
|
|
4801
|
+
isInput,
|
|
4800
4802
|
isZStack,
|
|
4801
4803
|
isHOC,
|
|
4802
4804
|
validStyles: validStyles2 = {},
|
|
@@ -5072,7 +5074,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
5072
5074
|
pseudoGroups ? Object.keys([...pseudoGroups]).join("") : 0,
|
|
5073
5075
|
mediaGroups ? Object.keys([...mediaGroups]).join("") : 0
|
|
5074
5076
|
]);
|
|
5075
|
-
let fontFamily = isText ? splitStyles.fontFamily || ((_k = staticConfig.defaultProps) == null ? void 0 : _k.fontFamily) : null;
|
|
5077
|
+
let fontFamily = isText || isInput ? splitStyles.fontFamily || ((_k = staticConfig.defaultProps) == null ? void 0 : _k.fontFamily) : null;
|
|
5076
5078
|
fontFamily && fontFamily[0] === "$" && (fontFamily = fontFamily.slice(1));
|
|
5077
5079
|
let fontFamilyClassName = fontFamily ? `font_${fontFamily}` : "", style = animationStyles || splitStyles.style, className;
|
|
5078
5080
|
asChild === "except-style" || asChild === "except-style-web" || (viewProps.style = style);
|