@impulse-ui-native/toast 10.0.0 → 11.0.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/components/index.d.mts +3 -16
- package/dist/index.d.mts +17 -3
- package/package.json +10 -10
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import 'react';
|
|
2
|
+
export { Toast } from '../index.mjs';
|
|
3
|
+
import '../types/toast.types.mjs';
|
|
3
4
|
import '@impulse-ui-native/overlay';
|
|
4
5
|
import '@impulse-ui-native/primitives';
|
|
5
6
|
import '@impulse-ui-native/theme';
|
|
6
|
-
|
|
7
|
-
declare const Toast: react.NamedExoticComponent<ToastProps> & {
|
|
8
|
-
readonly type: ({ children, title, description, action, actionProps, tone, hideIcon, hideClose, ...props }: ToastProps) => react.JSX.Element;
|
|
9
|
-
} & {
|
|
10
|
-
Root: react.MemoExoticComponent<(props: ToastRootProps) => react.JSX.Element | null>;
|
|
11
|
-
Content: react.MemoExoticComponent<({ style, ...props }: ToastContentProps) => react.JSX.Element>;
|
|
12
|
-
Title: react.MemoExoticComponent<(props: ToastTitleProps) => react.JSX.Element>;
|
|
13
|
-
Description: react.MemoExoticComponent<(props: ToastDescriptionProps) => react.JSX.Element>;
|
|
14
|
-
Icon: react.MemoExoticComponent<({ children, style, ...props }: ToastIconProps) => react.JSX.Element>;
|
|
15
|
-
Action: react.MemoExoticComponent<({ children, closeOnPress, onPress, disabled, loading, style, ...props }: ToastActionProps) => react.JSX.Element>;
|
|
16
|
-
Close: react.MemoExoticComponent<({ children, ...props }: ToastCloseProps) => react.JSX.Element>;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { Toast };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
import 'react';
|
|
1
|
+
import { ToastProps, ToastRootProps, ToastContentProps, ToastTitleProps, ToastDescriptionProps, ToastIconProps, ToastActionProps, ToastCloseProps } from './types/toast.types.mjs';
|
|
2
|
+
export { ToastContextValue, ToastPlacement } from './types/toast.types.mjs';
|
|
3
|
+
import * as react from 'react';
|
|
4
4
|
import '@impulse-ui-native/overlay';
|
|
5
5
|
import '@impulse-ui-native/primitives';
|
|
6
6
|
import '@impulse-ui-native/theme';
|
|
7
|
+
|
|
8
|
+
declare const Toast: react.NamedExoticComponent<ToastProps> & {
|
|
9
|
+
readonly type: ({ children, title, description, action, actionProps, tone, hideIcon, hideClose, ...props }: ToastProps) => react.JSX.Element;
|
|
10
|
+
} & {
|
|
11
|
+
Root: react.MemoExoticComponent<(props: ToastRootProps) => react.JSX.Element | null>;
|
|
12
|
+
Content: react.MemoExoticComponent<({ style, ...props }: ToastContentProps) => react.JSX.Element>;
|
|
13
|
+
Title: react.MemoExoticComponent<(props: ToastTitleProps) => react.JSX.Element>;
|
|
14
|
+
Description: react.MemoExoticComponent<(props: ToastDescriptionProps) => react.JSX.Element>;
|
|
15
|
+
Icon: react.MemoExoticComponent<({ children, style, ...props }: ToastIconProps) => react.JSX.Element>;
|
|
16
|
+
Action: react.MemoExoticComponent<({ children, closeOnPress, onPress, disabled, loading, style, ...props }: ToastActionProps) => react.JSX.Element>;
|
|
17
|
+
Close: react.MemoExoticComponent<({ children, ...props }: ToastCloseProps) => react.JSX.Element>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { Toast, ToastActionProps, ToastCloseProps, ToastContentProps, ToastDescriptionProps, ToastIconProps, ToastProps, ToastRootProps, ToastTitleProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulse-ui-native/toast",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Compound toast notifications for ImpulseUI Native.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -27,13 +27,16 @@
|
|
|
27
27
|
],
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@impulse-ui-native/
|
|
31
|
-
"@impulse-ui-native/
|
|
32
|
-
"@impulse-ui-native/primitives": "
|
|
33
|
-
"@impulse-ui-native/
|
|
34
|
-
"@impulse-ui-native/
|
|
30
|
+
"@impulse-ui-native/theme": "11.0.0",
|
|
31
|
+
"@impulse-ui-native/overlay": "11.0.0",
|
|
32
|
+
"@impulse-ui-native/primitives": "11.0.0",
|
|
33
|
+
"@impulse-ui-native/core": "11.0.0",
|
|
34
|
+
"@impulse-ui-native/icon": "11.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
+
"@impulse-ui-native/eslint-config": "1.0.0",
|
|
38
|
+
"@impulse-ui-native/prettier-config": "1.0.0",
|
|
39
|
+
"@impulse-ui-native/tsconfig": "1.0.0",
|
|
37
40
|
"@types/react": "~19.3.0",
|
|
38
41
|
"eslint": "^9.38.0",
|
|
39
42
|
"prettier": "^3.6.2",
|
|
@@ -43,10 +46,7 @@
|
|
|
43
46
|
"react-native-worklets": "0.13.0",
|
|
44
47
|
"react-native-safe-area-context": "~5.10.1",
|
|
45
48
|
"typescript": "~6.0.3",
|
|
46
|
-
"react-native-svg": "15.16.0"
|
|
47
|
-
"@impulse-ui-native/eslint-config": "1.0.0",
|
|
48
|
-
"@impulse-ui-native/prettier-config": "1.0.0",
|
|
49
|
-
"@impulse-ui-native/tsconfig": "1.0.0"
|
|
49
|
+
"react-native-svg": "15.16.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=18",
|