@tamagui/core 1.69.2 → 1.70.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 +6 -4
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +4 -3
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -3454,7 +3454,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3454
3454
|
case "accessibilityRequired":
|
|
3455
3455
|
default:
|
|
3456
3456
|
}
|
|
3457
|
-
let isValidStyleKeyInit = keyInit in validStyleProps, isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo = isMedia || isPseudo, isStyleProp = isMediaOrPseudo || isVariant || isValidStyleKeyInit || isShorthand;
|
|
3457
|
+
let isValidStyleKeyInit = keyInit in validStyleProps, isShorthand = keyInit in shorthands, isVariant = !isValidStyleKeyInit && variants && keyInit in variants, isStyleLikeKey = isShorthand || isValidStyleKeyInit || isVariant, isPseudo = keyInit in import_helpers.validPseudoKeys, isMedia = !isStyleLikeKey && !isPseudo && (0, import_useMedia.isMediaKey)(keyInit), isMediaOrPseudo = isMedia || isPseudo, isStyleProp = isMediaOrPseudo || isVariant && !styleProps.noExpand || isValidStyleKeyInit || isShorthand;
|
|
3458
3458
|
if (isStyleProp && (props.asChild === "except-style" || props.asChild === "except-style-web"))
|
|
3459
3459
|
continue;
|
|
3460
3460
|
let shouldPassProp = !isStyleProp || // is in parent variants
|
|
@@ -3468,7 +3468,7 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
3468
3468
|
isHOCShouldPassThrough,
|
|
3469
3469
|
curProps: { ...styleState.curProps },
|
|
3470
3470
|
parentStaticConfig
|
|
3471
|
-
}), console.groupEnd()), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || keyInit in skipProps)
|
|
3471
|
+
}), console.groupEnd()), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), !isVariant) || !styleProps.noSkip && keyInit in skipProps)
|
|
3472
3472
|
continue;
|
|
3473
3473
|
if (isText && valInit && (keyInit === fontFamilyKey || keyInit === shorthands[fontFamilyKey]) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit), isValidStyleKeyInit && !variants && (valInitType === "number" || valInitType === "string" && valInit[0] !== "$")) {
|
|
3474
3474
|
style[keyInit] = valInit;
|
|
@@ -3515,7 +3515,8 @@ current`, {
|
|
|
3515
3515
|
styleProps.noClassNames
|
|
3516
3516
|
), descriptor = import_pseudoDescriptors.pseudoDescriptors[key], isEnter = key === "enterStyle", isExit = key === "exitStyle";
|
|
3517
3517
|
if (process.env.NODE_ENV === "development" && !styleProps.isAnimated && !componentState.unmounted && (isEnter || isExit) && console.warn(
|
|
3518
|
-
`No animation prop given to component ${staticConfig.componentName || ""} with enterStyle / exitStyle, these styles will be
|
|
3518
|
+
`No animation prop given to component ${staticConfig.componentName || ""} ${props["data-at"] || ""} with enterStyle / exitStyle, these styles will be ignored`,
|
|
3519
|
+
{ props }
|
|
3519
3520
|
), !descriptor || isExit && !styleProps.isExiting)
|
|
3520
3521
|
continue;
|
|
3521
3522
|
if ((!shouldDoClasses || IS_STATIC) && (pseudos ||= {}, pseudos[key] ||= {}, IS_STATIC)) {
|
|
@@ -3754,7 +3755,7 @@ current`, {
|
|
|
3754
3755
|
let val = styleIn[key];
|
|
3755
3756
|
key = conf2.shorthands[key] || key;
|
|
3756
3757
|
let expanded = (0, import_propMapper.propMapper)(key, val, styleState, { ...props, ...props[subKey] });
|
|
3757
|
-
if (!(!expanded || !staticConfig.isHOC && key in skipProps))
|
|
3758
|
+
if (!(!expanded || !staticConfig.isHOC && key in skipProps && !styleProps.noSkip))
|
|
3758
3759
|
for (let [skey, sval] of expanded)
|
|
3759
3760
|
!avoidMergeTransform && skey in import_helpers.stylePropsTransform ? mergeTransform(styleOut, skey, sval) : styleOut[skey] = styleProps.noNormalize ? sval : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(sval, key);
|
|
3760
3761
|
}
|
|
@@ -6217,6 +6218,7 @@ var require_useProps_native = __commonJS({
|
|
|
6217
6218
|
{
|
|
6218
6219
|
isAnimated: !1,
|
|
6219
6220
|
mediaState: media,
|
|
6221
|
+
noSkip: !0,
|
|
6220
6222
|
noClassNames: !0,
|
|
6221
6223
|
...opts
|
|
6222
6224
|
},
|