@cypress-design/vue-alert 0.1.2 → 0.2.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/Alert.rootstory.tsx +85 -71
- package/Alert.stories.mdx +1 -1
- package/Alert.vue +77 -61
- package/AlertVue.cy.tsx +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/constants.d.ts +10 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.es.mjs +106 -98
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/vue/Alert.vue.d.ts +29 -6
- package/dist/vue/Alert.vue.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/vue/Alert.vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AlertSize, AlertType } from '../constants';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -6,6 +6,7 @@ declare const _default: {
|
|
|
6
6
|
$props: Partial<{
|
|
7
7
|
type: AlertType;
|
|
8
8
|
detailsTitle: string;
|
|
9
|
+
size: AlertSize;
|
|
9
10
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
11
|
/**
|
|
11
12
|
* Color scheme
|
|
@@ -31,12 +32,17 @@ declare const _default: {
|
|
|
31
32
|
* Dismiss the alert after a delay (in ms)
|
|
32
33
|
*/
|
|
33
34
|
duration?: number | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Size of the alert
|
|
37
|
+
*/
|
|
38
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
34
39
|
}>, {
|
|
35
|
-
type:
|
|
40
|
+
type: AlertType;
|
|
36
41
|
detailsTitle: string;
|
|
42
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
37
43
|
}>>> & {
|
|
38
44
|
onDismiss?: (() => any) | undefined;
|
|
39
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "detailsTitle">;
|
|
45
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "detailsTitle" | "size">;
|
|
40
46
|
$attrs: {
|
|
41
47
|
[x: string]: unknown;
|
|
42
48
|
};
|
|
@@ -75,9 +81,14 @@ declare const _default: {
|
|
|
75
81
|
* Dismiss the alert after a delay (in ms)
|
|
76
82
|
*/
|
|
77
83
|
duration?: number | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Size of the alert
|
|
86
|
+
*/
|
|
87
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
78
88
|
}>, {
|
|
79
|
-
type:
|
|
89
|
+
type: AlertType;
|
|
80
90
|
detailsTitle: string;
|
|
91
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
81
92
|
}>>> & {
|
|
82
93
|
onDismiss?: (() => any) | undefined;
|
|
83
94
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -85,6 +96,7 @@ declare const _default: {
|
|
|
85
96
|
}, string, {
|
|
86
97
|
type: AlertType;
|
|
87
98
|
detailsTitle: string;
|
|
99
|
+
size: AlertSize;
|
|
88
100
|
}> & {
|
|
89
101
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
90
102
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -130,9 +142,14 @@ declare const _default: {
|
|
|
130
142
|
* Dismiss the alert after a delay (in ms)
|
|
131
143
|
*/
|
|
132
144
|
duration?: number | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Size of the alert
|
|
147
|
+
*/
|
|
148
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
133
149
|
}>, {
|
|
134
|
-
type:
|
|
150
|
+
type: AlertType;
|
|
135
151
|
detailsTitle: string;
|
|
152
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
136
153
|
}>>> & {
|
|
137
154
|
onDismiss?: (() => any) | undefined;
|
|
138
155
|
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
@@ -164,9 +181,14 @@ declare const _default: {
|
|
|
164
181
|
* Dismiss the alert after a delay (in ms)
|
|
165
182
|
*/
|
|
166
183
|
duration?: number | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* Size of the alert
|
|
186
|
+
*/
|
|
187
|
+
size?: "xs" | "sm" | "md" | "lg" | undefined;
|
|
167
188
|
}>, {
|
|
168
|
-
type:
|
|
189
|
+
type: AlertType;
|
|
169
190
|
detailsTitle: string;
|
|
191
|
+
size: "xs" | "sm" | "md" | "lg";
|
|
170
192
|
}>>> & {
|
|
171
193
|
onDismiss?: (() => any) | undefined;
|
|
172
194
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -174,6 +196,7 @@ declare const _default: {
|
|
|
174
196
|
}, string, {
|
|
175
197
|
type: AlertType;
|
|
176
198
|
detailsTitle: string;
|
|
199
|
+
size: AlertSize;
|
|
177
200
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
178
201
|
$slots: {
|
|
179
202
|
icon: (_: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.vue.d.ts","sourceRoot":"","sources":["../../Alert.vue.ts"],"names":[],"mappings":"AAUA,OAAO,
|
|
1
|
+
{"version":3,"file":"Alert.vue.d.ts","sourceRoot":"","sources":["../../Alert.vue.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,SAAS,EAET,SAAS,EAIV,MAAM,cAAc,CAAA;;;;;;kBA4HV,SAAS;0BAID,MAAM;kBAoBd,SAAS;;YA3BhB;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;YAEH;;eAEG;;Y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