@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.
Files changed (44) hide show
  1. package/dist/cjs/Sheet.cjs +2 -6
  2. package/dist/cjs/Sheet.js +2 -4
  3. package/dist/cjs/Sheet.js.map +1 -1
  4. package/dist/cjs/Sheet.native.js +2 -6
  5. package/dist/cjs/Sheet.native.js.map +1 -1
  6. package/dist/cjs/SheetImplementationCustom.native.js.map +1 -1
  7. package/dist/cjs/createSheet.cjs +7 -5
  8. package/dist/cjs/createSheet.js +79 -87
  9. package/dist/cjs/createSheet.js.map +1 -1
  10. package/dist/cjs/createSheet.native.js +8 -5
  11. package/dist/cjs/createSheet.native.js.map +1 -1
  12. package/dist/esm/Sheet.js +3 -5
  13. package/dist/esm/Sheet.js.map +1 -1
  14. package/dist/esm/Sheet.mjs +4 -6
  15. package/dist/esm/Sheet.mjs.map +1 -1
  16. package/dist/esm/Sheet.native.js +4 -6
  17. package/dist/esm/Sheet.native.js.map +1 -1
  18. package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
  19. package/dist/esm/createSheet.js +80 -88
  20. package/dist/esm/createSheet.js.map +1 -1
  21. package/dist/esm/createSheet.mjs +8 -6
  22. package/dist/esm/createSheet.mjs.map +1 -1
  23. package/dist/esm/createSheet.native.js +9 -6
  24. package/dist/esm/createSheet.native.js.map +1 -1
  25. package/dist/jsx/Sheet.js +3 -5
  26. package/dist/jsx/Sheet.js.map +1 -1
  27. package/dist/jsx/Sheet.mjs +4 -6
  28. package/dist/jsx/Sheet.mjs.map +1 -1
  29. package/dist/jsx/Sheet.native.js +2 -6
  30. package/dist/jsx/Sheet.native.js.map +1 -1
  31. package/dist/jsx/SheetImplementationCustom.native.js.map +1 -1
  32. package/dist/jsx/createSheet.js +80 -88
  33. package/dist/jsx/createSheet.js.map +1 -1
  34. package/dist/jsx/createSheet.mjs +8 -6
  35. package/dist/jsx/createSheet.mjs.map +1 -1
  36. package/dist/jsx/createSheet.native.js +8 -5
  37. package/dist/jsx/createSheet.native.js.map +1 -1
  38. package/package.json +19 -19
  39. package/src/Sheet.tsx +2 -8
  40. package/src/createSheet.tsx +119 -126
  41. package/types/Sheet.d.ts +26 -124
  42. package/types/Sheet.d.ts.map +1 -1
  43. package/types/createSheet.d.ts +14 -2
  44. 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": "1.143.0",
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": "1.143.0",
44
- "@tamagui/animate-presence": "1.143.0",
45
- "@tamagui/animations-react-native": "1.143.0",
46
- "@tamagui/compose-refs": "1.143.0",
47
- "@tamagui/constants": "1.143.0",
48
- "@tamagui/core": "1.143.0",
49
- "@tamagui/create-context": "1.143.0",
50
- "@tamagui/helpers": "1.143.0",
51
- "@tamagui/portal": "1.143.0",
52
- "@tamagui/remove-scroll": "1.143.0",
53
- "@tamagui/scroll-view": "1.143.0",
54
- "@tamagui/stacks": "1.143.0",
55
- "@tamagui/use-constant": "1.143.0",
56
- "@tamagui/use-controllable-state": "1.143.0",
57
- "@tamagui/use-did-finish-ssr": "1.143.0",
58
- "@tamagui/use-keyboard-visible": "1.143.0",
59
- "@tamagui/z-index-stack": "1.143.0"
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": "1.143.0",
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 { ThemeableStack, XStack, YStack } from '@tamagui/stacks'
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(ThemeableStack, {
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
@@ -73,42 +73,40 @@ export function createSheet<
73
73
  * SheetOverlay
74
74
  * -----------------------------------------------------------------------------------------------*/
75
75
 
76
- const SheetOverlay = Overlay.extractable(
77
- memo((propsIn: SheetScopedProps<GetProps<typeof Overlay>>) => {
78
- const { __scopeSheet, ...props } = propsIn
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
- // this ones a bit weird for legacy reasons, we need to hoist it above <Sheet /> AnimatedView
82
- // so we just pass it up to context
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
- const element = useMemo(() => {
85
- return (
86
- // @ts-ignore
87
- <Overlay
88
- {...props}
89
- onPress={composeEventHandlers(
90
- props.onPress,
91
- context.dismissOnOverlayPress
92
- ? () => {
93
- context.setOpen(false)
94
- }
95
- : undefined
96
- )}
97
- />
98
- )
99
- }, [props.onPress, props.opacity, context.dismissOnOverlayPress])
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
- if (context.onlyShowFrame) {
106
- return null
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.extractable(
134
- forwardRef(
135
- (
136
- {
137
- __scopeSheet,
138
- adjustPaddingForOffscreenContent,
139
- disableHideBottomOverflow,
140
- children,
141
- ...props
142
- }: SheetProps & ExtraFrameProps,
143
- forwardedRef
144
- ) => {
145
- const context = useSheetContext(SHEET_NAME, __scopeSheet)
146
- const {
147
- hasFit,
148
- removeScrollEnabled = true,
149
- frameSize,
150
- contentRef,
151
- open,
152
- } = context
153
- const composedContentRef = useComposedRefs(forwardedRef, contentRef)
154
- const offscreenSize = useSheetOffscreenSize(context)
155
-
156
- // FIX: Store the frameSize when open for use during close animation
157
- const stableFrameSize = useRef(frameSize)
158
- useEffect(() => {
159
- if (open && frameSize) {
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
- <RemoveScroll enabled={removeScrollEnabled && context.open}>
205
- {sheetContents}
206
- </RemoveScroll>
207
-
208
- {/* below frame hide when bouncing past 100% */}
209
- {!disableHideBottomOverflow && (
210
- // @ts-ignore
211
- <Frame
212
- {...props}
213
- data-testid="ensure-sheet-cover-not-overlapping"
214
- componentName="SheetCover"
215
- // biome-ignore lint/correctness/noChildrenProp: <explanation>
216
- children={null}
217
- position="absolute"
218
- bottom="-100%"
219
- zIndex={-1}
220
- height={context.frameSize}
221
- left={0}
222
- right={0}
223
- borderWidth={0}
224
- borderRadius={0}
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("react").MemoExoticComponent<(propsIn: import("./types").SheetScopedProps<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
96
- open?: boolean | undefined;
97
- elevation?: number | import("@tamagui/core").SizeTokens | undefined;
98
- inset?: number | import("@tamagui/core").SizeTokens | {
99
- top?: number;
100
- bottom?: number;
101
- left?: number;
102
- right?: number;
103
- } | null | undefined;
104
- fullscreen?: boolean | undefined;
105
- circular?: boolean | undefined;
106
- transparent?: boolean | undefined;
107
- unstyled?: boolean | undefined;
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("react").MemoExoticComponent<(propsIn: import("./types").SheetScopedProps<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
157
- open?: boolean | undefined;
158
- elevation?: number | import("@tamagui/core").SizeTokens | undefined;
159
- inset?: number | import("@tamagui/core").SizeTokens | {
160
- top?: number;
161
- bottom?: number;
162
- left?: number;
163
- right?: number;
164
- } | null | undefined;
165
- fullscreen?: boolean | undefined;
166
- circular?: boolean | undefined;
167
- transparent?: boolean | undefined;
168
- unstyled?: boolean | undefined;
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
@@ -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;;;;;;;;;;;8CAmCjB,CAAA;AAMF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;8CA2BlB,CAAA;AAMF,eAAO,MAAM,KAAK;;;;;;;;;;8CAoBhB,CAAA;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;8CAAU,CAAA;AAExC,uCAAuC;AACvC,eAAO,MAAM,gBAAgB;;;;;;;;;;;8CAAS,CAAA"}
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"}
@@ -67,7 +67,13 @@ export declare function createSheet<H extends TamaguiComponent | SheetStyledComp
67
67
  */
68
68
  adjustPaddingForOffscreenContent?: boolean;
69
69
  }>>;
70
- Overlay: import("react").MemoExoticComponent<(propsIn: SheetScopedProps<GetProps<typeof Overlay>>) => null>;
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: import("react").MemoExoticComponent<(propsIn: SheetScopedProps<GetProps<typeof Overlay>>) => null>;
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,KA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