ep-craft 0.1.2 → 0.1.3

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/dist/components/button/EpButton.vue.d.ts +4 -4
  2. package/dist/components/button/EpButton.vue.js +19 -19
  3. package/dist/components/button/button.d.ts +2 -2
  4. package/dist/components/button/button.js +1 -1
  5. package/dist/components/button/index.d.ts +2 -1
  6. package/dist/components/button/index.js +4 -3
  7. package/dist/index.css +2 -2
  8. package/dist/resolver.js +9 -12
  9. package/package.json +4 -2
  10. package/theme-chalk/src/affix.scss +7 -0
  11. package/theme-chalk/src/alert.scss +115 -0
  12. package/theme-chalk/src/anchor-link.scss +45 -0
  13. package/theme-chalk/src/anchor.scss +93 -0
  14. package/theme-chalk/src/aside.scss +8 -0
  15. package/theme-chalk/src/autocomplete.scss +95 -0
  16. package/theme-chalk/src/avatar-group.scss +25 -0
  17. package/theme-chalk/src/avatar.scss +55 -0
  18. package/theme-chalk/src/backtop.scss +29 -0
  19. package/theme-chalk/src/badge.scss +58 -0
  20. package/theme-chalk/src/base.scss +3 -0
  21. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  22. package/theme-chalk/src/breadcrumb.scss +9 -0
  23. package/theme-chalk/src/button-group.scss +133 -0
  24. package/theme-chalk/src/button.scss +325 -0
  25. package/theme-chalk/src/calendar.scss +94 -0
  26. package/theme-chalk/src/card.scss +49 -0
  27. package/theme-chalk/src/carousel-item.scss +58 -0
  28. package/theme-chalk/src/carousel.scss +195 -0
  29. package/theme-chalk/src/cascader-panel.scss +150 -0
  30. package/theme-chalk/src/cascader.scss +289 -0
  31. package/theme-chalk/src/check-tag.scss +60 -0
  32. package/theme-chalk/src/checkbox-button.scss +142 -0
  33. package/theme-chalk/src/checkbox-group.scss +7 -0
  34. package/theme-chalk/src/checkbox.scss +300 -0
  35. package/theme-chalk/src/col.scss +56 -0
  36. package/theme-chalk/src/collapse-item.scss +72 -0
  37. package/theme-chalk/src/collapse-transition.scss +1 -0
  38. package/theme-chalk/src/collapse.scss +29 -0
  39. package/theme-chalk/src/color/index.scss +20 -0
  40. package/theme-chalk/src/color-picker-panel.scss +294 -0
  41. package/theme-chalk/src/color-picker.scss +165 -0
  42. package/theme-chalk/src/common/popup.scss +47 -0
  43. package/theme-chalk/src/common/transition.scss +125 -0
  44. package/theme-chalk/src/common/var.scss +1730 -0
  45. package/theme-chalk/src/config-provider.scss +0 -0
  46. package/theme-chalk/src/container.scss +14 -0
  47. package/theme-chalk/src/dark/css-vars.scss +45 -0
  48. package/theme-chalk/src/dark/var.scss +224 -0
  49. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  50. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  51. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  52. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  53. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  54. package/theme-chalk/src/date-picker/picker.scss +217 -0
  55. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  56. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  57. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  58. package/theme-chalk/src/date-picker/utils.scss +14 -0
  59. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  60. package/theme-chalk/src/date-picker-panel.scss +34 -0
  61. package/theme-chalk/src/date-picker.scss +0 -0
  62. package/theme-chalk/src/descriptions-item.scss +77 -0
  63. package/theme-chalk/src/descriptions.scss +151 -0
  64. package/theme-chalk/src/dialog.scss +207 -0
  65. package/theme-chalk/src/display.scss +12 -0
  66. package/theme-chalk/src/divider.scss +48 -0
  67. package/theme-chalk/src/drawer.scss +251 -0
  68. package/theme-chalk/src/dropdown-item.scss +0 -0
  69. package/theme-chalk/src/dropdown-menu.scss +0 -0
  70. package/theme-chalk/src/dropdown.scss +208 -0
  71. package/theme-chalk/src/empty.scss +49 -0
  72. package/theme-chalk/src/footer.scss +12 -0
  73. package/theme-chalk/src/form-item.scss +246 -0
  74. package/theme-chalk/src/form.scss +28 -0
  75. package/theme-chalk/src/header.scss +12 -0
  76. package/theme-chalk/src/icon.scss +41 -0
  77. package/theme-chalk/src/image-viewer.scss +161 -0
  78. package/theme-chalk/src/image.scss +49 -0
  79. package/theme-chalk/src/index.scss +116 -0
  80. package/theme-chalk/src/infinite-scroll.scss +0 -0
  81. package/theme-chalk/src/input-number.scss +192 -0
  82. package/theme-chalk/src/input-otp.scss +191 -0
  83. package/theme-chalk/src/input-tag.scss +249 -0
  84. package/theme-chalk/src/input.scss +541 -0
  85. package/theme-chalk/src/link.scss +90 -0
  86. package/theme-chalk/src/loading.scss +104 -0
  87. package/theme-chalk/src/main.scss +14 -0
  88. package/theme-chalk/src/mention.scss +88 -0
  89. package/theme-chalk/src/menu-item-group.scss +0 -0
  90. package/theme-chalk/src/menu-item.scss +0 -0
  91. package/theme-chalk/src/menu.scss +376 -0
  92. package/theme-chalk/src/message-box.scss +220 -0
  93. package/theme-chalk/src/message.scss +123 -0
  94. package/theme-chalk/src/mixins/_button.scss +240 -0
  95. package/theme-chalk/src/mixins/_col.scss +41 -0
  96. package/theme-chalk/src/mixins/_var.scss +67 -0
  97. package/theme-chalk/src/mixins/config.scss +5 -0
  98. package/theme-chalk/src/mixins/function.scss +99 -0
  99. package/theme-chalk/src/mixins/mixins.scss +257 -0
  100. package/theme-chalk/src/mixins/utils.scss +39 -0
  101. package/theme-chalk/src/notification.scss +109 -0
  102. package/theme-chalk/src/option-group.scss +33 -0
  103. package/theme-chalk/src/option.scss +71 -0
  104. package/theme-chalk/src/overlay.scss +17 -0
  105. package/theme-chalk/src/page-header.scss +60 -0
  106. package/theme-chalk/src/pagination.scss +235 -0
  107. package/theme-chalk/src/popconfirm.scss +17 -0
  108. package/theme-chalk/src/popover.scss +61 -0
  109. package/theme-chalk/src/popper.scss +117 -0
  110. package/theme-chalk/src/progress.scss +179 -0
  111. package/theme-chalk/src/radio-button.scss +165 -0
  112. package/theme-chalk/src/radio-group.scss +9 -0
  113. package/theme-chalk/src/radio.scss +220 -0
  114. package/theme-chalk/src/rate.scss +121 -0
  115. package/theme-chalk/src/reset.scss +99 -0
  116. package/theme-chalk/src/result.scss +57 -0
  117. package/theme-chalk/src/row.scss +34 -0
  118. package/theme-chalk/src/scrollbar.scss +97 -0
  119. package/theme-chalk/src/segmented.scss +186 -0
  120. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  121. package/theme-chalk/src/select-dropdown.scss +57 -0
  122. package/theme-chalk/src/select-v2.scss +4 -0
  123. package/theme-chalk/src/select.scss +269 -0
  124. package/theme-chalk/src/skeleton-item.scss +83 -0
  125. package/theme-chalk/src/skeleton.scss +44 -0
  126. package/theme-chalk/src/slider.scss +212 -0
  127. package/theme-chalk/src/space.scss +20 -0
  128. package/theme-chalk/src/spinner.scss +43 -0
  129. package/theme-chalk/src/splitter-panel.scss +8 -0
  130. package/theme-chalk/src/splitter.scss +148 -0
  131. package/theme-chalk/src/statistic.scss +35 -0
  132. package/theme-chalk/src/step.scss +320 -0
  133. package/theme-chalk/src/steps.scss +22 -0
  134. package/theme-chalk/src/sub-menu.scss +0 -0
  135. package/theme-chalk/src/switch.scss +294 -0
  136. package/theme-chalk/src/tab-pane.scss +0 -0
  137. package/theme-chalk/src/table-column.scss +100 -0
  138. package/theme-chalk/src/table-v2.scss +239 -0
  139. package/theme-chalk/src/table.scss +698 -0
  140. package/theme-chalk/src/tabs.scss +699 -0
  141. package/theme-chalk/src/tag.scss +195 -0
  142. package/theme-chalk/src/text.scss +51 -0
  143. package/theme-chalk/src/time-picker.scss +5 -0
  144. package/theme-chalk/src/time-select.scss +37 -0
  145. package/theme-chalk/src/timeline-item.scss +135 -0
  146. package/theme-chalk/src/timeline.scss +101 -0
  147. package/theme-chalk/src/tooltip.scss +0 -0
  148. package/theme-chalk/src/tour.scss +187 -0
  149. package/theme-chalk/src/transfer.scss +201 -0
  150. package/theme-chalk/src/tree-select.scss +41 -0
  151. package/theme-chalk/src/tree.scss +134 -0
  152. package/theme-chalk/src/upload.scss +660 -0
  153. package/theme-chalk/src/var.scss +87 -0
  154. package/theme-chalk/src/virtual-list.scss +40 -0
@@ -0,0 +1,541 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @mixin inset-prepend-border($color) {
8
+ box-shadow:
9
+ 1px 0 0 0 $color inset,
10
+ 0 1px 0 0 $color inset,
11
+ 0 -1px 0 0 $color inset;
12
+ }
13
+
14
+ @mixin inset-append-border($color) {
15
+ box-shadow:
16
+ 0 1px 0 0 $color inset,
17
+ 0 -1px 0 0 $color inset,
18
+ -1px 0 0 0 $color inset;
19
+ }
20
+
21
+ @mixin inset-prepend-input-border($color) {
22
+ box-shadow:
23
+ 1px 0 0 0 $color inset,
24
+ 1px 0 0 0 $color,
25
+ 0 1px 0 0 $color inset,
26
+ 0 -1px 0 0 $color inset !important;
27
+ }
28
+
29
+ @mixin inset-append-input-border($color) {
30
+ box-shadow:
31
+ -1px 0 0 0 $color,
32
+ -1px 0 0 0 $color inset,
33
+ 0 1px 0 0 $color inset,
34
+ 0 -1px 0 0 $color inset !important;
35
+ }
36
+
37
+ @mixin mixed-input-border($color) {
38
+ box-shadow: 0 0 0 1px $color inset;
39
+ }
40
+
41
+ @include b(textarea) {
42
+ @include set-component-css-var('input', $input);
43
+ }
44
+
45
+ @include b(textarea) {
46
+ position: relative;
47
+ display: inline-block;
48
+ width: 100%;
49
+ vertical-align: bottom;
50
+ font-size: getCssVar('font-size', 'base');
51
+
52
+ @include e(inner) {
53
+ position: relative;
54
+ display: block;
55
+ resize: vertical;
56
+ padding: 5px map.get($input-padding-horizontal, 'default')-$border-width;
57
+ line-height: 1.5;
58
+ box-sizing: border-box;
59
+ width: 100%;
60
+ font-size: inherit;
61
+ font-family: inherit;
62
+ color: var(
63
+ #{getCssVarName('input-text-color')},
64
+ map.get($input, 'text-color')
65
+ );
66
+ background-color: var(
67
+ #{getCssVarName('input-bg-color')},
68
+ map.get($input, 'bg-color')
69
+ );
70
+ background-image: none;
71
+ -webkit-appearance: none;
72
+ @include inset-input-border(
73
+ var(
74
+ #{getCssVarName('input-border-color')},
75
+ map.get($input, 'border-color')
76
+ )
77
+ );
78
+ border-radius: getCssVarWithDefault(
79
+ 'input-border-radius',
80
+ map.get($input, 'border-radius')
81
+ );
82
+ transition: getCssVar('transition-box-shadow');
83
+ border: none;
84
+
85
+ @include when(clearable) {
86
+ padding: 5px map.get($input-padding-horizontal, 'default') + 14px 5px
87
+ map.get($input-padding-horizontal, 'default')-$border-width;
88
+ }
89
+
90
+ &::placeholder {
91
+ color: getCssVarWithDefault(
92
+ 'input-placeholder-color',
93
+ map.get($input, 'placeholder-color')
94
+ );
95
+ }
96
+
97
+ &:hover {
98
+ @include inset-input-border(#{getCssVar('input', 'hover-border-color')});
99
+ }
100
+
101
+ &:focus {
102
+ outline: none;
103
+ @include inset-input-border(#{getCssVar('input', 'focus-border-color')});
104
+ }
105
+ }
106
+
107
+ @include e(clear) {
108
+ position: absolute;
109
+ right: 11px;
110
+ top: 15px;
111
+ transform: translateY(-50%);
112
+ color: getCssVar('input-icon-color');
113
+ font-size: map.get($input-font-size, 'default');
114
+ cursor: pointer;
115
+
116
+ &:hover {
117
+ color: getCssVar('input-clear-hover-color');
118
+ }
119
+ }
120
+
121
+ & .#{$namespace}-input__count {
122
+ color: getCssVar('color-info');
123
+ background: getCssVar('fill-color', 'blank');
124
+ position: absolute;
125
+ font-size: 12px;
126
+ line-height: 14px;
127
+ bottom: 5px;
128
+ right: 10px;
129
+
130
+ @include when(outside) {
131
+ position: absolute;
132
+ background: transparent;
133
+ padding-top: 2px;
134
+ top: 100%;
135
+ right: 0;
136
+ bottom: unset;
137
+ line-height: 1;
138
+ }
139
+ }
140
+
141
+ @include when(disabled) {
142
+ .#{$namespace}-textarea__inner {
143
+ @include inset-input-border(#{getCssVar('disabled-border-color')});
144
+ background-color: map.get($input-disabled, 'fill');
145
+ color: map.get($input-disabled, 'text-color');
146
+ cursor: not-allowed;
147
+
148
+ &::placeholder {
149
+ color: map.get($input-disabled, 'placeholder-color');
150
+ }
151
+ }
152
+ }
153
+
154
+ @include when(exceed) {
155
+ .#{$namespace}-textarea__inner {
156
+ @include mixed-input-border(#{getCssVar('color-danger')});
157
+ }
158
+
159
+ .#{$namespace}-input__count {
160
+ color: getCssVar('color-danger');
161
+ }
162
+ }
163
+ }
164
+
165
+ @include b(input) {
166
+ @include set-component-css-var('input', $input);
167
+ }
168
+
169
+ @include b(input) {
170
+ @include css-var-from-global('input-height', 'component-size');
171
+
172
+ position: relative;
173
+ font-size: getCssVar('font-size', 'base');
174
+ display: inline-flex;
175
+ width: getCssVar('input-width');
176
+ line-height: getCssVar('input-height');
177
+ box-sizing: border-box;
178
+ vertical-align: middle;
179
+ @include scroll-bar;
180
+
181
+ & .#{$namespace}-input__clear,
182
+ & .#{$namespace}-input__password {
183
+ color: getCssVar('input-icon-color');
184
+ font-size: map.get($input-font-size, 'default');
185
+ cursor: pointer;
186
+
187
+ &:hover {
188
+ color: getCssVar('input-clear-hover-color');
189
+ }
190
+ }
191
+
192
+ & .#{$namespace}-input__count {
193
+ height: 100%;
194
+ display: inline-flex;
195
+ align-items: center;
196
+ color: getCssVar('color-info');
197
+ font-size: 12px;
198
+
199
+ .#{$namespace}-input__count-inner {
200
+ background: getCssVar('fill-color', 'blank');
201
+ line-height: initial;
202
+ display: inline-block;
203
+ padding-left: 8px;
204
+ }
205
+
206
+ @include when(outside) {
207
+ height: unset;
208
+ position: absolute;
209
+ padding-top: 2px;
210
+ top: 100%;
211
+ right: 0;
212
+
213
+ .#{$namespace}-input__count-inner {
214
+ background: transparent;
215
+ padding-left: 0px;
216
+ line-height: 1;
217
+ }
218
+ }
219
+ }
220
+
221
+ @include e(wrapper) {
222
+ display: inline-flex;
223
+ flex-grow: 1;
224
+ align-items: center;
225
+ justify-content: center;
226
+ padding: $border-width
227
+ map.get($input-padding-horizontal, 'default')-$border-width;
228
+ background-color: var(
229
+ #{getCssVarName('input-bg-color')},
230
+ map.get($input, 'bg-color')
231
+ );
232
+ background-image: none;
233
+ border-radius: getCssVarWithDefault(
234
+ 'input-border-radius',
235
+ map.get($input, 'border-radius')
236
+ );
237
+ cursor: text;
238
+ transition: getCssVar('transition-box-shadow');
239
+ transform: translate3d(0, 0, 0);
240
+ @include inset-input-border(
241
+ var(
242
+ #{getCssVarName('input-border-color')},
243
+ map.get($input, 'border-color')
244
+ )
245
+ );
246
+
247
+ &:hover {
248
+ @include inset-input-border(#{getCssVar('input', 'hover-border-color')});
249
+ }
250
+
251
+ @include when(focus) {
252
+ @include inset-input-border(#{getCssVar('input', 'focus-border-color')});
253
+ }
254
+ }
255
+
256
+ & {
257
+ // use map.get as default value for date picker range
258
+ @include set-css-var-value(
259
+ 'input-inner-height',
260
+ calc(
261
+ var(
262
+ #{getCssVarName('input-height')},
263
+ #{map.get($input-height, 'default')}
264
+ ) -
265
+ $border-width * 2
266
+ )
267
+ );
268
+ }
269
+
270
+ @include e(inner) {
271
+ width: 100%;
272
+ flex-grow: 1;
273
+ -webkit-appearance: none;
274
+ color: var(
275
+ #{getCssVarName('input-text-color')},
276
+ map.get($input, 'text-color')
277
+ );
278
+ font-size: inherit;
279
+ height: getCssVar('input-inner-height');
280
+ line-height: getCssVar('input-inner-height');
281
+ padding: 0;
282
+ outline: none;
283
+ border: none;
284
+ background: none;
285
+ box-sizing: border-box;
286
+
287
+ &:focus {
288
+ outline: none;
289
+ }
290
+
291
+ &::placeholder {
292
+ color: getCssVarWithDefault(
293
+ 'input-placeholder-color',
294
+ map.get($input, 'placeholder-color')
295
+ );
296
+ }
297
+
298
+ // override edge default style
299
+ &[type='password']::-ms-reveal {
300
+ display: none;
301
+ }
302
+
303
+ &[type='number'] {
304
+ line-height: 1;
305
+ }
306
+ }
307
+
308
+ @each $slot in (prefix, suffix) {
309
+ @include e($slot) {
310
+ display: inline-flex;
311
+ white-space: nowrap;
312
+ flex-shrink: 0;
313
+ flex-wrap: nowrap;
314
+ height: 100%;
315
+ line-height: getCssVar('input-inner-height');
316
+ text-align: center;
317
+ color: var(
318
+ #{getCssVarName('input-icon-color')},
319
+ map.get($input, 'icon-color')
320
+ );
321
+ transition: all getCssVar('transition-duration');
322
+ pointer-events: none;
323
+ }
324
+
325
+ @include e(#{$slot}-inner) {
326
+ pointer-events: all;
327
+ display: inline-flex;
328
+ align-items: center;
329
+ justify-content: center;
330
+
331
+ @if $slot == prefix {
332
+ > :last-child {
333
+ margin-right: 8px;
334
+ }
335
+
336
+ > :first-child {
337
+ &,
338
+ &.#{$namespace}-input__icon {
339
+ margin-left: 0;
340
+ }
341
+ }
342
+ } @else {
343
+ > :first-child {
344
+ margin-left: 8px;
345
+ }
346
+ }
347
+ }
348
+ }
349
+
350
+ & .#{$namespace}-input__icon {
351
+ height: inherit;
352
+ line-height: inherit;
353
+ display: flex;
354
+ justify-content: center;
355
+ align-items: center;
356
+ transition: all getCssVar('transition-duration');
357
+ margin-left: 8px;
358
+ }
359
+
360
+ & .#{$namespace}-input__clear {
361
+ transition: color getCssVar('transition-duration');
362
+ }
363
+
364
+ @include e(validateIcon) {
365
+ pointer-events: none;
366
+ }
367
+
368
+ @include when(active) {
369
+ .#{$namespace}-input__wrapper {
370
+ @include mixed-input-border(
371
+ var(
372
+ #{getCssVarName('input-focus-color')},
373
+ map.get($input, 'focus-color')
374
+ )
375
+ );
376
+ }
377
+ }
378
+
379
+ @include when(disabled) {
380
+ cursor: not-allowed;
381
+
382
+ .#{$namespace}-input__wrapper {
383
+ background-color: map.get($input-disabled, 'fill');
384
+ cursor: not-allowed;
385
+ @include mixed-input-border(map.get($input-disabled, 'border'));
386
+ }
387
+
388
+ .#{$namespace}-input__inner {
389
+ color: map.get($input-disabled, 'text-color');
390
+ -webkit-text-fill-color: map.get($input-disabled, 'text-color');
391
+ cursor: not-allowed;
392
+
393
+ &::placeholder {
394
+ color: map.get($input-disabled, 'placeholder-color');
395
+ }
396
+ }
397
+
398
+ .#{$namespace}-input__icon {
399
+ cursor: not-allowed;
400
+ }
401
+
402
+ .#{$namespace}-input__prefix-inner,
403
+ .#{$namespace}-input__suffix-inner {
404
+ pointer-events: none;
405
+ }
406
+ }
407
+
408
+ @include when(exceed) {
409
+ .#{$namespace}-input__wrapper {
410
+ @include mixed-input-border(#{getCssVar('color-danger')});
411
+ }
412
+
413
+ .#{$namespace}-input__suffix {
414
+ .#{$namespace}-input__count {
415
+ color: getCssVar('color-danger');
416
+ }
417
+ }
418
+ }
419
+
420
+ @each $size in (large, small) {
421
+ @include m($size) {
422
+ @include css-var-from-global('input-height', ('component-size', $size));
423
+
424
+ font-size: map.get($input-font-size, $size);
425
+
426
+ @include e(wrapper) {
427
+ padding: $border-width
428
+ map.get($input-padding-horizontal, $size)-$border-width;
429
+ }
430
+
431
+ & {
432
+ @include set-css-var-value(
433
+ 'input-inner-height',
434
+ calc(
435
+ var(
436
+ #{getCssVarName('input-height')},
437
+ #{map.get($input-height, $size)}
438
+ ) -
439
+ $border-width * 2
440
+ )
441
+ );
442
+ }
443
+ }
444
+ }
445
+ }
446
+
447
+ @include b(input-group) {
448
+ display: inline-flex;
449
+ width: 100%;
450
+ align-items: stretch;
451
+
452
+ @include e((append, prepend)) {
453
+ background-color: getCssVar('fill-color', 'light');
454
+ color: getCssVar('color-info');
455
+ position: relative;
456
+ display: inline-flex;
457
+ align-items: center;
458
+ justify-content: center;
459
+ min-height: 100%;
460
+ border-radius: getCssVar('input-border-radius');
461
+ padding: 0 20px;
462
+ white-space: nowrap;
463
+
464
+ &:focus {
465
+ outline: none;
466
+ }
467
+
468
+ .#{$namespace}-select,
469
+ .#{$namespace}-button {
470
+ display: inline-block;
471
+ flex: 1;
472
+ margin: 0 -20px;
473
+ }
474
+
475
+ button.#{$namespace}-button,
476
+ button.#{$namespace}-button:hover,
477
+ div.#{$namespace}-select .#{$namespace}-select__wrapper,
478
+ div.#{$namespace}-select:hover .#{$namespace}-select__wrapper {
479
+ border-color: transparent;
480
+ background-color: transparent;
481
+ color: inherit;
482
+ }
483
+
484
+ .#{$namespace}-button,
485
+ .#{$namespace}-input {
486
+ font-size: inherit;
487
+ }
488
+ }
489
+
490
+ @include e(prepend) {
491
+ border-right: 0;
492
+ border-top-right-radius: 0;
493
+ border-bottom-right-radius: 0;
494
+ @include inset-prepend-border(#{getCssVar('input-border-color')});
495
+ }
496
+
497
+ @include e(append) {
498
+ border-left: 0;
499
+ border-top-left-radius: 0;
500
+ border-bottom-left-radius: 0;
501
+ @include inset-append-border(#{getCssVar('input-border-color')});
502
+ }
503
+
504
+ @include m(prepend) {
505
+ > .#{$namespace}-input__wrapper {
506
+ border-top-left-radius: 0;
507
+ border-bottom-left-radius: 0;
508
+ }
509
+
510
+ @include e(prepend) {
511
+ .#{$namespace}-select {
512
+ .#{$namespace}-select__wrapper {
513
+ border-top-right-radius: 0;
514
+ border-bottom-right-radius: 0;
515
+ @include inset-prepend-border(#{getCssVar('input-border-color')});
516
+ }
517
+ }
518
+ }
519
+ }
520
+
521
+ @include m(append) {
522
+ > .#{$namespace}-input__wrapper {
523
+ border-top-right-radius: 0;
524
+ border-bottom-right-radius: 0;
525
+ }
526
+
527
+ @include e(append) {
528
+ .#{$namespace}-select {
529
+ .#{$namespace}-select__wrapper {
530
+ border-top-left-radius: 0;
531
+ border-bottom-left-radius: 0;
532
+ @include inset-append-border(#{getCssVar('input-border-color')});
533
+ }
534
+ }
535
+ }
536
+ }
537
+ }
538
+
539
+ @include b(input-hidden) {
540
+ display: none !important;
541
+ }
@@ -0,0 +1,90 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'mixins/utils' as *;
6
+ @use 'common/var' as *;
7
+
8
+ @include b(link) {
9
+ @include set-component-css-var('link', $link);
10
+ }
11
+
12
+ @include b(link) {
13
+ @include utils-inline-flex-center;
14
+
15
+ flex-direction: row;
16
+ vertical-align: middle;
17
+ position: relative;
18
+ text-decoration: none;
19
+ outline: none;
20
+ cursor: pointer;
21
+ padding: 0;
22
+ font-size: getCssVar('link', 'font-size');
23
+ font-weight: getCssVar('link', 'font-weight');
24
+ color: getCssVar('link', 'text-color');
25
+
26
+ @include when(hover-underline) {
27
+ &:hover:after {
28
+ content: '';
29
+ position: absolute;
30
+ left: 0;
31
+ right: 0;
32
+ height: 0;
33
+ bottom: 0;
34
+ border-bottom: 1px solid getCssVar('link', 'hover-text-color');
35
+ }
36
+ }
37
+
38
+ @include when(underline) {
39
+ &:after {
40
+ content: '';
41
+ position: absolute;
42
+ left: 0;
43
+ right: 0;
44
+ height: 0;
45
+ bottom: 0;
46
+ border-bottom: 1px solid getCssVar('link', 'text-color');
47
+ }
48
+ }
49
+
50
+ &:hover {
51
+ color: getCssVar('link', 'hover-text-color');
52
+
53
+ &:after {
54
+ border-color: getCssVar('link', 'hover-text-color');
55
+ }
56
+ }
57
+
58
+ & [class*='#{$namespace}-icon-'] {
59
+ & + span {
60
+ margin-left: 5px;
61
+ }
62
+ }
63
+
64
+ @include e(inner) {
65
+ @include utils-inline-flex-center;
66
+ }
67
+
68
+ @each $type in $types {
69
+ &.#{$namespace}-link--#{$type} {
70
+ @include css-var-from-global(('link', 'text-color'), ('color', $type));
71
+ @include css-var-from-global(
72
+ ('link', 'hover-text-color'),
73
+ ('color', $type, 'light-3')
74
+ );
75
+ @include css-var-from-global(
76
+ ('link', 'disabled-text-color'),
77
+ ('color', $type, 'light-5')
78
+ );
79
+ }
80
+ }
81
+
82
+ @include when(disabled) {
83
+ color: getCssVar('link', 'disabled-text-color');
84
+ cursor: not-allowed;
85
+
86
+ &:after {
87
+ border-color: getCssVar('link', 'disabled-text-color');
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,104 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ :root {
6
+ @include set-component-css-var('loading', $loading);
7
+ }
8
+
9
+ @include b(loading-parent) {
10
+ @include m(relative) {
11
+ position: relative !important;
12
+ }
13
+
14
+ @include m(hidden) {
15
+ overflow: hidden !important;
16
+ }
17
+ }
18
+
19
+ @include b(loading-mask) {
20
+ position: absolute;
21
+ z-index: 2000;
22
+ background-color: getCssVar('mask-color');
23
+ margin: 0;
24
+ top: 0;
25
+ right: 0;
26
+ bottom: 0;
27
+ left: 0;
28
+ transition: opacity getCssVar('transition-duration');
29
+
30
+ @include when(fullscreen) {
31
+ position: fixed;
32
+
33
+ .#{$namespace}-loading-spinner {
34
+ margin-top: calc(
35
+ (0px - getCssVar('loading-fullscreen-spinner-size')) / 2
36
+ );
37
+
38
+ .circular {
39
+ height: getCssVar('loading-fullscreen-spinner-size');
40
+ width: getCssVar('loading-fullscreen-spinner-size');
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ @include b(loading-spinner) {
47
+ top: 50%;
48
+ margin-top: calc((0px - getCssVar('loading-spinner-size')) / 2);
49
+ width: 100%;
50
+ text-align: center;
51
+ position: absolute;
52
+
53
+ .#{$namespace}-loading-text {
54
+ color: getCssVar('color-primary');
55
+ margin: 3px 0;
56
+ font-size: 14px;
57
+ }
58
+
59
+ .circular {
60
+ display: inline;
61
+ height: getCssVar('loading-spinner-size');
62
+ width: getCssVar('loading-spinner-size');
63
+ animation: loading-rotate 2s linear infinite;
64
+ }
65
+
66
+ .path {
67
+ animation: loading-dash 1.5s ease-in-out infinite;
68
+ stroke-dasharray: 90, 150;
69
+ stroke-dashoffset: 0;
70
+ stroke-width: 2;
71
+ stroke: getCssVar('color-primary');
72
+ stroke-linecap: round;
73
+ }
74
+
75
+ i {
76
+ color: getCssVar('color-primary');
77
+ }
78
+ }
79
+
80
+ .#{$namespace}-loading-fade-enter-from,
81
+ .#{$namespace}-loading-fade-leave-to {
82
+ opacity: 0;
83
+ }
84
+
85
+ @keyframes loading-rotate {
86
+ 100% {
87
+ transform: rotate(360deg);
88
+ }
89
+ }
90
+
91
+ @keyframes loading-dash {
92
+ 0% {
93
+ stroke-dasharray: 1, 200;
94
+ stroke-dashoffset: 0;
95
+ }
96
+ 50% {
97
+ stroke-dasharray: 90, 150;
98
+ stroke-dashoffset: -40px;
99
+ }
100
+ 100% {
101
+ stroke-dasharray: 90, 150;
102
+ stroke-dashoffset: -120px;
103
+ }
104
+ }