@hanzogui/sheet 3.0.2 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/controller/index.cjs +1 -1
- package/controller/index.native.cjs +1 -1
- package/next.md +2 -2
- package/package.json +24 -24
- package/setup-gesture-handler/index.cjs +1 -1
- package/setup-gesture-handler/index.native.cjs +1 -1
- package/src/Sheet.tsx +3 -3
- package/src/SheetController.tsx +4 -1
- package/src/SheetImplementationCustom.tsx +24 -13
- package/src/createSheet.tsx +9 -9
- package/src/setupGestureHandler.ts +2 -2
- package/src/useSheetController.tsx +4 -0
- package/src/useSheetProviderProps.tsx +4 -4
- package/types/Sheet.d.ts +51 -51
- package/types/SheetContext.d.ts +8 -8
- package/types/SheetController.d.ts +1 -1
- package/types/SheetImplementationCustom.d.ts +4 -4
- package/types/SheetScrollView.d.ts +10 -10
- package/types/createSheet.d.ts +39 -39
- package/types/gestureState.d.ts +3 -3
- package/types/setupGestureHandler.d.ts +1 -1
- package/types/types.d.ts +4 -4
- package/types/useSheetController.d.ts +3 -0
- package/types/useSheetProviderProps.d.ts +4 -4
- package/dist/cjs/GestureDetectorWrapper.cjs +0 -48
- package/dist/cjs/GestureDetectorWrapper.native.js +0 -53
- package/dist/cjs/GestureDetectorWrapper.native.js.map +0 -1
- package/dist/cjs/GestureSheetContext.cjs +0 -52
- package/dist/cjs/GestureSheetContext.native.js +0 -56
- package/dist/cjs/GestureSheetContext.native.js.map +0 -1
- package/dist/cjs/Sheet.cjs +0 -117
- package/dist/cjs/Sheet.native.js +0 -120
- package/dist/cjs/Sheet.native.js.map +0 -1
- package/dist/cjs/SheetContext.cjs +0 -32
- package/dist/cjs/SheetContext.native.js +0 -35
- package/dist/cjs/SheetContext.native.js.map +0 -1
- package/dist/cjs/SheetController.cjs +0 -65
- package/dist/cjs/SheetController.native.js +0 -71
- package/dist/cjs/SheetController.native.js.map +0 -1
- package/dist/cjs/SheetImplementationCustom.cjs +0 -472
- package/dist/cjs/SheetImplementationCustom.native.js +0 -524
- package/dist/cjs/SheetImplementationCustom.native.js.map +0 -1
- package/dist/cjs/SheetScrollView.cjs +0 -180
- package/dist/cjs/SheetScrollView.native.js +0 -197
- package/dist/cjs/SheetScrollView.native.js.map +0 -1
- package/dist/cjs/constants.cjs +0 -32
- package/dist/cjs/constants.native.js +0 -35
- package/dist/cjs/constants.native.js.map +0 -1
- package/dist/cjs/contexts.cjs +0 -42
- package/dist/cjs/contexts.native.js +0 -45
- package/dist/cjs/contexts.native.js.map +0 -1
- package/dist/cjs/controller.cjs +0 -29
- package/dist/cjs/controller.native.js +0 -32
- package/dist/cjs/controller.native.js.map +0 -1
- package/dist/cjs/createSheet.cjs +0 -191
- package/dist/cjs/createSheet.native.js +0 -208
- package/dist/cjs/createSheet.native.js.map +0 -1
- package/dist/cjs/gestureState.cjs +0 -39
- package/dist/cjs/gestureState.native.js +0 -42
- package/dist/cjs/gestureState.native.js.map +0 -1
- package/dist/cjs/helpers.cjs +0 -31
- package/dist/cjs/helpers.native.js +0 -35
- package/dist/cjs/helpers.native.js.map +0 -1
- package/dist/cjs/index.cjs +0 -28
- package/dist/cjs/index.native.js +0 -31
- package/dist/cjs/index.native.js.map +0 -1
- package/dist/cjs/nativeSheet.cjs +0 -87
- package/dist/cjs/nativeSheet.native.js +0 -101
- package/dist/cjs/nativeSheet.native.js.map +0 -1
- package/dist/cjs/setupGestureHandler.cjs +0 -46
- package/dist/cjs/setupGestureHandler.native.js +0 -50
- package/dist/cjs/setupGestureHandler.native.js.map +0 -1
- package/dist/cjs/types.cjs +0 -16
- package/dist/cjs/types.native.js +0 -19
- package/dist/cjs/types.native.js.map +0 -1
- package/dist/cjs/useGestureHandlerPan.cjs +0 -136
- package/dist/cjs/useGestureHandlerPan.native.js +0 -145
- package/dist/cjs/useGestureHandlerPan.native.js.map +0 -1
- package/dist/cjs/useKeyboardControllerSheet.cjs +0 -38
- package/dist/cjs/useKeyboardControllerSheet.native.js +0 -114
- package/dist/cjs/useKeyboardControllerSheet.native.js.map +0 -1
- package/dist/cjs/useSheet.cjs +0 -27
- package/dist/cjs/useSheet.native.js +0 -32
- package/dist/cjs/useSheet.native.js.map +0 -1
- package/dist/cjs/useSheetController.cjs +0 -50
- package/dist/cjs/useSheetController.native.js +0 -53
- package/dist/cjs/useSheetController.native.js.map +0 -1
- package/dist/cjs/useSheetOffscreenSize.cjs +0 -51
- package/dist/cjs/useSheetOffscreenSize.native.js +0 -61
- package/dist/cjs/useSheetOffscreenSize.native.js.map +0 -1
- package/dist/cjs/useSheetOpenState.cjs +0 -49
- package/dist/cjs/useSheetOpenState.native.js +0 -56
- package/dist/cjs/useSheetOpenState.native.js.map +0 -1
- package/dist/cjs/useSheetProviderProps.cjs +0 -133
- package/dist/cjs/useSheetProviderProps.native.js +0 -153
- package/dist/cjs/useSheetProviderProps.native.js.map +0 -1
- package/dist/cjs/useSheetScrollViewGestures.cjs +0 -123
- package/dist/cjs/useSheetScrollViewGestures.native.js +0 -110
- package/dist/cjs/useSheetScrollViewGestures.native.js.map +0 -1
- package/dist/esm/GestureDetectorWrapper.mjs +0 -25
- package/dist/esm/GestureDetectorWrapper.mjs.map +0 -1
- package/dist/esm/GestureDetectorWrapper.native.js +0 -27
- 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 -31
- package/dist/esm/SheetController.mjs.map +0 -1
- package/dist/esm/SheetController.native.js +0 -34
- package/dist/esm/SheetController.native.js.map +0 -1
- package/dist/esm/SheetImplementationCustom.mjs +0 -437
- package/dist/esm/SheetImplementationCustom.mjs.map +0 -1
- package/dist/esm/SheetImplementationCustom.native.js +0 -487
- package/dist/esm/SheetImplementationCustom.native.js.map +0 -1
- package/dist/esm/SheetScrollView.mjs +0 -146
- package/dist/esm/SheetScrollView.mjs.map +0 -1
- package/dist/esm/SheetScrollView.native.js +0 -160
- 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 -182
- package/dist/esm/createSheet.native.js.map +0 -1
- package/dist/esm/gestureState.mjs +0 -13
- package/dist/esm/gestureState.mjs.map +0 -1
- package/dist/esm/gestureState.native.js +0 -13
- package/dist/esm/gestureState.native.js.map +0 -1
- package/dist/esm/helpers.mjs +0 -8
- package/dist/esm/helpers.mjs.map +0 -1
- package/dist/esm/helpers.native.js +0 -9
- package/dist/esm/helpers.native.js.map +0 -1
- package/dist/esm/index.js +0 -12
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs +0 -12
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js +0 -12
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/nativeSheet.mjs +0 -63
- package/dist/esm/nativeSheet.mjs.map +0 -1
- package/dist/esm/nativeSheet.native.js +0 -74
- package/dist/esm/nativeSheet.native.js.map +0 -1
- package/dist/esm/setupGestureHandler.mjs +0 -22
- package/dist/esm/setupGestureHandler.mjs.map +0 -1
- package/dist/esm/setupGestureHandler.native.js +0 -23
- 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 -113
- package/dist/esm/useGestureHandlerPan.mjs.map +0 -1
- package/dist/esm/useGestureHandlerPan.native.js +0 -119
- package/dist/esm/useGestureHandlerPan.native.js.map +0 -1
- package/dist/esm/useKeyboardControllerSheet.mjs +0 -15
- package/dist/esm/useKeyboardControllerSheet.mjs.map +0 -1
- package/dist/esm/useKeyboardControllerSheet.native.js +0 -88
- package/dist/esm/useKeyboardControllerSheet.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 -28
- package/dist/esm/useSheetOffscreenSize.mjs.map +0 -1
- package/dist/esm/useSheetOffscreenSize.native.js +0 -35
- package/dist/esm/useSheetOffscreenSize.native.js.map +0 -1
- package/dist/esm/useSheetOpenState.mjs +0 -26
- 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 -99
- package/dist/esm/useSheetProviderProps.mjs.map +0 -1
- package/dist/esm/useSheetProviderProps.native.js +0 -116
- package/dist/esm/useSheetProviderProps.native.js.map +0 -1
- package/dist/esm/useSheetScrollViewGestures.mjs +0 -100
- package/dist/esm/useSheetScrollViewGestures.mjs.map +0 -1
- package/dist/esm/useSheetScrollViewGestures.native.js +0 -84
- package/dist/esm/useSheetScrollViewGestures.native.js.map +0 -1
- package/dist/jsx/GestureDetectorWrapper.mjs +0 -25
- package/dist/jsx/GestureDetectorWrapper.mjs.map +0 -1
- package/dist/jsx/GestureDetectorWrapper.native.js +0 -53
- 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 -56
- 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 -120
- 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 -35
- package/dist/jsx/SheetContext.native.js.map +0 -1
- package/dist/jsx/SheetController.mjs +0 -31
- package/dist/jsx/SheetController.mjs.map +0 -1
- package/dist/jsx/SheetController.native.js +0 -71
- package/dist/jsx/SheetController.native.js.map +0 -1
- package/dist/jsx/SheetImplementationCustom.mjs +0 -437
- package/dist/jsx/SheetImplementationCustom.mjs.map +0 -1
- package/dist/jsx/SheetImplementationCustom.native.js +0 -524
- package/dist/jsx/SheetImplementationCustom.native.js.map +0 -1
- package/dist/jsx/SheetScrollView.mjs +0 -146
- package/dist/jsx/SheetScrollView.mjs.map +0 -1
- package/dist/jsx/SheetScrollView.native.js +0 -197
- 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 -35
- 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 -45
- 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 -32
- 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 -208
- package/dist/jsx/createSheet.native.js.map +0 -1
- package/dist/jsx/gestureState.mjs +0 -13
- package/dist/jsx/gestureState.mjs.map +0 -1
- package/dist/jsx/gestureState.native.js +0 -42
- package/dist/jsx/gestureState.native.js.map +0 -1
- package/dist/jsx/helpers.mjs +0 -8
- package/dist/jsx/helpers.mjs.map +0 -1
- package/dist/jsx/helpers.native.js +0 -35
- package/dist/jsx/helpers.native.js.map +0 -1
- package/dist/jsx/index.js +0 -12
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs +0 -12
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/index.native.js +0 -31
- package/dist/jsx/index.native.js.map +0 -1
- package/dist/jsx/nativeSheet.mjs +0 -63
- package/dist/jsx/nativeSheet.mjs.map +0 -1
- package/dist/jsx/nativeSheet.native.js +0 -101
- package/dist/jsx/nativeSheet.native.js.map +0 -1
- package/dist/jsx/setupGestureHandler.mjs +0 -22
- package/dist/jsx/setupGestureHandler.mjs.map +0 -1
- package/dist/jsx/setupGestureHandler.native.js +0 -50
- 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 -19
- package/dist/jsx/types.native.js.map +0 -1
- package/dist/jsx/useGestureHandlerPan.mjs +0 -113
- package/dist/jsx/useGestureHandlerPan.mjs.map +0 -1
- package/dist/jsx/useGestureHandlerPan.native.js +0 -145
- package/dist/jsx/useGestureHandlerPan.native.js.map +0 -1
- package/dist/jsx/useKeyboardControllerSheet.mjs +0 -15
- package/dist/jsx/useKeyboardControllerSheet.mjs.map +0 -1
- package/dist/jsx/useKeyboardControllerSheet.native.js +0 -114
- package/dist/jsx/useKeyboardControllerSheet.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 -32
- 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 -53
- package/dist/jsx/useSheetController.native.js.map +0 -1
- package/dist/jsx/useSheetOffscreenSize.mjs +0 -28
- package/dist/jsx/useSheetOffscreenSize.mjs.map +0 -1
- package/dist/jsx/useSheetOffscreenSize.native.js +0 -61
- package/dist/jsx/useSheetOffscreenSize.native.js.map +0 -1
- package/dist/jsx/useSheetOpenState.mjs +0 -26
- package/dist/jsx/useSheetOpenState.mjs.map +0 -1
- package/dist/jsx/useSheetOpenState.native.js +0 -56
- package/dist/jsx/useSheetOpenState.native.js.map +0 -1
- package/dist/jsx/useSheetProviderProps.mjs +0 -99
- package/dist/jsx/useSheetProviderProps.mjs.map +0 -1
- package/dist/jsx/useSheetProviderProps.native.js +0 -153
- package/dist/jsx/useSheetProviderProps.native.js.map +0 -1
- package/dist/jsx/useSheetScrollViewGestures.mjs +0 -100
- package/dist/jsx/useSheetScrollViewGestures.mjs.map +0 -1
- package/dist/jsx/useSheetScrollViewGestures.native.js +0 -110
- package/dist/jsx/useSheetScrollViewGestures.native.js.map +0 -1
package/controller/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// compat with
|
|
1
|
+
// compat with hanzogui static compiler
|
|
2
2
|
Object.assign(module.exports, require('../dist/cjs/controller.native.js'))
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// compat with
|
|
1
|
+
// compat with hanzogui static compiler
|
|
2
2
|
Object.assign(module.exports, require('../dist/cjs/controller.native.js'))
|
package/next.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Current Limitation
|
|
4
4
|
|
|
5
|
-
The Sheet + ScrollView gesture coordination on native iOS has limitations because
|
|
5
|
+
The Sheet + ScrollView gesture coordination on native iOS has limitations because Hanzogui uses React Native's built-in `PanResponder`, while iOS's `UIScrollView` gesture recognizers fire BEFORE the RN responder system can claim the gesture.
|
|
6
6
|
|
|
7
7
|
This causes:
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ Both `gorhom/bottom-sheet` and `react-native-actions-sheet` solve this by using
|
|
|
20
20
|
## Proposed API
|
|
21
21
|
|
|
22
22
|
```tsx
|
|
23
|
-
import { setupGestureHandler } from '@
|
|
23
|
+
import { setupGestureHandler } from '@hanzogui/sheet'
|
|
24
24
|
import { GestureHandlerRootView } from 'react-native-gesture-handler'
|
|
25
25
|
|
|
26
26
|
// Call once at app startup (optional - falls back to PanResponder)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/sheet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -51,32 +51,32 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "
|
|
55
|
-
"watch": "
|
|
56
|
-
"clean": "
|
|
54
|
+
"build": "hanzogui-build",
|
|
55
|
+
"watch": "hanzogui-build --watch",
|
|
56
|
+
"clean": "hanzogui-build clean"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@hanzogui/adapt": "
|
|
60
|
-
"@hanzogui/animate-presence": "
|
|
61
|
-
"@hanzogui/animations-react-native": "
|
|
62
|
-
"@hanzogui/compose-refs": "
|
|
63
|
-
"@hanzogui/constants": "
|
|
64
|
-
"@hanzogui/core": "
|
|
65
|
-
"@hanzogui/create-context": "
|
|
66
|
-
"@hanzogui/helpers": "
|
|
67
|
-
"@hanzogui/native": "
|
|
68
|
-
"@hanzogui/portal": "
|
|
69
|
-
"@hanzogui/remove-scroll": "
|
|
70
|
-
"@hanzogui/scroll-view": "
|
|
71
|
-
"@hanzogui/stacks": "
|
|
72
|
-
"@hanzogui/use-constant": "
|
|
73
|
-
"@hanzogui/use-controllable-state": "
|
|
74
|
-
"@hanzogui/use-did-finish-ssr": "
|
|
75
|
-
"@hanzogui/use-keyboard-visible": "
|
|
76
|
-
"@hanzogui/z-index-stack": "
|
|
59
|
+
"@hanzogui/adapt": "^7.0.0",
|
|
60
|
+
"@hanzogui/animate-presence": "^7.0.0",
|
|
61
|
+
"@hanzogui/animations-react-native": "^7.0.0",
|
|
62
|
+
"@hanzogui/compose-refs": "^7.0.0",
|
|
63
|
+
"@hanzogui/constants": "^7.0.0",
|
|
64
|
+
"@hanzogui/core": "^7.0.0",
|
|
65
|
+
"@hanzogui/create-context": "^7.0.0",
|
|
66
|
+
"@hanzogui/helpers": "^7.0.0",
|
|
67
|
+
"@hanzogui/native": "^7.0.0",
|
|
68
|
+
"@hanzogui/portal": "^7.0.0",
|
|
69
|
+
"@hanzogui/remove-scroll": "^7.0.0",
|
|
70
|
+
"@hanzogui/scroll-view": "^7.0.0",
|
|
71
|
+
"@hanzogui/stacks": "^7.0.0",
|
|
72
|
+
"@hanzogui/use-constant": "^7.0.0",
|
|
73
|
+
"@hanzogui/use-controllable-state": "^7.0.0",
|
|
74
|
+
"@hanzogui/use-did-finish-ssr": "^7.0.0",
|
|
75
|
+
"@hanzogui/use-keyboard-visible": "^7.0.0",
|
|
76
|
+
"@hanzogui/z-index-stack": "^7.0.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@hanzogui/build": "
|
|
79
|
+
"@hanzogui/build": "^7.0.0",
|
|
80
80
|
"react": ">=19",
|
|
81
81
|
"react-native": "0.83.2",
|
|
82
82
|
"react-native-gesture-handler": "~2.30.0"
|
|
@@ -93,4 +93,4 @@
|
|
|
93
93
|
},
|
|
94
94
|
"module:jsx": "dist/jsx",
|
|
95
95
|
"removeSideEffects": true
|
|
96
|
-
}
|
|
96
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// compat with
|
|
1
|
+
// compat with hanzogui static compiler
|
|
2
2
|
Object.assign(module.exports, require('../dist/cjs/setupGestureHandler.cjs'))
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// compat with
|
|
1
|
+
// compat with hanzogui static compiler
|
|
2
2
|
Object.assign(module.exports, require('../dist/cjs/setupGestureHandler.cjs'))
|
package/src/Sheet.tsx
CHANGED
|
@@ -44,7 +44,7 @@ export const Handle = styled(XStack, {
|
|
|
44
44
|
} as const,
|
|
45
45
|
|
|
46
46
|
defaultVariants: {
|
|
47
|
-
unstyled: process.env.
|
|
47
|
+
unstyled: process.env.HANZOGUI_HEADLESS === '1',
|
|
48
48
|
},
|
|
49
49
|
})
|
|
50
50
|
|
|
@@ -77,7 +77,7 @@ export const Overlay = styled(YStack, {
|
|
|
77
77
|
} as const,
|
|
78
78
|
|
|
79
79
|
defaultVariants: {
|
|
80
|
-
unstyled: process.env.
|
|
80
|
+
unstyled: process.env.HANZOGUI_HEADLESS === '1',
|
|
81
81
|
},
|
|
82
82
|
})
|
|
83
83
|
|
|
@@ -103,7 +103,7 @@ export const Frame = styled(YStack, {
|
|
|
103
103
|
} as const,
|
|
104
104
|
|
|
105
105
|
defaultVariants: {
|
|
106
|
-
unstyled: process.env.
|
|
106
|
+
unstyled: process.env.HANZOGUI_HEADLESS === '1',
|
|
107
107
|
},
|
|
108
108
|
})
|
|
109
109
|
|
package/src/SheetController.tsx
CHANGED
|
@@ -8,11 +8,13 @@ import { SheetControllerContext } from './useSheetController'
|
|
|
8
8
|
export const SheetController = ({
|
|
9
9
|
children,
|
|
10
10
|
onOpenChange: onOpenChangeProp,
|
|
11
|
+
onAnimationComplete: onAnimationCompleteProp,
|
|
11
12
|
open,
|
|
12
13
|
hidden,
|
|
13
14
|
disableDrag,
|
|
14
15
|
}: Partial<SheetControllerContextValue> & { children?: ReactNode }) => {
|
|
15
16
|
const onOpenChange = useEvent(onOpenChangeProp)
|
|
17
|
+
const onAnimationComplete = useEvent(onAnimationCompleteProp)
|
|
16
18
|
const id = useId()
|
|
17
19
|
|
|
18
20
|
// track hidden transitions to signal adapt handoff
|
|
@@ -31,9 +33,10 @@ export const SheetController = ({
|
|
|
31
33
|
hidden,
|
|
32
34
|
disableDrag,
|
|
33
35
|
onOpenChange,
|
|
36
|
+
onAnimationComplete,
|
|
34
37
|
skipNextAnimation,
|
|
35
38
|
}),
|
|
36
|
-
[id, onOpenChange, open, hidden, disableDrag, skipNextAnimation]
|
|
39
|
+
[id, onOpenChange, onAnimationComplete, open, hidden, disableDrag, skipNextAnimation]
|
|
37
40
|
)
|
|
38
41
|
|
|
39
42
|
return (
|
|
@@ -4,7 +4,7 @@ import { useComposedRefs } from '@hanzogui/compose-refs'
|
|
|
4
4
|
import { isWeb, useIsomorphicLayoutEffect } from '@hanzogui/constants'
|
|
5
5
|
import {
|
|
6
6
|
LayoutMeasurementController,
|
|
7
|
-
View as
|
|
7
|
+
View as HanzoguiView,
|
|
8
8
|
useConfiguration,
|
|
9
9
|
useDidFinishSSR,
|
|
10
10
|
useEvent,
|
|
@@ -224,7 +224,7 @@ export const SheetImplementationCustom = React.forwardRef<View, SheetProps>(
|
|
|
224
224
|
|
|
225
225
|
const { useAnimatedNumber, useAnimatedNumberStyle, useAnimatedNumberReaction } =
|
|
226
226
|
animationDriver
|
|
227
|
-
const AnimatedView = (animationDriver.View ??
|
|
227
|
+
const AnimatedView = (animationDriver.View ?? HanzoguiView) as typeof Animated.View
|
|
228
228
|
|
|
229
229
|
useIsomorphicLayoutEffect(() => {
|
|
230
230
|
if (!(sheetInsideSheet && open)) return
|
|
@@ -327,10 +327,16 @@ export const SheetImplementationCustom = React.forwardRef<View, SheetProps>(
|
|
|
327
327
|
clearTimeout(opacityFallbackTimer.current)
|
|
328
328
|
opacityFallbackTimer.current = null
|
|
329
329
|
}
|
|
330
|
-
|
|
330
|
+
// use openRef (live) not open (stale closure) — if the sheet
|
|
331
|
+
// was reopened before this callback fires (e.g. cancelled close
|
|
332
|
+
// animation), we must not hide it
|
|
333
|
+
if (!isOpenAnimation && !openRef.current) {
|
|
331
334
|
setOpacity(0)
|
|
332
335
|
}
|
|
333
336
|
onAnimationComplete?.({ open: isOpenAnimation })
|
|
337
|
+
// also notify the SheetController so a parent (e.g. Dialog adapt)
|
|
338
|
+
// can hold the sheet's children mounted until the slide-out is done
|
|
339
|
+
controller?.onAnimationComplete?.({ open: isOpenAnimation })
|
|
334
340
|
}
|
|
335
341
|
|
|
336
342
|
// safety fallback: if animation callback never fires, still hide the sheet
|
|
@@ -438,7 +444,7 @@ export const SheetImplementationCustom = React.forwardRef<View, SheetProps>(
|
|
|
438
444
|
setIsDragging(val)
|
|
439
445
|
|
|
440
446
|
// make unselectable:
|
|
441
|
-
if (process.env.
|
|
447
|
+
if (process.env.TAMAGUI_TARGET === 'web') {
|
|
442
448
|
if (!sheetHiddenStyleSheet) {
|
|
443
449
|
sheetHiddenStyleSheet = document.createElement('style')
|
|
444
450
|
if (typeof document.head !== 'undefined') {
|
|
@@ -673,14 +679,19 @@ export const SheetImplementationCustom = React.forwardRef<View, SheetProps>(
|
|
|
673
679
|
setMaxContentSize(next)
|
|
674
680
|
}, [])
|
|
675
681
|
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
|
|
682
|
+
const getAnimatedNumberStyle = React.useCallback(
|
|
683
|
+
(val: number) => {
|
|
684
|
+
'worklet'
|
|
685
|
+
const translateY = frameSize === 0 ? hiddenSize : val
|
|
679
686
|
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
687
|
+
return {
|
|
688
|
+
transform: [{ translateY }],
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
[frameSize]
|
|
692
|
+
)
|
|
693
|
+
|
|
694
|
+
const animatedStyle = useAnimatedNumberStyle(animatedNumber, getAnimatedNumberStyle)
|
|
684
695
|
|
|
685
696
|
// we need to set this *after* fully closed to 0, to avoid it overlapping
|
|
686
697
|
// the page when resizing quickly on web for example
|
|
@@ -763,7 +774,7 @@ export const SheetImplementationCustom = React.forwardRef<View, SheetProps>(
|
|
|
763
774
|
animatedStyle,
|
|
764
775
|
]}
|
|
765
776
|
>
|
|
766
|
-
{/* wrap children with plain RN View for panResponder -
|
|
777
|
+
{/* wrap children with plain RN View for panResponder - hanzogui views no longer handle responder events on web */}
|
|
767
778
|
{gestureHandlerEnabled && panGesture ? (
|
|
768
779
|
<GestureDetectorWrapper gesture={panGesture} style={{ flex: 1 }}>
|
|
769
780
|
{props.children}
|
|
@@ -783,7 +794,7 @@ export const SheetImplementationCustom = React.forwardRef<View, SheetProps>(
|
|
|
783
794
|
</LayoutMeasurementController>
|
|
784
795
|
)
|
|
785
796
|
|
|
786
|
-
if (process.env.
|
|
797
|
+
if (process.env.TAMAGUI_TARGET === 'native' && needsPortalRepropagation()) {
|
|
787
798
|
// TODO alongside sheet scope="" need to pass scope here
|
|
788
799
|
const adaptContext = useAdaptContext()
|
|
789
800
|
contents = (
|
package/src/createSheet.tsx
CHANGED
|
@@ -3,9 +3,9 @@ import { useIsomorphicLayoutEffect } from '@hanzogui/constants'
|
|
|
3
3
|
import type {
|
|
4
4
|
GetProps,
|
|
5
5
|
ViewProps,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
HanzoguiComponent,
|
|
7
|
+
HanzoguiComponentExpectingVariants,
|
|
8
|
+
HanzoguiElement,
|
|
9
9
|
} from '@hanzogui/core'
|
|
10
10
|
import { View } from '@hanzogui/core'
|
|
11
11
|
import { composeEventHandlers, withStaticProperties } from '@hanzogui/helpers'
|
|
@@ -32,12 +32,12 @@ type SharedSheetProps = {
|
|
|
32
32
|
|
|
33
33
|
type BaseProps = ViewProps & SharedSheetProps
|
|
34
34
|
|
|
35
|
-
type SheetStyledComponent =
|
|
35
|
+
type SheetStyledComponent = HanzoguiComponentExpectingVariants<BaseProps, SharedSheetProps>
|
|
36
36
|
|
|
37
37
|
export function createSheet<
|
|
38
|
-
H extends
|
|
39
|
-
F extends
|
|
40
|
-
O extends
|
|
38
|
+
H extends HanzoguiComponent | SheetStyledComponent,
|
|
39
|
+
F extends HanzoguiComponent | SheetStyledComponent,
|
|
40
|
+
O extends HanzoguiComponent | SheetStyledComponent,
|
|
41
41
|
>({ Handle, Frame, Overlay }: { Handle: H; Frame: F; Overlay: O }) {
|
|
42
42
|
const SheetHandle = Handle.styleable<any>(
|
|
43
43
|
(
|
|
@@ -45,7 +45,7 @@ export function createSheet<
|
|
|
45
45
|
forwardedRef
|
|
46
46
|
) => {
|
|
47
47
|
const context = useSheetContext(SHEET_HANDLE_NAME, __scopeSheet)
|
|
48
|
-
const composedRef = useComposedRefs<
|
|
48
|
+
const composedRef = useComposedRefs<HanzoguiElement>(context.handleRef, forwardedRef)
|
|
49
49
|
|
|
50
50
|
// track if sheet was being dragged to prevent onPress toggle after drag
|
|
51
51
|
const wasDraggingRef = useRef(false)
|
|
@@ -256,7 +256,7 @@ export function createSheet<
|
|
|
256
256
|
let SheetImplementation = SheetImplementationCustom
|
|
257
257
|
|
|
258
258
|
if (props.native && Platform.OS === 'ios') {
|
|
259
|
-
if (process.env.
|
|
259
|
+
if (process.env.TAMAGUI_TARGET === 'native') {
|
|
260
260
|
const impl = getNativeSheet('ios')
|
|
261
261
|
if (impl) {
|
|
262
262
|
// @ts-expect-error accepting external sheet implementation
|
|
@@ -16,10 +16,10 @@ export interface SetupGestureHandlerConfig {
|
|
|
16
16
|
|
|
17
17
|
export function setupGestureHandler(config: SetupGestureHandlerConfig): void {
|
|
18
18
|
const g = globalThis as any
|
|
19
|
-
if (g.
|
|
19
|
+
if (g.__hanzogui_sheet_gesture_handler_setup) {
|
|
20
20
|
return
|
|
21
21
|
}
|
|
22
|
-
g.
|
|
22
|
+
g.__hanzogui_sheet_gesture_handler_setup = true
|
|
23
23
|
|
|
24
24
|
const { Gesture, GestureDetector, ScrollView } = config
|
|
25
25
|
|
|
@@ -22,6 +22,10 @@ export type SheetControllerContextValue = {
|
|
|
22
22
|
// hide without "closing" to prevent re-animation when shown again
|
|
23
23
|
hidden?: boolean
|
|
24
24
|
onOpenChange?: React.Dispatch<React.SetStateAction<boolean>> | ((val: boolean) => void)
|
|
25
|
+
// fired by the sheet after its open/close animation finishes. used by
|
|
26
|
+
// Dialog adapt to know when it's safe to tear down adapted children
|
|
27
|
+
// without cutting off the slide-out mid-animation.
|
|
28
|
+
onAnimationComplete?: (state: { open: boolean }) => void
|
|
25
29
|
// when true, the sheet should skip its open animation (used for adapt handoff)
|
|
26
30
|
skipNextAnimation?: boolean
|
|
27
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import type {
|
|
2
|
+
import type { HanzoguiElement } from '@hanzogui/core'
|
|
3
3
|
import { useConfiguration } from '@hanzogui/core'
|
|
4
4
|
import { useConstant } from '@hanzogui/use-constant'
|
|
5
5
|
import { useControllableState } from '@hanzogui/use-controllable-state'
|
|
@@ -18,8 +18,8 @@ export function useSheetProviderProps(
|
|
|
18
18
|
onOverlayComponent?: (comp: any) => void
|
|
19
19
|
} = {}
|
|
20
20
|
) {
|
|
21
|
-
const handleRef = React.useRef<
|
|
22
|
-
const contentRef = React.useRef<
|
|
21
|
+
const handleRef = React.useRef<HanzoguiElement>(null)
|
|
22
|
+
const contentRef = React.useRef<HanzoguiElement>(null)
|
|
23
23
|
const [frameSize, setFrameSize] = React.useState<number>(0)
|
|
24
24
|
const [maxContentSize, setMaxContentSize] = React.useState<number>(0)
|
|
25
25
|
const snapPointsMode = props.snapPointsMode ?? 'percent'
|
|
@@ -133,7 +133,7 @@ export function useSheetProviderProps(
|
|
|
133
133
|
throw new Error(
|
|
134
134
|
process.env.NODE_ENV === 'production'
|
|
135
135
|
? `❌ 008`
|
|
136
|
-
: 'Must set animations in
|
|
136
|
+
: 'Must set animations in hanzogui.config.ts'
|
|
137
137
|
)
|
|
138
138
|
}
|
|
139
139
|
|
package/types/Sheet.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export { createSheetScope } from './SheetContext';
|
|
2
2
|
export * from './types';
|
|
3
|
-
export declare const Handle: import("@
|
|
3
|
+
export declare const Handle: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
4
4
|
open?: boolean | undefined;
|
|
5
5
|
unstyled?: boolean | undefined;
|
|
6
|
-
elevation?: number | import("@
|
|
6
|
+
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
7
7
|
fullscreen?: boolean | undefined;
|
|
8
|
-
}, import("@
|
|
9
|
-
export declare const Overlay: import("@
|
|
8
|
+
}, import("@hanzogui/core").StaticConfigPublic>;
|
|
9
|
+
export declare const Overlay: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
10
10
|
open?: boolean | undefined;
|
|
11
11
|
unstyled?: boolean | undefined;
|
|
12
|
-
elevation?: number | import("@
|
|
12
|
+
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
13
13
|
fullscreen?: boolean | undefined;
|
|
14
|
-
}, import("@
|
|
15
|
-
export declare const Frame: import("@
|
|
14
|
+
}, import("@hanzogui/core").StaticConfigPublic>;
|
|
15
|
+
export declare const Frame: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
16
16
|
unstyled?: boolean | undefined;
|
|
17
|
-
elevation?: number | import("@
|
|
17
|
+
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
18
18
|
fullscreen?: boolean | undefined;
|
|
19
|
-
}, import("@
|
|
19
|
+
}, import("@hanzogui/core").StaticConfigPublic>;
|
|
20
20
|
export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
21
21
|
open?: boolean;
|
|
22
22
|
defaultOpen?: boolean;
|
|
@@ -31,28 +31,28 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
31
31
|
dismissOnSnapToBottom?: boolean;
|
|
32
32
|
disableRemoveScroll?: boolean;
|
|
33
33
|
forceRemoveScrollEnabled?: boolean;
|
|
34
|
-
transitionConfig?: import("@
|
|
34
|
+
transitionConfig?: import("@hanzogui/core").AnimatedNumberStrategy;
|
|
35
35
|
preferAdaptParentOpenState?: boolean;
|
|
36
36
|
unmountChildrenWhenHidden?: boolean;
|
|
37
37
|
native?: "ios"[] | boolean;
|
|
38
|
-
transition?: import("@
|
|
38
|
+
transition?: import("@hanzogui/core").TransitionProp;
|
|
39
39
|
handleDisableScroll?: boolean;
|
|
40
40
|
disableDrag?: boolean;
|
|
41
41
|
modal?: boolean;
|
|
42
42
|
zIndex?: number;
|
|
43
|
-
portalProps?: import("@
|
|
43
|
+
portalProps?: import("@hanzogui/portal").PortalProps;
|
|
44
44
|
moveOnKeyboardChange?: boolean;
|
|
45
45
|
containerComponent?: React.ComponentType<any>;
|
|
46
46
|
onAnimationComplete?: (info: {
|
|
47
47
|
open: boolean;
|
|
48
48
|
}) => void;
|
|
49
49
|
} & {
|
|
50
|
-
__scopeSheet?: import("@
|
|
50
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
51
51
|
} & import("react").RefAttributes<import("react-native").View>> & {
|
|
52
52
|
Controlled: import("react").FunctionComponent<Omit<import("./types").SheetProps, "open" | "onOpenChange"> & import("react").RefAttributes<import("react-native").View>> & {
|
|
53
|
-
Frame: import("react").ForwardRefExoticComponent<import("./types").SheetScopedProps<Omit<import("@
|
|
53
|
+
Frame: import("react").ForwardRefExoticComponent<import("./types").SheetScopedProps<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
54
54
|
unstyled?: boolean | undefined;
|
|
55
|
-
elevation?: number | import("@
|
|
55
|
+
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
56
56
|
fullscreen?: boolean | undefined;
|
|
57
57
|
}>, keyof {
|
|
58
58
|
disableHideBottomOverflow?: boolean;
|
|
@@ -61,52 +61,52 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
61
61
|
disableHideBottomOverflow?: boolean;
|
|
62
62
|
adjustPaddingForOffscreenContent?: boolean;
|
|
63
63
|
}>>;
|
|
64
|
-
Overlay: import("@
|
|
64
|
+
Overlay: import("@hanzogui/core").HanzoguiComponent<Omit<import("@hanzogui/core").StackNonStyleProps & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase, {}>> & {
|
|
65
65
|
open?: boolean;
|
|
66
66
|
}, "__scopeSheet"> & {
|
|
67
|
-
__scopeSheet?: import("@
|
|
67
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
68
68
|
}, any, any, any, {
|
|
69
69
|
open?: boolean;
|
|
70
|
-
}, {}> | import("@
|
|
70
|
+
}, {}> | import("@hanzogui/core").HanzoguiComponent<Omit<import("@hanzogui/core").StackNonStyleProps & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase, {}>> & {
|
|
71
71
|
open?: boolean;
|
|
72
72
|
}, "__scopeSheet"> & {
|
|
73
|
-
__scopeSheet?: import("@
|
|
73
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
74
74
|
}, any, {
|
|
75
|
-
__scopeSheet?: import("@
|
|
75
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
76
76
|
}, {}, {}, {}>;
|
|
77
|
-
Handle: import("@
|
|
77
|
+
Handle: import("@hanzogui/core").HanzoguiComponent<any, any, any, any, {
|
|
78
78
|
open?: boolean;
|
|
79
|
-
}, {}> | import("@
|
|
80
|
-
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("@
|
|
81
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
79
|
+
}, {}> | import("@hanzogui/core").HanzoguiComponent<any, any, any, {}, {}, {}>;
|
|
80
|
+
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("@hanzogui/core").HanzoguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
81
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
82
82
|
accept: {
|
|
83
83
|
readonly contentContainerStyle: "style";
|
|
84
84
|
};
|
|
85
85
|
}>> | undefined;
|
|
86
86
|
}> & {
|
|
87
87
|
fullscreen?: boolean | undefined;
|
|
88
|
-
} & import("@
|
|
89
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
88
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
89
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
90
90
|
accept: {
|
|
91
91
|
readonly contentContainerStyle: "style";
|
|
92
92
|
};
|
|
93
93
|
}>> | undefined;
|
|
94
|
-
}>> & import("@
|
|
95
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
94
|
+
}>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
95
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
96
96
|
accept: {
|
|
97
97
|
readonly contentContainerStyle: "style";
|
|
98
98
|
};
|
|
99
99
|
}>> | undefined;
|
|
100
100
|
}> & {
|
|
101
101
|
fullscreen?: boolean | undefined;
|
|
102
|
-
} & import("@
|
|
103
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
102
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
103
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
104
104
|
accept: {
|
|
105
105
|
readonly contentContainerStyle: "style";
|
|
106
106
|
};
|
|
107
107
|
}>> | undefined;
|
|
108
|
-
}>>> & import("@
|
|
109
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
108
|
+
}>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase & {
|
|
109
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
110
110
|
accept: {
|
|
111
111
|
readonly contentContainerStyle: "style";
|
|
112
112
|
};
|
|
@@ -115,9 +115,9 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
115
115
|
fullscreen?: boolean | undefined;
|
|
116
116
|
}>> & import("react").RefAttributes<import("react-native").ScrollView>>;
|
|
117
117
|
};
|
|
118
|
-
Frame: import("react").ForwardRefExoticComponent<import("./types").SheetScopedProps<Omit<import("@
|
|
118
|
+
Frame: import("react").ForwardRefExoticComponent<import("./types").SheetScopedProps<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
|
|
119
119
|
unstyled?: boolean | undefined;
|
|
120
|
-
elevation?: number | import("@
|
|
120
|
+
elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
|
|
121
121
|
fullscreen?: boolean | undefined;
|
|
122
122
|
}>, keyof {
|
|
123
123
|
disableHideBottomOverflow?: boolean;
|
|
@@ -126,52 +126,52 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
126
126
|
disableHideBottomOverflow?: boolean;
|
|
127
127
|
adjustPaddingForOffscreenContent?: boolean;
|
|
128
128
|
}>>;
|
|
129
|
-
Overlay: import("@
|
|
129
|
+
Overlay: import("@hanzogui/core").HanzoguiComponent<Omit<import("@hanzogui/core").StackNonStyleProps & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase, {}>> & {
|
|
130
130
|
open?: boolean;
|
|
131
131
|
}, "__scopeSheet"> & {
|
|
132
|
-
__scopeSheet?: import("@
|
|
132
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
133
133
|
}, any, any, any, {
|
|
134
134
|
open?: boolean;
|
|
135
|
-
}, {}> | import("@
|
|
135
|
+
}, {}> | import("@hanzogui/core").HanzoguiComponent<Omit<import("@hanzogui/core").StackNonStyleProps & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase> & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase, {}>> & {
|
|
136
136
|
open?: boolean;
|
|
137
137
|
}, "__scopeSheet"> & {
|
|
138
|
-
__scopeSheet?: import("@
|
|
138
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
139
139
|
}, any, {
|
|
140
|
-
__scopeSheet?: import("@
|
|
140
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
141
141
|
}, {}, {}, {}>;
|
|
142
|
-
Handle: import("@
|
|
142
|
+
Handle: import("@hanzogui/core").HanzoguiComponent<any, any, any, any, {
|
|
143
143
|
open?: boolean;
|
|
144
|
-
}, {}> | import("@
|
|
145
|
-
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("@
|
|
146
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
144
|
+
}, {}> | import("@hanzogui/core").HanzoguiComponent<any, any, any, {}, {}, {}>;
|
|
145
|
+
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("@hanzogui/core").HanzoguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
146
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
147
147
|
accept: {
|
|
148
148
|
readonly contentContainerStyle: "style";
|
|
149
149
|
};
|
|
150
150
|
}>> | undefined;
|
|
151
151
|
}> & {
|
|
152
152
|
fullscreen?: boolean | undefined;
|
|
153
|
-
} & import("@
|
|
154
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
153
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
154
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
155
155
|
accept: {
|
|
156
156
|
readonly contentContainerStyle: "style";
|
|
157
157
|
};
|
|
158
158
|
}>> | undefined;
|
|
159
|
-
}>> & import("@
|
|
160
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
159
|
+
}>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
160
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
161
161
|
accept: {
|
|
162
162
|
readonly contentContainerStyle: "style";
|
|
163
163
|
};
|
|
164
164
|
}>> | undefined;
|
|
165
165
|
}> & {
|
|
166
166
|
fullscreen?: boolean | undefined;
|
|
167
|
-
} & import("@
|
|
168
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
167
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
168
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
169
169
|
accept: {
|
|
170
170
|
readonly contentContainerStyle: "style";
|
|
171
171
|
};
|
|
172
172
|
}>> | undefined;
|
|
173
|
-
}>>> & import("@
|
|
174
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
173
|
+
}>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase & {
|
|
174
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
175
175
|
accept: {
|
|
176
176
|
readonly contentContainerStyle: "style";
|
|
177
177
|
};
|