@douyinfe/semi-foundation 2.24.3 → 2.25.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/button/iconButton.scss +1 -0
- package/carousel/carousel.scss +4 -0
- package/input/input.scss +2 -0
- package/lib/cjs/button/iconButton.css +1 -0
- package/lib/cjs/button/iconButton.scss +1 -0
- package/lib/cjs/carousel/carousel.css +4 -0
- package/lib/cjs/carousel/carousel.scss +4 -0
- package/lib/cjs/input/input.css +13 -0
- package/lib/cjs/input/input.scss +2 -0
- package/lib/cjs/modal/modal.css +4 -0
- package/lib/cjs/modal/modal.scss +4 -0
- package/lib/cjs/notification/notification.css +12 -0
- package/lib/cjs/notification/notification.scss +13 -1
- package/lib/cjs/popover/popover.css +2 -0
- package/lib/cjs/popover/popover.scss +2 -0
- package/lib/cjs/sideSheet/sideSheet.css +10 -0
- package/lib/cjs/sideSheet/sideSheet.scss +10 -0
- package/lib/cjs/skeleton/skeleton.css +1 -0
- package/lib/cjs/skeleton/skeleton.scss +1 -0
- package/lib/cjs/spin/spin.css +2 -0
- package/lib/cjs/spin/spin.scss +2 -0
- package/lib/cjs/switch/switch.css +4 -0
- package/lib/cjs/switch/switch.scss +5 -0
- package/lib/cjs/table/constants.d.ts +0 -1
- package/lib/cjs/table/constants.js +2 -4
- package/lib/cjs/tabs/tabs.css +4 -0
- package/lib/cjs/tabs/tabs.scss +4 -0
- package/lib/cjs/tag/tag.css +14 -6
- package/lib/cjs/tag/tag.scss +14 -4
- package/lib/cjs/tag/variables.scss +2 -0
- package/lib/cjs/tagInput/tagInput.css +7 -9
- package/lib/cjs/tagInput/tagInput.scss +9 -12
- package/lib/cjs/toast/toast.css +2 -0
- package/lib/cjs/toast/toast.scss +2 -0
- package/lib/cjs/tooltip/tooltip.css +2 -0
- package/lib/cjs/tooltip/tooltip.scss +2 -0
- package/lib/es/button/iconButton.css +1 -0
- package/lib/es/button/iconButton.scss +1 -0
- package/lib/es/carousel/carousel.css +4 -0
- package/lib/es/carousel/carousel.scss +4 -0
- package/lib/es/input/input.css +13 -0
- package/lib/es/input/input.scss +2 -0
- package/lib/es/modal/modal.css +4 -0
- package/lib/es/modal/modal.scss +4 -0
- package/lib/es/notification/notification.css +12 -0
- package/lib/es/notification/notification.scss +13 -1
- package/lib/es/popover/popover.css +2 -0
- package/lib/es/popover/popover.scss +2 -0
- package/lib/es/sideSheet/sideSheet.css +10 -0
- package/lib/es/sideSheet/sideSheet.scss +10 -0
- package/lib/es/skeleton/skeleton.css +1 -0
- package/lib/es/skeleton/skeleton.scss +1 -0
- package/lib/es/spin/spin.css +2 -0
- package/lib/es/spin/spin.scss +2 -0
- package/lib/es/switch/switch.css +4 -0
- package/lib/es/switch/switch.scss +5 -0
- package/lib/es/table/constants.d.ts +0 -1
- package/lib/es/table/constants.js +2 -4
- package/lib/es/tabs/tabs.css +4 -0
- package/lib/es/tabs/tabs.scss +4 -0
- package/lib/es/tag/tag.css +14 -6
- package/lib/es/tag/tag.scss +14 -4
- package/lib/es/tag/variables.scss +2 -0
- package/lib/es/tagInput/tagInput.css +7 -9
- package/lib/es/tagInput/tagInput.scss +9 -12
- package/lib/es/toast/toast.css +2 -0
- package/lib/es/toast/toast.scss +2 -0
- package/lib/es/tooltip/tooltip.css +2 -0
- package/lib/es/tooltip/tooltip.scss +2 -0
- package/modal/modal.scss +4 -0
- package/notification/notification.scss +13 -1
- package/package.json +2 -2
- package/popover/popover.scss +2 -0
- package/sideSheet/sideSheet.scss +10 -0
- package/skeleton/skeleton.scss +1 -0
- package/spin/spin.scss +2 -0
- package/switch/switch.scss +5 -0
- package/table/constants.ts +0 -2
- package/tabs/tabs.scss +4 -0
- package/tag/tag.scss +14 -4
- package/tag/variables.scss +2 -0
- package/tagInput/tagInput.scss +9 -12
- package/toast/toast.scss +2 -0
- package/tooltip/tooltip.scss +2 -0
|
@@ -224,42 +224,52 @@ $module: #{$prefix}-sidesheet;
|
|
|
224
224
|
|
|
225
225
|
&-animation-content_show_top{
|
|
226
226
|
animation: #{$module}-slideShow_top $animation_duration-sideSheet_inner-show $animation_function-sideSheet_inner-show $animation_delay-sideSheet_inner-show;
|
|
227
|
+
animation-fill-mode: forwards;
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
&-animation-content_hide_top{
|
|
230
231
|
animation: #{$module}-slideHide_top $animation_duration-sideSheet_inner-hide $animation_function-sideSheet_inner-hide $animation_delay-sideSheet_inner-hide;
|
|
232
|
+
animation-fill-mode: forwards;
|
|
231
233
|
}
|
|
232
234
|
|
|
233
235
|
&-animation-content_show_bottom{
|
|
234
236
|
animation: #{$module}-slideShow_bottom $animation_duration-sideSheet_inner-show $animation_function-sideSheet_inner-show $animation_delay-sideSheet_inner-show;
|
|
237
|
+
animation-fill-mode: forwards;
|
|
235
238
|
}
|
|
236
239
|
|
|
237
240
|
&-animation-content_hide_bottom{
|
|
238
241
|
animation: #{$module}-slideHide_bottom $animation_duration-sideSheet_inner-hide $animation_function-sideSheet_inner-hide $animation_delay-sideSheet_inner-hide;
|
|
242
|
+
animation-fill-mode: forwards;
|
|
239
243
|
}
|
|
240
244
|
|
|
241
245
|
&-animation-content_show_left{
|
|
242
246
|
animation: #{$module}-slideShow_left $animation_duration-sideSheet_inner-show $animation_function-sideSheet_inner-show $animation_delay-sideSheet_inner-show;
|
|
247
|
+
animation-fill-mode: forwards;
|
|
243
248
|
}
|
|
244
249
|
|
|
245
250
|
&-animation-content_hide_left{
|
|
246
251
|
animation: #{$module}-slideHide_left $animation_duration-sideSheet_inner-hide $animation_function-sideSheet_inner-hide $animation_delay-sideSheet_inner-hide;
|
|
252
|
+
animation-fill-mode: forwards;
|
|
247
253
|
}
|
|
248
254
|
|
|
249
255
|
&-animation-content_show_right{
|
|
250
256
|
animation: #{$module}-slideShow_right $animation_duration-sideSheet_inner-show $animation_function-sideSheet_inner-show $animation_delay-sideSheet_inner-show;
|
|
257
|
+
animation-fill-mode: forwards;
|
|
251
258
|
}
|
|
252
259
|
|
|
253
260
|
&-animation-content_hide_right{
|
|
254
261
|
animation: #{$module}-slideHide_right $animation_duration-sideSheet_inner-hide $animation_function-sideSheet_inner-hide $animation_delay-sideSheet_inner-hide;
|
|
262
|
+
animation-fill-mode: forwards;
|
|
255
263
|
}
|
|
256
264
|
|
|
257
265
|
&-animation-mask_show{
|
|
258
266
|
animation: #{$module}-opacityShow $animation_duration-sideSheet_mask-show $animation_function-sideSheet_mask-show $animation_delay-sideSheet_mask-show;
|
|
267
|
+
animation-fill-mode: forwards;
|
|
259
268
|
}
|
|
260
269
|
|
|
261
270
|
&-animation-mask_hide{
|
|
262
271
|
animation: #{$module}-opacityHide $animation_duration-sideSheet_mask-hide $animation_function-sideSheet_mask-hide $animation_delay-sideSheet_mask-hide;
|
|
272
|
+
animation-fill-mode: forwards;
|
|
263
273
|
}
|
|
264
274
|
|
|
265
275
|
}
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
background: linear-gradient(90deg, var(--semi-color-fill-0) 25%, var(--semi-color-fill-1) 44%, var(--semi-color-fill-0) 88%);
|
|
72
72
|
background-size: 400% 100%;
|
|
73
73
|
animation: 1400ms skeleton-loading ease infinite;
|
|
74
|
+
animation-fill-mode: forwards;
|
|
74
75
|
}
|
|
75
76
|
@keyframes skeleton-loading {
|
|
76
77
|
0% {
|
package/lib/es/spin/spin.css
CHANGED
|
@@ -25,12 +25,14 @@
|
|
|
25
25
|
}
|
|
26
26
|
.semi-spin-wrapper > svg {
|
|
27
27
|
animation: 600ms linear infinite semi-animation-rotate;
|
|
28
|
+
animation-fill-mode: forwards;
|
|
28
29
|
width: 20px;
|
|
29
30
|
height: 20px;
|
|
30
31
|
}
|
|
31
32
|
.semi-spin-animate {
|
|
32
33
|
display: inline-flex;
|
|
33
34
|
animation: 1600ms linear infinite semi-animation-rotate;
|
|
35
|
+
animation-fill-mode: forwards;
|
|
34
36
|
}
|
|
35
37
|
.semi-spin-children {
|
|
36
38
|
opacity: 0.5;
|
package/lib/es/spin/spin.scss
CHANGED
|
@@ -28,6 +28,7 @@ $module: #{$prefix}-spin;
|
|
|
28
28
|
|
|
29
29
|
& > svg {
|
|
30
30
|
animation: $animation_duration-spin_wrapper-spin linear infinite #{$prefix}-animation-rotate;
|
|
31
|
+
animation-fill-mode: forwards;
|
|
31
32
|
@include size($width-spin_middle);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -35,6 +36,7 @@ $module: #{$prefix}-spin;
|
|
|
35
36
|
&-animate {
|
|
36
37
|
display: inline-flex;
|
|
37
38
|
animation: $animation_duration-spin_customChildren-spin linear infinite #{$prefix}-animation-rotate;
|
|
39
|
+
animation-fill-mode: forwards;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
&-children {
|
package/lib/es/switch/switch.css
CHANGED
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
box-shadow: none;
|
|
57
57
|
border: 1px var(--semi-color-border) solid;
|
|
58
58
|
}
|
|
59
|
+
.semi-switch-disabled .semi-switch-native-control {
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
cursor: not-allowed;
|
|
62
|
+
}
|
|
59
63
|
.semi-switch-disabled.semi-switch-checked {
|
|
60
64
|
border-color: transparent;
|
|
61
65
|
background-color: var(--semi-color-success-disabled);
|
|
@@ -76,6 +76,11 @@ $module: #{$prefix}-switch;
|
|
|
76
76
|
@include shadow-0;
|
|
77
77
|
border: $width-switch_knob_disabled-border $color-switch_knob-border-default solid;
|
|
78
78
|
}
|
|
79
|
+
|
|
80
|
+
.#{$module}-native-control {
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
}
|
|
79
84
|
|
|
80
85
|
&.#{$module}-checked {
|
|
81
86
|
border-color: $color-switch_checked_disabled-border-default;
|
|
@@ -73,6 +73,5 @@ declare const numbers: {
|
|
|
73
73
|
readonly DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT: number;
|
|
74
74
|
readonly DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT: number;
|
|
75
75
|
readonly DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT: number;
|
|
76
|
-
readonly DEFAULT_EMPTYSLOT_HEIGHT: 52;
|
|
77
76
|
};
|
|
78
77
|
export { cssClasses, strings, numbers };
|
|
@@ -56,8 +56,7 @@ const DEFAULT_CELL_MIDDLE_PADDING_TOP = 12;
|
|
|
56
56
|
const DEFAULT_CELL_MIDDLE_PADDING_BOTTOM = 12;
|
|
57
57
|
const DEFAULT_CELL_SMALL_PADDING_TOP = 8;
|
|
58
58
|
const DEFAULT_CELL_SMALL_PADDING_BOTTOM = 8;
|
|
59
|
-
const DEFAULT_CELL_LINE_HEIGHT = 20;
|
|
60
|
-
const DEFAULT_EMPTYSLOT_HEIGHT = 52; // normal size
|
|
59
|
+
const DEFAULT_CELL_LINE_HEIGHT = 20; // normal size
|
|
61
60
|
|
|
62
61
|
const DEFAULT_VIRTUALIZED_ROW_HEIGHT = DEFAULT_CELL_LINE_HEIGHT + DEFAULT_CELL_BORDER_WITH_BOTTOM + DEFAULT_CELL_BORDER_WITH_TOP + DEFAULT_CELL_PADDING_TOP + DEFAULT_CELL_PADDING_BOTTOM;
|
|
63
62
|
const DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT = DEFAULT_CELL_PADDING_TOP + DEFAULT_CELL_PADDING_BOTTOM + DEFAULT_CELL_BORDER_WITH_BOTTOM; // middle size
|
|
@@ -93,7 +92,6 @@ const numbers = {
|
|
|
93
92
|
DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT,
|
|
94
93
|
DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT: DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,
|
|
95
94
|
DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,
|
|
96
|
-
DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT
|
|
97
|
-
DEFAULT_EMPTYSLOT_HEIGHT
|
|
95
|
+
DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT
|
|
98
96
|
};
|
|
99
97
|
export { cssClasses, strings, numbers };
|
package/lib/es/tabs/tabs.css
CHANGED
|
@@ -398,15 +398,19 @@
|
|
|
398
398
|
}
|
|
399
399
|
.semi-tabs-pane-animate-leftShow {
|
|
400
400
|
animation: 200ms semi-tabs-panel-keyframe-leftShow ease-in-out 0s;
|
|
401
|
+
animation-fill-mode: forwards;
|
|
401
402
|
}
|
|
402
403
|
.semi-tabs-pane-animate-rightShow {
|
|
403
404
|
animation: 200ms semi-tabs-panel-keyframe-rightShow ease-in-out 0s;
|
|
405
|
+
animation-fill-mode: forwards;
|
|
404
406
|
}
|
|
405
407
|
.semi-tabs-pane-animate-topShow {
|
|
406
408
|
animation: 200ms semi-tabs-panel-keyframe-topShow ease-in-out 0s;
|
|
409
|
+
animation-fill-mode: forwards;
|
|
407
410
|
}
|
|
408
411
|
.semi-tabs-pane-animate-bottomShow {
|
|
409
412
|
animation: 200ms semi-tabs-panel-keyframe-bottomShow ease-in-out 0s;
|
|
413
|
+
animation-fill-mode: forwards;
|
|
410
414
|
}
|
|
411
415
|
|
|
412
416
|
.semi-rtl .semi-tabs,
|
package/lib/es/tabs/tabs.scss
CHANGED
|
@@ -542,16 +542,20 @@ $module: #{$prefix}-tabs;
|
|
|
542
542
|
|
|
543
543
|
&-pane-animate-leftShow{
|
|
544
544
|
animation: $animation_duration-tabs_tabPanel-show #{$module}-panel-keyframe-leftShow $animation_function-tabs_tabPanel-show $animation_delay-tabs_tabPanel-show;
|
|
545
|
+
animation-fill-mode: forwards;
|
|
545
546
|
}
|
|
546
547
|
&-pane-animate-rightShow{
|
|
547
548
|
animation: $animation_duration-tabs_tabPanel-show #{$module}-panel-keyframe-rightShow $animation_function-tabs_tabPanel-show $animation_delay-tabs_tabPanel-show;
|
|
549
|
+
animation-fill-mode: forwards;
|
|
548
550
|
}
|
|
549
551
|
|
|
550
552
|
&-pane-animate-topShow{
|
|
551
553
|
animation: $animation_duration-tabs_tabPanel-show #{$module}-panel-keyframe-topShow $animation_function-tabs_tabPanel-show $animation_delay-tabs_tabPanel-show;
|
|
554
|
+
animation-fill-mode: forwards;
|
|
552
555
|
}
|
|
553
556
|
&-pane-animate-bottomShow{
|
|
554
557
|
animation: $animation_duration-tabs_tabPanel-show #{$module}-panel-keyframe-bottomShow $animation_function-tabs_tabPanel-show $animation_delay-tabs_tabPanel-show;
|
|
558
|
+
animation-fill-mode: forwards;
|
|
555
559
|
}
|
|
556
560
|
}
|
|
557
561
|
|
package/lib/es/tag/tag.css
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
/* spacing */
|
|
4
4
|
.semi-tag {
|
|
5
5
|
box-sizing: border-box;
|
|
6
|
-
display: inline-block;
|
|
7
6
|
border-radius: var(--semi-border-radius-small);
|
|
8
7
|
background-color: transparent;
|
|
9
8
|
position: relative;
|
|
@@ -11,6 +10,10 @@
|
|
|
11
10
|
overflow: hidden;
|
|
12
11
|
white-space: nowrap;
|
|
13
12
|
vertical-align: bottom;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
display: inline-flex;
|
|
14
17
|
}
|
|
15
18
|
.semi-tag-default, .semi-tag-small {
|
|
16
19
|
font-size: 12px;
|
|
@@ -42,11 +45,10 @@
|
|
|
42
45
|
display: none;
|
|
43
46
|
}
|
|
44
47
|
.semi-tag-content {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
height: 100%;
|
|
48
|
+
flex: 1;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
text-overflow: ellipsis;
|
|
50
52
|
}
|
|
51
53
|
.semi-tag-close {
|
|
52
54
|
display: flex;
|
|
@@ -56,6 +58,12 @@
|
|
|
56
58
|
padding-left: 4px;
|
|
57
59
|
cursor: pointer;
|
|
58
60
|
}
|
|
61
|
+
.semi-tag-close :hover {
|
|
62
|
+
color: var(--semi-color-text-1);
|
|
63
|
+
}
|
|
64
|
+
.semi-tag-close :active {
|
|
65
|
+
color: var(--semi-color-text-0);
|
|
66
|
+
}
|
|
59
67
|
.semi-tag-closable {
|
|
60
68
|
padding: 4px 4px 4px 8px;
|
|
61
69
|
}
|
package/lib/es/tag/tag.scss
CHANGED
|
@@ -10,7 +10,6 @@ $types: "ghost", "solid", "light";
|
|
|
10
10
|
|
|
11
11
|
.#{$module} {
|
|
12
12
|
box-sizing: border-box;
|
|
13
|
-
display: inline-block;
|
|
14
13
|
border-radius: $radius-tag;
|
|
15
14
|
background-color: transparent;
|
|
16
15
|
position: relative;
|
|
@@ -19,6 +18,8 @@ $types: "ghost", "solid", "light";
|
|
|
19
18
|
overflow: hidden;
|
|
20
19
|
white-space: nowrap;
|
|
21
20
|
vertical-align: bottom;
|
|
21
|
+
@include all-center;
|
|
22
|
+
display: inline-flex;
|
|
22
23
|
|
|
23
24
|
&-default,
|
|
24
25
|
&-small {
|
|
@@ -51,9 +52,10 @@ $types: "ghost", "solid", "light";
|
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
&-content {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
flex: 1;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
text-overflow: ellipsis;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
&-close {
|
|
@@ -61,6 +63,14 @@ $types: "ghost", "solid", "light";
|
|
|
61
63
|
color: $color-tag_close-icon-default;
|
|
62
64
|
padding-left: $spacing-tag_close-paddingLeft;
|
|
63
65
|
cursor: pointer;
|
|
66
|
+
|
|
67
|
+
:hover {
|
|
68
|
+
color: $color-tag_close-icon-hover
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:active {
|
|
72
|
+
color: $color-tag_close-icon-active
|
|
73
|
+
}
|
|
64
74
|
}
|
|
65
75
|
|
|
66
76
|
&-closable {
|
|
@@ -29,6 +29,8 @@ $spacing-tag_large-paddingY: 4px; // 大尺寸标签垂直方向内边距
|
|
|
29
29
|
$spacing-tag_large-paddingX: $spacing-tight; // 大尺寸标签水平方向内边距
|
|
30
30
|
|
|
31
31
|
$color-tag_close-icon-default: var(--semi-color-text-2); // 可删除的标签删除按钮颜色
|
|
32
|
+
$color-tag_close-icon-hover: var(--semi-color-text-1); // 可删除的标签删除按钮颜色 - 悬浮
|
|
33
|
+
$color-tag_close-icon-active: var(--semi-color-text-0); // 可删除的标签删除按钮颜色 - 按下
|
|
32
34
|
$color-tag_close-icon_deep-default: var(--semi-color-white); // 深色模式下可删除的标签删除按钮颜色
|
|
33
35
|
$spacing-tag_close-paddingLeft: $spacing-extra-tight; // 可删除的标签删除按钮左侧内边距
|
|
34
36
|
$spacing-tag_closable-paddingTop: $spacing-extra-tight; // 可删除的标签删除按钮顶部内边距
|
|
@@ -8,9 +8,16 @@
|
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
font-weight: 400;
|
|
10
10
|
width: 100%;
|
|
11
|
+
min-height: 32px;
|
|
11
12
|
box-sizing: border-box;
|
|
12
13
|
transition: background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none), border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);
|
|
13
14
|
}
|
|
15
|
+
.semi-tagInput-small {
|
|
16
|
+
min-height: 24px;
|
|
17
|
+
}
|
|
18
|
+
.semi-tagInput-large {
|
|
19
|
+
min-height: 40px;
|
|
20
|
+
}
|
|
14
21
|
.semi-tagInput-drag-item {
|
|
15
22
|
display: flex;
|
|
16
23
|
align-items: center;
|
|
@@ -85,15 +92,6 @@
|
|
|
85
92
|
padding-right: 4px;
|
|
86
93
|
overflow: hidden;
|
|
87
94
|
}
|
|
88
|
-
.semi-tagInput-wrapper-small {
|
|
89
|
-
min-height: 24px;
|
|
90
|
-
}
|
|
91
|
-
.semi-tagInput-wrapper-default {
|
|
92
|
-
min-height: 32px;
|
|
93
|
-
}
|
|
94
|
-
.semi-tagInput-wrapper-large {
|
|
95
|
-
min-height: 40px;
|
|
96
|
-
}
|
|
97
95
|
.semi-tagInput-wrapper-tag {
|
|
98
96
|
margin-right: 4px;
|
|
99
97
|
white-space: pre;
|
|
@@ -11,10 +11,19 @@ $module: #{$prefix}-tagInput;
|
|
|
11
11
|
display: inline-flex;
|
|
12
12
|
font-weight: $font-weight-regular;
|
|
13
13
|
width: 100%;
|
|
14
|
+
min-height: $height-tagInput-default;
|
|
14
15
|
box-sizing: border-box;
|
|
15
16
|
transition: background-color $transition_duration-tagInput-bg $transition_function-tagInput-bg $transition_delay-tagInput-bg,
|
|
16
17
|
border $transition_duration-tagInput-border $transition_function-tagInput-border $transition_delay-tagInput-border;
|
|
17
18
|
|
|
19
|
+
&-small {
|
|
20
|
+
min-height: $height-tagInput-small;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-large {
|
|
24
|
+
min-height: $height-tagInput-large;
|
|
25
|
+
}
|
|
26
|
+
|
|
18
27
|
&-drag {
|
|
19
28
|
|
|
20
29
|
&-item {
|
|
@@ -106,18 +115,6 @@ $module: #{$prefix}-tagInput;
|
|
|
106
115
|
padding-right: $spacing-extra-tight;
|
|
107
116
|
overflow: hidden;
|
|
108
117
|
|
|
109
|
-
&-small {
|
|
110
|
-
min-height: $height-tagInput-small;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&-default {
|
|
114
|
-
min-height: $height-tagInput-default;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&-large {
|
|
118
|
-
min-height: $height-tagInput-large;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
118
|
&-tag {
|
|
122
119
|
margin-right: $spacing-extra-tight;
|
|
123
120
|
white-space: pre;
|
package/lib/es/toast/toast.css
CHANGED
|
@@ -67,9 +67,11 @@
|
|
|
67
67
|
}
|
|
68
68
|
.semi-toast-animation-show {
|
|
69
69
|
animation: 300ms semi-toast-keyframe-toast-show cubic-bezier(0.22, 0.57, 0.02, 1.2) 0s;
|
|
70
|
+
animation-fill-mode: forwards;
|
|
70
71
|
}
|
|
71
72
|
.semi-toast-animation-hide {
|
|
72
73
|
animation: 300ms semi-toast-keyframe-toast-hide cubic-bezier(0.22, 0.57, 0.02, 1.2) 0s;
|
|
74
|
+
animation-fill-mode: forwards;
|
|
73
75
|
}
|
|
74
76
|
@keyframes semi-toast-keyframe-toast-show {
|
|
75
77
|
0% {
|
package/lib/es/toast/toast.scss
CHANGED
|
@@ -90,10 +90,12 @@ $icon: #{$prefix}-toast-icon;
|
|
|
90
90
|
|
|
91
91
|
&-animation-show{
|
|
92
92
|
animation: $animation_duration-toast-show #{$module}-keyframe-toast-show $animation_function-toast-show $animation_delay-toast-show ;
|
|
93
|
+
animation-fill-mode: forwards;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
&-animation-hide{
|
|
96
97
|
animation: $animation_duration-toast-hide #{$module}-keyframe-toast-hide $animation_function-toast-hide $animation_delay-toast-hide ;
|
|
98
|
+
animation-fill-mode: forwards;
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
@keyframes #{$module}-keyframe-toast-show{
|
|
@@ -71,9 +71,11 @@
|
|
|
71
71
|
}
|
|
72
72
|
.semi-tooltip-animation-show {
|
|
73
73
|
animation: semi-tooltip-zoomIn 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
74
|
+
animation-fill-mode: forwards;
|
|
74
75
|
}
|
|
75
76
|
.semi-tooltip-animation-hide {
|
|
76
77
|
animation: semi-tooltip-zoomOut 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
78
|
+
animation-fill-mode: forwards;
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
.semi-tooltip-wrapper .semi-tooltip-icon-arrow {
|
|
@@ -91,10 +91,12 @@ $module-icon: #{$module}-icon-arrow;
|
|
|
91
91
|
|
|
92
92
|
&-animation-show{
|
|
93
93
|
animation: #{$module}-zoomIn $animation_duration-tooltip_in $animation_function-tooltip_in;
|
|
94
|
+
animation-fill-mode: forwards;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
&-animation-hide{
|
|
97
98
|
animation: #{$module}-zoomOut $animation_duration-tooltip_out $animation_function-tooltip_out;
|
|
99
|
+
animation-fill-mode: forwards;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
}
|
package/modal/modal.scss
CHANGED
|
@@ -209,18 +209,22 @@ $module: #{$prefix}-modal;
|
|
|
209
209
|
|
|
210
210
|
.#{$module}-content-animate-show {
|
|
211
211
|
animation: $animation_duration-modal-show #{$module}-content-keyframe-show $animation_function-modal-show $animation_delay-modal-show forwards;
|
|
212
|
+
animation-fill-mode: forwards;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
.#{$module}-content-animate-hide {
|
|
215
216
|
animation: $animation_duration-modal-hide #{$module}-content-keyframe-hide $animation_function-modal-hide $animation_delay-modal-hide forwards;
|
|
217
|
+
animation-fill-mode: forwards;
|
|
216
218
|
}
|
|
217
219
|
|
|
218
220
|
.#{$module}-mask-animate-show {
|
|
219
221
|
animation: $animation_duration-modal_mask-show #{$module}-mask-keyframe-show $animation_function-modal_mask-show $animation_delay-modal_mask-show forwards;
|
|
222
|
+
animation-fill-mode: forwards;
|
|
220
223
|
}
|
|
221
224
|
|
|
222
225
|
.#{$module}-mask-animate-hide {
|
|
223
226
|
animation: $animation_duration-modal_mask-hide #{$module}-mask-keyframe-hide $animation_function-modal_mask-hide $animation_delay-modal_mask-hide forwards;
|
|
227
|
+
animation-fill-mode: forwards;
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
|
|
@@ -299,53 +299,65 @@ $module: #{$prefix}-notification;
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
|
|
302
|
+
|
|
303
303
|
|
|
304
304
|
&-animation-show_top{
|
|
305
305
|
animation: #{$module}-slideShow_top $animation_duration-notification-show $animation_function-notification-show $animation_delay-notification-show;
|
|
306
|
+
animation-fill-mode: forwards;
|
|
306
307
|
}
|
|
307
308
|
|
|
308
309
|
&-animation-hide_top{
|
|
309
310
|
animation: #{$module}-slideHide_top $animation_duration-notification-hide $animation_function-notification-hide $animation_delay-notification-hide;
|
|
311
|
+
animation-fill-mode: forwards;
|
|
310
312
|
}
|
|
311
313
|
|
|
312
314
|
&-animation-show_topLeft{
|
|
313
315
|
animation: #{$module}-slideShow_topLeft $animation_duration-notification-show $animation_function-notification-show $animation_delay-notification-show;
|
|
316
|
+
animation-fill-mode: forwards;
|
|
314
317
|
}
|
|
315
318
|
|
|
316
319
|
&-animation-hide_topLeft{
|
|
317
320
|
animation: #{$module}-slideHide_topLeft $animation_duration-notification-hide $animation_function-notification-hide $animation_delay-notification-hide;
|
|
321
|
+
animation-fill-mode: forwards;
|
|
318
322
|
}
|
|
319
323
|
|
|
320
324
|
&-animation-show_topRight{
|
|
321
325
|
animation: #{$module}-slideShow_topRight $animation_duration-notification-show $animation_function-notification-show $animation_delay-notification-show;
|
|
326
|
+
animation-fill-mode: forwards;
|
|
322
327
|
}
|
|
323
328
|
|
|
324
329
|
&-animation-hide_topRight{
|
|
325
330
|
animation: #{$module}-slideHide_topRight $animation_duration-notification-hide $animation_function-notification-hide $animation_delay-notification-hide;
|
|
331
|
+
animation-fill-mode: forwards;
|
|
326
332
|
}
|
|
327
333
|
|
|
328
334
|
&-animation-show_bottom{
|
|
329
335
|
animation: #{$module}-slideShow_bottom $animation_duration-notification-show $animation_function-notification-show $animation_delay-notification-show;
|
|
336
|
+
animation-fill-mode: forwards;
|
|
330
337
|
}
|
|
331
338
|
|
|
332
339
|
&-animation-hide_bottom{
|
|
333
340
|
animation: #{$module}-slideHide_bottom $animation_duration-notification-hide $animation_function-notification-hide $animation_delay-notification-hide;
|
|
341
|
+
animation-fill-mode: forwards;
|
|
334
342
|
}
|
|
335
343
|
|
|
336
344
|
&-animation-show_bottomLeft{
|
|
337
345
|
animation: #{$module}-slideShow_bottomLeft $animation_duration-notification-show $animation_function-notification-show $animation_delay-notification-show;
|
|
346
|
+
animation-fill-mode: forwards;
|
|
338
347
|
}
|
|
339
348
|
|
|
340
349
|
&-animation-hide_bottomLeft{
|
|
341
350
|
animation: #{$module}-slideHide_bottomLeft $animation_duration-notification-hide $animation_function-notification-hide $animation_delay-notification-hide;
|
|
351
|
+
animation-fill-mode: forwards;
|
|
342
352
|
}
|
|
343
353
|
&-animation-show_bottomRight{
|
|
344
354
|
animation: #{$module}-slideShow_bottomRight $animation_duration-notification-show $animation_function-notification-show $animation_delay-notification-show;
|
|
355
|
+
animation-fill-mode: forwards;
|
|
345
356
|
}
|
|
346
357
|
|
|
347
358
|
&-animation-hide_bottomRight{
|
|
348
359
|
animation: #{$module}-slideHide_bottomRight $animation_duration-notification-hide $animation_function-notification-hide $animation_delay-notification-hide;
|
|
360
|
+
animation-fill-mode: forwards;
|
|
349
361
|
}
|
|
350
362
|
}
|
|
351
363
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.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": "3c2ec566acd956095fc502690245c9a502251357",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/popover/popover.scss
CHANGED
|
@@ -79,10 +79,12 @@ $module-icon: #{$module}-icon-arrow;
|
|
|
79
79
|
}
|
|
80
80
|
&-animation-show{
|
|
81
81
|
animation: #{$module}-zoomIn $animation_duration-popover-in $animation_function-popover-in;
|
|
82
|
+
animation-fill-mode: forwards;
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
&-animation-hide{
|
|
85
86
|
animation: #{$module}-zoomOut $animation_duration-popover-out $animation_function-popover-out;
|
|
87
|
+
animation-fill-mode: forwards;
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
|
package/sideSheet/sideSheet.scss
CHANGED
|
@@ -224,42 +224,52 @@ $module: #{$prefix}-sidesheet;
|
|
|
224
224
|
|
|
225
225
|
&-animation-content_show_top{
|
|
226
226
|
animation: #{$module}-slideShow_top $animation_duration-sideSheet_inner-show $animation_function-sideSheet_inner-show $animation_delay-sideSheet_inner-show;
|
|
227
|
+
animation-fill-mode: forwards;
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
&-animation-content_hide_top{
|
|
230
231
|
animation: #{$module}-slideHide_top $animation_duration-sideSheet_inner-hide $animation_function-sideSheet_inner-hide $animation_delay-sideSheet_inner-hide;
|
|
232
|
+
animation-fill-mode: forwards;
|
|
231
233
|
}
|
|
232
234
|
|
|
233
235
|
&-animation-content_show_bottom{
|
|
234
236
|
animation: #{$module}-slideShow_bottom $animation_duration-sideSheet_inner-show $animation_function-sideSheet_inner-show $animation_delay-sideSheet_inner-show;
|
|
237
|
+
animation-fill-mode: forwards;
|
|
235
238
|
}
|
|
236
239
|
|
|
237
240
|
&-animation-content_hide_bottom{
|
|
238
241
|
animation: #{$module}-slideHide_bottom $animation_duration-sideSheet_inner-hide $animation_function-sideSheet_inner-hide $animation_delay-sideSheet_inner-hide;
|
|
242
|
+
animation-fill-mode: forwards;
|
|
239
243
|
}
|
|
240
244
|
|
|
241
245
|
&-animation-content_show_left{
|
|
242
246
|
animation: #{$module}-slideShow_left $animation_duration-sideSheet_inner-show $animation_function-sideSheet_inner-show $animation_delay-sideSheet_inner-show;
|
|
247
|
+
animation-fill-mode: forwards;
|
|
243
248
|
}
|
|
244
249
|
|
|
245
250
|
&-animation-content_hide_left{
|
|
246
251
|
animation: #{$module}-slideHide_left $animation_duration-sideSheet_inner-hide $animation_function-sideSheet_inner-hide $animation_delay-sideSheet_inner-hide;
|
|
252
|
+
animation-fill-mode: forwards;
|
|
247
253
|
}
|
|
248
254
|
|
|
249
255
|
&-animation-content_show_right{
|
|
250
256
|
animation: #{$module}-slideShow_right $animation_duration-sideSheet_inner-show $animation_function-sideSheet_inner-show $animation_delay-sideSheet_inner-show;
|
|
257
|
+
animation-fill-mode: forwards;
|
|
251
258
|
}
|
|
252
259
|
|
|
253
260
|
&-animation-content_hide_right{
|
|
254
261
|
animation: #{$module}-slideHide_right $animation_duration-sideSheet_inner-hide $animation_function-sideSheet_inner-hide $animation_delay-sideSheet_inner-hide;
|
|
262
|
+
animation-fill-mode: forwards;
|
|
255
263
|
}
|
|
256
264
|
|
|
257
265
|
&-animation-mask_show{
|
|
258
266
|
animation: #{$module}-opacityShow $animation_duration-sideSheet_mask-show $animation_function-sideSheet_mask-show $animation_delay-sideSheet_mask-show;
|
|
267
|
+
animation-fill-mode: forwards;
|
|
259
268
|
}
|
|
260
269
|
|
|
261
270
|
&-animation-mask_hide{
|
|
262
271
|
animation: #{$module}-opacityHide $animation_duration-sideSheet_mask-hide $animation_function-sideSheet_mask-hide $animation_delay-sideSheet_mask-hide;
|
|
272
|
+
animation-fill-mode: forwards;
|
|
263
273
|
}
|
|
264
274
|
|
|
265
275
|
}
|
package/skeleton/skeleton.scss
CHANGED
package/spin/spin.scss
CHANGED
|
@@ -28,6 +28,7 @@ $module: #{$prefix}-spin;
|
|
|
28
28
|
|
|
29
29
|
& > svg {
|
|
30
30
|
animation: $animation_duration-spin_wrapper-spin linear infinite #{$prefix}-animation-rotate;
|
|
31
|
+
animation-fill-mode: forwards;
|
|
31
32
|
@include size($width-spin_middle);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -35,6 +36,7 @@ $module: #{$prefix}-spin;
|
|
|
35
36
|
&-animate {
|
|
36
37
|
display: inline-flex;
|
|
37
38
|
animation: $animation_duration-spin_customChildren-spin linear infinite #{$prefix}-animation-rotate;
|
|
39
|
+
animation-fill-mode: forwards;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
&-children {
|
package/switch/switch.scss
CHANGED
|
@@ -76,6 +76,11 @@ $module: #{$prefix}-switch;
|
|
|
76
76
|
@include shadow-0;
|
|
77
77
|
border: $width-switch_knob_disabled-border $color-switch_knob-border-default solid;
|
|
78
78
|
}
|
|
79
|
+
|
|
80
|
+
.#{$module}-native-control {
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
}
|
|
79
84
|
|
|
80
85
|
&.#{$module}-checked {
|
|
81
86
|
border-color: $color-switch_checked_disabled-border-default;
|
package/table/constants.ts
CHANGED
|
@@ -60,7 +60,6 @@ const DEFAULT_CELL_MIDDLE_PADDING_BOTTOM = 12;
|
|
|
60
60
|
const DEFAULT_CELL_SMALL_PADDING_TOP = 8;
|
|
61
61
|
const DEFAULT_CELL_SMALL_PADDING_BOTTOM = 8;
|
|
62
62
|
const DEFAULT_CELL_LINE_HEIGHT = 20;
|
|
63
|
-
const DEFAULT_EMPTYSLOT_HEIGHT = 52;
|
|
64
63
|
|
|
65
64
|
// normal size
|
|
66
65
|
const DEFAULT_VIRTUALIZED_ROW_HEIGHT =
|
|
@@ -119,7 +118,6 @@ const numbers = {
|
|
|
119
118
|
DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT: DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,
|
|
120
119
|
DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,
|
|
121
120
|
DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT,
|
|
122
|
-
DEFAULT_EMPTYSLOT_HEIGHT
|
|
123
121
|
} as const;
|
|
124
122
|
|
|
125
123
|
export { cssClasses, strings, numbers };
|