@oceanbase/design 1.0.0-alpha.0 → 1.0.0-alpha.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/dist/design.min.js +1 -1
- package/es/badge/style/index.js +7 -10
- package/es/card/index.js +5 -1
- package/es/card/style/index.js +8 -2
- package/es/descriptions/style/index.js +4 -2
- package/es/form/FormItem.d.ts +1 -1
- package/es/table/style/index.js +1 -3
- package/es/tabs/style/index.js +1 -2
- package/es/theme/default.js +54 -50
- package/es/theme/style/aliyun.less +86 -86
- package/es/theme/style/compact.less +110 -110
- package/es/theme/style/dark.less +103 -103
- package/es/theme/style/default.less +113 -113
- package/lib/badge/style/index.js +6 -7
- package/lib/card/index.js +5 -0
- package/lib/card/style/index.js +10 -0
- package/lib/descriptions/style/index.js +6 -1
- package/lib/form/FormItem.d.ts +1 -1
- package/lib/table/style/index.js +2 -4
- package/lib/tabs/style/index.js +1 -2
- package/lib/theme/default.js +52 -50
- package/lib/theme/style/aliyun.less +86 -86
- package/lib/theme/style/compact.less +110 -110
- package/lib/theme/style/dark.less +103 -103
- package/lib/theme/style/default.less +113 -113
- package/package.json +8 -8
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
@blue: #0d6cf2;
|
|
2
2
|
@purple: #722ED1;
|
|
3
3
|
@cyan: #13C2C2;
|
|
4
|
-
@green: #
|
|
4
|
+
@green: #14b781;
|
|
5
5
|
@magenta: #EB2F96;
|
|
6
6
|
@pink: #EB2F96;
|
|
7
|
-
@red: #
|
|
7
|
+
@red: #ef4343;
|
|
8
8
|
@orange: #FA8C16;
|
|
9
|
-
@yellow: #
|
|
9
|
+
@yellow: #f49f25;
|
|
10
10
|
@volcano: #FA541C;
|
|
11
11
|
@geekblue: #2F54EB;
|
|
12
12
|
@gold: #FAAD14;
|
|
13
13
|
@lime: #A0D911;
|
|
14
14
|
@colorPrimary: #0d6cf2;
|
|
15
|
-
@colorSuccess: #
|
|
16
|
-
@colorWarning: #
|
|
17
|
-
@colorError: #
|
|
15
|
+
@colorSuccess: #14b781;
|
|
16
|
+
@colorWarning: #f49f25;
|
|
17
|
+
@colorError: #ef4343;
|
|
18
18
|
@colorInfo: #0d6cf2;
|
|
19
19
|
@colorLink: #0d6cf2;
|
|
20
20
|
@colorTextBase: #000000;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
@sizeUnit: 4px;
|
|
39
39
|
@sizeStep: 4px;
|
|
40
40
|
@sizePopupArrow: 16px;
|
|
41
|
-
@controlHeight:
|
|
41
|
+
@controlHeight: 28px;
|
|
42
42
|
@zIndexBase: 0;
|
|
43
43
|
@zIndexPopupBase: 1000;
|
|
44
44
|
@opacityImage: 1;
|
|
@@ -104,26 +104,26 @@
|
|
|
104
104
|
@cyan9: #00474f;
|
|
105
105
|
@cyan-10: #002329;
|
|
106
106
|
@cyan10: #002329;
|
|
107
|
-
@green-1: #
|
|
108
|
-
@green1: #
|
|
109
|
-
@green-2: #
|
|
110
|
-
@green2: #
|
|
111
|
-
@green-3: #
|
|
112
|
-
@green3: #
|
|
113
|
-
@green-4: #
|
|
114
|
-
@green4: #
|
|
115
|
-
@green-5: #
|
|
116
|
-
@green5: #
|
|
117
|
-
@green-6: #
|
|
118
|
-
@green6: #
|
|
119
|
-
@green-7: #
|
|
120
|
-
@green7: #
|
|
121
|
-
@green-8: #
|
|
122
|
-
@green8: #
|
|
123
|
-
@green-9: #
|
|
124
|
-
@green9: #
|
|
125
|
-
@green-10: #
|
|
126
|
-
@green10: #
|
|
107
|
+
@green-1: #e1f7ec;
|
|
108
|
+
@green1: #e1f7ec;
|
|
109
|
+
@green-2: #b0ebcf;
|
|
110
|
+
@green2: #b0ebcf;
|
|
111
|
+
@green-3: #83deb6;
|
|
112
|
+
@green3: #83deb6;
|
|
113
|
+
@green-4: #5ad1a1;
|
|
114
|
+
@green4: #5ad1a1;
|
|
115
|
+
@green-5: #35c490;
|
|
116
|
+
@green5: #35c490;
|
|
117
|
+
@green-6: #14b781;
|
|
118
|
+
@green6: #14b781;
|
|
119
|
+
@green-7: #099168;
|
|
120
|
+
@green7: #099168;
|
|
121
|
+
@green-8: #016b4f;
|
|
122
|
+
@green8: #016b4f;
|
|
123
|
+
@green-9: #004535;
|
|
124
|
+
@green9: #004535;
|
|
125
|
+
@green-10: #001f18;
|
|
126
|
+
@green10: #001f18;
|
|
127
127
|
@magenta-1: #fff0f6;
|
|
128
128
|
@magenta1: #fff0f6;
|
|
129
129
|
@magenta-2: #ffd6e7;
|
|
@@ -166,24 +166,24 @@
|
|
|
166
166
|
@pink10: #520339;
|
|
167
167
|
@red-1: #fff2f0;
|
|
168
168
|
@red1: #fff2f0;
|
|
169
|
-
@red-2: #
|
|
170
|
-
@red2: #
|
|
171
|
-
@red-3: #
|
|
172
|
-
@red3: #
|
|
173
|
-
@red-4: #
|
|
174
|
-
@red4: #
|
|
175
|
-
@red-5: #
|
|
176
|
-
@red5: #
|
|
177
|
-
@red-6: #
|
|
178
|
-
@red6: #
|
|
179
|
-
@red-7: #
|
|
180
|
-
@red7: #
|
|
181
|
-
@red-8: #
|
|
182
|
-
@red8: #
|
|
183
|
-
@red-9: #
|
|
184
|
-
@red9: #
|
|
185
|
-
@red-10: #
|
|
186
|
-
@red10: #
|
|
169
|
+
@red-2: #ffedeb;
|
|
170
|
+
@red2: #ffedeb;
|
|
171
|
+
@red-3: #ffc8c2;
|
|
172
|
+
@red3: #ffc8c2;
|
|
173
|
+
@red-4: #ffa099;
|
|
174
|
+
@red4: #ffa099;
|
|
175
|
+
@red-5: #fc746f;
|
|
176
|
+
@red5: #fc746f;
|
|
177
|
+
@red-6: #ef4343;
|
|
178
|
+
@red6: #ef4343;
|
|
179
|
+
@red-7: #c92e34;
|
|
180
|
+
@red7: #c92e34;
|
|
181
|
+
@red-8: #a31d26;
|
|
182
|
+
@red8: #a31d26;
|
|
183
|
+
@red-9: #7d101b;
|
|
184
|
+
@red9: #7d101b;
|
|
185
|
+
@red-10: #570a15;
|
|
186
|
+
@red10: #570a15;
|
|
187
187
|
@orange-1: #fff7e6;
|
|
188
188
|
@orange1: #fff7e6;
|
|
189
189
|
@orange-2: #ffe7ba;
|
|
@@ -204,26 +204,26 @@
|
|
|
204
204
|
@orange9: #873800;
|
|
205
205
|
@orange-10: #612500;
|
|
206
206
|
@orange10: #612500;
|
|
207
|
-
@yellow-1: #
|
|
208
|
-
@yellow1: #
|
|
209
|
-
@yellow-2: #
|
|
210
|
-
@yellow2: #
|
|
211
|
-
@yellow-3: #
|
|
212
|
-
@yellow3: #
|
|
213
|
-
@yellow-4: #
|
|
214
|
-
@yellow4: #
|
|
215
|
-
@yellow-5: #
|
|
216
|
-
@yellow5: #
|
|
217
|
-
@yellow-6: #
|
|
218
|
-
@yellow6: #
|
|
219
|
-
@yellow-7: #
|
|
220
|
-
@yellow7: #
|
|
221
|
-
@yellow-8: #
|
|
222
|
-
@yellow8: #
|
|
223
|
-
@yellow-9: #
|
|
224
|
-
@yellow9: #
|
|
225
|
-
@yellow-10: #
|
|
226
|
-
@yellow10: #
|
|
207
|
+
@yellow-1: #fffbf0;
|
|
208
|
+
@yellow1: #fffbf0;
|
|
209
|
+
@yellow-2: #fff0c9;
|
|
210
|
+
@yellow2: #fff0c9;
|
|
211
|
+
@yellow-3: #ffe1a1;
|
|
212
|
+
@yellow3: #ffe1a1;
|
|
213
|
+
@yellow-4: #ffd078;
|
|
214
|
+
@yellow4: #ffd078;
|
|
215
|
+
@yellow-5: #ffbc4f;
|
|
216
|
+
@yellow5: #ffbc4f;
|
|
217
|
+
@yellow-6: #f49f25;
|
|
218
|
+
@yellow6: #f49f25;
|
|
219
|
+
@yellow-7: #cf7b15;
|
|
220
|
+
@yellow7: #cf7b15;
|
|
221
|
+
@yellow-8: #a85b08;
|
|
222
|
+
@yellow8: #a85b08;
|
|
223
|
+
@yellow-9: #823f00;
|
|
224
|
+
@yellow9: #823f00;
|
|
225
|
+
@yellow-10: #5c2900;
|
|
226
|
+
@yellow10: #5c2900;
|
|
227
227
|
@volcano-1: #fff2e8;
|
|
228
228
|
@volcano1: #fff2e8;
|
|
229
229
|
@volcano-2: #ffd8bf;
|
|
@@ -331,56 +331,56 @@
|
|
|
331
331
|
@colorPrimaryTextHover: #3690ff;
|
|
332
332
|
@colorPrimaryText: #0d6cf2;
|
|
333
333
|
@colorPrimaryTextActive: #004ecc;
|
|
334
|
-
@colorSuccessBg: #
|
|
335
|
-
@colorSuccessBgHover: #
|
|
336
|
-
@colorSuccessBorder: #
|
|
337
|
-
@colorSuccessBorderHover: #
|
|
338
|
-
@colorSuccessHover: #
|
|
339
|
-
@colorSuccessActive: #
|
|
340
|
-
@colorSuccessTextHover: #
|
|
341
|
-
@colorSuccessText: #
|
|
342
|
-
@colorSuccessTextActive: #
|
|
343
|
-
@colorErrorBg: #
|
|
344
|
-
@colorErrorBgHover: #
|
|
345
|
-
@colorErrorBgFilledHover: #
|
|
346
|
-
@colorErrorBgActive: #
|
|
347
|
-
@colorErrorBorder: #
|
|
348
|
-
@colorErrorBorderHover: #
|
|
349
|
-
@colorErrorHover: #
|
|
350
|
-
@colorErrorActive: #
|
|
351
|
-
@colorErrorTextHover: #
|
|
352
|
-
@colorErrorText: #
|
|
353
|
-
@colorErrorTextActive: #
|
|
354
|
-
@colorWarningBg: #
|
|
355
|
-
@colorWarningBgHover: #
|
|
356
|
-
@colorWarningBorder: #
|
|
357
|
-
@colorWarningBorderHover: #
|
|
358
|
-
@colorWarningHover: #
|
|
359
|
-
@colorWarningActive: #
|
|
360
|
-
@colorWarningTextHover: #
|
|
361
|
-
@colorWarningText: #
|
|
362
|
-
@colorWarningTextActive: #
|
|
363
|
-
@colorInfoBg: #
|
|
334
|
+
@colorSuccessBg: #e8f8f3;
|
|
335
|
+
@colorSuccessBgHover: #b0ebcf;
|
|
336
|
+
@colorSuccessBorder: #7ed7ba;
|
|
337
|
+
@colorSuccessBorderHover: #5ad1a1;
|
|
338
|
+
@colorSuccessHover: #5ad1a1;
|
|
339
|
+
@colorSuccessActive: #099168;
|
|
340
|
+
@colorSuccessTextHover: #35c490;
|
|
341
|
+
@colorSuccessText: #096547;
|
|
342
|
+
@colorSuccessTextActive: #099168;
|
|
343
|
+
@colorErrorBg: #fdecec;
|
|
344
|
+
@colorErrorBgHover: #ffedeb;
|
|
345
|
+
@colorErrorBgFilledHover: #ffddd9;
|
|
346
|
+
@colorErrorBgActive: #ffc8c2;
|
|
347
|
+
@colorErrorBorder: #f69898;
|
|
348
|
+
@colorErrorBorderHover: #ffa099;
|
|
349
|
+
@colorErrorHover: #fc746f;
|
|
350
|
+
@colorErrorActive: #c92e34;
|
|
351
|
+
@colorErrorTextHover: #fc746f;
|
|
352
|
+
@colorErrorText: #8a1b1b;
|
|
353
|
+
@colorErrorTextActive: #c92e34;
|
|
354
|
+
@colorWarningBg: #fef6e9;
|
|
355
|
+
@colorWarningBgHover: #fff0c9;
|
|
356
|
+
@colorWarningBorder: #f9cb87;
|
|
357
|
+
@colorWarningBorderHover: #ffd078;
|
|
358
|
+
@colorWarningHover: #ffd078;
|
|
359
|
+
@colorWarningActive: #cf7b15;
|
|
360
|
+
@colorWarningTextHover: #ffbc4f;
|
|
361
|
+
@colorWarningText: #5b3600;
|
|
362
|
+
@colorWarningTextActive: #cf7b15;
|
|
363
|
+
@colorInfoBg: #eaf1ff;
|
|
364
364
|
@colorInfoBgHover: #b0dbff;
|
|
365
|
-
@colorInfoBorder: #
|
|
365
|
+
@colorInfoBorder: #598cf3;
|
|
366
366
|
@colorInfoBorderHover: #5eacff;
|
|
367
367
|
@colorInfoHover: #5eacff;
|
|
368
368
|
@colorInfoActive: #004ecc;
|
|
369
369
|
@colorInfoTextHover: #3690ff;
|
|
370
|
-
@colorInfoText: #
|
|
370
|
+
@colorInfoText: #083e8b;
|
|
371
371
|
@colorInfoTextActive: #004ecc;
|
|
372
372
|
@colorLinkHover: #5eacff;
|
|
373
373
|
@colorLinkActive: #004ecc;
|
|
374
374
|
@colorBgMask: rgba(19, 32, 57, 0.45);
|
|
375
375
|
@colorWhite: #fff;
|
|
376
|
-
@fontSizeSM:
|
|
377
|
-
@fontSizeLG:
|
|
376
|
+
@fontSizeSM: 12px;
|
|
377
|
+
@fontSizeLG: 16px;
|
|
378
378
|
@fontSizeXL: 18px;
|
|
379
|
-
@fontSizeHeading1:
|
|
380
|
-
@fontSizeHeading2:
|
|
381
|
-
@fontSizeHeading3:
|
|
382
|
-
@fontSizeHeading4:
|
|
383
|
-
@fontSizeHeading5:
|
|
379
|
+
@fontSizeHeading1: 24px;
|
|
380
|
+
@fontSizeHeading2: 20px;
|
|
381
|
+
@fontSizeHeading3: 18px;
|
|
382
|
+
@fontSizeHeading4: 16px;
|
|
383
|
+
@fontSizeHeading5: 13px;
|
|
384
384
|
@lineHeight: 1.6153846153846154;
|
|
385
385
|
@lineHeightLG: 1.5714285714285714;
|
|
386
386
|
@lineHeightSM: 1.8;
|
|
@@ -401,9 +401,9 @@
|
|
|
401
401
|
@sizeSM: 12px;
|
|
402
402
|
@sizeXS: 8px;
|
|
403
403
|
@sizeXXS: 4px;
|
|
404
|
-
@controlHeightSM:
|
|
405
|
-
@controlHeightXS:
|
|
406
|
-
@controlHeightLG:
|
|
404
|
+
@controlHeightSM: 21px;
|
|
405
|
+
@controlHeightXS: 14px;
|
|
406
|
+
@controlHeightLG: 35px;
|
|
407
407
|
@motionDurationFast: 0.1s;
|
|
408
408
|
@motionDurationMid: 0.2s;
|
|
409
409
|
@motionDurationSlow: 0.3s;
|
|
@@ -412,6 +412,7 @@
|
|
|
412
412
|
@borderRadiusSM: 2px;
|
|
413
413
|
@borderRadiusLG: 8px;
|
|
414
414
|
@borderRadiusOuter: 4px;
|
|
415
|
+
@colorIcon: #8592ad;
|
|
415
416
|
@boxShadow: 0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05);
|
|
416
417
|
@boxShadowSecondary: 0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05);
|
|
417
418
|
@boxShadowTertiary: 0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02);
|
|
@@ -428,16 +429,15 @@
|
|
|
428
429
|
@colorTextLabel: #5c6b8a;
|
|
429
430
|
@colorTextDescription: #8592ad;
|
|
430
431
|
@colorTextLightSolid: #fff;
|
|
431
|
-
@colorHighlight: #
|
|
432
|
+
@colorHighlight: #ef4343;
|
|
432
433
|
@colorBgTextHover: #e2e8f3;
|
|
433
434
|
@colorBgTextActive: #cdd5e4;
|
|
434
|
-
@colorIcon: #8592ad;
|
|
435
435
|
@colorIconHover: #132039;
|
|
436
|
-
@colorErrorOutline: rgba(
|
|
437
|
-
@colorWarningOutline: rgba(
|
|
438
|
-
@fontSizeIcon:
|
|
436
|
+
@colorErrorOutline: rgba(230,17,17,0.08);
|
|
437
|
+
@colorWarningOutline: rgba(244,155,11,0.09);
|
|
438
|
+
@fontSizeIcon: 12px;
|
|
439
439
|
@controlOutlineWidth: 2px;
|
|
440
|
-
@controlInteractiveSize:
|
|
440
|
+
@controlInteractiveSize: 14px;
|
|
441
441
|
@controlItemBgHover: #f3f6fc;
|
|
442
442
|
@controlItemBgActive: #e6f4ff;
|
|
443
443
|
@controlItemBgActiveHover: #b0dbff;
|
package/lib/badge/style/index.js
CHANGED
|
@@ -26,17 +26,15 @@ module.exports = __toCommonJS(style_exports);
|
|
|
26
26
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
27
|
var genBadgeStyle = (token) => {
|
|
28
28
|
const { componentCls } = token;
|
|
29
|
-
const dotSize = token.fontSizeLG / 2;
|
|
30
29
|
return {
|
|
31
30
|
[`${componentCls}`]: {
|
|
32
|
-
//
|
|
33
|
-
color: "inherit"
|
|
31
|
+
// make status text inherit parent style
|
|
32
|
+
color: "inherit",
|
|
33
|
+
fontSize: "inherit"
|
|
34
34
|
},
|
|
35
35
|
[`${componentCls}${componentCls}-status`]: {
|
|
36
36
|
// dot style
|
|
37
37
|
[`${componentCls}-status-dot`]: {
|
|
38
|
-
width: dotSize,
|
|
39
|
-
height: dotSize,
|
|
40
38
|
[`&${componentCls}-status-default`]: {
|
|
41
39
|
backgroundColor: token.colorFill
|
|
42
40
|
}
|
|
@@ -66,8 +64,9 @@ var genBadgeStyle = (token) => {
|
|
|
66
64
|
},
|
|
67
65
|
[`${componentCls}-status-text`]: {
|
|
68
66
|
marginInlineStart: token.marginXS,
|
|
69
|
-
// inherit
|
|
70
|
-
color: "inherit"
|
|
67
|
+
// inherit style from parent
|
|
68
|
+
color: "inherit",
|
|
69
|
+
fontSize: "inherit"
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
};
|
package/lib/card/index.js
CHANGED
|
@@ -48,6 +48,7 @@ var Card = import_react.default.forwardRef(
|
|
|
48
48
|
size,
|
|
49
49
|
title,
|
|
50
50
|
tabList,
|
|
51
|
+
tabProps,
|
|
51
52
|
divided: outerDivided,
|
|
52
53
|
prefixCls: customizePrefixCls,
|
|
53
54
|
bodyStyle,
|
|
@@ -87,6 +88,10 @@ var Card = import_react.default.forwardRef(
|
|
|
87
88
|
size,
|
|
88
89
|
title,
|
|
89
90
|
tabList: newTabList,
|
|
91
|
+
tabProps: {
|
|
92
|
+
size: "middle",
|
|
93
|
+
...tabProps
|
|
94
|
+
},
|
|
90
95
|
prefixCls: customizePrefixCls,
|
|
91
96
|
bodyStyle,
|
|
92
97
|
styles,
|
package/lib/card/style/index.js
CHANGED
|
@@ -62,6 +62,16 @@ var genCardStyle = (token) => {
|
|
|
62
62
|
// nested Card style
|
|
63
63
|
[`${componentCls}:not(${componentCls}-bordered):not(${componentCls}-type-inner)`]: {
|
|
64
64
|
boxShadow: "none"
|
|
65
|
+
},
|
|
66
|
+
// nested Card border radius
|
|
67
|
+
[`${componentCls}`]: {
|
|
68
|
+
borderRadius: token.borderRadiusLG - 2,
|
|
69
|
+
[`${componentCls}`]: {
|
|
70
|
+
borderRadius: token.borderRadius,
|
|
71
|
+
[`${componentCls}`]: {
|
|
72
|
+
borderRadius: token.borderRadiusSM
|
|
73
|
+
}
|
|
74
|
+
}
|
|
65
75
|
}
|
|
66
76
|
},
|
|
67
77
|
[`${componentCls}${componentCls}-no-divider`]: {
|
|
@@ -29,7 +29,7 @@ var genVerticalStyle = (size, token) => {
|
|
|
29
29
|
const { componentCls } = token;
|
|
30
30
|
const paddingMap = {
|
|
31
31
|
default: {
|
|
32
|
-
paddingIn: token.
|
|
32
|
+
paddingIn: token.paddingXXS,
|
|
33
33
|
paddingOut: token.paddingLG
|
|
34
34
|
},
|
|
35
35
|
middle: {
|
|
@@ -54,6 +54,11 @@ var genVerticalStyle = (size, token) => {
|
|
|
54
54
|
[`& > th, & > td`]: {
|
|
55
55
|
paddingBottom: paddingConfig.paddingOut
|
|
56
56
|
}
|
|
57
|
+
},
|
|
58
|
+
[`${componentCls}-item`]: {
|
|
59
|
+
[`${componentCls}-item-label`]: {
|
|
60
|
+
fontSize: token.fontSizeSM
|
|
61
|
+
}
|
|
57
62
|
}
|
|
58
63
|
}
|
|
59
64
|
};
|
package/lib/form/FormItem.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { FormItemProps as AntFormItemProps } from 'antd/es/form';
|
|
|
4
4
|
import type { TooltipProps } from '../tooltip';
|
|
5
5
|
declare const AntFormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
6
6
|
useStatus: () => {
|
|
7
|
-
status?: "" | "
|
|
7
|
+
status?: "" | "error" | "warning" | "success" | "validating";
|
|
8
8
|
errors: React.ReactNode[];
|
|
9
9
|
warnings: React.ReactNode[];
|
|
10
10
|
};
|
package/lib/table/style/index.js
CHANGED
|
@@ -91,9 +91,7 @@ var genTableStyle = (token) => {
|
|
|
91
91
|
transition: `background ${token.motionDurationMid}`
|
|
92
92
|
},
|
|
93
93
|
// empty style
|
|
94
|
-
[`${componentCls}-placeholder td`]: {
|
|
95
|
-
borderBottom: "none"
|
|
96
|
-
},
|
|
94
|
+
[`${componentCls}-placeholder td`]: {},
|
|
97
95
|
[`${componentCls}-empty-wrapper`]: {
|
|
98
96
|
minHeight: 360 - token.paddingSM * 2,
|
|
99
97
|
display: "flex",
|
|
@@ -143,7 +141,7 @@ var genTableStyle = (token) => {
|
|
|
143
141
|
borderRadius: `0px 0px ${token.borderRadiusLG}px ${token.borderRadiusLG}px`
|
|
144
142
|
}
|
|
145
143
|
},
|
|
146
|
-
//
|
|
144
|
+
// 带内部边框的表格样式
|
|
147
145
|
[`${componentCls}-wrapper${componentCls}-inner-bordered ${componentCls}-bordered`]: {
|
|
148
146
|
[`${componentCls}-container`]: {
|
|
149
147
|
borderInlineStart: "none",
|
package/lib/tabs/style/index.js
CHANGED
|
@@ -40,11 +40,10 @@ var genTabsStyle = (token) => {
|
|
|
40
40
|
/** @deprecated */
|
|
41
41
|
[`${componentCls}-tab-tag`]: {
|
|
42
42
|
color: colorTextSecondary,
|
|
43
|
-
fontFamily: "PingFangSC",
|
|
44
43
|
fontSize: 12,
|
|
45
44
|
borderRadius: 12,
|
|
46
45
|
marginInlineEnd: 0,
|
|
47
|
-
height:
|
|
46
|
+
height: token.controlHeightSM
|
|
48
47
|
},
|
|
49
48
|
[`${componentCls}-tab-badge`]: {
|
|
50
49
|
[`>${antCls}-badge-count`]: {
|
package/lib/theme/default.js
CHANGED
|
@@ -27,11 +27,15 @@ var import_format = require("./util/format");
|
|
|
27
27
|
var colorPrimary = "#0D6CF2";
|
|
28
28
|
var colorPrimarySecondary = "#598CF3";
|
|
29
29
|
var colorText = "#132039";
|
|
30
|
-
var colorTextSecondary = "#
|
|
30
|
+
var colorTextSecondary = "#5C6B8A";
|
|
31
|
+
var colorTextTertiary = "#8592AD";
|
|
32
|
+
var colorTextQuaternary = "#C1CBE0";
|
|
33
|
+
var colorFill = "#CDD5E4";
|
|
31
34
|
var colorFillSecondary = "#E2E8F3";
|
|
32
35
|
var colorFillTertiary = "#F3F6FC";
|
|
33
36
|
var colorFillQuaternary = "#F8FAFE";
|
|
34
37
|
var colorBorderSecondary = colorFillSecondary;
|
|
38
|
+
var fontSizeSM = 12;
|
|
35
39
|
var tagColorBorder = "#cdd5e466";
|
|
36
40
|
var fontFamilyEn = `Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'`;
|
|
37
41
|
var defaultTheme = {
|
|
@@ -42,53 +46,46 @@ var defaultTheme = {
|
|
|
42
46
|
borderRadiusLG: 8,
|
|
43
47
|
borderRadiusSM: 2,
|
|
44
48
|
fontSize: 13,
|
|
45
|
-
fontSizeSM
|
|
49
|
+
fontSizeSM,
|
|
50
|
+
fontSizeLG: 16,
|
|
51
|
+
fontSizeHeading1: 24,
|
|
52
|
+
fontSizeHeading2: 20,
|
|
53
|
+
fontSizeHeading3: 18,
|
|
54
|
+
fontSizeHeading4: 16,
|
|
55
|
+
fontSizeHeading5: 13,
|
|
56
|
+
controlHeight: 28,
|
|
46
57
|
colorPrimary,
|
|
47
58
|
colorInfo: colorPrimary,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
colorWarningHover: "#FFC166",
|
|
64
|
-
colorWarningActive: "#FF9700",
|
|
65
|
-
colorWarningTextHover: "#FFC166",
|
|
66
|
-
colorWarningText: "#FFA21A",
|
|
67
|
-
colorWarningTextActive: "#FF9700",
|
|
68
|
-
colorErrorBg: "#ffebeb",
|
|
69
|
-
colorErrorBgHover: "#ffd6d6",
|
|
70
|
-
colorErrorBorder: "#FFB3B3",
|
|
71
|
-
colorErrorBorderHover: "#ff7575",
|
|
72
|
-
colorErrorHover: "#ff7575",
|
|
73
|
-
colorErrorActive: "#CC0000",
|
|
74
|
-
colorErrorTextHover: "#ff7575",
|
|
75
|
-
colorErrorText: "#ff1a1a",
|
|
76
|
-
colorErrorTextActive: "#CC0000",
|
|
77
|
-
colorError: "#F93939",
|
|
59
|
+
colorInfoBorder: colorPrimarySecondary,
|
|
60
|
+
colorInfoBg: "#EAF1FF",
|
|
61
|
+
colorInfoText: "#083E8B",
|
|
62
|
+
colorSuccess: "#14B781",
|
|
63
|
+
colorSuccessBorder: "#7ED7BA",
|
|
64
|
+
colorSuccessBg: "#E8F8F3",
|
|
65
|
+
colorSuccessText: "#096547",
|
|
66
|
+
colorWarning: "#F49F25",
|
|
67
|
+
colorWarningBorder: "#F9CB87",
|
|
68
|
+
colorWarningBg: "#FEF6E9",
|
|
69
|
+
colorWarningText: "#5B3600",
|
|
70
|
+
colorError: "#EF4343",
|
|
71
|
+
colorErrorBorder: "#F69898",
|
|
72
|
+
colorErrorBg: "#FDECEC",
|
|
73
|
+
colorErrorText: "#8A1B1B",
|
|
78
74
|
colorTextBase: "#000000",
|
|
79
75
|
colorText,
|
|
80
76
|
colorTextSecondary,
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
colorTextTertiary,
|
|
78
|
+
colorTextQuaternary,
|
|
79
|
+
colorIcon: colorTextSecondary,
|
|
83
80
|
colorBgBase: "#ffffff",
|
|
84
81
|
colorBgContainer: "#ffffff",
|
|
85
82
|
colorBgLayout: colorFillQuaternary,
|
|
86
|
-
colorBorder:
|
|
83
|
+
colorBorder: colorFill,
|
|
87
84
|
colorBorderSecondary,
|
|
88
|
-
|
|
89
|
-
colorFillTertiary,
|
|
85
|
+
colorFill,
|
|
90
86
|
colorFillSecondary,
|
|
91
|
-
|
|
87
|
+
colorFillTertiary,
|
|
88
|
+
colorFillQuaternary,
|
|
92
89
|
colorBgMask: "rgba(19, 32, 57, 0.45)",
|
|
93
90
|
colorBgElevated: "#ffffff",
|
|
94
91
|
colorBgSpotlight: "#ffffff",
|
|
@@ -100,19 +97,23 @@ var defaultTheme = {
|
|
|
100
97
|
lineWidthFocus: 0
|
|
101
98
|
},
|
|
102
99
|
components: {
|
|
103
|
-
Badge: {
|
|
104
|
-
colorInfo: colorPrimarySecondary
|
|
105
|
-
},
|
|
106
100
|
Breadcrumb: {
|
|
107
|
-
fontSize:
|
|
101
|
+
fontSize: fontSizeSM,
|
|
108
102
|
// @ts-ignore
|
|
109
103
|
// fontHeight is internal token
|
|
110
104
|
fontHeight: 20,
|
|
111
105
|
lastItemColor: colorTextSecondary
|
|
112
106
|
},
|
|
107
|
+
Card: {
|
|
108
|
+
headerFontSize: 16,
|
|
109
|
+
borderRadiusLG: 8
|
|
110
|
+
},
|
|
113
111
|
Collapse: {
|
|
114
112
|
colorBorder: colorBorderSecondary
|
|
115
113
|
},
|
|
114
|
+
Descriptions: {
|
|
115
|
+
labelColor: colorTextSecondary
|
|
116
|
+
},
|
|
116
117
|
InputNumber: {
|
|
117
118
|
handleVisible: true
|
|
118
119
|
},
|
|
@@ -137,6 +138,9 @@ var defaultTheme = {
|
|
|
137
138
|
handleActiveColor: "#5189fb",
|
|
138
139
|
handleColorDisabled: "#b3ccff"
|
|
139
140
|
},
|
|
141
|
+
Skeleton: {
|
|
142
|
+
blockRadius: 4
|
|
143
|
+
},
|
|
140
144
|
Tabs: {
|
|
141
145
|
horizontalItemGutter: 24,
|
|
142
146
|
itemActiveColor: colorText,
|
|
@@ -148,11 +152,11 @@ var defaultTheme = {
|
|
|
148
152
|
colorBorder: tagColorBorder
|
|
149
153
|
},
|
|
150
154
|
Table: {
|
|
151
|
-
cellFontSize:
|
|
155
|
+
cellFontSize: fontSizeSM,
|
|
152
156
|
headerSplitColor: "transparent",
|
|
153
|
-
cellPaddingBlock:
|
|
157
|
+
cellPaddingBlock: 8,
|
|
154
158
|
cellPaddingInline: 16,
|
|
155
|
-
cellPaddingBlockMD:
|
|
159
|
+
cellPaddingBlockMD: 6,
|
|
156
160
|
cellPaddingBlockSM: 4,
|
|
157
161
|
rowHoverBg: colorFillQuaternary,
|
|
158
162
|
rowSelectedBg: colorFillQuaternary,
|
|
@@ -162,17 +166,15 @@ var defaultTheme = {
|
|
|
162
166
|
colorBgSpotlight: "#ffffff",
|
|
163
167
|
colorTextLightSolid: colorText
|
|
164
168
|
},
|
|
165
|
-
Card: {
|
|
166
|
-
borderRadiusLG: 8
|
|
167
|
-
},
|
|
168
169
|
Menu: {
|
|
169
170
|
paddingContentVertical: 0,
|
|
170
171
|
itemHeight: 30,
|
|
171
172
|
itemBorderRadius: 4,
|
|
172
173
|
// 80 means 50% opacity
|
|
173
|
-
itemSelectedBg: colorFillSecondary + "80",
|
|
174
174
|
itemHoverBg: colorFillSecondary + "80",
|
|
175
|
-
|
|
175
|
+
itemActiveBg: colorFillSecondary + "80",
|
|
176
|
+
itemSelectedBg: colorFillSecondary + "80",
|
|
177
|
+
itemColor: "#36496F",
|
|
176
178
|
itemSelectedColor: colorText,
|
|
177
179
|
itemMarginBlock: 6,
|
|
178
180
|
groupTitleFontSize: 11
|