@oceanbase/design 0.2.9 → 0.2.11

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 (74) hide show
  1. package/LICENSE +22 -0
  2. package/dist/design.min.js +1 -1
  3. package/es/_util/genComponentStyleHook.d.ts +9 -0
  4. package/es/alert/index.d.ts +13 -0
  5. package/es/alert/style/index.d.ts +8 -0
  6. package/es/button/index.d.ts +11 -0
  7. package/es/button/style/index.d.ts +9 -0
  8. package/es/config-provider/index.d.ts +10 -4
  9. package/es/config-provider/index.js +26 -5
  10. package/es/descriptions/Item.d.ts +8 -0
  11. package/es/descriptions/index.d.ts +11 -0
  12. package/es/descriptions/style/index.d.ts +11 -0
  13. package/es/form/FormItem.d.ts +16 -0
  14. package/es/form/index.d.ts +3 -0
  15. package/es/form/interface.d.ts +1 -0
  16. package/es/index.js +1 -1
  17. package/es/locale/index.d.ts +5 -0
  18. package/es/message/index.d.ts +1 -0
  19. package/es/message/index.js +1 -0
  20. package/es/message/interface.d.ts +1 -0
  21. package/es/modal/interface.d.ts +1 -0
  22. package/es/notification/index.d.ts +1 -0
  23. package/es/notification/index.js +1 -0
  24. package/es/notification/interface.d.ts +1 -0
  25. package/es/static-function/index.d.ts +7 -2
  26. package/es/static-function/index.js +7 -8
  27. package/es/table/interface.d.ts +1 -0
  28. package/es/tabs/TabPane.d.ts +7 -0
  29. package/es/tabs/hooks/useInkBar.d.ts +12 -0
  30. package/es/tabs/hooks/useLegacyItems.d.ts +4 -0
  31. package/es/tabs/index.d.ts +3 -3
  32. package/es/tabs/index.js +10 -1
  33. package/es/tabs/style/index.d.ts +8 -0
  34. package/es/theme/default.d.ts +74 -0
  35. package/es/theme/default.js +73 -0
  36. package/es/theme/index.d.ts +49 -117
  37. package/es/theme/index.js +2 -78
  38. package/es/tooltip/index.d.ts +19 -0
  39. package/lib/_util/genComponentStyleHook.d.ts +9 -0
  40. package/lib/alert/index.d.ts +13 -0
  41. package/lib/alert/style/index.d.ts +8 -0
  42. package/lib/button/index.d.ts +11 -0
  43. package/lib/button/style/index.d.ts +9 -0
  44. package/lib/config-provider/index.d.ts +10 -4
  45. package/lib/config-provider/index.js +33 -2
  46. package/lib/descriptions/Item.d.ts +8 -0
  47. package/lib/descriptions/index.d.ts +11 -0
  48. package/lib/descriptions/style/index.d.ts +11 -0
  49. package/lib/form/FormItem.d.ts +16 -0
  50. package/lib/form/index.d.ts +3 -0
  51. package/lib/form/interface.d.ts +1 -0
  52. package/lib/locale/index.d.ts +5 -0
  53. package/lib/message/index.d.ts +1 -0
  54. package/lib/message/index.js +23 -0
  55. package/lib/message/interface.d.ts +1 -0
  56. package/lib/modal/interface.d.ts +1 -0
  57. package/lib/notification/index.d.ts +1 -0
  58. package/lib/notification/index.js +23 -0
  59. package/lib/notification/interface.d.ts +1 -0
  60. package/lib/static-function/index.d.ts +7 -2
  61. package/lib/static-function/index.js +6 -8
  62. package/lib/table/interface.d.ts +1 -0
  63. package/lib/tabs/TabPane.d.ts +7 -0
  64. package/lib/tabs/hooks/useInkBar.d.ts +12 -0
  65. package/lib/tabs/hooks/useLegacyItems.d.ts +4 -0
  66. package/lib/tabs/index.d.ts +3 -3
  67. package/lib/tabs/index.js +7 -1
  68. package/lib/tabs/style/index.d.ts +8 -0
  69. package/lib/theme/default.d.ts +74 -0
  70. package/lib/theme/default.js +97 -0
  71. package/lib/theme/index.d.ts +49 -117
  72. package/lib/theme/index.js +3 -79
  73. package/lib/tooltip/index.d.ts +19 -0
  74. package/package.json +16 -16
package/lib/tabs/index.js CHANGED
@@ -35,12 +35,13 @@ __export(tabs_exports, {
35
35
  module.exports = __toCommonJS(tabs_exports);
36
36
  var import_util = require("@oceanbase/util");
37
37
  var import_antd = require("antd");
38
- var import_classnames = __toESM(require("classnames"));
39
38
  var import_react = __toESM(require("react"));
39
+ var import_classnames = __toESM(require("classnames"));
40
40
  var import_config_provider = __toESM(require("../config-provider"));
41
41
  var import_useInkBar = __toESM(require("./hooks/useInkBar"));
42
42
  var import_useLegacyItems = __toESM(require("./hooks/useLegacyItems"));
43
43
  var import_style = __toESM(require("./style"));
44
+ var import_ahooks = require("ahooks");
44
45
  var import_TabPane = __toESM(require("./TabPane"));
45
46
  __reExport(tabs_exports, require("antd/es/tabs"), module.exports);
46
47
  var Tabs = ({
@@ -76,6 +77,11 @@ var Tabs = ({
76
77
  const [activeKey, setActiveKey] = (0, import_react.useState)(
77
78
  activeKeyProp || defaultActiveKey || ((_a = newItems == null ? void 0 : newItems[0]) == null ? void 0 : _a.key)
78
79
  );
80
+ (0, import_ahooks.useUpdateEffect)(() => {
81
+ if (activeKeyProp) {
82
+ setActiveKey(activeKeyProp);
83
+ }
84
+ }, [activeKeyProp]);
79
85
  (0, import_useInkBar.default)({
80
86
  prefixCls,
81
87
  activeKey,
@@ -0,0 +1,8 @@
1
+ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
2
+ export declare type TabsToken = FullToken<'Tabs'>;
3
+ export declare const genTagStyle: GenerateStyle<TabsToken>;
4
+ declare const _default: (prefixCls: string) => {
5
+ wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
+ hashId: string;
7
+ };
8
+ export default _default;
@@ -0,0 +1,74 @@
1
+ declare const _default: {
2
+ colorPrimaryBg: string;
3
+ colorPrimary: string;
4
+ colorPrimaryBgHover: string;
5
+ colorPrimaryBorder: string;
6
+ colorPrimaryBorderHover: string;
7
+ colorPrimaryHover: string;
8
+ colorPrimaryTextHover: string;
9
+ colorPrimaryText: string;
10
+ colorPrimaryTextActive: string;
11
+ colorSuccess: string;
12
+ colorSuccessBg: string;
13
+ colorSuccessBgHover: string;
14
+ colorSuccessBorder: string;
15
+ colorSuccessBorderHover: string;
16
+ colorSuccessHover: string;
17
+ colorSuccessActive: string;
18
+ colorSuccessTextHover: string;
19
+ colorSuccessText: string;
20
+ colorSuccessTextActive: string;
21
+ colorWarning: string;
22
+ colorWarningBg: string;
23
+ colorWarningBgHover: string;
24
+ colorWarningBorder: string;
25
+ colorWarningBorderHover: string;
26
+ colorWarningHover: string;
27
+ colorWarningActive: string;
28
+ colorWarningTextHover: string;
29
+ colorWarningText: string;
30
+ colorWarningTextActive: string;
31
+ colorErrorBg: string;
32
+ colorErrorBgHover: string;
33
+ colorErrorBorder: string;
34
+ colorErrorBorderHover: string;
35
+ colorErrorHover: string;
36
+ colorErrorActive: string;
37
+ colorErrorTextHover: string;
38
+ colorErrorText: string;
39
+ colorErrorTextActive: string;
40
+ colorError: string;
41
+ colorInfo: string;
42
+ colorInfoBg: string;
43
+ colorInfoBgHover: string;
44
+ colorInfoBorder: string;
45
+ colorInfoBorderHover: string;
46
+ colorInfoHover: string;
47
+ colorInfoActive: string;
48
+ colorInfoTextHover: string;
49
+ colorInfoText: string;
50
+ colorInfoTextActive: string;
51
+ colorTextBase: string;
52
+ colorBgBase: string;
53
+ colorText: string;
54
+ colorTextSecondary: string;
55
+ colorTextQuaternary: string;
56
+ colorTextTertiary: string;
57
+ colorBgContainer: string;
58
+ colorBgLayout: string;
59
+ colorBgSpotlight: string;
60
+ colorBgMask: string;
61
+ colorBorder: string;
62
+ colorBorderSecondary: string;
63
+ colorFillQuaternary: string;
64
+ colorFillTertiary: string;
65
+ colorFillSecondary: string;
66
+ colorFill: string;
67
+ colorIcon: string;
68
+ boxShadowSecondary: string;
69
+ boxShadow: string;
70
+ borderRadius: number;
71
+ wireframe: boolean;
72
+ colorPrimaryActive: string;
73
+ };
74
+ export default _default;
@@ -0,0 +1,97 @@
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/theme/default.ts
20
+ var default_exports = {};
21
+ __export(default_exports, {
22
+ default: () => default_default
23
+ });
24
+ module.exports = __toCommonJS(default_exports);
25
+ var default_default = {
26
+ colorPrimaryBg: "#EAF1FF",
27
+ colorPrimary: "#006AFF",
28
+ colorPrimaryBgHover: "#EAF1FF",
29
+ colorPrimaryBorder: "#B3CCFF",
30
+ colorPrimaryBorderHover: "#5189FB",
31
+ colorPrimaryHover: "#004CE6",
32
+ colorPrimaryTextHover: "#5189FB",
33
+ colorPrimaryText: "#006AFF",
34
+ colorPrimaryTextActive: "#004CE6",
35
+ colorSuccess: "#0ac185",
36
+ colorSuccessBg: "#EEF8F5",
37
+ colorSuccessBgHover: "#B3E6D5",
38
+ colorSuccessBorder: "#B3E6D5",
39
+ colorSuccessBorderHover: "#4DCCA2",
40
+ colorSuccessHover: "#4DCCA2",
41
+ colorSuccessActive: "#00B378",
42
+ colorSuccessTextHover: "#4DCCA2",
43
+ colorSuccessText: "#0AC185",
44
+ colorSuccessTextActive: "#00B378",
45
+ colorWarning: "#ffac33",
46
+ colorWarningBg: "#FFF5E5",
47
+ colorWarningBgHover: "#FFD699",
48
+ colorWarningBorder: "#FFD699",
49
+ colorWarningBorderHover: "#FFC166",
50
+ colorWarningHover: "#FFC166",
51
+ colorWarningActive: "#FF9700",
52
+ colorWarningTextHover: "#FFC166",
53
+ colorWarningText: "#FFAC33",
54
+ colorWarningTextActive: "#FF9700",
55
+ colorErrorBg: "#FFEBEB",
56
+ colorErrorBgHover: "#FFB3B3",
57
+ colorErrorBorder: "#FFB3B3",
58
+ colorErrorBorderHover: "#FF8080",
59
+ colorErrorHover: "#FF8080",
60
+ colorErrorActive: "#EC1313",
61
+ colorErrorTextHover: "#FF8080",
62
+ colorErrorText: "#FF4B4B",
63
+ colorErrorTextActive: "#EC1313",
64
+ colorError: "#ff4b4b",
65
+ colorInfo: "#006aff",
66
+ colorInfoBg: "#EAF1FF",
67
+ colorInfoBgHover: "#EAF1FF",
68
+ colorInfoBorder: "#B3CCFF",
69
+ colorInfoBorderHover: "#5189FB",
70
+ colorInfoHover: "#5189FB",
71
+ colorInfoActive: "#004CE6",
72
+ colorInfoTextHover: "#5189FB",
73
+ colorInfoText: "#006AFF",
74
+ colorInfoTextActive: "#004CE6",
75
+ colorTextBase: "#132039",
76
+ colorBgBase: "#ffffff",
77
+ colorText: "#132039",
78
+ colorTextSecondary: "#364563",
79
+ colorTextQuaternary: "#CDD5E4",
80
+ colorTextTertiary: "#8592AD",
81
+ colorBgContainer: "#ffffff",
82
+ colorBgLayout: "#F5F8FE",
83
+ colorBgSpotlight: "rgba(19, 32, 57, 0.85)",
84
+ colorBgMask: "rgba(19, 32, 57, 0.65)",
85
+ colorBorder: "#CDD5E4",
86
+ colorBorderSecondary: "#E2E8F3",
87
+ colorFillQuaternary: "rgb(245, 248, 254, 0.45)",
88
+ colorFillTertiary: "rgb(245, 248, 254, 0.65)",
89
+ colorFillSecondary: "rgb(245, 248, 254, 0.85)",
90
+ colorFill: "#F5F8FE",
91
+ colorIcon: "#8592AD",
92
+ 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)",
93
+ boxShadow: "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)",
94
+ borderRadius: 6,
95
+ wireframe: false,
96
+ colorPrimaryActive: "#004CE6"
97
+ };
@@ -47,130 +47,62 @@ declare const _default: {
47
47
  lime: string;
48
48
  gold: string;
49
49
  };
50
- token: {
51
- colorPrimaryBg: string;
52
- colorPrimary: string;
53
- colorPrimaryBgHover: string;
54
- colorPrimaryBorder: string;
55
- colorPrimaryBorderHover: string;
56
- colorPrimaryHover: string;
57
- colorPrimaryTextHover: string;
58
- colorPrimaryText: string;
59
- colorPrimaryTextActive: string;
60
- colorSuccess: string;
61
- colorSuccessBg: string;
62
- colorSuccessBgHover: string;
63
- colorSuccessBorder: string;
64
- colorSuccessBorderHover: string;
65
- colorSuccessHover: string;
66
- colorSuccessActive: string;
67
- colorSuccessTextHover: string;
68
- colorSuccessText: string;
69
- colorSuccessTextActive: string;
70
- colorWarning: string;
71
- colorWarningBg: string;
72
- colorWarningBgHover: string;
73
- colorWarningBorder: string;
74
- colorWarningBorderHover: string;
75
- colorWarningHover: string;
76
- colorWarningActive: string;
77
- colorWarningTextHover: string;
78
- colorWarningText: string;
79
- colorWarningTextActive: string;
80
- colorErrorBg: string;
81
- colorErrorBgHover: string;
82
- colorErrorBorder: string;
83
- colorErrorBorderHover: string;
84
- colorErrorHover: string;
85
- colorErrorActive: string;
86
- colorErrorTextHover: string;
87
- colorErrorText: string;
88
- colorErrorTextActive: string;
89
- colorError: string;
90
- colorInfo: string;
91
- colorInfoBg: string;
92
- colorInfoBgHover: string;
93
- colorInfoBorder: string;
94
- colorInfoBorderHover: string;
95
- colorInfoHover: string;
96
- colorInfoActive: string;
97
- colorInfoTextHover: string;
98
- colorInfoText: string;
99
- colorInfoTextActive: string;
100
- colorTextBase: string;
101
- colorBgBase: string;
102
- colorText: string;
103
- colorTextSecondary: string;
104
- colorTextQuaternary: string;
105
- colorTextTertiary: string;
106
- colorBgContainer: string;
107
- colorBgLayout: string;
108
- colorBgSpotlight: string;
109
- colorBgMask: string;
110
- colorBorder: string;
111
- colorBorderSecondary: string;
112
- colorFillQuaternary: string;
113
- colorFillTertiary: string;
114
- colorFillSecondary: string;
115
- colorFill: string;
116
- colorIcon: string;
117
- boxShadowSecondary: string;
118
- boxShadow: string;
119
- borderRadius: number;
120
- wireframe: boolean;
121
- colorPrimaryActive: string;
122
- blue: string;
123
- green: string;
124
- yellow: string;
125
- red: string;
126
- fontFamily: string;
127
- fontFamilyCode: string;
128
- fontSize: number;
129
- lineWidth: number;
130
- lineType: string;
131
- sizeUnit: number;
132
- sizeStep: number;
133
- sizePopupArrow: number;
134
- controlHeight: number;
135
- zIndexBase: number;
136
- zIndexPopupBase: number;
137
- opacityImage: number;
138
- motionUnit: number;
139
- motionBase: number;
140
- motionEaseOutCirc: string;
141
- motionEaseInOutCirc: string;
142
- motionEaseInOut: string;
143
- motionEaseOutBack: string;
144
- motionEaseInBack: string;
145
- motionEaseInQuint: string;
146
- motionEaseOutQuint: string;
147
- motionEaseOut: string;
148
- motion: boolean;
149
- purple: string;
150
- cyan: string;
151
- magenta: string;
152
- pink: string;
153
- orange: string;
154
- volcano: string;
155
- geekblue: string;
156
- lime: string;
157
- gold: string;
158
- };
159
- components: {
160
- Dropdown: {
50
+ defaultConfig: {
51
+ defaultSeed: {
52
+ colorPrimary: string;
53
+ colorInfo: string;
54
+ colorSuccess: string;
55
+ colorWarning: string;
161
56
  colorError: string;
162
- };
163
- Button: {
164
57
  borderRadius: number;
58
+ blue: string;
59
+ green: string;
60
+ yellow: string;
61
+ red: string;
62
+ colorTextBase: string;
63
+ colorBgBase: string;
64
+ fontFamily: string;
65
+ fontFamilyCode: string;
66
+ fontSize: number;
67
+ lineWidth: number;
68
+ lineType: string;
69
+ sizeUnit: number;
70
+ sizeStep: number;
71
+ sizePopupArrow: number;
72
+ controlHeight: number;
73
+ zIndexBase: number;
74
+ zIndexPopupBase: number;
75
+ opacityImage: number;
76
+ motionUnit: number;
77
+ motionBase: number;
78
+ motionEaseOutCirc: string;
79
+ motionEaseInOutCirc: string;
80
+ motionEaseInOut: string;
81
+ motionEaseOutBack: string;
82
+ motionEaseInBack: string;
83
+ motionEaseInQuint: string;
84
+ motionEaseOutQuint: string;
85
+ motionEaseOut: string;
86
+ wireframe: boolean;
87
+ motion: boolean;
88
+ purple: string;
89
+ cyan: string;
90
+ magenta: string;
91
+ pink: string;
92
+ orange: string;
93
+ volcano: string;
94
+ geekblue: string;
95
+ lime: string;
96
+ gold: string;
165
97
  };
98
+ token: import("antd/es/theme/internal").SeedToken;
99
+ hashed: boolean;
100
+ };
101
+ components: {
166
102
  InputNumber: {
167
103
  handleVisible: boolean;
168
104
  };
169
105
  };
170
- defaultConfig: {
171
- token: import("antd/es/theme/internal").SeedToken;
172
- hashed: boolean;
173
- };
174
106
  useToken: () => {
175
107
  theme: import("@ant-design/cssinjs").Theme<import("antd/es/theme/internal").SeedToken, import("antd/es/theme/interface").MapToken>;
176
108
  token: import("antd").GlobalToken;
@@ -42,87 +42,11 @@ var defaultSeed = {
42
42
  var theme_default = {
43
43
  ...import_antd.theme,
44
44
  defaultSeed,
45
- token: {
46
- ...defaultSeed,
47
- colorPrimaryBg: "#EAF1FF",
48
- colorPrimary: "#006AFF",
49
- colorPrimaryBgHover: "#EAF1FF",
50
- colorPrimaryBorder: "#B3CCFF",
51
- colorPrimaryBorderHover: "#5189FB",
52
- colorPrimaryHover: "#004CE6",
53
- colorPrimaryTextHover: "#5189FB",
54
- colorPrimaryText: "#006AFF",
55
- colorPrimaryTextActive: "#004CE6",
56
- colorSuccess: "#0ac185",
57
- colorSuccessBg: "#EEF8F5",
58
- colorSuccessBgHover: "#B3E6D5",
59
- colorSuccessBorder: "#B3E6D5",
60
- colorSuccessBorderHover: "#4DCCA2",
61
- colorSuccessHover: "#4DCCA2",
62
- colorSuccessActive: "#00B378",
63
- colorSuccessTextHover: "#4DCCA2",
64
- colorSuccessText: "#0AC185",
65
- colorSuccessTextActive: "#00B378",
66
- colorWarning: "#ffac33",
67
- colorWarningBg: "#FFF5E5",
68
- colorWarningBgHover: "#FFD699",
69
- colorWarningBorder: "#FFD699",
70
- colorWarningBorderHover: "#FFC166",
71
- colorWarningHover: "#FFC166",
72
- colorWarningActive: "#FF9700",
73
- colorWarningTextHover: "#FFC166",
74
- colorWarningText: "#FFAC33",
75
- colorWarningTextActive: "#FF9700",
76
- colorErrorBg: "#FFEBEB",
77
- colorErrorBgHover: "#FFB3B3",
78
- colorErrorBorder: "#FFB3B3",
79
- colorErrorBorderHover: "#FF8080",
80
- colorErrorHover: "#FF8080",
81
- colorErrorActive: "#EC1313",
82
- colorErrorTextHover: "#FF8080",
83
- colorErrorText: "#FF4B4B",
84
- colorErrorTextActive: "#EC1313",
85
- colorError: "#ff4b4b",
86
- colorInfo: "#006aff",
87
- colorInfoBg: "#EAF1FF",
88
- colorInfoBgHover: "#EAF1FF",
89
- colorInfoBorder: "#B3CCFF",
90
- colorInfoBorderHover: "#5189FB",
91
- colorInfoHover: "#5189FB",
92
- colorInfoActive: "#004CE6",
93
- colorInfoTextHover: "#5189FB",
94
- colorInfoText: "#006AFF",
95
- colorInfoTextActive: "#004CE6",
96
- colorTextBase: "#132039",
97
- colorBgBase: "#ffffff",
98
- colorText: "#132039",
99
- colorTextSecondary: "#364563",
100
- colorTextQuaternary: "#CDD5E4",
101
- colorTextTertiary: "#8592AD",
102
- colorBgContainer: "#ffffff",
103
- colorBgLayout: "#F5F8FE",
104
- colorBgSpotlight: "rgba(19, 32, 57, 0.85)",
105
- colorBgMask: "rgba(19, 32, 57, 0.65)",
106
- colorBorder: "#CDD5E4",
107
- colorBorderSecondary: "#E2E8F3",
108
- colorFillQuaternary: "#F8FAFE",
109
- colorFillTertiary: "#F5F8FE",
110
- colorFillSecondary: "#F5F8FE",
111
- colorFill: "#F5F8FE",
112
- colorIcon: "#8592AD",
113
- 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)",
114
- boxShadow: "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)",
115
- borderRadius: 6,
116
- wireframe: false,
117
- colorPrimaryActive: "#004CE6"
45
+ defaultConfig: {
46
+ ...import_antd.theme.defaultConfig,
47
+ defaultSeed
118
48
  },
119
49
  components: {
120
- Dropdown: {
121
- colorError: "#FF4B4B"
122
- },
123
- Button: {
124
- borderRadius: 6
125
- },
126
50
  InputNumber: {
127
51
  handleVisible: true
128
52
  }
@@ -0,0 +1,19 @@
1
+ import type { TooltipPropsWithTitle as AntTooltipPropsWithTitle } from 'antd/es/tooltip';
2
+ import React from 'react';
3
+ export * from 'antd/es/tooltip';
4
+ export declare type TooltipType = 'default' | 'light' | 'success' | 'info' | 'warning' | 'error';
5
+ export interface TooltipProps extends AntTooltipPropsWithTitle {
6
+ type?: TooltipType;
7
+ mouseFollow?: boolean;
8
+ }
9
+ export declare const getTooltipTypeList: () => {
10
+ type: string;
11
+ color: string;
12
+ backgroundColor: string;
13
+ }[];
14
+ declare type CompoundedComponent = React.FC<TooltipProps> & {
15
+ /** @internal */
16
+ __ANT_TOOLTIP: boolean;
17
+ };
18
+ declare const Tooltip: CompoundedComponent;
19
+ export default Tooltip;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanbase/design",
3
- "version": "0.2.9",
4
- "description": "The Design System for OceanBase",
3
+ "version": "0.2.11",
4
+ "description": "The Design System of OceanBase",
5
5
  "keywords": [
6
6
  "OceanBase",
7
7
  "database",
@@ -10,7 +10,7 @@
10
10
  "react",
11
11
  "component"
12
12
  ],
13
- "homepage": "https://github.com/oceanbase/design/packages/design",
13
+ "homepage": "https://github.com/oceanbase/oceanbase-design/packages/design",
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "git@github.com:oceanbase/design.git"
@@ -36,25 +36,25 @@
36
36
  "postbuild": "cp src/style/reset.css dist/"
37
37
  },
38
38
  "dependencies": {
39
- "@ant-design/cssinjs": "^1.9.1",
40
- "@ant-design/icons": "^4.2.1",
41
- "@ant-design/pro-components": "^2.4.12",
42
- "@oceanbase/util": "^0.2.2",
43
- "ahooks": "^2.10.0",
44
- "antd": "^5.6.0",
45
- "classnames": "^2.2.6",
46
- "lodash": "^4.17.15",
47
- "rc-util": "^5.33.0",
39
+ "@ant-design/cssinjs": "^1.11.1",
40
+ "@ant-design/icons": "^4.8.0",
41
+ "@ant-design/pro-components": "^2.6.4",
42
+ "@oceanbase/util": "^0.2.3",
43
+ "ahooks": "^2.10.14",
44
+ "antd": "^5.6.4",
45
+ "classnames": "^2.3.2",
46
+ "lodash": "^4.17.21",
47
+ "rc-util": "^5.34.1",
48
48
  "react-sticky-mouse-tooltip": "^0.0.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@babel/cli": "^7.21.0",
52
- "@babel/preset-env": "^7.21.4",
53
- "antd-token-previewer": "^1.1.0-22"
51
+ "@babel/cli": "^7.22.6",
52
+ "@babel/preset-env": "^7.22.6",
53
+ "antd-token-previewer": "^1.1.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": "^16.9.0",
57
57
  "react-dom": "^16.9.0"
58
58
  },
59
- "gitHead": "50d5e0e6ecf64b44f17c1e5de8dd5d6d5be14eab"
59
+ "gitHead": "7832a50e185575f5f159f08ae0ef79136aab7a22"
60
60
  }