Skip to content

Commit d7c0d8d

Browse files
committed
style: lint code
1 parent 1baecb7 commit d7c0d8d

File tree

2 files changed

+163
-163
lines changed

2 files changed

+163
-163
lines changed

packages/ui-variants/src/variants/badge.ts

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,125 +3,125 @@ import type { VariantProps } from 'tailwind-variants';
33

44
export const badgeVariants = tv({
55
base: 'inline-flex items-center border font-semibold',
6-
variants: {
7-
color: {
8-
primary: 'border-primary text-primary',
9-
destructive: 'border-destructive text-destructive',
10-
success: 'border-success text-success',
11-
warning: 'border-warning text-warning',
12-
info: 'border-info text-info',
13-
carbon: 'border-carbon text-carbon',
14-
secondary: 'border-secondary-foreground/50 text-secondary-foreground',
15-
accent: 'border-accent-foreground/50 text-accent-foreground'
16-
},
17-
variant: {
18-
solid: '',
19-
pure: 'bg-background text-foreground border-border',
20-
outline: 'bg-background',
21-
soft: 'border-0',
22-
ghost: '',
23-
raw: 'bg-transparent border-0'
24-
},
25-
size: {
26-
xs: 'gap-0.5 h-3.5 px-1 text-4xs',
27-
sm: 'gap-0.75 h-4 px-1.5 text-3xs',
28-
md: 'gap-1 h-4.5 px-2 text-2xs',
29-
lg: 'gap-1.25 h-5 px-2.5 text-xs',
30-
xl: 'gap-1.5 h-6 px-3 text-sm',
31-
'2xl': 'gap-2 h-7 px-4 text-base'
32-
},
33-
shape: {
34-
auto: 'rounded-md',
35-
rounded: 'rounded-full'
36-
}
37-
},
386
compoundVariants: [
397
{
8+
class: `bg-primary text-primary-foreground`,
409
color: 'primary',
41-
variant: 'solid',
42-
class: `bg-primary text-primary-foreground`
10+
variant: 'solid'
4311
},
4412
{
13+
class: `bg-destructive text-destructive-foreground`,
4514
color: 'destructive',
46-
variant: 'solid',
47-
class: `bg-destructive text-destructive-foreground`
15+
variant: 'solid'
4816
},
4917
{
18+
class: `bg-success text-success-foreground`,
5019
color: 'success',
51-
variant: 'solid',
52-
class: `bg-success text-success-foreground`
20+
variant: 'solid'
5321
},
5422
{
23+
class: `bg-warning text-warning-foreground`,
5524
color: 'warning',
56-
variant: 'solid',
57-
class: `bg-warning text-warning-foreground`
25+
variant: 'solid'
5826
},
5927
{
28+
class: `bg-info text-info-foreground`,
6029
color: 'info',
61-
variant: 'solid',
62-
class: `bg-info text-info-foreground`
30+
variant: 'solid'
6331
},
6432
{
33+
class: `bg-carbon text-carbon-foreground`,
6534
color: 'carbon',
66-
variant: 'solid',
67-
class: `bg-carbon text-carbon-foreground`
35+
variant: 'solid'
6836
},
6937
{
38+
class: `bg-secondary text-secondary-foreground`,
7039
color: 'secondary',
71-
variant: 'solid',
72-
class: `bg-secondary text-secondary-foreground`
40+
variant: 'solid'
7341
},
7442
{
43+
class: `bg-accent text-accent-foreground`,
7544
color: 'accent',
76-
variant: 'solid',
77-
class: `bg-accent text-accent-foreground`
45+
variant: 'solid'
7846
},
7947
{
48+
class: 'bg-primary/10',
8049
color: 'primary',
81-
variant: ['soft', 'ghost'],
82-
class: 'bg-primary/10'
50+
variant: ['soft', 'ghost']
8351
},
8452
{
53+
class: 'bg-destructive/10',
8554
color: 'destructive',
86-
variant: ['soft', 'ghost'],
87-
class: 'bg-destructive/10'
55+
variant: ['soft', 'ghost']
8856
},
8957
{
58+
class: 'bg-success/10',
9059
color: 'success',
91-
variant: ['soft', 'ghost'],
92-
class: 'bg-success/10'
60+
variant: ['soft', 'ghost']
9361
},
9462
{
63+
class: 'bg-warning/10',
9564
color: 'warning',
96-
variant: ['soft', 'ghost'],
97-
class: 'bg-warning/10'
65+
variant: ['soft', 'ghost']
9866
},
9967
{
68+
class: 'bg-info/10',
10069
color: 'info',
101-
variant: ['soft', 'ghost'],
102-
class: 'bg-info/10'
70+
variant: ['soft', 'ghost']
10371
},
10472
{
73+
class: 'bg-carbon/10',
10574
color: 'carbon',
106-
variant: ['soft', 'ghost'],
107-
class: 'bg-carbon/10'
75+
variant: ['soft', 'ghost']
10876
},
10977
{
78+
class: 'bg-secondary-foreground/5',
11079
color: 'secondary',
111-
variant: ['soft', 'ghost'],
112-
class: 'bg-secondary-foreground/5'
80+
variant: ['soft', 'ghost']
11381
},
11482
{
83+
class: 'bg-accent-foreground/5',
11584
color: 'accent',
116-
variant: ['soft', 'ghost'],
117-
class: 'bg-accent-foreground/5'
85+
variant: ['soft', 'ghost']
11886
}
11987
],
12088
defaultVariants: {
12189
color: 'primary',
122-
variant: 'solid',
90+
shape: 'auto',
12391
size: 'md',
124-
shape: 'auto'
92+
variant: 'solid'
93+
},
94+
variants: {
95+
color: {
96+
accent: 'border-accent-foreground/50 text-accent-foreground',
97+
carbon: 'border-carbon text-carbon',
98+
destructive: 'border-destructive text-destructive',
99+
info: 'border-info text-info',
100+
primary: 'border-primary text-primary',
101+
secondary: 'border-secondary-foreground/50 text-secondary-foreground',
102+
success: 'border-success text-success',
103+
warning: 'border-warning text-warning'
104+
},
105+
shape: {
106+
auto: 'rounded-md',
107+
rounded: 'rounded-full'
108+
},
109+
size: {
110+
'2xl': 'gap-2 h-7 px-4 text-base',
111+
lg: 'gap-1.25 h-5 px-2.5 text-xs',
112+
md: 'gap-1 h-4.5 px-2 text-2xs',
113+
sm: 'gap-0.75 h-4 px-1.5 text-3xs',
114+
xl: 'gap-1.5 h-6 px-3 text-sm',
115+
xs: 'gap-0.5 h-3.5 px-1 text-4xs'
116+
},
117+
variant: {
118+
ghost: '',
119+
outline: 'bg-background',
120+
pure: 'bg-background text-foreground border-border',
121+
raw: 'bg-transparent border-0',
122+
soft: 'border-0',
123+
solid: ''
124+
}
125125
}
126126
});
127127

0 commit comments

Comments
 (0)