@tamagui/sheet 2.0.0-rc.3 → 2.0.0-rc.31
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/.turbo/turbo-build.log +2 -0
- package/controller/index.cjs +2 -0
- package/controller/index.js +2 -0
- package/controller/index.native.cjs +2 -0
- package/controller/index.native.js +2 -0
- package/dist/cjs/SheetImplementationCustom.cjs +32 -33
- package/dist/cjs/SheetImplementationCustom.native.js +28 -24
- package/dist/cjs/SheetImplementationCustom.native.js.map +1 -1
- package/dist/cjs/useGestureHandlerPan.cjs +1 -1
- package/dist/cjs/useGestureHandlerPan.native.js +1 -1
- package/dist/cjs/useGestureHandlerPan.native.js.map +1 -1
- package/dist/esm/SheetImplementationCustom.mjs +33 -34
- package/dist/esm/SheetImplementationCustom.mjs.map +1 -1
- package/dist/esm/SheetImplementationCustom.native.js +29 -25
- package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
- package/dist/esm/index.js +11 -11
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/useGestureHandlerPan.mjs +1 -1
- package/dist/esm/useGestureHandlerPan.mjs.map +1 -1
- package/dist/esm/useGestureHandlerPan.native.js +1 -1
- package/dist/esm/useGestureHandlerPan.native.js.map +1 -1
- package/dist/jsx/SheetImplementationCustom.mjs +33 -34
- package/dist/jsx/SheetImplementationCustom.mjs.map +1 -1
- package/dist/jsx/SheetImplementationCustom.native.js +28 -24
- package/dist/jsx/SheetImplementationCustom.native.js.map +1 -1
- package/dist/jsx/index.js +11 -11
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/useGestureHandlerPan.mjs +1 -1
- package/dist/jsx/useGestureHandlerPan.mjs.map +1 -1
- package/dist/jsx/useGestureHandlerPan.native.js +1 -1
- package/dist/jsx/useGestureHandlerPan.native.js.map +1 -1
- package/next.md +78 -0
- package/package.json +31 -46
- package/setup-gesture-handler/index.cjs +2 -0
- package/setup-gesture-handler/index.js +2 -0
- package/setup-gesture-handler/index.native.cjs +2 -0
- package/setup-gesture-handler/index.native.js +2 -0
- package/setup-gesture-handler.cjs +1 -0
- package/src/SheetImplementationCustom.tsx +69 -38
- package/src/types.tsx +5 -0
- package/src/useGestureHandlerPan.tsx +5 -3
- package/tsconfig.json +56 -0
- package/types/Sheet.d.ts +3 -0
- package/types/Sheet.d.ts.map +1 -1
- package/types/SheetImplementationCustom.d.ts +3 -0
- package/types/SheetImplementationCustom.d.ts.map +1 -1
- package/types/createSheet.d.ts +3 -0
- package/types/createSheet.d.ts.map +1 -1
- package/types/types.d.ts +6 -0
- package/types/types.d.ts.map +1 -1
- package/types/useGestureHandlerPan.d.ts.map +1 -1
- package/dist/cjs/GestureDetectorWrapper.js +0 -29
- package/dist/cjs/GestureDetectorWrapper.js.map +0 -6
- package/dist/cjs/GestureSheetContext.js +0 -43
- package/dist/cjs/GestureSheetContext.js.map +0 -6
- package/dist/cjs/Sheet.js +0 -104
- package/dist/cjs/Sheet.js.map +0 -6
- package/dist/cjs/SheetContext.js +0 -28
- package/dist/cjs/SheetContext.js.map +0 -6
- package/dist/cjs/SheetController.js +0 -52
- package/dist/cjs/SheetController.js.map +0 -6
- package/dist/cjs/SheetImplementationCustom.js +0 -393
- package/dist/cjs/SheetImplementationCustom.js.map +0 -6
- package/dist/cjs/SheetScrollView.js +0 -137
- package/dist/cjs/SheetScrollView.js.map +0 -6
- package/dist/cjs/constants.js +0 -24
- package/dist/cjs/constants.js.map +0 -6
- package/dist/cjs/contexts.js +0 -33
- package/dist/cjs/contexts.js.map +0 -6
- package/dist/cjs/controller.js +0 -23
- package/dist/cjs/controller.js.map +0 -6
- package/dist/cjs/createSheet.js +0 -152
- package/dist/cjs/createSheet.js.map +0 -6
- package/dist/cjs/gestureState.js +0 -34
- package/dist/cjs/gestureState.js.map +0 -6
- package/dist/cjs/helpers.js +0 -26
- package/dist/cjs/helpers.js.map +0 -6
- package/dist/cjs/index.js +0 -25
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/nativeSheet.js +0 -56
- package/dist/cjs/nativeSheet.js.map +0 -6
- package/dist/cjs/setupGestureHandler.js +0 -38
- package/dist/cjs/setupGestureHandler.js.map +0 -6
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/types.js.map +0 -6
- package/dist/cjs/useGestureHandlerPan.js +0 -126
- package/dist/cjs/useGestureHandlerPan.js.map +0 -6
- package/dist/cjs/useKeyboardControllerSheet.js +0 -34
- package/dist/cjs/useKeyboardControllerSheet.js.map +0 -6
- package/dist/cjs/useSheet.js +0 -22
- package/dist/cjs/useSheet.js.map +0 -6
- package/dist/cjs/useSheetController.js +0 -39
- package/dist/cjs/useSheetController.js.map +0 -6
- package/dist/cjs/useSheetOffscreenSize.js +0 -43
- package/dist/cjs/useSheetOffscreenSize.js.map +0 -6
- package/dist/cjs/useSheetOpenState.js +0 -37
- package/dist/cjs/useSheetOpenState.js.map +0 -6
- package/dist/cjs/useSheetProviderProps.js +0 -130
- package/dist/cjs/useSheetProviderProps.js.map +0 -6
- package/dist/cjs/useSheetScrollViewGestures.js +0 -102
- package/dist/cjs/useSheetScrollViewGestures.js.map +0 -6
- package/dist/esm/GestureDetectorWrapper.js +0 -15
- package/dist/esm/GestureDetectorWrapper.js.map +0 -6
- package/dist/esm/GestureSheetContext.js +0 -28
- package/dist/esm/GestureSheetContext.js.map +0 -6
- package/dist/esm/Sheet.js +0 -92
- package/dist/esm/Sheet.js.map +0 -6
- package/dist/esm/SheetContext.js +0 -13
- package/dist/esm/SheetContext.js.map +0 -6
- package/dist/esm/SheetController.js +0 -31
- package/dist/esm/SheetController.js.map +0 -6
- package/dist/esm/SheetImplementationCustom.js +0 -395
- package/dist/esm/SheetImplementationCustom.js.map +0 -6
- package/dist/esm/SheetScrollView.js +0 -122
- package/dist/esm/SheetScrollView.js.map +0 -6
- package/dist/esm/constants.js +0 -8
- package/dist/esm/constants.js.map +0 -6
- package/dist/esm/contexts.js +0 -9
- package/dist/esm/contexts.js.map +0 -6
- package/dist/esm/controller.js +0 -11
- package/dist/esm/controller.js.map +0 -6
- package/dist/esm/createSheet.js +0 -153
- package/dist/esm/createSheet.js.map +0 -6
- package/dist/esm/gestureState.js +0 -18
- package/dist/esm/gestureState.js.map +0 -6
- package/dist/esm/helpers.js +0 -10
- package/dist/esm/helpers.js.map +0 -6
- package/dist/esm/nativeSheet.js +0 -46
- package/dist/esm/nativeSheet.js.map +0 -6
- package/dist/esm/setupGestureHandler.js +0 -22
- package/dist/esm/setupGestureHandler.js.map +0 -6
- package/dist/esm/types.js +0 -1
- package/dist/esm/types.js.map +0 -6
- package/dist/esm/useGestureHandlerPan.js +0 -111
- package/dist/esm/useGestureHandlerPan.js.map +0 -6
- package/dist/esm/useKeyboardControllerSheet.js +0 -18
- package/dist/esm/useKeyboardControllerSheet.js.map +0 -6
- package/dist/esm/useSheet.js +0 -6
- package/dist/esm/useSheet.js.map +0 -6
- package/dist/esm/useSheetController.js +0 -15
- package/dist/esm/useSheetController.js.map +0 -6
- package/dist/esm/useSheetOffscreenSize.js +0 -27
- package/dist/esm/useSheetOffscreenSize.js.map +0 -6
- package/dist/esm/useSheetOpenState.js +0 -22
- package/dist/esm/useSheetOpenState.js.map +0 -6
- package/dist/esm/useSheetProviderProps.js +0 -109
- package/dist/esm/useSheetProviderProps.js.map +0 -6
- package/dist/esm/useSheetScrollViewGestures.js +0 -86
- package/dist/esm/useSheetScrollViewGestures.js.map +0 -6
- package/dist/jsx/GestureDetectorWrapper.js +0 -15
- package/dist/jsx/GestureDetectorWrapper.js.map +0 -6
- package/dist/jsx/GestureSheetContext.js +0 -28
- package/dist/jsx/GestureSheetContext.js.map +0 -6
- package/dist/jsx/Sheet.js +0 -92
- package/dist/jsx/Sheet.js.map +0 -6
- package/dist/jsx/SheetContext.js +0 -13
- package/dist/jsx/SheetContext.js.map +0 -6
- package/dist/jsx/SheetController.js +0 -31
- package/dist/jsx/SheetController.js.map +0 -6
- package/dist/jsx/SheetImplementationCustom.js +0 -395
- package/dist/jsx/SheetImplementationCustom.js.map +0 -6
- package/dist/jsx/SheetScrollView.js +0 -122
- package/dist/jsx/SheetScrollView.js.map +0 -6
- package/dist/jsx/constants.js +0 -8
- package/dist/jsx/constants.js.map +0 -6
- package/dist/jsx/contexts.js +0 -9
- package/dist/jsx/contexts.js.map +0 -6
- package/dist/jsx/controller.js +0 -11
- package/dist/jsx/controller.js.map +0 -6
- package/dist/jsx/createSheet.js +0 -153
- package/dist/jsx/createSheet.js.map +0 -6
- package/dist/jsx/gestureState.js +0 -18
- package/dist/jsx/gestureState.js.map +0 -6
- package/dist/jsx/helpers.js +0 -10
- package/dist/jsx/helpers.js.map +0 -6
- package/dist/jsx/nativeSheet.js +0 -46
- package/dist/jsx/nativeSheet.js.map +0 -6
- package/dist/jsx/setupGestureHandler.js +0 -22
- package/dist/jsx/setupGestureHandler.js.map +0 -6
- package/dist/jsx/types.js +0 -1
- package/dist/jsx/types.js.map +0 -6
- package/dist/jsx/useGestureHandlerPan.js +0 -111
- package/dist/jsx/useGestureHandlerPan.js.map +0 -6
- package/dist/jsx/useKeyboardControllerSheet.js +0 -18
- package/dist/jsx/useKeyboardControllerSheet.js.map +0 -6
- package/dist/jsx/useSheet.js +0 -6
- package/dist/jsx/useSheet.js.map +0 -6
- package/dist/jsx/useSheetController.js +0 -15
- package/dist/jsx/useSheetController.js.map +0 -6
- package/dist/jsx/useSheetOffscreenSize.js +0 -27
- package/dist/jsx/useSheetOffscreenSize.js.map +0 -6
- package/dist/jsx/useSheetOpenState.js +0 -22
- package/dist/jsx/useSheetOpenState.js.map +0 -6
- package/dist/jsx/useSheetProviderProps.js +0 -109
- package/dist/jsx/useSheetProviderProps.js.map +0 -6
- package/dist/jsx/useSheetScrollViewGestures.js +0 -86
- package/dist/jsx/useSheetScrollViewGestures.js.map +0 -6
- package/types/GestureDetectorWrapper.native.d.ts +0 -14
- package/types/GestureDetectorWrapper.native.d.ts.map +0 -1
- package/types/gestureState.native.d.ts +0 -12
- package/types/gestureState.native.d.ts.map +0 -1
- package/types/setupGestureHandler.native.d.ts +0 -41
- package/types/setupGestureHandler.native.d.ts.map +0 -1
- package/types/useGestureHandlerPan.native.d.ts +0 -33
- package/types/useGestureHandlerPan.native.d.ts.map +0 -1
- package/types/useSheetScrollViewGestures.web.d.ts +0 -15
- package/types/useSheetScrollViewGestures.web.d.ts.map +0 -1
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var SheetScrollView_exports = {};
|
|
24
|
-
__export(SheetScrollView_exports, {
|
|
25
|
-
SheetScrollView: () => SheetScrollView
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(SheetScrollView_exports);
|
|
28
|
-
var import_compose_refs = require("@tamagui/compose-refs"), import_core = require("@tamagui/core"), import_scroll_view = require("@tamagui/scroll-view"), import_use_controllable_state = require("@tamagui/use-controllable-state"), import_react = __toESM(require("react"), 1), import_GestureSheetContext = require("./GestureSheetContext"), import_gestureState = require("./gestureState"), import_SheetContext = require("./SheetContext"), import_useSheetScrollViewGestures = require("./useSheetScrollViewGestures"), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
const SHEET_SCROLL_VIEW_NAME = "SheetScrollView", SheetScrollView = import_react.default.forwardRef(
|
|
30
|
-
({
|
|
31
|
-
__scopeSheet,
|
|
32
|
-
children,
|
|
33
|
-
onScroll,
|
|
34
|
-
scrollEnabled: scrollEnabledProp,
|
|
35
|
-
...props
|
|
36
|
-
}, ref) => {
|
|
37
|
-
const context = (0, import_SheetContext.useSheetContext)(SHEET_SCROLL_VIEW_NAME, __scopeSheet), gestureContext = (0, import_GestureSheetContext.useGestureSheetContext)(), { scrollBridge, setHasScrollView } = context, [scrollEnabled] = (0, import_use_controllable_state.useControllableState)({
|
|
38
|
-
prop: scrollEnabledProp,
|
|
39
|
-
defaultProp: !0
|
|
40
|
-
}), scrollRef = import_react.default.useRef(null), panGestureRef = gestureContext?.panGestureRef, { ScrollView: RNGHScrollView } = (0, import_gestureState.getGestureHandlerState)(), useRNGHScrollView = (0, import_gestureState.isGestureHandlerEnabled)() && RNGHScrollView && panGestureRef, currentScrollOffset = (0, import_react.useRef)(0), lockedScrollY = (0, import_react.useRef)(0), setScrollEnabled = (next, lockTo) => {
|
|
41
|
-
if (next)
|
|
42
|
-
lockedScrollY.current = currentScrollOffset.current, scrollBridge.scrollLockY = void 0;
|
|
43
|
-
else {
|
|
44
|
-
const lockY = lockTo ?? currentScrollOffset.current;
|
|
45
|
-
lockedScrollY.current = lockY, scrollBridge.scrollLockY = lockY, scrollRef.current?.scrollTo?.({ x: 0, y: lockY, animated: !1 });
|
|
46
|
-
}
|
|
47
|
-
}, forceScrollTo = (y) => {
|
|
48
|
-
scrollRef.current?.scrollTo?.({ x: 0, y, animated: !1 });
|
|
49
|
-
};
|
|
50
|
-
(0, import_react.useEffect)(() => (setHasScrollView(!0), (0, import_gestureState.isGestureHandlerEnabled)() && (scrollBridge.setScrollEnabled = setScrollEnabled, scrollBridge.forceScrollTo = forceScrollTo), () => {
|
|
51
|
-
setHasScrollView(!1), scrollBridge.setScrollEnabled = void 0, scrollBridge.forceScrollTo = void 0;
|
|
52
|
-
}), []);
|
|
53
|
-
const [hasScrollableContent, setHasScrollableContent] = (0, import_react.useState)(!0), parentHeight = (0, import_react.useRef)(0), contentHeight = (0, import_react.useRef)(0), updateScrollable = () => {
|
|
54
|
-
parentHeight.current && contentHeight.current && setHasScrollableContent(contentHeight.current > parentHeight.current);
|
|
55
|
-
};
|
|
56
|
-
(0, import_react.useEffect)(() => {
|
|
57
|
-
scrollBridge.hasScrollableContent = hasScrollableContent;
|
|
58
|
-
}, [hasScrollableContent]);
|
|
59
|
-
const gestureProps = (0, import_useSheetScrollViewGestures.useSheetScrollViewGestures)({
|
|
60
|
-
scrollRef,
|
|
61
|
-
scrollBridge,
|
|
62
|
-
hasScrollableContent,
|
|
63
|
-
scrollEnabled,
|
|
64
|
-
setScrollEnabled
|
|
65
|
-
}), contentWrapper = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
|
-
import_core.View,
|
|
67
|
-
{
|
|
68
|
-
onLayout: (e) => {
|
|
69
|
-
const height = Math.floor(e.nativeEvent.layout.height);
|
|
70
|
-
height !== contentHeight.current && (contentHeight.current = height, updateScrollable());
|
|
71
|
-
},
|
|
72
|
-
children
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
return useRNGHScrollView && RNGHScrollView && panGestureRef ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
76
|
-
RNGHScrollView,
|
|
77
|
-
{
|
|
78
|
-
ref: (0, import_compose_refs.composeRefs)(scrollRef, ref),
|
|
79
|
-
style: { flex: 1 },
|
|
80
|
-
scrollEventThrottle: 1,
|
|
81
|
-
scrollEnabled,
|
|
82
|
-
simultaneousHandlers: [panGestureRef],
|
|
83
|
-
onLayout: (e) => {
|
|
84
|
-
parentHeight.current = Math.ceil(e.nativeEvent.layout.height), updateScrollable();
|
|
85
|
-
},
|
|
86
|
-
onScroll: (e) => {
|
|
87
|
-
const { y } = e.nativeEvent.contentOffset;
|
|
88
|
-
if (currentScrollOffset.current = y, scrollBridge.scrollLockY !== void 0) {
|
|
89
|
-
y !== scrollBridge.scrollLockY && scrollRef.current?.scrollTo?.({
|
|
90
|
-
x: 0,
|
|
91
|
-
y: scrollBridge.scrollLockY,
|
|
92
|
-
animated: !1
|
|
93
|
-
}), scrollBridge.y = scrollBridge.scrollLockY, onScroll?.({
|
|
94
|
-
...e,
|
|
95
|
-
nativeEvent: {
|
|
96
|
-
...e.nativeEvent,
|
|
97
|
-
contentOffset: {
|
|
98
|
-
...e.nativeEvent.contentOffset,
|
|
99
|
-
y: scrollBridge.scrollLockY
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
scrollBridge.y = y, y > 0 && (scrollBridge.scrollStartY = -1), onScroll?.(e);
|
|
106
|
-
},
|
|
107
|
-
contentContainerStyle: { minHeight: "100%" },
|
|
108
|
-
bounces: !1,
|
|
109
|
-
keyboardShouldPersistTaps: "always",
|
|
110
|
-
keyboardDismissMode: "none",
|
|
111
|
-
...props,
|
|
112
|
-
children: contentWrapper
|
|
113
|
-
}
|
|
114
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
115
|
-
import_scroll_view.ScrollView,
|
|
116
|
-
{
|
|
117
|
-
onLayout: (e) => {
|
|
118
|
-
parentHeight.current = Math.ceil(e.nativeEvent.layout.height), updateScrollable();
|
|
119
|
-
},
|
|
120
|
-
ref: (0, import_compose_refs.composeRefs)(scrollRef, ref),
|
|
121
|
-
flex: 1,
|
|
122
|
-
scrollEventThrottle: 1,
|
|
123
|
-
className: "_ovs-contain",
|
|
124
|
-
scrollEnabled,
|
|
125
|
-
onScroll: (e) => {
|
|
126
|
-
const { y } = e.nativeEvent.contentOffset;
|
|
127
|
-
scrollBridge.y = y, y > 0 && (scrollBridge.scrollStartY = -1), onScroll?.(e);
|
|
128
|
-
},
|
|
129
|
-
contentContainerStyle: { minHeight: "100%" },
|
|
130
|
-
...gestureProps,
|
|
131
|
-
...props,
|
|
132
|
-
children: contentWrapper
|
|
133
|
-
}
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
//# sourceMappingURL=SheetScrollView.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/SheetScrollView.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4B,kCAC5B,cAAyC,0BAEzC,qBAA2B,iCAC3B,gCAAqC,4CACrC,eAAmD,8BAEnD,6BAAuC,kCACvC,sBAAgE,2BAChE,sBAAgC,2BAEhC,oCAA2C,yCAyFrC;AAvFN,MAAM,yBAAyB,mBAElB,kBAAkB,aAAAA,QAAM;AAAA,EAInC,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,cAAU,qCAAgB,wBAAwB,YAAY,GAC9D,qBAAiB,mDAAuB,GACxC,EAAE,cAAc,iBAAiB,IAAI,SACrC,CAAC,aAAa,QAAI,oDAAqB;AAAA,MAC3C,MAAM;AAAA,MACN,aAAa;AAAA,IACf,CAAC,GACK,YAAY,aAAAA,QAAM,OAA4B,IAAI,GAElD,gBAAgB,gBAA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ACnB;AAAA,QACA,SAAK,iCAAY,WAAkB,GAAG;AAAA,QACtC,MAAM;AAAA,QACN,qBAAqB;AAAA,QACrB,WAAU;AAAA,QACV;AAAA,QACA,UAAU,CAAC,MAAM;AACf,gBAAM,EAAE,EAAE,IAAI,EAAE,YAAY;AAC5B,uBAAa,IAAI,GACb,IAAI,MAAG,aAAa,eAAe,KACvC,WAAW,CAAC;AAAA,QACd;AAAA,QACA,uBAAuB,EAAE,WAAW,OAAO;AAAA,QAC1C,GAAG;AAAA,QACH,GAAG;AAAA,QAEH;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;",
|
|
5
|
-
"names": ["React"]
|
|
6
|
-
}
|
package/dist/cjs/constants.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var constants_exports = {};
|
|
16
|
-
__export(constants_exports, {
|
|
17
|
-
SHEET_HANDLE_NAME: () => SHEET_HANDLE_NAME,
|
|
18
|
-
SHEET_NAME: () => SHEET_NAME,
|
|
19
|
-
SHEET_OVERLAY_NAME: () => SHEET_OVERLAY_NAME,
|
|
20
|
-
constants: () => constants
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(constants_exports);
|
|
23
|
-
const constants = {}, SHEET_NAME = "Sheet", SHEET_HANDLE_NAME = "SheetHandle", SHEET_OVERLAY_NAME = "SheetOverlay";
|
|
24
|
-
//# sourceMappingURL=constants.js.map
|
package/dist/cjs/contexts.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var contexts_exports = {};
|
|
24
|
-
__export(contexts_exports, {
|
|
25
|
-
ParentSheetContext: () => ParentSheetContext,
|
|
26
|
-
SheetInsideSheetContext: () => SheetInsideSheetContext
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(contexts_exports);
|
|
29
|
-
var import_react = __toESM(require("react"), 1);
|
|
30
|
-
const ParentSheetContext = import_react.default.createContext({
|
|
31
|
-
zIndex: 1e5
|
|
32
|
-
}), SheetInsideSheetContext = import_react.default.createContext(null);
|
|
33
|
-
//# sourceMappingURL=contexts.js.map
|
package/dist/cjs/contexts.js.map
DELETED
package/dist/cjs/controller.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var controller_exports = {};
|
|
16
|
-
__export(controller_exports, {
|
|
17
|
-
SheetController: () => import_SheetController.SheetController,
|
|
18
|
-
SheetControllerContext: () => import_useSheetController.SheetControllerContext,
|
|
19
|
-
useSheetController: () => import_useSheetController.useSheetController
|
|
20
|
-
});
|
|
21
|
-
module.exports = __toCommonJS(controller_exports);
|
|
22
|
-
var import_SheetController = require("./SheetController"), import_useSheetController = require("./useSheetController");
|
|
23
|
-
//# sourceMappingURL=controller.js.map
|
package/dist/cjs/createSheet.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var createSheet_exports = {};
|
|
16
|
-
__export(createSheet_exports, {
|
|
17
|
-
createSheet: () => createSheet
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(createSheet_exports);
|
|
20
|
-
var import_compose_refs = require("@tamagui/compose-refs"), import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_helpers = require("@tamagui/helpers"), import_portal = require("@tamagui/portal"), import_remove_scroll = require("@tamagui/remove-scroll"), import_use_did_finish_ssr = require("@tamagui/use-did-finish-ssr"), import_z_index_stack = require("@tamagui/z-index-stack"), import_react = require("react"), import_react_native = require("react-native-web"), import_constants2 = require("./constants"), import_nativeSheet = require("./nativeSheet"), import_SheetContext = require("./SheetContext"), import_SheetImplementationCustom = require("./SheetImplementationCustom"), import_SheetScrollView = require("./SheetScrollView"), import_useSheetController = require("./useSheetController"), import_useSheetOffscreenSize = require("./useSheetOffscreenSize"), import_jsx_runtime = (
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
require("react/jsx-runtime")
|
|
23
|
-
);
|
|
24
|
-
function createSheet({ Handle, Frame, Overlay }) {
|
|
25
|
-
const SheetHandle = Handle.styleable(
|
|
26
|
-
({ __scopeSheet, ...props }, forwardedRef) => {
|
|
27
|
-
const context = (0, import_SheetContext.useSheetContext)(import_constants2.SHEET_HANDLE_NAME, __scopeSheet), composedRef = (0, import_compose_refs.useComposedRefs)(context.handleRef, forwardedRef), wasDraggingRef = (0, import_react.useRef)(!1);
|
|
28
|
-
return (0, import_react.useEffect)(() => {
|
|
29
|
-
if (context.scrollBridge)
|
|
30
|
-
return context.scrollBridge.onParentDragging((isDragging) => {
|
|
31
|
-
isDragging && (wasDraggingRef.current = !0);
|
|
32
|
-
});
|
|
33
|
-
}, [context.scrollBridge]), context.onlyShowFrame ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
34
|
-
Handle,
|
|
35
|
-
{
|
|
36
|
-
ref: composedRef,
|
|
37
|
-
onPressIn: () => {
|
|
38
|
-
wasDraggingRef.current = !1;
|
|
39
|
-
},
|
|
40
|
-
onPress: () => {
|
|
41
|
-
if (wasDraggingRef.current) {
|
|
42
|
-
wasDraggingRef.current = !1;
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
const max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0), nextPos = (context.position + 1) % max;
|
|
46
|
-
context.setPosition(nextPos);
|
|
47
|
-
},
|
|
48
|
-
open: context.open,
|
|
49
|
-
...props
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
), SheetOverlay = Overlay.styleable((propsIn, ref) => {
|
|
54
|
-
const { __scopeSheet, ...props } = propsIn, context = (0, import_SheetContext.useSheetContext)(import_constants2.SHEET_OVERLAY_NAME, __scopeSheet), element = (0, import_react.useMemo)(() => (
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
57
|
-
Overlay,
|
|
58
|
-
{
|
|
59
|
-
...props,
|
|
60
|
-
onPress: (0, import_helpers.composeEventHandlers)(
|
|
61
|
-
props.onPress,
|
|
62
|
-
context.dismissOnOverlayPress ? () => {
|
|
63
|
-
context.setOpen(!1);
|
|
64
|
-
} : void 0
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
)
|
|
68
|
-
), [props.onPress, props.opacity, context.dismissOnOverlayPress]);
|
|
69
|
-
return (0, import_constants.useIsomorphicLayoutEffect)(() => {
|
|
70
|
-
context.onOverlayComponent?.(element);
|
|
71
|
-
}, [element]), context.onlyShowFrame, null;
|
|
72
|
-
}), SheetFrame = Frame.styleable(
|
|
73
|
-
({
|
|
74
|
-
__scopeSheet,
|
|
75
|
-
adjustPaddingForOffscreenContent,
|
|
76
|
-
disableHideBottomOverflow,
|
|
77
|
-
children,
|
|
78
|
-
...props
|
|
79
|
-
}, forwardedRef) => {
|
|
80
|
-
const context = (0, import_SheetContext.useSheetContext)(import_constants2.SHEET_NAME, __scopeSheet), { hasFit, disableRemoveScroll, frameSize, contentRef, open } = context, composedContentRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef), offscreenSize = (0, import_useSheetOffscreenSize.useSheetOffscreenSize)(context), stableFrameSize = (0, import_react.useRef)(frameSize);
|
|
81
|
-
(0, import_react.useEffect)(() => {
|
|
82
|
-
open && frameSize && (stableFrameSize.current = frameSize);
|
|
83
|
-
}, [open, frameSize]);
|
|
84
|
-
const sheetContents = (0, import_react.useMemo)(() => {
|
|
85
|
-
const shouldUseFixedHeight = hasFit && !open && stableFrameSize.current;
|
|
86
|
-
return (
|
|
87
|
-
// @ts-expect-error
|
|
88
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
89
|
-
Frame,
|
|
90
|
-
{
|
|
91
|
-
ref: composedContentRef,
|
|
92
|
-
flex: hasFit && open ? 0 : 1,
|
|
93
|
-
flexBasis: hasFit ? "auto" : void 0,
|
|
94
|
-
height: shouldUseFixedHeight ? stableFrameSize.current : hasFit ? void 0 : frameSize,
|
|
95
|
-
pointerEvents: open ? "auto" : "none",
|
|
96
|
-
"data-state": open ? "open" : "closed",
|
|
97
|
-
...props,
|
|
98
|
-
children: [
|
|
99
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_z_index_stack.StackZIndexContext, { zIndex: (0, import_portal.resolveViewZIndex)(props.zIndex), children }),
|
|
100
|
-
adjustPaddingForOffscreenContent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, { "data-sheet-offscreen-pad": !0, height: offscreenSize, width: "100%" })
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
)
|
|
104
|
-
);
|
|
105
|
-
}, [
|
|
106
|
-
open,
|
|
107
|
-
props,
|
|
108
|
-
frameSize,
|
|
109
|
-
offscreenSize,
|
|
110
|
-
adjustPaddingForOffscreenContent,
|
|
111
|
-
hasFit
|
|
112
|
-
]);
|
|
113
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
114
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_remove_scroll.RemoveScroll, { enabled: !disableRemoveScroll && context.open, children: sheetContents }),
|
|
115
|
-
!disableHideBottomOverflow && // @ts-ignore
|
|
116
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
117
|
-
Frame,
|
|
118
|
-
{
|
|
119
|
-
...props,
|
|
120
|
-
componentName: "SheetCover",
|
|
121
|
-
children: null,
|
|
122
|
-
testID: void 0,
|
|
123
|
-
id: void 0,
|
|
124
|
-
position: "absolute",
|
|
125
|
-
bottom: "-100%",
|
|
126
|
-
zIndex: -1,
|
|
127
|
-
height: context.frameSize,
|
|
128
|
-
left: 0,
|
|
129
|
-
right: 0,
|
|
130
|
-
borderWidth: 0,
|
|
131
|
-
borderRadius: 0,
|
|
132
|
-
shadowOpacity: 0
|
|
133
|
-
}
|
|
134
|
-
)
|
|
135
|
-
] });
|
|
136
|
-
}
|
|
137
|
-
), Sheet = (0, import_react.forwardRef)(function(props, ref) {
|
|
138
|
-
const hydrated = (0, import_use_did_finish_ssr.useDidFinishSSR)(), { isShowingNonSheet } = (0, import_useSheetController.useSheetController)();
|
|
139
|
-
let SheetImplementation = import_SheetImplementationCustom.SheetImplementationCustom;
|
|
140
|
-
return props.native && import_react_native.Platform.OS, isShowingNonSheet || !hydrated ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetImplementation, { ref, ...props });
|
|
141
|
-
}), components = {
|
|
142
|
-
Frame: SheetFrame,
|
|
143
|
-
Overlay: SheetOverlay,
|
|
144
|
-
Handle: SheetHandle,
|
|
145
|
-
ScrollView: import_SheetScrollView.SheetScrollView
|
|
146
|
-
}, Controlled = (0, import_helpers.withStaticProperties)(Sheet, components);
|
|
147
|
-
return (0, import_helpers.withStaticProperties)(Sheet, {
|
|
148
|
-
...components,
|
|
149
|
-
Controlled
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
//# sourceMappingURL=createSheet.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/createSheet.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC,kCAChC,mBAA0C,+BAQ1C,cAAqB,0BACrB,iBAA2D,6BAC3D,gBAAkC,4BAClC,uBAA6B,mCAC7B,4BAAgC,wCAChC,uBAAmC,mCAEnC,eAA6D,kBAE7D,sBAAyB,yBACzBA,oBAAkE,wBAClE,qBAA+B,0BAC/B,sBAAgC,2BAChC,mCAA0C,wCAC1C,yBAAgC,8BAEhC,4BAAmC,iCACnC,+BAAsC,oCA0C9B;AAAA;AAAA;AAAA;AAhCD,SAAS,YAId,EAAE,QAAQ,OAAO,QAAQ,GAAwC;AACjE,QAAM,cAAc,OAAO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AAc;AAAA,YACd,UAAU;AAAA,YAEV,QAAQ;AAAA,YACR,IAAI;AAAA,YACJ,UAAS;AAAA,YACT,QAAO;AAAA,YACP,QAAQ;AAAA,YACR,QAAQ,QAAQ;AAAA,YAChB,MAAM;AAAA,YACN,OAAO;AAAA,YACP,aAAa;AAAA,YACb,cAAc;AAAA,YACd,eAAe;AAAA;AAAA,QACjB;AAAA,SAEJ;AAAA,IAEJ;AAAA,EACF,GAMM,YAAQ,yBAA+B,SAAe,OAAO,KAAK;AACtE,UAAM,eAAW,2CAAgB,GAC3B,EAAE,kBAAkB,QAAI,8CAAmB;AAEjD,QAAI,sBAAsB;AAe1B,WAbI,MAAM,UAAU,6BAAS,IAazB,qBAAqB,CAAC,WACjB,OAGF,4CAAC,uBAAoB,KAAW,GAAG,OAAO;AAAA,EACnD,CAAC,GAEK,aAAa;AAAA,IACjB,OAAO;AAAA,IACP,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,YAAY;AAAA,EACd,GAEM,iBAAa,qCAAqB,OAAO,UAAU;AAKzD,aAAO,qCAAqB,OAAO;AAAA,IACjC,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH;",
|
|
5
|
-
"names": ["import_constants"]
|
|
6
|
-
}
|
package/dist/cjs/gestureState.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var gestureState_exports = {};
|
|
16
|
-
__export(gestureState_exports, {
|
|
17
|
-
getGestureHandlerState: () => getGestureHandlerState,
|
|
18
|
-
isGestureHandlerEnabled: () => isGestureHandlerEnabled,
|
|
19
|
-
setGestureHandlerState: () => setGestureHandlerState,
|
|
20
|
-
setGestureState: () => setGestureState
|
|
21
|
-
});
|
|
22
|
-
module.exports = __toCommonJS(gestureState_exports);
|
|
23
|
-
var import_native = require("@tamagui/native");
|
|
24
|
-
function isGestureHandlerEnabled() {
|
|
25
|
-
return (0, import_native.getGestureHandler)().isEnabled;
|
|
26
|
-
}
|
|
27
|
-
function getGestureHandlerState() {
|
|
28
|
-
return (0, import_native.getGestureHandler)().state;
|
|
29
|
-
}
|
|
30
|
-
function setGestureHandlerState(updates) {
|
|
31
|
-
(0, import_native.getGestureHandler)().set(updates);
|
|
32
|
-
}
|
|
33
|
-
const setGestureState = setGestureHandlerState;
|
|
34
|
-
//# sourceMappingURL=gestureState.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/gestureState.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAAqD;AAK9C,SAAS,0BAAmC;AACjD,aAAO,iCAAkB,EAAE;AAC7B;AAEO,SAAS,yBAAuC;AACrD,aAAO,iCAAkB,EAAE;AAC7B;AAEO,SAAS,uBAAuB,SAAsC;AAC3E,uCAAkB,EAAE,IAAI,OAAO;AACjC;AAGO,MAAM,kBAAkB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/cjs/helpers.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var helpers_exports = {};
|
|
16
|
-
__export(helpers_exports, {
|
|
17
|
-
resisted: () => resisted
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(helpers_exports);
|
|
20
|
-
function resisted(y, minY, maxOverflow = 25) {
|
|
21
|
-
if (y >= minY)
|
|
22
|
-
return y;
|
|
23
|
-
const pastBoundary = minY - y, resistedDistance = Math.sqrt(pastBoundary) * 2;
|
|
24
|
-
return minY - resistedDistance;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=helpers.js.map
|
package/dist/cjs/helpers.js.map
DELETED
package/dist/cjs/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
-
return to;
|
|
10
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
11
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
-
var index_exports = {};
|
|
13
|
-
module.exports = __toCommonJS(index_exports);
|
|
14
|
-
__reExport(index_exports, require("./Sheet"), module.exports);
|
|
15
|
-
__reExport(index_exports, require("./useSheet"), module.exports);
|
|
16
|
-
__reExport(index_exports, require("./createSheet"), module.exports);
|
|
17
|
-
__reExport(index_exports, require("./SheetController"), module.exports);
|
|
18
|
-
__reExport(index_exports, require("./useSheetController"), module.exports);
|
|
19
|
-
__reExport(index_exports, require("./useSheetOpenState"), module.exports);
|
|
20
|
-
__reExport(index_exports, require("./useSheetOffscreenSize"), module.exports);
|
|
21
|
-
__reExport(index_exports, require("./SheetScrollView"), module.exports);
|
|
22
|
-
__reExport(index_exports, require("./nativeSheet"), module.exports);
|
|
23
|
-
__reExport(index_exports, require("./types"), module.exports);
|
|
24
|
-
__reExport(index_exports, require("./contexts"), module.exports);
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,oBAAd;AACA,0BAAc,uBADd;AAEA,0BAAc,0BAFd;AAGA,0BAAc,8BAHd;AAIA,0BAAc,iCAJd;AAKA,0BAAc,gCALd;AAMA,0BAAc,oCANd;AAOA,0BAAc,8BAPd;AAQA,0BAAc,0BARd;AASA,0BAAc,oBATd;AAUA,0BAAc,uBAVd;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/cjs/nativeSheet.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var nativeSheet_exports = {};
|
|
16
|
-
__export(nativeSheet_exports, {
|
|
17
|
-
getNativeSheet: () => getNativeSheet,
|
|
18
|
-
setupNativeSheet: () => setupNativeSheet
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(nativeSheet_exports);
|
|
21
|
-
var import_stacks = require("@tamagui/stacks"), import_react = require("react"), import_react_native = require("react-native-web"), import_SheetContext = require("./SheetContext"), import_useSheetOpenState = require("./useSheetOpenState"), import_useSheetProviderProps = require("./useSheetProviderProps"), import_jsx_runtime = require("react/jsx-runtime");
|
|
22
|
-
const nativeSheets = {
|
|
23
|
-
ios: null
|
|
24
|
-
};
|
|
25
|
-
function getNativeSheet(platform) {
|
|
26
|
-
return nativeSheets[platform];
|
|
27
|
-
}
|
|
28
|
-
function setupNativeSheet(platform, RNIOSModal) {
|
|
29
|
-
const { ModalSheetView, ModalSheetViewMainContent } = RNIOSModal;
|
|
30
|
-
platform === "ios" && (nativeSheets[platform] = (props) => {
|
|
31
|
-
const state = (0, import_useSheetOpenState.useSheetOpenState)(props), providerProps = (0, import_useSheetProviderProps.useSheetProviderProps)(props, state), { open, setOpen } = state, ref = (0, import_react.useRef)(void 0);
|
|
32
|
-
(0, import_react.useEffect)(() => {
|
|
33
|
-
open ? ref.current?.presentModal() : ref.current?.dismissModal();
|
|
34
|
-
}, [open]);
|
|
35
|
-
function setOpenInternal(next) {
|
|
36
|
-
props.onOpenChange?.(open), setOpen(next);
|
|
37
|
-
}
|
|
38
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_SheetContext.SheetProvider, { setHasScrollView: emptyFn, ...providerProps, onlyShowFrame: !0, children: [
|
|
39
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalSheetView, { ref, onModalDidDismiss: () => setOpenInternal(!1), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ModalSheetViewMainContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.View, { style: { flex: 1 }, children: props.children }) }) }),
|
|
40
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
-
import_stacks.YStack,
|
|
42
|
-
{
|
|
43
|
-
position: "absolute",
|
|
44
|
-
opacity: 0,
|
|
45
|
-
pointerEvents: "none",
|
|
46
|
-
width: 0,
|
|
47
|
-
height: 0,
|
|
48
|
-
children: props.children
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
] }) });
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
const emptyFn = () => {
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=nativeSheet.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/nativeSheet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|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var setupGestureHandler_exports = {};
|
|
16
|
-
__export(setupGestureHandler_exports, {
|
|
17
|
-
isGestureHandlerEnabled: () => isGestureHandlerEnabled,
|
|
18
|
-
setupGestureHandler: () => setupGestureHandler
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(setupGestureHandler_exports);
|
|
21
|
-
var import_native = require("@tamagui/native");
|
|
22
|
-
function isGestureHandlerEnabled() {
|
|
23
|
-
return (0, import_native.getGestureHandler)().isEnabled;
|
|
24
|
-
}
|
|
25
|
-
function setupGestureHandler(config) {
|
|
26
|
-
const g = globalThis;
|
|
27
|
-
if (g.__tamagui_sheet_gesture_handler_setup)
|
|
28
|
-
return;
|
|
29
|
-
g.__tamagui_sheet_gesture_handler_setup = !0;
|
|
30
|
-
const { Gesture, GestureDetector, ScrollView } = config;
|
|
31
|
-
Gesture && GestureDetector && (0, import_native.getGestureHandler)().set({
|
|
32
|
-
enabled: !0,
|
|
33
|
-
Gesture,
|
|
34
|
-
GestureDetector,
|
|
35
|
-
ScrollView: ScrollView || null
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=setupGestureHandler.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/setupGestureHandler.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,oBAAkC;AAE3B,SAAS,0BAAmC;AACjD,aAAO,iCAAkB,EAAE;AAC7B;AAQO,SAAS,oBAAoB,QAAyC;AAC3E,QAAM,IAAI;AACV,MAAI,EAAE;AACJ;AAEF,IAAE,wCAAwC;AAE1C,QAAM,EAAE,SAAS,iBAAiB,WAAW,IAAI;AAEjD,EAAI,WAAW,uBACb,iCAAkB,EAAE,IAAI;AAAA,IACtB,SAAS;AAAA,IACT;AAAA,IACA;AAAA,IACA,YAAY,cAAc;AAAA,EAC5B,CAAC;AAEL;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|