@tamagui/sheet 1.112.2 → 1.112.4
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/cjs/SheetImplementationCustom.js +247 -249
- package/dist/cjs/SheetImplementationCustom.js.map +2 -2
- package/dist/cjs/SheetImplementationCustom.native.js +3 -3
- package/dist/cjs/SheetImplementationCustom.native.js.map +2 -2
- package/dist/cjs/constants.js +1 -4
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/constants.native.js +1 -4
- package/dist/cjs/constants.native.js.map +2 -2
- package/dist/esm/SheetImplementationCustom.js +253 -252
- package/dist/esm/SheetImplementationCustom.js.map +1 -1
- package/dist/esm/SheetImplementationCustom.mjs +8 -8
- package/dist/esm/SheetImplementationCustom.mjs.map +1 -1
- package/dist/esm/SheetImplementationCustom.native.js +7 -7
- package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
- package/dist/esm/constants.js +1 -4
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/constants.mjs +2 -5
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +2 -5
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/jsx/SheetImplementationCustom.js +253 -252
- package/dist/jsx/SheetImplementationCustom.js.map +1 -1
- package/dist/jsx/SheetImplementationCustom.mjs +8 -8
- package/dist/jsx/SheetImplementationCustom.mjs.map +1 -1
- package/dist/jsx/SheetImplementationCustom.native.js +6 -7
- package/dist/jsx/SheetImplementationCustom.native.js.map +2 -2
- package/dist/jsx/constants.js +1 -4
- package/dist/jsx/constants.js.map +1 -1
- package/dist/jsx/constants.mjs +2 -5
- package/dist/jsx/constants.mjs.map +1 -1
- package/dist/jsx/constants.native.js +1 -4
- package/dist/jsx/constants.native.js.map +2 -2
- package/package.json +16 -16
- package/src/SheetImplementationCustom.tsx +442 -433
- package/src/constants.tsx +0 -9
- package/src/createSheet.tsx +1 -1
- package/types/SheetImplementationCustom.d.ts +2 -2
- package/types/SheetImplementationCustom.d.ts.map +1 -1
- package/types/constants.d.ts +0 -1
- package/types/constants.d.ts.map +1 -1
|
@@ -1,288 +1,289 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { AdaptParentContext } from "@tamagui/adapt";
|
|
3
2
|
import { AnimatePresence } from "@tamagui/animate-presence";
|
|
4
3
|
import { useComposedRefs } from "@tamagui/compose-refs";
|
|
5
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
currentPlatform,
|
|
6
|
+
isClient,
|
|
7
|
+
isWeb,
|
|
8
|
+
useIsomorphicLayoutEffect
|
|
9
|
+
} from "@tamagui/constants";
|
|
6
10
|
import {
|
|
7
11
|
getConfig,
|
|
8
12
|
Stack,
|
|
9
13
|
Theme,
|
|
10
|
-
themeable,
|
|
11
14
|
useConfiguration,
|
|
12
15
|
useEvent,
|
|
13
16
|
useThemeName
|
|
14
17
|
} from "@tamagui/core";
|
|
15
18
|
import { Portal } from "@tamagui/portal";
|
|
16
19
|
import { useKeyboardVisible } from "@tamagui/use-keyboard-visible";
|
|
20
|
+
import React from "react";
|
|
17
21
|
import { Dimensions, Keyboard, PanResponder, View } from "react-native-web";
|
|
18
|
-
import { SHEET_HIDDEN_STYLESHEET } from "./constants";
|
|
19
22
|
import { ParentSheetContext, SheetInsideSheetContext } from "./contexts";
|
|
20
23
|
import { resisted } from "./helpers";
|
|
21
24
|
import { SheetProvider } from "./SheetContext";
|
|
22
25
|
import { useSheetOpenState } from "./useSheetOpenState";
|
|
23
26
|
import { useSheetProviderProps } from "./useSheetProviderProps";
|
|
24
27
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
-
let hiddenSize = 10000.1;
|
|
26
|
-
const SheetImplementationCustom =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
() =>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
28
|
+
let hiddenSize = 10000.1, sheetHiddenStyleSheet = null;
|
|
29
|
+
const SheetImplementationCustom = React.forwardRef(
|
|
30
|
+
function(props, forwardedRef) {
|
|
31
|
+
const parentSheet = React.useContext(ParentSheetContext), {
|
|
32
|
+
animation,
|
|
33
|
+
animationConfig: animationConfigProp,
|
|
34
|
+
modal = !1,
|
|
35
|
+
zIndex = parentSheet.zIndex + 1,
|
|
36
|
+
moveOnKeyboardChange = !1,
|
|
37
|
+
unmountChildrenWhenHidden = !1,
|
|
38
|
+
portalProps,
|
|
39
|
+
containerComponent: ContainerComponent = React.Fragment
|
|
40
|
+
} = props, keyboardIsVisible = useKeyboardVisible(), state = useSheetOpenState(props), [overlayComponent, setOverlayComponent] = React.useState(null), providerProps = useSheetProviderProps(props, state, {
|
|
41
|
+
onOverlayComponent: setOverlayComponent
|
|
42
|
+
}), {
|
|
43
|
+
frameSize,
|
|
44
|
+
setFrameSize,
|
|
45
|
+
snapPoints,
|
|
46
|
+
snapPointsMode,
|
|
47
|
+
hasFit,
|
|
48
|
+
position,
|
|
49
|
+
setPosition,
|
|
50
|
+
scrollBridge,
|
|
51
|
+
screenSize,
|
|
52
|
+
setMaxContentSize,
|
|
53
|
+
maxSnapPoint
|
|
54
|
+
} = providerProps, { open, controller, isHidden } = state, sheetRef = React.useRef(null), ref = useComposedRefs(forwardedRef, sheetRef), animationConfig = (() => {
|
|
55
|
+
const [animationProp, animationPropConfig] = animation ? Array.isArray(animation) ? animation : [animation] : [];
|
|
56
|
+
return animationConfigProp ?? (animationProp ? {
|
|
57
|
+
...getConfig().animations.animations[animationProp],
|
|
58
|
+
...animationPropConfig
|
|
59
|
+
} : null);
|
|
60
|
+
})(), [isShowingInnerSheet, setIsShowingInnerSheet] = React.useState(!1), shouldHideParentSheet = !isWeb && modal && isShowingInnerSheet, parentSheetContext = React.useContext(SheetInsideSheetContext), onInnerSheet = React.useCallback((hasChild) => {
|
|
61
|
+
setIsShowingInnerSheet(hasChild);
|
|
62
|
+
}, []), positions = React.useMemo(
|
|
63
|
+
() => snapPoints.map(
|
|
64
|
+
(point) => getYPositions(snapPointsMode, point, screenSize, frameSize)
|
|
65
|
+
),
|
|
66
|
+
[screenSize, frameSize, snapPoints, snapPointsMode]
|
|
67
|
+
), { animationDriver } = useConfiguration(), { useAnimatedNumber, useAnimatedNumberStyle, useAnimatedNumberReaction } = animationDriver, AnimatedView = animationDriver.View ?? Stack;
|
|
68
|
+
useIsomorphicLayoutEffect(() => {
|
|
69
|
+
if (parentSheetContext && open)
|
|
70
|
+
return parentSheetContext(!0), () => {
|
|
71
|
+
parentSheetContext(!1);
|
|
72
|
+
};
|
|
73
|
+
}, [parentSheetContext, open]);
|
|
74
|
+
const nextParentContext = React.useMemo(
|
|
75
|
+
() => ({
|
|
76
|
+
zIndex
|
|
77
|
+
}),
|
|
78
|
+
[zIndex]
|
|
79
|
+
), animatedNumber = useAnimatedNumber(hiddenSize), at = React.useRef(hiddenSize);
|
|
80
|
+
useAnimatedNumberReaction(
|
|
81
|
+
{
|
|
82
|
+
value: animatedNumber,
|
|
83
|
+
hostRef: sheetRef
|
|
84
|
+
},
|
|
85
|
+
React.useCallback(
|
|
86
|
+
(value) => {
|
|
87
|
+
at.current = value, scrollBridge.paneY = value;
|
|
82
88
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}));
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
return;
|
|
112
|
-
}
|
|
113
|
-
animatedNumber.setValue(toValue, {
|
|
114
|
-
type: "spring",
|
|
115
|
-
...animationConfig
|
|
116
|
-
});
|
|
89
|
+
[animationDriver]
|
|
90
|
+
)
|
|
91
|
+
);
|
|
92
|
+
function stopSpring() {
|
|
93
|
+
animatedNumber.stop(), scrollBridge.onFinishAnimate && (scrollBridge.onFinishAnimate(), scrollBridge.onFinishAnimate = void 0);
|
|
94
|
+
}
|
|
95
|
+
const hasntMeasured = at.current === hiddenSize, animateTo = useEvent((position2) => {
|
|
96
|
+
if (frameSize === 0) return;
|
|
97
|
+
let toValue = isHidden || position2 === -1 ? screenSize : positions[position2];
|
|
98
|
+
if (at.current !== toValue) {
|
|
99
|
+
if (at.current = toValue, stopSpring(), hasntMeasured || isHidden) {
|
|
100
|
+
animatedNumber.setValue(
|
|
101
|
+
screenSize,
|
|
102
|
+
{
|
|
103
|
+
type: "timing",
|
|
104
|
+
duration: 0
|
|
105
|
+
},
|
|
106
|
+
() => {
|
|
107
|
+
isHidden || (toValue = positions[position2], at.current = toValue, animatedNumber.setValue(toValue, {
|
|
108
|
+
type: "spring",
|
|
109
|
+
...animationConfig
|
|
110
|
+
}));
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
return;
|
|
117
114
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
type: "timing",
|
|
122
|
-
duration: 0
|
|
115
|
+
animatedNumber.setValue(toValue, {
|
|
116
|
+
type: "spring",
|
|
117
|
+
...animationConfig
|
|
123
118
|
});
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
useIsomorphicLayoutEffect(() => {
|
|
122
|
+
screenSize && hasntMeasured && animatedNumber.setValue(screenSize, {
|
|
123
|
+
type: "timing",
|
|
124
|
+
duration: 0
|
|
125
|
+
});
|
|
126
|
+
}, [hasntMeasured, screenSize]), useIsomorphicLayoutEffect(() => {
|
|
127
|
+
!frameSize || !screenSize || isHidden || hasntMeasured && !open || animateTo(position);
|
|
128
|
+
}, [isHidden, frameSize, screenSize, open, position]);
|
|
129
|
+
const disableDrag = props.disableDrag ?? controller?.disableDrag, themeName = useThemeName(), [isDragging, setIsDragging] = React.useState(!1), panResponder = React.useMemo(() => {
|
|
130
|
+
if (disableDrag || !frameSize || isShowingInnerSheet) return;
|
|
131
|
+
const minY = positions[0];
|
|
132
|
+
scrollBridge.paneMinY = minY;
|
|
133
|
+
let startY = at.current;
|
|
134
|
+
function setPanning(val) {
|
|
135
|
+
setIsDragging(val), isClient && (sheetHiddenStyleSheet || (sheetHiddenStyleSheet = document.createElement("style"), typeof document.head < "u" && document.head.appendChild(sheetHiddenStyleSheet)), val ? sheetHiddenStyleSheet.innerText = ":root * { user-select: none !important; -webkit-user-select: none !important; }" : sheetHiddenStyleSheet.innerText = "");
|
|
136
|
+
}
|
|
137
|
+
const release = ({ vy, dragAt }) => {
|
|
138
|
+
isExternalDrag = !1, previouslyScrolling = !1, setPanning(!1);
|
|
139
|
+
const end = dragAt + startY + frameSize * vy * 0.2;
|
|
140
|
+
let closestPoint = 0, dist = Number.POSITIVE_INFINITY;
|
|
141
|
+
for (let i = 0; i < positions.length; i++) {
|
|
142
|
+
const position2 = positions[i], curDist = end > position2 ? end - position2 : position2 - end;
|
|
143
|
+
curDist < dist && (dist = curDist, closestPoint = i);
|
|
134
144
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
const position2 = positions[i], curDist = end > position2 ? end - position2 : position2 - end;
|
|
141
|
-
curDist < dist && (dist = curDist, closestPoint = i);
|
|
142
|
-
}
|
|
143
|
-
setPosition(closestPoint), animateTo(closestPoint);
|
|
144
|
-
}, finish = (_e, state2) => {
|
|
145
|
-
release({
|
|
146
|
-
vy: state2.vy,
|
|
147
|
-
dragAt: state2.dy
|
|
148
|
-
});
|
|
149
|
-
};
|
|
150
|
-
let previouslyScrolling = !1;
|
|
151
|
-
const onMoveShouldSet = (e, { dy }) => {
|
|
152
|
-
if (e.target === providerProps.handleRef.current)
|
|
153
|
-
return !0;
|
|
154
|
-
const isScrolled = scrollBridge.y !== 0, isDraggingUp = dy < 0, isNearTop = scrollBridge.paneY - 5 <= scrollBridge.paneMinY;
|
|
155
|
-
return isScrolled ? (previouslyScrolling = !0, !1) : isNearTop && !isScrolled && isDraggingUp && !isWeb ? !1 : Math.abs(dy) > 5;
|
|
156
|
-
}, grant = () => {
|
|
157
|
-
setPanning(!0), stopSpring(), startY = at.current;
|
|
158
|
-
};
|
|
159
|
-
let isExternalDrag = !1;
|
|
160
|
-
return scrollBridge.drag = (dy) => {
|
|
161
|
-
isExternalDrag || (isExternalDrag = !0, grant());
|
|
162
|
-
const to = dy + startY;
|
|
163
|
-
animatedNumber.setValue(resisted(to, minY), { type: "direct" });
|
|
164
|
-
}, scrollBridge.release = release, PanResponder.create({
|
|
165
|
-
onMoveShouldSetPanResponder: onMoveShouldSet,
|
|
166
|
-
onPanResponderGrant: grant,
|
|
167
|
-
onPanResponderMove: (_e, { dy }) => {
|
|
168
|
-
const toFull = dy + startY, to = resisted(toFull, minY);
|
|
169
|
-
animatedNumber.setValue(to, { type: "direct" });
|
|
170
|
-
},
|
|
171
|
-
onPanResponderEnd: finish,
|
|
172
|
-
onPanResponderTerminate: finish,
|
|
173
|
-
onPanResponderRelease: finish
|
|
145
|
+
setPosition(closestPoint), animateTo(closestPoint);
|
|
146
|
+
}, finish = (_e, state2) => {
|
|
147
|
+
release({
|
|
148
|
+
vy: state2.vy,
|
|
149
|
+
dragAt: state2.dy
|
|
174
150
|
});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
151
|
+
};
|
|
152
|
+
let previouslyScrolling = !1;
|
|
153
|
+
const onMoveShouldSet = (e, { dy }) => {
|
|
154
|
+
if (e.target === providerProps.handleRef.current)
|
|
155
|
+
return !0;
|
|
156
|
+
const isScrolled = scrollBridge.y !== 0, isDraggingUp = dy < 0, isNearTop = scrollBridge.paneY - 5 <= scrollBridge.paneMinY;
|
|
157
|
+
return isScrolled ? (previouslyScrolling = !0, !1) : isNearTop && !isScrolled && isDraggingUp && !isWeb ? !1 : Math.abs(dy) > 5;
|
|
158
|
+
}, grant = () => {
|
|
159
|
+
setPanning(!0), stopSpring(), startY = at.current;
|
|
160
|
+
};
|
|
161
|
+
let isExternalDrag = !1;
|
|
162
|
+
return scrollBridge.drag = (dy) => {
|
|
163
|
+
isExternalDrag || (isExternalDrag = !0, grant());
|
|
164
|
+
const to = dy + startY;
|
|
165
|
+
animatedNumber.setValue(resisted(to, minY), { type: "direct" });
|
|
166
|
+
}, scrollBridge.release = release, PanResponder.create({
|
|
167
|
+
onMoveShouldSetPanResponder: onMoveShouldSet,
|
|
168
|
+
onPanResponderGrant: grant,
|
|
169
|
+
onPanResponderMove: (_e, { dy }) => {
|
|
170
|
+
const toFull = dy + startY, to = resisted(toFull, minY);
|
|
171
|
+
animatedNumber.setValue(to, { type: "direct" });
|
|
182
172
|
},
|
|
183
|
-
|
|
184
|
-
|
|
173
|
+
onPanResponderEnd: finish,
|
|
174
|
+
onPanResponderTerminate: finish,
|
|
175
|
+
onPanResponderRelease: finish
|
|
176
|
+
});
|
|
177
|
+
}, [disableDrag, isShowingInnerSheet, animateTo, frameSize, positions, setPosition]), handleAnimationViewLayout = React.useCallback(
|
|
178
|
+
(e) => {
|
|
179
|
+
const next = Math.min(
|
|
180
|
+
e.nativeEvent?.layout.height,
|
|
181
|
+
Dimensions.get("screen").height
|
|
182
|
+
);
|
|
183
|
+
next && setFrameSize(next);
|
|
184
|
+
},
|
|
185
|
+
[keyboardIsVisible]
|
|
186
|
+
), handleMaxContentViewLayout = React.useCallback(
|
|
187
|
+
(e) => {
|
|
188
|
+
const next = Math.min(
|
|
189
|
+
e.nativeEvent?.layout.height,
|
|
190
|
+
Dimensions.get("screen").height
|
|
191
|
+
);
|
|
192
|
+
next && setMaxContentSize(next);
|
|
193
|
+
},
|
|
194
|
+
[keyboardIsVisible]
|
|
195
|
+
), animatedStyle = useAnimatedNumberStyle(animatedNumber, (val) => {
|
|
196
|
+
"worklet";
|
|
197
|
+
return {
|
|
198
|
+
transform: [{ translateY: frameSize === 0 ? hiddenSize : val }]
|
|
199
|
+
};
|
|
200
|
+
}), sizeBeforeKeyboard = React.useRef(null);
|
|
201
|
+
React.useEffect(() => {
|
|
202
|
+
if (isWeb || !moveOnKeyboardChange) return;
|
|
203
|
+
const keyboardShowListener = Keyboard.addListener(
|
|
204
|
+
currentPlatform === "ios" ? "keyboardWillShow" : "keyboardDidShow",
|
|
185
205
|
(e) => {
|
|
186
|
-
|
|
187
|
-
e.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
));
|
|
211
|
-
}
|
|
212
|
-
), keyboardDidHideListener = Keyboard.addListener("keyboardDidHide", () => {
|
|
213
|
-
sizeBeforeKeyboard.current !== null && (animatedNumber.setValue(sizeBeforeKeyboard.current, {
|
|
214
|
-
type: "timing",
|
|
215
|
-
duration: 250
|
|
216
|
-
}), sizeBeforeKeyboard.current = null);
|
|
217
|
-
});
|
|
206
|
+
sizeBeforeKeyboard.current === null && (sizeBeforeKeyboard.current = isHidden || position === -1 ? screenSize : positions[position], animatedNumber.setValue(
|
|
207
|
+
Math.max(sizeBeforeKeyboard.current - e.endCoordinates.height, 0),
|
|
208
|
+
{
|
|
209
|
+
type: "timing",
|
|
210
|
+
duration: 250
|
|
211
|
+
}
|
|
212
|
+
));
|
|
213
|
+
}
|
|
214
|
+
), keyboardDidHideListener = Keyboard.addListener("keyboardDidHide", () => {
|
|
215
|
+
sizeBeforeKeyboard.current !== null && (animatedNumber.setValue(sizeBeforeKeyboard.current, {
|
|
216
|
+
type: "timing",
|
|
217
|
+
duration: 250
|
|
218
|
+
}), sizeBeforeKeyboard.current = null);
|
|
219
|
+
});
|
|
220
|
+
return () => {
|
|
221
|
+
keyboardDidHideListener.remove(), keyboardShowListener.remove();
|
|
222
|
+
};
|
|
223
|
+
}, [moveOnKeyboardChange, positions, position, isHidden]);
|
|
224
|
+
const [opacity, setOpacity] = React.useState(open ? 1 : 0);
|
|
225
|
+
open && opacity === 0 && setOpacity(1), React.useEffect(() => {
|
|
226
|
+
if (!open) {
|
|
227
|
+
const tm = setTimeout(() => {
|
|
228
|
+
setOpacity(0);
|
|
229
|
+
}, 400);
|
|
218
230
|
return () => {
|
|
219
|
-
|
|
231
|
+
clearTimeout(tm);
|
|
220
232
|
};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
233
|
+
}
|
|
234
|
+
}, [open]);
|
|
235
|
+
const forcedContentHeight = hasFit ? void 0 : snapPointsMode === "percent" ? `${maxSnapPoint}${isWeb ? "dvh" : "%"}` : maxSnapPoint, contents = /* @__PURE__ */ jsx(ParentSheetContext.Provider, { value: nextParentContext, children: /* @__PURE__ */ jsxs(SheetProvider, { ...providerProps, children: [
|
|
236
|
+
/* @__PURE__ */ jsx(AnimatePresence, { custom: { open }, children: shouldHideParentSheet || !open ? null : overlayComponent }),
|
|
237
|
+
snapPointsMode !== "percent" && /* @__PURE__ */ jsx(
|
|
238
|
+
View,
|
|
239
|
+
{
|
|
240
|
+
style: {
|
|
241
|
+
opacity: 0,
|
|
242
|
+
position: "absolute",
|
|
243
|
+
top: 0,
|
|
244
|
+
left: 0,
|
|
245
|
+
right: 0,
|
|
246
|
+
bottom: 0,
|
|
247
|
+
pointerEvents: "none"
|
|
248
|
+
},
|
|
249
|
+
onLayout: handleMaxContentViewLayout
|
|
231
250
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
251
|
+
),
|
|
252
|
+
/* @__PURE__ */ jsx(
|
|
253
|
+
AnimatedView,
|
|
254
|
+
{
|
|
255
|
+
ref,
|
|
256
|
+
...panResponder?.panHandlers,
|
|
257
|
+
onLayout: handleAnimationViewLayout,
|
|
258
|
+
...!isDragging && {
|
|
259
|
+
// @ts-ignore for CSS driver this is necessary to attach the transition
|
|
260
|
+
animation
|
|
261
|
+
},
|
|
262
|
+
disableClassName: !0,
|
|
263
|
+
style: [
|
|
264
|
+
{
|
|
240
265
|
position: "absolute",
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
),
|
|
250
|
-
/* @__PURE__ */ jsx(
|
|
251
|
-
AnimatedView,
|
|
252
|
-
{
|
|
253
|
-
ref,
|
|
254
|
-
...panResponder?.panHandlers,
|
|
255
|
-
onLayout: handleAnimationViewLayout,
|
|
256
|
-
...!isDragging && {
|
|
257
|
-
// @ts-ignore for CSS driver this is necessary to attach the transition
|
|
258
|
-
animation
|
|
266
|
+
zIndex,
|
|
267
|
+
width: "100%",
|
|
268
|
+
height: forcedContentHeight,
|
|
269
|
+
minHeight: forcedContentHeight,
|
|
270
|
+
opacity,
|
|
271
|
+
...(shouldHideParentSheet || !open) && {
|
|
272
|
+
pointerEvents: "none"
|
|
273
|
+
}
|
|
259
274
|
},
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
...(shouldHideParentSheet || !open) && {
|
|
270
|
-
pointerEvents: "none"
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
animatedStyle
|
|
274
|
-
],
|
|
275
|
-
children: props.children
|
|
276
|
-
}
|
|
277
|
-
)
|
|
278
|
-
] }) }), adaptContext = React.useContext(AdaptParentContext), shouldMountChildren = !!(opacity || !unmountChildrenWhenHidden);
|
|
279
|
-
if (modal) {
|
|
280
|
-
const modalContents = /* @__PURE__ */ jsx(Portal, { zIndex, ...portalProps, children: shouldMountChildren && /* @__PURE__ */ jsx(ContainerComponent, { children: /* @__PURE__ */ jsx(Theme, { forceClassName: !0, name: themeName, children: /* @__PURE__ */ jsx(AdaptParentContext.Provider, { value: adaptContext, children: contents }) }) }) });
|
|
281
|
-
return isWeb ? modalContents : /* @__PURE__ */ jsx(SheetInsideSheetContext.Provider, { value: onInnerSheet, children: modalContents });
|
|
282
|
-
}
|
|
283
|
-
return contents;
|
|
275
|
+
animatedStyle
|
|
276
|
+
],
|
|
277
|
+
children: props.children
|
|
278
|
+
}
|
|
279
|
+
)
|
|
280
|
+
] }) }), adaptContext = React.useContext(AdaptParentContext), shouldMountChildren = !!(opacity || !unmountChildrenWhenHidden);
|
|
281
|
+
if (modal) {
|
|
282
|
+
const modalContents = /* @__PURE__ */ jsx(Portal, { zIndex, ...portalProps, children: shouldMountChildren && /* @__PURE__ */ jsx(ContainerComponent, { children: /* @__PURE__ */ jsx(Theme, { forceClassName: !0, name: themeName, children: /* @__PURE__ */ jsx(AdaptParentContext.Provider, { value: adaptContext, children: contents }) }) }) });
|
|
283
|
+
return isWeb ? modalContents : /* @__PURE__ */ jsx(SheetInsideSheetContext.Provider, { value: onInnerSheet, children: modalContents });
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
return contents;
|
|
286
|
+
}
|
|
286
287
|
);
|
|
287
288
|
function getYPositions(mode, point, screenSize, frameSize) {
|
|
288
289
|
if (!screenSize || !frameSize) return 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SheetImplementationCustom.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": "AAAA,SAAS,0BAA0B;AACnC,SAAS,uBAAuB;AAChC,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,cAAc;AACvB,SAAS,0BAA0B;AACnC,OAAO,WAAW;AAOlB,SAAS,YAAY,UAAU,cAAc,YAAY;AACzD,SAAS,oBAAoB,+BAA+B;AAC5D,SAAS,gBAAgB;AACzB,SAAS,qBAAqB;AAE9B,SAAS,yBAAyB;AAClC,SAAS,6BAA6B;AAwZ9B,SACE,KADF;AAtZR,IAAI,aAAa,SAEb,wBAAiD;AAE9C,MAAM,4BAA4B,MAAM;AAAA,EAC7C,SAAmC,OAAO,cAAc;AACtD,UAAM,cAAc,MAAM,WAAW,kBAAkB,GAEjD;AAAA,MACJ;AAAA,MACA,iBAAiB;AAAA,MACjB,QAAQ;AAAA,MACR,SAAS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