@douyinfe/semi-foundation 2.17.0 → 2.18.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/foundation.ts +4 -1
- 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 +4 -2
- 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.scss +6 -0
- package/lib/cjs/anchor/variables.scss +7 -1
- 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/foundation.js +4 -0
- 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.scss +6 -0
- package/lib/cjs/breadcrumb/breadcrumb.css +3 -1
- package/lib/cjs/breadcrumb/breadcrumb.scss +4 -1
- 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.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.scss +4 -0
- package/lib/cjs/cascader/cascader.css +1 -0
- package/lib/cjs/cascader/cascader.scss +2 -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.scss +4 -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.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.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.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.scss +11 -0
- package/lib/cjs/pagination/pagination.css +2 -0
- package/lib/cjs/pagination/pagination.scss +4 -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/radio/radioFoundation.d.ts +2 -0
- package/lib/cjs/radio/radioFoundation.js +4 -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.scss +3 -0
- package/lib/cjs/scrollList/scrollList.css +1 -0
- package/lib/cjs/scrollList/scrollList.scss +7 -9
- package/lib/cjs/select/animation.scss +15 -0
- package/lib/cjs/select/option.scss +1 -2
- package/lib/cjs/select/select.css +6 -4
- package/lib/cjs/select/select.scss +7 -2
- package/lib/cjs/select/variables.scss +5 -5
- 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.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.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.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.scss +3 -0
- package/lib/cjs/table/foundation.js +2 -2
- package/lib/cjs/table/table.css +14 -4
- package/lib/cjs/table/table.scss +29 -24
- package/lib/cjs/table/variables.scss +2 -2
- 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.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.scss +7 -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.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.scss +6 -0
- package/lib/es/anchor/variables.scss +7 -1
- 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/foundation.js +4 -0
- 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.scss +6 -0
- package/lib/es/breadcrumb/breadcrumb.css +3 -1
- package/lib/es/breadcrumb/breadcrumb.scss +4 -1
- 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.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.scss +4 -0
- package/lib/es/cascader/cascader.css +1 -0
- package/lib/es/cascader/cascader.scss +2 -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.scss +4 -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.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.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.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.scss +11 -0
- package/lib/es/pagination/pagination.css +2 -0
- package/lib/es/pagination/pagination.scss +4 -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/radio/radioFoundation.d.ts +2 -0
- package/lib/es/radio/radioFoundation.js +4 -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.scss +3 -0
- package/lib/es/scrollList/scrollList.css +1 -0
- package/lib/es/scrollList/scrollList.scss +7 -9
- package/lib/es/select/animation.scss +15 -0
- package/lib/es/select/option.scss +1 -2
- package/lib/es/select/select.css +6 -4
- package/lib/es/select/select.scss +7 -2
- package/lib/es/select/variables.scss +5 -5
- 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.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.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.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.scss +3 -0
- package/lib/es/table/foundation.js +2 -2
- package/lib/es/table/table.css +14 -4
- package/lib/es/table/table.scss +29 -24
- package/lib/es/table/variables.scss +2 -2
- 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.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.scss +7 -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.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/radio/radioFoundation.ts +5 -0
- 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 -2
- 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/foundation.ts +2 -2
- package/table/table.scss +29 -24
- package/table/variables.scss +2 -2
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import './variables.scss';
|
|
2
|
+
@import './animation.scss';
|
|
2
3
|
@import './splitButtonGroup.scss';
|
|
3
4
|
|
|
4
5
|
$module: #{$prefix}-button;
|
|
@@ -39,6 +40,11 @@ $module: #{$prefix}-button;
|
|
|
39
40
|
&-danger {
|
|
40
41
|
background-color: $color-button_danger-bg-default;
|
|
41
42
|
color: $color-button_danger-text-default;
|
|
43
|
+
transition: background-color $transition_duration-button_danger-bg $transition_function-button_danger-bg $transition_delay-button_danger-bg,
|
|
44
|
+
border $transition_duration-button_danger-border $transition_function-button_danger-border $transition_delay-button_danger-border;
|
|
45
|
+
transform: scale($transform-scale-button_danger);
|
|
46
|
+
|
|
47
|
+
|
|
42
48
|
&:hover {
|
|
43
49
|
background-color: $color-button_danger-bg-hover;
|
|
44
50
|
}
|
|
@@ -56,6 +62,10 @@ $module: #{$prefix}-button;
|
|
|
56
62
|
&-warning {
|
|
57
63
|
background-color: $color-button_warning-bg-default;
|
|
58
64
|
color: $color-button_warning-text-default;
|
|
65
|
+
transition: background-color $transition_duration-button_warning-bg $transition_function-button_warning-bg $transition_delay-button_warning-bg,
|
|
66
|
+
border $transition_duration-button_warning-border $transition_function-button_warning-border $transition_delay-button_warning-border;
|
|
67
|
+
transform:scale($transform_scale-button_warning);
|
|
68
|
+
|
|
59
69
|
&:hover {
|
|
60
70
|
background-color: $color-button_warning-bg-hover;
|
|
61
71
|
}
|
|
@@ -73,6 +83,10 @@ $module: #{$prefix}-button;
|
|
|
73
83
|
&-tertiary {
|
|
74
84
|
background-color: $color-button_tertiary-bg-default;
|
|
75
85
|
color: $color-button_tertiary-text-default;
|
|
86
|
+
transition: background-color $transition_duration-button_tertiary-bg $transition_function-button_tertiary-bg $transition_delay-button_tertiary-bg,
|
|
87
|
+
border $transition_duration-button_tertiary-border $transition_function-button_tertiary-border $transition_delay-button_tertiary-border;
|
|
88
|
+
transform:scale($transform_scale_button_tertiary);
|
|
89
|
+
|
|
76
90
|
&:hover {
|
|
77
91
|
background-color: $color-button_tertiary-bg-hover;
|
|
78
92
|
}
|
|
@@ -87,6 +101,10 @@ $module: #{$prefix}-button;
|
|
|
87
101
|
&-primary {
|
|
88
102
|
background-color: $color-button_primary-bg-default;
|
|
89
103
|
color: $color-button_primary-text-default;
|
|
104
|
+
transition: background-color $transition_duration-button_primary-bg $transition_function-button_primary-bg $transition_delay-button_primary-bg,
|
|
105
|
+
border $transition_duration-button_primary-border $transition_function-button_primary-border $transition_delay-button_primary-border;;
|
|
106
|
+
transform:scale($transform_scale-button_primary);
|
|
107
|
+
|
|
90
108
|
&:not(.#{$module}-borderless):not(.#{$module}-light):hover {
|
|
91
109
|
background-color: $color-button_primary-bg-hover;
|
|
92
110
|
}
|
|
@@ -103,6 +121,10 @@ $module: #{$prefix}-button;
|
|
|
103
121
|
background-color: $color-button_secondary-bg-default;
|
|
104
122
|
outline-color: $color-button_secondary-border-default;
|
|
105
123
|
color: $color-button_secondary-text-default;
|
|
124
|
+
transition: background-color $transition_duration-button_secondary-bg $transition_function-button_secondary-bg $transition_delay-button_secondary-bg,
|
|
125
|
+
border $transition_duration-button_secondary-border $transition_function-button_secondary-border $transition_delay-button_secondary-border;
|
|
126
|
+
transform:scale($transform_scale-button_secondary);
|
|
127
|
+
|
|
106
128
|
&:hover {
|
|
107
129
|
background-color: $color-button_secondary-bg-hover;
|
|
108
130
|
}
|
|
@@ -132,6 +154,9 @@ $module: #{$prefix}-button;
|
|
|
132
154
|
&-borderless {
|
|
133
155
|
background-color: transparent;
|
|
134
156
|
border: $width-button_borderless-border $color-button_borderless-border-default solid;
|
|
157
|
+
transition:background-color $transition_duration-button_borderless-bg $transition_function-button_borderless-bg $transition_delay-button_borderless-bg;
|
|
158
|
+
transform:scale($transform_scale-button_borderless);
|
|
159
|
+
|
|
135
160
|
&:not(.#{$module}-disabled):hover {
|
|
136
161
|
background-color: $color-button_borderless-bg-hover;
|
|
137
162
|
border: $width-button_borderless-border $color-button_borderless-border-hover solid;
|
|
@@ -145,6 +170,10 @@ $module: #{$prefix}-button;
|
|
|
145
170
|
&-light {
|
|
146
171
|
background-color: $color-button_light-bg-default;
|
|
147
172
|
border: $width-button_light-border $color-button_light-border-default solid;
|
|
173
|
+
transition: background-color $transition_duration-button_light-bg $transition_function-button_light-bg $transition_delay-button_light-bg,
|
|
174
|
+
border $transition_duration-button_light-border $transition_function-button_light-border $transition_delay-button_light-border;
|
|
175
|
+
transform:scale($transform_scale-button_light);
|
|
176
|
+
|
|
148
177
|
&:not(.#{$module}-disabled):hover {
|
|
149
178
|
background-color: $color-button_light-bg-hover;
|
|
150
179
|
border: $width-button_light-border $color-button_light-border-hover solid;
|
|
@@ -30,6 +30,7 @@ export interface DateObj {
|
|
|
30
30
|
isSameMonth: boolean;
|
|
31
31
|
month: string;
|
|
32
32
|
}
|
|
33
|
+
export declare type weeekStartsOnEnum = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
33
34
|
export declare const calcRangeData: (value: Date, start: Date, rangeLen: number, mode: string, locale: Locale) => DateObj[];
|
|
34
35
|
/**
|
|
35
36
|
*
|
|
@@ -39,7 +40,7 @@ export declare const calcRangeData: (value: Date, start: Date, rangeLen: number,
|
|
|
39
40
|
* @returns {object[]} { date: Date, dayString: string, ind: number, isToday: boolean, isWeekend: boolean, weekday: string }
|
|
40
41
|
* create weekly object array
|
|
41
42
|
*/
|
|
42
|
-
export declare const calcWeekData: (value: Date, mode: string, locale: Locale) => DateObj[];
|
|
43
|
+
export declare const calcWeekData: (value: Date, mode: string, locale: Locale, weekStartsOn: weeekStartsOnEnum) => DateObj[];
|
|
43
44
|
/**
|
|
44
45
|
*
|
|
45
46
|
* @param {object} event
|
|
@@ -161,7 +161,10 @@ exports.calcRangeData = calcRangeData;
|
|
|
161
161
|
const calcWeekData = function (value) {
|
|
162
162
|
let mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'week';
|
|
163
163
|
let locale = arguments.length > 2 ? arguments[2] : undefined;
|
|
164
|
-
|
|
164
|
+
let weekStartsOn = arguments.length > 3 ? arguments[3] : undefined;
|
|
165
|
+
const start = (0, _dateFns.startOfWeek)(value, {
|
|
166
|
+
weekStartsOn
|
|
167
|
+
});
|
|
165
168
|
return calcRangeData(value, start, 7, mode, locale);
|
|
166
169
|
};
|
|
167
170
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
2
2
|
import { Locale } from 'date-fns';
|
|
3
|
-
import { DateObj } from './eventUtil';
|
|
3
|
+
import { DateObj, weeekStartsOnEnum } from './eventUtil';
|
|
4
|
+
export { weeekStartsOnEnum };
|
|
4
5
|
export interface EventObject {
|
|
5
6
|
[x: string]: any;
|
|
6
7
|
key: string;
|
|
@@ -140,7 +140,10 @@ class CalendarFoundation extends _foundation.default {
|
|
|
140
140
|
data.month = (0, _dateFns.format)(value, 'LLL', {
|
|
141
141
|
locale: dateFnsLocale
|
|
142
142
|
});
|
|
143
|
-
|
|
143
|
+
const {
|
|
144
|
+
weekStartsOn
|
|
145
|
+
} = this.getProps();
|
|
146
|
+
data.week = (0, _eventUtil.calcWeekData)(value, 'week', dateFnsLocale, weekStartsOn);
|
|
144
147
|
|
|
145
148
|
this._adapter.setWeeklyData(data);
|
|
146
149
|
|
|
@@ -168,9 +171,12 @@ class CalendarFoundation extends _foundation.default {
|
|
|
168
171
|
|
|
169
172
|
const monthStart = (0, _dateFns.startOfMonth)(value);
|
|
170
173
|
const data = {};
|
|
174
|
+
const {
|
|
175
|
+
weekStartsOn
|
|
176
|
+
} = this.getProps();
|
|
171
177
|
const numberOfWeek = (0, _dateFns.getWeeksInMonth)(value);
|
|
172
178
|
(0, _map.default)(_context = [...(0, _keys.default)(_context2 = Array(numberOfWeek)).call(_context2)]).call(_context, ind => {
|
|
173
|
-
data[ind] = (0, _eventUtil.calcWeekData)((0, _dateFns.addDays)(monthStart, ind * 7), 'month', dateFnsLocale);
|
|
179
|
+
data[ind] = (0, _eventUtil.calcWeekData)((0, _dateFns.addDays)(monthStart, ind * 7), 'month', dateFnsLocale, weekStartsOn);
|
|
174
180
|
});
|
|
175
181
|
|
|
176
182
|
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;
|
|
@@ -52,7 +52,7 @@ class CarouselFoundation extends _foundation.default {
|
|
|
52
52
|
|
|
53
53
|
this._adapter.setIsReverse(stateActiveIndex > targetIndex);
|
|
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 _foundation.default {
|
|
|
69
69
|
|
|
70
70
|
this._adapter.setIsReverse(false);
|
|
71
71
|
|
|
72
|
-
if (this.
|
|
72
|
+
if (this.getIsControlledComponent()) {
|
|
73
73
|
this._notifyChange(targetIndex);
|
|
74
74
|
} else {
|
|
75
75
|
this._notifyChange(targetIndex);
|
|
@@ -86,7 +86,7 @@ class CarouselFoundation extends _foundation.default {
|
|
|
86
86
|
|
|
87
87
|
this._adapter.setIsReverse(true);
|
|
88
88
|
|
|
89
|
-
if (this.
|
|
89
|
+
if (this.getIsControlledComponent()) {
|
|
90
90
|
this._notifyChange(targetIndex);
|
|
91
91
|
} else {
|
|
92
92
|
this._notifyChange(targetIndex);
|
|
@@ -148,7 +148,7 @@ class CarouselFoundation extends _foundation.default {
|
|
|
148
148
|
return speed;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
getIsControlledComponent() {
|
|
152
152
|
return this._isInProps('activeIndex');
|
|
153
153
|
}
|
|
154
154
|
|
|
@@ -182,7 +182,7 @@ class CarouselFoundation extends _foundation.default {
|
|
|
182
182
|
|
|
183
183
|
this._notifyChange(activeIndex);
|
|
184
184
|
|
|
185
|
-
if (!this.
|
|
185
|
+
if (!this.getIsControlledComponent()) {
|
|
186
186
|
this.handleNewActiveIndex(activeIndex);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
@@ -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
|
}
|