@cypress-design/vue-alert 0.1.0 → 0.1.1
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/CHANGELOG.md +9 -0
- package/dist/{index.es.js → index.es.mjs} +16 -16
- package/dist/index.es.mjs.map +1 -0
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/vue/Alert.vue.d.ts +155 -33
- package/dist/vue/Alert.vue.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/index.es.js.map +0 -1
package/dist/vue/Alert.vue.d.ts
CHANGED
|
@@ -1,35 +1,145 @@
|
|
|
1
1
|
import type { AlertType } from '../constants';
|
|
2
|
-
declare const _default:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
type: AlertType;
|
|
8
|
+
detailsTitle: string;
|
|
9
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
/**
|
|
11
|
+
* Color scheme
|
|
12
|
+
*/
|
|
13
|
+
type?: AlertType | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* If details are provided,text used in the toggle button
|
|
16
|
+
*/
|
|
17
|
+
detailsTitle?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Show the dismiss button
|
|
20
|
+
*/
|
|
21
|
+
dismissible?: boolean | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* When an icon is displayed by default, use this to remove it
|
|
24
|
+
*/
|
|
25
|
+
noIcon?: boolean | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* If you need square corners
|
|
28
|
+
*/
|
|
29
|
+
notRounded?: boolean | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Dismiss the alert after a delay (in ms)
|
|
32
|
+
*/
|
|
33
|
+
duration?: number | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
type: string;
|
|
36
|
+
detailsTitle: string;
|
|
37
|
+
}>>> & {
|
|
38
|
+
onDismiss?: (() => any) | undefined;
|
|
39
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "detailsTitle">;
|
|
40
|
+
$attrs: {
|
|
41
|
+
[x: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
$refs: {
|
|
44
|
+
[x: string]: unknown;
|
|
45
|
+
};
|
|
46
|
+
$slots: Readonly<{
|
|
47
|
+
[name: string]: import("vue").Slot | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
50
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
51
|
+
$emit: (event: "dismiss") => void;
|
|
52
|
+
$el: any;
|
|
53
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
54
|
+
/**
|
|
55
|
+
* Color scheme
|
|
56
|
+
*/
|
|
57
|
+
type?: AlertType | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* If details are provided,text used in the toggle button
|
|
60
|
+
*/
|
|
61
|
+
detailsTitle?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Show the dismiss button
|
|
64
|
+
*/
|
|
65
|
+
dismissible?: boolean | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* When an icon is displayed by default, use this to remove it
|
|
68
|
+
*/
|
|
69
|
+
noIcon?: boolean | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* If you need square corners
|
|
72
|
+
*/
|
|
73
|
+
notRounded?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Dismiss the alert after a delay (in ms)
|
|
76
|
+
*/
|
|
77
|
+
duration?: number | undefined;
|
|
78
|
+
}>, {
|
|
79
|
+
type: string;
|
|
80
|
+
detailsTitle: string;
|
|
81
|
+
}>>> & {
|
|
82
|
+
onDismiss?: (() => any) | undefined;
|
|
83
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
+
dismiss: () => void;
|
|
85
|
+
}, string, {
|
|
86
|
+
type: AlertType;
|
|
87
|
+
detailsTitle: string;
|
|
88
|
+
}> & {
|
|
89
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
92
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
93
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
94
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
95
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
96
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
97
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
98
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
99
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
100
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
101
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
102
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
103
|
+
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;
|
|
104
|
+
};
|
|
105
|
+
$forceUpdate: () => void;
|
|
106
|
+
$nextTick: typeof import("vue").nextTick;
|
|
107
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
108
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
109
|
+
/**
|
|
110
|
+
* Color scheme
|
|
111
|
+
*/
|
|
112
|
+
type?: AlertType | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* If details are provided,text used in the toggle button
|
|
115
|
+
*/
|
|
116
|
+
detailsTitle?: string | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Show the dismiss button
|
|
119
|
+
*/
|
|
120
|
+
dismissible?: boolean | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* When an icon is displayed by default, use this to remove it
|
|
123
|
+
*/
|
|
124
|
+
noIcon?: boolean | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* If you need square corners
|
|
127
|
+
*/
|
|
128
|
+
notRounded?: boolean | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Dismiss the alert after a delay (in ms)
|
|
131
|
+
*/
|
|
132
|
+
duration?: number | undefined;
|
|
133
|
+
}>, {
|
|
134
|
+
type: string;
|
|
135
|
+
detailsTitle: string;
|
|
136
|
+
}>>> & {
|
|
137
|
+
onDismiss?: (() => any) | undefined;
|
|
138
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
139
|
+
__isFragment?: undefined;
|
|
140
|
+
__isTeleport?: undefined;
|
|
141
|
+
__isSuspense?: undefined;
|
|
142
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
33
143
|
/**
|
|
34
144
|
* Color scheme
|
|
35
145
|
*/
|
|
@@ -59,10 +169,22 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
59
169
|
detailsTitle: string;
|
|
60
170
|
}>>> & {
|
|
61
171
|
onDismiss?: (() => any) | undefined;
|
|
62
|
-
}, {
|
|
172
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
173
|
+
dismiss: () => void;
|
|
174
|
+
}, string, {
|
|
63
175
|
type: AlertType;
|
|
64
176
|
detailsTitle: string;
|
|
65
|
-
}
|
|
177
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
178
|
+
$slots: {
|
|
179
|
+
icon: (_: {
|
|
180
|
+
strokeColor: import("@cypress-design/vue-icon").WindiColor | undefined;
|
|
181
|
+
class: string;
|
|
182
|
+
}) => any;
|
|
183
|
+
default: (_: {}) => any;
|
|
184
|
+
body: (_: {}) => any;
|
|
185
|
+
details: (_: {}) => any;
|
|
186
|
+
};
|
|
187
|
+
});
|
|
66
188
|
export default _default;
|
|
67
189
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
68
190
|
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.vue.d.ts","sourceRoot":"","sources":["../../Alert.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;;
|
|
1
|
+
{"version":3,"file":"Alert.vue.d.ts","sourceRoot":"","sources":["../../Alert.vue.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;;;;;;kBAuGpC,SAAS;0BAID,MAAM;;YAPrB;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;;;;;;;;;;;;;;;;;;;;;YAtBH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;;;;;;;;;kBAnBI,SAAS;0BAID,MAAM;;;;;;;;;;;;;;;;;;;;;;QAPrB;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;;;;;;;;;;IAtBH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;UAnBI,SAAS;kBAID,MAAM;;;;;;;;;;;;AAxGvB,wBA6IK;AACL,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,aAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE3B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG;QACzD,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,GAAG,CAAC,CAAC,CAAC,CAAC;CACR,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cypress-design/vue-alert",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"*"
|
|
6
6
|
],
|
|
7
7
|
"typings": "./dist/vue/index.d.ts",
|
|
8
8
|
"main": "./dist/index.umd.js",
|
|
9
|
-
"module": "./dist/index.es.
|
|
9
|
+
"module": "./dist/index.es.mjs",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"import": "./dist/index.es.
|
|
12
|
+
"import": "./dist/index.es.mjs",
|
|
13
13
|
"require": "./dist/index.umd.js"
|
|
14
14
|
}
|
|
15
15
|
},
|