@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.
- package/breadcrumb/breadcrumb.scss +4 -4
- package/calendar/eventUtil.ts +9 -7
- package/calendar/foundation.ts +4 -4
- package/cascader/foundation.ts +24 -13
- package/lib/cjs/breadcrumb/breadcrumb.css +0 -3
- package/lib/cjs/breadcrumb/breadcrumb.scss +4 -4
- package/lib/cjs/calendar/eventUtil.d.ts +7 -6
- package/lib/cjs/calendar/eventUtil.js +8 -6
- package/lib/cjs/calendar/foundation.d.ts +2 -2
- package/lib/cjs/calendar/foundation.js +2 -2
- package/lib/cjs/cascader/foundation.d.ts +3 -1
- package/lib/cjs/cascader/foundation.js +26 -8
- package/lib/cjs/navigation/itemFoundation.d.ts +0 -2
- package/lib/cjs/navigation/navigation.css +7 -77
- package/lib/cjs/navigation/navigation.scss +7 -119
- package/lib/cjs/navigation/subNavFoundation.d.ts +0 -2
- package/lib/cjs/radio/radio.css +1 -0
- package/lib/cjs/radio/radio.scss +1 -0
- package/lib/cjs/steps/bacisSteps.scss +238 -287
- package/lib/cjs/steps/fillSteps.scss +142 -153
- package/lib/cjs/steps/navSteps.scss +40 -61
- package/lib/cjs/steps/steps.css +28 -392
- package/lib/cjs/table/foundation.d.ts +5 -0
- package/lib/cjs/table/table.css +23 -5
- package/lib/cjs/table/table.scss +25 -5
- package/lib/cjs/table/utils.d.ts +2 -0
- package/lib/cjs/table/utils.js +6 -0
- package/lib/cjs/timePicker/foundation.js +15 -1
- package/lib/cjs/timeline/timeline.css +0 -36
- package/lib/cjs/timeline/timeline.scss +46 -96
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/cjs/typography/typography.css +8 -0
- package/lib/cjs/typography/typography.scss +13 -0
- package/lib/cjs/upload/constants.d.ts +1 -1
- package/lib/es/breadcrumb/breadcrumb.css +0 -3
- package/lib/es/breadcrumb/breadcrumb.scss +4 -4
- package/lib/es/calendar/eventUtil.d.ts +7 -6
- package/lib/es/calendar/eventUtil.js +8 -6
- package/lib/es/calendar/foundation.d.ts +2 -2
- package/lib/es/calendar/foundation.js +2 -2
- package/lib/es/cascader/foundation.d.ts +3 -1
- package/lib/es/cascader/foundation.js +26 -8
- package/lib/es/navigation/itemFoundation.d.ts +0 -2
- package/lib/es/navigation/navigation.css +7 -77
- package/lib/es/navigation/navigation.scss +7 -119
- package/lib/es/navigation/subNavFoundation.d.ts +0 -2
- package/lib/es/radio/radio.css +1 -0
- package/lib/es/radio/radio.scss +1 -0
- package/lib/es/steps/bacisSteps.scss +238 -287
- package/lib/es/steps/fillSteps.scss +142 -153
- package/lib/es/steps/navSteps.scss +40 -61
- package/lib/es/steps/steps.css +28 -392
- package/lib/es/table/foundation.d.ts +5 -0
- package/lib/es/table/table.css +23 -5
- package/lib/es/table/table.scss +25 -5
- package/lib/es/table/utils.d.ts +2 -0
- package/lib/es/table/utils.js +5 -0
- package/lib/es/timePicker/foundation.js +14 -1
- package/lib/es/timeline/timeline.css +0 -36
- package/lib/es/timeline/timeline.scss +46 -96
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/lib/es/typography/typography.css +8 -0
- package/lib/es/typography/typography.scss +13 -0
- package/lib/es/upload/constants.d.ts +1 -1
- package/navigation/itemFoundation.ts +1 -3
- package/navigation/navigation.scss +7 -119
- package/navigation/subNavFoundation.ts +1 -3
- package/package.json +2 -2
- package/radio/radio.scss +1 -0
- package/steps/bacisSteps.scss +238 -287
- package/steps/fillSteps.scss +142 -153
- package/steps/navSteps.scss +40 -61
- package/table/foundation.ts +6 -2
- package/table/table.scss +25 -5
- package/table/utils.ts +6 -0
- package/timePicker/foundation.ts +12 -3
- package/timeline/timeline.scss +46 -96
- package/typography/typography.scss +13 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
279
|
-
|
|
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
|
-
|
|
506
|
-
|
|
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";
|
|
@@ -21,8 +21,6 @@ export interface SubNavAdapter<P = Record<string, any>, S = Record<string, any>>
|
|
|
21
21
|
notifyGlobalOnClick(data: OnClickData): void;
|
|
22
22
|
getIsSelected(itemKey: string | number): boolean;
|
|
23
23
|
getIsOpen(): boolean;
|
|
24
|
-
getIsCollapsed(): boolean;
|
|
25
|
-
getMode(): string;
|
|
26
24
|
}
|
|
27
25
|
export default class SubNavFoundation<P = Record<string, any>, S = Record<string, any>> extends BaseFoundation<SubNavAdapter<P, S>, P, S> {
|
|
28
26
|
constructor(adapter: SubNavAdapter<P, S>);
|
package/lib/cjs/radio/radio.css
CHANGED