@tamagui/sheet 2.7.7 → 3.0.0-beta.1093.1
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/GestureSheetContext.cjs +28 -37
- package/dist/cjs/GestureSheetContext.native.cjs +48 -0
- package/dist/cjs/GestureSheetContext.native.js +29 -37
- package/dist/cjs/GestureSheetContext.native.js.map +1 -1
- package/dist/cjs/Sheet.cjs +220 -99
- package/dist/cjs/Sheet.native.cjs +245 -0
- package/dist/cjs/Sheet.native.js +223 -98
- package/dist/cjs/Sheet.native.js.map +1 -1
- package/dist/cjs/SheetContext.cjs +43 -22
- package/dist/cjs/SheetContext.native.cjs +57 -0
- package/dist/cjs/SheetContext.native.js +44 -22
- package/dist/cjs/SheetContext.native.js.map +1 -1
- package/dist/cjs/SheetController.cjs +49 -56
- package/dist/cjs/SheetController.native.cjs +71 -0
- package/dist/cjs/SheetController.native.js +52 -58
- package/dist/cjs/SheetController.native.js.map +1 -1
- package/dist/cjs/SheetDragSurface.cjs +50 -0
- package/dist/cjs/SheetDragSurface.native.cjs +61 -0
- package/dist/cjs/SheetDragSurface.native.js +63 -0
- package/dist/cjs/SheetDragSurface.native.js.map +1 -0
- package/dist/cjs/SheetImplementationCustom.cjs +664 -610
- package/dist/cjs/SheetImplementationCustom.native.cjs +748 -0
- package/dist/cjs/SheetImplementationCustom.native.js +704 -649
- package/dist/cjs/SheetImplementationCustom.native.js.map +1 -1
- package/dist/cjs/SheetScrollView.cjs +291 -312
- package/dist/cjs/SheetScrollView.native.cjs +326 -0
- package/dist/cjs/SheetScrollView.native.js +299 -319
- package/dist/cjs/SheetScrollView.native.js.map +1 -1
- package/dist/cjs/constants.cjs +21 -21
- package/dist/cjs/constants.native.cjs +36 -0
- package/dist/cjs/constants.native.js +21 -20
- package/dist/cjs/constants.native.js.map +1 -1
- package/dist/cjs/contexts.cjs +19 -28
- package/dist/cjs/contexts.native.cjs +37 -0
- package/dist/cjs/contexts.native.js +19 -27
- package/dist/cjs/contexts.native.js.map +1 -1
- package/dist/cjs/controller.cjs +16 -18
- package/dist/cjs/controller.native.cjs +31 -0
- package/dist/cjs/controller.native.js +16 -17
- package/dist/cjs/controller.native.js.map +1 -1
- package/dist/cjs/gestureState.cjs +28 -30
- package/dist/cjs/gestureState.native.cjs +53 -0
- package/dist/cjs/gestureState.native.js +29 -30
- package/dist/cjs/gestureState.native.js.map +1 -1
- package/dist/cjs/helpers.cjs +20 -24
- package/dist/cjs/helpers.native.cjs +34 -0
- package/dist/cjs/helpers.native.js +21 -24
- package/dist/cjs/helpers.native.js.map +1 -1
- package/dist/cjs/index.cjs +14 -21
- package/dist/cjs/index.native.cjs +36 -0
- package/dist/cjs/index.native.js +15 -21
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/keyboardAvoidance.cjs +55 -79
- package/dist/cjs/keyboardAvoidance.native.cjs +74 -0
- package/dist/cjs/keyboardAvoidance.native.js +55 -78
- package/dist/cjs/keyboardAvoidance.native.js.map +1 -1
- package/dist/cjs/nativeSheet.cjs +17 -86
- package/dist/cjs/nativeSheet.native.cjs +94 -0
- package/dist/cjs/nativeSheet.native.js +73 -86
- package/dist/cjs/nativeSheet.native.js.map +1 -1
- package/dist/cjs/stableViewportHeight.cjs +27 -0
- package/dist/cjs/stableViewportHeight.native.cjs +29 -0
- package/dist/cjs/stableViewportHeight.native.js +31 -0
- package/dist/cjs/stableViewportHeight.native.js.map +1 -0
- package/dist/cjs/types.cjs +9 -11
- package/dist/cjs/types.native.cjs +18 -0
- package/dist/cjs/types.native.js +9 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/useGestureHandlerPan.cjs +244 -257
- package/dist/cjs/useGestureHandlerPan.native.cjs +272 -0
- package/dist/cjs/useGestureHandlerPan.native.js +253 -265
- package/dist/cjs/useGestureHandlerPan.native.js.map +1 -1
- package/dist/cjs/useKeyboardControllerSheet.cjs +82 -88
- package/dist/cjs/useKeyboardControllerSheet.native.cjs +92 -0
- package/dist/cjs/useKeyboardControllerSheet.native.js +73 -111
- package/dist/cjs/useKeyboardControllerSheet.native.js.map +1 -1
- package/dist/cjs/useSafeAreaInsets.cjs +19 -26
- package/dist/cjs/useSafeAreaInsets.native.cjs +50 -0
- package/dist/cjs/useSafeAreaInsets.native.js +29 -25
- package/dist/cjs/useSafeAreaInsets.native.js.map +1 -1
- package/dist/cjs/useSheetController.cjs +26 -39
- package/dist/cjs/useSheetController.native.cjs +41 -0
- package/dist/cjs/useSheetController.native.js +27 -39
- package/dist/cjs/useSheetController.native.js.map +1 -1
- package/dist/cjs/useSheetOffscreenSize.cjs +43 -53
- package/dist/cjs/useSheetOffscreenSize.native.cjs +59 -0
- package/dist/cjs/useSheetOffscreenSize.native.js +47 -56
- package/dist/cjs/useSheetOffscreenSize.native.js.map +1 -1
- package/dist/cjs/useSheetOpenState.cjs +68 -40
- package/dist/cjs/useSheetOpenState.native.cjs +87 -0
- package/dist/cjs/useSheetOpenState.native.js +73 -42
- package/dist/cjs/useSheetOpenState.native.js.map +1 -1
- package/dist/cjs/useSheetProviderProps.cjs +145 -164
- package/dist/cjs/useSheetProviderProps.native.cjs +175 -0
- package/dist/cjs/useSheetProviderProps.native.js +155 -174
- package/dist/cjs/useSheetProviderProps.native.js.map +1 -1
- package/dist/cjs/useSheetScrollViewGestures.cjs +171 -180
- package/dist/cjs/useSheetScrollViewGestures.native.cjs +149 -0
- package/dist/cjs/useSheetScrollViewGestures.native.js +135 -147
- package/dist/cjs/useSheetScrollViewGestures.native.js.map +1 -1
- package/dist/cjs/webViewport.cjs +46 -48
- package/dist/cjs/webViewport.native.cjs +78 -0
- package/dist/cjs/webViewport.native.js +49 -50
- package/dist/cjs/webViewport.native.js.map +1 -1
- package/dist/esm/GestureSheetContext.mjs +15 -20
- package/dist/esm/GestureSheetContext.mjs.map +1 -1
- package/dist/esm/GestureSheetContext.native.js +17 -22
- package/dist/esm/GestureSheetContext.native.js.map +1 -1
- package/dist/esm/Sheet.mjs +207 -83
- package/dist/esm/Sheet.mjs.map +1 -1
- package/dist/esm/Sheet.native.js +210 -83
- package/dist/esm/Sheet.native.js.map +1 -1
- package/dist/esm/SheetContext.mjs +21 -5
- package/dist/esm/SheetContext.mjs.map +1 -1
- package/dist/esm/SheetContext.native.js +21 -5
- package/dist/esm/SheetContext.native.js.map +1 -1
- package/dist/esm/SheetController.mjs +34 -30
- package/dist/esm/SheetController.mjs.map +1 -1
- package/dist/esm/SheetController.native.js +38 -34
- package/dist/esm/SheetController.native.js.map +1 -1
- package/dist/esm/SheetDragSurface.mjs +25 -0
- package/dist/esm/SheetDragSurface.mjs.map +1 -0
- package/dist/esm/SheetDragSurface.native.js +34 -0
- package/dist/esm/SheetDragSurface.native.js.map +1 -0
- package/dist/esm/SheetImplementationCustom.mjs +647 -586
- package/dist/esm/SheetImplementationCustom.mjs.map +1 -1
- package/dist/esm/SheetImplementationCustom.native.js +684 -618
- package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
- package/dist/esm/SheetScrollView.mjs +278 -288
- package/dist/esm/SheetScrollView.mjs.map +1 -1
- package/dist/esm/SheetScrollView.native.js +287 -297
- package/dist/esm/SheetScrollView.native.js.map +1 -1
- package/dist/esm/constants.mjs +5 -3
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +5 -3
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/esm/contexts.mjs +3 -3
- package/dist/esm/contexts.mjs.map +1 -1
- package/dist/esm/contexts.native.js +3 -3
- package/dist/esm/contexts.native.js.map +1 -1
- package/dist/esm/controller.mjs +2 -2
- package/dist/esm/controller.native.js +2 -2
- package/dist/esm/gestureState.mjs +13 -11
- package/dist/esm/gestureState.mjs.map +1 -1
- package/dist/esm/gestureState.native.js +14 -12
- package/dist/esm/gestureState.native.js.map +1 -1
- package/dist/esm/helpers.mjs +7 -6
- package/dist/esm/helpers.mjs.map +1 -1
- package/dist/esm/helpers.native.js +8 -7
- package/dist/esm/helpers.native.js.map +1 -1
- package/dist/esm/index.js +21 -14
- package/dist/esm/index.mjs +21 -14
- package/dist/esm/index.native.js +21 -14
- package/dist/esm/keyboardAvoidance.mjs +40 -61
- package/dist/esm/keyboardAvoidance.mjs.map +1 -1
- package/dist/esm/keyboardAvoidance.native.js +40 -61
- package/dist/esm/keyboardAvoidance.native.js.map +1 -1
- package/dist/esm/nativeSheet.mjs +4 -70
- package/dist/esm/nativeSheet.mjs.map +1 -1
- package/dist/esm/nativeSheet.native.js +60 -70
- package/dist/esm/nativeSheet.native.js.map +1 -1
- package/dist/esm/stableViewportHeight.mjs +8 -0
- package/dist/esm/stableViewportHeight.mjs.map +1 -0
- package/dist/esm/stableViewportHeight.native.js +8 -0
- package/dist/esm/stableViewportHeight.native.js.map +1 -0
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/dist/esm/useGestureHandlerPan.mjs +232 -239
- package/dist/esm/useGestureHandlerPan.mjs.map +1 -1
- package/dist/esm/useGestureHandlerPan.native.js +241 -248
- package/dist/esm/useGestureHandlerPan.native.js.map +1 -1
- package/dist/esm/useKeyboardControllerSheet.mjs +71 -71
- package/dist/esm/useKeyboardControllerSheet.mjs.map +1 -1
- package/dist/esm/useKeyboardControllerSheet.native.js +66 -94
- package/dist/esm/useKeyboardControllerSheet.native.js.map +1 -1
- package/dist/esm/useSafeAreaInsets.mjs +3 -1
- package/dist/esm/useSafeAreaInsets.mjs.map +1 -1
- package/dist/esm/useSafeAreaInsets.native.js +15 -3
- package/dist/esm/useSafeAreaInsets.native.js.map +1 -1
- package/dist/esm/useSheetController.mjs +14 -12
- package/dist/esm/useSheetController.mjs.map +1 -1
- package/dist/esm/useSheetController.native.js +14 -12
- package/dist/esm/useSheetController.native.js.map +1 -1
- package/dist/esm/useSheetOffscreenSize.mjs +30 -35
- package/dist/esm/useSheetOffscreenSize.mjs.map +1 -1
- package/dist/esm/useSheetOffscreenSize.native.js +34 -39
- package/dist/esm/useSheetOffscreenSize.native.js.map +1 -1
- package/dist/esm/useSheetOpenState.mjs +50 -22
- package/dist/esm/useSheetOpenState.mjs.map +1 -1
- package/dist/esm/useSheetOpenState.native.js +55 -25
- package/dist/esm/useSheetOpenState.native.js.map +1 -1
- package/dist/esm/useSheetProviderProps.mjs +130 -138
- package/dist/esm/useSheetProviderProps.mjs.map +1 -1
- package/dist/esm/useSheetProviderProps.native.js +140 -149
- package/dist/esm/useSheetProviderProps.native.js.map +1 -1
- package/dist/esm/useSheetScrollViewGestures.mjs +159 -162
- package/dist/esm/useSheetScrollViewGestures.mjs.map +1 -1
- package/dist/esm/useSheetScrollViewGestures.native.js +123 -130
- package/dist/esm/useSheetScrollViewGestures.native.js.map +1 -1
- package/dist/esm/webViewport.mjs +26 -25
- package/dist/esm/webViewport.mjs.map +1 -1
- package/dist/esm/webViewport.native.js +29 -28
- package/dist/esm/webViewport.native.js.map +1 -1
- package/dist/jsx/GestureSheetContext.mjs +15 -20
- package/dist/jsx/GestureSheetContext.mjs.map +1 -1
- package/dist/jsx/GestureSheetContext.native.cjs +48 -0
- package/dist/jsx/GestureSheetContext.native.js +29 -37
- package/dist/jsx/GestureSheetContext.native.js.map +1 -1
- package/dist/jsx/Sheet.mjs +207 -83
- package/dist/jsx/Sheet.mjs.map +1 -1
- package/dist/jsx/Sheet.native.cjs +245 -0
- package/dist/jsx/Sheet.native.js +223 -98
- package/dist/jsx/Sheet.native.js.map +1 -1
- package/dist/jsx/SheetContext.mjs +21 -5
- package/dist/jsx/SheetContext.mjs.map +1 -1
- package/dist/jsx/SheetContext.native.cjs +57 -0
- package/dist/jsx/SheetContext.native.js +44 -22
- package/dist/jsx/SheetContext.native.js.map +1 -1
- package/dist/jsx/SheetController.mjs +34 -30
- package/dist/jsx/SheetController.mjs.map +1 -1
- package/dist/jsx/SheetController.native.cjs +71 -0
- package/dist/jsx/SheetController.native.js +52 -58
- package/dist/jsx/SheetController.native.js.map +1 -1
- package/dist/jsx/SheetDragSurface.mjs +25 -0
- package/dist/jsx/SheetDragSurface.mjs.map +1 -0
- package/dist/jsx/SheetDragSurface.native.cjs +61 -0
- package/dist/jsx/SheetDragSurface.native.js +63 -0
- package/dist/jsx/SheetDragSurface.native.js.map +1 -0
- package/dist/jsx/SheetImplementationCustom.mjs +647 -586
- package/dist/jsx/SheetImplementationCustom.mjs.map +1 -1
- package/dist/jsx/SheetImplementationCustom.native.cjs +748 -0
- package/dist/jsx/SheetImplementationCustom.native.js +704 -649
- package/dist/jsx/SheetImplementationCustom.native.js.map +1 -1
- package/dist/jsx/SheetScrollView.mjs +278 -288
- package/dist/jsx/SheetScrollView.mjs.map +1 -1
- package/dist/jsx/SheetScrollView.native.cjs +326 -0
- package/dist/jsx/SheetScrollView.native.js +299 -319
- package/dist/jsx/SheetScrollView.native.js.map +1 -1
- package/dist/jsx/constants.mjs +5 -3
- package/dist/jsx/constants.mjs.map +1 -1
- package/dist/jsx/constants.native.cjs +36 -0
- package/dist/jsx/constants.native.js +21 -20
- package/dist/jsx/constants.native.js.map +1 -1
- package/dist/jsx/contexts.mjs +3 -3
- package/dist/jsx/contexts.mjs.map +1 -1
- package/dist/jsx/contexts.native.cjs +37 -0
- package/dist/jsx/contexts.native.js +19 -27
- package/dist/jsx/contexts.native.js.map +1 -1
- package/dist/jsx/controller.mjs +2 -2
- package/dist/jsx/controller.native.cjs +31 -0
- package/dist/jsx/controller.native.js +16 -17
- package/dist/jsx/controller.native.js.map +1 -1
- package/dist/jsx/gestureState.mjs +13 -11
- package/dist/jsx/gestureState.mjs.map +1 -1
- package/dist/jsx/gestureState.native.cjs +53 -0
- package/dist/jsx/gestureState.native.js +29 -30
- package/dist/jsx/gestureState.native.js.map +1 -1
- package/dist/jsx/helpers.mjs +7 -6
- package/dist/jsx/helpers.mjs.map +1 -1
- package/dist/jsx/helpers.native.cjs +34 -0
- package/dist/jsx/helpers.native.js +21 -24
- package/dist/jsx/helpers.native.js.map +1 -1
- package/dist/jsx/index.js +21 -14
- package/dist/jsx/index.mjs +21 -14
- package/dist/jsx/index.native.cjs +36 -0
- package/dist/jsx/index.native.js +15 -21
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/keyboardAvoidance.mjs +40 -61
- package/dist/jsx/keyboardAvoidance.mjs.map +1 -1
- package/dist/jsx/keyboardAvoidance.native.cjs +74 -0
- package/dist/jsx/keyboardAvoidance.native.js +55 -78
- package/dist/jsx/keyboardAvoidance.native.js.map +1 -1
- package/dist/jsx/nativeSheet.mjs +4 -70
- package/dist/jsx/nativeSheet.mjs.map +1 -1
- package/dist/jsx/nativeSheet.native.cjs +94 -0
- package/dist/jsx/nativeSheet.native.js +73 -86
- package/dist/jsx/nativeSheet.native.js.map +1 -1
- package/dist/jsx/stableViewportHeight.mjs +8 -0
- package/dist/jsx/stableViewportHeight.mjs.map +1 -0
- package/dist/jsx/stableViewportHeight.native.cjs +29 -0
- package/dist/jsx/stableViewportHeight.native.js +31 -0
- package/dist/jsx/stableViewportHeight.native.js.map +1 -0
- package/dist/jsx/types.mjs +0 -2
- package/dist/jsx/types.native.cjs +18 -0
- package/dist/jsx/types.native.js +9 -10
- package/dist/jsx/types.native.js.map +1 -1
- package/dist/jsx/useGestureHandlerPan.mjs +232 -239
- package/dist/jsx/useGestureHandlerPan.mjs.map +1 -1
- package/dist/jsx/useGestureHandlerPan.native.cjs +272 -0
- package/dist/jsx/useGestureHandlerPan.native.js +253 -265
- package/dist/jsx/useGestureHandlerPan.native.js.map +1 -1
- package/dist/jsx/useKeyboardControllerSheet.mjs +71 -71
- package/dist/jsx/useKeyboardControllerSheet.mjs.map +1 -1
- package/dist/jsx/useKeyboardControllerSheet.native.cjs +92 -0
- package/dist/jsx/useKeyboardControllerSheet.native.js +73 -111
- package/dist/jsx/useKeyboardControllerSheet.native.js.map +1 -1
- package/dist/jsx/useSafeAreaInsets.mjs +3 -1
- package/dist/jsx/useSafeAreaInsets.mjs.map +1 -1
- package/dist/jsx/useSafeAreaInsets.native.cjs +50 -0
- package/dist/jsx/useSafeAreaInsets.native.js +29 -25
- package/dist/jsx/useSafeAreaInsets.native.js.map +1 -1
- package/dist/jsx/useSheetController.mjs +14 -12
- package/dist/jsx/useSheetController.mjs.map +1 -1
- package/dist/jsx/useSheetController.native.cjs +41 -0
- package/dist/jsx/useSheetController.native.js +27 -39
- package/dist/jsx/useSheetController.native.js.map +1 -1
- package/dist/jsx/useSheetOffscreenSize.mjs +30 -35
- package/dist/jsx/useSheetOffscreenSize.mjs.map +1 -1
- package/dist/jsx/useSheetOffscreenSize.native.cjs +59 -0
- package/dist/jsx/useSheetOffscreenSize.native.js +47 -56
- package/dist/jsx/useSheetOffscreenSize.native.js.map +1 -1
- package/dist/jsx/useSheetOpenState.mjs +50 -22
- package/dist/jsx/useSheetOpenState.mjs.map +1 -1
- package/dist/jsx/useSheetOpenState.native.cjs +87 -0
- package/dist/jsx/useSheetOpenState.native.js +73 -42
- package/dist/jsx/useSheetOpenState.native.js.map +1 -1
- package/dist/jsx/useSheetProviderProps.mjs +130 -138
- package/dist/jsx/useSheetProviderProps.mjs.map +1 -1
- package/dist/jsx/useSheetProviderProps.native.cjs +175 -0
- package/dist/jsx/useSheetProviderProps.native.js +155 -174
- package/dist/jsx/useSheetProviderProps.native.js.map +1 -1
- package/dist/jsx/useSheetScrollViewGestures.mjs +159 -162
- package/dist/jsx/useSheetScrollViewGestures.mjs.map +1 -1
- package/dist/jsx/useSheetScrollViewGestures.native.cjs +149 -0
- package/dist/jsx/useSheetScrollViewGestures.native.js +135 -147
- package/dist/jsx/useSheetScrollViewGestures.native.js.map +1 -1
- package/dist/jsx/webViewport.mjs +26 -25
- package/dist/jsx/webViewport.mjs.map +1 -1
- package/dist/jsx/webViewport.native.cjs +78 -0
- package/dist/jsx/webViewport.native.js +49 -50
- package/dist/jsx/webViewport.native.js.map +1 -1
- package/package.json +38 -40
- package/src/Sheet.tsx +314 -77
- package/src/SheetContext.tsx +57 -7
- package/src/SheetController.tsx +7 -6
- package/src/SheetDragSurface.native.tsx +42 -0
- package/src/SheetDragSurface.tsx +40 -0
- package/src/SheetImplementationCustom.tsx +364 -181
- package/src/SheetScrollView.tsx +36 -20
- package/src/constants.tsx +3 -3
- package/src/helpers.tsx +0 -14
- package/src/index.ts +3 -6
- package/src/{nativeSheet.tsx → nativeSheet.native.tsx} +9 -20
- package/src/nativeSheet.ts +19 -0
- package/src/stableViewportHeight.native.ts +9 -0
- package/src/stableViewportHeight.ts +15 -0
- package/src/types.tsx +122 -92
- package/src/useKeyboardControllerSheet.native.ts +10 -39
- package/src/useSafeAreaInsets.native.ts +20 -13
- package/src/useSheetController.tsx +15 -7
- package/src/useSheetOpenState.tsx +50 -4
- package/src/useSheetProviderProps.tsx +4 -27
- package/src/useSheetScrollViewGestures.ts +2 -2
- package/types/GestureSheetContext.d.ts +1 -1
- package/types/GestureSheetContext.d.ts.map +1 -1
- package/types/Sheet.d.ts +247 -151
- package/types/Sheet.d.ts.map +1 -1
- package/types/SheetContext.d.ts +28 -42
- package/types/SheetContext.d.ts.map +1 -1
- package/types/SheetController.d.ts +4 -2
- package/types/SheetController.d.ts.map +1 -1
- package/types/SheetDragSurface.d.ts +11 -0
- package/types/SheetDragSurface.d.ts.map +1 -0
- package/types/SheetDragSurface.native.d.ts +11 -0
- package/types/SheetDragSurface.native.d.ts.map +1 -0
- package/types/SheetImplementationCustom.d.ts +4 -36
- package/types/SheetImplementationCustom.d.ts.map +1 -1
- package/types/SheetScrollView.d.ts +21 -38
- package/types/SheetScrollView.d.ts.map +1 -1
- package/types/constants.d.ts +3 -2
- package/types/constants.d.ts.map +1 -1
- package/types/index.d.ts +1 -3
- package/types/index.d.ts.map +1 -1
- package/types/nativeSheet.d.ts +8 -8
- package/types/nativeSheet.d.ts.map +1 -1
- package/types/nativeSheet.native.d.ts +5 -0
- package/types/nativeSheet.native.d.ts.map +1 -0
- package/types/stableViewportHeight.d.ts +12 -0
- package/types/stableViewportHeight.d.ts.map +1 -0
- package/types/stableViewportHeight.native.d.ts +6 -0
- package/types/stableViewportHeight.native.d.ts.map +1 -0
- package/types/types.d.ts +43 -17
- package/types/types.d.ts.map +1 -1
- package/types/useKeyboardControllerSheet.native.d.ts +6 -6
- package/types/useKeyboardControllerSheet.native.d.ts.map +1 -1
- package/types/useSafeAreaInsets.native.d.ts +4 -12
- package/types/useSafeAreaInsets.native.d.ts.map +1 -1
- package/types/useSheetController.d.ts +6 -6
- package/types/useSheetController.d.ts.map +1 -1
- package/types/useSheetOffscreenSize.d.ts.map +1 -1
- package/types/useSheetOpenState.d.ts +3 -2
- package/types/useSheetOpenState.d.ts.map +1 -1
- package/types/useSheetProviderProps.d.ts +5 -8
- package/types/useSheetProviderProps.d.ts.map +1 -1
- package/types/useSheetScrollViewGestures.d.ts +2 -2
- package/types/useSheetScrollViewGestures.d.ts.map +1 -1
- package/.turbo/turbo-build.log +0 -2
- package/controller/index.cjs +0 -2
- package/controller/index.d.ts +0 -5
- package/controller/index.js +0 -2
- package/controller/index.native.cjs +0 -2
- package/controller/index.native.js +0 -2
- package/dist/cjs/GestureDetectorWrapper.cjs +0 -54
- package/dist/cjs/GestureDetectorWrapper.native.js +0 -58
- package/dist/cjs/GestureDetectorWrapper.native.js.map +0 -1
- package/dist/cjs/createSheet.cjs +0 -194
- package/dist/cjs/createSheet.native.js +0 -204
- package/dist/cjs/createSheet.native.js.map +0 -1
- package/dist/cjs/setupGestureHandler.cjs +0 -55
- package/dist/cjs/setupGestureHandler.native.js +0 -60
- package/dist/cjs/setupGestureHandler.native.js.map +0 -1
- package/dist/cjs/useSheet.cjs +0 -29
- package/dist/cjs/useSheet.native.js +0 -34
- package/dist/cjs/useSheet.native.js.map +0 -1
- package/dist/esm/GestureDetectorWrapper.mjs +0 -29
- package/dist/esm/GestureDetectorWrapper.mjs.map +0 -1
- package/dist/esm/GestureDetectorWrapper.native.js +0 -30
- package/dist/esm/GestureDetectorWrapper.native.js.map +0 -1
- package/dist/esm/controller.mjs.map +0 -1
- package/dist/esm/controller.native.js.map +0 -1
- package/dist/esm/createSheet.mjs +0 -168
- package/dist/esm/createSheet.mjs.map +0 -1
- package/dist/esm/createSheet.native.js +0 -176
- package/dist/esm/createSheet.native.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/setupGestureHandler.mjs +0 -29
- package/dist/esm/setupGestureHandler.mjs.map +0 -1
- package/dist/esm/setupGestureHandler.native.js +0 -31
- package/dist/esm/setupGestureHandler.native.js.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/dist/esm/useSheet.mjs +0 -4
- package/dist/esm/useSheet.mjs.map +0 -1
- package/dist/esm/useSheet.native.js +0 -6
- package/dist/esm/useSheet.native.js.map +0 -1
- package/dist/jsx/GestureDetectorWrapper.mjs +0 -29
- package/dist/jsx/GestureDetectorWrapper.mjs.map +0 -1
- package/dist/jsx/GestureDetectorWrapper.native.js +0 -58
- package/dist/jsx/GestureDetectorWrapper.native.js.map +0 -1
- package/dist/jsx/controller.mjs.map +0 -1
- package/dist/jsx/createSheet.mjs +0 -168
- package/dist/jsx/createSheet.mjs.map +0 -1
- package/dist/jsx/createSheet.native.js +0 -204
- package/dist/jsx/createSheet.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/setupGestureHandler.mjs +0 -29
- package/dist/jsx/setupGestureHandler.mjs.map +0 -1
- package/dist/jsx/setupGestureHandler.native.js +0 -60
- package/dist/jsx/setupGestureHandler.native.js.map +0 -1
- package/dist/jsx/types.mjs.map +0 -1
- package/dist/jsx/useSheet.mjs +0 -4
- package/dist/jsx/useSheet.mjs.map +0 -1
- package/dist/jsx/useSheet.native.js +0 -34
- package/dist/jsx/useSheet.native.js.map +0 -1
- package/next.md +0 -78
- package/setup-gesture-handler/index.cjs +0 -2
- package/setup-gesture-handler/index.js +0 -2
- package/setup-gesture-handler/index.native.cjs +0 -2
- package/setup-gesture-handler/index.native.js +0 -2
- package/setup-gesture-handler.cjs +0 -1
- package/src/GestureDetectorWrapper.tsx +0 -38
- package/src/createSheet.tsx +0 -309
- package/src/setupGestureHandler.ts +0 -43
- package/src/useSheet.tsx +0 -3
- package/test/keyboardAvoidance.test.ts +0 -269
- package/tsconfig.json +0 -57
- package/types/GestureDetectorWrapper.d.ts +0 -14
- package/types/GestureDetectorWrapper.d.ts.map +0 -1
- package/types/createSheet.d.ts +0 -195
- package/types/createSheet.d.ts.map +0 -1
- package/types/setupGestureHandler.d.ts +0 -11
- package/types/setupGestureHandler.d.ts.map +0 -1
- package/types/useSheet.d.ts +0 -2
- package/types/useSheet.d.ts.map +0 -1
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { afterEach, describe, expect, test } from 'vitest'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
getKeyboardAdjustedSheetY,
|
|
5
|
-
getKeyboardOccludedHeight,
|
|
6
|
-
getSheetReleasePosition,
|
|
7
|
-
} from '../src/keyboardAvoidance'
|
|
8
|
-
import {
|
|
9
|
-
getWebKeyboardBottomInset,
|
|
10
|
-
getWebKeyboardResizeHeight,
|
|
11
|
-
getWebVisualViewportOffsetTop,
|
|
12
|
-
} from '../src/webViewport'
|
|
13
|
-
|
|
14
|
-
const originalWindow = globalThis.window
|
|
15
|
-
const originalDocument = globalThis.document
|
|
16
|
-
|
|
17
|
-
function setWebViewport({
|
|
18
|
-
clientHeight,
|
|
19
|
-
visualViewportHeight,
|
|
20
|
-
offsetTop = 0,
|
|
21
|
-
}: {
|
|
22
|
-
clientHeight: number
|
|
23
|
-
visualViewportHeight: number
|
|
24
|
-
offsetTop?: number
|
|
25
|
-
}) {
|
|
26
|
-
Object.defineProperty(globalThis, 'document', {
|
|
27
|
-
configurable: true,
|
|
28
|
-
value: {
|
|
29
|
-
documentElement: {
|
|
30
|
-
clientHeight,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
})
|
|
34
|
-
Object.defineProperty(globalThis, 'window', {
|
|
35
|
-
configurable: true,
|
|
36
|
-
value: {
|
|
37
|
-
innerHeight: clientHeight,
|
|
38
|
-
visualViewport: {
|
|
39
|
-
height: visualViewportHeight,
|
|
40
|
-
offsetTop,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
})
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
afterEach(() => {
|
|
47
|
-
Object.defineProperty(globalThis, 'window', {
|
|
48
|
-
configurable: true,
|
|
49
|
-
value: originalWindow,
|
|
50
|
-
})
|
|
51
|
-
Object.defineProperty(globalThis, 'document', {
|
|
52
|
-
configurable: true,
|
|
53
|
-
value: originalDocument,
|
|
54
|
-
})
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
describe('getKeyboardAdjustedSheetY', () => {
|
|
58
|
-
const base = {
|
|
59
|
-
sheetY: 320,
|
|
60
|
-
screenSize: 844,
|
|
61
|
-
isKeyboardVisible: true,
|
|
62
|
-
keyboardHeight: 300,
|
|
63
|
-
safeAreaTop: 44,
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
test('keeps the original position when translation is disabled', () => {
|
|
67
|
-
expect(
|
|
68
|
-
getKeyboardAdjustedSheetY({
|
|
69
|
-
...base,
|
|
70
|
-
shouldTranslate: false,
|
|
71
|
-
})
|
|
72
|
-
).toBe(base.sheetY)
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
test('shifts sheets up by keyboard height and caps at safe area', () => {
|
|
76
|
-
expect(
|
|
77
|
-
getKeyboardAdjustedSheetY({
|
|
78
|
-
...base,
|
|
79
|
-
shouldTranslate: true,
|
|
80
|
-
})
|
|
81
|
-
).toBe(44)
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
test('keeps a smaller fit sheet at its natural height and moves it with the keyboard', () => {
|
|
85
|
-
expect(
|
|
86
|
-
getKeyboardAdjustedSheetY({
|
|
87
|
-
...base,
|
|
88
|
-
sheetY: 500,
|
|
89
|
-
shouldTranslate: true,
|
|
90
|
-
})
|
|
91
|
-
).toBe(200)
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
test('does not shift hidden keyboard or offscreen close positions', () => {
|
|
95
|
-
expect(
|
|
96
|
-
getKeyboardAdjustedSheetY({
|
|
97
|
-
...base,
|
|
98
|
-
isKeyboardVisible: false,
|
|
99
|
-
shouldTranslate: true,
|
|
100
|
-
})
|
|
101
|
-
).toBe(base.sheetY)
|
|
102
|
-
expect(
|
|
103
|
-
getKeyboardAdjustedSheetY({
|
|
104
|
-
...base,
|
|
105
|
-
sheetY: base.screenSize,
|
|
106
|
-
shouldTranslate: true,
|
|
107
|
-
})
|
|
108
|
-
).toBe(base.screenSize)
|
|
109
|
-
})
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
describe('getKeyboardOccludedHeight', () => {
|
|
113
|
-
const base = {
|
|
114
|
-
frameSize: 700,
|
|
115
|
-
isKeyboardVisible: true,
|
|
116
|
-
keyboardHeight: 300,
|
|
117
|
-
screenSize: 844,
|
|
118
|
-
sheetY: 59,
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
test('returns overflow below the keyboard top after the sheet is clamped', () => {
|
|
122
|
-
expect(getKeyboardOccludedHeight(base)).toBe(215)
|
|
123
|
-
})
|
|
124
|
-
|
|
125
|
-
test('returns zero when the keyboard-adjusted sheet clears the keyboard', () => {
|
|
126
|
-
expect(
|
|
127
|
-
getKeyboardOccludedHeight({
|
|
128
|
-
...base,
|
|
129
|
-
frameSize: 400,
|
|
130
|
-
sheetY: 144,
|
|
131
|
-
})
|
|
132
|
-
).toBe(0)
|
|
133
|
-
})
|
|
134
|
-
|
|
135
|
-
test('ignores hidden keyboard and offscreen sheet positions', () => {
|
|
136
|
-
expect(
|
|
137
|
-
getKeyboardOccludedHeight({
|
|
138
|
-
...base,
|
|
139
|
-
isKeyboardVisible: false,
|
|
140
|
-
})
|
|
141
|
-
).toBe(0)
|
|
142
|
-
expect(
|
|
143
|
-
getKeyboardOccludedHeight({
|
|
144
|
-
...base,
|
|
145
|
-
sheetY: base.screenSize,
|
|
146
|
-
})
|
|
147
|
-
).toBe(0)
|
|
148
|
-
})
|
|
149
|
-
|
|
150
|
-
test('clamps occlusion to the frame height', () => {
|
|
151
|
-
expect(
|
|
152
|
-
getKeyboardOccludedHeight({
|
|
153
|
-
...base,
|
|
154
|
-
frameSize: 120,
|
|
155
|
-
keyboardHeight: 1000,
|
|
156
|
-
sheetY: 0,
|
|
157
|
-
})
|
|
158
|
-
).toBe(120)
|
|
159
|
-
})
|
|
160
|
-
})
|
|
161
|
-
|
|
162
|
-
describe('getSheetReleasePosition', () => {
|
|
163
|
-
// WEB keyboard-fit-dismiss threshold (the 75de9c9694 web keyboard-handoff fix):
|
|
164
|
-
// when the keyboard is up, a fit+dismiss sheet only dismisses after enough
|
|
165
|
-
// ACTUAL travel, ignoring a velocity-projected short drag.
|
|
166
|
-
test('web: keeps a keyboard-fit sheet open when velocity projects a short drag to dismiss', () => {
|
|
167
|
-
expect(
|
|
168
|
-
getSheetReleasePosition({
|
|
169
|
-
positions: [0, 844],
|
|
170
|
-
projectedEnd: 480,
|
|
171
|
-
currentPosition: 150,
|
|
172
|
-
frameSize: 591,
|
|
173
|
-
dismissOnSnapToBottom: true,
|
|
174
|
-
snapPointsMode: 'fit',
|
|
175
|
-
isKeyboardVisible: true,
|
|
176
|
-
isWeb: true,
|
|
177
|
-
})
|
|
178
|
-
).toBe(0)
|
|
179
|
-
})
|
|
180
|
-
|
|
181
|
-
test('web: allows a keyboard-fit sheet to dismiss after enough actual travel', () => {
|
|
182
|
-
expect(
|
|
183
|
-
getSheetReleasePosition({
|
|
184
|
-
positions: [0, 844],
|
|
185
|
-
projectedEnd: 560,
|
|
186
|
-
currentPosition: 225,
|
|
187
|
-
frameSize: 591,
|
|
188
|
-
dismissOnSnapToBottom: true,
|
|
189
|
-
snapPointsMode: 'fit',
|
|
190
|
-
isKeyboardVisible: true,
|
|
191
|
-
isWeb: true,
|
|
192
|
-
})
|
|
193
|
-
).toBe(1)
|
|
194
|
-
})
|
|
195
|
-
|
|
196
|
-
// NATIVE must NOT apply the web threshold — it snaps purely by projected
|
|
197
|
-
// position (the pre-rework v2.1.0 behavior). regression guard: with the
|
|
198
|
-
// threshold leaking into native, this short-projected drag wrongly stayed open
|
|
199
|
-
// (0); native should snap to the nearest point (here: dismiss, index 1).
|
|
200
|
-
test('native: snaps a keyboard-fit sheet by projected position, ignoring the web threshold', () => {
|
|
201
|
-
expect(
|
|
202
|
-
getSheetReleasePosition({
|
|
203
|
-
positions: [0, 844],
|
|
204
|
-
projectedEnd: 480,
|
|
205
|
-
currentPosition: 150,
|
|
206
|
-
frameSize: 591,
|
|
207
|
-
dismissOnSnapToBottom: true,
|
|
208
|
-
snapPointsMode: 'fit',
|
|
209
|
-
isKeyboardVisible: true,
|
|
210
|
-
isWeb: false,
|
|
211
|
-
})
|
|
212
|
-
).toBe(1)
|
|
213
|
-
})
|
|
214
|
-
|
|
215
|
-
test('native: a projected-open drag snaps back open', () => {
|
|
216
|
-
expect(
|
|
217
|
-
getSheetReleasePosition({
|
|
218
|
-
positions: [0, 844],
|
|
219
|
-
projectedEnd: 200,
|
|
220
|
-
currentPosition: 300,
|
|
221
|
-
frameSize: 591,
|
|
222
|
-
dismissOnSnapToBottom: true,
|
|
223
|
-
snapPointsMode: 'fit',
|
|
224
|
-
isKeyboardVisible: true,
|
|
225
|
-
isWeb: false,
|
|
226
|
-
})
|
|
227
|
-
).toBe(0)
|
|
228
|
-
})
|
|
229
|
-
|
|
230
|
-
test('keeps normal multi-snap release behavior outside keyboard-fit dismiss', () => {
|
|
231
|
-
expect(
|
|
232
|
-
getSheetReleasePosition({
|
|
233
|
-
positions: [0, 360, 844],
|
|
234
|
-
projectedEnd: 310,
|
|
235
|
-
currentPosition: 90,
|
|
236
|
-
frameSize: 591,
|
|
237
|
-
dismissOnSnapToBottom: true,
|
|
238
|
-
snapPointsMode: 'percent',
|
|
239
|
-
isKeyboardVisible: true,
|
|
240
|
-
isWeb: true,
|
|
241
|
-
})
|
|
242
|
-
).toBe(1)
|
|
243
|
-
})
|
|
244
|
-
})
|
|
245
|
-
|
|
246
|
-
describe('web viewport keyboard metrics', () => {
|
|
247
|
-
test('separates keyboard resize height from bottom inset when Safari pans the visual viewport', () => {
|
|
248
|
-
setWebViewport({
|
|
249
|
-
clientHeight: 678,
|
|
250
|
-
visualViewportHeight: 452,
|
|
251
|
-
offsetTop: 158,
|
|
252
|
-
})
|
|
253
|
-
|
|
254
|
-
expect(getWebKeyboardResizeHeight()).toBe(226)
|
|
255
|
-
expect(getWebVisualViewportOffsetTop()).toBe(158)
|
|
256
|
-
expect(getWebKeyboardBottomInset()).toBe(68)
|
|
257
|
-
})
|
|
258
|
-
|
|
259
|
-
test('matches resize height and bottom inset when the visual viewport is not panned', () => {
|
|
260
|
-
setWebViewport({
|
|
261
|
-
clientHeight: 678,
|
|
262
|
-
visualViewportHeight: 452,
|
|
263
|
-
})
|
|
264
|
-
|
|
265
|
-
expect(getWebKeyboardResizeHeight()).toBe(226)
|
|
266
|
-
expect(getWebVisualViewportOffsetTop()).toBe(0)
|
|
267
|
-
expect(getWebKeyboardBottomInset()).toBe(226)
|
|
268
|
-
})
|
|
269
|
-
})
|
package/tsconfig.json
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"composite": true,
|
|
5
|
-
"strict": true
|
|
6
|
-
},
|
|
7
|
-
"references": [
|
|
8
|
-
{
|
|
9
|
-
"path": "../../core/animations-react-native"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"path": "../../core/compose-refs"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"path": "../../core/constants"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"path": "../../core/core"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "../../core/create-context"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"path": "../../core/helpers"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"path": "../../core/use-constant"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "../../core/use-controllable-state"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "../../core/use-keyboard-visible"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "../animate-presence"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "../portal"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "../remove-scroll"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "../scroll-view"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "../stacks"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"exclude": [
|
|
52
|
-
"types",
|
|
53
|
-
"dist",
|
|
54
|
-
"test",
|
|
55
|
-
"**/__tests__"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import { type ViewStyle } from 'react-native';
|
|
3
|
-
interface GestureDetectorWrapperProps {
|
|
4
|
-
gesture: any;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
style?: ViewStyle;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Conditionally wraps children with GestureDetector when RNGH is available.
|
|
10
|
-
* Uses a plain View wrapper that GestureDetector can attach gesture handlers to.
|
|
11
|
-
*/
|
|
12
|
-
export declare function GestureDetectorWrapper({ gesture, children, style, }: GestureDetectorWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=GestureDetectorWrapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureDetectorWrapper.d.ts","sourceRoot":"","sources":["../src/GestureDetectorWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAGnD,UAAU,2BAA2B;IACnC,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,OAAO,EACP,QAAQ,EACR,KAAK,GACN,EAAE,2BAA2B,2CAmB7B"}
|
package/types/createSheet.d.ts
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import type { GetProps, ViewProps, TamaguiComponent, TamaguiComponentExpectingVariants } from '@tamagui/core';
|
|
2
|
-
import type { ForwardRefExoticComponent, FunctionComponent, RefAttributes } from 'react';
|
|
3
|
-
import type { View as RNView } from 'react-native';
|
|
4
|
-
import type { SheetProps, SheetScopedProps } from './types';
|
|
5
|
-
type SharedSheetProps = {
|
|
6
|
-
open?: boolean;
|
|
7
|
-
};
|
|
8
|
-
type BaseProps = ViewProps & SharedSheetProps;
|
|
9
|
-
type SheetStyledComponent = TamaguiComponentExpectingVariants<BaseProps, SharedSheetProps>;
|
|
10
|
-
export declare function createSheet<H extends TamaguiComponent | SheetStyledComponent, F extends TamaguiComponent | SheetStyledComponent, O extends TamaguiComponent | SheetStyledComponent>({ Handle, Frame, Overlay }: {
|
|
11
|
-
Handle: H;
|
|
12
|
-
Frame: F;
|
|
13
|
-
Overlay: O;
|
|
14
|
-
}): ForwardRefExoticComponent<{
|
|
15
|
-
open?: boolean;
|
|
16
|
-
defaultOpen?: boolean;
|
|
17
|
-
onOpenChange?: import("react").Dispatch<import("react").SetStateAction<boolean>> | ((open: boolean) => void);
|
|
18
|
-
position?: number;
|
|
19
|
-
defaultPosition?: number;
|
|
20
|
-
snapPoints?: (string | number)[];
|
|
21
|
-
snapPointsMode?: import("./types").SnapPointsMode;
|
|
22
|
-
onPositionChange?: import("./types").PositionChangeHandler;
|
|
23
|
-
children?: import("react").ReactNode;
|
|
24
|
-
dismissOnOverlayPress?: boolean;
|
|
25
|
-
dismissOnSnapToBottom?: boolean;
|
|
26
|
-
disableRemoveScroll?: boolean;
|
|
27
|
-
forceRemoveScrollEnabled?: boolean;
|
|
28
|
-
transitionConfig?: import("@tamagui/core").AnimatedNumberStrategy;
|
|
29
|
-
preferAdaptParentOpenState?: boolean;
|
|
30
|
-
unmountChildrenWhenHidden?: boolean;
|
|
31
|
-
disableTransparencyHide?: boolean;
|
|
32
|
-
native?: "ios"[] | boolean;
|
|
33
|
-
transition?: import("@tamagui/core").TransitionProp;
|
|
34
|
-
handleDisableScroll?: boolean;
|
|
35
|
-
disableDrag?: boolean;
|
|
36
|
-
modal?: boolean;
|
|
37
|
-
zIndex?: number;
|
|
38
|
-
portalProps?: import("@tamagui/portal").PortalProps;
|
|
39
|
-
moveOnKeyboardChange?: boolean;
|
|
40
|
-
containerComponent?: React.ComponentType<any>;
|
|
41
|
-
onAnimationComplete?: (info: {
|
|
42
|
-
open: boolean;
|
|
43
|
-
}) => void;
|
|
44
|
-
} & {
|
|
45
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
46
|
-
} & RefAttributes<RNView>> & {
|
|
47
|
-
Controlled: FunctionComponent<Omit<SheetProps, "open" | "onOpenChange"> & RefAttributes<RNView>> & {
|
|
48
|
-
Frame: ForwardRefExoticComponent<SheetScopedProps<Omit<GetProps<F>, keyof {
|
|
49
|
-
/**
|
|
50
|
-
* by default the sheet adds a view below its bottom that extends past the
|
|
51
|
-
* largest visible viewport height. this covers spring overshoot when opening
|
|
52
|
-
* so page content never shows through below the sheet.
|
|
53
|
-
*/
|
|
54
|
-
disableHideBottomOverflow?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Adds padding accounting for the currently offscreen content, so if you put a flex element inside
|
|
57
|
-
* the sheet, it will always flex to the height of the visible amount of the sheet. If this is not
|
|
58
|
-
* turned on, the inner content is always set to the max height of the sheet.
|
|
59
|
-
*/
|
|
60
|
-
adjustPaddingForOffscreenContent?: boolean;
|
|
61
|
-
}> & {
|
|
62
|
-
/**
|
|
63
|
-
* by default the sheet adds a view below its bottom that extends past the
|
|
64
|
-
* largest visible viewport height. this covers spring overshoot when opening
|
|
65
|
-
* so page content never shows through below the sheet.
|
|
66
|
-
*/
|
|
67
|
-
disableHideBottomOverflow?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Adds padding accounting for the currently offscreen content, so if you put a flex element inside
|
|
70
|
-
* the sheet, it will always flex to the height of the visible amount of the sheet. If this is not
|
|
71
|
-
* turned on, the inner content is always set to the max height of the sheet.
|
|
72
|
-
*/
|
|
73
|
-
adjustPaddingForOffscreenContent?: boolean;
|
|
74
|
-
}>>;
|
|
75
|
-
Overlay: TamaguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
76
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
77
|
-
}, any, any, any, SharedSheetProps, {}> | TamaguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
78
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
79
|
-
}, any, {
|
|
80
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
81
|
-
}, {}, {}, {}>;
|
|
82
|
-
Handle: TamaguiComponent<any, any, any, any, SharedSheetProps, {}> | TamaguiComponent<any, any, any, {}, {}, {}>;
|
|
83
|
-
ScrollView: ForwardRefExoticComponent<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@tamagui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
84
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
85
|
-
accept: {
|
|
86
|
-
readonly contentContainerStyle: "style";
|
|
87
|
-
};
|
|
88
|
-
}>> | undefined;
|
|
89
|
-
}> & {
|
|
90
|
-
fullscreen?: boolean | undefined;
|
|
91
|
-
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
92
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
93
|
-
accept: {
|
|
94
|
-
readonly contentContainerStyle: "style";
|
|
95
|
-
};
|
|
96
|
-
}>> | undefined;
|
|
97
|
-
}>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
98
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
99
|
-
accept: {
|
|
100
|
-
readonly contentContainerStyle: "style";
|
|
101
|
-
};
|
|
102
|
-
}>> | undefined;
|
|
103
|
-
}> & {
|
|
104
|
-
fullscreen?: boolean | undefined;
|
|
105
|
-
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
106
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
107
|
-
accept: {
|
|
108
|
-
readonly contentContainerStyle: "style";
|
|
109
|
-
};
|
|
110
|
-
}>> | undefined;
|
|
111
|
-
}>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase & {
|
|
112
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
113
|
-
accept: {
|
|
114
|
-
readonly contentContainerStyle: "style";
|
|
115
|
-
};
|
|
116
|
-
}>> | undefined;
|
|
117
|
-
}, {
|
|
118
|
-
fullscreen?: boolean | undefined;
|
|
119
|
-
}>> & RefAttributes<import("react-native").ScrollView>>;
|
|
120
|
-
};
|
|
121
|
-
Frame: ForwardRefExoticComponent<SheetScopedProps<Omit<GetProps<F>, keyof {
|
|
122
|
-
/**
|
|
123
|
-
* by default the sheet adds a view below its bottom that extends past the
|
|
124
|
-
* largest visible viewport height. this covers spring overshoot when opening
|
|
125
|
-
* so page content never shows through below the sheet.
|
|
126
|
-
*/
|
|
127
|
-
disableHideBottomOverflow?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* Adds padding accounting for the currently offscreen content, so if you put a flex element inside
|
|
130
|
-
* the sheet, it will always flex to the height of the visible amount of the sheet. If this is not
|
|
131
|
-
* turned on, the inner content is always set to the max height of the sheet.
|
|
132
|
-
*/
|
|
133
|
-
adjustPaddingForOffscreenContent?: boolean;
|
|
134
|
-
}> & {
|
|
135
|
-
/**
|
|
136
|
-
* by default the sheet adds a view below its bottom that extends past the
|
|
137
|
-
* largest visible viewport height. this covers spring overshoot when opening
|
|
138
|
-
* so page content never shows through below the sheet.
|
|
139
|
-
*/
|
|
140
|
-
disableHideBottomOverflow?: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Adds padding accounting for the currently offscreen content, so if you put a flex element inside
|
|
143
|
-
* the sheet, it will always flex to the height of the visible amount of the sheet. If this is not
|
|
144
|
-
* turned on, the inner content is always set to the max height of the sheet.
|
|
145
|
-
*/
|
|
146
|
-
adjustPaddingForOffscreenContent?: boolean;
|
|
147
|
-
}>>;
|
|
148
|
-
Overlay: TamaguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
149
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
150
|
-
}, any, any, any, SharedSheetProps, {}> | TamaguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
151
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
152
|
-
}, any, {
|
|
153
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
154
|
-
}, {}, {}, {}>;
|
|
155
|
-
Handle: TamaguiComponent<any, any, any, any, SharedSheetProps, {}> | TamaguiComponent<any, any, any, {}, {}, {}>;
|
|
156
|
-
ScrollView: ForwardRefExoticComponent<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@tamagui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
157
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
158
|
-
accept: {
|
|
159
|
-
readonly contentContainerStyle: "style";
|
|
160
|
-
};
|
|
161
|
-
}>> | undefined;
|
|
162
|
-
}> & {
|
|
163
|
-
fullscreen?: boolean | undefined;
|
|
164
|
-
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
165
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
166
|
-
accept: {
|
|
167
|
-
readonly contentContainerStyle: "style";
|
|
168
|
-
};
|
|
169
|
-
}>> | undefined;
|
|
170
|
-
}>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
171
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
172
|
-
accept: {
|
|
173
|
-
readonly contentContainerStyle: "style";
|
|
174
|
-
};
|
|
175
|
-
}>> | undefined;
|
|
176
|
-
}> & {
|
|
177
|
-
fullscreen?: boolean | undefined;
|
|
178
|
-
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
179
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
180
|
-
accept: {
|
|
181
|
-
readonly contentContainerStyle: "style";
|
|
182
|
-
};
|
|
183
|
-
}>> | undefined;
|
|
184
|
-
}>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase & {
|
|
185
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
186
|
-
accept: {
|
|
187
|
-
readonly contentContainerStyle: "style";
|
|
188
|
-
};
|
|
189
|
-
}>> | undefined;
|
|
190
|
-
}, {
|
|
191
|
-
fullscreen?: boolean | undefined;
|
|
192
|
-
}>> & RefAttributes<import("react-native").ScrollView>>;
|
|
193
|
-
};
|
|
194
|
-
export {};
|
|
195
|
-
//# sourceMappingURL=createSheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createSheet.d.ts","sourceRoot":"","sources":["../src/createSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,iCAAiC,EAElC,MAAM,eAAe,CAAA;AAOtB,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAExF,OAAO,KAAK,EAAE,IAAI,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAOlD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK3D,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,KAAK,SAAS,GAAG,SAAS,GAAG,gBAAgB,CAAA;AAE7C,KAAK,oBAAoB,GAAG,iCAAiC,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAA;AAE1F,wBAAgB,WAAW,CACzB,CAAC,SAAS,gBAAgB,GAAG,oBAAoB,EACjD,CAAC,SAAS,gBAAgB,GAAG,oBAAoB,EACjD,CAAC,SAAS,gBAAgB,GAAG,oBAAoB,EACjD,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,CAAC,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkG7D;;;;eAIG;wCACyB,OAAO;YAEnC;;;;eAIG;+CACgC,OAAO;;YAZ1C;;;;eAIG;wCACyB,OAAO;YAEnC;;;;eAIG;+CACgC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAZ1C;;;;WAIG;oCACyB,OAAO;QAEnC;;;;WAIG;2CACgC,OAAO;;QAZ1C;;;;WAIG;oCACyB,OAAO;QAEnC;;;;WAIG;2CACgC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2J7C"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Legacy setup - prefer `import '@tamagui/native/setup-gesture-handler'` instead.
|
|
3
|
-
*/
|
|
4
|
-
export declare function isGestureHandlerEnabled(): boolean;
|
|
5
|
-
export interface SetupGestureHandlerConfig {
|
|
6
|
-
Gesture: any;
|
|
7
|
-
GestureDetector: any;
|
|
8
|
-
ScrollView?: any;
|
|
9
|
-
}
|
|
10
|
-
export declare function setupGestureHandler(config: SetupGestureHandlerConfig): void;
|
|
11
|
-
//# sourceMappingURL=setupGestureHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setupGestureHandler.d.ts","sourceRoot":"","sources":["../src/setupGestureHandler.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,wBAAgB,uBAAuB,IAAI,OAAO,CAMjD;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,GAAG,CAAA;IACZ,eAAe,EAAE,GAAG,CAAA;IACpB,UAAU,CAAC,EAAE,GAAG,CAAA;CACjB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,IAAI,CAkB3E"}
|
package/types/useSheet.d.ts
DELETED
package/types/useSheet.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSheet.d.ts","sourceRoot":"","sources":["../src/useSheet.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,2DAAuC,CAAA"}
|