tamagui 1.126.12 → 1.126.13-1747813753833
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 +55 -55
package/dist/native.js
CHANGED
|
@@ -8176,9 +8176,13 @@ var require_useComponentState_native = __commonJS({
|
|
|
8176
8176
|
import_constants4.isWeb && hasAnimationThatNeedsHydrate && !staticConfig.isHOC && !isHydrated && (isAnimated = !1, curStateRef.willHydrate = !0), disabled !== state.disabled && (disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), state.disabled = disabled, setState({
|
|
8177
8177
|
...state
|
|
8178
8178
|
}));
|
|
8179
|
-
var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(
|
|
8180
|
-
|
|
8181
|
-
|
|
8179
|
+
var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(
|
|
8180
|
+
setState,
|
|
8181
|
+
void 0,
|
|
8182
|
+
// note: allows all state updates even when disabled for the enterStyle animation to work
|
|
8183
|
+
!1,
|
|
8184
|
+
props.debug
|
|
8185
|
+
);
|
|
8182
8186
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
8183
8187
|
process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn(`has presenceState ${JSON.stringify(presenceState)}`);
|
|
8184
8188
|
var { enterVariant, exitVariant, enterExitVariant, custom } = presenceState;
|
|
@@ -8721,39 +8725,37 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
8721
8725
|
(0, import_consoleLog.groupCollapsed)(`Rendered > (opacity: ${computed.opacity})`), console.warn(stateRef.current.host), console.warn(computed), (0, import_consoleLog.groupEnd)();
|
|
8722
8726
|
}
|
|
8723
8727
|
}), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
8724
|
-
if (!
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
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_constants4.isAndroid) return tm = setTimeout(function() {
|
|
8735
|
-
setStateShallow({
|
|
8736
|
-
unmounted: !1
|
|
8737
|
-
});
|
|
8738
|
-
}), function() {
|
|
8739
|
-
return clearTimeout(tm);
|
|
8740
|
-
};
|
|
8728
|
+
if (state.unmounted === !0 && hasEnterStyle) {
|
|
8729
|
+
setStateShallow({
|
|
8730
|
+
unmounted: "should-enter"
|
|
8731
|
+
});
|
|
8732
|
+
return;
|
|
8733
|
+
}
|
|
8734
|
+
var tm;
|
|
8735
|
+
if (state.unmounted) {
|
|
8736
|
+
var _config_animations2, _animationDriver_supportsCSSVars;
|
|
8737
|
+
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_constants4.isAndroid) return tm = setTimeout(function() {
|
|
8741
8738
|
setStateShallow({
|
|
8742
8739
|
unmounted: !1
|
|
8743
8740
|
});
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8747
|
-
componentContext,
|
|
8748
|
-
setStateShallow,
|
|
8749
|
-
state,
|
|
8750
|
-
mediaGroups,
|
|
8751
|
-
pseudoGroups
|
|
8752
|
-
}) : null;
|
|
8753
|
-
return function() {
|
|
8754
|
-
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8741
|
+
}), function() {
|
|
8742
|
+
return clearTimeout(tm);
|
|
8755
8743
|
};
|
|
8744
|
+
setStateShallow({
|
|
8745
|
+
unmounted: !1
|
|
8746
|
+
});
|
|
8747
|
+
return;
|
|
8756
8748
|
}
|
|
8749
|
+
var dispose = !disabled && (pseudoGroups || mediaGroups) ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
8750
|
+
componentContext,
|
|
8751
|
+
setStateShallow,
|
|
8752
|
+
state,
|
|
8753
|
+
mediaGroups,
|
|
8754
|
+
pseudoGroups
|
|
8755
|
+
}) : null;
|
|
8756
|
+
return function() {
|
|
8757
|
+
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
8758
|
+
};
|
|
8757
8759
|
}, [
|
|
8758
8760
|
state.unmounted,
|
|
8759
8761
|
disabled,
|