File tree Expand file tree Collapse file tree 5 files changed +36
-43
lines changed Expand file tree Collapse file tree 5 files changed +36
-43
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @giveth/ui-design-system" ,
3
- "version" : " 1.11.26 " ,
3
+ "version" : " 1.11.27 " ,
4
4
"files" : [
5
5
" /lib"
6
6
],
Original file line number Diff line number Diff line change @@ -22,92 +22,92 @@ const ButtonLinkContainer = styled.span<IButtonLinkContainerProps>`
22
22
? css `
23
23
color : ${ brandColors . giv [ 400 ] } ;
24
24
background-color : ${ brandColors . giv [ 500 ] } ;
25
- `
25
+ `
26
26
: css `
27
27
color : ${ neutralColors . gray [ 100 ] } ;
28
28
background-color : ${ brandColors . pinky [ 500 ] } ;
29
- ` ;
29
+ ` ;
30
30
case 'secondary' :
31
31
return props . disabled
32
32
? css `
33
33
color : ${ brandColors . giv [ 400 ] } ;
34
34
background-color : ${ brandColors . giv [ 500 ] } ;
35
- `
35
+ `
36
36
: css `
37
37
color : ${ neutralColors . gray [ 100 ] } ;
38
38
background-color : ${ brandColors . giv [ 500 ] } ;
39
- ` ;
39
+ ` ;
40
40
case 'texty' :
41
41
return props . disabled
42
42
? css `
43
43
color : ${ brandColors . giv [ 500 ] } ;
44
44
background-color : unset;
45
45
padding : 8px 24px ;
46
- `
46
+ `
47
47
: css `
48
48
color : ${ brandColors . deep [ 100 ] } ;
49
49
background-color : unset;
50
50
padding : 8px 24px ;
51
- ` ;
51
+ ` ;
52
52
case 'texty-gray' :
53
53
return props . disabled
54
54
? css `
55
55
color : ${ neutralColors . gray [ 500 ] } ;
56
56
background-color : unset;
57
57
padding : 8px 24px ;
58
58
opacity : 0.5 ;
59
- `
59
+ `
60
60
: css `
61
61
color : ${ neutralColors . gray [ 500 ] } ;
62
62
background-color : unset;
63
63
padding : 8px 24px ;
64
- ` ;
64
+ ` ;
65
65
case 'texty-primary' :
66
66
return props . disabled
67
67
? css `
68
68
color : ${ brandColors . pinky [ 500 ] } ;
69
69
background-color : unset;
70
70
padding : 8px 24px ;
71
71
opacity : 0.5 ;
72
- `
72
+ `
73
73
: css `
74
74
color : ${ brandColors . pinky [ 500 ] } ;
75
75
background-color : unset;
76
76
padding : 8px 24px ;
77
- ` ;
77
+ ` ;
78
78
case 'texty-secondary' :
79
79
return props . disabled
80
80
? css `
81
81
color : ${ brandColors . giv [ 500 ] } ;
82
82
background-color : unset;
83
83
padding : 8px 24px ;
84
84
opacity : 0.5 ;
85
- `
85
+ `
86
86
: css `
87
87
color : ${ brandColors . giv [ 500 ] } ;
88
88
background-color : unset;
89
89
padding : 8px 24px ;
90
- ` ;
90
+ ` ;
91
91
92
92
default :
93
93
return props . disabled
94
94
? css `
95
95
color : ${ brandColors . giv [ 400 ] } ;
96
96
background-color : ${ brandColors . giv [ 500 ] } ;
97
- `
97
+ `
98
98
: css `
99
99
color : ${ neutralColors . gray [ 100 ] } ;
100
100
background-color : ${ brandColors . pinky [ 500 ] } ;
101
- ` ;
101
+ ` ;
102
102
}
103
103
} }
104
104
${ props =>
105
105
props . disabled
106
106
? ''
107
107
: css `
108
108
cursor : pointer;
109
- ` }
110
- :hover {
109
+ ` }
110
+ & :hover {
111
111
${ props => {
112
112
if ( props . disabled ) return '' ;
113
113
switch ( props . $linkType ) {
Original file line number Diff line number Diff line change @@ -9,9 +9,7 @@ const ButtonLinkContainer = styled.span<IButtonLinkContainerProps>`
9
9
border: 2px solid;
10
10
border-radius: 48px;
11
11
padding: ${ props => ( props . size === 'large' ? '22px' : '14px' ) } 24px;
12
- transition:
13
- color 0.3s ease,
14
- border-color 0.3s ease,
12
+ transition: color 0.3s ease, border-color 0.3s ease,
15
13
background-color 0.3s ease;
16
14
background-color: unset;
17
15
display: flex;
@@ -26,35 +24,35 @@ const ButtonLinkContainer = styled.span<IButtonLinkContainerProps>`
26
24
? css `
27
25
color : ${ brandColors . giv [ 500 ] } ;
28
26
border-color : ${ brandColors . giv [ 500 ] } ;
29
- `
27
+ `
30
28
: css `
31
29
color : ${ brandColors . pinky [ 400 ] } ;
32
30
border-color : ${ brandColors . pinky [ 400 ] } ;
33
- ` ;
31
+ ` ;
34
32
case 'secondary' :
35
33
return props . disabled
36
34
? css `
37
35
color : ${ brandColors . giv [ 500 ] } ;
38
36
border-color : ${ brandColors . giv [ 500 ] } ;
39
- `
37
+ `
40
38
: css `
41
39
color : ${ brandColors . giv [ '000' ] } ;
42
40
border-color : ${ brandColors . giv [ '000' ] } ;
43
- ` ;
41
+ ` ;
44
42
default :
45
43
return props . disabled
46
44
? css `
47
45
color : ${ brandColors . giv [ 500 ] } ;
48
46
border-color : ${ brandColors . giv [ 500 ] } ;
49
- `
47
+ `
50
48
: css `
51
49
color : ${ brandColors . pinky [ 400 ] } ;
52
50
border-color : ${ brandColors . pinky [ 400 ] } ;
53
- ` ;
51
+ ` ;
54
52
}
55
53
} }
56
54
${ props => ( props . disabled ? '' : 'cursor: pointer;' ) }
57
- :hover {
55
+ & :hover {
58
56
${ props => {
59
57
if ( props . disabled ) return '' ;
60
58
switch ( props . $linkType ) {
Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ const ButtonContainer = styled.button<IButtonContainerProps>`
10
10
border: 0 solid;
11
11
border-radius: 48px;
12
12
padding: ${ props => ( props . size === 'large' ? '24px' : '16px' ) } 24px;
13
- transition:
14
- background-color 0.3s ease,
15
- color 0.3s ease,
16
- opacity 0.3s ease;
13
+ transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
17
14
display: flex;
18
15
justify-content: center;
19
16
align-items: center;
@@ -109,7 +106,7 @@ const ButtonContainer = styled.button<IButtonContainerProps>`
109
106
}
110
107
} }
111
108
${ props => ( props . disabled ? '' : 'cursor: pointer;' ) }
112
- :hover {
109
+ & :hover {
113
110
${ props => {
114
111
if ( props . disabled ) return '' ;
115
112
switch ( props . $buttonType ) {
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ const ButtonContainer = styled.button<IButtonContainerProps>`
10
10
border: 2px solid;
11
11
border-radius: 48px;
12
12
padding: ${ props => ( props . size === 'large' ? '22px' : '14px' ) } 24px;
13
- transition:
14
- color 0.3s ease,
15
- border-color 0.3s ease,
13
+ transition: color 0.3s ease, border-color 0.3s ease,
16
14
background-color 0.3s ease;
17
15
background: unset;
18
16
display: flex;
@@ -28,42 +26,42 @@ const ButtonContainer = styled.button<IButtonContainerProps>`
28
26
? css `
29
27
color : ${ brandColors . pinky [ 300 ] } ;
30
28
border-color : ${ brandColors . pinky [ 300 ] } ;
31
- `
29
+ `
32
30
: css `
33
31
color : ${ brandColors . pinky [ 400 ] } ;
34
32
border-color : ${ brandColors . pinky [ 400 ] } ;
35
- ` ;
33
+ ` ;
36
34
case 'secondary' :
37
35
return props . disabled
38
36
? css `
39
37
color : ${ brandColors . giv [ 500 ] } ;
40
38
border-color : ${ brandColors . giv [ 500 ] } ;
41
39
opacity : 0.4 ;
42
- `
40
+ `
43
41
: css `
44
42
color : ${ brandColors . giv [ '000' ] } ;
45
43
border-color : ${ brandColors . giv [ '000' ] } ;
46
- ` ;
44
+ ` ;
47
45
default :
48
46
return props . disabled
49
47
? css `
50
48
color : ${ brandColors . giv [ 500 ] } ;
51
49
border-color : ${ brandColors . giv [ 500 ] } ;
52
50
opacity : 0.4 ;
53
- `
51
+ `
54
52
: css `
55
53
color : ${ brandColors . pinky [ 400 ] } ;
56
54
border-color : ${ brandColors . pinky [ 400 ] } ;
57
- ` ;
55
+ ` ;
58
56
}
59
57
} }
60
58
${ props =>
61
59
props . disabled
62
60
? ''
63
61
: css `
64
62
cursor : pointer;
65
- ` }
66
- :hover {
63
+ ` }
64
+ & :hover {
67
65
${ props => {
68
66
if ( props . disabled ) return '' ;
69
67
switch ( props . $buttonType ) {
You can’t perform that action at this time.
0 commit comments