tamagui 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.
@@ -7764,9 +7764,13 @@ var require_useComponentState_native = __commonJS({
7764
7764
  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({
7765
7765
  ...state
7766
7766
  }));
7767
- var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled ? [
7768
- "disabled"
7769
- ] : void 0, !1, props.debug);
7767
+ var groupName = props.group, setStateShallow = (0, import_createShallowSetState.createShallowSetState)(
7768
+ setState,
7769
+ void 0,
7770
+ // note: allows all state updates even when disabled for the enterStyle animation to work
7771
+ !1,
7772
+ props.debug
7773
+ );
7770
7774
  if (presenceState && isAnimated && isHydrated && staticConfig.variants) {
7771
7775
  var { enterVariant, exitVariant, enterExitVariant, custom } = presenceState;
7772
7776
  (0, import_isObj.isObj)(custom) && Object.assign(props, custom);
@@ -8209,39 +8213,37 @@ var require_createComponent_native = __commonJS({
8209
8213
  });
8210
8214
  };
8211
8215
  (0, import_constants4.useIsomorphicLayoutEffect)(function() {
8212
- if (!disabled) {
8213
- if (state.unmounted === !0 && hasEnterStyle) {
8214
- setStateShallow({
8215
- unmounted: "should-enter"
8216
- });
8217
- return;
8218
- }
8219
- var tm;
8220
- if (state.unmounted) {
8221
- var _config_animations2, _animationDriver_supportsCSSVars;
8222
- 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() {
8223
- setStateShallow({
8224
- unmounted: !1
8225
- });
8226
- }), function() {
8227
- return clearTimeout(tm);
8228
- };
8216
+ if (state.unmounted === !0 && hasEnterStyle) {
8217
+ setStateShallow({
8218
+ unmounted: "should-enter"
8219
+ });
8220
+ return;
8221
+ }
8222
+ var tm;
8223
+ if (state.unmounted) {
8224
+ var _config_animations2, _animationDriver_supportsCSSVars;
8225
+ 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() {
8229
8226
  setStateShallow({
8230
8227
  unmounted: !1
8231
8228
  });
8232
- return;
8233
- }
8234
- var dispose = pseudoGroups || mediaGroups ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
8235
- componentContext,
8236
- setStateShallow,
8237
- state,
8238
- mediaGroups,
8239
- pseudoGroups
8240
- }) : null;
8241
- return function() {
8242
- dispose == null || dispose(), componentSetStates.delete(setState);
8229
+ }), function() {
8230
+ return clearTimeout(tm);
8243
8231
  };
8232
+ setStateShallow({
8233
+ unmounted: !1
8234
+ });
8235
+ return;
8244
8236
  }
8237
+ var dispose = !disabled && (pseudoGroups || mediaGroups) ? (0, import_subscribeToContextGroup.subscribeToContextGroup)({
8238
+ componentContext,
8239
+ setStateShallow,
8240
+ state,
8241
+ mediaGroups,
8242
+ pseudoGroups
8243
+ }) : null;
8244
+ return function() {
8245
+ dispose == null || dispose(), componentSetStates.delete(setState);
8246
+ };
8245
8247
  }, [
8246
8248
  state.unmounted,
8247
8249
  disabled,