@kdcloudjs/kdesign 1.1.1 → 1.1.2
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/CHANGELOG.md +23 -0
- package/dist/kdesign-complete.less +96 -193
- package/dist/kdesign.css +81 -124
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +4 -3
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +1 -1
- package/es/date-picker/style/index.css +8 -8
- package/es/date-picker/style/index.less +8 -8
- package/es/date-picker/style/token.less +3 -21
- package/es/icon/interface.js +1 -1
- package/es/menu/menu.js +1 -1
- package/es/menu/style/index.css +69 -113
- package/es/menu/style/index.less +61 -149
- package/es/menu/style/mixin.less +10 -1
- package/es/menu/style/token.less +13 -13
- package/es/menu/subMenu.js +2 -1
- package/es/select/style/index.css +1 -1
- package/es/select/style/token.less +1 -1
- package/lib/date-picker/style/index.css +8 -8
- package/lib/date-picker/style/index.less +8 -8
- package/lib/date-picker/style/token.less +3 -21
- package/lib/icon/interface.js +1 -1
- package/lib/menu/menu.js +1 -1
- package/lib/menu/style/index.css +69 -113
- package/lib/menu/style/index.less +61 -149
- package/lib/menu/style/mixin.less +10 -1
- package/lib/menu/style/token.less +13 -13
- package/lib/menu/subMenu.js +2 -1
- package/lib/select/style/index.css +1 -1
- package/lib/select/style/token.less +1 -1
- package/package.json +1 -1
package/es/menu/style/index.less
CHANGED
|
@@ -21,13 +21,31 @@
|
|
|
21
21
|
.@{submenu-prefix-cls} {
|
|
22
22
|
padding-right: 0;
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
.@{submenu-prefix-cls}:not(.@{submenu-prefix-cls}-disabled):hover {
|
|
26
|
+
color: @menu-inline-color-active;
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
&-vertical {
|
|
31
|
+
.@{submenu-prefix-cls}:not(.@{submenu-prefix-cls}-disabled):hover,
|
|
32
|
+
.@{submenu-prefix-cls}-hover {
|
|
33
|
+
.hover();
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
.@{submenu-prefix-cls} {
|
|
28
37
|
padding-right: 0;
|
|
29
38
|
|
|
30
39
|
&-sub {
|
|
40
|
+
background: @menu-sub-color-background;
|
|
41
|
+
|
|
42
|
+
.@{menuitem-prefix-cls} {
|
|
43
|
+
&:hover,
|
|
44
|
+
&-active {
|
|
45
|
+
color: @menu-sub-color-active;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
31
49
|
&-second,
|
|
32
50
|
&-third {
|
|
33
51
|
animation: kdZoomTopLeftIn calc(@menu-motion-duration - 0.1s) cubic-bezier(0, .4, .4, 1) forwards;
|
|
@@ -52,7 +70,6 @@
|
|
|
52
70
|
|
|
53
71
|
&-collapsed {
|
|
54
72
|
width: 50px;
|
|
55
|
-
min-width: auto;
|
|
56
73
|
}
|
|
57
74
|
|
|
58
75
|
&-light {
|
|
@@ -63,6 +80,20 @@
|
|
|
63
80
|
.light-default;
|
|
64
81
|
}
|
|
65
82
|
|
|
83
|
+
.@{submenu-prefix-cls}-title:hover {
|
|
84
|
+
color: @menu-light-color-hover;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.@{submenu-prefix-cls}:not(.@{submenu-prefix-cls}-disabled):hover {
|
|
88
|
+
.light-default;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.@{menuitem-prefix-cls} {
|
|
92
|
+
&-active {
|
|
93
|
+
.light-hover();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
66
97
|
.@{menuitem-prefix-cls}:not(.@{menuitem-prefix-cls}-disabled):hover {
|
|
67
98
|
.light-hover();
|
|
68
99
|
}
|
|
@@ -70,7 +101,22 @@
|
|
|
70
101
|
|
|
71
102
|
&-light&-vertical {
|
|
72
103
|
.@{submenu-prefix-cls}-sub {
|
|
73
|
-
box-shadow: 0 4px
|
|
104
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
105
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.@{menuitem-prefix-cls} {
|
|
109
|
+
&:not(.@{menuitem-prefix-cls}-disabled):not(.@{menuitem-prefix-cls}-active):hover {
|
|
110
|
+
color: @menu-light-color-hover;
|
|
111
|
+
background: #fff;
|
|
112
|
+
border: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-active {
|
|
116
|
+
color: @menu-light-color-active;
|
|
117
|
+
background-color: @menu-light-color-background;
|
|
118
|
+
border: none !important;
|
|
119
|
+
}
|
|
74
120
|
}
|
|
75
121
|
}
|
|
76
122
|
}
|
|
@@ -81,6 +127,10 @@
|
|
|
81
127
|
transition: color, background-color;
|
|
82
128
|
transition-duration: calc(@menu-motion-duration - 0.1s);
|
|
83
129
|
transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
130
|
+
|
|
131
|
+
&:not(&-disabled):hover {
|
|
132
|
+
.hover();
|
|
133
|
+
}
|
|
84
134
|
}
|
|
85
135
|
|
|
86
136
|
.@{submenu-prefix-cls} {
|
|
@@ -90,12 +140,13 @@
|
|
|
90
140
|
transition-duration: calc(@menu-motion-duration - 0.1s);
|
|
91
141
|
transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
92
142
|
|
|
143
|
+
&-hover {
|
|
144
|
+
color: @menu-sub-color-hover;
|
|
145
|
+
}
|
|
146
|
+
|
|
93
147
|
&-sub {
|
|
94
148
|
line-height: @menu-item-height;
|
|
95
149
|
color: @menu-sub-color;
|
|
96
|
-
min-width: 130px;
|
|
97
|
-
|
|
98
|
-
|
|
99
150
|
}
|
|
100
151
|
|
|
101
152
|
&-thrid {
|
|
@@ -103,6 +154,7 @@
|
|
|
103
154
|
max-width: 810px;
|
|
104
155
|
max-height: 492px;
|
|
105
156
|
padding-left: 24px;
|
|
157
|
+
background: @menu-sub-color-background;
|
|
106
158
|
flex-wrap: wrap;
|
|
107
159
|
overflow-y: auto;
|
|
108
160
|
cursor: default;
|
|
@@ -150,6 +202,10 @@
|
|
|
150
202
|
cursor: pointer;
|
|
151
203
|
.ellipsis();
|
|
152
204
|
|
|
205
|
+
&:hover {
|
|
206
|
+
color: @menu-sub-color-active;
|
|
207
|
+
}
|
|
208
|
+
|
|
153
209
|
& > span {
|
|
154
210
|
.ellipsis();
|
|
155
211
|
}
|
|
@@ -165,147 +221,3 @@
|
|
|
165
221
|
}
|
|
166
222
|
}
|
|
167
223
|
}
|
|
168
|
-
|
|
169
|
-
.@{kd-prefix}-menu-dark {
|
|
170
|
-
.@{menu-prefix-cls}-item:not(.@{menu-prefix-cls}-item-disabled) ,
|
|
171
|
-
.@{menu-prefix-cls}-submenu:not(.@{menu-prefix-cls}-submenu-hover) {
|
|
172
|
-
:hover {
|
|
173
|
-
.hover-sub()
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&.@{menu-prefix-cls}-inline {
|
|
178
|
-
> ul > li.@{menu-prefix-cls}-submenu {
|
|
179
|
-
|
|
180
|
-
.@{menu-prefix-cls}-submenu-sub {
|
|
181
|
-
.base-sub();
|
|
182
|
-
|
|
183
|
-
:hover {
|
|
184
|
-
.hover-third()
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
|
|
191
|
-
.hover-sub()
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.@{menu-prefix-cls}-submenu {
|
|
195
|
-
&-sub {
|
|
196
|
-
.base-sub();
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
|
|
200
|
-
.hover-third()
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
> .@{menu-prefix-cls}-submenu {
|
|
205
|
-
:hover {
|
|
206
|
-
.hover-sub();
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
> .@{menu-prefix-cls}-item:not(.@{menu-prefix-cls}-item-disabled), .@{menu-prefix-cls}-submenu-collapsed {
|
|
211
|
-
:hover {
|
|
212
|
-
.hover-sub()
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.@{menu-prefix-cls}-submenu-sub-second {
|
|
217
|
-
> li:hover {
|
|
218
|
-
.hover-third()
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.@{menu-prefix-cls}-submenu-sub-third {
|
|
223
|
-
.@{menu-prefix-cls}-item:hover {
|
|
224
|
-
.hover-third()
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.@{kd-prefix}-menu-light {
|
|
230
|
-
|
|
231
|
-
&.@{menu-prefix-cls}-inline {
|
|
232
|
-
> ul > li.@{menu-prefix-cls}-submenu {
|
|
233
|
-
|
|
234
|
-
.@{menu-prefix-cls}-submenu-sub {
|
|
235
|
-
.base-sub-light();
|
|
236
|
-
|
|
237
|
-
:hover {
|
|
238
|
-
.hover-third-light()
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
|
|
245
|
-
.hover-sub-light()
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.@{menu-prefix-cls}-submenu {
|
|
249
|
-
&-sub {
|
|
250
|
-
.base-sub-light();
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.@{menu-prefix-cls}-item.@{menu-prefix-cls}-item-active {
|
|
254
|
-
.hover-third-light()
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
> .@{menu-prefix-cls}-submenu {
|
|
259
|
-
:hover {
|
|
260
|
-
.hover-sub-light();
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
> .@{menu-prefix-cls}-item:not(.@{menu-prefix-cls}-item-disabled), .@{menu-prefix-cls}-submenu-collapsed {
|
|
265
|
-
:hover {
|
|
266
|
-
.hover-sub-light()
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.@{menu-prefix-cls}-submenu-sub-second {
|
|
271
|
-
> li:hover {
|
|
272
|
-
.hover-third-light()
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.@{menu-prefix-cls}-submenu-sub-third {
|
|
277
|
-
.@{menu-prefix-cls}-item:hover {
|
|
278
|
-
.hover-third-light()
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.hover-sub {
|
|
284
|
-
background: @menu-sub-base-color-background-hover;
|
|
285
|
-
color: @menu-sub-color-hover;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.base-sub {
|
|
289
|
-
background: @menu-sub-base-color-background-hover;
|
|
290
|
-
color: @menu-sub-base-color-hover;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.hover-third {
|
|
294
|
-
background: @menu-sub-color-background-hover !important;
|
|
295
|
-
color: @menu-sub-color-hover;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.hover-sub-light {
|
|
299
|
-
background: @menu-light-color-background;
|
|
300
|
-
color: @menu-light-color;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.base-sub-light {
|
|
304
|
-
background: @menu-light-color-background;
|
|
305
|
-
color: @menu-light-color;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.hover-third-light {
|
|
309
|
-
background: @menu-light-color-background-hover;
|
|
310
|
-
color: @menu-light-color;
|
|
311
|
-
}
|
package/es/menu/style/mixin.less
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
.menu() {
|
|
5
5
|
position: relative;
|
|
6
6
|
width: 100%;
|
|
7
|
-
min-width: 138px;
|
|
8
7
|
height: 100%;
|
|
9
8
|
background-color: @menu-color-background;
|
|
10
9
|
color: @menu-sub-color;
|
|
@@ -52,6 +51,10 @@
|
|
|
52
51
|
color: @menu-color-disabled;
|
|
53
52
|
}
|
|
54
53
|
|
|
54
|
+
&-active {
|
|
55
|
+
.hover();
|
|
56
|
+
}
|
|
57
|
+
|
|
55
58
|
&-arrow {
|
|
56
59
|
margin-left: auto;
|
|
57
60
|
font-size: 16px;
|
|
@@ -67,9 +70,15 @@
|
|
|
67
70
|
}
|
|
68
71
|
}
|
|
69
72
|
|
|
73
|
+
.hover {
|
|
74
|
+
background-color: @menu-sub-color-background;
|
|
75
|
+
color: @menu-sub-color-hover;
|
|
76
|
+
}
|
|
77
|
+
|
|
70
78
|
.light-hover {
|
|
71
79
|
background-color: @menu-light-color-background;
|
|
72
80
|
color: @menu-light-color-hover;
|
|
81
|
+
border-right: 2px solid @menu-light-color-active;
|
|
73
82
|
}
|
|
74
83
|
|
|
75
84
|
.light-default {
|
package/es/menu/style/token.less
CHANGED
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
@menu-prefix: '--@{kd-prefix}-c-menu';
|
|
4
4
|
|
|
5
|
+
// shadow
|
|
5
6
|
// color
|
|
6
7
|
@menu-color-disabled: var(~'@{menu-prefix}-color-disabled', @color-disabled);
|
|
7
8
|
@menu-sub-color: var(~'@{menu-prefix}-sub-color', rgba(255, 255, 255, 0.65));
|
|
8
9
|
@menu-sub-color-hover: var(~'@{menu-prefix}-sub-color-hover', @color-white);
|
|
9
|
-
@menu-sub-color-active: var(~'@{menu-prefix}-sub-color-active', @color-
|
|
10
|
+
@menu-sub-color-active: var(~'@{menu-prefix}-sub-color-active', @color-theme);
|
|
10
11
|
@menu-sub-color-background: var(~'@{menu-prefix}-sub-color-background', #21242d);
|
|
11
|
-
@menu-sub-color-background-hover: var(~'@{menu-prefix}-sub-color-background-hover', #121319);
|
|
12
|
-
@menu-sub-base-color-hover: var(~'@{menu-prefix}-sub-base-color-hover', #b2b3b7);
|
|
13
|
-
@menu-sub-base-color-background-hover: var(~'@{menu-prefix}-sub-base-color-background-hover', #1f212b);
|
|
14
12
|
@menu-inline-color-active: var(~'@{menu-prefix}-inline-color-active', @color-white);
|
|
15
13
|
@menu-color-background: var(~'@{menu-prefix}-color-background', #343848);
|
|
16
|
-
@menu-light-color: var(~'@{menu-prefix}-light-color', @color-text-primary);
|
|
17
|
-
@menu-light-color-hover: var(~'@{menu-prefix}-light-color-hover', @color-text-primary);
|
|
18
|
-
@menu-light-color-active: var(~'@{menu-prefix}-light-color-active', @color-text-primary);
|
|
19
|
-
@menu-light-color-background: var(~'@{menu-prefix}-light-color-background', #f5f5f5);
|
|
20
|
-
@menu-light-color-background-hover: var(~'@{menu-prefix}-light-color-background-hover', #eaeaea);
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
@menu-
|
|
15
|
+
@menu-light-color: var(~'@{menu-prefix}-light-color', @color-text-primary);
|
|
16
|
+
@menu-light-color-hover: var(~'@{menu-prefix}-light-color-hover', @color-ongoing);
|
|
17
|
+
@menu-light-color-active: var(~'@{menu-prefix}-light-color-active', @color-theme);
|
|
18
|
+
@menu-light-color-background: var(~'@{menu-prefix}-light-color-background', @color-background-ongoing);
|
|
24
19
|
|
|
20
|
+
// sizing
|
|
21
|
+
@menu-item-height: var(~'@{menu-prefix}-item-sizing-height', 50px);
|
|
22
|
+
// spacing
|
|
25
23
|
// motion
|
|
26
24
|
@menu-motion-duration: var(~'@{menu-prefix}-motion-duration', @duration-promptly);
|
|
27
25
|
|
|
28
|
-
//
|
|
29
|
-
@menu-
|
|
26
|
+
// font
|
|
27
|
+
@menu-icon-font-size: var(~'@{menu-prefix}-icon-font-size', @font-size-xx-large);
|
|
30
28
|
|
|
29
|
+
// radius
|
|
30
|
+
// line-height
|
|
31
31
|
// z-index
|
|
32
32
|
@menu-z-index: var(~'@{menu-prefix}-z-index', @z-index-dialog);
|
package/es/menu/subMenu.js
CHANGED
|
@@ -357,7 +357,8 @@ var SubMenu = function SubMenu(props) {
|
|
|
357
357
|
return /*#__PURE__*/React.createElement("li", _extends({
|
|
358
358
|
ref: subMenuRef,
|
|
359
359
|
className: classNames(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-collapsed"), collapsed), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-hover"), !disabled && isVisible), _classNames2)),
|
|
360
|
-
key: keyValue
|
|
360
|
+
key: keyValue,
|
|
361
|
+
title: title
|
|
361
362
|
}, mouseEvent, {
|
|
362
363
|
style: style
|
|
363
364
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
}
|
|
415
415
|
.kd-select-item-option-selected:not(.kd-select-item-option-disabled) {
|
|
416
416
|
color: var(--kd-c-select-item-color-text-selected, var(--kd-g-color-theme, #5582f3));
|
|
417
|
-
background-color: var(--kd-c-select-color-background-selected, #
|
|
417
|
+
background-color: var(--kd-c-select-color-background-selected, var(--kd-g-color-theme-3, #e3eeff));
|
|
418
418
|
}
|
|
419
419
|
.kd-select-item-option-disabled {
|
|
420
420
|
color: var(--kd-c-select-item-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@select-dropdown-bg: var(~'@{select-custom-prefix}-dropdown-color-background', @color-background);
|
|
8
8
|
@select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', @color-background-contain-disabled);
|
|
9
9
|
@select-item-active-bg: var(~'@{select-custom-prefix}-color-background', @color-hover);
|
|
10
|
-
@select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected',
|
|
10
|
+
@select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected', @color-theme-3);
|
|
11
11
|
@select-g-color-border: var(~'@{select-custom-prefix}-color-border', @color-input);
|
|
12
12
|
@select-g-color-border-foucs: var(~'@{select-custom-prefix}-color-border-foucs', @color-theme);
|
|
13
13
|
@select-g-color-border-hover: var(~'@{select-custom-prefix}-color-border-hover', @color-theme);
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
bottom: -1px;
|
|
264
264
|
height: 2px;
|
|
265
265
|
margin-left: 11px;
|
|
266
|
-
background: #
|
|
266
|
+
background: var(--kd-c-date-picker-bar-color-bg-active, var(--kd-g-color-theme, #5582f3));
|
|
267
267
|
opacity: 0;
|
|
268
268
|
-webkit-transition: all 0.3s ease-out;
|
|
269
269
|
transition: all 0.3s ease-out;
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
background: #f5f5f5;
|
|
376
376
|
}
|
|
377
377
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-year-warpper .kd-date-picker-year-item:hover:not(.kd-date-picker-year-item-disabled) .kd-date-picker-year-text-selected {
|
|
378
|
-
background: #
|
|
378
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff));
|
|
379
379
|
}
|
|
380
380
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-year-warpper .kd-date-picker-year-item .kd-date-picker-year-text {
|
|
381
381
|
position: relative;
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
background: #f5f5f5;
|
|
421
421
|
}
|
|
422
422
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-month-warpper .kd-date-picker-month-item:hover:not(.kd-date-picker-month-item-disabled) .kd-date-picker-month-text-selected {
|
|
423
|
-
background: #
|
|
423
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff));
|
|
424
424
|
}
|
|
425
425
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-month-warpper .kd-date-picker-month-item .kd-date-picker-month-text {
|
|
426
426
|
position: relative;
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
background: #f5f5f5;
|
|
471
471
|
}
|
|
472
472
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-quarter-warpper .kd-date-picker-quarter-item:hover:not(.kd-date-picker-quarter-item-disabled) .kd-date-picker-quarter-text-selected {
|
|
473
|
-
background: #
|
|
473
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff));
|
|
474
474
|
}
|
|
475
475
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-quarter-warpper .kd-date-picker-quarter-item .kd-date-picker-quarter-text {
|
|
476
476
|
position: relative;
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
background: #f5f5f5;
|
|
541
541
|
}
|
|
542
542
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-line .kd-date-picker-calendar-item:not(.kd-date-picker-calendar-item-disabled):hover .kd-date-picker-calendar-text-selected {
|
|
543
|
-
background: #
|
|
543
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff)) !important;
|
|
544
544
|
}
|
|
545
545
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-line .kd-date-picker-calendar-item-disabled {
|
|
546
546
|
position: relative;
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
background: var(--kd-c-date-picker-color-background-checked, var(--kd-g-color-theme, #5582f3));
|
|
590
590
|
}
|
|
591
591
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-week-line.kd-date-picker-calendar-week-selected:hover .kd-date-picker-calendar-item:not(.kd-date-picker-calendar-item-disabled) .kd-date-picker-calendar-week-text::before {
|
|
592
|
-
background: #
|
|
592
|
+
background: var(--kd-c-date-picker-square-item-color-selected, var(--kd-g-color-theme-5, #87adff));
|
|
593
593
|
}
|
|
594
594
|
.kd-date-picker-panel .kd-date-picker-warpper .kd-date-picker-calendar .kd-date-picker-calendar-week-line.kd-date-picker-calendar-week-selected .kd-date-picker-calendar-week-text {
|
|
595
595
|
background: transparent !important;
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
height: 24px;
|
|
695
695
|
width: 100%;
|
|
696
696
|
margin: 0 -4px;
|
|
697
|
-
background: #
|
|
697
|
+
background: var(--kd-c-date-picker-range-item-color-bg, var(--kd-g-color-theme-1, #f2f8ff));
|
|
698
698
|
}
|
|
699
699
|
.kd-date-picker-panel .kd-date-picker-header-icon {
|
|
700
700
|
min-width: 1.6em;
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
background: #f5f5f5;
|
|
788
788
|
}
|
|
789
789
|
.kd-date-picker-panel .kd-date-picker-time .kd-date-picker-content .kd-date-picker-time-column .kd-date-picker-time-cell-selected .kd-date-picker-time-cell-inner {
|
|
790
|
-
background: #
|
|
790
|
+
background: var(--kd-c-date-picker-range-item-color-bg, var(--kd-g-color-theme-1, #f2f8ff));
|
|
791
791
|
}
|
|
792
792
|
.kd-date-picker-panel .kd-date-picker-time .kd-date-picker-content .kd-date-picker-time-column .kd-date-picker-time-cell-disabled .kd-date-picker-time-cell-inner {
|
|
793
793
|
color: rgba(0, 0, 0, 0.25);
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
bottom: -1px;
|
|
116
116
|
height: 2px;
|
|
117
117
|
margin-left: 11px;
|
|
118
|
-
background:
|
|
118
|
+
background: @date-bar-color-bg-active;
|
|
119
119
|
opacity: 0;
|
|
120
120
|
transition: all 0.3s ease-out;
|
|
121
121
|
pointer-events: none;
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
|
|
244
244
|
&:not(.@{datePicker-prefix-cls}-year-item-disabled) {
|
|
245
245
|
.@{datePicker-prefix-cls}-year-text-selected {
|
|
246
|
-
background:
|
|
246
|
+
background: @date-square-item-color-selected;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
|
|
300
300
|
&:not(.@{datePicker-prefix-cls}-month-item-disabled) {
|
|
301
301
|
.@{datePicker-prefix-cls}-month-text-selected {
|
|
302
|
-
background:
|
|
302
|
+
background: @date-square-item-color-selected;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
|
|
360
360
|
&:not(.@{datePicker-prefix-cls}-quarter-item-disabled) {
|
|
361
361
|
.@{datePicker-prefix-cls}-quarter-text-selected {
|
|
362
|
-
background:
|
|
362
|
+
background: @date-square-item-color-selected;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
.@{datePicker-prefix-cls}-calendar-text-selected {
|
|
429
|
-
background:
|
|
429
|
+
background: @date-square-item-color-selected !important;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
&:hover {
|
|
490
490
|
& .@{datePicker-prefix-cls}-calendar-item:not(.@{datePicker-prefix-cls}-calendar-item-disabled) {
|
|
491
491
|
.@{datePicker-prefix-cls}-calendar-week-text::before {
|
|
492
|
-
background:
|
|
492
|
+
background: @date-square-item-color-selected;
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
495
|
}
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
height: 24px;
|
|
606
606
|
width: 100%;
|
|
607
607
|
margin: 0 -4px;
|
|
608
|
-
background:
|
|
608
|
+
background: @date-range-item-color-bg;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
|
|
@@ -699,7 +699,7 @@
|
|
|
699
699
|
|
|
700
700
|
.@{datePicker-prefix-cls}-time-cell-selected {
|
|
701
701
|
.@{datePicker-prefix-cls}-time-cell-inner {
|
|
702
|
-
background:
|
|
702
|
+
background: @date-range-item-color-bg;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
@date-picker-custom-prefix: ~'--@{kd-prefix}-c-date-picker';
|
|
4
4
|
|
|
5
|
-
// shadow
|
|
6
5
|
// color
|
|
7
6
|
@date-color-background-checked: var(~'@{date-picker-custom-prefix}-color-background-checked', @color-theme);
|
|
8
7
|
@date-wrapper-color-background: var(~'@{date-picker-custom-prefix}-wrapper-color-background', @color-background);
|
|
@@ -14,7 +13,6 @@
|
|
|
14
13
|
@date-input-color-background: var(~'@{date-picker-custom-prefix}-input-color-background', @color-white);
|
|
15
14
|
@date-input-color-background-disabled: var(~'@{date-picker-custom-prefix}-input-color-background-disabled', @color-background-contain-disabled);
|
|
16
15
|
@date-input-color-focus: var(~'@{date-picker-custom-prefix}-input-color-focused', @color-text-primary);
|
|
17
|
-
|
|
18
16
|
@date-icon-color: var(~'@{date-picker-custom-prefix}-icon-color', @color-disabled);
|
|
19
17
|
@date-clear-background-color: var(~'@{date-picker-custom-prefix}-clear-color-background', @color-background);
|
|
20
18
|
@date-clear-background-color-hover: var(~'@{date-picker-custom-prefix}-clear-color-background-hover', @color-theme-5);
|
|
@@ -22,8 +20,10 @@
|
|
|
22
20
|
@date-container-color: var(~'@{date-picker-custom-prefix}-container-color', @color-text-primary);
|
|
23
21
|
@date-container-color-border: var(~'@{date-picker-custom-prefix}-container-color-border', @color-border-weak);
|
|
24
22
|
@date-container-color-background: var(~'@{date-picker-custom-prefix}-container-color-background', @color-background-2);
|
|
25
|
-
|
|
26
23
|
@date-footer-color-background: var(~'@{date-picker-custom-prefix}-footer-color-background', @color-background);
|
|
24
|
+
@date-bar-color-bg-active: var(~'@{date-picker-custom-prefix}-bar-color-bg-active', @color-theme);
|
|
25
|
+
@date-square-item-color-selected: var(~'@{date-picker-custom-prefix}-square-item-color-selected', @color-theme-hover);
|
|
26
|
+
@date-range-item-color-bg: var(~'@{date-picker-custom-prefix}-range-item-color-bg', @color-theme-1);
|
|
27
27
|
|
|
28
28
|
// sizing
|
|
29
29
|
@date-width: var(~'@{date-picker-custom-prefix}-sizing-width', 230px);
|
|
@@ -41,8 +41,6 @@
|
|
|
41
41
|
@date-large-padding-horizontal: var(~'@{date-picker-custom-prefix}-large-spacing-padding-horizontal', 9px); // 大号 内间距 横向
|
|
42
42
|
@date-suffix-spacing-margin-left: var(~'@{date-picker-custom-prefix}-suffix-spacing-margin-left', 10px);
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
// motion
|
|
46
44
|
// font
|
|
47
45
|
@date-container-font-size: var(~'@{date-picker-custom-prefix}-container-font-size', @font-size-small);
|
|
48
46
|
@date-panel-font-size: var(~'@{date-picker-custom-prefix}-panel-font-size', @font-size-middle);
|
|
@@ -53,19 +51,3 @@
|
|
|
53
51
|
// radius
|
|
54
52
|
@date-input-border-radius: var(~'@{date-picker-custom-prefix}-input-radius-border', @radius-border);
|
|
55
53
|
@date-panel-border-radius: var(~'@{date-picker-custom-prefix}-panel-radius-border', @radius-border);
|
|
56
|
-
|
|
57
|
-
// line-height
|
|
58
|
-
// z-index
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
package/lib/icon/interface.js
CHANGED
|
@@ -11,7 +11,7 @@ var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-sta
|
|
|
11
11
|
|
|
12
12
|
var _type = require("../_utils/type");
|
|
13
13
|
|
|
14
|
-
var BaseIcon = ['arrow-up', 'arrow-down', 'arrow-left', 'arrow-right', 'first', 'last', 'double-arrow-left', 'double-arrow-right', 'push-down', 'put-top', 'put-bottom', 'put-on', 'put-off', 'switch-up', 'switch-down', 'all-border', 'top-border', 'right-border', 'bottom-border', 'left-border', 'left-extension', 'right-extension', 'left-unfold', 'right-unfold', 'enlarge', 'expand', 'close-full-screen', 'split', 'back', 'arrow', 'no-border', 'border', 'rough-border', 'align-left', 'align-right', 'align-center', 'vertical-center', 'delete-indentation', 'equal', 'greater-equal', 'not-equal', 'male', 'female', 'copy', 'print', 'lock', 'scanning', 'like', 'project', 'user-info', 'shutdown', 'image', 'delete-line', 'add-line', 'job-info', 'detect', 'cancel', 'stop', 'cell', 'fixed-shrink', 'attachment', 'location', 'reduce', 'resign-report', 'forbid', 'education', 'unlock', 'contract', 'filter', 'more', 'operating-element', 'fail', 'edit', 'have-attachment', 'hide', 'preview', 'unfold-all', 'wrap', 'filter-switch', 'qualification-info', 'cn', 'en', 'git', '
|
|
14
|
+
var BaseIcon = ['arrow-up', 'arrow-down', 'arrow-left', 'arrow-right', 'first', 'last', 'double-arrow-left', 'double-arrow-right', 'push-down', 'put-top', 'put-bottom', 'put-on', 'put-off', 'switch-up', 'switch-down', 'all-border', 'top-border', 'right-border', 'bottom-border', 'left-border', 'left-extension', 'right-extension', 'left-unfold', 'right-unfold', 'unfoldmenu', 'foldmenu', 'enlarge', 'expand', 'close-full-screen', 'split', 'back', 'arrow', 'no-border', 'border', 'rough-border', 'align-left', 'align-right', 'align-center', 'vertical-center', 'delete-indentation', 'equal', 'greater-equal', 'not-equal', 'male', 'female', 'copy', 'print', 'lock', 'scanning', 'like', 'project', 'user-info', 'shutdown', 'image', 'delete-line', 'add-line', 'job-info', 'detect', 'cancel', 'stop', 'cell', 'fixed-shrink', 'attachment', 'location', 'reduce', 'resign-report', 'forbid', 'education', 'unlock', 'contract', 'filter', 'more', 'operating-element', 'fail', 'edit', 'have-attachment', 'hide', 'preview', 'unfold-all', 'wrap', 'filter-switch', 'qualification-info', 'cn', 'en', 'git', 'reset', 'preview-view', 'unfold', 'comment', 'shoppingcart', 'add-child', 'save', 'detail', 'table-setting', 'edit-view', 'edit-border', 'hyperlink', 'code', 'import', 'address', 'analysis', 'share', 'chart', 'fixed-window', 'order', 'phone', 'classify', 'feedback', 'menu', 'voice', 'search-border', 'material', 'finish', 'more-info', 'fixed', 'change', 'copy-code', 'return', 'qrcode', 'counterclockwise', 'list', 'switch', 'task-process', 'add', 'delete', 'add-word', 'two-window', 'spin', 'ordered-list', 'cooperation', 'quit', 'shrink', 'zoom', 'graffiti', 'experience', 'medical-report', 'bankcard', 'yunzhijia', 'customize', 'refresh', 'search', 'loadding', 'loadding-circle', 'right', 'close', 'upload', 'download', 'upload-cloud', 'waiting', 'warning', 'exclamatory', 'tips', 'setting', 'chart-display', 'date', 'more-item', 'international', 'little-k', 'bellOutlined'];
|
|
15
15
|
exports.BaseIcon = BaseIcon;
|
|
16
16
|
var SolidIcon = ['arrow-up-solid', 'arrow-right-solid', 'arrow-down-solid', 'arrow-left-solid', 'left-unfold-solid', 'right-unfold-solid', 'unlock-solid', 'multiply', 'division-solid', 'title-solid', 'communication-solid', 'fixed-solid', 'more-info-solid', 'timezone-solid', 'mosaic-solid', 'strike-solid', 'lock-solid', 'filter-solid', 'person-solid', 'bold-solid', 'delete-solid', 'processing-solid', 'tips-solid', 'quote-solid', 'oblique-solid', 'sun-solid', 'underline-solid', 'font-background-solid', 'eliminate-solid', 'font-color-solid', 'fx', 'refresh-solid', 'right-solid', 'location-solid', 'add-solid', 'warning-solid', 'close-solid', 'right-bold', 'close-bold', 'workbench', 'star', 'notice'];
|
|
17
17
|
exports.SolidIcon = SolidIcon;
|
package/lib/menu/menu.js
CHANGED
|
@@ -178,7 +178,7 @@ var Menu = function Menu(props) {
|
|
|
178
178
|
onMouseEnter: handleMouseEnterMenu
|
|
179
179
|
};
|
|
180
180
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
181
|
-
className: (0, _classnames.default)(prefixCls, className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-inline"), mode === 'inline'), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-vertical"), mode !== 'inline'), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-collapsed"),
|
|
181
|
+
className: (0, _classnames.default)(prefixCls, className, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-inline"), mode === 'inline'), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-vertical"), mode !== 'inline'), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-collapsed"), true), (0, _defineProperty2.default)(_classNames, (0, _concat.default)(_context2 = "".concat(prefixCls, "-")).call(_context2, theme === 'light' ? 'light' : 'dark'), true), _classNames)),
|
|
182
182
|
role: "menu",
|
|
183
183
|
style: style
|
|
184
184
|
}, mouseEvent), children && renderMenu(), additionalTools);
|