@qsxy/element-plus-react 1.0.0-next.18 → 1.0.0-next.21
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/README.md +12 -39
- package/dist/Breadcrumb/BreadcrumbItem.js +4 -7
- package/dist/Switch/Switch.js +50 -17
- package/dist/Switch/typings.d.ts +4 -0
- package/dist/Tooltip/Tooltip.js +2 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/package.json +1 -2
- package/theme-chalk/{avatar/index.scss → avatar.scss} +1 -1
- package/theme-chalk/{badge/index.scss → badge.scss} +1 -1
- package/theme-chalk/{breadcrumb/index.scss → breadcrumb.scss} +1 -1
- package/theme-chalk/build.scss +1 -1
- package/theme-chalk/button/_mixins.scss +3 -3
- package/theme-chalk/button/button-group.scss +1 -1
- package/theme-chalk/button/button.scss +2 -2
- package/theme-chalk/button/index.scss +2 -2
- package/theme-chalk/button--bak/_mixins.scss +317 -0
- package/theme-chalk/button--bak/button-group.scss +83 -0
- package/theme-chalk/button--bak/button.scss +382 -0
- package/theme-chalk/button--bak/index.scss +2 -0
- package/theme-chalk/button-group.scss +80 -0
- package/theme-chalk/button.scss +304 -0
- package/theme-chalk/calendar/date-picker.scss +1 -1
- package/theme-chalk/calendar/date-range-picker.scss +1 -1
- package/theme-chalk/calendar/date-table.scss +164 -156
- package/theme-chalk/calendar/date-table.scss--bak +156 -0
- package/theme-chalk/calendar/index.scss +6 -6
- package/theme-chalk/calendar/month-table.scss +1 -1
- package/theme-chalk/calendar/picker-panel.scss +1 -1
- package/theme-chalk/calendar/year-table.scss +1 -1
- package/theme-chalk/{card/index.scss → card.scss} +1 -1
- package/theme-chalk/{carousel/index.scss → carousel.scss} +1 -1
- package/theme-chalk/{cascader/cascader-panel.scss → cascader-panel.scss} +1 -1
- package/theme-chalk/{cascader/cascader.scss → cascader.scss} +1 -1
- package/theme-chalk/{checkbox-button/index.scss → checkbox-button.scss} +1 -1
- package/theme-chalk/{checkbox-group/index.scss → checkbox-group.scss} +1 -1
- package/theme-chalk/{checkbox/index.scss → checkbox.scss} +2 -1
- package/theme-chalk/col/_mixins.scss +5 -3
- package/theme-chalk/col/index.scss +2 -2
- package/theme-chalk/{collapse/index.scss → collapse.scss} +1 -1
- package/theme-chalk/color/index.scss +20 -0
- package/theme-chalk/{color-picker/index.scss → color-picker.scss} +3 -3
- package/theme-chalk/common/index.scss +127 -178
- package/theme-chalk/common/var.scss +1632 -0
- package/theme-chalk/dark/css-vars.scss +39 -0
- package/theme-chalk/dark/var.scss +225 -0
- package/theme-chalk/{date-picker/index.scss → date-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-picker.scss → date-time-picker.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions-item.scss → descriptions-item.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions.scss → descriptions.scss} +1 -1
- package/theme-chalk/dev.scss +2 -2
- package/theme-chalk/{dialog/index.scss → dialog.scss} +1 -1
- package/theme-chalk/display.scss +1 -1
- package/theme-chalk/{divider/index.scss → divider.scss} +1 -1
- package/theme-chalk/doc.scss +2 -2
- package/theme-chalk/{drawer/index.scss → drawer.scss} +1 -1
- package/theme-chalk/{dropdown/index.scss → dropdown.scss} +1 -1
- package/theme-chalk/{empty/index.scss → empty.scss} +1 -1
- package/theme-chalk/{form/index.scss → form.scss} +1 -1
- package/theme-chalk/icon/fonts.scss +9 -9
- package/theme-chalk/icon/index.scss +1 -1
- package/theme-chalk/icon/scss/_animated.scss +1 -0
- package/theme-chalk/icon/scss/_bordered-pulled.scss +1 -0
- package/theme-chalk/icon/scss/_core.scss +2 -0
- package/theme-chalk/icon/scss/_duotone-icons.scss +3 -4
- package/theme-chalk/icon/scss/_fixed-width.scss +1 -0
- package/theme-chalk/icon/scss/_functions.scss +2 -1
- package/theme-chalk/icon/scss/_icons.scss +3 -4
- package/theme-chalk/icon/scss/_list.scss +1 -0
- package/theme-chalk/icon/scss/_mixins.scss +10 -7
- package/theme-chalk/icon/scss/_rotated-flipped.scss +1 -0
- package/theme-chalk/icon/scss/_screen-reader.scss +2 -0
- package/theme-chalk/icon/scss/_shims.scss +292 -290
- package/theme-chalk/icon/scss/_sizing.scss +2 -0
- package/theme-chalk/icon/scss/_stacked.scss +1 -0
- package/theme-chalk/icon/scss/brands.scss +8 -6
- package/theme-chalk/icon/scss/duotone.scss +6 -5
- package/theme-chalk/icon/scss/fontawesome.scss +13 -13
- package/theme-chalk/icon/scss/index.scss +12 -15
- package/theme-chalk/icon/scss/light.scss +3 -2
- package/theme-chalk/icon/scss/regular.scss +3 -2
- package/theme-chalk/icon/scss/solid.scss +3 -2
- package/theme-chalk/icon/scss/thin.scss +3 -2
- package/theme-chalk/icon/scss/{_variables.scss → variables.scss} +2 -0
- package/theme-chalk/index.scss +63 -57
- package/theme-chalk/input/_mixins.scss +1 -1
- package/theme-chalk/input/index.scss +2 -3
- package/theme-chalk/input/input-range.scss +2 -1
- package/theme-chalk/input/input.scss +2 -1
- package/theme-chalk/{input-number/index.scss → input-number.scss} +4 -4
- package/theme-chalk/{link/index.scss → link.scss} +1 -1
- package/theme-chalk/{loading/index.scss → loading.scss} +1 -1
- package/theme-chalk/{message-box/index.scss → message-box.scss} +1 -1
- package/theme-chalk/{message/index.scss → message.scss} +2 -1
- package/theme-chalk/mixins/_button.scss +224 -0
- package/theme-chalk/mixins/_col.scss +33 -0
- package/theme-chalk/mixins/_var.scss +67 -0
- package/theme-chalk/{common/_var.scss → mixins/config.scss} +5 -6
- package/theme-chalk/mixins/function.scss +99 -0
- package/theme-chalk/mixins/mixins.scss +240 -0
- package/theme-chalk/mixins/utils.scss +39 -0
- package/theme-chalk/{notification/index.scss → notification.scss} +2 -1
- package/theme-chalk/pagination.scss +303 -0
- package/theme-chalk/{popconfirm/index.scss → popconfirm.scss} +1 -1
- package/theme-chalk/{popover/index.scss → popover.scss} +1 -1
- package/theme-chalk/popper.scss +104 -0
- package/theme-chalk/{popper/index.scss → popper.scss--bak} +1 -1
- package/theme-chalk/{progress/index.scss → progress.scss} +1 -1
- package/theme-chalk/radio-button.scss +169 -0
- package/theme-chalk/{radio/radio-button.scss → radio-button.scss--bak} +1 -1
- package/theme-chalk/{radio-group/index.scss → radio-group.scss} +1 -10
- package/theme-chalk/{radio/radio.scss → radio.scss} +1 -1
- package/theme-chalk/{row/index.scss → row.scss} +1 -1
- package/theme-chalk/{scrollbar/index.scss → scrollbar.scss} +1 -1
- package/theme-chalk/select/index.scss +1 -1
- package/theme-chalk/{skeleton/index.scss → skeleton.scss} +1 -1
- package/theme-chalk/switch.scss +300 -0
- package/theme-chalk/{switch/index.scss → switch.scss--bak} +1 -1
- package/theme-chalk/{table/index.scss → table.scss} +1 -1
- package/theme-chalk/{tabs/index.scss → tabs.scss} +1 -1
- package/theme-chalk/{tag/index.scss → tag.scss} +1 -1
- package/theme-chalk/{time-line/_timeline.scss → time-line.scss} +1 -1
- package/theme-chalk/{time-picker/index.scss → time-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-range-picker.scss → time-range-picker.scss} +1 -1
- package/theme-chalk/{time-line/_timeline-item.scss → timeline-item.scss} +1 -1
- package/theme-chalk/{tooltip/index.scss → tooltip.scss} +1 -1
- package/theme-chalk/{transfer/index.scss → transfer.scss} +1 -1
- package/theme-chalk/{transition/index.scss → transition.scss} +1 -1
- package/theme-chalk/tree/_directory.scss +1 -1
- package/theme-chalk/tree/_tree.scss +1 -1
- package/theme-chalk/tree/index.scss +2 -2
- package/theme-chalk/{tree-select/index.scss → tree-select.scss} +1 -1
- package/theme-chalk/{upload/index.scss → upload.scss} +1 -1
- package/theme-chalk/var.scss +83 -0
- package/theme-chalk/cascader/index.scss +0 -2
- package/theme-chalk/common/index.ts +0 -1
- package/theme-chalk/date-time-picker/index.scss +0 -3
- package/theme-chalk/descriptions/index.scss +0 -2
- package/theme-chalk/icon/scss/v4-shims.scss +0 -3
- package/theme-chalk/pagination/index.scss +0 -303
- package/theme-chalk/placeholder/index.scss +0 -120
- package/theme-chalk/radio/index.scss +0 -2
- package/theme-chalk/time-line/index.scss +0 -2
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
@use './mixins/config' as *;
|
|
2
|
+
|
|
3
|
+
.#{$namespace}-pagination {
|
|
4
|
+
--#{$namespace}-pagination-font-size: 14px;
|
|
5
|
+
--#{$namespace}-pagination-bg-color: var(--#{$namespace}-fill-color-blank);
|
|
6
|
+
--#{$namespace}-pagination-text-color: var(--#{$namespace}-text-color-primary);
|
|
7
|
+
--#{$namespace}-pagination-border-radius: 2px;
|
|
8
|
+
--#{$namespace}-pagination-button-color: var(--#{$namespace}-text-color-primary);
|
|
9
|
+
--#{$namespace}-pagination-button-width: 32px;
|
|
10
|
+
--#{$namespace}-pagination-button-height: 32px;
|
|
11
|
+
--#{$namespace}-pagination-button-disabled-color: var(--#{$namespace}-text-color-placeholder);
|
|
12
|
+
--#{$namespace}-pagination-button-disabled-bg-color: var(--#{$namespace}-fill-color-blank);
|
|
13
|
+
--#{$namespace}-pagination-button-bg-color: var(--#{$namespace}-fill-color);
|
|
14
|
+
--#{$namespace}-pagination-hover-color: var(--#{$namespace}-color-primary);
|
|
15
|
+
--#{$namespace}-pagination-font-size-small: 12px;
|
|
16
|
+
--#{$namespace}-pagination-button-width-small: 24px;
|
|
17
|
+
--#{$namespace}-pagination-button-height-small: 24px;
|
|
18
|
+
--#{$namespace}-pagination-button-width-large: 40px;
|
|
19
|
+
--#{$namespace}-pagination-button-height-large: 40px;
|
|
20
|
+
--#{$namespace}-pagination-item-gap: 16px;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
color: var(--#{$namespace}-pagination-text-color);
|
|
23
|
+
font-size: var(--#{$namespace}-pagination-font-size);
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
|
|
28
|
+
.#{$namespace}-input__inner {
|
|
29
|
+
text-align: center;
|
|
30
|
+
-moz-appearance: textfield;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.#{$namespace}-select {
|
|
34
|
+
width: 128px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
button {
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
align-items: center;
|
|
41
|
+
font-size: var(--#{$namespace}-pagination-font-size);
|
|
42
|
+
min-width: var(--#{$namespace}-pagination-button-width);
|
|
43
|
+
height: var(--#{$namespace}-pagination-button-height);
|
|
44
|
+
line-height: var(--#{$namespace}-pagination-button-height);
|
|
45
|
+
color: var(--#{$namespace}-pagination-button-color);
|
|
46
|
+
background: var(--#{$namespace}-pagination-bg-color);
|
|
47
|
+
padding: 0 4px;
|
|
48
|
+
border: none;
|
|
49
|
+
border-radius: var(--#{$namespace}-pagination-border-radius);
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
text-align: center;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
|
|
54
|
+
* {
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:focus {
|
|
59
|
+
outline: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:hover {
|
|
63
|
+
color: var(--#{$namespace}-pagination-hover-color);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.is-active {
|
|
67
|
+
color: var(--#{$namespace}-pagination-hover-color);
|
|
68
|
+
cursor: default;
|
|
69
|
+
font-weight: 700;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.is-active.is-disabled {
|
|
73
|
+
font-weight: 700;
|
|
74
|
+
color: var(--#{$namespace}-text-color-secondary);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:disabled,
|
|
78
|
+
&.is-disabled {
|
|
79
|
+
color: var(--#{$namespace}-pagination-button-disabled-color);
|
|
80
|
+
background-color: var(--#{$namespace}-pagination-button-disabled-bg-color);
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:focus-visible {
|
|
85
|
+
outline: 1px solid var(--#{$namespace}-pagination-hover-color);
|
|
86
|
+
outline-offset: -1px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.btn-prev .#{$namespace}-icon,
|
|
91
|
+
.btn-next .#{$namespace}-icon {
|
|
92
|
+
display: block;
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
font-weight: 700;
|
|
95
|
+
width: inherit;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.#{$namespace}-pagination-item {
|
|
99
|
+
&:first-child,
|
|
100
|
+
&.is-simple {
|
|
101
|
+
margin-left: 0 !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:last-child {
|
|
105
|
+
margin-right: 0 !important;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.btn-prev {
|
|
110
|
+
margin-left: var(--#{$namespace}-pagination-item-gap);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.is-background {
|
|
114
|
+
.btn-prev,
|
|
115
|
+
.btn-next,
|
|
116
|
+
li {
|
|
117
|
+
margin: 0 4px;
|
|
118
|
+
background-color: var(--#{$namespace}-pagination-button-bg-color);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.btn-prev.is-active,
|
|
122
|
+
.btn-next.is-active,
|
|
123
|
+
li.is-active {
|
|
124
|
+
background-color: var(--#{$namespace}-color-primary);
|
|
125
|
+
color: var(--#{$namespace}-color-white);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.btn-prev:disabled,
|
|
129
|
+
.btn-prev.is-disabled,
|
|
130
|
+
.btn-next:disabled,
|
|
131
|
+
.btn-next.is-disabled,
|
|
132
|
+
li:disabled,
|
|
133
|
+
li.is-disabled {
|
|
134
|
+
color: var(--#{$namespace}-text-color-placeholder);
|
|
135
|
+
background-color: var(--#{$namespace}-disabled-bg-color);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.btn-prev:disabled.is-active,
|
|
139
|
+
.btn-prev.is-disabled.is-active,
|
|
140
|
+
.btn-next:disabled.is-active,
|
|
141
|
+
.btn-next.is-disabled.is-active,
|
|
142
|
+
li:disabled.is-active,
|
|
143
|
+
li.is-disabled.is-active {
|
|
144
|
+
color: var(--#{$namespace}-text-color-secondary);
|
|
145
|
+
background-color: var(--#{$namespace}-fill-color-dark);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.btn-prev {
|
|
149
|
+
margin-left: var(--#{$namespace}-pagination-item-gap);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.#{$namespace}-pagination__sizes,
|
|
155
|
+
.#{$namespace}-pagination__total {
|
|
156
|
+
margin-left: var(--#{$namespace}-pagination-item-gap);
|
|
157
|
+
font-weight: 400;
|
|
158
|
+
color: var(--#{$namespace}-text-color-regular);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.#{$namespace}-pagination__total[disabled='true'] {
|
|
162
|
+
color: var(--#{$namespace}-text-color-placeholder);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.#{$namespace}-pagination__jump {
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
margin-left: var(--#{$namespace}-pagination-item-gap);
|
|
169
|
+
font-weight: 400;
|
|
170
|
+
color: var(--#{$namespace}-text-color-regular);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.#{$namespace}-pagination__jump[disabled='true'] {
|
|
174
|
+
color: var(--#{$namespace}-text-color-placeholder);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.#{$namespace}-pagination__goto {
|
|
178
|
+
margin-right: 8px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.#{$namespace}-pagination__editor {
|
|
182
|
+
text-align: center;
|
|
183
|
+
box-sizing: border-box;
|
|
184
|
+
|
|
185
|
+
&.#{$namespace}-input {
|
|
186
|
+
width: 56px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.#{$namespace}-input__inner::-webkit-inner-spin-button,
|
|
190
|
+
.#{$namespace}-input__inner::-webkit-outer-spin-button {
|
|
191
|
+
-webkit-appearance: none;
|
|
192
|
+
margin: 0;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.#{$namespace}-pagination__classifier {
|
|
197
|
+
margin-left: 8px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.#{$namespace}-pagination__rightwrapper {
|
|
201
|
+
flex: 1;
|
|
202
|
+
display: flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
justify-content: flex-end;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.#{$namespace}-pagination--small {
|
|
208
|
+
.btn-prev,
|
|
209
|
+
.btn-next,
|
|
210
|
+
.#{$namespace}-pager li {
|
|
211
|
+
height: var(--#{$namespace}-pagination-button-height-small);
|
|
212
|
+
line-height: var(--#{$namespace}-pagination-button-height-small);
|
|
213
|
+
font-size: var(--#{$namespace}-pagination-font-size-small);
|
|
214
|
+
min-width: var(--#{$namespace}-pagination-button-width-small);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
span:not([class*='suffix']),
|
|
218
|
+
button {
|
|
219
|
+
font-size: var(--#{$namespace}-pagination-font-size-small);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.#{$namespace}-select {
|
|
223
|
+
width: 100px;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.#{$namespace}-pagination--large {
|
|
228
|
+
.btn-prev,
|
|
229
|
+
.btn-next,
|
|
230
|
+
.#{$namespace}-pager li {
|
|
231
|
+
height: var(--#{$namespace}-pagination-button-height-large);
|
|
232
|
+
line-height: var(--#{$namespace}-pagination-button-height-large);
|
|
233
|
+
min-width: var(--#{$namespace}-pagination-button-width-large);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.#{$namespace}-select {
|
|
237
|
+
width: 160px;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.#{$namespace}-pager {
|
|
242
|
+
-webkit-user-select: none;
|
|
243
|
+
user-select: none;
|
|
244
|
+
list-style: none;
|
|
245
|
+
font-size: 0;
|
|
246
|
+
padding: 0;
|
|
247
|
+
margin: 0;
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
|
|
251
|
+
li {
|
|
252
|
+
display: flex;
|
|
253
|
+
justify-content: center;
|
|
254
|
+
align-items: center;
|
|
255
|
+
font-size: var(--#{$namespace}-pagination-font-size);
|
|
256
|
+
min-width: var(--#{$namespace}-pagination-button-width);
|
|
257
|
+
height: var(--#{$namespace}-pagination-button-height);
|
|
258
|
+
line-height: var(--#{$namespace}-pagination-button-height);
|
|
259
|
+
color: var(--#{$namespace}-pagination-button-color);
|
|
260
|
+
background: var(--#{$namespace}-pagination-bg-color);
|
|
261
|
+
padding: 0 4px;
|
|
262
|
+
border: none;
|
|
263
|
+
border-radius: var(--#{$namespace}-pagination-border-radius);
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
text-align: center;
|
|
266
|
+
box-sizing: border-box;
|
|
267
|
+
|
|
268
|
+
* {
|
|
269
|
+
pointer-events: none;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
&:focus {
|
|
273
|
+
outline: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&:hover {
|
|
277
|
+
color: var(--#{$namespace}-pagination-hover-color);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&.is-active {
|
|
281
|
+
color: var(--#{$namespace}-pagination-hover-color);
|
|
282
|
+
cursor: default;
|
|
283
|
+
font-weight: 700;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&.is-active.is-disabled {
|
|
287
|
+
font-weight: 700;
|
|
288
|
+
color: var(--#{$namespace}-text-color-secondary);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&:disabled,
|
|
292
|
+
&.is-disabled {
|
|
293
|
+
color: var(--#{$namespace}-pagination-button-disabled-color);
|
|
294
|
+
background-color: var(--#{$namespace}-pagination-button-disabled-bg-color);
|
|
295
|
+
cursor: not-allowed;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
&:focus-visible {
|
|
299
|
+
outline: 1px solid var(--#{$namespace}-pagination-hover-color);
|
|
300
|
+
outline-offset: -1px;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(popper) {
|
|
6
|
+
@include set-component-css-var('popper', $popper);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@include b(popper) {
|
|
10
|
+
position: absolute;
|
|
11
|
+
border-radius: getCssVar('popper', 'border-radius');
|
|
12
|
+
// padding: 5px 11px;
|
|
13
|
+
z-index: 2000;
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
line-height: 20px;
|
|
16
|
+
min-width: 10px;
|
|
17
|
+
overflow-wrap: break-word;
|
|
18
|
+
word-break: break-all;
|
|
19
|
+
visibility: visible;
|
|
20
|
+
|
|
21
|
+
$arrow-selector: #{& + '__arrow'};
|
|
22
|
+
|
|
23
|
+
@include when(dark) {
|
|
24
|
+
color: getCssVar('bg-color');
|
|
25
|
+
background: getCssVar('text-color', 'primary');
|
|
26
|
+
border: 1px solid getCssVar('text-color', 'primary');
|
|
27
|
+
|
|
28
|
+
> #{$arrow-selector}::before {
|
|
29
|
+
border: 1px solid getCssVar('text-color', 'primary');
|
|
30
|
+
background: getCssVar('text-color', 'primary');
|
|
31
|
+
right: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@include when(light) {
|
|
36
|
+
background: getCssVar('bg-color', 'overlay');
|
|
37
|
+
border: 1px solid getCssVar('border-color', 'light');
|
|
38
|
+
|
|
39
|
+
> #{$arrow-selector}::before {
|
|
40
|
+
border: 1px solid getCssVar('border-color', 'light');
|
|
41
|
+
background: getCssVar('bg-color', 'overlay');
|
|
42
|
+
right: 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@include when(pure) {
|
|
47
|
+
padding: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include e(arrow) {
|
|
51
|
+
position: absolute;
|
|
52
|
+
width: 10px;
|
|
53
|
+
height: 10px;
|
|
54
|
+
z-index: -1;
|
|
55
|
+
|
|
56
|
+
&::before {
|
|
57
|
+
position: absolute;
|
|
58
|
+
width: 10px;
|
|
59
|
+
height: 10px;
|
|
60
|
+
z-index: -1;
|
|
61
|
+
content: ' ';
|
|
62
|
+
transform: rotate(45deg);
|
|
63
|
+
background: getCssVar('text-color', 'primary');
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
$placements: (
|
|
69
|
+
'top': 'bottom',
|
|
70
|
+
'bottom': 'top',
|
|
71
|
+
'left': 'right',
|
|
72
|
+
'right': 'left',
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
@each $placement, $opposite in $placements {
|
|
76
|
+
&[data-popper-placement^='#{$placement}'] > #{$arrow-selector} {
|
|
77
|
+
#{$opposite}: -5px;
|
|
78
|
+
|
|
79
|
+
&::before {
|
|
80
|
+
@if $placement == top {
|
|
81
|
+
border-bottom-right-radius: 2px;
|
|
82
|
+
}
|
|
83
|
+
@if $placement == bottom {
|
|
84
|
+
border-top-left-radius: 2px;
|
|
85
|
+
}
|
|
86
|
+
@if $placement == left {
|
|
87
|
+
border-top-right-radius: 2px;
|
|
88
|
+
}
|
|
89
|
+
@if $placement == right {
|
|
90
|
+
border-bottom-left-radius: 2px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@each $placement, $adjacency in ('top': 'left', 'bottom': 'right', 'left': 'bottom', 'right': 'top') {
|
|
97
|
+
&[data-popper-placement^='#{$placement}'] > {
|
|
98
|
+
#{$arrow-selector}::before {
|
|
99
|
+
border-#{$placement}-color: transparent !important;
|
|
100
|
+
border-#{$adjacency}-color: transparent !important;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/utils' as *;
|
|
5
|
+
@use 'mixins/var' as *;
|
|
6
|
+
@use 'mixins/button' as *;
|
|
7
|
+
@use 'common/var' as *;
|
|
8
|
+
|
|
9
|
+
@include b(radio-button) {
|
|
10
|
+
@include set-component-css-var('radio-button', $radio-button);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@include b(radio-button) {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
outline: none;
|
|
17
|
+
|
|
18
|
+
@include e(inner) {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
line-height: 1;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
vertical-align: middle;
|
|
23
|
+
background: var(
|
|
24
|
+
#{getCssVarName('button-bg-color')},
|
|
25
|
+
map.get($button, 'bg-color')
|
|
26
|
+
);
|
|
27
|
+
border: getCssVar('border');
|
|
28
|
+
font-weight: var(
|
|
29
|
+
#{getCssVarName('button-font-weight')},
|
|
30
|
+
map.get($button, 'font-weight')
|
|
31
|
+
);
|
|
32
|
+
border-left: 0;
|
|
33
|
+
color: var(
|
|
34
|
+
#{getCssVarName('button-text-color')},
|
|
35
|
+
map.get($button, 'text-color')
|
|
36
|
+
);
|
|
37
|
+
-webkit-appearance: none;
|
|
38
|
+
text-align: center;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
outline: none;
|
|
41
|
+
margin: 0;
|
|
42
|
+
position: relative;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
transition: getCssVar('transition-all');
|
|
45
|
+
user-select: none;
|
|
46
|
+
|
|
47
|
+
@include button-size(
|
|
48
|
+
map.get($button-padding-vertical, 'default') - $button-border-width,
|
|
49
|
+
map.get($button-padding-horizontal, 'default') - $button-border-width,
|
|
50
|
+
map.get($button-font-size, 'default'),
|
|
51
|
+
0
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
color: getCssVar('color-primary');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
& [class*='#{$namespace}-icon-'] {
|
|
59
|
+
line-height: 0.9;
|
|
60
|
+
|
|
61
|
+
& + span {
|
|
62
|
+
margin-left: 5px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:first-child {
|
|
68
|
+
.#{$namespace}-radio-button__inner {
|
|
69
|
+
border-left: getCssVar('border');
|
|
70
|
+
border-radius: getCssVar('border-radius-base') 0 0
|
|
71
|
+
getCssVar('border-radius-base');
|
|
72
|
+
box-shadow: none !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@include when(active) {
|
|
77
|
+
@include e(original-radio) {
|
|
78
|
+
&:not(:disabled) {
|
|
79
|
+
& + .#{$namespace}-radio-button__inner {
|
|
80
|
+
color: getCssVarWithDefault(
|
|
81
|
+
('radio-button', 'checked-text-color'),
|
|
82
|
+
map.get($radio-button, 'checked-text-color')
|
|
83
|
+
);
|
|
84
|
+
background-color: getCssVarWithDefault(
|
|
85
|
+
'radio-button-checked-bg-color',
|
|
86
|
+
map.get($radio-button, 'checked-bg-color')
|
|
87
|
+
);
|
|
88
|
+
border-color: getCssVarWithDefault(
|
|
89
|
+
'radio-button-checked-border-color',
|
|
90
|
+
map.get($radio-button, 'checked-border-color')
|
|
91
|
+
);
|
|
92
|
+
box-shadow: -1px 0 0 0
|
|
93
|
+
getCssVarWithDefault(
|
|
94
|
+
'radio-button-checked-border-color',
|
|
95
|
+
map.get($radio-button, 'checked-border-color')
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@include e(original-radio) {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
outline: none;
|
|
105
|
+
position: absolute;
|
|
106
|
+
z-index: -1;
|
|
107
|
+
|
|
108
|
+
&:focus-visible {
|
|
109
|
+
& + .#{$namespace}-radio-button__inner {
|
|
110
|
+
border-left: getCssVar('border');
|
|
111
|
+
border-left-color: getCssVarWithDefault(
|
|
112
|
+
'radio-button-checked-border-color',
|
|
113
|
+
map.get($radio-button, 'checked-border-color')
|
|
114
|
+
);
|
|
115
|
+
outline: 2px solid getCssVar('radio-button-checked-border-color');
|
|
116
|
+
outline-offset: 1px;
|
|
117
|
+
z-index: 2;
|
|
118
|
+
border-radius: getCssVar('border-radius-base');
|
|
119
|
+
box-shadow: none;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:disabled {
|
|
124
|
+
& + .#{$namespace}-radio-button__inner {
|
|
125
|
+
color: getCssVar('disabled-text-color');
|
|
126
|
+
cursor: not-allowed;
|
|
127
|
+
background-image: none;
|
|
128
|
+
background-color: getCssVarWithDefault(
|
|
129
|
+
'button-disabled-bg-color',
|
|
130
|
+
map.get($button, 'disabled-bg-color')
|
|
131
|
+
);
|
|
132
|
+
border-color: getCssVarWithDefault(
|
|
133
|
+
'button-disabled-border-color',
|
|
134
|
+
map.get($button, 'disabled-border-color')
|
|
135
|
+
);
|
|
136
|
+
box-shadow: none;
|
|
137
|
+
}
|
|
138
|
+
&:checked + .#{$namespace}-radio-button__inner {
|
|
139
|
+
background-color: getCssVar('radio-button-disabled-checked-fill');
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:last-child {
|
|
145
|
+
.#{$namespace}-radio-button__inner {
|
|
146
|
+
border-radius: 0 getCssVar('border-radius-base')
|
|
147
|
+
getCssVar('border-radius-base') 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:first-child:last-child {
|
|
152
|
+
.#{$namespace}-radio-button__inner {
|
|
153
|
+
border-radius: getCssVar('border-radius-base');
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@each $size in (large, small) {
|
|
158
|
+
@include m($size) {
|
|
159
|
+
& .#{$namespace}-radio-button__inner {
|
|
160
|
+
@include button-size(
|
|
161
|
+
map.get($button-padding-vertical, $size) - $button-border-width,
|
|
162
|
+
map.get($button-padding-horizontal, $size) - $button-border-width,
|
|
163
|
+
map.get($button-font-size, $size),
|
|
164
|
+
0
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use './mixins/config' as *;
|
|
2
2
|
|
|
3
3
|
.#{$namespace}-radio-group {
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
flex-wrap: wrap;
|
|
6
6
|
align-items: center;
|
|
7
7
|
font-size: 0;
|
|
8
|
-
// position: relative;
|
|
9
|
-
// min-height: 32px;
|
|
10
|
-
// flex-direction: column;
|
|
11
|
-
// align-items: flex-start;
|
|
12
|
-
|
|
13
|
-
// &.#{$namespace}-radio-group-inline {
|
|
14
|
-
// flex-direction: row;
|
|
15
|
-
// line-height: 32px;
|
|
16
|
-
// }
|
|
17
8
|
|
|
18
9
|
&.#{$namespace}-radio-group--large {
|
|
19
10
|
min-height: var(--#{$namespace}-component-size-large);
|