@qsxy/element-plus-react 1.0.0-next.18 → 1.0.0-next.21

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 (144) hide show
  1. package/README.md +12 -39
  2. package/dist/Breadcrumb/BreadcrumbItem.js +4 -7
  3. package/dist/Switch/Switch.js +50 -17
  4. package/dist/Switch/typings.d.ts +4 -0
  5. package/dist/Tooltip/Tooltip.js +2 -1
  6. package/dist/index.css +1 -1
  7. package/dist/index.d.ts +5 -5
  8. package/dist/index.js +2 -2
  9. package/package.json +1 -2
  10. package/theme-chalk/{avatar/index.scss → avatar.scss} +1 -1
  11. package/theme-chalk/{badge/index.scss → badge.scss} +1 -1
  12. package/theme-chalk/{breadcrumb/index.scss → breadcrumb.scss} +1 -1
  13. package/theme-chalk/build.scss +1 -1
  14. package/theme-chalk/button/_mixins.scss +3 -3
  15. package/theme-chalk/button/button-group.scss +1 -1
  16. package/theme-chalk/button/button.scss +2 -2
  17. package/theme-chalk/button/index.scss +2 -2
  18. package/theme-chalk/button--bak/_mixins.scss +317 -0
  19. package/theme-chalk/button--bak/button-group.scss +83 -0
  20. package/theme-chalk/button--bak/button.scss +382 -0
  21. package/theme-chalk/button--bak/index.scss +2 -0
  22. package/theme-chalk/button-group.scss +80 -0
  23. package/theme-chalk/button.scss +304 -0
  24. package/theme-chalk/calendar/date-picker.scss +1 -1
  25. package/theme-chalk/calendar/date-range-picker.scss +1 -1
  26. package/theme-chalk/calendar/date-table.scss +164 -156
  27. package/theme-chalk/calendar/date-table.scss--bak +156 -0
  28. package/theme-chalk/calendar/index.scss +6 -6
  29. package/theme-chalk/calendar/month-table.scss +1 -1
  30. package/theme-chalk/calendar/picker-panel.scss +1 -1
  31. package/theme-chalk/calendar/year-table.scss +1 -1
  32. package/theme-chalk/{card/index.scss → card.scss} +1 -1
  33. package/theme-chalk/{carousel/index.scss → carousel.scss} +1 -1
  34. package/theme-chalk/{cascader/cascader-panel.scss → cascader-panel.scss} +1 -1
  35. package/theme-chalk/{cascader/cascader.scss → cascader.scss} +1 -1
  36. package/theme-chalk/{checkbox-button/index.scss → checkbox-button.scss} +1 -1
  37. package/theme-chalk/{checkbox-group/index.scss → checkbox-group.scss} +1 -1
  38. package/theme-chalk/{checkbox/index.scss → checkbox.scss} +2 -1
  39. package/theme-chalk/col/_mixins.scss +5 -3
  40. package/theme-chalk/col/index.scss +2 -2
  41. package/theme-chalk/{collapse/index.scss → collapse.scss} +1 -1
  42. package/theme-chalk/color/index.scss +20 -0
  43. package/theme-chalk/{color-picker/index.scss → color-picker.scss} +3 -3
  44. package/theme-chalk/common/index.scss +127 -178
  45. package/theme-chalk/common/var.scss +1632 -0
  46. package/theme-chalk/dark/css-vars.scss +39 -0
  47. package/theme-chalk/dark/var.scss +225 -0
  48. package/theme-chalk/{date-picker/index.scss → date-picker.scss} +1 -1
  49. package/theme-chalk/{date-time-picker/time-picker.scss → date-time-picker.scss} +1 -1
  50. package/theme-chalk/{descriptions/descriptions-item.scss → descriptions-item.scss} +1 -1
  51. package/theme-chalk/{descriptions/descriptions.scss → descriptions.scss} +1 -1
  52. package/theme-chalk/dev.scss +2 -2
  53. package/theme-chalk/{dialog/index.scss → dialog.scss} +1 -1
  54. package/theme-chalk/display.scss +1 -1
  55. package/theme-chalk/{divider/index.scss → divider.scss} +1 -1
  56. package/theme-chalk/doc.scss +2 -2
  57. package/theme-chalk/{drawer/index.scss → drawer.scss} +1 -1
  58. package/theme-chalk/{dropdown/index.scss → dropdown.scss} +1 -1
  59. package/theme-chalk/{empty/index.scss → empty.scss} +1 -1
  60. package/theme-chalk/{form/index.scss → form.scss} +1 -1
  61. package/theme-chalk/icon/fonts.scss +9 -9
  62. package/theme-chalk/icon/index.scss +1 -1
  63. package/theme-chalk/icon/scss/_animated.scss +1 -0
  64. package/theme-chalk/icon/scss/_bordered-pulled.scss +1 -0
  65. package/theme-chalk/icon/scss/_core.scss +2 -0
  66. package/theme-chalk/icon/scss/_duotone-icons.scss +3 -4
  67. package/theme-chalk/icon/scss/_fixed-width.scss +1 -0
  68. package/theme-chalk/icon/scss/_functions.scss +2 -1
  69. package/theme-chalk/icon/scss/_icons.scss +3 -4
  70. package/theme-chalk/icon/scss/_list.scss +1 -0
  71. package/theme-chalk/icon/scss/_mixins.scss +10 -7
  72. package/theme-chalk/icon/scss/_rotated-flipped.scss +1 -0
  73. package/theme-chalk/icon/scss/_screen-reader.scss +2 -0
  74. package/theme-chalk/icon/scss/_shims.scss +292 -290
  75. package/theme-chalk/icon/scss/_sizing.scss +2 -0
  76. package/theme-chalk/icon/scss/_stacked.scss +1 -0
  77. package/theme-chalk/icon/scss/brands.scss +8 -6
  78. package/theme-chalk/icon/scss/duotone.scss +6 -5
  79. package/theme-chalk/icon/scss/fontawesome.scss +13 -13
  80. package/theme-chalk/icon/scss/index.scss +12 -15
  81. package/theme-chalk/icon/scss/light.scss +3 -2
  82. package/theme-chalk/icon/scss/regular.scss +3 -2
  83. package/theme-chalk/icon/scss/solid.scss +3 -2
  84. package/theme-chalk/icon/scss/thin.scss +3 -2
  85. package/theme-chalk/icon/scss/{_variables.scss → variables.scss} +2 -0
  86. package/theme-chalk/index.scss +63 -57
  87. package/theme-chalk/input/_mixins.scss +1 -1
  88. package/theme-chalk/input/index.scss +2 -3
  89. package/theme-chalk/input/input-range.scss +2 -1
  90. package/theme-chalk/input/input.scss +2 -1
  91. package/theme-chalk/{input-number/index.scss → input-number.scss} +4 -4
  92. package/theme-chalk/{link/index.scss → link.scss} +1 -1
  93. package/theme-chalk/{loading/index.scss → loading.scss} +1 -1
  94. package/theme-chalk/{message-box/index.scss → message-box.scss} +1 -1
  95. package/theme-chalk/{message/index.scss → message.scss} +2 -1
  96. package/theme-chalk/mixins/_button.scss +224 -0
  97. package/theme-chalk/mixins/_col.scss +33 -0
  98. package/theme-chalk/mixins/_var.scss +67 -0
  99. package/theme-chalk/{common/_var.scss → mixins/config.scss} +5 -6
  100. package/theme-chalk/mixins/function.scss +99 -0
  101. package/theme-chalk/mixins/mixins.scss +240 -0
  102. package/theme-chalk/mixins/utils.scss +39 -0
  103. package/theme-chalk/{notification/index.scss → notification.scss} +2 -1
  104. package/theme-chalk/pagination.scss +303 -0
  105. package/theme-chalk/{popconfirm/index.scss → popconfirm.scss} +1 -1
  106. package/theme-chalk/{popover/index.scss → popover.scss} +1 -1
  107. package/theme-chalk/popper.scss +104 -0
  108. package/theme-chalk/{popper/index.scss → popper.scss--bak} +1 -1
  109. package/theme-chalk/{progress/index.scss → progress.scss} +1 -1
  110. package/theme-chalk/radio-button.scss +169 -0
  111. package/theme-chalk/{radio/radio-button.scss → radio-button.scss--bak} +1 -1
  112. package/theme-chalk/{radio-group/index.scss → radio-group.scss} +1 -10
  113. package/theme-chalk/{radio/radio.scss → radio.scss} +1 -1
  114. package/theme-chalk/{row/index.scss → row.scss} +1 -1
  115. package/theme-chalk/{scrollbar/index.scss → scrollbar.scss} +1 -1
  116. package/theme-chalk/select/index.scss +1 -1
  117. package/theme-chalk/{skeleton/index.scss → skeleton.scss} +1 -1
  118. package/theme-chalk/switch.scss +300 -0
  119. package/theme-chalk/{switch/index.scss → switch.scss--bak} +1 -1
  120. package/theme-chalk/{table/index.scss → table.scss} +1 -1
  121. package/theme-chalk/{tabs/index.scss → tabs.scss} +1 -1
  122. package/theme-chalk/{tag/index.scss → tag.scss} +1 -1
  123. package/theme-chalk/{time-line/_timeline.scss → time-line.scss} +1 -1
  124. package/theme-chalk/{time-picker/index.scss → time-picker.scss} +1 -1
  125. package/theme-chalk/{date-time-picker/time-range-picker.scss → time-range-picker.scss} +1 -1
  126. package/theme-chalk/{time-line/_timeline-item.scss → timeline-item.scss} +1 -1
  127. package/theme-chalk/{tooltip/index.scss → tooltip.scss} +1 -1
  128. package/theme-chalk/{transfer/index.scss → transfer.scss} +1 -1
  129. package/theme-chalk/{transition/index.scss → transition.scss} +1 -1
  130. package/theme-chalk/tree/_directory.scss +1 -1
  131. package/theme-chalk/tree/_tree.scss +1 -1
  132. package/theme-chalk/tree/index.scss +2 -2
  133. package/theme-chalk/{tree-select/index.scss → tree-select.scss} +1 -1
  134. package/theme-chalk/{upload/index.scss → upload.scss} +1 -1
  135. package/theme-chalk/var.scss +83 -0
  136. package/theme-chalk/cascader/index.scss +0 -2
  137. package/theme-chalk/common/index.ts +0 -1
  138. package/theme-chalk/date-time-picker/index.scss +0 -3
  139. package/theme-chalk/descriptions/index.scss +0 -2
  140. package/theme-chalk/icon/scss/v4-shims.scss +0 -3
  141. package/theme-chalk/pagination/index.scss +0 -303
  142. package/theme-chalk/placeholder/index.scss +0 -120
  143. package/theme-chalk/radio/index.scss +0 -2
  144. package/theme-chalk/time-line/index.scss +0 -2
@@ -0,0 +1,300 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/utils' as *;
5
+ @use 'mixins/var' as *;
6
+ @use 'common/var' as *;
7
+
8
+ $switch-height: () !default;
9
+ $switch-height: map.merge(
10
+ (
11
+ 'large': 40px,
12
+ 'default': 32px,
13
+ 'small': 24px,
14
+ ),
15
+ $switch-height
16
+ );
17
+
18
+ $switch-font-size: () !default;
19
+ $switch-font-size: map.merge(
20
+ (
21
+ 'large': 14px,
22
+ 'default': 14px,
23
+ 'small': 12px,
24
+ ),
25
+ $switch-font-size
26
+ );
27
+
28
+ $switch-core-border-radius: () !default;
29
+ $switch-core-border-radius: map.merge(
30
+ (
31
+ 'large': 12px,
32
+ 'default': 10px,
33
+ 'small': 8px,
34
+ ),
35
+ $switch-core-border-radius
36
+ );
37
+
38
+ $switch-core-width: () !default;
39
+ $switch-core-width: map.merge(
40
+ (
41
+ 'large': 50px,
42
+ 'default': 40px,
43
+ 'small': 30px,
44
+ ),
45
+ $switch-core-width
46
+ );
47
+
48
+ $switch-core-height: () !default;
49
+ $switch-core-height: map.merge(
50
+ (
51
+ 'large': 24px,
52
+ 'default': 20px,
53
+ 'small': 16px,
54
+ ),
55
+ $switch-core-height
56
+ );
57
+
58
+ $switch-button-size: () !default;
59
+ $switch-button-size: map.merge(
60
+ (
61
+ 'large': 20px,
62
+ 'default': 16px,
63
+ 'small': 12px,
64
+ ),
65
+ $switch-button-size
66
+ );
67
+
68
+ $switch-content-padding: () !default;
69
+ $switch-content-padding: map.merge(
70
+ (
71
+ 'large': 6px,
72
+ 'default': 4px,
73
+ 'small': 2px,
74
+ ),
75
+ $switch-content-padding
76
+ );
77
+
78
+ @include b(switch) {
79
+ @include set-component-css-var('switch', $switch);
80
+ }
81
+
82
+ @include b(switch) {
83
+ display: inline-flex;
84
+ align-items: center;
85
+ position: relative;
86
+ font-size: map.get($switch-font-size, 'default');
87
+ line-height: map.get($switch-core-height, 'default');
88
+ height: map.get($switch-height, 'default');
89
+ vertical-align: middle;
90
+
91
+ @include when(disabled) {
92
+ & .#{$namespace}-switch__core,
93
+ & .#{$namespace}-switch__label {
94
+ cursor: not-allowed;
95
+ }
96
+ }
97
+
98
+ @include e(label) {
99
+ transition: getCssVar('transition-duration-fast');
100
+ height: map.get($switch-core-height, 'default');
101
+ display: inline-block;
102
+ font-size: map.get($switch-font-size, 'default');
103
+ font-weight: 500;
104
+ cursor: pointer;
105
+ vertical-align: middle;
106
+ color: getCssVar('text-color', 'primary');
107
+
108
+ @include when(active) {
109
+ color: getCssVar('color-primary');
110
+ }
111
+
112
+ @include m(left) {
113
+ margin-right: 10px;
114
+ }
115
+ @include m(right) {
116
+ margin-left: 10px;
117
+ }
118
+ & * {
119
+ line-height: 1;
120
+ font-size: map.get($switch-font-size, 'default');
121
+ display: inline-block;
122
+ }
123
+ .#{$namespace}-icon {
124
+ height: inherit;
125
+
126
+ svg {
127
+ vertical-align: middle;
128
+ }
129
+ }
130
+ }
131
+
132
+ @include e(input) {
133
+ position: absolute;
134
+ width: 0;
135
+ height: 0;
136
+ opacity: 0;
137
+ margin: 0;
138
+
139
+ &:focus-visible {
140
+ & ~ .#{$namespace}-switch__core {
141
+ outline: 2px solid getCssVar('switch-on-color');
142
+ outline-offset: 1px;
143
+ }
144
+ }
145
+ }
146
+
147
+ @include e(core) {
148
+ display: inline-flex;
149
+ position: relative;
150
+ align-items: center;
151
+ min-width: map.get($switch-core-width, 'default');
152
+ height: map.get($switch-core-height, 'default');
153
+ border: 1px solid
154
+ var(
155
+ #{getCssVarName('switch-border-color')},
156
+ #{getCssVar('switch-off-color')}
157
+ );
158
+ outline: none;
159
+ border-radius: map.get($switch-core-border-radius, 'default');
160
+ box-sizing: border-box;
161
+ background: getCssVar('switch-off-color');
162
+ cursor: pointer;
163
+ transition: border-color getCssVar('transition-duration'),
164
+ background-color getCssVar('transition-duration');
165
+
166
+ .#{$namespace}-switch__inner {
167
+ width: 100%;
168
+ transition: all getCssVar('transition-duration');
169
+ height: map.get($switch-button-size, 'default');
170
+ display: flex;
171
+ justify-content: center;
172
+ align-items: center;
173
+ overflow: hidden;
174
+ padding: 0 #{map.get($switch-content-padding, 'default')} 0 calc(#{map.get(
175
+ $switch-button-size,
176
+ 'default'
177
+ )} + 2px);
178
+
179
+ .is-icon,
180
+ .is-text {
181
+ font-size: 12px;
182
+ color: getCssVar('color-white');
183
+ user-select: none;
184
+ @include utils-ellipsis;
185
+ }
186
+ }
187
+
188
+ .#{$namespace}-switch__action {
189
+ position: absolute;
190
+ left: 1px;
191
+ border-radius: getCssVar('border-radius-circle');
192
+ transition: all getCssVar('transition-duration');
193
+ width: map.get($switch-button-size, 'default');
194
+ height: map.get($switch-button-size, 'default');
195
+ background-color: getCssVar('color-white');
196
+ display: flex;
197
+ justify-content: center;
198
+ align-items: center;
199
+ color: getCssVar('switch-off-color');
200
+ }
201
+ }
202
+
203
+ @include when(checked) {
204
+ .#{$namespace}-switch__core {
205
+ border-color: var(
206
+ #{getCssVarName('switch-border-color')},
207
+ #{getCssVar('switch-on-color')}
208
+ );
209
+ background-color: getCssVar('switch-on-color');
210
+
211
+ .#{$namespace}-switch__action {
212
+ left: calc(100% - #{map.get($switch-button-size, 'default') + 1px});
213
+ color: getCssVar('switch-on-color');
214
+ }
215
+
216
+ .#{$namespace}-switch__inner {
217
+ padding: 0 calc(#{map.get($switch-button-size, 'default')} + 2px) 0 #{map.get(
218
+ $switch-content-padding,
219
+ 'default'
220
+ )};
221
+ }
222
+ }
223
+ }
224
+
225
+ @include when(disabled) {
226
+ opacity: 0.6;
227
+ }
228
+
229
+ @include m(wide) {
230
+ .#{$namespace}-switch__label {
231
+ &.#{$namespace}-switch__label--left {
232
+ span {
233
+ left: 10px;
234
+ }
235
+ }
236
+
237
+ &.#{$namespace}-switch__label--right {
238
+ span {
239
+ right: 10px;
240
+ }
241
+ }
242
+ }
243
+ }
244
+
245
+ & .label-fade-enter-from,
246
+ & .label-fade-leave-active {
247
+ opacity: 0;
248
+ }
249
+
250
+ @each $size in (large, small) {
251
+ @include m($size) {
252
+ font-size: map.get($switch-font-size, $size);
253
+ line-height: map.get($switch-core-height, $size);
254
+ height: map.get($switch-height, $size);
255
+
256
+ @include e(label) {
257
+ height: map.get($switch-core-height, $size);
258
+ font-size: map.get($switch-font-size, $size);
259
+
260
+ & * {
261
+ font-size: map.get($switch-font-size, $size);
262
+ }
263
+ }
264
+
265
+ @include e(core) {
266
+ min-width: map.get($switch-core-width, $size);
267
+ height: map.get($switch-core-height, $size);
268
+ border-radius: map.get($switch-core-border-radius, $size);
269
+
270
+ .#{$namespace}-switch__inner {
271
+ height: map.get($switch-button-size, $size);
272
+ padding: 0 #{map.get($switch-content-padding, $size)} 0 calc(#{map.get(
273
+ $switch-button-size,
274
+ $size
275
+ )} + 2px);
276
+ }
277
+
278
+ .#{$namespace}-switch__action {
279
+ width: map.get($switch-button-size, $size);
280
+ height: map.get($switch-button-size, $size);
281
+ }
282
+ }
283
+
284
+ @include when(checked) {
285
+ .#{$namespace}-switch__core {
286
+ .#{$namespace}-switch__action {
287
+ left: calc(100% - #{map.get($switch-button-size, $size) + 1px});
288
+ }
289
+
290
+ .#{$namespace}-switch__inner {
291
+ padding: 0 calc(#{map.get($switch-button-size, $size)} + 2px) 0 #{map.get(
292
+ $switch-content-padding,
293
+ $size
294
+ )};
295
+ }
296
+ }
297
+ }
298
+ }
299
+ }
300
+ }
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  @use 'sass:map';
4
4
 
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  @use 'sass:map';
4
4
 
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-tabs {
4
4
  --#{$namespace}-tabs-header-height: 40px;
@@ -1,5 +1,5 @@
1
1
  @use 'sass:map';
2
- @use '../common/var';
2
+ @use './mixins/config' as *;
3
3
 
4
4
  @function joinVarName($list) {
5
5
  $name: '';
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-timeline {
4
4
  --#{$namespace}-timeline-node-size-normal: 12px;
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-time-spinner {
4
4
  &.has-seconds {
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-time-range-picker {
4
4
  width: 354px;
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-timeline-item {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-tooltip__popper {
4
4
  position: absolute;
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-transfer {
4
4
  --#{$namespace}-transfer-border-color: var(--#{$namespace}-border-color);
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  // layuid动画,右侧滑入
4
4
  @keyframes rl {
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use '../mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-tree.#{$namespace}-tree-directory {
4
4
  // ================== TreeNode ==================
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use '../mixins/config' as *;
2
2
 
3
3
  // @mixin antTreeSwitcherIcon($type: 'tree-default-open-icon') {
4
4
  .#{$namespace}-tree-switcher-icon {
@@ -1,2 +1,2 @@
1
- @import './tree';
2
- @import './directory';
1
+ @use './tree';
2
+ @use './directory';
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-select-dropdown__list {
4
4
  .#{$namespace}-tree.#{$namespace}-tree-directory {
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  @mixin upload-success($color: null) {
4
4
  right: -15px;
@@ -0,0 +1,83 @@
1
+ // CSS3 var
2
+ @use 'common/var' as *;
3
+ @use 'mixins/var' as *;
4
+ @use 'mixins/mixins' as *;
5
+
6
+ // for better performance do not dynamically change the root variable if you really
7
+ // do not need that, since this could introduce recalculation overhead for rendering.
8
+ // https://lisilinhart.info/posts/css-variables-performance/
9
+
10
+ // common
11
+ :root {
12
+ @include set-css-var-value('color-white', $color-white);
13
+ @include set-css-var-value('color-black', $color-black);
14
+
15
+ // get rgb
16
+ @each $type in (primary, success, warning, danger, error, info) {
17
+ @include set-css-color-rgb($type);
18
+ }
19
+
20
+ // Typography
21
+ @include set-component-css-var('font-size', $font-size);
22
+ @include set-component-css-var('font-family', $font-family);
23
+
24
+ @include set-css-var-value('font-weight-primary', 500);
25
+ @include set-css-var-value('font-line-height-primary', 24px);
26
+
27
+ // z-index --el-index-#{$type}
28
+ @include set-component-css-var('index', $z-index);
29
+
30
+ // --el-border-radius-#{$type}
31
+ @include set-component-css-var('border-radius', $border-radius);
32
+
33
+ // Transition
34
+ // refer to this website to get the bezier motion function detail
35
+ // https://cubic-bezier.com/#p1,p2,p3,p4 (change px as your function parameter)
36
+ @include set-component-css-var('transition-duration', $transition-duration);
37
+
38
+ @include set-component-css-var('transition-function', $transition-function);
39
+ @include set-component-css-var('transition', $transition);
40
+
41
+ // common component size
42
+ @include set-component-css-var('component-size', $common-component-size);
43
+ }
44
+
45
+ // for light
46
+ :root {
47
+ color-scheme: light;
48
+
49
+ // --el-color-#{$type}
50
+ // --el-color-#{$type}-light-{$i}
51
+ @each $type in (primary, success, warning, danger, error, info) {
52
+ @include set-css-color-type($colors, $type);
53
+ }
54
+
55
+ // color-scheme
56
+ // Background --el-bg-color-#{$type}
57
+ @include set-component-css-var('bg-color', $bg-color);
58
+ // --el-text-color-#{$type}
59
+ @include set-component-css-var('text-color', $text-color);
60
+ // --el-border-color-#{$type}
61
+ @include set-component-css-var('border-color', $border-color);
62
+ // Fill --el-fill-color-#{$type}
63
+ @include set-component-css-var('fill-color', $fill-color);
64
+
65
+ // Box-shadow
66
+ // --el-box-shadow-#{$type}
67
+ @include set-component-css-var('box-shadow', $box-shadow);
68
+ // Disable base
69
+ @include set-component-css-var('disabled', $disabled);
70
+
71
+ // overlay & mask
72
+ @include set-component-css-var('overlay-color', $overlay-color);
73
+ @include set-component-css-var('mask-color', $mask-color);
74
+
75
+ // Border
76
+ @include set-css-var-value('border-width', $border-width);
77
+ @include set-css-var-value('border-style', $border-style);
78
+ @include set-css-var-value('border-color-hover', $border-color-hover);
79
+ @include set-css-var-value('border', getCssVar('border-width') getCssVar('border-style') getCssVar('border-color'));
80
+
81
+ // Svg
82
+ @include css-var-from-global('svg-monochrome-grey', 'border-color');
83
+ }
@@ -1,2 +0,0 @@
1
- @import './cascader';
2
- @import './cascader-panel';
@@ -1 +0,0 @@
1
- import './styles/index.scss';
@@ -1,3 +0,0 @@
1
- @import './time-picker';
2
- // @forward './time-spinner.scss';
3
- @import './time-range-picker';
@@ -1,2 +0,0 @@
1
- @import './descriptions.scss';
2
- @import './descriptions-item.scss';
@@ -1,3 +0,0 @@
1
- @import 'functions';
2
- @import 'variables';
3
- @import 'shims';