@tamagui/core 1.95.0 → 1.95.1
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 +17 -14
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +17 -14
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -8860,15 +8860,15 @@ var require_createComponent_native = __commonJS({
|
|
|
8860
8860
|
Unspaced: function() {
|
|
8861
8861
|
return Unspaced;
|
|
8862
8862
|
},
|
|
8863
|
+
componentSetStates: function() {
|
|
8864
|
+
return componentSetStates;
|
|
8865
|
+
},
|
|
8863
8866
|
createComponent: function() {
|
|
8864
8867
|
return createComponent;
|
|
8865
8868
|
},
|
|
8866
8869
|
isDisabled: function() {
|
|
8867
8870
|
return isDisabled;
|
|
8868
8871
|
},
|
|
8869
|
-
mouseUps: function() {
|
|
8870
|
-
return mouseUps;
|
|
8871
|
-
},
|
|
8872
8872
|
spacedChildren: function() {
|
|
8873
8873
|
return spacedChildren;
|
|
8874
8874
|
},
|
|
@@ -9178,11 +9178,16 @@ var require_createComponent_native = __commonJS({
|
|
|
9178
9178
|
return data;
|
|
9179
9179
|
}, data;
|
|
9180
9180
|
}
|
|
9181
|
-
var tamaguiConfig, time, debugKeyListeners, startVisualizer,
|
|
9181
|
+
var tamaguiConfig, time, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
|
|
9182
9182
|
(typeof document > "u" ? "undefined" : _type_of(document)) < "u" && (cancelTouches = function() {
|
|
9183
|
-
|
|
9184
|
-
return
|
|
9185
|
-
|
|
9183
|
+
componentSetStates.forEach(function(setState) {
|
|
9184
|
+
return setState(function(prev) {
|
|
9185
|
+
return prev.press || prev.pressIn ? _object_spread_props(_object_spread2({}, prev), {
|
|
9186
|
+
press: !1,
|
|
9187
|
+
pressIn: !1
|
|
9188
|
+
}) : prev;
|
|
9189
|
+
});
|
|
9190
|
+
}), componentSetStates.clear();
|
|
9186
9191
|
}, addEventListener("mouseup", cancelTouches), addEventListener("touchend", cancelTouches), addEventListener("touchcancel", cancelTouches), process.env.NODE_ENV === "development" && (startVisualizer = function() {
|
|
9187
9192
|
var devVisualizerConfig = import_config.devConfig === null || import_config.devConfig === void 0 ? void 0 : import_config.devConfig.visualizer;
|
|
9188
9193
|
if (devVisualizerConfig) {
|
|
@@ -9484,14 +9489,12 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9484
9489
|
typeof item == "string" && item !== `
|
|
9485
9490
|
` && console.error("Unexpected text node: ".concat(item, ". A text node cannot be a child of a <View>."));
|
|
9486
9491
|
}), process.env.NODE_ENV === "development" && time && time(_templateObject13());
|
|
9487
|
-
var pseudoGroups = splitStyles.pseudoGroups, mediaGroups = splitStyles.mediaGroups
|
|
9488
|
-
curStateRef.unPress || (curStateRef.unPress = function() {
|
|
9492
|
+
var pseudoGroups = splitStyles.pseudoGroups, mediaGroups = splitStyles.mediaGroups, unPress = function() {
|
|
9489
9493
|
return setStateShallow({
|
|
9490
9494
|
press: !1,
|
|
9491
9495
|
pressIn: !1
|
|
9492
9496
|
});
|
|
9493
|
-
}
|
|
9494
|
-
var unPress = curStateRef.unPress;
|
|
9497
|
+
};
|
|
9495
9498
|
(0, import_react3.useEffect)(function() {
|
|
9496
9499
|
if (!disabled) {
|
|
9497
9500
|
if (state.unmounted) {
|
|
@@ -9509,7 +9512,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9509
9512
|
pseudoGroups
|
|
9510
9513
|
});
|
|
9511
9514
|
return function() {
|
|
9512
|
-
dispose == null || dispose(),
|
|
9515
|
+
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
9513
9516
|
};
|
|
9514
9517
|
}
|
|
9515
9518
|
}, [
|
|
@@ -9530,14 +9533,14 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9530
9533
|
},
|
|
9531
9534
|
onMouseLeave: function(e) {
|
|
9532
9535
|
var next = {};
|
|
9533
|
-
|
|
9536
|
+
needsHoverState && (next.hover = !1), needsPressState && state.pressIn && (next.press = !1, next.pressIn = !1), setStateShallow(next), onHoverOut == null || onHoverOut(e), onMouseLeave == null || onMouseLeave(e);
|
|
9534
9537
|
}
|
|
9535
9538
|
}), {
|
|
9536
9539
|
onPressIn: attachPress ? function(e) {
|
|
9537
9540
|
(runtimePressStyle || groupName) && setStateShallow({
|
|
9538
9541
|
press: !0,
|
|
9539
9542
|
pressIn: !0
|
|
9540
|
-
}), onPressIn == null || onPressIn(e), onMouseDown == null || onMouseDown(e), import_constants.isWeb &&
|
|
9543
|
+
}), onPressIn == null || onPressIn(e), onMouseDown == null || onMouseDown(e), import_constants.isWeb && componentSetStates.add(setState);
|
|
9541
9544
|
} : void 0,
|
|
9542
9545
|
onPress: attachPress ? function(e) {
|
|
9543
9546
|
unPress(), import_constants.isWeb && (onClick == null || onClick(e)), onPress == null || onPress(e);
|