@oceanbase/design 1.0.0-alpha.7 → 1.0.0-alpha.9
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/card/index.d.ts +2 -0
- package/es/card/index.js +33 -13
- package/es/card/style/index.js +36 -20
- package/es/checkbox/style/index.js +5 -3
- package/es/config-provider/index.js +13 -11
- package/es/descriptions/hooks/useItems.d.ts +9 -9
- package/es/descriptions/index.d.ts +10 -0
- package/es/descriptions/index.js +59 -3
- package/es/descriptions/style/index.js +48 -5
- package/es/drawer/style/index.js +11 -5
- package/es/form/FormItem.d.ts +1 -1
- package/es/form/FormItem.js +7 -9
- package/es/form/style/index.js +9 -9
- package/es/slider/style/index.js +3 -2
- package/es/style/cssVariables.d.ts +25 -0
- package/es/style/cssVariables.js +48 -0
- package/es/style/cssVariablesMeta.d.ts +24 -0
- package/es/style/cssVariablesMeta.js +974 -0
- package/es/style/global.js +4 -4
- package/es/table/index.js +8 -0
- package/es/table/style/index.js +9 -3
- package/es/tag/style/index.js +1 -1
- package/es/theme/default.d.ts +44 -0
- package/es/theme/default.js +159 -40
- package/es/theme/interface.d.ts +43 -0
- package/es/theme/style/compact.less +43 -24
- package/es/theme/style/default.less +43 -24
- package/lib/card/index.d.ts +2 -0
- package/lib/card/index.js +27 -12
- package/lib/card/style/index.js +61 -29
- package/lib/checkbox/style/index.js +4 -3
- package/lib/config-provider/index.js +15 -4
- package/lib/descriptions/hooks/useItems.d.ts +9 -9
- package/lib/descriptions/index.d.ts +10 -0
- package/lib/descriptions/index.js +49 -2
- package/lib/descriptions/style/index.js +85 -4
- package/lib/drawer/style/index.js +9 -4
- package/lib/form/FormItem.d.ts +1 -1
- package/lib/form/FormItem.js +5 -6
- package/lib/form/style/index.js +13 -11
- package/lib/slider/style/index.js +5 -2
- package/lib/style/cssVariables.d.ts +25 -0
- package/lib/style/cssVariables.js +261 -0
- package/lib/style/cssVariablesMeta.d.ts +24 -0
- package/lib/style/cssVariablesMeta.js +1059 -0
- package/lib/style/global.js +4 -4
- package/lib/table/index.js +7 -0
- package/lib/table/style/index.js +10 -1
- package/lib/tag/style/index.js +1 -1
- package/lib/theme/default.d.ts +44 -0
- package/lib/theme/default.js +232 -42
- package/lib/theme/interface.d.ts +43 -0
- package/lib/theme/style/compact.less +43 -24
- package/lib/theme/style/default.less +43 -24
- package/package.json +2 -2
package/es/style/global.js
CHANGED
|
@@ -24,7 +24,7 @@ var genGlobalStyle = function genGlobalStyle(token, prefixCls) {
|
|
|
24
24
|
fontStyle: 'lighter',
|
|
25
25
|
fontWeight: 300,
|
|
26
26
|
// load priority: local font > self-hosting font > remote font
|
|
27
|
-
src: "local('Inter'), url(".concat(interRegular, ") format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*
|
|
27
|
+
src: "local('Inter'), url(".concat(interRegular, ") format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*ucHoQ4exBNYAAAAARtAAAAgAemfOAQ/Inter-Regular.woff2') format('woff2')"),
|
|
28
28
|
fontDisplay: 'swap'
|
|
29
29
|
}
|
|
30
30
|
}, {
|
|
@@ -32,7 +32,7 @@ var genGlobalStyle = function genGlobalStyle(token, prefixCls) {
|
|
|
32
32
|
fontFamily: 'Inter',
|
|
33
33
|
fontStyle: 'normal',
|
|
34
34
|
fontWeight: 400,
|
|
35
|
-
src: "local('Inter'), url(".concat(interMedium, ") format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*
|
|
35
|
+
src: "local('Inter'), url(".concat(interMedium, ") format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*GboAQ56sQbkAAAAARwAAAAgAemfOAQ/Inter-Medium.woff2') format('woff2')"),
|
|
36
36
|
fontDisplay: 'swap'
|
|
37
37
|
}
|
|
38
38
|
}, {
|
|
@@ -40,7 +40,7 @@ var genGlobalStyle = function genGlobalStyle(token, prefixCls) {
|
|
|
40
40
|
fontFamily: 'Inter',
|
|
41
41
|
fontStyle: 'medium',
|
|
42
42
|
fontWeight: 500,
|
|
43
|
-
src: "local('Inter'), url(".concat(interMedium, ") format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*
|
|
43
|
+
src: "local('Inter'), url(".concat(interMedium, ") format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*GboAQ56sQbkAAAAARwAAAAgAemfOAQ/Inter-Medium.woff2') format('woff2')"),
|
|
44
44
|
fontDisplay: 'swap'
|
|
45
45
|
}
|
|
46
46
|
}, {
|
|
@@ -48,7 +48,7 @@ var genGlobalStyle = function genGlobalStyle(token, prefixCls) {
|
|
|
48
48
|
fontFamily: 'Inter',
|
|
49
49
|
fontStyle: 'semibold',
|
|
50
50
|
fontWeight: 600,
|
|
51
|
-
src: "local('Inter'), url(".concat(interSemibold, ") format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*
|
|
51
|
+
src: "local('Inter'), url(".concat(interSemibold, ") format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*tcOIT5gLQl4AAAAARwAAAAgAemfOAQ/Inter-SemiBold.woff2') format('woff2')"),
|
|
52
52
|
fontDisplay: 'swap'
|
|
53
53
|
}
|
|
54
54
|
}, {
|
package/es/table/index.js
CHANGED
|
@@ -45,6 +45,7 @@ function Table(props, ref) {
|
|
|
45
45
|
collapseText = props.collapseText,
|
|
46
46
|
openText = props.openText,
|
|
47
47
|
expandable = props.expandable,
|
|
48
|
+
scroll = props.scroll,
|
|
48
49
|
_props$hiddenCancelBt = props.hiddenCancelBtn,
|
|
49
50
|
hiddenCancelBtn = _props$hiddenCancelBt === void 0 ? false : _props$hiddenCancelBt,
|
|
50
51
|
customizePrefixCls = props.prefixCls,
|
|
@@ -113,6 +114,9 @@ function Table(props, ref) {
|
|
|
113
114
|
}
|
|
114
115
|
return item;
|
|
115
116
|
});
|
|
117
|
+
var hasEllipsisColumn = newColumns.some(function (item) {
|
|
118
|
+
return item.ellipsis;
|
|
119
|
+
});
|
|
116
120
|
var handleSelectedData = function handleSelectedData(selectedRowKeys, selectedRows, info) {
|
|
117
121
|
setCurrentSelectedRowKeys(selectedRowKeys);
|
|
118
122
|
setCurrentSelectedRows(selectedRows);
|
|
@@ -209,6 +213,10 @@ function Table(props, ref) {
|
|
|
209
213
|
rowSelection === null || rowSelection === void 0 || (_rowSelection$onChang2 = rowSelection.onChange) === null || _rowSelection$onChang2 === void 0 || _rowSelection$onChang2.call(rowSelection, selectedRowKeys, selectedRows, info);
|
|
210
214
|
}
|
|
211
215
|
}) : undefined,
|
|
216
|
+
scroll: _objectSpread({
|
|
217
|
+
// enable auto x scroll when there is no ellipsis column
|
|
218
|
+
x: hasEllipsisColumn ? undefined : 'max-content'
|
|
219
|
+
}, scroll),
|
|
212
220
|
footer: footer,
|
|
213
221
|
pagination: pagination === false ? false : _objectSpread(_objectSpread({}, pagination), {}, {
|
|
214
222
|
hideOnSinglePage: toolAlertRender || toolOptionsRender || toolSelectedContent || pagination !== null && pagination !== void 0 && pagination.showSizeChanger ? false : (pagination === null || pagination === void 0 ? void 0 : pagination.hideOnSinglePage) !== undefined ? pagination === null || pagination === void 0 ? void 0 : pagination.hideOnSinglePage : extendedContext.hideOnSinglePage,
|
package/es/table/style/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
8
8
|
var _ref;
|
|
9
9
|
var antCls = token.antCls,
|
|
10
10
|
componentCls = token.componentCls,
|
|
11
|
+
iconCls = token.iconCls,
|
|
11
12
|
colorText = token.colorText,
|
|
12
13
|
colorBgBase = token.colorBgBase,
|
|
13
14
|
colorTextSecondary = token.colorTextSecondary,
|
|
@@ -37,8 +38,10 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
37
38
|
backgroundColor: "".concat(colorBorderSecondary, " !important")
|
|
38
39
|
}), "".concat(componentCls, "-cell-scrollbar"), {
|
|
39
40
|
boxShadow: "0 1px 0 1px ".concat(colorBgBase)
|
|
40
|
-
})), "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-tbody-virtual-scrollbar ").concat(componentCls, "-tbody-virtual-scrollbar-thumb"), {
|
|
41
|
+
})), "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-tbody-virtual-scrollbar ").concat(componentCls, "-tbody-virtual-scrollbar-thumb"), {
|
|
41
42
|
background: "".concat(token.colorFillSecondary, " !important")
|
|
43
|
+
}), "".concat(componentCls, "-row-indent+").concat(iconCls), {
|
|
44
|
+
marginInlineEnd: token.marginXS
|
|
42
45
|
}), "tr".concat(componentCls, "-expand-row-by-click"), {
|
|
43
46
|
cursor: 'pointer'
|
|
44
47
|
}), "tr > td:has(".concat(componentCls, "-row-expand-icon-expanded)"), _defineProperty({
|
|
@@ -85,12 +88,15 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
85
88
|
}))))), "".concat(componentCls, "-wrapper:not(").concat(componentCls, "-expandable):not(").concat(componentCls, "-has-footer) ").concat(componentCls, ":not(").concat(componentCls, "-bordered):not(").concat(componentCls, "-empty)"), {
|
|
86
89
|
borderBottomLeftRadius: 0,
|
|
87
90
|
borderBottomRightRadius: 0
|
|
88
|
-
}), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-expanded-row > td"), _defineProperty(_defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper):not(").concat(componentCls, "-expanded-row-fixed)"), {
|
|
91
|
+
}), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-expanded-row > td"), _defineProperty(_defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper):not(").concat(componentCls, "-expanded-row-fixed)"), {
|
|
89
92
|
marginLeft: calc(token.marginXL).add(calc(token.lineWidth).mul(2).equal()).equal()
|
|
90
93
|
}), "& > *".concat(componentCls, "-expanded-row-fixed"), {
|
|
91
|
-
paddingLeft: calc(token.marginXL).add(calc(token.lineWidth).mul(2).equal()).add(token.padding).equal()
|
|
94
|
+
paddingLeft: calc(token.marginXL).add(calc(token.lineWidth).mul(2).equal()).add(token.padding).equal(),
|
|
95
|
+
margin: "-".concat(unit(token.marginXS), " -").concat(unit(token.margin))
|
|
92
96
|
})), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
|
|
93
97
|
marginLeft: calc(token.margin).add(calc(token.lineWidth).mul(2).equal()).equal()
|
|
98
|
+
}), "tr > td > ".concat(componentCls, "-expanded-row-fixed > ").concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
|
|
99
|
+
marginLeft: -token.padding
|
|
94
100
|
}))), "".concat(componentCls, "-middle, ").concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
|
|
95
101
|
marginLeft: calc(token.margin).add(calc(token.lineWidth).mul(2).equal()).add(token.margin).equal()
|
|
96
102
|
})))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable").concat(componentCls, "-selectable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-expanded-row > td"), _defineProperty(_defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper):not(").concat(componentCls, "-expanded-row-fixed)"), {
|
package/es/tag/style/index.js
CHANGED
|
@@ -20,6 +20,7 @@ export var genTagStyle = function genTagStyle(token) {
|
|
|
20
20
|
componentCls = token.componentCls,
|
|
21
21
|
iconCls = token.iconCls;
|
|
22
22
|
return _defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
23
|
+
lineHeight: token.lineHeight,
|
|
23
24
|
paddingInline: token.paddingXS,
|
|
24
25
|
fontSize: token.fontSizeSM
|
|
25
26
|
}, "&:not(".concat(componentCls, "-pill)"), {
|
|
@@ -41,7 +42,6 @@ export var genTagStyle = function genTagStyle(token) {
|
|
|
41
42
|
borderColor: 'transparent'
|
|
42
43
|
}), '&-pill', {
|
|
43
44
|
borderRadius: 100,
|
|
44
|
-
lineHeight: token.lineHeight,
|
|
45
45
|
marginInlineEnd: token.marginXXS
|
|
46
46
|
}));
|
|
47
47
|
};
|
package/es/theme/default.d.ts
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
export declare const white = "#ffffff";
|
|
2
|
+
export declare const gray1 = "#fbfcfe";
|
|
3
|
+
export declare const gray2 = "#f5f7fc";
|
|
4
|
+
export declare const gray3 = "#ebeff7";
|
|
5
|
+
export declare const gray4 = "#e2e8f3";
|
|
6
|
+
export declare const gray5 = "#cdd5e4";
|
|
7
|
+
export declare const gray6 = "#b6c0d4";
|
|
8
|
+
export declare const gray7 = "#8592ad";
|
|
9
|
+
export declare const gray8 = "#5c6b8a";
|
|
10
|
+
export declare const gray9 = "#3b4a69";
|
|
11
|
+
export declare const gray10 = "#132039";
|
|
12
|
+
export declare const black = "#000000";
|
|
13
|
+
export declare const blue1 = "#f3f8fe";
|
|
14
|
+
export declare const blue2 = "#b3d3ff";
|
|
15
|
+
export declare const blue3 = "#619ef3";
|
|
16
|
+
export declare const blue4 = "#0d6cf2";
|
|
17
|
+
export declare const blue5 = "#0852bb";
|
|
18
|
+
export declare const blue6 = "#0d3c80";
|
|
19
|
+
export declare const green1 = "#f5faf8";
|
|
20
|
+
export declare const green2 = "#b3e6d5";
|
|
21
|
+
export declare const green3 = "#79d1b4";
|
|
22
|
+
export declare const green4 = "#16b882";
|
|
23
|
+
export declare const green5 = "#0a8c61";
|
|
24
|
+
export declare const green6 = "#09593f";
|
|
25
|
+
export declare const orange1 = "#fff9ee";
|
|
26
|
+
export declare const orange2 = "#ffe7c2";
|
|
27
|
+
export declare const orange3 = "#fac373";
|
|
28
|
+
export declare const orange4 = "#f49f25";
|
|
29
|
+
export declare const orange5 = "#ac690b";
|
|
30
|
+
export declare const orange6 = "#6c4408";
|
|
31
|
+
export declare const red1 = "#fff2f2";
|
|
32
|
+
export declare const red2 = "#ffd6d6";
|
|
33
|
+
export declare const red3 = "#f69898";
|
|
34
|
+
export declare const red4 = "#eb4242";
|
|
35
|
+
export declare const red5 = "#b52727";
|
|
36
|
+
export declare const red6 = "#8a1b1b";
|
|
37
|
+
export declare const fuchsia1 = "#faf0fc";
|
|
38
|
+
export declare const fuchsia2 = "#e8caee";
|
|
39
|
+
export declare const fuchsia3 = "#d88ee7";
|
|
40
|
+
export declare const fuchsia4 = "#b04ec4";
|
|
41
|
+
export declare const fuchsia5 = "#802792";
|
|
42
|
+
export declare const fuchsia6 = "#580e67";
|
|
43
|
+
export declare const colorNaviBg = "#f1f6ff";
|
|
44
|
+
export declare const colorNaviBgHover = "#e8effb";
|
|
1
45
|
export declare const fontFamilyEn = "Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'";
|
|
2
46
|
export declare const fontWeightWeakEn = 300;
|
|
3
47
|
export declare const fontWeightEn = 500;
|
package/es/theme/default.js
CHANGED
|
@@ -6,16 +6,77 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
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); }
|
|
8
8
|
import { formatTheme } from "./util/format";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
9
|
+
|
|
10
|
+
// ==================== 基础颜色 Token ====================
|
|
11
|
+
// 中性色 Neutral
|
|
12
|
+
export var white = '#ffffff';
|
|
13
|
+
export var gray1 = '#fbfcfe';
|
|
14
|
+
export var gray2 = '#f5f7fc';
|
|
15
|
+
export var gray3 = '#ebeff7';
|
|
16
|
+
export var gray4 = '#e2e8f3';
|
|
17
|
+
export var gray5 = '#cdd5e4';
|
|
18
|
+
export var gray6 = '#b6c0d4';
|
|
19
|
+
export var gray7 = '#8592ad';
|
|
20
|
+
export var gray8 = '#5c6b8a';
|
|
21
|
+
export var gray9 = '#3b4a69';
|
|
22
|
+
export var gray10 = '#132039';
|
|
23
|
+
export var black = '#000000';
|
|
24
|
+
|
|
25
|
+
// 蓝色 Blue
|
|
26
|
+
export var blue1 = '#f3f8fe';
|
|
27
|
+
export var blue2 = '#b3d3ff';
|
|
28
|
+
export var blue3 = '#619ef3';
|
|
29
|
+
export var blue4 = '#0d6cf2';
|
|
30
|
+
export var blue5 = '#0852bb';
|
|
31
|
+
export var blue6 = '#0d3c80';
|
|
32
|
+
|
|
33
|
+
// 绿色 Green
|
|
34
|
+
export var green1 = '#f5faf8';
|
|
35
|
+
export var green2 = '#b3e6d5';
|
|
36
|
+
export var green3 = '#79d1b4';
|
|
37
|
+
export var green4 = '#16b882';
|
|
38
|
+
export var green5 = '#0a8c61';
|
|
39
|
+
export var green6 = '#09593f';
|
|
40
|
+
|
|
41
|
+
// 橙色 Orange
|
|
42
|
+
export var orange1 = '#fff9ee';
|
|
43
|
+
export var orange2 = '#ffe7c2';
|
|
44
|
+
export var orange3 = '#fac373';
|
|
45
|
+
export var orange4 = '#f49f25';
|
|
46
|
+
export var orange5 = '#ac690b';
|
|
47
|
+
export var orange6 = '#6c4408';
|
|
48
|
+
|
|
49
|
+
// 红色 Red
|
|
50
|
+
export var red1 = '#fff2f2';
|
|
51
|
+
export var red2 = '#ffd6d6';
|
|
52
|
+
export var red3 = '#f69898';
|
|
53
|
+
export var red4 = '#eb4242';
|
|
54
|
+
export var red5 = '#b52727';
|
|
55
|
+
export var red6 = '#8a1b1b';
|
|
56
|
+
|
|
57
|
+
// 紫色 Fuchsia
|
|
58
|
+
export var fuchsia1 = '#faf0fc';
|
|
59
|
+
export var fuchsia2 = '#e8caee';
|
|
60
|
+
export var fuchsia3 = '#d88ee7';
|
|
61
|
+
export var fuchsia4 = '#b04ec4';
|
|
62
|
+
export var fuchsia5 = '#802792';
|
|
63
|
+
export var fuchsia6 = '#580e67';
|
|
64
|
+
|
|
65
|
+
// 导航特殊色
|
|
66
|
+
export var colorNaviBg = '#f1f6ff';
|
|
67
|
+
export var colorNaviBgHover = '#e8effb';
|
|
68
|
+
|
|
69
|
+
// ==================== 基础 Token 别名 ====================
|
|
70
|
+
var colorPrimary = blue4;
|
|
71
|
+
var colorPrimarySecondary = '#598cf3';
|
|
72
|
+
var colorText = gray10;
|
|
73
|
+
var colorTextSecondary = gray8;
|
|
74
|
+
var colorTextTertiary = gray7;
|
|
75
|
+
var colorTextQuaternary = gray6;
|
|
76
|
+
var colorFill = gray5;
|
|
77
|
+
var colorFillSecondary = gray4;
|
|
78
|
+
var colorFillTertiary = gray3;
|
|
79
|
+
var colorFillQuaternary = gray2;
|
|
19
80
|
var colorBorderSecondary = colorFillSecondary;
|
|
20
81
|
var fontSizeSM = 12;
|
|
21
82
|
var tagColorBorder = colorTextQuaternary;
|
|
@@ -51,36 +112,36 @@ var defaultTheme = {
|
|
|
51
112
|
controlHeight: 28,
|
|
52
113
|
colorPrimary: colorPrimary,
|
|
53
114
|
colorInfo: colorPrimary,
|
|
54
|
-
colorInfoBorder:
|
|
55
|
-
colorInfoBg:
|
|
56
|
-
colorInfoHover:
|
|
57
|
-
colorInfoActive:
|
|
58
|
-
colorInfoText:
|
|
59
|
-
colorSuccess:
|
|
60
|
-
colorSuccessBorder:
|
|
61
|
-
colorSuccessBg:
|
|
62
|
-
colorSuccessText:
|
|
63
|
-
colorWarning:
|
|
64
|
-
colorWarningBorder:
|
|
65
|
-
colorWarningBg:
|
|
66
|
-
colorWarningText:
|
|
67
|
-
colorError:
|
|
68
|
-
colorErrorBorder:
|
|
69
|
-
colorErrorBg:
|
|
70
|
-
colorErrorText:
|
|
71
|
-
colorFuchsia:
|
|
72
|
-
colorFuchsiaBorder:
|
|
73
|
-
colorFuchsiaBg:
|
|
74
|
-
colorFuchsiaText:
|
|
75
|
-
colorTextBase:
|
|
115
|
+
colorInfoBorder: blue3,
|
|
116
|
+
colorInfoBg: blue1,
|
|
117
|
+
colorInfoHover: blue5,
|
|
118
|
+
colorInfoActive: blue5,
|
|
119
|
+
colorInfoText: blue6,
|
|
120
|
+
colorSuccess: green4,
|
|
121
|
+
colorSuccessBorder: green3,
|
|
122
|
+
colorSuccessBg: green1,
|
|
123
|
+
colorSuccessText: green6,
|
|
124
|
+
colorWarning: orange4,
|
|
125
|
+
colorWarningBorder: orange3,
|
|
126
|
+
colorWarningBg: orange1,
|
|
127
|
+
colorWarningText: orange6,
|
|
128
|
+
colorError: red4,
|
|
129
|
+
colorErrorBorder: red3,
|
|
130
|
+
colorErrorBg: red1,
|
|
131
|
+
colorErrorText: red6,
|
|
132
|
+
colorFuchsia: fuchsia4,
|
|
133
|
+
colorFuchsiaBorder: fuchsia3,
|
|
134
|
+
colorFuchsiaBg: fuchsia1,
|
|
135
|
+
colorFuchsiaText: fuchsia6,
|
|
136
|
+
colorTextBase: black,
|
|
76
137
|
colorText: colorText,
|
|
77
138
|
colorTextSecondary: colorTextSecondary,
|
|
78
139
|
colorTextTertiary: colorTextTertiary,
|
|
79
140
|
colorTextQuaternary: colorTextQuaternary,
|
|
80
141
|
colorIcon: colorTextSecondary,
|
|
81
|
-
colorBgBase:
|
|
82
|
-
colorBgContainer:
|
|
83
|
-
colorBgLayout:
|
|
142
|
+
colorBgBase: white,
|
|
143
|
+
colorBgContainer: white,
|
|
144
|
+
colorBgLayout: gray1,
|
|
84
145
|
colorBorder: colorFill,
|
|
85
146
|
colorBorderSecondary: colorBorderSecondary,
|
|
86
147
|
colorFill: colorFill,
|
|
@@ -89,14 +150,66 @@ var defaultTheme = {
|
|
|
89
150
|
colorFillQuaternary: colorFillQuaternary,
|
|
90
151
|
colorBgContainerDisabled: colorFillTertiary,
|
|
91
152
|
colorBgMask: 'rgba(19, 32, 57, 0.6)',
|
|
92
|
-
colorBgElevated:
|
|
93
|
-
colorBgSpotlight:
|
|
153
|
+
colorBgElevated: white,
|
|
154
|
+
colorBgSpotlight: white,
|
|
94
155
|
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)',
|
|
95
156
|
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)',
|
|
96
157
|
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)',
|
|
97
158
|
wireframe: false,
|
|
98
159
|
// Remove focus outline
|
|
99
|
-
lineWidthFocus: 0
|
|
160
|
+
lineWidthFocus: 0,
|
|
161
|
+
// ==================== 基础颜色 Token ====================
|
|
162
|
+
// 黑白色
|
|
163
|
+
white: white,
|
|
164
|
+
black: black,
|
|
165
|
+
// 中性色 Neutral
|
|
166
|
+
gray1: gray1,
|
|
167
|
+
gray2: gray2,
|
|
168
|
+
gray3: gray3,
|
|
169
|
+
gray4: gray4,
|
|
170
|
+
gray5: gray5,
|
|
171
|
+
gray6: gray6,
|
|
172
|
+
gray7: gray7,
|
|
173
|
+
gray8: gray8,
|
|
174
|
+
gray9: gray9,
|
|
175
|
+
// 蓝色 Blue
|
|
176
|
+
blue1: blue1,
|
|
177
|
+
blue2: blue2,
|
|
178
|
+
blue3: blue3,
|
|
179
|
+
blue4: blue4,
|
|
180
|
+
blue5: blue5,
|
|
181
|
+
blue6: blue6,
|
|
182
|
+
// 绿色 Green
|
|
183
|
+
green1: green1,
|
|
184
|
+
green2: green2,
|
|
185
|
+
green3: green3,
|
|
186
|
+
green4: green4,
|
|
187
|
+
green5: green5,
|
|
188
|
+
green6: green6,
|
|
189
|
+
// 橙色 Orange
|
|
190
|
+
orange1: orange1,
|
|
191
|
+
orange2: orange2,
|
|
192
|
+
orange3: orange3,
|
|
193
|
+
orange4: orange4,
|
|
194
|
+
orange5: orange5,
|
|
195
|
+
orange6: orange6,
|
|
196
|
+
// 红色 Red
|
|
197
|
+
red1: red1,
|
|
198
|
+
red2: red2,
|
|
199
|
+
red3: red3,
|
|
200
|
+
red4: red4,
|
|
201
|
+
red5: red5,
|
|
202
|
+
red6: red6,
|
|
203
|
+
// 紫色 Fuchsia
|
|
204
|
+
fuchsia1: fuchsia1,
|
|
205
|
+
fuchsia2: fuchsia2,
|
|
206
|
+
fuchsia3: fuchsia3,
|
|
207
|
+
fuchsia4: fuchsia4,
|
|
208
|
+
fuchsia5: fuchsia5,
|
|
209
|
+
fuchsia6: fuchsia6,
|
|
210
|
+
// 导航特殊色
|
|
211
|
+
colorNaviBg: colorNaviBg,
|
|
212
|
+
colorNaviBgHover: colorNaviBgHover
|
|
100
213
|
},
|
|
101
214
|
components: {
|
|
102
215
|
Alert: {
|
|
@@ -111,6 +224,7 @@ var defaultTheme = {
|
|
|
111
224
|
lastItemColor: colorTextSecondary
|
|
112
225
|
},
|
|
113
226
|
Button: {
|
|
227
|
+
iconGap: 4,
|
|
114
228
|
contentFontSizeSM: 12,
|
|
115
229
|
borderRadiusSM: 4,
|
|
116
230
|
borderRadius: 4,
|
|
@@ -177,7 +291,10 @@ var defaultTheme = {
|
|
|
177
291
|
horizontalItemGutter: 24,
|
|
178
292
|
itemActiveColor: colorText,
|
|
179
293
|
itemSelectedColor: colorText,
|
|
180
|
-
itemHoverColor: colorText
|
|
294
|
+
itemHoverColor: colorText,
|
|
295
|
+
horizontalItemPaddingSM: '12px 0',
|
|
296
|
+
horizontalItemPadding: '16px 0',
|
|
297
|
+
horizontalItemPaddingLG: '16px 0'
|
|
181
298
|
},
|
|
182
299
|
Tag: {
|
|
183
300
|
colorBorder: tagColorBorder,
|
|
@@ -189,14 +306,16 @@ var defaultTheme = {
|
|
|
189
306
|
cellPaddingBlock: 8,
|
|
190
307
|
cellPaddingInline: 16,
|
|
191
308
|
cellPaddingBlockMD: 6,
|
|
309
|
+
cellPaddingInlineMD: 8,
|
|
192
310
|
cellPaddingBlockSM: 4,
|
|
311
|
+
cellPaddingInlineSM: 6,
|
|
193
312
|
rowHoverBg: colorFillQuaternary,
|
|
194
313
|
rowSelectedBg: colorFillQuaternary,
|
|
195
314
|
rowSelectedHoverBg: colorFillTertiary
|
|
196
315
|
},
|
|
197
316
|
Tooltip: {
|
|
198
317
|
borderRadius: borderRadiusMD,
|
|
199
|
-
colorBgSpotlight:
|
|
318
|
+
colorBgSpotlight: white,
|
|
200
319
|
colorTextLightSolid: colorText
|
|
201
320
|
},
|
|
202
321
|
Menu: {
|
package/es/theme/interface.d.ts
CHANGED
|
@@ -59,6 +59,49 @@ export interface AliasToken extends AntAliasToken {
|
|
|
59
59
|
* @descEN The text color of the critical error state.
|
|
60
60
|
*/
|
|
61
61
|
colorFuchsiaText: string;
|
|
62
|
+
white: string;
|
|
63
|
+
black: string;
|
|
64
|
+
gray1: string;
|
|
65
|
+
gray2: string;
|
|
66
|
+
gray3: string;
|
|
67
|
+
gray4: string;
|
|
68
|
+
gray5: string;
|
|
69
|
+
gray6: string;
|
|
70
|
+
gray7: string;
|
|
71
|
+
gray8: string;
|
|
72
|
+
gray9: string;
|
|
73
|
+
blue1: string;
|
|
74
|
+
blue2: string;
|
|
75
|
+
blue3: string;
|
|
76
|
+
blue4: string;
|
|
77
|
+
blue5: string;
|
|
78
|
+
blue6: string;
|
|
79
|
+
green1: string;
|
|
80
|
+
green2: string;
|
|
81
|
+
green3: string;
|
|
82
|
+
green4: string;
|
|
83
|
+
green5: string;
|
|
84
|
+
green6: string;
|
|
85
|
+
orange1: string;
|
|
86
|
+
orange2: string;
|
|
87
|
+
orange3: string;
|
|
88
|
+
orange4: string;
|
|
89
|
+
orange5: string;
|
|
90
|
+
orange6: string;
|
|
91
|
+
red1: string;
|
|
92
|
+
red2: string;
|
|
93
|
+
red3: string;
|
|
94
|
+
red4: string;
|
|
95
|
+
red5: string;
|
|
96
|
+
red6: string;
|
|
97
|
+
fuchsia1: string;
|
|
98
|
+
fuchsia2: string;
|
|
99
|
+
fuchsia3: string;
|
|
100
|
+
fuchsia4: string;
|
|
101
|
+
fuchsia5: string;
|
|
102
|
+
fuchsia6: string;
|
|
103
|
+
colorNaviBg: string;
|
|
104
|
+
colorNaviBgHover: string;
|
|
62
105
|
}
|
|
63
106
|
/** Final token which contains the components level override */
|
|
64
107
|
export type GlobalToken = GlobalTokenTypeUtil<ComponentTokenMap, AliasToken>;
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
@wireframe: false;
|
|
46
46
|
@motion: true;
|
|
47
47
|
@blue-1: #e6f4ff;
|
|
48
|
-
@blue1: #
|
|
48
|
+
@blue1: #f3f8fe;
|
|
49
49
|
@blue-2: #b0dbff;
|
|
50
|
-
@blue2: #
|
|
50
|
+
@blue2: #b3d3ff;
|
|
51
51
|
@blue-3: #87c5ff;
|
|
52
|
-
@blue3: #
|
|
52
|
+
@blue3: #619ef3;
|
|
53
53
|
@blue-4: #5eacff;
|
|
54
|
-
@blue4: #
|
|
54
|
+
@blue4: #0d6cf2;
|
|
55
55
|
@blue-5: #3690ff;
|
|
56
|
-
@blue5: #
|
|
56
|
+
@blue5: #0852bb;
|
|
57
57
|
@blue-6: #0d6cf2;
|
|
58
|
-
@blue6: #
|
|
58
|
+
@blue6: #0d3c80;
|
|
59
59
|
@blue-7: #004ecc;
|
|
60
60
|
@blue7: #004ecc;
|
|
61
61
|
@blue-8: #003aa6;
|
|
@@ -105,17 +105,17 @@
|
|
|
105
105
|
@cyan-10: #002329;
|
|
106
106
|
@cyan10: #002329;
|
|
107
107
|
@green-1: #e4f7ed;
|
|
108
|
-
@green1: #
|
|
108
|
+
@green1: #f5faf8;
|
|
109
109
|
@green-2: #b2ebd0;
|
|
110
|
-
@green2: #
|
|
110
|
+
@green2: #b3e6d5;
|
|
111
111
|
@green-3: #85deb7;
|
|
112
|
-
@green3: #
|
|
112
|
+
@green3: #79d1b4;
|
|
113
113
|
@green-4: #5cd1a2;
|
|
114
|
-
@green4: #
|
|
114
|
+
@green4: #16b882;
|
|
115
115
|
@green-5: #37c491;
|
|
116
|
-
@green5: #
|
|
116
|
+
@green5: #0a8c61;
|
|
117
117
|
@green-6: #16b882;
|
|
118
|
-
@green6: #
|
|
118
|
+
@green6: #09593f;
|
|
119
119
|
@green-7: #0a9169;
|
|
120
120
|
@green7: #0a9169;
|
|
121
121
|
@green-8: #026b4f;
|
|
@@ -165,17 +165,17 @@
|
|
|
165
165
|
@pink-10: #520339;
|
|
166
166
|
@pink10: #520339;
|
|
167
167
|
@red-1: #fff2f0;
|
|
168
|
-
@red1: #
|
|
168
|
+
@red1: #fff2f2;
|
|
169
169
|
@red-2: #ffedeb;
|
|
170
|
-
@red2: #
|
|
170
|
+
@red2: #ffd6d6;
|
|
171
171
|
@red-3: #ffc8c2;
|
|
172
|
-
@red3: #
|
|
172
|
+
@red3: #f69898;
|
|
173
173
|
@red-4: #ffa099;
|
|
174
|
-
@red4: #
|
|
174
|
+
@red4: #eb4242;
|
|
175
175
|
@red-5: #f7716d;
|
|
176
|
-
@red5: #
|
|
176
|
+
@red5: #b52727;
|
|
177
177
|
@red-6: #eb4242;
|
|
178
|
-
@red6: #
|
|
178
|
+
@red6: #8a1b1b;
|
|
179
179
|
@red-7: #c42d32;
|
|
180
180
|
@red7: #c42d32;
|
|
181
181
|
@red-8: #9e1c25;
|
|
@@ -185,17 +185,17 @@
|
|
|
185
185
|
@red-10: #520a13;
|
|
186
186
|
@red10: #520a13;
|
|
187
187
|
@orange-1: #fff7e6;
|
|
188
|
-
@orange1: #
|
|
188
|
+
@orange1: #fff9ee;
|
|
189
189
|
@orange-2: #ffe7ba;
|
|
190
|
-
@orange2: #
|
|
190
|
+
@orange2: #ffe7c2;
|
|
191
191
|
@orange-3: #ffd591;
|
|
192
|
-
@orange3: #
|
|
192
|
+
@orange3: #fac373;
|
|
193
193
|
@orange-4: #ffc069;
|
|
194
|
-
@orange4: #
|
|
194
|
+
@orange4: #f49f25;
|
|
195
195
|
@orange-5: #ffa940;
|
|
196
|
-
@orange5: #
|
|
196
|
+
@orange5: #ac690b;
|
|
197
197
|
@orange-6: #fa8c16;
|
|
198
|
-
@orange6: #
|
|
198
|
+
@orange6: #6c4408;
|
|
199
199
|
@orange-7: #d46b08;
|
|
200
200
|
@orange7: #d46b08;
|
|
201
201
|
@orange-8: #ad4e00;
|
|
@@ -426,6 +426,25 @@
|
|
|
426
426
|
@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);
|
|
427
427
|
@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
428
|
@lineWidthFocus: 3px;
|
|
429
|
+
@white: #ffffff;
|
|
430
|
+
@black: #000000;
|
|
431
|
+
@gray1: #fbfcfe;
|
|
432
|
+
@gray2: #f5f7fc;
|
|
433
|
+
@gray3: #ebeff7;
|
|
434
|
+
@gray4: #e2e8f3;
|
|
435
|
+
@gray5: #cdd5e4;
|
|
436
|
+
@gray6: #b6c0d4;
|
|
437
|
+
@gray7: #8592ad;
|
|
438
|
+
@gray8: #5c6b8a;
|
|
439
|
+
@gray9: #3b4a69;
|
|
440
|
+
@fuchsia1: #faf0fc;
|
|
441
|
+
@fuchsia2: #e8caee;
|
|
442
|
+
@fuchsia3: #d88ee7;
|
|
443
|
+
@fuchsia4: #b04ec4;
|
|
444
|
+
@fuchsia5: #802792;
|
|
445
|
+
@fuchsia6: #580e67;
|
|
446
|
+
@colorNaviBg: #f1f6ff;
|
|
447
|
+
@colorNaviBgHover: #e8effb;
|
|
429
448
|
@colorFillContent: #e2e8f3;
|
|
430
449
|
@colorFillContentHover: #cdd5e4;
|
|
431
450
|
@colorFillAlter: #f5f7fc;
|