@douyinfe/semi-foundation 2.17.1 → 2.18.0-beta.0
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/anchor/anchor.scss +15 -1
- package/anchor/animation.scss +6 -0
- package/anchor/variables.scss +7 -1
- package/autoComplete/animation.scss +3 -0
- package/autoComplete/autoComplete.scss +2 -1
- package/autoComplete/constants.ts +3 -0
- package/autoComplete/option.scss +93 -0
- package/autoComplete/optionFoundation.ts +41 -0
- package/autoComplete/variables.scss +47 -0
- package/avatar/avatar.scss +5 -6
- package/breadcrumb/animation.scss +6 -0
- package/breadcrumb/breadcrumb.scss +4 -1
- package/button/animation.scss +67 -0
- package/button/button.scss +29 -0
- package/calendar/eventUtil.ts +5 -3
- package/calendar/foundation.ts +7 -3
- package/carousel/animation.scss +7 -0
- package/carousel/carousel.scss +30 -40
- package/carousel/foundation.ts +5 -5
- package/cascader/animation.scss +4 -0
- package/cascader/cascader.scss +2 -0
- package/checkbox/animation.scss +10 -0
- package/checkbox/checkbox.scss +19 -4
- package/datePicker/animation.scss +4 -0
- package/dropdown/animation.scss +3 -0
- package/dropdown/dropdown.scss +5 -1
- package/form/form.scss +4 -3
- package/form/variables.scss +1 -0
- package/gulpfile.js +3 -1
- package/input/animation.scss +14 -0
- package/input/input.scss +12 -0
- package/input/textarea.scss +3 -0
- package/inputNumber/animation.scss +10 -0
- package/inputNumber/inputNumber.scss +4 -0
- package/lib/cjs/anchor/anchor.css +12 -0
- package/lib/cjs/anchor/anchor.scss +15 -1
- package/lib/cjs/anchor/animation.css +3 -0
- package/lib/cjs/anchor/animation.scss +6 -0
- package/lib/cjs/anchor/variables.scss +7 -1
- package/lib/cjs/autoComplete/animation.css +3 -0
- package/lib/cjs/autoComplete/animation.scss +3 -0
- package/lib/cjs/autoComplete/autoComplete.css +17 -16
- package/lib/cjs/autoComplete/autoComplete.scss +2 -1
- package/lib/cjs/autoComplete/constants.d.ts +2 -0
- package/lib/cjs/autoComplete/constants.js +3 -1
- package/lib/cjs/autoComplete/option.scss +93 -0
- package/lib/cjs/autoComplete/optionFoundation.d.ts +21 -0
- package/lib/cjs/autoComplete/optionFoundation.js +42 -0
- package/lib/cjs/autoComplete/variables.scss +47 -0
- package/lib/cjs/avatar/avatar.scss +5 -6
- package/lib/cjs/breadcrumb/animation.css +3 -0
- package/lib/cjs/breadcrumb/animation.scss +6 -0
- package/lib/cjs/breadcrumb/breadcrumb.css +3 -1
- package/lib/cjs/breadcrumb/breadcrumb.scss +4 -1
- package/lib/cjs/button/animation.css +3 -0
- package/lib/cjs/button/animation.scss +67 -0
- package/lib/cjs/button/button.css +14 -0
- package/lib/cjs/button/button.scss +29 -0
- package/lib/cjs/calendar/eventUtil.d.ts +2 -1
- package/lib/cjs/calendar/eventUtil.js +4 -1
- package/lib/cjs/calendar/foundation.d.ts +2 -1
- package/lib/cjs/calendar/foundation.js +8 -2
- package/lib/cjs/carousel/animation.css +3 -0
- package/lib/cjs/carousel/animation.scss +7 -0
- package/lib/cjs/carousel/carousel.css +6 -1
- package/lib/cjs/carousel/carousel.scss +30 -40
- package/lib/cjs/carousel/foundation.d.ts +1 -1
- package/lib/cjs/carousel/foundation.js +5 -5
- package/lib/cjs/cascader/animation.css +3 -0
- package/lib/cjs/cascader/animation.scss +4 -0
- package/lib/cjs/cascader/cascader.css +1 -0
- package/lib/cjs/cascader/cascader.scss +2 -0
- package/lib/cjs/checkbox/animation.css +3 -0
- package/lib/cjs/checkbox/animation.scss +10 -0
- package/lib/cjs/checkbox/checkbox.css +3 -0
- package/lib/cjs/checkbox/checkbox.scss +19 -4
- package/lib/cjs/datePicker/animation.css +3 -0
- package/lib/cjs/datePicker/animation.scss +4 -0
- package/lib/cjs/dropdown/animation.css +3 -0
- package/lib/cjs/dropdown/animation.scss +3 -0
- package/lib/cjs/dropdown/dropdown.css +1 -0
- package/lib/cjs/dropdown/dropdown.scss +5 -1
- package/lib/cjs/form/form.css +3 -0
- package/lib/cjs/form/form.scss +4 -3
- package/lib/cjs/form/variables.scss +1 -0
- package/lib/cjs/input/animation.css +3 -0
- package/lib/cjs/input/animation.scss +14 -0
- package/lib/cjs/input/input.css +7 -0
- package/lib/cjs/input/input.scss +12 -0
- package/lib/cjs/input/textarea.css +1 -0
- package/lib/cjs/input/textarea.scss +3 -0
- package/lib/cjs/inputNumber/animation.css +3 -0
- package/lib/cjs/inputNumber/animation.scss +10 -0
- package/lib/cjs/inputNumber/inputNumber.css +2 -0
- package/lib/cjs/inputNumber/inputNumber.scss +4 -0
- package/lib/cjs/modal/modal.css +4 -0
- package/lib/cjs/modal/modal.scss +4 -0
- package/lib/cjs/navigation/animation.css +3 -0
- package/lib/cjs/navigation/animation.scss +4 -0
- package/lib/cjs/navigation/navigation.css +1 -0
- package/lib/cjs/navigation/navigation.scss +3 -0
- package/lib/cjs/notification/notification.scss +8 -9
- package/lib/cjs/pagination/animation.css +3 -0
- package/lib/cjs/pagination/animation.scss +11 -0
- package/lib/cjs/pagination/pagination.css +2 -0
- package/lib/cjs/pagination/pagination.scss +4 -0
- package/lib/cjs/radio/animation.css +3 -0
- package/lib/cjs/radio/animation.scss +10 -0
- package/lib/cjs/radio/radio.css +4 -0
- package/lib/cjs/radio/radio.scss +10 -1
- package/lib/cjs/rating/animation.css +3 -0
- package/lib/cjs/rating/animation.scss +6 -0
- package/lib/cjs/rating/rating.css +2 -0
- package/lib/cjs/rating/rating.scss +3 -0
- package/lib/cjs/scrollList/animation.css +3 -0
- package/lib/cjs/scrollList/animation.scss +3 -0
- package/lib/cjs/scrollList/scrollList.css +1 -0
- package/lib/cjs/scrollList/scrollList.scss +7 -9
- package/lib/cjs/select/animation.css +3 -0
- package/lib/cjs/select/animation.scss +15 -0
- package/lib/cjs/select/option.scss +1 -0
- package/lib/cjs/select/select.css +6 -2
- package/lib/cjs/select/select.scss +7 -2
- package/lib/cjs/select/variables.scss +5 -5
- package/lib/cjs/sideSheet/animation.css +3 -0
- package/lib/cjs/sideSheet/animation.scss +7 -0
- package/lib/cjs/sideSheet/sideSheet.css +4 -0
- package/lib/cjs/sideSheet/sideSheet.scss +9 -2
- package/lib/cjs/skeleton/skeleton.scss +2 -4
- package/lib/cjs/slider/animation.css +3 -0
- package/lib/cjs/slider/animation.scss +7 -0
- package/lib/cjs/slider/slider.css +2 -1
- package/lib/cjs/slider/slider.scss +4 -3
- package/lib/cjs/spin/spin.scss +10 -11
- package/lib/cjs/steps/animation.css +3 -0
- package/lib/cjs/steps/animation.scss +17 -0
- package/lib/cjs/steps/bacisSteps.scss +11 -3
- package/lib/cjs/steps/fillSteps.scss +6 -1
- package/lib/cjs/steps/navSteps.scss +1 -1
- package/lib/cjs/steps/steps.css +9 -0
- package/lib/cjs/steps/steps.scss +1 -0
- package/lib/cjs/switch/animation.css +3 -0
- package/lib/cjs/switch/animation.scss +4 -0
- package/lib/cjs/switch/foundation.js +2 -2
- package/lib/cjs/switch/switch.css +1 -1
- package/lib/cjs/switch/switch.scss +4 -1
- package/lib/cjs/table/animation.css +3 -0
- package/lib/cjs/table/animation.scss +3 -0
- package/lib/cjs/table/table.css +6 -0
- package/lib/cjs/table/table.scss +21 -22
- package/lib/cjs/tabs/animation.css +3 -0
- package/lib/cjs/tabs/animation.scss +23 -0
- package/lib/cjs/tabs/tabs.css +9 -0
- package/lib/cjs/tabs/tabs.scss +18 -2
- package/lib/cjs/tagInput/animation.css +3 -0
- package/lib/cjs/tagInput/animation.scss +7 -0
- package/lib/cjs/tagInput/tagInput.css +1 -0
- package/lib/cjs/tagInput/tagInput.scss +4 -1
- package/lib/cjs/timePicker/utils/animation.css +3 -0
- package/lib/cjs/timePicker/utils/animation.scss +7 -0
- package/lib/cjs/transfer/animation.css +3 -0
- package/lib/cjs/transfer/animation.scss +4 -0
- package/lib/cjs/transfer/transfer.css +1 -0
- package/lib/cjs/transfer/transfer.scss +4 -0
- package/lib/cjs/tree/animation.css +3 -0
- package/lib/cjs/tree/animation.scss +7 -0
- package/lib/cjs/tree/tree.css +2 -0
- package/lib/cjs/tree/tree.scss +3 -0
- package/lib/es/anchor/anchor.css +12 -0
- package/lib/es/anchor/anchor.scss +15 -1
- package/lib/es/anchor/animation.css +3 -0
- package/lib/es/anchor/animation.scss +6 -0
- package/lib/es/anchor/variables.scss +7 -1
- package/lib/es/autoComplete/animation.css +3 -0
- package/lib/es/autoComplete/animation.scss +3 -0
- package/lib/es/autoComplete/autoComplete.css +17 -16
- package/lib/es/autoComplete/autoComplete.scss +2 -1
- package/lib/es/autoComplete/constants.d.ts +2 -0
- package/lib/es/autoComplete/constants.js +3 -1
- package/lib/es/autoComplete/option.scss +93 -0
- package/lib/es/autoComplete/optionFoundation.d.ts +21 -0
- package/lib/es/autoComplete/optionFoundation.js +26 -0
- package/lib/es/autoComplete/variables.scss +47 -0
- package/lib/es/avatar/avatar.scss +5 -6
- package/lib/es/breadcrumb/animation.css +3 -0
- package/lib/es/breadcrumb/animation.scss +6 -0
- package/lib/es/breadcrumb/breadcrumb.css +3 -1
- package/lib/es/breadcrumb/breadcrumb.scss +4 -1
- package/lib/es/button/animation.css +3 -0
- package/lib/es/button/animation.scss +67 -0
- package/lib/es/button/button.css +14 -0
- package/lib/es/button/button.scss +29 -0
- package/lib/es/calendar/eventUtil.d.ts +2 -1
- package/lib/es/calendar/eventUtil.js +4 -1
- package/lib/es/calendar/foundation.d.ts +2 -1
- package/lib/es/calendar/foundation.js +8 -2
- package/lib/es/carousel/animation.css +3 -0
- package/lib/es/carousel/animation.scss +7 -0
- package/lib/es/carousel/carousel.css +6 -1
- package/lib/es/carousel/carousel.scss +30 -40
- package/lib/es/carousel/foundation.d.ts +1 -1
- package/lib/es/carousel/foundation.js +5 -5
- package/lib/es/cascader/animation.css +3 -0
- package/lib/es/cascader/animation.scss +4 -0
- package/lib/es/cascader/cascader.css +1 -0
- package/lib/es/cascader/cascader.scss +2 -0
- package/lib/es/checkbox/animation.css +3 -0
- package/lib/es/checkbox/animation.scss +10 -0
- package/lib/es/checkbox/checkbox.css +3 -0
- package/lib/es/checkbox/checkbox.scss +19 -4
- package/lib/es/datePicker/animation.css +3 -0
- package/lib/es/datePicker/animation.scss +4 -0
- package/lib/es/dropdown/animation.css +3 -0
- package/lib/es/dropdown/animation.scss +3 -0
- package/lib/es/dropdown/dropdown.css +1 -0
- package/lib/es/dropdown/dropdown.scss +5 -1
- package/lib/es/form/form.css +3 -0
- package/lib/es/form/form.scss +4 -3
- package/lib/es/form/variables.scss +1 -0
- package/lib/es/input/animation.css +3 -0
- package/lib/es/input/animation.scss +14 -0
- package/lib/es/input/input.css +7 -0
- package/lib/es/input/input.scss +12 -0
- package/lib/es/input/textarea.css +1 -0
- package/lib/es/input/textarea.scss +3 -0
- package/lib/es/inputNumber/animation.css +3 -0
- package/lib/es/inputNumber/animation.scss +10 -0
- package/lib/es/inputNumber/inputNumber.css +2 -0
- package/lib/es/inputNumber/inputNumber.scss +4 -0
- package/lib/es/modal/modal.css +4 -0
- package/lib/es/modal/modal.scss +4 -0
- package/lib/es/navigation/animation.css +3 -0
- package/lib/es/navigation/animation.scss +4 -0
- package/lib/es/navigation/navigation.css +1 -0
- package/lib/es/navigation/navigation.scss +3 -0
- package/lib/es/notification/notification.scss +8 -9
- package/lib/es/pagination/animation.css +3 -0
- package/lib/es/pagination/animation.scss +11 -0
- package/lib/es/pagination/pagination.css +2 -0
- package/lib/es/pagination/pagination.scss +4 -0
- package/lib/es/radio/animation.css +3 -0
- package/lib/es/radio/animation.scss +10 -0
- package/lib/es/radio/radio.css +4 -0
- package/lib/es/radio/radio.scss +10 -1
- package/lib/es/rating/animation.css +3 -0
- package/lib/es/rating/animation.scss +6 -0
- package/lib/es/rating/rating.css +2 -0
- package/lib/es/rating/rating.scss +3 -0
- package/lib/es/scrollList/animation.css +3 -0
- package/lib/es/scrollList/animation.scss +3 -0
- package/lib/es/scrollList/scrollList.css +1 -0
- package/lib/es/scrollList/scrollList.scss +7 -9
- package/lib/es/select/animation.css +3 -0
- package/lib/es/select/animation.scss +15 -0
- package/lib/es/select/option.scss +1 -0
- package/lib/es/select/select.css +6 -2
- package/lib/es/select/select.scss +7 -2
- package/lib/es/select/variables.scss +5 -5
- package/lib/es/sideSheet/animation.css +3 -0
- package/lib/es/sideSheet/animation.scss +7 -0
- package/lib/es/sideSheet/sideSheet.css +4 -0
- package/lib/es/sideSheet/sideSheet.scss +9 -2
- package/lib/es/skeleton/skeleton.scss +2 -4
- package/lib/es/slider/animation.css +3 -0
- package/lib/es/slider/animation.scss +7 -0
- package/lib/es/slider/slider.css +2 -1
- package/lib/es/slider/slider.scss +4 -3
- package/lib/es/spin/spin.scss +10 -11
- package/lib/es/steps/animation.css +3 -0
- package/lib/es/steps/animation.scss +17 -0
- package/lib/es/steps/bacisSteps.scss +11 -3
- package/lib/es/steps/fillSteps.scss +6 -1
- package/lib/es/steps/navSteps.scss +1 -1
- package/lib/es/steps/steps.css +9 -0
- package/lib/es/steps/steps.scss +1 -0
- package/lib/es/switch/animation.css +3 -0
- package/lib/es/switch/animation.scss +4 -0
- package/lib/es/switch/foundation.js +2 -2
- package/lib/es/switch/switch.css +1 -1
- package/lib/es/switch/switch.scss +4 -1
- package/lib/es/table/animation.css +3 -0
- package/lib/es/table/animation.scss +3 -0
- package/lib/es/table/table.css +6 -0
- package/lib/es/table/table.scss +21 -22
- package/lib/es/tabs/animation.css +3 -0
- package/lib/es/tabs/animation.scss +23 -0
- package/lib/es/tabs/tabs.css +9 -0
- package/lib/es/tabs/tabs.scss +18 -2
- package/lib/es/tagInput/animation.css +3 -0
- package/lib/es/tagInput/animation.scss +7 -0
- package/lib/es/tagInput/tagInput.css +1 -0
- package/lib/es/tagInput/tagInput.scss +4 -1
- package/lib/es/timePicker/utils/animation.css +3 -0
- package/lib/es/timePicker/utils/animation.scss +7 -0
- package/lib/es/transfer/animation.css +3 -0
- package/lib/es/transfer/animation.scss +4 -0
- package/lib/es/transfer/transfer.css +1 -0
- package/lib/es/transfer/transfer.scss +4 -0
- package/lib/es/tree/animation.css +3 -0
- package/lib/es/tree/animation.scss +7 -0
- package/lib/es/tree/tree.css +2 -0
- package/lib/es/tree/tree.scss +3 -0
- package/modal/modal.scss +4 -0
- package/navigation/animation.scss +4 -0
- package/navigation/navigation.scss +3 -0
- package/notification/notification.scss +8 -9
- package/package.json +2 -2
- package/pagination/animation.scss +11 -0
- package/pagination/pagination.scss +4 -0
- package/radio/animation.scss +10 -0
- package/radio/radio.scss +10 -1
- package/rating/animation.scss +6 -0
- package/rating/rating.scss +3 -0
- package/scrollList/animation.scss +3 -0
- package/scrollList/scrollList.scss +7 -9
- package/select/animation.scss +15 -0
- package/select/option.scss +1 -0
- package/select/select.scss +7 -2
- package/select/variables.scss +5 -5
- package/sideSheet/animation.scss +7 -0
- package/sideSheet/sideSheet.scss +9 -2
- package/skeleton/skeleton.scss +2 -4
- package/slider/animation.scss +7 -0
- package/slider/slider.scss +4 -3
- package/spin/spin.scss +10 -11
- package/steps/animation.scss +17 -0
- package/steps/bacisSteps.scss +11 -3
- package/steps/fillSteps.scss +6 -1
- package/steps/navSteps.scss +1 -1
- package/steps/steps.scss +1 -0
- package/switch/animation.scss +4 -0
- package/switch/foundation.ts +2 -2
- package/switch/switch.scss +4 -1
- package/table/animation.scss +3 -0
- package/table/table.scss +21 -22
- package/tabs/animation.scss +23 -0
- package/tabs/tabs.scss +18 -2
- package/tagInput/animation.scss +7 -0
- package/tagInput/tagInput.scss +4 -1
- package/timePicker/utils/animation.scss +7 -0
- package/transfer/animation.scss +4 -0
- package/transfer/transfer.scss +4 -0
- package/tree/animation.scss +7 -0
- package/tree/tree.scss +3 -0
- package/lib/cjs/select/option.css +0 -77
- package/lib/es/select/option.css +0 -77
package/carousel/carousel.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
@import './animation.scss';
|
|
2
3
|
|
|
3
4
|
$module: #{$prefix}-carousel;
|
|
4
5
|
|
|
@@ -23,22 +24,20 @@ $module: #{$prefix}-carousel;
|
|
|
23
24
|
&-current {
|
|
24
25
|
z-index: 1;
|
|
25
26
|
}
|
|
26
|
-
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&-fade {
|
|
30
|
-
|
|
31
30
|
> * {
|
|
32
31
|
opacity: 0;
|
|
33
32
|
}
|
|
34
|
-
|
|
33
|
+
|
|
35
34
|
.#{$module}-content-item-current {
|
|
36
35
|
opacity: 1;
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&-slide {
|
|
41
|
-
|
|
40
|
+
& > *:not(.#{$module}-content-item-current) {
|
|
42
41
|
visibility: hidden;
|
|
43
42
|
}
|
|
44
43
|
|
|
@@ -46,21 +45,20 @@ $module: #{$prefix}-carousel;
|
|
|
46
45
|
display: block;
|
|
47
46
|
animation: #{$module}-content-item-keyframe-slide-out;
|
|
48
47
|
}
|
|
49
|
-
|
|
48
|
+
|
|
50
49
|
.#{$module}-content-item-slide-in {
|
|
51
50
|
display: block;
|
|
52
51
|
animation: #{$module}-content-item-keyframe-slide-in;
|
|
53
52
|
}
|
|
54
|
-
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
&-reverse {
|
|
58
56
|
.#{$module}-content-item-slide-out {
|
|
59
|
-
animation: #{$module}-content-item-keyframe-slide-out-reverse
|
|
57
|
+
animation: #{$module}-content-item-keyframe-slide-out-reverse;
|
|
60
58
|
}
|
|
61
|
-
|
|
59
|
+
|
|
62
60
|
.#{$module}-content-item-slide-in {
|
|
63
|
-
animation: #{$module}-content-item-keyframe-slide-in-reverse
|
|
61
|
+
animation: #{$module}-content-item-keyframe-slide-in-reverse;
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
}
|
|
@@ -89,7 +87,6 @@ $module: #{$prefix}-carousel;
|
|
|
89
87
|
bottom: $spacing-carousel_indicator-padding;
|
|
90
88
|
}
|
|
91
89
|
|
|
92
|
-
|
|
93
90
|
&-dot {
|
|
94
91
|
.#{$module}-indicator-item {
|
|
95
92
|
border-radius: $radius-carousel_indicator_dot;
|
|
@@ -102,7 +99,6 @@ $module: #{$prefix}-carousel;
|
|
|
102
99
|
&-small {
|
|
103
100
|
width: $width-carousel_indicator_dot_small;
|
|
104
101
|
height: $width-carousel_indicator_dot_small;
|
|
105
|
-
|
|
106
102
|
}
|
|
107
103
|
|
|
108
104
|
&-medium {
|
|
@@ -112,6 +108,8 @@ $module: #{$prefix}-carousel;
|
|
|
112
108
|
|
|
113
109
|
&-primary {
|
|
114
110
|
background-color: $color-carousel_indicator_theme_primary-bg-default;
|
|
111
|
+
transition: background-color $transition_duration-carousel_indicator-bg
|
|
112
|
+
$transition_function-carousel_indicator-bg $transition_delay-carousel_indicator-bg;
|
|
115
113
|
|
|
116
114
|
&.#{$module}-indicator-item-active {
|
|
117
115
|
background: $color-carousel_indicator_theme_primary-bg-active;
|
|
@@ -127,8 +125,9 @@ $module: #{$prefix}-carousel;
|
|
|
127
125
|
}
|
|
128
126
|
|
|
129
127
|
&-light {
|
|
130
|
-
|
|
131
128
|
background-color: $color-carousel_indicator_theme_light-bg-default;
|
|
129
|
+
transition: background-color $transition_duration-carousel_indicator-bg
|
|
130
|
+
$transition_function-carousel_indicator-bg $transition_delay-carousel_indicator-bg;
|
|
132
131
|
|
|
133
132
|
&.#{$module}-indicator-item-active {
|
|
134
133
|
background: $color-carousel_indicator_theme_light-bg-active;
|
|
@@ -145,6 +144,8 @@ $module: #{$prefix}-carousel;
|
|
|
145
144
|
|
|
146
145
|
&-dark {
|
|
147
146
|
background-color: $color-carousel_indicator_theme_dark-bg-default;
|
|
147
|
+
transition: background-color $transition_duration-carousel_indicator-bg
|
|
148
|
+
$transition_function-carousel_indicator-bg $transition_delay-carousel_indicator-bg;
|
|
148
149
|
|
|
149
150
|
&.#{$module}-indicator-item-active {
|
|
150
151
|
background-color: $color-carousel_indicator_theme_dark-bg-active;
|
|
@@ -159,14 +160,13 @@ $module: #{$prefix}-carousel;
|
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
|
-
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
&-line {
|
|
166
166
|
width: $width-carousel_indicator_line;
|
|
167
167
|
|
|
168
168
|
.#{$module}-indicator-item {
|
|
169
|
-
flex: 1;
|
|
169
|
+
flex: 1;
|
|
170
170
|
cursor: pointer;
|
|
171
171
|
|
|
172
172
|
&:not(:last-child) {
|
|
@@ -175,7 +175,6 @@ $module: #{$prefix}-carousel;
|
|
|
175
175
|
|
|
176
176
|
&-small {
|
|
177
177
|
height: $height-carousel_indicator_line_small;
|
|
178
|
-
|
|
179
178
|
}
|
|
180
179
|
|
|
181
180
|
&-medium {
|
|
@@ -199,7 +198,6 @@ $module: #{$prefix}-carousel;
|
|
|
199
198
|
}
|
|
200
199
|
|
|
201
200
|
&-light {
|
|
202
|
-
|
|
203
201
|
background-color: $color-carousel_indicator_theme_light-bg-default;
|
|
204
202
|
|
|
205
203
|
&.#{$module}-indicator-item-active {
|
|
@@ -216,7 +214,6 @@ $module: #{$prefix}-carousel;
|
|
|
216
214
|
}
|
|
217
215
|
|
|
218
216
|
&-dark {
|
|
219
|
-
|
|
220
217
|
background-color: $color-carousel_indicator_theme_dark-bg-default;
|
|
221
218
|
|
|
222
219
|
&.#{$module}-indicator-item-active {
|
|
@@ -231,15 +228,13 @@ $module: #{$prefix}-carousel;
|
|
|
231
228
|
background: $color-carousel_indicator_theme_dark-bg-active;
|
|
232
229
|
}
|
|
233
230
|
}
|
|
234
|
-
|
|
235
231
|
}
|
|
236
|
-
|
|
237
232
|
}
|
|
238
233
|
|
|
239
234
|
&-columnar {
|
|
240
235
|
.#{$module}-indicator-item {
|
|
241
236
|
cursor: pointer;
|
|
242
|
-
|
|
237
|
+
|
|
243
238
|
&:not(:last-child) {
|
|
244
239
|
margin-right: $spacing-carousel_indicator_columnar-marginX;
|
|
245
240
|
}
|
|
@@ -262,11 +257,9 @@ $module: #{$prefix}-carousel;
|
|
|
262
257
|
}
|
|
263
258
|
}
|
|
264
259
|
|
|
265
|
-
|
|
266
260
|
&-primary {
|
|
267
261
|
background-color: $color-carousel_indicator_theme_primary-bg-default;
|
|
268
262
|
|
|
269
|
-
|
|
270
263
|
&.#{$module}-indicator-item-active {
|
|
271
264
|
background: $color-carousel_indicator_theme_primary-bg-active;
|
|
272
265
|
}
|
|
@@ -298,7 +291,7 @@ $module: #{$prefix}-carousel;
|
|
|
298
291
|
|
|
299
292
|
&-dark {
|
|
300
293
|
background-color: $color-carousel_indicator_theme_dark-bg-default;
|
|
301
|
-
|
|
294
|
+
|
|
302
295
|
&.#{$module}-indicator-item-active {
|
|
303
296
|
background: $color-carousel_indicator_theme_dark-bg-active;
|
|
304
297
|
}
|
|
@@ -311,9 +304,7 @@ $module: #{$prefix}-carousel;
|
|
|
311
304
|
background: $color-carousel_indicator_theme_dark-bg-active;
|
|
312
305
|
}
|
|
313
306
|
}
|
|
314
|
-
|
|
315
307
|
}
|
|
316
|
-
|
|
317
308
|
}
|
|
318
309
|
}
|
|
319
310
|
|
|
@@ -340,15 +331,18 @@ $module: #{$prefix}-carousel;
|
|
|
340
331
|
|
|
341
332
|
&-light {
|
|
342
333
|
color: $color-carousel_arrow_theme_light-bg-default;
|
|
334
|
+
transition: color $transition_duration-carousel_arrow-bg $transition_funciton_carousel_arrow-bg
|
|
335
|
+
$transition_delay-carousel_arrow-bg;
|
|
343
336
|
|
|
344
337
|
&:hover {
|
|
345
338
|
color: $color-carousel_arrow_theme_light-bg-hover;
|
|
346
339
|
}
|
|
347
340
|
}
|
|
348
341
|
|
|
349
|
-
|
|
350
342
|
&-primary {
|
|
351
343
|
color: $color-carousel_arrow_theme_primary-bg-default;
|
|
344
|
+
transition: color $transition_duration-carousel_arrow-bg $transition_funciton_carousel_arrow-bg
|
|
345
|
+
$transition_delay-carousel_arrow-bg;
|
|
352
346
|
|
|
353
347
|
&:hover {
|
|
354
348
|
color: $color-carousel_arrow_theme_primary-bg-hover;
|
|
@@ -357,20 +351,20 @@ $module: #{$prefix}-carousel;
|
|
|
357
351
|
|
|
358
352
|
&-dark {
|
|
359
353
|
color: $color-carousel_arrow_theme_dark-bg-default;
|
|
354
|
+
transition: color $transition_duration-carousel_arrow-bg $transition_funciton_carousel_arrow-bg
|
|
355
|
+
$transition_delay-carousel_arrow-bg;
|
|
360
356
|
|
|
361
357
|
&:hover {
|
|
362
358
|
color: $color-carousel_arrow_theme_dark-bg-hover;
|
|
363
359
|
}
|
|
364
360
|
}
|
|
365
|
-
|
|
366
361
|
}
|
|
367
362
|
|
|
368
363
|
&-arrow-hover div {
|
|
369
364
|
z-index: 2;
|
|
370
365
|
opacity: 0;
|
|
371
|
-
transition: all .3s;
|
|
372
366
|
}
|
|
373
|
-
|
|
367
|
+
|
|
374
368
|
&:hover {
|
|
375
369
|
.#{$module}-arrow-hover div {
|
|
376
370
|
opacity: 1;
|
|
@@ -379,47 +373,43 @@ $module: #{$prefix}-carousel;
|
|
|
379
373
|
}
|
|
380
374
|
|
|
381
375
|
@keyframes #{$module}-content-item-keyframe-slide-in {
|
|
382
|
-
|
|
383
376
|
from {
|
|
384
377
|
transform: translateX(100%);
|
|
385
378
|
}
|
|
386
|
-
|
|
379
|
+
|
|
387
380
|
to {
|
|
388
381
|
transform: translateX(0);
|
|
389
382
|
}
|
|
390
383
|
}
|
|
391
384
|
|
|
392
385
|
@keyframes #{$module}-content-item-keyframe-slide-out {
|
|
393
|
-
|
|
394
386
|
from {
|
|
395
387
|
transform: translateX(0);
|
|
396
388
|
}
|
|
397
|
-
|
|
389
|
+
|
|
398
390
|
to {
|
|
399
391
|
transform: translateX(-100%);
|
|
400
392
|
}
|
|
401
393
|
}
|
|
402
394
|
|
|
403
395
|
@keyframes #{$module}-content-item-keyframe-slide-in-reverse {
|
|
404
|
-
|
|
405
396
|
from {
|
|
406
397
|
transform: translateX(-100%);
|
|
407
398
|
}
|
|
408
|
-
|
|
399
|
+
|
|
409
400
|
to {
|
|
410
401
|
transform: translateX(0);
|
|
411
402
|
}
|
|
412
403
|
}
|
|
413
|
-
|
|
414
|
-
@keyframes #{$module}-content-item-keyframe-slide-out-reverse {
|
|
415
404
|
|
|
405
|
+
@keyframes #{$module}-content-item-keyframe-slide-out-reverse {
|
|
416
406
|
from {
|
|
417
407
|
transform: translateX(0);
|
|
418
408
|
}
|
|
419
|
-
|
|
409
|
+
|
|
420
410
|
to {
|
|
421
411
|
transform: translateX(100%);
|
|
422
412
|
}
|
|
423
413
|
}
|
|
424
414
|
|
|
425
|
-
@import
|
|
415
|
+
@import './rtl.scss';
|
package/carousel/foundation.ts
CHANGED
|
@@ -38,7 +38,7 @@ class CarouselFoundation<P = Record<string, any>, S = Record<string, any>> exten
|
|
|
38
38
|
const { activeIndex: stateActiveIndex } = this.getStates();
|
|
39
39
|
const targetIndex = this.getValidIndex(activeIndex);
|
|
40
40
|
this._adapter.setIsReverse(stateActiveIndex > targetIndex);
|
|
41
|
-
if (this.
|
|
41
|
+
if (this.getIsControlledComponent()) {
|
|
42
42
|
this._notifyChange(targetIndex);
|
|
43
43
|
} else {
|
|
44
44
|
this._notifyChange(targetIndex);
|
|
@@ -50,7 +50,7 @@ class CarouselFoundation<P = Record<string, any>, S = Record<string, any>> exten
|
|
|
50
50
|
const { activeIndex: stateActiveIndex } = this.getStates();
|
|
51
51
|
const targetIndex = this.getValidIndex(stateActiveIndex + 1);
|
|
52
52
|
this._adapter.setIsReverse(false);
|
|
53
|
-
if (this.
|
|
53
|
+
if (this.getIsControlledComponent()) {
|
|
54
54
|
this._notifyChange(targetIndex);
|
|
55
55
|
} else {
|
|
56
56
|
this._notifyChange(targetIndex);
|
|
@@ -62,7 +62,7 @@ class CarouselFoundation<P = Record<string, any>, S = Record<string, any>> exten
|
|
|
62
62
|
const { activeIndex: stateActiveIndex } = this.getStates();
|
|
63
63
|
const targetIndex = this.getValidIndex(stateActiveIndex - 1);
|
|
64
64
|
this._adapter.setIsReverse(true);
|
|
65
|
-
if (this.
|
|
65
|
+
if (this.getIsControlledComponent()) {
|
|
66
66
|
this._notifyChange(targetIndex);
|
|
67
67
|
} else {
|
|
68
68
|
this._notifyChange(targetIndex);
|
|
@@ -110,7 +110,7 @@ class CarouselFoundation<P = Record<string, any>, S = Record<string, any>> exten
|
|
|
110
110
|
return speed;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
getIsControlledComponent(): boolean {
|
|
114
114
|
return this._isInProps('activeIndex');
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -135,7 +135,7 @@ class CarouselFoundation<P = Record<string, any>, S = Record<string, any>> exten
|
|
|
135
135
|
const { activeIndex: stateActiveIndex } = this.getStates();
|
|
136
136
|
this._adapter.setIsReverse(stateActiveIndex > activeIndex);
|
|
137
137
|
this._notifyChange(activeIndex);
|
|
138
|
-
if (!this.
|
|
138
|
+
if (!this.getIsControlledComponent()) {
|
|
139
139
|
this.handleNewActiveIndex(activeIndex);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
$transition_duration-cascader_option-bg: var(--semi-transition_duration-faster);//级联选项-背景色-动画持续时间
|
|
2
|
+
$transition_function-cascader_option-bg: var(--semi-transition_function-easeIn);//级联选项-背景色-过渡曲线
|
|
3
|
+
$transition_delay-cascader_option-bg: var(--semi-transition_delay-fastest);//级联选项-背景色-延迟时间
|
|
4
|
+
|
package/cascader/cascader.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import './variables.scss';
|
|
2
|
+
@import "./animation.scss";
|
|
2
3
|
|
|
3
4
|
$module: #{$prefix}-cascader;
|
|
4
5
|
|
|
@@ -380,6 +381,7 @@ $module: #{$prefix}-cascader;
|
|
|
380
381
|
align-items: center;
|
|
381
382
|
justify-content: space-between;
|
|
382
383
|
cursor: pointer;
|
|
384
|
+
transition: background-color $transition_duration-cascader_option-bg $transition_function-cascader_option-bg $transition_delay-cascader_option-bg;
|
|
383
385
|
|
|
384
386
|
@include font-size-regular;
|
|
385
387
|
min-width: min-content;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
$transition_duration-checkbox-bg: var(--semi-transition_duration-faster);//复选框-背景色-动画持续时间
|
|
2
|
+
$transition_function-checkbox-bg: var(--semi-transition_function-easeIn);//复选框-背景色-过渡曲线
|
|
3
|
+
$transition_delay-checkbox-bg: var(--semi-transition_delay-fastest);//复选框-背景色-延迟时间
|
|
4
|
+
|
|
5
|
+
$transition_duration-checkbox-border: var(--semi-transition_duration-faster);//复选框-边框-动画持续时间
|
|
6
|
+
$transition_function-checkbox-border: var(--semi-transition_function-easeIn);//复选框-边框-过渡曲线
|
|
7
|
+
$transition_delay-checkbox-border: var(--semi-transition_delay-fastest);//复选框-边框-延迟时间
|
|
8
|
+
|
|
9
|
+
// transform token
|
|
10
|
+
$transform_scale-checkbox: var(--semi-transform_scale-none);//复选框-放大
|
package/checkbox/checkbox.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//@import '../theme/variables.scss';
|
|
2
2
|
// @import '../theme/mixin.scss';
|
|
3
3
|
@import "./variables.scss";
|
|
4
|
+
@import "./animation.scss";
|
|
4
5
|
@import "./mixin.scss";
|
|
5
6
|
|
|
6
7
|
$module: #{$prefix}-checkbox;
|
|
@@ -14,6 +15,9 @@ $module: #{$prefix}-checkbox;
|
|
|
14
15
|
flex-wrap: wrap;
|
|
15
16
|
@include font-size-regular;
|
|
16
17
|
cursor: pointer;
|
|
18
|
+
transition: background-color $transition_duration-checkbox-bg $transition_function-checkbox-bg $transition_delay-checkbox-bg,
|
|
19
|
+
border $transition_duration-checkbox-border $transition_function-checkbox-border $transition_delay-checkbox-border;
|
|
20
|
+
transform: scale($transform_scale-checkbox);
|
|
17
21
|
|
|
18
22
|
input[type="checkbox"] {
|
|
19
23
|
position: absolute;
|
|
@@ -93,6 +97,8 @@ $module: #{$prefix}-checkbox;
|
|
|
93
97
|
height: $width-checkbox_inner;
|
|
94
98
|
margin: 0;
|
|
95
99
|
background: $color-checkbox_default-bg-default;
|
|
100
|
+
transition: background-color $transition_duration-checkbox-bg $transition_function-checkbox-bg $transition_delay-checkbox-bg,
|
|
101
|
+
border $transition_duration-checkbox-border $transition_function-checkbox-border $transition_delay-checkbox-border;
|
|
96
102
|
|
|
97
103
|
box-shadow: inset 0 0 0 $size-checkbox_inner-shadow $color-checkbox_default-border-default;
|
|
98
104
|
border-radius: $radius-checkbox_inner;
|
|
@@ -112,7 +118,7 @@ $module: #{$prefix}-checkbox;
|
|
|
112
118
|
border-radius: $radius-checkbox_inner;
|
|
113
119
|
}
|
|
114
120
|
|
|
115
|
-
|
|
121
|
+
&>.#{$module}-addon {
|
|
116
122
|
color: $color-checkbox_label-text-default;
|
|
117
123
|
}
|
|
118
124
|
}
|
|
@@ -178,11 +184,14 @@ $module: #{$prefix}-checkbox;
|
|
|
178
184
|
background: transparent;
|
|
179
185
|
border: $width-checkbox_cardType_checked-border solid transparent;
|
|
180
186
|
|
|
187
|
+
|
|
181
188
|
.#{$module}-inner {
|
|
182
189
|
position: relative;
|
|
190
|
+
|
|
183
191
|
&-display {
|
|
184
192
|
background: $color-checkbox_cardType_inner-bg-default;
|
|
185
193
|
}
|
|
194
|
+
|
|
186
195
|
margin-right: $spacing-checkbox_cardType_inner-marginRight;
|
|
187
196
|
flex-shrink: 0;
|
|
188
197
|
}
|
|
@@ -232,6 +241,7 @@ $module: #{$prefix}-checkbox;
|
|
|
232
241
|
&:hover {
|
|
233
242
|
background: $color-checkbox_cardType_checked-bg;
|
|
234
243
|
border-color: $color-checkbox_cardType_checked_border-hover;
|
|
244
|
+
|
|
235
245
|
.#{$module}-inner-checked .#{$module}-inner-display {
|
|
236
246
|
box-shadow: none;
|
|
237
247
|
}
|
|
@@ -247,12 +257,13 @@ $module: #{$prefix}-checkbox;
|
|
|
247
257
|
&:active {
|
|
248
258
|
background: transparent;
|
|
249
259
|
}
|
|
260
|
+
|
|
250
261
|
&:hover {
|
|
251
262
|
background: transparent;
|
|
252
263
|
}
|
|
253
264
|
}
|
|
254
265
|
|
|
255
|
-
&_checked_disabled.#{$module}-cardType
|
|
266
|
+
&_checked_disabled.#{$module}-cardType {
|
|
256
267
|
background: $color-checkbox_cardType_checked_disabled-bg;
|
|
257
268
|
border: $width-checkbox_cardType_checked_disabled-border solid $color-checkbox_cardType_checked_disabled_border-default;
|
|
258
269
|
|
|
@@ -355,7 +366,7 @@ $module: #{$prefix}-checkbox;
|
|
|
355
366
|
|
|
356
367
|
&-focus {
|
|
357
368
|
outline: $width-checkbox-outline solid $color-checkbox_primary-outline-focus;
|
|
358
|
-
|
|
369
|
+
|
|
359
370
|
&-border {
|
|
360
371
|
box-shadow: inset 0 0 0 $size-checkbox_inner-shadow $color-checkbox_default-border-hover;
|
|
361
372
|
}
|
|
@@ -366,6 +377,7 @@ $module: #{$prefix}-checkbox;
|
|
|
366
377
|
@include font-size-regular;
|
|
367
378
|
// make sure group height 32px
|
|
368
379
|
line-height: $font-size-regular;
|
|
380
|
+
|
|
369
381
|
.#{$module} {
|
|
370
382
|
&.#{$module}-vertical {
|
|
371
383
|
margin-bottom: $spacing-checkbox_group_vertical-marginBottom;
|
|
@@ -376,6 +388,7 @@ $module: #{$prefix}-checkbox;
|
|
|
376
388
|
.#{$module} {
|
|
377
389
|
margin-right: $spacing-checkbox_group_horizontal-marginRight;
|
|
378
390
|
display: inline-flex;
|
|
391
|
+
|
|
379
392
|
&:last-of-type {
|
|
380
393
|
margin-right: 0;
|
|
381
394
|
}
|
|
@@ -385,10 +398,12 @@ $module: #{$prefix}-checkbox;
|
|
|
385
398
|
&-vertical {
|
|
386
399
|
.#{$module} {
|
|
387
400
|
margin-bottom: $spacing-checkbox_group_vertical_item-marginBottom;
|
|
401
|
+
|
|
388
402
|
&:last-of-type {
|
|
389
403
|
margin-bottom: 0;
|
|
390
404
|
}
|
|
391
405
|
}
|
|
406
|
+
|
|
392
407
|
&-cardType {
|
|
393
408
|
.#{$module} {
|
|
394
409
|
margin-bottom: $spacing-checkbox_card_group_vertical-marginBottom;
|
|
@@ -397,4 +412,4 @@ $module: #{$prefix}-checkbox;
|
|
|
397
412
|
}
|
|
398
413
|
}
|
|
399
414
|
|
|
400
|
-
@import "./rtl.scss";
|
|
415
|
+
@import "./rtl.scss";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
$transition_duration-datepicker_date-bg: var(--semi-transition_duration-faster);//时间选择器-格子背景色-动画持续时间
|
|
2
|
+
$transition_function-datepicker_date-bg: var(--semi-transition_function-easeIn);//时间选择器-格子背景色-过渡曲线
|
|
3
|
+
$transition_delay-datepicker_date-bg: var(--semi-transition_delay-fastest);//时间选择器-格子背景色-延迟时间
|
|
4
|
+
|
package/dropdown/dropdown.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//@import '../theme/variables.scss';
|
|
2
2
|
@import './variables.scss';
|
|
3
|
+
@import './animation.scss';
|
|
3
4
|
|
|
4
5
|
$module: #{$prefix}-dropdown;
|
|
5
6
|
|
|
@@ -43,6 +44,9 @@ $module: #{$prefix}-dropdown;
|
|
|
43
44
|
max-width: $width-dropdown;
|
|
44
45
|
display: flex;
|
|
45
46
|
align-items: center;
|
|
47
|
+
transition: background-color $transition_duration-dropdown_item-bg $transition_function-dropdown_item-bg
|
|
48
|
+
$transition_delay-dropdown_item-bg;
|
|
49
|
+
|
|
46
50
|
&:not(.#{$module}-item-active):hover {
|
|
47
51
|
background-color: $color-dropdown_item-bg-hover;
|
|
48
52
|
cursor: pointer;
|
|
@@ -107,4 +111,4 @@ $module: #{$prefix}-dropdown;
|
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
113
|
|
|
110
|
-
@import './rtl.scss';
|
|
114
|
+
@import './rtl.scss';
|
package/form/form.scss
CHANGED
|
@@ -109,14 +109,15 @@ $rating: #{$prefix}-rating;
|
|
|
109
109
|
font-weight: $font-form_requiredMark-fontWeight;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
// .#{$field}-label-extra {
|
|
113
|
-
// }
|
|
114
|
-
|
|
115
112
|
&-disabled {
|
|
116
113
|
color: $color-form_requiredMark_disabled-text-default;
|
|
117
114
|
}
|
|
118
115
|
}
|
|
119
116
|
|
|
117
|
+
&-optional-text {
|
|
118
|
+
color: $color-form_label_optional-text-default;
|
|
119
|
+
}
|
|
120
|
+
|
|
120
121
|
&-left {
|
|
121
122
|
text-align: left;
|
|
122
123
|
}
|
package/form/variables.scss
CHANGED
|
@@ -32,6 +32,7 @@ $font-form_label-fontWeight: $font-weight-bold; // 表单标题字重
|
|
|
32
32
|
$font-form_requiredMark-fontWeight: $font-weight-bold; // 表单必填标识字重
|
|
33
33
|
|
|
34
34
|
$color-form_label-text-default: var(--semi-color-text-0); // 表单标题文字颜色
|
|
35
|
+
$color-form_label_optional-text-default: var(--semi-color-tertiary); // 表单可选标记文字颜色
|
|
35
36
|
$color-form_label_extra-text-default: var(--semi-color-tertiary); // 表单额外信息辅助文字颜色
|
|
36
37
|
|
|
37
38
|
$color-form_label_disabled-text-default: var(--semi-color-disabled-text); // 禁用表单项标题文字颜色
|
package/gulpfile.js
CHANGED
|
@@ -39,7 +39,9 @@ const excludeScss = [
|
|
|
39
39
|
'!**/steps/fillSteps.scss',
|
|
40
40
|
'!**/steps/navSteps.scss',
|
|
41
41
|
'!**/table/operationPanel.scss',
|
|
42
|
-
'!**/tooltip/arrow.scss'
|
|
42
|
+
'!**/tooltip/arrow.scss',
|
|
43
|
+
'!**/autoComplete/option.scss',
|
|
44
|
+
'!**/select/option.scss',
|
|
43
45
|
];
|
|
44
46
|
gulp.task('compileScss', function compileScss() {
|
|
45
47
|
return gulp.src(['**/*.scss', '!node_modules/**/*.*', '!**/rtl.scss', '!**/variables.scss', ...excludeScss])
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
$transition_duration-input-bg: var(--semi-transition_duration-faster);//输入框-背景色-动画持续时间
|
|
2
|
+
$transition_function-input-bg: var(--semi-transition_function-easeIn);//输入框-背景色-过渡曲线
|
|
3
|
+
$transition_delay-input-bg: var(--semi-transition_delay-fastest);//输入框-背景色-延迟时间
|
|
4
|
+
|
|
5
|
+
$transition_duration-input-border: var(--semi-transition_duration-faster);//输入框-边框-动画持续时间
|
|
6
|
+
$transition_function-input-border: var(--semi-transition_function-easeIn);//输入框-边框-过渡曲线
|
|
7
|
+
$transition_delay-input-border: var(--semi-transition_delay-fastest);//输入框-边框-延迟时间
|
|
8
|
+
|
|
9
|
+
$transition_duration-input-text: var(--semi-transition_duration-faster);//输入框-文字或图标-动画持续时间
|
|
10
|
+
$transition_function-input-text: var(--semi-transition_function-easeIn);//输入框-文字或图标-过渡曲线
|
|
11
|
+
$transition_delay-input-text: var(--semi-transition_delay-fastest);//输入框-文字或图标-延迟时间
|
|
12
|
+
|
|
13
|
+
// transform token
|
|
14
|
+
$transform_scale-input: var(--semi-transform_scale-none);//输入框-变大
|
package/input/input.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//@import '../theme/variables.scss';
|
|
2
2
|
@import './variables.scss';
|
|
3
|
+
@import "./animation.scss";
|
|
3
4
|
|
|
4
5
|
$module: #{$prefix}-input;
|
|
5
6
|
|
|
@@ -23,6 +24,12 @@ $module: #{$prefix}-input;
|
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
.#{$module}{
|
|
28
|
+
transition: background-color $transition_duration-input-bg $transition_function-input-bg $transition_delay-input-bg,
|
|
29
|
+
border $transition_duration-input-border $transition_function-input-border $transition_delay-input-border;
|
|
30
|
+
transform: scale($transform_scale-input);
|
|
31
|
+
}
|
|
32
|
+
|
|
26
33
|
.#{$module}-wrapper {
|
|
27
34
|
display: inline-block;
|
|
28
35
|
position: relative;
|
|
@@ -40,6 +47,11 @@ $module: #{$prefix}-input;
|
|
|
40
47
|
box-sizing: border-box;
|
|
41
48
|
color: $color-input_default-text-default;
|
|
42
49
|
|
|
50
|
+
transition: background-color $transition_duration-input-bg $transition_function-input-bg $transition_delay-input-bg,
|
|
51
|
+
border $transition_duration-input-border $transition_function-input-border $transition_delay-input-border;
|
|
52
|
+
|
|
53
|
+
transform: scale($transform_scale-input);
|
|
54
|
+
|
|
43
55
|
&-default {
|
|
44
56
|
height: $height-input_wrapper_default;
|
|
45
57
|
@include font-size-regular;
|
package/input/textarea.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import "./variables.scss";
|
|
2
|
+
@import "./animation.scss";
|
|
2
3
|
|
|
3
4
|
$module: #{$prefix}-input;
|
|
4
5
|
|
|
@@ -12,6 +13,8 @@ $module: #{$prefix}-input;
|
|
|
12
13
|
border-radius: $radius-input_wrapper;
|
|
13
14
|
vertical-align: bottom;
|
|
14
15
|
background-color: $color-input_default-bg-default;
|
|
16
|
+
transition: background-color $transition_duration-input-bg $transition_function-input-bg $transition_delay-input-bg,
|
|
17
|
+
border $transition_duration-input-border $transition_function-input-border $transition_delay-input-border;
|
|
15
18
|
|
|
16
19
|
&:hover {
|
|
17
20
|
background-color: $color-input_default-bg-hover;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
$transition_duration-inputNumber-bg: var(--semi-transition_duration-faster);//数字输入框-背景色-动画持续时间
|
|
2
|
+
$transition_function-inputNumber-bg: var(--semi-transition_function-easeIn);//数字输入框-背景色-过渡曲线
|
|
3
|
+
$transition_delay-inputNumber-bg: var(--semi-transition_delay-fastest);//数字输入框-背景色-延迟时间
|
|
4
|
+
|
|
5
|
+
$transition_duration-inputNumber-border: var(--semi-transition_duration-faster);//数字输入框-边框-动画持续时间
|
|
6
|
+
$transition_function-inputNumber-border: var(--semi-transition_function-easeIn);//数字输入框-边框-过渡曲线
|
|
7
|
+
$transition_delay-inputNumber-border: var(--semi-transition_delay-fastest);//数字输入框-边框-延迟时间
|
|
8
|
+
|
|
9
|
+
// transform token
|
|
10
|
+
$transform_scale-inputNumber: var(--semi-transform_scale-none);//数字输入框-变大
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "./animation.scss";
|
|
1
2
|
@import '../input/variables.scss';
|
|
2
3
|
@import './variables.scss';
|
|
3
4
|
|
|
@@ -7,6 +8,9 @@ $module: #{$prefix}-input-number;
|
|
|
7
8
|
display: inline-flex;
|
|
8
9
|
align-items: center;
|
|
9
10
|
box-sizing: border-box;
|
|
11
|
+
transition: background-color $transition_duration-inputNumber-bg $transition_function-inputNumber-bg $transition_delay-inputNumber-bg,
|
|
12
|
+
border $transition_duration-inputNumber-border $transition_function-inputNumber-border $transition_delay-inputNumber-border;
|
|
13
|
+
transform: scale($transform_scale-inputNumber);
|
|
10
14
|
|
|
11
15
|
&-suffix-btns {
|
|
12
16
|
display: inline-flex;
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
left: 0;
|
|
20
20
|
top: 0;
|
|
21
21
|
height: 100%;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
padding: 2px 0;
|
|
22
24
|
}
|
|
23
25
|
.semi-anchor-slide-muted {
|
|
24
26
|
display: none;
|
|
@@ -57,6 +59,10 @@
|
|
|
57
59
|
.semi-anchor-link {
|
|
58
60
|
padding-left: 8px;
|
|
59
61
|
}
|
|
62
|
+
.semi-anchor-link-wrapper {
|
|
63
|
+
padding-right: 2px;
|
|
64
|
+
margin: 2px 0;
|
|
65
|
+
}
|
|
60
66
|
.semi-anchor-link-title {
|
|
61
67
|
cursor: pointer;
|
|
62
68
|
color: var(--semi-color-text-2);
|
|
@@ -65,6 +71,9 @@
|
|
|
65
71
|
overflow: hidden;
|
|
66
72
|
text-overflow: ellipsis;
|
|
67
73
|
white-space: nowrap;
|
|
74
|
+
border-radius: 3px;
|
|
75
|
+
transition: color var(--semi-transition_duration-faster) var(--semi-transition_function-easeIn) var(--semi-transition_delay-fastest);
|
|
76
|
+
transform: scale(var(--semi-transform_scale-none));
|
|
68
77
|
}
|
|
69
78
|
.semi-anchor-link-title:hover {
|
|
70
79
|
color: var(--semi-color-tertiary-hover);
|
|
@@ -72,6 +81,9 @@
|
|
|
72
81
|
.semi-anchor-link-title-active {
|
|
73
82
|
color: var(--semi-color-text-0);
|
|
74
83
|
}
|
|
84
|
+
.semi-anchor-link-title:focus-visible {
|
|
85
|
+
outline: 2px solid var(--semi-color-primary-light-active);
|
|
86
|
+
}
|
|
75
87
|
.semi-anchor-link-title-disabled {
|
|
76
88
|
color: var(--semi-color-disabled-text);
|
|
77
89
|
cursor: not-allowed;
|