@tamagui/core 1.126.12 → 1.126.13-1747671613486
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 +33 -31
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +33 -31
- package/dist/test.native.js.map +2 -2
- package/package.json +7 -7
package/dist/native.js
CHANGED
|
@@ -7077,9 +7077,13 @@ var require_useComponentState_native = __commonJS({
|
|
|
7077
7077
|
import_constants2.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), state.disabled = disabled, setState({
|
|
7078
7078
|
...state
|
|
7079
7079
|
}));
|
|
7080
|
-
var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(
|
|
7081
|
-
|
|
7082
|
-
|
|
7080
|
+
var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(
|
|
7081
|
+
setState,
|
|
7082
|
+
void 0,
|
|
7083
|
+
// note: allows all state updates even when disabled for the enterStyle animation to work
|
|
7084
|
+
!1,
|
|
7085
|
+
props.debug
|
|
7086
|
+
);
|
|
7083
7087
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
7084
7088
|
process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn(`has presenceState ${JSON.stringify(presenceState)}`);
|
|
7085
7089
|
var { enterVariant, exitVariant, enterExitVariant, custom } = presenceState;
|
|
@@ -7622,39 +7626,37 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7622
7626
|
(0, import_consoleLog.groupCollapsed)(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), (0, import_consoleLog.groupEnd)();
|
|
7623
7627
|
}
|
|
7624
7628
|
}), (0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
7625
|
-
if (!
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
if (((_animationDriver_supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars) !== null && _animationDriver_supportsCSSVars !== void 0 ? _animationDriver_supportsCSSVars : !(config == null || (_config_animations2 = config.animations) === null || _config_animations2 === void 0) && _config_animations2.supportsCSSVars) || import_constants2.isAndroid) return tm = setTimeout(function() {
|
|
7636
|
-
setStateShallow({
|
|
7637
|
-
unmounted: !1
|
|
7638
|
-
});
|
|
7639
|
-
}), function() {
|
|
7640
|
-
return clearTimeout(tm);
|
|
7641
|
-
};
|
|
7629
|
+
if (state.unmounted === !0 && hasEnterStyle) {
|
|
7630
|
+
setStateShallow({
|
|
7631
|
+
unmounted: "should-enter"
|
|
7632
|
+
});
|
|
7633
|
+
return;
|
|
7634
|
+
}
|
|
7635
|
+
var tm;
|
|
7636
|
+
if (state.unmounted) {
|
|
7637
|
+
var _config_animations2, _animationDriver_supportsCSSVars;
|
|
7638
|
+
if (((_animationDriver_supportsCSSVars = animationDriver == null ? void 0 : animationDriver.supportsCSSVars) !== null && _animationDriver_supportsCSSVars !== void 0 ? _animationDriver_supportsCSSVars : !(config == null || (_config_animations2 = config.animations) === null || _config_animations2 === void 0) && _config_animations2.supportsCSSVars) || import_constants2.isAndroid) return tm = setTimeout(function() {
|
|
7642
7639
|
setStateShallow({
|
|
7643
7640
|
unmounted: !1
|
|
7644
7641
|
});
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
7648
|
-
componentContext,
|
|
7649
|
-
setStateShallow,
|
|
7650
|
-
state,
|
|
7651
|
-
mediaGroups,
|
|
7652
|
-
pseudoGroups
|
|
7653
|
-
}) : null;
|
|
7654
|
-
return function() {
|
|
7655
|
-
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
7642
|
+
}), function() {
|
|
7643
|
+
return clearTimeout(tm);
|
|
7656
7644
|
};
|
|
7645
|
+
setStateShallow({
|
|
7646
|
+
unmounted: !1
|
|
7647
|
+
});
|
|
7648
|
+
return;
|
|
7657
7649
|
}
|
|
7650
|
+
var dispose = !disabled && (pseudoGroups || mediaGroups) ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
7651
|
+
componentContext,
|
|
7652
|
+
setStateShallow,
|
|
7653
|
+
state,
|
|
7654
|
+
mediaGroups,
|
|
7655
|
+
pseudoGroups
|
|
7656
|
+
}) : null;
|
|
7657
|
+
return function() {
|
|
7658
|
+
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
7659
|
+
};
|
|
7658
7660
|
}, [
|
|
7659
7661
|
state.unmounted,
|
|
7660
7662
|
disabled,
|