@tamagui/sheet 1.124.17 → 1.124.18
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 +18 -18
- package/types/SheetContext.d.ts +34 -40
- package/types/SheetContext.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/sheet",
|
|
3
|
-
"version": "1.124.
|
|
3
|
+
"version": "1.124.18",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -37,28 +37,28 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@tamagui/adapt": "1.124.
|
|
41
|
-
"@tamagui/animate-presence": "1.124.
|
|
42
|
-
"@tamagui/animations-react-native": "1.124.
|
|
43
|
-
"@tamagui/compose-refs": "1.124.
|
|
44
|
-
"@tamagui/constants": "1.124.
|
|
45
|
-
"@tamagui/core": "1.124.
|
|
46
|
-
"@tamagui/create-context": "1.124.
|
|
47
|
-
"@tamagui/helpers": "1.124.
|
|
48
|
-
"@tamagui/portal": "1.124.
|
|
49
|
-
"@tamagui/remove-scroll": "1.124.
|
|
50
|
-
"@tamagui/scroll-view": "1.124.
|
|
51
|
-
"@tamagui/stacks": "1.124.
|
|
52
|
-
"@tamagui/use-constant": "1.124.
|
|
53
|
-
"@tamagui/use-controllable-state": "1.124.
|
|
54
|
-
"@tamagui/use-did-finish-ssr": "1.124.
|
|
55
|
-
"@tamagui/use-keyboard-visible": "1.124.
|
|
40
|
+
"@tamagui/adapt": "1.124.18",
|
|
41
|
+
"@tamagui/animate-presence": "1.124.18",
|
|
42
|
+
"@tamagui/animations-react-native": "1.124.18",
|
|
43
|
+
"@tamagui/compose-refs": "1.124.18",
|
|
44
|
+
"@tamagui/constants": "1.124.18",
|
|
45
|
+
"@tamagui/core": "1.124.18",
|
|
46
|
+
"@tamagui/create-context": "1.124.18",
|
|
47
|
+
"@tamagui/helpers": "1.124.18",
|
|
48
|
+
"@tamagui/portal": "1.124.18",
|
|
49
|
+
"@tamagui/remove-scroll": "1.124.18",
|
|
50
|
+
"@tamagui/scroll-view": "1.124.18",
|
|
51
|
+
"@tamagui/stacks": "1.124.18",
|
|
52
|
+
"@tamagui/use-constant": "1.124.18",
|
|
53
|
+
"@tamagui/use-controllable-state": "1.124.18",
|
|
54
|
+
"@tamagui/use-did-finish-ssr": "1.124.18",
|
|
55
|
+
"@tamagui/use-keyboard-visible": "1.124.18"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"react": "*"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@tamagui/build": "1.124.
|
|
61
|
+
"@tamagui/build": "1.124.18",
|
|
62
62
|
"react": "*"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
package/types/SheetContext.d.ts
CHANGED
|
@@ -1,15 +1,37 @@
|
|
|
1
|
-
export declare const createSheetContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType) => readonly [{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
displayName: string;
|
|
7
|
-
}, (consumerName: string, scope: import("@tamagui/create-context").Scope<ContextValueType | undefined>, options?: {
|
|
1
|
+
export declare const createSheetContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType) => readonly [(props: ContextValueType & {
|
|
2
|
+
scope: import("@tamagui/create-context").Scope<ContextValueType>;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element, (consumerName: string, scope: import("@tamagui/create-context").Scope<ContextValueType | undefined>, options?: {
|
|
8
5
|
warn?: boolean;
|
|
9
6
|
fallback?: Partial<ContextValueType>;
|
|
10
7
|
}) => ContextValueType], createSheetScope: import("@tamagui/create-context").CreateScope;
|
|
11
|
-
export declare const SheetProvider: {
|
|
12
|
-
|
|
8
|
+
export declare const SheetProvider: (props: {
|
|
9
|
+
screenSize: number;
|
|
10
|
+
maxSnapPoint: string | number;
|
|
11
|
+
removeScrollEnabled: boolean | undefined;
|
|
12
|
+
scrollBridge: import("./types").ScrollBridge;
|
|
13
|
+
modal: boolean;
|
|
14
|
+
open: boolean;
|
|
15
|
+
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
16
|
+
hidden: boolean;
|
|
17
|
+
contentRef: import("react").RefObject<import("@tamagui/web").TamaguiElement>;
|
|
18
|
+
handleRef: import("react").RefObject<import("@tamagui/web").TamaguiElement>;
|
|
19
|
+
frameSize: number;
|
|
20
|
+
setFrameSize: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
21
|
+
dismissOnOverlayPress: boolean;
|
|
22
|
+
dismissOnSnapToBottom: boolean;
|
|
23
|
+
onOverlayComponent: ((comp: any) => void) | undefined;
|
|
24
|
+
scope: import("@tamagui/create-context").Scope<any>;
|
|
25
|
+
hasFit: boolean;
|
|
26
|
+
position: number;
|
|
27
|
+
snapPoints: (string | number)[];
|
|
28
|
+
snapPointsMode: import("./types").SnapPointsMode;
|
|
29
|
+
setMaxContentSize: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
30
|
+
setPosition: (next: number) => void;
|
|
31
|
+
setPositionImmediate: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
32
|
+
onlyShowFrame: boolean;
|
|
33
|
+
} & {
|
|
34
|
+
scope: import("@tamagui/create-context").Scope<{
|
|
13
35
|
screenSize: number;
|
|
14
36
|
maxSnapPoint: string | number;
|
|
15
37
|
removeScrollEnabled: boolean | undefined;
|
|
@@ -34,37 +56,9 @@ export declare const SheetProvider: {
|
|
|
34
56
|
setPosition: (next: number) => void;
|
|
35
57
|
setPositionImmediate: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
36
58
|
onlyShowFrame: boolean;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
maxSnapPoint: string | number;
|
|
41
|
-
removeScrollEnabled: boolean | undefined;
|
|
42
|
-
scrollBridge: import("./types").ScrollBridge;
|
|
43
|
-
modal: boolean;
|
|
44
|
-
open: boolean;
|
|
45
|
-
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
46
|
-
hidden: boolean;
|
|
47
|
-
contentRef: import("react").RefObject<import("@tamagui/web").TamaguiElement>;
|
|
48
|
-
handleRef: import("react").RefObject<import("@tamagui/web").TamaguiElement>;
|
|
49
|
-
frameSize: number;
|
|
50
|
-
setFrameSize: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
51
|
-
dismissOnOverlayPress: boolean;
|
|
52
|
-
dismissOnSnapToBottom: boolean;
|
|
53
|
-
onOverlayComponent: ((comp: any) => void) | undefined;
|
|
54
|
-
scope: import("@tamagui/create-context").Scope<any>;
|
|
55
|
-
hasFit: boolean;
|
|
56
|
-
position: number;
|
|
57
|
-
snapPoints: (string | number)[];
|
|
58
|
-
snapPointsMode: import("./types").SnapPointsMode;
|
|
59
|
-
setMaxContentSize: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
60
|
-
setPosition: (next: number) => void;
|
|
61
|
-
setPositionImmediate: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
62
|
-
onlyShowFrame: boolean;
|
|
63
|
-
}>;
|
|
64
|
-
children: React.ReactNode;
|
|
65
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
66
|
-
displayName: string;
|
|
67
|
-
}, useSheetContext: (consumerName: string, scope: import("@tamagui/create-context").Scope<{
|
|
59
|
+
}>;
|
|
60
|
+
children: React.ReactNode;
|
|
61
|
+
}) => import("react/jsx-runtime").JSX.Element, useSheetContext: (consumerName: string, scope: import("@tamagui/create-context").Scope<{
|
|
68
62
|
screenSize: number;
|
|
69
63
|
maxSnapPoint: string | number;
|
|
70
64
|
removeScrollEnabled: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../src/SheetContext.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAO,kBAAkB
|
|
1
|
+
{"version":3,"file":"SheetContext.d.ts","sourceRoot":"","sources":["../src/SheetContext.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAO,kBAAkB;;cAMqiB,MAAO,SAAS;aAAe,mBAAmB,2HAAyF,CAAC;QAAS,CAAC;YAAoB,CAAC;yBAN9sB,gBAAgB,+CAAkC,CAAA;AAEpF,eAAO,MAAO,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI0iB,MAAO,SAAS;aAAe,mBAAmB,eAJ1lB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG3C,CAAA"}
|