@tamagui/toast 1.0.1-rc.1.2 → 1.0.1-rc.1.4
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/package.json +13 -13
- package/types/Toast.d.ts +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/toast",
|
|
3
|
-
"version": "1.0.1-rc.1.
|
|
3
|
+
"version": "1.0.1-rc.1.4",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"clean:build": "tamagui-build clean:build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tamagui/animate-presence": "^1.0.1-rc.1.
|
|
27
|
-
"@tamagui/compose-refs": "^1.0.1-rc.1.
|
|
28
|
-
"@tamagui/core": "^1.0.1-rc.1.
|
|
29
|
-
"@tamagui/create-context": "^1.0.1-rc.1.
|
|
30
|
-
"@tamagui/dismissable": "^1.0.1-rc.1.
|
|
31
|
-
"@tamagui/polyfill-dev": "^1.0.1-rc.1.
|
|
32
|
-
"@tamagui/portal": "^1.0.1-rc.1.
|
|
33
|
-
"@tamagui/stacks": "^1.0.1-rc.1.
|
|
34
|
-
"@tamagui/text": "^1.0.1-rc.1.
|
|
35
|
-
"@tamagui/use-controllable-state": "^1.0.1-rc.1.
|
|
36
|
-
"@tamagui/visually-hidden": "^1.0.1-rc.1.
|
|
26
|
+
"@tamagui/animate-presence": "^1.0.1-rc.1.4",
|
|
27
|
+
"@tamagui/compose-refs": "^1.0.1-rc.1.4",
|
|
28
|
+
"@tamagui/core": "^1.0.1-rc.1.4",
|
|
29
|
+
"@tamagui/create-context": "^1.0.1-rc.1.4",
|
|
30
|
+
"@tamagui/dismissable": "^1.0.1-rc.1.4",
|
|
31
|
+
"@tamagui/polyfill-dev": "^1.0.1-rc.1.4",
|
|
32
|
+
"@tamagui/portal": "^1.0.1-rc.1.4",
|
|
33
|
+
"@tamagui/stacks": "^1.0.1-rc.1.4",
|
|
34
|
+
"@tamagui/text": "^1.0.1-rc.1.4",
|
|
35
|
+
"@tamagui/use-controllable-state": "^1.0.1-rc.1.4",
|
|
36
|
+
"@tamagui/visually-hidden": "^1.0.1-rc.1.4"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": ">=18",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react-native": "*"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@tamagui/build": "^1.0.1-rc.1.
|
|
44
|
+
"@tamagui/build": "^1.0.1-rc.1.4",
|
|
45
45
|
"@types/react-dom": "^18.0.3",
|
|
46
46
|
"@types/react-native": "^0.69.2",
|
|
47
47
|
"react": ">=18",
|
package/types/Toast.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TamaguiElement } from '@tamagui/core';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
3
|
+
type SwipeDirection = 'up' | 'down' | 'left' | 'right';
|
|
4
4
|
interface ToastProviderProps {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
/**
|
|
@@ -26,7 +26,7 @@ interface ToastProviderProps {
|
|
|
26
26
|
swipeThreshold?: number;
|
|
27
27
|
}
|
|
28
28
|
declare const ToastProvider: React.FC<ToastProviderProps>;
|
|
29
|
-
|
|
29
|
+
type PrimitiveOrderedListProps = any;
|
|
30
30
|
interface ToastViewportProps extends PrimitiveOrderedListProps {
|
|
31
31
|
/**
|
|
32
32
|
* The keys to use as the keyboard shortcut that will move focus to the toast viewport.
|
|
@@ -41,7 +41,7 @@ interface ToastViewportProps extends PrimitiveOrderedListProps {
|
|
|
41
41
|
label?: string;
|
|
42
42
|
}
|
|
43
43
|
declare const ToastViewport: React.ForwardRefExoticComponent<Pick<ToastViewportProps, keyof ToastViewportProps> & React.RefAttributes<TamaguiElement>>;
|
|
44
|
-
|
|
44
|
+
type ToastElement = ToastImplElement;
|
|
45
45
|
interface ToastProps extends Omit<ToastImplProps, keyof ToastImplPrivateProps> {
|
|
46
46
|
open?: boolean;
|
|
47
47
|
defaultOpen?: boolean;
|
|
@@ -53,7 +53,7 @@ interface ToastProps extends Omit<ToastImplProps, keyof ToastImplPrivateProps> {
|
|
|
53
53
|
forceMount?: true;
|
|
54
54
|
}
|
|
55
55
|
declare const Toast: React.ForwardRefExoticComponent<Pick<ToastProps, keyof ToastProps> & React.RefAttributes<TamaguiElement>>;
|
|
56
|
-
|
|
56
|
+
type SwipeEvent = {
|
|
57
57
|
currentTarget: EventTarget & ToastElement;
|
|
58
58
|
} & Omit<CustomEvent<{
|
|
59
59
|
originalEvent: React.PointerEvent;
|
|
@@ -62,13 +62,13 @@ declare type SwipeEvent = {
|
|
|
62
62
|
y: number;
|
|
63
63
|
};
|
|
64
64
|
}>, 'currentTarget'>;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
type ToastImplElement = TamaguiElement;
|
|
66
|
+
type DismissableLayerProps = any;
|
|
67
|
+
type ToastImplPrivateProps = {
|
|
68
68
|
open: boolean;
|
|
69
69
|
onClose(): void;
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
type PrimitiveListItemProps = any;
|
|
72
72
|
interface ToastImplProps extends ToastImplPrivateProps, PrimitiveListItemProps {
|
|
73
73
|
type?: 'foreground' | 'background';
|
|
74
74
|
/**
|
|
@@ -82,7 +82,7 @@ interface ToastImplProps extends ToastImplPrivateProps, PrimitiveListItemProps {
|
|
|
82
82
|
onSwipeCancel?(event: SwipeEvent): void;
|
|
83
83
|
onSwipeEnd?(event: SwipeEvent): void;
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
type PrimitiveDivProps = any;
|
|
86
86
|
interface ToastTitleProps extends PrimitiveDivProps {
|
|
87
87
|
}
|
|
88
88
|
declare const ToastTitle: React.ForwardRefExoticComponent<Pick<ToastTitleProps, string | number> & React.RefAttributes<TamaguiElement>>;
|
|
@@ -99,7 +99,7 @@ interface ToastActionProps extends ToastCloseProps {
|
|
|
99
99
|
altText: string;
|
|
100
100
|
}
|
|
101
101
|
declare const ToastAction: React.ForwardRefExoticComponent<Pick<ToastActionProps, keyof ToastActionProps> & React.RefAttributes<TamaguiElement>>;
|
|
102
|
-
|
|
102
|
+
type PrimitiveButtonProps = any;
|
|
103
103
|
interface ToastCloseProps extends PrimitiveButtonProps {
|
|
104
104
|
}
|
|
105
105
|
declare const ToastClose: React.ForwardRefExoticComponent<Pick<ToastCloseProps, string | number> & React.RefAttributes<TamaguiElement>>;
|