@douyinfe/semi-foundation 2.32.2 → 2.33.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/cascader/cascader.scss +47 -2
- package/cascader/foundation.ts +1 -0
- package/cascader/variables.scss +1 -0
- package/collapse/foundation.ts +1 -0
- package/datePicker/datePicker.scss +123 -18
- package/datePicker/foundation.ts +1 -0
- package/datePicker/inputFoundation.ts +1 -0
- package/input/input.scss +28 -0
- package/input/textarea.scss +34 -0
- package/input/variables.scss +2 -0
- package/inputNumber/inputNumber.scss +9 -0
- package/lib/cjs/cascader/cascader.css +35 -1
- package/lib/cjs/cascader/cascader.scss +47 -2
- package/lib/cjs/cascader/foundation.d.ts +1 -0
- package/lib/cjs/cascader/variables.scss +1 -0
- package/lib/cjs/collapse/foundation.d.ts +1 -0
- package/lib/cjs/datePicker/datePicker.css +45 -0
- package/lib/cjs/datePicker/datePicker.scss +123 -18
- package/lib/cjs/datePicker/foundation.d.ts +1 -0
- package/lib/cjs/datePicker/inputFoundation.d.ts +1 -0
- package/lib/cjs/input/input.css +14 -0
- package/lib/cjs/input/input.scss +28 -0
- package/lib/cjs/input/textarea.css +20 -0
- package/lib/cjs/input/textarea.scss +34 -0
- package/lib/cjs/input/variables.scss +2 -0
- package/lib/cjs/inputNumber/inputNumber.css +4 -0
- package/lib/cjs/inputNumber/inputNumber.scss +9 -0
- package/lib/cjs/select/select.css +26 -0
- package/lib/cjs/select/select.scss +40 -1
- package/lib/cjs/timePicker/timePicker.css +4 -0
- package/lib/cjs/timePicker/timePicker.scss +12 -0
- package/lib/cjs/treeSelect/foundation.d.ts +1 -0
- package/lib/cjs/treeSelect/treeSelect.css +36 -0
- package/lib/cjs/treeSelect/treeSelect.scss +54 -2
- package/lib/cjs/treeSelect/variables.scss +3 -1
- package/lib/es/cascader/cascader.css +35 -1
- package/lib/es/cascader/cascader.scss +47 -2
- package/lib/es/cascader/foundation.d.ts +1 -0
- package/lib/es/cascader/variables.scss +1 -0
- package/lib/es/collapse/foundation.d.ts +1 -0
- package/lib/es/datePicker/datePicker.css +45 -0
- package/lib/es/datePicker/datePicker.scss +123 -18
- package/lib/es/datePicker/foundation.d.ts +1 -0
- package/lib/es/datePicker/inputFoundation.d.ts +1 -0
- package/lib/es/input/input.css +14 -0
- package/lib/es/input/input.scss +28 -0
- package/lib/es/input/textarea.css +20 -0
- package/lib/es/input/textarea.scss +34 -0
- package/lib/es/input/variables.scss +2 -0
- package/lib/es/inputNumber/inputNumber.css +4 -0
- package/lib/es/inputNumber/inputNumber.scss +9 -0
- package/lib/es/select/select.css +26 -0
- package/lib/es/select/select.scss +40 -1
- package/lib/es/timePicker/timePicker.css +4 -0
- package/lib/es/timePicker/timePicker.scss +12 -0
- package/lib/es/treeSelect/foundation.d.ts +1 -0
- package/lib/es/treeSelect/treeSelect.css +36 -0
- package/lib/es/treeSelect/treeSelect.scss +54 -2
- package/lib/es/treeSelect/variables.scss +3 -1
- package/package.json +2 -2
- package/select/select.scss +40 -1
- package/timePicker/timePicker.scss +12 -0
- package/treeSelect/foundation.ts +1 -0
- package/treeSelect/treeSelect.scss +54 -2
- package/treeSelect/variables.scss +3 -1
package/cascader/cascader.scss
CHANGED
|
@@ -25,6 +25,17 @@ $module: #{$prefix}-cascader;
|
|
|
25
25
|
border: $width-cascader_hover-border $color-cascader_default-border-hover solid;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
&:focus {
|
|
29
|
+
border: $width-cascader_focus-border solid $color-cascader_default-border-focus;
|
|
30
|
+
background-color: $color-cascader_default-bg-default;
|
|
31
|
+
outline: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
&:active {
|
|
36
|
+
background-color: $color-cascader_default-bg-active;
|
|
37
|
+
}
|
|
38
|
+
|
|
28
39
|
&-small {
|
|
29
40
|
min-height: $height-cascader_small;
|
|
30
41
|
line-height: $height-cascader_small;
|
|
@@ -41,11 +52,13 @@ $module: #{$prefix}-cascader;
|
|
|
41
52
|
&-focus {
|
|
42
53
|
border: $width-cascader_focus-border solid $color-cascader_default-border-focus;
|
|
43
54
|
outline: 0;
|
|
44
|
-
&:hover
|
|
45
|
-
&:active {
|
|
55
|
+
&:hover{
|
|
46
56
|
background-color: $color-cascader_default-bg-default;
|
|
47
57
|
border: $width-cascader_focus-border solid $color-cascader_default-border-focus;
|
|
48
58
|
}
|
|
59
|
+
&:active {
|
|
60
|
+
background-color: $color-cascader_default-bg-active;
|
|
61
|
+
}
|
|
49
62
|
}
|
|
50
63
|
|
|
51
64
|
&-warning {
|
|
@@ -495,4 +508,36 @@ $module: #{$prefix}-cascader;
|
|
|
495
508
|
}
|
|
496
509
|
}
|
|
497
510
|
|
|
511
|
+
.#{$module}-borderless{
|
|
512
|
+
&:not(:focus-within):not(:hover){
|
|
513
|
+
background-color:transparent;
|
|
514
|
+
border-color: transparent;
|
|
515
|
+
.#{$module}-arrow {
|
|
516
|
+
opacity: 0;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
&:focus-within:not(:active){
|
|
521
|
+
background-color:transparent;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
&.#{$module}-error:not(:focus-within){
|
|
525
|
+
border-color: $color-cascader_danger-border-focus;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
&.#{$module}-warning:not(:focus-within){
|
|
529
|
+
border-color: $color-cascader_warning-border-focus;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
&.#{$module}-error:focus-within{
|
|
533
|
+
border-color: $color-cascader_danger-border-focus;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
&.#{$module}-warning:focus-within{
|
|
537
|
+
border-color: $color-cascader_warning-border-focus;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
}
|
|
542
|
+
|
|
498
543
|
@import './rtl.scss';
|
package/cascader/foundation.ts
CHANGED
package/cascader/variables.scss
CHANGED
|
@@ -5,6 +5,7 @@ $color-cascader_default-border-hover: transparent; // 级联选择描边颜色 -
|
|
|
5
5
|
$color-cascader_default-border-focus: var(--semi-color-focus-border); // 级联选择描边颜色 - 选中
|
|
6
6
|
$color-cascader_default-bg-default: var(--semi-color-fill-0); // 级联选择菜单项背景颜色 - 默认
|
|
7
7
|
$color-cascader_default-bg-hover: var(--semi-color-fill-1); // 级联选择菜单项背景颜色 - 悬浮
|
|
8
|
+
$color-cascader_default-bg-active: var(--semi-color-fill-2); // 级联选择菜单项背景颜色 - 按下
|
|
8
9
|
$color-cascader_option_list-border-default: var(--semi-color-fill-0); // 级联选择各级菜单分割线颜色
|
|
9
10
|
$color-cascader_option_main-text-default: var(--semi-color-text-0); // 级联选择菜单项文字颜色
|
|
10
11
|
$color-cascader_option-bg-hover: var(--semi-color-fill-0); // 级联选择菜单项背景颜色 - 悬浮
|
package/collapse/foundation.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface CollapseProps{
|
|
|
7
7
|
activeKey?: string | string[];
|
|
8
8
|
defaultActiveKey?: string | string[];
|
|
9
9
|
accordion?: boolean;
|
|
10
|
+
clickHeaderToExpand?: boolean;
|
|
10
11
|
onChange?: (activeKey: CollapseProps['activeKey'], e: any) => void;
|
|
11
12
|
expandIcon?: any;
|
|
12
13
|
collapseIcon?: any;
|
|
@@ -77,6 +77,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
77
77
|
&[x-open-type=year] {
|
|
78
78
|
min-height: $height-datepicker_month_grid_yearType_insetInput;
|
|
79
79
|
}
|
|
80
|
+
|
|
80
81
|
&[x-open-type=time] {
|
|
81
82
|
min-height: $height-datepicker_month_grid_timeType_insetInput;
|
|
82
83
|
}
|
|
@@ -101,7 +102,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
101
102
|
|
|
102
103
|
// when preset postion is left or right, and insetinput is false, let the month panel get the fixed height
|
|
103
104
|
&[x-preset-position=left][x-insetinput=false],
|
|
104
|
-
&[x-preset-position=right][x-insetinput=false] {
|
|
105
|
+
&[x-preset-position=right][x-insetinput=false] {
|
|
105
106
|
.#{$module}-month {
|
|
106
107
|
height: $height-datepicker_month_max;
|
|
107
108
|
}
|
|
@@ -234,6 +235,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
234
235
|
&:first-of-type {
|
|
235
236
|
margin-right: $spacing-datepicker_footer_cancel_button-marginRight;
|
|
236
237
|
}
|
|
238
|
+
|
|
237
239
|
// confirm button
|
|
238
240
|
&:nth-of-type(2) {
|
|
239
241
|
margin-right: $spacing-datepicker_footer_confirm_button-marginRight;
|
|
@@ -564,6 +566,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
564
566
|
}
|
|
565
567
|
}
|
|
566
568
|
}
|
|
569
|
+
|
|
567
570
|
// 以上是天状态
|
|
568
571
|
}
|
|
569
572
|
|
|
@@ -662,11 +665,12 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
662
665
|
display: grid;
|
|
663
666
|
align-content: flex-start;
|
|
664
667
|
grid-gap: $spacing-datepicker_quick_control_item-margin;
|
|
665
|
-
grid-template-columns: repeat(2, minmax($width-datepicker_presetPanel_left_and_right_two_col_button - $width-datepicker_presetPanel_scroll_bar * 0.5
|
|
668
|
+
grid-template-columns: repeat(2, minmax($width-datepicker_presetPanel_left_and_right_two_col_button - $width-datepicker_presetPanel_scroll_bar * 0.5, $width-datepicker_presetPanel_left_and_right_two_col_button));
|
|
666
669
|
padding: 0 $spacing-datepicker_quick_control_content-paddingX $spacing-datepicker_quick_control_content-paddingX;
|
|
667
670
|
|
|
668
671
|
&-item {
|
|
669
672
|
max-width: $width-datepicker_presetPanel_left_and_right_two_col_button;
|
|
673
|
+
|
|
670
674
|
&-ellipsis {
|
|
671
675
|
// ellipsis text content, $spacing-datepicker_quick_control_item-margin(default 8px)space left and right
|
|
672
676
|
width: $width-datepicker_presetPanel_left_and_right_two_col_button - ($spacing-datepicker_quick_control_item-margin * 2);
|
|
@@ -686,6 +690,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
686
690
|
|
|
687
691
|
&-item {
|
|
688
692
|
max-width: $width-datepicker_presetPanel_top_and_bottom_three_col_button;
|
|
693
|
+
|
|
689
694
|
&-ellipsis {
|
|
690
695
|
width: $width-datepicker_presetPanel_top_and_bottom_three_col_button - ($spacing-datepicker_quick_control_item-margin * 2);
|
|
691
696
|
color: $color-datepicker_quick_button-text-default;
|
|
@@ -705,6 +710,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
705
710
|
|
|
706
711
|
&-item {
|
|
707
712
|
max-width: $width-datepicker_presetPanel_top_and_bottom_five_col_button;
|
|
713
|
+
|
|
708
714
|
&-ellipsis {
|
|
709
715
|
width: $width-datepicker_presetPanel_top_and_bottom_five_col_button - ($spacing-datepicker_quick_control_item-margin * 2);
|
|
710
716
|
color: $color-datepicker_quick_button-text-default;
|
|
@@ -723,6 +729,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
723
729
|
|
|
724
730
|
&-item {
|
|
725
731
|
max-width: $width-datepicker_presetPanel_top_and_bottom_two_col_button;
|
|
732
|
+
|
|
726
733
|
&-ellipsis {
|
|
727
734
|
max-width: $width-datepicker_presetPanel_top_and_bottom_two_col_button - ($spacing-datepicker_quick_control_item-margin * 2);
|
|
728
735
|
color: $color-datepicker_quick_button-text-default;
|
|
@@ -733,6 +740,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
733
740
|
|
|
734
741
|
&-month {
|
|
735
742
|
max-width: $width-datepicker_monthPanel_max;
|
|
743
|
+
|
|
736
744
|
&[x-insetinput=true] {
|
|
737
745
|
.#{$module}-quick-control-right-content-wrapper,
|
|
738
746
|
.#{$module}-quick-control-left-content-wrapper {
|
|
@@ -748,12 +756,14 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
748
756
|
|
|
749
757
|
&-date {
|
|
750
758
|
max-width: $width-datepicker_monthPanel_max;
|
|
759
|
+
|
|
751
760
|
&[x-insetinput=true] {
|
|
752
761
|
.#{$module}-quick-control-right-content-wrapper,
|
|
753
762
|
.#{$module}-quick-control-left-content-wrapper {
|
|
754
763
|
max-height: $height-datepicker_preset_panel_inset_input - $height-datepicker_presetPanel_left_and_right_except_content;
|
|
755
764
|
}
|
|
756
765
|
}
|
|
766
|
+
|
|
757
767
|
.#{$module}-quick-control-right-content-wrapper,
|
|
758
768
|
.#{$module}-quick-control-left-content-wrapper {
|
|
759
769
|
max-height: $height-datepicker_date_panel - $height-datepicker_presetPanel_left_and_right_except_content;
|
|
@@ -762,12 +772,14 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
762
772
|
|
|
763
773
|
&-dateTime {
|
|
764
774
|
max-width: $width-datepicker_monthPanel_max;
|
|
775
|
+
|
|
765
776
|
&[x-insetinput=true] {
|
|
766
777
|
.#{$module}-quick-control-right-content-wrapper,
|
|
767
778
|
.#{$module}-quick-control-left-content-wrapper {
|
|
768
779
|
max-height: $height-datepicker_preset_panel_inset_input - $height-datepicker_presetPanel_left_and_right_except_content;
|
|
769
780
|
}
|
|
770
781
|
}
|
|
782
|
+
|
|
771
783
|
.#{$module}-quick-control-right-content-wrapper,
|
|
772
784
|
.#{$module}-quick-control-left-content-wrapper {
|
|
773
785
|
max-height: $height-datepicker_date_time_panel - $height-datepicker_presetPanel_left_and_right_except_content;
|
|
@@ -776,12 +788,14 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
776
788
|
|
|
777
789
|
&-dateRange {
|
|
778
790
|
max-width: $width-datepicker_monthPanel_max * 2;
|
|
791
|
+
|
|
779
792
|
&[x-insetinput=true] {
|
|
780
793
|
.#{$module}-quick-control-right-content-wrapper,
|
|
781
794
|
.#{$module}-quick-control-left-content-wrapper {
|
|
782
795
|
max-height: $height-datepicker_preset_panel_inset_input - $height-datepicker_presetPanel_left_and_right_except_content;
|
|
783
796
|
}
|
|
784
797
|
}
|
|
798
|
+
|
|
785
799
|
.#{$module}-quick-control-right-content-wrapper,
|
|
786
800
|
.#{$module}-quick-control-left-content-wrapper {
|
|
787
801
|
max-height: $height-datepicker_date_panel - $height-datepicker_presetPanel_left_and_right_except_content;
|
|
@@ -790,12 +804,14 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
790
804
|
|
|
791
805
|
&-dateTimeRange {
|
|
792
806
|
max-width: $width-datepicker_monthPanel_max * 2;
|
|
807
|
+
|
|
793
808
|
&[x-insetinput=true] {
|
|
794
809
|
.#{$module}-quick-control-right-content-wrapper,
|
|
795
810
|
.#{$module}-quick-control-left-content-wrapper {
|
|
796
811
|
max-height: $height-datepicker_preset_panel_inset_input - $height-datepicker_presetPanel_left_and_right_except_content;
|
|
797
812
|
}
|
|
798
813
|
}
|
|
814
|
+
|
|
799
815
|
.#{$module}-quick-control-right-content-wrapper,
|
|
800
816
|
.#{$module}-quick-control-left-content-wrapper {
|
|
801
817
|
max-height: $height-datepicker_date_time_panel - $height-datepicker_presetPanel_left_and_right_except_content;
|
|
@@ -838,10 +854,12 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
838
854
|
padding-bottom: $spacing-datepicker_insetInput_wrapper-paddingBottom;
|
|
839
855
|
|
|
840
856
|
width: $width-datepicker_insetInput_date_type_wrapper;
|
|
857
|
+
|
|
841
858
|
&[x-type=dateRange],
|
|
842
859
|
&[x-type=dateTimeRange] {
|
|
843
860
|
width: $width-datepicker_insetInput_date_range_type_wrapper;
|
|
844
861
|
}
|
|
862
|
+
|
|
845
863
|
&[x-type=month] {
|
|
846
864
|
width: $width-datepicker_insetInput_month_type_wrapper;
|
|
847
865
|
}
|
|
@@ -877,12 +895,13 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
877
895
|
background-color: $color-datepicker_range_input-bg-default;
|
|
878
896
|
border: $width-datepicker_range_trigger-border solid $color-datepicker_range_trigger-border;
|
|
879
897
|
|
|
880
|
-
&:hover{
|
|
881
|
-
border-color: $color-datepicker_range_trigger-border-hover
|
|
898
|
+
&:hover {
|
|
899
|
+
border-color: $color-datepicker_range_trigger-border-hover;
|
|
882
900
|
}
|
|
883
901
|
|
|
884
|
-
&:active{
|
|
885
|
-
border-color: $color-datepicker_range_trigger-border-active
|
|
902
|
+
&:active {
|
|
903
|
+
border-color: $color-datepicker_range_trigger-border-active;
|
|
904
|
+
|
|
886
905
|
}
|
|
887
906
|
|
|
888
907
|
.#{$module}-monthRange-input {
|
|
@@ -914,7 +933,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
914
933
|
& ~ .#{$module}-range-input-clearbtn {
|
|
915
934
|
display: flex;
|
|
916
935
|
}
|
|
917
|
-
|
|
936
|
+
|
|
918
937
|
& ~ .#{$module}-range-input-clearbtn ~ .#{$module}-range-input-suffix {
|
|
919
938
|
display: none;
|
|
920
939
|
}
|
|
@@ -939,7 +958,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
939
958
|
|
|
940
959
|
&-start-with-prefix {
|
|
941
960
|
border-radius: 0;
|
|
942
|
-
}
|
|
961
|
+
}
|
|
943
962
|
|
|
944
963
|
&-end {
|
|
945
964
|
border-radius: 0;
|
|
@@ -994,7 +1013,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
994
1013
|
background-color: $color-datepicker_range_input_inputWrapper-bg-default;
|
|
995
1014
|
}
|
|
996
1015
|
}
|
|
997
|
-
|
|
1016
|
+
|
|
998
1017
|
&:hover {
|
|
999
1018
|
background-color: $color-datepicker_range_input_disabled-bg-hover;
|
|
1000
1019
|
}
|
|
@@ -1012,8 +1031,8 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1012
1031
|
.#{$module}-range-input-wrapper {
|
|
1013
1032
|
&:hover {
|
|
1014
1033
|
background-color: $color-datepicker_range_input_warning-bg-hover;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1017
1036
|
&-active {
|
|
1018
1037
|
border-color: $color-datepicker_range_input_warning-border-active;
|
|
1019
1038
|
background-color: $color-datepicker_range_input_warning-bg-active;
|
|
@@ -1028,8 +1047,8 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1028
1047
|
.#{$module}-range-input-wrapper {
|
|
1029
1048
|
&:hover {
|
|
1030
1049
|
background-color: $color-datepicker_range_input_error-bg-hover;
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1033
1052
|
&-active {
|
|
1034
1053
|
border-color: $color-datepicker_range_input_error-border-active;
|
|
1035
1054
|
background-color: $color-datepicker_range_input_error-bg-active;
|
|
@@ -1063,7 +1082,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1063
1082
|
&-suffix {
|
|
1064
1083
|
padding-left: $spacing-datepicker_range_input_suffix-paddingLeft;
|
|
1065
1084
|
padding-right: $spacing-datepicker_range_input_suffix-paddingRight;
|
|
1066
|
-
|
|
1085
|
+
|
|
1067
1086
|
&-hidden {
|
|
1068
1087
|
display: none;
|
|
1069
1088
|
}
|
|
@@ -1083,7 +1102,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1083
1102
|
.#{$module}-compact {
|
|
1084
1103
|
@include font-size-small;
|
|
1085
1104
|
line-height: $lineHeight-datepicker_compact;
|
|
1086
|
-
|
|
1105
|
+
|
|
1087
1106
|
.#{$module}-month-grid {
|
|
1088
1107
|
|
|
1089
1108
|
&[x-type="dateTime"],
|
|
@@ -1093,7 +1112,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1093
1112
|
height: calc(100% - #{$height-datepicker_switch_compact});
|
|
1094
1113
|
}
|
|
1095
1114
|
}
|
|
1096
|
-
|
|
1115
|
+
|
|
1097
1116
|
&[x-type="dateRange"],
|
|
1098
1117
|
&[x-type="dateTimeRange"] {
|
|
1099
1118
|
.#{$module}-month-grid-left {
|
|
@@ -1113,7 +1132,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1113
1132
|
|
|
1114
1133
|
// when preset postion is left or right, and insetinput is false, let the month panel get the fixed height
|
|
1115
1134
|
&[x-preset-position=left][x-insetinput=false],
|
|
1116
|
-
&[x-preset-position=right][x-insetinput=false] {
|
|
1135
|
+
&[x-preset-position=right][x-insetinput=false] {
|
|
1117
1136
|
|
|
1118
1137
|
.#{$module}-month {
|
|
1119
1138
|
height: $height-datepicker_month_max_compact;
|
|
@@ -1184,6 +1203,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1184
1203
|
&[x-open-type=year] {
|
|
1185
1204
|
min-height: $height-datepicker_tpk_compact;
|
|
1186
1205
|
}
|
|
1206
|
+
|
|
1187
1207
|
&[x-open-type=time] {
|
|
1188
1208
|
min-height: $height-datepicker_tpk_compact;
|
|
1189
1209
|
}
|
|
@@ -1272,7 +1292,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1272
1292
|
.#{$module}-day {
|
|
1273
1293
|
width: $width-datepicker_day_compact;
|
|
1274
1294
|
height: $width-datepicker_day_compact;
|
|
1275
|
-
|
|
1295
|
+
|
|
1276
1296
|
&-main {
|
|
1277
1297
|
width: $width-datepicker_day_main_compact;
|
|
1278
1298
|
height: $width-datepicker_day_main_compact;
|
|
@@ -1384,6 +1404,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1384
1404
|
|
|
1385
1405
|
&-item {
|
|
1386
1406
|
max-width: $width-datepicker_presetPanel_left_and_right_two_col_button;
|
|
1407
|
+
|
|
1387
1408
|
&-ellipsis {
|
|
1388
1409
|
width: $width-datepicker_presetPanel_left_and_right_two_col_button - ($spacing-datepicker_quick_control_item-margin * 2);
|
|
1389
1410
|
font-size: $fontSize-datepicker_insetInput_compact-fontSize;
|
|
@@ -1403,6 +1424,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1403
1424
|
|
|
1404
1425
|
&-item {
|
|
1405
1426
|
max-width: $width-datepicker_presetPanel_top_and_bottom_three_col_button_compact;
|
|
1427
|
+
|
|
1406
1428
|
&-ellipsis {
|
|
1407
1429
|
width: $width-datepicker_presetPanel_top_and_bottom_three_col_button_compact - ($spacing-datepicker_quick_control_item-margin * 2);
|
|
1408
1430
|
font-size: $fontSize-datepicker_insetInput_compact-fontSize;
|
|
@@ -1421,6 +1443,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1421
1443
|
|
|
1422
1444
|
&-item {
|
|
1423
1445
|
max-width: $width-datepicker_presetPanel_top_and_bottom_five_col_button_compact;
|
|
1446
|
+
|
|
1424
1447
|
&-ellipsis {
|
|
1425
1448
|
width: $width-datepicker_presetPanel_top_and_bottom_five_col_button_compact - ($spacing-datepicker_quick_control_item-margin * 2);
|
|
1426
1449
|
font-size: $fontSize-datepicker_insetInput_compact-fontSize;
|
|
@@ -1439,6 +1462,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1439
1462
|
|
|
1440
1463
|
&-item {
|
|
1441
1464
|
max-width: $width-datepicker_presetPanel_top_and_bottom_two_col_button_compact;
|
|
1465
|
+
|
|
1442
1466
|
&-ellipsis {
|
|
1443
1467
|
max-width: $width-datepicker_presetPanel_top_and_bottom_two_col_button_compact - ($spacing-datepicker_quick_control_item-margin * 2);
|
|
1444
1468
|
font-size: $fontSize-datepicker_insetInput_compact-fontSize;
|
|
@@ -1449,12 +1473,14 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1449
1473
|
|
|
1450
1474
|
&-month {
|
|
1451
1475
|
max-width: $width-datepicker_panel_compact;
|
|
1476
|
+
|
|
1452
1477
|
&[x-insetinput=true] {
|
|
1453
1478
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1454
1479
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1455
1480
|
max-height: $height-datepicker_panel_yam_scrolllist - $height-datepicker_presetPanel_left_and_right_except_content_compact + $height-datepicker_inset_input_compact;
|
|
1456
1481
|
}
|
|
1457
1482
|
}
|
|
1483
|
+
|
|
1458
1484
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1459
1485
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1460
1486
|
max-height: $height-datepicker_panel_yam_scrolllist - $height-datepicker_presetPanel_left_and_right_except_content_compact;
|
|
@@ -1463,12 +1489,14 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1463
1489
|
|
|
1464
1490
|
&-date {
|
|
1465
1491
|
max-width: $width-datepicker_panel_compact;
|
|
1492
|
+
|
|
1466
1493
|
&[x-insetinput=true] {
|
|
1467
1494
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1468
1495
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1469
1496
|
max-height: $height-datepicker_preset_panel_inset_input_compact - $height-datepicker_presetPanel_left_and_right_except_content_compact;
|
|
1470
1497
|
}
|
|
1471
1498
|
}
|
|
1499
|
+
|
|
1472
1500
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1473
1501
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1474
1502
|
max-height: $height-datepicker_date_panel_compact - $height-datepicker_presetPanel_left_and_right_except_content_compact;
|
|
@@ -1477,12 +1505,14 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1477
1505
|
|
|
1478
1506
|
&-dateTime {
|
|
1479
1507
|
max-width: $width-datepicker_panel_compact;
|
|
1508
|
+
|
|
1480
1509
|
&[x-insetinput=true] {
|
|
1481
1510
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1482
1511
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1483
1512
|
max-height: $height-datepicker_preset_panel_inset_input_compact - $height-datepicker_presetPanel_left_and_right_except_content_compact;
|
|
1484
1513
|
}
|
|
1485
1514
|
}
|
|
1515
|
+
|
|
1486
1516
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1487
1517
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1488
1518
|
max-height: $height-datepicker_date_time_panel_compact - $height-datepicker_presetPanel_left_and_right_except_content_compact;
|
|
@@ -1491,12 +1521,14 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1491
1521
|
|
|
1492
1522
|
&-dateRange {
|
|
1493
1523
|
max-width: $width-datepicker_panel_compact * 2;
|
|
1524
|
+
|
|
1494
1525
|
&[x-insetinput=true] {
|
|
1495
1526
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1496
1527
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1497
1528
|
max-height: $height-datepicker_preset_panel_inset_input_compact - $height-datepicker_presetPanel_left_and_right_except_content_compact;
|
|
1498
1529
|
}
|
|
1499
1530
|
}
|
|
1531
|
+
|
|
1500
1532
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1501
1533
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1502
1534
|
max-height: $height-datepicker_date_panel_compact - $height-datepicker_presetPanel_left_and_right_except_content_compact;
|
|
@@ -1505,12 +1537,14 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1505
1537
|
|
|
1506
1538
|
&-dateTimeRange {
|
|
1507
1539
|
max-width: $width-datepicker_panel_compact * 2;
|
|
1540
|
+
|
|
1508
1541
|
&[x-insetinput=true] {
|
|
1509
1542
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1510
1543
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1511
1544
|
max-height: $height-datepicker_preset_panel_inset_input_compact - $height-datepicker_presetPanel_left_and_right_except_content_compact;
|
|
1512
1545
|
}
|
|
1513
1546
|
}
|
|
1547
|
+
|
|
1514
1548
|
.#{$module}-quick-control-right-content-wrapper,
|
|
1515
1549
|
.#{$module}-quick-control-left-content-wrapper {
|
|
1516
1550
|
max-height: $height-datepicker_date_time_panel_compact - $height-datepicker_presetPanel_left_and_right_except_content_compact;
|
|
@@ -1531,6 +1565,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1531
1565
|
padding-bottom: $spacing-datepicker_insetInput_wrapper_compact-paddingBottom;
|
|
1532
1566
|
|
|
1533
1567
|
width: $width-datepicker_insetInput_date_type_wrapper_compact;
|
|
1568
|
+
|
|
1534
1569
|
&[x-type=dateRange],
|
|
1535
1570
|
&[x-type=dateTimeRange] {
|
|
1536
1571
|
width: $width-datepicker_insetInput_date_range_type_wrapper_compact;
|
|
@@ -1540,6 +1575,7 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1540
1575
|
margin-top: $spacing-datepicker_insetInput_wrapper_compact-paddingY;
|
|
1541
1576
|
}
|
|
1542
1577
|
}
|
|
1578
|
+
|
|
1543
1579
|
&[x-type=month] {
|
|
1544
1580
|
width: $width-datepicker_insetInput_month_type_wrapper_compact;
|
|
1545
1581
|
}
|
|
@@ -1585,4 +1621,73 @@ $module-list: #{$prefix}-scrolllist;
|
|
|
1585
1621
|
}
|
|
1586
1622
|
}
|
|
1587
1623
|
|
|
1624
|
+
.#{$module}-borderless {
|
|
1625
|
+
|
|
1626
|
+
&:not(:focus-within):not(:hover){
|
|
1627
|
+
background-color: transparent;
|
|
1628
|
+
border-color: transparent;
|
|
1629
|
+
|
|
1630
|
+
.#{$prefix}-input-suffix, .#{$module}-range-input-suffix {
|
|
1631
|
+
opacity: 0;
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
&:focus-within:not(:active) {
|
|
1636
|
+
background-color: transparent;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
&.#{$module}-range-input-error {
|
|
1641
|
+
|
|
1642
|
+
.#{$module}-range-input-wrapper {
|
|
1643
|
+
&-active {
|
|
1644
|
+
border-color: transparent;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
&:hover {
|
|
1648
|
+
background-color: $color-datepicker_range_input_error-border-default;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
&:focus-within {
|
|
1652
|
+
background-color: $color-datepicker_range_input_error-border-default;
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
&.#{$module}-range-input-error:not(:focus-within){
|
|
1656
|
+
border-width: $width-datepicker_range_input-border;
|
|
1657
|
+
border-color: $color-datepicker_range_input_error-border-active;
|
|
1658
|
+
}
|
|
1659
|
+
&.#{$module}-range-input-error:focus-within {
|
|
1660
|
+
border-width: $width-datepicker_range_input-border;
|
|
1661
|
+
border-color: $color-datepicker_range_input_error-border-active;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
// split style into not and normal to avoid style override
|
|
1665
|
+
&.#{$module}-range-input-warning {
|
|
1666
|
+
|
|
1667
|
+
.#{$module}-range-input-wrapper {
|
|
1668
|
+
&-active {
|
|
1669
|
+
border-color: transparent;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
&:hover {
|
|
1673
|
+
background-color: $color-datepicker_range_input_warning-border-default;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
&:focus-within {
|
|
1677
|
+
background-color: $color-datepicker_range_input_warning-border-default;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
&.#{$module}-range-input-warning:not(:focus-within){
|
|
1682
|
+
border-width: $width-datepicker_range_input-border;
|
|
1683
|
+
border-color: $color-datepicker_range_input_warning-border-active;
|
|
1684
|
+
}
|
|
1685
|
+
&.#{$module}-range-input-warning:focus-within {
|
|
1686
|
+
border-width: $width-datepicker_range_input-border;
|
|
1687
|
+
border-color: $color-datepicker_range_input_warning-border-active;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
|
|
1588
1693
|
@import "./rtl.scss";
|
package/datePicker/foundation.ts
CHANGED
|
@@ -121,6 +121,7 @@ export interface DatePickerFoundationProps extends ElementProps, RenderProps, Ev
|
|
|
121
121
|
autoAdjustOverflow?: boolean;
|
|
122
122
|
autoFocus?: boolean;
|
|
123
123
|
autoSwitchDate?: boolean;
|
|
124
|
+
borderless?: boolean;
|
|
124
125
|
className?: string;
|
|
125
126
|
defaultOpen?: boolean;
|
|
126
127
|
defaultPickerValue?: ValueType;
|
package/input/input.scss
CHANGED
|
@@ -30,6 +30,7 @@ $module: #{$prefix}-input;
|
|
|
30
30
|
transform: scale($transform_scale-input);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
|
|
33
34
|
.#{$module}-wrapper {
|
|
34
35
|
display: inline-block;
|
|
35
36
|
position: relative;
|
|
@@ -687,4 +688,31 @@ $module: #{$prefix}-input;
|
|
|
687
688
|
}
|
|
688
689
|
}
|
|
689
690
|
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
.#{$module}-borderless{
|
|
694
|
+
|
|
695
|
+
&:not(:focus-within):not(:hover){
|
|
696
|
+
background-color:transparent;
|
|
697
|
+
border-color: transparent;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
&:focus-within:not(:active){
|
|
701
|
+
background-color:transparent;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
&.#{$module}-wrapper-error:not(:focus-within){
|
|
706
|
+
border-color: $color-input_danger-border-focus;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
&.#{$module}-wrapper-warning:not(:focus-within){
|
|
710
|
+
border-color: $color-input_warning-border-focus;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
}
|
|
717
|
+
|
|
690
718
|
@import "./rtl.scss";
|
package/input/textarea.scss
CHANGED
|
@@ -195,4 +195,38 @@ $module: #{$prefix}-input;
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
.#{$module}-textarea-borderless{
|
|
199
|
+
&:not(:focus-within):not(:hover){
|
|
200
|
+
background-color:transparent;
|
|
201
|
+
border-color: transparent;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&:focus-within:not(:active){
|
|
205
|
+
background-color:transparent;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&.#{$module}-textarea-wrapper-error:not(:focus-within){
|
|
209
|
+
border-color: $color-input_danger-border-focus;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
&.#{$module}-textarea-wrapper-warning:not(:focus-within){
|
|
215
|
+
border-color: $color-input_warning-border-focus;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&.#{$module}-textarea-wrapper-error{
|
|
219
|
+
.#{$module}-textarea-counter{
|
|
220
|
+
color: $color-input_danger-border-focus;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&.#{$module}-textarea-wrapper-warning{
|
|
225
|
+
.#{$module}-textarea-counter{
|
|
226
|
+
color: $color-input_warning-border-focus;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
}
|
|
231
|
+
|
|
198
232
|
@import "./rtl.scss";
|
package/input/variables.scss
CHANGED
|
@@ -111,3 +111,5 @@ $width-textarea-icon: $width-icon-medium + $spacing-tight; // clear 图标最小
|
|
|
111
111
|
$height-textarea-default: 32px; // 多行文本 clear 图标的高度
|
|
112
112
|
$spacing-textarea_withShowClear-paddingRight: 36px; // 多行文本设置 showClear 后的右内边距
|
|
113
113
|
$spacing-textarea-icon-right: $spacing-extra-tight;// 多行文本 clear 图标的右边距
|
|
114
|
+
|
|
115
|
+
|