@hanzogui/sheet 3.0.2 → 7.3.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/LICENSE +40 -19
- package/dist/cjs/GestureDetectorWrapper.cjs +27 -21
- package/dist/cjs/GestureDetectorWrapper.native.js +33 -28
- package/dist/cjs/GestureDetectorWrapper.native.js.map +1 -1
- package/dist/cjs/GestureSheetContext.cjs +14 -12
- package/dist/cjs/GestureSheetContext.native.js +29 -27
- package/dist/cjs/GestureSheetContext.native.js.map +1 -1
- package/dist/cjs/Sheet.cjs +89 -87
- package/dist/cjs/Sheet.native.js +89 -87
- package/dist/cjs/Sheet.native.js.map +1 -1
- package/dist/cjs/SheetContext.cjs +16 -14
- package/dist/cjs/SheetContext.native.js +16 -14
- package/dist/cjs/SheetContext.native.js.map +1 -1
- package/dist/cjs/SheetController.cjs +40 -32
- package/dist/cjs/SheetController.native.js +62 -54
- package/dist/cjs/SheetController.native.js.map +1 -1
- package/dist/cjs/SheetImplementationCustom.cjs +544 -427
- package/dist/cjs/SheetImplementationCustom.native.js +567 -476
- package/dist/cjs/SheetImplementationCustom.native.js.map +1 -1
- package/dist/cjs/SheetScrollView.cjs +169 -133
- package/dist/cjs/SheetScrollView.native.js +189 -163
- package/dist/cjs/SheetScrollView.native.js.map +1 -1
- package/dist/cjs/constants.cjs +16 -14
- package/dist/cjs/constants.native.js +16 -14
- package/dist/cjs/constants.native.js.map +1 -1
- package/dist/cjs/contexts.cjs +27 -25
- package/dist/cjs/contexts.native.js +29 -27
- package/dist/cjs/contexts.native.js.map +1 -1
- package/dist/cjs/controller.cjs +14 -12
- package/dist/cjs/controller.native.js +14 -12
- package/dist/cjs/controller.native.js.map +1 -1
- package/dist/cjs/createSheet.cjs +160 -161
- package/dist/cjs/createSheet.native.js +173 -181
- package/dist/cjs/createSheet.native.js.map +1 -1
- package/dist/cjs/gestureState.cjs +16 -14
- package/dist/cjs/gestureState.native.js +16 -14
- package/dist/cjs/gestureState.native.js.map +1 -1
- package/dist/cjs/helpers.cjs +17 -13
- package/dist/cjs/helpers.native.js +17 -13
- package/dist/cjs/helpers.native.js.map +1 -1
- package/dist/cjs/index.cjs +7 -5
- package/dist/cjs/index.native.js +7 -5
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/nativeSheet.cjs +64 -55
- package/dist/cjs/nativeSheet.native.js +73 -68
- package/dist/cjs/nativeSheet.native.js.map +1 -1
- package/dist/cjs/setupGestureHandler.cjs +26 -20
- package/dist/cjs/setupGestureHandler.native.js +26 -21
- package/dist/cjs/setupGestureHandler.native.js.map +1 -1
- package/dist/cjs/types.cjs +7 -5
- package/dist/cjs/types.native.js +7 -5
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/useGestureHandlerPan.cjs +181 -111
- package/dist/cjs/useGestureHandlerPan.native.js +183 -115
- package/dist/cjs/useGestureHandlerPan.native.js.map +1 -1
- package/dist/cjs/useKeyboardControllerSheet.cjs +15 -13
- package/dist/cjs/useKeyboardControllerSheet.native.js +100 -82
- package/dist/cjs/useKeyboardControllerSheet.native.js.map +1 -1
- package/dist/cjs/useSheet.cjs +12 -10
- package/dist/cjs/useSheet.native.js +16 -14
- package/dist/cjs/useSheet.native.js.map +1 -1
- package/dist/cjs/useSheetController.cjs +35 -33
- package/dist/cjs/useSheetController.native.js +37 -35
- package/dist/cjs/useSheetController.native.js.map +1 -1
- package/dist/cjs/useSheetOffscreenSize.cjs +35 -23
- package/dist/cjs/useSheetOffscreenSize.native.js +36 -27
- package/dist/cjs/useSheetOffscreenSize.native.js.map +1 -1
- package/dist/cjs/useSheetOpenState.cjs +28 -25
- package/dist/cjs/useSheetOpenState.native.js +39 -37
- package/dist/cjs/useSheetOpenState.native.js.map +1 -1
- package/dist/cjs/useSheetProviderProps.cjs +131 -83
- package/dist/cjs/useSheetProviderProps.native.js +167 -124
- package/dist/cjs/useSheetProviderProps.native.js.map +1 -1
- package/dist/cjs/useSheetScrollViewGestures.cjs +124 -81
- package/dist/cjs/useSheetScrollViewGestures.native.js +128 -79
- package/dist/cjs/useSheetScrollViewGestures.native.js.map +1 -1
- package/dist/esm/GestureDetectorWrapper.mjs +12 -8
- package/dist/esm/GestureDetectorWrapper.mjs.map +1 -1
- package/dist/esm/GestureDetectorWrapper.native.js +18 -15
- package/dist/esm/GestureDetectorWrapper.native.js.map +1 -1
- package/dist/esm/GestureSheetContext.native.js +14 -14
- package/dist/esm/GestureSheetContext.native.js.map +1 -1
- package/dist/esm/Sheet.mjs +70 -70
- package/dist/esm/Sheet.mjs.map +1 -1
- package/dist/esm/Sheet.native.js +70 -70
- package/dist/esm/Sheet.native.js.map +1 -1
- package/dist/esm/SheetContext.mjs +2 -2
- package/dist/esm/SheetContext.mjs.map +1 -1
- package/dist/esm/SheetContext.native.js +2 -2
- package/dist/esm/SheetContext.native.js.map +1 -1
- package/dist/esm/SheetController.mjs +12 -6
- package/dist/esm/SheetController.mjs.map +1 -1
- package/dist/esm/SheetController.native.js +18 -12
- package/dist/esm/SheetController.native.js.map +1 -1
- package/dist/esm/SheetImplementationCustom.mjs +501 -386
- package/dist/esm/SheetImplementationCustom.mjs.map +1 -1
- package/dist/esm/SheetImplementationCustom.native.js +520 -435
- package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
- package/dist/esm/SheetScrollView.mjs +133 -99
- package/dist/esm/SheetScrollView.mjs.map +1 -1
- package/dist/esm/SheetScrollView.native.js +155 -131
- package/dist/esm/SheetScrollView.native.js.map +1 -1
- package/dist/esm/constants.mjs +4 -4
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +4 -4
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/esm/contexts.mjs +3 -3
- package/dist/esm/contexts.mjs.map +1 -1
- package/dist/esm/contexts.native.js +3 -3
- package/dist/esm/contexts.native.js.map +1 -1
- package/dist/esm/createSheet.mjs +130 -133
- package/dist/esm/createSheet.mjs.map +1 -1
- package/dist/esm/createSheet.native.js +142 -152
- package/dist/esm/createSheet.native.js.map +1 -1
- package/dist/esm/helpers.mjs +5 -3
- package/dist/esm/helpers.mjs.map +1 -1
- package/dist/esm/helpers.native.js +5 -3
- package/dist/esm/helpers.native.js.map +1 -1
- package/dist/esm/nativeSheet.mjs +45 -38
- package/dist/esm/nativeSheet.mjs.map +1 -1
- package/dist/esm/nativeSheet.native.js +51 -48
- package/dist/esm/nativeSheet.native.js.map +1 -1
- package/dist/esm/setupGestureHandler.mjs +12 -8
- package/dist/esm/setupGestureHandler.mjs.map +1 -1
- package/dist/esm/setupGestureHandler.native.js +12 -9
- package/dist/esm/setupGestureHandler.native.js.map +1 -1
- package/dist/esm/useGestureHandlerPan.mjs +167 -99
- package/dist/esm/useGestureHandlerPan.mjs.map +1 -1
- package/dist/esm/useGestureHandlerPan.native.js +168 -102
- package/dist/esm/useGestureHandlerPan.native.js.map +1 -1
- package/dist/esm/useKeyboardControllerSheet.mjs +3 -3
- package/dist/esm/useKeyboardControllerSheet.mjs.map +1 -1
- package/dist/esm/useKeyboardControllerSheet.native.js +85 -69
- package/dist/esm/useKeyboardControllerSheet.native.js.map +1 -1
- package/dist/esm/useSheetController.mjs +11 -11
- package/dist/esm/useSheetController.mjs.map +1 -1
- package/dist/esm/useSheetController.native.js +11 -11
- package/dist/esm/useSheetController.native.js.map +1 -1
- package/dist/esm/useSheetOffscreenSize.mjs +23 -13
- package/dist/esm/useSheetOffscreenSize.mjs.map +1 -1
- package/dist/esm/useSheetOffscreenSize.native.js +24 -17
- package/dist/esm/useSheetOffscreenSize.native.js.map +1 -1
- package/dist/esm/useSheetOpenState.mjs +14 -13
- package/dist/esm/useSheetOpenState.mjs.map +1 -1
- package/dist/esm/useSheetOpenState.native.js +17 -17
- package/dist/esm/useSheetOpenState.native.js.map +1 -1
- package/dist/esm/useSheetProviderProps.mjs +101 -55
- package/dist/esm/useSheetProviderProps.mjs.map +1 -1
- package/dist/esm/useSheetProviderProps.native.js +137 -96
- package/dist/esm/useSheetProviderProps.native.js.map +1 -1
- package/dist/esm/useSheetScrollViewGestures.mjs +112 -71
- package/dist/esm/useSheetScrollViewGestures.mjs.map +1 -1
- package/dist/esm/useSheetScrollViewGestures.native.js +116 -69
- package/dist/esm/useSheetScrollViewGestures.native.js.map +1 -1
- package/dist/jsx/GestureDetectorWrapper.mjs +12 -8
- package/dist/jsx/GestureDetectorWrapper.mjs.map +1 -1
- package/dist/jsx/GestureDetectorWrapper.native.js +33 -28
- package/dist/jsx/GestureDetectorWrapper.native.js.map +1 -1
- package/dist/jsx/GestureSheetContext.native.js +29 -27
- package/dist/jsx/GestureSheetContext.native.js.map +1 -1
- package/dist/jsx/Sheet.mjs +70 -70
- package/dist/jsx/Sheet.mjs.map +1 -1
- package/dist/jsx/Sheet.native.js +89 -87
- package/dist/jsx/Sheet.native.js.map +1 -1
- package/dist/jsx/SheetContext.mjs +2 -2
- package/dist/jsx/SheetContext.mjs.map +1 -1
- package/dist/jsx/SheetContext.native.js +16 -14
- package/dist/jsx/SheetContext.native.js.map +1 -1
- package/dist/jsx/SheetController.mjs +12 -6
- package/dist/jsx/SheetController.mjs.map +1 -1
- package/dist/jsx/SheetController.native.js +62 -54
- package/dist/jsx/SheetController.native.js.map +1 -1
- package/dist/jsx/SheetImplementationCustom.mjs +501 -386
- package/dist/jsx/SheetImplementationCustom.mjs.map +1 -1
- package/dist/jsx/SheetImplementationCustom.native.js +567 -476
- package/dist/jsx/SheetImplementationCustom.native.js.map +1 -1
- package/dist/jsx/SheetScrollView.mjs +133 -99
- package/dist/jsx/SheetScrollView.mjs.map +1 -1
- package/dist/jsx/SheetScrollView.native.js +189 -163
- package/dist/jsx/SheetScrollView.native.js.map +1 -1
- package/dist/jsx/constants.mjs +4 -4
- package/dist/jsx/constants.mjs.map +1 -1
- package/dist/jsx/constants.native.js +16 -14
- package/dist/jsx/constants.native.js.map +1 -1
- package/dist/jsx/contexts.mjs +3 -3
- package/dist/jsx/contexts.mjs.map +1 -1
- package/dist/jsx/contexts.native.js +29 -27
- package/dist/jsx/contexts.native.js.map +1 -1
- package/dist/jsx/controller.native.js +14 -12
- package/dist/jsx/createSheet.mjs +130 -133
- package/dist/jsx/createSheet.mjs.map +1 -1
- package/dist/jsx/createSheet.native.js +173 -181
- package/dist/jsx/createSheet.native.js.map +1 -1
- package/dist/jsx/gestureState.native.js +16 -14
- package/dist/jsx/gestureState.native.js.map +1 -1
- package/dist/jsx/helpers.mjs +5 -3
- package/dist/jsx/helpers.mjs.map +1 -1
- package/dist/jsx/helpers.native.js +17 -13
- package/dist/jsx/helpers.native.js.map +1 -1
- package/dist/jsx/index.native.js +7 -5
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/nativeSheet.mjs +45 -38
- package/dist/jsx/nativeSheet.mjs.map +1 -1
- package/dist/jsx/nativeSheet.native.js +73 -68
- package/dist/jsx/nativeSheet.native.js.map +1 -1
- package/dist/jsx/setupGestureHandler.mjs +12 -8
- package/dist/jsx/setupGestureHandler.mjs.map +1 -1
- package/dist/jsx/setupGestureHandler.native.js +26 -21
- package/dist/jsx/setupGestureHandler.native.js.map +1 -1
- package/dist/jsx/types.native.js +7 -5
- package/dist/jsx/useGestureHandlerPan.mjs +167 -99
- package/dist/jsx/useGestureHandlerPan.mjs.map +1 -1
- package/dist/jsx/useGestureHandlerPan.native.js +183 -115
- package/dist/jsx/useGestureHandlerPan.native.js.map +1 -1
- package/dist/jsx/useKeyboardControllerSheet.mjs +3 -3
- package/dist/jsx/useKeyboardControllerSheet.mjs.map +1 -1
- package/dist/jsx/useKeyboardControllerSheet.native.js +100 -82
- package/dist/jsx/useKeyboardControllerSheet.native.js.map +1 -1
- package/dist/jsx/useSheet.native.js +16 -14
- package/dist/jsx/useSheetController.mjs +11 -11
- package/dist/jsx/useSheetController.mjs.map +1 -1
- package/dist/jsx/useSheetController.native.js +37 -35
- package/dist/jsx/useSheetController.native.js.map +1 -1
- package/dist/jsx/useSheetOffscreenSize.mjs +23 -13
- package/dist/jsx/useSheetOffscreenSize.mjs.map +1 -1
- package/dist/jsx/useSheetOffscreenSize.native.js +36 -27
- package/dist/jsx/useSheetOffscreenSize.native.js.map +1 -1
- package/dist/jsx/useSheetOpenState.mjs +14 -13
- package/dist/jsx/useSheetOpenState.mjs.map +1 -1
- package/dist/jsx/useSheetOpenState.native.js +39 -37
- package/dist/jsx/useSheetOpenState.native.js.map +1 -1
- package/dist/jsx/useSheetProviderProps.mjs +101 -55
- package/dist/jsx/useSheetProviderProps.mjs.map +1 -1
- package/dist/jsx/useSheetProviderProps.native.js +167 -124
- package/dist/jsx/useSheetProviderProps.native.js.map +1 -1
- package/dist/jsx/useSheetScrollViewGestures.mjs +112 -71
- package/dist/jsx/useSheetScrollViewGestures.mjs.map +1 -1
- package/dist/jsx/useSheetScrollViewGestures.native.js +128 -79
- package/dist/jsx/useSheetScrollViewGestures.native.js.map +1 -1
- package/package.json +35 -25
- package/src/Sheet.tsx +3 -3
- package/src/SheetController.tsx +4 -1
- package/src/SheetImplementationCustom.tsx +21 -10
- package/src/createSheet.tsx +1 -1
- package/src/useSheetController.tsx +4 -0
- package/types/GestureDetectorWrapper.d.ts +1 -1
- package/types/GestureDetectorWrapper.d.ts.map +1 -0
- package/types/GestureSheetContext.d.ts +1 -1
- package/types/GestureSheetContext.d.ts.map +1 -0
- package/types/Sheet.d.ts +51 -51
- package/types/Sheet.d.ts.map +1 -0
- package/types/SheetContext.d.ts +8 -8
- package/types/SheetContext.d.ts.map +1 -0
- package/types/SheetController.d.ts +3 -2
- package/types/SheetController.d.ts.map +1 -0
- package/types/SheetImplementationCustom.d.ts +4 -4
- package/types/SheetImplementationCustom.d.ts.map +1 -0
- package/types/SheetScrollView.d.ts +10 -10
- package/types/SheetScrollView.d.ts.map +1 -0
- package/types/constants.d.ts.map +1 -0
- package/types/contexts.d.ts.map +1 -0
- package/types/controller.d.ts.map +1 -0
- package/types/createSheet.d.ts +31 -31
- package/types/createSheet.d.ts.map +1 -0
- package/types/gestureState.d.ts +3 -3
- package/types/gestureState.d.ts.map +1 -0
- package/types/helpers.d.ts.map +1 -0
- package/types/index.d.ts.map +1 -0
- package/types/nativeSheet.d.ts.map +1 -0
- package/types/setupGestureHandler.d.ts +1 -1
- package/types/setupGestureHandler.d.ts.map +1 -0
- package/types/types.d.ts +4 -4
- package/types/types.d.ts.map +1 -0
- package/types/useGestureHandlerPan.d.ts.map +1 -0
- package/types/useKeyboardControllerSheet.d.ts.map +1 -0
- package/types/useKeyboardControllerSheet.native.d.ts.map +1 -0
- package/types/useSheet.d.ts.map +1 -0
- package/types/useSheetController.d.ts +3 -0
- package/types/useSheetController.d.ts.map +1 -0
- package/types/useSheetOffscreenSize.d.ts.map +1 -0
- package/types/useSheetOpenState.d.ts.map +1 -0
- package/types/useSheetProviderProps.d.ts +2 -2
- package/types/useSheetProviderProps.d.ts.map +1 -0
- package/types/useSheetScrollViewGestures.d.ts.map +1 -0
- package/types/useSheetScrollViewGestures.native.d.ts.map +1 -0
- 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/next.md +0 -78
- package/setup-gesture-handler/index.cjs +0 -2
- package/setup-gesture-handler/index.js +0 -2
- package/setup-gesture-handler/index.native.cjs +0 -2
- package/setup-gesture-handler/index.native.js +0 -2
- package/tsconfig.json +0 -56
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").GuiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps, 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").GuiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps, 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").GuiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNViewNonStyleProps, 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").RNViewNonStyleProps, 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").GuiComponent<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").GuiComponent<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").GuiComponent<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").GuiComponent<any, any, any, {}, {}, {}>;
|
|
80
|
+
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("@hanzogui/core").GuiComponentPropsBaseBase & 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").RNViewNonStyleProps, 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").GuiComponent<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").GuiComponent<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").GuiComponent<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").GuiComponent<any, any, any, {}, {}, {}>;
|
|
145
|
+
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("@hanzogui/core").GuiComponentPropsBaseBase & 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
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../src/Sheet.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,cAAc,SAAS,CAAA;AAMvB,eAAO,MAAM,MAAM;;;;;+CAmCjB,CAAA;AAMF,eAAO,MAAM,OAAO;;;;;+CA2BlB,CAAA;AAMF,eAAO,MAAM,KAAK;;;;+CAoBhB,CAAA;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
|
package/types/SheetContext.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { SheetContextValue } from './useSheetProviderProps';
|
|
2
2
|
export declare const createSheetContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType) => readonly [(props: ContextValueType & {
|
|
3
|
-
scope: import("@
|
|
3
|
+
scope: import("@hanzogui/create-context").Scope<ContextValueType>;
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
}) => import("react
|
|
5
|
+
}) => import("react").JSX.Element, (consumerName: string, scope: import("@hanzogui/create-context").Scope<ContextValueType | undefined>, options?: {
|
|
6
6
|
warn?: boolean;
|
|
7
7
|
fallback?: Partial<ContextValueType>;
|
|
8
|
-
}) => ContextValueType], createSheetScope: import("@
|
|
8
|
+
}) => ContextValueType], createSheetScope: import("@hanzogui/create-context").CreateScope;
|
|
9
9
|
export declare const SheetProvider: (props: {
|
|
10
10
|
screenSize: number;
|
|
11
11
|
maxSnapPoint: string | number;
|
|
@@ -15,14 +15,14 @@ export declare const SheetProvider: (props: {
|
|
|
15
15
|
open: boolean;
|
|
16
16
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
17
|
hidden: boolean;
|
|
18
|
-
contentRef: import("react").RefObject<import("@
|
|
19
|
-
handleRef: import("react").RefObject<import("@
|
|
18
|
+
contentRef: import("react").RefObject<import("@hanzogui/web").GuiElement | null>;
|
|
19
|
+
handleRef: import("react").RefObject<import("@hanzogui/web").GuiElement | null>;
|
|
20
20
|
frameSize: number;
|
|
21
21
|
setFrameSize: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
22
22
|
dismissOnOverlayPress: boolean;
|
|
23
23
|
dismissOnSnapToBottom: boolean;
|
|
24
24
|
onOverlayComponent: ((comp: any) => void) | undefined;
|
|
25
|
-
scope: import("@
|
|
25
|
+
scope: import("@hanzogui/create-context").Scope<any>;
|
|
26
26
|
hasFit: boolean;
|
|
27
27
|
position: number;
|
|
28
28
|
snapPoints: (string | number)[];
|
|
@@ -34,9 +34,9 @@ export declare const SheetProvider: (props: {
|
|
|
34
34
|
} & {
|
|
35
35
|
setHasScrollView: (val: boolean) => void;
|
|
36
36
|
} & {
|
|
37
|
-
scope: import("@
|
|
37
|
+
scope: import("@hanzogui/create-context").Scope<SheetContextValue>;
|
|
38
38
|
children: React.ReactNode;
|
|
39
|
-
}) => import("react
|
|
39
|
+
}) => import("react").JSX.Element, useSheetContext: (consumerName: string, scope: import("@hanzogui/create-context").Scope<SheetContextValue | undefined>, options?: {
|
|
40
40
|
warn?: boolean;
|
|
41
41
|
fallback?: Partial<SheetContextValue> | undefined;
|
|
42
42
|
} | undefined) => SheetContextValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../src/SheetContext.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAEhE,eAAO,MAAO,kBAAkB;;;gJAM2rB,CAAC;QAAS,CAAC;YAAoB,CAAC;yBANztB,gBAAgB,gDAAkC,CAAA;AAEpF,eAAO,MAAO,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAAE,eAAe;;;mCAG3C,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { SheetControllerContextValue } from './useSheetController';
|
|
3
|
-
export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, open, hidden, disableDrag, }: Partial<SheetControllerContextValue> & {
|
|
4
|
+
export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, onAnimationComplete: onAnimationCompleteProp, open, hidden, disableDrag, }: Partial<SheetControllerContextValue> & {
|
|
4
5
|
children?: ReactNode;
|
|
5
|
-
}) =>
|
|
6
|
+
}) => React.JSX.Element;
|
|
6
7
|
//# sourceMappingURL=SheetController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetController.d.ts","sourceRoot":"","sources":["../src/SheetController.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAA;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAGvE,eAAO,MAAM,eAAe,GAAI,wHAO7B,OAAO,CAAC,2BAA2B,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,sBAgCjE,CAAA"}
|
|
@@ -15,22 +15,22 @@ export declare const SheetImplementationCustom: React.ForwardRefExoticComponent<
|
|
|
15
15
|
dismissOnSnapToBottom?: boolean;
|
|
16
16
|
disableRemoveScroll?: boolean;
|
|
17
17
|
forceRemoveScrollEnabled?: boolean;
|
|
18
|
-
transitionConfig?: import("@
|
|
18
|
+
transitionConfig?: import("@hanzogui/core").AnimatedNumberStrategy;
|
|
19
19
|
preferAdaptParentOpenState?: boolean;
|
|
20
20
|
unmountChildrenWhenHidden?: boolean;
|
|
21
21
|
native?: "ios"[] | boolean;
|
|
22
|
-
transition?: import("@
|
|
22
|
+
transition?: import("@hanzogui/core").TransitionProp;
|
|
23
23
|
handleDisableScroll?: boolean;
|
|
24
24
|
disableDrag?: boolean;
|
|
25
25
|
modal?: boolean;
|
|
26
26
|
zIndex?: number;
|
|
27
|
-
portalProps?: import("@
|
|
27
|
+
portalProps?: import("@hanzogui/portal").PortalProps;
|
|
28
28
|
moveOnKeyboardChange?: boolean;
|
|
29
29
|
containerComponent?: React.ComponentType<any>;
|
|
30
30
|
onAnimationComplete?: (info: {
|
|
31
31
|
open: boolean;
|
|
32
32
|
}) => void;
|
|
33
33
|
} & {
|
|
34
|
-
__scopeSheet?: import("@
|
|
34
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
35
35
|
} & React.RefAttributes<View>>;
|
|
36
36
|
//# sourceMappingURL=SheetImplementationCustom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetImplementationCustom.d.ts","sourceRoot":"","sources":["../src/SheetImplementationCustom.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAOvC,OAAO,EAA4B,IAAI,EAAE,MAAM,cAAc,CAAA;AAM7D,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,SAAS,CAAA;AAsBzD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA8wBrC,CAAA"}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ScrollView as RNScrollView } from 'react-native';
|
|
3
|
-
export declare const SheetScrollView: React.ForwardRefExoticComponent<Omit<import("@
|
|
4
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
3
|
+
export declare const SheetScrollView: React.ForwardRefExoticComponent<Omit<import("@hanzogui/core").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
4
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
|
|
5
5
|
accept: {
|
|
6
6
|
readonly contentContainerStyle: "style";
|
|
7
7
|
};
|
|
8
8
|
}>> | undefined;
|
|
9
9
|
}> & {
|
|
10
10
|
fullscreen?: boolean | undefined;
|
|
11
|
-
} & import("@
|
|
12
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
11
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
12
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
|
|
13
13
|
accept: {
|
|
14
14
|
readonly contentContainerStyle: "style";
|
|
15
15
|
};
|
|
16
16
|
}>> | undefined;
|
|
17
|
-
}>> & import("@
|
|
18
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
17
|
+
}>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
18
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
|
|
19
19
|
accept: {
|
|
20
20
|
readonly contentContainerStyle: "style";
|
|
21
21
|
};
|
|
22
22
|
}>> | undefined;
|
|
23
23
|
}> & {
|
|
24
24
|
fullscreen?: boolean | undefined;
|
|
25
|
-
} & import("@
|
|
26
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
25
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
26
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
|
|
27
27
|
accept: {
|
|
28
28
|
readonly contentContainerStyle: "style";
|
|
29
29
|
};
|
|
30
30
|
}>> | undefined;
|
|
31
|
-
}>>> & import("@
|
|
32
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
31
|
+
}>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase & {
|
|
32
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof RNScrollView, {
|
|
33
33
|
accept: {
|
|
34
34
|
readonly contentContainerStyle: "style";
|
|
35
35
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetScrollView.d.ts","sourceRoot":"","sources":["../src/SheetScrollView.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,cAAc,CAAA;AAS9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAmL3B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,IAAK,CAAA;AAE3B,eAAO,MAAM,UAAU,UAAU,CAAA;AACjC,eAAO,MAAM,iBAAiB,gBAAgB,CAAA;AAC9C,eAAO,MAAM,kBAAkB,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,kBAAkB;;EAE7B,CAAA;AAEF,eAAO,MAAM,uBAAuB,4BACtB,OAAO,KAAK,IAAI,SACvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../src/controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,KAAK,2BAA2B,GACjC,MAAM,sBAAsB,CAAA"}
|
package/types/createSheet.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetProps, ViewProps, GuiComponent, GuiComponentExpectingVariants } from '@
|
|
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
4
|
import type { SheetProps, SheetScopedProps } from './types';
|
|
@@ -25,23 +25,23 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
25
25
|
dismissOnSnapToBottom?: boolean;
|
|
26
26
|
disableRemoveScroll?: boolean;
|
|
27
27
|
forceRemoveScrollEnabled?: boolean;
|
|
28
|
-
transitionConfig?: import("@
|
|
28
|
+
transitionConfig?: import("@hanzogui/core").AnimatedNumberStrategy;
|
|
29
29
|
preferAdaptParentOpenState?: boolean;
|
|
30
30
|
unmountChildrenWhenHidden?: boolean;
|
|
31
31
|
native?: "ios"[] | boolean;
|
|
32
|
-
transition?: import("@
|
|
32
|
+
transition?: import("@hanzogui/core").TransitionProp;
|
|
33
33
|
handleDisableScroll?: boolean;
|
|
34
34
|
disableDrag?: boolean;
|
|
35
35
|
modal?: boolean;
|
|
36
36
|
zIndex?: number;
|
|
37
|
-
portalProps?: import("@
|
|
37
|
+
portalProps?: import("@hanzogui/portal").PortalProps;
|
|
38
38
|
moveOnKeyboardChange?: boolean;
|
|
39
39
|
containerComponent?: React.ComponentType<any>;
|
|
40
40
|
onAnimationComplete?: (info: {
|
|
41
41
|
open: boolean;
|
|
42
42
|
}) => void;
|
|
43
43
|
} & {
|
|
44
|
-
__scopeSheet?: import("@
|
|
44
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
45
45
|
} & RefAttributes<RNView>> & {
|
|
46
46
|
Controlled: FunctionComponent<Omit<SheetProps, "open" | "onOpenChange"> & RefAttributes<RNView>> & {
|
|
47
47
|
Frame: ForwardRefExoticComponent<SheetScopedProps<Omit<GetProps<F>, keyof {
|
|
@@ -72,43 +72,43 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
72
72
|
adjustPaddingForOffscreenContent?: boolean;
|
|
73
73
|
}>>;
|
|
74
74
|
Overlay: GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
75
|
-
__scopeSheet?: import("@
|
|
75
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
76
76
|
}, any, any, any, SharedSheetProps, {}> | GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
77
|
-
__scopeSheet?: import("@
|
|
77
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
78
78
|
}, any, {
|
|
79
|
-
__scopeSheet?: import("@
|
|
79
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
80
80
|
}, {}, {}, {}>;
|
|
81
81
|
Handle: GuiComponent<any, any, any, any, SharedSheetProps, {}> | GuiComponent<any, any, any, {}, {}, {}>;
|
|
82
|
-
ScrollView: ForwardRefExoticComponent<Omit<import("@
|
|
83
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
82
|
+
ScrollView: ForwardRefExoticComponent<Omit<import("@hanzogui/core").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
83
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
84
84
|
accept: {
|
|
85
85
|
readonly contentContainerStyle: "style";
|
|
86
86
|
};
|
|
87
87
|
}>> | undefined;
|
|
88
88
|
}> & {
|
|
89
89
|
fullscreen?: boolean | undefined;
|
|
90
|
-
} & import("@
|
|
91
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
90
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
91
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
92
92
|
accept: {
|
|
93
93
|
readonly contentContainerStyle: "style";
|
|
94
94
|
};
|
|
95
95
|
}>> | undefined;
|
|
96
|
-
}>> & import("@
|
|
97
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
96
|
+
}>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
97
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
98
98
|
accept: {
|
|
99
99
|
readonly contentContainerStyle: "style";
|
|
100
100
|
};
|
|
101
101
|
}>> | undefined;
|
|
102
102
|
}> & {
|
|
103
103
|
fullscreen?: boolean | undefined;
|
|
104
|
-
} & import("@
|
|
105
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
104
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
105
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
106
106
|
accept: {
|
|
107
107
|
readonly contentContainerStyle: "style";
|
|
108
108
|
};
|
|
109
109
|
}>> | undefined;
|
|
110
|
-
}>>> & import("@
|
|
111
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
110
|
+
}>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase & {
|
|
111
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
112
112
|
accept: {
|
|
113
113
|
readonly contentContainerStyle: "style";
|
|
114
114
|
};
|
|
@@ -145,43 +145,43 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
145
145
|
adjustPaddingForOffscreenContent?: boolean;
|
|
146
146
|
}>>;
|
|
147
147
|
Overlay: GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
148
|
-
__scopeSheet?: import("@
|
|
148
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
149
149
|
}, any, any, any, SharedSheetProps, {}> | GuiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
150
|
-
__scopeSheet?: import("@
|
|
150
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
151
151
|
}, any, {
|
|
152
|
-
__scopeSheet?: import("@
|
|
152
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
153
153
|
}, {}, {}, {}>;
|
|
154
154
|
Handle: GuiComponent<any, any, any, any, SharedSheetProps, {}> | GuiComponent<any, any, any, {}, {}, {}>;
|
|
155
|
-
ScrollView: ForwardRefExoticComponent<Omit<import("@
|
|
156
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
155
|
+
ScrollView: ForwardRefExoticComponent<Omit<import("@hanzogui/core").GuiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@hanzogui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
156
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
157
157
|
accept: {
|
|
158
158
|
readonly contentContainerStyle: "style";
|
|
159
159
|
};
|
|
160
160
|
}>> | undefined;
|
|
161
161
|
}> & {
|
|
162
162
|
fullscreen?: boolean | undefined;
|
|
163
|
-
} & import("@
|
|
164
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
163
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
164
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
165
165
|
accept: {
|
|
166
166
|
readonly contentContainerStyle: "style";
|
|
167
167
|
};
|
|
168
168
|
}>> | undefined;
|
|
169
|
-
}>> & import("@
|
|
170
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
169
|
+
}>> & import("@hanzogui/core").WithPseudoProps<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
170
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
171
171
|
accept: {
|
|
172
172
|
readonly contentContainerStyle: "style";
|
|
173
173
|
};
|
|
174
174
|
}>> | undefined;
|
|
175
175
|
}> & {
|
|
176
176
|
fullscreen?: boolean | undefined;
|
|
177
|
-
} & import("@
|
|
178
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
177
|
+
} & import("@hanzogui/core").WithShorthands<import("@hanzogui/core").WithThemeValues<import("@hanzogui/core").StackStyleBase & {
|
|
178
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
179
179
|
accept: {
|
|
180
180
|
readonly contentContainerStyle: "style";
|
|
181
181
|
};
|
|
182
182
|
}>> | undefined;
|
|
183
|
-
}>>> & import("@
|
|
184
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
183
|
+
}>>> & import("@hanzogui/core").WithMediaProps<import("@hanzogui/core").WithThemeShorthandsAndPseudos<import("@hanzogui/core").StackStyleBase & {
|
|
184
|
+
readonly contentContainerStyle?: Partial<import("@hanzogui/core").InferStyleProps<typeof import("react-native").ScrollView, {
|
|
185
185
|
accept: {
|
|
186
186
|
readonly contentContainerStyle: "style";
|
|
187
187
|
};
|
|
@@ -0,0 +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,SAAS,CAAA;AAI3D,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiG7D;;;;eAIG;wCACyB,OAAO;YAEnC;;;;eAIG;+CACgC,OAAO;;YAZ1C;;;;eAIG;wCACyB,OAAO;YAEnC;;;;eAIG;+CACgC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAZ1C;;;;WAIG;oCACyB,OAAO;QAEnC;;;;WAIG;2CACgC,OAAO;;QAZ1C;;;;WAIG;oCACyB,OAAO;QAEnC;;;;WAIG;2CACgC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgJ7C"}
|
package/types/gestureState.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Re-export gesture state from @
|
|
2
|
+
* Re-export gesture state from @hanzogui/native.
|
|
3
3
|
* Sheet uses this for backward compatibility with existing code.
|
|
4
4
|
*/
|
|
5
|
-
import { type GestureState } from '@
|
|
6
|
-
export type { GestureState as GestureHandlerState } from '@
|
|
5
|
+
import { type GestureState } from '@hanzogui/native';
|
|
6
|
+
export type { GestureState as GestureHandlerState } from '@hanzogui/native';
|
|
7
7
|
export declare function isGestureHandlerEnabled(): boolean;
|
|
8
8
|
export declare function getGestureHandlerState(): GestureState;
|
|
9
9
|
export declare function setGestureHandlerState(updates: Partial<GestureState>): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gestureState.d.ts","sourceRoot":"","sources":["../src/gestureState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEvE,YAAY,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAG3E,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD;AAED,wBAAgB,sBAAsB,IAAI,YAAY,CAErD;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAE3E;AAGD,eAAO,MAAM,eAAe,+BAAyB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,SAAK,UAgBjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +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,SAAS,CAAA;AAMzC,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,QA6DpE"}
|