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.
- package/dist/components/button/EpButton.vue.d.ts +7 -7
- package/dist/components/button/button.d.ts +4 -4
- package/dist/components/button/index.d.ts +2 -4
- package/dist/components/button/index.js +4 -6
- package/dist/index.css +1 -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 +374 -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 +1748 -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
- package/dist/components/button/EpButton.vue.js +0 -171
- package/dist/components/button/EpButton2.vue.js +0 -4
- package/dist/components/button/button.js +0 -95
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -134
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -77
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -354
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
@use 'function' as *;
|
|
2
|
+
@use '../common/var' as *;
|
|
3
|
+
// forward mixins
|
|
4
|
+
@forward 'config';
|
|
5
|
+
@forward 'function';
|
|
6
|
+
@forward '_var';
|
|
7
|
+
@use 'config' as *;
|
|
8
|
+
@use 'sass:string';
|
|
9
|
+
@use 'sass:map';
|
|
10
|
+
|
|
11
|
+
$B: null;
|
|
12
|
+
$E: null;
|
|
13
|
+
|
|
14
|
+
// Break-points
|
|
15
|
+
@mixin res($key, $map: $breakpoints) {
|
|
16
|
+
// loop breakpoint Map, return if present
|
|
17
|
+
@if map.has-key($map, $key) {
|
|
18
|
+
@media only screen and #{string.unquote(map.get($map, $key))} {
|
|
19
|
+
@content;
|
|
20
|
+
}
|
|
21
|
+
} @else {
|
|
22
|
+
@warn "Undefined points: `#{$map}`";
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Scrollbar
|
|
27
|
+
@mixin scroll-bar {
|
|
28
|
+
$scrollbar-thumb-background: getCssVar('text-color', 'disabled');
|
|
29
|
+
$scrollbar-track-background: getCssVar('fill-color', 'blank');
|
|
30
|
+
|
|
31
|
+
&::-webkit-scrollbar {
|
|
32
|
+
z-index: 11;
|
|
33
|
+
width: 6px;
|
|
34
|
+
|
|
35
|
+
&:horizontal {
|
|
36
|
+
height: 6px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-thumb {
|
|
40
|
+
border-radius: 5px;
|
|
41
|
+
width: 6px;
|
|
42
|
+
background: $scrollbar-thumb-background;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-corner {
|
|
46
|
+
background: $scrollbar-track-background;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-track {
|
|
50
|
+
background: $scrollbar-track-background;
|
|
51
|
+
|
|
52
|
+
&-piece {
|
|
53
|
+
background: $scrollbar-track-background;
|
|
54
|
+
width: 6px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// BEM
|
|
61
|
+
@mixin b($block) {
|
|
62
|
+
$B: $namespace + $common-separator + $block !global;
|
|
63
|
+
|
|
64
|
+
.#{$B} {
|
|
65
|
+
@content;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@mixin e($element) {
|
|
70
|
+
$E: $element !global;
|
|
71
|
+
$selector: &;
|
|
72
|
+
$currentSelector: '';
|
|
73
|
+
@each $unit in $element {
|
|
74
|
+
$currentSelector: #{$currentSelector +
|
|
75
|
+
'.' +
|
|
76
|
+
$B +
|
|
77
|
+
$element-separator +
|
|
78
|
+
$unit +
|
|
79
|
+
','};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@if hitAllSpecialNestRule($selector) {
|
|
83
|
+
@at-root {
|
|
84
|
+
#{$selector} {
|
|
85
|
+
#{$currentSelector} {
|
|
86
|
+
@content;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
} @else {
|
|
91
|
+
@at-root {
|
|
92
|
+
#{$currentSelector} {
|
|
93
|
+
@content;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@mixin m($modifier) {
|
|
100
|
+
$selector: &;
|
|
101
|
+
$currentSelector: '';
|
|
102
|
+
@each $unit in $modifier {
|
|
103
|
+
$currentSelector: #{$currentSelector +
|
|
104
|
+
$selector +
|
|
105
|
+
$modifier-separator +
|
|
106
|
+
$unit +
|
|
107
|
+
','};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@at-root {
|
|
111
|
+
#{$currentSelector} {
|
|
112
|
+
@content;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@mixin configurable-m($modifier, $E-flag: false) {
|
|
118
|
+
$selector: &;
|
|
119
|
+
$interpolation: '';
|
|
120
|
+
|
|
121
|
+
@if $E-flag {
|
|
122
|
+
$interpolation: $element-separator + $E-flag;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@at-root {
|
|
126
|
+
#{$selector} {
|
|
127
|
+
.#{$B + $interpolation + $modifier-separator + $modifier} {
|
|
128
|
+
@content;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@mixin spec-selector(
|
|
135
|
+
$specSelector: '',
|
|
136
|
+
$element: $E,
|
|
137
|
+
$modifier: false,
|
|
138
|
+
$block: $B
|
|
139
|
+
) {
|
|
140
|
+
$modifierCombo: '';
|
|
141
|
+
|
|
142
|
+
@if $modifier {
|
|
143
|
+
$modifierCombo: $modifier-separator + $modifier;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@at-root {
|
|
147
|
+
#{&}#{$specSelector}.#{$block
|
|
148
|
+
+ $element-separator
|
|
149
|
+
+ $element
|
|
150
|
+
+ $modifierCombo} {
|
|
151
|
+
@content;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@mixin meb($modifier: false, $element: $E, $block: $B) {
|
|
157
|
+
$selector: &;
|
|
158
|
+
$modifierCombo: '';
|
|
159
|
+
|
|
160
|
+
@if $modifier {
|
|
161
|
+
$modifierCombo: $modifier-separator + $modifier;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@at-root {
|
|
165
|
+
#{$selector} {
|
|
166
|
+
.#{$block + $element-separator + $element + $modifierCombo} {
|
|
167
|
+
@content;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@mixin when($state) {
|
|
174
|
+
@at-root {
|
|
175
|
+
&.#{$state-prefix + $state} {
|
|
176
|
+
@content;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@mixin extend-rule($name) {
|
|
182
|
+
@extend #{'%shared-' + $name} !optional;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@mixin share-rule($name) {
|
|
186
|
+
$rule-name: '%shared-' + $name;
|
|
187
|
+
|
|
188
|
+
@at-root #{$rule-name} {
|
|
189
|
+
@content;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@mixin pseudo($pseudo) {
|
|
194
|
+
@at-root #{&}#{':#{$pseudo}'} {
|
|
195
|
+
@content;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@mixin picker-popper($background, $border, $box-shadow) {
|
|
200
|
+
&.#{$namespace}-popper {
|
|
201
|
+
background: $background;
|
|
202
|
+
border: $border;
|
|
203
|
+
box-shadow: $box-shadow;
|
|
204
|
+
|
|
205
|
+
.#{$namespace}-popper__arrow {
|
|
206
|
+
&::before {
|
|
207
|
+
border: $border;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@each $placement,
|
|
212
|
+
$adjacency
|
|
213
|
+
in ('top': 'left', 'bottom': 'right', 'left': 'bottom', 'right': 'top')
|
|
214
|
+
{
|
|
215
|
+
&[data-popper-placement^='#{$placement}'] {
|
|
216
|
+
.#{$namespace}-popper__arrow::before {
|
|
217
|
+
border-#{$placement}-color: transparent;
|
|
218
|
+
border-#{$adjacency}-color: transparent;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// dark
|
|
226
|
+
@mixin dark($block) {
|
|
227
|
+
html.dark {
|
|
228
|
+
@include b($block) {
|
|
229
|
+
@content;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@mixin inset-input-border($color, $important: false) {
|
|
235
|
+
@if $important == true {
|
|
236
|
+
box-shadow: 0 0 0 1px $color inset !important;
|
|
237
|
+
} @else {
|
|
238
|
+
box-shadow: 0 0 0 1px $color inset;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@mixin reset-button($outline-offset: 2px) {
|
|
243
|
+
cursor: pointer;
|
|
244
|
+
padding: 0;
|
|
245
|
+
margin: 0;
|
|
246
|
+
background-color: transparent;
|
|
247
|
+
appearance: none;
|
|
248
|
+
border: none;
|
|
249
|
+
border-radius: getCssVar('border-radius', 'base');
|
|
250
|
+
outline: none;
|
|
251
|
+
transition: transform getCssVar('transition-duration-fast') ease-in-out;
|
|
252
|
+
|
|
253
|
+
&:focus-visible {
|
|
254
|
+
outline: 2px solid getCssVar('color-primary');
|
|
255
|
+
outline-offset: $outline-offset;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@mixin utils-clearfix {
|
|
2
|
+
$selector: &;
|
|
3
|
+
|
|
4
|
+
@at-root {
|
|
5
|
+
#{$selector}::before,
|
|
6
|
+
#{$selector}::after {
|
|
7
|
+
display: table;
|
|
8
|
+
content: '';
|
|
9
|
+
}
|
|
10
|
+
#{$selector}::after {
|
|
11
|
+
clear: both;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin utils-vertical-center {
|
|
17
|
+
$selector: &;
|
|
18
|
+
|
|
19
|
+
@at-root {
|
|
20
|
+
#{$selector}::after {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
content: '';
|
|
23
|
+
height: 100%;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin utils-ellipsis {
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin utils-inline-flex-center {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(notification) {
|
|
6
|
+
@include set-component-css-var('notification', $notification);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@include b(notification) {
|
|
10
|
+
display: flex;
|
|
11
|
+
width: getCssVar('notification-width');
|
|
12
|
+
padding: getCssVar('notification-padding');
|
|
13
|
+
border-radius: getCssVar('notification-radius');
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
border: 1px solid getCssVar('notification-border-color');
|
|
16
|
+
position: fixed;
|
|
17
|
+
background-color: getCssVar('bg-color', 'overlay');
|
|
18
|
+
box-shadow: getCssVar('notification-shadow');
|
|
19
|
+
transition:
|
|
20
|
+
opacity getCssVar('transition-duration'),
|
|
21
|
+
transform getCssVar('transition-duration'),
|
|
22
|
+
left getCssVar('transition-duration'),
|
|
23
|
+
right getCssVar('transition-duration'),
|
|
24
|
+
top 0.4s,
|
|
25
|
+
bottom getCssVar('transition-duration');
|
|
26
|
+
overflow-wrap: break-word;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
z-index: 9999;
|
|
29
|
+
|
|
30
|
+
&.right {
|
|
31
|
+
right: 16px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.left {
|
|
35
|
+
left: 16px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include e(group) {
|
|
39
|
+
flex: 1;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
margin-left: getCssVar('notification-group-margin-left');
|
|
42
|
+
margin-right: getCssVar('notification-group-margin-right');
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include e(title) {
|
|
46
|
+
font-weight: bold;
|
|
47
|
+
font-size: getCssVar('notification-title-font-size');
|
|
48
|
+
line-height: getCssVar('notification-icon-size');
|
|
49
|
+
color: getCssVar('notification-title-color');
|
|
50
|
+
margin: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include e(content) {
|
|
54
|
+
font-size: getCssVar('notification-content-font-size');
|
|
55
|
+
line-height: 24px;
|
|
56
|
+
margin: 6px 0 0;
|
|
57
|
+
color: getCssVar('notification-content-color');
|
|
58
|
+
|
|
59
|
+
p {
|
|
60
|
+
margin: 0;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .#{$namespace}-notification__icon {
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
height: getCssVar('notification-icon-size');
|
|
67
|
+
width: getCssVar('notification-icon-size');
|
|
68
|
+
font-size: getCssVar('notification-icon-size');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
& .#{$namespace}-notification__closeBtn {
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 18px;
|
|
74
|
+
right: 15px;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
color: getCssVar('notification-close-color');
|
|
77
|
+
font-size: getCssVar('notification-close-font-size');
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
color: getCssVar('notification-close-hover-color');
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@each $type in (primary, success, info, warning, error) {
|
|
85
|
+
& .#{$namespace}-notification--#{$type} {
|
|
86
|
+
@include css-var-from-global(
|
|
87
|
+
('notification', 'icon-color'),
|
|
88
|
+
('color', $type)
|
|
89
|
+
);
|
|
90
|
+
color: getCssVar('notification-icon-color');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.#{$namespace}-notification-fade-enter-from {
|
|
96
|
+
&.right {
|
|
97
|
+
right: 0;
|
|
98
|
+
transform: translateX(100%);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.left {
|
|
102
|
+
left: 0;
|
|
103
|
+
transform: translateX(-100%);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.#{$namespace}-notification-fade-leave-to {
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'common/var' as *;
|
|
5
|
+
|
|
6
|
+
@include b(select-group) {
|
|
7
|
+
$gap: 20px;
|
|
8
|
+
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
|
|
12
|
+
@include e(wrap) {
|
|
13
|
+
position: relative;
|
|
14
|
+
list-style: none;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include e(title) {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
padding: 0 $gap;
|
|
22
|
+
font-size: map.get($select-group, 'font-size');
|
|
23
|
+
color: map.get($select-group, 'text-color');
|
|
24
|
+
line-height: map.get($select-group, 'height');
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& .#{$namespace}-select-dropdown__item {
|
|
31
|
+
padding-left: $gap;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'common/var' as *;
|
|
5
|
+
|
|
6
|
+
$checked-icon: "data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E";
|
|
7
|
+
|
|
8
|
+
@mixin checked-icon {
|
|
9
|
+
content: '';
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 50%;
|
|
12
|
+
right: 20px;
|
|
13
|
+
border-top: none;
|
|
14
|
+
border-right: none;
|
|
15
|
+
background-repeat: no-repeat;
|
|
16
|
+
background-position: center;
|
|
17
|
+
background-color: map.get($select-option, 'selected-text-color');
|
|
18
|
+
mask: url('#{$checked-icon}') no-repeat;
|
|
19
|
+
mask-size: 100% 100%;
|
|
20
|
+
-webkit-mask: url('#{$checked-icon}') no-repeat;
|
|
21
|
+
-webkit-mask-size: 100% 100%;
|
|
22
|
+
transform: translateY(-50%);
|
|
23
|
+
width: 12px;
|
|
24
|
+
height: 12px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include b(select-dropdown) {
|
|
28
|
+
@include e(item) {
|
|
29
|
+
font-size: map.get($select, 'font-size');
|
|
30
|
+
// 20 as the padding of option item, 12 as the size of ✓ icon size
|
|
31
|
+
padding: 0 #{20 + 12}px 0 20px;
|
|
32
|
+
position: relative;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
color: map.get($select-option, 'text-color');
|
|
37
|
+
height: map.get($select-option, 'height');
|
|
38
|
+
line-height: map.get($select-option, 'height');
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
|
|
42
|
+
@include when(hovering) {
|
|
43
|
+
background-color: map.get($select-option, 'hover-background');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@include when(selected) {
|
|
47
|
+
color: map.get($select-option, 'selected-text-color');
|
|
48
|
+
font-weight: bold;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@include when(disabled) {
|
|
52
|
+
color: map.get($select-option, 'disabled-color');
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
background-color: unset;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include when(multiple) {
|
|
59
|
+
.#{$namespace}-select-dropdown__item.is-selected {
|
|
60
|
+
&::after {
|
|
61
|
+
@include checked-icon;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$namespace}-select-dropdown__item.is-disabled {
|
|
66
|
+
&::after {
|
|
67
|
+
background-color: map.get($select-option, 'disabled-color');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(overlay) {
|
|
5
|
+
position: fixed;
|
|
6
|
+
top: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
z-index: 2000;
|
|
11
|
+
height: 100%;
|
|
12
|
+
background-color: getCssVar('overlay-color', 'lighter');
|
|
13
|
+
overflow: auto;
|
|
14
|
+
#{& + '-root'} {
|
|
15
|
+
height: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(page-header) {
|
|
5
|
+
@include when(contentful) {
|
|
6
|
+
@include e('main') {
|
|
7
|
+
border-top: 1px solid getCssVar('border-color', 'light');
|
|
8
|
+
margin-top: 16px;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@include e(header) {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
line-height: 24px;
|
|
17
|
+
|
|
18
|
+
@include e(left) {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
margin-right: 40px;
|
|
22
|
+
position: relative;
|
|
23
|
+
|
|
24
|
+
@include e('back') {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.#{$namespace}-divider--vertical {
|
|
31
|
+
margin: 0 16px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include e(icon) {
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
margin-right: 10px;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
|
|
40
|
+
.#{$namespace}-icon {
|
|
41
|
+
font-size: inherit;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include e(title) {
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@include e(content) {
|
|
53
|
+
font-size: 18px;
|
|
54
|
+
color: getCssVar('text-color', 'primary');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@include e(breadcrumb) {
|
|
58
|
+
margin-bottom: 16px;
|
|
59
|
+
}
|
|
60
|
+
}
|