tamagui 1.94.0 → 1.94.2

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 CHANGED
@@ -9314,10 +9314,7 @@ var require_createComponent_native = __commonJS({
9314
9314
  var hasEnterState = hasEnterStyle || isEntering, needsToMount = !isHydrated || !curStateRef.host, initialState = hasEnterState ? needsToMount ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState : import_defaultComponentState.defaultComponentStateMounted, disabled = isDisabled(props);
9315
9315
  disabled != null && (initialState.disabled = disabled);
9316
9316
  var states = (0, import_react4.useState)(initialState), state = props.forceStyle ? _object_spread_props8(_object_spread9({}, states[0]), _define_property9({}, props.forceStyle, !0)) : states[0], setState = states[1];
9317
- disabled !== state.disabled && setState(_object_spread_props8(_object_spread9({}, state, import_defaultComponentState.defaultComponentState), {
9318
- // removes any stale press state etc
9319
- disabled
9320
- }));
9317
+ disabled !== state.disabled && (state.disabled = disabled, disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), setState(_object_spread9({}, state)));
9321
9318
  var setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled, props.debug);
9322
9319
  if (isHydrated && state.unmounted === "should-enter" && (state.unmounted = !0), presenceState && isAnimated && isHydrated && staticConfig.variants) {
9323
9320
  process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn("has presenceState ".concat(JSON.stringify(presenceState)));
@@ -9632,7 +9629,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
9632
9629
  }
9633
9630
  }), {
9634
9631
  onPressIn: attachPress ? function(e) {
9635
- runtimePressStyle && setStateShallow({
9632
+ (runtimePressStyle || groupName) && setStateShallow({
9636
9633
  press: !0,
9637
9634
  pressIn: !0
9638
9635
  }), onPressIn == null || onPressIn(e), onMouseDown == null || onMouseDown(e), import_constants4.isWeb && mouseUps.add(unPress);