@douyinfe/semi-foundation 2.40.0-alpha.0 → 2.40.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 (225) hide show
  1. package/anchor/foundation.ts +0 -2
  2. package/anchor/linkFoundation.ts +0 -1
  3. package/autoComplete/foundation.ts +0 -1
  4. package/autoComplete/optionFoundation.ts +0 -2
  5. package/avatar/constants.ts +21 -4
  6. package/avatar/foundation.ts +3 -3
  7. package/base/foundation.ts +0 -1
  8. package/breadcrumb/foundation.ts +0 -1
  9. package/button/button.scss +0 -1
  10. package/calendar/eventUtil.ts +0 -2
  11. package/calendar/foundation.ts +0 -1
  12. package/cascader/foundation.ts +0 -5
  13. package/checkbox/checkbox.scss +0 -1
  14. package/checkbox/checkboxFoundation.ts +1 -2
  15. package/checkbox/checkboxGroupFoundation.ts +0 -1
  16. package/datePicker/foundation.ts +1 -4
  17. package/datePicker/inputFoundation.ts +0 -3
  18. package/datePicker/monthFoundation.ts +0 -1
  19. package/datePicker/monthsGridFoundation.ts +0 -2
  20. package/datePicker/yearAndMonthFoundation.ts +0 -2
  21. package/form/foundation.ts +12 -10
  22. package/form/interface.ts +4 -5
  23. package/form/utils.ts +0 -3
  24. package/image/image.scss +8 -4
  25. package/image/previewImageFoundation.ts +1 -1
  26. package/image/previewInnerFoundation.ts +11 -7
  27. package/image/variables.scss +1 -1
  28. package/input/foundation.ts +0 -2
  29. package/input/textareaFoundation.ts +0 -2
  30. package/inputNumber/foundation.ts +0 -5
  31. package/lib/cjs/anchor/foundation.js +0 -2
  32. package/lib/cjs/anchor/linkFoundation.js +0 -1
  33. package/lib/cjs/autoComplete/foundation.js +0 -2
  34. package/lib/cjs/autoComplete/optionFoundation.js +0 -2
  35. package/lib/cjs/avatar/constants.js +0 -1
  36. package/lib/cjs/avatar/foundation.js +2 -2
  37. package/lib/cjs/breadcrumb/foundation.js +0 -2
  38. package/lib/cjs/button/button.css +0 -1
  39. package/lib/cjs/button/button.scss +0 -1
  40. package/lib/cjs/calendar/eventUtil.js +0 -2
  41. package/lib/cjs/calendar/foundation.js +0 -1
  42. package/lib/cjs/cascader/foundation.js +0 -5
  43. package/lib/cjs/checkbox/checkbox.css +0 -1
  44. package/lib/cjs/checkbox/checkbox.scss +0 -1
  45. package/lib/cjs/checkbox/checkboxFoundation.js +0 -1
  46. package/lib/cjs/checkbox/checkboxGroupFoundation.js +0 -1
  47. package/lib/cjs/datePicker/foundation.js +0 -5
  48. package/lib/cjs/datePicker/inputFoundation.js +0 -4
  49. package/lib/cjs/datePicker/monthFoundation.js +0 -1
  50. package/lib/cjs/datePicker/monthsGridFoundation.js +0 -3
  51. package/lib/cjs/datePicker/yearAndMonthFoundation.js +0 -2
  52. package/lib/cjs/form/foundation.d.ts +4 -4
  53. package/lib/cjs/form/foundation.js +9 -8
  54. package/lib/cjs/form/interface.d.ts +4 -4
  55. package/lib/cjs/form/utils.js +0 -3
  56. package/lib/cjs/image/image.css +3 -1
  57. package/lib/cjs/image/image.scss +8 -4
  58. package/lib/cjs/image/previewInnerFoundation.d.ts +4 -2
  59. package/lib/cjs/image/previewInnerFoundation.js +2 -1
  60. package/lib/cjs/image/variables.scss +1 -1
  61. package/lib/cjs/input/foundation.js +0 -2
  62. package/lib/cjs/input/textareaFoundation.js +0 -2
  63. package/lib/cjs/inputNumber/foundation.js +0 -6
  64. package/lib/cjs/navigation/NavItem.js +0 -2
  65. package/lib/cjs/navigation/foundation.js +1 -4
  66. package/lib/cjs/navigation/itemFoundation.js +0 -1
  67. package/lib/cjs/navigation/subNavFoundation.js +1 -2
  68. package/lib/cjs/notification/notificationListFoundation.js +0 -2
  69. package/lib/cjs/pagination/foundation.d.ts +2 -0
  70. package/lib/cjs/pagination/foundation.js +16 -4
  71. package/lib/cjs/popconfirm/popconfirmFoundation.js +0 -2
  72. package/lib/cjs/radio/radio.css +1 -0
  73. package/lib/cjs/radio/radio.scss +1 -0
  74. package/lib/cjs/radio/radioGroupFoundation.js +0 -1
  75. package/lib/cjs/radio/radioInnerFoundation.js +0 -1
  76. package/lib/cjs/radio/variables.scss +1 -0
  77. package/lib/cjs/rating/foundation.js +0 -2
  78. package/lib/cjs/select/foundation.js +0 -5
  79. package/lib/cjs/select/optionFoundation.js +0 -2
  80. package/lib/cjs/select/select.css +0 -35
  81. package/lib/cjs/select/select.scss +11 -63
  82. package/lib/cjs/select/variables.scss +0 -10
  83. package/lib/cjs/skeleton/skeleton.css +2 -2
  84. package/lib/cjs/skeleton/variables.scss +2 -2
  85. package/lib/cjs/slider/foundation.js +0 -8
  86. package/lib/cjs/switch/foundation.js +0 -1
  87. package/lib/cjs/table/bodyFoundation.js +0 -1
  88. package/lib/cjs/table/constants.js +0 -2
  89. package/lib/cjs/table/foundation.js +0 -9
  90. package/lib/cjs/table/tableRowFoundation.js +0 -1
  91. package/lib/cjs/table/utils.js +0 -4
  92. package/lib/cjs/tag/constants.js +0 -2
  93. package/lib/cjs/tagInput/foundation.js +0 -2
  94. package/lib/cjs/timePicker/foundation.js +6 -8
  95. package/lib/cjs/timePicker/inputFoundation.js +0 -2
  96. package/lib/cjs/timePicker/utils/index.js +2 -2
  97. package/lib/cjs/tooltip/foundation.js +0 -11
  98. package/lib/cjs/transfer/foundation.js +0 -1
  99. package/lib/cjs/tree/foundation.js +0 -1
  100. package/lib/cjs/tree/treeUtil.js +0 -9
  101. package/lib/cjs/treeSelect/foundation.js +0 -1
  102. package/lib/cjs/upload/foundation.js +3 -1
  103. package/lib/cjs/utils/Event.js +0 -1
  104. package/lib/cjs/utils/date-fns-extra.js +0 -3
  105. package/lib/cjs/utils/function.js +0 -1
  106. package/lib/cjs/utils/object.js +0 -4
  107. package/lib/es/anchor/foundation.js +0 -2
  108. package/lib/es/anchor/linkFoundation.js +0 -1
  109. package/lib/es/autoComplete/foundation.js +0 -1
  110. package/lib/es/autoComplete/optionFoundation.js +0 -2
  111. package/lib/es/avatar/constants.js +0 -1
  112. package/lib/es/avatar/foundation.js +2 -2
  113. package/lib/es/breadcrumb/foundation.js +0 -1
  114. package/lib/es/button/button.css +0 -1
  115. package/lib/es/button/button.scss +0 -1
  116. package/lib/es/calendar/eventUtil.js +0 -2
  117. package/lib/es/calendar/foundation.js +0 -1
  118. package/lib/es/cascader/foundation.js +0 -5
  119. package/lib/es/checkbox/checkbox.css +0 -1
  120. package/lib/es/checkbox/checkbox.scss +0 -1
  121. package/lib/es/checkbox/checkboxFoundation.js +0 -1
  122. package/lib/es/checkbox/checkboxGroupFoundation.js +0 -1
  123. package/lib/es/datePicker/foundation.js +0 -4
  124. package/lib/es/datePicker/inputFoundation.js +0 -3
  125. package/lib/es/datePicker/monthFoundation.js +0 -1
  126. package/lib/es/datePicker/monthsGridFoundation.js +0 -2
  127. package/lib/es/datePicker/yearAndMonthFoundation.js +0 -2
  128. package/lib/es/form/foundation.d.ts +4 -4
  129. package/lib/es/form/foundation.js +9 -7
  130. package/lib/es/form/interface.d.ts +4 -4
  131. package/lib/es/form/utils.js +0 -3
  132. package/lib/es/image/image.css +3 -1
  133. package/lib/es/image/image.scss +8 -4
  134. package/lib/es/image/previewInnerFoundation.d.ts +4 -2
  135. package/lib/es/image/previewInnerFoundation.js +2 -1
  136. package/lib/es/image/variables.scss +1 -1
  137. package/lib/es/input/foundation.js +0 -2
  138. package/lib/es/input/textareaFoundation.js +0 -2
  139. package/lib/es/inputNumber/foundation.js +0 -5
  140. package/lib/es/navigation/NavItem.js +0 -2
  141. package/lib/es/navigation/foundation.js +1 -3
  142. package/lib/es/navigation/itemFoundation.js +0 -1
  143. package/lib/es/navigation/subNavFoundation.js +1 -2
  144. package/lib/es/notification/notificationListFoundation.js +0 -1
  145. package/lib/es/pagination/foundation.d.ts +2 -0
  146. package/lib/es/pagination/foundation.js +16 -3
  147. package/lib/es/popconfirm/popconfirmFoundation.js +0 -1
  148. package/lib/es/radio/radio.css +1 -0
  149. package/lib/es/radio/radio.scss +1 -0
  150. package/lib/es/radio/radioGroupFoundation.js +0 -1
  151. package/lib/es/radio/radioInnerFoundation.js +0 -1
  152. package/lib/es/radio/variables.scss +1 -0
  153. package/lib/es/rating/foundation.js +0 -1
  154. package/lib/es/select/foundation.js +0 -5
  155. package/lib/es/select/optionFoundation.js +0 -2
  156. package/lib/es/select/select.css +0 -35
  157. package/lib/es/select/select.scss +11 -63
  158. package/lib/es/select/variables.scss +0 -10
  159. package/lib/es/skeleton/skeleton.css +2 -2
  160. package/lib/es/skeleton/variables.scss +2 -2
  161. package/lib/es/slider/foundation.js +0 -7
  162. package/lib/es/switch/foundation.js +0 -1
  163. package/lib/es/table/bodyFoundation.js +0 -1
  164. package/lib/es/table/constants.js +0 -1
  165. package/lib/es/table/foundation.js +0 -8
  166. package/lib/es/table/tableRowFoundation.js +0 -1
  167. package/lib/es/table/utils.js +0 -3
  168. package/lib/es/tag/constants.js +0 -1
  169. package/lib/es/tagInput/foundation.js +0 -2
  170. package/lib/es/timePicker/foundation.js +6 -7
  171. package/lib/es/timePicker/inputFoundation.js +0 -2
  172. package/lib/es/timePicker/utils/index.js +2 -1
  173. package/lib/es/tooltip/foundation.js +0 -10
  174. package/lib/es/transfer/foundation.js +0 -1
  175. package/lib/es/tree/foundation.js +0 -1
  176. package/lib/es/tree/treeUtil.js +0 -9
  177. package/lib/es/treeSelect/foundation.js +0 -1
  178. package/lib/es/upload/foundation.js +3 -1
  179. package/lib/es/utils/Event.js +0 -1
  180. package/lib/es/utils/date-fns-extra.js +0 -2
  181. package/lib/es/utils/function.js +0 -1
  182. package/lib/es/utils/object.js +0 -3
  183. package/modal/modalFoundation.ts +3 -4
  184. package/navigation/NavItem.ts +0 -2
  185. package/navigation/foundation.ts +1 -3
  186. package/navigation/itemFoundation.ts +0 -1
  187. package/navigation/subNavFoundation.ts +1 -2
  188. package/notification/notificationListFoundation.ts +0 -2
  189. package/package.json +3 -3
  190. package/pagination/foundation.ts +13 -3
  191. package/popconfirm/popconfirmFoundation.ts +0 -1
  192. package/radio/radio.scss +1 -0
  193. package/radio/radioGroupFoundation.ts +0 -1
  194. package/radio/radioInnerFoundation.ts +0 -1
  195. package/radio/variables.scss +1 -0
  196. package/rating/foundation.ts +0 -1
  197. package/select/foundation.ts +0 -5
  198. package/select/optionFoundation.ts +0 -2
  199. package/select/select.scss +11 -63
  200. package/select/variables.scss +0 -10
  201. package/skeleton/variables.scss +2 -2
  202. package/slider/foundation.ts +0 -7
  203. package/switch/foundation.ts +0 -1
  204. package/table/bodyFoundation.ts +0 -1
  205. package/table/constants.ts +0 -1
  206. package/table/foundation.ts +0 -8
  207. package/table/tableRowFoundation.ts +0 -1
  208. package/table/utils.ts +0 -3
  209. package/tag/constants.ts +19 -2
  210. package/tagInput/foundation.ts +0 -2
  211. package/timePicker/foundation.ts +7 -8
  212. package/timePicker/inputFoundation.ts +0 -2
  213. package/timePicker/utils/index.ts +2 -1
  214. package/toast/toastFoundation.ts +1 -4
  215. package/toast/toastListFoundation.ts +0 -1
  216. package/tooltip/foundation.ts +0 -10
  217. package/transfer/foundation.ts +0 -1
  218. package/tree/foundation.ts +0 -1
  219. package/tree/treeUtil.ts +1 -10
  220. package/treeSelect/foundation.ts +0 -1
  221. package/upload/foundation.ts +3 -1
  222. package/utils/Event.ts +0 -1
  223. package/utils/date-fns-extra.ts +0 -2
  224. package/utils/function.ts +0 -1
  225. package/utils/object.ts +0 -3
@@ -46,7 +46,6 @@ class RadioInnerFoundation extends _foundation.default {
46
46
  this._adapter.notifyChange(cbValue);
47
47
  }
48
48
  }
49
- // eslint-disable-next-line @typescript-eslint/no-empty-function
50
49
  destroy() {}
51
50
  }
52
51
  exports.default = RadioInnerFoundation;
@@ -77,6 +77,7 @@ $spacing-radio_addon_buttonRadio_middle-paddingX: $spacing-base; // 中尺寸按
77
77
  $spacing-radio_addon_buttonRadio_middle-paddingY: $spacing-extra-tight; // 中尺寸按钮式单选按钮垂直内边距
78
78
  $spacing-radio_addon_buttonRadio_marginLeft: $spacing-none; // 按钮式单选按钮左侧外边距
79
79
  $spacing-radio_extra-paddingLeft: $width-radio_inner + $spacing-tight; // 单选副标题左侧内边距
80
+ $spacing-radio_content-rowGap: 4px; // 内容行间距
80
81
 
81
82
  $spacing-radio_group_vertical-marginBottom: $spacing-base-tight; // 垂直布局单选框组底部外边距
82
83
  $spacing-radio_card_group_vertical-marginBottom: $spacing-base; // 垂直布局卡片式单选框组底部外边距
@@ -7,8 +7,6 @@ exports.default = exports.RatingItemFoundation = void 0;
7
7
  var _foundation = _interopRequireDefault(require("../base/foundation"));
8
8
  var _warning = _interopRequireDefault(require("../utils/warning"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- /* eslint-disable no-param-reassign */
11
-
12
10
  class RatingFoundation extends _foundation.default {
13
11
  constructor(adapter) {
14
12
  super(Object.assign(Object.assign({}, RatingFoundation.defaultAdapter), adapter));
@@ -25,13 +25,10 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
25
25
  }
26
26
  return t;
27
27
  };
28
- /* argus-disable unPkgSensitiveInfo */
29
- /* eslint-disable max-len */
30
28
  class SelectFoundation extends _foundation.default {
31
29
  constructor(adapter) {
32
30
  super(Object.assign({}, adapter));
33
31
  // keyboard event listner
34
- // eslint-disable-next-line @typescript-eslint/member-ordering
35
32
  this._keydownHandler = null;
36
33
  }
37
34
  init() {
@@ -900,7 +897,6 @@ class SelectFoundation extends _foundation.default {
900
897
  index = index - 1;
901
898
  targetLabel = keys[index];
902
899
  targetItem = selections.get(targetLabel);
903
- // eslint-disable-next-line
904
900
  if (index == 0 && targetItem.disabled) {
905
901
  isAllDisabled = true;
906
902
  }
@@ -940,7 +936,6 @@ class SelectFoundation extends _foundation.default {
940
936
  }
941
937
  }
942
938
  _removeInternalKey(option) {
943
- // eslint-disable-next-line
944
939
  let newOption = Object.assign({}, option);
945
940
  delete newOption._parentGroup;
946
941
  delete newOption._show;
@@ -10,9 +10,7 @@ class OptionFoundation extends _foundation.default {
10
10
  constructor(adapter) {
11
11
  super(Object.assign({}, adapter));
12
12
  }
13
- // eslint-disable-next-line @typescript-eslint/no-empty-function
14
13
  init() {}
15
- // eslint-disable-next-line @typescript-eslint/no-empty-function
16
14
  destroy() {}
17
15
  onOptionClick(option) {
18
16
  const isDisabled = this._isDisabled();
@@ -445,44 +445,9 @@
445
445
  .semi-select-borderless:not(:focus-within):not(:hover) .semi-select-arrow {
446
446
  opacity: 0;
447
447
  }
448
- .semi-select-borderless:not(:focus-within):not(:hover).semi-select-borderless-arrow .semi-select-arrow {
449
- opacity: 1;
450
- }
451
- .semi-select-borderless:hover {
452
- background-color: var(--semi-color-fill-1);
453
- border: 1px solid transparent;
454
- }
455
- .semi-select-borderless:focus {
456
- border: 1px solid var(--semi-color-focus-border);
457
- background-color: var(--semi-color-fill-0);
458
- outline: 0;
459
- }
460
- .semi-select-borderless:active {
461
- background-color: var(--semi-color-fill-2);
462
- }
463
448
  .semi-select-borderless:focus-within:not(:active) {
464
449
  background-color: transparent;
465
450
  }
466
- .semi-select-borderless.semi-select-disabled {
467
- background-color: var(--semi-color-disabled-fill);
468
- }
469
- .semi-select-borderless.semi-select-disabled:hover {
470
- background-color: var(--semi-color-disabled-fill);
471
- }
472
- .semi-select-borderless.semi-select-disabled .semi-select-selection,
473
- .semi-select-borderless.semi-select-disabled .semi-select-selection-placeholder {
474
- color: var(--semi-color-disabled-text);
475
- }
476
- .semi-select-borderless.semi-select-disabled .semi-select-prefix,
477
- .semi-select-borderless.semi-select-disabled .semi-select-suffix {
478
- color: var(--semi-color-disabled-text);
479
- }
480
- .semi-select-borderless.semi-select-disabled .semi-select-arrow {
481
- color: var(--semi-color-disabled-text);
482
- }
483
- .semi-select-borderless.semi-select-disabled .semi-tag {
484
- color: var(--semi-color-disabled-text);
485
- }
486
451
  .semi-select-borderless.semi-select-error:not(:focus-within) {
487
452
  border-color: var(--semi-color-danger);
488
453
  }
@@ -40,7 +40,7 @@ $overflowList: #{$prefix}-overflow-list;
40
40
  outline: 0;
41
41
  }
42
42
 
43
- &:active {
43
+ &:active{
44
44
  background-color: $color-select-bg-active;
45
45
  }
46
46
 
@@ -52,7 +52,6 @@ $overflowList: #{$prefix}-overflow-list;
52
52
  &-large {
53
53
  min-height: $height-select_large;
54
54
  line-height: $height-select_large;
55
-
56
55
  .#{$module}-selection {
57
56
  @include font-size-header-6;
58
57
  }
@@ -197,7 +196,6 @@ $overflowList: #{$prefix}-overflow-list;
197
196
 
198
197
  .#{$prefix}-tag-group {
199
198
  height: inherit;
200
-
201
199
  .#{$prefix}-tag {
202
200
  @include select-tag-margin;
203
201
  }
@@ -328,7 +326,6 @@ $overflowList: #{$prefix}-overflow-list;
328
326
  width: $width-select_clear-icon;
329
327
  color: $color-select_clearBtn-text-default;
330
328
  flex-shrink: 0;
331
-
332
329
  &:hover {
333
330
  color: $color-select_clearBtn-text-hover;
334
331
  }
@@ -438,7 +435,6 @@ $overflowList: #{$prefix}-overflow-list;
438
435
  .#{$module}-option-list {
439
436
  overflow-x: hidden;
440
437
  overflow-y: auto;
441
-
442
438
  &-chosen {
443
439
  .#{$module}-option-icon {
444
440
  display: flex;
@@ -479,84 +475,36 @@ $overflowList: #{$prefix}-overflow-list;
479
475
 
480
476
  .#{$module}-borderless {
481
477
 
482
- &:not(:focus-within):not(:hover) {
483
- background-color: $color-select_borderless-bg-default;
484
- border-color: $color-select_borderless-border-default;
485
-
478
+ &:not(:focus-within):not(:hover){
479
+ background-color:transparent;
480
+ border-color: transparent;
486
481
  .#{$module}-arrow {
487
482
  opacity: 0;
488
483
  }
489
-
490
- &.#{$module}-borderless-arrow {
491
- .#{$module}-arrow {
492
- opacity: 1;
493
- }
494
- }
495
484
  }
496
485
 
497
- &:hover {
498
- background-color: $color-select_borderless-bg-hover;
499
- border: $width-select-border-hover solid $color-select_borderless-border-hover;
500
- }
501
-
502
- &:focus {
503
- border: $width-select-border-focus solid $color-select_borderless-border-focus;
504
- background-color: $color-select_borderless-bg-focus;
505
- outline: 0;
506
- }
507
-
508
- &:active {
509
- background-color: $color-select_borderless-bg-active;
510
- }
511
-
512
- &:focus-within:not(:active) {
513
- background-color: transparent;
514
- }
515
-
516
- &.#{$module}-disabled {
517
- background-color: $color-select_borderless_input_disabled-bg;
518
-
519
- &:hover {
520
- background-color: $color-select_borderless_input_disabled-bg;
521
- }
522
-
523
- .#{$module}-selection,
524
- .#{$module}-selection-placeholder {
525
- color: $color-select_borderless_input_disabled-text;
526
- }
527
-
528
- .#{$module}-prefix,
529
- .#{$module}-suffix {
530
- color: $color-select_borderless_input_disabled-text;
531
- }
532
-
533
- .#{$module}-arrow {
534
- color: $color-select_borderless_input_disabled-text;
535
- }
536
-
537
- .#{$prefix}-tag {
538
- color: $color-select_borderless_input_disabled-text;
539
- }
486
+ &:focus-within:not(:active){
487
+ background-color:transparent;
540
488
  }
541
489
 
542
490
  // split style into not and normal to avoid style override
543
- &.#{$module}-error:not(:focus-within) {
491
+ &.#{$module}-error:not(:focus-within){
544
492
  border-color: $color-select_danger-border-focus;
545
493
  }
546
494
 
547
- &.#{$module}-warning:not(:focus-within) {
495
+ &.#{$module}-warning:not(:focus-within){
548
496
  border-color: $color-select_warning-border-focus;
549
497
  }
550
498
 
551
- &.#{$module}-error:focus-within {
499
+ &.#{$module}-error:focus-within{
552
500
  border-color: $color-select_danger-border-focus;
553
501
  }
554
502
 
555
- &.#{$module}-warning:focus-within {
503
+ &.#{$module}-warning:focus-within{
556
504
  border-color: $color-select_warning-border-focus;
557
505
  }
558
506
 
559
507
  }
560
508
 
561
509
 
562
- @import './rtl.scss';
510
+ @import './rtl.scss';
@@ -47,16 +47,6 @@ $color-select_option-border-default: var(--semi-color-border); // 分组选择
47
47
  $color-select_inset_label-text: var(--semi-color-text-2); // 分组选择器菜单项辅助文本颜色
48
48
  $color-select_create_tips-text: var(--semi-color-text-2); // 分组选择器菜单项提示文本颜色
49
49
  $color-select_group-text: var(--semi-color-text-2); // 分组选择器菜单项分组标题文本颜色
50
- $color-select_borderless-bg-default: transparent; // borderless 选择器输入框背景色 - 默认态
51
- $color-select_borderless-bg-hover: var(--semi-color-fill-1); // borderless 选择器输入框背景色 - 悬停态
52
- $color-select_borderless-bg-active: var(--semi-color-fill-2); // borderless 选择器输入框背景色 - 按下态
53
- $color-select_borderless-bg-focus: var(--semi-color-fill-0); // borderless 选择器输入框背景色 - 聚焦态
54
- $color-select_borderless-border-default: transparent; // borderless 选择器输入框边框颜色 - 默认态
55
- $color-select_borderless-border-hover: $color-select-border-default; // borderless 选择器输入框边框颜色 - 悬停态
56
- $color-select_borderless-border-active: var(--semi-color-focus-border); // borderless 选择器输入框边框颜色 - 按下态
57
- $color-select_borderless-border-focus: $color-select-border-active; // borderless 选择器输入框边框颜色 - 聚焦态
58
- $color-select_borderless_input_disabled-text: var(--semi-color-disabled-text); // borderless 选择器输入框文本颜色 - 禁用态
59
- $color-select_borderless_input_disabled-bg: var(--semi-color-disabled-fill); // borderless 禁用选择器输入框背景色 - 禁用态
60
50
 
61
51
  // Width/Height
62
52
  $width-select_icon_right: ($width-icon-medium + $spacing-tight * 2); // 选择器右侧图标大小
@@ -3,7 +3,7 @@
3
3
  /* spacing */
4
4
  .semi-skeleton-avatar, .semi-skeleton-image, .semi-skeleton-title, .semi-skeleton-button {
5
5
  background: var(--semi-color-fill-0);
6
- border-radius: 4px;
6
+ border-radius: var(--semi-border-radius-small);
7
7
  }
8
8
  .semi-skeleton-avatar-circle {
9
9
  border-radius: 50%;
@@ -39,7 +39,7 @@
39
39
  }
40
40
  .semi-skeleton-paragraph li {
41
41
  background: var(--semi-color-fill-0);
42
- border-radius: 4px;
42
+ border-radius: var(--semi-border-radius-small);
43
43
  width: 100%;
44
44
  height: 16px;
45
45
  margin-bottom: 10px;
@@ -15,6 +15,6 @@ $height-skeleton_button: $height-control-default; // 按钮骨架屏高度
15
15
 
16
16
  $spacing-skeleton_li-marginBottom: 10px; // 按钮骨架屏高度
17
17
 
18
- $radius-skeleton_item: 4px; // 骨架屏圆角
19
- $radius-skeleton_li: 4px; // 骨架屏圆角
18
+ $radius-skeleton_item: var(--semi-border-radius-small); // 骨架屏圆角
19
+ $radius-skeleton_li: var(--semi-border-radius-small); // 骨架屏圆角
20
20
 
@@ -9,10 +9,6 @@ var _touchPolyfill = _interopRequireDefault(require("../utils/touchPolyfill"));
9
9
  var _warning = _interopRequireDefault(require("../utils/warning"));
10
10
  var _a11y = require("../utils/a11y");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- /* eslint-disable no-param-reassign */
13
- /* eslint-disable max-len */
14
- /* eslint-disable no-nested-ternary */
15
-
16
12
  class SliderFoundation extends _foundation.default {
17
13
  constructor(adapter) {
18
14
  var _this;
@@ -165,7 +161,6 @@ class SliderFoundation extends _foundation.default {
165
161
  startPos = vertical ? sliderY : sliderX;
166
162
  }
167
163
  // startPos = chooseMovePos === 'max' && isDrag ? currentPos[0] : startPos;
168
- // eslint-disable-next-line one-var
169
164
  let endPos;
170
165
  if (vertical && verticalReverse) {
171
166
  endPos = sliderY;
@@ -221,8 +216,6 @@ class SliderFoundation extends _foundation.default {
221
216
  } else {
222
217
  stepValue = (pos - startPos) / len * (max - min) + min;
223
218
  }
224
- // debugger
225
- // eslint-disable-next-line one-var
226
219
  let compareValue;
227
220
  if (range) {
228
221
  compareValue = isMin ? currentValue[0] : currentValue[1];
@@ -625,7 +618,6 @@ class SliderFoundation extends _foundation.default {
625
618
  (0, _a11y.handlePrevent)(event);
626
619
  }
627
620
  };
628
- // eslint-disable-next-line @typescript-eslint/no-empty-function
629
621
  this.onFocus = (e, handler) => {
630
622
  (0, _a11y.handlePrevent)(e);
631
623
  const {
@@ -48,7 +48,6 @@ class SwitchFoundation extends _foundation.default {
48
48
  this._adapter.notifyChange(checked, e);
49
49
  }
50
50
  }
51
- // eslint-disable-next-line @typescript-eslint/no-empty-function
52
51
  destroy() {}
53
52
  }
54
53
  exports.default = SwitchFoundation;
@@ -30,7 +30,6 @@ class TableBodyFoundation extends _foundation.default {
30
30
  this._adapter.setCachedExpandBtnShouldInRow(cachedExpandBtnShouldInRow);
31
31
  if (!(0, _isObject2.default)(newExpandRelatedProps) && !newExpandRelatedProps) {
32
32
  const expandRelatedProps = _constants.strings.EXPAND_RELATED_PROPS;
33
- // eslint-disable-next-line no-param-reassign
34
33
  newExpandRelatedProps = expandRelatedProps.map(key => (0, _get2.default)(props, key, undefined));
35
34
  }
36
35
  this._adapter.setCachedExpandRelatedProps(newExpandRelatedProps);
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.strings = exports.numbers = exports.cssClasses = void 0;
7
7
  var _constants = require("../base/constants");
8
- /* eslint-disable max-len */
9
-
10
8
  const cssClasses = {
11
9
  PREFIX: `${_constants.BASE_CLASS_PREFIX}-table`,
12
10
  TABLE: `${_constants.BASE_CLASS_PREFIX}-table`,
@@ -23,14 +23,6 @@ var _constants = require("./constants");
23
23
  var _utils = require("./utils");
24
24
  var _array = require("../utils/array");
25
25
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
26
- /* eslint-disable prefer-destructuring */
27
- /* eslint-disable max-depth */
28
- /* eslint-disable max-nested-callbacks */
29
- /* eslint-disable max-len */
30
- /* eslint-disable no-param-reassign */
31
- /* eslint-disable eqeqeq */
32
- /* eslint-disable @typescript-eslint/no-empty-function */
33
-
34
26
  class TableFoundation extends _foundation.default {
35
27
  /**
36
28
  * update columns in place, and use default values as initial values if the sorting and filtering columns have no values
@@ -840,7 +832,6 @@ class TableFoundation extends _foundation.default {
840
832
  toggleShowFilter(dataIndex, visible) {
841
833
  let filterObj = this.getQuery(dataIndex);
842
834
  const filterDropdownVisible = visible;
843
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
844
835
  filterObj = Object.assign(Object.assign({}, filterObj), {
845
836
  filterDropdownVisible
846
837
  });
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _foundation = _interopRequireDefault(require("../base/foundation"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- // eslint-disable-next-line max-len
10
9
  class TableRowFoundation extends _foundation.default {
11
10
  handleClick(e) {
12
11
  const {
@@ -56,10 +56,6 @@ var _constants = require("./constants");
56
56
  var _isNullOrUndefined = _interopRequireDefault(require("../utils/isNullOrUndefined"));
57
57
  var _Logger = _interopRequireDefault(require("../utils/Logger"));
58
58
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
59
- /* eslint-disable max-len */
60
- /* eslint-disable no-param-reassign */
61
- /* eslint-disable eqeqeq */
62
-
63
59
  function equalWith(value, other, customizer) {
64
60
  return (0, _isEqualWith2.default)(value, other, function (objVal, othVal) {
65
61
  if (typeof objVal === 'function' && typeof othVal === 'function') {
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.strings = exports.cssClasses = void 0;
7
7
  var _constants = require("../base/constants");
8
- /* eslint-disable max-len */
9
-
10
8
  const cssClasses = {
11
9
  PREFIX: `${_constants.BASE_CLASS_PREFIX}-tag`
12
10
  };
@@ -96,10 +96,8 @@ class TagInputFoundation extends _foundation.default {
96
96
  const maxLen = Math.max(valueArr.length, inputArr.length);
97
97
  for (let i = 0; i < maxLen; i++) {
98
98
  // When the input length is increasing
99
- // eslint-disable-next-line max-len
100
99
  if (!(0, _isUndefined2.default)(valueArr[i]) && ((0, _isUndefined2.default)(inputArr[i]) || valueArr[i].length > inputArr[i].length)) {
101
100
  // When the input length exceeds maxLength
102
- // eslint-disable-next-line max-depth
103
101
  if (valueArr[i].length > maxLength) {
104
102
  allowChange = false;
105
103
  (0, _isFunction2.default)(onInputExceed) && onInputExceed(value);
@@ -13,8 +13,6 @@ var _dateFns = require("date-fns");
13
13
  var _dateFnsExtra = require("../utils/date-fns-extra");
14
14
  var _isNullOrUndefined = _interopRequireDefault(require("../utils/isNullOrUndefined"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
- /* eslint-disable max-len */
17
-
18
16
  // TODO: split, timePicker different components cannot share a foundation
19
17
  class TimePickerFoundation extends _foundation.default {
20
18
  constructor(adapter) {
@@ -167,13 +165,13 @@ class TimePickerFoundation extends _foundation.default {
167
165
  if (this.isValidTimeZone(timeZone)) {
168
166
  dates = dates.map(date => (0, _dateFnsExtra.utcToZonedTime)(this.isValidTimeZone(__prevTimeZone) ? (0, _dateFnsExtra.zonedTimeToUtc)(date, __prevTimeZone) : date, timeZone));
169
167
  }
170
- const inputValue = this.formatValue(dates);
171
- this.setState({
172
- value: dates,
173
- invalid,
174
- inputValue
175
- });
176
168
  }
169
+ const inputValue = this.formatValue(dates);
170
+ this.setState({
171
+ value: dates,
172
+ invalid,
173
+ inputValue
174
+ });
177
175
  }
178
176
  handleFocus(e) {
179
177
  if (!this.getState('open')) {
@@ -11,9 +11,7 @@ class TimePickerFoundation extends _foundation.default {
11
11
  constructor(adapter) {
12
12
  super(Object.assign({}, adapter));
13
13
  }
14
- // eslint-disable-next-line @typescript-eslint/no-empty-function
15
14
  init() {}
16
- // eslint-disable-next-line @typescript-eslint/no-empty-function
17
15
  destroy() {}
18
16
  handleFocus(e) {
19
17
  this.storeCursor();
@@ -10,8 +10,6 @@ var _constants = require("../constants");
10
10
  var _isNullOrUndefined = _interopRequireDefault(require("../../utils/isNullOrUndefined"));
11
11
  var _locale = require("date-fns/locale");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- /* eslint-disable max-len */
14
-
15
13
  /**
16
14
  *
17
15
  * @param {string|Date|number} input
@@ -34,6 +32,8 @@ const parseToDate = function (input) {
34
32
  });
35
33
  // console.log(curDate, formatToken);
36
34
  return curDate;
35
+ } else if (typeof input === 'undefined') {
36
+ return undefined;
37
37
  }
38
38
  return new Date();
39
39
  };
@@ -9,10 +9,6 @@ var _get2 = _interopRequireDefault(require("lodash/get"));
9
9
  var _foundation = _interopRequireDefault(require("../base/foundation"));
10
10
  var _a11y = require("../utils/a11y");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- /* eslint-disable no-param-reassign */
13
- /* eslint-disable prefer-destructuring, max-lines-per-function, one-var, max-len, @typescript-eslint/restrict-plus-operands */
14
- /* argus-disable unPkgSensitiveInfo */
15
-
16
12
  const REGS = {
17
13
  TOP: /top/i,
18
14
  RIGHT: /right/i,
@@ -86,7 +82,6 @@ class Tooltip extends _foundation.default {
86
82
  top: -9999
87
83
  }); // offscreen rendering
88
84
  if (trigger === 'custom') {
89
- // eslint-disable-next-line
90
85
  this._adapter.registerClickOutsideHandler(() => {});
91
86
  }
92
87
  /**
@@ -404,7 +399,6 @@ class Tooltip extends _foundation.default {
404
399
  return pixel;
405
400
  }
406
401
  calcTransformOrigin(position, triggerRect, translateX, translateY) {
407
- // eslint-disable-next-line
408
402
  if (position && triggerRect && translateX != null && translateY != null) {
409
403
  if (this.getProp('transformFromCenter')) {
410
404
  if (['topLeft', 'bottomLeft'].includes(position)) {
@@ -435,9 +429,7 @@ class Tooltip extends _foundation.default {
435
429
  const triggerRect = ((0, _isEmpty2.default)(props.triggerRect) ? props.triggerRect : this._adapter.getTriggerBounding()) || Object.assign({}, defaultRect);
436
430
  const containerRect = ((0, _isEmpty2.default)(props.containerRect) ? props.containerRect : this._adapter.getPopupContainerRect()) || Object.assign({}, defaultRect);
437
431
  const wrapperRect = ((0, _isEmpty2.default)(props.wrapperRect) ? props.wrapperRect : this._adapter.getWrapperBounding()) || Object.assign({}, defaultRect);
438
- // eslint-disable-next-line
439
432
  const position = props.position != null ? props.position : this.getProp('position');
440
- // eslint-disable-next-line
441
433
  const SPACING = spacing != null ? spacing : this.getProp('spacing');
442
434
  const {
443
435
  arrowPointAtCenter,
@@ -615,7 +607,6 @@ class Tooltip extends _foundation.default {
615
607
  top: this._roundPixel(top)
616
608
  };
617
609
  let transform = '';
618
- // eslint-disable-next-line
619
610
  if (translateX != null) {
620
611
  transform += `translateX(${translateX * 100}%) `;
621
612
  Object.defineProperty(style, 'translateX', {
@@ -623,7 +614,6 @@ class Tooltip extends _foundation.default {
623
614
  value: translateX
624
615
  });
625
616
  }
626
- // eslint-disable-next-line
627
617
  if (translateY != null) {
628
618
  transform += `translateY(${translateY * 100}%) `;
629
619
  Object.defineProperty(style, 'translateY', {
@@ -631,7 +621,6 @@ class Tooltip extends _foundation.default {
631
621
  value: translateY
632
622
  });
633
623
  }
634
- // eslint-disable-next-line
635
624
  if (transformOrigin != null) {
636
625
  style.transformOrigin = transformOrigin;
637
626
  }
@@ -10,7 +10,6 @@ var _constants = require("./constants");
10
10
  var _transferUtils = require("./transferUtils");
11
11
  var _arrayMove = _interopRequireDefault(require("../utils/arrayMove"));
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- // eslint-disable-next-line max-len
14
13
  class TransferFoundation extends _foundation.default {
15
14
  constructor(adapter) {
16
15
  super(Object.assign({}, adapter));
@@ -413,7 +413,6 @@ class TreeFoundation extends _foundation.default {
413
413
  node: data
414
414
  });
415
415
  }
416
- // eslint-disable-next-line max-len
417
416
  handleNodeLoad(loadedKeys, loadingKeys, data, resolve) {
418
417
  const {
419
418
  loadData,
@@ -60,7 +60,6 @@ function isValid(val) {
60
60
  * @param filteredShownKeys
61
61
  * need expanded keys, provides `true` means all expanded
62
62
  */
63
- // eslint-disable-next-line max-len
64
63
  function flattenTreeData(treeNodeList, expandedKeys) {
65
64
  let filteredShownKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
66
65
  const flattenList = [];
@@ -83,7 +82,6 @@ function flattenTreeData(treeNodeList, expandedKeys) {
83
82
  flattenList.push(flattenNode);
84
83
  }
85
84
  // Loop treeNode children
86
- // eslint-disable-next-line max-len
87
85
  if (expandedKeys.has(mergedKey) && (!filterSearch || !isBooleanFilteredShownKeys && filteredShownKeys.has(mergedKey))) {
88
86
  flattenNode.children = flatten(treeNode.children || [], flattenNode);
89
87
  } else {
@@ -380,7 +378,6 @@ function calcExpandedKeys() {
380
378
  return new Set(keyList);
381
379
  }
382
380
  /* Calculate the expanded node by value */
383
- // eslint-disable-next-line max-len
384
381
  function calcExpandedKeysForValues(value, keyEntities, isMultiple, valueEntities) {
385
382
  const keys = findKeysForValues(value, valueEntities, isMultiple);
386
383
  return new Set(findAncestorKeys(keys, keyEntities, false));
@@ -488,7 +485,6 @@ function getMotionKeys(eventKey, expandedKeys, keyEntities) {
488
485
  getChild(eventKey);
489
486
  return res;
490
487
  }
491
- // eslint-disable-next-line max-len
492
488
  function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKeys) {
493
489
  const descendantKeys = findDescendantKeys([key], keyEntities, true);
494
490
  const nodeItem = keyEntities[key];
@@ -497,12 +493,10 @@ function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKey
497
493
  if (!node.parent) {
498
494
  return;
499
495
  }
500
- // eslint-disable-next-line @typescript-eslint/no-shadow
501
496
  const {
502
497
  key
503
498
  } = node;
504
499
  const siblingKeys = findSiblingKeys([key], keyEntities);
505
- // eslint-disable-next-line @typescript-eslint/no-shadow
506
500
  const allChecked = siblingKeys.every(key => checkedKeys.has(key));
507
501
  if (!allChecked) {
508
502
  const ancestorKeys = findAncestorKeys([key], keyEntities, false);
@@ -519,7 +513,6 @@ function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKey
519
513
  halfCheckedKeys
520
514
  };
521
515
  }
522
- // eslint-disable-next-line max-len
523
516
  function calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedKeys) {
524
517
  const descendantKeys = findDescendantKeys([key], keyEntities, true);
525
518
  const nodeItem = keyEntities[key];
@@ -542,12 +535,10 @@ function calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedK
542
535
  return;
543
536
  }
544
537
  // Has a parent node, and the parent node is checked or halfChecked
545
- // eslint-disable-next-line @typescript-eslint/no-shadow
546
538
  const {
547
539
  key
548
540
  } = node;
549
541
  const siblingKeys = findSiblingKeys([key], keyEntities);
550
- // eslint-disable-next-line @typescript-eslint/no-shadow
551
542
  const anyChecked = siblingKeys.some(key => checkedKeys.has(key) || halfCheckedKeys.has(key));
552
543
  const ancestorKeys = findAncestorKeys([key], keyEntities, false);
553
544
  // If there is checked or halfChecked in the sibling node, you need to change the parent node to halfChecked
@@ -17,7 +17,6 @@ var _foundation = _interopRequireDefault(require("../base/foundation"));
17
17
  var _treeUtil = require("../tree/treeUtil");
18
18
  var _isEnterPress = _interopRequireDefault(require("../utils/isEnterPress"));
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
- // eslint-disable-next-line max-len
21
20
  class TreeSelectFoundation extends _foundation.default {
22
21
  constructor(adapter) {
23
22
  super(Object.assign({}, adapter));
@@ -230,7 +230,9 @@ class UploadFoundation extends _foundation.default {
230
230
  });
231
231
  this._adapter.updateFileList(newFileList, () => {
232
232
  this._adapter.resetReplaceInput();
233
- this.upload(newFileItem);
233
+ if (!newFileItem._sizeInvalid) {
234
+ this.upload(newFileItem);
235
+ }
234
236
  });
235
237
  }
236
238
  buildFileItem(fileInstance, uploadTrigger) {
@@ -33,7 +33,6 @@ class Event {
33
33
  const callbacks = this._eventMap.get(event);
34
34
  if (Array.isArray(callbacks) && callbacks.length) {
35
35
  let index = -1;
36
- // eslint-disable-next-line max-depth
37
36
  while ((index = callbacks.findIndex(cb => cb === callback)) > -1) {
38
37
  callbacks.splice(index, 1);
39
38
  }