@tamagui/toast 1.15.4 → 1.15.6

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 (62) hide show
  1. package/dist/cjs/Toast.js.map +1 -1
  2. package/dist/cjs/ToastImperative.js +1 -2
  3. package/dist/cjs/ToastImperative.js.map +2 -2
  4. package/dist/cjs/ToastImpl.js +8 -12
  5. package/dist/cjs/ToastImpl.js.map +2 -2
  6. package/dist/cjs/ToastProvider.js +9 -3
  7. package/dist/cjs/ToastProvider.js.map +2 -2
  8. package/dist/cjs/ToastViewport.js +44 -21
  9. package/dist/cjs/ToastViewport.js.map +2 -2
  10. package/dist/esm/Toast.js.map +1 -1
  11. package/dist/esm/Toast.mjs.map +1 -1
  12. package/dist/esm/ToastImperative.js +1 -2
  13. package/dist/esm/ToastImperative.js.map +2 -2
  14. package/dist/esm/ToastImperative.mjs +1 -2
  15. package/dist/esm/ToastImperative.mjs.map +2 -2
  16. package/dist/esm/ToastImpl.js +8 -12
  17. package/dist/esm/ToastImpl.js.map +2 -2
  18. package/dist/esm/ToastImpl.mjs +8 -12
  19. package/dist/esm/ToastImpl.mjs.map +2 -2
  20. package/dist/esm/ToastProvider.js +9 -3
  21. package/dist/esm/ToastProvider.js.map +2 -2
  22. package/dist/esm/ToastProvider.mjs +9 -3
  23. package/dist/esm/ToastProvider.mjs.map +2 -2
  24. package/dist/esm/ToastViewport.js +44 -21
  25. package/dist/esm/ToastViewport.js.map +2 -2
  26. package/dist/esm/ToastViewport.mjs +44 -21
  27. package/dist/esm/ToastViewport.mjs.map +2 -2
  28. package/dist/jsx/Toast.js.map +1 -1
  29. package/dist/jsx/Toast.mjs.map +1 -1
  30. package/dist/jsx/ToastImperative.js +1 -2
  31. package/dist/jsx/ToastImperative.js.map +2 -2
  32. package/dist/jsx/ToastImperative.mjs +1 -2
  33. package/dist/jsx/ToastImperative.mjs.map +2 -2
  34. package/dist/jsx/ToastImpl.js +8 -11
  35. package/dist/jsx/ToastImpl.js.map +2 -2
  36. package/dist/jsx/ToastImpl.mjs +8 -11
  37. package/dist/jsx/ToastImpl.mjs.map +2 -2
  38. package/dist/jsx/ToastProvider.js +9 -3
  39. package/dist/jsx/ToastProvider.js.map +2 -2
  40. package/dist/jsx/ToastProvider.mjs +9 -3
  41. package/dist/jsx/ToastProvider.mjs.map +2 -2
  42. package/dist/jsx/ToastViewport.js +44 -20
  43. package/dist/jsx/ToastViewport.js.map +2 -2
  44. package/dist/jsx/ToastViewport.mjs +44 -20
  45. package/dist/jsx/ToastViewport.mjs.map +2 -2
  46. package/package.json +13 -13
  47. package/src/Toast.tsx +2 -2
  48. package/src/ToastImperative.tsx +11 -3
  49. package/src/ToastImpl.tsx +21 -21
  50. package/src/ToastProvider.tsx +14 -5
  51. package/src/ToastViewport.tsx +51 -21
  52. package/types/Toast.d.ts +38 -66
  53. package/types/Toast.d.ts.map +1 -1
  54. package/types/ToastAnnounce.d.ts +1 -1
  55. package/types/ToastImperative.d.ts +10 -1
  56. package/types/ToastImperative.d.ts.map +1 -1
  57. package/types/ToastImpl.d.ts +13 -20
  58. package/types/ToastImpl.d.ts.map +1 -1
  59. package/types/ToastProvider.d.ts +2 -2
  60. package/types/ToastProvider.d.ts.map +1 -1
  61. package/types/ToastViewport.d.ts +18 -59
  62. package/types/ToastViewport.d.ts.map +1 -1
@@ -17,9 +17,8 @@ declare const ToastImplFrame: import("@tamagui/core").TamaguiComponent<Omit<impo
17
17
  readonly bordered?: number | boolean | undefined;
18
18
  readonly transparent?: boolean | undefined;
19
19
  readonly chromeless?: boolean | "all" | undefined;
20
- }, "backgrounded" | "unstyled"> & {
21
- backgrounded?: boolean | undefined;
22
- unstyled?: boolean | undefined;
20
+ }, "unstyled"> & {
21
+ readonly unstyled?: boolean | undefined;
23
22
  } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
24
23
  readonly fullscreen?: boolean | undefined;
25
24
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
@@ -35,9 +34,8 @@ declare const ToastImplFrame: import("@tamagui/core").TamaguiComponent<Omit<impo
35
34
  readonly bordered?: number | boolean | undefined;
36
35
  readonly transparent?: boolean | undefined;
37
36
  readonly chromeless?: boolean | "all" | undefined;
38
- }, "backgrounded" | "unstyled"> & {
39
- backgrounded?: boolean | undefined;
40
- unstyled?: boolean | undefined;
37
+ }, "unstyled"> & {
38
+ readonly unstyled?: boolean | undefined;
41
39
  }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
42
40
  readonly fullscreen?: boolean | undefined;
43
41
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
@@ -53,9 +51,8 @@ declare const ToastImplFrame: import("@tamagui/core").TamaguiComponent<Omit<impo
53
51
  readonly bordered?: number | boolean | undefined;
54
52
  readonly transparent?: boolean | undefined;
55
53
  readonly chromeless?: boolean | "all" | undefined;
56
- }, "backgrounded" | "unstyled"> & {
57
- backgrounded?: boolean | undefined;
58
- unstyled?: boolean | undefined;
54
+ }, "unstyled"> & {
55
+ readonly unstyled?: boolean | undefined;
59
56
  }>>, TamaguiElement, Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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, {
60
57
  readonly fullscreen?: boolean | undefined;
61
58
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
@@ -72,8 +69,7 @@ declare const ToastImplFrame: import("@tamagui/core").TamaguiComponent<Omit<impo
72
69
  readonly transparent?: boolean | undefined;
73
70
  readonly chromeless?: boolean | "all" | undefined;
74
71
  } & {
75
- backgrounded?: boolean | undefined;
76
- unstyled?: boolean | undefined;
72
+ readonly unstyled?: boolean | undefined;
77
73
  }, {
78
74
  displayName: string | undefined;
79
75
  }>;
@@ -180,9 +176,8 @@ declare const ToastImpl: React.ForwardRefExoticComponent<ToastImplPrivateProps &
180
176
  readonly bordered?: number | boolean | undefined;
181
177
  readonly transparent?: boolean | undefined;
182
178
  readonly chromeless?: boolean | "all" | undefined;
183
- }, "backgrounded" | "unstyled"> & {
184
- backgrounded?: boolean | undefined;
185
- unstyled?: boolean | undefined;
179
+ }, "unstyled"> & {
180
+ readonly unstyled?: boolean | undefined;
186
181
  } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
187
182
  readonly fullscreen?: boolean | undefined;
188
183
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
@@ -198,9 +193,8 @@ declare const ToastImpl: React.ForwardRefExoticComponent<ToastImplPrivateProps &
198
193
  readonly bordered?: number | boolean | undefined;
199
194
  readonly transparent?: boolean | undefined;
200
195
  readonly chromeless?: boolean | "all" | undefined;
201
- }, "backgrounded" | "unstyled"> & {
202
- backgrounded?: boolean | undefined;
203
- unstyled?: boolean | undefined;
196
+ }, "unstyled"> & {
197
+ readonly unstyled?: boolean | undefined;
204
198
  }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
205
199
  readonly fullscreen?: boolean | undefined;
206
200
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
@@ -216,9 +210,8 @@ declare const ToastImpl: React.ForwardRefExoticComponent<ToastImplPrivateProps &
216
210
  readonly bordered?: number | boolean | undefined;
217
211
  readonly transparent?: boolean | undefined;
218
212
  readonly chromeless?: boolean | "all" | undefined;
219
- }, "backgrounded" | "unstyled"> & {
220
- backgrounded?: boolean | undefined;
221
- unstyled?: boolean | undefined;
213
+ }, "unstyled"> & {
214
+ readonly unstyled?: boolean | undefined;
222
215
  }>> & {
223
216
  /**
224
217
  * Control the sensitivity of the toast for accessibility purposes.
@@ -1 +1 @@
1
- {"version":3,"file":"ToastImpl.d.ts","sourceRoot":"","sources":["../src/ToastImpl.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,cAAc,EAQf,MAAM,eAAe,CAAA;AACtB,OAAO,EAAe,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAGpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAY,qBAAqB,EAAgB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IArDX;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;sBACe,gBAAgB,CAAC,iBAAiB,CAAC;IACrD;;;;OAIG;gBACS,IAAI;IAChB;;;;OAIG;iBACU,IAAI;IACjB;;OAEG;yBACkB,UAAU,GAAG,IAAI;IACtC;;OAEG;wBACiB,UAAU,GAAG,IAAI;IACrC;;OAEG;0BACmB,UAAU,GAAG,IAAI;IACvC;;OAEG;uBACgB,UAAU,GAAG,IAAI;IACpC;;;;OAIG;;IAEH;;OAEG;;wCAwPN,CAAA;AA6DD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,0BAA0B,EAAE,CAAA;AAChF,YAAY,EAAE,UAAU,EAAE,CAAA"}
@@ -24,8 +24,8 @@ type ToastProviderContextValue = {
24
24
  swipeDirection: SwipeDirection;
25
25
  swipeThreshold: number;
26
26
  toastCount: number;
27
- viewport: TamaguiElement | null;
28
- onViewportChange(viewport: TamaguiElement): void;
27
+ viewports: Record<string, TamaguiElement | null>;
28
+ onViewportChange(name: string, viewport: TamaguiElement): void;
29
29
  onToastAdd(): void;
30
30
  onToastRemove(): void;
31
31
  isFocusedToastEscapeKeyDownRef: React.MutableRefObject<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../src/ToastProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAA2B,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAQ3C,QAAA,MAAO,UAAU;;;;;;;;;;GAAE,aAAa;;GACW,CAAA;AAE3C,KAAK,cAAc,GAAG,UAAU,G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ewportPause";
5
5
  declare const VIEWPORT_RESUME = "toast.viewportResume";
6
- declare const ToastViewportFrame: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{}, "elevation" | "fullscreen"> & {
6
+ declare const ToastViewportFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
7
7
  readonly fullscreen?: boolean | undefined;
8
8
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
9
- } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{}, "elevation" | "fullscreen"> & {
10
- readonly fullscreen?: boolean | undefined;
11
- readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
12
- }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{}, "elevation" | "fullscreen"> & {
13
- readonly fullscreen?: boolean | undefined;
14
- readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
15
- }>>) | (Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
16
- readonly fullscreen?: boolean | undefined;
17
- readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
18
- }, string | number> & {
19
- [x: string]: undefined;
9
+ }, "unstyled"> & {
10
+ readonly unstyled?: boolean | undefined;
20
11
  } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
21
12
  readonly fullscreen?: boolean | undefined;
22
13
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
23
- }, string | number> & {
24
- [x: string]: undefined;
14
+ }, "unstyled"> & {
15
+ readonly unstyled?: boolean | undefined;
25
16
  }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
26
17
  readonly fullscreen?: boolean | undefined;
27
18
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
28
- }, string | number> & {
29
- [x: string]: undefined;
30
- }>>), TamaguiElement, Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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, {
31
- readonly fullscreen?: boolean | undefined;
32
- readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
33
- } | ({
19
+ }, "unstyled"> & {
20
+ readonly unstyled?: boolean | undefined;
21
+ }>>, TamaguiElement, Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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, {
34
22
  readonly fullscreen?: boolean | undefined;
35
23
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
36
24
  } & {
37
- [x: string]: undefined;
38
- }), {
25
+ readonly unstyled?: boolean | undefined;
26
+ }, {
39
27
  displayName: string | undefined;
40
28
  }>;
41
29
  type ToastViewportFrameProps = GetProps<typeof ToastViewportFrame>;
@@ -60,50 +48,21 @@ type ToastViewportProps = ToastViewportFrameProps & {
60
48
  */
61
49
  multipleToasts?: boolean;
62
50
  };
63
- declare const ToastViewport: React.ForwardRefExoticComponent<((Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{}, "elevation" | "fullscreen"> & {
64
- readonly fullscreen?: boolean | undefined;
65
- readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
66
- } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{}, "elevation" | "fullscreen"> & {
67
- readonly fullscreen?: boolean | undefined;
68
- readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
69
- }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{}, "elevation" | "fullscreen"> & {
70
- readonly fullscreen?: boolean | undefined;
71
- readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
72
- }>> & {
73
- /**
74
- * The keys to use as the keyboard shortcut that will move focus to the toast viewport.
75
- * @defaultValue ['F8']
76
- */
77
- hotkey?: string[] | undefined;
78
- /**
79
- * An author-localized label for the toast viewport to provide context for screen reader users
80
- * when navigating page landmarks. The available `{hotkey}` placeholder will be replaced for you.
81
- * @defaultValue 'Notifications ({hotkey})'
82
- */
83
- label?: string | undefined;
84
- /**
85
- * Used to reference the viewport if you want to have multiple viewports in the same provider.
86
- */
87
- name?: string | undefined;
88
- /**
89
- * Pass this when you want to have multiple/duplicated toasts.
90
- */
91
- multipleToasts?: boolean | undefined;
92
- }) | Omit<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
51
+ declare const ToastViewport: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
93
52
  readonly fullscreen?: boolean | undefined;
94
53
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
95
- }, string | number> & {
96
- [x: string]: undefined;
54
+ }, "unstyled"> & {
55
+ readonly unstyled?: boolean | undefined;
97
56
  } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
98
57
  readonly fullscreen?: boolean | undefined;
99
58
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
100
- }, string | number> & {
101
- [x: string]: undefined;
59
+ }, "unstyled"> & {
60
+ readonly unstyled?: boolean | undefined;
102
61
  }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display" | "onLayout" | keyof import("react-native").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<{
103
62
  readonly fullscreen?: boolean | undefined;
104
63
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
105
- }, string | number> & {
106
- [x: string]: undefined;
64
+ }, "unstyled"> & {
65
+ readonly unstyled?: boolean | undefined;
107
66
  }>> & {
108
67
  /**
109
68
  * The keys to use as the keyboard shortcut that will move focus to the toast viewport.
@@ -124,6 +83,6 @@ declare const ToastViewport: React.ForwardRefExoticComponent<((Omit<import("reac
124
83
  * Pass this when you want to have multiple/duplicated toasts.
125
84
  */
126
85
  multipleToasts?: boolean | undefined;
127
- }, "ref">) & React.RefAttributes<HTMLDivElement>>;
86
+ } & React.RefAttributes<HTMLDivElement>>;
128
87
  export { ToastViewport, ToastViewportProps, VIEWPORT_DEFAULT_HOTKEY, VIEWPORT_PAUSE, VIEWPORT_RESUME, };
129
88
  //# sourceMappingURL=ToastViewport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToastViewport.d.ts","sourceRoot":"","sources":["../src/ToastViewport.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAiB,MAAM,eAAe,CAAA;AAIvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAU9B,QAAA,MAAM,uBAAuB,UAAS,CAAA;AACtC,QAAA,MAAM,cAAc,wBAAwB,CAAA;AAC5C,QAAA,MAAM,eAAe,yBAAyB,CAAA;AAgB9C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMtB,CAAA;AACF,KAAK,uBAAuB,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAClE,KAAK,kBAAkB,GAAG,uBAAuB,GAAG;IAClD;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,QAAA,MAAM,aAAa;;;;;;;;;;IArBjB;;;OAGG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;IAjBH;;;OAGG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;iDAqNJ,CAAA;AAqFD,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,cAAc,EACd,eAAe,GAChB,CAAA"}
1
+ {"version":3,"file":"ToastViewport.d.ts","sourceRoot":"","sources":["../src/ToastViewport.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAiB,MAAM,eAAe,CAAA;AAIvE,OAAO,KA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