@tamagui/sheet 1.26.0 → 1.27.0
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/Sheet.js +23 -425
- package/dist/cjs/Sheet.js.map +2 -2
- package/dist/cjs/StyledSheet.js +132 -0
- package/dist/cjs/StyledSheet.js.map +6 -0
- package/dist/cjs/constants.js +3 -0
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/createSheet.js +439 -0
- package/dist/cjs/createSheet.js.map +6 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/Sheet.js +20 -447
- package/dist/esm/Sheet.js.map +2 -2
- package/dist/esm/StyledSheet.js +100 -0
- package/dist/esm/StyledSheet.js.map +6 -0
- package/dist/esm/constants.js +2 -0
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/createSheet.js +441 -0
- package/dist/esm/createSheet.js.map +6 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/jsx/Sheet.js +20 -434
- package/dist/jsx/Sheet.js.map +2 -2
- package/dist/jsx/Sheet.mjs +20 -434
- package/dist/jsx/Sheet.mjs.map +2 -2
- package/dist/jsx/StyledSheet.js +100 -0
- package/dist/jsx/StyledSheet.js.map +6 -0
- package/dist/jsx/StyledSheet.mjs +100 -0
- package/dist/jsx/StyledSheet.mjs.map +6 -0
- package/dist/jsx/constants.js +2 -0
- package/dist/jsx/constants.js.map +1 -1
- package/dist/jsx/constants.mjs +2 -0
- package/dist/jsx/constants.mjs.map +1 -1
- package/dist/jsx/createSheet.js +428 -0
- package/dist/jsx/createSheet.js.map +6 -0
- package/dist/jsx/createSheet.mjs +428 -0
- package/dist/jsx/createSheet.mjs.map +6 -0
- package/dist/jsx/index.js +1 -0
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +1 -0
- package/dist/jsx/index.mjs.map +1 -1
- package/package.json +13 -13
- package/src/Sheet.tsx +20 -543
- package/src/constants.tsx +1 -0
- package/src/createSheet.tsx +565 -0
- package/src/index.ts +1 -0
- package/types/Sheet.d.ts +159 -80
- package/types/Sheet.d.ts.map +1 -1
- package/types/constants.d.ts +1 -0
- package/types/constants.d.ts.map +1 -1
- package/types/createSheet.d.ts +66 -0
- package/types/createSheet.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAAY,CAAC;AAEnB,MAAM,aAAa;AACnB,MAAM,oBAAoB;",
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,YAAY,CAAC;AAEnB,MAAM,aAAa;AACnB,MAAM,oBAAoB;AAC1B,MAAM,qBAAqB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var createSheet_exports = {};
|
|
20
|
+
__export(createSheet_exports, {
|
|
21
|
+
createSheet: () => createSheet
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(createSheet_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_adapt = require("@tamagui/adapt");
|
|
26
|
+
var import_compose_refs = require("@tamagui/compose-refs");
|
|
27
|
+
var import_core = require("@tamagui/core");
|
|
28
|
+
var import_portal = require("@tamagui/portal");
|
|
29
|
+
var import_remove_scroll = require("@tamagui/remove-scroll");
|
|
30
|
+
var import_use_keyboard_visible = require("@tamagui/use-keyboard-visible");
|
|
31
|
+
var import_react = require("react");
|
|
32
|
+
var import_react_native = require("react-native");
|
|
33
|
+
var import_constants = require("./constants");
|
|
34
|
+
var import_nativeSheet = require("./nativeSheet");
|
|
35
|
+
var import_SheetContext = require("./SheetContext");
|
|
36
|
+
var import_SheetScrollView = require("./SheetScrollView");
|
|
37
|
+
var import_useSheetChildren = require("./useSheetChildren");
|
|
38
|
+
var import_useSheetController = require("./useSheetController");
|
|
39
|
+
var import_useSheetOpenState = require("./useSheetOpenState");
|
|
40
|
+
var import_useSheetProviderProps = require("./useSheetProviderProps");
|
|
41
|
+
var import_useSheetSnapPoints = require("./useSheetSnapPoints");
|
|
42
|
+
const selectionStyleSheet = import_core.isClient ? document.createElement("style") : null;
|
|
43
|
+
if (selectionStyleSheet) {
|
|
44
|
+
document.head.appendChild(selectionStyleSheet);
|
|
45
|
+
}
|
|
46
|
+
function createSheet({ Handle, Frame, Overlay }) {
|
|
47
|
+
const SheetHandle = Handle.extractable(
|
|
48
|
+
({ __scopeSheet, ...props }) => {
|
|
49
|
+
const context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_HANDLE_NAME, __scopeSheet);
|
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
51
|
+
Handle,
|
|
52
|
+
{
|
|
53
|
+
onPress: () => {
|
|
54
|
+
const max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0);
|
|
55
|
+
const nextPos = (context.position + 1) % max;
|
|
56
|
+
context.setPosition(nextPos);
|
|
57
|
+
},
|
|
58
|
+
open: context.open,
|
|
59
|
+
...props
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
const SheetOverlay = Overlay.extractable(
|
|
65
|
+
({ __scopeSheet, ...props }) => {
|
|
66
|
+
const context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_OVERLAY_NAME, __scopeSheet);
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
68
|
+
Overlay,
|
|
69
|
+
{
|
|
70
|
+
open: context.open && !context.hidden,
|
|
71
|
+
...props,
|
|
72
|
+
onPress: (0, import_core.mergeEvent)(
|
|
73
|
+
props.onPress,
|
|
74
|
+
context.dismissOnOverlayPress ? () => {
|
|
75
|
+
context.setOpen(false);
|
|
76
|
+
} : void 0
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
const SheetFrame = Frame.extractable(
|
|
83
|
+
(0, import_react.forwardRef)(
|
|
84
|
+
({ __scopeSheet, ...props }, forwardedRef) => {
|
|
85
|
+
const context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_NAME, __scopeSheet);
|
|
86
|
+
const composedContentRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, context.contentRef);
|
|
87
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Frame, { ref: composedContentRef, ...props });
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
);
|
|
91
|
+
const Sheet = (0, import_react.forwardRef)(function Sheet2(props, ref) {
|
|
92
|
+
const hydrated = (0, import_core.useDidFinishSSR)();
|
|
93
|
+
const { isShowingNonSheet } = (0, import_useSheetController.useSheetController)();
|
|
94
|
+
let SheetImplementation = SheetImplementationCustom;
|
|
95
|
+
if (props.native && import_react_native.Platform.OS === "ios") {
|
|
96
|
+
if (process.env.TAMAGUI_TARGET === "native") {
|
|
97
|
+
const impl = (0, import_nativeSheet.getNativeSheet)("ios");
|
|
98
|
+
if (impl) {
|
|
99
|
+
SheetImplementation = impl;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (isShowingNonSheet || !hydrated) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetImplementation, { ref, ...props });
|
|
107
|
+
});
|
|
108
|
+
const components = {
|
|
109
|
+
Frame: SheetFrame,
|
|
110
|
+
Overlay: SheetOverlay,
|
|
111
|
+
Handle: SheetHandle,
|
|
112
|
+
ScrollView: import_SheetScrollView.SheetScrollView
|
|
113
|
+
};
|
|
114
|
+
const Controlled = (0, import_core.withStaticProperties)(Sheet, components);
|
|
115
|
+
return (0, import_core.withStaticProperties)(Sheet, {
|
|
116
|
+
...components,
|
|
117
|
+
Controlled
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
const HIDDEN_SIZE = 1e4;
|
|
121
|
+
const ParentSheetContext = (0, import_react.createContext)({
|
|
122
|
+
zIndex: 1e5
|
|
123
|
+
});
|
|
124
|
+
const SheetImplementationCustom = (0, import_core.themeable)(
|
|
125
|
+
(0, import_react.forwardRef)(function SheetImplementationCustom2(props, forwardedRef) {
|
|
126
|
+
const parentSheet = (0, import_react.useContext)(ParentSheetContext);
|
|
127
|
+
const {
|
|
128
|
+
animationConfig,
|
|
129
|
+
forceRemoveScrollEnabled = null,
|
|
130
|
+
disableDrag: disableDragProp,
|
|
131
|
+
modal = false,
|
|
132
|
+
zIndex = parentSheet.zIndex + 1,
|
|
133
|
+
moveOnKeyboardChange = false,
|
|
134
|
+
portalProps
|
|
135
|
+
} = props;
|
|
136
|
+
const state = (0, import_useSheetOpenState.useSheetOpenState)(props);
|
|
137
|
+
const providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state);
|
|
138
|
+
const { positions, maxSnapPoint, screenSize } = (0, import_useSheetSnapPoints.useSheetSnapPoints)(providerProps);
|
|
139
|
+
const { position, contentRef, setPosition, scrollBridge, frameSize, setFrameSize } = providerProps;
|
|
140
|
+
const { open, isHidden, controller } = state;
|
|
141
|
+
const { frameComponent, handleComponent, bottomCoverComponent, overlayComponent } = (0, import_useSheetChildren.useSheetChildren)(props.children);
|
|
142
|
+
const sheetRef = (0, import_react.useRef)(null);
|
|
143
|
+
const ref = (0, import_compose_refs.useComposedRefs)(forwardedRef, sheetRef);
|
|
144
|
+
const driver = (0, import_core.useAnimationDriver)();
|
|
145
|
+
if (!driver) {
|
|
146
|
+
throw new Error("Must set animations in tamagui.config.ts");
|
|
147
|
+
}
|
|
148
|
+
const disableDrag = disableDragProp ?? (controller == null ? void 0 : controller.disableDrag);
|
|
149
|
+
const keyboardIsVisible = (0, import_use_keyboard_visible.useKeyboardVisible)();
|
|
150
|
+
const themeName = (0, import_core.useThemeName)();
|
|
151
|
+
const { useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle } = driver;
|
|
152
|
+
const animatedNumber = useAnimatedNumber(HIDDEN_SIZE);
|
|
153
|
+
const at = (0, import_react.useRef)(0);
|
|
154
|
+
useAnimatedNumberReaction(
|
|
155
|
+
{
|
|
156
|
+
value: animatedNumber,
|
|
157
|
+
hostRef: sheetRef
|
|
158
|
+
},
|
|
159
|
+
(value) => {
|
|
160
|
+
if (!driver.isReactNative)
|
|
161
|
+
return;
|
|
162
|
+
at.current = value;
|
|
163
|
+
scrollBridge.paneY = value;
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
function stopSpring() {
|
|
167
|
+
animatedNumber.stop();
|
|
168
|
+
if (scrollBridge.onFinishAnimate) {
|
|
169
|
+
scrollBridge.onFinishAnimate();
|
|
170
|
+
scrollBridge.onFinishAnimate = void 0;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
const [opacity, setOpacity] = (0, import_react.useState)(open ? 1 : 0);
|
|
174
|
+
if (open && opacity === 0) {
|
|
175
|
+
setOpacity(1);
|
|
176
|
+
}
|
|
177
|
+
(0, import_react.useEffect)(() => {
|
|
178
|
+
if (!open) {
|
|
179
|
+
const tm = setTimeout(() => {
|
|
180
|
+
setOpacity(0);
|
|
181
|
+
}, 400);
|
|
182
|
+
return () => {
|
|
183
|
+
clearTimeout(tm);
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
}, [open]);
|
|
187
|
+
const animateTo = (0, import_core.useEvent)((position2) => {
|
|
188
|
+
const current = animatedNumber.getValue();
|
|
189
|
+
if (isHidden && open)
|
|
190
|
+
return;
|
|
191
|
+
if (!current)
|
|
192
|
+
return;
|
|
193
|
+
if (frameSize === 0)
|
|
194
|
+
return;
|
|
195
|
+
const hiddenValue = frameSize === 0 ? HIDDEN_SIZE : screenSize;
|
|
196
|
+
const toValue = isHidden || position2 === -1 ? hiddenValue : positions[position2];
|
|
197
|
+
if (at.current === toValue)
|
|
198
|
+
return;
|
|
199
|
+
stopSpring();
|
|
200
|
+
if (isHidden) {
|
|
201
|
+
animatedNumber.setValue(toValue, {
|
|
202
|
+
type: "timing",
|
|
203
|
+
duration: 0
|
|
204
|
+
});
|
|
205
|
+
at.current = toValue;
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
const overshootClamping = at.current === HIDDEN_SIZE;
|
|
209
|
+
animatedNumber.setValue(toValue, {
|
|
210
|
+
...animationConfig,
|
|
211
|
+
type: "spring",
|
|
212
|
+
overshootClamping
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
(0, import_core.useIsomorphicLayoutEffect)(() => {
|
|
216
|
+
animateTo(position);
|
|
217
|
+
}, [isHidden, frameSize, position, animateTo]);
|
|
218
|
+
const [isShowingInnerSheet, setIsShowingInnerSheet] = (0, import_react.useState)(false);
|
|
219
|
+
const shouldHideParentSheet = !import_core.isWeb && modal && isShowingInnerSheet;
|
|
220
|
+
const parentSheetContext = (0, import_react.useContext)(SheetInsideSheetContext);
|
|
221
|
+
const onInnerSheet = (0, import_react.useCallback)((hasChild) => {
|
|
222
|
+
setIsShowingInnerSheet(hasChild);
|
|
223
|
+
}, []);
|
|
224
|
+
const panResponder = (0, import_react.useMemo)(
|
|
225
|
+
() => {
|
|
226
|
+
if (disableDrag)
|
|
227
|
+
return;
|
|
228
|
+
if (!frameSize)
|
|
229
|
+
return;
|
|
230
|
+
if (isShowingInnerSheet)
|
|
231
|
+
return;
|
|
232
|
+
const minY = positions[0];
|
|
233
|
+
scrollBridge.paneMinY = minY;
|
|
234
|
+
let startY = at.current;
|
|
235
|
+
function makeUnselectable(val) {
|
|
236
|
+
if (!selectionStyleSheet)
|
|
237
|
+
return;
|
|
238
|
+
if (!val) {
|
|
239
|
+
selectionStyleSheet.innerText = "";
|
|
240
|
+
} else {
|
|
241
|
+
selectionStyleSheet.innerText = ":root * { user-select: none !important; -webkit-user-select: none !important; }";
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
const release = ({ vy, dragAt }) => {
|
|
245
|
+
isExternalDrag = false;
|
|
246
|
+
previouslyScrolling = false;
|
|
247
|
+
makeUnselectable(false);
|
|
248
|
+
const at2 = dragAt + startY;
|
|
249
|
+
const end = at2 + frameSize * vy * 0.2;
|
|
250
|
+
let closestPoint = 0;
|
|
251
|
+
let dist = Infinity;
|
|
252
|
+
for (let i = 0; i < positions.length; i++) {
|
|
253
|
+
const position2 = positions[i];
|
|
254
|
+
const curDist = end > position2 ? end - position2 : position2 - end;
|
|
255
|
+
if (curDist < dist) {
|
|
256
|
+
dist = curDist;
|
|
257
|
+
closestPoint = i;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
setPosition(closestPoint);
|
|
261
|
+
animateTo(closestPoint);
|
|
262
|
+
};
|
|
263
|
+
const finish = (_e, state2) => {
|
|
264
|
+
release({
|
|
265
|
+
vy: state2.vy,
|
|
266
|
+
dragAt: state2.dy
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
let previouslyScrolling = false;
|
|
270
|
+
const onMoveShouldSet = (_e, { dy }) => {
|
|
271
|
+
const isScrolled = scrollBridge.y !== 0;
|
|
272
|
+
const isDraggingUp = dy < 0;
|
|
273
|
+
const isNearTop = scrollBridge.paneY - 5 <= scrollBridge.paneMinY;
|
|
274
|
+
if (isScrolled) {
|
|
275
|
+
previouslyScrolling = true;
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
if (isNearTop) {
|
|
279
|
+
if (!isScrolled && isDraggingUp) {
|
|
280
|
+
return false;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return Math.abs(dy) > 5;
|
|
284
|
+
};
|
|
285
|
+
const grant = () => {
|
|
286
|
+
makeUnselectable(true);
|
|
287
|
+
stopSpring();
|
|
288
|
+
startY = at.current;
|
|
289
|
+
};
|
|
290
|
+
let isExternalDrag = false;
|
|
291
|
+
scrollBridge.drag = (dy) => {
|
|
292
|
+
if (!isExternalDrag) {
|
|
293
|
+
isExternalDrag = true;
|
|
294
|
+
grant();
|
|
295
|
+
}
|
|
296
|
+
const to = dy + startY;
|
|
297
|
+
animatedNumber.setValue(resisted(to, minY), { type: "direct" });
|
|
298
|
+
};
|
|
299
|
+
scrollBridge.release = release;
|
|
300
|
+
return import_react_native.PanResponder.create({
|
|
301
|
+
onMoveShouldSetPanResponder: onMoveShouldSet,
|
|
302
|
+
onPanResponderGrant: grant,
|
|
303
|
+
onPanResponderMove: (_e, { dy }) => {
|
|
304
|
+
const toFull = dy + startY;
|
|
305
|
+
const to = resisted(toFull, minY);
|
|
306
|
+
animatedNumber.setValue(to, { type: "direct" });
|
|
307
|
+
},
|
|
308
|
+
onPanResponderEnd: finish,
|
|
309
|
+
onPanResponderTerminate: finish,
|
|
310
|
+
onPanResponderRelease: finish
|
|
311
|
+
});
|
|
312
|
+
},
|
|
313
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
314
|
+
[disableDrag, isShowingInnerSheet, animateTo, frameSize, positions, setPosition]
|
|
315
|
+
);
|
|
316
|
+
const animatedStyle = useAnimatedNumberStyle(animatedNumber, (val) => {
|
|
317
|
+
"worklet";
|
|
318
|
+
const translateY = frameSize === 0 ? HIDDEN_SIZE : val;
|
|
319
|
+
return {
|
|
320
|
+
transform: [{ translateY }]
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
const sizeBeforeKeyboard = (0, import_react.useRef)(null);
|
|
324
|
+
(0, import_react.useEffect)(() => {
|
|
325
|
+
if (import_core.isWeb || !moveOnKeyboardChange)
|
|
326
|
+
return;
|
|
327
|
+
const keyboardDidShowListener = import_react_native.Keyboard.addListener("keyboardDidShow", (e) => {
|
|
328
|
+
if (sizeBeforeKeyboard.current !== null)
|
|
329
|
+
return;
|
|
330
|
+
sizeBeforeKeyboard.current = animatedNumber.getValue();
|
|
331
|
+
animatedNumber.setValue(
|
|
332
|
+
Math.max(animatedNumber.getValue() - e.endCoordinates.height, 0)
|
|
333
|
+
);
|
|
334
|
+
});
|
|
335
|
+
const keyboardDidHideListener = import_react_native.Keyboard.addListener("keyboardDidHide", () => {
|
|
336
|
+
if (sizeBeforeKeyboard.current === null)
|
|
337
|
+
return;
|
|
338
|
+
animatedNumber.setValue(sizeBeforeKeyboard.current);
|
|
339
|
+
sizeBeforeKeyboard.current = null;
|
|
340
|
+
});
|
|
341
|
+
return () => {
|
|
342
|
+
keyboardDidHideListener.remove();
|
|
343
|
+
keyboardDidShowListener.remove();
|
|
344
|
+
};
|
|
345
|
+
}, []);
|
|
346
|
+
const AnimatedView = driver["NumberView"] ?? driver.View;
|
|
347
|
+
(0, import_core.useIsomorphicLayoutEffect)(() => {
|
|
348
|
+
if (!(parentSheetContext && open))
|
|
349
|
+
return;
|
|
350
|
+
parentSheetContext(true);
|
|
351
|
+
return () => {
|
|
352
|
+
parentSheetContext(false);
|
|
353
|
+
};
|
|
354
|
+
}, [parentSheetContext, open]);
|
|
355
|
+
const nextParentContext = (0, import_react.useMemo)(
|
|
356
|
+
() => ({
|
|
357
|
+
zIndex
|
|
358
|
+
}),
|
|
359
|
+
[zIndex]
|
|
360
|
+
);
|
|
361
|
+
const handleLayout = (0, import_react.useCallback)(
|
|
362
|
+
(e) => {
|
|
363
|
+
var _a;
|
|
364
|
+
let next = (_a = e.nativeEvent) == null ? void 0 : _a.layout.height;
|
|
365
|
+
if (import_core.isWeb && import_core.isTouchable && !open) {
|
|
366
|
+
next += 100;
|
|
367
|
+
}
|
|
368
|
+
if (!next)
|
|
369
|
+
return;
|
|
370
|
+
setFrameSize(() => next);
|
|
371
|
+
},
|
|
372
|
+
[keyboardIsVisible]
|
|
373
|
+
);
|
|
374
|
+
const removeScrollEnabled = forceRemoveScrollEnabled ?? (open && modal);
|
|
375
|
+
const contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ParentSheetContext.Provider, { value: nextParentContext, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_SheetContext.SheetProvider, { ...providerProps, children: [
|
|
376
|
+
shouldHideParentSheet ? null : overlayComponent,
|
|
377
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
378
|
+
AnimatedView,
|
|
379
|
+
{
|
|
380
|
+
ref,
|
|
381
|
+
...panResponder == null ? void 0 : panResponder.panHandlers,
|
|
382
|
+
onLayout: handleLayout,
|
|
383
|
+
pointerEvents: open && !shouldHideParentSheet ? "auto" : "none",
|
|
384
|
+
animation: props.animation,
|
|
385
|
+
style: [
|
|
386
|
+
{
|
|
387
|
+
position: "absolute",
|
|
388
|
+
zIndex,
|
|
389
|
+
width: "100%",
|
|
390
|
+
height: `${maxSnapPoint}%`,
|
|
391
|
+
opacity
|
|
392
|
+
},
|
|
393
|
+
animatedStyle
|
|
394
|
+
],
|
|
395
|
+
children: [
|
|
396
|
+
handleComponent,
|
|
397
|
+
bottomCoverComponent,
|
|
398
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
399
|
+
import_remove_scroll.RemoveScroll,
|
|
400
|
+
{
|
|
401
|
+
forwardProps: true,
|
|
402
|
+
enabled: removeScrollEnabled,
|
|
403
|
+
allowPinchZoom: true,
|
|
404
|
+
shards: [contentRef],
|
|
405
|
+
removeScrollBar: false,
|
|
406
|
+
children: frameComponent
|
|
407
|
+
}
|
|
408
|
+
)
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
)
|
|
412
|
+
] }) });
|
|
413
|
+
const adaptContext = (0, import_react.useContext)(import_adapt.AdaptParentContext);
|
|
414
|
+
if (modal) {
|
|
415
|
+
const modalContents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_portal.Portal, { zIndex, ...portalProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Theme, { forceClassName: true, name: themeName, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptParentContext.Provider, { value: adaptContext, children: contents }) }) });
|
|
416
|
+
if (import_core.isWeb) {
|
|
417
|
+
return modalContents;
|
|
418
|
+
}
|
|
419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetInsideSheetContext.Provider, { value: onInnerSheet, children: modalContents });
|
|
420
|
+
}
|
|
421
|
+
return contents;
|
|
422
|
+
})
|
|
423
|
+
);
|
|
424
|
+
const SheetInsideSheetContext = (0, import_react.createContext)(null);
|
|
425
|
+
function resisted(y, minY, maxOverflow = 25) {
|
|
426
|
+
if (y < minY) {
|
|
427
|
+
const past = minY - y;
|
|
428
|
+
const pctPast = Math.min(maxOverflow, past) / maxOverflow;
|
|
429
|
+
const diminishBy = 1.1 - Math.pow(0.1, pctPast);
|
|
430
|
+
const extra = -diminishBy * maxOverflow;
|
|
431
|
+
return minY + extra;
|
|
432
|
+
}
|
|
433
|
+
return y;
|
|
434
|
+
}
|
|
435
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
436
|
+
0 && (module.exports = {
|
|
437
|
+
createSheet
|
|
438
|
+
});
|
|
439
|
+
//# sourceMappingURL=createSheet.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/createSheet.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA6EQ;AA7ER,mBAAmC;AACnC,0BAAgC;AAChC,kBAgBO;AACP,oBAAuB;AACvB,2BAA6B;AAC7B,kCAAmC;AACnC,mBAWO;AACP,0BAQO;AAEP,uBAAkE;AAClE,yBAA+B;AAC/B,0BAA+C;AAC/C,6BAAgC;AAEhC,8BAAiC;AACjC,gCAAmC;AACnC,+BAAkC;AAClC,mCAAsC;AACtC,gCAAmC;AAcnC,MAAM,sBAAsB,uBAAW,SAAS,cAAc,OAAO,IAAI;AACzE,IAAI,qBAAqB;AACvB,WAAS,KAAK,YAAY,mBAAmB;AAC/C;AAEO,SAAS,YAAY,EAAE,QAAQ,OAAO,QAAQ,GAAqB;AACxE,QAAM,cAAc,OAAO;AAAA,IACzB,CAAC,EAAE,cAAc,GAAG,MAAM,MAAiD;AACzE,YAAM,cAAU,qCAAgB,oCAAmB,YAAY;AAC/D,aACE;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,MAAM;AAEb,kBAAM,MACJ,QAAQ,WAAW,UAAU,QAAQ,wBAAwB,KAAK;AACpE,kBAAM,WAAW,QAAQ,WAAW,KAAK;AACzC,oBAAQ,YAAY,OAAO;AAAA,UAC7B;AAAA,UACA,MAAM,QAAQ;AAAA,UACb,GAAG;AAAA;AAAA,MACN;AAAA,IAEJ;AAAA,EACF;AAMA,QAAM,eAAe,QAAQ;AAAA,IAC3B,CAAC,EAAE,cAAc,GAAG,MAAM,MAAkD;AAC1E,YAAM,cAAU,qCAAgB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UAAU;AAAA,cACV;AAAA,cACA,OAAO;AAAA,cACP,QAAQ,GAAG;AAAA,cACX;AAAA,YACF;AAAA,YACA;AAAA,UACF;AAAA,UAEC;AAAA;AAAA,YAEA;AAAA,YAED;AAAA,cAAC;AAAA;AAAA,gBACC,cAAY;AAAA,gBACZ,SAAS;AAAA,gBACT,gBAAc;AAAA,gBACd,QAAQ,CAAC,UAAU;AAAA,gBAEnB,iBAAiB;AAAA,gBAEhB;AAAA;AAAA,YACH;AAAA;AAAA;AAAA,MACF;AAAA,OACF,GACF;AAGF,UAAM,mBAAe,yBAAW,+BAAkB;AAElD,QAAI,OAAO;AACT,YAAM,gBACJ,4CAAC,wBAAO,QAAiB,GAAG,aAC1B,sDAAC,qBAAM,gBAAc,MAAC,MAAM,WAC1B,sDAAC,gCAAmB,UAAnB,EAA4B,OAAO,cACjC,oBACH,GACF,GACF;AAGF,UAAI,mBAAO;AACT,eAAO;AAAA,MACT;AAGA,aACE,4CAAC,wBAAwB,UAAxB,EAAiC,OAAO,cACtC,yBACH;AAAA,IAEJ;AAEA,WAAO;AAAA,EACT,CAAC;AACH;AAEA,MAAM,8BAA0B,4BAAoD,IAAI;AAIxF,SAAS,SAAS,GAAW,MAAc,cAAc,IAAI;AAC3D,MAAI,IAAI,MAAM;AACZ,UAAM,OAAO,OAAO;AACpB,UAAM,UAAU,KAAK,IAAI,aAAa,IAAI,IAAI;AAC9C,UAAM,aAAa,MAAM,KAAK,IAAI,KAAK,OAAO;AAC9C,UAAM,QAAQ,CAAC,aAAa;AAC5B,WAAO,OAAO;AAAA,EAChB;AACA,SAAO;AACT;",
|
|
5
|
+
"names": ["Sheet", "SheetImplementationCustom", "position", "at", "state"]
|
|
6
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(src_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(src_exports);
|
|
25
25
|
__reExport(src_exports, require("./Sheet"), module.exports);
|
|
26
|
+
__reExport(src_exports, require("./createSheet"), module.exports);
|
|
26
27
|
__reExport(src_exports, require("./SheetController"), module.exports);
|
|
27
28
|
__reExport(src_exports, require("./useSheetController"), module.exports);
|
|
28
29
|
var import_nativeSheet = require("./nativeSheet");
|
|
@@ -30,6 +31,7 @@ var import_nativeSheet = require("./nativeSheet");
|
|
|
30
31
|
0 && (module.exports = {
|
|
31
32
|
setupNativeSheet,
|
|
32
33
|
...require("./Sheet"),
|
|
34
|
+
...require("./createSheet"),
|
|
33
35
|
...require("./SheetController"),
|
|
34
36
|
...require("./useSheetController")
|
|
35
37
|
});
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,oBAAd;AACA,wBAAc,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,oBAAd;AACA,wBAAc,0BADd;AAEA,wBAAc,8BAFd;AAGA,wBAAc,iCAHd;AAIA,yBAAiC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|