@type-dom/ui 0.4.0 → 0.5.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 (154) hide show
  1. package/README.md +134 -134
  2. package/dist/package.json +2 -1
  3. package/dist/src/components/data/td-progress/td-progress.class.js +5 -5
  4. package/dist/src/components/data/td-statistic/td-statistic.class.d.ts +2 -2
  5. package/dist/src/components/data/td-statistic/td-statistic.class.d.ts.map +1 -1
  6. package/dist/src/components/feedback/td-message/method.d.ts +1 -1
  7. package/dist/src/components/feedback/td-message/method.d.ts.map +1 -1
  8. package/dist/src/components/feedback/td-message/method.js +24 -7
  9. package/dist/src/components/feedback/td-message/method.js.map +1 -1
  10. package/dist/src/components/feedback/td-tooltip/td-tooltip.const.d.ts.map +1 -1
  11. package/dist/src/components/form/td-date-picker/composables/use-shortcut.d.ts +1 -1
  12. package/dist/src/components/form/td-date-picker/composables/use-shortcut.d.ts.map +1 -1
  13. package/dist/src/components/form/td-date-picker/composables/use-shortcut.js +1 -1
  14. package/dist/src/components/form/td-date-picker/composables/use-shortcut.js.map +1 -1
  15. package/dist/src/components/form/td-date-picker/utils.d.ts +1 -1
  16. package/dist/src/components/form/td-date-picker/utils.d.ts.map +1 -1
  17. package/dist/src/components/form/td-date-picker/utils.js +1 -1
  18. package/dist/src/components/form/td-date-picker/utils.js.map +1 -1
  19. package/dist/src/components/form/td-time-picker/time-picker-com/panel-time-pick.class.js +1 -1
  20. package/dist/src/components/form/td-time-picker/time-picker-com/panel-time-pick.class.js.map +1 -1
  21. package/dist/src/components/form/td-time-picker/utils.d.ts +1 -1
  22. package/dist/src/components/form/td-time-picker/utils.d.ts.map +1 -1
  23. package/dist/src/components/form/td-time-picker/utils.js +1 -1
  24. package/dist/src/components/form/td-time-picker/utils.js.map +1 -1
  25. package/dist/src/hooks/use-deprecated/index.js +2 -2
  26. package/dist/src/hooks/use-id/index.js +4 -4
  27. package/dist/src/hooks/use-z-index/index.js +1 -1
  28. package/dist/src/theme-chalk/affix.scss +7 -7
  29. package/dist/src/theme-chalk/alert.scss +115 -115
  30. package/dist/src/theme-chalk/anchor-link.scss +41 -41
  31. package/dist/src/theme-chalk/anchor.scss +88 -88
  32. package/dist/src/theme-chalk/aside.scss +8 -8
  33. package/dist/src/theme-chalk/autocomplete.scss +89 -89
  34. package/dist/src/theme-chalk/avatar.scss +55 -55
  35. package/dist/src/theme-chalk/backtop.scss +29 -29
  36. package/dist/src/theme-chalk/badge.scss +58 -58
  37. package/dist/src/theme-chalk/base.scss +3 -3
  38. package/dist/src/theme-chalk/breadcrumb.scss +62 -62
  39. package/dist/src/theme-chalk/button-group.scss +80 -80
  40. package/dist/src/theme-chalk/button.scss +304 -304
  41. package/dist/src/theme-chalk/calendar.scss +80 -80
  42. package/dist/src/theme-chalk/card.scss +45 -45
  43. package/dist/src/theme-chalk/carousel-item.scss +58 -58
  44. package/dist/src/theme-chalk/carousel.scss +188 -188
  45. package/dist/src/theme-chalk/cascader-panel.scss +138 -138
  46. package/dist/src/theme-chalk/cascader.scss +247 -247
  47. package/dist/src/theme-chalk/check-tag.scss +60 -60
  48. package/dist/src/theme-chalk/checkbox-button.scss +140 -140
  49. package/dist/src/theme-chalk/checkbox-group.scss +7 -7
  50. package/dist/src/theme-chalk/checkbox.scss +298 -298
  51. package/dist/src/theme-chalk/col.scss +48 -48
  52. package/dist/src/theme-chalk/collapse.scss +70 -70
  53. package/dist/src/theme-chalk/color/index.scss +20 -20
  54. package/dist/src/theme-chalk/color-picker.scss +393 -393
  55. package/dist/src/theme-chalk/common/popup.scss +47 -47
  56. package/dist/src/theme-chalk/common/transition.scss +122 -122
  57. package/dist/src/theme-chalk/common/var.scss +1655 -1655
  58. package/dist/src/theme-chalk/container.scss +14 -14
  59. package/dist/src/theme-chalk/dark/css-vars.scss +39 -39
  60. package/dist/src/theme-chalk/dark/var.scss +222 -222
  61. package/dist/src/theme-chalk/date-picker/date-picker.scss +110 -110
  62. package/dist/src/theme-chalk/date-picker/date-range-picker.scss +113 -113
  63. package/dist/src/theme-chalk/date-picker/date-table.scss +158 -158
  64. package/dist/src/theme-chalk/date-picker/month-table.scss +112 -112
  65. package/dist/src/theme-chalk/date-picker/picker-panel.scss +131 -131
  66. package/dist/src/theme-chalk/date-picker/picker.scss +212 -212
  67. package/dist/src/theme-chalk/date-picker/time-picker.scss +90 -90
  68. package/dist/src/theme-chalk/date-picker/time-range-picker.scss +33 -33
  69. package/dist/src/theme-chalk/date-picker/time-spinner.scss +111 -111
  70. package/dist/src/theme-chalk/date-picker/year-table.scss +108 -108
  71. package/dist/src/theme-chalk/date-picker.scss +9 -9
  72. package/dist/src/theme-chalk/descriptions-item.scss +73 -73
  73. package/dist/src/theme-chalk/descriptions.scss +152 -152
  74. package/dist/src/theme-chalk/dialog.scss +192 -192
  75. package/dist/src/theme-chalk/display.scss +12 -12
  76. package/dist/src/theme-chalk/divider.scss +48 -48
  77. package/dist/src/theme-chalk/drawer.scss +155 -155
  78. package/dist/src/theme-chalk/dropdown.scss +208 -208
  79. package/dist/src/theme-chalk/empty.scss +49 -49
  80. package/dist/src/theme-chalk/footer.scss +12 -12
  81. package/dist/src/theme-chalk/form.scss +244 -244
  82. package/dist/src/theme-chalk/header.scss +12 -12
  83. package/dist/src/theme-chalk/icon.scss +45 -45
  84. package/dist/src/theme-chalk/image-viewer.scss +155 -155
  85. package/dist/src/theme-chalk/image.scss +49 -49
  86. package/dist/src/theme-chalk/index.scss +111 -111
  87. package/dist/src/theme-chalk/input-number.scss +186 -186
  88. package/dist/src/theme-chalk/input-tag.scss +220 -220
  89. package/dist/src/theme-chalk/input.scss +474 -474
  90. package/dist/src/theme-chalk/link.scss +90 -90
  91. package/dist/src/theme-chalk/loading.scss +104 -104
  92. package/dist/src/theme-chalk/main.scss +14 -14
  93. package/dist/src/theme-chalk/mention.scss +92 -92
  94. package/dist/src/theme-chalk/menu.scss +339 -339
  95. package/dist/src/theme-chalk/message-box.scss +213 -213
  96. package/dist/src/theme-chalk/message.scss +98 -98
  97. package/dist/src/theme-chalk/mixins/_button.scss +165 -165
  98. package/dist/src/theme-chalk/mixins/_col.scss +33 -33
  99. package/dist/src/theme-chalk/mixins/_var.scss +67 -67
  100. package/dist/src/theme-chalk/mixins/config.scss +5 -5
  101. package/dist/src/theme-chalk/mixins/function.scss +88 -88
  102. package/dist/src/theme-chalk/mixins/mixins.scss +240 -240
  103. package/dist/src/theme-chalk/mixins/utils.scss +39 -39
  104. package/dist/src/theme-chalk/notification.scss +107 -107
  105. package/dist/src/theme-chalk/option-group.scss +33 -33
  106. package/dist/src/theme-chalk/option.scss +71 -71
  107. package/dist/src/theme-chalk/overlay.scss +17 -17
  108. package/dist/src/theme-chalk/page-header.scss +60 -60
  109. package/dist/src/theme-chalk/pagination.scss +238 -238
  110. package/dist/src/theme-chalk/popconfirm.scss +16 -16
  111. package/dist/src/theme-chalk/popover.scss +61 -61
  112. package/dist/src/theme-chalk/popper.scss +106 -106
  113. package/dist/src/theme-chalk/progress.scss +179 -179
  114. package/dist/src/theme-chalk/radio-button.scss +169 -169
  115. package/dist/src/theme-chalk/radio-group.scss +9 -9
  116. package/dist/src/theme-chalk/radio.scss +215 -215
  117. package/dist/src/theme-chalk/rate.scss +108 -108
  118. package/dist/src/theme-chalk/reset.scss +98 -98
  119. package/dist/src/theme-chalk/result.scss +57 -57
  120. package/dist/src/theme-chalk/row.scss +35 -35
  121. package/dist/src/theme-chalk/scrollbar.scss +97 -97
  122. package/dist/src/theme-chalk/segmented.scss +183 -183
  123. package/dist/src/theme-chalk/select-dropdown-v2.scss +1 -1
  124. package/dist/src/theme-chalk/select-dropdown.scss +57 -57
  125. package/dist/src/theme-chalk/select-v2.scss +4 -4
  126. package/dist/src/theme-chalk/select.scss +264 -264
  127. package/dist/src/theme-chalk/skeleton-item.scss +83 -83
  128. package/dist/src/theme-chalk/skeleton.scss +44 -44
  129. package/dist/src/theme-chalk/slider.scss +212 -212
  130. package/dist/src/theme-chalk/space.scss +20 -20
  131. package/dist/src/theme-chalk/spinner.scss +43 -43
  132. package/dist/src/theme-chalk/statistic.scss +35 -35
  133. package/dist/src/theme-chalk/step.scss +316 -316
  134. package/dist/src/theme-chalk/steps.scss +21 -21
  135. package/dist/src/theme-chalk/switch.scss +300 -300
  136. package/dist/src/theme-chalk/table-column.scss +98 -98
  137. package/dist/src/theme-chalk/table-v2.scss +236 -236
  138. package/dist/src/theme-chalk/table.scss +694 -694
  139. package/dist/src/theme-chalk/tabs.scss +660 -660
  140. package/dist/src/theme-chalk/tag.scss +181 -181
  141. package/dist/src/theme-chalk/text.scss +51 -51
  142. package/dist/src/theme-chalk/time-picker.scss +5 -5
  143. package/dist/src/theme-chalk/time-select.scss +37 -37
  144. package/dist/src/theme-chalk/timeline-item.scss +84 -84
  145. package/dist/src/theme-chalk/timeline.scss +46 -46
  146. package/dist/src/theme-chalk/tooltip-v2.scss +95 -95
  147. package/dist/src/theme-chalk/tour.scss +187 -187
  148. package/dist/src/theme-chalk/transfer.scss +203 -203
  149. package/dist/src/theme-chalk/tree-select.scss +41 -41
  150. package/dist/src/theme-chalk/tree.scss +134 -134
  151. package/dist/src/theme-chalk/upload.scss +654 -654
  152. package/dist/src/theme-chalk/var.scss +87 -87
  153. package/dist/src/theme-chalk/virtual-list.scss +40 -40
  154. package/package.json +43 -42
@@ -1,90 +1,90 @@
1
- @use '../mixins/mixins' as *;
2
- @use '../common/var' as *;
3
-
4
- @include b(time-panel) {
5
- border-radius: 2px;
6
- position: relative;
7
- width: 180px;
8
- left: 0;
9
- z-index: getCssVar('index-top');
10
- user-select: none;
11
- box-sizing: content-box;
12
-
13
- @include e(content) {
14
- font-size: 0;
15
- position: relative;
16
- overflow: hidden;
17
-
18
- &::after,
19
- &::before {
20
- content: '';
21
- top: 50%;
22
- position: absolute;
23
- margin-top: -16px;
24
- height: 32px;
25
- z-index: -1;
26
- left: 0;
27
- right: 0;
28
- box-sizing: border-box;
29
- padding-top: 6px;
30
- text-align: left;
31
- }
32
-
33
- &::after {
34
- left: 50%;
35
- margin-left: 12%;
36
- margin-right: 12%;
37
- }
38
-
39
- &::before {
40
- padding-left: 50%;
41
- margin-right: 12%;
42
- margin-left: 12%;
43
- border-top: 1px solid getCssVar('border-color-light');
44
- border-bottom: 1px solid getCssVar('border-color-light');
45
- }
46
-
47
- &.has-seconds {
48
- &::after {
49
- left: calc(100% / 3 * 2);
50
- }
51
-
52
- &::before {
53
- padding-left: calc(100% / 3);
54
- }
55
- }
56
- }
57
-
58
- @include e(footer) {
59
- border-top: 1px solid
60
- var(
61
- #{getCssVarName('timepicker-inner-border-color')},
62
- #{getCssVar('border-color-light')}
63
- );
64
- padding: 4px;
65
- height: 36px;
66
- line-height: 25px;
67
- text-align: right;
68
- box-sizing: border-box;
69
- }
70
-
71
- @include e(btn) {
72
- border: none;
73
- line-height: 28px;
74
- padding: 0 5px;
75
- margin: 0 5px;
76
- cursor: pointer;
77
- background-color: transparent;
78
- outline: none;
79
- font-size: 12px;
80
- color: getCssVar('text-color', 'primary');
81
-
82
- &.confirm {
83
- font-weight: 800;
84
- color: var(
85
- #{getCssVarName('timepicker-active-color')},
86
- #{getCssVar('color-primary')}
87
- );
88
- }
89
- }
90
- }
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ @include b(time-panel) {
5
+ border-radius: 2px;
6
+ position: relative;
7
+ width: 180px;
8
+ left: 0;
9
+ z-index: getCssVar('index-top');
10
+ user-select: none;
11
+ box-sizing: content-box;
12
+
13
+ @include e(content) {
14
+ font-size: 0;
15
+ position: relative;
16
+ overflow: hidden;
17
+
18
+ &::after,
19
+ &::before {
20
+ content: '';
21
+ top: 50%;
22
+ position: absolute;
23
+ margin-top: -16px;
24
+ height: 32px;
25
+ z-index: -1;
26
+ left: 0;
27
+ right: 0;
28
+ box-sizing: border-box;
29
+ padding-top: 6px;
30
+ text-align: left;
31
+ }
32
+
33
+ &::after {
34
+ left: 50%;
35
+ margin-left: 12%;
36
+ margin-right: 12%;
37
+ }
38
+
39
+ &::before {
40
+ padding-left: 50%;
41
+ margin-right: 12%;
42
+ margin-left: 12%;
43
+ border-top: 1px solid getCssVar('border-color-light');
44
+ border-bottom: 1px solid getCssVar('border-color-light');
45
+ }
46
+
47
+ &.has-seconds {
48
+ &::after {
49
+ left: calc(100% / 3 * 2);
50
+ }
51
+
52
+ &::before {
53
+ padding-left: calc(100% / 3);
54
+ }
55
+ }
56
+ }
57
+
58
+ @include e(footer) {
59
+ border-top: 1px solid
60
+ var(
61
+ #{getCssVarName('timepicker-inner-border-color')},
62
+ #{getCssVar('border-color-light')}
63
+ );
64
+ padding: 4px;
65
+ height: 36px;
66
+ line-height: 25px;
67
+ text-align: right;
68
+ box-sizing: border-box;
69
+ }
70
+
71
+ @include e(btn) {
72
+ border: none;
73
+ line-height: 28px;
74
+ padding: 0 5px;
75
+ margin: 0 5px;
76
+ cursor: pointer;
77
+ background-color: transparent;
78
+ outline: none;
79
+ font-size: 12px;
80
+ color: getCssVar('text-color', 'primary');
81
+
82
+ &.confirm {
83
+ font-weight: 800;
84
+ color: var(
85
+ #{getCssVarName('timepicker-active-color')},
86
+ #{getCssVar('color-primary')}
87
+ );
88
+ }
89
+ }
90
+ }
@@ -1,33 +1,33 @@
1
- @use '../mixins/mixins' as *;
2
- @use '../common/var' as *;
3
-
4
- @include b(time-range-picker) {
5
- width: 354px;
6
- overflow: visible;
7
-
8
- @include e(content) {
9
- position: relative;
10
- text-align: center;
11
- padding: 10px;
12
- z-index: 1;
13
- }
14
-
15
- @include e(cell) {
16
- box-sizing: border-box;
17
- margin: 0;
18
- padding: 4px 7px 7px;
19
- width: 50%;
20
- display: inline-block;
21
- }
22
-
23
- @include e(header) {
24
- margin-bottom: 5px;
25
- text-align: center;
26
- font-size: 14px;
27
- }
28
-
29
- @include e(body) {
30
- border-radius: 2px;
31
- border: 1px solid getCssVar('datepicker-border-color');
32
- }
33
- }
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ @include b(time-range-picker) {
5
+ width: 354px;
6
+ overflow: visible;
7
+
8
+ @include e(content) {
9
+ position: relative;
10
+ text-align: center;
11
+ padding: 10px;
12
+ z-index: 1;
13
+ }
14
+
15
+ @include e(cell) {
16
+ box-sizing: border-box;
17
+ margin: 0;
18
+ padding: 4px 7px 7px;
19
+ width: 50%;
20
+ display: inline-block;
21
+ }
22
+
23
+ @include e(header) {
24
+ margin-bottom: 5px;
25
+ text-align: center;
26
+ font-size: 14px;
27
+ }
28
+
29
+ @include e(body) {
30
+ border-radius: 2px;
31
+ border: 1px solid getCssVar('datepicker-border-color');
32
+ }
33
+ }
@@ -1,111 +1,111 @@
1
- @use '../mixins/mixins' as *;
2
- @use '../common/var' as *;
3
-
4
- @include b(time-spinner) {
5
- &.has-seconds {
6
- .#{$namespace}-time-spinner__wrapper {
7
- width: 33.3%;
8
- }
9
- }
10
-
11
- @include e(wrapper) {
12
- max-height: 192px;
13
- overflow: auto;
14
- display: inline-block;
15
- width: 50%;
16
- vertical-align: top;
17
- position: relative;
18
-
19
- &.#{$namespace}-scrollbar__wrap:not(.#{$namespace}-scrollbar__wrap--hidden-default) {
20
- padding-bottom: 15px;
21
- }
22
-
23
- @include when(arrow) {
24
- box-sizing: border-box;
25
- text-align: center;
26
- overflow: hidden;
27
-
28
- .#{$namespace}-time-spinner__list {
29
- transform: translateY(-32px);
30
- }
31
-
32
- .#{$namespace}-time-spinner__item:hover:not(.is-disabled):not(.is-active) {
33
- background: getCssVar('fill-color', 'light');
34
- cursor: default;
35
- }
36
- }
37
- }
38
-
39
- @include e(arrow) {
40
- font-size: 12px;
41
- color: getCssVar('text-color', 'secondary');
42
- position: absolute;
43
- left: 0;
44
- width: 100%;
45
- z-index: getCssVar('index-normal');
46
- text-align: center;
47
- height: 30px;
48
- line-height: 30px;
49
- cursor: pointer;
50
-
51
- &:hover {
52
- color: getCssVar('color-primary');
53
- }
54
-
55
- &.arrow-up {
56
- top: 10px;
57
- }
58
-
59
- &.arrow-down {
60
- bottom: 10px;
61
- }
62
- }
63
-
64
- @include e(input) {
65
- &.#{$namespace}-input {
66
- width: 70%;
67
-
68
- .#{$namespace}-input__inner {
69
- padding: 0;
70
- text-align: center;
71
- }
72
- }
73
- }
74
-
75
- @include e(list) {
76
- padding: 0;
77
- margin: 0;
78
- list-style: none;
79
- text-align: center;
80
-
81
- &::after,
82
- &::before {
83
- content: '';
84
- display: block;
85
- width: 100%;
86
- height: 80px;
87
- }
88
- }
89
-
90
- @include e(item) {
91
- height: 32px;
92
- line-height: 32px;
93
- font-size: 12px;
94
- color: getCssVar('text-color', 'regular');
95
-
96
- &:hover:not(.is-disabled):not(.is-active) {
97
- background: getCssVar('fill-color', 'light');
98
- cursor: pointer;
99
- }
100
-
101
- &.is-active:not(.is-disabled) {
102
- color: getCssVar('text-color', 'primary');
103
- font-weight: bold;
104
- }
105
-
106
- &.is-disabled {
107
- color: getCssVar('text-color', 'placeholder');
108
- cursor: not-allowed;
109
- }
110
- }
111
- }
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ @include b(time-spinner) {
5
+ &.has-seconds {
6
+ .#{$namespace}-time-spinner__wrapper {
7
+ width: 33.3%;
8
+ }
9
+ }
10
+
11
+ @include e(wrapper) {
12
+ max-height: 192px;
13
+ overflow: auto;
14
+ display: inline-block;
15
+ width: 50%;
16
+ vertical-align: top;
17
+ position: relative;
18
+
19
+ &.#{$namespace}-scrollbar__wrap:not(.#{$namespace}-scrollbar__wrap--hidden-default) {
20
+ padding-bottom: 15px;
21
+ }
22
+
23
+ @include when(arrow) {
24
+ box-sizing: border-box;
25
+ text-align: center;
26
+ overflow: hidden;
27
+
28
+ .#{$namespace}-time-spinner__list {
29
+ transform: translateY(-32px);
30
+ }
31
+
32
+ .#{$namespace}-time-spinner__item:hover:not(.is-disabled):not(.is-active) {
33
+ background: getCssVar('fill-color', 'light');
34
+ cursor: default;
35
+ }
36
+ }
37
+ }
38
+
39
+ @include e(arrow) {
40
+ font-size: 12px;
41
+ color: getCssVar('text-color', 'secondary');
42
+ position: absolute;
43
+ left: 0;
44
+ width: 100%;
45
+ z-index: getCssVar('index-normal');
46
+ text-align: center;
47
+ height: 30px;
48
+ line-height: 30px;
49
+ cursor: pointer;
50
+
51
+ &:hover {
52
+ color: getCssVar('color-primary');
53
+ }
54
+
55
+ &.arrow-up {
56
+ top: 10px;
57
+ }
58
+
59
+ &.arrow-down {
60
+ bottom: 10px;
61
+ }
62
+ }
63
+
64
+ @include e(input) {
65
+ &.#{$namespace}-input {
66
+ width: 70%;
67
+
68
+ .#{$namespace}-input__inner {
69
+ padding: 0;
70
+ text-align: center;
71
+ }
72
+ }
73
+ }
74
+
75
+ @include e(list) {
76
+ padding: 0;
77
+ margin: 0;
78
+ list-style: none;
79
+ text-align: center;
80
+
81
+ &::after,
82
+ &::before {
83
+ content: '';
84
+ display: block;
85
+ width: 100%;
86
+ height: 80px;
87
+ }
88
+ }
89
+
90
+ @include e(item) {
91
+ height: 32px;
92
+ line-height: 32px;
93
+ font-size: 12px;
94
+ color: getCssVar('text-color', 'regular');
95
+
96
+ &:hover:not(.is-disabled):not(.is-active) {
97
+ background: getCssVar('fill-color', 'light');
98
+ cursor: pointer;
99
+ }
100
+
101
+ &.is-active:not(.is-disabled) {
102
+ color: getCssVar('text-color', 'primary');
103
+ font-weight: bold;
104
+ }
105
+
106
+ &.is-disabled {
107
+ color: getCssVar('text-color', 'placeholder');
108
+ cursor: not-allowed;
109
+ }
110
+ }
111
+ }
@@ -1,108 +1,108 @@
1
- @use '../mixins/mixins' as *;
2
- @use '../common/var' as *;
3
-
4
- @include b(year-table) {
5
- font-size: 12px;
6
- margin: -1px;
7
- border-collapse: collapse;
8
-
9
- .#{$namespace}-icon {
10
- color: getCssVar('datepicker', 'icon-color');
11
- }
12
-
13
- td {
14
- width: 68px;
15
- text-align: center;
16
- padding: 8px 0px;
17
- cursor: pointer;
18
- position: relative;
19
-
20
- @include b(date-table-cell) {
21
- height: 48px;
22
- padding: 6px 0;
23
- box-sizing: border-box;
24
- }
25
-
26
- &.today {
27
- .#{$namespace}-date-table-cell__text {
28
- color: getCssVar('color', 'primary');
29
- font-weight: bold;
30
- }
31
-
32
- &.start-date .#{$namespace}-date-table-cell__text,
33
- &.end-date .#{$namespace}-date-table-cell__text {
34
- color: $color-white;
35
- }
36
- }
37
-
38
- &.disabled .#{$namespace}-date-table-cell__text {
39
- background-color: getCssVar('fill-color', 'light');
40
- cursor: not-allowed;
41
- color: getCssVar('text-color', 'placeholder');
42
-
43
- &:hover {
44
- color: getCssVar('text-color', 'placeholder');
45
- }
46
- }
47
-
48
- @include b(date-table-cell__text) {
49
- width: 60px;
50
- height: 36px;
51
- display: block;
52
- line-height: 36px;
53
- color: getCssVar('datepicker-text-color');
54
- border-radius: 18px;
55
- margin: 0 auto;
56
- position: absolute;
57
- left: 50%;
58
- transform: translateX(-50%);
59
-
60
- &:hover {
61
- color: getCssVar('datepicker-hover-text-color');
62
- }
63
- }
64
-
65
- &.in-range .#{$namespace}-date-table-cell {
66
- background-color: getCssVar('datepicker-inrange-bg-color');
67
-
68
- &:hover {
69
- background-color: getCssVar('datepicker-inrange-hover-bg-color');
70
- }
71
- }
72
-
73
- &.start-date .#{$namespace}-date-table-cell,
74
- &.end-date .#{$namespace}-date-table-cell {
75
- color: $color-white;
76
- }
77
-
78
- &.start-date .#{$namespace}-date-table-cell__text,
79
- &.end-date .#{$namespace}-date-table-cell__text {
80
- color: $color-white;
81
- background-color: getCssVar('datepicker-active-color');
82
- }
83
-
84
- &.start-date .#{$namespace}-date-table-cell {
85
- border-top-left-radius: 24px;
86
- border-bottom-left-radius: 24px;
87
- }
88
-
89
- &.end-date .#{$namespace}-date-table-cell {
90
- border-top-right-radius: 24px;
91
- border-bottom-right-radius: 24px;
92
- }
93
-
94
- &.current:not(.disabled) .#{$namespace}-date-table-cell__text {
95
- color: $color-white;
96
- background-color: getCssVar('datepicker-active-color');
97
- }
98
-
99
- &:focus-visible {
100
- outline: none;
101
-
102
- .#{$namespace}-date-table-cell__text {
103
- outline: 2px solid getCssVar('datepicker-active-color');
104
- outline-offset: 1px;
105
- }
106
- }
107
- }
108
- }
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ @include b(year-table) {
5
+ font-size: 12px;
6
+ margin: -1px;
7
+ border-collapse: collapse;
8
+
9
+ .#{$namespace}-icon {
10
+ color: getCssVar('datepicker', 'icon-color');
11
+ }
12
+
13
+ td {
14
+ width: 68px;
15
+ text-align: center;
16
+ padding: 8px 0px;
17
+ cursor: pointer;
18
+ position: relative;
19
+
20
+ @include b(date-table-cell) {
21
+ height: 48px;
22
+ padding: 6px 0;
23
+ box-sizing: border-box;
24
+ }
25
+
26
+ &.today {
27
+ .#{$namespace}-date-table-cell__text {
28
+ color: getCssVar('color', 'primary');
29
+ font-weight: bold;
30
+ }
31
+
32
+ &.start-date .#{$namespace}-date-table-cell__text,
33
+ &.end-date .#{$namespace}-date-table-cell__text {
34
+ color: $color-white;
35
+ }
36
+ }
37
+
38
+ &.disabled .#{$namespace}-date-table-cell__text {
39
+ background-color: getCssVar('fill-color', 'light');
40
+ cursor: not-allowed;
41
+ color: getCssVar('text-color', 'placeholder');
42
+
43
+ &:hover {
44
+ color: getCssVar('text-color', 'placeholder');
45
+ }
46
+ }
47
+
48
+ @include b(date-table-cell__text) {
49
+ width: 60px;
50
+ height: 36px;
51
+ display: block;
52
+ line-height: 36px;
53
+ color: getCssVar('datepicker-text-color');
54
+ border-radius: 18px;
55
+ margin: 0 auto;
56
+ position: absolute;
57
+ left: 50%;
58
+ transform: translateX(-50%);
59
+
60
+ &:hover {
61
+ color: getCssVar('datepicker-hover-text-color');
62
+ }
63
+ }
64
+
65
+ &.in-range .#{$namespace}-date-table-cell {
66
+ background-color: getCssVar('datepicker-inrange-bg-color');
67
+
68
+ &:hover {
69
+ background-color: getCssVar('datepicker-inrange-hover-bg-color');
70
+ }
71
+ }
72
+
73
+ &.start-date .#{$namespace}-date-table-cell,
74
+ &.end-date .#{$namespace}-date-table-cell {
75
+ color: $color-white;
76
+ }
77
+
78
+ &.start-date .#{$namespace}-date-table-cell__text,
79
+ &.end-date .#{$namespace}-date-table-cell__text {
80
+ color: $color-white;
81
+ background-color: getCssVar('datepicker-active-color');
82
+ }
83
+
84
+ &.start-date .#{$namespace}-date-table-cell {
85
+ border-top-left-radius: 24px;
86
+ border-bottom-left-radius: 24px;
87
+ }
88
+
89
+ &.end-date .#{$namespace}-date-table-cell {
90
+ border-top-right-radius: 24px;
91
+ border-bottom-right-radius: 24px;
92
+ }
93
+
94
+ &.current:not(.disabled) .#{$namespace}-date-table-cell__text {
95
+ color: $color-white;
96
+ background-color: getCssVar('datepicker-active-color');
97
+ }
98
+
99
+ &:focus-visible {
100
+ outline: none;
101
+
102
+ .#{$namespace}-date-table-cell__text {
103
+ outline: 2px solid getCssVar('datepicker-active-color');
104
+ outline-offset: 1px;
105
+ }
106
+ }
107
+ }
108
+ }