@tamagui/core 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 +2 -5
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +2 -5
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -9217,10 +9217,7 @@ var require_createComponent_native = __commonJS({
|
|
|
9217
9217
|
var hasEnterState = hasEnterStyle || isEntering, needsToMount = !isHydrated || !curStateRef.host, initialState = hasEnterState ? needsToMount ? import_defaultComponentState.defaultComponentStateShouldEnter : import_defaultComponentState.defaultComponentState : import_defaultComponentState.defaultComponentStateMounted, disabled = isDisabled(props);
|
|
9218
9218
|
disabled != null && (initialState.disabled = disabled);
|
|
9219
9219
|
var states = (0, import_react3.useState)(initialState), state = props.forceStyle ? _object_spread_props(_object_spread2({}, states[0]), _define_property2({}, props.forceStyle, !0)) : states[0], setState = states[1];
|
|
9220
|
-
disabled !== state.disabled &&
|
|
9221
|
-
// removes any stale press state etc
|
|
9222
|
-
disabled
|
|
9223
|
-
}));
|
|
9220
|
+
disabled !== state.disabled && (state.disabled = disabled, disabled && Object.assign(state, import_defaultComponentState.defaultComponentStateMounted), setState(_object_spread2({}, state)));
|
|
9224
9221
|
var setStateShallow = (0, import_createShallowSetState.createShallowSetState)(setState, disabled, props.debug);
|
|
9225
9222
|
if (isHydrated && state.unmounted === "should-enter" && (state.unmounted = !0), presenceState && isAnimated && isHydrated && staticConfig.variants) {
|
|
9226
9223
|
process.env.NODE_ENV === "development" && props.debug === "verbose" && console.warn("has presenceState ".concat(JSON.stringify(presenceState)));
|
|
@@ -9535,7 +9532,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9535
9532
|
}
|
|
9536
9533
|
}), {
|
|
9537
9534
|
onPressIn: attachPress ? function(e) {
|
|
9538
|
-
runtimePressStyle && setStateShallow({
|
|
9535
|
+
(runtimePressStyle || groupName) && setStateShallow({
|
|
9539
9536
|
press: !0,
|
|
9540
9537
|
pressIn: !0
|
|
9541
9538
|
}), onPressIn == null || onPressIn(e), onMouseDown == null || onMouseDown(e), import_constants.isWeb && mouseUps.add(unPress);
|