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 = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" >
4
+ "<div class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" >
5
5
<!--v-if--><span class = " truncate" >Badge</span >
6
6
<!--v-if-->
7
7
</div >"
8
8
` ;
9
9
10
10
exports [` Badge > renders with avatar and leadingIcon correctly 1` ] = `
11
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " iconify i-lucide:arrow-left shrink-0 size-4" aria-hidden = " true" ></span >
11
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " iconify i-lucide:arrow-left shrink-0 size-4" aria-hidden = " true" ></span >
12
12
<!--v-if-->
13
13
<!--v-if--></span >"
14
14
` ;
15
15
16
16
exports [` Badge > renders with avatar and trailingIcon correctly 1` ] = `
17
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " inline-flex items-center justify-center select-none overflow-hidden rounded-full align-middle bg-[var(--ui-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" style = " display: none;" ><span class = " font-medium leading-none text-[var(--ui-text-muted)] truncate" ></span ></span >
17
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " inline-flex items-center justify-center select-none overflow-hidden rounded-full align-middle bg-[var(--ui-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" style = " display: none;" ><span class = " font-medium leading-none text-[var(--ui-text-muted)] truncate" ></span ></span >
18
18
<!--v-if--><span class = " iconify i-lucide:arrow-right shrink-0 size-4" aria-hidden = " true" ></span ></span >"
19
19
`;
20
20
21
21
exports[`Badge > renders with avatar correctly 1`] = `
22
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " inline-flex items-center justify-center select-none overflow-hidden rounded-full align-middle bg-[var(--ui-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" style = " display: none;" ><span class = " font-medium leading-none text-[var(--ui-text-muted)] truncate" ></span ></span >
22
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " inline-flex items-center justify-center select-none overflow-hidden rounded-full align-middle bg-[var(--ui-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" style = " display: none;" ><span class = " font-medium leading-none text-[var(--ui-text-muted)] truncate" ></span ></span >
23
23
<!--v-if-->
24
24
<!--v-if--></span >"
25
25
`;
@@ -29,95 +29,95 @@ exports[`Badge > renders with class correctly 1`] = `
29
29
<!--v-if--></span >"
30
30
`;
31
31
32
- exports[`Badge > renders with default slot correctly 1`] = `"<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if-->Default slot<!--v-if--></span >"`;
32
+ 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-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if-->Default slot<!--v-if--></span >"`;
33
33
34
34
exports[`Badge > renders with icon correctly 1`] = `
35
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " iconify i-lucide:rocket shrink-0 size-4" aria-hidden = " true" ></span >
35
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " iconify i-lucide:rocket shrink-0 size-4" aria-hidden = " true" ></span >
36
36
<!--v-if-->
37
37
<!--v-if--></span >"
38
38
`;
39
39
40
40
exports[`Badge > renders with label correctly 1`] = `
41
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
41
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
42
42
<!--v-if--></span >"
43
43
`;
44
44
45
45
exports[`Badge > renders with leading and icon correctly 1`] = `
46
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " iconify i-lucide:arrow-left shrink-0 size-4" aria-hidden = " true" ></span >
46
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " iconify i-lucide:arrow-left shrink-0 size-4" aria-hidden = " true" ></span >
47
47
<!--v-if-->
48
48
<!--v-if--></span >"
49
49
`;
50
50
51
- exports[`Badge > renders with leading slot correctly 1`] = `"<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" >Leading slot<!--v-if--><!--v-if--></span >"`;
51
+ 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-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" >Leading slot<!--v-if--><!--v-if--></span >"`;
52
52
53
53
exports[`Badge > renders with leadingIcon correctly 1`] = `
54
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " iconify i-lucide:arrow-left shrink-0 size-4" aria-hidden = " true" ></span >
54
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><span class = " iconify i-lucide:arrow-left shrink-0 size-4" aria-hidden = " true" ></span >
55
55
<!--v-if-->
56
56
<!--v-if--></span >"
57
57
`;
58
58
59
59
exports[`Badge > renders with neutral variant outline correctly 1`] = `
60
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 ring ring-inset ring-[var(--ui-border-accented)] text-[var(--ui-text)] bg-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
60
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] ring ring-inset ring-[var(--ui-border-accented)] text-[var(--ui-text)] bg-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
61
61
<!--v-if--></span >"
62
62
`;
63
63
64
64
exports[`Badge > renders with neutral variant soft correctly 1`] = `
65
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 text-[var(--ui-text)] bg-[var(--ui-bg-elevated)]" ><!--v-if--><span class = " truncate" >Badge</span >
65
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] text-[var(--ui-text)] bg-[var(--ui-bg-elevated)]" ><!--v-if--><span class = " truncate" >Badge</span >
66
66
<!--v-if--></span >"
67
67
`;
68
68
69
69
exports[`Badge > renders with neutral variant solid correctly 1`] = `
70
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 text-[var(--ui-bg)] bg-[var(--ui-bg-inverted)]" ><!--v-if--><span class = " truncate" >Badge</span >
70
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] text-[var(--ui-bg)] bg-[var(--ui-bg-inverted)]" ><!--v-if--><span class = " truncate" >Badge</span >
71
71
<!--v-if--></span >"
72
72
`;
73
73
74
74
exports[`Badge > renders with neutral variant subtle correctly 1`] = `
75
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 ring ring-inset ring-[var(--ui-border-accented)] text-[var(--ui-text)] bg-[var(--ui-bg-elevated)]" ><!--v-if--><span class = " truncate" >Badge</span >
75
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] ring ring-inset ring-[var(--ui-border-accented)] text-[var(--ui-text)] bg-[var(--ui-bg-elevated)]" ><!--v-if--><span class = " truncate" >Badge</span >
76
76
<!--v-if--></span >"
77
77
`;
78
78
79
79
exports[`Badge > renders with primary variant outline correctly 1`] = `
80
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/50" ><!--v-if--><span class = " truncate" >Badge</span >
80
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/50" ><!--v-if--><span class = " truncate" >Badge</span >
81
81
<!--v-if--></span >"
82
82
`;
83
83
84
84
exports[`Badge > renders with primary variant soft correctly 1`] = `
85
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)]/10 text-[var(--ui-primary)]" ><!--v-if--><span class = " truncate" >Badge</span >
85
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)]/10 text-[var(--ui-primary)]" ><!--v-if--><span class = " truncate" >Badge</span >
86
86
<!--v-if--></span >"
87
87
`;
88
88
89
89
exports[`Badge > renders with primary variant solid correctly 1`] = `
90
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
90
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
91
91
<!--v-if--></span >"
92
92
`;
93
93
94
94
exports[`Badge > renders with primary variant subtle correctly 1`] = `
95
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)]/10 text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/25" ><!--v-if--><span class = " truncate" >Badge</span >
95
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)]/10 text-[var(--ui-primary)] ring ring-inset ring-[var(--ui-primary)]/25" ><!--v-if--><span class = " truncate" >Badge</span >
96
96
<!--v-if--></span >"
97
97
`;
98
98
99
99
exports[`Badge > renders with size lg correctly 1`] = `
100
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-sm px-2 py-1 gap-1.5 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
100
+ "<span class = " font-medium inline-flex items-center text-sm px-2 py-1 gap-1.5 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
101
101
<!--v-if--></span >"
102
102
`;
103
103
104
104
exports[`Badge > renders with size md correctly 1`] = `
105
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
105
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
106
106
<!--v-if--></span >"
107
107
`;
108
108
109
109
exports[`Badge > renders with size sm correctly 1`] = `
110
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-1.5 py-0.5 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
110
+ "<span class = " font-medium inline-flex items-center text-xs px-1.5 py-0.5 gap-1 rounded-[calc(var(--ui-radius))] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate" >Badge</span >
111
111
<!--v-if--></span >"
112
112
`;
113
113
114
- exports[`Badge > renders with trailing and icon correctly 1`] = `"<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><!--v-if--><span class = " iconify i-lucide:arrow-right shrink-0 size-4" aria-hidden = " true" ></span ></span >"`;
114
+ 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-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><!--v-if--><span class = " iconify i-lucide:arrow-right shrink-0 size-4" aria-hidden = " true" ></span ></span >"`;
115
115
116
- exports[`Badge > renders with trailing slot correctly 1`] = `"<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><!--v-if-->Trailing slot</span >"`;
116
+ 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-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><!--v-if-->Trailing slot</span >"`;
117
117
118
- exports[`Badge > renders with trailingIcon correctly 1`] = `"<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><!--v-if--><span class = " iconify i-lucide:arrow-right shrink-0 size-4" aria-hidden = " true" ></span ></span >"`;
118
+ exports[`Badge > renders with trailingIcon correctly 1`] = `"<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><!--v-if--><span class = " iconify i-lucide:arrow-right shrink-0 size-4" aria-hidden = " true" ></span ></span >"`;
119
119
120
120
exports[`Badge > renders with ui correctly 1`] = `
121
- "<span class = " rounded-[calc(var(--ui-radius)*1.5)] font-medium inline-flex items-center text-xs px-2 py-1 gap-1 bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate font-bold" >Badge</span >
121
+ "<span class = " font-medium inline-flex items-center text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)] bg-[var(--ui-primary)] text-[var(--ui-bg)]" ><!--v-if--><span class = " truncate font-bold" >Badge</span >
122
122
<!--v-if--></span >"
123
123
`;
0 commit comments