tamagui 1.94.4 → 1.94.5
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 +13 -8
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +13 -8
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
package/dist/native.js
CHANGED
|
@@ -20269,7 +20269,9 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
20269
20269
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_SheetContext.SheetProvider, _object_spread_props8(_object_spread9({}, providerProps), {
|
|
20270
20270
|
children: [
|
|
20271
20271
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
|
|
20272
|
-
|
|
20272
|
+
custom: {
|
|
20273
|
+
open
|
|
20274
|
+
},
|
|
20273
20275
|
children: shouldHideParentSheet || !open ? null : overlayComponent
|
|
20274
20276
|
}),
|
|
20275
20277
|
snapPointsMode !== "percent" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native4.View, {
|
|
@@ -20282,14 +20284,12 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
20282
20284
|
bottom: 0,
|
|
20283
20285
|
pointerEvents: "none"
|
|
20284
20286
|
},
|
|
20285
|
-
pointerEvents: "none",
|
|
20286
20287
|
onLayout: handleMaxContentViewLayout
|
|
20287
20288
|
}),
|
|
20288
20289
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AnimatedView, _object_spread_props8(_object_spread9(_object_spread_props8(_object_spread9({
|
|
20289
20290
|
ref
|
|
20290
20291
|
}, panResponder == null ? void 0 : panResponder.panHandlers), {
|
|
20291
|
-
onLayout: handleAnimationViewLayout
|
|
20292
|
-
pointerEvents: open && !shouldHideParentSheet ? "auto" : "none"
|
|
20292
|
+
onLayout: handleAnimationViewLayout
|
|
20293
20293
|
}), !isDragging && {
|
|
20294
20294
|
// @ts-ignore for CSS driver this is necessary to attach the transition
|
|
20295
20295
|
animation
|
|
@@ -20297,14 +20297,16 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
20297
20297
|
// @ts-ignore
|
|
20298
20298
|
disableClassName: !0,
|
|
20299
20299
|
style: [
|
|
20300
|
-
{
|
|
20300
|
+
_object_spread9({
|
|
20301
20301
|
position: "absolute",
|
|
20302
20302
|
zIndex,
|
|
20303
20303
|
width: "100%",
|
|
20304
20304
|
height: forcedContentHeight,
|
|
20305
20305
|
minHeight: forcedContentHeight,
|
|
20306
20306
|
opacity
|
|
20307
|
-
},
|
|
20307
|
+
}, (shouldHideParentSheet || !open) && {
|
|
20308
|
+
pointerEvents: "none"
|
|
20309
|
+
}),
|
|
20308
20310
|
animatedStyle
|
|
20309
20311
|
],
|
|
20310
20312
|
children: props.children
|
|
@@ -20846,6 +20848,7 @@ var require_createSheet_native = __commonJS({
|
|
|
20846
20848
|
return (
|
|
20847
20849
|
// @ts-ignore
|
|
20848
20850
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Overlay, _object_spread_props8(_object_spread9({}, props), {
|
|
20851
|
+
debug: "verbose",
|
|
20849
20852
|
onPress: (0, import_helpers.composeEventHandlers)(props.onPress, context.dismissOnOverlayPress ? function() {
|
|
20850
20853
|
context.setOpen(!1);
|
|
20851
20854
|
} : void 0)
|
|
@@ -20867,13 +20870,14 @@ var require_createSheet_native = __commonJS({
|
|
|
20867
20870
|
"adjustPaddingForOffscreenContent",
|
|
20868
20871
|
"disableHideBottomOverflow",
|
|
20869
20872
|
"children"
|
|
20870
|
-
]), context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_NAME, __scopeSheet), hasFit = context.hasFit, removeScrollEnabled = context.removeScrollEnabled, frameSize = context.frameSize, contentRef = context.contentRef, composedContentRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), offscreenSize = (0, import_useSheetOffscreenSize.useSheetOffscreenSize)(context), sheetContents = (0, import_react4.useMemo)(function() {
|
|
20873
|
+
]), context = (0, import_SheetContext.useSheetContext)(import_constants22.SHEET_NAME, __scopeSheet), hasFit = context.hasFit, removeScrollEnabled = context.removeScrollEnabled, frameSize = context.frameSize, contentRef = context.contentRef, open = context.open, composedContentRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), offscreenSize = (0, import_useSheetOffscreenSize.useSheetOffscreenSize)(context), sheetContents = (0, import_react4.useMemo)(function() {
|
|
20871
20874
|
return (
|
|
20872
20875
|
// @ts-ignore
|
|
20873
20876
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Frame, _object_spread_props8(_object_spread9({
|
|
20874
20877
|
ref: composedContentRef,
|
|
20875
20878
|
flex: hasFit ? 0 : 1,
|
|
20876
|
-
height: hasFit ? void 0 : frameSize
|
|
20879
|
+
height: hasFit ? void 0 : frameSize,
|
|
20880
|
+
pointerEvents: open ? "auto" : "none"
|
|
20877
20881
|
}, props), {
|
|
20878
20882
|
children: [
|
|
20879
20883
|
children,
|
|
@@ -20886,6 +20890,7 @@ var require_createSheet_native = __commonJS({
|
|
|
20886
20890
|
}))
|
|
20887
20891
|
);
|
|
20888
20892
|
}, [
|
|
20893
|
+
open,
|
|
20889
20894
|
props,
|
|
20890
20895
|
frameSize,
|
|
20891
20896
|
offscreenSize,
|