@oceanbase/design 0.2.18 → 0.2.20
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/alert/index.js +4 -2
- package/es/badge/index.js +35 -21
- package/es/button/index.js +8 -2
- package/es/card/Card.d.ts +1 -0
- package/es/card/Card.js +1 -0
- package/es/card/index.d.ts +1 -0
- package/es/card/index.js +15 -9
- package/es/collapse/index.d.ts +1 -0
- package/es/collapse/index.js +1 -0
- package/es/config-provider/SizeContext.d.ts +1 -0
- package/es/config-provider/SizeContext.js +1 -0
- package/es/config-provider/index.d.ts +4 -1
- package/es/config-provider/index.js +16 -7
- package/es/descriptions/Item.d.ts +1 -1
- package/es/descriptions/index.d.ts +2 -1
- package/es/descriptions/index.js +9 -6
- package/es/form/FormItem.js +5 -3
- package/es/index.d.ts +2 -0
- package/es/lottie/index.js +2 -1
- package/es/modal/Modal.js +8 -2
- package/es/modal/Progress.d.ts +1 -1
- package/es/modal/Progress.js +23 -10
- package/es/spin/assets/spin-gray.json +1031 -1
- package/es/spin/assets/spin.json +1031 -1
- package/es/spin/index.js +6 -4
- package/es/table/index.js +54 -32
- package/es/tabs/TabPane.d.ts +1 -1
- package/es/tabs/hooks/useLegacyItems.js +10 -6
- package/es/tabs/index.d.ts +1 -1
- package/es/tabs/index.js +12 -9
- package/es/tooltip/MouseTooltip.js +37 -29
- package/es/tooltip/index.js +21 -14
- package/lib/card/Card.d.ts +1 -0
- package/lib/{statistic/interface.js → card/Card.js} +5 -5
- package/lib/card/index.d.ts +1 -0
- package/lib/card/index.js +2 -0
- package/lib/collapse/index.d.ts +1 -0
- package/lib/{callapse → collapse}/index.js +5 -5
- package/lib/config-provider/SizeContext.d.ts +1 -0
- package/lib/config-provider/SizeContext.js +23 -0
- package/lib/config-provider/index.d.ts +4 -1
- package/lib/config-provider/index.js +6 -0
- package/lib/descriptions/Item.d.ts +1 -1
- package/lib/descriptions/index.d.ts +2 -1
- package/lib/index.d.ts +2 -0
- package/lib/modal/Progress.d.ts +1 -1
- package/lib/spin/assets/spin-gray.json +1031 -1
- package/lib/spin/assets/spin.json +1031 -1
- package/lib/tabs/TabPane.d.ts +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tooltip/index.js +32 -30
- package/lib/tooltip/style/index.js +10 -6
- package/package.json +8 -7
- package/es/callapse/index.d.ts +0 -1
- package/es/callapse/index.js +0 -1
- package/es/statistic/interface.js +0 -1
- package/lib/callapse/index.d.ts +0 -1
package/lib/tabs/TabPane.d.ts
CHANGED
package/lib/tabs/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface TabsProps extends AntTabsProps {
|
|
|
12
12
|
export type TabsPosition = AntTabsPosition;
|
|
13
13
|
declare const Tabs: {
|
|
14
14
|
({ children, items, defaultActiveKey, activeKey: activeKeyProp, onChange, size, type, tabPosition, prefixCls: customizePrefixCls, className, ...restProps }: TabsProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
15
|
-
TabPane: React.FC<import("
|
|
15
|
+
TabPane: React.FC<import("./TabPane").TabPaneProps>;
|
|
16
16
|
displayName: string;
|
|
17
17
|
};
|
|
18
18
|
export default Tabs;
|
package/lib/tooltip/index.js
CHANGED
|
@@ -48,7 +48,7 @@ var getTooltipTypeList = () => [
|
|
|
48
48
|
{
|
|
49
49
|
type: "light",
|
|
50
50
|
color: import_static_function.token.colorText,
|
|
51
|
-
backgroundColor:
|
|
51
|
+
backgroundColor: import_static_function.token.colorBgElevated
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
type: "success",
|
|
@@ -110,37 +110,39 @@ var Tooltip = ({
|
|
|
110
110
|
const titleWithCloseIcon = /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { className: `${prefixCls}-close-icon-wrap` }, titleNode, CloseIconNode);
|
|
111
111
|
const typeList = getTooltipTypeList();
|
|
112
112
|
const typeItem = typeList.find((item) => item.type === type);
|
|
113
|
-
return wrapSSR(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
return wrapSSR(
|
|
114
|
+
mouseFollow ? /* @__PURE__ */ import_react.default.createElement(
|
|
115
|
+
import_MouseTooltip.default,
|
|
116
|
+
{
|
|
117
|
+
title,
|
|
118
|
+
color: color || (typeItem == null ? void 0 : typeItem.backgroundColor),
|
|
119
|
+
overlayInnerStyle: {
|
|
120
|
+
color: typeItem == null ? void 0 : typeItem.color,
|
|
121
|
+
...overlayInnerStyle
|
|
122
|
+
},
|
|
123
|
+
className: tooltipCls,
|
|
124
|
+
...restProps
|
|
121
125
|
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
children
|
|
127
|
+
) : /* @__PURE__ */ import_react.default.createElement(
|
|
128
|
+
import_antd.Tooltip,
|
|
129
|
+
{
|
|
130
|
+
title: hasCloseIcon ? titleWithCloseIcon : title,
|
|
131
|
+
color: color || (typeItem == null ? void 0 : typeItem.backgroundColor),
|
|
132
|
+
open,
|
|
133
|
+
onOpenChange: (newOpen) => {
|
|
134
|
+
setInnerOpen(newOpen);
|
|
135
|
+
},
|
|
136
|
+
overlayInnerStyle: {
|
|
137
|
+
color: typeItem == null ? void 0 : typeItem.color,
|
|
138
|
+
...overlayInnerStyle
|
|
139
|
+
},
|
|
140
|
+
className: tooltipCls,
|
|
141
|
+
...restProps
|
|
134
142
|
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
className: tooltipCls,
|
|
140
|
-
...restProps
|
|
141
|
-
},
|
|
142
|
-
children
|
|
143
|
-
));
|
|
143
|
+
children
|
|
144
|
+
)
|
|
145
|
+
);
|
|
144
146
|
};
|
|
145
147
|
if (process.env.NODE_ENV !== "production") {
|
|
146
148
|
Tooltip.displayName = import_antd.Tooltip.displayName;
|
|
@@ -41,12 +41,16 @@ var genTooltipStyle = (token) => {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
var style_default = (prefixCls) => {
|
|
44
|
-
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)(
|
|
45
|
+
"Tooltip",
|
|
46
|
+
(token) => {
|
|
47
|
+
return [genTooltipStyle(token)];
|
|
48
|
+
},
|
|
49
|
+
({ zIndexPopupBase, colorBgSpotlight }) => ({
|
|
50
|
+
zIndexPopup: zIndexPopupBase + 70,
|
|
51
|
+
colorBgDefault: colorBgSpotlight
|
|
52
|
+
})
|
|
53
|
+
);
|
|
50
54
|
return useStyle(prefixCls);
|
|
51
55
|
};
|
|
52
56
|
// Annotate the CommonJS export names for ESM import in node:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/design",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"description": "The Design System of OceanBase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -36,24 +36,25 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ant-design/cssinjs": "^1.17.0",
|
|
39
|
-
"@oceanbase/icons": "^0.2.
|
|
40
|
-
"@oceanbase/util": "^0.2.
|
|
39
|
+
"@oceanbase/icons": "^0.2.7",
|
|
40
|
+
"@oceanbase/util": "^0.2.9",
|
|
41
41
|
"ahooks": "^2.10.14",
|
|
42
42
|
"antd": "^5.9.0",
|
|
43
43
|
"classnames": "^2.3.2",
|
|
44
44
|
"lodash": "^4.17.21",
|
|
45
45
|
"lottie-web": "^5.12.2",
|
|
46
|
+
"prop-types": "^15.8.1",
|
|
46
47
|
"rc-util": "^5.37.0",
|
|
47
48
|
"react-sticky-mouse-tooltip": "^0.0.1"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
|
-
"@babel/cli": "^7.
|
|
51
|
+
"@babel/cli": "^7.23.0",
|
|
51
52
|
"@babel/preset-env": "^7.22.20",
|
|
52
53
|
"antd-token-previewer": "^1.1.0"
|
|
53
54
|
},
|
|
54
55
|
"peerDependencies": {
|
|
55
|
-
"react": "
|
|
56
|
-
"react-dom": "
|
|
56
|
+
"react": ">=16.9.0",
|
|
57
|
+
"react-dom": ">=16.9.0"
|
|
57
58
|
},
|
|
58
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "f1b50fbb012ad65a936b94c23bd64bed3256c1b3"
|
|
59
60
|
}
|
package/es/callapse/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/callapse';
|
package/es/callapse/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/callapse';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/statistic/interface';
|
package/lib/callapse/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/callapse';
|