@tamagui/core 1.129.17 → 1.129.19
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 +22 -13
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +7 -5
- package/dist/test.native.js.map +2 -2
- package/package.json +9 -9
package/dist/native.js
CHANGED
|
@@ -5445,7 +5445,8 @@ var require_getSplitStyles_native = __commonJS({
|
|
|
5445
5445
|
...styleState.usedKeys
|
|
5446
5446
|
},
|
|
5447
5447
|
parentStaticConfig
|
|
5448
|
-
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo),
|
|
5448
|
+
})), shouldPassThrough && (passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo), process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), !isVariant)) return "continue";
|
|
5449
|
+
if (!noSkip && keyInit in import_skipProps.skipProps) return process.env.NODE_ENV === "development" && debug === "verbose" && console.groupEnd(), "continue";
|
|
5449
5450
|
(isText || isInput) && valInit && (keyInit === "fontFamily" || keyInit === shorthands.fontFamily) && valInit in conf.fontsParsed && (styleState.fontFamily = valInit);
|
|
5450
5451
|
var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
|
|
5451
5452
|
if ((0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function(key4, val2) {
|
|
@@ -7529,16 +7530,22 @@ var require_createComponent_native = __commonJS({
|
|
|
7529
7530
|
curDefaultProps && (props = (0, import_mergeProps.mergeProps)(curDefaultProps, propsIn));
|
|
7530
7531
|
var componentName2 = props.componentName || staticConfig.componentName;
|
|
7531
7532
|
process.env.NODE_ENV === "development" && import_constants.isClient && import_react3.default.useEffect(function() {
|
|
7532
|
-
var overlay = null,
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7533
|
+
var node, overlay = null, remove = function() {
|
|
7534
|
+
if (overlay) try {
|
|
7535
|
+
var _overlay_parentNode;
|
|
7536
|
+
(_overlay_parentNode = overlay.parentNode) === null || _overlay_parentNode === void 0 || _overlay_parentNode.removeChild(overlay), overlay = null;
|
|
7537
|
+
} catch {
|
|
7538
|
+
}
|
|
7539
|
+
}, debugVisualizerHandler = function() {
|
|
7540
|
+
var show = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
7541
|
+
if (node = stateRef.current.host, !!node) if (show) {
|
|
7542
|
+
overlay || (overlay = document.createElement("span"), overlay.style.inset = "0px", overlay.style.zIndex = "1000000", overlay.style.position = "absolute", overlay.style.borderColor = "red", overlay.style.borderWidth = "1px", overlay.style.borderStyle = "dotted");
|
|
7536
7543
|
var dataAt = node.getAttribute("data-at") || "", dataIn = node.getAttribute("data-in") || "", tooltip = document.createElement("span");
|
|
7537
|
-
tooltip.style.position = "absolute", tooltip.style.top = "0px", tooltip.style.left = "0px", tooltip.style.padding = "3px", tooltip.style.background = "rgba(0,0,0,0.75)", tooltip.style.color = "rgba(255,255,255,1)", tooltip.style.fontSize = "12px", tooltip.style.lineHeight = "12px", tooltip.style.fontFamily = "monospace", tooltip.
|
|
7538
|
-
} else
|
|
7544
|
+
tooltip.style.position = "absolute", tooltip.style.top = "0px", tooltip.style.left = "0px", tooltip.style.padding = "3px", tooltip.style.background = "rgba(0,0,0,0.75)", tooltip.style.color = "rgba(255,255,255,1)", tooltip.style.fontSize = "12px", tooltip.style.lineHeight = "12px", tooltip.style.fontFamily = "monospace", tooltip.innerText = `${componentName2 || ""} ${dataAt} ${dataIn}`.trim(), overlay.appendChild(tooltip), node.appendChild(overlay);
|
|
7545
|
+
} else remove();
|
|
7539
7546
|
};
|
|
7540
7547
|
return debugKeyListeners || (debugKeyListeners = /* @__PURE__ */ new Set()), debugKeyListeners.add(debugVisualizerHandler), function() {
|
|
7541
|
-
debugKeyListeners == null || debugKeyListeners.delete(debugVisualizerHandler);
|
|
7548
|
+
remove(), debugKeyListeners == null || debugKeyListeners.delete(debugVisualizerHandler);
|
|
7542
7549
|
};
|
|
7543
7550
|
}, [
|
|
7544
7551
|
componentName2
|
|
@@ -7649,8 +7656,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7649
7656
|
isExiting,
|
|
7650
7657
|
isAnimated,
|
|
7651
7658
|
willBeAnimated,
|
|
7652
|
-
styledContextProps
|
|
7653
|
-
noMergeStyle: isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles)
|
|
7659
|
+
styledContextProps
|
|
7654
7660
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
7655
7661
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
7656
7662
|
var splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
@@ -7750,7 +7756,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7750
7756
|
staticConfig,
|
|
7751
7757
|
stateRef
|
|
7752
7758
|
});
|
|
7753
|
-
isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)
|
|
7759
|
+
animations && (animations.ref && (animatedRef = animations.ref), isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`))), process.env.NODE_ENV === "development" && time2 && time2`animations`;
|
|
7754
7760
|
}
|
|
7755
7761
|
process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
|
|
7756
7762
|
|
|
@@ -7931,8 +7937,11 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
7931
7937
|
process.env.NODE_ENV === "development" && time2 && time2`spaced-as-child`;
|
|
7932
7938
|
var useChildrenResult;
|
|
7933
7939
|
import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(elementType, content, viewProps)), process.env.NODE_ENV === "development" && time2 && time2`use-children`, useChildrenResult ? content = useChildrenResult : content = /* @__PURE__ */ import_react3.default.createElement(elementType, viewProps, content);
|
|
7934
|
-
var ResetPresence = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence;
|
|
7935
|
-
|
|
7940
|
+
var ResetPresence = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence, needsReset = !!(!isHOC && ResetPresence && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
7941
|
+
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = !0);
|
|
7942
|
+
var renderReset = needsReset || hasEverReset;
|
|
7943
|
+
if (renderReset && ResetPresence && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ResetPresence, {
|
|
7944
|
+
disabled: !needsReset,
|
|
7936
7945
|
children: content
|
|
7937
7946
|
})), process.env.NODE_ENV === "development" && time2 && time2`create-element`, "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
7938
7947
|
...componentContext,
|