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.
- package/dist/components/button/EpButton.vue.d.ts +4 -4
- package/dist/components/button/EpButton.vue.js +19 -19
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/index.d.ts +2 -1
- package/dist/components/button/index.js +4 -3
- package/dist/index.css +2 -2
- package/dist/resolver.js +9 -12
- package/package.json +4 -2
- package/theme-chalk/src/affix.scss +7 -0
- package/theme-chalk/src/alert.scss +115 -0
- package/theme-chalk/src/anchor-link.scss +45 -0
- package/theme-chalk/src/anchor.scss +93 -0
- package/theme-chalk/src/aside.scss +8 -0
- package/theme-chalk/src/autocomplete.scss +95 -0
- package/theme-chalk/src/avatar-group.scss +25 -0
- package/theme-chalk/src/avatar.scss +55 -0
- package/theme-chalk/src/backtop.scss +29 -0
- package/theme-chalk/src/badge.scss +58 -0
- package/theme-chalk/src/base.scss +3 -0
- package/theme-chalk/src/breadcrumb-item.scss +58 -0
- package/theme-chalk/src/breadcrumb.scss +9 -0
- package/theme-chalk/src/button-group.scss +133 -0
- package/theme-chalk/src/button.scss +325 -0
- package/theme-chalk/src/calendar.scss +94 -0
- package/theme-chalk/src/card.scss +49 -0
- package/theme-chalk/src/carousel-item.scss +58 -0
- package/theme-chalk/src/carousel.scss +195 -0
- package/theme-chalk/src/cascader-panel.scss +150 -0
- package/theme-chalk/src/cascader.scss +289 -0
- package/theme-chalk/src/check-tag.scss +60 -0
- package/theme-chalk/src/checkbox-button.scss +142 -0
- package/theme-chalk/src/checkbox-group.scss +7 -0
- package/theme-chalk/src/checkbox.scss +300 -0
- package/theme-chalk/src/col.scss +56 -0
- package/theme-chalk/src/collapse-item.scss +72 -0
- package/theme-chalk/src/collapse-transition.scss +1 -0
- package/theme-chalk/src/collapse.scss +29 -0
- package/theme-chalk/src/color/index.scss +20 -0
- package/theme-chalk/src/color-picker-panel.scss +294 -0
- package/theme-chalk/src/color-picker.scss +165 -0
- package/theme-chalk/src/common/popup.scss +47 -0
- package/theme-chalk/src/common/transition.scss +125 -0
- package/theme-chalk/src/common/var.scss +1730 -0
- package/theme-chalk/src/config-provider.scss +0 -0
- package/theme-chalk/src/container.scss +14 -0
- package/theme-chalk/src/dark/css-vars.scss +45 -0
- package/theme-chalk/src/dark/var.scss +224 -0
- package/theme-chalk/src/date-picker/date-picker.scss +121 -0
- package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
- package/theme-chalk/src/date-picker/date-table.scss +164 -0
- package/theme-chalk/src/date-picker/month-table.scss +112 -0
- package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
- package/theme-chalk/src/date-picker/picker.scss +217 -0
- package/theme-chalk/src/date-picker/time-picker.scss +90 -0
- package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
- package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
- package/theme-chalk/src/date-picker/utils.scss +14 -0
- package/theme-chalk/src/date-picker/year-table.scss +108 -0
- package/theme-chalk/src/date-picker-panel.scss +34 -0
- package/theme-chalk/src/date-picker.scss +0 -0
- package/theme-chalk/src/descriptions-item.scss +77 -0
- package/theme-chalk/src/descriptions.scss +151 -0
- package/theme-chalk/src/dialog.scss +207 -0
- package/theme-chalk/src/display.scss +12 -0
- package/theme-chalk/src/divider.scss +48 -0
- package/theme-chalk/src/drawer.scss +251 -0
- package/theme-chalk/src/dropdown-item.scss +0 -0
- package/theme-chalk/src/dropdown-menu.scss +0 -0
- package/theme-chalk/src/dropdown.scss +208 -0
- package/theme-chalk/src/empty.scss +49 -0
- package/theme-chalk/src/footer.scss +12 -0
- package/theme-chalk/src/form-item.scss +246 -0
- package/theme-chalk/src/form.scss +28 -0
- package/theme-chalk/src/header.scss +12 -0
- package/theme-chalk/src/icon.scss +41 -0
- package/theme-chalk/src/image-viewer.scss +161 -0
- package/theme-chalk/src/image.scss +49 -0
- package/theme-chalk/src/index.scss +116 -0
- package/theme-chalk/src/infinite-scroll.scss +0 -0
- package/theme-chalk/src/input-number.scss +192 -0
- package/theme-chalk/src/input-otp.scss +191 -0
- package/theme-chalk/src/input-tag.scss +249 -0
- package/theme-chalk/src/input.scss +541 -0
- package/theme-chalk/src/link.scss +90 -0
- package/theme-chalk/src/loading.scss +104 -0
- package/theme-chalk/src/main.scss +14 -0
- package/theme-chalk/src/mention.scss +88 -0
- package/theme-chalk/src/menu-item-group.scss +0 -0
- package/theme-chalk/src/menu-item.scss +0 -0
- package/theme-chalk/src/menu.scss +376 -0
- package/theme-chalk/src/message-box.scss +220 -0
- package/theme-chalk/src/message.scss +123 -0
- package/theme-chalk/src/mixins/_button.scss +240 -0
- package/theme-chalk/src/mixins/_col.scss +41 -0
- package/theme-chalk/src/mixins/_var.scss +67 -0
- package/theme-chalk/src/mixins/config.scss +5 -0
- package/theme-chalk/src/mixins/function.scss +99 -0
- package/theme-chalk/src/mixins/mixins.scss +257 -0
- package/theme-chalk/src/mixins/utils.scss +39 -0
- package/theme-chalk/src/notification.scss +109 -0
- package/theme-chalk/src/option-group.scss +33 -0
- package/theme-chalk/src/option.scss +71 -0
- package/theme-chalk/src/overlay.scss +17 -0
- package/theme-chalk/src/page-header.scss +60 -0
- package/theme-chalk/src/pagination.scss +235 -0
- package/theme-chalk/src/popconfirm.scss +17 -0
- package/theme-chalk/src/popover.scss +61 -0
- package/theme-chalk/src/popper.scss +117 -0
- package/theme-chalk/src/progress.scss +179 -0
- package/theme-chalk/src/radio-button.scss +165 -0
- package/theme-chalk/src/radio-group.scss +9 -0
- package/theme-chalk/src/radio.scss +220 -0
- package/theme-chalk/src/rate.scss +121 -0
- package/theme-chalk/src/reset.scss +99 -0
- package/theme-chalk/src/result.scss +57 -0
- package/theme-chalk/src/row.scss +34 -0
- package/theme-chalk/src/scrollbar.scss +97 -0
- package/theme-chalk/src/segmented.scss +186 -0
- package/theme-chalk/src/select-dropdown-v2.scss +1 -0
- package/theme-chalk/src/select-dropdown.scss +57 -0
- package/theme-chalk/src/select-v2.scss +4 -0
- package/theme-chalk/src/select.scss +269 -0
- package/theme-chalk/src/skeleton-item.scss +83 -0
- package/theme-chalk/src/skeleton.scss +44 -0
- package/theme-chalk/src/slider.scss +212 -0
- package/theme-chalk/src/space.scss +20 -0
- package/theme-chalk/src/spinner.scss +43 -0
- package/theme-chalk/src/splitter-panel.scss +8 -0
- package/theme-chalk/src/splitter.scss +148 -0
- package/theme-chalk/src/statistic.scss +35 -0
- package/theme-chalk/src/step.scss +320 -0
- package/theme-chalk/src/steps.scss +22 -0
- package/theme-chalk/src/sub-menu.scss +0 -0
- package/theme-chalk/src/switch.scss +294 -0
- package/theme-chalk/src/tab-pane.scss +0 -0
- package/theme-chalk/src/table-column.scss +100 -0
- package/theme-chalk/src/table-v2.scss +239 -0
- package/theme-chalk/src/table.scss +698 -0
- package/theme-chalk/src/tabs.scss +699 -0
- package/theme-chalk/src/tag.scss +195 -0
- package/theme-chalk/src/text.scss +51 -0
- package/theme-chalk/src/time-picker.scss +5 -0
- package/theme-chalk/src/time-select.scss +37 -0
- package/theme-chalk/src/timeline-item.scss +135 -0
- package/theme-chalk/src/timeline.scss +101 -0
- package/theme-chalk/src/tooltip.scss +0 -0
- package/theme-chalk/src/tour.scss +187 -0
- package/theme-chalk/src/transfer.scss +201 -0
- package/theme-chalk/src/tree-select.scss +41 -0
- package/theme-chalk/src/tree.scss +134 -0
- package/theme-chalk/src/upload.scss +660 -0
- package/theme-chalk/src/var.scss +87 -0
- package/theme-chalk/src/virtual-list.scss +40 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@mixin disable {
|
|
6
|
+
cursor: not-allowed;
|
|
7
|
+
opacity: 0.3;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mixin alpha-bg {
|
|
11
|
+
background-image:
|
|
12
|
+
linear-gradient(
|
|
13
|
+
45deg,
|
|
14
|
+
getCssVar('color-picker', 'alpha-bg-a') 25%,
|
|
15
|
+
getCssVar('color-picker', 'alpha-bg-b') 25%
|
|
16
|
+
),
|
|
17
|
+
linear-gradient(
|
|
18
|
+
135deg,
|
|
19
|
+
getCssVar('color-picker', 'alpha-bg-a') 25%,
|
|
20
|
+
getCssVar('color-picker', 'alpha-bg-b') 25%
|
|
21
|
+
),
|
|
22
|
+
linear-gradient(
|
|
23
|
+
45deg,
|
|
24
|
+
getCssVar('color-picker', 'alpha-bg-b') 75%,
|
|
25
|
+
getCssVar('color-picker', 'alpha-bg-a') 75%
|
|
26
|
+
),
|
|
27
|
+
linear-gradient(
|
|
28
|
+
135deg,
|
|
29
|
+
getCssVar('color-picker', 'alpha-bg-b') 75%,
|
|
30
|
+
getCssVar('color-picker', 'alpha-bg-a') 75%
|
|
31
|
+
);
|
|
32
|
+
background-size: 12px 12px;
|
|
33
|
+
background-position:
|
|
34
|
+
0 0,
|
|
35
|
+
6px 0,
|
|
36
|
+
6px -6px,
|
|
37
|
+
0 6px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin color-picker-thumb {
|
|
41
|
+
position: absolute;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
left: 0;
|
|
45
|
+
top: 0;
|
|
46
|
+
width: 4px;
|
|
47
|
+
height: 100%;
|
|
48
|
+
border-radius: 1px;
|
|
49
|
+
background: #fff;
|
|
50
|
+
border: 1px solid getCssVar('border-color', 'lighter');
|
|
51
|
+
box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
|
|
52
|
+
z-index: 1;
|
|
53
|
+
|
|
54
|
+
&:focus-visible {
|
|
55
|
+
outline: 2px solid getCssVar('color-primary');
|
|
56
|
+
outline-offset: 1px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@mixin bar-background($side: right) {
|
|
61
|
+
background: linear-gradient(
|
|
62
|
+
to $side,
|
|
63
|
+
#f00 0%,
|
|
64
|
+
#ff0 17%,
|
|
65
|
+
#0f0 33%,
|
|
66
|
+
#0ff 50%,
|
|
67
|
+
#00f 67%,
|
|
68
|
+
#f0f 83%,
|
|
69
|
+
#f00 100%
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@include b(color-picker-panel) {
|
|
74
|
+
@include set-component-css-var('colorpicker', $colorpicker);
|
|
75
|
+
@include set-css-var-value(
|
|
76
|
+
('fill-color', 'blank'),
|
|
77
|
+
getCssVar('colorpicker', 'bg-color')
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include b(color-picker-panel) {
|
|
82
|
+
width: 300px;
|
|
83
|
+
padding: 12px;
|
|
84
|
+
box-sizing: content-box;
|
|
85
|
+
background: getCssVar('colorpicker', 'bg-color');
|
|
86
|
+
|
|
87
|
+
@include when(border) {
|
|
88
|
+
border: solid 1px getCssVar('border-color-lighter');
|
|
89
|
+
border-radius: 4px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@include e(wrapper) {
|
|
93
|
+
margin-bottom: 6px;
|
|
94
|
+
|
|
95
|
+
@include e(footer) {
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
margin-top: 12px;
|
|
99
|
+
text-align: right;
|
|
100
|
+
@include b(input) {
|
|
101
|
+
line-height: 26px;
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
color: $color-black;
|
|
104
|
+
width: 160px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@include when(disabled) {
|
|
110
|
+
@include b(color-svpanel) {
|
|
111
|
+
@include disable;
|
|
112
|
+
}
|
|
113
|
+
@include b(color-hue-slider) {
|
|
114
|
+
@include disable;
|
|
115
|
+
}
|
|
116
|
+
@include e(thumb) {
|
|
117
|
+
cursor: not-allowed;
|
|
118
|
+
}
|
|
119
|
+
@include b(color-alpha-slider) {
|
|
120
|
+
@include disable;
|
|
121
|
+
}
|
|
122
|
+
@include b(color-predefine) {
|
|
123
|
+
@include e(color-selector) {
|
|
124
|
+
@include disable;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@include b(color-predefine) {
|
|
131
|
+
display: flex;
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
margin-top: 8px;
|
|
134
|
+
width: 280px;
|
|
135
|
+
|
|
136
|
+
@include e(colors) {
|
|
137
|
+
display: flex;
|
|
138
|
+
gap: 8px;
|
|
139
|
+
flex: 1;
|
|
140
|
+
flex-wrap: wrap;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@include e(color-selector) {
|
|
144
|
+
width: 20px;
|
|
145
|
+
height: 20px;
|
|
146
|
+
padding: 0;
|
|
147
|
+
border-radius: getCssVar('border-radius-base');
|
|
148
|
+
border: none;
|
|
149
|
+
outline: none;
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
|
|
153
|
+
&.selected {
|
|
154
|
+
box-shadow: 0 0 3px 2px getCssVar('color-primary');
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:focus-visible {
|
|
158
|
+
outline: 2px solid getCssVar('color-primary');
|
|
159
|
+
outline-offset: 2px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
> div {
|
|
163
|
+
display: flex;
|
|
164
|
+
height: 100%;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@include when(alpha) {
|
|
168
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@include b(color-hue-slider) {
|
|
174
|
+
position: relative;
|
|
175
|
+
box-sizing: border-box;
|
|
176
|
+
width: 280px;
|
|
177
|
+
height: 12px;
|
|
178
|
+
background-color: #f00;
|
|
179
|
+
padding: 0 2px;
|
|
180
|
+
float: right;
|
|
181
|
+
|
|
182
|
+
@include e(bar) {
|
|
183
|
+
position: relative;
|
|
184
|
+
@include bar-background;
|
|
185
|
+
height: 100%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@include e(thumb) {
|
|
189
|
+
@include color-picker-thumb;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@include when(vertical) {
|
|
193
|
+
width: 12px;
|
|
194
|
+
height: 180px;
|
|
195
|
+
padding: 2px 0;
|
|
196
|
+
|
|
197
|
+
.#{$namespace}-color-hue-slider__bar {
|
|
198
|
+
@include bar-background(bottom);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.#{$namespace}-color-hue-slider__thumb {
|
|
202
|
+
left: 0;
|
|
203
|
+
top: 0;
|
|
204
|
+
width: 100%;
|
|
205
|
+
height: 4px;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@include b(color-svpanel) {
|
|
211
|
+
position: relative;
|
|
212
|
+
width: 280px;
|
|
213
|
+
height: 180px;
|
|
214
|
+
background-image:
|
|
215
|
+
linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
|
|
216
|
+
linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
|
|
217
|
+
|
|
218
|
+
@include e(cursor) {
|
|
219
|
+
position: absolute;
|
|
220
|
+
cursor: pointer;
|
|
221
|
+
width: 4px;
|
|
222
|
+
height: 4px;
|
|
223
|
+
box-shadow:
|
|
224
|
+
0 0 0 1.5px #fff,
|
|
225
|
+
inset 0 0 1px 1px rgba(0, 0, 0, 0.3),
|
|
226
|
+
0 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
227
|
+
border-radius: 50%;
|
|
228
|
+
transform: translate(-2px, -2px);
|
|
229
|
+
|
|
230
|
+
&:focus-visible {
|
|
231
|
+
outline: 2px solid getCssVar('color-primary');
|
|
232
|
+
outline-offset: 2px;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@include b(color-alpha-slider) {
|
|
238
|
+
position: relative;
|
|
239
|
+
box-sizing: border-box;
|
|
240
|
+
width: 280px;
|
|
241
|
+
height: 12px;
|
|
242
|
+
@include alpha-bg;
|
|
243
|
+
|
|
244
|
+
@include when(disabled) {
|
|
245
|
+
@include e(thumb) {
|
|
246
|
+
cursor: not-allowed;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@include e(bar) {
|
|
251
|
+
position: relative;
|
|
252
|
+
background: linear-gradient(
|
|
253
|
+
to right,
|
|
254
|
+
rgba(255, 255, 255, 0) 0%,
|
|
255
|
+
getCssVar('bg-color') 100%
|
|
256
|
+
);
|
|
257
|
+
height: 100%;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@include e(thumb) {
|
|
261
|
+
@include color-picker-thumb;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@include when(vertical) {
|
|
265
|
+
width: 20px;
|
|
266
|
+
height: 180px;
|
|
267
|
+
|
|
268
|
+
.#{$namespace}-color-alpha-slider__bar {
|
|
269
|
+
background: linear-gradient(
|
|
270
|
+
to bottom,
|
|
271
|
+
rgba(255, 255, 255, 0) 0%,
|
|
272
|
+
rgba(255, 255, 255, 1) 100%
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.#{$namespace}-color-alpha-slider__thumb {
|
|
277
|
+
left: 0;
|
|
278
|
+
top: 0;
|
|
279
|
+
width: 100%;
|
|
280
|
+
height: 4px;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.#{bem('color-picker-panel')} {
|
|
286
|
+
@include set-css-var-value(('color-picker', 'alpha-bg-a'), '#ccc');
|
|
287
|
+
@include set-css-var-value(('color-picker', 'alpha-bg-b'), 'transparent');
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.dark {
|
|
291
|
+
.#{bem('color-picker-panel')} {
|
|
292
|
+
@include set-css-var-value(('color-picker', 'alpha-bg-a'), '#333333');
|
|
293
|
+
}
|
|
294
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'common/var' as *;
|
|
5
|
+
|
|
6
|
+
$color-picker-size: () !default;
|
|
7
|
+
$color-picker-size: map.merge($common-component-size, $color-picker-size);
|
|
8
|
+
|
|
9
|
+
@mixin alpha-bg {
|
|
10
|
+
background-image:
|
|
11
|
+
linear-gradient(
|
|
12
|
+
45deg,
|
|
13
|
+
getCssVar('color-picker', 'alpha-bg-a') 25%,
|
|
14
|
+
getCssVar('color-picker', 'alpha-bg-b') 25%
|
|
15
|
+
),
|
|
16
|
+
linear-gradient(
|
|
17
|
+
135deg,
|
|
18
|
+
getCssVar('color-picker', 'alpha-bg-a') 25%,
|
|
19
|
+
getCssVar('color-picker', 'alpha-bg-b') 25%
|
|
20
|
+
),
|
|
21
|
+
linear-gradient(
|
|
22
|
+
45deg,
|
|
23
|
+
getCssVar('color-picker', 'alpha-bg-b') 75%,
|
|
24
|
+
getCssVar('color-picker', 'alpha-bg-a') 75%
|
|
25
|
+
),
|
|
26
|
+
linear-gradient(
|
|
27
|
+
135deg,
|
|
28
|
+
getCssVar('color-picker', 'alpha-bg-b') 75%,
|
|
29
|
+
getCssVar('color-picker', 'alpha-bg-a') 75%
|
|
30
|
+
);
|
|
31
|
+
background-size: 12px 12px;
|
|
32
|
+
background-position:
|
|
33
|
+
0 0,
|
|
34
|
+
6px 0,
|
|
35
|
+
6px -6px,
|
|
36
|
+
0 6px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include b(color-picker) {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
position: relative;
|
|
42
|
+
line-height: normal;
|
|
43
|
+
outline: none;
|
|
44
|
+
height: map.get($color-picker-size, 'default');
|
|
45
|
+
width: map.get($color-picker-size, 'default');
|
|
46
|
+
|
|
47
|
+
&:hover:not(.is-disabled, .is-focused) {
|
|
48
|
+
.#{$namespace}-color-picker__trigger {
|
|
49
|
+
border-color: getCssVar('border-color-hover');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:focus-visible:not(.is-disabled) {
|
|
54
|
+
.#{$namespace}-color-picker__trigger {
|
|
55
|
+
outline: 2px solid getCssVar('color-primary');
|
|
56
|
+
outline-offset: 1px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include when(focused) {
|
|
61
|
+
.#{$namespace}-color-picker__trigger {
|
|
62
|
+
border-color: getCssVar('color-primary');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@include when(disabled) {
|
|
67
|
+
.#{$namespace}-color-picker__trigger {
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
background-color: getCssVar('fill-color', 'light');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@include e(color) {
|
|
73
|
+
opacity: 0.3;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@each $size in (large, small) {
|
|
78
|
+
@include m($size) {
|
|
79
|
+
height: map.get($color-picker-size, $size);
|
|
80
|
+
width: map.get($color-picker-size, $size);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@include m(small) {
|
|
85
|
+
.#{$namespace}-color-picker__icon,
|
|
86
|
+
.#{$namespace}-color-picker__empty {
|
|
87
|
+
transform: scale(0.8);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@include e(trigger) {
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
align-items: center;
|
|
95
|
+
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
height: 100%;
|
|
98
|
+
width: 100%;
|
|
99
|
+
padding: 4px;
|
|
100
|
+
border: 1px solid getCssVar('border-color');
|
|
101
|
+
border-radius: 4px;
|
|
102
|
+
font-size: 0;
|
|
103
|
+
position: relative;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@include e(color) {
|
|
108
|
+
position: relative;
|
|
109
|
+
display: block;
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
border: 1px solid getCssVar('text-color', 'secondary');
|
|
112
|
+
border-radius: getCssVar('border-radius-small');
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
text-align: center;
|
|
116
|
+
|
|
117
|
+
@include when(alpha) {
|
|
118
|
+
@include alpha-bg;
|
|
119
|
+
// background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@include e(color-inner) {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
align-items: center;
|
|
127
|
+
width: 100%;
|
|
128
|
+
height: 100%;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
& .#{$namespace}-color-picker__empty {
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
color: getCssVar('text-color', 'secondary');
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
& .#{$namespace}-color-picker__icon {
|
|
137
|
+
display: inline-flex;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
align-items: center;
|
|
140
|
+
color: $color-white;
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@include e(panel) {
|
|
145
|
+
background-color: $color-white;
|
|
146
|
+
border-radius: getCssVar('border-radius-base');
|
|
147
|
+
box-shadow: map.get($dropdown, 'menu-box-shadow');
|
|
148
|
+
&.#{$namespace}-popper {
|
|
149
|
+
border: 1px solid getCssVar('border-color-lighter');
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.#{bem('color-picker')},
|
|
155
|
+
.#{bem('color-picker', 'panel')} {
|
|
156
|
+
@include set-css-var-value(('color-picker', 'alpha-bg-a'), '#ccc');
|
|
157
|
+
@include set-css-var-value(('color-picker', 'alpha-bg-b'), 'transparent');
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.dark {
|
|
161
|
+
.#{bem('color-picker')},
|
|
162
|
+
.#{bem('color-picker', 'panel')} {
|
|
163
|
+
@include set-css-var-value(('color-picker', 'alpha-bg-a'), '#333333');
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use './var' as *;
|
|
2
|
+
@use '../mixins/mixins' as *;
|
|
3
|
+
@use '../mixins/var' as *;
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
@include set-component-css-var('popup', $popup);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.v-modal-enter {
|
|
10
|
+
animation: v-modal-in getCssVar('transition-duration-fast') ease;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.v-modal-leave {
|
|
14
|
+
animation: v-modal-out getCssVar('transition-duration-fast') ease forwards;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@keyframes v-modal-in {
|
|
18
|
+
0% {
|
|
19
|
+
opacity: 0;
|
|
20
|
+
}
|
|
21
|
+
100% {
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@keyframes v-modal-out {
|
|
26
|
+
0% {
|
|
27
|
+
}
|
|
28
|
+
100% {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.v-modal {
|
|
34
|
+
position: fixed;
|
|
35
|
+
left: 0;
|
|
36
|
+
top: 0;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
opacity: getCssVar('popup-modal-opacity');
|
|
40
|
+
background: getCssVar('popup-modal-bg-color');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include b(popup-parent) {
|
|
44
|
+
@include m(hidden) {
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@use '../mixins/config' as *;
|
|
2
|
+
@use '../mixins/mixins' as *;
|
|
3
|
+
|
|
4
|
+
.fade-in-linear-enter-active,
|
|
5
|
+
.fade-in-linear-leave-active {
|
|
6
|
+
transition: getCssVar('transition-fade', 'linear');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.fade-in-linear-enter-from,
|
|
10
|
+
.fade-in-linear-leave-to {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.#{$namespace}-fade-in-linear-enter-active,
|
|
15
|
+
.#{$namespace}-fade-in-linear-leave-active {
|
|
16
|
+
transition: getCssVar('transition-fade', 'linear');
|
|
17
|
+
}
|
|
18
|
+
.#{$namespace}-fade-in-linear-enter-from,
|
|
19
|
+
.#{$namespace}-fade-in-linear-leave-to {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.#{$namespace}-fade-in-enter-active,
|
|
24
|
+
.#{$namespace}-fade-in-leave-active {
|
|
25
|
+
transition: all getCssVar('transition-duration') cubic-bezier(0.55, 0, 0.1, 1);
|
|
26
|
+
}
|
|
27
|
+
.#{$namespace}-fade-in-enter-from,
|
|
28
|
+
.#{$namespace}-fade-in-leave-active {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.#{$namespace}-zoom-in-center-enter-active,
|
|
33
|
+
.#{$namespace}-zoom-in-center-leave-active {
|
|
34
|
+
transition: all getCssVar('transition-duration') cubic-bezier(0.55, 0, 0.1, 1);
|
|
35
|
+
}
|
|
36
|
+
.#{$namespace}-zoom-in-center-enter-from,
|
|
37
|
+
.#{$namespace}-zoom-in-center-leave-active {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
transform: scaleX(0);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.#{$namespace}-zoom-in-top-enter-active,
|
|
43
|
+
.#{$namespace}-zoom-in-top-leave-active {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
transform: scaleY(1);
|
|
46
|
+
transition: getCssVar('transition-md-fade');
|
|
47
|
+
transform-origin: center top;
|
|
48
|
+
|
|
49
|
+
&[data-popper-placement^='top'] {
|
|
50
|
+
transform-origin: center bottom;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
.#{$namespace}-zoom-in-top-enter-from,
|
|
54
|
+
.#{$namespace}-zoom-in-top-leave-active {
|
|
55
|
+
opacity: 0;
|
|
56
|
+
transform: scaleY(0);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.#{$namespace}-zoom-in-bottom-enter-active,
|
|
60
|
+
.#{$namespace}-zoom-in-bottom-leave-active {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
transform: scaleY(1);
|
|
63
|
+
transition: getCssVar('transition-md-fade');
|
|
64
|
+
transform-origin: center bottom;
|
|
65
|
+
}
|
|
66
|
+
.#{$namespace}-zoom-in-bottom-enter-from,
|
|
67
|
+
.#{$namespace}-zoom-in-bottom-leave-active {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
transform: scaleY(0);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.#{$namespace}-zoom-in-left-enter-active,
|
|
73
|
+
.#{$namespace}-zoom-in-left-leave-active {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
transform: scale(1, 1);
|
|
76
|
+
transition: getCssVar('transition-md-fade');
|
|
77
|
+
transform-origin: top left;
|
|
78
|
+
}
|
|
79
|
+
.#{$namespace}-zoom-in-left-enter-from,
|
|
80
|
+
.#{$namespace}-zoom-in-left-leave-active {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
transform: scale(0.45, 0.45);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.collapse-transition {
|
|
86
|
+
transition:
|
|
87
|
+
getCssVar('transition-duration') height ease-in-out,
|
|
88
|
+
getCssVar('transition-duration') padding-top ease-in-out,
|
|
89
|
+
getCssVar('transition-duration') padding-bottom ease-in-out;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.#{$namespace}-collapse-transition-leave-active,
|
|
93
|
+
.#{$namespace}-collapse-transition-enter-active {
|
|
94
|
+
transition:
|
|
95
|
+
getCssVar('transition-duration') max-height ease-in-out,
|
|
96
|
+
getCssVar('transition-duration') padding-top ease-in-out,
|
|
97
|
+
getCssVar('transition-duration') padding-bottom ease-in-out;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.horizontal-collapse-transition {
|
|
101
|
+
transition:
|
|
102
|
+
getCssVar('transition-duration') width ease-in-out,
|
|
103
|
+
getCssVar('transition-duration') padding-left ease-in-out,
|
|
104
|
+
getCssVar('transition-duration') padding-right ease-in-out;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.#{$namespace}-list-enter-active,
|
|
108
|
+
.#{$namespace}-list-leave-active {
|
|
109
|
+
transition: all 1s;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.#{$namespace}-list-enter-from,
|
|
113
|
+
.#{$namespace}-list-leave-to {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
transform: translateY(-30px);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.#{$namespace}-list-leave-active {
|
|
119
|
+
position: absolute !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.#{$namespace}-opacity-transition {
|
|
123
|
+
transition: opacity getCssVar('transition-duration')
|
|
124
|
+
cubic-bezier(0.55, 0, 0.1, 1);
|
|
125
|
+
}
|