@douyinfe/semi-foundation 2.16.1 → 2.17.0-beta.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 (70) hide show
  1. package/collapse/collapse.scss +8 -0
  2. package/collapse/variables.scss +1 -0
  3. package/datePicker/constants.ts +1 -0
  4. package/datePicker/datePicker.scss +335 -17
  5. package/datePicker/foundation.ts +2 -0
  6. package/datePicker/monthsGridFoundation.ts +4 -1
  7. package/datePicker/rtl.scss +6 -6
  8. package/datePicker/variables.scss +58 -6
  9. package/datePicker/yearAndMonthFoundation.ts +4 -0
  10. package/lib/cjs/collapse/collapse.css +6 -0
  11. package/lib/cjs/collapse/collapse.scss +8 -0
  12. package/lib/cjs/collapse/variables.scss +1 -0
  13. package/lib/cjs/datePicker/constants.d.ts +1 -0
  14. package/lib/cjs/datePicker/constants.js +1 -0
  15. package/lib/cjs/datePicker/datePicker.css +267 -27
  16. package/lib/cjs/datePicker/datePicker.scss +335 -17
  17. package/lib/cjs/datePicker/foundation.d.ts +2 -0
  18. package/lib/cjs/datePicker/monthsGridFoundation.d.ts +5 -1
  19. package/lib/cjs/datePicker/rtl.scss +6 -6
  20. package/lib/cjs/datePicker/variables.scss +58 -6
  21. package/lib/cjs/datePicker/yearAndMonthFoundation.d.ts +5 -0
  22. package/lib/cjs/select/foundation.d.ts +11 -0
  23. package/lib/cjs/select/foundation.js +188 -44
  24. package/lib/cjs/select/select.css +5 -5
  25. package/lib/cjs/select/select.scss +9 -6
  26. package/lib/cjs/tagInput/foundation.d.ts +11 -0
  27. package/lib/cjs/tagInput/foundation.js +47 -1
  28. package/lib/cjs/tagInput/tagInput.css +11 -0
  29. package/lib/cjs/tagInput/tagInput.scss +17 -0
  30. package/lib/cjs/tagInput/variables.scss +2 -0
  31. package/lib/cjs/tooltip/foundation.js +13 -5
  32. package/lib/cjs/transfer/foundation.d.ts +0 -1
  33. package/lib/cjs/transfer/foundation.js +3 -11
  34. package/lib/cjs/utils/arrayMove.d.ts +1 -0
  35. package/lib/cjs/utils/arrayMove.js +21 -0
  36. package/lib/es/collapse/collapse.css +6 -0
  37. package/lib/es/collapse/collapse.scss +8 -0
  38. package/lib/es/collapse/variables.scss +1 -0
  39. package/lib/es/datePicker/constants.d.ts +1 -0
  40. package/lib/es/datePicker/constants.js +1 -0
  41. package/lib/es/datePicker/datePicker.css +267 -27
  42. package/lib/es/datePicker/datePicker.scss +335 -17
  43. package/lib/es/datePicker/foundation.d.ts +2 -0
  44. package/lib/es/datePicker/monthsGridFoundation.d.ts +5 -1
  45. package/lib/es/datePicker/rtl.scss +6 -6
  46. package/lib/es/datePicker/variables.scss +58 -6
  47. package/lib/es/datePicker/yearAndMonthFoundation.d.ts +5 -0
  48. package/lib/es/select/foundation.d.ts +11 -0
  49. package/lib/es/select/foundation.js +187 -44
  50. package/lib/es/select/select.css +5 -5
  51. package/lib/es/select/select.scss +9 -6
  52. package/lib/es/tagInput/foundation.d.ts +11 -0
  53. package/lib/es/tagInput/foundation.js +46 -1
  54. package/lib/es/tagInput/tagInput.css +11 -0
  55. package/lib/es/tagInput/tagInput.scss +17 -0
  56. package/lib/es/tagInput/variables.scss +2 -0
  57. package/lib/es/tooltip/foundation.js +13 -5
  58. package/lib/es/transfer/foundation.d.ts +0 -1
  59. package/lib/es/transfer/foundation.js +3 -12
  60. package/lib/es/utils/arrayMove.d.ts +1 -0
  61. package/lib/es/utils/arrayMove.js +9 -0
  62. package/package.json +2 -2
  63. package/select/foundation.ts +149 -36
  64. package/select/select.scss +9 -6
  65. package/tagInput/foundation.ts +39 -0
  66. package/tagInput/tagInput.scss +17 -0
  67. package/tagInput/variables.scss +2 -0
  68. package/tooltip/foundation.ts +8 -5
  69. package/transfer/foundation.ts +2 -6
  70. package/utils/arrayMove.ts +5 -0
@@ -26,10 +26,6 @@ var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-st
26
26
 
27
27
  var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/values"));
28
28
 
29
- var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
30
-
31
- var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/splice"));
32
-
33
29
  var _omit2 = _interopRequireDefault(require("lodash/omit"));
34
30
 
35
31
  var _foundation = _interopRequireDefault(require("../base/foundation"));
@@ -38,6 +34,8 @@ var _constants = require("./constants");
38
34
 
39
35
  var _transferUtils = require("./transferUtils");
40
36
 
37
+ var _arrayMove = _interopRequireDefault(require("../utils/arrayMove"));
38
+
41
39
  // eslint-disable-next-line max-len
42
40
  class TransferFoundation extends _foundation.default {
43
41
  constructor(adapter) {
@@ -292,7 +290,7 @@ class TransferFoundation extends _foundation.default {
292
290
  const selectedItems = this._adapter.getSelected();
293
291
 
294
292
  let selectedArr = [...(0, _values.default)(selectedItems).call(selectedItems)];
295
- selectedArr = this._arrayMove(selectedArr, oldIndex, newIndex);
293
+ selectedArr = (0, _arrayMove.default)(selectedArr, oldIndex, newIndex);
296
294
  let newSelectedItems = new _map2.default();
297
295
  (0, _forEach.default)(selectedArr).call(selectedArr, option => {
298
296
  newSelectedItems = newSelectedItems.set(option.key, option);
@@ -303,12 +301,6 @@ class TransferFoundation extends _foundation.default {
303
301
  this._notifyChange(newSelectedItems);
304
302
  }
305
303
 
306
- _arrayMove(array, from, to) {
307
- const newArray = (0, _slice.default)(array).call(array);
308
- (0, _splice.default)(newArray).call(newArray, to < 0 ? newArray.length + to : to, 0, (0, _splice.default)(newArray).call(newArray, from, 1)[0]);
309
- return newArray;
310
- }
311
-
312
304
  }
313
305
 
314
306
  exports.default = TransferFoundation;
@@ -0,0 +1 @@
1
+ export default function arrayMove(array: Array<any>, from: number, to: number): any[];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+
5
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
6
+
7
+ _Object$defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+
11
+ exports.default = arrayMove;
12
+
13
+ var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
14
+
15
+ var _splice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/splice"));
16
+
17
+ function arrayMove(array, from, to) {
18
+ const newArray = (0, _slice.default)(array).call(array);
19
+ (0, _splice.default)(newArray).call(newArray, to < 0 ? newArray.length + to : to, 0, (0, _splice.default)(newArray).call(newArray, from, 1)[0]);
20
+ return newArray;
21
+ }
@@ -50,6 +50,12 @@
50
50
  .semi-collapse-header:active {
51
51
  background-color: var(--semi-color-fill-1);
52
52
  }
53
+ .semi-collapse-header-disabled {
54
+ color: var(--semi-color-disabled-text);
55
+ }
56
+ .semi-collapse-header-disabled:hover {
57
+ background-color: transparent;
58
+ }
53
59
  .semi-collapse-content {
54
60
  padding: 4px 16px 8px 16px;
55
61
  color: var(--semi-color-text-1);
@@ -61,6 +61,14 @@ $module: #{$prefix}-collapse;
61
61
  background-color: $color-collapse_header-bg-active;
62
62
  }
63
63
 
64
+ &-disabled {
65
+ color: $color-collapse_header-text-disabled;
66
+
67
+ &:hover {
68
+ background-color: transparent;
69
+ }
70
+ }
71
+
64
72
  }
65
73
 
66
74
  &-content {
@@ -1,5 +1,6 @@
1
1
  $color-collapse_item-border-default: var(--semi-color-border); // 分割线颜色
2
2
  $color-collapse_header-text-default: var(--semi-color-text-0); // 标题文字颜色
3
+ $color-collapse_header-text-disabled: var( --semi-color-disabled-text); // 标题文字颜色 禁用
3
4
  $color-collapse_header-icon-default: var(--semi-color-text-2); // 展开箭头图标颜色
4
5
  $color-collapse_header-bg-hover: var(--semi-color-fill-0); // 菜单项背景颜色 - 悬浮
5
6
  $color-collapse_header-bg-active: var(--semi-color-fill-1); // 菜单项背景颜色 - 按下
@@ -36,6 +36,7 @@ declare const strings: {
36
36
  readonly DEFAULT_SEPARATOR_RANGE: " ~ ";
37
37
  readonly SIZE_SET: readonly ["small", "default", "large"];
38
38
  readonly TYPE_SET: readonly ["date", "dateRange", "year", "month", "dateTime", "dateTimeRange"];
39
+ readonly PRESET_POSITION_SET: readonly ["left", "right", "top", "bottom"];
39
40
  readonly DENSITY_SET: readonly ["default", "compact"];
40
41
  readonly PANEL_TYPE_LEFT: "left";
41
42
  readonly PANEL_TYPE_RIGHT: "right";
@@ -46,6 +46,7 @@ const strings = _Object$assign({
46
46
  DEFAULT_SEPARATOR_RANGE: ' ~ ',
47
47
  SIZE_SET: ['small', 'default', 'large'],
48
48
  TYPE_SET: ['date', 'dateRange', 'year', 'month', 'dateTime', 'dateTimeRange'],
49
+ PRESET_POSITION_SET: ['left', 'right', 'top', 'bottom'],
49
50
  DENSITY_SET: ['default', 'compact'],
50
51
  PANEL_TYPE_LEFT: 'left',
51
52
  PANEL_TYPE_RIGHT: 'right',
@@ -32,11 +32,11 @@
32
32
  }
33
33
  .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=year],
34
34
  .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=year] {
35
- min-height: 312px;
35
+ min-height: 317px;
36
36
  }
37
37
  .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=time],
38
38
  .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=time] {
39
- min-height: 314px;
39
+ min-height: 317px;
40
40
  }
41
41
  .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-navigation {
42
42
  padding-top: 8px;
@@ -48,6 +48,9 @@
48
48
  .semi-datepicker-month-grid[x-insetinput=true][x-type=dateTime] .semi-datepicker-yam, .semi-datepicker-month-grid[x-insetinput=true][x-type=dateTimeRange] .semi-datepicker-yam {
49
49
  height: 100%;
50
50
  }
51
+ .semi-datepicker-month-grid[x-preset-position=left][x-insetinput=false] .semi-datepicker-month, .semi-datepicker-month-grid[x-preset-position=right][x-insetinput=false] .semi-datepicker-month {
52
+ height: 253px;
53
+ }
51
54
  .semi-datepicker-month-grid .semi-datepicker-yearmonth-header {
52
55
  background: var(--semi-color-bg-3);
53
56
  padding: 12px 16px;
@@ -95,7 +98,7 @@
95
98
  min-height: 216px;
96
99
  }
97
100
  .semi-datepicker-panel-yam {
98
- max-width: 284px;
101
+ max-width: 484px;
99
102
  }
100
103
  .semi-datepicker-panel-yam .semi-scrolllist {
101
104
  box-shadow: none;
@@ -355,23 +358,147 @@
355
358
  }
356
359
  .semi-datepicker-quick-control {
357
360
  box-sizing: border-box;
358
- border-top: 1px solid var(--semi-color-border);
359
- display: flex;
360
- align-items: center;
361
361
  background-color: transparent;
362
- padding: 16px;
363
- border-radius: 0 0 var(--semi-border-radius-medium) var(--semi-border-radius-medium);
364
- flex-wrap: wrap;
365
362
  }
366
- .semi-datepicker-quick-control-item {
367
- margin-right: 8px;
363
+ .semi-datepicker-quick-control-header {
364
+ padding: 18px 12px 0;
365
+ font-weight: 600;
366
+ }
367
+ .semi-datepicker-quick-control-left {
368
+ border-right: 1px solid var(--semi-color-border);
369
+ }
370
+ .semi-datepicker-quick-control-right {
371
+ border-left: 1px solid var(--semi-color-border);
372
+ }
373
+ .semi-datepicker-quick-control-top {
374
+ border-bottom: 1px solid var(--semi-color-border);
375
+ }
376
+ .semi-datepicker-quick-control-bottom {
377
+ border-top: 1px solid var(--semi-color-border);
378
+ }
379
+ .semi-datepicker-quick-control-left-content-wrapper, .semi-datepicker-quick-control-right-content-wrapper {
380
+ max-width: 200px;
381
+ margin-top: 14px;
382
+ overflow-y: auto;
383
+ }
384
+ .semi-datepicker-quick-control-top-content-wrapper, .semi-datepicker-quick-control-bottom-content-wrapper {
385
+ overflow-y: auto;
386
+ max-height: 100px;
387
+ }
388
+ .semi-datepicker-quick-control-left-content, .semi-datepicker-quick-control-right-content {
389
+ box-sizing: border-box;
390
+ display: grid;
391
+ align-content: flex-start;
392
+ grid-gap: 8px;
393
+ grid-template-columns: repeat(2, minmax(76.5px, 84px));
394
+ padding: 0 12px 12px;
395
+ }
396
+ .semi-datepicker-quick-control-left-content-item, .semi-datepicker-quick-control-right-content-item {
397
+ max-width: 84px;
398
+ }
399
+ .semi-datepicker-quick-control-left-content-item-ellipsis, .semi-datepicker-quick-control-right-content-item-ellipsis {
400
+ width: 68px;
401
+ color: var(--semi-color-primary);
402
+ }
403
+ .semi-datepicker-quick-control-top-content, .semi-datepicker-quick-control-bottom-content {
404
+ display: grid;
405
+ grid-gap: 8px;
406
+ grid-template-columns: repeat(3, minmax(71px, 76px));
407
+ align-content: flex-start;
408
+ padding: 8px 20px;
409
+ }
410
+ .semi-datepicker-quick-control-top-content-item, .semi-datepicker-quick-control-bottom-content-item {
411
+ max-width: 76px;
368
412
  }
369
- .semi-datepicker-quick-control-month, .semi-datepicker-quick-control-date, .semi-datepicker-quick-control-dateTime {
413
+ .semi-datepicker-quick-control-top-content-item-ellipsis, .semi-datepicker-quick-control-bottom-content-item-ellipsis {
414
+ width: 60px;
415
+ color: var(--semi-color-primary);
416
+ }
417
+ .semi-datepicker-quick-control-top-range-content, .semi-datepicker-quick-control-bottom-range-content {
418
+ box-sizing: border-box;
419
+ display: grid;
420
+ align-content: flex-start;
421
+ grid-template-columns: repeat(5, minmax(96.2px, 99.2px));
422
+ grid-gap: 8px;
423
+ padding: 8px 20px;
424
+ }
425
+ .semi-datepicker-quick-control-top-range-content-item, .semi-datepicker-quick-control-bottom-range-content-item {
426
+ max-width: 99.2px;
427
+ }
428
+ .semi-datepicker-quick-control-top-range-content-item-ellipsis, .semi-datepicker-quick-control-bottom-range-content-item-ellipsis {
429
+ width: 83.2px;
430
+ color: var(--semi-color-primary);
431
+ }
432
+ .semi-datepicker-quick-control-top-month-content, .semi-datepicker-quick-control-bottom-month-content {
433
+ box-sizing: border-box;
434
+ display: grid;
435
+ grid-template-columns: repeat(2, minmax(65.5px, 73px));
436
+ grid-gap: 8px;
437
+ align-content: flex-start;
438
+ padding: 8px 20px;
439
+ }
440
+ .semi-datepicker-quick-control-top-month-content-item, .semi-datepicker-quick-control-bottom-month-content-item {
441
+ max-width: 73px;
442
+ }
443
+ .semi-datepicker-quick-control-top-month-content-item-ellipsis, .semi-datepicker-quick-control-bottom-month-content-item-ellipsis {
444
+ max-width: 57px;
445
+ color: var(--semi-color-primary);
446
+ }
447
+ .semi-datepicker-quick-control-month {
370
448
  max-width: 284px;
371
449
  }
372
- .semi-datepicker-quick-control-dateRange, .semi-datepicker-quick-control-dateTimeRange {
450
+ .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
451
+ .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
452
+ max-height: 258px;
453
+ }
454
+ .semi-datepicker-quick-control-month .semi-datepicker-quick-control-right-content-wrapper,
455
+ .semi-datepicker-quick-control-month .semi-datepicker-quick-control-left-content-wrapper {
456
+ max-height: 214px;
457
+ }
458
+ .semi-datepicker-quick-control-date {
459
+ max-width: 284px;
460
+ }
461
+ .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
462
+ .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
463
+ max-height: 309px;
464
+ }
465
+ .semi-datepicker-quick-control-date .semi-datepicker-quick-control-right-content-wrapper,
466
+ .semi-datepicker-quick-control-date .semi-datepicker-quick-control-left-content-wrapper {
467
+ max-height: 273px;
468
+ }
469
+ .semi-datepicker-quick-control-dateTime {
470
+ max-width: 284px;
471
+ }
472
+ .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
473
+ .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
474
+ max-height: 309px;
475
+ }
476
+ .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-right-content-wrapper,
477
+ .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-left-content-wrapper {
478
+ max-height: 326px;
479
+ }
480
+ .semi-datepicker-quick-control-dateRange {
481
+ max-width: 568px;
482
+ }
483
+ .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
484
+ .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
485
+ max-height: 309px;
486
+ }
487
+ .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-right-content-wrapper,
488
+ .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-left-content-wrapper {
489
+ max-height: 273px;
490
+ }
491
+ .semi-datepicker-quick-control-dateTimeRange {
373
492
  max-width: 568px;
374
493
  }
494
+ .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
495
+ .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
496
+ max-height: 309px;
497
+ }
498
+ .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-right-content-wrapper,
499
+ .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-left-content-wrapper {
500
+ max-height: 326px;
501
+ }
375
502
  .semi-datepicker-topSlot {
376
503
  border-bottom: 1px solid var(--semi-color-border);
377
504
  }
@@ -582,11 +709,14 @@
582
709
  border-right: 1px solid var(--semi-color-border);
583
710
  }
584
711
  .semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yam-showing {
585
- min-height: 268px;
712
+ min-height: 288px;
586
713
  min-width: 216px;
587
714
  }
588
715
  .semi-datepicker-compact .semi-datepicker-month-grid[x-type=date] .semi-datepicker-yam-showing {
589
- min-height: 284px;
716
+ min-height: 256px;
717
+ }
718
+ .semi-datepicker-compact .semi-datepicker-month-grid[x-preset-position=left][x-insetinput=false] .semi-datepicker-month, .semi-datepicker-compact .semi-datepicker-month-grid[x-preset-position=right][x-insetinput=false] .semi-datepicker-month {
719
+ height: 220px;
590
720
  }
591
721
  .semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-header {
592
722
  box-sizing: border-box;
@@ -622,14 +752,14 @@
622
752
  }
623
753
  .semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=year],
624
754
  .semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=year] {
625
- min-height: 236px;
755
+ min-height: 256px;
626
756
  }
627
757
  .semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=time],
628
758
  .semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=time] {
629
- min-height: 236px;
759
+ min-height: 256px;
630
760
  }
631
761
  .semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-yam-showing {
632
- min-height: 236px;
762
+ min-height: 256px;
633
763
  }
634
764
  .semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-tpk {
635
765
  min-height: 100%;
@@ -738,15 +868,130 @@
738
868
  .semi-datepicker-compact .semi-datepicker-switch-text {
739
869
  padding-left: 0;
740
870
  }
741
- .semi-datepicker-compact .semi-datepicker-quick-control {
742
- padding: 12px;
871
+ .semi-datepicker-compact .semi-datepicker-quick-control-header {
872
+ padding: 16px 12px 0;
873
+ font-weight: 600;
874
+ }
875
+ .semi-datepicker-compact .semi-datepicker-quick-control-left-content-wrapper, .semi-datepicker-compact .semi-datepicker-quick-control-right-content-wrapper {
876
+ margin-top: 12px;
877
+ }
878
+ .semi-datepicker-compact .semi-datepicker-quick-control-left-content, .semi-datepicker-compact .semi-datepicker-quick-control-right-content {
879
+ box-sizing: border-box;
880
+ display: grid;
881
+ align-content: flex-start;
882
+ grid-gap: 8px;
883
+ grid-template-columns: repeat(2, minmax(76.5px, 84px));
884
+ padding: 0 12px 12px;
885
+ }
886
+ .semi-datepicker-compact .semi-datepicker-quick-control-left-content-item, .semi-datepicker-compact .semi-datepicker-quick-control-right-content-item {
887
+ max-width: 84px;
888
+ }
889
+ .semi-datepicker-compact .semi-datepicker-quick-control-left-content-item-ellipsis, .semi-datepicker-compact .semi-datepicker-quick-control-right-content-item-ellipsis {
890
+ width: 68px;
891
+ font-size: 12px;
892
+ color: var(--semi-color-primary);
893
+ }
894
+ .semi-datepicker-compact .semi-datepicker-quick-control-top-content, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-content {
895
+ box-sizing: border-box;
896
+ display: grid;
897
+ grid-gap: 8px;
898
+ grid-template-columns: repeat(3, minmax(55px, 60px));
899
+ align-content: flex-start;
900
+ padding: 8px 10px;
901
+ }
902
+ .semi-datepicker-compact .semi-datepicker-quick-control-top-content-item, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-content-item {
903
+ max-width: 60px;
904
+ }
905
+ .semi-datepicker-compact .semi-datepicker-quick-control-top-content-item-ellipsis, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-content-item-ellipsis {
906
+ width: 44px;
907
+ font-size: 12px;
908
+ color: var(--semi-color-primary);
909
+ }
910
+ .semi-datepicker-compact .semi-datepicker-quick-control-top-range-content, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content {
911
+ display: grid;
912
+ grid-template-columns: repeat(5, minmax(73px, 76px));
913
+ grid-gap: 8px;
914
+ align-content: flex-start;
915
+ padding: 8px 10px;
916
+ }
917
+ .semi-datepicker-compact .semi-datepicker-quick-control-top-range-content-item, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content-item {
918
+ max-width: 76px;
919
+ }
920
+ .semi-datepicker-compact .semi-datepicker-quick-control-top-range-content-item-ellipsis, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content-item-ellipsis {
921
+ width: 60px;
922
+ font-size: 12px;
923
+ color: var(--semi-color-primary);
743
924
  }
744
- .semi-datepicker-compact .semi-datepicker-quick-control-month, .semi-datepicker-compact .semi-datepicker-quick-control-date, .semi-datepicker-compact .semi-datepicker-quick-control-dateTime {
925
+ .semi-datepicker-compact .semi-datepicker-quick-control-top-month-content, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content {
926
+ display: grid;
927
+ grid-template-columns: repeat(2, minmax(75.5px, 83px));
928
+ grid-gap: 8px;
929
+ align-content: flex-start;
930
+ padding: 8px 10px;
931
+ }
932
+ .semi-datepicker-compact .semi-datepicker-quick-control-top-month-content-item, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content-item {
933
+ max-width: 83px;
934
+ }
935
+ .semi-datepicker-compact .semi-datepicker-quick-control-top-month-content-item-ellipsis, .semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content-item-ellipsis {
936
+ max-width: 67px;
937
+ font-size: 12px;
938
+ color: var(--semi-color-primary);
939
+ }
940
+ .semi-datepicker-compact .semi-datepicker-quick-control-month {
941
+ max-width: 216px;
942
+ }
943
+ .semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
944
+ .semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
945
+ max-height: 254px;
946
+ }
947
+ .semi-datepicker-compact .semi-datepicker-quick-control-month .semi-datepicker-quick-control-right-content-wrapper,
948
+ .semi-datepicker-compact .semi-datepicker-quick-control-month .semi-datepicker-quick-control-left-content-wrapper {
949
+ max-height: 218px;
950
+ }
951
+ .semi-datepicker-compact .semi-datepicker-quick-control-date {
952
+ max-width: 216px;
953
+ }
954
+ .semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
955
+ .semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
956
+ max-height: 248px;
957
+ }
958
+ .semi-datepicker-compact .semi-datepicker-quick-control-date .semi-datepicker-quick-control-right-content-wrapper,
959
+ .semi-datepicker-compact .semi-datepicker-quick-control-date .semi-datepicker-quick-control-left-content-wrapper {
960
+ max-height: 208px;
961
+ }
962
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTime {
745
963
  max-width: 216px;
746
964
  }
747
- .semi-datepicker-compact .semi-datepicker-quick-control-dateRange, .semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange {
965
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
966
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
967
+ max-height: 248px;
968
+ }
969
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-right-content-wrapper,
970
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-left-content-wrapper {
971
+ max-height: 240px;
972
+ }
973
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateRange {
974
+ max-width: 432px;
975
+ }
976
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
977
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
978
+ max-height: 248px;
979
+ }
980
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-right-content-wrapper,
981
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-left-content-wrapper {
982
+ max-height: 208px;
983
+ }
984
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange {
748
985
  max-width: 432px;
749
986
  }
987
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,
988
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper {
989
+ max-height: 248px;
990
+ }
991
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-right-content-wrapper,
992
+ .semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-left-content-wrapper {
993
+ max-height: 240px;
994
+ }
750
995
  .semi-datepicker-compact .semi-datepicker-footer {
751
996
  padding-top: 10px;
752
997
  padding-right: 8px;
@@ -846,11 +1091,6 @@
846
1091
  padding-left: 0;
847
1092
  padding-right: 8px;
848
1093
  }
849
- .semi-rtl .semi-datepicker-quick-control-item,
850
- .semi-portal-rtl .semi-datepicker-quick-control-item {
851
- margin-left: 0;
852
- margin-right: 8px;
853
- }
854
1094
  .semi-rtl .semi-datepicker-navigation .semi-icon-chevron_left,
855
1095
  .semi-rtl .semi-datepicker-navigation .semi-icon-chevron_right,
856
1096
  .semi-rtl .semi-datepicker-navigation .semi-icon-double_chevron_left,