@tamagui/core 1.90.2 → 1.90.4
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 -7
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +5 -7
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -8002,8 +8002,6 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
8002
8002
|
mergeTransform(styleState.style, key6, val4, !0);
|
|
8003
8003
|
});
|
|
8004
8004
|
}
|
|
8005
|
-
if (0)
|
|
8006
|
-
var _styleState_style;
|
|
8007
8005
|
if (parentSplitStyles) {
|
|
8008
8006
|
if (0)
|
|
8009
8007
|
for (var key2 in parentSplitStyles.classNames)
|
|
@@ -8015,6 +8013,8 @@ current`, _object_spread2({}, styleState.style)));
|
|
|
8015
8013
|
}
|
|
8016
8014
|
}
|
|
8017
8015
|
}
|
|
8016
|
+
if (0)
|
|
8017
|
+
var _styleState_style, shouldStringifyTransforms;
|
|
8018
8018
|
if (0) {
|
|
8019
8019
|
if (styleState.style && shouldDoClasses) {
|
|
8020
8020
|
var retainedStyles, shouldRetain;
|
|
@@ -9356,7 +9356,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9356
9356
|
process.env.NODE_ENV === "development" && time && time(_templateObject4());
|
|
9357
9357
|
var hasTextAncestor = !!(import_constants.isWeb && isText && componentContext.inText), _props_disabled, isDisabled = (_props_disabled = props.disabled) !== null && _props_disabled !== void 0 ? _props_disabled : (_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled;
|
|
9358
9358
|
process.env.NODE_ENV === "development" && time && time(_templateObject5());
|
|
9359
|
-
var isTaggable = !Component || typeof Component == "string", element = import_constants.isWeb && isTaggable &&
|
|
9359
|
+
var isTaggable = !Component || typeof Component == "string", tagProp = props.tag, element = import_constants.isWeb && isTaggable && tagProp || Component, BaseTextComponent = BaseText || element || "span", BaseViewComponent = BaseView || element || (hasTextAncestor ? "span" : "div"), elementType = isText ? BaseTextComponent : BaseViewComponent;
|
|
9360
9360
|
animationsConfig && isAnimated && (elementType = animationsConfig[isText ? "Text" : "View"] || elementType);
|
|
9361
9361
|
var disableThemeProp = !1, disableTheme = disableThemeProp || isHOC;
|
|
9362
9362
|
process.env.NODE_ENV === "development" && time && time(_templateObject6()), props.themeShallow && (curState.themeShallow = !0);
|
|
@@ -9451,7 +9451,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9451
9451
|
"theme",
|
|
9452
9452
|
"defaultVariants"
|
|
9453
9453
|
]), viewProps = nonTamaguiProps;
|
|
9454
|
-
isHOC && _themeProp && (viewProps.theme = _themeProp);
|
|
9454
|
+
isHOC && _themeProp && (viewProps.theme = _themeProp), elementType.acceptTagProp && (viewProps.tag = tagProp);
|
|
9455
9455
|
var animationStyles;
|
|
9456
9456
|
if (
|
|
9457
9457
|
// if it supports css vars we run it on server too to get matching initial style
|
|
@@ -9482,9 +9482,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9482
9482
|
}), !stateRef.current.hasMeasured && props.untilMeasured === "hide" && setState(function(prev) {
|
|
9483
9483
|
return _object_spread2({}, prev);
|
|
9484
9484
|
}), stateRef.current.hasMeasured = !0;
|
|
9485
|
-
}))
|
|
9486
|
-
var _hooks_usePropsTransform1;
|
|
9487
|
-
viewProps = (_hooks_usePropsTransform1 = (_hooks_usePropsTransform = import_setupHooks.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_setupHooks.hooks, elementType, nonTamaguiProps, stateRef, curState.willHydrate)) !== null && _hooks_usePropsTransform1 !== void 0 ? _hooks_usePropsTransform1 : nonTamaguiProps, curState.composedRef || (curState.composedRef = (0, import_compose_refs.composeRefs)(function(x) {
|
|
9485
|
+
})), viewProps = ((_hooks_usePropsTransform = import_setupHooks.hooks.usePropsTransform) === null || _hooks_usePropsTransform === void 0 ? void 0 : _hooks_usePropsTransform.call(import_setupHooks.hooks, elementType, nonTamaguiProps, stateRef, curState.willHydrate)) || nonTamaguiProps, curState.composedRef || (curState.composedRef = (0, import_compose_refs.composeRefs)(function(x) {
|
|
9488
9486
|
return stateRef.current.host = x;
|
|
9489
9487
|
}, forwardedRef)), viewProps.ref = curState.composedRef, process.env.NODE_ENV === "development" && !isReactNative && !isText && import_constants.isWeb && !isHOC && import_react3.Children.toArray(props.children).forEach(function(item) {
|
|
9490
9488
|
typeof item == "string" && item !== `
|