@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,6 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { SheetControllerContextValue } from './useSheetController';
|
|
3
|
-
export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp,
|
|
4
|
+
export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, onTransition: onTransitionProp, open, hidden, disableDrag, scope, }: Partial<SheetControllerContextValue> & {
|
|
4
5
|
children?: ReactNode;
|
|
5
|
-
|
|
6
|
+
scope?: string;
|
|
7
|
+
}) => React.JSX.Element;
|
|
6
8
|
//# sourceMappingURL=SheetController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetController.d.ts","sourceRoot":"","sources":["../src/SheetController.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetController.d.ts","sourceRoot":"","sources":["../src/SheetController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAGvE,eAAO,MAAM,eAAe,oHAQzB,OAAO,CAAC,2BAA2B,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,sBAgCjF,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SheetDragSurfaceProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* The surface the sheet is dragged by.
|
|
5
|
+
*
|
|
6
|
+
* Web runs the same PanResponder react-native does, over the same responder
|
|
7
|
+
* system, so the drag behaves as it did when this was a react-native `View`.
|
|
8
|
+
* `gestureHandler` is native-only, so the props for it are ignored here.
|
|
9
|
+
*/
|
|
10
|
+
export declare function SheetDragSurface({ panConfig, children }: SheetDragSurfaceProps): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=SheetDragSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetDragSurface.d.ts","sourceRoot":"","sources":["../src/SheetDragSurface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,qBAAqB,qBAwB9E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SheetDragSurfaceProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* The surface the sheet is dragged by.
|
|
5
|
+
*
|
|
6
|
+
* With react-native-gesture-handler set up the drag is a `Gesture.Pan`, which
|
|
7
|
+
* needs a native View of its own to attach to. Without it the drag runs on
|
|
8
|
+
* PanResponder, the same as web.
|
|
9
|
+
*/
|
|
10
|
+
export declare function SheetDragSurface({ gestureHandlerEnabled, panGesture, panConfig, children, }: SheetDragSurfaceProps): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=SheetDragSurface.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetDragSurface.native.d.ts","sourceRoot":"","sources":["../src/SheetDragSurface.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,qBAAqB,EACrB,UAAU,EACV,SAAS,EACT,QAAQ,GACT,EAAE,qBAAqB,qBAuBvB"}
|
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare
|
|
5
|
-
open?: boolean;
|
|
6
|
-
defaultOpen?: boolean;
|
|
7
|
-
onOpenChange?: React.Dispatch<React.SetStateAction<boolean>> | ((open: boolean) => void);
|
|
8
|
-
position?: number;
|
|
9
|
-
defaultPosition?: number;
|
|
10
|
-
snapPoints?: (string | number)[];
|
|
11
|
-
snapPointsMode?: SnapPointsMode;
|
|
12
|
-
onPositionChange?: import("./types").PositionChangeHandler;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
dismissOnOverlayPress?: boolean;
|
|
15
|
-
dismissOnSnapToBottom?: boolean;
|
|
16
|
-
disableRemoveScroll?: boolean;
|
|
17
|
-
forceRemoveScrollEnabled?: boolean;
|
|
18
|
-
transitionConfig?: import("@tamagui/core").AnimatedNumberStrategy;
|
|
19
|
-
preferAdaptParentOpenState?: boolean;
|
|
20
|
-
unmountChildrenWhenHidden?: boolean;
|
|
21
|
-
disableTransparencyHide?: boolean;
|
|
22
|
-
native?: "ios"[] | boolean;
|
|
23
|
-
transition?: import("@tamagui/core").TransitionProp;
|
|
24
|
-
handleDisableScroll?: boolean;
|
|
25
|
-
disableDrag?: boolean;
|
|
26
|
-
modal?: boolean;
|
|
27
|
-
zIndex?: number;
|
|
28
|
-
portalProps?: import("@tamagui/portal").PortalProps;
|
|
29
|
-
moveOnKeyboardChange?: boolean;
|
|
30
|
-
containerComponent?: React.ComponentType<any>;
|
|
31
|
-
onAnimationComplete?: (info: {
|
|
32
|
-
open: boolean;
|
|
33
|
-
}) => void;
|
|
34
|
-
} & {
|
|
35
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
36
|
-
} & React.RefAttributes<View>>;
|
|
1
|
+
import type { View } from '@tamagui/react-native-types';
|
|
2
|
+
import type { SheetProps } from './types';
|
|
3
|
+
export declare const SheetImplementationCustom: import("@tamagui/compose-refs").RefComponent<View, SheetProps>;
|
|
4
|
+
export declare function isSheetOverlayComponent(type: unknown): boolean;
|
|
37
5
|
//# sourceMappingURL=SheetImplementationCustom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetImplementationCustom.d.ts","sourceRoot":"","sources":["../src/SheetImplementationCustom.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetImplementationCustom.d.ts","sourceRoot":"","sources":["../src/SheetImplementationCustom.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAIV,IAAI,EACL,MAAM,6BAA6B,CAAA;AAwBpC,OAAO,KAAK,EACV,UAAU,EAIX,MAAM,SAAS,CAAA;AAwBhB,eAAO,MAAM,yBAAyB,gEA4mCrC,CAAA;AAOD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,OAAO,WAYpD"}
|
|
@@ -1,40 +1,23 @@
|
|
|
1
|
+
import { type GetProps } from '@tamagui/core';
|
|
2
|
+
import type { ScrollViewRef } from '@tamagui/scroll-view';
|
|
3
|
+
import { ScrollView } from '@tamagui/scroll-view';
|
|
1
4
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const SheetScrollView: React.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}> & {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
readonly contentContainerStyle: "style";
|
|
21
|
-
};
|
|
22
|
-
}>> | undefined;
|
|
23
|
-
}> & {
|
|
24
|
-
fullscreen?: boolean | undefined;
|
|
25
|
-
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
26
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof RNScrollView, {
|
|
27
|
-
accept: {
|
|
28
|
-
readonly contentContainerStyle: "style";
|
|
29
|
-
};
|
|
30
|
-
}>> | undefined;
|
|
31
|
-
}>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase & {
|
|
32
|
-
readonly contentContainerStyle?: Partial<import("@tamagui/core").InferStyleProps<typeof RNScrollView, {
|
|
33
|
-
accept: {
|
|
34
|
-
readonly contentContainerStyle: "style";
|
|
35
|
-
};
|
|
36
|
-
}>> | undefined;
|
|
37
|
-
}, {
|
|
38
|
-
fullscreen?: boolean | undefined;
|
|
39
|
-
}>> & React.RefAttributes<RNScrollView>>;
|
|
5
|
+
type SheetScrollViewBaseProps = GetProps<typeof ScrollView>;
|
|
6
|
+
export declare const SheetScrollView: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").TamaguiComponentPropsBaseBase & Omit<import("@tamagui/scroll-view/types/WebScrollView").WebScrollViewProps, "ref"> & React.RefAttributes<ScrollViewRef>, import("@tamagui/core").StackStyleBase, {}>, string | number> & Omit<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & Omit<import("@tamagui/scroll-view/types/WebScrollView").WebScrollViewProps, "ref"> & React.RefAttributes<ScrollViewRef>, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
7
|
+
h?: SheetScrollViewBaseProps['height'];
|
|
8
|
+
o?: SheetScrollViewBaseProps['opacity'];
|
|
9
|
+
pos?: SheetScrollViewBaseProps['position'];
|
|
10
|
+
}, "scope"> & {
|
|
11
|
+
scope?: import("./types").SheetScopes;
|
|
12
|
+
}, ScrollViewRef, import("@tamagui/core").TamaguiComponentPropsBaseBase & Omit<import("@tamagui/scroll-view/types/WebScrollView").WebScrollViewProps, "ref"> & React.RefAttributes<ScrollViewRef> & Omit<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & Omit<import("@tamagui/scroll-view/types/WebScrollView").WebScrollViewProps, "ref"> & React.RefAttributes<ScrollViewRef>, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
13
|
+
h?: SheetScrollViewBaseProps['height'];
|
|
14
|
+
o?: SheetScrollViewBaseProps['opacity'];
|
|
15
|
+
pos?: SheetScrollViewBaseProps['position'];
|
|
16
|
+
}, "scope"> & {
|
|
17
|
+
scope?: import("./types").SheetScopes;
|
|
18
|
+
}, import("@tamagui/core").StackStyleBase, {}, {
|
|
19
|
+
acceptsClassName: true;
|
|
20
|
+
neverFlatten: true;
|
|
21
|
+
}>;
|
|
22
|
+
export {};
|
|
40
23
|
//# sourceMappingURL=SheetScrollView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetScrollView.d.ts","sourceRoot":"","sources":["../src/SheetScrollView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SheetScrollView.d.ts","sourceRoot":"","sources":["../src/SheetScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuC,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAA;AAClF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,KAAsC,MAAM,OAAO,CAAA;AAiB1D,KAAK,wBAAwB,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AAU3D,eAAO,MAAM,eAAe;QANpB,wBAAwB,CAAC,QAAQ,CAAC;QAClC,wBAAwB,CAAC,SAAS,CAAC;UACjC,wBAAwB,CAAC,UAAU,CAAC;;;;;;;;;;;;EAmW7C,CAAA"}
|
package/types/constants.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const SHEET_CONTAINER_NAME = "SheetContainer";
|
|
2
|
+
export declare const SHEET_BACKGROUND_NAME = "SheetBackground";
|
|
3
3
|
export declare const SHEET_HANDLE_NAME = "SheetHandle";
|
|
4
4
|
export declare const SHEET_OVERLAY_NAME = "SheetOverlay";
|
|
5
|
+
export declare const SHEET_OVERLAY_MARKER: unique symbol;
|
|
5
6
|
//# sourceMappingURL=constants.d.ts.map
|
package/types/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,mBAAmB,CAAA;AACpD,eAAO,MAAM,qBAAqB,oBAAoB,CAAA;AACtD,eAAO,MAAM,iBAAiB,gBAAgB,CAAA;AAC9C,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAChD,eAAO,MAAM,oBAAoB,eAAyB,CAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './Sheet';
|
|
2
|
-
export
|
|
3
|
-
export * from './createSheet';
|
|
2
|
+
export { useSheetContext } from './SheetContext';
|
|
4
3
|
export * from './SheetController';
|
|
5
4
|
export * from './useSheetController';
|
|
6
5
|
export * from './useSheetOpenState';
|
|
@@ -9,5 +8,4 @@ export * from './SheetScrollView';
|
|
|
9
8
|
export * from './nativeSheet';
|
|
10
9
|
export * from './types';
|
|
11
10
|
export * from './contexts';
|
|
12
|
-
export { getGestureHandlerState as unstable_getSheetGestureHandlerState, isGestureHandlerEnabled as unstable_isSheetGestureHandlerEnabled, } from './gestureState';
|
|
13
11
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AAGvB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA"}
|
package/types/nativeSheet.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FunctionComponent } from 'react';
|
|
2
|
-
import type { SheetProps } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
2
|
+
import type { SheetNativeModal, SheetNativePlatforms, SheetProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* `native` asks for the platform's own sheet, which is a UIKit modal, so there
|
|
5
|
+
* is nothing to register or hand back on web and the sheet always falls through
|
|
6
|
+
* to its own implementation. The native sibling holds the real registry.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getNativeSheet(_platform: SheetNativePlatforms): FunctionComponent<SheetProps> | null;
|
|
9
|
+
export declare function setupNativeSheet(_platform: SheetNativePlatforms, _RNIOSModal: SheetNativeModal): void;
|
|
10
10
|
//# sourceMappingURL=nativeSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeSheet.d.ts","sourceRoot":"","sources":["../src/nativeSheet.
|
|
1
|
+
{"version":3,"file":"nativeSheet.d.ts","sourceRoot":"","sources":["../src/nativeSheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEjF;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,oBAAoB,GAC9B,iBAAiB,CAAC,UAAU,CAAC,GAAG,IAAI,CAEtC;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,oBAAoB,EAC/B,WAAW,EAAE,gBAAgB,QAC3B"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import type { SheetNativeModal, SheetNativePlatforms, SheetProps } from './types';
|
|
3
|
+
export declare function getNativeSheet(platform: SheetNativePlatforms): FunctionComponent<SheetProps> | null;
|
|
4
|
+
export declare function setupNativeSheet(platform: SheetNativePlatforms, RNIOSModal: SheetNativeModal): void;
|
|
5
|
+
//# sourceMappingURL=nativeSheet.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nativeSheet.native.d.ts","sourceRoot":"","sources":["../src/nativeSheet.native.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAI9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAQjF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,oBAAoB,wCAG5D;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,oBAAoB,EAC9B,UAAU,EAAE,gBAAgB,QA4D7B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Height of the viewport the sheet positions against.
|
|
3
|
+
*
|
|
4
|
+
* This MUST be the stable layout viewport: the visual viewport shrinks by the
|
|
5
|
+
* soft keyboard, and capping frameSize / maxContentSize against a shrinking
|
|
6
|
+
* value corrupts the fit-mode math (translateY = screenSize - frameSize),
|
|
7
|
+
* detaching the sheet's bottom from the screen edge when the keyboard opens.
|
|
8
|
+
* NOTE: window.innerHeight is NOT stable on real iOS Safari (it shrinks with
|
|
9
|
+
* the keyboard too), hence the self-correcting baseline in webViewport.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getStableViewportHeight(): number;
|
|
12
|
+
//# sourceMappingURL=stableViewportHeight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stableViewportHeight.d.ts","sourceRoot":"","sources":["../src/stableViewportHeight.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Height of the viewport the sheet positions against. Native measures against
|
|
3
|
+
* the screen rather than the window, so it does not move with the keyboard.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getStableViewportHeight(): number;
|
|
6
|
+
//# sourceMappingURL=stableViewportHeight.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stableViewportHeight.native.d.ts","sourceRoot":"","sources":["../src/stableViewportHeight.native.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD"}
|
package/types/types.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { AnimatedNumberStrategy, TransitionProp } from '@tamagui/core';
|
|
2
|
-
import type { ScopedProps } from '@tamagui/create-context';
|
|
3
2
|
import type { PortalProps } from '@tamagui/portal';
|
|
3
|
+
import type { PanResponderConfig } from '@tamagui/react-native-pan-responder';
|
|
4
4
|
import type { RemoveScroll } from '@tamagui/remove-scroll';
|
|
5
5
|
import type { ReactNode } from 'react';
|
|
6
6
|
import type React from 'react';
|
|
7
|
-
export type
|
|
7
|
+
export type SheetScopes = string;
|
|
8
|
+
export type SheetScopedProps<P> = Omit<P, 'scope'> & {
|
|
9
|
+
scope?: SheetScopes;
|
|
10
|
+
};
|
|
11
|
+
export type SheetProps = SheetScopedProps<{
|
|
8
12
|
open?: boolean;
|
|
9
13
|
defaultOpen?: boolean;
|
|
10
14
|
onOpenChange?: OpenChangeHandler;
|
|
@@ -31,11 +35,6 @@ export type SheetProps = ScopedProps<{
|
|
|
31
35
|
* By default, RemoveScroll is enabled when the sheet is open and modal.
|
|
32
36
|
*/
|
|
33
37
|
disableRemoveScroll?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Use `disableRemoveScroll` instead. This prop will be removed in a future version.
|
|
36
|
-
* Note: `disableRemoveScroll={true}` is equivalent to `forceRemoveScrollEnabled={false}`
|
|
37
|
-
*/
|
|
38
|
-
forceRemoveScrollEnabled?: boolean;
|
|
39
38
|
transitionConfig?: AnimatedNumberStrategy;
|
|
40
39
|
/**
|
|
41
40
|
* By default Sheet will prefer the open prop over a parent component that is
|
|
@@ -49,12 +48,16 @@ export type SheetProps = ScopedProps<{
|
|
|
49
48
|
*/
|
|
50
49
|
unmountChildrenWhenHidden?: boolean;
|
|
51
50
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
51
|
+
* By default a fully-closed sheet wrapper is hidden with `display: 'none'`.
|
|
52
|
+
* Set this to keep the closed wrapper laid out (e.g. for native visual effects
|
|
53
|
+
* that cannot initialize below a hidden ancestor). `pointerEvents` still gates
|
|
54
|
+
* interaction while closed.
|
|
54
55
|
*/
|
|
55
|
-
|
|
56
|
+
disableHideWhenClosed?: boolean;
|
|
56
57
|
/**
|
|
57
58
|
* Adapts the sheet to use native sheet on the given platform (if available)
|
|
59
|
+
* The iOS system sheet does not expose continuous position, so
|
|
60
|
+
* `Sheet.useAnimatedPosition` and `onTransition` are unavailable in this mode.
|
|
58
61
|
*/
|
|
59
62
|
native?: 'ios'[] | boolean;
|
|
60
63
|
/**
|
|
@@ -73,17 +76,26 @@ export type SheetProps = ScopedProps<{
|
|
|
73
76
|
moveOnKeyboardChange?: boolean;
|
|
74
77
|
containerComponent?: React.ComponentType<any>;
|
|
75
78
|
/**
|
|
76
|
-
*
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
* Fires at the start and end of the sheet's position transition. `cause` is
|
|
80
|
+
* `open` when moving from closed, `close` when moving off screen, and `snap`
|
|
81
|
+
* when moving between snap points while open. On the `end` phase, `finished`
|
|
82
|
+
* is `false` when the transition was interrupted (e.g. a close canceled by a
|
|
83
|
+
* re-open). `position` is the resolved translateY (px from screen top) target.
|
|
84
|
+
* Available on Tamagui's custom Sheet, not the native iOS system sheet.
|
|
85
|
+
*/
|
|
86
|
+
onTransition?: (e: SheetTransitionEvent) => void;
|
|
87
|
+
}>;
|
|
88
|
+
export type SheetTransitionCause = 'open' | 'close' | 'snap';
|
|
89
|
+
export type SheetTransitionEvent = {
|
|
90
|
+
phase: 'start' | 'end';
|
|
91
|
+
cause: SheetTransitionCause;
|
|
92
|
+
position: number;
|
|
93
|
+
finished?: boolean;
|
|
94
|
+
};
|
|
82
95
|
export type PositionChangeHandler = (position: number) => void;
|
|
83
96
|
type OpenChangeHandler = ((open: boolean) => void) | React.Dispatch<React.SetStateAction<boolean>>;
|
|
84
97
|
export type RemoveScrollProps = React.ComponentProps<typeof RemoveScroll>;
|
|
85
98
|
export type SnapPointsMode = 'percent' | 'constant' | 'fit' | 'mixed';
|
|
86
|
-
export type SheetScopedProps<A> = ScopedProps<A, 'Sheet'>;
|
|
87
99
|
export type ScrollBridge = {
|
|
88
100
|
enabled: boolean;
|
|
89
101
|
y: number;
|
|
@@ -152,5 +164,19 @@ export interface KeyboardControllerSheetResult {
|
|
|
152
164
|
*/
|
|
153
165
|
flushPendingHide: () => void;
|
|
154
166
|
}
|
|
167
|
+
export type SheetDragSurfaceProps = {
|
|
168
|
+
/** react-native-gesture-handler is set up and owns the drag (native only) */
|
|
169
|
+
gestureHandlerEnabled: boolean;
|
|
170
|
+
/** the `Gesture.Pan` to attach when gesture handler owns the drag */
|
|
171
|
+
panGesture: any;
|
|
172
|
+
/** the PanResponder config to drive the drag with otherwise, null when dragging is off */
|
|
173
|
+
panConfig: PanResponderConfig | null;
|
|
174
|
+
children?: ReactNode;
|
|
175
|
+
};
|
|
176
|
+
export type SheetNativePlatforms = 'ios';
|
|
177
|
+
export type SheetNativeModal = {
|
|
178
|
+
ModalSheetView: any;
|
|
179
|
+
ModalSheetViewMainContent: any;
|
|
180
|
+
};
|
|
155
181
|
export {};
|
|
156
182
|
//# sourceMappingURL=types.d.ts.map
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* native implementation of keyboard controller sheet hook.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* keyboard-adjusted positions
|
|
4
|
+
* simplified to just track keyboard state (height, visibility).
|
|
5
|
+
* position animation is handled by SheetImplementationCustom via
|
|
6
|
+
* keyboard-adjusted positions, matching the react-native-actions-sheet pattern.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* uses React Native keyboard events for state. The optional keyboard-controller
|
|
9
|
+
* integration is only used for imperative dismissal.
|
|
10
10
|
*/
|
|
11
11
|
import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types';
|
|
12
12
|
export declare function useKeyboardControllerSheet(options: KeyboardControllerSheetOptions): KeyboardControllerSheetResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardControllerSheet.native.d.ts","sourceRoot":"","sources":["../src/useKeyboardControllerSheet.native.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,SAAS,CAAA;AAchB,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,8BAA8B,GACtC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"useKeyboardControllerSheet.native.d.ts","sourceRoot":"","sources":["../src/useKeyboardControllerSheet.native.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,SAAS,CAAA;AAchB,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,8BAA8B,GACtC,6BAA6B,CA0E/B"}
|
|
@@ -2,19 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import type { SafeAreaInsets } from './useSafeAreaInsets';
|
|
3
3
|
export declare const SafeAreaInsetsContext: React.Context<SafeAreaInsets | null>;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* context the app's SafeAreaProvider provides.
|
|
5
|
+
* live safe-area insets (notch / status bar / home indicator).
|
|
7
6
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* native bundles:
|
|
12
|
-
* - `getSafeArea()` (the @tamagui/native abstraction) is frequently NOT enabled
|
|
13
|
-
* against the instance a component reads, so it returns 0.
|
|
14
|
-
* - a dynamic `require('react-native-safe-area-context')` throws "Unknown named
|
|
15
|
-
* module" in metro/rolldown bundles where the package isn't in the importing
|
|
16
|
-
* module's graph.
|
|
17
|
-
* A static import + context read avoids both.
|
|
7
|
+
* setup-safe-area installs a context-to-store feed so every store subscriber
|
|
8
|
+
* sees provider updates. Without that setup, keep the direct context read that
|
|
9
|
+
* lets Sheet work independently.
|
|
18
10
|
*/
|
|
19
11
|
export declare function useSafeAreaInsets(): SafeAreaInsets | null;
|
|
20
12
|
//# sourceMappingURL=useSafeAreaInsets.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSafeAreaInsets.native.d.ts","sourceRoot":"","sources":["../src/useSafeAreaInsets.native.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSafeAreaInsets.native.d.ts","sourceRoot":"","sources":["../src/useSafeAreaInsets.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAKzD,eAAO,MAAM,qBAAqB,EACM,KAAK,CAAC,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;AAQ5E;;;;;;GAMG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,GAAG,IAAI,CAUzD"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type StyledContext } from '@tamagui/core';
|
|
3
|
+
import type { SheetTransitionEvent } from './types';
|
|
4
|
+
export declare const useSheetController: (scope?: string) => {
|
|
3
5
|
controller: SheetControllerContextValue | null;
|
|
4
6
|
isHidden: boolean | undefined;
|
|
5
7
|
isShowingNonSheet: boolean | undefined;
|
|
6
8
|
disableDrag: boolean | undefined;
|
|
7
9
|
};
|
|
8
|
-
export declare const SheetControllerContext: React.Context<SheetControllerContextValue | null>;
|
|
10
|
+
export declare const SheetControllerContext: StyledContext<SheetControllerContextValue> & React.Context<SheetControllerContextValue | null>;
|
|
9
11
|
export type SheetControllerContextValue = {
|
|
10
12
|
id?: string;
|
|
11
13
|
disableDrag?: boolean;
|
|
12
14
|
open?: boolean;
|
|
13
15
|
hidden?: boolean;
|
|
14
16
|
onOpenChange?: React.Dispatch<React.SetStateAction<boolean>> | ((val: boolean) => void);
|
|
15
|
-
|
|
16
|
-
open: boolean;
|
|
17
|
-
}) => void;
|
|
17
|
+
onTransition?: (e: SheetTransitionEvent) => void;
|
|
18
18
|
skipNextAnimation?: boolean;
|
|
19
19
|
};
|
|
20
20
|
//# sourceMappingURL=useSheetController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetController.d.ts","sourceRoot":"","sources":["../src/useSheetController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"useSheetController.d.ts","sourceRoot":"","sources":["../src/useSheetController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,eAAe,CAAA;AAEvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEnD,eAAO,MAAM,kBAAkB,WAAY,MAAM;;;;;CAYhD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAG9B,aAAa,CAAC,2BAA2B,CAAC,GAC7C,KAAK,CAAC,OAAO,CAAC,2BAA2B,GAAG,IAAI,CAAC,CAAA;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,CAAA;IAIvF,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAEhD,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetOffscreenSize.d.ts","sourceRoot":"","sources":["../src/useSheetOffscreenSize.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAEhE,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"useSheetOffscreenSize.d.ts","sourceRoot":"","sources":["../src/useSheetOffscreenSize.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAEhE,eAAO,MAAM,qBAAqB,qEAM/B,iBAAiB,WAwCnB,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { SheetProps } from './types';
|
|
2
|
+
import type { SheetControllerContextValue } from './useSheetController';
|
|
2
3
|
export declare const useSheetOpenState: (props: SheetProps) => {
|
|
3
4
|
open: boolean;
|
|
4
|
-
setOpen: import("
|
|
5
|
+
setOpen: import("@tamagui/use-controllable-state").ControllableStateSetter<boolean, import("@tamagui/web").TamaguiChangeEventDetails>;
|
|
5
6
|
isHidden: boolean | undefined;
|
|
6
|
-
controller:
|
|
7
|
+
controller: SheetControllerContextValue | null;
|
|
7
8
|
};
|
|
8
9
|
export type SheetOpenState = ReturnType<typeof useSheetOpenState>;
|
|
9
10
|
//# sourceMappingURL=useSheetOpenState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetOpenState.d.ts","sourceRoot":"","sources":["../src/useSheetOpenState.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSheetOpenState.d.ts","sourceRoot":"","sources":["../src/useSheetOpenState.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAGvE,eAAO,MAAM,iBAAiB,UAAW,UAAU;;;;;CAoElD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -8,16 +8,14 @@ export type SheetContextValue = ReturnType<typeof useSheetProviderProps> & {
|
|
|
8
8
|
keyboardStableFrameHeight: number;
|
|
9
9
|
setHasScrollView: (val: boolean) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare function useSheetProviderProps(props: SheetProps, state: SheetOpenState
|
|
12
|
-
onOverlayComponent?: (comp: any) => void;
|
|
13
|
-
}): {
|
|
11
|
+
export declare function useSheetProviderProps(props: SheetProps, state: SheetOpenState): {
|
|
14
12
|
screenSize: number;
|
|
15
13
|
maxSnapPoint: string | number;
|
|
16
14
|
disableRemoveScroll: boolean;
|
|
17
15
|
scrollBridge: ScrollBridge;
|
|
18
16
|
modal: boolean;
|
|
19
17
|
open: boolean;
|
|
20
|
-
setOpen:
|
|
18
|
+
setOpen: import("@tamagui/use-controllable-state").ControllableStateSetter<boolean, import("@tamagui/core").TamaguiChangeEventDetails>;
|
|
21
19
|
hidden: boolean;
|
|
22
20
|
contentRef: React.RefObject<TamaguiElement | null>;
|
|
23
21
|
handleRef: React.RefObject<TamaguiElement | null>;
|
|
@@ -25,15 +23,14 @@ export declare function useSheetProviderProps(props: SheetProps, state: SheetOpe
|
|
|
25
23
|
setFrameSize: React.Dispatch<React.SetStateAction<number>>;
|
|
26
24
|
dismissOnOverlayPress: boolean;
|
|
27
25
|
dismissOnSnapToBottom: boolean;
|
|
28
|
-
|
|
29
|
-
scope: import("@tamagui/create-context").Scope<any>;
|
|
26
|
+
scope: string;
|
|
30
27
|
hasFit: boolean;
|
|
31
28
|
position: number;
|
|
32
29
|
snapPoints: (string | number)[];
|
|
33
30
|
snapPointsMode: import("./types").SnapPointsMode;
|
|
34
31
|
setMaxContentSize: React.Dispatch<React.SetStateAction<number>>;
|
|
35
32
|
setPosition: (next: number) => void;
|
|
36
|
-
setPositionImmediate:
|
|
37
|
-
|
|
33
|
+
setPositionImmediate: import("@tamagui/use-controllable-state").ControllableStateSetter<number, import("@tamagui/core").TamaguiChangeEventDetails>;
|
|
34
|
+
onlyShowContainer: boolean;
|
|
38
35
|
};
|
|
39
36
|
//# sourceMappingURL=useSheetProviderProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetProviderProps.d.ts","sourceRoot":"","sources":["../src/useSheetProviderProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAKnD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,GAAG;IACzE,sBAAsB,EAAE,MAAM,CAAA;IAK9B,iBAAiB,EAAE,OAAO,CAAA;IAK1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,wBAAgB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"useSheetProviderProps.d.ts","sourceRoot":"","sources":["../src/useSheetProviderProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAKnD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,GAAG;IACzE,sBAAsB,EAAE,MAAM,CAAA;IAK9B,iBAAiB,EAAE,OAAO,CAAA;IAK1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;wBAkCnE,MAAM;;;EAwJhB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ScrollViewRef } from '@tamagui/scroll-view';
|
|
2
2
|
import type { ScrollBridge } from './types';
|
|
3
3
|
interface UseSheetScrollViewGesturesProps {
|
|
4
|
-
scrollRef: React.RefObject<
|
|
4
|
+
scrollRef: React.RefObject<ScrollViewRef | null>;
|
|
5
5
|
scrollBridge: ScrollBridge;
|
|
6
6
|
hasScrollableContent: boolean;
|
|
7
7
|
scrollEnabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetScrollViewGestures.d.ts","sourceRoot":"","sources":["../src/useSheetScrollViewGestures.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSheetScrollViewGestures.d.ts","sourceRoot":"","sources":["../src/useSheetScrollViewGestures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAc3C,UAAU,+BAA+B;IACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC,CAAA;IAChD,YAAY,EAAE,YAAY,CAAA;IAC1B,oBAAoB,EAAE,OAAO,CAAA;IAC7B,aAAa,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7D,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CACxD;AAED,wBAAgB,0BAA0B,CAAC,EACzC,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,cAAc,GACf,EAAE,+BAA+B,MAkNjC"}
|
package/.turbo/turbo-build.log
DELETED
package/controller/index.cjs
DELETED
package/controller/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// Type declarations for @tamagui/sheet/controller path resolution
|
|
2
|
-
// Runtime uses exports field -> dist/esm/controller.mjs
|
|
3
|
-
|
|
4
|
-
export { SheetController } from '../src/SheetController'
|
|
5
|
-
export { SheetControllerContext, useSheetController, type SheetControllerContextValue } from '../src/useSheetController'
|
package/controller/index.js
DELETED