@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,4 +1,5 @@
1
1
  import { strings } from './constants';
2
+ import type { BaseEllipsis } from './foundation';
2
3
  export declare function equalWith(value: any, other: any, customizer?: (...args: any[]) => boolean): boolean;
3
4
  export declare function getColumnKey(column: any, keyPropNames: any[]): any;
4
5
  /**
@@ -151,3 +152,4 @@ export declare function isTreeTable({ dataSource, childrenRecordName }: {
151
152
  childrenRecordName?: string;
152
153
  }): boolean;
153
154
  export declare function getRTLAlign(align: typeof strings.ALIGNS[number], direction?: 'ltr' | 'rtl'): typeof strings.ALIGNS[number];
155
+ export declare function shouldShowEllipsisTitle(ellipsis: BaseEllipsis): any;
@@ -510,4 +510,9 @@ export function getRTLAlign(align, direction) {
510
510
  }
511
511
 
512
512
  return align;
513
+ }
514
+ export function shouldShowEllipsisTitle(ellipsis) {
515
+ const shouldShowTitle = ellipsis === true || _get(ellipsis, 'showTitle', true);
516
+
517
+ return shouldShowTitle;
513
518
  }
@@ -1,3 +1,4 @@
1
+ import _isUndefined from "lodash/isUndefined";
1
2
  import _split from "lodash/split";
2
3
 
3
4
  /* eslint-disable max-len */
@@ -359,7 +360,19 @@ class TimePickerFoundation extends BaseFoundation {
359
360
  }
360
361
 
361
362
  if (_dates && Array.isArray(_dates)) {
362
- return _dates.map(date => formatToString(date, validFormat, dateFnsLocale)).join(rangeSeparator);
363
+ const result = _dates.map(date => {
364
+ let str;
365
+
366
+ if (_isUndefined(date)) {
367
+ str = '';
368
+ } else {
369
+ str = formatToString(date, validFormat, dateFnsLocale);
370
+ }
371
+
372
+ return str;
373
+ });
374
+
375
+ return result.join(rangeSeparator);
363
376
  }
364
377
 
365
378
  return undefined;
@@ -126,42 +126,6 @@
126
126
  width: calc(100% - 28px);
127
127
  }
128
128
 
129
- .semi-timeline-item-alternate .semi-timeline-item-tail, .semi-timeline-item-alternate .semi-timeline-item-head, .semi-timeline-item-alternate .semi-timeline-item-head-custom, .semi-timeline-item-mode-right .semi-timeline-item-tail, .semi-timeline-item-mode-right .semi-timeline-item-head, .semi-timeline-item-mode-right .semi-timeline-item-head-custom, .semi-timeline-item-center .semi-timeline-item-tail, .semi-timeline-item-center .semi-timeline-item-head, .semi-timeline-item-center .semi-timeline-item-head-custom {
130
- left: 50%;
131
- }
132
- .semi-timeline-item-alternate .semi-timeline-item-head.semi-timeline-item-head-custom, .semi-timeline-item-mode-right .semi-timeline-item-head.semi-timeline-item-head-custom, .semi-timeline-item-center .semi-timeline-item-head.semi-timeline-item-head-custom {
133
- margin-left: 0;
134
- }
135
- .semi-timeline-item-alternate .semi-timeline-item-head, .semi-timeline-item-mode-right .semi-timeline-item-head, .semi-timeline-item-center .semi-timeline-item-head {
136
- margin-left: -4px;
137
- }
138
- .semi-timeline-item-alternate.semi-timeline-item-left .semi-timeline-item-content, .semi-timeline-item-mode-right.semi-timeline-item-left .semi-timeline-item-content, .semi-timeline-item-center.semi-timeline-item-left .semi-timeline-item-content {
139
- left: calc(50% - 4px);
140
- width: calc(50% - 14px);
141
- text-align: left;
142
- }
143
- .semi-timeline-item-alternate.semi-timeline-item-right .semi-timeline-item-content, .semi-timeline-item-mode-right.semi-timeline-item-right .semi-timeline-item-content, .semi-timeline-item-center.semi-timeline-item-right .semi-timeline-item-content {
144
- width: calc(50% - 20px);
145
- margin: 0;
146
- text-align: right;
147
- }
148
- .semi-timeline-item-alternate.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail, .semi-timeline-item-mode-right.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail, .semi-timeline-item-center.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail, .semi-timeline-item-left.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail {
149
- border-left: 1px solid var(--semi-color-text-3);
150
- }
151
- .semi-timeline-item-center .semi-timeline-item-content-time {
152
- position: absolute;
153
- top: -2px;
154
- margin-left: calc(-40px - 100%);
155
- width: 100%;
156
- text-align: right;
157
- }
158
- .semi-timeline-item-mode-right.semi-timeline-item-right .semi-timeline-item-tail, .semi-timeline-item-mode-right.semi-timeline-item-right .semi-timeline-item-head, .semi-timeline-item-mode-right.semi-timeline-item-right .semi-timeline-item-head-custom {
159
- left: calc(100% - 9px);
160
- }
161
- .semi-timeline-item-mode-right.semi-timeline-item-right .semi-timeline-item-content {
162
- width: calc(100% - 28px);
163
- }
164
-
165
129
  .semi-rtl .semi-timeline,
166
130
  .semi-portal-rtl .semi-timeline {
167
131
  direction: rtl;
@@ -2,68 +2,6 @@
2
2
 
3
3
  $module: #{$prefix}-timeline;
4
4
 
5
- @mixin item-children {
6
- &-tail,
7
- &-head,
8
- &-head-custom {
9
- left: $spacing-timeline_item_head_custom-left;
10
- }
11
- &-head{
12
- &.#{$module}-item-head-custom{
13
- margin-left: 0;
14
- }
15
- }
16
- &-head {
17
- margin-left: $spacing-timeline_item_head-marginLeft;
18
- }
19
- }
20
-
21
- @mixin item-direction {
22
- &-left {
23
- .#{$module}-item-content {
24
- left: $spacing-timeline_item_left_item_content-left;
25
- width: $width-timeline_item_left_item_content;
26
- text-align: left;
27
- }
28
- }
29
-
30
- &-right {
31
- .#{$module}-item-content {
32
- width: $width-timeline_item_right_item_content;
33
- margin: $spacing-timeline_item_right_item_content;
34
- text-align: right;
35
- }
36
- }
37
- }
38
-
39
- @mixin item-center {
40
- &-center {
41
- .#{$module}-item {
42
- &-content-time {
43
- position: absolute;
44
- top: $spacing-timeline_time-top;
45
- margin-left: $spacing-timeline_item_content_time-marginLeft;
46
- width: $width-timeline_item_content_time;
47
- text-align: right;
48
- }
49
- }
50
- }
51
- }
52
-
53
- @mixin item-right {
54
- .#{$module}-item {
55
- &-tail,
56
- &-head,
57
- &-head-custom {
58
- left: $spacing-timeline_item_right_item-left;
59
- }
60
-
61
- &-content {
62
- width: $width-timeline_item_right_content;
63
- }
64
- }
65
- }
66
-
67
5
  .#{$module} {
68
6
  margin: $spacing-timeline-margin;
69
7
  padding: $spacing-timeline-padding;
@@ -177,53 +115,65 @@ $module: #{$prefix}-timeline;
177
115
  &-right,
178
116
  &-center {
179
117
  .#{$module}-item {
180
- @include item-children;
181
- @include item-direction;
182
- }
183
- }
118
+ &-tail,
119
+ &-head,
120
+ &-head-custom {
121
+ left: $spacing-timeline_item_head_custom-left;
122
+ }
123
+ &-head{
124
+ &.#{$module}-item-head-custom{
125
+ margin-left: 0;
126
+ }
127
+ }
128
+ &-head {
129
+ margin-left: $spacing-timeline_item_head-marginLeft;
130
+ }
184
131
 
185
-
186
- @include item-center;
132
+ &-left {
133
+ .#{$module}-item-content {
134
+ left: $spacing-timeline_item_left_item_content-left;
135
+ width: $width-timeline_item_left_item_content;
136
+ text-align: left;
137
+ }
138
+ }
187
139
 
188
- &-right {
189
- .#{$module}-item-right {
190
- @include item-right;
140
+ &-right {
141
+ .#{$module}-item-content {
142
+ width: $width-timeline_item_right_item_content;
143
+ margin: $spacing-timeline_item_right_item_content;
144
+ text-align: right;
145
+ }
146
+ }
191
147
  }
192
148
  }
193
- }
194
149
 
195
- // for c2d
196
- .#{$module}-item {
197
- &-alternate,
198
- &-mode-right,
199
150
  &-center {
200
151
  .#{$module}-item {
201
- @include item-children;
202
- }
203
- &.#{$module}-item {
204
- @include item-direction;
205
- }
206
- }
207
-
208
- &-alternate,
209
- &-mode-right,
210
- &-center,
211
- &-left {
212
- &.#{$module}-item {
213
- &.#{$module}-item-not-last-child {
214
- & > .#{$module}-item-tail {
215
- border-left: $width-timeline_tail-border solid $color-timeline_tail-border;
216
- }
152
+ &-content-time {
153
+ position: absolute;
154
+ top: $spacing-timeline_time-top;
155
+ margin-left: $spacing-timeline_item_content_time-marginLeft;
156
+ width: $width-timeline_item_content_time;
157
+ text-align: right;
217
158
  }
218
159
  }
219
160
  }
220
161
 
221
- @include item-center;
162
+ &-right {
163
+ .#{$module}-item-right {
164
+ .#{$module}-item {
165
+ &-tail,
166
+ &-head,
167
+ &-head-custom {
168
+ left: $spacing-timeline_item_right_item-left;
169
+ }
222
170
 
223
- &-mode-right {
224
- &.#{$module}-item-right {
225
- @include item-right;
171
+ &-content {
172
+ width: $width-timeline_item_right_content;
173
+ }
174
+ }
226
175
  }
227
176
  }
228
177
  }
178
+
229
179
  @import './rtl.scss';
@@ -75,6 +75,6 @@ export declare function getValueOrKey(data: any): any;
75
75
  export declare function normalizeValue(value: any, withObject: boolean): any;
76
76
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
77
77
  export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
78
- export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
78
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
79
79
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
80
80
  export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
@@ -98,11 +98,19 @@
98
98
  -webkit-box-orient: vertical;
99
99
  overflow: hidden;
100
100
  }
101
+ .semi-typography-ellipsis-multiple-line.semi-typography-ellipsis-multiple-line-text {
102
+ display: -webkit-inline-box;
103
+ }
101
104
  .semi-typography-ellipsis-overflow-ellipsis {
102
105
  display: block;
103
106
  white-space: nowrap;
104
107
  text-overflow: ellipsis;
105
108
  }
109
+ .semi-typography-ellipsis-overflow-ellipsis.semi-typography-ellipsis-overflow-ellipsis-text {
110
+ display: inline-block;
111
+ max-width: 100%;
112
+ vertical-align: top;
113
+ }
106
114
  .semi-typography-ellipsis-expand {
107
115
  display: inline;
108
116
  margin-left: 8px;
@@ -123,12 +123,25 @@ $module: #{$prefix}-typography;
123
123
  display: -webkit-box;
124
124
  -webkit-box-orient: vertical;
125
125
  overflow: hidden;
126
+
127
+ &.#{$module}-ellipsis-multiple-line-text {
128
+ // inline-block only works in the Text component, keeping the original external inline performance
129
+ display: -webkit-inline-box;
130
+ }
126
131
  }
127
132
 
128
133
  &-ellipsis-overflow-ellipsis {
129
134
  display: block;
130
135
  white-space: nowrap;
131
136
  text-overflow: ellipsis;
137
+
138
+ &.#{$module}-ellipsis-overflow-ellipsis-text {
139
+ // inline-block only works in the Text component, keeping the original external inline performance
140
+ display: inline-block;
141
+ // Ensure that Text component can be limited by the parent's width when no specific width is set
142
+ max-width: 100%;
143
+ vertical-align: top;
144
+ }
132
145
  }
133
146
 
134
147
  &-ellipsis-expand {
@@ -18,7 +18,7 @@ declare const strings: {
18
18
  DRAG_AREA_ILLEGAL: string;
19
19
  TRIGGER_AUTO: "auto";
20
20
  TRIGGER_CUSTOM: "custom";
21
- UPLOAD_TRIGGER: ("custom" | "auto")[];
21
+ UPLOAD_TRIGGER: ("auto" | "custom")[];
22
22
  VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
23
23
  PROMPT_POSITION: readonly ["left", "right", "bottom"];
24
24
  };
@@ -39,9 +39,7 @@ export interface ItemAdapter<P = Record<string, any>, S = Record<string, any>> e
39
39
  notifyMouseLeave(e: any): void;
40
40
  getIsCollapsed(): boolean;
41
41
  getSelected(): boolean;
42
- getIsOpen(): boolean;
43
- getIsInSubNav(): boolean;
44
- getMode(): string
42
+ getIsOpen(): boolean
45
43
  }
46
44
 
47
45
  export default class ItemFoundation<P = Record<string, any>, S = Record<string, any>> extends BaseFoundation<ItemAdapter<P, S>, P, S> {
@@ -76,7 +76,7 @@ $module: #{$prefix}-navigation;
76
76
  padding: $spacing-navigation_item-paddingY $spacing-navigation_item-paddingX;
77
77
  box-sizing: border-box;
78
78
  margin-top: 0;
79
- // margin-bottom: $spacing-navigation_item-marginBottom;
79
+ margin-bottom: $spacing-navigation_item-marginBottom;
80
80
 
81
81
  @include font-size-regular;
82
82
  font-weight: $font-navigation_item_normal-fontWeight;
@@ -257,13 +257,6 @@ $module: #{$prefix}-navigation;
257
257
  text-overflow: ellipsis;
258
258
  white-space: nowrap;
259
259
  overflow: hidden;
260
- display: flex;
261
- flex-direction: column;
262
- row-gap: $spacing-navigation_item-marginBottom;
263
-
264
- &.#{$module}-sub-open {
265
- margin-top: $spacing-navigation_sub_item_first_child-marginTop;
266
- }
267
260
 
268
261
  .#{$module}-item {
269
262
  color: $color-navigation_itemLn-text-default;
@@ -275,9 +268,9 @@ $module: #{$prefix}-navigation;
275
268
  font-weight: $font-navigation_sub_item-fontWeight;
276
269
  width: 100%;
277
270
 
278
- // &:first-child {
279
- // margin-top: $spacing-navigation_sub_item_first_child-marginTop;
280
- // }
271
+ &:first-child {
272
+ margin-top: $spacing-navigation_sub_item_first_child-marginTop;
273
+ }
281
274
 
282
275
  & > &-text:first-child {
283
276
  margin-left: $spacing-base-tight + $width-navigation_icon_left + $width-navigation_icon_text_between;
@@ -350,12 +343,6 @@ $module: #{$prefix}-navigation;
350
343
  transform: rotate(-180deg);
351
344
  }
352
345
 
353
- &-icon-rotate-0-no-transition {
354
- transform: rotate(0);
355
- }
356
- &-icon-rotate-180-no-transition {
357
- transform: rotate(-180deg);
358
- }
359
346
  }
360
347
 
361
348
  /* Header、Footer-Common */
@@ -443,12 +430,6 @@ $module: #{$prefix}-navigation;
443
430
  }
444
431
  }
445
432
 
446
- &-list {
447
- display: flex;
448
- flex-direction: column;
449
- row-gap: $spacing-navigation_item-marginBottom;
450
- }
451
-
452
433
  &-list > .#{$module}-sub-wrap {
453
434
  & > .#{$module}-sub-title {
454
435
  color: $color-navigation_itemL1-text-default;
@@ -502,9 +483,9 @@ $module: #{$prefix}-navigation;
502
483
  }
503
484
  }
504
485
 
505
- // .#{$module}-item:last-of-type {
506
- // margin-bottom: $spacing-navigation_vertical_nav_item_last-marginBottom;
507
- // }
486
+ .#{$module}-item:last-of-type {
487
+ margin-bottom: $spacing-navigation_vertical_nav_item_last-marginBottom;
488
+ }
508
489
 
509
490
  .#{$module}-inner {
510
491
  flex-direction: column;
@@ -733,97 +714,4 @@ $module: #{$prefix}-navigation;
733
714
  }
734
715
  }
735
716
 
736
- // The following css is used for the variant generation of NavItem and NavSub in C2D
737
- .#{$module}-first-layer {
738
- > .#{$module}-sub-title {
739
- .#{$module}-item-text {
740
- font-weight: 600;
741
- }
742
- }
743
-
744
- > .#{$module}-item-text {
745
- font-weight: 600;
746
- }
747
- }
748
-
749
- .#{$module}-sub-title-selected {
750
- .#{$module}-item-icon:first-child {
751
- color: $color-navigation_itemL1_selected_icon-default;
752
- }
753
- }
754
-
755
- .#{$module}-sub-wrap {
756
- .#{$module}-sub-title {
757
- margin-bottom: $spacing-navigation_sub_title-marginBottom;
758
- }
759
-
760
- .#{$module}-item:last-of-type {
761
- margin-bottom: $spacing-navigation_vertical_nav_item_last-marginBottom;
762
- }
763
- }
764
-
765
- .#{$module}-sub-title {
766
- &.#{$module}-sub-title-disabled {
767
- .semi-navigation-item-text {
768
- color: $color-navigation_itemL1_disabled-text-default;
769
- }
770
- }
771
- }
772
-
773
- .#{$module}-item-horizontal {
774
- // The width of nav NavItem and NavSub in the horizontal direction both need fit-content
775
- &.#{$module}-item {
776
- width: fit-content;
777
- margin-bottom: $spacing-navigation_horizontal_nav_list_item-marginBottom;
778
- margin-right: $spacing-navigation_horizontal_nav_list_item_not_last-marginRight;
779
-
780
- &.#{$module}-item-disabled {
781
- color: $color-navigation_horizontal_itemL1_disabled-text-default;
782
- }
783
- }
784
-
785
- .#{$module}-sub-title {
786
- .#{$module}-item-icon:first-child,
787
- .#{$module}-item-text {
788
- color: var(--semi-color-text-2);
789
- background-color: transparent;
790
- }
791
-
792
- &.#{$module}-sub-title-selected {
793
- .#{$module}-item-icon:first-child,
794
- .#{$module}-item-text {
795
- color: $color-navigation_horizontal_itemL1_selected-text-default;
796
- }
797
- }
798
-
799
- &.#{$module}-sub-title-disabled {
800
- .#{$module}-item-icon:first-child,
801
- .#{$module}-item-text {
802
- color: $color-navigation_horizontal_itemL1_disabled-text-default;
803
- }
804
- }
805
- }
806
-
807
- &.#{$module}-first-layer {
808
- color: $color-navigation_horizontal_itemL1-text-default;
809
- }
810
-
811
- &.#{$module}-item-selected {
812
- background-color: $color-navigation_horizontal_itemL1_selected-bg-default;
813
-
814
- .#{$module}-item-icon:first-child,
815
- .#{$module}-item-text {
816
- color: $color-navigation_horizontal_itemL1_selected-text-default;
817
- }
818
- }
819
-
820
- .semi-navigation-item-icon:first-child {
821
- margin-right: $spacing-navigation_horizontal_icon_last-marginLeft;
822
- }
823
-
824
- .semi-navigation-item-icon:last-child {
825
- margin-left: $spacing-navigation_horizontal_icon_first-marginRight;
826
- }
827
- }
828
-
829
717
  @import "./rtl.scss";
@@ -37,9 +37,7 @@ export interface SubNavAdapter<P = Record<string, any>, S = Record<string, any>>
37
37
  notifyGlobalOnSelect(data: OnSelectData): void;
38
38
  notifyGlobalOnClick(data: OnClickData): void;
39
39
  getIsSelected(itemKey: string | number): boolean;
40
- getIsOpen(): boolean;
41
- getIsCollapsed(): boolean;
42
- getMode(): string
40
+ getIsOpen(): boolean
43
41
  }
44
42
 
45
43
  export default class SubNavFoundation<P = Record<string, any>, S = Record<string, any>> extends BaseFoundation<SubNavAdapter<P, S>, P, S> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.34.0-alpha.1",
3
+ "version": "2.34.0",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
@@ -23,7 +23,7 @@
23
23
  "*.scss",
24
24
  "*.css"
25
25
  ],
26
- "gitHead": "8990c51afec33fcfc2f89234082597e484513756",
26
+ "gitHead": "2b01016b32a9da9a7e50424235dd5fc5c5fae3c2",
27
27
  "devDependencies": {
28
28
  "@babel/plugin-transform-runtime": "^7.15.8",
29
29
  "@babel/preset-env": "^7.15.8",
package/radio/radio.scss CHANGED
@@ -416,6 +416,7 @@ $inner-width: $width-icon-medium;
416
416
  &-horizontal {
417
417
  display: inline-flex;
418
418
  flex-wrap: wrap;
419
+ vertical-align: bottom; // Fix 1573
419
420
  gap: $spacing-radio_group_horizontal-marginRight;
420
421
  }
421
422