ep-craft 0.1.2 → 0.1.4

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 (160) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +7 -7
  2. package/dist/components/button/button.d.ts +4 -4
  3. package/dist/components/button/index.d.ts +2 -4
  4. package/dist/components/button/index.js +4 -6
  5. package/dist/index.css +1 -2
  6. package/dist/resolver.js +9 -12
  7. package/package.json +4 -2
  8. package/theme-chalk/src/affix.scss +7 -0
  9. package/theme-chalk/src/alert.scss +115 -0
  10. package/theme-chalk/src/anchor-link.scss +45 -0
  11. package/theme-chalk/src/anchor.scss +93 -0
  12. package/theme-chalk/src/aside.scss +8 -0
  13. package/theme-chalk/src/autocomplete.scss +95 -0
  14. package/theme-chalk/src/avatar-group.scss +25 -0
  15. package/theme-chalk/src/avatar.scss +55 -0
  16. package/theme-chalk/src/backtop.scss +29 -0
  17. package/theme-chalk/src/badge.scss +58 -0
  18. package/theme-chalk/src/base.scss +3 -0
  19. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  20. package/theme-chalk/src/breadcrumb.scss +9 -0
  21. package/theme-chalk/src/button-group.scss +133 -0
  22. package/theme-chalk/src/button.scss +374 -0
  23. package/theme-chalk/src/calendar.scss +94 -0
  24. package/theme-chalk/src/card.scss +49 -0
  25. package/theme-chalk/src/carousel-item.scss +58 -0
  26. package/theme-chalk/src/carousel.scss +195 -0
  27. package/theme-chalk/src/cascader-panel.scss +150 -0
  28. package/theme-chalk/src/cascader.scss +289 -0
  29. package/theme-chalk/src/check-tag.scss +60 -0
  30. package/theme-chalk/src/checkbox-button.scss +142 -0
  31. package/theme-chalk/src/checkbox-group.scss +7 -0
  32. package/theme-chalk/src/checkbox.scss +300 -0
  33. package/theme-chalk/src/col.scss +56 -0
  34. package/theme-chalk/src/collapse-item.scss +72 -0
  35. package/theme-chalk/src/collapse-transition.scss +1 -0
  36. package/theme-chalk/src/collapse.scss +29 -0
  37. package/theme-chalk/src/color/index.scss +20 -0
  38. package/theme-chalk/src/color-picker-panel.scss +294 -0
  39. package/theme-chalk/src/color-picker.scss +165 -0
  40. package/theme-chalk/src/common/popup.scss +47 -0
  41. package/theme-chalk/src/common/transition.scss +125 -0
  42. package/theme-chalk/src/common/var.scss +1748 -0
  43. package/theme-chalk/src/config-provider.scss +0 -0
  44. package/theme-chalk/src/container.scss +14 -0
  45. package/theme-chalk/src/dark/css-vars.scss +45 -0
  46. package/theme-chalk/src/dark/var.scss +224 -0
  47. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  48. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  49. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  50. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  51. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  52. package/theme-chalk/src/date-picker/picker.scss +217 -0
  53. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  54. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  55. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  56. package/theme-chalk/src/date-picker/utils.scss +14 -0
  57. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  58. package/theme-chalk/src/date-picker-panel.scss +34 -0
  59. package/theme-chalk/src/date-picker.scss +0 -0
  60. package/theme-chalk/src/descriptions-item.scss +77 -0
  61. package/theme-chalk/src/descriptions.scss +151 -0
  62. package/theme-chalk/src/dialog.scss +207 -0
  63. package/theme-chalk/src/display.scss +12 -0
  64. package/theme-chalk/src/divider.scss +48 -0
  65. package/theme-chalk/src/drawer.scss +251 -0
  66. package/theme-chalk/src/dropdown-item.scss +0 -0
  67. package/theme-chalk/src/dropdown-menu.scss +0 -0
  68. package/theme-chalk/src/dropdown.scss +208 -0
  69. package/theme-chalk/src/empty.scss +49 -0
  70. package/theme-chalk/src/footer.scss +12 -0
  71. package/theme-chalk/src/form-item.scss +246 -0
  72. package/theme-chalk/src/form.scss +28 -0
  73. package/theme-chalk/src/header.scss +12 -0
  74. package/theme-chalk/src/icon.scss +41 -0
  75. package/theme-chalk/src/image-viewer.scss +161 -0
  76. package/theme-chalk/src/image.scss +49 -0
  77. package/theme-chalk/src/index.scss +116 -0
  78. package/theme-chalk/src/infinite-scroll.scss +0 -0
  79. package/theme-chalk/src/input-number.scss +192 -0
  80. package/theme-chalk/src/input-otp.scss +191 -0
  81. package/theme-chalk/src/input-tag.scss +249 -0
  82. package/theme-chalk/src/input.scss +541 -0
  83. package/theme-chalk/src/link.scss +90 -0
  84. package/theme-chalk/src/loading.scss +104 -0
  85. package/theme-chalk/src/main.scss +14 -0
  86. package/theme-chalk/src/mention.scss +88 -0
  87. package/theme-chalk/src/menu-item-group.scss +0 -0
  88. package/theme-chalk/src/menu-item.scss +0 -0
  89. package/theme-chalk/src/menu.scss +376 -0
  90. package/theme-chalk/src/message-box.scss +220 -0
  91. package/theme-chalk/src/message.scss +123 -0
  92. package/theme-chalk/src/mixins/_button.scss +240 -0
  93. package/theme-chalk/src/mixins/_col.scss +41 -0
  94. package/theme-chalk/src/mixins/_var.scss +67 -0
  95. package/theme-chalk/src/mixins/config.scss +5 -0
  96. package/theme-chalk/src/mixins/function.scss +99 -0
  97. package/theme-chalk/src/mixins/mixins.scss +257 -0
  98. package/theme-chalk/src/mixins/utils.scss +39 -0
  99. package/theme-chalk/src/notification.scss +109 -0
  100. package/theme-chalk/src/option-group.scss +33 -0
  101. package/theme-chalk/src/option.scss +71 -0
  102. package/theme-chalk/src/overlay.scss +17 -0
  103. package/theme-chalk/src/page-header.scss +60 -0
  104. package/theme-chalk/src/pagination.scss +235 -0
  105. package/theme-chalk/src/popconfirm.scss +17 -0
  106. package/theme-chalk/src/popover.scss +61 -0
  107. package/theme-chalk/src/popper.scss +117 -0
  108. package/theme-chalk/src/progress.scss +179 -0
  109. package/theme-chalk/src/radio-button.scss +165 -0
  110. package/theme-chalk/src/radio-group.scss +9 -0
  111. package/theme-chalk/src/radio.scss +220 -0
  112. package/theme-chalk/src/rate.scss +121 -0
  113. package/theme-chalk/src/reset.scss +99 -0
  114. package/theme-chalk/src/result.scss +57 -0
  115. package/theme-chalk/src/row.scss +34 -0
  116. package/theme-chalk/src/scrollbar.scss +97 -0
  117. package/theme-chalk/src/segmented.scss +186 -0
  118. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  119. package/theme-chalk/src/select-dropdown.scss +57 -0
  120. package/theme-chalk/src/select-v2.scss +4 -0
  121. package/theme-chalk/src/select.scss +269 -0
  122. package/theme-chalk/src/skeleton-item.scss +83 -0
  123. package/theme-chalk/src/skeleton.scss +44 -0
  124. package/theme-chalk/src/slider.scss +212 -0
  125. package/theme-chalk/src/space.scss +20 -0
  126. package/theme-chalk/src/spinner.scss +43 -0
  127. package/theme-chalk/src/splitter-panel.scss +8 -0
  128. package/theme-chalk/src/splitter.scss +148 -0
  129. package/theme-chalk/src/statistic.scss +35 -0
  130. package/theme-chalk/src/step.scss +320 -0
  131. package/theme-chalk/src/steps.scss +22 -0
  132. package/theme-chalk/src/sub-menu.scss +0 -0
  133. package/theme-chalk/src/switch.scss +294 -0
  134. package/theme-chalk/src/tab-pane.scss +0 -0
  135. package/theme-chalk/src/table-column.scss +100 -0
  136. package/theme-chalk/src/table-v2.scss +239 -0
  137. package/theme-chalk/src/table.scss +698 -0
  138. package/theme-chalk/src/tabs.scss +699 -0
  139. package/theme-chalk/src/tag.scss +195 -0
  140. package/theme-chalk/src/text.scss +51 -0
  141. package/theme-chalk/src/time-picker.scss +5 -0
  142. package/theme-chalk/src/time-select.scss +37 -0
  143. package/theme-chalk/src/timeline-item.scss +135 -0
  144. package/theme-chalk/src/timeline.scss +101 -0
  145. package/theme-chalk/src/tooltip.scss +0 -0
  146. package/theme-chalk/src/tour.scss +187 -0
  147. package/theme-chalk/src/transfer.scss +201 -0
  148. package/theme-chalk/src/tree-select.scss +41 -0
  149. package/theme-chalk/src/tree.scss +134 -0
  150. package/theme-chalk/src/upload.scss +660 -0
  151. package/theme-chalk/src/var.scss +87 -0
  152. package/theme-chalk/src/virtual-list.scss +40 -0
  153. package/dist/components/button/EpButton.vue.js +0 -171
  154. package/dist/components/button/EpButton2.vue.js +0 -4
  155. package/dist/components/button/button.js +0 -95
  156. package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -134
  157. package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
  158. package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -77
  159. package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -354
  160. package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
File without changes
@@ -0,0 +1,192 @@
1
+ @use 'sass:math';
2
+ @use 'sass:map';
3
+
4
+ @use 'mixins/mixins' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(input-number) {
8
+ position: relative;
9
+ display: inline-flex;
10
+ width: map.get($input-number-width, 'default');
11
+ line-height: #{map.get($input-height, 'default') - 2};
12
+ vertical-align: middle;
13
+
14
+ .#{$namespace}-input {
15
+ &__wrapper {
16
+ padding-left: #{map.get($input-height, 'default') + 10};
17
+ padding-right: #{map.get($input-height, 'default') + 10};
18
+ }
19
+
20
+ &__inner {
21
+ -webkit-appearance: none;
22
+ -moz-appearance: textfield;
23
+ text-align: center;
24
+ line-height: 1;
25
+ &::-webkit-inner-spin-button,
26
+ &::-webkit-outer-spin-button {
27
+ margin: 0;
28
+ -webkit-appearance: none;
29
+ }
30
+ }
31
+ }
32
+ @each $align in (left, right, center) {
33
+ @include when($align) {
34
+ .#{$namespace}-input__inner {
35
+ text-align: $align;
36
+ }
37
+ }
38
+ }
39
+ @include e((increase, decrease)) {
40
+ display: flex;
41
+ justify-content: center;
42
+ align-items: center;
43
+ height: auto;
44
+
45
+ position: absolute;
46
+ z-index: 1;
47
+ top: 1px;
48
+ bottom: 1px;
49
+
50
+ width: map.get($input-height, 'default');
51
+ background: getCssVar('fill-color', 'light');
52
+ color: getCssVar('text-color', 'regular');
53
+ cursor: pointer;
54
+ font-size: 13px;
55
+ user-select: none;
56
+
57
+ &:hover {
58
+ color: getCssVar('color-primary');
59
+
60
+ & ~ .#{$namespace}-input:not(.is-disabled) .#{$namespace}-input__wrapper {
61
+ box-shadow: 0 0 0 1px
62
+ var(
63
+ #{getCssVarName('input', 'focus-border-color')},
64
+ map.get($input, 'focus-border-color')
65
+ )
66
+ inset;
67
+ }
68
+ }
69
+
70
+ &.is-disabled {
71
+ color: getCssVar('disabled-text-color');
72
+ cursor: not-allowed;
73
+ }
74
+ }
75
+
76
+ @include e(increase) {
77
+ right: 1px;
78
+ border-radius: 0 getCssVar('border-radius-base')
79
+ getCssVar('border-radius-base') 0;
80
+ border-left: getCssVar('border');
81
+ }
82
+
83
+ @include e(decrease) {
84
+ left: 1px;
85
+ border-radius: getCssVar('border-radius-base') 0 0
86
+ getCssVar('border-radius-base');
87
+ border-right: getCssVar('border');
88
+ }
89
+
90
+ @include when(disabled) {
91
+ @include e((increase, decrease)) {
92
+ border-color: getCssVar('disabled-border-color');
93
+ color: getCssVar('disabled-border-color');
94
+
95
+ &:hover {
96
+ color: getCssVar('disabled-border-color');
97
+ cursor: not-allowed;
98
+ }
99
+ }
100
+ }
101
+
102
+ @each $size in (large, small) {
103
+ @include m($size) {
104
+ width: map.get($input-number-width, $size);
105
+ line-height: #{map.get($input-height, $size) - 2};
106
+
107
+ @include e((increase, decrease)) {
108
+ width: map.get($input-height, $size);
109
+ font-size: map.get($input-font-size, $size);
110
+ }
111
+
112
+ @include when(controls-right) {
113
+ .#{$namespace}-input--#{$size} {
114
+ .#{$namespace}-input__wrapper {
115
+ padding-right: #{map.get($input-height, $size) + 7};
116
+ }
117
+ }
118
+ }
119
+
120
+ .#{$namespace}-input--#{$size} {
121
+ .#{$namespace}-input__wrapper {
122
+ padding-left: #{map.get($input-height, $size) + 7};
123
+ padding-right: #{map.get($input-height, $size) + 7};
124
+ }
125
+ }
126
+ }
127
+ }
128
+
129
+ @include m(small) {
130
+ @include e((increase, decrease)) {
131
+ [class*='#{$namespace}-icon'] {
132
+ transform: scale(0.9);
133
+ }
134
+ }
135
+ }
136
+
137
+ @include when(without-controls) {
138
+ .#{$namespace}-input__wrapper {
139
+ padding-left: 15px;
140
+ padding-right: 15px;
141
+ }
142
+ }
143
+
144
+ @include when(controls-right) {
145
+ .#{$namespace}-input__wrapper {
146
+ padding-left: 15px;
147
+ padding-right: #{map.get($input-height, 'default') + 10};
148
+ }
149
+
150
+ @include e((increase, decrease)) {
151
+ @include set-css-var-value(
152
+ ('input', 'number-controls-height'),
153
+ math.div(map.get($input-height, 'default') - 2, 2)
154
+ );
155
+
156
+ height: getCssVar('input-number-controls-height');
157
+ line-height: getCssVar('input-number-controls-height');
158
+
159
+ [class*='#{$namespace}-icon'] {
160
+ transform: scale(0.8);
161
+ }
162
+ }
163
+
164
+ @include e(increase) {
165
+ bottom: auto;
166
+ left: auto;
167
+ border-radius: 0 getCssVar('border-radius-base') 0 0;
168
+ border-bottom: getCssVar('border');
169
+ }
170
+
171
+ @include e(decrease) {
172
+ right: 1px;
173
+ top: auto;
174
+ left: auto;
175
+ border-right: none;
176
+ border-left: getCssVar('border');
177
+ border-radius: 0 0 getCssVar('border-radius-base') 0;
178
+ }
179
+
180
+ @each $size in (large, small) {
181
+ &[class*='#{$size}'] {
182
+ [class*='increase'],
183
+ [class*='decrease'] {
184
+ @include set-css-var-value(
185
+ ('input', 'number-controls-height'),
186
+ math.div(map.get($input-height, $size) - 2, 2)
187
+ );
188
+ }
189
+ }
190
+ }
191
+ }
192
+ }
@@ -0,0 +1,191 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @mixin mixed-input-border($color) {
8
+ box-shadow: 0 0 0 1px $color inset;
9
+ }
10
+
11
+ @mixin hover-available {
12
+ @media (hover: hover) {
13
+ @content;
14
+ }
15
+ }
16
+
17
+ @include b(input-otp) {
18
+ @include set-component-css-var('input-otp', $input-otp);
19
+ @include set-css-var-value(
20
+ ('input-otp', 'gap'),
21
+ map.get($input-otp-gap, default)
22
+ );
23
+ @include set-css-var-value(
24
+ ('input-otp', 'font-size'),
25
+ map.get($input-font-size, default)
26
+ );
27
+ @include set-css-var-value(
28
+ ('input-otp', 'size'),
29
+ map.get($input-height, default)
30
+ );
31
+
32
+ @each $size in (large, small) {
33
+ @include m($size) {
34
+ @include set-css-var-value(
35
+ ('input-otp', 'gap'),
36
+ map.get($input-otp-gap, $size)
37
+ );
38
+ @include set-css-var-value(
39
+ ('input-otp', 'font-size'),
40
+ map.get($input-font-size, $size)
41
+ );
42
+ @include set-css-var-value(
43
+ ('input-otp', 'size'),
44
+ map.get($input-height, $size)
45
+ );
46
+ }
47
+ }
48
+ }
49
+
50
+ @include b(input-otp) {
51
+ display: inline-flex;
52
+ align-items: center;
53
+ flex-wrap: nowrap;
54
+ column-gap: getCssVar('input-otp-gap');
55
+ font-size: getCssVar('input-otp-font-size');
56
+ height: getCssVar('input-otp-size');
57
+
58
+ @include when(disabled) {
59
+ cursor: not-allowed;
60
+
61
+ @include e(input) {
62
+ cursor: not-allowed;
63
+ }
64
+ }
65
+
66
+ @include e(input-field) {
67
+ width: var(
68
+ #{getCssVarName('input-otp-field-width')},
69
+ map.get($input-otp, 'field-width')
70
+ );
71
+ height: 100%;
72
+ position: relative;
73
+ border-radius: getCssVar('border-radius-base');
74
+ }
75
+
76
+ @include e(input) {
77
+ width: 100%;
78
+ height: 100%;
79
+ text-align: center;
80
+ line-height: 1;
81
+ outline: none;
82
+ border: none;
83
+ padding: 0;
84
+ background-color: transparent;
85
+ font-size: inherit;
86
+ color: var(
87
+ #{getCssVarName('input-otp-text-color')},
88
+ map.get($input-otp, 'text-color')
89
+ );
90
+ }
91
+ }
92
+
93
+ @include b(input-otp) {
94
+ @include when(disabled) {
95
+ @include e(input) {
96
+ color: getCssVar('text-color', 'disabled');
97
+ }
98
+ }
99
+
100
+ @include m(outlined) {
101
+ @include e(input-field) {
102
+ @include mixed-input-border(#{getCssVar('border-color')});
103
+
104
+ @include hover-available {
105
+ &:hover {
106
+ @include mixed-input-border(#{getCssVar('color-primary-light-5')});
107
+ }
108
+ }
109
+
110
+ &:focus-within {
111
+ @include mixed-input-border(#{getCssVar('color-primary')});
112
+ }
113
+ }
114
+
115
+ @include when(disabled) {
116
+ @include e(input-field) {
117
+ background-color: getCssVar('fill-color', 'light');
118
+
119
+ @include hover-available {
120
+ &:hover {
121
+ @include mixed-input-border(#{getCssVar('border-color')});
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+
128
+ @include m(filled) {
129
+ @include e(input-field) {
130
+ background-color: getCssVar('fill-color', '');
131
+
132
+ @include hover-available {
133
+ &:hover {
134
+ background-color: getCssVar('fill-color', 'dark');
135
+ }
136
+ }
137
+
138
+ &:focus-within {
139
+ background-color: getCssVar('fill-color', 'blank');
140
+ @include mixed-input-border(#{getCssVar('color-primary')});
141
+ }
142
+ }
143
+
144
+ @include when(disabled) {
145
+ @include e(input-field) {
146
+ background-color: getCssVar('fill-color', 'light');
147
+
148
+ @include hover-available {
149
+ &:hover {
150
+ background-color: getCssVar('fill-color', 'light');
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+
157
+ @include m(underlined) {
158
+ @include e(input-field) {
159
+ &::after {
160
+ content: '';
161
+ display: block;
162
+ width: 100%;
163
+ height: 1px;
164
+ background-color: getCssVar('border-color');
165
+ position: absolute;
166
+ bottom: 0;
167
+ left: 0;
168
+ }
169
+
170
+ @include hover-available {
171
+ &:hover::after {
172
+ background-color: getCssVar('color-primary-light-5');
173
+ }
174
+ }
175
+
176
+ &:focus-within::after {
177
+ background-color: getCssVar('color-primary');
178
+ }
179
+ }
180
+
181
+ @include when(disabled) {
182
+ @include e(input-field) {
183
+ @include hover-available {
184
+ &:hover::after {
185
+ background-color: getCssVar('border-color');
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
@@ -0,0 +1,249 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @mixin mixed-input-border($color) {
8
+ box-shadow: 0 0 0 1px $color inset;
9
+ }
10
+
11
+ @include b(input-tag) {
12
+ @include set-component-css-var('input-tag', $input-tag);
13
+ @include css-var-from-global('input-tag-mini-height', 'component-size');
14
+ @include set-css-var-value(
15
+ ('input-tag', 'gap'),
16
+ map.get($input-tag-gap, default)
17
+ );
18
+ @include set-css-var-value(
19
+ ('input-tag', 'padding'),
20
+ map.get($input-tag-padding, default)
21
+ );
22
+ @include set-css-var-value(
23
+ ('input-tag', 'inner-padding'),
24
+ map.get($input-tag-inner-padding, default)
25
+ );
26
+ @include set-css-var-value(
27
+ ('input-tag', 'line-height'),
28
+ map.get($tag-height, default)
29
+ );
30
+ }
31
+
32
+ @include b(input-tag) {
33
+ display: flex;
34
+ align-items: center;
35
+ box-sizing: border-box;
36
+ cursor: pointer;
37
+ font-size: getCssVar('input-tag-font-size');
38
+ padding: getCssVar('input-tag-padding');
39
+ width: getCssVar('input-tag-width');
40
+ min-height: getCssVar('input-tag-mini-height');
41
+ line-height: getCssVar('input-tag-line-height');
42
+ border-radius: getCssVar('border-radius-base');
43
+ background-color: getCssVar('fill-color', 'blank');
44
+ transition: getCssVar('transition', 'duration');
45
+ transform: translate3d(0, 0, 0);
46
+ @include mixed-input-border(#{getCssVar('border-color')});
47
+
48
+ @include when(focused) {
49
+ @include mixed-input-border(#{getCssVar('color-primary')});
50
+ }
51
+
52
+ @include when(hovering) {
53
+ &:not(.is-focused) {
54
+ @include mixed-input-border(#{getCssVar('border-color-hover')});
55
+ }
56
+ }
57
+
58
+ @include when(disabled) {
59
+ cursor: not-allowed;
60
+ background-color: getCssVar('fill-color', 'light');
61
+ @include mixed-input-border(#{getCssVar('input-tag-disabled-border')});
62
+
63
+ &:hover {
64
+ @include mixed-input-border(#{getCssVar('input-tag-disabled-border')});
65
+ }
66
+
67
+ &.is-focus {
68
+ @include mixed-input-border(#{getCssVar('input-focus-border-color')});
69
+ }
70
+
71
+ @include e(inner) {
72
+ @include e(input) {
73
+ cursor: not-allowed;
74
+ }
75
+ .#{$namespace}-tag {
76
+ cursor: not-allowed;
77
+ }
78
+ }
79
+ }
80
+
81
+ @include e(prefix) {
82
+ display: flex;
83
+ align-items: center;
84
+ flex-shrink: 0;
85
+ padding: 0 getCssVar('input-tag-inner-padding');
86
+ color: var(
87
+ #{getCssVarName('input-icon-color')},
88
+ map.get($input, 'icon-color')
89
+ );
90
+ }
91
+
92
+ @include e(suffix) {
93
+ display: flex;
94
+ align-items: center;
95
+ flex-shrink: 0;
96
+ padding: 0 getCssVar('input-tag-inner-padding');
97
+ gap: 8px;
98
+ color: var(
99
+ #{getCssVarName('input-icon-color')},
100
+ map.get($input, 'icon-color')
101
+ );
102
+ }
103
+
104
+ @include e(collapse-tag) {
105
+ line-height: 1;
106
+ }
107
+
108
+ @include e(input-tag-list) {
109
+ position: relative;
110
+ display: flex;
111
+ flex-wrap: wrap;
112
+ align-items: center;
113
+ flex: 1;
114
+ min-width: 0;
115
+ gap: map.get($input-tag-gap, 'default');
116
+
117
+ @include when(near) {
118
+ margin-left: map.get($select-near-margin-left, 'default');
119
+ }
120
+
121
+ .#{$namespace}-tag {
122
+ cursor: pointer;
123
+ border-color: transparent;
124
+
125
+ &.#{$namespace}-tag--plain {
126
+ border-color: getCssVar('tag', 'border-color');
127
+ }
128
+
129
+ .#{$namespace}-tag__content {
130
+ min-width: 0;
131
+ }
132
+ }
133
+ }
134
+
135
+ @include e(inner) {
136
+ position: relative;
137
+ display: flex;
138
+ flex-wrap: wrap;
139
+ align-items: center;
140
+ flex: 1;
141
+ max-width: 100%;
142
+ min-width: 0;
143
+ gap: getCssVar('input-tag-gap');
144
+
145
+ @include when(left-space) {
146
+ margin-left: getCssVar('input-tag-inner-padding');
147
+ }
148
+
149
+ @include when(right-space) {
150
+ margin-right: getCssVar('input-tag-inner-padding');
151
+ }
152
+
153
+ @include when(draggable) {
154
+ .#{$namespace}-tag {
155
+ cursor: move;
156
+ user-select: none;
157
+ }
158
+ }
159
+
160
+ @include e(drop-indicator) {
161
+ position: absolute;
162
+ top: 0;
163
+ width: 1px;
164
+ height: var(--el-input-tag-line-height);
165
+ background-color: getCssVar('color-primary');
166
+ }
167
+
168
+ .#{$namespace}-tag {
169
+ max-width: 100%;
170
+ cursor: pointer;
171
+ border-color: transparent;
172
+
173
+ &.#{$namespace}-tag--plain {
174
+ border-color: getCssVar('tag', 'border-color');
175
+ }
176
+
177
+ .#{$namespace}-tag__content {
178
+ min-width: 0;
179
+ line-height: normal;
180
+ overflow: hidden;
181
+ text-overflow: ellipsis;
182
+ white-space: nowrap;
183
+ }
184
+ }
185
+ }
186
+
187
+ @include e(input-wrapper) {
188
+ flex: 1;
189
+ }
190
+
191
+ @include e(input) {
192
+ border: none;
193
+ outline: none;
194
+ padding: 0;
195
+ color: getCssVar('input-tag-text-color');
196
+ font-size: inherit;
197
+ font-family: inherit;
198
+ line-height: inherit;
199
+ appearance: none;
200
+ width: 100%;
201
+ background-color: transparent;
202
+
203
+ &::placeholder {
204
+ color: getCssVar('input-tag-placeholder-color');
205
+ }
206
+ }
207
+
208
+ @include e(input-calculator) {
209
+ position: absolute;
210
+ left: 0;
211
+ top: 0;
212
+ max-width: 100%;
213
+ visibility: hidden;
214
+ white-space: pre;
215
+ overflow: hidden;
216
+ }
217
+
218
+ @each $size in (large, small) {
219
+ @include m($size) {
220
+ @include set-css-var-value(
221
+ ('input-tag', 'gap'),
222
+ map.get($input-tag-gap, $size)
223
+ );
224
+ @include set-css-var-value(
225
+ ('input-tag', 'padding'),
226
+ map.get($input-tag-padding, $size)
227
+ );
228
+ @include set-css-var-value(
229
+ ('input-tag', 'padding-left'),
230
+ map.get($input-tag-inner-padding, $size)
231
+ );
232
+ @include set-css-var-value(
233
+ ('input-tag', 'font-size'),
234
+ map.get($input-font-size, $size)
235
+ );
236
+
237
+ @if $size == small {
238
+ @include set-css-var-value(
239
+ ('input-tag', 'line-height'),
240
+ map.get($tag-height, $size)
241
+ );
242
+ @include css-var-from-global(
243
+ 'input-tag-mini-height',
244
+ ('component-size', $size)
245
+ );
246
+ }
247
+ }
248
+ }
249
+ }