@oceanbase/design 1.0.0-alpha.1 → 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/table/style/index.js +1 -3
- package/es/tabs/style/index.js +1 -2
- package/es/theme/default.js +21 -10
- package/es/theme/style/aliyun.less +1 -1
- package/es/theme/style/compact.less +9 -9
- package/es/theme/style/dark.less +5 -5
- package/es/theme/style/default.less +12 -12
- 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/table/style/index.js +2 -4
- package/lib/tabs/style/index.js +1 -2
- package/lib/theme/default.js +21 -10
- package/lib/theme/style/aliyun.less +1 -1
- package/lib/theme/style/compact.less +9 -9
- package/lib/theme/style/dark.less +5 -5
- package/lib/theme/style/default.less +12 -12
- package/package.json +7 -7
package/es/badge/style/index.js
CHANGED
|
@@ -5,15 +5,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
5
5
|
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
6
6
|
export var genBadgeStyle = function genBadgeStyle(token) {
|
|
7
7
|
var componentCls = token.componentCls;
|
|
8
|
-
// dot size is larger than antd
|
|
9
|
-
var dotSize = token.fontSizeLG / 2;
|
|
10
8
|
return _defineProperty(_defineProperty({}, "".concat(componentCls), {
|
|
11
|
-
//
|
|
12
|
-
color: 'inherit'
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
height: dotSize
|
|
16
|
-
}, "&".concat(componentCls, "-status-default"), {
|
|
9
|
+
// make status text inherit parent style
|
|
10
|
+
color: 'inherit',
|
|
11
|
+
fontSize: 'inherit'
|
|
12
|
+
}), "".concat(componentCls).concat(componentCls, "-status"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-status-dot"), _defineProperty({}, "&".concat(componentCls, "-status-default"), {
|
|
17
13
|
backgroundColor: token.colorFill
|
|
18
14
|
})), "".concat(componentCls, "-status-icon"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
19
15
|
// remove dot style
|
|
@@ -32,8 +28,9 @@ export var genBadgeStyle = function genBadgeStyle(token) {
|
|
|
32
28
|
color: token.colorWarning
|
|
33
29
|
})), "".concat(componentCls, "-status-text"), {
|
|
34
30
|
marginInlineStart: token.marginXS,
|
|
35
|
-
// inherit
|
|
36
|
-
color: 'inherit'
|
|
31
|
+
// inherit style from parent
|
|
32
|
+
color: 'inherit',
|
|
33
|
+
fontSize: 'inherit'
|
|
37
34
|
}));
|
|
38
35
|
};
|
|
39
36
|
export default (function (prefixCls) {
|
package/es/card/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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); }
|
|
2
|
-
var _excluded = ["children", "size", "title", "tabList", "divided", "prefixCls", "bodyStyle", "styles", "className"];
|
|
2
|
+
var _excluded = ["children", "size", "title", "tabList", "tabProps", "divided", "prefixCls", "bodyStyle", "styles", "className"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
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; }
|
|
@@ -24,6 +24,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
24
24
|
size = _ref.size,
|
|
25
25
|
title = _ref.title,
|
|
26
26
|
tabList = _ref.tabList,
|
|
27
|
+
tabProps = _ref.tabProps,
|
|
27
28
|
outerDivided = _ref.divided,
|
|
28
29
|
customizePrefixCls = _ref.prefixCls,
|
|
29
30
|
bodyStyle = _ref.bodyStyle,
|
|
@@ -62,6 +63,9 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
62
63
|
size: size,
|
|
63
64
|
title: title,
|
|
64
65
|
tabList: newTabList,
|
|
66
|
+
tabProps: _objectSpread({
|
|
67
|
+
size: 'middle'
|
|
68
|
+
}, tabProps),
|
|
65
69
|
prefixCls: customizePrefixCls,
|
|
66
70
|
bodyStyle: bodyStyle,
|
|
67
71
|
styles: styles,
|
package/es/card/style/index.js
CHANGED
|
@@ -28,9 +28,15 @@ export var genCardStyle = function genCardStyle(token) {
|
|
|
28
28
|
paddingSM = token.paddingSM,
|
|
29
29
|
paddingLG = token.paddingLG;
|
|
30
30
|
var tableComponentCls = "".concat(antCls, "-table");
|
|
31
|
-
return _ref2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-bordered):not(").concat(componentCls, "-type-inner)"), {
|
|
31
|
+
return _ref2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "".concat(componentCls), _defineProperty(_defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-bordered):not(").concat(componentCls, "-type-inner)"), {
|
|
32
32
|
boxShadow: 'none'
|
|
33
|
-
})
|
|
33
|
+
}), "".concat(componentCls), _defineProperty({
|
|
34
|
+
borderRadius: token.borderRadiusLG - 2
|
|
35
|
+
}, "".concat(componentCls), _defineProperty({
|
|
36
|
+
borderRadius: token.borderRadius
|
|
37
|
+
}, "".concat(componentCls), {
|
|
38
|
+
borderRadius: token.borderRadiusSM
|
|
39
|
+
})))), "".concat(componentCls).concat(componentCls, "-no-divider"), _defineProperty({}, "".concat(componentCls, "-head"), _defineProperty({
|
|
34
40
|
// should not remove border-bottom to avoid tabs inkbar display correctly
|
|
35
41
|
borderBottomColor: 'transparent'
|
|
36
42
|
}, tabsComponentCls, _defineProperty({}, "&".concat(tabsComponentCls, "-top, &").concat(tabsComponentCls, "-bottom"), _defineProperty({}, "".concat(tabsComponentCls, "-nav::before"), {
|
|
@@ -9,7 +9,7 @@ export var genVerticalStyle = function genVerticalStyle(size, token) {
|
|
|
9
9
|
var componentCls = token.componentCls;
|
|
10
10
|
var paddingMap = {
|
|
11
11
|
default: {
|
|
12
|
-
paddingIn: token.
|
|
12
|
+
paddingIn: token.paddingXXS,
|
|
13
13
|
paddingOut: token.paddingLG
|
|
14
14
|
},
|
|
15
15
|
middle: {
|
|
@@ -22,10 +22,12 @@ export var genVerticalStyle = function genVerticalStyle(size, token) {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
var paddingConfig = paddingMap[size];
|
|
25
|
-
return _defineProperty({}, "&".concat(componentCls).concat(componentCls, "-vertical:not(").concat(componentCls, "-bordered)"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-row:nth-child(2n + 1)"), _defineProperty({}, "& > th, & > td", {
|
|
25
|
+
return _defineProperty({}, "&".concat(componentCls).concat(componentCls, "-vertical:not(").concat(componentCls, "-bordered)"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-row:nth-child(2n + 1)"), _defineProperty({}, "& > th, & > td", {
|
|
26
26
|
paddingBottom: paddingConfig.paddingIn
|
|
27
27
|
})), "".concat(componentCls, "-row:nth-child(2n)"), _defineProperty({}, "& > th, & > td", {
|
|
28
28
|
paddingBottom: paddingConfig.paddingOut
|
|
29
|
+
})), "".concat(componentCls, "-item"), _defineProperty({}, "".concat(componentCls, "-item-label"), {
|
|
30
|
+
fontSize: token.fontSizeSM
|
|
29
31
|
})));
|
|
30
32
|
};
|
|
31
33
|
export var genDescriptionsStyle = function genDescriptionsStyle(token) {
|
package/es/table/style/index.js
CHANGED
|
@@ -46,9 +46,7 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
46
46
|
borderBottom: 'none'
|
|
47
47
|
})), "tr > td", {
|
|
48
48
|
transition: "background ".concat(token.motionDurationMid)
|
|
49
|
-
}), "".concat(componentCls, "-placeholder td"), {
|
|
50
|
-
borderBottom: 'none'
|
|
51
|
-
}), "".concat(componentCls, "-empty-wrapper"), {
|
|
49
|
+
}), "".concat(componentCls, "-placeholder td"), {}), "".concat(componentCls, "-empty-wrapper"), {
|
|
52
50
|
minHeight: 360 - token.paddingSM * 2,
|
|
53
51
|
display: 'flex',
|
|
54
52
|
justifyContent: 'center',
|
package/es/tabs/style/index.js
CHANGED
|
@@ -14,11 +14,10 @@ export var genTabsStyle = function genTabsStyle(token) {
|
|
|
14
14
|
border: 'none'
|
|
15
15
|
}))), "".concat(componentCls, "-tab"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-tab-tag"), {
|
|
16
16
|
color: colorTextSecondary,
|
|
17
|
-
fontFamily: 'PingFangSC',
|
|
18
17
|
fontSize: 12,
|
|
19
18
|
borderRadius: 12,
|
|
20
19
|
marginInlineEnd: 0,
|
|
21
|
-
height:
|
|
20
|
+
height: token.controlHeightSM
|
|
22
21
|
}), "".concat(componentCls, "-tab-badge"), _defineProperty(_defineProperty({}, ">".concat(antCls, "-badge-count"), {
|
|
23
22
|
color: colorTextSecondary,
|
|
24
23
|
backgroundColor: colorFillQuaternary
|
package/es/theme/default.js
CHANGED
|
@@ -19,6 +19,7 @@ var colorFillQuaternary = '#F8FAFE';
|
|
|
19
19
|
var colorFillHover = '#EFF3FA';
|
|
20
20
|
var colorFillSelected = '#E2E8F3';
|
|
21
21
|
var colorBorderSecondary = colorFillSecondary;
|
|
22
|
+
var fontSizeSM = 12;
|
|
22
23
|
// Calculated by colorBorder and getWeakenBorderColor()
|
|
23
24
|
var tagColorBorder = '#cdd5e466';
|
|
24
25
|
export var fontFamilyEn = "Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'";
|
|
@@ -27,13 +28,20 @@ var defaultTheme = {
|
|
|
27
28
|
fontFamily: "-apple-system, 'Noto Sans', BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
|
28
29
|
fontFamilyCode: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
|
|
29
30
|
borderRadius: 4,
|
|
30
|
-
borderRadiusLG:
|
|
31
|
+
borderRadiusLG: 8,
|
|
31
32
|
borderRadiusSM: 2,
|
|
32
33
|
fontSize: 13,
|
|
33
|
-
fontSizeSM:
|
|
34
|
+
fontSizeSM: fontSizeSM,
|
|
35
|
+
fontSizeLG: 16,
|
|
36
|
+
fontSizeHeading1: 24,
|
|
37
|
+
fontSizeHeading2: 20,
|
|
38
|
+
fontSizeHeading3: 18,
|
|
39
|
+
fontSizeHeading4: 16,
|
|
40
|
+
fontSizeHeading5: 13,
|
|
41
|
+
controlHeight: 28,
|
|
34
42
|
colorPrimary: colorPrimary,
|
|
35
43
|
colorInfo: colorPrimary,
|
|
36
|
-
colorInfoBorder:
|
|
44
|
+
colorInfoBorder: colorPrimarySecondary,
|
|
37
45
|
colorInfoBg: '#EAF1FF',
|
|
38
46
|
colorInfoText: '#083E8B',
|
|
39
47
|
colorSuccess: '#14B781',
|
|
@@ -74,11 +82,8 @@ var defaultTheme = {
|
|
|
74
82
|
lineWidthFocus: 0
|
|
75
83
|
},
|
|
76
84
|
components: {
|
|
77
|
-
Badge: {
|
|
78
|
-
colorInfo: colorPrimarySecondary
|
|
79
|
-
},
|
|
80
85
|
Breadcrumb: {
|
|
81
|
-
fontSize:
|
|
86
|
+
fontSize: fontSizeSM,
|
|
82
87
|
// @ts-ignore
|
|
83
88
|
// fontHeight is internal token
|
|
84
89
|
fontHeight: 20,
|
|
@@ -91,6 +96,9 @@ var defaultTheme = {
|
|
|
91
96
|
Collapse: {
|
|
92
97
|
colorBorder: colorBorderSecondary
|
|
93
98
|
},
|
|
99
|
+
Descriptions: {
|
|
100
|
+
labelColor: colorTextSecondary
|
|
101
|
+
},
|
|
94
102
|
InputNumber: {
|
|
95
103
|
handleVisible: true
|
|
96
104
|
},
|
|
@@ -115,6 +123,9 @@ var defaultTheme = {
|
|
|
115
123
|
handleActiveColor: '#5189fb',
|
|
116
124
|
handleColorDisabled: '#b3ccff'
|
|
117
125
|
},
|
|
126
|
+
Skeleton: {
|
|
127
|
+
blockRadius: 4
|
|
128
|
+
},
|
|
118
129
|
Tabs: {
|
|
119
130
|
horizontalItemGutter: 24,
|
|
120
131
|
itemActiveColor: colorText,
|
|
@@ -126,11 +137,11 @@ var defaultTheme = {
|
|
|
126
137
|
colorBorder: tagColorBorder
|
|
127
138
|
},
|
|
128
139
|
Table: {
|
|
129
|
-
cellFontSize:
|
|
140
|
+
cellFontSize: fontSizeSM,
|
|
130
141
|
headerSplitColor: 'transparent',
|
|
131
|
-
cellPaddingBlock:
|
|
142
|
+
cellPaddingBlock: 8,
|
|
132
143
|
cellPaddingInline: 16,
|
|
133
|
-
cellPaddingBlockMD:
|
|
144
|
+
cellPaddingBlockMD: 6,
|
|
134
145
|
cellPaddingBlockSM: 4,
|
|
135
146
|
rowHoverBg: colorFillQuaternary,
|
|
136
147
|
rowSelectedBg: colorFillQuaternary,
|
|
@@ -374,13 +374,13 @@
|
|
|
374
374
|
@colorBgMask: rgba(19, 32, 57, 0.45);
|
|
375
375
|
@colorWhite: #fff;
|
|
376
376
|
@fontSizeSM: 12px;
|
|
377
|
-
@fontSizeLG:
|
|
377
|
+
@fontSizeLG: 16px;
|
|
378
378
|
@fontSizeXL: 14px;
|
|
379
|
-
@fontSizeHeading1:
|
|
380
|
-
@fontSizeHeading2:
|
|
379
|
+
@fontSizeHeading1: 24px;
|
|
380
|
+
@fontSizeHeading2: 20px;
|
|
381
381
|
@fontSizeHeading3: 18px;
|
|
382
|
-
@fontSizeHeading4:
|
|
383
|
-
@fontSizeHeading5:
|
|
382
|
+
@fontSizeHeading4: 16px;
|
|
383
|
+
@fontSizeHeading5: 13px;
|
|
384
384
|
@lineHeight: 1.8;
|
|
385
385
|
@lineHeightLG: 1.6666666666666667;
|
|
386
386
|
@lineHeightSM: 2;
|
|
@@ -401,16 +401,16 @@
|
|
|
401
401
|
@sizeSM: 8px;
|
|
402
402
|
@sizeXS: 4px;
|
|
403
403
|
@sizeXXS: 4px;
|
|
404
|
-
@controlHeightSM:
|
|
405
|
-
@controlHeightXS:
|
|
406
|
-
@controlHeightLG:
|
|
404
|
+
@controlHeightSM: 18px;
|
|
405
|
+
@controlHeightXS: 12px;
|
|
406
|
+
@controlHeightLG: 30px;
|
|
407
407
|
@motionDurationFast: 0.1s;
|
|
408
408
|
@motionDurationMid: 0.2s;
|
|
409
409
|
@motionDurationSlow: 0.3s;
|
|
410
410
|
@lineWidthBold: 2px;
|
|
411
411
|
@borderRadiusXS: 1px;
|
|
412
412
|
@borderRadiusSM: 2px;
|
|
413
|
-
@borderRadiusLG:
|
|
413
|
+
@borderRadiusLG: 8px;
|
|
414
414
|
@borderRadiusOuter: 4px;
|
|
415
415
|
@colorIcon: #8592ad;
|
|
416
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);
|
package/es/theme/style/dark.less
CHANGED
|
@@ -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;
|
|
@@ -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;
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
@fontSizeIcon: 10px;
|
|
435
435
|
@lineWidthFocus: 3px;
|
|
436
436
|
@controlOutlineWidth: 2px;
|
|
437
|
-
@controlInteractiveSize:
|
|
437
|
+
@controlInteractiveSize: 14px;
|
|
438
438
|
@controlItemBgHover: rgba(255,255,255,0.08);
|
|
439
439
|
@controlItemBgActive: #122e57;
|
|
440
440
|
@controlItemBgActiveHover: #113c78;
|
|
@@ -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;
|
|
@@ -374,13 +374,13 @@
|
|
|
374
374
|
@colorBgMask: rgba(19, 32, 57, 0.45);
|
|
375
375
|
@colorWhite: #fff;
|
|
376
376
|
@fontSizeSM: 12px;
|
|
377
|
-
@fontSizeLG:
|
|
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,16 +401,16 @@
|
|
|
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;
|
|
410
410
|
@lineWidthBold: 2px;
|
|
411
411
|
@borderRadiusXS: 1px;
|
|
412
412
|
@borderRadiusSM: 2px;
|
|
413
|
-
@borderRadiusLG:
|
|
413
|
+
@borderRadiusLG: 8px;
|
|
414
414
|
@borderRadiusOuter: 4px;
|
|
415
415
|
@colorIcon: #8592ad;
|
|
416
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);
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
@colorWarningOutline: rgba(244,155,11,0.09);
|
|
438
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/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
|
@@ -35,6 +35,7 @@ var colorFillSecondary = "#E2E8F3";
|
|
|
35
35
|
var colorFillTertiary = "#F3F6FC";
|
|
36
36
|
var colorFillQuaternary = "#F8FAFE";
|
|
37
37
|
var colorBorderSecondary = colorFillSecondary;
|
|
38
|
+
var fontSizeSM = 12;
|
|
38
39
|
var tagColorBorder = "#cdd5e466";
|
|
39
40
|
var fontFamilyEn = `Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'`;
|
|
40
41
|
var defaultTheme = {
|
|
@@ -42,13 +43,20 @@ var defaultTheme = {
|
|
|
42
43
|
fontFamily: `-apple-system, 'Noto Sans', BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,
|
|
43
44
|
fontFamilyCode: `Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,
|
|
44
45
|
borderRadius: 4,
|
|
45
|
-
borderRadiusLG:
|
|
46
|
+
borderRadiusLG: 8,
|
|
46
47
|
borderRadiusSM: 2,
|
|
47
48
|
fontSize: 13,
|
|
48
|
-
fontSizeSM
|
|
49
|
+
fontSizeSM,
|
|
50
|
+
fontSizeLG: 16,
|
|
51
|
+
fontSizeHeading1: 24,
|
|
52
|
+
fontSizeHeading2: 20,
|
|
53
|
+
fontSizeHeading3: 18,
|
|
54
|
+
fontSizeHeading4: 16,
|
|
55
|
+
fontSizeHeading5: 13,
|
|
56
|
+
controlHeight: 28,
|
|
49
57
|
colorPrimary,
|
|
50
58
|
colorInfo: colorPrimary,
|
|
51
|
-
colorInfoBorder:
|
|
59
|
+
colorInfoBorder: colorPrimarySecondary,
|
|
52
60
|
colorInfoBg: "#EAF1FF",
|
|
53
61
|
colorInfoText: "#083E8B",
|
|
54
62
|
colorSuccess: "#14B781",
|
|
@@ -89,11 +97,8 @@ var defaultTheme = {
|
|
|
89
97
|
lineWidthFocus: 0
|
|
90
98
|
},
|
|
91
99
|
components: {
|
|
92
|
-
Badge: {
|
|
93
|
-
colorInfo: colorPrimarySecondary
|
|
94
|
-
},
|
|
95
100
|
Breadcrumb: {
|
|
96
|
-
fontSize:
|
|
101
|
+
fontSize: fontSizeSM,
|
|
97
102
|
// @ts-ignore
|
|
98
103
|
// fontHeight is internal token
|
|
99
104
|
fontHeight: 20,
|
|
@@ -106,6 +111,9 @@ var defaultTheme = {
|
|
|
106
111
|
Collapse: {
|
|
107
112
|
colorBorder: colorBorderSecondary
|
|
108
113
|
},
|
|
114
|
+
Descriptions: {
|
|
115
|
+
labelColor: colorTextSecondary
|
|
116
|
+
},
|
|
109
117
|
InputNumber: {
|
|
110
118
|
handleVisible: true
|
|
111
119
|
},
|
|
@@ -130,6 +138,9 @@ var defaultTheme = {
|
|
|
130
138
|
handleActiveColor: "#5189fb",
|
|
131
139
|
handleColorDisabled: "#b3ccff"
|
|
132
140
|
},
|
|
141
|
+
Skeleton: {
|
|
142
|
+
blockRadius: 4
|
|
143
|
+
},
|
|
133
144
|
Tabs: {
|
|
134
145
|
horizontalItemGutter: 24,
|
|
135
146
|
itemActiveColor: colorText,
|
|
@@ -141,11 +152,11 @@ var defaultTheme = {
|
|
|
141
152
|
colorBorder: tagColorBorder
|
|
142
153
|
},
|
|
143
154
|
Table: {
|
|
144
|
-
cellFontSize:
|
|
155
|
+
cellFontSize: fontSizeSM,
|
|
145
156
|
headerSplitColor: "transparent",
|
|
146
|
-
cellPaddingBlock:
|
|
157
|
+
cellPaddingBlock: 8,
|
|
147
158
|
cellPaddingInline: 16,
|
|
148
|
-
cellPaddingBlockMD:
|
|
159
|
+
cellPaddingBlockMD: 6,
|
|
149
160
|
cellPaddingBlockSM: 4,
|
|
150
161
|
rowHoverBg: colorFillQuaternary,
|
|
151
162
|
rowSelectedBg: colorFillQuaternary,
|
|
@@ -374,13 +374,13 @@
|
|
|
374
374
|
@colorBgMask: rgba(19, 32, 57, 0.45);
|
|
375
375
|
@colorWhite: #fff;
|
|
376
376
|
@fontSizeSM: 12px;
|
|
377
|
-
@fontSizeLG:
|
|
377
|
+
@fontSizeLG: 16px;
|
|
378
378
|
@fontSizeXL: 14px;
|
|
379
|
-
@fontSizeHeading1:
|
|
380
|
-
@fontSizeHeading2:
|
|
379
|
+
@fontSizeHeading1: 24px;
|
|
380
|
+
@fontSizeHeading2: 20px;
|
|
381
381
|
@fontSizeHeading3: 18px;
|
|
382
|
-
@fontSizeHeading4:
|
|
383
|
-
@fontSizeHeading5:
|
|
382
|
+
@fontSizeHeading4: 16px;
|
|
383
|
+
@fontSizeHeading5: 13px;
|
|
384
384
|
@lineHeight: 1.8;
|
|
385
385
|
@lineHeightLG: 1.6666666666666667;
|
|
386
386
|
@lineHeightSM: 2;
|
|
@@ -401,16 +401,16 @@
|
|
|
401
401
|
@sizeSM: 8px;
|
|
402
402
|
@sizeXS: 4px;
|
|
403
403
|
@sizeXXS: 4px;
|
|
404
|
-
@controlHeightSM:
|
|
405
|
-
@controlHeightXS:
|
|
406
|
-
@controlHeightLG:
|
|
404
|
+
@controlHeightSM: 18px;
|
|
405
|
+
@controlHeightXS: 12px;
|
|
406
|
+
@controlHeightLG: 30px;
|
|
407
407
|
@motionDurationFast: 0.1s;
|
|
408
408
|
@motionDurationMid: 0.2s;
|
|
409
409
|
@motionDurationSlow: 0.3s;
|
|
410
410
|
@lineWidthBold: 2px;
|
|
411
411
|
@borderRadiusXS: 1px;
|
|
412
412
|
@borderRadiusSM: 2px;
|
|
413
|
-
@borderRadiusLG:
|
|
413
|
+
@borderRadiusLG: 8px;
|
|
414
414
|
@borderRadiusOuter: 4px;
|
|
415
415
|
@colorIcon: #8592ad;
|
|
416
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);
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
@fontSizeIcon: 10px;
|
|
435
435
|
@lineWidthFocus: 3px;
|
|
436
436
|
@controlOutlineWidth: 2px;
|
|
437
|
-
@controlInteractiveSize:
|
|
437
|
+
@controlInteractiveSize: 14px;
|
|
438
438
|
@controlItemBgHover: rgba(255,255,255,0.08);
|
|
439
439
|
@controlItemBgActive: #122e57;
|
|
440
440
|
@controlItemBgActiveHover: #113c78;
|