@tamagui/sheet 1.29.1 → 1.29.2
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/dist/cjs/createSheet.js +21 -14
- package/dist/cjs/createSheet.js.map +1 -1
- package/dist/esm/createSheet.js +31 -24
- package/dist/esm/createSheet.js.map +1 -1
- package/dist/jsx/createSheet.js +33 -21
- package/dist/jsx/createSheet.js.map +1 -1
- package/dist/jsx/createSheet.mjs +33 -21
- package/dist/jsx/createSheet.mjs.map +1 -1
- package/package.json +13 -13
- package/src/createSheet.tsx +11 -7
- package/types/Sheet.d.ts +180 -18
- package/types/Sheet.d.ts.map +1 -1
- package/types/createSheet.d.ts +10 -14
- package/types/createSheet.d.ts.map +1 -1
package/dist/cjs/createSheet.js
CHANGED
|
@@ -21,7 +21,10 @@ __export(createSheet_exports, {
|
|
|
21
21
|
createSheet: () => createSheet
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(createSheet_exports);
|
|
24
|
-
var import_jsx_runtime =
|
|
24
|
+
var import_jsx_runtime = (
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
require("react/jsx-runtime")
|
|
27
|
+
);
|
|
25
28
|
var import_compose_refs = require("@tamagui/compose-refs");
|
|
26
29
|
var import_core = require("@tamagui/core");
|
|
27
30
|
var import_remove_scroll = require("@tamagui/remove-scroll");
|
|
@@ -59,18 +62,21 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
59
62
|
const { __scopeSheet, ...props } = propsIn;
|
|
60
63
|
const context = (0, import_SheetContext.useSheetContext)(import_constants.SHEET_OVERLAY_NAME, __scopeSheet);
|
|
61
64
|
const element = (0, import_react.useMemo)(
|
|
62
|
-
() =>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
props
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
() => (
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
68
|
+
Overlay,
|
|
69
|
+
{
|
|
70
|
+
open: context.open && !context.hidden,
|
|
71
|
+
...props,
|
|
72
|
+
onPress: (0, import_core.mergeEvent)(
|
|
73
|
+
props.onPress,
|
|
74
|
+
context.dismissOnOverlayPress ? () => {
|
|
75
|
+
context.setOpen(false);
|
|
76
|
+
} : void 0
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
)
|
|
74
80
|
),
|
|
75
81
|
[
|
|
76
82
|
context.open,
|
|
@@ -112,7 +118,8 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
112
118
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Frame, { ref: composedContentRef, ...props, children })
|
|
113
119
|
}
|
|
114
120
|
),
|
|
115
|
-
!props.disableHideBottomOverflow &&
|
|
121
|
+
!props.disableHideBottomOverflow && // @ts-ignore
|
|
122
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
116
123
|
Frame,
|
|
117
124
|
{
|
|
118
125
|
componentName: SHEET_COVER_NAME,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createSheet.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkDQ;AAAA;AAAA;AAAA;AAlDR,0BAAgC;AAChC,kBAOO;AACP,2BAA6B;AAC7B,mBAMO;AACP,0BAA+B;AAE/B,uBAAkE;AAClE,yBAA+B;AAC/B,0BAAgC;AAChC,uCAA0C;AAC1C,6BAAgC;AAEhC,gCAAmC;AAU5B,SAAS,YAId,EAAE,QAAQ,OAAO,QAAQ,GAAwC;AACjE,QAAM,cAAc,OAAO;AAAA,IACzB,CAA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AAO;AAAA,IACjC,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH;",
|
|
5
5
|
"names": ["Sheet"]
|
|
6
6
|
}
|
package/dist/esm/createSheet.js
CHANGED
|
@@ -25,17 +25,20 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
25
25
|
if (context.onlyShowFrame) {
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
return (
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
/* @__PURE__ */ jsx(
|
|
31
|
+
Handle,
|
|
32
|
+
{
|
|
33
|
+
onPress: () => {
|
|
34
|
+
const max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0);
|
|
35
|
+
const nextPos = (context.position + 1) % max;
|
|
36
|
+
context.setPosition(nextPos);
|
|
37
|
+
},
|
|
38
|
+
open: context.open,
|
|
39
|
+
...props
|
|
40
|
+
}
|
|
41
|
+
)
|
|
39
42
|
);
|
|
40
43
|
}
|
|
41
44
|
);
|
|
@@ -44,18 +47,21 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
44
47
|
const { __scopeSheet, ...props } = propsIn;
|
|
45
48
|
const context = useSheetContext(SHEET_OVERLAY_NAME, __scopeSheet);
|
|
46
49
|
const element = useMemo(
|
|
47
|
-
() =>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
props
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
() => (
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
53
|
+
Overlay,
|
|
54
|
+
{
|
|
55
|
+
open: context.open && !context.hidden,
|
|
56
|
+
...props,
|
|
57
|
+
onPress: mergeEvent(
|
|
58
|
+
props.onPress,
|
|
59
|
+
context.dismissOnOverlayPress ? () => {
|
|
60
|
+
context.setOpen(false);
|
|
61
|
+
} : void 0
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
)
|
|
59
65
|
),
|
|
60
66
|
[
|
|
61
67
|
context.open,
|
|
@@ -97,7 +103,8 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
97
103
|
children: /* @__PURE__ */ jsx(Frame, { ref: composedContentRef, ...props, children })
|
|
98
104
|
}
|
|
99
105
|
),
|
|
100
|
-
!props.disableHideBottomOverflow &&
|
|
106
|
+
!props.disableHideBottomOverflow && // @ts-ignore
|
|
107
|
+
/* @__PURE__ */ jsx(
|
|
101
108
|
Frame,
|
|
102
109
|
{
|
|
103
110
|
componentName: SHEET_COVER_NAME,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createSheet.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAkDQ,SAwFE,UAxFF,KAwFE,YAxFF;AAlDR,SAAS,uBAAuB;AAChC;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAC7B;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,gBAAsB;AAE/B,SAAS,mBAAmB,YAAY,0BAA0B;AAClE,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,iCAAiC;AAC1C,SAAS,uBAAuB;AAEhC,SAAS,0BAA0B;AAU5B,SAAS,YAId,EAAE,QAAQ,OAAO,QAAQ,GAAwC;AACjE,QAAM,cAAc,OAAO;AAAA,IACzB,CAAC,EAAE,cAAc,GAAG,MAAM,MAAiD;AACzE,YAAM,UAAU,gBAAgB,mBAAmB,YAAY;AAE/D,UAAI,QAAQ,eAAe;AACzB,eAAO;AAAA,MACT;AAEA;AAAA;AAAA,QAEE;AAAA,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,18 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
24
24
|
if (context.onlyShowFrame) {
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
return (
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
<Handle
|
|
30
|
+
onPress={() => {
|
|
31
|
+
const max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0);
|
|
32
|
+
const nextPos = (context.position + 1) % max;
|
|
33
|
+
context.setPosition(nextPos);
|
|
34
|
+
}}
|
|
35
|
+
open={context.open}
|
|
36
|
+
{...props}
|
|
37
|
+
/>
|
|
38
|
+
);
|
|
36
39
|
}
|
|
37
40
|
);
|
|
38
41
|
const SheetOverlay = Overlay.extractable(
|
|
@@ -40,16 +43,19 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
40
43
|
const { __scopeSheet, ...props } = propsIn;
|
|
41
44
|
const context = useSheetContext(SHEET_OVERLAY_NAME, __scopeSheet);
|
|
42
45
|
const element = useMemo(
|
|
43
|
-
() =>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
props
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
() => (
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
<Overlay
|
|
49
|
+
open={context.open && !context.hidden}
|
|
50
|
+
{...props}
|
|
51
|
+
onPress={mergeEvent(
|
|
52
|
+
props.onPress,
|
|
53
|
+
context.dismissOnOverlayPress ? () => {
|
|
54
|
+
context.setOpen(false);
|
|
55
|
+
} : void 0
|
|
56
|
+
)}
|
|
57
|
+
/>
|
|
58
|
+
),
|
|
53
59
|
[
|
|
54
60
|
context.open,
|
|
55
61
|
props,
|
|
@@ -84,11 +90,17 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
84
90
|
allowPinchZoom
|
|
85
91
|
shards={[context.contentRef]}
|
|
86
92
|
removeScrollBar={false}
|
|
87
|
-
|
|
93
|
+
>
|
|
94
|
+
{
|
|
95
|
+
/* @ts-ignore */
|
|
96
|
+
}
|
|
97
|
+
<Frame ref={composedContentRef} {...props}>{children}</Frame>
|
|
98
|
+
</RemoveScroll>
|
|
88
99
|
{
|
|
89
100
|
/* below frame hide when bouncing past 100% */
|
|
90
101
|
}
|
|
91
|
-
{!props.disableHideBottomOverflow &&
|
|
102
|
+
{!props.disableHideBottomOverflow && // @ts-ignore
|
|
103
|
+
<Frame
|
|
92
104
|
componentName={SHEET_COVER_NAME}
|
|
93
105
|
{...props}
|
|
94
106
|
children={null}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createSheet.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,uBAAuB;AAChC;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAC7B;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,gBAAsB;AAE/B,SAAS,mBAAmB,YAAY,0BAA0B;AAClE,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,iCAAiC;AAC1C,SAAS,uBAAuB;AAEhC,SAAS,0BAA0B;
|
|
4
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAC7B;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,gBAAsB;AAE/B,SAAS,mBAAmB,YAAY,0BAA0B;AAClE,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,iCAAiC;AAC1C,SAAS,uBAAuB;AAEhC,SAAS,0BAA0B;AAU5B,SAAS,YAId,EAAE,QAAQ,OAAO,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AA,IACjC,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH;",
|
|
5
5
|
"names": ["Sheet"]
|
|
6
6
|
}
|
package/dist/jsx/createSheet.mjs
CHANGED
|
@@ -24,15 +24,18 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
24
24
|
if (context.onlyShowFrame) {
|
|
25
25
|
return null;
|
|
26
26
|
}
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
return (
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
<Handle
|
|
30
|
+
onPress={() => {
|
|
31
|
+
const max = context.snapPoints.length + (context.dismissOnSnapToBottom ? -1 : 0);
|
|
32
|
+
const nextPos = (context.position + 1) % max;
|
|
33
|
+
context.setPosition(nextPos);
|
|
34
|
+
}}
|
|
35
|
+
open={context.open}
|
|
36
|
+
{...props}
|
|
37
|
+
/>
|
|
38
|
+
);
|
|
36
39
|
}
|
|
37
40
|
);
|
|
38
41
|
const SheetOverlay = Overlay.extractable(
|
|
@@ -40,16 +43,19 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
40
43
|
const { __scopeSheet, ...props } = propsIn;
|
|
41
44
|
const context = useSheetContext(SHEET_OVERLAY_NAME, __scopeSheet);
|
|
42
45
|
const element = useMemo(
|
|
43
|
-
() =>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
props
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
() => (
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
<Overlay
|
|
49
|
+
open={context.open && !context.hidden}
|
|
50
|
+
{...props}
|
|
51
|
+
onPress={mergeEvent(
|
|
52
|
+
props.onPress,
|
|
53
|
+
context.dismissOnOverlayPress ? () => {
|
|
54
|
+
context.setOpen(false);
|
|
55
|
+
} : void 0
|
|
56
|
+
)}
|
|
57
|
+
/>
|
|
58
|
+
),
|
|
53
59
|
[
|
|
54
60
|
context.open,
|
|
55
61
|
props,
|
|
@@ -84,11 +90,17 @@ function createSheet({ Handle, Frame, Overlay }) {
|
|
|
84
90
|
allowPinchZoom
|
|
85
91
|
shards={[context.contentRef]}
|
|
86
92
|
removeScrollBar={false}
|
|
87
|
-
|
|
93
|
+
>
|
|
94
|
+
{
|
|
95
|
+
/* @ts-ignore */
|
|
96
|
+
}
|
|
97
|
+
<Frame ref={composedContentRef} {...props}>{children}</Frame>
|
|
98
|
+
</RemoveScroll>
|
|
88
99
|
{
|
|
89
100
|
/* below frame hide when bouncing past 100% */
|
|
90
101
|
}
|
|
91
|
-
{!props.disableHideBottomOverflow &&
|
|
102
|
+
{!props.disableHideBottomOverflow && // @ts-ignore
|
|
103
|
+
<Frame
|
|
92
104
|
componentName={SHEET_COVER_NAME}
|
|
93
105
|
{...props}
|
|
94
106
|
children={null}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createSheet.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,uBAAuB;AAChC;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAC7B;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,gBAAsB;AAE/B,SAAS,mBAAmB,YAAY,0BAA0B;AAClE,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,iCAAiC;AAC1C,SAAS,uBAAuB;AAEhC,SAAS,0BAA0B;
|
|
4
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAChC;AAAA,EAIE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAC7B;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,gBAAsB;AAE/B,SAAS,mBAAmB,YAAY,0BAA0B;AAClE,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OAAO;AAAA,IACP,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,YAAY;AAAA,EACd;AAEA,QAAM,aAAa,qBAAqB,OAAO,UAAU;AAKzD,SAAO,qBAAqB,OAAO;AAAA,IACjC,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AACH;",
|
|
5
5
|
"names": ["Sheet"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/sheet",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.2",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/animations-react-native": "1.29.
|
|
35
|
-
"@tamagui/compose-refs": "1.29.
|
|
36
|
-
"@tamagui/core": "1.29.
|
|
37
|
-
"@tamagui/create-context": "1.29.
|
|
38
|
-
"@tamagui/portal": "1.29.
|
|
39
|
-
"@tamagui/remove-scroll": "1.29.
|
|
40
|
-
"@tamagui/scroll-view": "1.29.
|
|
41
|
-
"@tamagui/stacks": "1.29.
|
|
42
|
-
"@tamagui/use-constant": "1.29.
|
|
43
|
-
"@tamagui/use-controllable-state": "1.29.
|
|
44
|
-
"@tamagui/use-keyboard-visible": "1.29.
|
|
34
|
+
"@tamagui/animations-react-native": "1.29.2",
|
|
35
|
+
"@tamagui/compose-refs": "1.29.2",
|
|
36
|
+
"@tamagui/core": "1.29.2",
|
|
37
|
+
"@tamagui/create-context": "1.29.2",
|
|
38
|
+
"@tamagui/portal": "1.29.2",
|
|
39
|
+
"@tamagui/remove-scroll": "1.29.2",
|
|
40
|
+
"@tamagui/scroll-view": "1.29.2",
|
|
41
|
+
"@tamagui/stacks": "1.29.2",
|
|
42
|
+
"@tamagui/use-constant": "1.29.2",
|
|
43
|
+
"@tamagui/use-controllable-state": "1.29.2",
|
|
44
|
+
"@tamagui/use-keyboard-visible": "1.29.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "*",
|
|
48
48
|
"react-native": "*"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@tamagui/build": "1.29.
|
|
51
|
+
"@tamagui/build": "1.29.2",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-native": "^0.71.7"
|
|
54
54
|
},
|
package/src/createSheet.tsx
CHANGED
|
@@ -31,13 +31,13 @@ type SharedSheetProps = {
|
|
|
31
31
|
|
|
32
32
|
type BaseProps = StackProps & SharedSheetProps
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
Frame: TamaguiComponentExpectingVariants<BaseProps, SharedSheetProps>
|
|
36
|
-
Handle: TamaguiComponentExpectingVariants<BaseProps, SharedSheetProps>
|
|
37
|
-
Overlay: TamaguiComponentExpectingVariants<BaseProps, SharedSheetProps>
|
|
38
|
-
}
|
|
34
|
+
type SheetStyledComponent = TamaguiComponentExpectingVariants<BaseProps, SharedSheetProps>
|
|
39
35
|
|
|
40
|
-
export function createSheet
|
|
36
|
+
export function createSheet<
|
|
37
|
+
H extends SheetStyledComponent,
|
|
38
|
+
F extends SheetStyledComponent,
|
|
39
|
+
O extends SheetStyledComponent
|
|
40
|
+
>({ Handle, Frame, Overlay }: { Handle: H; Frame: F; Overlay: O }) {
|
|
41
41
|
const SheetHandle = Handle.extractable(
|
|
42
42
|
({ __scopeSheet, ...props }: SheetScopedProps<GetProps<typeof Handle>>) => {
|
|
43
43
|
const context = useSheetContext(SHEET_HANDLE_NAME, __scopeSheet)
|
|
@@ -47,6 +47,7 @@ export function createSheet({ Handle, Frame, Overlay }: CreateSheetProps) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
return (
|
|
50
|
+
// @ts-ignore
|
|
50
51
|
<Handle
|
|
51
52
|
onPress={() => {
|
|
52
53
|
// don't toggle to the bottom snap position when dismissOnSnapToBottom set
|
|
@@ -76,6 +77,7 @@ export function createSheet({ Handle, Frame, Overlay }: CreateSheetProps) {
|
|
|
76
77
|
|
|
77
78
|
const element = useMemo(
|
|
78
79
|
() => (
|
|
80
|
+
// @ts-ignore
|
|
79
81
|
<Overlay
|
|
80
82
|
open={context.open && !context.hidden}
|
|
81
83
|
{...props}
|
|
@@ -143,13 +145,15 @@ export function createSheet({ Handle, Frame, Overlay }: CreateSheetProps) {
|
|
|
143
145
|
// causes lots of bugs on touch web on site
|
|
144
146
|
removeScrollBar={false}
|
|
145
147
|
>
|
|
148
|
+
{/* @ts-ignore */}
|
|
146
149
|
<Frame ref={composedContentRef} {...props}>
|
|
147
150
|
{children}
|
|
148
151
|
</Frame>
|
|
149
152
|
</RemoveScroll>
|
|
150
153
|
|
|
151
|
-
{/* below frame hide when bouncing past 100% */}
|
|
154
|
+
{/* below frame hide when bouncing past 100% */}
|
|
152
155
|
{!props.disableHideBottomOverflow && (
|
|
156
|
+
// @ts-ignore
|
|
153
157
|
<Frame
|
|
154
158
|
componentName={SHEET_COVER_NAME}
|
|
155
159
|
{...props}
|
package/types/Sheet.d.ts
CHANGED
|
@@ -151,19 +151,100 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
151
151
|
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
152
152
|
} & import("react").RefAttributes<import("react-native/types").View>> & {
|
|
153
153
|
Controlled: import("react").FunctionComponent<Omit<import("./types").SheetProps, "open" | "onOpenChange"> & import("react").RefAttributes<import("react-native/types").View>> & {
|
|
154
|
-
Frame: import("react").ForwardRefExoticComponent<Omit<import("react-native/types").ViewProps, "display" | "children" |
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
Frame: import("react").ForwardRefExoticComponent<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
155
|
+
readonly fullscreen?: boolean | undefined;
|
|
156
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
157
|
+
}, "unstyled"> & {
|
|
158
|
+
readonly unstyled?: boolean | undefined;
|
|
159
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
160
|
+
readonly fullscreen?: boolean | undefined;
|
|
161
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
162
|
+
}, "unstyled"> & {
|
|
163
|
+
readonly unstyled?: boolean | undefined;
|
|
164
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
165
|
+
readonly fullscreen?: boolean | undefined;
|
|
166
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
167
|
+
}, "unstyled"> & {
|
|
168
|
+
readonly unstyled?: boolean | undefined;
|
|
169
|
+
}>> & {
|
|
157
170
|
disableHideBottomOverflow?: boolean | undefined;
|
|
158
171
|
} & {
|
|
159
172
|
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
160
173
|
} & import("react").RefAttributes<unknown>>;
|
|
161
|
-
Overlay: (propsIn: import("./types").SheetScopedProps<Omit<import("react-native/types").ViewProps, "display" | "children" |
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
174
|
+
Overlay: (propsIn: import("./types").SheetScopedProps<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
175
|
+
readonly fullscreen?: boolean | undefined;
|
|
176
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
177
|
+
} & {
|
|
178
|
+
readonly backgrounded?: boolean | undefined;
|
|
179
|
+
readonly radiused?: boolean | undefined;
|
|
180
|
+
readonly hoverTheme?: boolean | undefined;
|
|
181
|
+
readonly pressTheme?: boolean | undefined;
|
|
182
|
+
readonly focusTheme?: boolean | undefined;
|
|
183
|
+
readonly circular?: boolean | undefined;
|
|
184
|
+
readonly padded?: boolean | undefined;
|
|
185
|
+
readonly elevate?: boolean | undefined;
|
|
186
|
+
readonly bordered?: number | boolean | undefined;
|
|
187
|
+
readonly transparent?: boolean | undefined;
|
|
188
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
189
|
+
}, "open" | "unstyled"> & {
|
|
190
|
+
readonly open?: boolean | undefined;
|
|
191
|
+
readonly unstyled?: boolean | undefined;
|
|
192
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
193
|
+
readonly fullscreen?: boolean | undefined;
|
|
194
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
195
|
+
} & {
|
|
196
|
+
readonly backgrounded?: boolean | undefined;
|
|
197
|
+
readonly radiused?: boolean | undefined;
|
|
198
|
+
readonly hoverTheme?: boolean | undefined;
|
|
199
|
+
readonly pressTheme?: boolean | undefined;
|
|
200
|
+
readonly focusTheme?: boolean | undefined;
|
|
201
|
+
readonly circular?: boolean | undefined;
|
|
202
|
+
readonly padded?: boolean | undefined;
|
|
203
|
+
readonly elevate?: boolean | undefined;
|
|
204
|
+
readonly bordered?: number | boolean | undefined;
|
|
205
|
+
readonly transparent?: boolean | undefined;
|
|
206
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
207
|
+
}, "open" | "unstyled"> & {
|
|
208
|
+
readonly open?: boolean | undefined;
|
|
209
|
+
readonly unstyled?: boolean | undefined;
|
|
210
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
211
|
+
readonly fullscreen?: boolean | undefined;
|
|
212
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
213
|
+
} & {
|
|
214
|
+
readonly backgrounded?: boolean | undefined;
|
|
215
|
+
readonly radiused?: boolean | undefined;
|
|
216
|
+
readonly hoverTheme?: boolean | undefined;
|
|
217
|
+
readonly pressTheme?: boolean | undefined;
|
|
218
|
+
readonly focusTheme?: boolean | undefined;
|
|
219
|
+
readonly circular?: boolean | undefined;
|
|
220
|
+
readonly padded?: boolean | undefined;
|
|
221
|
+
readonly elevate?: boolean | undefined;
|
|
222
|
+
readonly bordered?: number | boolean | undefined;
|
|
223
|
+
readonly transparent?: boolean | undefined;
|
|
224
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
225
|
+
}, "open" | "unstyled"> & {
|
|
226
|
+
readonly open?: boolean | undefined;
|
|
227
|
+
readonly unstyled?: boolean | undefined;
|
|
228
|
+
}>>>) => null;
|
|
229
|
+
Handle: ({ __scopeSheet, ...props }: import("./types").SheetScopedProps<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
230
|
+
readonly fullscreen?: boolean | undefined;
|
|
231
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
232
|
+
}, "open" | "unstyled"> & {
|
|
233
|
+
readonly open?: boolean | undefined;
|
|
234
|
+
readonly unstyled?: boolean | undefined;
|
|
235
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
236
|
+
readonly fullscreen?: boolean | undefined;
|
|
237
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
238
|
+
}, "open" | "unstyled"> & {
|
|
239
|
+
readonly open?: boolean | undefined;
|
|
240
|
+
readonly unstyled?: boolean | undefined;
|
|
241
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
242
|
+
readonly fullscreen?: boolean | undefined;
|
|
243
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
244
|
+
}, "open" | "unstyled"> & {
|
|
245
|
+
readonly open?: boolean | undefined;
|
|
246
|
+
readonly unstyled?: boolean | undefined;
|
|
247
|
+
}>>>) => JSX.Element | null;
|
|
167
248
|
ScrollView: import("react").ForwardRefExoticComponent<import("react-native/types").ScrollViewProps & Omit<import("@tamagui/core").StackProps, keyof import("react-native/types").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
168
249
|
readonly fullscreen?: boolean | undefined;
|
|
169
250
|
} & import("@tamagui/core").MediaProps<Partial<import("react-native/types").ScrollViewProps & Omit<import("@tamagui/core").StackProps, keyof import("react-native/types").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
@@ -172,19 +253,100 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
172
253
|
readonly fullscreen?: boolean | undefined;
|
|
173
254
|
}>> & import("react").RefAttributes<import("@tamagui/core").TamaguiElement>>;
|
|
174
255
|
};
|
|
175
|
-
Frame: import("react").ForwardRefExoticComponent<Omit<import("react-native/types").ViewProps, "display" | "children" |
|
|
176
|
-
|
|
177
|
-
|
|
256
|
+
Frame: import("react").ForwardRefExoticComponent<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
257
|
+
readonly fullscreen?: boolean | undefined;
|
|
258
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
259
|
+
}, "unstyled"> & {
|
|
260
|
+
readonly unstyled?: boolean | undefined;
|
|
261
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
262
|
+
readonly fullscreen?: boolean | undefined;
|
|
263
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
264
|
+
}, "unstyled"> & {
|
|
265
|
+
readonly unstyled?: boolean | undefined;
|
|
266
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
267
|
+
readonly fullscreen?: boolean | undefined;
|
|
268
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
269
|
+
}, "unstyled"> & {
|
|
270
|
+
readonly unstyled?: boolean | undefined;
|
|
271
|
+
}>> & {
|
|
178
272
|
disableHideBottomOverflow?: boolean | undefined;
|
|
179
273
|
} & {
|
|
180
274
|
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
181
275
|
} & import("react").RefAttributes<unknown>>;
|
|
182
|
-
Overlay: (propsIn: import("./types").SheetScopedProps<Omit<import("react-native/types").ViewProps, "display" | "children" |
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
276
|
+
Overlay: (propsIn: import("./types").SheetScopedProps<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
277
|
+
readonly fullscreen?: boolean | undefined;
|
|
278
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
279
|
+
} & {
|
|
280
|
+
readonly backgrounded?: boolean | undefined;
|
|
281
|
+
readonly radiused?: boolean | undefined;
|
|
282
|
+
readonly hoverTheme?: boolean | undefined;
|
|
283
|
+
readonly pressTheme?: boolean | undefined;
|
|
284
|
+
readonly focusTheme?: boolean | undefined;
|
|
285
|
+
readonly circular?: boolean | undefined;
|
|
286
|
+
readonly padded?: boolean | undefined;
|
|
287
|
+
readonly elevate?: boolean | undefined;
|
|
288
|
+
readonly bordered?: number | boolean | undefined;
|
|
289
|
+
readonly transparent?: boolean | undefined;
|
|
290
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
291
|
+
}, "open" | "unstyled"> & {
|
|
292
|
+
readonly open?: boolean | undefined;
|
|
293
|
+
readonly unstyled?: boolean | undefined;
|
|
294
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
295
|
+
readonly fullscreen?: boolean | undefined;
|
|
296
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
297
|
+
} & {
|
|
298
|
+
readonly backgrounded?: boolean | undefined;
|
|
299
|
+
readonly radiused?: boolean | undefined;
|
|
300
|
+
readonly hoverTheme?: boolean | undefined;
|
|
301
|
+
readonly pressTheme?: boolean | undefined;
|
|
302
|
+
readonly focusTheme?: boolean | undefined;
|
|
303
|
+
readonly circular?: boolean | undefined;
|
|
304
|
+
readonly padded?: boolean | undefined;
|
|
305
|
+
readonly elevate?: boolean | undefined;
|
|
306
|
+
readonly bordered?: number | boolean | undefined;
|
|
307
|
+
readonly transparent?: boolean | undefined;
|
|
308
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
309
|
+
}, "open" | "unstyled"> & {
|
|
310
|
+
readonly open?: boolean | undefined;
|
|
311
|
+
readonly unstyled?: boolean | undefined;
|
|
312
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
313
|
+
readonly fullscreen?: boolean | undefined;
|
|
314
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
315
|
+
} & {
|
|
316
|
+
readonly backgrounded?: boolean | undefined;
|
|
317
|
+
readonly radiused?: boolean | undefined;
|
|
318
|
+
readonly hoverTheme?: boolean | undefined;
|
|
319
|
+
readonly pressTheme?: boolean | undefined;
|
|
320
|
+
readonly focusTheme?: boolean | undefined;
|
|
321
|
+
readonly circular?: boolean | undefined;
|
|
322
|
+
readonly padded?: boolean | undefined;
|
|
323
|
+
readonly elevate?: boolean | undefined;
|
|
324
|
+
readonly bordered?: number | boolean | undefined;
|
|
325
|
+
readonly transparent?: boolean | undefined;
|
|
326
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
327
|
+
}, "open" | "unstyled"> & {
|
|
328
|
+
readonly open?: boolean | undefined;
|
|
329
|
+
readonly unstyled?: boolean | undefined;
|
|
330
|
+
}>>>) => null;
|
|
331
|
+
Handle: ({ __scopeSheet, ...props }: import("./types").SheetScopedProps<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
332
|
+
readonly fullscreen?: boolean | undefined;
|
|
333
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
334
|
+
}, "open" | "unstyled"> & {
|
|
335
|
+
readonly open?: boolean | undefined;
|
|
336
|
+
readonly unstyled?: boolean | undefined;
|
|
337
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
338
|
+
readonly fullscreen?: boolean | undefined;
|
|
339
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
340
|
+
}, "open" | "unstyled"> & {
|
|
341
|
+
readonly open?: boolean | undefined;
|
|
342
|
+
readonly unstyled?: boolean | undefined;
|
|
343
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native/types").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native/types").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
344
|
+
readonly fullscreen?: boolean | undefined;
|
|
345
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
346
|
+
}, "open" | "unstyled"> & {
|
|
347
|
+
readonly open?: boolean | undefined;
|
|
348
|
+
readonly unstyled?: boolean | undefined;
|
|
349
|
+
}>>>) => JSX.Element | null;
|
|
188
350
|
ScrollView: import("react").ForwardRefExoticComponent<import("react-native/types").ScrollViewProps & Omit<import("@tamagui/core").StackProps, keyof import("react-native/types").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
189
351
|
readonly fullscreen?: boolean | undefined;
|
|
190
352
|
} & import("@tamagui/core").MediaProps<Partial<import("react-native/types").ScrollViewProps & Omit<import("@tamagui/core").StackProps, keyof import("react-native/types").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
package/types/Sheet.d.ts.map
CHANGED
|
@@ -1 +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;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCjB,CAAA;AAMF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BlB,CAAA;AAMF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;EAoBhB,CAAA;AAEF,eAAO,MAAM,KAAK
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCjB,CAAA;AAMF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BlB,CAAA;AAMF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;EAoBhB,CAAA;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAU,CAAA;AAExC,uCAAuC;AACvC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAS,CAAA"}
|
package/types/createSheet.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ type SharedSheetProps = {
|
|
|
6
6
|
open?: boolean;
|
|
7
7
|
};
|
|
8
8
|
type BaseProps = StackProps & SharedSheetProps;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Handle:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
type SheetStyledComponent = TamaguiComponentExpectingVariants<BaseProps, SharedSheetProps>;
|
|
10
|
+
export declare function createSheet<H extends SheetStyledComponent, F extends SheetStyledComponent, O extends SheetStyledComponent>({ Handle, Frame, Overlay }: {
|
|
11
|
+
Handle: H;
|
|
12
|
+
Frame: F;
|
|
13
|
+
Overlay: O;
|
|
14
|
+
}): import("react").ForwardRefExoticComponent<{
|
|
15
15
|
open?: boolean | undefined;
|
|
16
16
|
defaultOpen?: boolean | undefined;
|
|
17
17
|
onOpenChange?: (((open: boolean) => void) | import("react").Dispatch<import("react").SetStateAction<boolean>>) | undefined;
|
|
@@ -36,11 +36,9 @@ export declare function createSheet({ Handle, Frame, Overlay }: CreateSheetProps
|
|
|
36
36
|
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
37
37
|
} & RefAttributes<View>> & {
|
|
38
38
|
Controlled: FunctionComponent<Omit<SheetProps, "open" | "onOpenChange"> & RefAttributes<View>> & {
|
|
39
|
-
Frame: import("react").ForwardRefExoticComponent<
|
|
39
|
+
Frame: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<SheetScopedProps<GetProps<F> & {
|
|
40
40
|
disableHideBottomOverflow?: boolean | undefined;
|
|
41
|
-
} &
|
|
42
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
43
|
-
} & RefAttributes<unknown>>;
|
|
41
|
+
}>> & RefAttributes<unknown>>;
|
|
44
42
|
Overlay: (propsIn: SheetScopedProps<GetProps<typeof Overlay>>) => null;
|
|
45
43
|
Handle: ({ __scopeSheet, ...props }: SheetScopedProps<GetProps<typeof Handle>>) => JSX.Element | null;
|
|
46
44
|
ScrollView: import("react").ForwardRefExoticComponent<import("react-native").ScrollViewProps & Omit<StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
@@ -51,11 +49,9 @@ export declare function createSheet({ Handle, Frame, Overlay }: CreateSheetProps
|
|
|
51
49
|
readonly fullscreen?: boolean | undefined;
|
|
52
50
|
}>> & RefAttributes<import("@tamagui/core").TamaguiElement>>;
|
|
53
51
|
};
|
|
54
|
-
Frame: import("react").ForwardRefExoticComponent<
|
|
52
|
+
Frame: import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<SheetScopedProps<GetProps<F> & {
|
|
55
53
|
disableHideBottomOverflow?: boolean | undefined;
|
|
56
|
-
} &
|
|
57
|
-
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
58
|
-
} & RefAttributes<unknown>>;
|
|
54
|
+
}>> & RefAttributes<unknown>>;
|
|
59
55
|
Overlay: (propsIn: SheetScopedProps<GetProps<typeof Overlay>>) => null;
|
|
60
56
|
Handle: ({ __scopeSheet, ...props }: SheetScopedProps<GetProps<typeof Handle>>) => JSX.Element | null;
|
|
61
57
|
ScrollView: import("react").ForwardRefExoticComponent<import("react-native").ScrollViewProps & Omit<StackProps, keyof import("react-native").ScrollViewProps> & Omit<{}, "fullscreen"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSheet.d.ts","sourceRoot":"","sources":["../src/createSheet.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,iCAAiC,EAIlC,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,iBAAiB,EACjB,aAAa,EAId,MAAM,OAAO,CAAA;AACd,OAAO,EAAY,IAAI,EAAE,MAAM,cAAc,CAAA;AAO7C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAGtD,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,KAAK,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAAA;AAE9C,
|
|
1
|
+
{"version":3,"file":"createSheet.d.ts","sourceRoot":"","sources":["../src/createSheet.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,iCAAiC,EAIlC,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,iBAAiB,EACjB,aAAa,EAId,MAAM,OAAO,CAAA;AACd,OAAO,EAAY,IAAI,EAAE,MAAM,cAAc,CAAA;AAO7C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAGtD,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,KAAK,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAAA;AAE9C,KAAK,oBAAoB,GAAG,iCAAiC,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAA;AAE1F,wBAAgB,WAAW,CACzB,CAAC,SAAS,oBAAoB,EAC9B,CAAC,SAAS,oBAAoB,EAC9B,CAAC,SAAS,oBAAoB,EAC9B,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,CAAC,CAAA;CAAE;;;;;;;;;;;;;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