@oceanbase/design 0.4.16 → 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/design.min.js +1 -1
  2. package/es/_util/genStyle.d.ts +0 -2
  3. package/es/_util/genStyle.js +0 -77
  4. package/es/badge/style/index.js +0 -1
  5. package/es/button/style/index.js +1 -30
  6. package/es/card/style/index.js +4 -2
  7. package/es/config-provider/index.js +1 -5
  8. package/es/empty/style/index.js +2 -7
  9. package/es/form/FormItem.d.ts +2 -1
  10. package/es/form/FormItem.js +1 -0
  11. package/es/index.d.ts +0 -1
  12. package/es/index.js +1 -2
  13. package/es/result/style/index.js +2 -5
  14. package/es/table/style/index.js +8 -31
  15. package/es/tabs/index.d.ts +8 -6
  16. package/es/tabs/index.js +10 -7
  17. package/es/tabs/style/index.js +2 -3
  18. package/es/theme/default.js +62 -39
  19. package/es/theme/style/aliyun.less +125 -125
  20. package/es/theme/style/compact.less +135 -135
  21. package/es/theme/style/dark.less +136 -136
  22. package/es/theme/style/default.less +135 -135
  23. package/es/typography/style/index.js +2 -6
  24. package/lib/_util/genStyle.d.ts +0 -2
  25. package/lib/_util/genStyle.js +2 -118
  26. package/lib/badge/style/index.js +0 -1
  27. package/lib/button/style/index.js +1 -37
  28. package/lib/card/style/index.js +9 -1
  29. package/lib/config-provider/index.js +1 -8
  30. package/lib/empty/style/index.js +0 -5
  31. package/lib/form/FormItem.d.ts +2 -1
  32. package/lib/form/FormItem.js +6 -0
  33. package/lib/index.d.ts +0 -1
  34. package/lib/index.js +0 -3
  35. package/lib/result/style/index.js +0 -4
  36. package/lib/table/style/index.js +1 -58
  37. package/lib/tabs/index.d.ts +8 -6
  38. package/lib/tabs/index.js +68 -62
  39. package/lib/tabs/style/index.js +6 -4
  40. package/lib/theme/default.js +62 -38
  41. package/lib/theme/style/aliyun.less +125 -125
  42. package/lib/theme/style/compact.less +135 -135
  43. package/lib/theme/style/dark.less +136 -136
  44. package/lib/theme/style/default.less +135 -135
  45. package/lib/typography/style/index.js +2 -9
  46. package/package.json +4 -4
@@ -24,7 +24,6 @@ __export(style_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(style_exports);
26
26
  var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
27
- var import_genStyle = require("../../_util/genStyle");
28
27
  var genResultStyle = (token) => {
29
28
  const { componentCls } = token;
30
29
  return {
@@ -38,9 +37,6 @@ var genResultStyle = (token) => {
38
37
  maxWidth: 600,
39
38
  margin: "0px auto"
40
39
  },
41
- [`${componentCls}-extra`]: {
42
- ...(0, import_genStyle.genLargeStyle)(token)
43
- },
44
40
  [`${componentCls}-content`]: {
45
41
  maxWidth: 1e3,
46
42
  margin: "0px auto",
@@ -72,21 +72,6 @@ var genTableStyle = (token) => {
72
72
  },
73
73
  // body 样式
74
74
  [`${componentCls}-tbody`]: {
75
- // 斑马纹样式
76
- [`tr:nth-child(2n + 1):not(${componentCls}-placeholder):not(${componentCls}-row-selected):not(${antCls}-descriptions-row) > td`]: {
77
- backgroundColor: colorBgBase
78
- },
79
- [`tr:nth-child(2n):not(${componentCls}-placeholder):not(${componentCls}-row-selected):not(${componentCls}-expanded-row):not(${antCls}-descriptions-row) > td`]: {
80
- backgroundColor: colorFillQuaternary
81
- },
82
- // hover 行样式
83
- [`tr:not(${componentCls}-placeholder):not(${componentCls}-expanded-row):not(${antCls}-descriptions-row):hover > td`]: {
84
- backgroundColor: `${colorPrimaryBg} !important`
85
- },
86
- // 选中行样式
87
- [`tr${componentCls}-row-selected > td`]: {
88
- backgroundColor: `${colorPrimaryBg} !important`
89
- },
90
75
  [`${componentCls}-tbody-virtual-scrollbar ${componentCls}-tbody-virtual-scrollbar-thumb`]: {
91
76
  background: `${token.colorFillSecondary} !important`
92
77
  },
@@ -152,28 +137,8 @@ var genTableStyle = (token) => {
152
137
  }
153
138
  }
154
139
  },
155
- // 滚动表格样式
156
- // 由于滚动表格会在 tbody 下最前面多一个 tr 元素,因此需要设置相反的斑马条样式
157
- // .ant-table-scroll-horizontal: 水平滚动
158
- // .ant-table-fixed-header: 垂直滚动
159
- [`${componentCls}-wrapper ${componentCls}${componentCls}-scroll-horizontal, ${componentCls}-wrapper ${componentCls}${componentCls}-fixed-header`]: {
160
- [`${componentCls}-tbody`]: {
161
- // 斑马纹样式
162
- [`tr:nth-child(2n + 1):not(${componentCls}-placeholder):not(${componentCls}-row-selected):not(${antCls}-descriptions-row) > td`]: {
163
- backgroundColor: colorFillQuaternary
164
- },
165
- [`tr:nth-child(2n):not(${componentCls}-placeholder):not(${componentCls}-row-selected):not(${componentCls}-expanded-row):not(${antCls}-descriptions-row) > td`]: {
166
- backgroundColor: colorBgBase
167
- }
168
- }
169
- },
170
140
  // 带边框的表格样式
171
141
  [`${componentCls}-wrapper ${componentCls}${componentCls}-bordered`]: {
172
- [`${componentCls}-thead > tr`]: {
173
- ["th"]: {
174
- backgroundColor: colorFillQuaternary
175
- }
176
- },
177
142
  [`${componentCls}-footer`]: {
178
143
  borderRadius: `0px 0px ${token.borderRadiusLG}px ${token.borderRadiusLG}px`
179
144
  }
@@ -227,37 +192,15 @@ var genTableStyle = (token) => {
227
192
  // },
228
193
  // },
229
194
  // },
230
- // 非可展开表格、不带 footer 表格、非空表格、不带边框表格: 底部添加分隔线,并去掉底部圆角
195
+ // 非可展开表格、不带 footer 表格、非空表格、不带边框表格: 去掉底部圆角
231
196
  [`${componentCls}-wrapper:not(${componentCls}-expandable):not(${componentCls}-has-footer) ${componentCls}:not(${componentCls}-bordered):not(${componentCls}-empty)`]: {
232
- borderBottom: `1px solid ${colorBorderSecondary}`,
233
197
  borderBottomLeftRadius: 0,
234
198
  borderBottomRightRadius: 0
235
199
  },
236
- // 去掉非展开表格的边框
237
- [`${componentCls}-wrapper:not(${componentCls}-expandable)`]: {
238
- [`${componentCls}:not(${componentCls}-bordered)`]: {
239
- [`${componentCls}-tbody`]: {
240
- [`tr:not(${componentCls}-measure-row) > td`]: {
241
- border: "none"
242
- }
243
- }
244
- }
245
- },
246
200
  // 可展开表格样式
247
201
  [`${componentCls}-wrapper${componentCls}-expandable`]: {
248
202
  [`${componentCls}`]: {
249
203
  [`${componentCls}-tbody`]: {
250
- // 去掉斑马纹
251
- [`tr:nth-child(n):not(${componentCls}-placeholder):not(${componentCls}-row-selected):not(${componentCls}-expanded-row)`]: {
252
- ["& > td"]: {
253
- backgroundColor: colorBgBase
254
- },
255
- ["&:hover"]: {
256
- td: {
257
- backgroundColor: colorPrimaryBg
258
- }
259
- }
260
- },
261
204
  [`${componentCls}-expanded-row > td`]: {
262
205
  // 除内嵌子表格外,设置其他内嵌元素样式
263
206
  [`& > *:not(${componentCls}-wrapper):not(${componentCls}-expanded-row-fixed)`]: {
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
- import type { TabsProps as AntTabsProps, TabsPosition as AntTabsPosition } from 'antd/es/tabs';
2
+ import type { TabsProps as AntTabsProps, TabsPosition as AntTabsPosition, TabsRef } from 'antd/es/tabs';
3
3
  import type { Tab as AntTab } from 'rc-tabs/es/interface';
4
+ import { genTabsStyle } from './style';
5
+ import TabPane from './TabPane';
4
6
  import type { TabPaneProps } from './TabPane';
5
7
  import type { BadgeProps } from '../badge';
6
8
  export * from 'antd/es/tabs';
@@ -17,13 +19,13 @@ export type Tab = {
17
19
  badge?: BadgeType;
18
20
  } & (AntTab | AntTabOptional);
19
21
  export interface TabsProps extends Omit<AntTabsProps, 'items'> {
22
+ divider?: boolean;
20
23
  items?: Tab[];
21
24
  }
22
25
  export type TabsPosition = AntTabsPosition;
23
- declare const Tabs: {
24
- ({ children, items, type, tabPosition, prefixCls: customizePrefixCls, className, ...restProps }: TabsProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
25
- TabPane: React.FC<TabPaneProps>;
26
- genTabsStyle: (token: Partial<import("./style").TabsToken>) => import("@ant-design/cssinjs").CSSObject;
27
- displayName: string;
26
+ type CompoundedComponent = React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<TabsRef>> & {
27
+ TabPane: typeof TabPane;
28
+ genTabsStyle: typeof genTabsStyle;
28
29
  };
30
+ declare const Tabs: CompoundedComponent;
29
31
  export default Tabs;
package/lib/tabs/index.js CHANGED
@@ -33,9 +33,9 @@ __export(tabs_exports, {
33
33
  default: () => tabs_default
34
34
  });
35
35
  module.exports = __toCommonJS(tabs_exports);
36
- var import_util = require("@oceanbase/util");
37
- var import_antd = require("antd");
38
36
  var import_react = __toESM(require("react"));
37
+ var import_antd = require("antd");
38
+ var import_util = require("@oceanbase/util");
39
39
  var import_classnames = __toESM(require("classnames"));
40
40
  var import_badge = __toESM(require("../badge"));
41
41
  var import_config_provider = __toESM(require("../config-provider"));
@@ -46,67 +46,73 @@ __reExport(tabs_exports, require("antd/es/tabs"), module.exports);
46
46
  var isReactNode = (item) => {
47
47
  return import_react.default.isValidElement(item);
48
48
  };
49
- var Tabs = ({
50
- children,
51
- items,
52
- type,
53
- tabPosition,
54
- prefixCls: customizePrefixCls,
55
- className,
56
- ...restProps
57
- }) => {
58
- const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
59
- const prefixCls = getPrefixCls("tabs", customizePrefixCls);
60
- const { wrapSSR } = (0, import_style.default)(prefixCls);
61
- const tabsCls = (0, import_classnames.default)(className);
62
- const isHorizontal = !tabPosition || tabPosition === "top" || tabPosition === "bottom";
63
- const dividerList = (items == null ? void 0 : items.filter((item) => item.divider)) || [];
64
- const renderBadge = (0, import_react.useCallback)(
65
- (badge) => {
66
- if (typeof badge === "object" && !isReactNode(badge)) {
67
- return /* @__PURE__ */ import_react.default.createElement(import_badge.default, { ...badge, className: (0, import_classnames.default)(`${prefixCls}-tab-badge`, badge.className) });
49
+ var Tabs = import_react.default.forwardRef(
50
+ ({
51
+ children,
52
+ divider = false,
53
+ items,
54
+ type,
55
+ tabPosition,
56
+ prefixCls: customizePrefixCls,
57
+ className,
58
+ ...restProps
59
+ }, ref) => {
60
+ const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
61
+ const prefixCls = getPrefixCls("tabs", customizePrefixCls);
62
+ const { wrapSSR } = (0, import_style.default)(prefixCls);
63
+ const tabsCls = (0, import_classnames.default)(className, {
64
+ [`${prefixCls}-no-divider`]: !divider
65
+ });
66
+ const isHorizontal = !tabPosition || tabPosition === "top" || tabPosition === "bottom";
67
+ const dividerList = (items == null ? void 0 : items.filter((item) => item.divider)) || [];
68
+ const renderBadge = (0, import_react.useCallback)(
69
+ (badge) => {
70
+ if (typeof badge === "object" && !isReactNode(badge)) {
71
+ return /* @__PURE__ */ import_react.default.createElement(import_badge.default, { ...badge, className: (0, import_classnames.default)(`${prefixCls}-tab-badge`, badge.className) });
72
+ }
73
+ return /* @__PURE__ */ import_react.default.createElement(import_badge.default, { className: `${prefixCls}-tab-badge`, count: badge });
74
+ },
75
+ [prefixCls]
76
+ );
77
+ let newItems = (0, import_useLegacyItems.default)(items, children);
78
+ newItems = newItems == null ? void 0 : newItems.map((item) => {
79
+ if (!(0, import_util.isNullValue)(item.divider)) {
80
+ return {
81
+ ...item,
82
+ key: `divider-${dividerList == null ? void 0 : dividerList.indexOf(item)}`,
83
+ label: /* @__PURE__ */ import_react.default.createElement(
84
+ import_antd.Divider,
85
+ {
86
+ type: isHorizontal ? "vertical" : "horizontal",
87
+ className: `${prefixCls}-divider`
88
+ }
89
+ ),
90
+ disabled: true
91
+ };
92
+ } else if (!(0, import_util.isNullValue)(item.tag) || !(0, import_util.isNullValue)(item.badge)) {
93
+ return {
94
+ ...item,
95
+ label: /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { size: 4 }, item.label, item.badge && renderBadge(item.badge), !(0, import_util.isNullValue)(item.tag) && /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { bordered: false, className: `${prefixCls}-tab-tag` }, item.tag))
96
+ };
68
97
  }
69
- return /* @__PURE__ */ import_react.default.createElement(import_badge.default, { className: `${prefixCls}-tab-badge`, count: badge });
70
- },
71
- [prefixCls]
72
- );
73
- let newItems = (0, import_useLegacyItems.default)(items, children);
74
- newItems = newItems == null ? void 0 : newItems.map((item) => {
75
- if (!(0, import_util.isNullValue)(item.divider)) {
76
- return {
77
- ...item,
78
- key: `divider-${dividerList == null ? void 0 : dividerList.indexOf(item)}`,
79
- label: /* @__PURE__ */ import_react.default.createElement(
80
- import_antd.Divider,
81
- {
82
- type: isHorizontal ? "vertical" : "horizontal",
83
- className: `${prefixCls}-divider`
84
- }
85
- ),
86
- disabled: true
87
- };
88
- } else if (!(0, import_util.isNullValue)(item.tag) || !(0, import_util.isNullValue)(item.badge)) {
89
- return {
90
- ...item,
91
- label: /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { size: 4 }, item.label, item.badge && renderBadge(item.badge), !(0, import_util.isNullValue)(item.tag) && /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { bordered: false, className: `${prefixCls}-tab-tag` }, item.tag))
92
- };
93
- }
94
- return item;
95
- });
96
- return wrapSSR(
97
- /* @__PURE__ */ import_react.default.createElement(
98
- import_antd.Tabs,
99
- {
100
- items: newItems,
101
- type,
102
- tabPosition,
103
- prefixCls: customizePrefixCls,
104
- className: tabsCls,
105
- ...restProps
106
- }
107
- )
108
- );
109
- };
98
+ return item;
99
+ });
100
+ return wrapSSR(
101
+ /* @__PURE__ */ import_react.default.createElement(
102
+ import_antd.Tabs,
103
+ {
104
+ ref,
105
+ items: newItems,
106
+ type,
107
+ tabPosition,
108
+ prefixCls: customizePrefixCls,
109
+ className: tabsCls,
110
+ ...restProps
111
+ }
112
+ )
113
+ );
114
+ }
115
+ );
110
116
  Tabs.TabPane = import_TabPane.default;
111
117
  Tabs.genTabsStyle = import_style.genTabsStyle;
112
118
  if (process.env.NODE_ENV !== "production") {
@@ -28,10 +28,12 @@ var genTabsStyle = (token) => {
28
28
  const { antCls, componentCls, colorInfo, colorInfoBg, colorTextSecondary, colorFillQuaternary } = token;
29
29
  return {
30
30
  [componentCls]: {
31
- [`&${componentCls}-top, &${componentCls}-bottom`]: {
32
- [`${componentCls}-nav::before`]: {
33
- // 页签位置为 top bottom 时,去掉分割线
34
- border: "none"
31
+ [`&${componentCls}-no-divider`]: {
32
+ // divider prop work for top and bottom tabs
33
+ [`&${componentCls}-top, &${componentCls}-bottom`]: {
34
+ [`${componentCls}-nav::before`]: {
35
+ border: "none"
36
+ }
35
37
  }
36
38
  },
37
39
  [`${componentCls}-tab`]: {
@@ -24,22 +24,27 @@ __export(default_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(default_exports);
26
26
  var import_format = require("./util/format");
27
+ var colorPrimary = "#0D6CF2";
28
+ var colorPrimarySecondary = "#598CF3";
29
+ var colorText = "#132039";
30
+ var colorTextSecondary = "#5c6b8a";
31
+ var colorFillSecondary = "#E2E8F3";
32
+ var colorFillTertiary = "#F3F6FC";
33
+ var colorFillQuaternary = "#F8FAFE";
34
+ var colorBorderSecondary = colorFillSecondary;
27
35
  var tagColorBorder = "#cdd5e466";
28
36
  var fontFamilyEn = `Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'`;
29
37
  var defaultTheme = {
30
38
  token: {
31
39
  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'`,
32
40
  fontFamilyCode: `Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace`,
33
- colorPrimaryBg: "#EAF1FF",
34
- colorPrimary: "#006AFF",
35
- colorPrimaryBgHover: "#EAF1FF",
36
- colorPrimaryBorder: "#b3ccff",
37
- colorPrimaryBorderHover: "#5189FB",
38
- colorPrimaryHover: "#5189fb",
39
- colorPrimaryActive: "#004CE6",
40
- colorPrimaryTextHover: "#5189FB",
41
- colorPrimaryText: "#006AFF",
42
- colorPrimaryTextActive: "#004CE6",
41
+ borderRadius: 4,
42
+ borderRadiusLG: 8,
43
+ borderRadiusSM: 2,
44
+ fontSize: 13,
45
+ fontSizeSM: 11,
46
+ colorPrimary,
47
+ colorInfo: colorPrimary,
43
48
  colorSuccess: "#0ac185",
44
49
  colorSuccessBg: "#EEF8F5",
45
50
  colorSuccessBgHover: "#dbf0e9",
@@ -70,29 +75,19 @@ var defaultTheme = {
70
75
  colorErrorText: "#ff1a1a",
71
76
  colorErrorTextActive: "#CC0000",
72
77
  colorError: "#F93939",
73
- colorInfo: "#006AFF",
74
- colorInfoBg: "#EAF1FF",
75
- colorInfoBgHover: "#EAF1FF",
76
- colorInfoBorder: "#B3CCFF",
77
- colorInfoBorderHover: "#5189FB",
78
- colorInfoHover: "#5189FB",
79
- colorInfoActive: "#004CE6",
80
- colorInfoTextHover: "#5189FB",
81
- colorInfoText: "#006AFF",
82
- colorInfoTextActive: "#004CE6",
83
78
  colorTextBase: "#000000",
84
- colorText: "#132039",
85
- colorTextSecondary: "#5c6b8a",
79
+ colorText,
80
+ colorTextSecondary,
86
81
  colorTextQuaternary: "#c1cbe0",
87
82
  colorTextTertiary: "#8592AD",
88
83
  colorBgBase: "#ffffff",
89
84
  colorBgContainer: "#ffffff",
90
- colorBgLayout: "#f3f6fc",
85
+ colorBgLayout: colorFillQuaternary,
91
86
  colorBorder: "#CDD5E4",
92
- colorBorderSecondary: "#E2E8F3",
93
- colorFillQuaternary: "#F8FAFE",
94
- colorFillTertiary: "#f3f6fc",
95
- colorFillSecondary: "#e2e8f3",
87
+ colorBorderSecondary,
88
+ colorFillQuaternary,
89
+ colorFillTertiary,
90
+ colorFillSecondary,
96
91
  colorFill: "#cdd5e4",
97
92
  colorBgMask: "rgba(19, 32, 57, 0.45)",
98
93
  colorBgElevated: "#ffffff",
@@ -100,58 +95,87 @@ var defaultTheme = {
100
95
  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)",
101
96
  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)",
102
97
  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)",
103
- borderRadius: 6,
104
98
  wireframe: false,
105
99
  // Remove focus outline
106
100
  lineWidthFocus: 0
107
101
  },
108
102
  components: {
103
+ Badge: {
104
+ colorInfo: colorPrimarySecondary
105
+ },
109
106
  Breadcrumb: {
110
107
  fontSize: 12,
111
108
  // @ts-ignore
112
109
  // fontHeight is internal token
113
110
  fontHeight: 20,
114
- lastItemColor: "#5c6b8a"
111
+ lastItemColor: colorTextSecondary
115
112
  },
116
113
  Collapse: {
117
- colorBorder: "#E2E8F3"
114
+ colorBorder: colorBorderSecondary
118
115
  },
119
116
  InputNumber: {
120
117
  handleVisible: true
121
118
  },
119
+ Progress: {
120
+ defaultColor: colorPrimarySecondary
121
+ },
122
122
  Radio: {
123
123
  // temporarily fix style for checked disabled Radio.Button
124
- controlItemBgActiveDisabled: "#e2e8f3"
124
+ controlItemBgActiveDisabled: colorFillSecondary
125
125
  },
126
126
  Select: {
127
127
  // work for all multiple select component, including Select, TreeSelect and Cascader and so on
128
- multipleItemBg: "#F8FAFE",
128
+ multipleItemBg: colorFillQuaternary,
129
129
  multipleItemBorderColor: tagColorBorder,
130
130
  multipleItemBorderColorDisabled: tagColorBorder
131
131
  },
132
132
  Slider: {
133
- trackBg: "#006AFF",
133
+ trackBg: colorPrimary,
134
134
  trackHoverBg: "#5189fb",
135
135
  trackBgDisabled: "#b3ccff",
136
- handleColor: "#006AFF",
136
+ handleColor: colorPrimary,
137
137
  handleActiveColor: "#5189fb",
138
138
  handleColorDisabled: "#b3ccff"
139
139
  },
140
140
  Tabs: {
141
- horizontalItemGutter: 24
141
+ horizontalItemGutter: 24,
142
+ itemActiveColor: colorText,
143
+ itemSelectedColor: colorText,
144
+ itemHoverColor: colorText
142
145
  },
143
146
  Tag: {
144
- defaultColor: "#5c6b8a",
147
+ defaultColor: colorTextSecondary,
145
148
  colorBorder: tagColorBorder
146
149
  },
147
150
  Table: {
151
+ cellFontSize: 12,
152
+ headerSplitColor: "transparent",
148
153
  cellPaddingBlock: 12,
154
+ cellPaddingInline: 16,
149
155
  cellPaddingBlockMD: 8,
150
- cellPaddingBlockSM: 4
156
+ cellPaddingBlockSM: 4,
157
+ rowHoverBg: colorFillQuaternary,
158
+ rowSelectedBg: colorFillQuaternary,
159
+ rowSelectedHoverBg: colorFillTertiary
151
160
  },
152
161
  Tooltip: {
153
162
  colorBgSpotlight: "#ffffff",
154
- colorTextLightSolid: "#132039"
163
+ colorTextLightSolid: colorText
164
+ },
165
+ Card: {
166
+ borderRadiusLG: 8
167
+ },
168
+ Menu: {
169
+ paddingContentVertical: 0,
170
+ itemHeight: 30,
171
+ itemBorderRadius: 4,
172
+ // 80 means 50% opacity
173
+ itemSelectedBg: colorFillSecondary + "80",
174
+ itemHoverBg: colorFillSecondary + "80",
175
+ itemColor: colorTextSecondary,
176
+ itemSelectedColor: colorText,
177
+ itemMarginBlock: 6,
178
+ groupTitleFontSize: 11
155
179
  }
156
180
  }
157
181
  };