@douyinfe/semi-foundation 2.35.0 → 2.36.0-alpha.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/datePicker/datePicker.scss +0 -1
- package/lib/cjs/datePicker/datePicker.css +0 -1
- package/lib/cjs/datePicker/datePicker.scss +0 -1
- package/lib/cjs/navigation/itemFoundation.d.ts +2 -0
- package/lib/cjs/navigation/navigation.css +77 -7
- package/lib/cjs/navigation/navigation.scss +119 -7
- package/lib/cjs/navigation/subNavFoundation.d.ts +2 -0
- package/lib/cjs/steps/bacisSteps.scss +287 -238
- package/lib/cjs/steps/fillSteps.scss +153 -142
- package/lib/cjs/steps/navSteps.scss +61 -40
- package/lib/cjs/steps/steps.css +381 -17
- package/lib/cjs/timeline/timeline.css +36 -0
- package/lib/cjs/timeline/timeline.scss +96 -46
- package/lib/es/datePicker/datePicker.css +0 -1
- package/lib/es/datePicker/datePicker.scss +0 -1
- package/lib/es/navigation/itemFoundation.d.ts +2 -0
- package/lib/es/navigation/navigation.css +77 -7
- package/lib/es/navigation/navigation.scss +119 -7
- package/lib/es/navigation/subNavFoundation.d.ts +2 -0
- package/lib/es/steps/bacisSteps.scss +287 -238
- package/lib/es/steps/fillSteps.scss +153 -142
- package/lib/es/steps/navSteps.scss +61 -40
- package/lib/es/steps/steps.css +381 -17
- package/lib/es/timeline/timeline.css +36 -0
- package/lib/es/timeline/timeline.scss +96 -46
- package/navigation/itemFoundation.ts +3 -1
- package/navigation/navigation.scss +119 -7
- package/navigation/subNavFoundation.ts +3 -1
- package/package.json +2 -2
- package/steps/bacisSteps.scss +287 -238
- package/steps/fillSteps.scss +153 -142
- package/steps/navSteps.scss +61 -40
- package/timeline/timeline.scss +96 -46
|
@@ -1,198 +1,209 @@
|
|
|
1
1
|
$module: #{$prefix}-steps;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
$fill: #{$module}-item-fill;
|
|
3
|
+
|
|
4
|
+
@mixin steps-item {
|
|
5
|
+
@include box-sizing;
|
|
6
|
+
display: flex;
|
|
7
|
+
height: $height-steps_item;
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
// margin-right: $spacing-steps_item-marginRight;
|
|
11
|
+
border: $width-steps_item-border solid $color-steps-border-default;
|
|
12
|
+
border-radius: $radius-steps_item;
|
|
13
|
+
padding: $spacing-steps_item-paddingY $spacing-steps_item-paddingX;
|
|
14
|
+
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text; // item 字体颜色动效
|
|
15
|
+
transform:scale($transform_scale-step-item);
|
|
16
|
+
transition: background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
|
|
17
|
+
column-gap: $spacing-steps_item_content-marginLeft;
|
|
18
|
+
|
|
19
|
+
.#{$module}-item-title {
|
|
20
|
+
position: relative;
|
|
21
|
+
// display: inline-block;
|
|
22
|
+
@include font-size-header-5;
|
|
23
|
+
font-weight: $font-weight-bold;
|
|
24
|
+
width: $width-steps_item_title;
|
|
25
|
+
@include text-overflow-hidden;
|
|
26
|
+
color: $color-steps_main-text-default;
|
|
27
|
+
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text
|
|
28
|
+
|
|
6
29
|
}
|
|
7
30
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
31
|
+
.#{$module}-item-description {
|
|
32
|
+
@include font-size-regular;
|
|
33
|
+
color: $color-steps_minor-text-default;
|
|
34
|
+
width: $width-steps_item_description;
|
|
35
|
+
@include text-overflow-hidden;
|
|
12
36
|
}
|
|
13
37
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// &-text {
|
|
17
|
-
// position: relative;
|
|
18
|
-
// &::after {
|
|
19
|
-
// content: '';
|
|
20
|
-
// display: block;
|
|
21
|
-
// width: 9999px;
|
|
22
|
-
// height: 1px;
|
|
23
|
-
// position: absolute;
|
|
24
|
-
// top: 12px;
|
|
25
|
-
// left: 120%;
|
|
26
|
-
// background-color: var(--semi-color-border);
|
|
27
|
-
// }
|
|
28
|
-
// }
|
|
29
|
-
// }
|
|
30
|
-
// }
|
|
38
|
+
&-process {
|
|
39
|
+
background-color: $color-steps_process-bg-default;
|
|
31
40
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
display: flex;
|
|
35
|
-
height: $height-steps_item;
|
|
36
|
-
position: relative;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
margin-right: $spacing-steps_item-marginRight;
|
|
39
|
-
border: $width-steps_item-border solid $color-steps-border-default;
|
|
40
|
-
border-radius: $radius-steps_item;
|
|
41
|
-
padding: $spacing-steps_item-paddingY $spacing-steps_item-paddingX;
|
|
42
|
-
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text; // item 字体颜色动效
|
|
43
|
-
transform:scale($transform_scale-step-item);
|
|
44
|
-
transition: background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
|
|
45
|
-
|
|
46
|
-
.#{$module}-item-title {
|
|
47
|
-
position: relative;
|
|
48
|
-
// display: inline-block;
|
|
49
|
-
@include font-size-header-5;
|
|
50
|
-
font-weight: $font-weight-bold;
|
|
51
|
-
width: $width-steps_item_title;
|
|
52
|
-
@include text-overflow-hidden;
|
|
53
|
-
color: $color-steps_main-text-default;
|
|
54
|
-
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text
|
|
55
|
-
|
|
41
|
+
.#{$module}-item-left:not(.#{$module}-item-icon) {
|
|
42
|
+
background: $color-steps_primary-bg-default;
|
|
56
43
|
}
|
|
57
44
|
|
|
58
|
-
.#{$module}-item-
|
|
59
|
-
|
|
60
|
-
color: $color-
|
|
61
|
-
width: $width-steps_item_description;
|
|
62
|
-
@include text-overflow-hidden;
|
|
45
|
+
.#{$module}-item-title,
|
|
46
|
+
.#{$module}-item-icon {
|
|
47
|
+
color: $color-steps_primary-icon-default;
|
|
63
48
|
}
|
|
49
|
+
}
|
|
64
50
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
background: $color-steps_primary-bg-default;
|
|
70
|
-
}
|
|
51
|
+
&-wait {
|
|
52
|
+
.#{$module}-item-left:not(.#{$module}-item-icon) {
|
|
53
|
+
background: $color-steps-bg-default;
|
|
54
|
+
}
|
|
71
55
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
color: $color-steps_primary-icon-default;
|
|
75
|
-
}
|
|
56
|
+
.#{$module}-item-icon {
|
|
57
|
+
color: $color-steps-icon-default;
|
|
76
58
|
}
|
|
59
|
+
}
|
|
77
60
|
|
|
78
|
-
|
|
79
|
-
.#{$module}-item-left:not(.#{$module}-item-icon) {
|
|
80
|
-
background: $color-steps-bg-default;
|
|
81
|
-
}
|
|
61
|
+
&-finish {
|
|
82
62
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
63
|
+
.#{$prefix}-icon,
|
|
64
|
+
.#{$module}-item-title {
|
|
65
|
+
color: $color-steps_success-text-default;
|
|
86
66
|
}
|
|
87
67
|
|
|
88
|
-
&-
|
|
68
|
+
&-hover:hover {
|
|
69
|
+
background-color: $color-steps-bg-hover;
|
|
89
70
|
|
|
90
71
|
.#{$prefix}-icon,
|
|
91
72
|
.#{$module}-item-title {
|
|
92
|
-
color: $color-steps_success-text-
|
|
73
|
+
color: $color-steps_success-text-hover;
|
|
93
74
|
}
|
|
75
|
+
}
|
|
94
76
|
|
|
95
|
-
|
|
96
|
-
|
|
77
|
+
&:active {
|
|
78
|
+
background-color: $color-steps-bg-active;
|
|
97
79
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
80
|
+
.#{$prefix}-icon,
|
|
81
|
+
.#{$module}-item-title {
|
|
82
|
+
color: $color-steps_success-text-active;
|
|
102
83
|
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
103
86
|
|
|
104
|
-
|
|
105
|
-
background-color: $color-steps-bg-active;
|
|
87
|
+
&-error {
|
|
106
88
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
}
|
|
89
|
+
.#{$prefix}-icon,
|
|
90
|
+
.#{$module}-item-title {
|
|
91
|
+
color: $color-steps_danger-text-default;
|
|
112
92
|
}
|
|
113
93
|
|
|
114
|
-
&-
|
|
94
|
+
&-hover:hover {
|
|
95
|
+
background: $color-steps-bg-hover;
|
|
115
96
|
|
|
116
97
|
.#{$prefix}-icon,
|
|
117
98
|
.#{$module}-item-title {
|
|
118
|
-
color: $color-steps_danger-text-
|
|
99
|
+
color: $color-steps_danger-text-hover;
|
|
119
100
|
}
|
|
101
|
+
}
|
|
120
102
|
|
|
121
|
-
|
|
122
|
-
|
|
103
|
+
&:active {
|
|
104
|
+
background-color: $color-steps-bg-active;
|
|
123
105
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
106
|
+
.#{$prefix}-icon,
|
|
107
|
+
.#{$module}-item-title {
|
|
108
|
+
color: $color-steps_danger-text-active;
|
|
128
109
|
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
129
112
|
|
|
130
|
-
|
|
131
|
-
background-color: $color-steps-bg-active;
|
|
113
|
+
&-warning {
|
|
132
114
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
}
|
|
115
|
+
.#{$module}-item-title,
|
|
116
|
+
.#{$prefix}-icon {
|
|
117
|
+
color: $color-steps_warning-text-default;
|
|
138
118
|
}
|
|
139
119
|
|
|
140
|
-
&-
|
|
120
|
+
&-hover:hover {
|
|
121
|
+
background: $color-steps-bg-hover;
|
|
141
122
|
|
|
142
123
|
.#{$module}-item-title,
|
|
143
124
|
.#{$prefix}-icon {
|
|
144
|
-
color: $color-steps_warning-text-
|
|
125
|
+
color: $color-steps_warning-text-hover;
|
|
145
126
|
}
|
|
127
|
+
}
|
|
146
128
|
|
|
147
|
-
|
|
148
|
-
|
|
129
|
+
&:active {
|
|
130
|
+
background-color: $color-steps-bg-active;
|
|
149
131
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
132
|
+
.#{$module}-item-title,
|
|
133
|
+
.#{$prefix}-icon {
|
|
134
|
+
color: $color-steps_warning-text-active;
|
|
154
135
|
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
155
138
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
139
|
+
&-clickable {
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@mixin steps-item-left {
|
|
145
|
+
&-left {
|
|
146
|
+
width: $width-steps_item_left;
|
|
147
|
+
height: $height-steps_item_left;
|
|
148
|
+
line-height: $font-steps_item_left-lineHeight;
|
|
149
|
+
text-align: center;
|
|
150
|
+
border-radius: $radius-steps_item_left;
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
@include font-size-header-4;
|
|
155
|
+
font-weight: $font-weight-bold;
|
|
156
|
+
flex-grow: 0;
|
|
157
|
+
|
|
158
|
+
&.#{$module}-item-plain {
|
|
159
|
+
color: $color-steps-text-default;
|
|
164
160
|
}
|
|
165
161
|
|
|
166
|
-
&-
|
|
167
|
-
|
|
162
|
+
&-process {
|
|
163
|
+
background: $color-steps_process-bg-default;
|
|
168
164
|
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
169
167
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
align-items: center;
|
|
178
|
-
justify-content: center;
|
|
179
|
-
@include font-size-header-4;
|
|
180
|
-
font-weight: $font-weight-bold;
|
|
181
|
-
flex-grow: 0;
|
|
168
|
+
@mixin steps-item-content {
|
|
169
|
+
&-content {
|
|
170
|
+
// margin-left: $spacing-steps_item_content-marginLeft;
|
|
171
|
+
flex: 1;
|
|
172
|
+
overflow: hidden;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
182
175
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
176
|
+
.#{$module} {
|
|
177
|
+
.#{$prefix}-col {
|
|
178
|
+
flex: 1;
|
|
179
|
+
}
|
|
186
180
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
181
|
+
.#{$prefix}-row-flex {
|
|
182
|
+
column-gap: $spacing-steps_item-marginRight;
|
|
183
|
+
}
|
|
191
184
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
flex:
|
|
195
|
-
overflow: hidden;
|
|
185
|
+
&-vertical {
|
|
186
|
+
.#{$prefix}-row-flex {
|
|
187
|
+
flex-direction: column;
|
|
196
188
|
}
|
|
197
189
|
}
|
|
190
|
+
|
|
191
|
+
.#{$module}-item {
|
|
192
|
+
@include steps-item;
|
|
193
|
+
@include steps-item-left;
|
|
194
|
+
@include steps-item-content;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// 以下 css 用于 C2D 中变体生成
|
|
199
|
+
// The following css is used for variant generation in C2D
|
|
200
|
+
.#{$fill} {
|
|
201
|
+
&.#{$module}-item {
|
|
202
|
+
@include steps-item;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.#{$module}-item {
|
|
206
|
+
@include steps-item-left;
|
|
207
|
+
@include steps-item-content;
|
|
208
|
+
}
|
|
198
209
|
}
|
|
@@ -1,63 +1,84 @@
|
|
|
1
1
|
$module: #{$prefix}-steps;
|
|
2
2
|
$item: #{$module}-item;
|
|
3
3
|
$basicType: #{$module}-nav;
|
|
4
|
+
$navItem: #{$item}-nav;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
flex-flow: row nowrap;
|
|
8
|
-
|
|
9
|
-
.#{$item} {
|
|
10
|
-
@include box-sizing;
|
|
6
|
+
@mixin steps-nav-item {
|
|
7
|
+
@include box-sizing;
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
&:last-child {
|
|
10
|
+
flex: none;
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
12
|
+
.#{$item}-content {
|
|
13
|
+
width: auto;
|
|
18
14
|
}
|
|
15
|
+
}
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
.#{$item}-icon {
|
|
26
|
-
display: inline-flex;
|
|
27
|
-
flex: 1;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
color: $color-steps_nav_item-icon;
|
|
30
|
-
min-width: $width-steps_nav_item_icon-minWidth;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
17
|
+
.#{$item}-container {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
color: $color-steps_nav_item_container-text;
|
|
33
21
|
|
|
34
|
-
.#{$item}-
|
|
22
|
+
.#{$item}-icon {
|
|
23
|
+
display: inline-flex;
|
|
35
24
|
flex: 1;
|
|
36
|
-
|
|
25
|
+
justify-content: center;
|
|
26
|
+
color: $color-steps_nav_item-icon;
|
|
27
|
+
min-width: $width-steps_nav_item_icon-minWidth;
|
|
37
28
|
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.#{$item}-content {
|
|
32
|
+
flex: 1;
|
|
33
|
+
display: inline-block;
|
|
34
|
+
}
|
|
38
35
|
|
|
36
|
+
.#{$item}-title {
|
|
37
|
+
@include font-size-header-6;
|
|
38
|
+
max-width: $width-steps_nav_item_title-maxWidth;
|
|
39
|
+
@include text-overflow-hidden;
|
|
40
|
+
font-weight: $font-steps_nav_item_title-fontWeight;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&-active {
|
|
39
45
|
.#{$item}-title {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@include text-overflow-hidden;
|
|
43
|
-
font-weight: $font-steps_nav_item_title-fontWeight;
|
|
46
|
+
color: $color-steps_nav_item_title-text-active;
|
|
47
|
+
font-weight: $font-steps_nav_item_title_active-fontWeight;
|
|
44
48
|
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
45
51
|
|
|
52
|
+
@mixin steps-nav-small {
|
|
53
|
+
.#{$item}-title {
|
|
54
|
+
@include font-size-regular;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
46
57
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
.#{$basicType} {
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
flex-flow: row nowrap;
|
|
61
|
+
|
|
62
|
+
.#{$item} {
|
|
63
|
+
@include steps-nav-item;
|
|
53
64
|
}
|
|
54
65
|
|
|
55
66
|
&.#{$module}-small {
|
|
56
67
|
.#{$item} {
|
|
57
|
-
|
|
58
|
-
@include font-size-regular;
|
|
59
|
-
}
|
|
60
|
-
|
|
68
|
+
@include steps-nav-small;
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
71
|
}
|
|
72
|
+
|
|
73
|
+
// C2D 变体生成样式
|
|
74
|
+
// The following css is used for variant generation in C2D
|
|
75
|
+
.#{$navItem} {
|
|
76
|
+
&.#{$item} {
|
|
77
|
+
@include steps-nav-item;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.#{$item}-small {
|
|
81
|
+
@include steps-nav-small;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
}
|