@dayoakin/vue-ui 0.0.0-stage → 0.1.2
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/README.md +121 -2
- package/dist/components/AnimeHeight/index.vue.d.ts +28 -0
- package/dist/components/Badge/Badge.vue.d.ts +110 -0
- package/dist/components/Button/Button.vue.d.ts +231 -0
- package/dist/components/Button/ButtonGroup.vue.d.ts +41 -0
- package/dist/components/Button/SecondaryButton/index.vue.d.ts +231 -0
- package/dist/components/Card/Card.vue.d.ts +139 -0
- package/dist/components/CardSelect/CardSelect.vue.d.ts +178 -0
- package/dist/components/CodeBlock/index.vue.d.ts +291 -0
- package/dist/components/EmptyState/index.vue.d.ts +98 -0
- package/dist/components/Hr/index.vue.d.ts +3 -0
- package/dist/components/Input/AddressAutocomplete/index.vue.d.ts +218 -0
- package/dist/components/Input/CheckboxInput/index.vue.d.ts +115 -0
- package/dist/components/Input/CurrencyConverterInput/index.vue.d.ts +561 -0
- package/dist/components/Input/CurrencyInput/index.vue.d.ts +310 -0
- package/dist/components/Input/DateInput/index.vue.d.ts +276 -0
- package/dist/components/Input/DoubleRangeInput/index.vue.d.ts +206 -0
- package/dist/components/Input/Input.vue.d.ts +377 -0
- package/dist/components/Input/OtpInput/index.vue.d.ts +294 -0
- package/dist/components/Input/OtpInput/singleOtpInput.vue.d.ts +258 -0
- package/dist/components/Input/RadioInput/index.vue.d.ts +107 -0
- package/dist/components/Input/SearchInput/index.vue.d.ts +170 -0
- package/dist/components/Input/Select/index.vue.d.ts +250 -0
- package/dist/components/Input/TelInput/index.vue.d.ts +242 -0
- package/dist/components/Input/Upload/index.vue.d.ts +353 -0
- package/dist/components/Loaders/index.d.ts +8 -0
- package/dist/components/Loaders/index.vue.d.ts +104 -0
- package/dist/components/Loaders/loaderService.d.ts +18 -0
- package/dist/components/Modals/Modal.vue.d.ts +189 -0
- package/dist/components/Modals/RightSidebar.vue.d.ts +146 -0
- package/dist/components/Notification/AlertBox/AlertBox.vue.d.ts +103 -0
- package/dist/components/Notification/AlertBox/alertService.d.ts +21 -0
- package/dist/components/Notification/AlertBox/index.d.ts +8 -0
- package/dist/components/Notification/InlineToast/InlineToast.vue.d.ts +103 -0
- package/dist/components/Notification/Toast/index.d.ts +8 -0
- package/dist/components/Notification/Toast/index.vue.d.ts +76 -0
- package/dist/components/Notification/Toast/toastServices.d.ts +20 -0
- package/dist/components/Pagination/Pagination.vue.d.ts +238 -0
- package/dist/components/Skeleton/index.vue.d.ts +81 -0
- package/dist/components/Spinner/index.vue.d.ts +71 -0
- package/dist/components/Tab/Tab.vue.d.ts +149 -0
- package/dist/components/Table/index.vue.d.ts +551 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +90 -0
- package/dist/components/index.d.ts +38 -0
- package/dist/components/ts/api.d.ts +4 -0
- package/dist/core/theme.d.ts +4 -0
- package/dist/core/ui.d.ts +88 -0
- package/dist/index-z9l8C72U-BM4uarLu.cjs +14 -0
- package/dist/index-z9l8C72U-CAfHR3NZ.js +3733 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16257 -0
- package/dist/lib.d.ts +3 -0
- package/dist/style.css +1 -0
- package/package.json +53 -4
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { uiAttrs } from '../../core/ui';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
display: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
title: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
showBack: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
hideFooter: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
showHeader: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
w: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
bodyP: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
footerP: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
r: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
bgColor: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
overlayColor: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
borderColor: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
borderRight: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
borderLeft: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>, {
|
|
62
|
+
uiAttrs: typeof uiAttrs;
|
|
63
|
+
handleClose: () => void;
|
|
64
|
+
panelStyle: import('vue').ComputedRef<{
|
|
65
|
+
width: string;
|
|
66
|
+
background: string;
|
|
67
|
+
borderRadius: string;
|
|
68
|
+
borderRight: string;
|
|
69
|
+
borderLeft: string;
|
|
70
|
+
}>;
|
|
71
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "back")[], "close" | "back", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
72
|
+
display: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
title: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
showBack: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
hideFooter: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
showHeader: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
w: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
bodyP: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
footerP: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
r: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
bgColor: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: string;
|
|
111
|
+
};
|
|
112
|
+
overlayColor: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
borderColor: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
borderRight: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
borderLeft: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
}>> & Readonly<{
|
|
129
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
onBack?: ((...args: any[]) => any) | undefined;
|
|
131
|
+
}>, {
|
|
132
|
+
r: string;
|
|
133
|
+
borderColor: string;
|
|
134
|
+
display: boolean;
|
|
135
|
+
bgColor: string;
|
|
136
|
+
title: string;
|
|
137
|
+
overlayColor: string;
|
|
138
|
+
w: string;
|
|
139
|
+
borderRight: boolean;
|
|
140
|
+
showBack: boolean;
|
|
141
|
+
hideFooter: boolean;
|
|
142
|
+
showHeader: boolean;
|
|
143
|
+
bodyP: string;
|
|
144
|
+
footerP: string;
|
|
145
|
+
borderLeft: boolean;
|
|
146
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { uiAttrs } from '../../../core/ui';
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
|
+
size: {
|
|
6
|
+
type: () => "sm" | "md" | "lg";
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
bgColor: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
borderColor: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
textColor: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
iconColorOverride: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
iconBgColor: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
r: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}>, {
|
|
34
|
+
uiAttrs: typeof uiAttrs;
|
|
35
|
+
alert: {
|
|
36
|
+
display: boolean;
|
|
37
|
+
title: string;
|
|
38
|
+
description: string;
|
|
39
|
+
type: string;
|
|
40
|
+
buttonText: string;
|
|
41
|
+
callback: (() => void) | null;
|
|
42
|
+
secondaryButton: boolean;
|
|
43
|
+
secondaryButtonText: string;
|
|
44
|
+
secondaryButtonCallback: (() => void) | null;
|
|
45
|
+
info: string;
|
|
46
|
+
showPrimaryButton: boolean;
|
|
47
|
+
};
|
|
48
|
+
animationName: import('vue').ComputedRef<"slideUp" | "fade">;
|
|
49
|
+
sizeClass: import('vue').ComputedRef<"alert-sm" | "alert-lg" | "alert-md">;
|
|
50
|
+
titleSizeClass: import('vue').ComputedRef<"text-base" | "text-xl" | "text-lg">;
|
|
51
|
+
descSizeClass: import('vue').ComputedRef<"text-base" | "text-sm">;
|
|
52
|
+
containerStyle: import('vue').ComputedRef<{
|
|
53
|
+
background: string;
|
|
54
|
+
border: string;
|
|
55
|
+
borderRadius: string;
|
|
56
|
+
}>;
|
|
57
|
+
textStyle: import('vue').ComputedRef<{
|
|
58
|
+
color: string | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
iconContainerStyle: import('vue').ComputedRef<{
|
|
61
|
+
background: string | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
resolvedIconColor: import('vue').ComputedRef<string>;
|
|
64
|
+
closeDisplay: () => void;
|
|
65
|
+
handleBackdropClick: (e: MouseEvent) => void;
|
|
66
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
67
|
+
size: {
|
|
68
|
+
type: () => "sm" | "md" | "lg";
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
bgColor: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
borderColor: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
textColor: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
iconColorOverride: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
iconBgColor: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
r: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
}>> & Readonly<{}>, {
|
|
96
|
+
r: string;
|
|
97
|
+
borderColor: string;
|
|
98
|
+
bgColor: string;
|
|
99
|
+
size: "sm" | "md" | "lg";
|
|
100
|
+
textColor: string;
|
|
101
|
+
iconColorOverride: string;
|
|
102
|
+
iconBgColor: string;
|
|
103
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const EVENT_SHOW_ALERT = "show-alert";
|
|
2
|
+
export declare const alertState: {
|
|
3
|
+
display: boolean;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
type: string;
|
|
7
|
+
buttonText: string;
|
|
8
|
+
callback: (() => void) | null;
|
|
9
|
+
secondaryButton: boolean;
|
|
10
|
+
secondaryButtonText: string;
|
|
11
|
+
secondaryButtonCallback: (() => void) | null;
|
|
12
|
+
info: string;
|
|
13
|
+
showPrimaryButton: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function showAlert(config: Partial<typeof alertState>): void;
|
|
16
|
+
export declare const AlertService: {
|
|
17
|
+
success(title: string, description: string, options?: Partial<typeof alertState>): void;
|
|
18
|
+
error(title: string, description: string, options?: Partial<typeof alertState>): void;
|
|
19
|
+
warning(title: string, description: string, options?: Partial<typeof alertState>): void;
|
|
20
|
+
hide(): void;
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as AlertBox } from './AlertBox.vue';
|
|
2
|
+
import { showAlert, AlertService } from './alertService';
|
|
3
|
+
import { App } from 'vue';
|
|
4
|
+
declare const AlertPlugin: {
|
|
5
|
+
install(app: App): void;
|
|
6
|
+
};
|
|
7
|
+
export default AlertPlugin;
|
|
8
|
+
export { AlertBox, showAlert, AlertService };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { uiAttrs } from '../../../core/ui';
|
|
2
|
+
type ToastType = "error" | "info" | "success" | "warning";
|
|
3
|
+
type Size = "sm" | "md" | "lg";
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
7
|
+
type: {
|
|
8
|
+
type: () => ToastType;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
description: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
display: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
showClose: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
size: {
|
|
24
|
+
type: () => Size;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
bgColor: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
borderColor: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
textColor: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
iconColorOverride: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
}>, {
|
|
44
|
+
uiAttrs: typeof uiAttrs;
|
|
45
|
+
typeClass: import('vue').ComputedRef<string>;
|
|
46
|
+
sizeClass: import('vue').ComputedRef<"inline-toast-sm" | "inline-toast-lg" | "inline-toast-md">;
|
|
47
|
+
iconSize: import('vue').ComputedRef<"1.5rem" | "2rem" | "1.25rem">;
|
|
48
|
+
iconClass: import('vue').ComputedRef<"ri-error-warning-line" | "ri-checkbox-circle-line" | "ri-alert-line" | "ri-information-line">;
|
|
49
|
+
resolvedIconColor: import('vue').ComputedRef<string>;
|
|
50
|
+
containerStyle: import('vue').ComputedRef<{
|
|
51
|
+
background: string | undefined;
|
|
52
|
+
borderColor: string | undefined;
|
|
53
|
+
border: string | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
56
|
+
type: {
|
|
57
|
+
type: () => ToastType;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
description: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
display: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
showClose: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
type: () => Size;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
bgColor: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
borderColor: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
textColor: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
iconColorOverride: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
}>> & Readonly<{
|
|
93
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
}>, {
|
|
95
|
+
borderColor: string;
|
|
96
|
+
bgColor: string;
|
|
97
|
+
description: string;
|
|
98
|
+
size: Size;
|
|
99
|
+
type: ToastType;
|
|
100
|
+
textColor: string;
|
|
101
|
+
iconColorOverride: string;
|
|
102
|
+
showClose: boolean;
|
|
103
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as Toast } from './index.vue';
|
|
3
|
+
import { showToast, ToastService } from './toastServices';
|
|
4
|
+
declare const ToastPlugin: {
|
|
5
|
+
install(app: App): void;
|
|
6
|
+
};
|
|
7
|
+
export default ToastPlugin;
|
|
8
|
+
export { Toast, showToast, ToastService };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { uiAttrs } from '../../../core/ui';
|
|
2
|
+
type Size = "sm" | "md" | "lg";
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
size: {
|
|
7
|
+
type: () => Size;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
bgColor: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
textColor: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
borderColor: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
customIcon: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
iconSize: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
}>, {
|
|
31
|
+
uiAttrs: typeof uiAttrs;
|
|
32
|
+
toast: {
|
|
33
|
+
description: string;
|
|
34
|
+
icon?: "success" | "error" | "warning" | "info" | undefined;
|
|
35
|
+
display?: boolean | undefined;
|
|
36
|
+
duration?: number | undefined;
|
|
37
|
+
};
|
|
38
|
+
sizeClass: import('vue').ComputedRef<"toast-sm" | "toast-lg" | "toast-md">;
|
|
39
|
+
textSizeClass: import('vue').ComputedRef<"text-xs" | "text-base" | "text-sm">;
|
|
40
|
+
containerStyle: import('vue').ComputedRef<{
|
|
41
|
+
background: string | undefined;
|
|
42
|
+
border: string | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
size: {
|
|
46
|
+
type: () => Size;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
bgColor: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
textColor: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
borderColor: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
customIcon: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
iconSize: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
}>> & Readonly<{}>, {
|
|
70
|
+
borderColor: string;
|
|
71
|
+
bgColor: string;
|
|
72
|
+
size: Size;
|
|
73
|
+
textColor: string;
|
|
74
|
+
customIcon: string;
|
|
75
|
+
iconSize: string;
|
|
76
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ToastConfig = {
|
|
2
|
+
description: string;
|
|
3
|
+
icon?: "success" | "error" | "warning" | "info";
|
|
4
|
+
display?: boolean;
|
|
5
|
+
duration?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const toastState: {
|
|
8
|
+
description: string;
|
|
9
|
+
icon?: "success" | "error" | "warning" | "info" | undefined;
|
|
10
|
+
display?: boolean | undefined;
|
|
11
|
+
duration?: number | undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare function showToast(config: ToastConfig): void;
|
|
14
|
+
export declare const ToastService: {
|
|
15
|
+
show(description: string, icon?: ToastConfig["icon"], duration?: number): void;
|
|
16
|
+
success(description: string, duration?: number): void;
|
|
17
|
+
error(description: string, duration?: number): void;
|
|
18
|
+
warning(description: string, duration?: number): void;
|
|
19
|
+
hide(): void;
|
|
20
|
+
};
|