@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
|
@@ -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,6 +257,13 @@ $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
|
+
}
|
|
260
267
|
|
|
261
268
|
.#{$module}-item {
|
|
262
269
|
color: $color-navigation_itemLn-text-default;
|
|
@@ -268,9 +275,9 @@ $module: #{$prefix}-navigation;
|
|
|
268
275
|
font-weight: $font-navigation_sub_item-fontWeight;
|
|
269
276
|
width: 100%;
|
|
270
277
|
|
|
271
|
-
&:first-child {
|
|
272
|
-
|
|
273
|
-
}
|
|
278
|
+
// &:first-child {
|
|
279
|
+
// margin-top: $spacing-navigation_sub_item_first_child-marginTop;
|
|
280
|
+
// }
|
|
274
281
|
|
|
275
282
|
& > &-text:first-child {
|
|
276
283
|
margin-left: $spacing-base-tight + $width-navigation_icon_left + $width-navigation_icon_text_between;
|
|
@@ -343,6 +350,12 @@ $module: #{$prefix}-navigation;
|
|
|
343
350
|
transform: rotate(-180deg);
|
|
344
351
|
}
|
|
345
352
|
|
|
353
|
+
&-icon-rotate-0-no-transition {
|
|
354
|
+
transform: rotate(0);
|
|
355
|
+
}
|
|
356
|
+
&-icon-rotate-180-no-transition {
|
|
357
|
+
transform: rotate(-180deg);
|
|
358
|
+
}
|
|
346
359
|
}
|
|
347
360
|
|
|
348
361
|
/* Header、Footer-Common */
|
|
@@ -430,6 +443,12 @@ $module: #{$prefix}-navigation;
|
|
|
430
443
|
}
|
|
431
444
|
}
|
|
432
445
|
|
|
446
|
+
&-list {
|
|
447
|
+
display: flex;
|
|
448
|
+
flex-direction: column;
|
|
449
|
+
row-gap: $spacing-navigation_item-marginBottom;
|
|
450
|
+
}
|
|
451
|
+
|
|
433
452
|
&-list > .#{$module}-sub-wrap {
|
|
434
453
|
& > .#{$module}-sub-title {
|
|
435
454
|
color: $color-navigation_itemL1-text-default;
|
|
@@ -483,9 +502,9 @@ $module: #{$prefix}-navigation;
|
|
|
483
502
|
}
|
|
484
503
|
}
|
|
485
504
|
|
|
486
|
-
.#{$module}-item:last-of-type {
|
|
487
|
-
|
|
488
|
-
}
|
|
505
|
+
// .#{$module}-item:last-of-type {
|
|
506
|
+
// margin-bottom: $spacing-navigation_vertical_nav_item_last-marginBottom;
|
|
507
|
+
// }
|
|
489
508
|
|
|
490
509
|
.#{$module}-inner {
|
|
491
510
|
flex-direction: column;
|
|
@@ -714,4 +733,97 @@ $module: #{$prefix}-navigation;
|
|
|
714
733
|
}
|
|
715
734
|
}
|
|
716
735
|
|
|
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
|
+
|
|
717
829
|
@import "./rtl.scss";
|
|
@@ -37,7 +37,9 @@ 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
|
|
40
|
+
getIsOpen(): boolean;
|
|
41
|
+
getIsCollapsed(): boolean;
|
|
42
|
+
getMode(): string
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
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.
|
|
3
|
+
"version": "2.36.0-alpha.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": "
|
|
26
|
+
"gitHead": "b0ea78a81e9ba459f9f5a06c831235a5d5e9d3a0",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|