@tamagui/core 1.126.11 → 1.126.13
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/test.native.js
CHANGED
|
@@ -6665,9 +6665,13 @@ var require_useComponentState_native = __commonJS({
|
|
|
6665
6665
|
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({
|
|
6666
6666
|
...state
|
|
6667
6667
|
}));
|
|
6668
|
-
var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(
|
|
6669
|
-
|
|
6670
|
-
|
|
6668
|
+
var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(
|
|
6669
|
+
setState,
|
|
6670
|
+
void 0,
|
|
6671
|
+
// note: allows all state updates even when disabled for the enterStyle animation to work
|
|
6672
|
+
!1,
|
|
6673
|
+
props.debug
|
|
6674
|
+
);
|
|
6671
6675
|
if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
6672
6676
|
var { enterVariant, exitVariant, enterExitVariant, custom } = presenceState;
|
|
6673
6677
|
(0, import_isObj.isObj)(custom) && Object.assign(props, custom);
|
|
@@ -7110,39 +7114,37 @@ var require_createComponent_native = __commonJS({
|
|
|
7110
7114
|
});
|
|
7111
7115
|
};
|
|
7112
7116
|
(0, import_constants2.useIsomorphicLayoutEffect)(function() {
|
|
7113
|
-
if (!
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
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() {
|
|
7124
|
-
setStateShallow({
|
|
7125
|
-
unmounted: !1
|
|
7126
|
-
});
|
|
7127
|
-
}), function() {
|
|
7128
|
-
return clearTimeout(tm);
|
|
7129
|
-
};
|
|
7117
|
+
if (state.unmounted === !0 && hasEnterStyle) {
|
|
7118
|
+
setStateShallow({
|
|
7119
|
+
unmounted: "should-enter"
|
|
7120
|
+
});
|
|
7121
|
+
return;
|
|
7122
|
+
}
|
|
7123
|
+
var tm;
|
|
7124
|
+
if (state.unmounted) {
|
|
7125
|
+
var _config_animations2, _animationDriver_supportsCSSVars;
|
|
7126
|
+
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() {
|
|
7130
7127
|
setStateShallow({
|
|
7131
7128
|
unmounted: !1
|
|
7132
7129
|
});
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
7136
|
-
componentContext,
|
|
7137
|
-
setStateShallow,
|
|
7138
|
-
state,
|
|
7139
|
-
mediaGroups,
|
|
7140
|
-
pseudoGroups
|
|
7141
|
-
}) : null;
|
|
7142
|
-
return function() {
|
|
7143
|
-
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
7130
|
+
}), function() {
|
|
7131
|
+
return clearTimeout(tm);
|
|
7144
7132
|
};
|
|
7133
|
+
setStateShallow({
|
|
7134
|
+
unmounted: !1
|
|
7135
|
+
});
|
|
7136
|
+
return;
|
|
7145
7137
|
}
|
|
7138
|
+
var dispose = !disabled && (pseudoGroups || mediaGroups) ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
|
|
7139
|
+
componentContext,
|
|
7140
|
+
setStateShallow,
|
|
7141
|
+
state,
|
|
7142
|
+
mediaGroups,
|
|
7143
|
+
pseudoGroups
|
|
7144
|
+
}) : null;
|
|
7145
|
+
return function() {
|
|
7146
|
+
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
7147
|
+
};
|
|
7146
7148
|
}, [
|
|
7147
7149
|
state.unmounted,
|
|
7148
7150
|
disabled,
|