@tamagui/core 1.94.5 → 1.95.0-1713852157160
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 +21 -21
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +23 -22
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -2749,16 +2749,13 @@ var require_insertStyleRule_native = __commonJS({
|
|
|
2749
2749
|
for (var _iterator1 = rules[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
|
|
2750
2750
|
var rule = _step1.value;
|
|
2751
2751
|
if (process.env.NODE_ENV === "production")
|
|
2752
|
-
sheet.insertRule(rule, sheet.cssRules.length);
|
|
2753
|
-
else
|
|
2754
2752
|
try {
|
|
2755
2753
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
2756
2754
|
} catch (err) {
|
|
2757
|
-
console.
|
|
2758
|
-
rule,
|
|
2759
|
-
rulesToInsert
|
|
2760
|
-
}), console.trace(), console.groupEnd();
|
|
2755
|
+
console.error("Error inserting CSS", err);
|
|
2761
2756
|
}
|
|
2757
|
+
else
|
|
2758
|
+
sheet.insertRule(rule, sheet.cssRules.length);
|
|
2762
2759
|
}
|
|
2763
2760
|
} catch (err) {
|
|
2764
2761
|
_didIteratorError1 = !0, _iteratorError1 = err;
|
|
@@ -8863,15 +8860,15 @@ var require_createComponent_native = __commonJS({
|
|
|
8863
8860
|
Unspaced: function() {
|
|
8864
8861
|
return Unspaced;
|
|
8865
8862
|
},
|
|
8863
|
+
componentSetStates: function() {
|
|
8864
|
+
return componentSetStates;
|
|
8865
|
+
},
|
|
8866
8866
|
createComponent: function() {
|
|
8867
8867
|
return createComponent;
|
|
8868
8868
|
},
|
|
8869
8869
|
isDisabled: function() {
|
|
8870
8870
|
return isDisabled;
|
|
8871
8871
|
},
|
|
8872
|
-
mouseUps: function() {
|
|
8873
|
-
return mouseUps;
|
|
8874
|
-
},
|
|
8875
8872
|
spacedChildren: function() {
|
|
8876
8873
|
return spacedChildren;
|
|
8877
8874
|
},
|
|
@@ -9181,11 +9178,16 @@ var require_createComponent_native = __commonJS({
|
|
|
9181
9178
|
return data;
|
|
9182
9179
|
}, data;
|
|
9183
9180
|
}
|
|
9184
|
-
var tamaguiConfig, time, debugKeyListeners, startVisualizer,
|
|
9181
|
+
var tamaguiConfig, time, debugKeyListeners, startVisualizer, componentSetStates = /* @__PURE__ */ new Set();
|
|
9185
9182
|
(typeof document > "u" ? "undefined" : _type_of(document)) < "u" && (cancelTouches = function() {
|
|
9186
|
-
|
|
9187
|
-
return
|
|
9188
|
-
|
|
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();
|
|
9189
9191
|
}, addEventListener("mouseup", cancelTouches), addEventListener("touchend", cancelTouches), addEventListener("touchcancel", cancelTouches), process.env.NODE_ENV === "development" && (startVisualizer = function() {
|
|
9190
9192
|
var devVisualizerConfig = import_config.devConfig === null || import_config.devConfig === void 0 ? void 0 : import_config.devConfig.visualizer;
|
|
9191
9193
|
if (devVisualizerConfig) {
|
|
@@ -9487,14 +9489,12 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9487
9489
|
typeof item == "string" && item !== `
|
|
9488
9490
|
` && console.error("Unexpected text node: ".concat(item, ". A text node cannot be a child of a <View>."));
|
|
9489
9491
|
}), process.env.NODE_ENV === "development" && time && time(_templateObject13());
|
|
9490
|
-
var pseudoGroups = splitStyles.pseudoGroups, mediaGroups = splitStyles.mediaGroups
|
|
9491
|
-
curStateRef.unPress || (curStateRef.unPress = function() {
|
|
9492
|
+
var pseudoGroups = splitStyles.pseudoGroups, mediaGroups = splitStyles.mediaGroups, unPress = function() {
|
|
9492
9493
|
return setStateShallow({
|
|
9493
9494
|
press: !1,
|
|
9494
9495
|
pressIn: !1
|
|
9495
9496
|
});
|
|
9496
|
-
}
|
|
9497
|
-
var unPress = curStateRef.unPress;
|
|
9497
|
+
};
|
|
9498
9498
|
(0, import_react3.useEffect)(function() {
|
|
9499
9499
|
if (!disabled) {
|
|
9500
9500
|
if (state.unmounted) {
|
|
@@ -9512,7 +9512,7 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9512
9512
|
pseudoGroups
|
|
9513
9513
|
});
|
|
9514
9514
|
return function() {
|
|
9515
|
-
dispose == null || dispose(),
|
|
9515
|
+
dispose == null || dispose(), componentSetStates.delete(setState);
|
|
9516
9516
|
};
|
|
9517
9517
|
}
|
|
9518
9518
|
}, [
|
|
@@ -9533,14 +9533,14 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
9533
9533
|
},
|
|
9534
9534
|
onMouseLeave: function(e) {
|
|
9535
9535
|
var next = {};
|
|
9536
|
-
|
|
9536
|
+
needsHoverState && (next.hover = !1), needsPressState && state.pressIn && (next.press = !1, next.pressIn = !1), setStateShallow(next), onHoverOut == null || onHoverOut(e), onMouseLeave == null || onMouseLeave(e);
|
|
9537
9537
|
}
|
|
9538
9538
|
}), {
|
|
9539
9539
|
onPressIn: attachPress ? function(e) {
|
|
9540
9540
|
(runtimePressStyle || groupName) && setStateShallow({
|
|
9541
9541
|
press: !0,
|
|
9542
9542
|
pressIn: !0
|
|
9543
|
-
}), 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);
|
|
9544
9544
|
} : void 0,
|
|
9545
9545
|
onPress: attachPress ? function(e) {
|
|
9546
9546
|
unPress(), import_constants.isWeb && (onClick == null || onClick(e)), onPress == null || onPress(e);
|
|
@@ -12664,7 +12664,7 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
12664
12664
|
"disableInjectCSS",
|
|
12665
12665
|
"config"
|
|
12666
12666
|
]);
|
|
12667
|
-
(0, import_useMedia.setupMediaListeners)(), import_constants.isClient && React.
|
|
12667
|
+
(0, import_useMedia.setupMediaListeners)(), import_constants.isClient && React.useInsertionEffect(function() {
|
|
12668
12668
|
if (config && (config.disableSSR || document.documentElement.classList.contains("t_unmounted") && document.documentElement.classList.remove("t_unmounted"), !disableInjectCSS)) {
|
|
12669
12669
|
var style = document.createElement("style");
|
|
12670
12670
|
return style.appendChild(document.createTextNode(config.getCSS())), document.head.appendChild(style), function() {
|