@douyinfe/semi-foundation 2.34.0-alpha.1 → 2.34.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.
Files changed (78) hide show
  1. package/breadcrumb/breadcrumb.scss +4 -4
  2. package/calendar/eventUtil.ts +9 -7
  3. package/calendar/foundation.ts +4 -4
  4. package/cascader/foundation.ts +24 -13
  5. package/lib/cjs/breadcrumb/breadcrumb.css +0 -3
  6. package/lib/cjs/breadcrumb/breadcrumb.scss +4 -4
  7. package/lib/cjs/calendar/eventUtil.d.ts +7 -6
  8. package/lib/cjs/calendar/eventUtil.js +8 -6
  9. package/lib/cjs/calendar/foundation.d.ts +2 -2
  10. package/lib/cjs/calendar/foundation.js +2 -2
  11. package/lib/cjs/cascader/foundation.d.ts +3 -1
  12. package/lib/cjs/cascader/foundation.js +26 -8
  13. package/lib/cjs/navigation/itemFoundation.d.ts +0 -2
  14. package/lib/cjs/navigation/navigation.css +7 -77
  15. package/lib/cjs/navigation/navigation.scss +7 -119
  16. package/lib/cjs/navigation/subNavFoundation.d.ts +0 -2
  17. package/lib/cjs/radio/radio.css +1 -0
  18. package/lib/cjs/radio/radio.scss +1 -0
  19. package/lib/cjs/steps/bacisSteps.scss +238 -287
  20. package/lib/cjs/steps/fillSteps.scss +142 -153
  21. package/lib/cjs/steps/navSteps.scss +40 -61
  22. package/lib/cjs/steps/steps.css +28 -392
  23. package/lib/cjs/table/foundation.d.ts +5 -0
  24. package/lib/cjs/table/table.css +23 -5
  25. package/lib/cjs/table/table.scss +25 -5
  26. package/lib/cjs/table/utils.d.ts +2 -0
  27. package/lib/cjs/table/utils.js +6 -0
  28. package/lib/cjs/timePicker/foundation.js +15 -1
  29. package/lib/cjs/timeline/timeline.css +0 -36
  30. package/lib/cjs/timeline/timeline.scss +46 -96
  31. package/lib/cjs/tree/treeUtil.d.ts +1 -1
  32. package/lib/cjs/typography/typography.css +8 -0
  33. package/lib/cjs/typography/typography.scss +13 -0
  34. package/lib/cjs/upload/constants.d.ts +1 -1
  35. package/lib/es/breadcrumb/breadcrumb.css +0 -3
  36. package/lib/es/breadcrumb/breadcrumb.scss +4 -4
  37. package/lib/es/calendar/eventUtil.d.ts +7 -6
  38. package/lib/es/calendar/eventUtil.js +8 -6
  39. package/lib/es/calendar/foundation.d.ts +2 -2
  40. package/lib/es/calendar/foundation.js +2 -2
  41. package/lib/es/cascader/foundation.d.ts +3 -1
  42. package/lib/es/cascader/foundation.js +26 -8
  43. package/lib/es/navigation/itemFoundation.d.ts +0 -2
  44. package/lib/es/navigation/navigation.css +7 -77
  45. package/lib/es/navigation/navigation.scss +7 -119
  46. package/lib/es/navigation/subNavFoundation.d.ts +0 -2
  47. package/lib/es/radio/radio.css +1 -0
  48. package/lib/es/radio/radio.scss +1 -0
  49. package/lib/es/steps/bacisSteps.scss +238 -287
  50. package/lib/es/steps/fillSteps.scss +142 -153
  51. package/lib/es/steps/navSteps.scss +40 -61
  52. package/lib/es/steps/steps.css +28 -392
  53. package/lib/es/table/foundation.d.ts +5 -0
  54. package/lib/es/table/table.css +23 -5
  55. package/lib/es/table/table.scss +25 -5
  56. package/lib/es/table/utils.d.ts +2 -0
  57. package/lib/es/table/utils.js +5 -0
  58. package/lib/es/timePicker/foundation.js +14 -1
  59. package/lib/es/timeline/timeline.css +0 -36
  60. package/lib/es/timeline/timeline.scss +46 -96
  61. package/lib/es/tree/treeUtil.d.ts +1 -1
  62. package/lib/es/typography/typography.css +8 -0
  63. package/lib/es/typography/typography.scss +13 -0
  64. package/lib/es/upload/constants.d.ts +1 -1
  65. package/navigation/itemFoundation.ts +1 -3
  66. package/navigation/navigation.scss +7 -119
  67. package/navigation/subNavFoundation.ts +1 -3
  68. package/package.json +2 -2
  69. package/radio/radio.scss +1 -0
  70. package/steps/bacisSteps.scss +238 -287
  71. package/steps/fillSteps.scss +142 -153
  72. package/steps/navSteps.scss +40 -61
  73. package/table/foundation.ts +6 -2
  74. package/table/table.scss +25 -5
  75. package/table/utils.ts +6 -0
  76. package/timePicker/foundation.ts +12 -3
  77. package/timeline/timeline.scss +46 -96
  78. package/typography/typography.scss +13 -0
@@ -1,209 +1,198 @@
1
1
  $module: #{$prefix}-steps;
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
-
2
+
3
+ .#{$module} {
4
+ .#{$prefix}-col {
5
+ flex: 1;
29
6
  }
30
7
 
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;
8
+ &-vertical {
9
+ .#{$prefix}-row-flex {
10
+ flex-direction: column;
11
+ }
36
12
  }
37
13
 
38
- &-process {
39
- background-color: $color-steps_process-bg-default;
14
+ // .#{$module}-horizontal {
15
+ // .#{$module}-item-title {
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
+ // }
40
31
 
41
- .#{$module}-item-left:not(.#{$module}-item-icon) {
42
- background: $color-steps_primary-bg-default;
32
+ .#{$module}-item {
33
+ @include box-sizing;
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
+
43
56
  }
44
57
 
45
- .#{$module}-item-title,
46
- .#{$module}-item-icon {
47
- color: $color-steps_primary-icon-default;
58
+ .#{$module}-item-description {
59
+ @include font-size-regular;
60
+ color: $color-steps_minor-text-default;
61
+ width: $width-steps_item_description;
62
+ @include text-overflow-hidden;
48
63
  }
49
- }
50
64
 
51
- &-wait {
52
- .#{$module}-item-left:not(.#{$module}-item-icon) {
53
- background: $color-steps-bg-default;
54
- }
65
+ &-process {
66
+ background-color: $color-steps_process-bg-default;
67
+
68
+ .#{$module}-item-left:not(.#{$module}-item-icon) {
69
+ background: $color-steps_primary-bg-default;
70
+ }
55
71
 
56
- .#{$module}-item-icon {
57
- color: $color-steps-icon-default;
72
+ .#{$module}-item-title,
73
+ .#{$module}-item-icon {
74
+ color: $color-steps_primary-icon-default;
75
+ }
58
76
  }
59
- }
60
77
 
61
- &-finish {
78
+ &-wait {
79
+ .#{$module}-item-left:not(.#{$module}-item-icon) {
80
+ background: $color-steps-bg-default;
81
+ }
62
82
 
63
- .#{$prefix}-icon,
64
- .#{$module}-item-title {
65
- color: $color-steps_success-text-default;
83
+ .#{$module}-item-icon {
84
+ color: $color-steps-icon-default;
85
+ }
66
86
  }
67
87
 
68
- &:hover {
69
- background-color: $color-steps-bg-hover;
88
+ &-finish {
70
89
 
71
90
  .#{$prefix}-icon,
72
91
  .#{$module}-item-title {
73
- color: $color-steps_success-text-hover;
92
+ color: $color-steps_success-text-default;
74
93
  }
75
- }
76
94
 
77
- &:active {
78
- background-color: $color-steps-bg-active;
95
+ &-hover:hover {
96
+ background-color: $color-steps-bg-hover;
79
97
 
80
- .#{$prefix}-icon,
81
- .#{$module}-item-title {
82
- color: $color-steps_success-text-active;
98
+ .#{$prefix}-icon,
99
+ .#{$module}-item-title {
100
+ color: $color-steps_success-text-hover;
101
+ }
83
102
  }
84
- }
85
- }
86
103
 
87
- &-error {
104
+ &:active {
105
+ background-color: $color-steps-bg-active;
88
106
 
89
- .#{$prefix}-icon,
90
- .#{$module}-item-title {
91
- color: $color-steps_danger-text-default;
107
+ .#{$prefix}-icon,
108
+ .#{$module}-item-title {
109
+ color: $color-steps_success-text-active;
110
+ }
111
+ }
92
112
  }
93
113
 
94
- &:hover {
95
- background: $color-steps-bg-hover;
114
+ &-error {
96
115
 
97
116
  .#{$prefix}-icon,
98
117
  .#{$module}-item-title {
99
- color: $color-steps_danger-text-hover;
118
+ color: $color-steps_danger-text-default;
100
119
  }
101
- }
102
120
 
103
- &:active {
104
- background-color: $color-steps-bg-active;
121
+ &-hover:hover {
122
+ background: $color-steps-bg-hover;
105
123
 
106
- .#{$prefix}-icon,
107
- .#{$module}-item-title {
108
- color: $color-steps_danger-text-active;
124
+ .#{$prefix}-icon,
125
+ .#{$module}-item-title {
126
+ color: $color-steps_danger-text-hover;
127
+ }
109
128
  }
110
- }
111
- }
112
129
 
113
- &-warning {
130
+ &:active {
131
+ background-color: $color-steps-bg-active;
114
132
 
115
- .#{$module}-item-title,
116
- .#{$prefix}-icon {
117
- color: $color-steps_warning-text-default;
133
+ .#{$prefix}-icon,
134
+ .#{$module}-item-title {
135
+ color: $color-steps_danger-text-active;
136
+ }
137
+ }
118
138
  }
119
139
 
120
- &:hover {
121
- background: $color-steps-bg-hover;
140
+ &-warning {
122
141
 
123
142
  .#{$module}-item-title,
124
143
  .#{$prefix}-icon {
125
- color: $color-steps_warning-text-hover;
144
+ color: $color-steps_warning-text-default;
126
145
  }
127
- }
128
146
 
129
- &:active {
130
- background-color: $color-steps-bg-active;
147
+ &-hover:hover {
148
+ background: $color-steps-bg-hover;
131
149
 
132
- .#{$module}-item-title,
133
- .#{$prefix}-icon {
134
- color: $color-steps_warning-text-active;
150
+ .#{$module}-item-title,
151
+ .#{$prefix}-icon {
152
+ color: $color-steps_warning-text-hover;
153
+ }
135
154
  }
136
- }
137
- }
138
155
 
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;
156
+ &:active {
157
+ background-color: $color-steps-bg-active;
158
+
159
+ .#{$module}-item-title,
160
+ .#{$prefix}-icon {
161
+ color: $color-steps_warning-text-active;
162
+ }
163
+ }
160
164
  }
161
165
 
162
- &-process {
163
- background: $color-steps_process-bg-default;
166
+ &-clickable {
167
+ cursor: pointer;
164
168
  }
165
- }
166
- }
167
169
 
168
- @mixin steps-item-content {
169
- &-content {
170
- // margin-left: $spacing-steps_item_content-marginLeft;
171
- flex: 1;
172
- overflow: hidden;
173
- }
174
- }
170
+ &-left {
171
+ width: $width-steps_item_left;
172
+ height: $height-steps_item_left;
173
+ line-height: $font-steps_item_left-lineHeight;
174
+ text-align: center;
175
+ border-radius: $radius-steps_item_left;
176
+ display: flex;
177
+ align-items: center;
178
+ justify-content: center;
179
+ @include font-size-header-4;
180
+ font-weight: $font-weight-bold;
181
+ flex-grow: 0;
175
182
 
176
- .#{$module} {
177
- .#{$prefix}-col {
178
- flex: 1;
179
- }
180
-
181
- .#{$prefix}-row-flex {
182
- column-gap: $spacing-steps_item-marginRight;
183
- }
183
+ &.#{$module}-item-plain {
184
+ color: $color-steps-text-default;
185
+ }
184
186
 
185
- &-vertical {
186
- .#{$prefix}-row-flex {
187
- flex-direction: column;
187
+ &-process {
188
+ background: $color-steps_process-bg-default;
189
+ }
188
190
  }
189
- }
190
-
191
- .#{$module}-item {
192
- @include steps-item;
193
- @include steps-item-left;
194
- @include steps-item-content;
195
- }
196
- }
197
191
 
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;
192
+ &-content {
193
+ margin-left: $spacing-steps_item_content-marginLeft;
194
+ flex: 1;
195
+ overflow: hidden;
196
+ }
208
197
  }
209
198
  }
@@ -1,84 +1,63 @@
1
1
  $module: #{$prefix}-steps;
2
2
  $item: #{$module}-item;
3
3
  $basicType: #{$module}-nav;
4
- $navItem: #{$item}-nav;
5
4
 
6
- @mixin steps-nav-item {
7
- @include box-sizing;
5
+ .#{$basicType} {
6
+ display: inline-flex;
7
+ flex-flow: row nowrap;
8
+
9
+ .#{$item} {
10
+ @include box-sizing;
8
11
 
9
- &:last-child {
10
- flex: none;
12
+ &:last-child {
13
+ flex: none;
11
14
 
12
- .#{$item}-content {
13
- width: auto;
15
+ .#{$item}-content {
16
+ width: auto;
17
+ }
14
18
  }
15
- }
16
19
 
17
- .#{$item}-container {
18
- display: flex;
19
- align-items: center;
20
- color: $color-steps_nav_item_container-text;
20
+ .#{$item}-container {
21
+ display: flex;
22
+ align-items: center;
23
+ color: $color-steps_nav_item_container-text;
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
+ }
21
33
 
22
- .#{$item}-icon {
23
- display: inline-flex;
34
+ .#{$item}-content {
24
35
  flex: 1;
25
- justify-content: center;
26
- color: $color-steps_nav_item-icon;
27
- min-width: $width-steps_nav_item_icon-minWidth;
36
+ display: inline-block;
28
37
  }
29
- }
30
-
31
- .#{$item}-content {
32
- flex: 1;
33
- display: inline-block;
34
- }
35
38
 
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 {
45
39
  .#{$item}-title {
46
- color: $color-steps_nav_item_title-text-active;
47
- font-weight: $font-steps_nav_item_title_active-fontWeight;
40
+ @include font-size-header-6;
41
+ max-width: $width-steps_nav_item_title-maxWidth;
42
+ @include text-overflow-hidden;
43
+ font-weight: $font-steps_nav_item_title-fontWeight;
48
44
  }
49
- }
50
- }
51
-
52
- @mixin steps-nav-small {
53
- .#{$item}-title {
54
- @include font-size-regular;
55
- }
56
- }
57
45
 
58
- .#{$basicType} {
59
- display: inline-flex;
60
- flex-flow: row nowrap;
61
46
 
62
- .#{$item} {
63
- @include steps-nav-item;
47
+ &-active {
48
+ .#{$item}-title {
49
+ color: $color-steps_nav_item_title-text-active;
50
+ font-weight: $font-steps_nav_item_title_active-fontWeight;
51
+ }
52
+ }
64
53
  }
65
54
 
66
55
  &.#{$module}-small {
67
56
  .#{$item} {
68
- @include steps-nav-small;
69
- }
70
- }
71
- }
57
+ .#{$item}-title {
58
+ @include font-size-regular;
59
+ }
72
60
 
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;
61
+ }
82
62
  }
83
-
84
63
  }