@tamagui/core 1.90.5 → 1.90.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 +7 -6
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +5 -4
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/test.native.js
CHANGED
|
@@ -3527,7 +3527,7 @@ var require_ThemeManager_native = __commonJS({
|
|
|
3527
3527
|
var found = potentials.find(function(t) {
|
|
3528
3528
|
return t in themes;
|
|
3529
3529
|
});
|
|
3530
|
-
if (typeof props.debug == "string" && import_constants.isClient && console.info("
|
|
3530
|
+
if (typeof props.debug == "string" && import_constants.isClient && console.info(" \u{1F537} [".concat(manager == null ? void 0 : manager.id, "] getState"), {
|
|
3531
3531
|
props,
|
|
3532
3532
|
found,
|
|
3533
3533
|
potentials,
|
|
@@ -3986,7 +3986,7 @@ var require_useTheme_native = __commonJS({
|
|
|
3986
3986
|
if (prev != null && prev.themeManager) {
|
|
3987
3987
|
themeManager2 = prev.themeManager;
|
|
3988
3988
|
var forceChange = force || !!(keys != null && keys.length), next = themeManager2.getState(props, parentManager), nextState = getShouldUpdateTheme(themeManager2, next, prev.state, forceChange);
|
|
3989
|
-
nextState ? (state2 = nextState, prev.isNewTheme ? themeManager2
|
|
3989
|
+
nextState ? (state2 = nextState, !prev.isNewTheme && !isRoot ? themeManager2 = getNewThemeManager() : themeManager2.updateState(nextState)) : prev.isNewTheme && parentManager && !next && (themeManager2 = parentManager);
|
|
3990
3990
|
} else
|
|
3991
3991
|
themeManager2 = getNewThemeManager(), state2 = _object_spread2({}, themeManager2.state);
|
|
3992
3992
|
}
|
|
@@ -6615,7 +6615,8 @@ var require_skipProps_native = __commonJS({
|
|
|
6615
6615
|
style: 1,
|
|
6616
6616
|
// handled after loop so pseudos set usedKeys and override it if necessary
|
|
6617
6617
|
group: 1,
|
|
6618
|
-
themeInverse: 1
|
|
6618
|
+
themeInverse: 1,
|
|
6619
|
+
animatePresence: 1
|
|
6619
6620
|
};
|
|
6620
6621
|
skipProps["data-test-renders"] = 1;
|
|
6621
6622
|
Object.assign(skipProps, {
|
|
@@ -8561,7 +8562,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8561
8562
|
return !!(next || curState.hasAnimated);
|
|
8562
8563
|
}(), willBeAnimated = !import_constants.isServer && willBeAnimatedClient;
|
|
8563
8564
|
willBeAnimated && !curState.hasAnimated && (curState.hasAnimated = !0);
|
|
8564
|
-
var isHydrated = config != null && config.disableSSR ? !0 : (0, import_use_did_finish_ssr.useDidFinishSSR)(), presence = willBeAnimated && (animationsConfig == null || (_animationsConfig_usePresence = animationsConfig.usePresence) === null || _animationsConfig_usePresence === void 0 ? void 0 : _animationsConfig_usePresence.call(animationsConfig)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasRNAnimation = hasAnimationProp && (animationsConfig == null ? void 0 : animationsConfig.isReactNative), isReactNative = staticConfig.isReactNative, isAnimated = willBeAnimated;
|
|
8565
|
+
var isHydrated = config != null && config.disableSSR ? !0 : (0, import_use_did_finish_ssr.useDidFinishSSR)(), presence = willBeAnimated && props.animatePresence !== !1 && (animationsConfig == null || (_animationsConfig_usePresence = animationsConfig.usePresence) === null || _animationsConfig_usePresence === void 0 ? void 0 : _animationsConfig_usePresence.call(animationsConfig)) || null, presenceState = presence == null ? void 0 : presence[2], isExiting = (presenceState == null ? void 0 : presenceState.isPresent) === !1, isEntering = (presenceState == null ? void 0 : presenceState.isPresent) === !0 && presenceState.initial !== !1, hasEnterStyle = !!props.enterStyle, hasRNAnimation = hasAnimationProp && (animationsConfig == null ? void 0 : animationsConfig.isReactNative), isReactNative = staticConfig.isReactNative, isAnimated = willBeAnimated;
|
|
8565
8566
|
!isReactNative && hasRNAnimation && !isHOC && !isHydrated && (isAnimated = !1, curState.willHydrate = !0);
|
|
8566
8567
|
var hasEnterState = hasEnterStyle || isEntering, needsToMount = !isHydrated || !curState.host, initialState = hasEnterState ? needsToMount ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState : import_defaultComponentState.defaultComponentStateMounted, states = (0, import_react3.useState)(initialState), state = props.forceStyle ? _object_spread_props(_object_spread2({}, states[0]), _define_property2({}, props.forceStyle, !0)) : states[0], setState = states[1], setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, debugProp);
|
|
8567
8568
|
if (isHydrated && state.unmounted === "should-enter" && (state.unmounted = !0), presenceState && isAnimated && isHydrated && staticConfig.variants) {
|