@solfacil/girassol 0.3.6 → 0.5.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.d.ts +2 -0
- package/dist/components.json +1 -1
- package/dist/girassol.es.js +2592 -1949
- package/dist/girassol.umd.js +7 -7
- package/dist/list-slots-disclaimer.png +0 -0
- package/dist/style.css +1 -1
- package/dist/theme/solfacil/effects.d.ts +1 -0
- package/dist/theme/solfacil/screens.d.ts +4 -1
- package/dist/types/components/forms/checkbox/checkbox/Checkbox.vue.d.ts +2 -0
- package/dist/types/components/forms/checkbox/type.d.ts +1 -0
- package/dist/types/components/forms/inputs/input-core/Input.vue.d.ts +1 -1
- package/dist/types/components/forms/inputs/input-text/InputText.vue.d.ts +3 -3
- package/dist/types/components/forms/inputs/input-textarea/InputTextarea.vue.d.ts +3 -3
- package/dist/types/components/forms/inputs/types.d.ts +1 -1
- package/dist/types/components/forms/radio/radio/Radio.vue.d.ts +2 -0
- package/dist/types/components/forms/radio/types.d.ts +1 -0
- package/dist/types/components/forms/select/types.d.ts +1 -1
- package/dist/types/components/informations/alert/Alert.vue.d.ts +126 -0
- package/dist/types/components/informations/alert/alert.spec.d.ts +1 -0
- package/dist/types/components/informations/alert/index.d.ts +2 -0
- package/dist/types/components/informations/tag/Tag.vue.d.ts +93 -15
- package/dist/types/components/informations/text-value/TextValue.vue.d.ts +105 -0
- package/dist/types/components/list/List.vue.d.ts +204 -0
- package/dist/types/components/list/ListItem.vue.d.ts +151 -0
- package/dist/types/components/list/index.d.ts +2 -0
- package/dist/types/components/list/list.spec.d.ts +1 -0
- package/dist/types/components/list/types.d.ts +51 -0
- package/dist/types/components/loader/CircleLoader.vue.d.ts +3 -3
- package/dist/types/components/menus/menu/Menu.vue.d.ts +11 -0
- package/dist/types/components/menus/menu-item/menu-item/MenuItem.vue.d.ts +77 -0
- package/dist/types/components/menus/menu-item/menu-item/index.d.ts +2 -0
- package/dist/types/composables/use-navigate/index.d.ts +7 -0
- package/dist/types/composables/use-toast/Toast.vue.d.ts +29 -25
- package/dist/types/composables/use-toast/index.d.ts +11 -6
- package/dist/types/composables/use-toast/types.d.ts +31 -4
- package/dist/types/index.d.ts +613 -39
- package/package.json +1 -1
- package/public/list-slots-disclaimer.png +0 -0
- package/theme/solfacil/effects.ts +2 -0
- package/theme/solfacil/screens.ts +5 -4
- package/theme/solfacil/utilities.ts +9 -13
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
size: '
|
|
2
|
+
size: 'small' | 'medium' | 'large';
|
|
3
3
|
dark?: boolean | undefined;
|
|
4
4
|
title?: string | undefined;
|
|
5
5
|
}>, {
|
|
6
6
|
size: string;
|
|
7
7
|
title: string;
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
size: '
|
|
9
|
+
size: 'small' | 'medium' | 'large';
|
|
10
10
|
dark?: boolean | undefined;
|
|
11
11
|
title?: string | undefined;
|
|
12
12
|
}>, {
|
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
14
|
title: string;
|
|
15
15
|
}>>>, {
|
|
16
16
|
title: string;
|
|
17
|
-
size: '
|
|
17
|
+
size: 'small' | 'medium' | 'large';
|
|
18
18
|
}>;
|
|
19
19
|
export default _default;
|
|
20
20
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -79,6 +79,17 @@ declare const _default: {
|
|
|
79
79
|
position: ("bottom" | "top") | ("left" | "right");
|
|
80
80
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
81
81
|
$slots: {
|
|
82
|
+
trigger: (_: {
|
|
83
|
+
id: string;
|
|
84
|
+
toggle: () => void;
|
|
85
|
+
isOpen: boolean;
|
|
86
|
+
arias: {
|
|
87
|
+
role: string;
|
|
88
|
+
class: string;
|
|
89
|
+
ariaHaspopup: boolean;
|
|
90
|
+
ariaExpanded: boolean;
|
|
91
|
+
};
|
|
92
|
+
}) => any;
|
|
82
93
|
label: (_: {
|
|
83
94
|
isOpen: boolean;
|
|
84
95
|
}) => any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
id: string;
|
|
7
|
+
}>>> & {
|
|
8
|
+
onClicked?: (() => any) | undefined;
|
|
9
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
10
|
+
$attrs: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
$refs: {
|
|
14
|
+
[x: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
$slots: Readonly<{
|
|
17
|
+
[name: string]: import("vue").Slot | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
20
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
21
|
+
$emit: (event: "clicked") => void;
|
|
22
|
+
$el: any;
|
|
23
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
24
|
+
id: string;
|
|
25
|
+
}>>> & {
|
|
26
|
+
onClicked?: (() => any) | undefined;
|
|
27
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
clicked: () => void;
|
|
29
|
+
}, string, {}> & {
|
|
30
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
43
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
44
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
45
|
+
};
|
|
46
|
+
$forceUpdate: () => void;
|
|
47
|
+
$nextTick: typeof import("vue").nextTick;
|
|
48
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
49
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
50
|
+
id: string;
|
|
51
|
+
}>>> & {
|
|
52
|
+
onClicked?: (() => any) | undefined;
|
|
53
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
54
|
+
__isFragment?: undefined;
|
|
55
|
+
__isTeleport?: undefined;
|
|
56
|
+
__isSuspense?: undefined;
|
|
57
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
58
|
+
id: string;
|
|
59
|
+
}>>> & {
|
|
60
|
+
onClicked?: (() => any) | undefined;
|
|
61
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
|
+
clicked: () => void;
|
|
63
|
+
}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
64
|
+
$slots: {
|
|
65
|
+
default: (_: {}) => any;
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
export default _default;
|
|
69
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
70
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
71
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
72
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
73
|
+
} : {
|
|
74
|
+
type: import('vue').PropType<T[K]>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { Args, Codes, UseNavigateArgs } from './types';
|
|
2
|
+
interface NavigateInsideRow {
|
|
3
|
+
to: 'RIGHT' | 'LEFT';
|
|
4
|
+
query: string | string[];
|
|
5
|
+
}
|
|
2
6
|
export declare function useNavigate(codes: Codes, args?: UseNavigateArgs): {
|
|
3
7
|
navigate: ({ code }: KeyboardEvent) => void;
|
|
4
8
|
};
|
|
@@ -6,6 +10,7 @@ export declare function useNavigateProvider({ target, query }: Args): {
|
|
|
6
10
|
elementFocus: {
|
|
7
11
|
id: string;
|
|
8
12
|
index: number;
|
|
13
|
+
rowIndex: number;
|
|
9
14
|
};
|
|
10
15
|
isItemFocused: (arg: {
|
|
11
16
|
index?: number;
|
|
@@ -17,4 +22,6 @@ export declare function useNavigateProvider({ target, query }: Args): {
|
|
|
17
22
|
focusOnNextItem: (dataLength: number) => void;
|
|
18
23
|
focusOnFirstItem: () => void;
|
|
19
24
|
focusOnLastItem: (dataLength: number) => void;
|
|
25
|
+
focusInsideRow: ({ query, to }: NavigateInsideRow) => void;
|
|
20
26
|
};
|
|
27
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Position,
|
|
1
|
+
import type { Position, ToastContent, ToastOptions } from './types';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
$: import("vue").ComponentInternalInstance;
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: Partial<{
|
|
7
|
-
type:
|
|
7
|
+
type: ToastOptions['type'];
|
|
8
8
|
position: Position;
|
|
9
9
|
offset: number;
|
|
10
10
|
visible: boolean;
|
|
@@ -12,19 +12,20 @@ declare const _default: {
|
|
|
12
12
|
showIcon: boolean;
|
|
13
13
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
14
|
id: string | number;
|
|
15
|
-
type:
|
|
15
|
+
type: ToastOptions['type'];
|
|
16
16
|
visible?: boolean | undefined;
|
|
17
|
-
title
|
|
18
|
-
description
|
|
17
|
+
title?: ToastContent['title'];
|
|
18
|
+
description: ToastContent['description'];
|
|
19
|
+
actionText?: ToastContent['actionText'];
|
|
19
20
|
timeout: number;
|
|
20
21
|
hideProgressBar?: boolean | undefined;
|
|
21
22
|
showIcon?: boolean | undefined;
|
|
22
23
|
offset: number;
|
|
23
|
-
|
|
24
|
+
onAction?: (() => void) | undefined;
|
|
24
25
|
onCloseHandler?: (() => void) | undefined;
|
|
25
26
|
position?: Position | undefined;
|
|
26
27
|
}>, {
|
|
27
|
-
type: ToastType | undefined;
|
|
28
|
+
type: import("./types").ToastType | undefined;
|
|
28
29
|
delay: number | undefined;
|
|
29
30
|
showIcon: boolean | undefined;
|
|
30
31
|
position: Position | undefined;
|
|
@@ -47,19 +48,20 @@ declare const _default: {
|
|
|
47
48
|
$el: any;
|
|
48
49
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
49
50
|
id: string | number;
|
|
50
|
-
type:
|
|
51
|
+
type: ToastOptions['type'];
|
|
51
52
|
visible?: boolean | undefined;
|
|
52
|
-
title
|
|
53
|
-
description
|
|
53
|
+
title?: ToastContent['title'];
|
|
54
|
+
description: ToastContent['description'];
|
|
55
|
+
actionText?: ToastContent['actionText'];
|
|
54
56
|
timeout: number;
|
|
55
57
|
hideProgressBar?: boolean | undefined;
|
|
56
58
|
showIcon?: boolean | undefined;
|
|
57
59
|
offset: number;
|
|
58
|
-
|
|
60
|
+
onAction?: (() => void) | undefined;
|
|
59
61
|
onCloseHandler?: (() => void) | undefined;
|
|
60
62
|
position?: Position | undefined;
|
|
61
63
|
}>, {
|
|
62
|
-
type: ToastType | undefined;
|
|
64
|
+
type: import("./types").ToastType | undefined;
|
|
63
65
|
delay: number | undefined;
|
|
64
66
|
showIcon: boolean | undefined;
|
|
65
67
|
position: Position | undefined;
|
|
@@ -67,7 +69,7 @@ declare const _default: {
|
|
|
67
69
|
offset: number;
|
|
68
70
|
visible: boolean;
|
|
69
71
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
70
|
-
type:
|
|
72
|
+
type: ToastOptions['type'];
|
|
71
73
|
position: Position;
|
|
72
74
|
offset: number;
|
|
73
75
|
visible: boolean;
|
|
@@ -95,19 +97,20 @@ declare const _default: {
|
|
|
95
97
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
96
98
|
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
97
99
|
id: string | number;
|
|
98
|
-
type:
|
|
100
|
+
type: ToastOptions['type'];
|
|
99
101
|
visible?: boolean | undefined;
|
|
100
|
-
title
|
|
101
|
-
description
|
|
102
|
+
title?: ToastContent['title'];
|
|
103
|
+
description: ToastContent['description'];
|
|
104
|
+
actionText?: ToastContent['actionText'];
|
|
102
105
|
timeout: number;
|
|
103
106
|
hideProgressBar?: boolean | undefined;
|
|
104
107
|
showIcon?: boolean | undefined;
|
|
105
108
|
offset: number;
|
|
106
|
-
|
|
109
|
+
onAction?: (() => void) | undefined;
|
|
107
110
|
onCloseHandler?: (() => void) | undefined;
|
|
108
111
|
position?: Position | undefined;
|
|
109
112
|
}>, {
|
|
110
|
-
type: ToastType | undefined;
|
|
113
|
+
type: import("./types").ToastType | undefined;
|
|
111
114
|
delay: number | undefined;
|
|
112
115
|
showIcon: boolean | undefined;
|
|
113
116
|
position: Position | undefined;
|
|
@@ -120,19 +123,20 @@ declare const _default: {
|
|
|
120
123
|
__isSuspense?: undefined;
|
|
121
124
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
122
125
|
id: string | number;
|
|
123
|
-
type:
|
|
126
|
+
type: ToastOptions['type'];
|
|
124
127
|
visible?: boolean | undefined;
|
|
125
|
-
title
|
|
126
|
-
description
|
|
128
|
+
title?: ToastContent['title'];
|
|
129
|
+
description: ToastContent['description'];
|
|
130
|
+
actionText?: ToastContent['actionText'];
|
|
127
131
|
timeout: number;
|
|
128
132
|
hideProgressBar?: boolean | undefined;
|
|
129
133
|
showIcon?: boolean | undefined;
|
|
130
134
|
offset: number;
|
|
131
|
-
|
|
135
|
+
onAction?: (() => void) | undefined;
|
|
132
136
|
onCloseHandler?: (() => void) | undefined;
|
|
133
137
|
position?: Position | undefined;
|
|
134
138
|
}>, {
|
|
135
|
-
type: ToastType | undefined;
|
|
139
|
+
type: import("./types").ToastType | undefined;
|
|
136
140
|
delay: number | undefined;
|
|
137
141
|
showIcon: boolean | undefined;
|
|
138
142
|
position: Position | undefined;
|
|
@@ -140,7 +144,7 @@ declare const _default: {
|
|
|
140
144
|
offset: number;
|
|
141
145
|
visible: boolean;
|
|
142
146
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
143
|
-
type:
|
|
147
|
+
type: ToastOptions['type'];
|
|
144
148
|
position: Position;
|
|
145
149
|
offset: number;
|
|
146
150
|
visible: boolean;
|
|
@@ -149,7 +153,7 @@ declare const _default: {
|
|
|
149
153
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
150
154
|
$slots: {
|
|
151
155
|
'icon-status': (_: {
|
|
152
|
-
type: ToastType;
|
|
156
|
+
type: import("./types").ToastType | undefined;
|
|
153
157
|
}) => any;
|
|
154
158
|
title: (_: {}) => any;
|
|
155
159
|
description: (_: {}) => any;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ContentTostParams, Position, ToastOptionsLimited } from './types';
|
|
2
|
+
declare type createToastReturn = {
|
|
3
|
+
close: (id: number, position: Position) => void;
|
|
4
|
+
};
|
|
5
|
+
declare function clearAllToasts(): void;
|
|
2
6
|
export declare function useToast(): {
|
|
3
|
-
createToast: (content:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
createToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
|
|
8
|
+
createErrorToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
|
|
9
|
+
createSuccessToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
|
|
10
|
+
createInformativeToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
|
|
11
|
+
createWarningToast: (content: ContentTostParams, options?: ToastOptionsLimited | undefined) => createToastReturn;
|
|
12
|
+
clearAllToasts: typeof clearAllToasts;
|
|
7
13
|
};
|
|
8
|
-
declare function close(id: number, position: Position): void;
|
|
9
14
|
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
|
-
export declare type ToastType = '
|
|
2
|
+
export declare type ToastType = 'informative' | 'error' | 'warning' | 'success';
|
|
3
3
|
export declare type Position = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-center' | 'bottom-center';
|
|
4
4
|
export interface ToastContent {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type?: ToastType;
|
|
6
|
+
title?: string;
|
|
7
|
+
description: string;
|
|
8
|
+
actionText?: string;
|
|
9
|
+
onAction?: () => void;
|
|
7
10
|
}
|
|
8
11
|
export interface ToastOptions {
|
|
9
12
|
type?: ToastType;
|
|
@@ -13,7 +16,17 @@ export interface ToastOptions {
|
|
|
13
16
|
showCloseButton?: boolean;
|
|
14
17
|
hideProgressBar?: boolean;
|
|
15
18
|
onClose?: () => void;
|
|
16
|
-
|
|
19
|
+
}
|
|
20
|
+
export interface ToastContentLimited {
|
|
21
|
+
type?: ToastType;
|
|
22
|
+
title?: string;
|
|
23
|
+
description: string;
|
|
24
|
+
actionText?: string;
|
|
25
|
+
onAction?: () => void;
|
|
26
|
+
}
|
|
27
|
+
export interface ToastOptionsLimited {
|
|
28
|
+
type?: ToastType;
|
|
29
|
+
timeout?: number;
|
|
17
30
|
}
|
|
18
31
|
export interface ToastObject {
|
|
19
32
|
toastVNode: VNode;
|
|
@@ -21,3 +34,17 @@ export interface ToastObject {
|
|
|
21
34
|
}
|
|
22
35
|
export declare const TOAST_GAP = 12;
|
|
23
36
|
export declare const DEFAULT_OPTIONS: ToastOptions;
|
|
37
|
+
export interface ToastComponent {
|
|
38
|
+
id: string | number;
|
|
39
|
+
type: ToastType;
|
|
40
|
+
visible?: boolean;
|
|
41
|
+
title?: ToastContent['title'];
|
|
42
|
+
description: ToastContent['description'];
|
|
43
|
+
actionText?: ToastContent['actionText'];
|
|
44
|
+
timeout: number;
|
|
45
|
+
offset: number;
|
|
46
|
+
onAction?: ToastOptions['onClose'];
|
|
47
|
+
hideProgress?: boolean;
|
|
48
|
+
showIcon?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export declare type ContentTostParams = ToastContent | string;
|