@tamagui/sheet 2.0.0-1769048466315 → 2.0.0-1769080004701

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 (39) hide show
  1. package/dist/cjs/SheetImplementationCustom.cjs +1 -1
  2. package/dist/cjs/SheetImplementationCustom.js +1 -1
  3. package/dist/cjs/SheetImplementationCustom.js.map +2 -2
  4. package/dist/cjs/SheetImplementationCustom.native.js +1 -1
  5. package/dist/cjs/SheetImplementationCustom.native.js.map +1 -1
  6. package/dist/cjs/createSheet.cjs +1 -1
  7. package/dist/cjs/createSheet.js +1 -1
  8. package/dist/cjs/createSheet.js.map +1 -1
  9. package/dist/cjs/createSheet.native.js +1 -1
  10. package/dist/cjs/createSheet.native.js.map +1 -1
  11. package/dist/esm/SheetImplementationCustom.js +2 -2
  12. package/dist/esm/SheetImplementationCustom.js.map +1 -1
  13. package/dist/esm/SheetImplementationCustom.mjs +2 -2
  14. package/dist/esm/SheetImplementationCustom.mjs.map +1 -1
  15. package/dist/esm/SheetImplementationCustom.native.js +2 -2
  16. package/dist/esm/SheetImplementationCustom.native.js.map +1 -1
  17. package/dist/esm/createSheet.js +2 -2
  18. package/dist/esm/createSheet.js.map +1 -1
  19. package/dist/esm/createSheet.mjs +2 -2
  20. package/dist/esm/createSheet.mjs.map +1 -1
  21. package/dist/esm/createSheet.native.js +2 -2
  22. package/dist/esm/createSheet.native.js.map +1 -1
  23. package/dist/jsx/SheetImplementationCustom.js +2 -2
  24. package/dist/jsx/SheetImplementationCustom.js.map +1 -1
  25. package/dist/jsx/SheetImplementationCustom.mjs +2 -2
  26. package/dist/jsx/SheetImplementationCustom.mjs.map +1 -1
  27. package/dist/jsx/SheetImplementationCustom.native.js +1 -1
  28. package/dist/jsx/SheetImplementationCustom.native.js.map +1 -1
  29. package/dist/jsx/createSheet.js +2 -2
  30. package/dist/jsx/createSheet.js.map +1 -1
  31. package/dist/jsx/createSheet.mjs +2 -2
  32. package/dist/jsx/createSheet.mjs.map +1 -1
  33. package/dist/jsx/createSheet.native.js +1 -1
  34. package/dist/jsx/createSheet.native.js.map +1 -1
  35. package/package.json +19 -19
  36. package/src/SheetImplementationCustom.tsx +2 -2
  37. package/src/createSheet.tsx +5 -5
  38. package/types/createSheet.d.ts +3 -3
  39. package/types/createSheet.d.ts.map +1 -1
@@ -7,7 +7,7 @@ import type {
7
7
  TamaguiComponentExpectingVariants,
8
8
  TamaguiElement,
9
9
  } from '@tamagui/core'
10
- import { Stack } from '@tamagui/core'
10
+ import { View } from '@tamagui/core'
11
11
  import { composeEventHandlers, withStaticProperties } from '@tamagui/helpers'
12
12
  import { resolveViewZIndex } from '@tamagui/portal'
13
13
  import { RemoveScroll } from '@tamagui/remove-scroll'
@@ -15,7 +15,7 @@ import { useDidFinishSSR } from '@tamagui/use-did-finish-ssr'
15
15
  import { StackZIndexContext } from '@tamagui/z-index-stack'
16
16
  import type { ForwardRefExoticComponent, FunctionComponent, RefAttributes } from 'react'
17
17
  import { forwardRef, memo, useMemo, useEffect, useRef } from 'react'
18
- import type { View } from 'react-native'
18
+ import type { View as RNView } from 'react-native'
19
19
  import { Platform } from 'react-native'
20
20
  import { SHEET_HANDLE_NAME, SHEET_NAME, SHEET_OVERLAY_NAME } from './constants'
21
21
  import { getNativeSheet } from './nativeSheet'
@@ -178,7 +178,7 @@ export function createSheet<
178
178
  </StackZIndexContext>
179
179
 
180
180
  {adjustPaddingForOffscreenContent && (
181
- <Stack data-sheet-offscreen-pad height={offscreenSize} width="100%" />
181
+ <View data-sheet-offscreen-pad height={offscreenSize} width="100%" />
182
182
  )}
183
183
  </Frame>
184
184
  )
@@ -228,7 +228,7 @@ export function createSheet<
228
228
  >
229
229
  >
230
230
 
231
- const Sheet = forwardRef<View, SheetProps>(function Sheet(props, ref) {
231
+ const Sheet = forwardRef<RNView, SheetProps>(function Sheet(props, ref) {
232
232
  const hydrated = useDidFinishSSR()
233
233
  const { isShowingNonSheet } = useSheetController()
234
234
 
@@ -262,7 +262,7 @@ export function createSheet<
262
262
  }
263
263
 
264
264
  const Controlled = withStaticProperties(Sheet, components) as any as FunctionComponent<
265
- Omit<SheetProps, 'open' | 'onOpenChange'> & RefAttributes<View>
265
+ Omit<SheetProps, 'open' | 'onOpenChange'> & RefAttributes<RNView>
266
266
  > &
267
267
  typeof components
268
268
 
@@ -1,6 +1,6 @@
1
1
  import type { GetProps, StackProps, TamaguiComponent, TamaguiComponentExpectingVariants } from '@tamagui/core';
2
2
  import type { ForwardRefExoticComponent, FunctionComponent, RefAttributes } from 'react';
3
- import type { View } from 'react-native';
3
+ import type { View as RNView } from 'react-native';
4
4
  import type { SheetProps, SheetScopedProps } from './types';
5
5
  type SharedSheetProps = {
6
6
  open?: boolean;
@@ -39,8 +39,8 @@ export declare function createSheet<H extends TamaguiComponent | SheetStyledComp
39
39
  containerComponent?: React.ComponentType<any>;
40
40
  } & {
41
41
  __scopeSheet?: import("@tamagui/create-context").Scope<any>;
42
- } & RefAttributes<View>> & {
43
- Controlled: FunctionComponent<Omit<SheetProps, "open" | "onOpenChange"> & RefAttributes<View>> & {
42
+ } & RefAttributes<RNView>> & {
43
+ Controlled: FunctionComponent<Omit<SheetProps, "open" | "onOpenChange"> & RefAttributes<RNView>> & {
44
44
  Frame: ForwardRefExoticComponent<SheetScopedProps<Omit<GetProps<F>, keyof {
45
45
  /**
46
46
  * By default the sheet adds a view below its bottom that extends down another 50%,
@@ -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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