@oceanbase/design 1.0.0-alpha.6 → 1.0.0-alpha.8

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 (70) hide show
  1. package/dist/design.min.js +1 -1
  2. package/dist/static/Inter-Medium.ea234620.woff2 +0 -0
  3. package/dist/static/Inter-Regular.34ba43c9.woff2 +0 -0
  4. package/dist/static/Inter-SemiBold.95439fb4.woff2 +0 -0
  5. package/es/alert/index.js +1 -4
  6. package/es/app/style/index.js +3 -6
  7. package/es/config-provider/index.js +13 -11
  8. package/es/descriptions/hooks/useItems.d.ts +6 -6
  9. package/es/descriptions/style/index.js +3 -1
  10. package/es/fonts/Inter-Medium.woff2 +0 -0
  11. package/es/fonts/Inter-Regular.woff2 +0 -0
  12. package/es/fonts/Inter-SemiBold.woff2 +0 -0
  13. package/es/form/FormItem.js +7 -9
  14. package/es/form/style/index.js +12 -10
  15. package/es/input/Input.d.ts +2 -0
  16. package/es/input/Input.js +23 -7
  17. package/es/input/Password.js +17 -5
  18. package/es/input/Search.js +17 -5
  19. package/es/input/TextArea.js +17 -5
  20. package/es/input/style/index.d.ts +9 -0
  21. package/es/input/style/index.js +17 -0
  22. package/es/input-number/index.js +11 -4
  23. package/es/input-number/style/index.d.ts +9 -0
  24. package/es/input-number/style/index.js +22 -0
  25. package/es/locale/ja-JP.js +2 -2
  26. package/es/segmented/index.d.ts +1 -0
  27. package/es/segmented/index.js +15 -7
  28. package/es/segmented/style/index.js +1 -0
  29. package/es/style/global.d.ts +4 -1
  30. package/es/style/global.js +75 -19
  31. package/es/table/index.d.ts +2 -2
  32. package/es/table/style/index.js +5 -1
  33. package/es/theme/default.d.ts +1 -1
  34. package/es/theme/default.js +1 -1
  35. package/es/typography/style/index.js +3 -0
  36. package/lib/alert/index.js +1 -3
  37. package/lib/app/style/index.js +2 -4
  38. package/lib/config-provider/index.js +13 -5
  39. package/lib/descriptions/hooks/useItems.d.ts +6 -6
  40. package/lib/descriptions/style/index.js +3 -0
  41. package/lib/fonts/Inter-Medium.woff2 +0 -0
  42. package/lib/fonts/Inter-Regular.woff2 +0 -0
  43. package/lib/fonts/Inter-SemiBold.woff2 +0 -0
  44. package/lib/form/FormItem.js +5 -6
  45. package/lib/form/style/index.js +17 -12
  46. package/lib/input/Input.d.ts +2 -0
  47. package/lib/input/Input.js +35 -12
  48. package/lib/input/Password.js +20 -3
  49. package/lib/input/Search.js +30 -11
  50. package/lib/input/TextArea.js +20 -3
  51. package/lib/input/style/index.d.ts +9 -0
  52. package/lib/input/style/index.js +46 -0
  53. package/lib/input-number/index.js +18 -3
  54. package/lib/input-number/style/index.d.ts +9 -0
  55. package/lib/input-number/style/index.js +51 -0
  56. package/lib/locale/ja-JP.js +2 -2
  57. package/lib/segmented/index.d.ts +1 -0
  58. package/lib/segmented/index.js +10 -3
  59. package/lib/segmented/style/index.js +1 -0
  60. package/lib/style/global.d.ts +4 -1
  61. package/lib/style/global.js +77 -10
  62. package/lib/table/index.d.ts +2 -2
  63. package/lib/table/style/index.js +5 -1
  64. package/lib/theme/default.d.ts +1 -1
  65. package/lib/theme/default.js +1 -1
  66. package/lib/typography/style/index.js +3 -0
  67. package/package.json +3 -2
  68. package/dist/static/Inter.f6bcdfb6.woff2 +0 -0
  69. package/es/fonts/Inter.woff2 +0 -0
  70. package/lib/fonts/Inter.woff2 +0 -0
@@ -37,19 +37,36 @@ var import_react = require("react");
37
37
  var import_antd = require("antd");
38
38
  var import_config_provider = __toESM(require("../config-provider"));
39
39
  var import_en_US = __toESM(require("../locale/en-US"));
40
+ var import_Input = require("./Input");
41
+ var import_style = __toESM(require("./style"));
40
42
  __reExport(TextArea_exports, require("antd/es/input/TextArea"), module.exports);
41
43
  var import_jsx_runtime = require("react/jsx-runtime");
42
44
  var TextArea = (0, import_react.forwardRef)(
43
- ({ locale: customLocale, ...restProps }, ref) => {
45
+ ({ prefixCls: customizePrefixCls, locale: customLocale, showCount, ...restProps }, ref) => {
44
46
  var _a, _b;
45
- const { locale: contextLocale } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
47
+ const { getPrefixCls, locale: contextLocale } = (0, import_react.useContext)(
48
+ import_config_provider.default.ConfigContext
49
+ );
50
+ const prefixCls = getPrefixCls("input", customizePrefixCls);
51
+ const { wrapSSR } = (0, import_style.default)(prefixCls);
46
52
  const inputLocale = {
47
53
  placeholder: ((_a = contextLocale == null ? void 0 : contextLocale.global) == null ? void 0 : _a.inputPlaceholder) || ((_b = import_en_US.default.global) == null ? void 0 : _b.inputPlaceholder),
48
54
  ...import_en_US.default.Input,
49
55
  ...contextLocale == null ? void 0 : contextLocale.Input,
50
56
  ...customLocale
51
57
  };
52
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Input.TextArea, { ref, placeholder: inputLocale.placeholder, ...restProps });
58
+ return wrapSSR(
59
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
+ import_antd.Input.TextArea,
61
+ {
62
+ ref,
63
+ prefixCls: customizePrefixCls,
64
+ placeholder: inputLocale.placeholder,
65
+ showCount: showCount === true ? { formatter: import_Input.showCountFormatter } : showCount,
66
+ ...restProps
67
+ }
68
+ )
69
+ );
53
70
  }
54
71
  );
55
72
  if (process.env.NODE_ENV !== "production") {
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { FullToken, GenerateStyle } from '../../theme/interface';
3
+ export type InputToken = FullToken<'Input'>;
4
+ export declare const genInputStyle: GenerateStyle<InputToken>;
5
+ declare const _default: (prefixCls: string) => {
6
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ hashId: string;
8
+ };
9
+ export default _default;
@@ -0,0 +1,46 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/input/style/index.ts
20
+ var style_exports = {};
21
+ __export(style_exports, {
22
+ default: () => style_default,
23
+ genInputStyle: () => genInputStyle
24
+ });
25
+ module.exports = __toCommonJS(style_exports);
26
+ var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
27
+ var genInputStyle = (token) => {
28
+ const { componentCls } = token;
29
+ return {
30
+ [`${componentCls}-affix-wrapper`]: {
31
+ [`${componentCls}-suffix`]: {
32
+ fontSize: token.fontSizeSM
33
+ }
34
+ }
35
+ };
36
+ };
37
+ var style_default = (prefixCls) => {
38
+ const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("Input", (token) => {
39
+ return [genInputStyle(token)];
40
+ });
41
+ return useStyle(prefixCls);
42
+ };
43
+ // Annotate the CommonJS export names for ESM import in node:
44
+ 0 && (module.exports = {
45
+ genInputStyle
46
+ });
@@ -37,19 +37,34 @@ var import_antd = require("antd");
37
37
  var import_react = __toESM(require("react"));
38
38
  var import_config_provider = __toESM(require("../config-provider"));
39
39
  var import_en_US = __toESM(require("../locale/en-US"));
40
+ var import_style = __toESM(require("./style"));
40
41
  __reExport(input_number_exports, require("antd/es/input-number"), module.exports);
41
42
  var import_jsx_runtime = require("react/jsx-runtime");
42
43
  var InternalInputNumber = import_react.default.forwardRef(
43
- ({ locale: customLocale, ...restProps }, ref) => {
44
+ ({ prefixCls: customizePrefixCls, locale: customLocale, ...restProps }, ref) => {
44
45
  var _a, _b;
45
- const { locale: contextLocale } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
46
+ const { getPrefixCls, locale: contextLocale } = (0, import_react.useContext)(
47
+ import_config_provider.default.ConfigContext
48
+ );
49
+ const prefixCls = getPrefixCls("input-number", customizePrefixCls);
50
+ const { wrapSSR } = (0, import_style.default)(prefixCls);
46
51
  const inputNumberLocale = {
47
52
  placeholder: ((_a = contextLocale == null ? void 0 : contextLocale.global) == null ? void 0 : _a.inputPlaceholder) || ((_b = import_en_US.default.global) == null ? void 0 : _b.inputPlaceholder),
48
53
  ...import_en_US.default.InputNumber,
49
54
  ...contextLocale == null ? void 0 : contextLocale.InputNumber,
50
55
  ...customLocale
51
56
  };
52
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.InputNumber, { ref, placeholder: inputNumberLocale.placeholder, ...restProps });
57
+ return wrapSSR(
58
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
59
+ import_antd.InputNumber,
60
+ {
61
+ ref,
62
+ prefixCls: customizePrefixCls,
63
+ placeholder: inputNumberLocale.placeholder,
64
+ ...restProps
65
+ }
66
+ )
67
+ );
53
68
  }
54
69
  );
55
70
  var InputNumber = InternalInputNumber;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { FullToken, GenerateStyle } from '../../theme/interface';
3
+ export type InputNumberToken = FullToken<'InputNumber'>;
4
+ export declare const genInputStyle: GenerateStyle<InputNumberToken>;
5
+ declare const _default: (prefixCls: string) => {
6
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
+ hashId: string;
8
+ };
9
+ export default _default;
@@ -0,0 +1,51 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/input-number/style/index.ts
20
+ var style_exports = {};
21
+ __export(style_exports, {
22
+ default: () => style_default,
23
+ genInputStyle: () => genInputStyle
24
+ });
25
+ module.exports = __toCommonJS(style_exports);
26
+ var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
27
+ var genInputStyle = (token) => {
28
+ const { antCls, componentCls } = token;
29
+ const selectComponentCls = `${antCls}-select-selector`;
30
+ return {
31
+ [`${componentCls}-group-wrapper`]: {
32
+ [`${componentCls}-group-addon`]: {
33
+ color: token.colorTextTertiary,
34
+ fontSize: token.fontSizeSM,
35
+ [selectComponentCls]: {
36
+ color: token.colorTextTertiary
37
+ }
38
+ }
39
+ }
40
+ };
41
+ };
42
+ var style_default = (prefixCls) => {
43
+ const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("InputNumber", (token) => {
44
+ return [genInputStyle(token)];
45
+ });
46
+ return useStyle(prefixCls);
47
+ };
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ genInputStyle
51
+ });
@@ -44,13 +44,13 @@ var ja_JP_default = {
44
44
  total: "合計 ${total} 件"
45
45
  },
46
46
  Drawer: {
47
- okText: "確定",
47
+ okText: "OK",
48
48
  cancelText: "キャンセル"
49
49
  },
50
50
  Table: {
51
51
  ...import_ja_JP.default.Table,
52
52
  batchOperationBar: {
53
- selected: "選択済み",
53
+ selected: "選択中",
54
54
  object: "件",
55
55
  cancel: "キャンセル",
56
56
  collapse: "折りたたむ",
@@ -6,6 +6,7 @@ import type { SegmentedRawOption } from 'rc-segmented';
6
6
  export * from 'antd/es/segmented';
7
7
  type BadgeType = BadgeProps | BadgeProps['count'];
8
8
  export type SegmentedLabeledOption = AntSegmentedLabeledOption & {
9
+ icon?: React.ReactNode;
9
10
  ellipsis?: EllipsisConfig;
10
11
  badge?: BadgeType;
11
12
  };
@@ -57,11 +57,18 @@ var Segmented = import_react.default.forwardRef(
57
57
  }, []);
58
58
  const newOptions = options == null ? void 0 : options.map((item) => {
59
59
  if (typeof item === "object") {
60
- const { label, badge, ...restItem } = item;
60
+ const {
61
+ label,
62
+ icon,
63
+ badge,
64
+ ellipsis = { tooltip: true },
65
+ ...restItem
66
+ } = item;
61
67
  return {
62
68
  ...restItem,
63
- label: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_antd.Flex, { gap: 4, align: "center", justify: "center", children: [
64
- (item == null ? void 0 : item.ellipsis) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_typography.default.Text, { ellipsis: item.ellipsis, children: label }) : label,
69
+ label: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_antd.Flex, { align: "center", justify: "center", children: [
70
+ icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `${prefixCls}-item-icon`, children: icon }),
71
+ ellipsis ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_typography.default.Text, { ellipsis, children: label }) : label,
65
72
  badge && renderBadge(badge)
66
73
  ] })
67
74
  };
@@ -45,6 +45,7 @@ var genSegmentedStyle = (token) => {
45
45
  [`>${componentCls}-item`]: {
46
46
  [`>${componentCls}-item-label`]: {
47
47
  [`${antCls}-badge >${antCls}-badge-count`]: {
48
+ marginInlineStart: 4,
48
49
  backgroundColor: colorFillSecondary,
49
50
  color: "inherit",
50
51
  boxShadow: "none"
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import 'antd/dist/reset.css';
3
- declare const GlobalStyle: React.FC;
3
+ export interface GlobalStyleProps {
4
+ prefixCls?: string;
5
+ }
6
+ declare const GlobalStyle: React.FC<GlobalStyleProps>;
4
7
  export { GlobalStyle };
5
8
  export default GlobalStyle;
@@ -35,36 +35,70 @@ __export(global_exports, {
35
35
  module.exports = __toCommonJS(global_exports);
36
36
  var import_cssinjs = require("@ant-design/cssinjs");
37
37
  var import_theme = __toESM(require("../theme"));
38
- var import_Inter = __toESM(require("../fonts/Inter.woff2"));
38
+ var import_Inter_Regular = __toESM(require("../fonts/Inter-Regular.woff2"));
39
+ var import_Inter_Medium = __toESM(require("../fonts/Inter-Medium.woff2"));
40
+ var import_Inter_SemiBold = __toESM(require("../fonts/Inter-SemiBold.woff2"));
39
41
  var import_Consolas = __toESM(require("../fonts/Consolas.woff2"));
40
42
  var import_HelveticaNeue = __toESM(require("../fonts/HelveticaNeue.woff2"));
41
43
  var import_reset = require("antd/dist/reset.css");
42
44
  var import_jsx_runtime = require("react/jsx-runtime");
43
- var genGlobalStyle = (token) => {
45
+ var genGlobalStyle = (token, prefixCls) => {
46
+ const antCls = `.${prefixCls}`;
47
+ const buttonComponentCls = `${antCls}-btn`;
48
+ const typographyComponentCls = `${antCls}-typography`;
49
+ const menuComponentCls = `${antCls}-menu`;
44
50
  return [
45
- // Priority: local font > self-hosting font > remote font
46
51
  {
47
52
  "@font-face": {
48
- fontFamily: "'Inter'",
49
- src: `local('Inter'), url(${import_Inter.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*2aG4RJIdUGYAAAAAAAAAAAAADmfOAQ/Inter.woff2') format('woff2')`,
53
+ fontFamily: "Inter",
54
+ fontStyle: "lighter",
55
+ fontWeight: 300,
56
+ // load priority: local font > self-hosting font > remote font
57
+ src: `local('Inter'), url(${import_Inter_Regular.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*ucHoQ4exBNYAAAAARtAAAAgAemfOAQ/Inter-Regular.woff2') format('woff2')`,
50
58
  fontDisplay: "swap"
51
59
  }
52
60
  },
53
61
  {
54
62
  "@font-face": {
55
- fontFamily: "'Consolas'",
63
+ fontFamily: "Inter",
64
+ fontStyle: "normal",
65
+ fontWeight: 400,
66
+ src: `local('Inter'), url(${import_Inter_Medium.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*GboAQ56sQbkAAAAARwAAAAgAemfOAQ/Inter-Medium.woff2') format('woff2')`,
67
+ fontDisplay: "swap"
68
+ }
69
+ },
70
+ {
71
+ "@font-face": {
72
+ fontFamily: "Inter",
73
+ fontStyle: "medium",
74
+ fontWeight: 500,
75
+ src: `local('Inter'), url(${import_Inter_Medium.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*GboAQ56sQbkAAAAARwAAAAgAemfOAQ/Inter-Medium.woff2') format('woff2')`,
76
+ fontDisplay: "swap"
77
+ }
78
+ },
79
+ {
80
+ "@font-face": {
81
+ fontFamily: "Inter",
82
+ fontStyle: "semibold",
83
+ fontWeight: 600,
84
+ src: `local('Inter'), url(${import_Inter_SemiBold.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*tcOIT5gLQl4AAAAARwAAAAgAemfOAQ/Inter-SemiBold.woff2') format('woff2')`,
85
+ fontDisplay: "swap"
86
+ }
87
+ },
88
+ {
89
+ "@font-face": {
90
+ fontFamily: "Consolas",
56
91
  src: `local('Consolas'), url(${import_Consolas.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*R8bMTqAdGWgAAAAAAAAAAAAADmfOAQ/Consolas.woff2') format('woff2')`,
57
92
  fontDisplay: "swap"
58
93
  }
59
94
  },
60
95
  {
61
96
  "@font-face": {
62
- fontFamily: "'Helvetica Neue'",
97
+ fontFamily: "Helvetica Neue",
63
98
  src: `local('Helvetica Neue'), url(${import_HelveticaNeue.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*3EzqR6aYJMkAAAAAAAAAAAAADmfOAQ/HelveticaNeue.woff2') format('woff2')`,
64
99
  fontDisplay: "swap"
65
100
  }
66
101
  },
67
- // Global element styles
68
102
  {
69
103
  "pre, code, kbd, samp": {
70
104
  fontFamily: token.fontFamilyCode
@@ -74,11 +108,44 @@ var genGlobalStyle = (token) => {
74
108
  },
75
109
  ".rc-virtual-list-scrollbar-thumb": {
76
110
  background: `${token.colorFillSecondary} !important`
111
+ },
112
+ // link with href or data-aspm-param^="obcloud_openLink= show underline on hover
113
+ // except disabled and antd element
114
+ 'a[href], a[data-aspm-param^="obcloud_openLink="]': {
115
+ [`&:not([disabled]):not([class^="${prefixCls}-"]):hover`]: {
116
+ textDecoration: "underline"
117
+ }
118
+ },
119
+ // handle link style in button
120
+ [`${buttonComponentCls}${buttonComponentCls}-link:not(${buttonComponentCls}-disabled)`]: {
121
+ '&[href], &[data-aspm-param^="obcloud_openLink="]': {
122
+ "&:hover": {
123
+ textDecoration: "underline"
124
+ }
125
+ }
126
+ },
127
+ // handle link style in typography
128
+ [`${typographyComponentCls}:not(${typographyComponentCls}-disabled)`]: {
129
+ '&[href], &[data-aspm-param^="obcloud_openLink="]': {
130
+ "&:hover": {
131
+ textDecoration: "underline"
132
+ }
133
+ }
134
+ },
135
+ // handle link style in menu
136
+ [`${menuComponentCls}`]: {
137
+ [`${menuComponentCls}-item`]: {
138
+ [`${menuComponentCls}-title-content`]: {
139
+ "a:hover": {
140
+ textDecoration: "none"
141
+ }
142
+ }
143
+ }
77
144
  }
78
145
  }
79
146
  ];
80
147
  };
81
- var GlobalStyle = () => {
148
+ var GlobalStyle = ({ prefixCls = "ant" }) => {
82
149
  const { theme, token } = import_theme.default.useToken();
83
150
  const wrapSSR = (0, import_cssinjs.useStyleRegister)(
84
151
  {
@@ -90,7 +157,7 @@ var GlobalStyle = () => {
90
157
  order: -1e3
91
158
  // Inject before other styles
92
159
  },
93
- () => genGlobalStyle(token)
160
+ () => genGlobalStyle(token, prefixCls)
94
161
  );
95
162
  return wrapSSR(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {}));
96
163
  };
@@ -38,8 +38,8 @@ declare const _default: (<RecordType extends AnyObject = AnyObject>(props: Table
38
38
  SELECTION_ALL: "SELECT_ALL";
39
39
  SELECTION_INVERT: "SELECT_INVERT";
40
40
  SELECTION_NONE: "SELECT_NONE";
41
- Column: <RecordType extends import("antd/es/_util/type").AnyObject>(_: import("antd").TableColumnProps<RecordType>) => null;
42
- ColumnGroup: <RecordType_1 extends import("antd/es/_util/type").AnyObject>(_: import("antd/es/table/ColumnGroup").ColumnGroupProps<RecordType_1>) => null;
41
+ Column: <RecordType_1 extends import("antd/es/_util/type").AnyObject>(_: import("antd").TableColumnProps<RecordType_1>) => null;
42
+ ColumnGroup: <RecordType_2 extends import("antd/es/_util/type").AnyObject>(_: import("antd/es/table/ColumnGroup").ColumnGroupProps<RecordType_2>) => null;
43
43
  Summary: typeof Summary;
44
44
  useStyle: (prefixCls: string) => {
45
45
  wrapSSR: (node: ReactNode) => ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -89,7 +89,11 @@ var genTableStyle = (token) => {
89
89
  },
90
90
  // 为了避免行展开/收起时出现 border 动画,覆盖 antd 默认配置,仅设置背景色动画
91
91
  [`tr > td`]: {
92
- transition: `background ${token.motionDurationMid}`
92
+ fontWeight: token.fontWeight,
93
+ transition: `background ${token.motionDurationMid}`,
94
+ a: {
95
+ fontWeight: token.fontWeightStrong
96
+ }
93
97
  },
94
98
  // empty style
95
99
  [`${componentCls}-placeholder td`]: {},
@@ -1,5 +1,5 @@
1
1
  export declare const fontFamilyEn = "Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'";
2
- export declare const fontWeightWeakEn = 400;
2
+ export declare const fontWeightWeakEn = 300;
3
3
  export declare const fontWeightEn = 500;
4
4
  export declare const fontWeightStrongEn = 600;
5
5
  declare const _default: import("antd").ThemeConfig;
@@ -44,7 +44,7 @@ var borderRadius = 4;
44
44
  var borderRadiusMD = 6;
45
45
  var borderRadiusLG = 8;
46
46
  var fontFamilyEn = `Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'`;
47
- var fontWeightWeakEn = 400;
47
+ var fontWeightWeakEn = 300;
48
48
  var fontWeightEn = 500;
49
49
  var fontWeightStrongEn = 600;
50
50
  var defaultTheme = {
@@ -69,16 +69,19 @@ var genTypographyStyle = (token) => {
69
69
  [`${componentCls}${componentCls}-edit-content`]: {
70
70
  [`${componentCls}-div&`]: {
71
71
  insetInlineStart: calc(token.paddingSM).mul(-1).equal(),
72
+ insetBlockStart: 0,
72
73
  marginTop: negativeMarginOffset,
73
74
  marginBottom: calc("1em").sub(marginOffset).equal()
74
75
  },
75
76
  [`${componentCls}-span&`]: {
76
77
  insetInlineStart: calc(token.paddingSM).mul(-1).equal(),
78
+ insetBlockStart: 0,
77
79
  marginTop: negativeMarginOffset,
78
80
  marginBottom: negativeMarginOffset
79
81
  },
80
82
  [`${componentCls}-h1&, ${componentCls}-h2&, ${componentCls}-h3&, ${componentCls}-h4&, ${componentCls}-h5&`]: {
81
83
  insetInlineStart: calc(token.paddingSM).mul(-1).equal(),
84
+ insetBlockStart: 0,
82
85
  marginTop: `${negativeMarginOffset} !important`,
83
86
  marginBottom: `${negativeMarginOffset} !important`
84
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oceanbase/design",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "1.0.0-alpha.8",
4
4
  "description": "The Design System of OceanBase",
5
5
  "keywords": [
6
6
  "oceanbase",
@@ -56,6 +56,7 @@
56
56
  "@babel/cli": "^7.28.3",
57
57
  "@babel/preset-env": "^7.28.5",
58
58
  "antd-token-previewer": "^2.0.8",
59
+ "rc-input": "^1.8.0",
59
60
  "rc-select": "^14.16.8",
60
61
  "rc-slider": "^11.1.9",
61
62
  "rc-table": "^7.55.1",
@@ -65,5 +66,5 @@
65
66
  "react": ">=16.9.0",
66
67
  "react-dom": ">=16.9.0"
67
68
  },
68
- "gitHead": "7ce9c565c23262a8ffaeab5904095ca65806def9"
69
+ "gitHead": "bf92d8043456556eac797dbd6197288c5695504d"
69
70
  }
Binary file
Binary file
Binary file