@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
|
@@ -114,7 +114,10 @@ export default class CalendarFoundation extends BaseFoundation {
|
|
|
114
114
|
data.month = format(value, 'LLL', {
|
|
115
115
|
locale: dateFnsLocale
|
|
116
116
|
});
|
|
117
|
-
|
|
117
|
+
const {
|
|
118
|
+
weekStartsOn
|
|
119
|
+
} = this.getProps();
|
|
120
|
+
data.week = calcWeekData(value, 'week', dateFnsLocale, weekStartsOn);
|
|
118
121
|
|
|
119
122
|
this._adapter.setWeeklyData(data);
|
|
120
123
|
|
|
@@ -142,10 +145,13 @@ export default class CalendarFoundation extends BaseFoundation {
|
|
|
142
145
|
|
|
143
146
|
const monthStart = startOfMonth(value);
|
|
144
147
|
const data = {};
|
|
148
|
+
const {
|
|
149
|
+
weekStartsOn
|
|
150
|
+
} = this.getProps();
|
|
145
151
|
const numberOfWeek = getWeeksInMonth(value);
|
|
146
152
|
|
|
147
153
|
_mapInstanceProperty(_context = [..._keysInstanceProperty(_context2 = Array(numberOfWeek)).call(_context2)]).call(_context, ind => {
|
|
148
|
-
data[ind] = calcWeekData(addDays(monthStart, ind * 7), 'month', dateFnsLocale);
|
|
154
|
+
data[ind] = calcWeekData(addDays(monthStart, ind * 7), 'month', dateFnsLocale, weekStartsOn);
|
|
149
155
|
});
|
|
150
156
|
|
|
151
157
|
this._adapter.setMonthlyData(data);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
$transition_duration_carousel_indicator-bg: var(--semi-transition_delay-fastest); // 指示器-背景色-动画持续时间
|
|
2
|
+
$transition_function_carousel_indicator-bg: var(--semi-transition_function-easeOut); // 指示器-背景色-过渡曲线
|
|
3
|
+
$transition_delay_carousel_indicator-bg: var(--semi-transition_delay-none); // 指示器-背景色-延迟时间
|
|
4
|
+
|
|
5
|
+
$transition_duration_carousel_arrow-bg: var(--semi-transition_delay-fastest); // 箭头-背景色-动画持续时间
|
|
6
|
+
$transition_funciton_carousel_arrow-bg: var(--semi-transition_function-easeOut); // 箭头-背景色-过渡曲线
|
|
7
|
+
$transition_delay_carousel_arrow-bg: var(--semi-transition_delay-none); // 箭头-背景色-延迟时间
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
}
|
|
84
84
|
.semi-carousel-indicator-dot .semi-carousel-indicator-item-primary {
|
|
85
85
|
background-color: rgba(var(--semi-blue-6), 0.4);
|
|
86
|
+
transition: background-color var(--semi-transition_delay-fastest) var(--semi-transition_function-easeOut) var(--semi-transition_delay-none);
|
|
86
87
|
}
|
|
87
88
|
.semi-carousel-indicator-dot .semi-carousel-indicator-item-primary.semi-carousel-indicator-item-active {
|
|
88
89
|
background: rgba(var(--semi-blue-6), 1);
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
}
|
|
96
97
|
.semi-carousel-indicator-dot .semi-carousel-indicator-item-light {
|
|
97
98
|
background-color: rgba(var(--semi-white), 0.4);
|
|
99
|
+
transition: background-color var(--semi-transition_delay-fastest) var(--semi-transition_function-easeOut) var(--semi-transition_delay-none);
|
|
98
100
|
}
|
|
99
101
|
.semi-carousel-indicator-dot .semi-carousel-indicator-item-light.semi-carousel-indicator-item-active {
|
|
100
102
|
background: rgba(var(--semi-white), 1);
|
|
@@ -107,6 +109,7 @@
|
|
|
107
109
|
}
|
|
108
110
|
.semi-carousel-indicator-dot .semi-carousel-indicator-item-dark {
|
|
109
111
|
background-color: rgba(var(--semi-black), 0.5);
|
|
112
|
+
transition: background-color var(--semi-transition_delay-fastest) var(--semi-transition_function-easeOut) var(--semi-transition_delay-none);
|
|
110
113
|
}
|
|
111
114
|
.semi-carousel-indicator-dot .semi-carousel-indicator-item-dark.semi-carousel-indicator-item-active {
|
|
112
115
|
background-color: rgba(var(--semi-black), 1);
|
|
@@ -246,18 +249,21 @@
|
|
|
246
249
|
}
|
|
247
250
|
.semi-carousel-arrow-light {
|
|
248
251
|
color: rgba(var(--semi-white), 0.4);
|
|
252
|
+
transition: color var(--semi-transition_delay-fastest) var(--semi-transition_function-easeOut) var(--semi-transition_delay-none);
|
|
249
253
|
}
|
|
250
254
|
.semi-carousel-arrow-light:hover {
|
|
251
255
|
color: rgba(var(--semi-white), 1);
|
|
252
256
|
}
|
|
253
257
|
.semi-carousel-arrow-primary {
|
|
254
258
|
color: rgba(var(--semi-blue-6), 0.4);
|
|
259
|
+
transition: color var(--semi-transition_delay-fastest) var(--semi-transition_function-easeOut) var(--semi-transition_delay-none);
|
|
255
260
|
}
|
|
256
261
|
.semi-carousel-arrow-primary:hover {
|
|
257
262
|
color: rgba(var(--semi-blue-6), 1);
|
|
258
263
|
}
|
|
259
264
|
.semi-carousel-arrow-dark {
|
|
260
265
|
color: rgba(var(--semi-black), 0.5);
|
|
266
|
+
transition: color var(--semi-transition_delay-fastest) var(--semi-transition_function-easeOut) var(--semi-transition_delay-none);
|
|
261
267
|
}
|
|
262
268
|
.semi-carousel-arrow-dark:hover {
|
|
263
269
|
color: rgba(var(--semi-black), 1);
|
|
@@ -265,7 +271,6 @@
|
|
|
265
271
|
.semi-carousel-arrow-hover div {
|
|
266
272
|
z-index: 2;
|
|
267
273
|
opacity: 0;
|
|
268
|
-
transition: all 0.3s;
|
|
269
274
|
}
|
|
270
275
|
.semi-carousel:hover .semi-carousel-arrow-hover div {
|
|
271
276
|
opacity: 1;
|
|
@@ -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';
|
|
@@ -19,7 +19,7 @@ declare class CarouselFoundation<P = Record<string, any>, S = Record<string, any
|
|
|
19
19
|
_notifyChange(activeIndex: number): void;
|
|
20
20
|
getValidIndex(index: number): number;
|
|
21
21
|
getSwitchingTime(): number;
|
|
22
|
-
|
|
22
|
+
getIsControlledComponent(): boolean;
|
|
23
23
|
handleAutoPlay(): void;
|
|
24
24
|
handleKeyDown(event: any): void;
|
|
25
25
|
onIndicatorChange(activeIndex: number): void;
|
|
@@ -35,7 +35,7 @@ class CarouselFoundation extends BaseFoundation {
|
|
|
35
35
|
|
|
36
36
|
this._adapter.setIsReverse(stateActiveIndex > targetIndex);
|
|
37
37
|
|
|
38
|
-
if (this.
|
|
38
|
+
if (this.getIsControlledComponent()) {
|
|
39
39
|
this._notifyChange(targetIndex);
|
|
40
40
|
} else {
|
|
41
41
|
this._notifyChange(targetIndex);
|
|
@@ -52,7 +52,7 @@ class CarouselFoundation extends BaseFoundation {
|
|
|
52
52
|
|
|
53
53
|
this._adapter.setIsReverse(false);
|
|
54
54
|
|
|
55
|
-
if (this.
|
|
55
|
+
if (this.getIsControlledComponent()) {
|
|
56
56
|
this._notifyChange(targetIndex);
|
|
57
57
|
} else {
|
|
58
58
|
this._notifyChange(targetIndex);
|
|
@@ -69,7 +69,7 @@ class CarouselFoundation extends BaseFoundation {
|
|
|
69
69
|
|
|
70
70
|
this._adapter.setIsReverse(true);
|
|
71
71
|
|
|
72
|
-
if (this.
|
|
72
|
+
if (this.getIsControlledComponent()) {
|
|
73
73
|
this._notifyChange(targetIndex);
|
|
74
74
|
} else {
|
|
75
75
|
this._notifyChange(targetIndex);
|
|
@@ -131,7 +131,7 @@ class CarouselFoundation extends BaseFoundation {
|
|
|
131
131
|
return speed;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
getIsControlledComponent() {
|
|
135
135
|
return this._isInProps('activeIndex');
|
|
136
136
|
}
|
|
137
137
|
|
|
@@ -165,7 +165,7 @@ class CarouselFoundation extends BaseFoundation {
|
|
|
165
165
|
|
|
166
166
|
this._notifyChange(activeIndex);
|
|
167
167
|
|
|
168
|
-
if (!this.
|
|
168
|
+
if (!this.getIsControlledComponent()) {
|
|
169
169
|
this.handleNewActiveIndex(activeIndex);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
@@ -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
|
+
|
|
@@ -313,6 +313,7 @@
|
|
|
313
313
|
align-items: center;
|
|
314
314
|
justify-content: space-between;
|
|
315
315
|
cursor: pointer;
|
|
316
|
+
transition: background-color var(--semi-transition_duration-faster) var(--semi-transition_function-easeIn) var(--semi-transition_delay-fastest);
|
|
316
317
|
font-size: 14px;
|
|
317
318
|
line-height: 20px;
|
|
318
319
|
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
@@ -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);//复选框-放大
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
line-height: 20px;
|
|
12
12
|
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
13
13
|
cursor: pointer;
|
|
14
|
+
transition: background-color var(--semi-transition_duration-faster) var(--semi-transition_function-easeIn) var(--semi-transition_delay-fastest), border var(--semi-transition_duration-faster) var(--semi-transition_function-easeIn) var(--semi-transition_delay-fastest);
|
|
15
|
+
transform: scale(var(--semi-transform_scale-none));
|
|
14
16
|
}
|
|
15
17
|
.semi-checkbox input[type=checkbox] {
|
|
16
18
|
position: absolute;
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
height: 16px;
|
|
70
72
|
margin: 0;
|
|
71
73
|
background: transparent;
|
|
74
|
+
transition: background-color var(--semi-transition_duration-faster) var(--semi-transition_function-easeIn) var(--semi-transition_delay-fastest), border var(--semi-transition_duration-faster) var(--semi-transition_function-easeIn) var(--semi-transition_delay-fastest);
|
|
72
75
|
box-shadow: inset 0 0 0 1px var(--semi-color-text-3);
|
|
73
76
|
border-radius: var(--semi-border-radius-extra-small);
|
|
74
77
|
}
|
|
@@ -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
|
+
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
max-width: 280px;
|
|
46
46
|
display: flex;
|
|
47
47
|
align-items: center;
|
|
48
|
+
transition: background-color var(--semi-transition_duration-fastest) var(--semi-transition_function-easeOut) 0ms;
|
|
48
49
|
}
|
|
49
50
|
.semi-dropdown-item:not(.semi-dropdown-item-active):hover {
|
|
50
51
|
background-color: var(--semi-color-fill-0);
|
|
@@ -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/lib/es/form/form.css
CHANGED