@qsxy/element-plus-react 1.0.0-next.11 → 1.0.0-next.13
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/Avatar/Avatar.d.ts +2 -2
- package/dist/Avatar/Avatar.js +13 -6
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +15 -3
- package/dist/Checkbox/Checkbox.js +14 -12
- package/dist/Checkbox/CheckboxButton.js +15 -14
- package/dist/Checkbox/typings.d.ts +2 -1
- package/dist/Dropdown/Dropdown.d.ts +3 -3
- package/dist/Dropdown/Dropdown.js +20 -6
- package/dist/Dropdown/typings.d.ts +8 -1
- package/dist/Input/Input.js +3 -2
- package/dist/Input/typings.d.ts +1 -1
- package/dist/InputNumber/InputNumber.d.ts +2 -2
- package/dist/InputNumber/InputNumber.js +10 -5
- package/dist/Loading/Loading.d.ts +7 -2
- package/dist/Loading/Loading.js +108 -57
- package/dist/Loading/typings.d.ts +7 -1
- package/dist/Message/Main.d.ts +0 -7
- package/dist/Message/Main.js +0 -7
- package/dist/Message/Message.d.ts +2 -2
- package/dist/Message/Message.js +4 -3
- package/dist/Message/index.d.ts +0 -8
- package/dist/Message/index.js +5 -9
- package/dist/MessageBox/MessageBox.js +2 -1
- package/dist/MessageBox/index.d.ts +5 -5
- package/dist/MessageBox/index.js +1 -0
- package/dist/Notification/Main.d.ts +0 -7
- package/dist/Notification/Main.js +0 -7
- package/dist/Popover/Popover.d.ts +3 -2
- package/dist/Popover/Popover.js +10 -5
- package/dist/Popover/typings.d.ts +0 -1
- package/dist/Radio/Radio.js +14 -10
- package/dist/Radio/RadioButton.d.ts +2 -2
- package/dist/Radio/RadioButton.js +14 -4
- package/dist/Radio/typings.d.ts +2 -1
- package/dist/Switch/Switch.js +9 -3
- package/dist/Table/Table.d.ts +0 -1
- package/dist/Table/Table.js +1 -1
- package/dist/Table/hooks/useSelection.d.ts +1 -1
- package/dist/Tag/Tag.js +19 -8
- package/dist/TimePicker/TimeSpinnerPanel.js +5 -5
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/Tooltip.js +6 -6
- package/dist/Upload/use-handlers.d.ts +1 -1
- package/dist/index.css +1 -1
- package/package.json +1 -1
- package/theme-chalk/message/index.scss +11 -3
- package/dist/theme-chalk/avatar/index.scss +0 -50
- package/dist/theme-chalk/badge/index.scss +0 -63
- package/dist/theme-chalk/breadcrumb/index.scss +0 -65
- package/dist/theme-chalk/build.scss +0 -2
- package/dist/theme-chalk/button/_mixins.scss +0 -317
- package/dist/theme-chalk/button/button-group.scss +0 -83
- package/dist/theme-chalk/button/button.scss +0 -382
- package/dist/theme-chalk/button/index.scss +0 -2
- package/dist/theme-chalk/calendar/date-picker.scss +0 -112
- package/dist/theme-chalk/calendar/date-range-picker.scss +0 -139
- package/dist/theme-chalk/calendar/date-table.scss +0 -156
- package/dist/theme-chalk/calendar/index.scss +0 -6
- package/dist/theme-chalk/calendar/month-table.scss +0 -92
- package/dist/theme-chalk/calendar/picker-panel.scss +0 -136
- package/dist/theme-chalk/calendar/year-table.scss +0 -107
- package/dist/theme-chalk/card/index.scss +0 -44
- package/dist/theme-chalk/carousel/index.scss +0 -237
- package/dist/theme-chalk/cascader/cascader-panel.scss +0 -184
- package/dist/theme-chalk/cascader/cascader.scss +0 -239
- package/dist/theme-chalk/cascader/index.scss +0 -2
- package/dist/theme-chalk/checkbox/index.scss +0 -255
- package/dist/theme-chalk/checkbox-button/index.scss +0 -117
- package/dist/theme-chalk/checkbox-group/index.scss +0 -33
- package/dist/theme-chalk/col/_mixins.scss +0 -62
- package/dist/theme-chalk/col/index.scss +0 -50
- package/dist/theme-chalk/collapse/index.scss +0 -84
- package/dist/theme-chalk/color-picker/index.scss +0 -340
- package/dist/theme-chalk/common/_var.scss +0 -6
- package/dist/theme-chalk/common/index.d.ts +0 -1
- package/dist/theme-chalk/common/index.js +0 -1
- package/dist/theme-chalk/common/index.scss +0 -222
- package/dist/theme-chalk/date-picker/index.scss +0 -253
- package/dist/theme-chalk/date-time-picker/index.scss +0 -3
- package/dist/theme-chalk/date-time-picker/time-picker.scss +0 -83
- package/dist/theme-chalk/date-time-picker/time-range-picker.scss +0 -32
- package/dist/theme-chalk/descriptions/descriptions-item.scss +0 -66
- package/dist/theme-chalk/descriptions/descriptions.scss +0 -160
- package/dist/theme-chalk/descriptions/index.scss +0 -2
- package/dist/theme-chalk/dev.scss +0 -2
- package/dist/theme-chalk/dialog/index.scss +0 -190
- package/dist/theme-chalk/display.scss +0 -46
- package/dist/theme-chalk/divider/index.scss +0 -51
- package/dist/theme-chalk/doc.scss +0 -2
- package/dist/theme-chalk/drawer/index.scss +0 -250
- package/dist/theme-chalk/dropdown/index.scss +0 -147
- package/dist/theme-chalk/empty/index.scss +0 -69
- package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
- package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
- package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
- package/dist/theme-chalk/form/index.scss +0 -378
- package/dist/theme-chalk/icon/fonts.scss +0 -9
- package/dist/theme-chalk/icon/index.scss +0 -44
- package/dist/theme-chalk/icon/scss/_animated.scss +0 -205
- package/dist/theme-chalk/icon/scss/_bordered-pulled.scss +0 -20
- package/dist/theme-chalk/icon/scss/_core.scss +0 -33
- package/dist/theme-chalk/icon/scss/_duotone-icons.scss +0 -12
- package/dist/theme-chalk/icon/scss/_fixed-width.scss +0 -7
- package/dist/theme-chalk/icon/scss/_functions.scss +0 -57
- package/dist/theme-chalk/icon/scss/_icons.scss +0 -11
- package/dist/theme-chalk/icon/scss/_list.scss +0 -20
- package/dist/theme-chalk/icon/scss/_mixins.scss +0 -102
- package/dist/theme-chalk/icon/scss/_rotated-flipped.scss +0 -31
- package/dist/theme-chalk/icon/scss/_screen-reader.scss +0 -14
- package/dist/theme-chalk/icon/scss/_shims.scss +0 -2606
- package/dist/theme-chalk/icon/scss/_sizing.scss +0 -16
- package/dist/theme-chalk/icon/scss/_stacked.scss +0 -32
- package/dist/theme-chalk/icon/scss/_variables.scss +0 -9189
- package/dist/theme-chalk/icon/scss/brands.scss +0 -27
- package/dist/theme-chalk/icon/scss/duotone.scss +0 -72
- package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -13
- package/dist/theme-chalk/icon/scss/index.scss +0 -15
- package/dist/theme-chalk/icon/scss/light.scss +0 -21
- package/dist/theme-chalk/icon/scss/regular.scss +0 -21
- package/dist/theme-chalk/icon/scss/solid.scss +0 -21
- package/dist/theme-chalk/icon/scss/thin.scss +0 -21
- package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -3
- package/dist/theme-chalk/index.scss +0 -67
- package/dist/theme-chalk/input/_mixins.scss +0 -16
- package/dist/theme-chalk/input/index.scss +0 -3
- package/dist/theme-chalk/input/input-range.scss +0 -208
- package/dist/theme-chalk/input/input.scss +0 -577
- package/dist/theme-chalk/input-number/index.scss +0 -172
- package/dist/theme-chalk/link/index.scss +0 -99
- package/dist/theme-chalk/loading/index.scss +0 -94
- package/dist/theme-chalk/message/index.scss +0 -169
- package/dist/theme-chalk/message-box/index.scss +0 -184
- package/dist/theme-chalk/notification/index.scss +0 -155
- package/dist/theme-chalk/pagination/index.scss +0 -515
- package/dist/theme-chalk/placeholder/index.scss +0 -135
- package/dist/theme-chalk/popconfirm/index.scss +0 -35
- package/dist/theme-chalk/popover/index.scss +0 -54
- package/dist/theme-chalk/popper/index.scss +0 -86
- package/dist/theme-chalk/progress/index.scss +0 -155
- package/dist/theme-chalk/radio/index.scss +0 -2
- package/dist/theme-chalk/radio/radio-button.scss +0 -128
- package/dist/theme-chalk/radio/radio.scss +0 -171
- package/dist/theme-chalk/radio-group/index.scss +0 -31
- package/dist/theme-chalk/row/index.scss +0 -30
- package/dist/theme-chalk/scrollbar/index.scss +0 -103
- package/dist/theme-chalk/select/index.scss +0 -244
- package/dist/theme-chalk/select/option-group.scss +0 -54
- package/dist/theme-chalk/select/option.scss +0 -63
- package/dist/theme-chalk/select/select-dropdown.scss +0 -57
- package/dist/theme-chalk/switch/index.scss +0 -273
- package/dist/theme-chalk/table/index.scss +0 -714
- package/dist/theme-chalk/tabs/index.scss +0 -620
- package/dist/theme-chalk/tag/index.scss +0 -360
- package/dist/theme-chalk/time-line/_timeline-item.scss +0 -90
- package/dist/theme-chalk/time-line/_timeline.scss +0 -50
- package/dist/theme-chalk/time-line/index.scss +0 -2
- package/dist/theme-chalk/time-picker/index.scss +0 -109
- package/dist/theme-chalk/tooltip/index.scss +0 -13
- package/dist/theme-chalk/transfer/index.scss +0 -247
- package/dist/theme-chalk/transition/index.scss +0 -756
- package/dist/theme-chalk/tree/_directory.scss +0 -73
- package/dist/theme-chalk/tree/_tree.scss +0 -401
- package/dist/theme-chalk/tree/index.scss +0 -2
- package/dist/theme-chalk/tree-select/index.scss +0 -25
- package/dist/theme-chalk/upload/index.scss +0 -631
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
@use '../common/var';
|
|
2
|
-
|
|
3
|
-
@use 'sass:map';
|
|
4
|
-
@import './mixins';
|
|
5
|
-
|
|
6
|
-
$button-icon-span-gap: () !default;
|
|
7
|
-
$button-icon-span-gap: map.merge(
|
|
8
|
-
(
|
|
9
|
-
'large': 8px,
|
|
10
|
-
'default': 6px,
|
|
11
|
-
'small': 4px,
|
|
12
|
-
),
|
|
13
|
-
$button-icon-span-gap
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
.#{$namespace}-button {
|
|
17
|
-
--#{$namespace}-button-bg-color: var(--#{$namespace}-fill-color-blank);
|
|
18
|
-
--#{$namespace}-button-border-style: solid;
|
|
19
|
-
--#{$namespace}-button-text-color: var(--#{$namespace}-text-color-regular);
|
|
20
|
-
--#{$namespace}-button-border-color: var(--#{$namespace}-border-color, var(--#{$namespace}-color-primary));
|
|
21
|
-
--#{$namespace}-button-hover-bg-color: var(--#{$namespace}-color-primary-light-9);
|
|
22
|
-
--#{$namespace}-button-active-border-color: var(--#{$namespace}-color-primary);
|
|
23
|
-
--#{$namespace}-button-active-bg-color: var(--#{$namespace}-button-hover-bg-color);
|
|
24
|
-
--#{$namespace}-button-active-color: var(--#{$namespace}-text-color-primary);
|
|
25
|
-
--#{$namespace}-button-hover-text-color: var(--#{$namespace}-color-primary);
|
|
26
|
-
--#{$namespace}-button-hover-border-color: var(--#{$namespace}-color-primary-light-7);
|
|
27
|
-
--#{$namespace}-button-hover-link-text-color: var(--#{$namespace}-color-info);
|
|
28
|
-
--#{$namespace}-button-active-text-color: var(--#{$namespace}-button-hover-text-color);
|
|
29
|
-
--#{$namespace}-button-disabled-text-color: var(--#{$namespace}-disabled-text-color);
|
|
30
|
-
--#{$namespace}-button-disabled-bg-color: var(--#{$namespace}-fill-color-blank);
|
|
31
|
-
--#{$namespace}-button-disabled-border-color: var(--#{$namespace}-border-color-light);
|
|
32
|
-
--#{$namespace}-button-divide-border-color: rgba(255, 255, 255, 0.5);
|
|
33
|
-
--#{$namespace}-button-outline-color: var(--#{$namespace}-color-primary-light-5);
|
|
34
|
-
--#{$namespace}-button-border-radius-round: 20px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.#{$namespace}-button {
|
|
38
|
-
display: inline-flex;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
align-items: center;
|
|
41
|
-
line-height: 1;
|
|
42
|
-
height: 32px;
|
|
43
|
-
white-space: nowrap;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
background: var(--#{$namespace}-button-bg-color);
|
|
46
|
-
border: 1px var(--#{$namespace}-button-border-style);
|
|
47
|
-
border-color: var(--#{$namespace}-button-border-color);
|
|
48
|
-
color: var(--#{$namespace}-button-text-color);
|
|
49
|
-
// -webkit-appearance: none;
|
|
50
|
-
text-align: center;
|
|
51
|
-
box-sizing: border-box;
|
|
52
|
-
outline: none;
|
|
53
|
-
transition: 0.1s;
|
|
54
|
-
font-weight: 500;
|
|
55
|
-
user-select: none;
|
|
56
|
-
vertical-align: middle;
|
|
57
|
-
padding: 8px 15px;
|
|
58
|
-
font-size: 14px;
|
|
59
|
-
border-radius: 4px;
|
|
60
|
-
|
|
61
|
-
& > span {
|
|
62
|
-
display: inline-flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
& + & {
|
|
67
|
-
margin-left: 12px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// @include button-size(
|
|
71
|
-
// map.get($button-padding-vertical, 'default') - $button-border-width,
|
|
72
|
-
// map.get($button-padding-horizontal, 'default') - $button-border-width,
|
|
73
|
-
// map.get($button-font-size, 'default'),
|
|
74
|
-
// map.get($button-border-radius, 'default')
|
|
75
|
-
// );
|
|
76
|
-
|
|
77
|
-
&:hover,
|
|
78
|
-
&:focus {
|
|
79
|
-
color: var(--#{$namespace}-button-hover-text-color, var(--#{$namespace}-color-primary));
|
|
80
|
-
border-color: var(--#{$namespace}-button-hover-border-color);
|
|
81
|
-
background: var(--#{$namespace}-button-hover-bg-color, #ecf5ff);
|
|
82
|
-
outline: none;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&:active,
|
|
86
|
-
&.is-active {
|
|
87
|
-
color: var(--#{$namespace}-button-active-text-color, var(--#{$namespace}-color-primary));
|
|
88
|
-
border-color: var(--#{$namespace}-button-active-border-color);
|
|
89
|
-
background: var(--#{$namespace}-button-active-bg-color, #ecf5ff);
|
|
90
|
-
outline: none;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&::-moz-focus-inner {
|
|
94
|
-
border: 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
& [class*='#{$namespace}-icon'] {
|
|
98
|
-
& + span {
|
|
99
|
-
margin-left: 6px;
|
|
100
|
-
}
|
|
101
|
-
svg {
|
|
102
|
-
vertical-align: bottom;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&.is-plain,
|
|
107
|
-
&.is-dashed {
|
|
108
|
-
--#{$namespace}-button-hover-text-color: var(--#{$namespace}-color-primary);
|
|
109
|
-
--#{$namespace}-button-hover-bg-color: var(--#{$namespace}-fill-color-blank);
|
|
110
|
-
--#{$namespace}-button-hover-border-color: var(--#{$namespace}-color-primary);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&.is-dashed {
|
|
114
|
-
--#{$namespace}-button-border-style: dashed;
|
|
115
|
-
--#{$namespace}-button-active-bg-color: var(--#{$namespace}-fill-color-blank);
|
|
116
|
-
--#{$namespace}-button-active-text-color: var(--#{$namespace}-color-primary-light-3);
|
|
117
|
-
--#{$namespace}-button-active-border-color: var(--#{$namespace}-color-primary-light-3);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&.is-disabled {
|
|
121
|
-
&,
|
|
122
|
-
&:hover,
|
|
123
|
-
&:focus {
|
|
124
|
-
color: var(--#{$namespace}-button-disabled-text-color, #a8abb2);
|
|
125
|
-
cursor: not-allowed;
|
|
126
|
-
background-image: none;
|
|
127
|
-
background: var(--#{$namespace}-button-disabled-bg-color, #ffffff);
|
|
128
|
-
border-color: var(--#{$namespace}-button-disabled-border-color, #e4e7ed);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&.is-loading {
|
|
133
|
-
position: relative;
|
|
134
|
-
pointer-events: none;
|
|
135
|
-
|
|
136
|
-
&:before {
|
|
137
|
-
// mask the button
|
|
138
|
-
z-index: 1;
|
|
139
|
-
pointer-events: none;
|
|
140
|
-
content: '';
|
|
141
|
-
position: absolute;
|
|
142
|
-
left: -1px;
|
|
143
|
-
top: -1px;
|
|
144
|
-
right: -1px;
|
|
145
|
-
bottom: -1px;
|
|
146
|
-
border-radius: inherit;
|
|
147
|
-
background: rgba(255, 255, 255, 0.1);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&.is-round {
|
|
152
|
-
border-radius: 20px;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&.is-circle {
|
|
156
|
-
border-radius: 50%;
|
|
157
|
-
padding: 8px;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&.is-block {
|
|
161
|
-
width: 100%;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&.is-text {
|
|
165
|
-
color: var(--#{$namespace}-button-text-color);
|
|
166
|
-
border: 0 solid transparent;
|
|
167
|
-
background: transparent;
|
|
168
|
-
|
|
169
|
-
&.is-disabled {
|
|
170
|
-
color: var(--#{$namespace}-button-disabled-text-color);
|
|
171
|
-
background: transparent;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
&:not(.is-disabled) {
|
|
175
|
-
&:hover,
|
|
176
|
-
&:focus {
|
|
177
|
-
background: var(--#{$namespace}-fill-color-light);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
&:focus-visible {
|
|
181
|
-
outline: 2px solid var(--#{$namespace}-button-outline-color);
|
|
182
|
-
outline-offset: 1px;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&:active {
|
|
186
|
-
background: var(--#{$namespace}-fill-color);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&.is-has-bg {
|
|
190
|
-
background: var(--#{$namespace}-fill-color-light);
|
|
191
|
-
|
|
192
|
-
&:hover,
|
|
193
|
-
&:focus {
|
|
194
|
-
background: var(--#{$namespace}-fill-color);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&:active {
|
|
198
|
-
background: var(--#{$namespace}-fill-color-dark);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
&.is-link {
|
|
205
|
-
border-color: transparent;
|
|
206
|
-
color: var(--#{$namespace}-button-text-color);
|
|
207
|
-
background: transparent;
|
|
208
|
-
padding: 2px;
|
|
209
|
-
height: auto;
|
|
210
|
-
|
|
211
|
-
&:hover,
|
|
212
|
-
&:focus {
|
|
213
|
-
color: var(--#{$namespace}-button-hover-link-text-color);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&.is-disabled {
|
|
217
|
-
color: var(--#{$namespace}-button-disabled-text-color);
|
|
218
|
-
background: transparent;
|
|
219
|
-
border-color: transparent;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&:not(.is-disabled) {
|
|
223
|
-
&:hover,
|
|
224
|
-
&:focus {
|
|
225
|
-
border-color: transparent;
|
|
226
|
-
background: transparent;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
&:active {
|
|
230
|
-
color: var(--#{$namespace}-button-active-color);
|
|
231
|
-
border-color: transparent;
|
|
232
|
-
background: transparent;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.#{$namespace}-button__text--expand {
|
|
239
|
-
letter-spacing: 0.3em;
|
|
240
|
-
margin-right: -0.3em;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.#{$namespace}-button--primary {
|
|
244
|
-
--#{$namespace}-button-text-color: var(--#{$namespace}-color-white);
|
|
245
|
-
--#{$namespace}-button-bg-color: var(--#{$namespace}-bg-color-primary, var(--#{$namespace}-color-primary));
|
|
246
|
-
--#{$namespace}-button-border-color: var(--btn-border-color, #4f8ffa);
|
|
247
|
-
--#{$namespace}-button-hover-text-color: var(--#{$namespace}-color-white);
|
|
248
|
-
--#{$namespace}-button-hover-bg-color: var(--#{$namespace}-bg-color-primary, #79bbff);
|
|
249
|
-
--#{$namespace}-button-hover-border-color: var(--btn-border-color, #79bbff);
|
|
250
|
-
--#{$namespace}-button-hover-link-text-color: var(--#{$namespace}-color-primary-light-5);
|
|
251
|
-
--#{$namespace}-button-active-text-color: var(--#{$namespace}-color-white);
|
|
252
|
-
--#{$namespace}-button-active-bg-color: var(--#{$namespace}-bg-color-primary, #337ecc);
|
|
253
|
-
--#{$namespace}-button-active-border-color: var(--btn-border-color, #337ecc);
|
|
254
|
-
--#{$namespace}-button-disabled-text-color: var(--#{$namespace}-color-white);
|
|
255
|
-
--#{$namespace}-button-disabled-bg-color: var(--#{$namespace}-bg-color-primary, #a0cfff);
|
|
256
|
-
--#{$namespace}-button-disabled-border-color: var(--btn-border-color, #a0cfff);
|
|
257
|
-
// 我是默认按钮悬浮透明度
|
|
258
|
-
--#{$namespace}-button-hover-opacity: 0.8;
|
|
259
|
-
// 我是默认按钮禁用状态透明度
|
|
260
|
-
--#{$namespace}-button--disabled-opacity: 0.5;
|
|
261
|
-
|
|
262
|
-
&:hover,
|
|
263
|
-
&:focus {
|
|
264
|
-
opacity: var(--#{$namespace}-button-hover-opacity, 1);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
&:active,
|
|
268
|
-
&.is-active {
|
|
269
|
-
opacity: calc(var(--#{$namespace}-button-hover-opacity, 1) * 10);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
&.is-disabled {
|
|
273
|
-
&,
|
|
274
|
-
&:hover,
|
|
275
|
-
&:focus {
|
|
276
|
-
opacity: var(--#{$namespace}-button--disabled-opacity, 1);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
&.is-plain {
|
|
281
|
-
--#{$namespace}-button-text-color: var(--#{$namespace}-color-primary);
|
|
282
|
-
--#{$namespace}-button-bg-color: var(--#{$namespace}-color-primary-light-9, #ecf5ff);
|
|
283
|
-
--#{$namespace}-button-border-color: var(--#{$namespace}-color-primary-light-5, #a0cfff);
|
|
284
|
-
--#{$namespace}-button-hover-text-color: var(--#{$namespace}-color-white);
|
|
285
|
-
--#{$namespace}-button-hover-bg-color: var(--#{$namespace}-bg-color-primary, var(--#{$namespace}-color-primary));
|
|
286
|
-
--#{$namespace}-button-hover-border-color: var(--btn-border-color, #4f8ffa);
|
|
287
|
-
|
|
288
|
-
&.is-disabled,
|
|
289
|
-
&.is-disabled:hover,
|
|
290
|
-
&.is-disabled:focus,
|
|
291
|
-
&.is-disabled:active {
|
|
292
|
-
color: var(--#{$namespace}-color-primary-light-5, #a0cfff);
|
|
293
|
-
background: var(--#{$namespace}-color-primary-light-9, #ecf5ff);
|
|
294
|
-
border-color: var(--#{$namespace}-color-primary-light-8, #d9ecff);
|
|
295
|
-
opacity: 1;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
&.is-dashed {
|
|
300
|
-
--#{$namespace}-button-text-color: var(--#{$namespace}-color-primary);
|
|
301
|
-
--#{$namespace}-button-bg-color: var(--#{$namespace}-fill-color-blank);
|
|
302
|
-
--#{$namespace}-button-hover-text-color: var(--#{$namespace}-color-primary);
|
|
303
|
-
--#{$namespace}-button-hover-bg-color: var(--#{$namespace}-fill-color-blank);
|
|
304
|
-
--#{$namespace}-button-hover-border-color: var(--btn-border-color);
|
|
305
|
-
--#{$namespace}-button-active-text-color: var(--#{$namespace}-color-primary);
|
|
306
|
-
--#{$namespace}-button-active-border-color: var(--#{$namespace}-color-primary);
|
|
307
|
-
|
|
308
|
-
&.is-disabled,
|
|
309
|
-
&.is-disabled:hover,
|
|
310
|
-
&.is-disabled:focus,
|
|
311
|
-
&.is-disabled:active {
|
|
312
|
-
color: var(--#{$namespace}-color-primary-light-5, #a0cfff);
|
|
313
|
-
background: var(--#{$namespace}-fill-color-blank);
|
|
314
|
-
border-color: var(--#{$namespace}-color-primary-light-8, #d9ecff);
|
|
315
|
-
opacity: 1;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
&.is-link,
|
|
320
|
-
&.is-text {
|
|
321
|
-
--#{$namespace}-button-text-color: var(--#{$namespace}-color-primary);
|
|
322
|
-
--#{$namespace}-button-bg-color: var(--#{$namespace}-color-primary-light-9, #ecf5ff);
|
|
323
|
-
--#{$namespace}-button-border-color: var(--#{$namespace}-color-primary-light-5, #a0cfff);
|
|
324
|
-
--#{$namespace}-button-hover-text-color: var(--#{$namespace}-color-white);
|
|
325
|
-
--#{$namespace}-button-hover-bg-color: var(--#{$namespace}-bg-color-primary, var(--#{$namespace}-color-primary));
|
|
326
|
-
--#{$namespace}-button-hover-border-color: var(--btn-border-color, #4f8ffa);
|
|
327
|
-
|
|
328
|
-
&.is-disabled,
|
|
329
|
-
&.is-disabled:hover,
|
|
330
|
-
&.is-disabled:focus,
|
|
331
|
-
&.is-disabled:active {
|
|
332
|
-
color: var(--#{$namespace}-color-primary-light-5, #a0cfff);
|
|
333
|
-
opacity: 1;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
@each $type in (success, warning, danger, error, info) {
|
|
339
|
-
.#{$namespace}-button--#{$type} {
|
|
340
|
-
@include button-variant($type);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.#{$namespace}-button--large {
|
|
345
|
-
height: var(--#{$namespace}-component-size-large);
|
|
346
|
-
padding: 12px 19px;
|
|
347
|
-
font-size: 14px;
|
|
348
|
-
border-radius: 4px;
|
|
349
|
-
|
|
350
|
-
[class*='#{$namespace}-icon'] + span {
|
|
351
|
-
margin-left: 8px;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
&.is-round {
|
|
355
|
-
padding: 12px 19px;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
&.is-circle {
|
|
359
|
-
width: var(--#{$namespace}-component-size-large);
|
|
360
|
-
padding: 12px;
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
.#{$namespace}-button--small {
|
|
365
|
-
height: var(--#{$namespace}-component-size-small);
|
|
366
|
-
padding: 5px 11px;
|
|
367
|
-
font-size: 12px;
|
|
368
|
-
border-radius: 3px;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.#{$namespace}-button--small [class*='#{$namespace}-icon'] + span {
|
|
372
|
-
margin-left: 4px;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.#{$namespace}-button--small.is-round {
|
|
376
|
-
padding: 5px 11px;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.#{$namespace}-button--small.is-circle {
|
|
380
|
-
width: var(--#{$namespace}-component-size-small);
|
|
381
|
-
padding: 5px;
|
|
382
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
@use '../common/var';
|
|
2
|
-
|
|
3
|
-
.#{$namespace}-date-picker {
|
|
4
|
-
--#{$namespace}-datepicker-text-color: var(--#{$namespace}-text-color-regular);
|
|
5
|
-
--#{$namespace}-datepicker-off-text-color: var(--#{$namespace}-text-color-placeholder);
|
|
6
|
-
--#{$namespace}-datepicker-header-text-color: var(--#{$namespace}-text-color-regular);
|
|
7
|
-
--#{$namespace}-datepicker-icon-color: var(--#{$namespace}-text-color-primary);
|
|
8
|
-
--#{$namespace}-datepicker-border-color: var(--#{$namespace}-border-color);
|
|
9
|
-
--#{$namespace}-datepicker-inner-border-color: var(--#{$namespace}-border-color-light);
|
|
10
|
-
--#{$namespace}-datepicker-inrange-bg-color: var(--#{$namespace}-border-color-extra-light);
|
|
11
|
-
--#{$namespace}-datepicker-inrange-hover-bg-color: var(--#{$namespace}-border-color-extra-light);
|
|
12
|
-
--#{$namespace}-datepicker-active-color: var(--#{$namespace}-color-primary);
|
|
13
|
-
--#{$namespace}-datepicker-hover-text-color: var(--#{$namespace}-color-primary);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.#{$namespace}-date-picker {
|
|
17
|
-
width: 322px;
|
|
18
|
-
|
|
19
|
-
&.has-sidebar.has-time {
|
|
20
|
-
width: 434px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.has-sidebar {
|
|
24
|
-
width: 438px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.has-time .#{$namespace}-picker-panel__body-wrapper {
|
|
28
|
-
position: relative;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.#{$namespace}-picker-panel__content {
|
|
32
|
-
width: 292px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
table {
|
|
36
|
-
table-layout: fixed;
|
|
37
|
-
width: 100%;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&__editor-wrap {
|
|
41
|
-
position: relative;
|
|
42
|
-
display: table-cell;
|
|
43
|
-
padding: 0 5px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&__time-header {
|
|
47
|
-
position: relative;
|
|
48
|
-
border-bottom: 1px solid var(--#{$namespace}-datepicker-inner-border-color);
|
|
49
|
-
font-size: 12px;
|
|
50
|
-
padding: 8px 5px 5px 5px;
|
|
51
|
-
display: table;
|
|
52
|
-
width: 100%;
|
|
53
|
-
box-sizing: border-box;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&__header {
|
|
57
|
-
margin: 12px;
|
|
58
|
-
text-align: center;
|
|
59
|
-
|
|
60
|
-
&--bordered {
|
|
61
|
-
margin-bottom: 0;
|
|
62
|
-
padding-bottom: 12px;
|
|
63
|
-
border-bottom: solid 1px var(--#{$namespace}-border-color-lighter);
|
|
64
|
-
|
|
65
|
-
& + .#{$namespace}-picker-panel__content {
|
|
66
|
-
margin-top: 0;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&__header-label {
|
|
72
|
-
font-size: 16px;
|
|
73
|
-
font-weight: 500;
|
|
74
|
-
padding: 0 5px;
|
|
75
|
-
line-height: 22px;
|
|
76
|
-
text-align: center;
|
|
77
|
-
cursor: pointer;
|
|
78
|
-
color: var(--#{$namespace}-text-color-regular);
|
|
79
|
-
|
|
80
|
-
&:hover {
|
|
81
|
-
color: var(--#{$namespace}-color-primary);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&.active {
|
|
85
|
-
color: var(--#{$namespace}-color-primary);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&__prev-btn {
|
|
90
|
-
float: left;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&__next-btn {
|
|
94
|
-
float: right;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&__time-wrap {
|
|
98
|
-
padding: 10px;
|
|
99
|
-
text-align: center;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&__time-label {
|
|
103
|
-
float: left;
|
|
104
|
-
cursor: pointer;
|
|
105
|
-
line-height: 30px;
|
|
106
|
-
margin-left: 10px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.#{$namespace}-time-panel {
|
|
110
|
-
position: absolute;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
@use '../common/var';
|
|
2
|
-
|
|
3
|
-
.#{$namespace}-date-range-picker {
|
|
4
|
-
--#{$namespace}-datepicker-text-color: var(--#{$namespace}-text-color-regular);
|
|
5
|
-
--#{$namespace}-datepicker-off-text-color: var(--#{$namespace}-text-color-placeholder);
|
|
6
|
-
--#{$namespace}-datepicker-header-text-color: var(--#{$namespace}-text-color-regular);
|
|
7
|
-
--#{$namespace}-datepicker-icon-color: var(--#{$namespace}-text-color-primary);
|
|
8
|
-
--#{$namespace}-datepicker-border-color: var(--#{$namespace}-border-color);
|
|
9
|
-
--#{$namespace}-datepicker-inner-border-color: var(--#{$namespace}-border-color-light);
|
|
10
|
-
--#{$namespace}-datepicker-inrange-bg-color: var(--#{$namespace}-border-color-extra-light);
|
|
11
|
-
--#{$namespace}-datepicker-inrange-hover-bg-color: var(--#{$namespace}-border-color-extra-light);
|
|
12
|
-
--#{$namespace}-datepicker-active-color: var(--#{$namespace}-color-primary);
|
|
13
|
-
--#{$namespace}-datepicker-hover-text-color: var(--#{$namespace}-color-primary);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.#{$namespace}-date-range-picker {
|
|
17
|
-
width: 646px;
|
|
18
|
-
|
|
19
|
-
&.has-sidebar {
|
|
20
|
-
width: 756px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
table {
|
|
24
|
-
table-layout: fixed;
|
|
25
|
-
width: 100%;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.#{$namespace}-picker-panel__body {
|
|
29
|
-
min-width: 513px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.#{$namespace}-picker-panel__content {
|
|
33
|
-
margin: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&__header {
|
|
37
|
-
position: relative;
|
|
38
|
-
text-align: center;
|
|
39
|
-
height: 28px;
|
|
40
|
-
|
|
41
|
-
// [class*='arrow-left'],
|
|
42
|
-
.#{$namespace}-date-range-picker__prev-btn {
|
|
43
|
-
float: left;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// [class*='arrow-right'],
|
|
47
|
-
.#{$namespace}-date-range-picker__next-btn {
|
|
48
|
-
float: right;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
div {
|
|
52
|
-
font-size: 16px;
|
|
53
|
-
font-weight: 500;
|
|
54
|
-
// margin-right: 50px;
|
|
55
|
-
cursor: text;
|
|
56
|
-
margin-top: -2px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&__header-label {
|
|
61
|
-
font-size: 16px;
|
|
62
|
-
font-weight: 500;
|
|
63
|
-
padding: 0 5px;
|
|
64
|
-
line-height: 22px;
|
|
65
|
-
text-align: center;
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
color: var(--#{$namespace}-text-color-regular);
|
|
68
|
-
|
|
69
|
-
&:hover {
|
|
70
|
-
color: var(--#{$namespace}-datepicker-hover-text-color);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.active {
|
|
74
|
-
color: var(--#{$namespace}-datepicker-hover-text-color);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&__content {
|
|
79
|
-
float: left;
|
|
80
|
-
width: 50%;
|
|
81
|
-
box-sizing: border-box;
|
|
82
|
-
margin: 0;
|
|
83
|
-
padding: 16px;
|
|
84
|
-
|
|
85
|
-
&.is-left {
|
|
86
|
-
border-right: 1px solid var(--#{$namespace}-datepicker-inner-border-color);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// .#{$namespace}-date-range-picker__header {
|
|
90
|
-
// div {
|
|
91
|
-
// margin-left: 50px;
|
|
92
|
-
// margin-right: 50px;
|
|
93
|
-
// }
|
|
94
|
-
// }
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&__editors-wrap {
|
|
98
|
-
box-sizing: border-box;
|
|
99
|
-
display: table-cell;
|
|
100
|
-
|
|
101
|
-
.is-right {
|
|
102
|
-
text-align: right;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&__time-header {
|
|
107
|
-
position: relative;
|
|
108
|
-
border-bottom: 1px solid var(--#{$namespace}-datepicker-inner-border-color);
|
|
109
|
-
font-size: 12px;
|
|
110
|
-
padding: 8px 5px 5px 5px;
|
|
111
|
-
display: table;
|
|
112
|
-
width: 100%;
|
|
113
|
-
box-sizing: border-box;
|
|
114
|
-
|
|
115
|
-
& > .#{$namespace}-icon-arrow-right {
|
|
116
|
-
font-size: 20px;
|
|
117
|
-
vertical-align: middle;
|
|
118
|
-
display: table-cell;
|
|
119
|
-
color: #303133;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&__time-picker-wrap {
|
|
124
|
-
position: relative;
|
|
125
|
-
display: table-cell;
|
|
126
|
-
padding: 0 5px;
|
|
127
|
-
|
|
128
|
-
.#{$namespace}-picker-panel {
|
|
129
|
-
position: absolute;
|
|
130
|
-
top: 13px;
|
|
131
|
-
right: 0;
|
|
132
|
-
z-index: 1;
|
|
133
|
-
background: #ffffff;
|
|
134
|
-
}
|
|
135
|
-
.#{$namespace}-time-panel {
|
|
136
|
-
position: absolute;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|