@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/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/jsx-runtime").JSX.Element, (consumerName: string, scope: import("@
|
|
5
|
+
}) => import("react/jsx-runtime").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").HanzoguiElement | null>;
|
|
19
|
+
handleRef: import("react").RefObject<import("@hanzogui/web").HanzoguiElement | 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/jsx-runtime").JSX.Element, useSheetContext: (consumerName: string, scope: import("@
|
|
39
|
+
}) => import("react/jsx-runtime").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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { SheetControllerContextValue } from './useSheetController';
|
|
3
|
-
export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, open, hidden, disableDrag, }: Partial<SheetControllerContextValue> & {
|
|
3
|
+
export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, onAnimationComplete: onAnimationCompleteProp, open, hidden, disableDrag, }: Partial<SheetControllerContextValue> & {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=SheetController.d.ts.map
|
|
@@ -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
|
|
@@ -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").HanzoguiComponentPropsBaseBase & 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
|
};
|
package/types/createSheet.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetProps, ViewProps,
|
|
1
|
+
import type { GetProps, ViewProps, HanzoguiComponent, HanzoguiComponentExpectingVariants } 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';
|
|
@@ -6,8 +6,8 @@ type SharedSheetProps = {
|
|
|
6
6
|
open?: boolean;
|
|
7
7
|
};
|
|
8
8
|
type BaseProps = ViewProps & SharedSheetProps;
|
|
9
|
-
type SheetStyledComponent =
|
|
10
|
-
export declare function createSheet<H extends
|
|
9
|
+
type SheetStyledComponent = HanzoguiComponentExpectingVariants<BaseProps, SharedSheetProps>;
|
|
10
|
+
export declare function createSheet<H extends HanzoguiComponent | SheetStyledComponent, F extends HanzoguiComponent | SheetStyledComponent, O extends HanzoguiComponent | SheetStyledComponent>({ Handle, Frame, Overlay }: {
|
|
11
11
|
Handle: H;
|
|
12
12
|
Frame: F;
|
|
13
13
|
Overlay: O;
|
|
@@ -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 {
|
|
@@ -71,44 +71,44 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
71
71
|
*/
|
|
72
72
|
adjustPaddingForOffscreenContent?: boolean;
|
|
73
73
|
}>>;
|
|
74
|
-
Overlay:
|
|
75
|
-
__scopeSheet?: import("@
|
|
76
|
-
}, any, any, any, SharedSheetProps, {}> |
|
|
77
|
-
__scopeSheet?: import("@
|
|
74
|
+
Overlay: HanzoguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
75
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
76
|
+
}, any, any, any, SharedSheetProps, {}> | HanzoguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
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
|
-
Handle:
|
|
82
|
-
ScrollView: ForwardRefExoticComponent<Omit<import("@
|
|
83
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
81
|
+
Handle: HanzoguiComponent<any, any, any, any, SharedSheetProps, {}> | HanzoguiComponent<any, any, any, {}, {}, {}>;
|
|
82
|
+
ScrollView: 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 & {
|
|
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
|
};
|
|
@@ -144,44 +144,44 @@ export declare function createSheet<H extends GuiComponent | SheetStyledComponen
|
|
|
144
144
|
*/
|
|
145
145
|
adjustPaddingForOffscreenContent?: boolean;
|
|
146
146
|
}>>;
|
|
147
|
-
Overlay:
|
|
148
|
-
__scopeSheet?: import("@
|
|
149
|
-
}, any, any, any, SharedSheetProps, {}> |
|
|
150
|
-
__scopeSheet?: import("@
|
|
147
|
+
Overlay: HanzoguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
148
|
+
__scopeSheet?: import("@hanzogui/create-context").Scope<any>;
|
|
149
|
+
}, any, any, any, SharedSheetProps, {}> | HanzoguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
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
|
-
Handle:
|
|
155
|
-
ScrollView: ForwardRefExoticComponent<Omit<import("@
|
|
156
|
-
readonly contentContainerStyle?: Partial<import("@
|
|
154
|
+
Handle: HanzoguiComponent<any, any, any, any, SharedSheetProps, {}> | HanzoguiComponent<any, any, any, {}, {}, {}>;
|
|
155
|
+
ScrollView: 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 & {
|
|
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
|
};
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Legacy setup - prefer `import '@
|
|
2
|
+
* Legacy setup - prefer `import '@hanzogui/native/setup-gesture-handler'` instead.
|
|
3
3
|
*/
|
|
4
4
|
export declare function isGestureHandlerEnabled(): boolean;
|
|
5
5
|
export interface SetupGestureHandlerConfig {
|
package/types/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { AnimatedNumberStrategy, TransitionProp } from '@
|
|
2
|
-
import type { ScopedProps } from '@
|
|
3
|
-
import type { PortalProps } from '@
|
|
4
|
-
import type { RemoveScroll } from '@
|
|
1
|
+
import type { AnimatedNumberStrategy, TransitionProp } from '@hanzogui/core';
|
|
2
|
+
import type { ScopedProps } from '@hanzogui/create-context';
|
|
3
|
+
import type { PortalProps } from '@hanzogui/portal';
|
|
4
|
+
import type { RemoveScroll } from '@hanzogui/remove-scroll';
|
|
5
5
|
import type { ReactNode } from 'react';
|
|
6
6
|
import type React from 'react';
|
|
7
7
|
export type SheetProps = ScopedProps<{
|
|
@@ -12,6 +12,9 @@ export type SheetControllerContextValue = {
|
|
|
12
12
|
open?: boolean;
|
|
13
13
|
hidden?: boolean;
|
|
14
14
|
onOpenChange?: React.Dispatch<React.SetStateAction<boolean>> | ((val: boolean) => void);
|
|
15
|
+
onAnimationComplete?: (state: {
|
|
16
|
+
open: boolean;
|
|
17
|
+
}) => void;
|
|
15
18
|
skipNextAnimation?: boolean;
|
|
16
19
|
};
|
|
17
20
|
//# sourceMappingURL=useSheetController.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { HanzoguiElement } from '@hanzogui/core';
|
|
3
3
|
import type { ScrollBridge, SheetProps } from './types';
|
|
4
4
|
import type { SheetOpenState } from './useSheetOpenState';
|
|
5
5
|
export type SheetContextValue = ReturnType<typeof useSheetProviderProps> & {
|
|
@@ -16,14 +16,14 @@ export declare function useSheetProviderProps(props: SheetProps, state: SheetOpe
|
|
|
16
16
|
open: boolean;
|
|
17
17
|
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
18
18
|
hidden: boolean;
|
|
19
|
-
contentRef: React.RefObject<
|
|
20
|
-
handleRef: React.RefObject<
|
|
19
|
+
contentRef: React.RefObject<HanzoguiElement | null>;
|
|
20
|
+
handleRef: React.RefObject<HanzoguiElement | null>;
|
|
21
21
|
frameSize: number;
|
|
22
22
|
setFrameSize: React.Dispatch<React.SetStateAction<number>>;
|
|
23
23
|
dismissOnOverlayPress: boolean;
|
|
24
24
|
dismissOnSnapToBottom: boolean;
|
|
25
25
|
onOverlayComponent: ((comp: any) => void) | undefined;
|
|
26
|
-
scope: import("@
|
|
26
|
+
scope: import("@hanzogui/create-context").Scope<any>;
|
|
27
27
|
hasFit: boolean;
|
|
28
28
|
position: number;
|
|
29
29
|
snapPoints: (string | number)[];
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: !0
|
|
9
|
-
});
|
|
10
|
-
},
|
|
11
|
-
__copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
-
get: () => from[key],
|
|
14
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
-
});
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value: !0
|
|
20
|
-
}), mod);
|
|
21
|
-
var GestureDetectorWrapper_exports = {};
|
|
22
|
-
__export(GestureDetectorWrapper_exports, {
|
|
23
|
-
GestureDetectorWrapper: () => GestureDetectorWrapper
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(GestureDetectorWrapper_exports);
|
|
26
|
-
var import_react_native = require("react-native-web"),
|
|
27
|
-
import_gestureState = require("./gestureState.cjs"),
|
|
28
|
-
import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
function GestureDetectorWrapper({
|
|
30
|
-
gesture,
|
|
31
|
-
children,
|
|
32
|
-
style
|
|
33
|
-
}) {
|
|
34
|
-
const {
|
|
35
|
-
GestureDetector
|
|
36
|
-
} = (0, import_gestureState.getGestureHandlerState)();
|
|
37
|
-
return (0, import_gestureState.isGestureHandlerEnabled)() && GestureDetector && gesture ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureDetector, {
|
|
38
|
-
gesture,
|
|
39
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
40
|
-
style,
|
|
41
|
-
collapsable: !1,
|
|
42
|
-
children
|
|
43
|
-
})
|
|
44
|
-
}) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
45
|
-
style,
|
|
46
|
-
children
|
|
47
|
-
});
|
|
48
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: !0
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
__copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var GestureDetectorWrapper_exports = {};
|
|
24
|
-
__export(GestureDetectorWrapper_exports, {
|
|
25
|
-
GestureDetectorWrapper: () => GestureDetectorWrapper
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(GestureDetectorWrapper_exports);
|
|
28
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
-
import_react_native = require("react-native"),
|
|
30
|
-
import_gestureState = require("./gestureState.native.js");
|
|
31
|
-
function GestureDetectorWrapper(param) {
|
|
32
|
-
var {
|
|
33
|
-
gesture,
|
|
34
|
-
children,
|
|
35
|
-
style
|
|
36
|
-
} = param,
|
|
37
|
-
{
|
|
38
|
-
GestureDetector
|
|
39
|
-
} = (0, import_gestureState.getGestureHandlerState)(),
|
|
40
|
-
enabled = (0, import_gestureState.isGestureHandlerEnabled)();
|
|
41
|
-
return enabled && GestureDetector && gesture ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureDetector, {
|
|
42
|
-
gesture,
|
|
43
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
44
|
-
style,
|
|
45
|
-
collapsable: !1,
|
|
46
|
-
children
|
|
47
|
-
})
|
|
48
|
-
}) : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
|
|
49
|
-
style,
|
|
50
|
-
children
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=GestureDetectorWrapper.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","GestureDetectorWrapper_exports","__export","GestureDetectorWrapper","module","exports","import_jsx_runtime","require","import_react_native","import_gestureState","param","gesture","children","style","GestureDetector","getGestureHandlerState","enabled","isGestureHandlerEnabled","jsx","View","collapsable"],"sources":["../../src/GestureDetectorWrapper.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,8BAAA;AAAAC,QAAA,CAAAD,8BAAA;EAAAE,sBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAqC,CAAAK,8BACrC;AAYO,IAAAK,kBAAS,GAAAC,OAAuB;EAAAC,mBAAA,GAAAD,OAAA;EAAAE,mBAAA,GAAAF,OAAA;AAAA,SACrCJ,uBAAAO,KAAA;EACA;MAAAC,OAAA;MAAAC,QAAA;MAAAC;IAAA,IAAAH,KAAA;IAAA;MAAAI;IAAA,QAAAL,mBAAA,CAAAM,sBAAA;IAAAC,OAAA,OAAAP,mBAAA,CAAAQ,uBAAA;EACA,OAAAD,OAAA,IAAAF,eAAA,IAAAH,OAAA,sBAAAL,kBAAA,CAAAY,GAAA,EAAAJ,eAAA;IAC8BH,OAAA;IAC9BC,QAAQ,iBAAgB,IAAIN,kBAAA,CAAAY,GAAA,EAAAV,mBAAA,CAAuBW,IAAA;MAMnDN,KAAA;MAeFO,WAAA","ignoreList":[]}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: !0
|
|
9
|
-
});
|
|
10
|
-
},
|
|
11
|
-
__copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
-
get: () => from[key],
|
|
14
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
-
});
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value: !0
|
|
20
|
-
}), mod);
|
|
21
|
-
var GestureSheetContext_exports = {};
|
|
22
|
-
__export(GestureSheetContext_exports, {
|
|
23
|
-
GestureSheetProvider: () => GestureSheetProvider,
|
|
24
|
-
useGestureSheetContext: () => useGestureSheetContext
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(GestureSheetContext_exports);
|
|
27
|
-
var import_react = require("react"),
|
|
28
|
-
import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
const GestureSheetContext = (0, import_react.createContext)(null);
|
|
30
|
-
function useGestureSheetContext() {
|
|
31
|
-
return (0, import_react.useContext)(GestureSheetContext);
|
|
32
|
-
}
|
|
33
|
-
function GestureSheetProvider({
|
|
34
|
-
children,
|
|
35
|
-
isDragging,
|
|
36
|
-
blockPan,
|
|
37
|
-
setBlockPan,
|
|
38
|
-
panGesture,
|
|
39
|
-
panGestureRef
|
|
40
|
-
}) {
|
|
41
|
-
const value = {
|
|
42
|
-
panGesture,
|
|
43
|
-
panGestureRef,
|
|
44
|
-
isDragging,
|
|
45
|
-
blockPan,
|
|
46
|
-
setBlockPan
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureSheetContext.Provider, {
|
|
49
|
-
value,
|
|
50
|
-
children
|
|
51
|
-
});
|
|
52
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: !0
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
__copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var GestureSheetContext_exports = {};
|
|
24
|
-
__export(GestureSheetContext_exports, {
|
|
25
|
-
GestureSheetProvider: () => GestureSheetProvider,
|
|
26
|
-
useGestureSheetContext: () => useGestureSheetContext
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(GestureSheetContext_exports);
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
30
|
-
import_react = require("react"),
|
|
31
|
-
GestureSheetContext = /* @__PURE__ */(0, import_react.createContext)(null);
|
|
32
|
-
function useGestureSheetContext() {
|
|
33
|
-
return (0, import_react.useContext)(GestureSheetContext);
|
|
34
|
-
}
|
|
35
|
-
function GestureSheetProvider(param) {
|
|
36
|
-
var {
|
|
37
|
-
children,
|
|
38
|
-
isDragging,
|
|
39
|
-
blockPan,
|
|
40
|
-
setBlockPan,
|
|
41
|
-
panGesture,
|
|
42
|
-
panGestureRef
|
|
43
|
-
} = param,
|
|
44
|
-
value = {
|
|
45
|
-
panGesture,
|
|
46
|
-
panGestureRef,
|
|
47
|
-
isDragging,
|
|
48
|
-
blockPan,
|
|
49
|
-
setBlockPan
|
|
50
|
-
};
|
|
51
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(GestureSheetContext.Provider, {
|
|
52
|
-
value,
|
|
53
|
-
children
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=GestureSheetContext.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","GestureSheetContext_exports","__export","GestureSheetProvider","useGestureSheetContext","module","exports","import_jsx_runtime","require","import_react","GestureSheetContext","createContext","useContext","param","children","isDragging","blockPan","setBlockPan","panGesture","panGestureRef","jsx","Provider"],"sources":["../../src/GestureSheetContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA,oBAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAV,YAA0D,CAAAK,2BA0DtD;AAhCJ,IAAAM,kBAAM,GAAAC,OAAsB;EAAAC,YAAmD,GAAAD,OAAA;EAAAE,mBAAA,sBAAAD,YAAA,CAAAE,aAAA;AAExE,SAASP,uBAAA,EAA0D;EACxE,WAAOK,YAAA,CAAAG,UAAA,EAAWF,mBAAmB;AACvC;AAWO,SAASP,qBAAqBU,KAAA;EACnC;MAAAC,QAAA;MAAAC,UAAA;MAAAC,QAAA;MAAAC,WAAA;MAAAC,UAAA;MAAAC;IAAA,IAAAN,KAAA;IAAAb,KAAA;MACAkB,UAAA;MACAC,aAAA;MACAJ,UAAA;MACAC,QAAA;MACAC;IACF,CAA8B;EAC5B,OAAM,eAAkC,IAAAV,kBAAA,CAAAa,GAAA,EAAAV,mBAAA,CAAAW,QAAA;IACtCrB,KAAA;IACAc;EAAA,EACA;AAAA","ignoreList":[]}
|