@douyinfe/semi-foundation 2.7.0 → 2.7.1
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/button/button.scss
CHANGED
|
@@ -24,8 +24,16 @@ $module: #{$prefix}-button;
|
|
|
24
24
|
vertical-align: middle;
|
|
25
25
|
white-space: nowrap;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
// the specificity of `.#{$module}:focus-visible` may lower than `reset.css` default `focus-visible` style
|
|
28
|
+
// so we add a class at the same level
|
|
29
|
+
&.#{$module}-primary,
|
|
30
|
+
&.#{$module}-secondary,
|
|
31
|
+
&.#{$module}-tertiary,
|
|
32
|
+
&.#{$module}-warning,
|
|
33
|
+
&.#{$module}-danger {
|
|
34
|
+
&:focus-visible {
|
|
35
|
+
outline: $width-button-outline solid $color-button_primary-outline-focus;
|
|
36
|
+
}
|
|
29
37
|
}
|
|
30
38
|
|
|
31
39
|
&-danger {
|
|
@@ -41,8 +49,8 @@ $module: #{$prefix}-button;
|
|
|
41
49
|
&.#{$module}-borderless {
|
|
42
50
|
color: $color-button_danger-bg-default;
|
|
43
51
|
}
|
|
44
|
-
&:not(.#{$module}-borderless):not(.#{$module}-light):focus {
|
|
45
|
-
outline
|
|
52
|
+
&:not(.#{$module}-borderless):not(.#{$module}-light):focus-visible {
|
|
53
|
+
outline: $width-button-outline solid $color-button_danger-outline-focus;
|
|
46
54
|
}
|
|
47
55
|
}
|
|
48
56
|
&-warning {
|
|
@@ -58,8 +66,8 @@ $module: #{$prefix}-button;
|
|
|
58
66
|
&.#{$module}-borderless {
|
|
59
67
|
color: $color-button_warning-bg-default;
|
|
60
68
|
}
|
|
61
|
-
&:not(.#{$module}-borderless):not(.#{$module}-light):focus {
|
|
62
|
-
outline
|
|
69
|
+
&:not(.#{$module}-borderless):not(.#{$module}-light):focus-visible {
|
|
70
|
+
outline: $width-button-outline solid $color-button_warning-outline-focus;
|
|
63
71
|
}
|
|
64
72
|
}
|
|
65
73
|
&-tertiary {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
vertical-align: middle;
|
|
45
45
|
white-space: nowrap;
|
|
46
46
|
}
|
|
47
|
-
.semi-button:focus {
|
|
47
|
+
.semi-button.semi-button-primary:focus-visible, .semi-button.semi-button-secondary:focus-visible, .semi-button.semi-button-tertiary:focus-visible, .semi-button.semi-button-warning:focus-visible, .semi-button.semi-button-danger:focus-visible {
|
|
48
48
|
outline: 2px solid var(--semi-color-primary-light-active);
|
|
49
49
|
}
|
|
50
50
|
.semi-button-danger {
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
.semi-button-danger.semi-button-light, .semi-button-danger.semi-button-borderless {
|
|
61
61
|
color: var(--semi-color-danger);
|
|
62
62
|
}
|
|
63
|
-
.semi-button-danger:not(.semi-button-borderless):not(.semi-button-light):focus {
|
|
64
|
-
outline
|
|
63
|
+
.semi-button-danger:not(.semi-button-borderless):not(.semi-button-light):focus-visible {
|
|
64
|
+
outline: 2px solid var(--semi-color-danger-light-active);
|
|
65
65
|
}
|
|
66
66
|
.semi-button-warning {
|
|
67
67
|
background-color: var(--semi-color-warning);
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
.semi-button-warning.semi-button-light, .semi-button-warning.semi-button-borderless {
|
|
77
77
|
color: var(--semi-color-warning);
|
|
78
78
|
}
|
|
79
|
-
.semi-button-warning:not(.semi-button-borderless):not(.semi-button-light):focus {
|
|
80
|
-
outline
|
|
79
|
+
.semi-button-warning:not(.semi-button-borderless):not(.semi-button-light):focus-visible {
|
|
80
|
+
outline: 2px solid var(--semi-color-warning-light-active);
|
|
81
81
|
}
|
|
82
82
|
.semi-button-tertiary {
|
|
83
83
|
background-color: var(--semi-color-tertiary);
|
|
@@ -24,8 +24,16 @@ $module: #{$prefix}-button;
|
|
|
24
24
|
vertical-align: middle;
|
|
25
25
|
white-space: nowrap;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
// the specificity of `.#{$module}:focus-visible` may lower than `reset.css` default `focus-visible` style
|
|
28
|
+
// so we add a class at the same level
|
|
29
|
+
&.#{$module}-primary,
|
|
30
|
+
&.#{$module}-secondary,
|
|
31
|
+
&.#{$module}-tertiary,
|
|
32
|
+
&.#{$module}-warning,
|
|
33
|
+
&.#{$module}-danger {
|
|
34
|
+
&:focus-visible {
|
|
35
|
+
outline: $width-button-outline solid $color-button_primary-outline-focus;
|
|
36
|
+
}
|
|
29
37
|
}
|
|
30
38
|
|
|
31
39
|
&-danger {
|
|
@@ -41,8 +49,8 @@ $module: #{$prefix}-button;
|
|
|
41
49
|
&.#{$module}-borderless {
|
|
42
50
|
color: $color-button_danger-bg-default;
|
|
43
51
|
}
|
|
44
|
-
&:not(.#{$module}-borderless):not(.#{$module}-light):focus {
|
|
45
|
-
outline
|
|
52
|
+
&:not(.#{$module}-borderless):not(.#{$module}-light):focus-visible {
|
|
53
|
+
outline: $width-button-outline solid $color-button_danger-outline-focus;
|
|
46
54
|
}
|
|
47
55
|
}
|
|
48
56
|
&-warning {
|
|
@@ -58,8 +66,8 @@ $module: #{$prefix}-button;
|
|
|
58
66
|
&.#{$module}-borderless {
|
|
59
67
|
color: $color-button_warning-bg-default;
|
|
60
68
|
}
|
|
61
|
-
&:not(.#{$module}-borderless):not(.#{$module}-light):focus {
|
|
62
|
-
outline
|
|
69
|
+
&:not(.#{$module}-borderless):not(.#{$module}-light):focus-visible {
|
|
70
|
+
outline: $width-button-outline solid $color-button_warning-outline-focus;
|
|
63
71
|
}
|
|
64
72
|
}
|
|
65
73
|
&-tertiary {
|
package/lib/es/button/button.css
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
vertical-align: middle;
|
|
45
45
|
white-space: nowrap;
|
|
46
46
|
}
|
|
47
|
-
.semi-button:focus {
|
|
47
|
+
.semi-button.semi-button-primary:focus-visible, .semi-button.semi-button-secondary:focus-visible, .semi-button.semi-button-tertiary:focus-visible, .semi-button.semi-button-warning:focus-visible, .semi-button.semi-button-danger:focus-visible {
|
|
48
48
|
outline: 2px solid var(--semi-color-primary-light-active);
|
|
49
49
|
}
|
|
50
50
|
.semi-button-danger {
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
.semi-button-danger.semi-button-light, .semi-button-danger.semi-button-borderless {
|
|
61
61
|
color: var(--semi-color-danger);
|
|
62
62
|
}
|
|
63
|
-
.semi-button-danger:not(.semi-button-borderless):not(.semi-button-light):focus {
|
|
64
|
-
outline
|
|
63
|
+
.semi-button-danger:not(.semi-button-borderless):not(.semi-button-light):focus-visible {
|
|
64
|
+
outline: 2px solid var(--semi-color-danger-light-active);
|
|
65
65
|
}
|
|
66
66
|
.semi-button-warning {
|
|
67
67
|
background-color: var(--semi-color-warning);
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
.semi-button-warning.semi-button-light, .semi-button-warning.semi-button-borderless {
|
|
77
77
|
color: var(--semi-color-warning);
|
|
78
78
|
}
|
|
79
|
-
.semi-button-warning:not(.semi-button-borderless):not(.semi-button-light):focus {
|
|
80
|
-
outline
|
|
79
|
+
.semi-button-warning:not(.semi-button-borderless):not(.semi-button-light):focus-visible {
|
|
80
|
+
outline: 2px solid var(--semi-color-warning-light-active);
|
|
81
81
|
}
|
|
82
82
|
.semi-button-tertiary {
|
|
83
83
|
background-color: var(--semi-color-tertiary);
|
|
@@ -24,8 +24,16 @@ $module: #{$prefix}-button;
|
|
|
24
24
|
vertical-align: middle;
|
|
25
25
|
white-space: nowrap;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
// the specificity of `.#{$module}:focus-visible` may lower than `reset.css` default `focus-visible` style
|
|
28
|
+
// so we add a class at the same level
|
|
29
|
+
&.#{$module}-primary,
|
|
30
|
+
&.#{$module}-secondary,
|
|
31
|
+
&.#{$module}-tertiary,
|
|
32
|
+
&.#{$module}-warning,
|
|
33
|
+
&.#{$module}-danger {
|
|
34
|
+
&:focus-visible {
|
|
35
|
+
outline: $width-button-outline solid $color-button_primary-outline-focus;
|
|
36
|
+
}
|
|
29
37
|
}
|
|
30
38
|
|
|
31
39
|
&-danger {
|
|
@@ -41,8 +49,8 @@ $module: #{$prefix}-button;
|
|
|
41
49
|
&.#{$module}-borderless {
|
|
42
50
|
color: $color-button_danger-bg-default;
|
|
43
51
|
}
|
|
44
|
-
&:not(.#{$module}-borderless):not(.#{$module}-light):focus {
|
|
45
|
-
outline
|
|
52
|
+
&:not(.#{$module}-borderless):not(.#{$module}-light):focus-visible {
|
|
53
|
+
outline: $width-button-outline solid $color-button_danger-outline-focus;
|
|
46
54
|
}
|
|
47
55
|
}
|
|
48
56
|
&-warning {
|
|
@@ -58,8 +66,8 @@ $module: #{$prefix}-button;
|
|
|
58
66
|
&.#{$module}-borderless {
|
|
59
67
|
color: $color-button_warning-bg-default;
|
|
60
68
|
}
|
|
61
|
-
&:not(.#{$module}-borderless):not(.#{$module}-light):focus {
|
|
62
|
-
outline
|
|
69
|
+
&:not(.#{$module}-borderless):not(.#{$module}-light):focus-visible {
|
|
70
|
+
outline: $width-button-outline solid $color-button_warning-outline-focus;
|
|
63
71
|
}
|
|
64
72
|
}
|
|
65
73
|
&-tertiary {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@babel/runtime-corejs3": "^7.15.4",
|
|
11
|
-
"@douyinfe/semi-animation": "2.7.
|
|
11
|
+
"@douyinfe/semi-animation": "2.7.1",
|
|
12
12
|
"async-validator": "^3.5.0",
|
|
13
13
|
"classnames": "^2.2.6",
|
|
14
14
|
"date-fns": "^2.9.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"*.scss",
|
|
25
25
|
"*.css"
|
|
26
26
|
],
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "d0dbd6f932a74386b429dedbc32ae92d9e0af7b9",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
30
30
|
"@babel/plugin-transform-runtime": "^7.15.8",
|