siam-ui-utils 3.0.13 → 3.0.15
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/index.d.ts +36 -0
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -21,6 +21,42 @@ declare module 'siam-ui-utils' {
|
|
|
21
21
|
|
|
22
22
|
// Módulos permitidos con exports específicos
|
|
23
23
|
|
|
24
|
+
declare module 'siam-ui-utils/react-notifications/Notification' {
|
|
25
|
+
export interface NotificationProps {
|
|
26
|
+
title?: string;
|
|
27
|
+
message?: string;
|
|
28
|
+
type?: 'default' | 'success' | 'error' | 'info' | 'warning';
|
|
29
|
+
duration?: number;
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}
|
|
32
|
+
export function Notification(props: NotificationProps): JSX.Element;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare module 'siam-ui-utils/react-notifications/NotificationContainer' {
|
|
36
|
+
export interface NotificationContainerProps {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
export function NotificationContainer(
|
|
40
|
+
props: NotificationContainerProps
|
|
41
|
+
): JSX.Element;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare module 'siam-ui-utils/react-notifications/NotificationManager' {
|
|
45
|
+
export class NotificationManager {
|
|
46
|
+
static info(message: string, title?: string, duration?: number): void;
|
|
47
|
+
static success(message: string, title?: string, duration?: number): void;
|
|
48
|
+
static warning(message: string, title?: string, duration?: number): void;
|
|
49
|
+
static error(message: string, title?: string, duration?: number): void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare module 'siam-ui-utils/react-notifications/Notifications' {
|
|
53
|
+
export interface NotificationsProps {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}
|
|
56
|
+
export function Notifications(props: NotificationsProps): JSX.Element;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
24
60
|
declare module 'siam-ui-utils/copy-link' {
|
|
25
61
|
export interface CopyLinkProps {
|
|
26
62
|
textToCopy?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "siam-ui-utils",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.15",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"ampf-react",
|
|
6
6
|
"ampf-utils",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"import": "./dist/dropzone-uploader/index.js",
|
|
41
41
|
"types": "./index.d.ts"
|
|
42
42
|
},
|
|
43
|
-
"./select": {
|
|
43
|
+
"./select/*": {
|
|
44
44
|
"import": "./dist/select/index.js",
|
|
45
45
|
"types": "./index.d.ts"
|
|
46
46
|
},
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"import": "./dist/where-by-room/index.js",
|
|
61
61
|
"types": "./index.d.ts"
|
|
62
62
|
},
|
|
63
|
-
"./react-notifications": {
|
|
63
|
+
"./react-notifications/*": {
|
|
64
64
|
"import": "./dist/react-notifications/index.js",
|
|
65
65
|
"types": "./index.d.ts"
|
|
66
66
|
},
|