@tamagui/sheet 1.143.0 → 2.0.0-1
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/Sheet.cjs +2 -6
- package/dist/cjs/Sheet.js +2 -4
- package/dist/cjs/Sheet.js.map +1 -1
- package/dist/cjs/Sheet.native.js +2 -6
- package/dist/cjs/Sheet.native.js.map +1 -1
- package/dist/cjs/SheetImplementationCustom.native.js.map +1 -1
- package/dist/cjs/createSheet.cjs +7 -5
- package/dist/cjs/createSheet.js +79 -87
- package/dist/cjs/createSheet.js.map +1 -1
- package/dist/cjs/createSheet.native.js +8 -5
- package/dist/cjs/createSheet.native.js.map +1 -1
- package/dist/esm/Sheet.js +3 -5
- package/dist/esm/Sheet.js.map +1 -1
- package/dist/esm/Sheet.mjs +4 -6
- package/dist/esm/Sheet.mjs.map +1 -1
- package/dist/esm/Sheet.native.js +4 -6
- package/dist/esm/Sheet.native.js.map +1 -1
- package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
- package/dist/esm/createSheet.js +80 -88
- package/dist/esm/createSheet.js.map +1 -1
- package/dist/esm/createSheet.mjs +8 -6
- package/dist/esm/createSheet.mjs.map +1 -1
- package/dist/esm/createSheet.native.js +9 -6
- package/dist/esm/createSheet.native.js.map +1 -1
- package/dist/jsx/Sheet.js +3 -5
- package/dist/jsx/Sheet.js.map +1 -1
- package/dist/jsx/Sheet.mjs +4 -6
- package/dist/jsx/Sheet.mjs.map +1 -1
- package/dist/jsx/Sheet.native.js +2 -6
- package/dist/jsx/Sheet.native.js.map +1 -1
- package/dist/jsx/SheetImplementationCustom.native.js.map +1 -1
- package/dist/jsx/createSheet.js +80 -88
- package/dist/jsx/createSheet.js.map +1 -1
- package/dist/jsx/createSheet.mjs +8 -6
- package/dist/jsx/createSheet.mjs.map +1 -1
- package/dist/jsx/createSheet.native.js +8 -5
- package/dist/jsx/createSheet.native.js.map +1 -1
- package/package.json +19 -19
- package/src/Sheet.tsx +2 -8
- package/src/createSheet.tsx +119 -126
- package/types/Sheet.d.ts +26 -124
- package/types/Sheet.d.ts.map +1 -1
- package/types/createSheet.d.ts +14 -2
- package/types/createSheet.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/sheet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-001",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -40,30 +40,30 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@tamagui/adapt": "
|
|
44
|
-
"@tamagui/animate-presence": "
|
|
45
|
-
"@tamagui/animations-react-native": "
|
|
46
|
-
"@tamagui/compose-refs": "
|
|
47
|
-
"@tamagui/constants": "
|
|
48
|
-
"@tamagui/core": "
|
|
49
|
-
"@tamagui/create-context": "
|
|
50
|
-
"@tamagui/helpers": "
|
|
51
|
-
"@tamagui/portal": "
|
|
52
|
-
"@tamagui/remove-scroll": "
|
|
53
|
-
"@tamagui/scroll-view": "
|
|
54
|
-
"@tamagui/stacks": "
|
|
55
|
-
"@tamagui/use-constant": "
|
|
56
|
-
"@tamagui/use-controllable-state": "
|
|
57
|
-
"@tamagui/use-did-finish-ssr": "
|
|
58
|
-
"@tamagui/use-keyboard-visible": "
|
|
59
|
-
"@tamagui/z-index-stack": "
|
|
43
|
+
"@tamagui/adapt": "2.0.0-001",
|
|
44
|
+
"@tamagui/animate-presence": "2.0.0-001",
|
|
45
|
+
"@tamagui/animations-react-native": "2.0.0-001",
|
|
46
|
+
"@tamagui/compose-refs": "2.0.0-001",
|
|
47
|
+
"@tamagui/constants": "2.0.0-001",
|
|
48
|
+
"@tamagui/core": "2.0.0-001",
|
|
49
|
+
"@tamagui/create-context": "2.0.0-001",
|
|
50
|
+
"@tamagui/helpers": "2.0.0-001",
|
|
51
|
+
"@tamagui/portal": "2.0.0-001",
|
|
52
|
+
"@tamagui/remove-scroll": "2.0.0-001",
|
|
53
|
+
"@tamagui/scroll-view": "2.0.0-001",
|
|
54
|
+
"@tamagui/stacks": "2.0.0-001",
|
|
55
|
+
"@tamagui/use-constant": "2.0.0-001",
|
|
56
|
+
"@tamagui/use-controllable-state": "2.0.0-001",
|
|
57
|
+
"@tamagui/use-did-finish-ssr": "2.0.0-001",
|
|
58
|
+
"@tamagui/use-keyboard-visible": "2.0.0-001",
|
|
59
|
+
"@tamagui/z-index-stack": "2.0.0-001"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"react": "*",
|
|
63
63
|
"react-native": "*"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@tamagui/build": "
|
|
66
|
+
"@tamagui/build": "2.0.0-001",
|
|
67
67
|
"react": "*",
|
|
68
68
|
"react-native": "0.81.5"
|
|
69
69
|
},
|
package/src/Sheet.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from '@tamagui/core'
|
|
2
|
-
import {
|
|
2
|
+
import { XStack, YStack } from '@tamagui/stacks'
|
|
3
3
|
|
|
4
4
|
import { SHEET_HANDLE_NAME, SHEET_NAME, SHEET_OVERLAY_NAME } from './constants'
|
|
5
5
|
import { createSheet } from './createSheet'
|
|
@@ -52,7 +52,7 @@ export const Handle = styled(XStack, {
|
|
|
52
52
|
* SheetOverlay
|
|
53
53
|
* -----------------------------------------------------------------------------------------------*/
|
|
54
54
|
|
|
55
|
-
export const Overlay = styled(
|
|
55
|
+
export const Overlay = styled(YStack, {
|
|
56
56
|
name: SHEET_OVERLAY_NAME,
|
|
57
57
|
|
|
58
58
|
variants: {
|
|
@@ -112,9 +112,3 @@ export const Sheet = createSheet({
|
|
|
112
112
|
Handle,
|
|
113
113
|
Overlay,
|
|
114
114
|
})
|
|
115
|
-
|
|
116
|
-
/** @deprecated use Overlay instead */
|
|
117
|
-
export const SheetOverlayFrame = Overlay
|
|
118
|
-
|
|
119
|
-
/** @deprecated use Overlay instead */
|
|
120
|
-
export const SheetHandleFrame = Handle
|
package/src/createSheet.tsx
CHANGED
|
@@ -73,42 +73,40 @@ export function createSheet<
|
|
|
73
73
|
* SheetOverlay
|
|
74
74
|
* -----------------------------------------------------------------------------------------------*/
|
|
75
75
|
|
|
76
|
-
const SheetOverlay = Overlay.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const context = useSheetContext(SHEET_OVERLAY_NAME, __scopeSheet)
|
|
76
|
+
const SheetOverlay = Overlay.styleable<SheetScopedProps<{}>>((propsIn, ref) => {
|
|
77
|
+
const { __scopeSheet, ...props } = propsIn
|
|
78
|
+
const context = useSheetContext(SHEET_OVERLAY_NAME, __scopeSheet)
|
|
80
79
|
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
// this ones a bit weird for legacy reasons, we need to hoist it above <Sheet /> AnimatedView
|
|
81
|
+
// so we just pass it up to context
|
|
83
82
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
useIsomorphicLayoutEffect(() => {
|
|
102
|
-
context.onOverlayComponent?.(element)
|
|
103
|
-
}, [element])
|
|
83
|
+
const element = useMemo(() => {
|
|
84
|
+
return (
|
|
85
|
+
// @ts-ignore
|
|
86
|
+
<Overlay
|
|
87
|
+
{...props}
|
|
88
|
+
onPress={composeEventHandlers(
|
|
89
|
+
props.onPress,
|
|
90
|
+
context.dismissOnOverlayPress
|
|
91
|
+
? () => {
|
|
92
|
+
context.setOpen(false)
|
|
93
|
+
}
|
|
94
|
+
: undefined
|
|
95
|
+
)}
|
|
96
|
+
/>
|
|
97
|
+
)
|
|
98
|
+
}, [props.onPress, props.opacity, context.dismissOnOverlayPress])
|
|
104
99
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
useIsomorphicLayoutEffect(() => {
|
|
101
|
+
context.onOverlayComponent?.(element)
|
|
102
|
+
}, [element])
|
|
108
103
|
|
|
104
|
+
if (context.onlyShowFrame) {
|
|
109
105
|
return null
|
|
110
|
-
}
|
|
111
|
-
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return null
|
|
109
|
+
})
|
|
112
110
|
|
|
113
111
|
/* -------------------------------------------------------------------------------------------------
|
|
114
112
|
* Sheet
|
|
@@ -130,105 +128,100 @@ export function createSheet<
|
|
|
130
128
|
adjustPaddingForOffscreenContent?: boolean
|
|
131
129
|
}
|
|
132
130
|
|
|
133
|
-
const SheetFrame = Frame.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
stableFrameSize.current = frameSize
|
|
161
|
-
}
|
|
162
|
-
}, [open, frameSize])
|
|
163
|
-
|
|
164
|
-
const sheetContents = useMemo(() => {
|
|
165
|
-
// FIX: Use fixed height during close animation to prevent content-driven resizing
|
|
166
|
-
const shouldUseFixedHeight = hasFit && !open && stableFrameSize.current
|
|
167
|
-
|
|
168
|
-
return (
|
|
169
|
-
// @ts-expect-error
|
|
170
|
-
<Frame
|
|
171
|
-
ref={composedContentRef}
|
|
172
|
-
flex={hasFit && open ? 0 : 1}
|
|
173
|
-
height={
|
|
174
|
-
shouldUseFixedHeight
|
|
175
|
-
? stableFrameSize.current
|
|
176
|
-
: hasFit
|
|
177
|
-
? undefined
|
|
178
|
-
: frameSize
|
|
179
|
-
}
|
|
180
|
-
pointerEvents={open ? 'auto' : 'none'}
|
|
181
|
-
data-state={open ? 'open' : 'closed'}
|
|
182
|
-
{...props}
|
|
183
|
-
>
|
|
184
|
-
<StackZIndexContext zIndex={resolveViewZIndex(props.zIndex)}>
|
|
185
|
-
{children}
|
|
186
|
-
</StackZIndexContext>
|
|
187
|
-
|
|
188
|
-
{adjustPaddingForOffscreenContent && (
|
|
189
|
-
<Stack data-sheet-offscreen-pad height={offscreenSize} width="100%" />
|
|
190
|
-
)}
|
|
191
|
-
</Frame>
|
|
192
|
-
)
|
|
193
|
-
}, [
|
|
194
|
-
open,
|
|
195
|
-
props,
|
|
196
|
-
frameSize,
|
|
197
|
-
offscreenSize,
|
|
198
|
-
adjustPaddingForOffscreenContent,
|
|
199
|
-
hasFit,
|
|
200
|
-
])
|
|
131
|
+
const SheetFrame = Frame.styleable<SheetProps & ExtraFrameProps>(
|
|
132
|
+
(
|
|
133
|
+
{
|
|
134
|
+
__scopeSheet,
|
|
135
|
+
adjustPaddingForOffscreenContent,
|
|
136
|
+
disableHideBottomOverflow,
|
|
137
|
+
children,
|
|
138
|
+
...props
|
|
139
|
+
},
|
|
140
|
+
forwardedRef
|
|
141
|
+
) => {
|
|
142
|
+
const context = useSheetContext(SHEET_NAME, __scopeSheet)
|
|
143
|
+
const { hasFit, removeScrollEnabled = true, frameSize, contentRef, open } = context
|
|
144
|
+
const composedContentRef = useComposedRefs(forwardedRef, contentRef)
|
|
145
|
+
const offscreenSize = useSheetOffscreenSize(context)
|
|
146
|
+
|
|
147
|
+
// FIX: Store the frameSize when open for use during close animation
|
|
148
|
+
const stableFrameSize = useRef(frameSize)
|
|
149
|
+
useEffect(() => {
|
|
150
|
+
if (open && frameSize) {
|
|
151
|
+
stableFrameSize.current = frameSize
|
|
152
|
+
}
|
|
153
|
+
}, [open, frameSize])
|
|
154
|
+
|
|
155
|
+
const sheetContents = useMemo(() => {
|
|
156
|
+
// FIX: Use fixed height during close animation to prevent content-driven resizing
|
|
157
|
+
const shouldUseFixedHeight = hasFit && !open && stableFrameSize.current
|
|
201
158
|
|
|
202
159
|
return (
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
{
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
shadowOpacity={0}
|
|
226
|
-
/>
|
|
160
|
+
// @ts-expect-error
|
|
161
|
+
<Frame
|
|
162
|
+
ref={composedContentRef}
|
|
163
|
+
flex={hasFit && open ? 0 : 1}
|
|
164
|
+
flexBasis={hasFit ? 'auto' : undefined}
|
|
165
|
+
height={
|
|
166
|
+
shouldUseFixedHeight
|
|
167
|
+
? stableFrameSize.current
|
|
168
|
+
: hasFit
|
|
169
|
+
? undefined
|
|
170
|
+
: frameSize
|
|
171
|
+
}
|
|
172
|
+
pointerEvents={open ? 'auto' : 'none'}
|
|
173
|
+
data-state={open ? 'open' : 'closed'}
|
|
174
|
+
{...props}
|
|
175
|
+
>
|
|
176
|
+
<StackZIndexContext zIndex={resolveViewZIndex(props.zIndex)}>
|
|
177
|
+
{children}
|
|
178
|
+
</StackZIndexContext>
|
|
179
|
+
|
|
180
|
+
{adjustPaddingForOffscreenContent && (
|
|
181
|
+
<Stack data-sheet-offscreen-pad height={offscreenSize} width="100%" />
|
|
227
182
|
)}
|
|
228
|
-
|
|
183
|
+
</Frame>
|
|
229
184
|
)
|
|
230
|
-
}
|
|
231
|
-
|
|
185
|
+
}, [
|
|
186
|
+
open,
|
|
187
|
+
props,
|
|
188
|
+
frameSize,
|
|
189
|
+
offscreenSize,
|
|
190
|
+
adjustPaddingForOffscreenContent,
|
|
191
|
+
hasFit,
|
|
192
|
+
])
|
|
193
|
+
|
|
194
|
+
return (
|
|
195
|
+
<>
|
|
196
|
+
<RemoveScroll enabled={removeScrollEnabled && context.open}>
|
|
197
|
+
{sheetContents}
|
|
198
|
+
</RemoveScroll>
|
|
199
|
+
|
|
200
|
+
{/* below frame hide when bouncing past 100% */}
|
|
201
|
+
{!disableHideBottomOverflow && (
|
|
202
|
+
// @ts-ignore
|
|
203
|
+
<Frame
|
|
204
|
+
{...props}
|
|
205
|
+
componentName="SheetCover"
|
|
206
|
+
// biome-ignore lint/correctness/noChildrenProp: <explanation>
|
|
207
|
+
children={null}
|
|
208
|
+
// Don't inherit testID - this is a visual helper element
|
|
209
|
+
testID={undefined}
|
|
210
|
+
id={undefined}
|
|
211
|
+
position="absolute"
|
|
212
|
+
bottom="-100%"
|
|
213
|
+
zIndex={-1}
|
|
214
|
+
height={context.frameSize}
|
|
215
|
+
left={0}
|
|
216
|
+
right={0}
|
|
217
|
+
borderWidth={0}
|
|
218
|
+
borderRadius={0}
|
|
219
|
+
shadowOpacity={0}
|
|
220
|
+
/>
|
|
221
|
+
)}
|
|
222
|
+
</>
|
|
223
|
+
)
|
|
224
|
+
}
|
|
232
225
|
) as any as ForwardRefExoticComponent<
|
|
233
226
|
SheetScopedProps<
|
|
234
227
|
Omit<GetProps<typeof Frame>, keyof ExtraFrameProps> & ExtraFrameProps
|
package/types/Sheet.d.ts
CHANGED
|
@@ -3,46 +3,17 @@ export * from './types';
|
|
|
3
3
|
export declare const Handle: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
4
4
|
open?: boolean | undefined;
|
|
5
5
|
elevation?: number | import("@tamagui/core").SizeTokens | undefined;
|
|
6
|
-
inset?: number | import("@tamagui/core").SizeTokens | {
|
|
7
|
-
top?: number;
|
|
8
|
-
bottom?: number;
|
|
9
|
-
left?: number;
|
|
10
|
-
right?: number;
|
|
11
|
-
} | null | undefined;
|
|
12
6
|
fullscreen?: boolean | undefined;
|
|
13
7
|
unstyled?: boolean | undefined;
|
|
14
8
|
}, import("@tamagui/core").StaticConfigPublic>;
|
|
15
9
|
export declare const Overlay: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
16
10
|
open?: boolean | undefined;
|
|
17
11
|
elevation?: number | import("@tamagui/core").SizeTokens | undefined;
|
|
18
|
-
inset?: number | import("@tamagui/core").SizeTokens | {
|
|
19
|
-
top?: number;
|
|
20
|
-
bottom?: number;
|
|
21
|
-
left?: number;
|
|
22
|
-
right?: number;
|
|
23
|
-
} | null | undefined;
|
|
24
12
|
fullscreen?: boolean | undefined;
|
|
25
|
-
circular?: boolean | undefined;
|
|
26
|
-
transparent?: boolean | undefined;
|
|
27
13
|
unstyled?: boolean | undefined;
|
|
28
|
-
hoverTheme?: boolean | undefined;
|
|
29
|
-
pressTheme?: boolean | undefined;
|
|
30
|
-
focusTheme?: boolean | undefined;
|
|
31
|
-
elevate?: boolean | undefined;
|
|
32
|
-
bordered?: number | boolean | undefined;
|
|
33
|
-
backgrounded?: boolean | undefined;
|
|
34
|
-
radiused?: boolean | undefined;
|
|
35
|
-
padded?: boolean | undefined;
|
|
36
|
-
chromeless?: boolean | "all" | undefined;
|
|
37
14
|
}, import("@tamagui/core").StaticConfigPublic>;
|
|
38
15
|
export declare const Frame: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
39
16
|
elevation?: number | import("@tamagui/core").SizeTokens | undefined;
|
|
40
|
-
inset?: number | import("@tamagui/core").SizeTokens | {
|
|
41
|
-
top?: number;
|
|
42
|
-
bottom?: number;
|
|
43
|
-
left?: number;
|
|
44
|
-
right?: number;
|
|
45
|
-
} | null | undefined;
|
|
46
17
|
fullscreen?: boolean | undefined;
|
|
47
18
|
unstyled?: boolean | undefined;
|
|
48
19
|
}, import("@tamagui/core").StaticConfigPublic>;
|
|
@@ -77,12 +48,6 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
77
48
|
Controlled: import("react").FunctionComponent<Omit<import("./types").SheetProps, "open" | "onOpenChange"> & import("react").RefAttributes<import("react-native").View>> & {
|
|
78
49
|
Frame: import("react").ForwardRefExoticComponent<import("./types").SheetScopedProps<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
79
50
|
elevation?: number | import("@tamagui/core").SizeTokens | undefined;
|
|
80
|
-
inset?: number | import("@tamagui/core").SizeTokens | {
|
|
81
|
-
top?: number;
|
|
82
|
-
bottom?: number;
|
|
83
|
-
left?: number;
|
|
84
|
-
right?: number;
|
|
85
|
-
} | null | undefined;
|
|
86
51
|
fullscreen?: boolean | undefined;
|
|
87
52
|
unstyled?: boolean | undefined;
|
|
88
53
|
}>, keyof {
|
|
@@ -92,29 +57,19 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
92
57
|
disableHideBottomOverflow?: boolean;
|
|
93
58
|
adjustPaddingForOffscreenContent?: boolean;
|
|
94
59
|
}>>;
|
|
95
|
-
Overlay: import("
|
|
96
|
-
open?: boolean
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
hoverTheme?: boolean | undefined;
|
|
109
|
-
pressTheme?: boolean | undefined;
|
|
110
|
-
focusTheme?: boolean | undefined;
|
|
111
|
-
elevate?: boolean | undefined;
|
|
112
|
-
bordered?: number | boolean | undefined;
|
|
113
|
-
backgrounded?: boolean | undefined;
|
|
114
|
-
radiused?: boolean | undefined;
|
|
115
|
-
padded?: boolean | undefined;
|
|
116
|
-
chromeless?: boolean | "all" | undefined;
|
|
117
|
-
}>>) => null>;
|
|
60
|
+
Overlay: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & {
|
|
61
|
+
open?: boolean;
|
|
62
|
+
}, "__scopeSheet"> & {
|
|
63
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
64
|
+
}, any, any, any, {
|
|
65
|
+
open?: boolean;
|
|
66
|
+
}, {}> | import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & {
|
|
67
|
+
open?: boolean;
|
|
68
|
+
}, "__scopeSheet"> & {
|
|
69
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
70
|
+
}, any, {
|
|
71
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
72
|
+
}, {}, {}, {}>;
|
|
118
73
|
Handle: import("@tamagui/core").TamaguiComponent<any, any, any, any, {
|
|
119
74
|
open?: boolean;
|
|
120
75
|
}, {}> | import("@tamagui/core").TamaguiComponent<any, any, any, {}, {}, {}>;
|
|
@@ -138,12 +93,6 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
138
93
|
};
|
|
139
94
|
Frame: import("react").ForwardRefExoticComponent<import("./types").SheetScopedProps<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
140
95
|
elevation?: number | import("@tamagui/core").SizeTokens | undefined;
|
|
141
|
-
inset?: number | import("@tamagui/core").SizeTokens | {
|
|
142
|
-
top?: number;
|
|
143
|
-
bottom?: number;
|
|
144
|
-
left?: number;
|
|
145
|
-
right?: number;
|
|
146
|
-
} | null | undefined;
|
|
147
96
|
fullscreen?: boolean | undefined;
|
|
148
97
|
unstyled?: boolean | undefined;
|
|
149
98
|
}>, keyof {
|
|
@@ -153,29 +102,19 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
153
102
|
disableHideBottomOverflow?: boolean;
|
|
154
103
|
adjustPaddingForOffscreenContent?: boolean;
|
|
155
104
|
}>>;
|
|
156
|
-
Overlay: import("
|
|
157
|
-
open?: boolean
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
hoverTheme?: boolean | undefined;
|
|
170
|
-
pressTheme?: boolean | undefined;
|
|
171
|
-
focusTheme?: boolean | undefined;
|
|
172
|
-
elevate?: boolean | undefined;
|
|
173
|
-
bordered?: number | boolean | undefined;
|
|
174
|
-
backgrounded?: boolean | undefined;
|
|
175
|
-
radiused?: boolean | undefined;
|
|
176
|
-
padded?: boolean | undefined;
|
|
177
|
-
chromeless?: boolean | "all" | undefined;
|
|
178
|
-
}>>) => null>;
|
|
105
|
+
Overlay: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & {
|
|
106
|
+
open?: boolean;
|
|
107
|
+
}, "__scopeSheet"> & {
|
|
108
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
109
|
+
}, any, any, any, {
|
|
110
|
+
open?: boolean;
|
|
111
|
+
}, {}> | import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & {
|
|
112
|
+
open?: boolean;
|
|
113
|
+
}, "__scopeSheet"> & {
|
|
114
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
115
|
+
}, any, {
|
|
116
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
117
|
+
}, {}, {}, {}>;
|
|
179
118
|
Handle: import("@tamagui/core").TamaguiComponent<any, any, any, any, {
|
|
180
119
|
open?: boolean;
|
|
181
120
|
}, {}> | import("@tamagui/core").TamaguiComponent<any, any, any, {}, {}, {}>;
|
|
@@ -197,41 +136,4 @@ export declare const Sheet: import("react").ForwardRefExoticComponent<{
|
|
|
197
136
|
fullscreen?: boolean | undefined;
|
|
198
137
|
}>> & import("react").RefAttributes<import("react-native").ScrollView>>;
|
|
199
138
|
};
|
|
200
|
-
/** @deprecated use Overlay instead */
|
|
201
|
-
export declare const SheetOverlayFrame: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
202
|
-
open?: boolean | undefined;
|
|
203
|
-
elevation?: number | import("@tamagui/core").SizeTokens | undefined;
|
|
204
|
-
inset?: number | import("@tamagui/core").SizeTokens | {
|
|
205
|
-
top?: number;
|
|
206
|
-
bottom?: number;
|
|
207
|
-
left?: number;
|
|
208
|
-
right?: number;
|
|
209
|
-
} | null | undefined;
|
|
210
|
-
fullscreen?: boolean | undefined;
|
|
211
|
-
circular?: boolean | undefined;
|
|
212
|
-
transparent?: boolean | undefined;
|
|
213
|
-
unstyled?: boolean | undefined;
|
|
214
|
-
hoverTheme?: boolean | undefined;
|
|
215
|
-
pressTheme?: boolean | undefined;
|
|
216
|
-
focusTheme?: boolean | undefined;
|
|
217
|
-
elevate?: boolean | undefined;
|
|
218
|
-
bordered?: number | boolean | undefined;
|
|
219
|
-
backgrounded?: boolean | undefined;
|
|
220
|
-
radiused?: boolean | undefined;
|
|
221
|
-
padded?: boolean | undefined;
|
|
222
|
-
chromeless?: boolean | "all" | undefined;
|
|
223
|
-
}, import("@tamagui/core").StaticConfigPublic>;
|
|
224
|
-
/** @deprecated use Overlay instead */
|
|
225
|
-
export declare const SheetHandleFrame: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
226
|
-
open?: boolean | undefined;
|
|
227
|
-
elevation?: number | import("@tamagui/core").SizeTokens | undefined;
|
|
228
|
-
inset?: number | import("@tamagui/core").SizeTokens | {
|
|
229
|
-
top?: number;
|
|
230
|
-
bottom?: number;
|
|
231
|
-
left?: number;
|
|
232
|
-
right?: number;
|
|
233
|
-
} | null | undefined;
|
|
234
|
-
fullscreen?: boolean | undefined;
|
|
235
|
-
unstyled?: boolean | undefined;
|
|
236
|
-
}, import("@tamagui/core").StaticConfigPublic>;
|
|
237
139
|
//# sourceMappingURL=Sheet.d.ts.map
|
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
|
|
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;;;;;8CAmCjB,CAAA;AAMF,eAAO,MAAM,OAAO;;;;;8CA2BlB,CAAA;AAMF,eAAO,MAAM,KAAK;;;;8CAoBhB,CAAA;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
|
package/types/createSheet.d.ts
CHANGED
|
@@ -67,7 +67,13 @@ export declare function createSheet<H extends TamaguiComponent | SheetStyledComp
|
|
|
67
67
|
*/
|
|
68
68
|
adjustPaddingForOffscreenContent?: boolean;
|
|
69
69
|
}>>;
|
|
70
|
-
Overlay:
|
|
70
|
+
Overlay: TamaguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
71
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
72
|
+
}, any, any, any, SharedSheetProps, {}> | TamaguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
73
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
74
|
+
}, any, {
|
|
75
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
76
|
+
}, {}, {}, {}>;
|
|
71
77
|
Handle: TamaguiComponent<any, any, any, any, SharedSheetProps, {}> | TamaguiComponent<any, any, any, {}, {}, {}>;
|
|
72
78
|
ScrollView: ForwardRefExoticComponent<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@tamagui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
73
79
|
readonly contentContainerStyle?: Partial<import("@tamagui/core").GetFinalProps<import("react-native").ScrollViewProps, import("@tamagui/core").StackStyleBase, {}>> | undefined;
|
|
@@ -114,7 +120,13 @@ export declare function createSheet<H extends TamaguiComponent | SheetStyledComp
|
|
|
114
120
|
*/
|
|
115
121
|
adjustPaddingForOffscreenContent?: boolean;
|
|
116
122
|
}>>;
|
|
117
|
-
Overlay:
|
|
123
|
+
Overlay: TamaguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
124
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
125
|
+
}, any, any, any, SharedSheetProps, {}> | TamaguiComponent<Omit<BaseProps, "__scopeSheet"> & {
|
|
126
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
127
|
+
}, any, {
|
|
128
|
+
__scopeSheet?: import("@tamagui/create-context").Scope<any>;
|
|
129
|
+
}, {}, {}, {}>;
|
|
118
130
|
Handle: TamaguiComponent<any, any, any, any, SharedSheetProps, {}> | TamaguiComponent<any, any, any, {}, {}, {}>;
|
|
119
131
|
ScrollView: ForwardRefExoticComponent<Omit<import("@tamagui/core").TamaguiComponentPropsBaseBase & import("react-native").ScrollViewProps, keyof import("@tamagui/core").StackStyleBase | "fullscreen" | "contentContainerStyle"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase & {
|
|
120
132
|
readonly contentContainerStyle?: Partial<import("@tamagui/core").GetFinalProps<import("react-native").ScrollViewProps, import("@tamagui/core").StackStyleBase, {}>> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSheet.d.ts","sourceRoot":"","sources":["../src/createSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,iCAAiC,EAElC,MAAM,eAAe,CAAA;AAOtB,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAExF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAOxC,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAI3D,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,KAAK,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAAA;AAE9C,KAAK,oBAAoB,GAAG,iCAAiC,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAA;AAE1F,wBAAgB,WAAW,CACzB,CAAC,SAAS,gBAAgB,GAAG,oBAAoB,EACjD,CAAC,SAAS,gBAAgB,GAAG,oBAAoB,EACjD,CAAC,SAAS,gBAAgB,GAAG,oBAAoB,EACjD,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,CAAC,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createSheet.d.ts","sourceRoot":"","sources":["../src/createSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,iCAAiC,EAElC,MAAM,eAAe,CAAA;AAOtB,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAExF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAOxC,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAI3D,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,KAAK,SAAS,GAAG,UAAU,GAAG,gBAAgB,CAAA;AAE9C,KAAK,oBAAoB,GAAG,iCAAiC,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAA;AAE1F,wBAAgB,WAAW,CACzB,CAAC,SAAS,gBAAgB,GAAG,oBAAoB,EACjD,CAAC,SAAS,gBAAgB,GAAG,oBAAoB,EACjD,CAAC,SAAS,gBAAgB,GAAG,oBAAoB,EACjD,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,CAAC,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2E7D;;;;eAIG;wCACyB,OAAO;YAEnC;;;;eAIG;+CACgC,OAAO;;YAZ1C;;;;eAIG;wCACyB,OAAO;YAEnC;;;;eAIG;+CACgC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAZ1C;;;;WAIG;oCACyB,OAAO;QAEnC;;;;WAIG;2CACgC,OAAO;;QAZ1C;;;;WAIG;oCACyB,OAAO;QAEnC;;;;WAIG;2CACgC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiJ7C"}
|