@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.
Files changed (84) hide show
  1. package/button/iconButton.scss +1 -0
  2. package/carousel/carousel.scss +4 -0
  3. package/input/input.scss +2 -0
  4. package/lib/cjs/button/iconButton.css +1 -0
  5. package/lib/cjs/button/iconButton.scss +1 -0
  6. package/lib/cjs/carousel/carousel.css +4 -0
  7. package/lib/cjs/carousel/carousel.scss +4 -0
  8. package/lib/cjs/input/input.css +13 -0
  9. package/lib/cjs/input/input.scss +2 -0
  10. package/lib/cjs/modal/modal.css +4 -0
  11. package/lib/cjs/modal/modal.scss +4 -0
  12. package/lib/cjs/notification/notification.css +12 -0
  13. package/lib/cjs/notification/notification.scss +13 -1
  14. package/lib/cjs/popover/popover.css +2 -0
  15. package/lib/cjs/popover/popover.scss +2 -0
  16. package/lib/cjs/sideSheet/sideSheet.css +10 -0
  17. package/lib/cjs/sideSheet/sideSheet.scss +10 -0
  18. package/lib/cjs/skeleton/skeleton.css +1 -0
  19. package/lib/cjs/skeleton/skeleton.scss +1 -0
  20. package/lib/cjs/spin/spin.css +2 -0
  21. package/lib/cjs/spin/spin.scss +2 -0
  22. package/lib/cjs/switch/switch.css +4 -0
  23. package/lib/cjs/switch/switch.scss +5 -0
  24. package/lib/cjs/table/constants.d.ts +0 -1
  25. package/lib/cjs/table/constants.js +2 -4
  26. package/lib/cjs/tabs/tabs.css +4 -0
  27. package/lib/cjs/tabs/tabs.scss +4 -0
  28. package/lib/cjs/tag/tag.css +14 -6
  29. package/lib/cjs/tag/tag.scss +14 -4
  30. package/lib/cjs/tag/variables.scss +2 -0
  31. package/lib/cjs/tagInput/tagInput.css +7 -9
  32. package/lib/cjs/tagInput/tagInput.scss +9 -12
  33. package/lib/cjs/toast/toast.css +2 -0
  34. package/lib/cjs/toast/toast.scss +2 -0
  35. package/lib/cjs/tooltip/tooltip.css +2 -0
  36. package/lib/cjs/tooltip/tooltip.scss +2 -0
  37. package/lib/es/button/iconButton.css +1 -0
  38. package/lib/es/button/iconButton.scss +1 -0
  39. package/lib/es/carousel/carousel.css +4 -0
  40. package/lib/es/carousel/carousel.scss +4 -0
  41. package/lib/es/input/input.css +13 -0
  42. package/lib/es/input/input.scss +2 -0
  43. package/lib/es/modal/modal.css +4 -0
  44. package/lib/es/modal/modal.scss +4 -0
  45. package/lib/es/notification/notification.css +12 -0
  46. package/lib/es/notification/notification.scss +13 -1
  47. package/lib/es/popover/popover.css +2 -0
  48. package/lib/es/popover/popover.scss +2 -0
  49. package/lib/es/sideSheet/sideSheet.css +10 -0
  50. package/lib/es/sideSheet/sideSheet.scss +10 -0
  51. package/lib/es/skeleton/skeleton.css +1 -0
  52. package/lib/es/skeleton/skeleton.scss +1 -0
  53. package/lib/es/spin/spin.css +2 -0
  54. package/lib/es/spin/spin.scss +2 -0
  55. package/lib/es/switch/switch.css +4 -0
  56. package/lib/es/switch/switch.scss +5 -0
  57. package/lib/es/table/constants.d.ts +0 -1
  58. package/lib/es/table/constants.js +2 -4
  59. package/lib/es/tabs/tabs.css +4 -0
  60. package/lib/es/tabs/tabs.scss +4 -0
  61. package/lib/es/tag/tag.css +14 -6
  62. package/lib/es/tag/tag.scss +14 -4
  63. package/lib/es/tag/variables.scss +2 -0
  64. package/lib/es/tagInput/tagInput.css +7 -9
  65. package/lib/es/tagInput/tagInput.scss +9 -12
  66. package/lib/es/toast/toast.css +2 -0
  67. package/lib/es/toast/toast.scss +2 -0
  68. package/lib/es/tooltip/tooltip.css +2 -0
  69. package/lib/es/tooltip/tooltip.scss +2 -0
  70. package/modal/modal.scss +4 -0
  71. package/notification/notification.scss +13 -1
  72. package/package.json +2 -2
  73. package/popover/popover.scss +2 -0
  74. package/sideSheet/sideSheet.scss +10 -0
  75. package/skeleton/skeleton.scss +1 -0
  76. package/spin/spin.scss +2 -0
  77. package/switch/switch.scss +5 -0
  78. package/table/constants.ts +0 -2
  79. package/tabs/tabs.scss +4 -0
  80. package/tag/tag.scss +14 -4
  81. package/tag/variables.scss +2 -0
  82. package/tagInput/tagInput.scss +9 -12
  83. package/toast/toast.scss +2 -0
  84. package/tooltip/tooltip.scss +2 -0
package/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/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
- display: flex;
55
- @include all-center;
56
- height: 100%;
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; // 可删除的标签删除按钮顶部内边距
@@ -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/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{
@@ -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
  }