@tamagui/sheet 3.3.2 → 3.3.3
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/package.json +25 -25
- package/types/Sheet.d.ts +22 -22
- package/types/SheetContext.d.ts +1 -1
- package/types/SheetController.d.ts +1 -1
- package/types/SheetDragSurface.d.ts +1 -1
- package/types/SheetDragSurface.native.d.ts +1 -1
- package/types/SheetImplementationCustom.d.ts +1 -1
- package/types/SheetScrollView.d.ts +1 -1
- package/types/controller.d.ts +2 -2
- package/types/index.d.ts +10 -10
- package/types/nativeSheet.d.ts +1 -1
- package/types/nativeSheet.native.d.ts +1 -1
- package/types/useGestureHandlerPan.d.ts +1 -1
- package/types/useKeyboardControllerSheet.d.ts +1 -1
- package/types/useKeyboardControllerSheet.native.d.ts +1 -1
- package/types/useSafeAreaInsets.native.d.ts +1 -1
- package/types/useSheetController.d.ts +1 -1
- package/types/useSheetOffscreenSize.d.ts +1 -1
- package/types/useSheetOpenState.d.ts +2 -2
- package/types/useSheetProviderProps.d.ts +4 -4
- package/types/useSheetScrollViewGestures.d.ts +1 -1
- package/types/useSheetScrollViewGestures.native.d.ts +1 -1
- package/types/useSheetState.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/sheet",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
"clean": "tamagui-build clean"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@tamagui/adapt": "3.3.
|
|
47
|
-
"@tamagui/animate-presence": "3.3.
|
|
48
|
-
"@tamagui/animation-helpers": "3.3.
|
|
49
|
-
"@tamagui/animations-react-native": "3.3.
|
|
50
|
-
"@tamagui/compose-refs": "3.3.
|
|
51
|
-
"@tamagui/constants": "3.3.
|
|
52
|
-
"@tamagui/core": "3.3.
|
|
53
|
-
"@tamagui/focus-scope": "3.3.
|
|
54
|
-
"@tamagui/helpers": "3.3.
|
|
55
|
-
"@tamagui/native": "3.3.
|
|
56
|
-
"@tamagui/portal": "3.3.
|
|
57
|
-
"@tamagui/react-native-pan-responder": "3.3.
|
|
58
|
-
"@tamagui/react-native-types": "3.3.
|
|
59
|
-
"@tamagui/react-native-use-responder-events": "3.3.
|
|
60
|
-
"@tamagui/remove-scroll": "3.3.
|
|
61
|
-
"@tamagui/scroll-view": "3.3.
|
|
62
|
-
"@tamagui/stacks": "3.3.
|
|
63
|
-
"@tamagui/use-constant": "3.3.
|
|
64
|
-
"@tamagui/use-controllable-state": "3.3.
|
|
65
|
-
"@tamagui/use-did-finish-ssr": "3.3.
|
|
66
|
-
"@tamagui/web": "3.3.
|
|
67
|
-
"@tamagui/z-index-stack": "3.3.
|
|
46
|
+
"@tamagui/adapt": "3.3.3",
|
|
47
|
+
"@tamagui/animate-presence": "3.3.3",
|
|
48
|
+
"@tamagui/animation-helpers": "3.3.3",
|
|
49
|
+
"@tamagui/animations-react-native": "3.3.3",
|
|
50
|
+
"@tamagui/compose-refs": "3.3.3",
|
|
51
|
+
"@tamagui/constants": "3.3.3",
|
|
52
|
+
"@tamagui/core": "3.3.3",
|
|
53
|
+
"@tamagui/focus-scope": "3.3.3",
|
|
54
|
+
"@tamagui/helpers": "3.3.3",
|
|
55
|
+
"@tamagui/native": "3.3.3",
|
|
56
|
+
"@tamagui/portal": "3.3.3",
|
|
57
|
+
"@tamagui/react-native-pan-responder": "3.3.3",
|
|
58
|
+
"@tamagui/react-native-types": "3.3.3",
|
|
59
|
+
"@tamagui/react-native-use-responder-events": "3.3.3",
|
|
60
|
+
"@tamagui/remove-scroll": "3.3.3",
|
|
61
|
+
"@tamagui/scroll-view": "3.3.3",
|
|
62
|
+
"@tamagui/stacks": "3.3.3",
|
|
63
|
+
"@tamagui/use-constant": "3.3.3",
|
|
64
|
+
"@tamagui/use-controllable-state": "3.3.3",
|
|
65
|
+
"@tamagui/use-did-finish-ssr": "3.3.3",
|
|
66
|
+
"@tamagui/web": "3.3.3",
|
|
67
|
+
"@tamagui/z-index-stack": "3.3.3"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@tamagui/build": "3.3.
|
|
70
|
+
"@tamagui/build": "3.3.3",
|
|
71
71
|
"react": "19.3.0",
|
|
72
72
|
"react-native": "0.88.0",
|
|
73
73
|
"react-native-gesture-handler": "3.3.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"url": "git+https://github.com/tamagui/tamagui.git",
|
|
91
91
|
"directory": "code/ui/sheet"
|
|
92
92
|
},
|
|
93
|
-
"releaseSourceCommit": "
|
|
93
|
+
"releaseSourceCommit": "385dcd1463f91c66545c81d13f567305eb8a83ba"
|
|
94
94
|
}
|
package/types/Sheet.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { type TamaguiElement, type ViewProps } from '@tamagui/core';
|
|
2
2
|
import type { FunctionComponent, Ref } from 'react';
|
|
3
3
|
import type { ViewInstance as RNView } from '@tamagui/react-native-types';
|
|
4
|
-
import { useAnimatedPosition } from './SheetContext';
|
|
5
|
-
import type { SheetProps } from './types';
|
|
6
|
-
export * from './types';
|
|
4
|
+
import { useAnimatedPosition } from './SheetContext.js';
|
|
5
|
+
import type { SheetProps } from './types.js';
|
|
6
|
+
export * from './types.js';
|
|
7
7
|
export declare const SheetHandle: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "scope"> & Omit<{}, "scope"> & {
|
|
8
|
-
scope?: import("./types").SheetScopes;
|
|
8
|
+
scope?: import("./types.js").SheetScopes;
|
|
9
9
|
}, import("@tamagui/core").StackStyleBase, Omit<{
|
|
10
10
|
open?: boolean | undefined;
|
|
11
11
|
}, "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
12
12
|
export declare const SheetOverlay: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "scope"> & Omit<{}, "scope"> & {
|
|
13
|
-
scope?: import("./types").SheetScopes;
|
|
13
|
+
scope?: import("./types.js").SheetScopes;
|
|
14
14
|
}, import("@tamagui/core").StackStyleBase, Omit<{
|
|
15
15
|
open?: boolean | undefined;
|
|
16
16
|
}, "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
@@ -23,7 +23,7 @@ type ExtraContainerProps = {
|
|
|
23
23
|
adjustPaddingForOffscreenContent?: boolean;
|
|
24
24
|
};
|
|
25
25
|
export declare const SheetContainer: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "adjustPaddingForOffscreenContent" | "scope"> & Omit<ExtraContainerProps, "scope"> & {
|
|
26
|
-
scope?: import("./types").SheetScopes;
|
|
26
|
+
scope?: import("./types.js").SheetScopes;
|
|
27
27
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "adjustPaddingForOffscreenContent" | "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
28
28
|
type ExtraBackgroundProps = {
|
|
29
29
|
/**
|
|
@@ -33,25 +33,25 @@ type ExtraBackgroundProps = {
|
|
|
33
33
|
disableHideBottomOverflow?: boolean;
|
|
34
34
|
};
|
|
35
35
|
export declare const SheetBackground: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disableHideBottomOverflow" | "scope"> & Omit<ExtraBackgroundProps, "scope"> & {
|
|
36
|
-
scope?: import("./types").SheetScopes;
|
|
36
|
+
scope?: import("./types.js").SheetScopes;
|
|
37
37
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "disableHideBottomOverflow" | "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
38
38
|
export declare const SheetRoot: import("@tamagui/compose-refs").RefComponent<RNView, SheetProps>;
|
|
39
39
|
export declare const SheetControlled: import("@tamagui/helpers").Combined<FunctionComponent<Omit<SheetProps, "onOpenChange" | "open"> & {
|
|
40
40
|
ref?: Ref<RNView>;
|
|
41
41
|
}>, {
|
|
42
42
|
Container: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "adjustPaddingForOffscreenContent" | "scope"> & Omit<ExtraContainerProps, "scope"> & {
|
|
43
|
-
scope?: import("./types").SheetScopes;
|
|
43
|
+
scope?: import("./types.js").SheetScopes;
|
|
44
44
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "adjustPaddingForOffscreenContent" | "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
45
45
|
Background: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disableHideBottomOverflow" | "scope"> & Omit<ExtraBackgroundProps, "scope"> & {
|
|
46
|
-
scope?: import("./types").SheetScopes;
|
|
46
|
+
scope?: import("./types.js").SheetScopes;
|
|
47
47
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "disableHideBottomOverflow" | "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
48
48
|
Overlay: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "scope"> & Omit<{}, "scope"> & {
|
|
49
|
-
scope?: import("./types").SheetScopes;
|
|
49
|
+
scope?: import("./types.js").SheetScopes;
|
|
50
50
|
}, import("@tamagui/core").StackStyleBase, Omit<{
|
|
51
51
|
open?: boolean | undefined;
|
|
52
52
|
}, "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
53
53
|
Handle: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "scope"> & Omit<{}, "scope"> & {
|
|
54
|
-
scope?: import("./types").SheetScopes;
|
|
54
|
+
scope?: import("./types.js").SheetScopes;
|
|
55
55
|
}, import("@tamagui/core").StackStyleBase, Omit<{
|
|
56
56
|
open?: boolean | undefined;
|
|
57
57
|
}, "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
@@ -70,7 +70,7 @@ export declare const SheetControlled: import("@tamagui/helpers").Combined<Functi
|
|
|
70
70
|
onMomentumScrollBegin?: import("@tamagui/scroll-view").WebScrollEventHandler;
|
|
71
71
|
onMomentumScrollEnd?: import("@tamagui/scroll-view").WebScrollEventHandler;
|
|
72
72
|
} & import("react").RefAttributes<import("@tamagui/scroll-view").ScrollViewRef>, "scope"> & Omit<{}, "scope"> & {
|
|
73
|
-
scope?: import("./types").SheetScopes;
|
|
73
|
+
scope?: import("./types.js").SheetScopes;
|
|
74
74
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "scope">, {
|
|
75
75
|
acceptsClassName: true;
|
|
76
76
|
neverFlatten: true;
|
|
@@ -78,18 +78,18 @@ export declare const SheetControlled: import("@tamagui/helpers").Combined<Functi
|
|
|
78
78
|
}>;
|
|
79
79
|
export declare const Sheet: import("@tamagui/helpers").Combined<import("@tamagui/compose-refs").RefComponent<RNView, SheetProps>, {
|
|
80
80
|
Container: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "adjustPaddingForOffscreenContent" | "scope"> & Omit<ExtraContainerProps, "scope"> & {
|
|
81
|
-
scope?: import("./types").SheetScopes;
|
|
81
|
+
scope?: import("./types.js").SheetScopes;
|
|
82
82
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "adjustPaddingForOffscreenContent" | "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
83
83
|
Background: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disableHideBottomOverflow" | "scope"> & Omit<ExtraBackgroundProps, "scope"> & {
|
|
84
|
-
scope?: import("./types").SheetScopes;
|
|
84
|
+
scope?: import("./types.js").SheetScopes;
|
|
85
85
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "disableHideBottomOverflow" | "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
86
86
|
Overlay: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "scope"> & Omit<{}, "scope"> & {
|
|
87
|
-
scope?: import("./types").SheetScopes;
|
|
87
|
+
scope?: import("./types.js").SheetScopes;
|
|
88
88
|
}, import("@tamagui/core").StackStyleBase, Omit<{
|
|
89
89
|
open?: boolean | undefined;
|
|
90
90
|
}, "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
91
91
|
Handle: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "scope"> & Omit<{}, "scope"> & {
|
|
92
|
-
scope?: import("./types").SheetScopes;
|
|
92
|
+
scope?: import("./types.js").SheetScopes;
|
|
93
93
|
}, import("@tamagui/core").StackStyleBase, Omit<{
|
|
94
94
|
open?: boolean | undefined;
|
|
95
95
|
}, "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
@@ -108,7 +108,7 @@ export declare const Sheet: import("@tamagui/helpers").Combined<import("@tamagui
|
|
|
108
108
|
onMomentumScrollBegin?: import("@tamagui/scroll-view").WebScrollEventHandler;
|
|
109
109
|
onMomentumScrollEnd?: import("@tamagui/scroll-view").WebScrollEventHandler;
|
|
110
110
|
} & import("react").RefAttributes<import("@tamagui/scroll-view").ScrollViewRef>, "scope"> & Omit<{}, "scope"> & {
|
|
111
|
-
scope?: import("./types").SheetScopes;
|
|
111
|
+
scope?: import("./types.js").SheetScopes;
|
|
112
112
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "scope">, {
|
|
113
113
|
acceptsClassName: true;
|
|
114
114
|
neverFlatten: true;
|
|
@@ -118,18 +118,18 @@ export declare const Sheet: import("@tamagui/helpers").Combined<import("@tamagui
|
|
|
118
118
|
ref?: Ref<RNView>;
|
|
119
119
|
}>, {
|
|
120
120
|
Container: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "adjustPaddingForOffscreenContent" | "scope"> & Omit<ExtraContainerProps, "scope"> & {
|
|
121
|
-
scope?: import("./types").SheetScopes;
|
|
121
|
+
scope?: import("./types.js").SheetScopes;
|
|
122
122
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "adjustPaddingForOffscreenContent" | "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
123
123
|
Background: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disableHideBottomOverflow" | "scope"> & Omit<ExtraBackgroundProps, "scope"> & {
|
|
124
|
-
scope?: import("./types").SheetScopes;
|
|
124
|
+
scope?: import("./types.js").SheetScopes;
|
|
125
125
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "disableHideBottomOverflow" | "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
126
126
|
Overlay: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "scope"> & Omit<{}, "scope"> & {
|
|
127
|
-
scope?: import("./types").SheetScopes;
|
|
127
|
+
scope?: import("./types.js").SheetScopes;
|
|
128
128
|
}, import("@tamagui/core").StackStyleBase, Omit<{
|
|
129
129
|
open?: boolean | undefined;
|
|
130
130
|
}, "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
131
131
|
Handle: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, TamaguiElement, Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "scope"> & Omit<{}, "scope"> & {
|
|
132
|
-
scope?: import("./types").SheetScopes;
|
|
132
|
+
scope?: import("./types.js").SheetScopes;
|
|
133
133
|
}, import("@tamagui/core").StackStyleBase, Omit<{
|
|
134
134
|
open?: boolean | undefined;
|
|
135
135
|
}, "scope">, import("@tamagui/core").StaticConfigPublic>;
|
|
@@ -148,7 +148,7 @@ export declare const Sheet: import("@tamagui/helpers").Combined<import("@tamagui
|
|
|
148
148
|
onMomentumScrollBegin?: import("@tamagui/scroll-view").WebScrollEventHandler;
|
|
149
149
|
onMomentumScrollEnd?: import("@tamagui/scroll-view").WebScrollEventHandler;
|
|
150
150
|
} & import("react").RefAttributes<import("@tamagui/scroll-view").ScrollViewRef>, "scope"> & Omit<{}, "scope"> & {
|
|
151
|
-
scope?: import("./types").SheetScopes;
|
|
151
|
+
scope?: import("./types.js").SheetScopes;
|
|
152
152
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "scope">, {
|
|
153
153
|
acceptsClassName: true;
|
|
154
154
|
neverFlatten: true;
|
package/types/SheetContext.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type UniversalAnimatedNumber } from '@tamagui/core';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { SheetContextValue } from './useSheetProviderProps';
|
|
3
|
+
import type { SheetContextValue } from './useSheetProviderProps.js';
|
|
4
4
|
export declare const SheetContext: import("@tamagui/core").StyledContext<SheetContextValue, never>;
|
|
5
5
|
export declare const SheetProvider: React.Provider<SheetContextValue> & React.ProviderExoticComponent<Partial<SheetContextValue> & {
|
|
6
6
|
children?: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import type { SheetControllerContextValue } from './useSheetController';
|
|
3
|
+
import type { SheetControllerContextValue } from './useSheetController.js';
|
|
4
4
|
export declare const SheetController: ({ children, onOpenChange: onOpenChangeProp, onTransition: onTransitionProp, open, hidden, disableDrag, scope, }: Partial<SheetControllerContextValue> & {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
scope?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ViewInstance as View } from '@tamagui/react-native-types';
|
|
2
|
-
import type { SheetProps } from './types';
|
|
2
|
+
import type { SheetProps } from './types.js';
|
|
3
3
|
export declare const SheetImplementationCustom: import("@tamagui/compose-refs").RefComponent<View, SheetProps>;
|
|
4
4
|
export declare function isSheetOverlayComponent(type: unknown): boolean;
|
|
5
5
|
//# sourceMappingURL=SheetImplementationCustom.d.ts.map
|
|
@@ -15,7 +15,7 @@ export declare const SheetScrollView: import("@tamagui/core").TamaguiComponent<i
|
|
|
15
15
|
onMomentumScrollBegin?: import("@tamagui/scroll-view").WebScrollEventHandler;
|
|
16
16
|
onMomentumScrollEnd?: import("@tamagui/scroll-view").WebScrollEventHandler;
|
|
17
17
|
} & React.RefAttributes<ScrollViewRef>, "scope"> & Omit<{}, "scope"> & {
|
|
18
|
-
scope?: import("./types").SheetScopes;
|
|
18
|
+
scope?: import("./types.js").SheetScopes;
|
|
19
19
|
}, import("@tamagui/core").StackStyleBase, Omit<{}, "scope">, {
|
|
20
20
|
acceptsClassName: true;
|
|
21
21
|
neverFlatten: true;
|
package/types/controller.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SheetController } from './SheetController';
|
|
2
|
-
export { SheetControllerContext, useSheetController, type SheetControllerContextValue, } from './useSheetController';
|
|
1
|
+
export { SheetController } from './SheetController.js';
|
|
2
|
+
export { SheetControllerContext, useSheetController, type SheetControllerContextValue, } from './useSheetController.js';
|
|
3
3
|
//# sourceMappingURL=controller.d.ts.map
|
package/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './Sheet';
|
|
2
|
-
export { useSheetContext } from './SheetContext';
|
|
3
|
-
export * from './SheetController';
|
|
4
|
-
export * from './useSheetController';
|
|
5
|
-
export * from './useSheetOpenState';
|
|
6
|
-
export * from './useSheetOffscreenSize';
|
|
7
|
-
export * from './SheetScrollView';
|
|
8
|
-
export * from './nativeSheet';
|
|
9
|
-
export * from './types';
|
|
10
|
-
export * from './contexts';
|
|
1
|
+
export * from './Sheet.js';
|
|
2
|
+
export { useSheetContext } from './SheetContext.js';
|
|
3
|
+
export * from './SheetController.js';
|
|
4
|
+
export * from './useSheetController.js';
|
|
5
|
+
export * from './useSheetOpenState.js';
|
|
6
|
+
export * from './useSheetOffscreenSize.js';
|
|
7
|
+
export * from './SheetScrollView.js';
|
|
8
|
+
export * from './nativeSheet.js';
|
|
9
|
+
export * from './types.js';
|
|
10
|
+
export * from './contexts.js';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/types/nativeSheet.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Ref } from 'react';
|
|
2
2
|
import type { ViewInstance as View } from '@tamagui/react-native-types';
|
|
3
3
|
import type { ComponentType } from 'react';
|
|
4
|
-
import type { NativeSheetRenderer, SheetNativePlatforms, SheetProps } from './types';
|
|
4
|
+
import type { NativeSheetRenderer, SheetNativePlatforms, SheetProps } from './types.js';
|
|
5
5
|
export declare function getNativeSheet(_platform: SheetNativePlatforms): ComponentType<SheetProps & {
|
|
6
6
|
ref?: Ref<View>;
|
|
7
7
|
}> | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ViewInstance as View } from '@tamagui/react-native-types';
|
|
2
|
-
import type { NativeSheetRenderer, SheetNativePlatforms, SheetProps } from './types';
|
|
2
|
+
import type { NativeSheetRenderer, SheetNativePlatforms, SheetProps } from './types.js';
|
|
3
3
|
export declare function getNativeSheet(platform: SheetNativePlatforms): import("@tamagui/core").RefComponent<View, SheetProps> | null;
|
|
4
4
|
export declare function setupNativeSheet(platform: SheetNativePlatforms, Renderer: NativeSheetRenderer): void;
|
|
5
5
|
//# sourceMappingURL=nativeSheet.native.d.ts.map
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* content sized off window dimensions collapses while the sheet's bottom stays
|
|
14
14
|
* occluded. See SheetImplementationCustom's activePositions / keyboardOccludedHeight.
|
|
15
15
|
*/
|
|
16
|
-
import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types';
|
|
16
|
+
import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types.js';
|
|
17
17
|
export declare function useKeyboardControllerSheet(options: KeyboardControllerSheetOptions): KeyboardControllerSheetResult;
|
|
18
18
|
//# sourceMappingURL=useKeyboardControllerSheet.d.ts.map
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* uses React Native keyboard events for state. The optional keyboard-controller
|
|
9
9
|
* integration is only used for imperative dismissal.
|
|
10
10
|
*/
|
|
11
|
-
import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types';
|
|
11
|
+
import type { KeyboardControllerSheetOptions, KeyboardControllerSheetResult } from './types.js';
|
|
12
12
|
export declare function useKeyboardControllerSheet(options: KeyboardControllerSheetOptions): KeyboardControllerSheetResult;
|
|
13
13
|
//# sourceMappingURL=useKeyboardControllerSheet.native.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { SafeAreaInsets } from './useSafeAreaInsets';
|
|
2
|
+
import type { SafeAreaInsets } from './useSafeAreaInsets.js';
|
|
3
3
|
export declare const SafeAreaInsetsContext: React.Context<SafeAreaInsets | null>;
|
|
4
4
|
/**
|
|
5
5
|
* live safe-area insets (notch / status bar / home indicator).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { type StyledContext } from '@tamagui/core';
|
|
3
|
-
import type { SheetTransitionEvent } from './types';
|
|
3
|
+
import type { SheetTransitionEvent } from './types.js';
|
|
4
4
|
export declare const useSheetController: (scope?: string) => {
|
|
5
5
|
controller: SheetControllerContextValue | null;
|
|
6
6
|
isHidden: boolean | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SheetContextValue } from './useSheetProviderProps';
|
|
1
|
+
import type { SheetContextValue } from './useSheetProviderProps.js';
|
|
2
2
|
export declare const useSheetOffscreenSize: (context: SheetContextValue) => number;
|
|
3
3
|
//# sourceMappingURL=useSheetOffscreenSize.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SheetProps } from './types';
|
|
2
|
-
import type { SheetControllerContextValue } from './useSheetController';
|
|
1
|
+
import type { SheetProps } from './types.js';
|
|
2
|
+
import type { SheetControllerContextValue } from './useSheetController.js';
|
|
3
3
|
export declare const useSheetOpenState: (props: SheetProps, strategy?: 'prop-wins' | 'most-recent-wins') => {
|
|
4
4
|
open: boolean;
|
|
5
5
|
setOpen: import("@tamagui/use-controllable-state").ControllableStateSetter<boolean, import("@tamagui/web").TamaguiChangeEventDetails>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ScrollBridge, SheetProps } from './types';
|
|
2
|
-
import type { SheetOpenState } from './useSheetOpenState';
|
|
3
|
-
import { useSheetState } from './useSheetState';
|
|
1
|
+
import type { ScrollBridge, SheetProps } from './types.js';
|
|
2
|
+
import type { SheetOpenState } from './useSheetOpenState.js';
|
|
3
|
+
import { useSheetState } from './useSheetState.js';
|
|
4
4
|
export type SheetContextValue = (ReturnType<typeof useSheetProviderProps> & {
|
|
5
5
|
keyboardOccludedHeight: number;
|
|
6
6
|
isKeyboardVisible: boolean;
|
|
@@ -25,7 +25,7 @@ export declare function useSheetProviderProps(props: SheetProps, state: SheetOpe
|
|
|
25
25
|
hasFit: boolean;
|
|
26
26
|
position: number;
|
|
27
27
|
snapPoints: (string | number)[];
|
|
28
|
-
snapPointsMode: import("./types").SnapPointsMode;
|
|
28
|
+
snapPointsMode: import("./types.js").SnapPointsMode;
|
|
29
29
|
setMaxContentSize: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
30
30
|
setPosition: (next: number) => void;
|
|
31
31
|
setPositionImmediate: import("@tamagui/use-controllable-state").ControllableStateSetter<number, import("@tamagui/core").TamaguiChangeEventDetails>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ScrollViewRef } from '@tamagui/scroll-view';
|
|
2
|
-
import type { ScrollBridge } from './types';
|
|
2
|
+
import type { ScrollBridge } from './types.js';
|
|
3
3
|
interface UseSheetScrollViewGesturesProps {
|
|
4
4
|
scrollRef: React.RefObject<ScrollViewRef | null>;
|
|
5
5
|
scrollBridge: ScrollBridge;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GestureResponderEvent, ScrollViewInstance as RNScrollView } from 'react-native';
|
|
2
|
-
import type { ScrollBridge } from './types';
|
|
2
|
+
import type { ScrollBridge } from './types.js';
|
|
3
3
|
interface UseSheetScrollViewGesturesProps {
|
|
4
4
|
scrollRef: React.RefObject<RNScrollView | null>;
|
|
5
5
|
scrollBridge: ScrollBridge;
|
package/types/useSheetState.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TamaguiElement } from '@tamagui/core';
|
|
3
|
-
import type { SheetProps } from './types';
|
|
4
|
-
import type { SheetOpenState } from './useSheetOpenState';
|
|
3
|
+
import type { SheetProps } from './types.js';
|
|
4
|
+
import type { SheetOpenState } from './useSheetOpenState.js';
|
|
5
5
|
export declare function useSheetState(props: SheetProps, state: SheetOpenState): {
|
|
6
6
|
modal: boolean;
|
|
7
7
|
open: boolean;
|
|
@@ -18,7 +18,7 @@ export declare function useSheetState(props: SheetProps, state: SheetOpenState):
|
|
|
18
18
|
hasFit: boolean;
|
|
19
19
|
position: number;
|
|
20
20
|
snapPoints: (string | number)[];
|
|
21
|
-
snapPointsMode: import("./types").SnapPointsMode;
|
|
21
|
+
snapPointsMode: import("./types.js").SnapPointsMode;
|
|
22
22
|
setMaxContentSize: React.Dispatch<React.SetStateAction<number>>;
|
|
23
23
|
setPosition: (next: number) => void;
|
|
24
24
|
setPositionImmediate: import("@tamagui/use-controllable-state").ControllableStateSetter<number, import("@tamagui/core").TamaguiChangeEventDetails>;
|