@rainbow-oh/yee-c 0.11.0 → 0.12.0
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/cjs/Anchor/style/index.less +3 -3
- package/dist/cjs/Button/style/index.less +72 -52
- package/dist/cjs/DatePicker/style/mobile.less +1 -1
- package/dist/cjs/Descriptions/style/index.less +6 -6
- package/dist/cjs/FloatButton/style/index.less +2 -2
- package/dist/cjs/Form/style/index.less +21 -21
- package/dist/cjs/ImageViewer/style/index.less +13 -13
- package/dist/cjs/Input/style/index.less +1 -1
- package/dist/cjs/InputNumber/style/index.less +9 -9
- package/dist/cjs/Menu/style/index.less +1 -1
- package/dist/cjs/PickerPanel/style/index.less +5 -5
- package/dist/cjs/RangePicker/style/index.less +53 -52
- package/dist/cjs/Rate/style/index.less +1 -1
- package/dist/cjs/Search/style/index.less +10 -10
- package/dist/cjs/Segmented/style/index.less +2 -2
- package/dist/cjs/Selector/selector.js +1 -1
- package/dist/cjs/Selector/style/index.less +1 -1
- package/dist/cjs/Table/style/index.less +2 -2
- package/dist/cjs/Tabs/style/index.less +9 -9
- package/dist/cjs/Tabs/tab-header/index.js +3 -0
- package/dist/cjs/Tour/demo/indicators.js +1 -1
- package/dist/cjs/Tour/demo/placement.js +1 -1
- package/dist/cjs/Transfer/style/index.less +1 -1
- package/dist/cjs/Tree/style/index.less +3 -3
- package/dist/cjs/TreeSelect/style/index.less +1 -1
- package/dist/cjs/Upload/style/index.less +11 -12
- package/dist/cjs/WheelPicker/style/index.less +3 -3
- package/dist/cjs/message/style/index.less +4 -4
- package/dist/cjs/style/color.blue.css +254 -290
- package/dist/cjs/style/color.crimson.css +434 -471
- package/dist/cjs/style/color.css +736 -508
- package/dist/cjs/style/color.dark.css +464 -501
- package/dist/cjs/style/color.gemini.css +134 -0
- package/dist/cjs/style/color.green.css +459 -495
- package/dist/cjs/style/color.jam.css +463 -500
- package/dist/cjs/style/color.navy.css +466 -503
- package/dist/cjs/style/color.peach.css +464 -501
- package/dist/cjs/style/color.pine.css +462 -500
- package/dist/cjs/style/color.pitaya.css +465 -502
- package/dist/cjs/style/color.pumpkin.css +464 -501
- package/dist/cjs/style/color.ruby.css +466 -503
- package/dist/cjs/style/size.css +143 -2
- package/dist/cjs/style/themes.css +4999 -5268
- package/dist/cjs/style/variables.css +881 -512
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Anchor/style/index.less +3 -3
- package/dist/esm/Button/style/index.less +72 -52
- package/dist/esm/DatePicker/style/mobile.less +1 -1
- package/dist/esm/Descriptions/style/index.less +6 -6
- package/dist/esm/FloatButton/style/index.less +2 -2
- package/dist/esm/Form/style/index.less +21 -21
- package/dist/esm/ImageViewer/style/index.less +13 -13
- package/dist/esm/Input/style/index.less +1 -1
- package/dist/esm/InputNumber/style/index.less +9 -9
- package/dist/esm/Menu/style/index.less +1 -1
- package/dist/esm/PickerPanel/style/index.less +5 -5
- package/dist/esm/RangePicker/style/index.less +53 -52
- package/dist/esm/Rate/style/index.less +1 -1
- package/dist/esm/Search/style/index.less +10 -10
- package/dist/esm/Segmented/style/index.less +2 -2
- package/dist/esm/Selector/selector.js +1 -1
- package/dist/esm/Selector/style/index.less +1 -1
- package/dist/esm/Table/style/index.less +2 -2
- package/dist/esm/Tabs/style/index.less +9 -9
- package/dist/esm/Tabs/tab-header/index.js +5 -1
- package/dist/esm/Tour/demo/indicators.js +1 -1
- package/dist/esm/Tour/demo/placement.js +1 -1
- package/dist/esm/Transfer/style/index.less +1 -1
- package/dist/esm/Tree/style/index.less +3 -3
- package/dist/esm/TreeSelect/style/index.less +1 -1
- package/dist/esm/Upload/style/index.less +11 -12
- package/dist/esm/WheelPicker/style/index.less +3 -3
- package/dist/esm/index.js +1 -0
- package/dist/esm/message/style/index.less +4 -4
- package/dist/esm/style/color.blue.css +254 -290
- package/dist/esm/style/color.crimson.css +434 -471
- package/dist/esm/style/color.css +736 -508
- package/dist/esm/style/color.dark.css +464 -501
- package/dist/esm/style/color.gemini.css +134 -0
- package/dist/esm/style/color.green.css +459 -495
- package/dist/esm/style/color.jam.css +463 -500
- package/dist/esm/style/color.navy.css +466 -503
- package/dist/esm/style/color.peach.css +464 -501
- package/dist/esm/style/color.pine.css +462 -500
- package/dist/esm/style/color.pitaya.css +465 -502
- package/dist/esm/style/color.pumpkin.css +464 -501
- package/dist/esm/style/color.ruby.css +466 -503
- package/dist/esm/style/size.css +143 -2
- package/dist/esm/style/themes.css +4999 -5268
- package/dist/esm/style/variables.css +881 -512
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/umd/yee-c.min.css +80 -22
- package/dist/umd/yee-c.min.js +1 -1
- package/package.json +4 -2
- package/src/Anchor/style/index.less +3 -3
- package/src/Button/style/index.less +72 -52
- package/src/DatePicker/style/mobile.less +1 -1
- package/src/Descriptions/style/index.less +6 -6
- package/src/FloatButton/style/index.less +2 -2
- package/src/Form/style/index.less +21 -21
- package/src/ImageViewer/style/index.less +13 -13
- package/src/Input/style/index.less +1 -1
- package/src/InputNumber/style/index.less +9 -9
- package/src/Menu/style/index.less +1 -1
- package/src/PickerPanel/style/index.less +5 -5
- package/src/RangePicker/style/index.less +53 -52
- package/src/Rate/style/index.less +1 -1
- package/src/Search/style/index.less +10 -10
- package/src/Segmented/style/index.less +2 -2
- package/src/Selector/selector.tsx +1 -1
- package/src/Selector/style/index.less +1 -1
- package/src/Table/style/index.less +2 -2
- package/src/Tabs/style/index.less +9 -9
- package/src/Tabs/tab-header/index.tsx +3 -0
- package/src/Tour/demo/indicators.tsx +2 -2
- package/src/Tour/demo/placement.tsx +1 -1
- package/src/Transfer/style/index.less +1 -1
- package/src/Tree/style/index.less +3 -3
- package/src/TreeSelect/style/index.less +1 -1
- package/src/Upload/style/index.less +11 -12
- package/src/WheelPicker/style/index.less +3 -3
- package/src/index.ts +1 -0
- package/src/message/style/index.less +4 -4
- package/src/style/color.blue.css +254 -290
- package/src/style/color.crimson.css +434 -471
- package/src/style/color.css +736 -508
- package/src/style/color.dark.css +464 -501
- package/src/style/color.gemini.css +134 -0
- package/src/style/color.green.css +459 -495
- package/src/style/color.jam.css +463 -500
- package/src/style/color.navy.css +466 -503
- package/src/style/color.peach.css +464 -501
- package/src/style/color.pine.css +462 -500
- package/src/style/color.pitaya.css +465 -502
- package/src/style/color.pumpkin.css +464 -501
- package/src/style/color.ruby.css +466 -503
- package/src/style/size.css +143 -2
- package/src/version.ts +1 -1
|
@@ -5,14 +5,18 @@
|
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
justify-content: space-between;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
padding:
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
height: var(--yee-range-picker-trigger-height);
|
|
10
|
+
padding: var(--yee-range-picker-trigger-padding);
|
|
11
|
+
font-size: var(--yee-range-picker-trigger-font-size);
|
|
12
|
+
border: var(--yee-range-picker-trigger-border-width) solid
|
|
13
|
+
var(--yee-range-picker-trigger-border-color);
|
|
14
|
+
border-radius: var(--yee-range-picker-trigger-border-radius);
|
|
11
15
|
background-color: var(--yee-input-content-bg-color);
|
|
12
16
|
cursor: pointer;
|
|
13
17
|
|
|
14
18
|
&:hover:not(&-disabled) {
|
|
15
|
-
border-color: var(--yee-
|
|
19
|
+
border-color: var(--yee-range-picker-trigger-hover-border-color);
|
|
16
20
|
|
|
17
21
|
@{pls}-clear {
|
|
18
22
|
visibility: visible;
|
|
@@ -21,7 +25,7 @@
|
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
&-focused {
|
|
24
|
-
border-color: var(--yee-
|
|
28
|
+
border-color: var(--yee-range-picker-trigger-border-color);
|
|
25
29
|
box-shadow: 0 0 0 2px var(--yee-input-focus-bs-color);
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -31,47 +35,42 @@
|
|
|
31
35
|
opacity: 0.6;
|
|
32
36
|
}
|
|
33
37
|
|
|
38
|
+
// 盒模型(高度 / 圆角 / 内边距)全部由触发器承担,
|
|
39
|
+
// 内部 Input 只负责撑满,这样各尺寸都跟随 token,不再硬编码
|
|
40
|
+
@{pls}-start-input,
|
|
41
|
+
@{pls}-end-input {
|
|
42
|
+
height: 100%;
|
|
43
|
+
padding: 0;
|
|
44
|
+
font-size: inherit;
|
|
45
|
+
line-height: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
34
48
|
// Size variants
|
|
35
49
|
&-small {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
@{pls}-end-input {
|
|
40
|
-
font-size: 12px;
|
|
41
|
-
height: 24px;
|
|
42
|
-
line-height: 24px;
|
|
43
|
-
}
|
|
50
|
+
height: var(--yee-range-picker-trigger-small-height);
|
|
51
|
+
padding: var(--yee-range-picker-trigger-small-padding);
|
|
52
|
+
font-size: var(--yee-range-picker-trigger-small-font-size);
|
|
44
53
|
}
|
|
45
54
|
|
|
46
55
|
&-middle {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
@{pls}-end-input {
|
|
51
|
-
font-size: 14px;
|
|
52
|
-
height: 32px;
|
|
53
|
-
line-height: 32px;
|
|
54
|
-
}
|
|
56
|
+
height: var(--yee-range-picker-trigger-height);
|
|
57
|
+
padding: var(--yee-range-picker-trigger-padding);
|
|
58
|
+
font-size: var(--yee-range-picker-trigger-font-size);
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
&-large {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@{pls}-end-input {
|
|
62
|
-
font-size: 16px;
|
|
63
|
-
height: 40px;
|
|
64
|
-
line-height: 40px;
|
|
65
|
-
}
|
|
62
|
+
height: var(--yee-range-picker-trigger-large-height);
|
|
63
|
+
padding: var(--yee-range-picker-trigger-large-padding);
|
|
64
|
+
font-size: var(--yee-range-picker-trigger-large-font-size);
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
// Status variants
|
|
69
68
|
&-error {
|
|
70
|
-
border-color: var(--yee-error
|
|
69
|
+
border-color: var(--yee-color-error);
|
|
71
70
|
|
|
72
71
|
&:hover,
|
|
73
72
|
&-focused {
|
|
74
|
-
border-color: var(--yee-error
|
|
73
|
+
border-color: var(--yee-color-error);
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
&-focused {
|
|
@@ -80,11 +79,11 @@
|
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
&-warning {
|
|
83
|
-
border-color: var(--yee-warning
|
|
82
|
+
border-color: var(--yee-color-warning);
|
|
84
83
|
|
|
85
84
|
&:hover,
|
|
86
85
|
&-focused {
|
|
87
|
-
border-color: var(--yee-warning
|
|
86
|
+
border-color: var(--yee-color-warning);
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
&-focused {
|
|
@@ -106,13 +105,13 @@
|
|
|
106
105
|
|
|
107
106
|
&-separator {
|
|
108
107
|
margin: 0 8px;
|
|
109
|
-
color: var(--yee-placeholder
|
|
108
|
+
color: var(--yee-color-placeholder);
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
&-suffix {
|
|
113
112
|
display: flex;
|
|
114
113
|
align-items: center;
|
|
115
|
-
color: var(--yee-text-
|
|
114
|
+
color: var(--yee-color-text-description);
|
|
116
115
|
margin-left: 8px;
|
|
117
116
|
flex-shrink: 0;
|
|
118
117
|
}
|
|
@@ -122,14 +121,14 @@
|
|
|
122
121
|
padding: var(--yee-input-clear-padding);
|
|
123
122
|
color: var(--yee-input-clear-color);
|
|
124
123
|
background-color: var(--yee-input-clear-bg-color);
|
|
125
|
-
border-radius:
|
|
124
|
+
border-radius: var(--yee-range-picker-clear-border-radius);
|
|
126
125
|
visibility: hidden;
|
|
127
126
|
z-index: 0;
|
|
128
127
|
cursor: pointer;
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
&-panel {
|
|
132
|
-
background-color: var(--yee-
|
|
131
|
+
background-color: var(--yee-range-picker-panel-bg-color);
|
|
133
132
|
|
|
134
133
|
&-now-btn {
|
|
135
134
|
margin-left: auto;
|
|
@@ -140,14 +139,14 @@
|
|
|
140
139
|
display: flex;
|
|
141
140
|
align-items: flex-start;
|
|
142
141
|
justify-content: space-between;
|
|
143
|
-
padding:
|
|
142
|
+
padding: var(--yee-range-picker-panel-footer-padding);
|
|
144
143
|
}
|
|
145
144
|
|
|
146
145
|
// Panel wrapper with ranges
|
|
147
146
|
&-panel-wrapper {
|
|
148
147
|
display: flex;
|
|
149
148
|
background: var(--yee-color-bg-elevated);
|
|
150
|
-
border-radius:
|
|
149
|
+
border-radius: var(--yee-range-picker-panel-wrapper-border-radius);
|
|
151
150
|
box-shadow:
|
|
152
151
|
0 3px 6px -4px var(--yee-notice-box-shadow-color-2),
|
|
153
152
|
0 6px 16px 0 var(--yee-notice-box-shadow-color-1),
|
|
@@ -167,11 +166,11 @@
|
|
|
167
166
|
transition: all 0.3s;
|
|
168
167
|
white-space: nowrap;
|
|
169
168
|
font-size: 14px;
|
|
170
|
-
color: var(--yee-text
|
|
169
|
+
color: var(--yee-color-text);
|
|
171
170
|
|
|
172
171
|
&:hover {
|
|
173
172
|
background-color: var(--yee-color-bg-rail);
|
|
174
|
-
color: var(--yee-primary
|
|
173
|
+
color: var(--yee-color-primary);
|
|
175
174
|
}
|
|
176
175
|
}
|
|
177
176
|
|
|
@@ -179,7 +178,7 @@
|
|
|
179
178
|
&-mobile-tabs {
|
|
180
179
|
display: flex;
|
|
181
180
|
margin-bottom: 12px;
|
|
182
|
-
border-bottom: 1px solid var(--yee-border
|
|
181
|
+
border-bottom: 1px solid var(--yee-color-border, #e5e5e5);
|
|
183
182
|
}
|
|
184
183
|
|
|
185
184
|
&-mobile-tab {
|
|
@@ -187,7 +186,7 @@
|
|
|
187
186
|
padding: 8px 0;
|
|
188
187
|
text-align: center;
|
|
189
188
|
font-size: 14px;
|
|
190
|
-
color: var(--yee-text-
|
|
189
|
+
color: var(--yee-color-text-description, #999);
|
|
191
190
|
background: none;
|
|
192
191
|
border: none;
|
|
193
192
|
border-bottom: 2px solid transparent;
|
|
@@ -195,8 +194,8 @@
|
|
|
195
194
|
transition: all 0.2s;
|
|
196
195
|
|
|
197
196
|
&-active {
|
|
198
|
-
color: var(--yee-primary
|
|
199
|
-
border-bottom-color: var(--yee-primary
|
|
197
|
+
color: var(--yee-color-primary);
|
|
198
|
+
border-bottom-color: var(--yee-color-primary);
|
|
200
199
|
}
|
|
201
200
|
}
|
|
202
201
|
}
|
|
@@ -215,9 +214,11 @@
|
|
|
215
214
|
left: 0;
|
|
216
215
|
z-index: 2;
|
|
217
216
|
width: 100%;
|
|
218
|
-
height:
|
|
219
|
-
border-top:
|
|
220
|
-
|
|
217
|
+
height: var(--yee-picker-range-hover-after-height);
|
|
218
|
+
border-top: var(--yee-picker-range-hover-after-border-width) dashed
|
|
219
|
+
var(--yee-range-picker-hover-border-color);
|
|
220
|
+
border-bottom: var(--yee-picker-range-hover-after-border-width) dashed
|
|
221
|
+
var(--yee-range-picker-hover-border-color);
|
|
221
222
|
transform: translateY(-50%);
|
|
222
223
|
content: '';
|
|
223
224
|
}
|
|
@@ -259,7 +260,7 @@
|
|
|
259
260
|
&-range-hover-end:not(&-not-in-view) {
|
|
260
261
|
&::after {
|
|
261
262
|
z-index: 2;
|
|
262
|
-
border-right: 1px dashed var(--yee-
|
|
263
|
+
border-right: 1px dashed var(--yee-range-picker-hover-border-color);
|
|
263
264
|
border-top-right-radius: 2px;
|
|
264
265
|
border-bottom-right-radius: 2px;
|
|
265
266
|
}
|
|
@@ -271,7 +272,7 @@
|
|
|
271
272
|
&-range-hover:first-child:not(&-not-in-view) {
|
|
272
273
|
&::after {
|
|
273
274
|
z-index: 2;
|
|
274
|
-
border-left: 1px dashed var(--yee-
|
|
275
|
+
border-left: 1px dashed var(--yee-range-picker-hover-border-color);
|
|
275
276
|
border-top-left-radius: 2px;
|
|
276
277
|
border-bottom-left-radius: 2px;
|
|
277
278
|
}
|
|
@@ -302,14 +303,14 @@
|
|
|
302
303
|
left: 0;
|
|
303
304
|
z-index: 1;
|
|
304
305
|
width: 100%;
|
|
305
|
-
height:
|
|
306
|
+
height: var(--yee-picker-in-range-before-height);
|
|
306
307
|
transform: translateY(-50%);
|
|
307
308
|
content: '';
|
|
308
309
|
}
|
|
309
310
|
|
|
310
311
|
&:not(@{cellPrefixCls}-not-in-view) {
|
|
311
312
|
&::before {
|
|
312
|
-
background-color: var(--yee-
|
|
313
|
+
background-color: var(--yee-range-picker-checked-bg-color);
|
|
313
314
|
}
|
|
314
315
|
}
|
|
315
316
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
width: var(--yee-rate-star-width);
|
|
24
24
|
height: var(--yee-rate-star-height);
|
|
25
25
|
margin-right: var(--yee-rate-margin-right);
|
|
26
|
-
color: var(--yee-star-icon-color);
|
|
26
|
+
color: var(--yee-rate-star-icon-color);
|
|
27
27
|
font-size: var(--yee-rate-star-font-size);
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
transition: font 0.1s ease-in;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
align-items: center;
|
|
9
9
|
width: 100%;
|
|
10
10
|
padding: var(--yee-search-padding);
|
|
11
|
-
color: var(--yee-text
|
|
11
|
+
color: var(--yee-color-text);
|
|
12
12
|
font-size: var(--yee-search-font-size);
|
|
13
13
|
background-color: var(--yee-input-content-bg-color);
|
|
14
14
|
background-image: none;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&-disabled {
|
|
29
|
-
color: var(--yee-text-
|
|
29
|
+
color: var(--yee-color-text-disabled);
|
|
30
30
|
background-color: var(--yee-input-content-disabled-bg-color);
|
|
31
31
|
cursor: not-allowed;
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
input {
|
|
38
|
-
color: var(--yee-text-
|
|
38
|
+
color: var(--yee-color-text-disabled);
|
|
39
39
|
background-color: transparent;
|
|
40
40
|
cursor: not-allowed;
|
|
41
41
|
}
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
line-height: var(--yee-input-line-height);
|
|
73
73
|
|
|
74
74
|
&::placeholder {
|
|
75
|
-
color: var(--yee-placeholder
|
|
75
|
+
color: var(--yee-color-placeholder);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
&-disabled {
|
|
79
|
-
color: var(--yee-text-
|
|
79
|
+
color: var(--yee-color-text-disabled);
|
|
80
80
|
background-color: transparent;
|
|
81
81
|
cursor: not-allowed;
|
|
82
82
|
|
|
83
83
|
&::placeholder {
|
|
84
|
-
color: var(--yee-text-
|
|
84
|
+
color: var(--yee-color-text-disabled);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
justify-content: center;
|
|
132
132
|
margin-left: var(--yee-search-button-margin-left);
|
|
133
133
|
padding: var(--yee-search-button-padding);
|
|
134
|
-
color: var(--yee-text
|
|
134
|
+
color: var(--yee-color-text);
|
|
135
135
|
font-weight: var(--yee-search-button-font-weight);
|
|
136
136
|
background-color: var(--yee-color-bg-head);
|
|
137
137
|
border-radius: var(--yee-search-button-border-radius);
|
|
@@ -139,15 +139,15 @@
|
|
|
139
139
|
transition: all 0.2s;
|
|
140
140
|
|
|
141
141
|
&:hover {
|
|
142
|
-
color: var(--yee-primary
|
|
142
|
+
color: var(--yee-color-primary);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
&-disabled {
|
|
146
|
-
color: var(--yee-text-
|
|
146
|
+
color: var(--yee-color-text-disabled);
|
|
147
147
|
cursor: not-allowed;
|
|
148
148
|
|
|
149
149
|
&:hover {
|
|
150
|
-
color: var(--yee-text-
|
|
150
|
+
color: var(--yee-color-text-disabled);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&-item:has(&-input:focus-visible) {
|
|
88
|
-
box-shadow: 0 0 0 2px var(--yee-primary
|
|
88
|
+
box-shadow: 0 0 0 2px var(--yee-color-primary);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
// 变体:胶囊风格,选中项以主色胶囊高亮,容器无底色
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
border-radius: 999px;
|
|
107
107
|
background-color: var(
|
|
108
108
|
--yee-segmented-pill-bg-color,
|
|
109
|
-
var(--yee-primary
|
|
109
|
+
var(--yee-color-primary)
|
|
110
110
|
);
|
|
111
111
|
box-shadow: none;
|
|
112
112
|
}
|
|
@@ -180,7 +180,7 @@ var Selector = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
180
180
|
variant: "ring",
|
|
181
181
|
size: "small",
|
|
182
182
|
style: {
|
|
183
|
-
'--m-indicator-dot-bg-color': 'var(--yee-text-
|
|
183
|
+
'--m-indicator-dot-bg-color': 'var(--yee-color-text-secondary)'
|
|
184
184
|
}
|
|
185
185
|
}) : suffix ? typeof suffix === 'function' ? suffix() : suffix : /*#__PURE__*/React.createElement(ChevronDown, {
|
|
186
186
|
size: 16,
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
position: absolute;
|
|
136
136
|
width: 100%;
|
|
137
137
|
overflow: hidden;
|
|
138
|
-
color: var(--yee-text-
|
|
138
|
+
color: var(--yee-color-text-secondary);
|
|
139
139
|
font-size: var(--yee-selector-placeholder-font-size);
|
|
140
140
|
white-space: nowrap;
|
|
141
141
|
text-overflow: ellipsis;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
&:hover::after,
|
|
99
99
|
&:focus-visible::after,
|
|
100
100
|
&-active::after {
|
|
101
|
-
background-color: var(--yee-primary
|
|
101
|
+
background-color: var(--yee-color-primary);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
&:focus-visible {
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
margin-left: 4px;
|
|
201
201
|
|
|
202
202
|
.active {
|
|
203
|
-
color: var(--yee-primary
|
|
203
|
+
color: var(--yee-color-primary);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
user-select: none;
|
|
170
170
|
|
|
171
171
|
&.disabled {
|
|
172
|
-
color: var(--yee-
|
|
172
|
+
color: var(--yee-tabs-tab-title-disabled-color);
|
|
173
173
|
cursor: not-allowed;
|
|
174
174
|
|
|
175
175
|
& > * {
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
&.active {
|
|
181
|
-
color: var(--yee-
|
|
181
|
+
color: var(--yee-tabs-tab-title-active-hover-color);
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
&:not(.disabled):not(.active):hover {
|
|
@@ -253,8 +253,8 @@
|
|
|
253
253
|
|
|
254
254
|
@{pls}-tab.active {
|
|
255
255
|
z-index: 2;
|
|
256
|
-
color: var(--yee-
|
|
257
|
-
border-color: var(--yee-
|
|
256
|
+
color: var(--yee-tabs-tab-active-hover-pills-color);
|
|
257
|
+
border-color: var(--yee-tabs-tab-active-pills-border-color);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
@{pls}-active {
|
|
@@ -461,16 +461,16 @@
|
|
|
461
461
|
cursor: pointer;
|
|
462
462
|
|
|
463
463
|
&:hover {
|
|
464
|
-
background-color: var(--yee-
|
|
464
|
+
background-color: var(--yee-tabs-tab-dropdown-title-hover-bg-color);
|
|
465
465
|
|
|
466
466
|
@{pls}-tab-title {
|
|
467
|
-
color: var(--yee-
|
|
467
|
+
color: var(--yee-tabs-tab-dropdown-title-hover-color);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
&:active {
|
|
472
|
-
color: var(--yee-
|
|
473
|
-
background-color: var(--yee-
|
|
472
|
+
color: var(--yee-tabs-tab-dropdown-title-active-color);
|
|
473
|
+
background-color: var(--yee-tabs-tab-dropdown-title-active-bg-color);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
}
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
user-select: none;
|
|
492
492
|
|
|
493
493
|
&:hover {
|
|
494
|
-
color: var(--yee-
|
|
494
|
+
color: var(--yee-tabs-tab-title-active-hover-color);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2
6
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
7
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -118,7 +122,7 @@ var TabHeader = function TabHeader(props) {
|
|
|
118
122
|
handleAddTab(e);
|
|
119
123
|
}
|
|
120
124
|
}, [handleAddTab]);
|
|
121
|
-
var cls = clsx("".concat(prefixCls, "-nav-wrapper"), "".concat(prefixCls, "-nav-wrapper-").concat(position), classNames === null || classNames === void 0 ? void 0 : classNames.header);
|
|
125
|
+
var cls = clsx("".concat(prefixCls, "-nav-wrapper"), "".concat(prefixCls, "-nav-wrapper-").concat(position), _defineProperty({}, "".concat(prefixCls, "-nav-wrapper-with-more"), moreOpen), classNames === null || classNames === void 0 ? void 0 : classNames.header);
|
|
122
126
|
var contextValue = {
|
|
123
127
|
activetab: activetab,
|
|
124
128
|
navList: navList,
|
|
@@ -50,7 +50,7 @@ export default (function () {
|
|
|
50
50
|
height: 8,
|
|
51
51
|
marginInlineEnd: 4,
|
|
52
52
|
borderRadius: '50%',
|
|
53
|
-
background: i === current ? 'var(--yee-primary
|
|
53
|
+
background: i === current ? 'var(--yee-color-primary)' : 'var(--yee-color-border)',
|
|
54
54
|
transition: 'background 0.2s'
|
|
55
55
|
}
|
|
56
56
|
});
|
|
@@ -33,7 +33,7 @@ export default (function () {
|
|
|
33
33
|
style: {
|
|
34
34
|
display: 'inline-block',
|
|
35
35
|
padding: '16px 24px',
|
|
36
|
-
border: '1px dashed var(--yee-border
|
|
36
|
+
border: '1px dashed var(--yee-color-border)',
|
|
37
37
|
borderRadius: 6
|
|
38
38
|
}
|
|
39
39
|
}, "\u76EE\u6807\u5143\u7D20"), /*#__PURE__*/React.createElement(Tour, {
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&-drag-over-before {
|
|
20
|
-
box-shadow: inset 0 2px 0 0 var(--yee-primary
|
|
20
|
+
box-shadow: inset 0 2px 0 0 var(--yee-color-primary);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&-drag-over-after {
|
|
24
|
-
box-shadow: inset 0 -2px 0 0 var(--yee-primary
|
|
24
|
+
box-shadow: inset 0 -2px 0 0 var(--yee-color-primary);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&-drag-over-inside {
|
|
28
|
-
background: color-mix(in srgb, var(--yee-primary
|
|
28
|
+
background: color-mix(in srgb, var(--yee-color-primary) 12%, transparent);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&-switcher {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
display: flex;
|
|
9
9
|
|
|
10
10
|
&:focus-within {
|
|
11
|
-
outline: 2px solid var(--yee-primary
|
|
11
|
+
outline: 2px solid var(--yee-color-primary);
|
|
12
12
|
outline-offset: 2px;
|
|
13
13
|
border-radius: var(--yee-radius);
|
|
14
14
|
}
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&:hover {
|
|
56
|
-
border-color: var(--yee-primary
|
|
56
|
+
border-color: var(--yee-color-primary);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&-hover {
|
|
60
|
-
border-color: var(--yee-primary
|
|
61
|
-
background-color: var(--yee-primary-
|
|
60
|
+
border-color: var(--yee-color-primary);
|
|
61
|
+
background-color: var(--yee-color-primary-bg);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
&-trigger {
|
|
78
78
|
width: 100px;
|
|
79
79
|
height: 100px;
|
|
80
|
-
border: 1px dashed var(--yee-border
|
|
80
|
+
border: 1px dashed var(--yee-color-border);
|
|
81
81
|
border-radius: var(--yee-radius-lg, 4px);
|
|
82
82
|
display: flex;
|
|
83
83
|
align-items: center;
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
background-color: var(--yee-color-bg-container);
|
|
88
88
|
|
|
89
89
|
&:hover {
|
|
90
|
-
border-color: var(--yee-primary
|
|
91
|
-
color: var(--yee-primary
|
|
90
|
+
border-color: var(--yee-color-primary);
|
|
91
|
+
color: var(--yee-color-primary);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
align-items: center;
|
|
126
126
|
justify-content: center;
|
|
127
127
|
padding: 8px;
|
|
128
|
-
color: var(--yee-error
|
|
128
|
+
color: var(--yee-color-error);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
&-operate {
|
|
@@ -236,7 +236,6 @@
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
&-item {
|
|
239
|
-
|
|
240
239
|
&-label {
|
|
241
240
|
display: flex;
|
|
242
241
|
align-items: center;
|
|
@@ -270,15 +269,15 @@
|
|
|
270
269
|
// 上传状态样式
|
|
271
270
|
&-state {
|
|
272
271
|
&-uploading {
|
|
273
|
-
color: var(--yee-primary
|
|
272
|
+
color: var(--yee-color-primary);
|
|
274
273
|
}
|
|
275
274
|
|
|
276
275
|
&-error {
|
|
277
|
-
color: var(--yee-error
|
|
276
|
+
color: var(--yee-color-error);
|
|
278
277
|
}
|
|
279
278
|
|
|
280
279
|
&-success {
|
|
281
|
-
color: var(--yee-success
|
|
280
|
+
color: var(--yee-color-success);
|
|
282
281
|
}
|
|
283
282
|
}
|
|
284
283
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
scroll-snap-align: center;
|
|
60
60
|
text-align: center;
|
|
61
61
|
font-size: 16px;
|
|
62
|
-
color: var(--yee-text
|
|
62
|
+
color: var(--yee-color-text, #333);
|
|
63
63
|
cursor: pointer;
|
|
64
64
|
white-space: nowrap;
|
|
65
65
|
overflow: hidden;
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
left: 8px;
|
|
76
76
|
right: 8px;
|
|
77
77
|
pointer-events: none;
|
|
78
|
-
border-top: 1px solid var(--yee-border
|
|
79
|
-
border-bottom: 1px solid var(--yee-border
|
|
78
|
+
border-top: 1px solid var(--yee-color-border, #e8e8e8);
|
|
79
|
+
border-bottom: 1px solid var(--yee-color-border, #e8e8e8);
|
|
80
80
|
border-radius: 4px;
|
|
81
81
|
background: var(--yee-wheel-picker-indicator-bg, rgba(0, 0, 0, 4%));
|
|
82
82
|
z-index: 1;
|
package/dist/esm/index.js
CHANGED
|
@@ -153,6 +153,7 @@ import "./style/zindex.css";
|
|
|
153
153
|
// import './style/color.blue.css';
|
|
154
154
|
// import './style/color.crimson.css';
|
|
155
155
|
// import './style/color.dark.css';
|
|
156
|
+
// import './style/color.gemini.css';
|
|
156
157
|
// import './style/color.green.css';
|
|
157
158
|
// import './style/color.jam.css';
|
|
158
159
|
// import './style/color.navy.css';
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
// status
|
|
38
38
|
&-success {
|
|
39
39
|
@{pls}-icon {
|
|
40
|
-
color: var(--yee-success
|
|
40
|
+
color: var(--yee-color-success);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&-info {
|
|
45
45
|
@{pls}-icon {
|
|
46
|
-
color: var(--yee-info
|
|
46
|
+
color: var(--yee-color-info);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&-error {
|
|
51
51
|
@{pls}-icon {
|
|
52
|
-
color: var(--yee-error
|
|
52
|
+
color: var(--yee-color-error);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&-warning {
|
|
57
57
|
@{pls}-icon {
|
|
58
|
-
color: var(--yee-warning
|
|
58
|
+
color: var(--yee-color-warning);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|