@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,39 +1,39 @@
1
- @mixin utils-clearfix {
2
- $selector: &;
3
-
4
- @at-root {
5
- #{$selector}::before,
6
- #{$selector}::after {
7
- display: table;
8
- content: '';
9
- }
10
- #{$selector}::after {
11
- clear: both;
12
- }
13
- }
14
- }
15
-
16
- @mixin utils-vertical-center {
17
- $selector: &;
18
-
19
- @at-root {
20
- #{$selector}::after {
21
- display: inline-block;
22
- content: '';
23
- height: 100%;
24
- vertical-align: middle;
25
- }
26
- }
27
- }
28
-
29
- @mixin utils-ellipsis {
30
- overflow: hidden;
31
- text-overflow: ellipsis;
32
- white-space: nowrap;
33
- }
34
-
35
- @mixin utils-inline-flex-center {
36
- display: inline-flex;
37
- justify-content: center;
38
- align-items: center;
39
- }
1
+ @mixin utils-clearfix {
2
+ $selector: &;
3
+
4
+ @at-root {
5
+ #{$selector}::before,
6
+ #{$selector}::after {
7
+ display: table;
8
+ content: '';
9
+ }
10
+ #{$selector}::after {
11
+ clear: both;
12
+ }
13
+ }
14
+ }
15
+
16
+ @mixin utils-vertical-center {
17
+ $selector: &;
18
+
19
+ @at-root {
20
+ #{$selector}::after {
21
+ display: inline-block;
22
+ content: '';
23
+ height: 100%;
24
+ vertical-align: middle;
25
+ }
26
+ }
27
+ }
28
+
29
+ @mixin utils-ellipsis {
30
+ overflow: hidden;
31
+ text-overflow: ellipsis;
32
+ white-space: nowrap;
33
+ }
34
+
35
+ @mixin utils-inline-flex-center {
36
+ display: inline-flex;
37
+ justify-content: center;
38
+ align-items: center;
39
+ }
@@ -1,107 +1,107 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'mixins/var' as *;
3
- @use 'common/var' as *;
4
-
5
- @include b(notification) {
6
- @include set-component-css-var('notification', $notification);
7
- }
8
-
9
- @include b(notification) {
10
- display: flex;
11
- width: getCssVar('notification-width');
12
- padding: getCssVar('notification-padding');
13
- border-radius: getCssVar('notification-radius');
14
- box-sizing: border-box;
15
- border: 1px solid getCssVar('notification-border-color');
16
- position: fixed;
17
- background-color: getCssVar('bg-color', 'overlay');
18
- box-shadow: getCssVar('notification-shadow');
19
- transition: opacity getCssVar('transition-duration'),
20
- transform getCssVar('transition-duration'),
21
- left getCssVar('transition-duration'),
22
- right getCssVar('transition-duration'), top 0.4s,
23
- bottom getCssVar('transition-duration');
24
- overflow-wrap: break-word;
25
- overflow: hidden;
26
- z-index: 9999;
27
-
28
- &.right {
29
- right: 16px;
30
- }
31
-
32
- &.left {
33
- left: 16px;
34
- }
35
-
36
- @include e(group) {
37
- flex: 1;
38
- min-width: 0;
39
- margin-left: getCssVar('notification-group-margin-left');
40
- margin-right: getCssVar('notification-group-margin-right');
41
- }
42
-
43
- @include e(title) {
44
- font-weight: bold;
45
- font-size: getCssVar('notification-title-font-size');
46
- line-height: getCssVar('notification-icon-size');
47
- color: getCssVar('notification-title-color');
48
- margin: 0;
49
- }
50
-
51
- @include e(content) {
52
- font-size: getCssVar('notification-content-font-size');
53
- line-height: 24px;
54
- margin: 6px 0 0;
55
- color: getCssVar('notification-content-color');
56
-
57
- p {
58
- margin: 0;
59
- }
60
- }
61
-
62
- & .#{$namespace}-notification__icon {
63
- flex-shrink: 0;
64
- height: getCssVar('notification-icon-size');
65
- width: getCssVar('notification-icon-size');
66
- font-size: getCssVar('notification-icon-size');
67
- }
68
-
69
- & .#{$namespace}-notification__closeBtn {
70
- position: absolute;
71
- top: 18px;
72
- right: 15px;
73
- cursor: pointer;
74
- color: getCssVar('notification-close-color');
75
- font-size: getCssVar('notification-close-font-size');
76
-
77
- &:hover {
78
- color: getCssVar('notification-close-hover-color');
79
- }
80
- }
81
-
82
- @each $type in (success, info, warning, error) {
83
- & .#{$namespace}-notification--#{$type} {
84
- @include css-var-from-global(
85
- ('notification', 'icon-color'),
86
- ('color', $type)
87
- );
88
- color: getCssVar('notification-icon-color');
89
- }
90
- }
91
- }
92
-
93
- .#{$namespace}-notification-fade-enter-from {
94
- &.right {
95
- right: 0;
96
- transform: translateX(100%);
97
- }
98
-
99
- &.left {
100
- left: 0;
101
- transform: translateX(-100%);
102
- }
103
- }
104
-
105
- .#{$namespace}-notification-fade-leave-to {
106
- opacity: 0;
107
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(notification) {
6
+ @include set-component-css-var('notification', $notification);
7
+ }
8
+
9
+ @include b(notification) {
10
+ display: flex;
11
+ width: getCssVar('notification-width');
12
+ padding: getCssVar('notification-padding');
13
+ border-radius: getCssVar('notification-radius');
14
+ box-sizing: border-box;
15
+ border: 1px solid getCssVar('notification-border-color');
16
+ position: fixed;
17
+ background-color: getCssVar('bg-color', 'overlay');
18
+ box-shadow: getCssVar('notification-shadow');
19
+ transition: opacity getCssVar('transition-duration'),
20
+ transform getCssVar('transition-duration'),
21
+ left getCssVar('transition-duration'),
22
+ right getCssVar('transition-duration'), top 0.4s,
23
+ bottom getCssVar('transition-duration');
24
+ overflow-wrap: break-word;
25
+ overflow: hidden;
26
+ z-index: 9999;
27
+
28
+ &.right {
29
+ right: 16px;
30
+ }
31
+
32
+ &.left {
33
+ left: 16px;
34
+ }
35
+
36
+ @include e(group) {
37
+ flex: 1;
38
+ min-width: 0;
39
+ margin-left: getCssVar('notification-group-margin-left');
40
+ margin-right: getCssVar('notification-group-margin-right');
41
+ }
42
+
43
+ @include e(title) {
44
+ font-weight: bold;
45
+ font-size: getCssVar('notification-title-font-size');
46
+ line-height: getCssVar('notification-icon-size');
47
+ color: getCssVar('notification-title-color');
48
+ margin: 0;
49
+ }
50
+
51
+ @include e(content) {
52
+ font-size: getCssVar('notification-content-font-size');
53
+ line-height: 24px;
54
+ margin: 6px 0 0;
55
+ color: getCssVar('notification-content-color');
56
+
57
+ p {
58
+ margin: 0;
59
+ }
60
+ }
61
+
62
+ & .#{$namespace}-notification__icon {
63
+ flex-shrink: 0;
64
+ height: getCssVar('notification-icon-size');
65
+ width: getCssVar('notification-icon-size');
66
+ font-size: getCssVar('notification-icon-size');
67
+ }
68
+
69
+ & .#{$namespace}-notification__closeBtn {
70
+ position: absolute;
71
+ top: 18px;
72
+ right: 15px;
73
+ cursor: pointer;
74
+ color: getCssVar('notification-close-color');
75
+ font-size: getCssVar('notification-close-font-size');
76
+
77
+ &:hover {
78
+ color: getCssVar('notification-close-hover-color');
79
+ }
80
+ }
81
+
82
+ @each $type in (success, info, warning, error) {
83
+ & .#{$namespace}-notification--#{$type} {
84
+ @include css-var-from-global(
85
+ ('notification', 'icon-color'),
86
+ ('color', $type)
87
+ );
88
+ color: getCssVar('notification-icon-color');
89
+ }
90
+ }
91
+ }
92
+
93
+ .#{$namespace}-notification-fade-enter-from {
94
+ &.right {
95
+ right: 0;
96
+ transform: translateX(100%);
97
+ }
98
+
99
+ &.left {
100
+ left: 0;
101
+ transform: translateX(-100%);
102
+ }
103
+ }
104
+
105
+ .#{$namespace}-notification-fade-leave-to {
106
+ opacity: 0;
107
+ }
@@ -1,33 +1,33 @@
1
- @use 'sass:map';
2
-
3
- @use 'mixins/mixins' as *;
4
- @use 'common/var' as *;
5
-
6
- @include b(select-group) {
7
- $gap: 20px;
8
-
9
- margin: 0;
10
- padding: 0;
11
-
12
- @include e(wrap) {
13
- position: relative;
14
- list-style: none;
15
- margin: 0;
16
- padding: 0;
17
- }
18
-
19
- @include e(title) {
20
- box-sizing: border-box;
21
- padding: 0 $gap;
22
- font-size: map.get($select-group, 'font-size');
23
- color: map.get($select-group, 'text-color');
24
- line-height: map.get($select-group, 'height');
25
- overflow: hidden;
26
- text-overflow: ellipsis;
27
- white-space: nowrap;
28
- }
29
-
30
- & .#{$namespace}-select-dropdown__item {
31
- padding-left: $gap;
32
- }
33
- }
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'common/var' as *;
5
+
6
+ @include b(select-group) {
7
+ $gap: 20px;
8
+
9
+ margin: 0;
10
+ padding: 0;
11
+
12
+ @include e(wrap) {
13
+ position: relative;
14
+ list-style: none;
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+
19
+ @include e(title) {
20
+ box-sizing: border-box;
21
+ padding: 0 $gap;
22
+ font-size: map.get($select-group, 'font-size');
23
+ color: map.get($select-group, 'text-color');
24
+ line-height: map.get($select-group, 'height');
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ }
29
+
30
+ & .#{$namespace}-select-dropdown__item {
31
+ padding-left: $gap;
32
+ }
33
+ }
@@ -1,71 +1,71 @@
1
- @use 'sass:map';
2
-
3
- @use 'mixins/mixins' as *;
4
- @use 'common/var' as *;
5
-
6
- $checked-icon: "data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E";
7
-
8
- @mixin checked-icon {
9
- content: '';
10
- position: absolute;
11
- top: 50%;
12
- right: 20px;
13
- border-top: none;
14
- border-right: none;
15
- background-repeat: no-repeat;
16
- background-position: center;
17
- background-color: map.get($select-option, 'selected-text-color');
18
- mask: url('#{$checked-icon}') no-repeat;
19
- mask-size: 100% 100%;
20
- -webkit-mask: url('#{$checked-icon}') no-repeat;
21
- -webkit-mask-size: 100% 100%;
22
- transform: translateY(-50%);
23
- width: 12px;
24
- height: 12px;
25
- }
26
-
27
- @include b(select-dropdown) {
28
- @include e(item) {
29
- font-size: map.get($select, 'font-size');
30
- // 20 as the padding of option item, 12 as the size of ✓ icon size
31
- padding: 0 #{20 + 12}px 0 20px;
32
- position: relative;
33
- white-space: nowrap;
34
- overflow: hidden;
35
- text-overflow: ellipsis;
36
- color: map.get($select-option, 'text-color');
37
- height: map.get($select-option, 'height');
38
- line-height: map.get($select-option, 'height');
39
- box-sizing: border-box;
40
- cursor: pointer;
41
-
42
- @include when(hovering) {
43
- background-color: map.get($select-option, 'hover-background');
44
- }
45
-
46
- @include when(selected) {
47
- color: map.get($select-option, 'selected-text-color');
48
- font-weight: bold;
49
- }
50
-
51
- @include when(disabled) {
52
- color: map.get($select-option, 'disabled-color');
53
- cursor: not-allowed;
54
- background-color: unset;
55
- }
56
- }
57
-
58
- @include when(multiple) {
59
- .#{$namespace}-select-dropdown__item.is-selected {
60
- &::after {
61
- @include checked-icon;
62
- }
63
- }
64
-
65
- .#{$namespace}-select-dropdown__item.is-disabled {
66
- &::after {
67
- background-color: map.get($select-option, 'disabled-color');
68
- }
69
- }
70
- }
71
- }
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'common/var' as *;
5
+
6
+ $checked-icon: "data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E";
7
+
8
+ @mixin checked-icon {
9
+ content: '';
10
+ position: absolute;
11
+ top: 50%;
12
+ right: 20px;
13
+ border-top: none;
14
+ border-right: none;
15
+ background-repeat: no-repeat;
16
+ background-position: center;
17
+ background-color: map.get($select-option, 'selected-text-color');
18
+ mask: url('#{$checked-icon}') no-repeat;
19
+ mask-size: 100% 100%;
20
+ -webkit-mask: url('#{$checked-icon}') no-repeat;
21
+ -webkit-mask-size: 100% 100%;
22
+ transform: translateY(-50%);
23
+ width: 12px;
24
+ height: 12px;
25
+ }
26
+
27
+ @include b(select-dropdown) {
28
+ @include e(item) {
29
+ font-size: map.get($select, 'font-size');
30
+ // 20 as the padding of option item, 12 as the size of ✓ icon size
31
+ padding: 0 #{20 + 12}px 0 20px;
32
+ position: relative;
33
+ white-space: nowrap;
34
+ overflow: hidden;
35
+ text-overflow: ellipsis;
36
+ color: map.get($select-option, 'text-color');
37
+ height: map.get($select-option, 'height');
38
+ line-height: map.get($select-option, 'height');
39
+ box-sizing: border-box;
40
+ cursor: pointer;
41
+
42
+ @include when(hovering) {
43
+ background-color: map.get($select-option, 'hover-background');
44
+ }
45
+
46
+ @include when(selected) {
47
+ color: map.get($select-option, 'selected-text-color');
48
+ font-weight: bold;
49
+ }
50
+
51
+ @include when(disabled) {
52
+ color: map.get($select-option, 'disabled-color');
53
+ cursor: not-allowed;
54
+ background-color: unset;
55
+ }
56
+ }
57
+
58
+ @include when(multiple) {
59
+ .#{$namespace}-select-dropdown__item.is-selected {
60
+ &::after {
61
+ @include checked-icon;
62
+ }
63
+ }
64
+
65
+ .#{$namespace}-select-dropdown__item.is-disabled {
66
+ &::after {
67
+ background-color: map.get($select-option, 'disabled-color');
68
+ }
69
+ }
70
+ }
71
+ }
@@ -1,17 +1,17 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'common/var' as *;
3
-
4
- @include b(overlay) {
5
- position: fixed;
6
- top: 0;
7
- right: 0;
8
- bottom: 0;
9
- left: 0;
10
- z-index: 2000;
11
- height: 100%;
12
- background-color: getCssVar('overlay-color', 'lighter');
13
- overflow: auto;
14
- #{& + '-root'} {
15
- height: 0;
16
- }
17
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(overlay) {
5
+ position: fixed;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ left: 0;
10
+ z-index: 2000;
11
+ height: 100%;
12
+ background-color: getCssVar('overlay-color', 'lighter');
13
+ overflow: auto;
14
+ #{& + '-root'} {
15
+ height: 0;
16
+ }
17
+ }
@@ -1,60 +1,60 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'common/var' as *;
3
-
4
- @include b(page-header) {
5
- @include when(contentful) {
6
- @include e('main') {
7
- border-top: 1px solid getCssVar('border-color', 'light');
8
- margin-top: 16px;
9
- }
10
- }
11
-
12
- @include e(header) {
13
- display: flex;
14
- align-items: center;
15
- justify-content: space-between;
16
- line-height: 24px;
17
-
18
- @include e(left) {
19
- display: flex;
20
- align-items: center;
21
- margin-right: 40px;
22
- position: relative;
23
-
24
- @include e('back') {
25
- display: flex;
26
- align-items: center;
27
- cursor: pointer;
28
- }
29
-
30
- .#{$namespace}-divider--vertical {
31
- margin: 0 16px;
32
- }
33
-
34
- @include e(icon) {
35
- font-size: 16px;
36
- margin-right: 10px;
37
- display: flex;
38
- align-items: center;
39
-
40
- .#{$namespace}-icon {
41
- font-size: inherit;
42
- }
43
- }
44
-
45
- @include e(title) {
46
- font-size: 14px;
47
- font-weight: 500;
48
- }
49
- }
50
- }
51
-
52
- @include e(content) {
53
- font-size: 18px;
54
- color: getCssVar('text-color', 'primary');
55
- }
56
-
57
- @include e(breadcrumb) {
58
- margin-bottom: 16px;
59
- }
60
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(page-header) {
5
+ @include when(contentful) {
6
+ @include e('main') {
7
+ border-top: 1px solid getCssVar('border-color', 'light');
8
+ margin-top: 16px;
9
+ }
10
+ }
11
+
12
+ @include e(header) {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ line-height: 24px;
17
+
18
+ @include e(left) {
19
+ display: flex;
20
+ align-items: center;
21
+ margin-right: 40px;
22
+ position: relative;
23
+
24
+ @include e('back') {
25
+ display: flex;
26
+ align-items: center;
27
+ cursor: pointer;
28
+ }
29
+
30
+ .#{$namespace}-divider--vertical {
31
+ margin: 0 16px;
32
+ }
33
+
34
+ @include e(icon) {
35
+ font-size: 16px;
36
+ margin-right: 10px;
37
+ display: flex;
38
+ align-items: center;
39
+
40
+ .#{$namespace}-icon {
41
+ font-size: inherit;
42
+ }
43
+ }
44
+
45
+ @include e(title) {
46
+ font-size: 14px;
47
+ font-weight: 500;
48
+ }
49
+ }
50
+ }
51
+
52
+ @include e(content) {
53
+ font-size: 18px;
54
+ color: getCssVar('text-color', 'primary');
55
+ }
56
+
57
+ @include e(breadcrumb) {
58
+ margin-bottom: 16px;
59
+ }
60
+ }