@type-dom/ui 0.4.0 → 0.4.1

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 +1 -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 +42 -42
@@ -1,14 +1,14 @@
1
- @use 'mixins/mixins' as *;
2
-
3
- @include b(container) {
4
- display: flex;
5
- flex-direction: row;
6
- flex: 1;
7
- flex-basis: auto;
8
- box-sizing: border-box;
9
- min-width: 0;
10
-
11
- @include when(vertical) {
12
- flex-direction: column;
13
- }
14
- }
1
+ @use 'mixins/mixins' as *;
2
+
3
+ @include b(container) {
4
+ display: flex;
5
+ flex-direction: row;
6
+ flex: 1;
7
+ flex-basis: auto;
8
+ box-sizing: border-box;
9
+ min-width: 0;
10
+
11
+ @include when(vertical) {
12
+ flex-direction: column;
13
+ }
14
+ }
@@ -1,39 +1,39 @@
1
- // CSS3 var
2
- @use 'var' as *;
3
- @use '../mixins/var' as *;
4
- @use '../mixins/mixins' as *;
5
-
6
- html.dark {
7
- color-scheme: dark;
8
-
9
- // hex colors
10
- @each $type in (primary, success, warning, danger, error, info) {
11
- @include set-css-color-type($colors, $type);
12
- }
13
-
14
- // --el-box-shadow-#{$type}
15
- @include set-component-css-var('box-shadow', $box-shadow);
16
-
17
- // color-scheme
18
- // Background --el-bg-color-#{$type}
19
- @include set-component-css-var('bg-color', $bg-color);
20
- // --el-text-color-#{$type}
21
- @include set-component-css-var('text-color', $text-color);
22
- // --el-border-color-#{$type}
23
- @include set-component-css-var('border-color', $border-color);
24
- // Fill --el-fill-color-#{$type}
25
- @include set-component-css-var('fill-color', $fill-color);
26
- @include set-component-css-var('mask-color', $mask-color);
27
- }
28
-
29
- @include dark(button) {
30
- @include set-component-css-var('button', $button);
31
- }
32
-
33
- @include dark(card) {
34
- @include set-component-css-var('card', $card);
35
- }
36
-
37
- @include dark(empty) {
38
- @include set-component-css-var('empty', $empty);
39
- }
1
+ // CSS3 var
2
+ @use 'var' as *;
3
+ @use '../mixins/var' as *;
4
+ @use '../mixins/mixins' as *;
5
+
6
+ html.dark {
7
+ color-scheme: dark;
8
+
9
+ // hex colors
10
+ @each $type in (primary, success, warning, danger, error, info) {
11
+ @include set-css-color-type($colors, $type);
12
+ }
13
+
14
+ // --el-box-shadow-#{$type}
15
+ @include set-component-css-var('box-shadow', $box-shadow);
16
+
17
+ // color-scheme
18
+ // Background --el-bg-color-#{$type}
19
+ @include set-component-css-var('bg-color', $bg-color);
20
+ // --el-text-color-#{$type}
21
+ @include set-component-css-var('text-color', $text-color);
22
+ // --el-border-color-#{$type}
23
+ @include set-component-css-var('border-color', $border-color);
24
+ // Fill --el-fill-color-#{$type}
25
+ @include set-component-css-var('fill-color', $fill-color);
26
+ @include set-component-css-var('mask-color', $mask-color);
27
+ }
28
+
29
+ @include dark(button) {
30
+ @include set-component-css-var('button', $button);
31
+ }
32
+
33
+ @include dark(card) {
34
+ @include set-component-css-var('card', $card);
35
+ }
36
+
37
+ @include dark(empty) {
38
+ @include set-component-css-var('empty', $empty);
39
+ }
@@ -1,222 +1,222 @@
1
- @use 'sass:map';
2
- @use 'sass:math';
3
- @use 'sass:color';
4
-
5
- @use '../common/var' as common;
6
- @use '../mixins/mixins' as *;
7
- @use '../color/index' as *;
8
-
9
- $colors: () !default;
10
- @each $type in common.$types {
11
- $colors: map.deep-merge(
12
- (
13
- $type: (
14
- 'base': map.get(common.$colors, $type, 'base'),
15
- ),
16
- ),
17
- $colors
18
- ) !global;
19
- }
20
-
21
- // https://sass-lang.com/documentation/values/maps#immutability
22
- // mix colors with white/black to generate light/dark level
23
- @mixin set-color-mix-level(
24
- $type,
25
- $number,
26
- $mode: 'light',
27
- $mix-color: $color-white
28
- ) {
29
- // hex mix color
30
- $colors: map.deep-merge(
31
- (
32
- $type: (
33
- '#{$mode}-#{$number}':
34
- color.mix(
35
- $mix-color,
36
- map.get($colors, $type, 'base'),
37
- math.percentage(math.div($number, 10))
38
- ),
39
- ),
40
- ),
41
- $colors
42
- ) !global;
43
-
44
- // for designer to view transparent
45
- // $colors: map.deep-merge(
46
- // (
47
- // $type: (
48
- // '#{$mode}-#{$number}':
49
- // rgba(map.get($colors, $type, 'base'), math.div(10 - $number, 10)),
50
- // ),
51
- // ),
52
- // $colors
53
- // ) !global;
54
- }
55
-
56
- // Background
57
- $bg-color: () !default;
58
- $bg-color: map.merge(
59
- (
60
- 'page': #0a0a0a,
61
- '': #141414,
62
- 'overlay': #1d1e1f,
63
- ),
64
- $bg-color
65
- );
66
-
67
- // dark-mode
68
- @each $type in common.$types {
69
- @for $i from 1 through 9 {
70
- @include set-color-mix-level($type, $i, 'light', map.get($bg-color, ''));
71
- }
72
- }
73
- @each $type in common.$types {
74
- @include set-color-mix-level($type, 2, 'dark', common.$color-white);
75
- }
76
-
77
- // border
78
- $border-color-base: #f5f8ff;
79
- $border-color: () !default;
80
- $border-color: map.merge(
81
- (
82
- 'darker': rgba($border-color-base, 0.35),
83
- 'dark': rgba($border-color-base, 0.3),
84
- '': rgba($border-color-base, 0.25),
85
- 'light': rgba($border-color-base, 0.2),
86
- 'lighter': rgba($border-color-base, 0.15),
87
- 'extra-light': rgba($border-color-base, 0.1),
88
- ),
89
- $border-color
90
- );
91
-
92
- // mix to hex to avoid overlay issues
93
- @each $key, $val in $border-color {
94
- $border-color: map.merge(
95
- $border-color,
96
- (
97
- $key: mix-overlay-color($val, map.get($bg-color, '')),
98
- )
99
- ) !global;
100
- }
101
-
102
- // Box-shadow
103
- $box-shadow: () !default;
104
- $box-shadow: map.merge(
105
- (
106
- '': (
107
- 0px 12px 32px 4px rgba(0, 0, 0, 0.36),
108
- 0px 8px 20px rgba(0, 0, 0, 0.72),
109
- ),
110
- 'light': (
111
- 0px 0px 12px rgba(0, 0, 0, 0.72),
112
- ),
113
- 'lighter': (
114
- 0px 0px 6px rgba(0, 0, 0, 0.72),
115
- ),
116
- 'dark': (
117
- 0px 16px 48px 16px rgba(0, 0, 0, 0.72),
118
- 0px 12px 32px #000000,
119
- 0px 8px 16px -8px #000000,
120
- ),
121
- ),
122
- $box-shadow
123
- );
124
-
125
- // fill
126
- $fill-color-base: #fafcff;
127
- $fill-color: () !default;
128
- $fill-color: map.merge(
129
- (
130
- 'darker': rgba($fill-color-base, 0.2),
131
- 'dark': rgba($fill-color-base, 0.16),
132
- '': rgba($fill-color-base, 0.12),
133
- 'light': rgba($fill-color-base, 0.08),
134
- 'lighter': rgba($fill-color-base, 0.04),
135
- 'extra-light': rgba($fill-color-base, 0.02),
136
- 'blank': transparent,
137
- ),
138
- $fill-color
139
- );
140
-
141
- // mix to hex to avoid overlay issues
142
- @each $key, $val in $fill-color {
143
- @if ($key != 'blank') {
144
- $fill-color: map.merge(
145
- $fill-color,
146
- (
147
- $key: mix-overlay-color($val, map.get($bg-color, '')),
148
- )
149
- ) !global;
150
- }
151
- }
152
-
153
- // text
154
- $text-color-base: #f0f5ff;
155
- $text-color: () !default;
156
- $text-color: map.merge(
157
- (
158
- 'primary': rgba($text-color-base, 0.95),
159
- 'regular': rgba($text-color-base, 0.85),
160
- 'secondary': rgba($text-color-base, 0.65),
161
- 'placeholder': rgba($text-color-base, 0.55),
162
- 'disabled': rgba($text-color-base, 0.4),
163
- ),
164
- $text-color
165
- );
166
- // mix to hex to avoid overlay issues
167
- @each $key, $val in $text-color {
168
- $text-color: map.merge(
169
- $text-color,
170
- (
171
- $key: mix-overlay-color($val, map.get($bg-color, '')),
172
- )
173
- ) !global;
174
- }
175
-
176
- // mask
177
- $mask-color: () !default;
178
- $mask-color: map.merge(
179
- (
180
- '': rgba(0, 0, 0, 0.8),
181
- 'extra-light': rgba(0, 0, 0, 0.3),
182
- ),
183
- $mask-color
184
- );
185
-
186
- // Button
187
- // css3 var in packages/theme-chalk/src/button.scss
188
- $button: () !default;
189
- $button: map.merge(
190
- (
191
- 'disabled-text-color': rgba(255, 255, 255, 0.5),
192
- ),
193
- $button
194
- );
195
-
196
- // card
197
- $card: () !default;
198
- $card: map.merge(
199
- (
200
- 'bg-color': getCssVar('bg-color', 'overlay'),
201
- ),
202
- $card
203
- );
204
-
205
- // Empty
206
- // css3 var in packages/theme-chalk/src/empty.scss
207
- $empty: () !default;
208
- $empty: map.merge(
209
- (
210
- 'fill-color-0': getCssVar('color-black'),
211
- 'fill-color-1': #4b4b52,
212
- 'fill-color-2': #36383d,
213
- 'fill-color-3': #1e1e20,
214
- 'fill-color-4': #262629,
215
- 'fill-color-5': #202124,
216
- 'fill-color-6': #212224,
217
- 'fill-color-7': #1b1c1f,
218
- 'fill-color-8': #1c1d1f,
219
- 'fill-color-9': #18181a,
220
- ),
221
- $empty
222
- );
1
+ @use 'sass:map';
2
+ @use 'sass:math';
3
+ @use 'sass:color';
4
+
5
+ @use '../common/var' as common;
6
+ @use '../mixins/mixins' as *;
7
+ @use '../color/index' as *;
8
+
9
+ $colors: () !default;
10
+ @each $type in common.$types {
11
+ $colors: map.deep-merge(
12
+ (
13
+ $type: (
14
+ 'base': map.get(common.$colors, $type, 'base'),
15
+ ),
16
+ ),
17
+ $colors
18
+ ) !global;
19
+ }
20
+
21
+ // https://sass-lang.com/documentation/values/maps#immutability
22
+ // mix colors with white/black to generate light/dark level
23
+ @mixin set-color-mix-level(
24
+ $type,
25
+ $number,
26
+ $mode: 'light',
27
+ $mix-color: $color-white
28
+ ) {
29
+ // hex mix color
30
+ $colors: map.deep-merge(
31
+ (
32
+ $type: (
33
+ '#{$mode}-#{$number}':
34
+ color.mix(
35
+ $mix-color,
36
+ map.get($colors, $type, 'base'),
37
+ math.percentage(math.div($number, 10))
38
+ ),
39
+ ),
40
+ ),
41
+ $colors
42
+ ) !global;
43
+
44
+ // for designer to view transparent
45
+ // $colors: map.deep-merge(
46
+ // (
47
+ // $type: (
48
+ // '#{$mode}-#{$number}':
49
+ // rgba(map.get($colors, $type, 'base'), math.div(10 - $number, 10)),
50
+ // ),
51
+ // ),
52
+ // $colors
53
+ // ) !global;
54
+ }
55
+
56
+ // Background
57
+ $bg-color: () !default;
58
+ $bg-color: map.merge(
59
+ (
60
+ 'page': #0a0a0a,
61
+ '': #141414,
62
+ 'overlay': #1d1e1f,
63
+ ),
64
+ $bg-color
65
+ );
66
+
67
+ // dark-mode
68
+ @each $type in common.$types {
69
+ @for $i from 1 through 9 {
70
+ @include set-color-mix-level($type, $i, 'light', map.get($bg-color, ''));
71
+ }
72
+ }
73
+ @each $type in common.$types {
74
+ @include set-color-mix-level($type, 2, 'dark', common.$color-white);
75
+ }
76
+
77
+ // border
78
+ $border-color-base: #f5f8ff;
79
+ $border-color: () !default;
80
+ $border-color: map.merge(
81
+ (
82
+ 'darker': rgba($border-color-base, 0.35),
83
+ 'dark': rgba($border-color-base, 0.3),
84
+ '': rgba($border-color-base, 0.25),
85
+ 'light': rgba($border-color-base, 0.2),
86
+ 'lighter': rgba($border-color-base, 0.15),
87
+ 'extra-light': rgba($border-color-base, 0.1),
88
+ ),
89
+ $border-color
90
+ );
91
+
92
+ // mix to hex to avoid overlay issues
93
+ @each $key, $val in $border-color {
94
+ $border-color: map.merge(
95
+ $border-color,
96
+ (
97
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
98
+ )
99
+ ) !global;
100
+ }
101
+
102
+ // Box-shadow
103
+ $box-shadow: () !default;
104
+ $box-shadow: map.merge(
105
+ (
106
+ '': (
107
+ 0px 12px 32px 4px rgba(0, 0, 0, 0.36),
108
+ 0px 8px 20px rgba(0, 0, 0, 0.72),
109
+ ),
110
+ 'light': (
111
+ 0px 0px 12px rgba(0, 0, 0, 0.72),
112
+ ),
113
+ 'lighter': (
114
+ 0px 0px 6px rgba(0, 0, 0, 0.72),
115
+ ),
116
+ 'dark': (
117
+ 0px 16px 48px 16px rgba(0, 0, 0, 0.72),
118
+ 0px 12px 32px #000000,
119
+ 0px 8px 16px -8px #000000,
120
+ ),
121
+ ),
122
+ $box-shadow
123
+ );
124
+
125
+ // fill
126
+ $fill-color-base: #fafcff;
127
+ $fill-color: () !default;
128
+ $fill-color: map.merge(
129
+ (
130
+ 'darker': rgba($fill-color-base, 0.2),
131
+ 'dark': rgba($fill-color-base, 0.16),
132
+ '': rgba($fill-color-base, 0.12),
133
+ 'light': rgba($fill-color-base, 0.08),
134
+ 'lighter': rgba($fill-color-base, 0.04),
135
+ 'extra-light': rgba($fill-color-base, 0.02),
136
+ 'blank': transparent,
137
+ ),
138
+ $fill-color
139
+ );
140
+
141
+ // mix to hex to avoid overlay issues
142
+ @each $key, $val in $fill-color {
143
+ @if ($key != 'blank') {
144
+ $fill-color: map.merge(
145
+ $fill-color,
146
+ (
147
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
148
+ )
149
+ ) !global;
150
+ }
151
+ }
152
+
153
+ // text
154
+ $text-color-base: #f0f5ff;
155
+ $text-color: () !default;
156
+ $text-color: map.merge(
157
+ (
158
+ 'primary': rgba($text-color-base, 0.95),
159
+ 'regular': rgba($text-color-base, 0.85),
160
+ 'secondary': rgba($text-color-base, 0.65),
161
+ 'placeholder': rgba($text-color-base, 0.55),
162
+ 'disabled': rgba($text-color-base, 0.4),
163
+ ),
164
+ $text-color
165
+ );
166
+ // mix to hex to avoid overlay issues
167
+ @each $key, $val in $text-color {
168
+ $text-color: map.merge(
169
+ $text-color,
170
+ (
171
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
172
+ )
173
+ ) !global;
174
+ }
175
+
176
+ // mask
177
+ $mask-color: () !default;
178
+ $mask-color: map.merge(
179
+ (
180
+ '': rgba(0, 0, 0, 0.8),
181
+ 'extra-light': rgba(0, 0, 0, 0.3),
182
+ ),
183
+ $mask-color
184
+ );
185
+
186
+ // Button
187
+ // css3 var in packages/theme-chalk/src/button.scss
188
+ $button: () !default;
189
+ $button: map.merge(
190
+ (
191
+ 'disabled-text-color': rgba(255, 255, 255, 0.5),
192
+ ),
193
+ $button
194
+ );
195
+
196
+ // card
197
+ $card: () !default;
198
+ $card: map.merge(
199
+ (
200
+ 'bg-color': getCssVar('bg-color', 'overlay'),
201
+ ),
202
+ $card
203
+ );
204
+
205
+ // Empty
206
+ // css3 var in packages/theme-chalk/src/empty.scss
207
+ $empty: () !default;
208
+ $empty: map.merge(
209
+ (
210
+ 'fill-color-0': getCssVar('color-black'),
211
+ 'fill-color-1': #4b4b52,
212
+ 'fill-color-2': #36383d,
213
+ 'fill-color-3': #1e1e20,
214
+ 'fill-color-4': #262629,
215
+ 'fill-color-5': #202124,
216
+ 'fill-color-6': #212224,
217
+ 'fill-color-7': #1b1c1f,
218
+ 'fill-color-8': #1c1d1f,
219
+ 'fill-color-9': #18181a,
220
+ ),
221
+ $empty
222
+ );