@volverjs/ui-vue 0.0.5 → 0.0.6-beta.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 +2 -2
- package/dist/components/VvAvatar/VvAvatar.es.js +279 -0
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -0
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +15 -0
- package/dist/components/VvAvatar/index.d.ts +7 -0
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +361 -0
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -0
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +68 -0
- package/dist/components/VvAvatarGroup/index.d.ts +38 -0
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/stories/Avatar/Avatar.settings.d.ts +36 -0
- package/dist/stories/Avatar/Avatar.test.d.ts +2 -0
- package/dist/stories/AvatarGroup/AvatarGroup.settings.d.ts +56 -0
- package/dist/stories/AvatarGroup/AvatarGroup.test.d.ts +2 -0
- package/dist/test/expect.d.ts +3 -0
- package/package.json +17 -1
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvAvatar/VvAvatar.vue +21 -0
- package/src/components/VvAvatar/index.ts +9 -0
- package/src/components/VvAvatarGroup/VvAvatarGroup.vue +65 -0
- package/src/components/VvAvatarGroup/index.ts +28 -0
- package/src/stories/Avatar/Avatar.settings.ts +36 -0
- package/src/stories/Avatar/Avatar.stories.mdx +40 -0
- package/src/stories/Avatar/Avatar.test.ts +34 -0
- package/src/stories/Avatar/AvatarBadge.stories.mdx +41 -0
- package/src/stories/Avatar/AvatarModifiers.stories.mdx +87 -0
- package/src/stories/Avatar/AvatarSlotDefault.stories.mdx +29 -0
- package/src/stories/AvatarGroup/AvatarGroup.settings.ts +60 -0
- package/src/stories/AvatarGroup/AvatarGroup.stories.mdx +30 -0
- package/src/stories/AvatarGroup/AvatarGroup.test.ts +36 -0
- package/src/stories/AvatarGroup/AvatarGroupModifiers.stories.mdx +24 -0
- package/src/stories/AvatarGroup/AvatarGroupSlotDefault.stories.mdx +45 -0
- package/src/test/expect.ts +15 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const defaultArgs: {
|
|
2
|
+
imgSrc: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const argTypes: {
|
|
5
|
+
default: {
|
|
6
|
+
description: string;
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
table: {
|
|
11
|
+
category: string;
|
|
12
|
+
type: {
|
|
13
|
+
summary: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
modifiers: {
|
|
18
|
+
options: string[];
|
|
19
|
+
type: {
|
|
20
|
+
summary: string[];
|
|
21
|
+
};
|
|
22
|
+
description: string;
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
imgSrc: {
|
|
28
|
+
type: {
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
control: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const defaultArgs: {
|
|
2
|
+
items: ({
|
|
3
|
+
text: string;
|
|
4
|
+
imgSrc: string;
|
|
5
|
+
modifiers: string;
|
|
6
|
+
} | {
|
|
7
|
+
imgSrc: string;
|
|
8
|
+
modifiers: string;
|
|
9
|
+
text?: undefined;
|
|
10
|
+
})[];
|
|
11
|
+
avatarModifiers: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const argTypes: {
|
|
14
|
+
default: {
|
|
15
|
+
description: string;
|
|
16
|
+
control: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
table: {
|
|
20
|
+
category: string;
|
|
21
|
+
type: {
|
|
22
|
+
summary: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
modifiers: {
|
|
27
|
+
options: string[];
|
|
28
|
+
type: {
|
|
29
|
+
summary: string[];
|
|
30
|
+
};
|
|
31
|
+
description: string;
|
|
32
|
+
control: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
avatarModifiers: {
|
|
37
|
+
options: string[];
|
|
38
|
+
type: {
|
|
39
|
+
summary: string[];
|
|
40
|
+
};
|
|
41
|
+
description: string;
|
|
42
|
+
control: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
toShow: {
|
|
47
|
+
control: {
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
totalItems: {
|
|
52
|
+
control: {
|
|
53
|
+
type: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
package/dist/test/expect.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ declare global {
|
|
|
11
11
|
interface Matchers<R> {
|
|
12
12
|
toHaveClass: (className: string | string[], expected?: HTMLElement) => CustomMatcherResult;
|
|
13
13
|
}
|
|
14
|
+
interface Matchers<R> {
|
|
15
|
+
toHaveImgChild: (imgTag: string, expected?: HTMLElement) => CustomMatcherResult;
|
|
16
|
+
}
|
|
14
17
|
}
|
|
15
18
|
}
|
|
16
19
|
export { expect };
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/volverjs/ui-vue/issues"
|
|
21
21
|
},
|
|
22
|
-
"version": "0.0.
|
|
22
|
+
"version": "0.0.6-beta.2",
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">= 16.x"
|
|
25
25
|
},
|
|
@@ -154,6 +154,12 @@
|
|
|
154
154
|
"vv-action": [
|
|
155
155
|
"dist/components/VvAction/VvAction.vue.d.ts"
|
|
156
156
|
],
|
|
157
|
+
"vv-avatar": [
|
|
158
|
+
"dist/components/VvAvatar/VvAvatar.vue.d.ts"
|
|
159
|
+
],
|
|
160
|
+
"vv-avatar-group": [
|
|
161
|
+
"dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts"
|
|
162
|
+
],
|
|
157
163
|
"vv-badge": [
|
|
158
164
|
"dist/components/VvBadge/VvBadge.vue.d.ts"
|
|
159
165
|
],
|
|
@@ -275,6 +281,16 @@
|
|
|
275
281
|
"import": "./dist/components/VvAction/VvAction.es.js",
|
|
276
282
|
"default": "./dist/components/VvAction/VvAction.umd.js"
|
|
277
283
|
},
|
|
284
|
+
"./vv-avatar": {
|
|
285
|
+
"types": "./dist/components/VvAvatar/VvAvatar.vue.d.ts",
|
|
286
|
+
"import": "./dist/components/VvAvatar/VvAvatar.es.js",
|
|
287
|
+
"default": "./dist/components/VvAvatar/VvAvatar.umd.js"
|
|
288
|
+
},
|
|
289
|
+
"./vv-avatar-group": {
|
|
290
|
+
"types": "./dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts",
|
|
291
|
+
"import": "./dist/components/VvAvatarGroup/VvAvatarGroup.es.js",
|
|
292
|
+
"default": "./dist/components/VvAvatarGroup/VvAvatarGroup.umd.js"
|
|
293
|
+
},
|
|
278
294
|
"./vv-badge": {
|
|
279
295
|
"types": "./dist/components/VvBadge/VvBadge.vue.d.ts",
|
|
280
296
|
"import": "./dist/components/VvBadge/VvBadge.es.js",
|