@tamagui/toast 1.7.10 → 1.8.0
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/Toast.js +95 -543
- package/dist/cjs/Toast.js.map +3 -3
- package/dist/cjs/ToastAnnounce.js +93 -0
- package/dist/cjs/ToastAnnounce.js.map +7 -0
- package/dist/cjs/ToastImpl.js +354 -0
- package/dist/cjs/ToastImpl.js.map +7 -0
- package/dist/cjs/ToastProvider.js +109 -0
- package/dist/cjs/ToastProvider.js.map +7 -0
- package/dist/cjs/ToastViewport.js +307 -0
- package/dist/cjs/ToastViewport.js.map +7 -0
- package/dist/cjs/constants.js +29 -0
- package/dist/cjs/constants.js.map +7 -0
- package/dist/cjs/createNativeToast.js +49 -0
- package/dist/cjs/createNativeToast.js.map +7 -0
- package/dist/cjs/createNativeToast.native.js +37 -0
- package/dist/cjs/createNativeToast.native.js.map +7 -0
- package/dist/cjs/createToast.js +88 -0
- package/dist/cjs/createToast.js.map +7 -0
- package/dist/cjs/types.js +17 -0
- package/dist/cjs/types.js.map +7 -0
- package/dist/esm/Toast.js +101 -531
- package/dist/esm/Toast.js.map +3 -3
- package/dist/esm/Toast.mjs +101 -531
- package/dist/esm/Toast.mjs.map +3 -3
- package/dist/esm/ToastAnnounce.js +64 -0
- package/dist/esm/ToastAnnounce.js.map +7 -0
- package/dist/esm/ToastAnnounce.mjs +64 -0
- package/dist/esm/ToastAnnounce.mjs.map +7 -0
- package/dist/esm/ToastImpl.js +330 -0
- package/dist/esm/ToastImpl.js.map +7 -0
- package/dist/esm/ToastImpl.mjs +330 -0
- package/dist/esm/ToastImpl.mjs.map +7 -0
- package/dist/esm/ToastProvider.js +70 -0
- package/dist/esm/ToastProvider.js.map +7 -0
- package/dist/esm/ToastProvider.mjs +70 -0
- package/dist/esm/ToastProvider.mjs.map +7 -0
- package/dist/esm/ToastViewport.js +274 -0
- package/dist/esm/ToastViewport.js.map +7 -0
- package/dist/esm/ToastViewport.mjs +274 -0
- package/dist/esm/ToastViewport.mjs.map +7 -0
- package/dist/esm/constants.js +5 -0
- package/dist/esm/constants.js.map +7 -0
- package/dist/esm/constants.mjs +5 -0
- package/dist/esm/constants.mjs.map +7 -0
- package/dist/esm/createNativeToast.js +25 -0
- package/dist/esm/createNativeToast.js.map +7 -0
- package/dist/esm/createNativeToast.mjs +25 -0
- package/dist/esm/createNativeToast.mjs.map +7 -0
- package/dist/esm/createNativeToast.native.js +13 -0
- package/dist/esm/createNativeToast.native.js.map +7 -0
- package/dist/esm/createNativeToast.native.mjs +13 -0
- package/dist/esm/createNativeToast.native.mjs.map +7 -0
- package/dist/esm/createToast.js +54 -0
- package/dist/esm/createToast.js.map +7 -0
- package/dist/esm/createToast.mjs +54 -0
- package/dist/esm/createToast.mjs.map +7 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/types.js.map +7 -0
- package/dist/esm/types.mjs +1 -0
- package/dist/esm/types.mjs.map +7 -0
- package/dist/jsx/Toast.js +97 -509
- package/dist/jsx/Toast.js.map +3 -3
- package/dist/jsx/Toast.mjs +97 -509
- package/dist/jsx/Toast.mjs.map +3 -3
- package/dist/jsx/ToastAnnounce.js +60 -0
- package/dist/jsx/ToastAnnounce.js.map +7 -0
- package/dist/jsx/ToastAnnounce.mjs +60 -0
- package/dist/jsx/ToastAnnounce.mjs.map +7 -0
- package/dist/jsx/ToastImpl.js +309 -0
- package/dist/jsx/ToastImpl.js.map +7 -0
- package/dist/jsx/ToastImpl.mjs +309 -0
- package/dist/jsx/ToastImpl.mjs.map +7 -0
- package/dist/jsx/ToastProvider.js +65 -0
- package/dist/jsx/ToastProvider.js.map +7 -0
- package/dist/jsx/ToastProvider.mjs +65 -0
- package/dist/jsx/ToastProvider.mjs.map +7 -0
- package/dist/jsx/ToastViewport.js +254 -0
- package/dist/jsx/ToastViewport.js.map +7 -0
- package/dist/jsx/ToastViewport.mjs +254 -0
- package/dist/jsx/ToastViewport.mjs.map +7 -0
- package/dist/jsx/constants.js +5 -0
- package/dist/jsx/constants.js.map +7 -0
- package/dist/jsx/constants.mjs +5 -0
- package/dist/jsx/constants.mjs.map +7 -0
- package/dist/jsx/createNativeToast.js +25 -0
- package/dist/jsx/createNativeToast.js.map +7 -0
- package/dist/jsx/createNativeToast.mjs +25 -0
- package/dist/jsx/createNativeToast.mjs.map +7 -0
- package/dist/jsx/createNativeToast.native.js +13 -0
- package/dist/jsx/createNativeToast.native.js.map +7 -0
- package/dist/jsx/createNativeToast.native.mjs +13 -0
- package/dist/jsx/createNativeToast.native.mjs.map +7 -0
- package/dist/jsx/createToast.js +49 -0
- package/dist/jsx/createToast.js.map +7 -0
- package/dist/jsx/createToast.mjs +49 -0
- package/dist/jsx/createToast.mjs.map +7 -0
- package/dist/jsx/types.js +1 -0
- package/dist/jsx/types.js.map +7 -0
- package/dist/jsx/types.mjs +1 -0
- package/dist/jsx/types.mjs.map +7 -0
- package/package.json +14 -13
- package/src/Toast.tsx +139 -908
- package/src/ToastAnnounce.tsx +97 -0
- package/src/ToastImpl.tsx +439 -0
- package/src/ToastProvider.tsx +134 -0
- package/src/ToastViewport.tsx +354 -0
- package/src/constants.ts +1 -0
- package/src/createNativeToast.native.tsx +16 -0
- package/src/createNativeToast.tsx +25 -0
- package/src/createToast.tsx +93 -0
- package/src/types.ts +21 -0
- package/types/Toast.d.ts +429 -106
- package/types/Toast.d.ts.map +1 -1
- package/types/ToastAnnounce.d.ts +35 -0
- package/types/ToastAnnounce.d.ts.map +1 -0
- package/types/ToastImpl.d.ts +267 -0
- package/types/ToastImpl.d.ts.map +1 -0
- package/types/ToastProvider.d.ts +80 -0
- package/types/ToastProvider.d.ts.map +1 -0
- package/types/ToastViewport.d.ts +115 -0
- package/types/ToastViewport.d.ts.map +1 -0
- package/types/constants.d.ts +2 -0
- package/types/constants.d.ts.map +1 -0
- package/types/createNativeToast.d.ts +3 -0
- package/types/createNativeToast.d.ts.map +1 -0
- package/types/createNativeToast.native.d.ts +3 -0
- package/types/createNativeToast.native.d.ts.map +1 -0
- package/types/createToast.d.ts +42 -0
- package/types/createToast.d.ts.map +1 -0
- package/types/types.d.ts +17 -0
- package/types/types.d.ts.map +1 -0
package/types/Toast.d.ts
CHANGED
|
@@ -1,95 +1,64 @@
|
|
|
1
|
-
import { TamaguiElement } from '@tamagui/core';
|
|
1
|
+
import { GetProps, TamaguiElement } from '@tamagui/core';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
y: number;
|
|
63
|
-
};
|
|
64
|
-
}>, 'currentTarget'>;
|
|
65
|
-
type ToastImplElement = TamaguiElement;
|
|
66
|
-
type DismissableLayerProps = any;
|
|
67
|
-
type ToastImplPrivateProps = {
|
|
68
|
-
open: boolean;
|
|
69
|
-
onClose(): void;
|
|
70
|
-
};
|
|
71
|
-
type PrimitiveListItemProps = any;
|
|
72
|
-
interface ToastImplProps extends ToastImplPrivateProps, PrimitiveListItemProps {
|
|
73
|
-
type?: 'foreground' | 'background';
|
|
74
|
-
/**
|
|
75
|
-
* Time in milliseconds that toast should remain visible for. Overrides value
|
|
76
|
-
* given to `ToastProvider`.
|
|
77
|
-
*/
|
|
78
|
-
duration?: number;
|
|
79
|
-
onEscapeKeyDown?: DismissableLayerProps['onEscapeKeyDown'];
|
|
80
|
-
onSwipeStart?(event: SwipeEvent): void;
|
|
81
|
-
onSwipeMove?(event: SwipeEvent): void;
|
|
82
|
-
onSwipeCancel?(event: SwipeEvent): void;
|
|
83
|
-
onSwipeEnd?(event: SwipeEvent): void;
|
|
84
|
-
}
|
|
85
|
-
type PrimitiveDivProps = any;
|
|
86
|
-
interface ToastTitleProps extends PrimitiveDivProps {
|
|
87
|
-
}
|
|
88
|
-
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastTitleProps, "ref"> & React.RefAttributes<TamaguiElement>>;
|
|
89
|
-
interface ToastDescriptionProps extends PrimitiveDivProps {
|
|
90
|
-
}
|
|
91
|
-
declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastDescriptionProps, "ref"> & React.RefAttributes<TamaguiElement>>;
|
|
92
|
-
interface ToastActionProps extends ToastCloseProps {
|
|
3
|
+
import { createToast } from './createToast';
|
|
4
|
+
import { ToastProps } from './ToastImpl';
|
|
5
|
+
import { ToastProvider, ToastProviderProps, createToastScope } from './ToastProvider';
|
|
6
|
+
import { ToastViewport, ToastViewportProps } from './ToastViewport';
|
|
7
|
+
declare const ToastTitleFrame: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
8
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
9
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
10
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
11
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
12
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
13
|
+
}>>) | (Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
14
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
15
|
+
}, string | number> & {
|
|
16
|
+
[x: string]: undefined;
|
|
17
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
18
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
19
|
+
}, string | number> & {
|
|
20
|
+
[x: string]: undefined;
|
|
21
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
22
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
23
|
+
}, string | number> & {
|
|
24
|
+
[x: string]: undefined;
|
|
25
|
+
}>>), TamaguiElement, import("@tamagui/core").TextPropsBase, {
|
|
26
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
27
|
+
} | ({
|
|
28
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
[x: string]: undefined;
|
|
31
|
+
})>;
|
|
32
|
+
type PrimitiveDivProps = GetProps<typeof ToastTitleFrame>;
|
|
33
|
+
type ToastTitleProps = PrimitiveDivProps & {};
|
|
34
|
+
declare const ToastDescriptionFrame: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
35
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
36
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
37
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
38
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
39
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
40
|
+
}>>) | (Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
41
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
42
|
+
}, string | number> & {
|
|
43
|
+
[x: string]: undefined;
|
|
44
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
45
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
46
|
+
}, string | number> & {
|
|
47
|
+
[x: string]: undefined;
|
|
48
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
49
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
50
|
+
}, string | number> & {
|
|
51
|
+
[x: string]: undefined;
|
|
52
|
+
}>>), TamaguiElement, import("@tamagui/core").TextPropsBase, {
|
|
53
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
54
|
+
} | ({
|
|
55
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
[x: string]: undefined;
|
|
58
|
+
})>;
|
|
59
|
+
type ToastDescriptionFrameProps = GetProps<typeof ToastDescriptionFrame>;
|
|
60
|
+
type ToastDescriptionProps = ToastDescriptionFrameProps & {};
|
|
61
|
+
type ToastActionProps = ToastCloseProps & {
|
|
93
62
|
/**
|
|
94
63
|
* A short description for an alternate way to carry out the action. For screen reader users
|
|
95
64
|
* who will not be able to navigate to the button easily/quickly.
|
|
@@ -97,19 +66,373 @@ interface ToastActionProps extends ToastCloseProps {
|
|
|
97
66
|
* @example <ToastAction altText="Undo (Alt+U)">Undo</ToastAction>
|
|
98
67
|
*/
|
|
99
68
|
altText: string;
|
|
100
|
-
}
|
|
101
|
-
declare const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
69
|
+
};
|
|
70
|
+
declare const ToastCloseFrame: 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<{
|
|
71
|
+
readonly fullscreen?: boolean | undefined;
|
|
72
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
73
|
+
}, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
74
|
+
readonly backgrounded?: boolean | undefined;
|
|
75
|
+
readonly radiused?: boolean | undefined;
|
|
76
|
+
readonly hoverTheme?: boolean | undefined;
|
|
77
|
+
readonly pressTheme?: boolean | undefined;
|
|
78
|
+
readonly focusTheme?: boolean | undefined;
|
|
79
|
+
readonly circular?: boolean | undefined;
|
|
80
|
+
readonly padded?: boolean | undefined;
|
|
81
|
+
readonly elevate?: boolean | undefined;
|
|
82
|
+
readonly bordered?: number | boolean | undefined;
|
|
83
|
+
readonly transparent?: boolean | undefined;
|
|
84
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
85
|
+
} & 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<{
|
|
86
|
+
readonly fullscreen?: boolean | undefined;
|
|
87
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
88
|
+
}, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
89
|
+
readonly backgrounded?: boolean | undefined;
|
|
90
|
+
readonly radiused?: boolean | undefined;
|
|
91
|
+
readonly hoverTheme?: boolean | undefined;
|
|
92
|
+
readonly pressTheme?: boolean | undefined;
|
|
93
|
+
readonly focusTheme?: boolean | undefined;
|
|
94
|
+
readonly circular?: boolean | undefined;
|
|
95
|
+
readonly padded?: boolean | undefined;
|
|
96
|
+
readonly elevate?: boolean | undefined;
|
|
97
|
+
readonly bordered?: number | boolean | undefined;
|
|
98
|
+
readonly transparent?: boolean | undefined;
|
|
99
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
100
|
+
}>> & 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<{
|
|
101
|
+
readonly fullscreen?: boolean | undefined;
|
|
102
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
103
|
+
}, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
104
|
+
readonly backgrounded?: boolean | undefined;
|
|
105
|
+
readonly radiused?: boolean | undefined;
|
|
106
|
+
readonly hoverTheme?: boolean | undefined;
|
|
107
|
+
readonly pressTheme?: boolean | undefined;
|
|
108
|
+
readonly focusTheme?: boolean | undefined;
|
|
109
|
+
readonly circular?: boolean | undefined;
|
|
110
|
+
readonly padded?: boolean | undefined;
|
|
111
|
+
readonly elevate?: boolean | undefined;
|
|
112
|
+
readonly bordered?: number | boolean | undefined;
|
|
113
|
+
readonly transparent?: boolean | undefined;
|
|
114
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
115
|
+
}>>) | (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<{
|
|
116
|
+
readonly fullscreen?: boolean | undefined;
|
|
117
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
118
|
+
} & {
|
|
119
|
+
readonly backgrounded?: boolean | undefined;
|
|
120
|
+
readonly radiused?: boolean | undefined;
|
|
121
|
+
readonly hoverTheme?: boolean | undefined;
|
|
122
|
+
readonly pressTheme?: boolean | undefined;
|
|
123
|
+
readonly focusTheme?: boolean | undefined;
|
|
124
|
+
readonly circular?: boolean | undefined;
|
|
125
|
+
readonly padded?: boolean | undefined;
|
|
126
|
+
readonly elevate?: boolean | undefined;
|
|
127
|
+
readonly bordered?: number | boolean | undefined;
|
|
128
|
+
readonly transparent?: boolean | undefined;
|
|
129
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
130
|
+
}, string | number> & {
|
|
131
|
+
[x: string]: undefined;
|
|
132
|
+
} & 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<{
|
|
133
|
+
readonly fullscreen?: boolean | undefined;
|
|
134
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
135
|
+
} & {
|
|
136
|
+
readonly backgrounded?: boolean | undefined;
|
|
137
|
+
readonly radiused?: boolean | undefined;
|
|
138
|
+
readonly hoverTheme?: boolean | undefined;
|
|
139
|
+
readonly pressTheme?: boolean | undefined;
|
|
140
|
+
readonly focusTheme?: boolean | undefined;
|
|
141
|
+
readonly circular?: boolean | undefined;
|
|
142
|
+
readonly padded?: boolean | undefined;
|
|
143
|
+
readonly elevate?: boolean | undefined;
|
|
144
|
+
readonly bordered?: number | boolean | undefined;
|
|
145
|
+
readonly transparent?: boolean | undefined;
|
|
146
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
147
|
+
}, string | number> & {
|
|
148
|
+
[x: string]: undefined;
|
|
149
|
+
}>> & 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<{
|
|
150
|
+
readonly fullscreen?: boolean | undefined;
|
|
151
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
152
|
+
} & {
|
|
153
|
+
readonly backgrounded?: boolean | undefined;
|
|
154
|
+
readonly radiused?: boolean | undefined;
|
|
155
|
+
readonly hoverTheme?: boolean | undefined;
|
|
156
|
+
readonly pressTheme?: boolean | undefined;
|
|
157
|
+
readonly focusTheme?: boolean | undefined;
|
|
158
|
+
readonly circular?: boolean | undefined;
|
|
159
|
+
readonly padded?: boolean | undefined;
|
|
160
|
+
readonly elevate?: boolean | undefined;
|
|
161
|
+
readonly bordered?: number | boolean | undefined;
|
|
162
|
+
readonly transparent?: boolean | undefined;
|
|
163
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
164
|
+
}, string | number> & {
|
|
165
|
+
[x: string]: undefined;
|
|
166
|
+
}>>), 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, {
|
|
167
|
+
readonly fullscreen?: boolean | undefined;
|
|
168
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
169
|
+
} & {
|
|
170
|
+
readonly backgrounded?: boolean | undefined;
|
|
171
|
+
readonly radiused?: boolean | undefined;
|
|
172
|
+
readonly hoverTheme?: boolean | undefined;
|
|
173
|
+
readonly pressTheme?: boolean | undefined;
|
|
174
|
+
readonly focusTheme?: boolean | undefined;
|
|
175
|
+
readonly circular?: boolean | undefined;
|
|
176
|
+
readonly padded?: boolean | undefined;
|
|
177
|
+
readonly elevate?: boolean | undefined;
|
|
178
|
+
readonly bordered?: number | boolean | undefined;
|
|
179
|
+
readonly transparent?: boolean | undefined;
|
|
180
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
181
|
+
} & ({} | {
|
|
182
|
+
[x: string]: undefined;
|
|
183
|
+
})>;
|
|
184
|
+
type ToastCloseFrameProps = GetProps<typeof ToastCloseFrame>;
|
|
185
|
+
type ToastCloseProps = ToastCloseFrameProps & {};
|
|
186
|
+
declare const Toast: ((props: Omit<ToastProps & React.RefAttributes<TamaguiElement>, "theme" | "themeInverse"> & import("@tamagui/core").ThemeableProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null) & {
|
|
187
|
+
Title: React.ForwardRefExoticComponent<((Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
188
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
189
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
190
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
191
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
192
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
193
|
+
}>>) | Omit<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
194
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
195
|
+
}, string | number> & {
|
|
196
|
+
[x: string]: undefined;
|
|
197
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
198
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
199
|
+
}, string | number> & {
|
|
200
|
+
[x: string]: undefined;
|
|
201
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
202
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
203
|
+
}, string | number> & {
|
|
204
|
+
[x: string]: undefined;
|
|
205
|
+
}>>, "ref">) & React.RefAttributes<TamaguiElement>>;
|
|
206
|
+
Description: React.ForwardRefExoticComponent<((Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
207
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
208
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
209
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
210
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
211
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
212
|
+
}>>) | Omit<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
213
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
214
|
+
}, string | number> & {
|
|
215
|
+
[x: string]: undefined;
|
|
216
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
217
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
218
|
+
}, string | number> & {
|
|
219
|
+
[x: string]: undefined;
|
|
220
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
221
|
+
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
222
|
+
}, string | number> & {
|
|
223
|
+
[x: string]: undefined;
|
|
224
|
+
}>>, "ref">) & React.RefAttributes<TamaguiElement>>;
|
|
225
|
+
Action: 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<{
|
|
226
|
+
readonly fullscreen?: boolean | undefined;
|
|
227
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
228
|
+
}, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
229
|
+
readonly backgrounded?: boolean | undefined;
|
|
230
|
+
readonly radiused?: boolean | undefined;
|
|
231
|
+
readonly hoverTheme?: boolean | undefined;
|
|
232
|
+
readonly pressTheme?: boolean | undefined;
|
|
233
|
+
readonly focusTheme?: boolean | undefined;
|
|
234
|
+
readonly circular?: boolean | undefined;
|
|
235
|
+
readonly padded?: boolean | undefined;
|
|
236
|
+
readonly elevate?: boolean | undefined;
|
|
237
|
+
readonly bordered?: number | boolean | undefined;
|
|
238
|
+
readonly transparent?: boolean | undefined;
|
|
239
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
240
|
+
} & 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<{
|
|
241
|
+
readonly fullscreen?: boolean | undefined;
|
|
242
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
243
|
+
}, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
244
|
+
readonly backgrounded?: boolean | undefined;
|
|
245
|
+
readonly radiused?: boolean | undefined;
|
|
246
|
+
readonly hoverTheme?: boolean | undefined;
|
|
247
|
+
readonly pressTheme?: boolean | undefined;
|
|
248
|
+
readonly focusTheme?: boolean | undefined;
|
|
249
|
+
readonly circular?: boolean | undefined;
|
|
250
|
+
readonly padded?: boolean | undefined;
|
|
251
|
+
readonly elevate?: boolean | undefined;
|
|
252
|
+
readonly bordered?: number | boolean | undefined;
|
|
253
|
+
readonly transparent?: boolean | undefined;
|
|
254
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
255
|
+
}>> & 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<{
|
|
256
|
+
readonly fullscreen?: boolean | undefined;
|
|
257
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
258
|
+
}, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
259
|
+
readonly backgrounded?: boolean | undefined;
|
|
260
|
+
readonly radiused?: boolean | undefined;
|
|
261
|
+
readonly hoverTheme?: boolean | undefined;
|
|
262
|
+
readonly pressTheme?: boolean | undefined;
|
|
263
|
+
readonly focusTheme?: boolean | undefined;
|
|
264
|
+
readonly circular?: boolean | undefined;
|
|
265
|
+
readonly padded?: boolean | undefined;
|
|
266
|
+
readonly elevate?: boolean | undefined;
|
|
267
|
+
readonly bordered?: number | boolean | undefined;
|
|
268
|
+
readonly transparent?: boolean | undefined;
|
|
269
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
270
|
+
}>> & {
|
|
271
|
+
/**
|
|
272
|
+
* A short description for an alternate way to carry out the action. For screen reader users
|
|
273
|
+
* who will not be able to navigate to the button easily/quickly.
|
|
274
|
+
* @example <ToastAction altText="Goto account settings to updgrade">Upgrade</ToastAction>
|
|
275
|
+
* @example <ToastAction altText="Undo (Alt+U)">Undo</ToastAction>
|
|
276
|
+
*/
|
|
277
|
+
altText: string;
|
|
278
|
+
}) | 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<{
|
|
279
|
+
readonly fullscreen?: boolean | undefined;
|
|
280
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
281
|
+
} & {
|
|
282
|
+
readonly backgrounded?: boolean | undefined;
|
|
283
|
+
readonly radiused?: boolean | undefined;
|
|
284
|
+
readonly hoverTheme?: boolean | undefined;
|
|
285
|
+
readonly pressTheme?: boolean | undefined;
|
|
286
|
+
readonly focusTheme?: boolean | undefined;
|
|
287
|
+
readonly circular?: boolean | undefined;
|
|
288
|
+
readonly padded?: boolean | undefined;
|
|
289
|
+
readonly elevate?: boolean | undefined;
|
|
290
|
+
readonly bordered?: number | boolean | undefined;
|
|
291
|
+
readonly transparent?: boolean | undefined;
|
|
292
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
293
|
+
}, string | number> & {
|
|
294
|
+
[x: string]: undefined;
|
|
295
|
+
} & 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<{
|
|
296
|
+
readonly fullscreen?: boolean | undefined;
|
|
297
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
298
|
+
} & {
|
|
299
|
+
readonly backgrounded?: boolean | undefined;
|
|
300
|
+
readonly radiused?: boolean | undefined;
|
|
301
|
+
readonly hoverTheme?: boolean | undefined;
|
|
302
|
+
readonly pressTheme?: boolean | undefined;
|
|
303
|
+
readonly focusTheme?: boolean | undefined;
|
|
304
|
+
readonly circular?: boolean | undefined;
|
|
305
|
+
readonly padded?: boolean | undefined;
|
|
306
|
+
readonly elevate?: boolean | undefined;
|
|
307
|
+
readonly bordered?: number | boolean | undefined;
|
|
308
|
+
readonly transparent?: boolean | undefined;
|
|
309
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
310
|
+
}, string | number> & {
|
|
311
|
+
[x: string]: undefined;
|
|
312
|
+
}>> & 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<{
|
|
313
|
+
readonly fullscreen?: boolean | undefined;
|
|
314
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
315
|
+
} & {
|
|
316
|
+
readonly backgrounded?: boolean | undefined;
|
|
317
|
+
readonly radiused?: boolean | undefined;
|
|
318
|
+
readonly hoverTheme?: boolean | undefined;
|
|
319
|
+
readonly pressTheme?: boolean | undefined;
|
|
320
|
+
readonly focusTheme?: boolean | undefined;
|
|
321
|
+
readonly circular?: boolean | undefined;
|
|
322
|
+
readonly padded?: boolean | undefined;
|
|
323
|
+
readonly elevate?: boolean | undefined;
|
|
324
|
+
readonly bordered?: number | boolean | undefined;
|
|
325
|
+
readonly transparent?: boolean | undefined;
|
|
326
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
327
|
+
}, string | number> & {
|
|
328
|
+
[x: string]: undefined;
|
|
329
|
+
}>> & {
|
|
330
|
+
/**
|
|
331
|
+
* A short description for an alternate way to carry out the action. For screen reader users
|
|
332
|
+
* who will not be able to navigate to the button easily/quickly.
|
|
333
|
+
* @example <ToastAction altText="Goto account settings to updgrade">Upgrade</ToastAction>
|
|
334
|
+
* @example <ToastAction altText="Undo (Alt+U)">Undo</ToastAction>
|
|
335
|
+
*/
|
|
336
|
+
altText: string;
|
|
337
|
+
}, "ref">) & React.RefAttributes<TamaguiElement>>;
|
|
338
|
+
Close: 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<{
|
|
339
|
+
readonly fullscreen?: boolean | undefined;
|
|
340
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
341
|
+
}, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
342
|
+
readonly backgrounded?: boolean | undefined;
|
|
343
|
+
readonly radiused?: boolean | undefined;
|
|
344
|
+
readonly hoverTheme?: boolean | undefined;
|
|
345
|
+
readonly pressTheme?: boolean | undefined;
|
|
346
|
+
readonly focusTheme?: boolean | undefined;
|
|
347
|
+
readonly circular?: boolean | undefined;
|
|
348
|
+
readonly padded?: boolean | undefined;
|
|
349
|
+
readonly elevate?: boolean | undefined;
|
|
350
|
+
readonly bordered?: number | boolean | undefined;
|
|
351
|
+
readonly transparent?: boolean | undefined;
|
|
352
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
353
|
+
} & 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<{
|
|
354
|
+
readonly fullscreen?: boolean | undefined;
|
|
355
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
356
|
+
}, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
357
|
+
readonly backgrounded?: boolean | undefined;
|
|
358
|
+
readonly radiused?: boolean | undefined;
|
|
359
|
+
readonly hoverTheme?: boolean | undefined;
|
|
360
|
+
readonly pressTheme?: boolean | undefined;
|
|
361
|
+
readonly focusTheme?: boolean | undefined;
|
|
362
|
+
readonly circular?: boolean | undefined;
|
|
363
|
+
readonly padded?: boolean | undefined;
|
|
364
|
+
readonly elevate?: boolean | undefined;
|
|
365
|
+
readonly bordered?: number | boolean | undefined;
|
|
366
|
+
readonly transparent?: boolean | undefined;
|
|
367
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
368
|
+
}>> & 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<{
|
|
369
|
+
readonly fullscreen?: boolean | undefined;
|
|
370
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
371
|
+
}, "transparent" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "circular" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
372
|
+
readonly backgrounded?: boolean | undefined;
|
|
373
|
+
readonly radiused?: boolean | undefined;
|
|
374
|
+
readonly hoverTheme?: boolean | undefined;
|
|
375
|
+
readonly pressTheme?: boolean | undefined;
|
|
376
|
+
readonly focusTheme?: boolean | undefined;
|
|
377
|
+
readonly circular?: boolean | undefined;
|
|
378
|
+
readonly padded?: boolean | undefined;
|
|
379
|
+
readonly elevate?: boolean | undefined;
|
|
380
|
+
readonly bordered?: number | boolean | undefined;
|
|
381
|
+
readonly transparent?: boolean | undefined;
|
|
382
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
383
|
+
}>>) | 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<{
|
|
384
|
+
readonly fullscreen?: boolean | undefined;
|
|
385
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
386
|
+
} & {
|
|
387
|
+
readonly backgrounded?: boolean | undefined;
|
|
388
|
+
readonly radiused?: boolean | undefined;
|
|
389
|
+
readonly hoverTheme?: boolean | undefined;
|
|
390
|
+
readonly pressTheme?: boolean | undefined;
|
|
391
|
+
readonly focusTheme?: boolean | undefined;
|
|
392
|
+
readonly circular?: boolean | undefined;
|
|
393
|
+
readonly padded?: boolean | undefined;
|
|
394
|
+
readonly elevate?: boolean | undefined;
|
|
395
|
+
readonly bordered?: number | boolean | undefined;
|
|
396
|
+
readonly transparent?: boolean | undefined;
|
|
397
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
398
|
+
}, string | number> & {
|
|
399
|
+
[x: string]: undefined;
|
|
400
|
+
} & 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<{
|
|
401
|
+
readonly fullscreen?: boolean | undefined;
|
|
402
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
403
|
+
} & {
|
|
404
|
+
readonly backgrounded?: boolean | undefined;
|
|
405
|
+
readonly radiused?: boolean | undefined;
|
|
406
|
+
readonly hoverTheme?: boolean | undefined;
|
|
407
|
+
readonly pressTheme?: boolean | undefined;
|
|
408
|
+
readonly focusTheme?: boolean | undefined;
|
|
409
|
+
readonly circular?: boolean | undefined;
|
|
410
|
+
readonly padded?: boolean | undefined;
|
|
411
|
+
readonly elevate?: boolean | undefined;
|
|
412
|
+
readonly bordered?: number | boolean | undefined;
|
|
413
|
+
readonly transparent?: boolean | undefined;
|
|
414
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
415
|
+
}, string | number> & {
|
|
416
|
+
[x: string]: undefined;
|
|
417
|
+
}>> & 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<{
|
|
418
|
+
readonly fullscreen?: boolean | undefined;
|
|
419
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
420
|
+
} & {
|
|
421
|
+
readonly backgrounded?: boolean | undefined;
|
|
422
|
+
readonly radiused?: boolean | undefined;
|
|
423
|
+
readonly hoverTheme?: boolean | undefined;
|
|
424
|
+
readonly pressTheme?: boolean | undefined;
|
|
425
|
+
readonly focusTheme?: boolean | undefined;
|
|
426
|
+
readonly circular?: boolean | undefined;
|
|
427
|
+
readonly padded?: boolean | undefined;
|
|
428
|
+
readonly elevate?: boolean | undefined;
|
|
429
|
+
readonly bordered?: number | boolean | undefined;
|
|
430
|
+
readonly transparent?: boolean | undefined;
|
|
431
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
432
|
+
}, string | number> & {
|
|
433
|
+
[x: string]: undefined;
|
|
434
|
+
}>>, "ref">) & React.RefAttributes<TamaguiElement>>;
|
|
435
|
+
};
|
|
436
|
+
export { Toast, ToastProvider, ToastViewport, createToast, createToastScope, };
|
|
437
|
+
export type { ToastActionProps, ToastCloseProps, ToastDescriptionProps, ToastProps, ToastProviderProps, ToastTitleProps, ToastViewportProps, };
|
|
115
438
|
//# sourceMappingURL=Toast.d.ts.map
|
package/types/Toast.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../src/Toast.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../src/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,cAAc,EAOf,MAAM,eAAe,CAAA;AAItB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,EAGL,UAAU,EAEX,MAAM,aAAa,CAAA;AACpB,OAAO,EAEL,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAQnE,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;GAanB,CAAA;AACF,KAAK,iBAAiB,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAA;AACzD,KAAK,eAAe,GAAG,iBAAiB,GAAG,EAAE,CAAA;AAiB7C,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;GAazB,CAAA;AACF,KAAK,0BAA0B,GAAG,QAAQ,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACxE,KAAK,qBAAqB,GAAG,0BAA0B,GAAG,EAAE,CAAA;AAiB5D,KAAK,gBAAgB,GAAG,eAAe,GAAG;IACxC;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AA+BD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGnB,CAAA;AACF,KAAK,oBAAoB,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAA;AAC5D,KAAK,eAAe,GAAG,oBAAoB,GAAG,EAAE,CAAA;AA4DhD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAvGT;;;;;WAKG;iBACM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QANf;;;;;WAKG;iBACM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGhB,CAAA;AAID,OAAO,EACL,KAAK,EACL,aAAa,EACb,aAAa,EAEb,WAAW,EAEX,gBAAgB,GACjB,CAAA;AACD,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,kBAAkB,GACnB,CAAA"}
|