@hanzogui/sheet 8.3.0 → 8.3.2
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/GestureDetectorWrapper.js +23 -0
- package/dist/cjs/GestureDetectorWrapper.js.map +1 -0
- package/dist/cjs/GestureSheetContext.js +21 -0
- package/dist/cjs/GestureSheetContext.js.map +1 -0
- package/dist/cjs/Sheet.js +102 -0
- package/dist/cjs/Sheet.js.map +1 -0
- package/dist/cjs/SheetContext.js +8 -0
- package/dist/cjs/SheetContext.js.map +1 -0
- package/dist/cjs/SheetController.js +33 -0
- package/dist/cjs/SheetController.js.map +1 -0
- package/dist/cjs/SheetImplementationCustom.js +866 -0
- package/dist/cjs/SheetImplementationCustom.js.map +1 -0
- package/dist/cjs/SheetScrollView.js +278 -0
- package/dist/cjs/SheetScrollView.js.map +1 -0
- package/dist/cjs/constants.js +8 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/contexts.js +10 -0
- package/dist/cjs/contexts.js.map +1 -0
- package/dist/cjs/controller.js +11 -0
- package/dist/cjs/controller.js.map +1 -0
- package/dist/cjs/createSheet.js +153 -0
- package/dist/cjs/createSheet.js.map +1 -0
- package/dist/cjs/gestureState.js +35 -0
- package/dist/cjs/gestureState.js.map +1 -0
- package/dist/cjs/helpers.js +29 -0
- package/dist/cjs/helpers.js.map +1 -0
- package/dist/cjs/index.js +19 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/keyboardAvoidance.js +67 -0
- package/dist/cjs/keyboardAvoidance.js.map +1 -0
- package/dist/cjs/nativeSheet.js +52 -0
- package/dist/cjs/nativeSheet.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/setupGestureHandler.js +31 -0
- package/dist/cjs/setupGestureHandler.js.map +1 -0
- package/dist/cjs/types.js +3 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/cjs/useGestureHandlerPan.js +356 -0
- package/dist/cjs/useGestureHandlerPan.js.map +1 -0
- package/dist/cjs/useKeyboardControllerSheet.js +124 -0
- package/dist/cjs/useKeyboardControllerSheet.js.map +1 -0
- package/dist/cjs/useSafeAreaInsets.js +16 -0
- package/dist/cjs/useSafeAreaInsets.js.map +1 -0
- package/dist/cjs/useSheet.js +7 -0
- package/dist/cjs/useSheet.js.map +1 -0
- package/dist/cjs/useSheetController.js +19 -0
- package/dist/cjs/useSheetController.js.map +1 -0
- package/dist/cjs/useSheetOffscreenSize.js +40 -0
- package/dist/cjs/useSheetOffscreenSize.js.map +1 -0
- package/dist/cjs/useSheetOpenState.js +29 -0
- package/dist/cjs/useSheetOpenState.js.map +1 -0
- package/dist/cjs/useSheetProviderProps.js +169 -0
- package/dist/cjs/useSheetProviderProps.js.map +1 -0
- package/dist/cjs/useSheetScrollViewGestures.js +195 -0
- package/dist/cjs/useSheetScrollViewGestures.js.map +1 -0
- package/dist/cjs/webViewport.js +108 -0
- package/dist/cjs/webViewport.js.map +1 -0
- package/dist/esm/GestureDetectorWrapper.js +20 -0
- package/dist/esm/GestureDetectorWrapper.js.map +1 -0
- package/dist/esm/GestureSheetContext.js +17 -0
- package/dist/esm/GestureSheetContext.js.map +1 -0
- package/dist/esm/Sheet.js +97 -0
- package/dist/esm/Sheet.js.map +1 -0
- package/dist/esm/SheetContext.js +5 -0
- package/dist/esm/SheetContext.js.map +1 -0
- package/dist/esm/SheetController.js +28 -0
- package/dist/esm/SheetController.js.map +1 -0
- package/dist/esm/SheetImplementationCustom.js +862 -0
- package/dist/esm/SheetImplementationCustom.js.map +1 -0
- package/dist/esm/SheetScrollView.js +274 -0
- package/dist/esm/SheetScrollView.js.map +1 -0
- package/dist/esm/constants.js +5 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/contexts.js +6 -0
- package/dist/esm/contexts.js.map +1 -0
- package/dist/esm/controller.js +5 -0
- package/dist/esm/controller.js.map +1 -0
- package/dist/esm/createSheet.js +150 -0
- package/dist/esm/createSheet.js.map +1 -0
- package/dist/esm/gestureState.js +29 -0
- package/dist/esm/gestureState.js.map +1 -0
- package/dist/esm/helpers.js +26 -0
- package/dist/esm/helpers.js.map +1 -0
- package/dist/esm/index.js +13 -14
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/keyboardAvoidance.js +62 -0
- package/dist/esm/keyboardAvoidance.js.map +1 -0
- package/dist/esm/nativeSheet.js +48 -0
- package/dist/esm/nativeSheet.js.map +1 -0
- package/dist/esm/setupGestureHandler.js +27 -0
- package/dist/esm/setupGestureHandler.js.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/useGestureHandlerPan.js +353 -0
- package/dist/esm/useGestureHandlerPan.js.map +1 -0
- package/dist/esm/useKeyboardControllerSheet.js +121 -0
- package/dist/esm/useKeyboardControllerSheet.js.map +1 -0
- package/dist/esm/useSafeAreaInsets.js +11 -0
- package/dist/esm/useSafeAreaInsets.js.map +1 -0
- package/dist/esm/useSheet.js +3 -0
- package/dist/esm/useSheet.js.map +1 -0
- package/dist/esm/useSheetController.js +14 -0
- package/dist/esm/useSheetController.js.map +1 -0
- package/dist/esm/useSheetOffscreenSize.js +36 -0
- package/dist/esm/useSheetOffscreenSize.js.map +1 -0
- package/dist/esm/useSheetOpenState.js +25 -0
- package/dist/esm/useSheetOpenState.js.map +1 -0
- package/dist/esm/useSheetProviderProps.js +165 -0
- package/dist/esm/useSheetProviderProps.js.map +1 -0
- package/dist/esm/useSheetScrollViewGestures.js +192 -0
- package/dist/esm/useSheetScrollViewGestures.js.map +1 -0
- package/dist/esm/webViewport.js +98 -0
- package/dist/esm/webViewport.js.map +1 -0
- package/dist/native/GestureDetectorWrapper.js +20 -0
- package/dist/native/GestureDetectorWrapper.js.map +1 -0
- package/dist/native/GestureSheetContext.js +17 -0
- package/dist/native/GestureSheetContext.js.map +1 -0
- package/dist/native/Sheet.js +97 -0
- package/dist/native/Sheet.js.map +1 -0
- package/dist/native/SheetContext.js +5 -0
- package/dist/native/SheetContext.js.map +1 -0
- package/dist/native/SheetController.js +28 -0
- package/dist/native/SheetController.js.map +1 -0
- package/dist/native/SheetImplementationCustom.js +862 -0
- package/dist/native/SheetImplementationCustom.js.map +1 -0
- package/dist/native/SheetScrollView.js +274 -0
- package/dist/native/SheetScrollView.js.map +1 -0
- package/dist/native/constants.js +5 -0
- package/dist/native/constants.js.map +1 -0
- package/dist/native/contexts.js +6 -0
- package/dist/native/contexts.js.map +1 -0
- package/dist/native/controller.js +5 -0
- package/dist/native/controller.js.map +1 -0
- package/dist/native/createSheet.js +150 -0
- package/dist/native/createSheet.js.map +1 -0
- package/dist/native/gestureState.js +29 -0
- package/dist/native/gestureState.js.map +1 -0
- package/dist/native/helpers.js +26 -0
- package/dist/native/helpers.js.map +1 -0
- package/dist/native/index.js +13 -0
- package/dist/native/index.js.map +1 -0
- package/dist/native/keyboardAvoidance.js +62 -0
- package/dist/native/keyboardAvoidance.js.map +1 -0
- package/dist/native/nativeSheet.js +48 -0
- package/dist/native/nativeSheet.js.map +1 -0
- package/dist/native/setupGestureHandler.js +27 -0
- package/dist/native/setupGestureHandler.js.map +1 -0
- package/dist/native/types.js +2 -0
- package/dist/native/types.js.map +1 -0
- package/dist/native/useGestureHandlerPan.js +353 -0
- package/dist/native/useGestureHandlerPan.js.map +1 -0
- package/dist/native/useKeyboardControllerSheet.js +118 -0
- package/dist/native/useKeyboardControllerSheet.js.map +1 -0
- package/dist/native/useSafeAreaInsets.js +25 -0
- package/dist/native/useSafeAreaInsets.js.map +1 -0
- package/dist/native/useSheet.js +3 -0
- package/dist/native/useSheet.js.map +1 -0
- package/dist/native/useSheetController.js +14 -0
- package/dist/native/useSheetController.js.map +1 -0
- package/dist/native/useSheetOffscreenSize.js +36 -0
- package/dist/native/useSheetOffscreenSize.js.map +1 -0
- package/dist/native/useSheetOpenState.js +25 -0
- package/dist/native/useSheetOpenState.js.map +1 -0
- package/dist/native/useSheetProviderProps.js +165 -0
- package/dist/native/useSheetProviderProps.js.map +1 -0
- package/dist/native/useSheetScrollViewGestures.js +131 -0
- package/dist/native/useSheetScrollViewGestures.js.map +1 -0
- package/dist/native/webViewport.js +98 -0
- package/dist/native/webViewport.js.map +1 -0
- package/package.json +46 -49
- package/src/GestureDetectorWrapper.tsx +1 -1
- package/src/Sheet.tsx +4 -4
- package/src/SheetContext.tsx +2 -2
- package/src/SheetController.d.ts +7 -0
- package/src/SheetController.d.ts.map +1 -0
- package/src/SheetController.js +38 -0
- package/src/SheetController.js.map +1 -0
- package/src/SheetController.tsx +2 -2
- package/src/SheetImplementationCustom.tsx +14 -14
- package/src/SheetScrollView.tsx +6 -6
- package/src/controller.ts +2 -2
- package/src/createSheet.tsx +9 -9
- package/src/index.ts +12 -12
- package/src/nativeSheet.tsx +4 -4
- package/src/useGestureHandlerPan.tsx +3 -3
- package/src/useKeyboardControllerSheet.native.ts +1 -1
- package/src/useKeyboardControllerSheet.ts +2 -2
- package/src/useSafeAreaInsets.native.ts +1 -1
- package/src/useSheet.tsx +1 -1
- package/src/useSheetController.d.ts +20 -0
- package/src/useSheetController.d.ts.map +1 -0
- package/src/useSheetController.js +14 -0
- package/src/useSheetController.js.map +1 -0
- package/src/useSheetOffscreenSize.tsx +1 -1
- package/src/useSheetOpenState.tsx +2 -2
- package/src/useSheetProviderProps.tsx +2 -2
- package/src/useSheetScrollViewGestures.native.ts +1 -1
- package/src/useSheetScrollViewGestures.ts +1 -1
- package/types/GestureDetectorWrapper.d.ts +1 -1
- package/types/GestureDetectorWrapper.d.ts.map +1 -1
- package/types/GestureSheetContext.d.ts +1 -1
- package/types/GestureSheetContext.d.ts.map +1 -1
- package/types/Sheet.d.ts +81 -89
- package/types/Sheet.d.ts.map +1 -1
- package/types/SheetContext.d.ts +5 -5
- package/types/SheetContext.d.ts.map +1 -1
- package/types/SheetController.d.ts +3 -2
- package/types/SheetController.d.ts.map +1 -1
- package/types/SheetImplementationCustom.d.ts +3 -3
- package/types/SheetImplementationCustom.d.ts.map +1 -1
- package/types/SheetScrollView.d.ts +6 -6
- package/types/controller.d.ts +2 -2
- package/types/controller.d.ts.map +1 -1
- package/types/createSheet.d.ts +85 -85
- package/types/createSheet.d.ts.map +1 -1
- package/types/index.d.ts +12 -12
- package/types/index.d.ts.map +1 -1
- package/types/nativeSheet.d.ts +1 -1
- package/types/nativeSheet.d.ts.map +1 -1
- package/types/useGestureHandlerPan.d.ts +1 -1
- package/types/useGestureHandlerPan.d.ts.map +1 -1
- package/types/useKeyboardControllerSheet.d.ts +1 -1
- package/types/useKeyboardControllerSheet.d.ts.map +1 -1
- package/types/useKeyboardControllerSheet.native.d.ts +1 -1
- package/types/useKeyboardControllerSheet.native.d.ts.map +1 -1
- package/types/useSafeAreaInsets.native.d.ts +1 -1
- package/types/useSafeAreaInsets.native.d.ts.map +1 -1
- package/types/useSheet.d.ts +1 -1
- package/types/useSheet.d.ts.map +1 -1
- package/types/useSheetOffscreenSize.d.ts +1 -1
- package/types/useSheetOffscreenSize.d.ts.map +1 -1
- package/types/useSheetOpenState.d.ts +2 -2
- package/types/useSheetOpenState.d.ts.map +1 -1
- package/types/useSheetProviderProps.d.ts +3 -3
- package/types/useSheetProviderProps.d.ts.map +1 -1
- package/types/useSheetScrollViewGestures.d.ts +1 -1
- package/types/useSheetScrollViewGestures.d.ts.map +1 -1
- package/types/useSheetScrollViewGestures.native.d.ts +1 -1
- package/types/useSheetScrollViewGestures.native.d.ts.map +1 -1
- 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/GestureSheetContext.cjs +0 -54
- package/dist/cjs/GestureSheetContext.native.js +0 -58
- package/dist/cjs/GestureSheetContext.native.js.map +0 -1
- package/dist/cjs/Sheet.cjs +0 -119
- package/dist/cjs/Sheet.native.js +0 -122
- package/dist/cjs/Sheet.native.js.map +0 -1
- package/dist/cjs/SheetContext.cjs +0 -34
- package/dist/cjs/SheetContext.native.js +0 -37
- package/dist/cjs/SheetContext.native.js.map +0 -1
- package/dist/cjs/SheetController.cjs +0 -73
- package/dist/cjs/SheetController.native.js +0 -79
- package/dist/cjs/SheetController.native.js.map +0 -1
- package/dist/cjs/SheetImplementationCustom.cjs +0 -652
- package/dist/cjs/SheetImplementationCustom.native.js +0 -694
- package/dist/cjs/SheetImplementationCustom.native.js.map +0 -1
- package/dist/cjs/SheetScrollView.cjs +0 -337
- package/dist/cjs/SheetScrollView.native.js +0 -348
- package/dist/cjs/SheetScrollView.native.js.map +0 -1
- package/dist/cjs/constants.cjs +0 -34
- package/dist/cjs/constants.native.js +0 -37
- package/dist/cjs/constants.native.js.map +0 -1
- package/dist/cjs/contexts.cjs +0 -44
- package/dist/cjs/contexts.native.js +0 -47
- package/dist/cjs/contexts.native.js.map +0 -1
- package/dist/cjs/controller.cjs +0 -31
- package/dist/cjs/controller.native.js +0 -34
- package/dist/cjs/controller.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/gestureState.cjs +0 -52
- package/dist/cjs/gestureState.native.js +0 -56
- package/dist/cjs/gestureState.native.js.map +0 -1
- package/dist/cjs/helpers.cjs +0 -35
- package/dist/cjs/helpers.native.js +0 -39
- package/dist/cjs/helpers.native.js.map +0 -1
- package/dist/cjs/index.cjs +0 -41
- package/dist/cjs/index.native.js +0 -44
- package/dist/cjs/index.native.js.map +0 -1
- package/dist/cjs/keyboardAvoidance.cjs +0 -93
- package/dist/cjs/keyboardAvoidance.native.js +0 -99
- package/dist/cjs/keyboardAvoidance.native.js.map +0 -1
- package/dist/cjs/nativeSheet.cjs +0 -99
- package/dist/cjs/nativeSheet.native.js +0 -109
- package/dist/cjs/nativeSheet.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/types.cjs +0 -18
- package/dist/cjs/types.native.js +0 -21
- package/dist/cjs/types.native.js.map +0 -1
- package/dist/cjs/useGestureHandlerPan.cjs +0 -274
- package/dist/cjs/useGestureHandlerPan.native.js +0 -286
- package/dist/cjs/useGestureHandlerPan.native.js.map +0 -1
- package/dist/cjs/useKeyboardControllerSheet.cjs +0 -102
- package/dist/cjs/useKeyboardControllerSheet.native.js +0 -132
- package/dist/cjs/useKeyboardControllerSheet.native.js.map +0 -1
- package/dist/cjs/useSafeAreaInsets.cjs +0 -44
- package/dist/cjs/useSafeAreaInsets.native.js +0 -48
- package/dist/cjs/useSafeAreaInsets.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/cjs/useSheetController.cjs +0 -52
- package/dist/cjs/useSheetController.native.js +0 -55
- package/dist/cjs/useSheetController.native.js.map +0 -1
- package/dist/cjs/useSheetOffscreenSize.cjs +0 -63
- package/dist/cjs/useSheetOffscreenSize.native.js +0 -70
- package/dist/cjs/useSheetOffscreenSize.native.js.map +0 -1
- package/dist/cjs/useSheetOpenState.cjs +0 -52
- package/dist/cjs/useSheetOpenState.native.js +0 -58
- package/dist/cjs/useSheetOpenState.native.js.map +0 -1
- package/dist/cjs/useSheetProviderProps.cjs +0 -181
- package/dist/cjs/useSheetProviderProps.native.js +0 -196
- package/dist/cjs/useSheetProviderProps.native.js.map +0 -1
- package/dist/cjs/useSheetScrollViewGestures.cjs +0 -191
- package/dist/cjs/useSheetScrollViewGestures.native.js +0 -163
- package/dist/cjs/useSheetScrollViewGestures.native.js.map +0 -1
- package/dist/cjs/webViewport.cjs +0 -75
- package/dist/cjs/webViewport.native.js +0 -81
- package/dist/cjs/webViewport.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/GestureSheetContext.mjs +0 -28
- package/dist/esm/GestureSheetContext.mjs.map +0 -1
- package/dist/esm/GestureSheetContext.native.js +0 -29
- package/dist/esm/GestureSheetContext.native.js.map +0 -1
- package/dist/esm/Sheet.mjs +0 -89
- package/dist/esm/Sheet.mjs.map +0 -1
- package/dist/esm/Sheet.native.js +0 -89
- package/dist/esm/Sheet.native.js.map +0 -1
- package/dist/esm/SheetContext.mjs +0 -6
- package/dist/esm/SheetContext.mjs.map +0 -1
- package/dist/esm/SheetContext.native.js +0 -6
- package/dist/esm/SheetContext.native.js.map +0 -1
- package/dist/esm/SheetController.mjs +0 -37
- package/dist/esm/SheetController.mjs.map +0 -1
- package/dist/esm/SheetController.native.js +0 -40
- package/dist/esm/SheetController.native.js.map +0 -1
- package/dist/esm/SheetImplementationCustom.mjs +0 -611
- package/dist/esm/SheetImplementationCustom.mjs.map +0 -1
- package/dist/esm/SheetImplementationCustom.native.js +0 -643
- package/dist/esm/SheetImplementationCustom.native.js.map +0 -1
- package/dist/esm/SheetScrollView.mjs +0 -301
- package/dist/esm/SheetScrollView.mjs.map +0 -1
- package/dist/esm/SheetScrollView.native.js +0 -309
- package/dist/esm/SheetScrollView.native.js.map +0 -1
- package/dist/esm/constants.mjs +0 -6
- package/dist/esm/constants.mjs.map +0 -1
- package/dist/esm/constants.native.js +0 -6
- package/dist/esm/constants.native.js.map +0 -1
- package/dist/esm/contexts.mjs +0 -7
- package/dist/esm/contexts.mjs.map +0 -1
- package/dist/esm/contexts.native.js +0 -7
- package/dist/esm/contexts.native.js.map +0 -1
- package/dist/esm/controller.mjs +0 -4
- package/dist/esm/controller.mjs.map +0 -1
- package/dist/esm/controller.native.js +0 -4
- 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/gestureState.mjs +0 -24
- package/dist/esm/gestureState.mjs.map +0 -1
- package/dist/esm/gestureState.native.js +0 -25
- package/dist/esm/gestureState.native.js.map +0 -1
- package/dist/esm/helpers.mjs +0 -10
- package/dist/esm/helpers.mjs.map +0 -1
- package/dist/esm/helpers.native.js +0 -11
- package/dist/esm/helpers.native.js.map +0 -1
- package/dist/esm/index.mjs +0 -14
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js +0 -14
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/keyboardAvoidance.mjs +0 -66
- package/dist/esm/keyboardAvoidance.mjs.map +0 -1
- package/dist/esm/keyboardAvoidance.native.js +0 -69
- package/dist/esm/keyboardAvoidance.native.js.map +0 -1
- package/dist/esm/nativeSheet.mjs +0 -73
- package/dist/esm/nativeSheet.mjs.map +0 -1
- package/dist/esm/nativeSheet.native.js +0 -80
- package/dist/esm/nativeSheet.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 +0 -2
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js +0 -2
- package/dist/esm/types.native.js.map +0 -1
- package/dist/esm/useGestureHandlerPan.mjs +0 -249
- package/dist/esm/useGestureHandlerPan.mjs.map +0 -1
- package/dist/esm/useGestureHandlerPan.native.js +0 -258
- package/dist/esm/useGestureHandlerPan.native.js.map +0 -1
- package/dist/esm/useKeyboardControllerSheet.mjs +0 -77
- package/dist/esm/useKeyboardControllerSheet.mjs.map +0 -1
- package/dist/esm/useKeyboardControllerSheet.native.js +0 -104
- package/dist/esm/useKeyboardControllerSheet.native.js.map +0 -1
- package/dist/esm/useSafeAreaInsets.mjs +0 -7
- package/dist/esm/useSafeAreaInsets.mjs.map +0 -1
- package/dist/esm/useSafeAreaInsets.native.js +0 -8
- package/dist/esm/useSafeAreaInsets.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/esm/useSheetController.mjs +0 -15
- package/dist/esm/useSheetController.mjs.map +0 -1
- package/dist/esm/useSheetController.native.js +0 -15
- package/dist/esm/useSheetController.native.js.map +0 -1
- package/dist/esm/useSheetOffscreenSize.mjs +0 -38
- package/dist/esm/useSheetOffscreenSize.mjs.map +0 -1
- package/dist/esm/useSheetOffscreenSize.native.js +0 -42
- package/dist/esm/useSheetOffscreenSize.native.js.map +0 -1
- package/dist/esm/useSheetOpenState.mjs +0 -27
- package/dist/esm/useSheetOpenState.mjs.map +0 -1
- package/dist/esm/useSheetOpenState.native.js +0 -30
- package/dist/esm/useSheetOpenState.native.js.map +0 -1
- package/dist/esm/useSheetProviderProps.mjs +0 -145
- package/dist/esm/useSheetProviderProps.mjs.map +0 -1
- package/dist/esm/useSheetProviderProps.native.js +0 -157
- package/dist/esm/useSheetProviderProps.native.js.map +0 -1
- package/dist/esm/useSheetScrollViewGestures.mjs +0 -166
- package/dist/esm/useSheetScrollViewGestures.mjs.map +0 -1
- package/dist/esm/useSheetScrollViewGestures.native.js +0 -135
- package/dist/esm/useSheetScrollViewGestures.native.js.map +0 -1
- package/dist/esm/webViewport.mjs +0 -43
- package/dist/esm/webViewport.mjs.map +0 -1
- package/dist/esm/webViewport.native.js +0 -46
- package/dist/esm/webViewport.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/GestureSheetContext.mjs +0 -28
- package/dist/jsx/GestureSheetContext.mjs.map +0 -1
- package/dist/jsx/GestureSheetContext.native.js +0 -58
- package/dist/jsx/GestureSheetContext.native.js.map +0 -1
- package/dist/jsx/Sheet.mjs +0 -89
- package/dist/jsx/Sheet.mjs.map +0 -1
- package/dist/jsx/Sheet.native.js +0 -122
- package/dist/jsx/Sheet.native.js.map +0 -1
- package/dist/jsx/SheetContext.mjs +0 -6
- package/dist/jsx/SheetContext.mjs.map +0 -1
- package/dist/jsx/SheetContext.native.js +0 -37
- package/dist/jsx/SheetContext.native.js.map +0 -1
- package/dist/jsx/SheetController.mjs +0 -37
- package/dist/jsx/SheetController.mjs.map +0 -1
- package/dist/jsx/SheetController.native.js +0 -79
- package/dist/jsx/SheetController.native.js.map +0 -1
- package/dist/jsx/SheetImplementationCustom.mjs +0 -611
- package/dist/jsx/SheetImplementationCustom.mjs.map +0 -1
- package/dist/jsx/SheetImplementationCustom.native.js +0 -694
- package/dist/jsx/SheetImplementationCustom.native.js.map +0 -1
- package/dist/jsx/SheetScrollView.mjs +0 -301
- package/dist/jsx/SheetScrollView.mjs.map +0 -1
- package/dist/jsx/SheetScrollView.native.js +0 -348
- package/dist/jsx/SheetScrollView.native.js.map +0 -1
- package/dist/jsx/constants.mjs +0 -6
- package/dist/jsx/constants.mjs.map +0 -1
- package/dist/jsx/constants.native.js +0 -37
- package/dist/jsx/constants.native.js.map +0 -1
- package/dist/jsx/contexts.mjs +0 -7
- package/dist/jsx/contexts.mjs.map +0 -1
- package/dist/jsx/contexts.native.js +0 -47
- package/dist/jsx/contexts.native.js.map +0 -1
- package/dist/jsx/controller.mjs +0 -4
- package/dist/jsx/controller.mjs.map +0 -1
- package/dist/jsx/controller.native.js +0 -34
- package/dist/jsx/controller.native.js.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/gestureState.mjs +0 -24
- package/dist/jsx/gestureState.mjs.map +0 -1
- package/dist/jsx/gestureState.native.js +0 -56
- package/dist/jsx/gestureState.native.js.map +0 -1
- package/dist/jsx/helpers.mjs +0 -10
- package/dist/jsx/helpers.mjs.map +0 -1
- package/dist/jsx/helpers.native.js +0 -39
- package/dist/jsx/helpers.native.js.map +0 -1
- package/dist/jsx/index.js +0 -14
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs +0 -14
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/index.native.js +0 -44
- package/dist/jsx/index.native.js.map +0 -1
- package/dist/jsx/keyboardAvoidance.mjs +0 -66
- package/dist/jsx/keyboardAvoidance.mjs.map +0 -1
- package/dist/jsx/keyboardAvoidance.native.js +0 -99
- package/dist/jsx/keyboardAvoidance.native.js.map +0 -1
- package/dist/jsx/nativeSheet.mjs +0 -73
- package/dist/jsx/nativeSheet.mjs.map +0 -1
- package/dist/jsx/nativeSheet.native.js +0 -109
- package/dist/jsx/nativeSheet.native.js.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 +0 -2
- package/dist/jsx/types.mjs.map +0 -1
- package/dist/jsx/types.native.js +0 -21
- package/dist/jsx/types.native.js.map +0 -1
- package/dist/jsx/useGestureHandlerPan.mjs +0 -249
- package/dist/jsx/useGestureHandlerPan.mjs.map +0 -1
- package/dist/jsx/useGestureHandlerPan.native.js +0 -286
- package/dist/jsx/useGestureHandlerPan.native.js.map +0 -1
- package/dist/jsx/useKeyboardControllerSheet.mjs +0 -77
- package/dist/jsx/useKeyboardControllerSheet.mjs.map +0 -1
- package/dist/jsx/useKeyboardControllerSheet.native.js +0 -132
- package/dist/jsx/useKeyboardControllerSheet.native.js.map +0 -1
- package/dist/jsx/useSafeAreaInsets.mjs +0 -7
- package/dist/jsx/useSafeAreaInsets.mjs.map +0 -1
- package/dist/jsx/useSafeAreaInsets.native.js +0 -48
- package/dist/jsx/useSafeAreaInsets.native.js.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/dist/jsx/useSheetController.mjs +0 -15
- package/dist/jsx/useSheetController.mjs.map +0 -1
- package/dist/jsx/useSheetController.native.js +0 -55
- package/dist/jsx/useSheetController.native.js.map +0 -1
- package/dist/jsx/useSheetOffscreenSize.mjs +0 -38
- package/dist/jsx/useSheetOffscreenSize.mjs.map +0 -1
- package/dist/jsx/useSheetOffscreenSize.native.js +0 -70
- package/dist/jsx/useSheetOffscreenSize.native.js.map +0 -1
- package/dist/jsx/useSheetOpenState.mjs +0 -27
- package/dist/jsx/useSheetOpenState.mjs.map +0 -1
- package/dist/jsx/useSheetOpenState.native.js +0 -58
- package/dist/jsx/useSheetOpenState.native.js.map +0 -1
- package/dist/jsx/useSheetProviderProps.mjs +0 -145
- package/dist/jsx/useSheetProviderProps.mjs.map +0 -1
- package/dist/jsx/useSheetProviderProps.native.js +0 -196
- package/dist/jsx/useSheetProviderProps.native.js.map +0 -1
- package/dist/jsx/useSheetScrollViewGestures.mjs +0 -166
- package/dist/jsx/useSheetScrollViewGestures.mjs.map +0 -1
- package/dist/jsx/useSheetScrollViewGestures.native.js +0 -163
- package/dist/jsx/useSheetScrollViewGestures.native.js.map +0 -1
- package/dist/jsx/webViewport.mjs +0 -43
- package/dist/jsx/webViewport.mjs.map +0 -1
- package/dist/jsx/webViewport.native.js +0 -81
- package/dist/jsx/webViewport.native.js.map +0 -1
- 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/types/createSheet.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GetProps, ViewProps, GuiComponent, GuiComponentExpectingVariants } from '@hanzogui/core';
|
|
2
2
|
import type { ForwardRefExoticComponent, FunctionComponent, RefAttributes } from 'react';
|
|
3
3
|
import type { View as RNView } from 'react-native';
|
|
4
|
-
import type { SheetProps, SheetScopedProps } from './types';
|
|
4
|
+
import type { SheetProps, SheetScopedProps } from './types.tsx';
|
|
5
5
|
type SharedSheetProps = {
|
|
6
6
|
open?: boolean;
|
|
7
7
|
};
|
|
@@ -18,8 +18,8 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
18
18
|
position?: number;
|
|
19
19
|
defaultPosition?: number;
|
|
20
20
|
snapPoints?: (string | number)[];
|
|
21
|
-
snapPointsMode?: import("./types").SnapPointsMode;
|
|
22
|
-
onPositionChange?: import("./types").PositionChangeHandler;
|
|
21
|
+
snapPointsMode?: import("./types.tsx").SnapPointsMode;
|
|
22
|
+
onPositionChange?: import("./types.tsx").PositionChangeHandler;
|
|
23
23
|
children?: import("react").ReactNode;
|
|
24
24
|
dismissOnOverlayPress?: boolean;
|
|
25
25
|
dismissOnSnapToBottom?: boolean;
|
|
@@ -29,7 +29,7 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
29
29
|
preferAdaptParentOpenState?: boolean;
|
|
30
30
|
unmountChildrenWhenHidden?: boolean;
|
|
31
31
|
disableTransparencyHide?: boolean;
|
|
32
|
-
native?:
|
|
32
|
+
native?: 'ios'[] | boolean;
|
|
33
33
|
transition?: import("@hanzogui/web").TransitionProp;
|
|
34
34
|
handleDisableScroll?: boolean;
|
|
35
35
|
disableDrag?: boolean;
|
|
@@ -44,7 +44,79 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
44
44
|
} & {
|
|
45
45
|
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
46
46
|
} & RefAttributes<RNView>> & {
|
|
47
|
-
|
|
47
|
+
Frame: ForwardRefExoticComponent<SheetScopedProps<Omit<GetProps<F>, keyof {
|
|
48
|
+
/**
|
|
49
|
+
* by default the sheet adds a view below its bottom that extends past the
|
|
50
|
+
* largest visible viewport height. this covers spring overshoot when opening
|
|
51
|
+
* so page content never shows through below the sheet.
|
|
52
|
+
*/
|
|
53
|
+
disableHideBottomOverflow?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Adds padding accounting for the currently offscreen content, so if you put a flex element inside
|
|
56
|
+
* the sheet, it will always flex to the height of the visible amount of the sheet. If this is not
|
|
57
|
+
* turned on, the inner content is always set to the max height of the sheet.
|
|
58
|
+
*/
|
|
59
|
+
adjustPaddingForOffscreenContent?: boolean;
|
|
60
|
+
}> & {
|
|
61
|
+
/**
|
|
62
|
+
* by default the sheet adds a view below its bottom that extends past the
|
|
63
|
+
* largest visible viewport height. this covers spring overshoot when opening
|
|
64
|
+
* so page content never shows through below the sheet.
|
|
65
|
+
*/
|
|
66
|
+
disableHideBottomOverflow?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Adds padding accounting for the currently offscreen content, so if you put a flex element inside
|
|
69
|
+
* the sheet, it will always flex to the height of the visible amount of the sheet. If this is not
|
|
70
|
+
* turned on, the inner content is always set to the max height of the sheet.
|
|
71
|
+
*/
|
|
72
|
+
adjustPaddingForOffscreenContent?: boolean;
|
|
73
|
+
}>>;
|
|
74
|
+
Overlay: GuiComponent<Omit<any, "__scopeSheet"> & {
|
|
75
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
76
|
+
}, any, any, any, SharedSheetProps, {}> | GuiComponent<Omit<any, "__scopeSheet"> & {
|
|
77
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
78
|
+
}, any, {
|
|
79
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
80
|
+
}, {}, {}, {}>;
|
|
81
|
+
Handle: GuiComponent<any, any, any, any, SharedSheetProps, {}> | GuiComponent<any, any, any, {}, {}, {}>;
|
|
82
|
+
ScrollView: ForwardRefExoticComponent<Omit<import("@hanzogui/web").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, "contentContainerStyle" | "fullscreen" | keyof import("@hanzogui/web").StackStyleBase> & import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
83
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
84
|
+
accept: {
|
|
85
|
+
readonly contentContainerStyle: 'style';
|
|
86
|
+
};
|
|
87
|
+
}>> | undefined;
|
|
88
|
+
}> & {
|
|
89
|
+
fullscreen?: boolean | undefined;
|
|
90
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
91
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
92
|
+
accept: {
|
|
93
|
+
readonly contentContainerStyle: 'style';
|
|
94
|
+
};
|
|
95
|
+
}>> | undefined;
|
|
96
|
+
}>> & import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
97
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
98
|
+
accept: {
|
|
99
|
+
readonly contentContainerStyle: 'style';
|
|
100
|
+
};
|
|
101
|
+
}>> | undefined;
|
|
102
|
+
}> & {
|
|
103
|
+
fullscreen?: boolean | undefined;
|
|
104
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
105
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
106
|
+
accept: {
|
|
107
|
+
readonly contentContainerStyle: 'style';
|
|
108
|
+
};
|
|
109
|
+
}>> | undefined;
|
|
110
|
+
}>>> & import("@hanzogui/web").WithMediaProps<import("@hanzogui/web").WithThemeShorthandsAndPseudos<import("@hanzogui/web").StackStyleBase & {
|
|
111
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
112
|
+
accept: {
|
|
113
|
+
readonly contentContainerStyle: 'style';
|
|
114
|
+
};
|
|
115
|
+
}>> | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
fullscreen?: boolean | undefined;
|
|
118
|
+
}>> & RefAttributes<import("react-native").ScrollView>>;
|
|
119
|
+
Controlled: FunctionComponent<Omit<SheetProps, "onOpenChange" | "open"> & RefAttributes<RNView>> & {
|
|
48
120
|
Frame: ForwardRefExoticComponent<SheetScopedProps<Omit<GetProps<F>, keyof {
|
|
49
121
|
/**
|
|
50
122
|
* by default the sheet adds a view below its bottom that extends past the
|
|
@@ -72,18 +144,18 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
72
144
|
*/
|
|
73
145
|
adjustPaddingForOffscreenContent?: boolean;
|
|
74
146
|
}>>;
|
|
75
|
-
Overlay: GuiComponent<Omit<
|
|
147
|
+
Overlay: GuiComponent<Omit<any, "__scopeSheet"> & {
|
|
76
148
|
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
77
|
-
}, any, any, any, SharedSheetProps, {}> | GuiComponent<Omit<
|
|
149
|
+
}, any, any, any, SharedSheetProps, {}> | GuiComponent<Omit<any, "__scopeSheet"> & {
|
|
78
150
|
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
79
151
|
}, any, {
|
|
80
152
|
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
81
153
|
}, {}, {}, {}>;
|
|
82
154
|
Handle: GuiComponent<any, any, any, any, SharedSheetProps, {}> | GuiComponent<any, any, any, {}, {}, {}>;
|
|
83
|
-
ScrollView: ForwardRefExoticComponent<Omit<import("@hanzogui/web").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/web").StackStyleBase
|
|
155
|
+
ScrollView: ForwardRefExoticComponent<Omit<import("@hanzogui/web").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, "contentContainerStyle" | "fullscreen" | keyof import("@hanzogui/web").StackStyleBase> & import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
84
156
|
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
85
157
|
accept: {
|
|
86
|
-
readonly contentContainerStyle:
|
|
158
|
+
readonly contentContainerStyle: 'style';
|
|
87
159
|
};
|
|
88
160
|
}>> | undefined;
|
|
89
161
|
}> & {
|
|
@@ -91,13 +163,13 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
91
163
|
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
92
164
|
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
93
165
|
accept: {
|
|
94
|
-
readonly contentContainerStyle:
|
|
166
|
+
readonly contentContainerStyle: 'style';
|
|
95
167
|
};
|
|
96
168
|
}>> | undefined;
|
|
97
169
|
}>> & import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
98
170
|
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
99
171
|
accept: {
|
|
100
|
-
readonly contentContainerStyle:
|
|
172
|
+
readonly contentContainerStyle: 'style';
|
|
101
173
|
};
|
|
102
174
|
}>> | undefined;
|
|
103
175
|
}> & {
|
|
@@ -105,91 +177,19 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
105
177
|
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
106
178
|
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
107
179
|
accept: {
|
|
108
|
-
readonly contentContainerStyle:
|
|
180
|
+
readonly contentContainerStyle: 'style';
|
|
109
181
|
};
|
|
110
182
|
}>> | undefined;
|
|
111
183
|
}>>> & import("@hanzogui/web").WithMediaProps<import("@hanzogui/web").WithThemeShorthandsAndPseudos<import("@hanzogui/web").StackStyleBase & {
|
|
112
184
|
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
113
185
|
accept: {
|
|
114
|
-
readonly contentContainerStyle:
|
|
186
|
+
readonly contentContainerStyle: 'style';
|
|
115
187
|
};
|
|
116
188
|
}>> | undefined;
|
|
117
189
|
}, {
|
|
118
190
|
fullscreen?: boolean | undefined;
|
|
119
191
|
}>> & RefAttributes<import("react-native").ScrollView>>;
|
|
120
192
|
};
|
|
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: GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
149
|
-
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
150
|
-
}, any, any, any, SharedSheetProps, {}> | GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
151
|
-
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
152
|
-
}, any, {
|
|
153
|
-
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
154
|
-
}, {}, {}, {}>;
|
|
155
|
-
Handle: GuiComponent<any, any, any, any, SharedSheetProps, {}> | GuiComponent<any, any, any, {}, {}, {}>;
|
|
156
|
-
ScrollView: ForwardRefExoticComponent<Omit<import("@hanzogui/web").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/web").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
157
|
-
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
158
|
-
accept: {
|
|
159
|
-
readonly contentContainerStyle: "style";
|
|
160
|
-
};
|
|
161
|
-
}>> | undefined;
|
|
162
|
-
}> & {
|
|
163
|
-
fullscreen?: boolean | undefined;
|
|
164
|
-
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
165
|
-
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
166
|
-
accept: {
|
|
167
|
-
readonly contentContainerStyle: "style";
|
|
168
|
-
};
|
|
169
|
-
}>> | undefined;
|
|
170
|
-
}>> & import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
171
|
-
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
172
|
-
accept: {
|
|
173
|
-
readonly contentContainerStyle: "style";
|
|
174
|
-
};
|
|
175
|
-
}>> | undefined;
|
|
176
|
-
}> & {
|
|
177
|
-
fullscreen?: boolean | undefined;
|
|
178
|
-
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
179
|
-
readonly contentContainerStyle?: Partial<import("@hanzogui/web").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
180
|
-
accept: {
|
|
181
|
-
readonly contentContainerStyle: "style";
|
|
182
|
-
};
|
|
183
|
-
}>> | undefined;
|
|
184
|
-
}>>> & import("@hanzogui/web").WithMediaProps<import("@hanzogui/web").WithThemeShorthandsAndPseudos<import("@hanzogui/web").StackStyleBase & {
|
|
185
|
-
readonly contentContainerStyle?: Partial<import("@hanzogui/web").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
193
|
};
|
|
194
194
|
export {};
|
|
195
195
|
//# sourceMappingURL=createSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSheet.d.ts","sourceRoot":"","sources":["../src/createSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,6BAA6B,EAE9B,MAAM,gBAAgB,CAAA;AAOvB,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,
|
|
1
|
+
{"version":3,"file":"createSheet.d.ts","sourceRoot":"","sources":["../src/createSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,6BAA6B,EAE9B,MAAM,gBAAgB,CAAA;AAOvB,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,aAAa,CAAA;AAK/D,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,KAAK,SAAS,GAAG,SAAS,GAAG,gBAAgB,CAAA;AAE7C,KAAK,oBAAoB,GAAG,6BAA6B,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAA;AAEtF,wBAAgB,WAAW,CACzB,CAAC,SAAS,YAAY,GAAG,oBAAoB,EAC7C,CAAC,SAAS,YAAY,GAAG,oBAAoB,EAC7C,CAAC,SAAS,YAAY,GAAG,oBAAoB,EAC7C,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,CAAC,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAkG7D;;;;WAIG;oCACyB,OAAO;QAEnC;;;;WAIG;2CACgC,OAAO;;QAZ1C;;;;WAIG;;QAGH;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAXH;;;;eAIG;;YAGH;;;;eAIG;;;YAXH;;;;eAIG;;YAGH;;;;eAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4JN"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from './Sheet';
|
|
2
|
-
export * from './useSheet';
|
|
3
|
-
export * from './createSheet';
|
|
4
|
-
export * from './SheetController';
|
|
5
|
-
export * from './useSheetController';
|
|
6
|
-
export * from './useSheetOpenState';
|
|
7
|
-
export * from './useSheetOffscreenSize';
|
|
8
|
-
export * from './SheetScrollView';
|
|
9
|
-
export * from './nativeSheet';
|
|
10
|
-
export * from './types';
|
|
11
|
-
export * from './contexts';
|
|
12
|
-
export { getGestureHandlerState as unstable_getSheetGestureHandlerState, isGestureHandlerEnabled as unstable_isSheetGestureHandlerEnabled, } from './gestureState';
|
|
1
|
+
export * from './Sheet.tsx';
|
|
2
|
+
export * from './useSheet.tsx';
|
|
3
|
+
export * from './createSheet.tsx';
|
|
4
|
+
export * from './SheetController.tsx';
|
|
5
|
+
export * from './useSheetController.tsx';
|
|
6
|
+
export * from './useSheetOpenState.tsx';
|
|
7
|
+
export * from './useSheetOffscreenSize.tsx';
|
|
8
|
+
export * from './SheetScrollView.tsx';
|
|
9
|
+
export * from './nativeSheet.tsx';
|
|
10
|
+
export * from './types.tsx';
|
|
11
|
+
export * from './contexts.ts';
|
|
12
|
+
export { getGestureHandlerState as unstable_getSheetGestureHandlerState, isGestureHandlerEnabled as unstable_isSheetGestureHandlerEnabled, } from './gestureState.ts';
|
|
13
13
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,OAAO,EACL,sBAAsB,IAAI,oCAAoC,EAC9D,uBAAuB,IAAI,qCAAqC,GACjE,MAAM,mBAAmB,CAAA"}
|
package/types/nativeSheet.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FunctionComponent } from 'react';
|
|
2
|
-
import type { SheetProps } from './types';
|
|
2
|
+
import type { SheetProps } from './types.tsx';
|
|
3
3
|
type SheetNativePlatforms = 'ios';
|
|
4
4
|
export declare function getNativeSheet(platform: SheetNativePlatforms): FunctionComponent<SheetProps> | null;
|
|
5
5
|
export declare function setupNativeSheet(platform: SheetNativePlatforms, RNIOSModal: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeSheet.d.ts","sourceRoot":"","sources":["../src/nativeSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAI9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"nativeSheet.d.ts","sourceRoot":"","sources":["../src/nativeSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAI9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAM7C,KAAK,oBAAoB,GAAG,KAAK,CAAA;AAMjC,wBAAgB,cAAc,CAAC,QAAQ,EAAE,oBAAoB,wCAE5D;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,oBAAoB,EAC9B,UAAU,EAAE;IAAE,cAAc,EAAE,GAAG,CAAC;IAAC,yBAAyB,EAAE,GAAG,CAAA;CAAE,QAoEpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGestureHandlerPan.d.ts","sourceRoot":"","sources":["../src/useGestureHandlerPan.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAG/E,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useGestureHandlerPan.d.ts","sourceRoot":"","sources":["../src/useGestureHandlerPan.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAG/E,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAO/D,UAAU,gBAAgB;IACxB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,GAAG,KAAK,IAAI,CAAA;IACzD,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,YAAY,EAAE,YAAY,CAAA;IAC1B,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,kBAAkB,EAAE,MAAM,MAAM,CAAA;IAChC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAE3B,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAE1C,gBAAgB,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;IAExC,oBAAoB,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;CAC1C;AAED,UAAU,gBAAgB;IACxB,UAAU,EAAE,GAAG,GAAG,IAAI,CAAA;IACtB,aAAa,EAAE,SAAS,CAAC,GAAG,CAAC,CAAA;IAC7B,qBAAqB,EAAE,OAAO,CAAA;CAC/B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,CA4W/E"}
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* content sized off window dimensions collapses while the sheet's bottom stays
|
|
14
14
|
* occluded. See SheetImplementationCustom's activePositions / keyboardOccludedHeight.
|
|
15
15
|
*/
|
|
16
|
-
import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types';
|
|
16
|
+
import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types.tsx';
|
|
17
17
|
export declare function useKeyboardControllerSheet(options: KeyboardControllerSheetOptions): KeyboardControllerSheetResult;
|
|
18
18
|
//# sourceMappingURL=useKeyboardControllerSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardControllerSheet.d.ts","sourceRoot":"","sources":["../src/useKeyboardControllerSheet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,
|
|
1
|
+
{"version":3,"file":"useKeyboardControllerSheet.d.ts","sourceRoot":"","sources":["../src/useKeyboardControllerSheet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,aAAa,CAAA;AAQpB,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,8BAA8B,GACtC,6BAA6B,CA+G/B"}
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* Uses react-native-keyboard-controller events when available,
|
|
9
9
|
* falls back to basic Keyboard API otherwise.
|
|
10
10
|
*/
|
|
11
|
-
import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types';
|
|
11
|
+
import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types.tsx';
|
|
12
12
|
export declare function useKeyboardControllerSheet(options: KeyboardControllerSheetOptions): KeyboardControllerSheetResult;
|
|
13
13
|
//# sourceMappingURL=useKeyboardControllerSheet.native.d.ts.map
|
|
@@ -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,
|
|
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,aAAa,CAAA;AAcpB,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,8BAA8B,GACtC,6BAA6B,CAuG/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { SafeAreaInsets } from './useSafeAreaInsets';
|
|
2
|
+
import type { SafeAreaInsets } from './useSafeAreaInsets.ts';
|
|
3
3
|
export declare const SafeAreaInsetsContext: React.Context<SafeAreaInsets | null>;
|
|
4
4
|
/**
|
|
5
5
|
* Live safe-area insets (notch / status bar / home indicator) read from the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSafeAreaInsets.native.d.ts","sourceRoot":"","sources":["../src/useSafeAreaInsets.native.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSafeAreaInsets.native.d.ts","sourceRoot":"","sources":["../src/useSafeAreaInsets.native.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAK5D,eAAO,MAAM,qBAAqB,EACM,KAAK,CAAC,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;AAE5E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,GAAG,IAAI,CAEzD"}
|
package/types/useSheet.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useSheet: () => import("./useSheetProviderProps").SheetContextValue;
|
|
1
|
+
export declare const useSheet: () => import("./useSheetProviderProps.tsx").SheetContextValue;
|
|
2
2
|
//# sourceMappingURL=useSheet.d.ts.map
|
package/types/useSheet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheet.d.ts","sourceRoot":"","sources":["../src/useSheet.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"useSheet.d.ts","sourceRoot":"","sources":["../src/useSheet.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,+DAAuC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SheetContextValue } from './useSheetProviderProps';
|
|
1
|
+
import type { SheetContextValue } from './useSheetProviderProps.tsx';
|
|
2
2
|
export declare const useSheetOffscreenSize: ({ snapPoints, position, screenSize, frameSize, snapPointsMode, }: SheetContextValue) => number;
|
|
3
3
|
//# sourceMappingURL=useSheetOffscreenSize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetOffscreenSize.d.ts","sourceRoot":"","sources":["../src/useSheetOffscreenSize.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSheetOffscreenSize.d.ts","sourceRoot":"","sources":["../src/useSheetOffscreenSize.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAEpE,eAAO,MAAM,qBAAqB,qEAM/B,iBAAiB,WAwCnB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { SheetProps } from './types';
|
|
1
|
+
import type { SheetProps } from './types.tsx';
|
|
2
2
|
export declare const useSheetOpenState: (props: SheetProps) => {
|
|
3
3
|
open: boolean;
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
isHidden: boolean | undefined;
|
|
6
|
-
controller: import("./useSheetController").SheetControllerContextValue | null;
|
|
6
|
+
controller: import("./useSheetController.tsx").SheetControllerContextValue | null;
|
|
7
7
|
};
|
|
8
8
|
export type SheetOpenState = ReturnType<typeof useSheetOpenState>;
|
|
9
9
|
//# sourceMappingURL=useSheetOpenState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetOpenState.d.ts","sourceRoot":"","sources":["../src/useSheetOpenState.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSheetOpenState.d.ts","sourceRoot":"","sources":["../src/useSheetOpenState.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,eAAO,MAAM,iBAAiB,UAAW,UAAU;;;;;CAyBlD,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { GuiElement } from '@hanzogui/core';
|
|
3
|
-
import type { ScrollBridge, SheetProps } from './types';
|
|
4
|
-
import type { SheetOpenState } from './useSheetOpenState';
|
|
3
|
+
import type { ScrollBridge, SheetProps } from './types.tsx';
|
|
4
|
+
import type { SheetOpenState } from './useSheetOpenState.tsx';
|
|
5
5
|
export type SheetContextValue = ReturnType<typeof useSheetProviderProps> & {
|
|
6
6
|
keyboardOccludedHeight: number;
|
|
7
7
|
isKeyboardVisible: boolean;
|
|
@@ -30,7 +30,7 @@ export declare function useSheetProviderProps(props: SheetProps, state: SheetOpe
|
|
|
30
30
|
hasFit: boolean;
|
|
31
31
|
position: number;
|
|
32
32
|
snapPoints: (string | number)[];
|
|
33
|
-
snapPointsMode: import("./types").SnapPointsMode;
|
|
33
|
+
snapPointsMode: import("./types.tsx").SnapPointsMode;
|
|
34
34
|
setMaxContentSize: React.Dispatch<React.SetStateAction<number>>;
|
|
35
35
|
setPosition: (next: number) => void;
|
|
36
36
|
setPositionImmediate: React.Dispatch<React.SetStateAction<number>>;
|
|
@@ -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,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAKhD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSheetProviderProps.d.ts","sourceRoot":"","sources":["../src/useSheetProviderProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAKhD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAE7D,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,CACnC,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,cAAc,EACrB,OAAO,GAAE;IACP,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAA;CACpC;;;;;;;;;;;;;;;gCADwB,GAAG,KAAK,IAAI;;;;;;;wBAoCjC,MAAM;;;EAyKhB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ScrollView as RNScrollView } from 'react-native';
|
|
2
|
-
import type { ScrollBridge } from './types';
|
|
2
|
+
import type { ScrollBridge } from './types.tsx';
|
|
3
3
|
interface UseSheetScrollViewGesturesProps {
|
|
4
4
|
scrollRef: React.RefObject<RNScrollView | null>;
|
|
5
5
|
scrollBridge: ScrollBridge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetScrollViewGestures.d.ts","sourceRoot":"","sources":["../src/useSheetScrollViewGestures.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSheetScrollViewGestures.d.ts","sourceRoot":"","sources":["../src/useSheetScrollViewGestures.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc/C,UAAU,+BAA+B;IACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,CAAA;IAC/C,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GestureResponderEvent, ScrollView as RNScrollView } from 'react-native';
|
|
2
|
-
import type { ScrollBridge } from './types';
|
|
2
|
+
import type { ScrollBridge } from './types.tsx';
|
|
3
3
|
interface UseSheetScrollViewGesturesProps {
|
|
4
4
|
scrollRef: React.RefObject<RNScrollView | null>;
|
|
5
5
|
scrollBridge: ScrollBridge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSheetScrollViewGestures.native.d.ts","sourceRoot":"","sources":["../src/useSheetScrollViewGestures.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useSheetScrollViewGestures.native.d.ts","sourceRoot":"","sources":["../src/useSheetScrollViewGestures.native.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AACrF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc/C,UAAU,+BAA+B;IACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,YAAY,GAAG,IAAI,CAAC,CAAA;IAC/C,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;CAC9D;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,YAAY,EACZ,oBAAoB,EACpB,aAAa,EACb,gBAAgB,GACjB,EAAE,+BAA+B;;;kCAiDK,qBAAqB;yBAW9B,qBAAqB;EAyElD"}
|
package/controller/index.cjs
DELETED
package/controller/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// Type declarations for @hanzogui/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
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var GestureDetectorWrapper_exports = {};
|
|
24
|
-
__export(GestureDetectorWrapper_exports, {
|
|
25
|
-
GestureDetectorWrapper: () => GestureDetectorWrapper
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(GestureDetectorWrapper_exports);
|
|
28
|
-
var import_react_native = require("react-native-web");
|
|
29
|
-
var import_gestureState = require("./gestureState.cjs");
|
|
30
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
function GestureDetectorWrapper({
|
|
32
|
-
gesture,
|
|
33
|
-
children,
|
|
34
|
-
style
|
|
35
|
-
}) {
|
|
36
|
-
const {
|
|
37
|
-
GestureDetector
|
|
38
|
-
} = (0, import_gestureState.getGestureHandlerState)();
|
|
39
|
-
const enabled = (0, import_gestureState.isGestureHandlerEnabled)();
|
|
40
|
-
if (enabled && GestureDetector && gesture) {
|
|
41
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureDetector, {
|
|
42
|
-
gesture,
|
|
43
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
44
|
-
style,
|
|
45
|
-
collapsable: false,
|
|
46
|
-
children
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
51
|
-
style,
|
|
52
|
-
children
|
|
53
|
-
});
|
|
54
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var GestureDetectorWrapper_exports = {};
|
|
26
|
-
__export(GestureDetectorWrapper_exports, {
|
|
27
|
-
GestureDetectorWrapper: () => GestureDetectorWrapper
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(GestureDetectorWrapper_exports);
|
|
30
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
var import_react_native = require("react-native");
|
|
32
|
-
var import_gestureState = require("./gestureState.native.js");
|
|
33
|
-
function GestureDetectorWrapper(param) {
|
|
34
|
-
var {
|
|
35
|
-
gesture,
|
|
36
|
-
children,
|
|
37
|
-
style
|
|
38
|
-
} = param;
|
|
39
|
-
var {
|
|
40
|
-
GestureDetector
|
|
41
|
-
} = (0, import_gestureState.getGestureHandlerState)();
|
|
42
|
-
var enabled = (0, import_gestureState.isGestureHandlerEnabled)();
|
|
43
|
-
if (enabled && GestureDetector && gesture) {
|
|
44
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureDetector, {
|
|
45
|
-
gesture,
|
|
46
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
47
|
-
style,
|
|
48
|
-
collapsable: false,
|
|
49
|
-
children
|
|
50
|
-
})
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
54
|
-
style,
|
|
55
|
-
children
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=GestureDetectorWrapper.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","GestureDetectorWrapper_exports","__export","GestureDetectorWrapper","module","exports","import_jsx_runtime","require","import_react_native","import_gestureState","param","gesture","children","style","GestureDetector","getGestureHandlerState","enabled","isGestureHandlerEnabled","jsx","View","collapsable"],"sources":["../../src/GestureDetectorWrapper.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,8BAAA;AAAAC,QAAA,CAAAD,8BAAA;EAAAE,sBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAqC,CAAAK,8BAAA;AACrC,IAAAK,kBAAA,GAAAC,OAAgE;AA0BxD,IAAAC,mBAAA,GAAAD,OAAA;AAdD,IAAAE,mBAAS,GAAAF,OAAuB;AAAA,SACrCJ,uBAAAO,KAAA;EACA;IAAAC,OAAA;IAAAC,QAAA;IAAAC;EAAA,IAAAH,KAAA;EACA;IAAAI;EAAA,QAAAL,mBAAA,CAAAM,sBAAA;EACF,IAAgCC,OAAA,OAAAP,mBAAA,CAAAQ,uBAAA;EAC9B,IAAAD,OAAQ,IAAAF,eAAgB,IAAIH,OAAA;IAC5B,OAAM,eAAU,IAAAL,kBAAA,CAAAY,GAAA,EAAAJ,eAAwB;MAGpCH,OAAA;MAGFC,QACE,qBAAAN,kBAAA,CAACY,GAAA,EAAAV,mBAAgB,CAAAW,IACf;QAKNN,KAAA;QAGAO,WAAO;QACTR","ignoreList":[]}
|