1
1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
3
3
exports [` Badge > renders with as correctly 1` ] = `
4
- "<div class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" >
4
+ "<div class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md bg-primary text-inverted" >
5
5
<!--v-if--><span class = " truncate" >Badge</span >
6
6
<!--v-if-->
7
7
</div >"
8
8
` ;
9
9
10
- exports [` Badge > renders with avatar and leadingIcon correctly 1` ] = ` "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ><!--v-if--><!--v-if--></span >"` ;
10
+ exports [` Badge > renders with avatar and leadingIcon correctly 1` ] = ` "<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5 " ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ><!--v-if--><!--v-if--></span >"` ;
11
11
12
12
exports [` Badge > renders with avatar and trailingIcon correctly 1` ] = `
13
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><span class = " inline-flex items-center justify-center select-none overflow-hidden rounded-full align-middle bg-elevated size-4 text-[8px ] shrink-0" ><img role = " img" src = " https://github.com/benjamincanac.png" width = " 16 " height = " 16 " class = " h-full w-full rounded-[inherit] object-cover" ></span >
13
+ "<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5 " ><span class = " inline-flex items-center justify-center select-none overflow-hidden rounded-full align-middle bg-elevated size-5 text-[10px ] shrink-0" ><img role = " img" src = " https://github.com/benjamincanac.png" width = " 20 " height = " 20 " class = " h-full w-full rounded-[inherit] object-cover" ></span >
14
14
<!--v-if--><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ></span >"
15
15
`;
16
16
17
17
exports[`Badge > renders with avatar correctly 1`] = `
18
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><span class = " inline-flex items-center justify-center select-none overflow-hidden rounded-full align-middle bg-elevated size-4 text-[8px ] shrink-0" ><img role = " img" src = " https://github.com/benjamincanac.png" width = " 16 " height = " 16 " class = " h-full w-full rounded-[inherit] object-cover" ></span >
18
+ "<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5 " ><span class = " inline-flex items-center justify-center select-none overflow-hidden rounded-full align-middle bg-elevated size-5 text-[10px ] shrink-0" ><img role = " img" src = " https://github.com/benjamincanac.png" width = " 20 " height = " 20 " class = " h-full w-full rounded-[inherit] object-cover" ></span >
19
19
<!--v-if-->
20
20
<!--v-if--></span >"
21
21
`;
22
22
23
23
exports[`Badge > renders with class correctly 1`] = `
24
- "<span class = " inline-flex items-center text-xs px-2 py-1 gap-1 bg-primary text-inverted rounded-full font-bold" ><!--v-if--><span class = " truncate" >Badge</span >
24
+ "<span class = " inline-flex items-center text-xs px-2 py-1.5 gap-1 bg-primary text-inverted rounded-full font-bold" ><!--v-if--><span class = " truncate" >Badge</span >
25
25
<!--v-if--></span >"
26
26
`;
27
27
28
- exports[`Badge > renders with default slot correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><!--v-if-->Default slot<!--v-if--></span >"`;
28
+ exports[`Badge > renders with default slot correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md bg-primary text-inverted" ><!--v-if-->Default slot<!--v-if--></span >"`;
29
29
30
- exports[`Badge > renders with icon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ><!--v-if--><!--v-if--></span >"`;
30
+ exports[`Badge > renders with icon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5 " ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ><!--v-if--><!--v-if--></span >"`;
31
31
32
32
exports[`Badge > renders with label correctly 1`] = `
33
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
33
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
34
34
<!--v-if--></span >"
35
35
`;
36
36
37
- exports[`Badge > renders with leading and icon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ><!--v-if--><!--v-if--></span >"`;
37
+ exports[`Badge > renders with leading and icon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5 " ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ><!--v-if--><!--v-if--></span >"`;
38
38
39
- exports[`Badge > renders with leading slot correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" >Leading slot<!--v-if--><!--v-if--></span >"`;
39
+ exports[`Badge > renders with leading slot correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5 " >Leading slot<!--v-if--><!--v-if--></span >"`;
40
40
41
- exports[`Badge > renders with leadingIcon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ><!--v-if--><!--v-if--></span >"`;
41
+ exports[`Badge > renders with leadingIcon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5 " ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ><!--v-if--><!--v-if--></span >"`;
42
42
43
43
exports[`Badge > renders with neutral variant outline correctly 1`] = `
44
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md ring ring-inset ring-accented text-default bg-default" ><!--v-if--><span class = " truncate" >Badge</span >
44
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md ring ring-inset ring-accented text-default bg-default" ><!--v-if--><span class = " truncate" >Badge</span >
45
45
<!--v-if--></span >"
46
46
`;
47
47
48
48
exports[`Badge > renders with neutral variant soft correctly 1`] = `
49
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md text-default bg-elevated" ><!--v-if--><span class = " truncate" >Badge</span >
49
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md text-default bg-elevated" ><!--v-if--><span class = " truncate" >Badge</span >
50
50
<!--v-if--></span >"
51
51
`;
52
52
53
53
exports[`Badge > renders with neutral variant solid correctly 1`] = `
54
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md text-inverted bg-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
54
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md text-inverted bg-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
55
55
<!--v-if--></span >"
56
56
`;
57
57
58
58
exports[`Badge > renders with neutral variant subtle correctly 1`] = `
59
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md ring ring-inset ring-accented text-default bg-elevated" ><!--v-if--><span class = " truncate" >Badge</span >
59
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md ring ring-inset ring-accented text-default bg-elevated" ><!--v-if--><span class = " truncate" >Badge</span >
60
60
<!--v-if--></span >"
61
61
`;
62
62
63
63
exports[`Badge > renders with primary variant outline correctly 1`] = `
64
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md text-primary ring ring-inset ring-primary/50" ><!--v-if--><span class = " truncate" >Badge</span >
64
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md text-primary ring ring-inset ring-primary/50" ><!--v-if--><span class = " truncate" >Badge</span >
65
65
<!--v-if--></span >"
66
66
`;
67
67
68
68
exports[`Badge > renders with primary variant soft correctly 1`] = `
69
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary/10 text-primary" ><!--v-if--><span class = " truncate" >Badge</span >
69
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md bg-primary/10 text-primary" ><!--v-if--><span class = " truncate" >Badge</span >
70
70
<!--v-if--></span >"
71
71
`;
72
72
73
73
exports[`Badge > renders with primary variant solid correctly 1`] = `
74
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
74
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
75
75
<!--v-if--></span >"
76
76
`;
77
77
78
78
exports[`Badge > renders with primary variant subtle correctly 1`] = `
79
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary/10 text-primary ring ring-inset ring-primary/25" ><!--v-if--><span class = " truncate" >Badge</span >
79
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md bg-primary/10 text-primary ring ring-inset ring-primary/25" ><!--v-if--><span class = " truncate" >Badge</span >
80
80
<!--v-if--></span >"
81
81
`;
82
82
83
83
exports[`Badge > renders with size lg correctly 1`] = `
84
- "<span class = " font-medium inline-flex items-center text-sm px-2 py-1 gap-1.5 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
84
+ "<span class = " font-medium inline-flex items-center text-sm px-2.5 py-2 gap-1.5 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
85
85
<!--v-if--></span >"
86
86
`;
87
87
88
88
exports[`Badge > renders with size md correctly 1`] = `
89
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
89
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
90
90
<!--v-if--></span >"
91
91
`;
92
92
@@ -96,7 +96,7 @@ exports[`Badge > renders with size sm correctly 1`] = `
96
96
`;
97
97
98
98
exports[`Badge > renders with size xl correctly 1`] = `
99
- "<span class = " font-medium inline-flex items-center text-base px-2.5 py-1 gap-1.5 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
99
+ "<span class = " font-medium inline-flex items-center text-base px-3 py-2.5 gap-1.5 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate" >Badge</span >
100
100
<!--v-if--></span >"
101
101
`;
102
102
@@ -105,13 +105,15 @@ exports[`Badge > renders with size xs correctly 1`] = `
105
105
<!--v-if--></span >"
106
106
`;
107
107
108
- exports[`Badge > renders with trailing and icon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><!--v-if-->< svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ></span >"`;
108
+ exports[`Badge > renders with square correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5 " ><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ><!--v-if--><!--v-if-- ></span >"`;
109
109
110
- exports[`Badge > renders with trailing slot correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><!--v-if-->Trailing slot </span >"`;
110
+ exports[`Badge > renders with trailing and icon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5 " ><!--v-if--><!--v-if-->< svg xmlns = " http://www.w3.org/2000/svg " xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true " role = " img " class = " shrink-0 size-4 " width = " 1em " height = " 1em " viewBox = " 0 0 16 16 " ></ svg > </span >"`;
111
111
112
- exports[`Badge > renders with trailingIcon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><!--v-if--><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ></span >"`;
112
+ exports[`Badge > renders with trailing slot correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5" ><!--v-if--><!--v-if-->Trailing slot</span >"`;
113
+
114
+ exports[`Badge > renders with trailingIcon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs gap-1 rounded-md bg-primary text-inverted p-1.5" ><!--v-if--><!--v-if--><svg xmlns = " http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden = " true" role = " img" class = " shrink-0 size-4" width = " 1em" height = " 1em" viewBox = " 0 0 16 16" ></svg ></span >"`;
113
115
114
116
exports[`Badge > renders with ui correctly 1`] = `
115
- "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate font-bold" >Badge</span >
117
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1.5 gap-1 rounded-md bg-primary text-inverted" ><!--v-if--><span class = " truncate font-bold" >Badge</span >
116
118
<!--v-if--></span >"
117
119
`;
0 commit comments