tamagui 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 +24 -14
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +9 -6
- package/dist/test.native.js.map +2 -2
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -289,8 +289,9 @@ var require_PresenceContext_native = __commonJS({
|
|
|
289
289
|
});
|
|
290
290
|
module2.exports = __toCommonJS2(PresenceContext_exports);
|
|
291
291
|
var import_jsx_runtime6 = require("react/jsx-runtime"), React4 = __toESM2(require("react")), PresenceContext2 = /* @__PURE__ */ React4.createContext(null), ResetPresence2 = function(props) {
|
|
292
|
+
var parent = React4.useContext(PresenceContext2);
|
|
292
293
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PresenceContext2.Provider, {
|
|
293
|
-
value: null,
|
|
294
|
+
value: props.disable ? parent : null,
|
|
294
295
|
children: props.children
|
|
295
296
|
});
|
|
296
297
|
};
|
|
@@ -8275,8 +8276,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8275
8276
|
isExiting,
|
|
8276
8277
|
isAnimated,
|
|
8277
8278
|
willBeAnimated,
|
|
8278
|
-
styledContextProps
|
|
8279
|
-
noMergeStyle: isAnimated && (animationDriver == null ? void 0 : animationDriver.needsWebStyles)
|
|
8279
|
+
styledContextProps
|
|
8280
8280
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "", 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;
|
|
8281
8281
|
if (groupContext) {
|
|
8282
8282
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
@@ -8368,7 +8368,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8368
8368
|
staticConfig,
|
|
8369
8369
|
stateRef
|
|
8370
8370
|
});
|
|
8371
|
-
isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)
|
|
8371
|
+
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}`)));
|
|
8372
8372
|
}
|
|
8373
8373
|
groupContext && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8374
8374
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
@@ -8513,8 +8513,11 @@ var require_createComponent_native = __commonJS({
|
|
|
8513
8513
|
});
|
|
8514
8514
|
var useChildrenResult;
|
|
8515
8515
|
import_setupHooks.hooks.useChildren && (useChildrenResult = import_setupHooks.hooks.useChildren(elementType, content, viewProps)), useChildrenResult ? content = useChildrenResult : content = /* @__PURE__ */ import_react3.default.createElement(elementType, viewProps, content);
|
|
8516
|
-
var ResetPresence2 = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence;
|
|
8517
|
-
|
|
8516
|
+
var ResetPresence2 = config == null || (_config_animations = config.animations) === null || _config_animations === void 0 ? void 0 : _config_animations.ResetPresence, needsReset = !!(!isHOC && ResetPresence2 && willBeAnimated && (hasEnterStyle || presenceState)), hasEverReset = stateRef.current.hasEverResetPresence;
|
|
8517
|
+
needsReset && !hasEverReset && (stateRef.current.hasEverResetPresence = !0);
|
|
8518
|
+
var renderReset = needsReset || hasEverReset;
|
|
8519
|
+
if (renderReset && ResetPresence2 && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ResetPresence2, {
|
|
8520
|
+
disabled: !needsReset,
|
|
8518
8521
|
children: content
|
|
8519
8522
|
})), "focusWithinStyle" in propsIn && (content = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ComponentContext.ComponentContext.Provider, {
|
|
8520
8523
|
...componentContext,
|