@type-dom/ui 0.3.0 → 0.4.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 (135) hide show
  1. package/README.md +134 -134
  2. package/dist/package.json +11 -3
  3. package/dist/src/components/data/td-progress/td-progress.class.js +5 -5
  4. package/dist/src/components/feedback/td-tooltip/td-tooltip.const.d.ts.map +1 -1
  5. package/dist/src/hooks/use-deprecated/index.js +2 -2
  6. package/dist/src/hooks/use-id/index.js +4 -4
  7. package/dist/src/hooks/use-z-index/index.js +1 -1
  8. package/dist/src/theme-chalk/affix.scss +7 -7
  9. package/dist/src/theme-chalk/alert.scss +115 -115
  10. package/dist/src/theme-chalk/anchor-link.scss +41 -41
  11. package/dist/src/theme-chalk/anchor.scss +88 -88
  12. package/dist/src/theme-chalk/aside.scss +8 -8
  13. package/dist/src/theme-chalk/autocomplete.scss +89 -89
  14. package/dist/src/theme-chalk/avatar.scss +55 -55
  15. package/dist/src/theme-chalk/backtop.scss +29 -29
  16. package/dist/src/theme-chalk/badge.scss +58 -58
  17. package/dist/src/theme-chalk/base.scss +3 -3
  18. package/dist/src/theme-chalk/breadcrumb.scss +62 -62
  19. package/dist/src/theme-chalk/button-group.scss +80 -80
  20. package/dist/src/theme-chalk/button.scss +304 -304
  21. package/dist/src/theme-chalk/calendar.scss +80 -80
  22. package/dist/src/theme-chalk/card.scss +45 -45
  23. package/dist/src/theme-chalk/carousel-item.scss +58 -58
  24. package/dist/src/theme-chalk/carousel.scss +188 -188
  25. package/dist/src/theme-chalk/cascader-panel.scss +138 -138
  26. package/dist/src/theme-chalk/cascader.scss +247 -247
  27. package/dist/src/theme-chalk/check-tag.scss +60 -60
  28. package/dist/src/theme-chalk/checkbox-button.scss +140 -140
  29. package/dist/src/theme-chalk/checkbox-group.scss +7 -7
  30. package/dist/src/theme-chalk/checkbox.scss +298 -298
  31. package/dist/src/theme-chalk/col.scss +48 -48
  32. package/dist/src/theme-chalk/collapse.scss +70 -70
  33. package/dist/src/theme-chalk/color/index.scss +20 -20
  34. package/dist/src/theme-chalk/color-picker.scss +393 -393
  35. package/dist/src/theme-chalk/common/popup.scss +47 -47
  36. package/dist/src/theme-chalk/common/transition.scss +122 -122
  37. package/dist/src/theme-chalk/common/var.scss +1655 -1655
  38. package/dist/src/theme-chalk/container.scss +14 -14
  39. package/dist/src/theme-chalk/dark/css-vars.scss +39 -39
  40. package/dist/src/theme-chalk/dark/var.scss +222 -222
  41. package/dist/src/theme-chalk/date-picker/date-picker.scss +110 -110
  42. package/dist/src/theme-chalk/date-picker/date-range-picker.scss +113 -113
  43. package/dist/src/theme-chalk/date-picker/date-table.scss +158 -158
  44. package/dist/src/theme-chalk/date-picker/month-table.scss +112 -112
  45. package/dist/src/theme-chalk/date-picker/picker-panel.scss +131 -131
  46. package/dist/src/theme-chalk/date-picker/picker.scss +212 -212
  47. package/dist/src/theme-chalk/date-picker/time-picker.scss +90 -90
  48. package/dist/src/theme-chalk/date-picker/time-range-picker.scss +33 -33
  49. package/dist/src/theme-chalk/date-picker/time-spinner.scss +111 -111
  50. package/dist/src/theme-chalk/date-picker/year-table.scss +108 -108
  51. package/dist/src/theme-chalk/date-picker.scss +9 -9
  52. package/dist/src/theme-chalk/descriptions-item.scss +73 -73
  53. package/dist/src/theme-chalk/descriptions.scss +152 -152
  54. package/dist/src/theme-chalk/dialog.scss +192 -192
  55. package/dist/src/theme-chalk/display.scss +12 -12
  56. package/dist/src/theme-chalk/divider.scss +48 -48
  57. package/dist/src/theme-chalk/drawer.scss +155 -155
  58. package/dist/src/theme-chalk/dropdown.scss +208 -208
  59. package/dist/src/theme-chalk/empty.scss +49 -49
  60. package/dist/src/theme-chalk/footer.scss +12 -12
  61. package/dist/src/theme-chalk/form.scss +244 -244
  62. package/dist/src/theme-chalk/header.scss +12 -12
  63. package/dist/src/theme-chalk/icon.scss +45 -45
  64. package/dist/src/theme-chalk/image-viewer.scss +155 -155
  65. package/dist/src/theme-chalk/image.scss +49 -49
  66. package/dist/src/theme-chalk/index.scss +111 -111
  67. package/dist/src/theme-chalk/input-number.scss +186 -186
  68. package/dist/src/theme-chalk/input-tag.scss +220 -220
  69. package/dist/src/theme-chalk/input.scss +474 -474
  70. package/dist/src/theme-chalk/link.scss +90 -90
  71. package/dist/src/theme-chalk/loading.scss +104 -104
  72. package/dist/src/theme-chalk/main.scss +14 -14
  73. package/dist/src/theme-chalk/mention.scss +92 -92
  74. package/dist/src/theme-chalk/menu.scss +339 -339
  75. package/dist/src/theme-chalk/message-box.scss +213 -213
  76. package/dist/src/theme-chalk/message.scss +98 -98
  77. package/dist/src/theme-chalk/mixins/_button.scss +165 -165
  78. package/dist/src/theme-chalk/mixins/_col.scss +33 -33
  79. package/dist/src/theme-chalk/mixins/_var.scss +67 -67
  80. package/dist/src/theme-chalk/mixins/config.scss +5 -5
  81. package/dist/src/theme-chalk/mixins/function.scss +88 -88
  82. package/dist/src/theme-chalk/mixins/mixins.scss +240 -240
  83. package/dist/src/theme-chalk/mixins/utils.scss +39 -39
  84. package/dist/src/theme-chalk/notification.scss +107 -107
  85. package/dist/src/theme-chalk/option-group.scss +33 -33
  86. package/dist/src/theme-chalk/option.scss +71 -71
  87. package/dist/src/theme-chalk/overlay.scss +17 -17
  88. package/dist/src/theme-chalk/page-header.scss +60 -60
  89. package/dist/src/theme-chalk/pagination.scss +238 -238
  90. package/dist/src/theme-chalk/popconfirm.scss +16 -16
  91. package/dist/src/theme-chalk/popover.scss +61 -61
  92. package/dist/src/theme-chalk/popper.scss +106 -106
  93. package/dist/src/theme-chalk/progress.scss +179 -179
  94. package/dist/src/theme-chalk/radio-button.scss +169 -169
  95. package/dist/src/theme-chalk/radio-group.scss +9 -9
  96. package/dist/src/theme-chalk/radio.scss +215 -215
  97. package/dist/src/theme-chalk/rate.scss +108 -108
  98. package/dist/src/theme-chalk/reset.scss +98 -98
  99. package/dist/src/theme-chalk/result.scss +57 -57
  100. package/dist/src/theme-chalk/row.scss +35 -35
  101. package/dist/src/theme-chalk/scrollbar.scss +97 -97
  102. package/dist/src/theme-chalk/segmented.scss +183 -183
  103. package/dist/src/theme-chalk/select-dropdown-v2.scss +1 -1
  104. package/dist/src/theme-chalk/select-dropdown.scss +57 -57
  105. package/dist/src/theme-chalk/select-v2.scss +4 -4
  106. package/dist/src/theme-chalk/select.scss +264 -264
  107. package/dist/src/theme-chalk/skeleton-item.scss +83 -83
  108. package/dist/src/theme-chalk/skeleton.scss +44 -44
  109. package/dist/src/theme-chalk/slider.scss +212 -212
  110. package/dist/src/theme-chalk/space.scss +20 -20
  111. package/dist/src/theme-chalk/spinner.scss +43 -43
  112. package/dist/src/theme-chalk/statistic.scss +35 -35
  113. package/dist/src/theme-chalk/step.scss +316 -316
  114. package/dist/src/theme-chalk/steps.scss +21 -21
  115. package/dist/src/theme-chalk/switch.scss +300 -300
  116. package/dist/src/theme-chalk/table-column.scss +98 -98
  117. package/dist/src/theme-chalk/table-v2.scss +236 -236
  118. package/dist/src/theme-chalk/table.scss +694 -694
  119. package/dist/src/theme-chalk/tabs.scss +660 -660
  120. package/dist/src/theme-chalk/tag.scss +181 -181
  121. package/dist/src/theme-chalk/text.scss +51 -51
  122. package/dist/src/theme-chalk/time-picker.scss +5 -5
  123. package/dist/src/theme-chalk/time-select.scss +37 -37
  124. package/dist/src/theme-chalk/timeline-item.scss +84 -84
  125. package/dist/src/theme-chalk/timeline.scss +46 -46
  126. package/dist/src/theme-chalk/tooltip-v2.scss +95 -95
  127. package/dist/src/theme-chalk/tour.scss +187 -187
  128. package/dist/src/theme-chalk/transfer.scss +203 -203
  129. package/dist/src/theme-chalk/tree-select.scss +41 -41
  130. package/dist/src/theme-chalk/tree.scss +134 -134
  131. package/dist/src/theme-chalk/upload.scss +654 -654
  132. package/dist/src/theme-chalk/var.scss +87 -87
  133. package/dist/src/theme-chalk/virtual-list.scss +40 -40
  134. package/package.json +42 -34
  135. package/dist/README.md +0 -134
@@ -1,165 +1,165 @@
1
- @use 'var' as *;
2
- @use 'function' as *;
3
- @use '../common/var' as *;
4
-
5
- @mixin button-plain($type) {
6
- $button-color-types: (
7
- '': (
8
- 'text-color': (
9
- 'color',
10
- $type,
11
- ),
12
- 'bg-color': (
13
- 'color',
14
- $type,
15
- 'light-9',
16
- ),
17
- 'border-color': (
18
- 'color',
19
- $type,
20
- 'light-5',
21
- ),
22
- ),
23
- 'hover': (
24
- 'text-color': (
25
- 'color',
26
- 'white',
27
- ),
28
- 'bg-color': (
29
- 'color',
30
- $type,
31
- ),
32
- 'border-color': (
33
- 'color',
34
- $type,
35
- ),
36
- ),
37
- 'active': (
38
- 'text-color': (
39
- 'color',
40
- 'white',
41
- ),
42
- ),
43
- );
44
-
45
- @each $type, $typeMap in $button-color-types {
46
- @each $typeColor, $list in $typeMap {
47
- @include css-var-from-global(('button', $type, $typeColor), $list);
48
- }
49
- }
50
-
51
- &.is-disabled {
52
- &,
53
- &:hover,
54
- &:focus,
55
- &:active {
56
- color: getCssVar('color', $type, 'light-5');
57
- background-color: getCssVar('color', $type, 'light-9');
58
- border-color: getCssVar('color', $type, 'light-8');
59
- }
60
- }
61
- }
62
-
63
- @mixin button-variant($type) {
64
- $button-color-types: (
65
- '': (
66
- 'text-color': (
67
- 'color',
68
- 'white',
69
- ),
70
- 'bg-color': (
71
- 'color',
72
- $type,
73
- ),
74
- 'border-color': (
75
- 'color',
76
- $type,
77
- ),
78
- 'outline-color': (
79
- 'color',
80
- $type,
81
- 'light-5',
82
- ),
83
- 'active-color': (
84
- 'color',
85
- $type,
86
- 'dark-2',
87
- ),
88
- ),
89
- 'hover': (
90
- 'text-color': (
91
- 'color',
92
- 'white',
93
- ),
94
- 'link-text-color': (
95
- 'color',
96
- $type,
97
- 'light-5',
98
- ),
99
- 'bg-color': (
100
- 'color',
101
- $type,
102
- 'light-3',
103
- ),
104
- 'border-color': (
105
- 'color',
106
- $type,
107
- 'light-3',
108
- ),
109
- ),
110
- 'active': (
111
- 'bg-color': (
112
- 'color',
113
- $type,
114
- 'dark-2',
115
- ),
116
- 'border-color': (
117
- 'color',
118
- $type,
119
- 'dark-2',
120
- ),
121
- ),
122
- 'disabled': (
123
- 'text-color': (
124
- 'color',
125
- 'white',
126
- ),
127
- 'bg-color': (
128
- 'color',
129
- $type,
130
- 'light-5',
131
- ),
132
- 'border-color': (
133
- 'color',
134
- $type,
135
- 'light-5',
136
- ),
137
- ),
138
- );
139
-
140
- @each $type, $typeMap in $button-color-types {
141
- @each $typeColor, $list in $typeMap {
142
- @include css-var-from-global(('button', $type, $typeColor), $list);
143
- }
144
- }
145
-
146
- &.is-plain,
147
- &.is-text,
148
- &.is-link {
149
- @include button-plain($type);
150
- }
151
- }
152
-
153
- @mixin button-size(
154
- $padding-vertical,
155
- $padding-horizontal,
156
- $font-size,
157
- $border-radius
158
- ) {
159
- padding: $padding-vertical $padding-horizontal;
160
- font-size: $font-size;
161
- border-radius: $border-radius;
162
- &.is-round {
163
- padding: $padding-vertical $padding-horizontal;
164
- }
165
- }
1
+ @use 'var' as *;
2
+ @use 'function' as *;
3
+ @use '../common/var' as *;
4
+
5
+ @mixin button-plain($type) {
6
+ $button-color-types: (
7
+ '': (
8
+ 'text-color': (
9
+ 'color',
10
+ $type,
11
+ ),
12
+ 'bg-color': (
13
+ 'color',
14
+ $type,
15
+ 'light-9',
16
+ ),
17
+ 'border-color': (
18
+ 'color',
19
+ $type,
20
+ 'light-5',
21
+ ),
22
+ ),
23
+ 'hover': (
24
+ 'text-color': (
25
+ 'color',
26
+ 'white',
27
+ ),
28
+ 'bg-color': (
29
+ 'color',
30
+ $type,
31
+ ),
32
+ 'border-color': (
33
+ 'color',
34
+ $type,
35
+ ),
36
+ ),
37
+ 'active': (
38
+ 'text-color': (
39
+ 'color',
40
+ 'white',
41
+ ),
42
+ ),
43
+ );
44
+
45
+ @each $type, $typeMap in $button-color-types {
46
+ @each $typeColor, $list in $typeMap {
47
+ @include css-var-from-global(('button', $type, $typeColor), $list);
48
+ }
49
+ }
50
+
51
+ &.is-disabled {
52
+ &,
53
+ &:hover,
54
+ &:focus,
55
+ &:active {
56
+ color: getCssVar('color', $type, 'light-5');
57
+ background-color: getCssVar('color', $type, 'light-9');
58
+ border-color: getCssVar('color', $type, 'light-8');
59
+ }
60
+ }
61
+ }
62
+
63
+ @mixin button-variant($type) {
64
+ $button-color-types: (
65
+ '': (
66
+ 'text-color': (
67
+ 'color',
68
+ 'white',
69
+ ),
70
+ 'bg-color': (
71
+ 'color',
72
+ $type,
73
+ ),
74
+ 'border-color': (
75
+ 'color',
76
+ $type,
77
+ ),
78
+ 'outline-color': (
79
+ 'color',
80
+ $type,
81
+ 'light-5',
82
+ ),
83
+ 'active-color': (
84
+ 'color',
85
+ $type,
86
+ 'dark-2',
87
+ ),
88
+ ),
89
+ 'hover': (
90
+ 'text-color': (
91
+ 'color',
92
+ 'white',
93
+ ),
94
+ 'link-text-color': (
95
+ 'color',
96
+ $type,
97
+ 'light-5',
98
+ ),
99
+ 'bg-color': (
100
+ 'color',
101
+ $type,
102
+ 'light-3',
103
+ ),
104
+ 'border-color': (
105
+ 'color',
106
+ $type,
107
+ 'light-3',
108
+ ),
109
+ ),
110
+ 'active': (
111
+ 'bg-color': (
112
+ 'color',
113
+ $type,
114
+ 'dark-2',
115
+ ),
116
+ 'border-color': (
117
+ 'color',
118
+ $type,
119
+ 'dark-2',
120
+ ),
121
+ ),
122
+ 'disabled': (
123
+ 'text-color': (
124
+ 'color',
125
+ 'white',
126
+ ),
127
+ 'bg-color': (
128
+ 'color',
129
+ $type,
130
+ 'light-5',
131
+ ),
132
+ 'border-color': (
133
+ 'color',
134
+ $type,
135
+ 'light-5',
136
+ ),
137
+ ),
138
+ );
139
+
140
+ @each $type, $typeMap in $button-color-types {
141
+ @each $typeColor, $list in $typeMap {
142
+ @include css-var-from-global(('button', $type, $typeColor), $list);
143
+ }
144
+ }
145
+
146
+ &.is-plain,
147
+ &.is-text,
148
+ &.is-link {
149
+ @include button-plain($type);
150
+ }
151
+ }
152
+
153
+ @mixin button-size(
154
+ $padding-vertical,
155
+ $padding-horizontal,
156
+ $font-size,
157
+ $border-radius
158
+ ) {
159
+ padding: $padding-vertical $padding-horizontal;
160
+ font-size: $font-size;
161
+ border-radius: $border-radius;
162
+ &.is-round {
163
+ padding: $padding-vertical $padding-horizontal;
164
+ }
165
+ }
@@ -1,33 +1,33 @@
1
- @use 'sass:math';
2
-
3
- @use '../common/var' as *;
4
- @use 'mixins' as *;
5
-
6
- @mixin col-size($size) {
7
- @include res($size) {
8
- @for $i from 0 through 24 {
9
- .#{$namespace}-col-#{$size}-#{$i} {
10
- display: if($i == 0, none, block);
11
- max-width: (math.div(1, 24) * $i * 100) * 1%;
12
- flex: 0 0 (math.div(1, 24) * $i * 100) * 1%;
13
- @include when(guttered) {
14
- display: if($i == 0, none, block);
15
- }
16
- }
17
-
18
- .#{$namespace}-col-#{$size}-offset-#{$i} {
19
- margin-left: (math.div(1, 24) * $i * 100) * 1%;
20
- }
21
-
22
- .#{$namespace}-col-#{$size}-pull-#{$i} {
23
- position: relative;
24
- right: (math.div(1, 24) * $i * 100) * 1%;
25
- }
26
-
27
- .#{$namespace}-col-#{$size}-push-#{$i} {
28
- position: relative;
29
- left: (math.div(1, 24) * $i * 100) * 1%;
30
- }
31
- }
32
- }
33
- }
1
+ @use 'sass:math';
2
+
3
+ @use '../common/var' as *;
4
+ @use 'mixins' as *;
5
+
6
+ @mixin col-size($size) {
7
+ @include res($size) {
8
+ @for $i from 0 through 24 {
9
+ .#{$namespace}-col-#{$size}-#{$i} {
10
+ display: if($i == 0, none, block);
11
+ max-width: (math.div(1, 24) * $i * 100) * 1%;
12
+ flex: 0 0 (math.div(1, 24) * $i * 100) * 1%;
13
+ @include when(guttered) {
14
+ display: if($i == 0, none, block);
15
+ }
16
+ }
17
+
18
+ .#{$namespace}-col-#{$size}-offset-#{$i} {
19
+ margin-left: (math.div(1, 24) * $i * 100) * 1%;
20
+ }
21
+
22
+ .#{$namespace}-col-#{$size}-pull-#{$i} {
23
+ position: relative;
24
+ right: (math.div(1, 24) * $i * 100) * 1%;
25
+ }
26
+
27
+ .#{$namespace}-col-#{$size}-push-#{$i} {
28
+ position: relative;
29
+ left: (math.div(1, 24) * $i * 100) * 1%;
30
+ }
31
+ }
32
+ }
33
+ }
@@ -1,67 +1,67 @@
1
- @use 'sass:map';
2
- @use 'sass:color';
3
-
4
- @use 'config';
5
- @use 'function' as *;
6
- @use '../common/var' as *;
7
-
8
- // set css var value, because we need translate value to string
9
- // for example:
10
- // @include set-css-var-value(('color', 'primary'), red);
11
- // --el-color-primary: red;
12
- @mixin set-css-var-value($name, $value) {
13
- #{joinVarName($name)}: #{$value};
14
- }
15
-
16
- // @include set-css-var-type('color', 'primary', $map);
17
- // --el-color-primary: #{map.get($map, 'primary')};
18
- @mixin set-css-var-type($name, $type, $variables) {
19
- #{getCssVarName($name, $type)}: #{map.get($variables, $type)};
20
- }
21
-
22
- @mixin set-css-color-type($colors, $type) {
23
- @include set-css-var-value(('color', $type), map.get($colors, $type, 'base'));
24
-
25
- @each $i in (3, 5, 7, 8, 9) {
26
- @include set-css-var-value(
27
- ('color', $type, 'light', $i),
28
- map.get($colors, $type, 'light-#{$i}')
29
- );
30
- }
31
-
32
- @include set-css-var-value(
33
- ('color', $type, 'dark-2'),
34
- map.get($colors, $type, 'dark-2')
35
- );
36
- }
37
-
38
- // set all css var for component by map
39
- @mixin set-component-css-var($name, $variables) {
40
- @each $attribute, $value in $variables {
41
- @if $attribute == 'default' {
42
- #{getCssVarName($name)}: #{$value};
43
- } @else {
44
- #{getCssVarName($name, $attribute)}: #{$value};
45
- }
46
- }
47
- }
48
-
49
- @mixin set-css-color-rgb($type) {
50
- $color: map.get($colors, $type, 'base');
51
- @include set-css-var-value(
52
- ('color', $type, 'rgb'),
53
- #{color.channel($color, 'red'),
54
- color.channel($color, 'green'),
55
- color.channel($color, 'blue')}
56
- );
57
- }
58
-
59
- // generate css var from existing css var
60
- // for example:
61
- // @include css-var-from-global(('button', 'text-color'), ('color', $type))
62
- // --el-button-text-color: var(--el-color-#{$type});
63
- @mixin css-var-from-global($var, $gVar) {
64
- $varName: joinVarName($var);
65
- $gVarName: joinVarName($gVar);
66
- #{$varName}: var(#{$gVarName});
67
- }
1
+ @use 'sass:map';
2
+ @use 'sass:color';
3
+
4
+ @use 'config';
5
+ @use 'function' as *;
6
+ @use '../common/var' as *;
7
+
8
+ // set css var value, because we need translate value to string
9
+ // for example:
10
+ // @include set-css-var-value(('color', 'primary'), red);
11
+ // --el-color-primary: red;
12
+ @mixin set-css-var-value($name, $value) {
13
+ #{joinVarName($name)}: #{$value};
14
+ }
15
+
16
+ // @include set-css-var-type('color', 'primary', $map);
17
+ // --el-color-primary: #{map.get($map, 'primary')};
18
+ @mixin set-css-var-type($name, $type, $variables) {
19
+ #{getCssVarName($name, $type)}: #{map.get($variables, $type)};
20
+ }
21
+
22
+ @mixin set-css-color-type($colors, $type) {
23
+ @include set-css-var-value(('color', $type), map.get($colors, $type, 'base'));
24
+
25
+ @each $i in (3, 5, 7, 8, 9) {
26
+ @include set-css-var-value(
27
+ ('color', $type, 'light', $i),
28
+ map.get($colors, $type, 'light-#{$i}')
29
+ );
30
+ }
31
+
32
+ @include set-css-var-value(
33
+ ('color', $type, 'dark-2'),
34
+ map.get($colors, $type, 'dark-2')
35
+ );
36
+ }
37
+
38
+ // set all css var for component by map
39
+ @mixin set-component-css-var($name, $variables) {
40
+ @each $attribute, $value in $variables {
41
+ @if $attribute == 'default' {
42
+ #{getCssVarName($name)}: #{$value};
43
+ } @else {
44
+ #{getCssVarName($name, $attribute)}: #{$value};
45
+ }
46
+ }
47
+ }
48
+
49
+ @mixin set-css-color-rgb($type) {
50
+ $color: map.get($colors, $type, 'base');
51
+ @include set-css-var-value(
52
+ ('color', $type, 'rgb'),
53
+ #{color.channel($color, 'red'),
54
+ color.channel($color, 'green'),
55
+ color.channel($color, 'blue')}
56
+ );
57
+ }
58
+
59
+ // generate css var from existing css var
60
+ // for example:
61
+ // @include css-var-from-global(('button', 'text-color'), ('color', $type))
62
+ // --el-button-text-color: var(--el-color-#{$type});
63
+ @mixin css-var-from-global($var, $gVar) {
64
+ $varName: joinVarName($var);
65
+ $gVarName: joinVarName($gVar);
66
+ #{$varName}: var(#{$gVarName});
67
+ }
@@ -1,5 +1,5 @@
1
- $namespace: 'td' !default;
2
- $common-separator: '-' !default;
3
- $element-separator: '__' !default;
4
- $modifier-separator: '--' !default;
5
- $state-prefix: 'is-' !default;
1
+ $namespace: 'td' !default;
2
+ $common-separator: '-' !default;
3
+ $element-separator: '__' !default;
4
+ $modifier-separator: '--' !default;
5
+ $state-prefix: 'is-' !default;