@oceanbase/design 0.4.11 → 0.4.13
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.css +1 -1
- package/dist/design.min.js +1 -1
- package/es/anchor/index.d.ts +1 -0
- package/es/anchor/index.js +1 -0
- package/es/avatar/index.d.ts +1 -0
- package/es/avatar/index.js +1 -0
- package/es/button/index.d.ts +1 -1
- package/es/descriptions/hooks/useItems.d.ts +2 -3
- package/es/form/FormItem.d.ts +1 -1
- package/es/modal/Modal.d.ts +6 -6
- package/es/segmented/index.d.ts +3 -0
- package/es/segmented/index.js +26 -7
- package/es/segmented/style/index.js +13 -2
- package/es/slider/style/index.js +9 -2
- package/es/static-function/index.js +3 -2
- package/es/table/index.d.ts +2 -2
- package/es/tabs/TabPane.d.ts +4 -0
- package/es/tabs/index.d.ts +4 -0
- package/es/tabs/index.js +19 -4
- package/es/tabs/style/index.js +10 -3
- package/es/theme/default.js +2 -1
- package/es/theme/style/compact.less +2 -6
- package/es/theme/style/dark.less +5 -5
- package/es/theme/style/default.less +2 -6
- package/lib/anchor/index.d.ts +1 -0
- package/lib/anchor/index.js +2 -0
- package/lib/avatar/index.d.ts +1 -0
- package/lib/avatar/index.js +2 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/descriptions/hooks/useItems.d.ts +2 -3
- package/lib/form/FormItem.d.ts +1 -1
- package/lib/modal/Modal.d.ts +6 -6
- package/lib/segmented/index.d.ts +3 -0
- package/lib/segmented/index.js +13 -3
- package/lib/segmented/style/index.js +26 -2
- package/lib/slider/style/index.js +5 -1
- package/lib/static-function/index.js +3 -2
- package/lib/table/index.d.ts +2 -2
- package/lib/tabs/TabPane.d.ts +4 -0
- package/lib/tabs/index.d.ts +4 -0
- package/lib/tabs/index.js +15 -2
- package/lib/tabs/style/index.js +14 -1
- package/lib/theme/default.js +2 -1
- package/lib/theme/style/compact.less +2 -6
- package/lib/theme/style/dark.less +5 -5
- package/lib/theme/style/default.less +2 -6
- package/package.json +10 -10
package/lib/segmented/index.js
CHANGED
|
@@ -37,19 +37,29 @@ var import_react = __toESM(require("react"));
|
|
|
37
37
|
var import_antd = require("antd");
|
|
38
38
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
39
39
|
var import_typography = __toESM(require("../typography"));
|
|
40
|
+
var import_badge = __toESM(require("../badge"));
|
|
40
41
|
var import_style = __toESM(require("./style"));
|
|
41
42
|
__reExport(segmented_exports, require("antd/es/segmented"), module.exports);
|
|
43
|
+
var isReactNode = (item) => {
|
|
44
|
+
return import_react.default.isValidElement(item);
|
|
45
|
+
};
|
|
42
46
|
var Segmented = import_react.default.forwardRef(
|
|
43
47
|
({ prefixCls: customizePrefixCls, options, ...restProps }, ref) => {
|
|
44
48
|
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
45
49
|
const prefixCls = getPrefixCls("segmented", customizePrefixCls);
|
|
46
50
|
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
51
|
+
const renderBadge = (0, import_react.useCallback)((badge) => {
|
|
52
|
+
if (typeof badge === "object" && !isReactNode(badge)) {
|
|
53
|
+
return /* @__PURE__ */ import_react.default.createElement(import_badge.default, { ...badge });
|
|
54
|
+
}
|
|
55
|
+
return /* @__PURE__ */ import_react.default.createElement(import_badge.default, { count: badge });
|
|
56
|
+
}, []);
|
|
47
57
|
const newOptions = options == null ? void 0 : options.map((item) => {
|
|
48
|
-
if (typeof item === "object"
|
|
49
|
-
const { label, ...restItem } = item;
|
|
58
|
+
if (typeof item === "object") {
|
|
59
|
+
const { label, badge, ...restItem } = item;
|
|
50
60
|
return {
|
|
51
61
|
...restItem,
|
|
52
|
-
label: /* @__PURE__ */ import_react.default.createElement(import_typography.default.Text, { ellipsis: item.ellipsis }, label)
|
|
62
|
+
label: /* @__PURE__ */ import_react.default.createElement(import_antd.Flex, { gap: 4, align: "center", justify: "center" }, (item == null ? void 0 : item.ellipsis) ? /* @__PURE__ */ import_react.default.createElement(import_typography.default.Text, { ellipsis: item.ellipsis }, label) : label, badge && renderBadge(badge))
|
|
53
63
|
};
|
|
54
64
|
}
|
|
55
65
|
return item;
|
|
@@ -25,9 +25,33 @@ __export(style_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(style_exports);
|
|
26
26
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
27
|
var genSegmentedStyle = (token) => {
|
|
28
|
-
const { componentCls } = token;
|
|
28
|
+
const { componentCls, antCls, colorFill, colorFillSecondary } = token;
|
|
29
29
|
return {
|
|
30
|
-
[`${componentCls}`]: {
|
|
30
|
+
[`${componentCls} >${componentCls}-group`]: {
|
|
31
|
+
[`&:not(:has(${componentCls}-thumb)) >${componentCls}-item`]: {
|
|
32
|
+
[`&:not(.ant-segmented-item-selected) >${componentCls}-item-label`]: {
|
|
33
|
+
["&:hover"]: {
|
|
34
|
+
[`${antCls}-badge >${antCls}-badge-count`]: {
|
|
35
|
+
backgroundColor: colorFill
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
["&:active"]: {
|
|
39
|
+
[`${antCls}-badge >${antCls}-badge-count`]: {
|
|
40
|
+
backgroundColor: colorFillSecondary
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
[`>${componentCls}-item`]: {
|
|
46
|
+
[`>${componentCls}-item-label`]: {
|
|
47
|
+
[`${antCls}-badge >${antCls}-badge-count`]: {
|
|
48
|
+
backgroundColor: colorFillSecondary,
|
|
49
|
+
color: "inherit",
|
|
50
|
+
boxShadow: "none"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
31
55
|
};
|
|
32
56
|
};
|
|
33
57
|
var style_default = (prefixCls) => {
|
|
@@ -23,9 +23,10 @@ __export(style_exports, {
|
|
|
23
23
|
genSliderStyle: () => genSliderStyle
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(style_exports);
|
|
26
|
+
var import_lodash = require("lodash");
|
|
26
27
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
28
|
var genSliderStyle = (token) => {
|
|
28
|
-
const { componentCls, dotSize = 8 } = token;
|
|
29
|
+
const { componentCls, dotSize = 8, handleSize = 10, handleLineWidth = 2 } = token;
|
|
29
30
|
return {
|
|
30
31
|
[`${componentCls}${componentCls}-horizontal`]: {
|
|
31
32
|
[`${componentCls}-mark`]: {
|
|
@@ -34,6 +35,9 @@ var genSliderStyle = (token) => {
|
|
|
34
35
|
},
|
|
35
36
|
[`${componentCls}-mark-text[style*="left: 100%;"]`]: {
|
|
36
37
|
transform: `translateX(calc(-100% + ${dotSize / 2}px)) !important`
|
|
38
|
+
},
|
|
39
|
+
[`${componentCls}-mark-text[style="transform: translateX(-50%);"]`]: {
|
|
40
|
+
transform: `translateX(calc(0% - ${(handleSize + (0, import_lodash.toNumber)(handleLineWidth) * 2) / 2}px)) !important`
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
}
|
|
@@ -41,14 +41,15 @@ var import_alias = __toESM(require("antd/lib/theme/util/alias"));
|
|
|
41
41
|
var import_theme = __toESM(require("../theme"));
|
|
42
42
|
var import_default = __toESM(require("../theme/default"));
|
|
43
43
|
var { defaultAlgorithm, defaultSeed, useToken } = import_theme.default;
|
|
44
|
-
var _a, _b;
|
|
44
|
+
var _a, _b, _c;
|
|
45
45
|
var mapToken = {
|
|
46
46
|
...defaultAlgorithm(defaultSeed),
|
|
47
47
|
...import_default.default.token,
|
|
48
48
|
// 需要覆盖部分 Alias Token 的值
|
|
49
49
|
override: {
|
|
50
50
|
boxShadow: (_a = import_default.default.token) == null ? void 0 : _a.boxShadow,
|
|
51
|
-
boxShadowSecondary: (_b = import_default.default.token) == null ? void 0 : _b.boxShadowSecondary
|
|
51
|
+
boxShadowSecondary: (_b = import_default.default.token) == null ? void 0 : _b.boxShadowSecondary,
|
|
52
|
+
boxShadowTertiary: (_c = import_default.default.token) == null ? void 0 : _c.boxShadowTertiary
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
55
|
var token = (0, import_alias.default)(mapToken);
|
package/lib/table/index.d.ts
CHANGED
|
@@ -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: <
|
|
42
|
-
ColumnGroup: <
|
|
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>>;
|
package/lib/tabs/TabPane.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { TabPaneProps as AntTabPaneProps } from 'antd/es/tabs/TabPane';
|
|
2
2
|
import type React from 'react';
|
|
3
|
+
import type { BadgeProps } from '../badge';
|
|
4
|
+
type BadgeType = BadgeProps | BadgeProps['count'];
|
|
3
5
|
export interface TabPaneProps extends AntTabPaneProps {
|
|
6
|
+
/** @deprecated please use `badge` instead */
|
|
4
7
|
tag?: React.ReactNode;
|
|
5
8
|
divider?: boolean;
|
|
9
|
+
badge?: BadgeType;
|
|
6
10
|
}
|
|
7
11
|
declare const _default: React.FC<TabPaneProps>;
|
|
8
12
|
export default _default;
|
package/lib/tabs/index.d.ts
CHANGED
|
@@ -2,15 +2,19 @@ import React from 'react';
|
|
|
2
2
|
import type { TabsProps as AntTabsProps, TabsPosition as AntTabsPosition } from 'antd/es/tabs';
|
|
3
3
|
import type { Tab as AntTab } from 'rc-tabs/es/interface';
|
|
4
4
|
import type { TabPaneProps } from './TabPane';
|
|
5
|
+
import type { BadgeProps } from '../badge';
|
|
5
6
|
export * from 'antd/es/tabs';
|
|
6
7
|
export type { TabPaneProps };
|
|
8
|
+
type BadgeType = BadgeProps | BadgeProps['count'];
|
|
7
9
|
export interface AntTabOptional extends Omit<AntTab, 'key' | 'label'> {
|
|
8
10
|
key?: string;
|
|
9
11
|
label?: React.ReactNode;
|
|
10
12
|
}
|
|
11
13
|
export type Tab = {
|
|
14
|
+
/** @deprecated please use `badge` instead */
|
|
12
15
|
tag?: React.ReactNode;
|
|
13
16
|
divider?: boolean;
|
|
17
|
+
badge?: BadgeType;
|
|
14
18
|
} & (AntTab | AntTabOptional);
|
|
15
19
|
export interface TabsProps extends Omit<AntTabsProps, 'items'> {
|
|
16
20
|
items?: Tab[];
|
package/lib/tabs/index.js
CHANGED
|
@@ -37,11 +37,15 @@ var import_util = require("@oceanbase/util");
|
|
|
37
37
|
var import_antd = require("antd");
|
|
38
38
|
var import_react = __toESM(require("react"));
|
|
39
39
|
var import_classnames = __toESM(require("classnames"));
|
|
40
|
+
var import_badge = __toESM(require("../badge"));
|
|
40
41
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
41
42
|
var import_useLegacyItems = __toESM(require("./hooks/useLegacyItems"));
|
|
42
43
|
var import_style = __toESM(require("./style"));
|
|
43
44
|
var import_TabPane = __toESM(require("./TabPane"));
|
|
44
45
|
__reExport(tabs_exports, require("antd/es/tabs"), module.exports);
|
|
46
|
+
var isReactNode = (item) => {
|
|
47
|
+
return import_react.default.isValidElement(item);
|
|
48
|
+
};
|
|
45
49
|
var Tabs = ({
|
|
46
50
|
children,
|
|
47
51
|
items,
|
|
@@ -57,6 +61,15 @@ var Tabs = ({
|
|
|
57
61
|
const tabsCls = (0, import_classnames.default)(className);
|
|
58
62
|
const isHorizontal = !tabPosition || tabPosition === "top" || tabPosition === "bottom";
|
|
59
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) });
|
|
68
|
+
}
|
|
69
|
+
return /* @__PURE__ */ import_react.default.createElement(import_badge.default, { className: `${prefixCls}-tab-badge`, count: badge });
|
|
70
|
+
},
|
|
71
|
+
[prefixCls]
|
|
72
|
+
);
|
|
60
73
|
let newItems = (0, import_useLegacyItems.default)(items, children);
|
|
61
74
|
newItems = newItems == null ? void 0 : newItems.map((item) => {
|
|
62
75
|
if (!(0, import_util.isNullValue)(item.divider)) {
|
|
@@ -72,10 +85,10 @@ var Tabs = ({
|
|
|
72
85
|
),
|
|
73
86
|
disabled: true
|
|
74
87
|
};
|
|
75
|
-
} else if (!(0, import_util.isNullValue)(item.tag)) {
|
|
88
|
+
} else if (!(0, import_util.isNullValue)(item.tag) || !(0, import_util.isNullValue)(item.badge)) {
|
|
76
89
|
return {
|
|
77
90
|
...item,
|
|
78
|
-
label: /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { size: 4 }, item.label, /* @__PURE__ */ import_react.default.createElement(import_antd.Tag, { bordered: false, className: `${prefixCls}-tab-tag` }, item.tag))
|
|
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))
|
|
79
92
|
};
|
|
80
93
|
}
|
|
81
94
|
return item;
|
package/lib/tabs/style/index.js
CHANGED
|
@@ -25,7 +25,7 @@ __export(style_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(style_exports);
|
|
26
26
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
27
|
var genTabsStyle = (token) => {
|
|
28
|
-
const { antCls, componentCls, colorInfo, colorInfoBg, colorTextSecondary } = token;
|
|
28
|
+
const { antCls, componentCls, colorInfo, colorInfoBg, colorTextSecondary, colorFillQuaternary } = token;
|
|
29
29
|
return {
|
|
30
30
|
[componentCls]: {
|
|
31
31
|
[`&${componentCls}-top, &${componentCls}-bottom`]: {
|
|
@@ -35,6 +35,7 @@ var genTabsStyle = (token) => {
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
[`${componentCls}-tab`]: {
|
|
38
|
+
/** @deprecated */
|
|
38
39
|
[`${componentCls}-tab-tag`]: {
|
|
39
40
|
color: colorTextSecondary,
|
|
40
41
|
fontFamily: "PingFangSC",
|
|
@@ -42,12 +43,24 @@ var genTabsStyle = (token) => {
|
|
|
42
43
|
borderRadius: 12,
|
|
43
44
|
marginInlineEnd: 0,
|
|
44
45
|
height: 20
|
|
46
|
+
},
|
|
47
|
+
[`${componentCls}-tab-badge`]: {
|
|
48
|
+
[`>${antCls}-badge-count`]: {
|
|
49
|
+
color: colorTextSecondary,
|
|
50
|
+
backgroundColor: colorFillQuaternary
|
|
51
|
+
},
|
|
52
|
+
borderRadius: 12
|
|
45
53
|
}
|
|
46
54
|
},
|
|
47
55
|
[`${componentCls}-tab-active`]: {
|
|
56
|
+
/** @deprecated */
|
|
48
57
|
[`${componentCls}-tab-tag`]: {
|
|
49
58
|
color: colorInfo,
|
|
50
59
|
backgroundColor: colorInfoBg
|
|
60
|
+
},
|
|
61
|
+
[`${componentCls}-tab-badge >${antCls}-badge-count`]: {
|
|
62
|
+
color: colorInfo,
|
|
63
|
+
backgroundColor: colorInfoBg
|
|
51
64
|
}
|
|
52
65
|
},
|
|
53
66
|
[`${componentCls}-tab[data-node-key^=divider-]`]: {
|
package/lib/theme/default.js
CHANGED
|
@@ -97,8 +97,9 @@ var defaultTheme = {
|
|
|
97
97
|
colorBgMask: "rgba(19, 32, 57, 0.45)",
|
|
98
98
|
colorBgElevated: "#ffffff",
|
|
99
99
|
colorBgSpotlight: "#ffffff",
|
|
100
|
+
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)",
|
|
100
101
|
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)",
|
|
101
|
-
|
|
102
|
+
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)",
|
|
102
103
|
borderRadius: 6,
|
|
103
104
|
wireframe: false,
|
|
104
105
|
// Remove focus outline
|
|
@@ -412,8 +412,9 @@
|
|
|
412
412
|
@borderRadiusSM: 4;
|
|
413
413
|
@borderRadiusLG: 8;
|
|
414
414
|
@borderRadiusOuter: 4;
|
|
415
|
+
@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);
|
|
415
416
|
@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);
|
|
416
|
-
@
|
|
417
|
+
@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);
|
|
417
418
|
@lineWidthFocus: 3;
|
|
418
419
|
@colorFillContent: #e2e8f3;
|
|
419
420
|
@colorFillContentHover: #cdd5e4;
|
|
@@ -471,11 +472,6 @@
|
|
|
471
472
|
@marginLG: 16;
|
|
472
473
|
@marginXL: 32;
|
|
473
474
|
@marginXXL: 48;
|
|
474
|
-
@boxShadowTertiary:
|
|
475
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
476
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
477
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
478
|
-
;
|
|
479
475
|
@screenXS: 480;
|
|
480
476
|
@screenXSMin: 480;
|
|
481
477
|
@screenXSMax: 575;
|
|
@@ -322,8 +322,8 @@
|
|
|
322
322
|
@colorBgBlur: rgba(255,255,255,0.04);
|
|
323
323
|
@colorBorder: #424242;
|
|
324
324
|
@colorBorderSecondary: #303030;
|
|
325
|
-
@colorPrimaryBg: #
|
|
326
|
-
@colorPrimaryBgHover: #
|
|
325
|
+
@colorPrimaryBg: #0e2e5b;
|
|
326
|
+
@colorPrimaryBgHover: #0b3b7e;
|
|
327
327
|
@colorPrimaryBorder: #0e2e5b;
|
|
328
328
|
@colorPrimaryBorderHover: #0b3b7e;
|
|
329
329
|
@colorPrimaryHover: #277de8;
|
|
@@ -436,11 +436,11 @@
|
|
|
436
436
|
@controlOutlineWidth: 2;
|
|
437
437
|
@controlInteractiveSize: 16;
|
|
438
438
|
@controlItemBgHover: rgba(255,255,255,0.08);
|
|
439
|
-
@controlItemBgActive: #
|
|
440
|
-
@controlItemBgActiveHover: #
|
|
439
|
+
@controlItemBgActive: #0e2e5b;
|
|
440
|
+
@controlItemBgActiveHover: #0b3b7e;
|
|
441
441
|
@controlItemBgActiveDisabled: rgba(255,255,255,0.18);
|
|
442
442
|
@controlTmpOutline: rgba(255,255,255,0.04);
|
|
443
|
-
@controlOutline: rgba(
|
|
443
|
+
@controlOutline: rgba(1,104,249,0.31);
|
|
444
444
|
@fontWeightStrong: 600;
|
|
445
445
|
@opacityLoading: 0.65;
|
|
446
446
|
@linkDecoration: none;
|
|
@@ -412,8 +412,9 @@
|
|
|
412
412
|
@borderRadiusSM: 4;
|
|
413
413
|
@borderRadiusLG: 8;
|
|
414
414
|
@borderRadiusOuter: 4;
|
|
415
|
+
@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);
|
|
415
416
|
@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);
|
|
416
|
-
@
|
|
417
|
+
@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);
|
|
417
418
|
@lineWidthFocus: 3;
|
|
418
419
|
@colorFillContent: #e2e8f3;
|
|
419
420
|
@colorFillContentHover: #cdd5e4;
|
|
@@ -471,11 +472,6 @@
|
|
|
471
472
|
@marginLG: 24;
|
|
472
473
|
@marginXL: 32;
|
|
473
474
|
@marginXXL: 48;
|
|
474
|
-
@boxShadowTertiary:
|
|
475
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
476
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
477
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
478
|
-
;
|
|
479
475
|
@screenXS: 480;
|
|
480
476
|
@screenXSMin: 480;
|
|
481
477
|
@screenXSMax: 575;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/design",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.13",
|
|
4
4
|
"description": "The Design System of OceanBase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -43,28 +43,28 @@
|
|
|
43
43
|
"@ctrl/tinycolor": "^4.1.0",
|
|
44
44
|
"@inline-svg-unique-id/react": "^1.2.3",
|
|
45
45
|
"@oceanbase/aliyun-theme": "^0.1.6",
|
|
46
|
-
"@oceanbase/icons": "^0.4.
|
|
47
|
-
"@oceanbase/util": "^0.4.
|
|
46
|
+
"@oceanbase/icons": "^0.4.7",
|
|
47
|
+
"@oceanbase/util": "^0.4.4",
|
|
48
48
|
"ahooks": "^2.10.14",
|
|
49
|
-
"antd": "^5.
|
|
49
|
+
"antd": "^5.26.4",
|
|
50
50
|
"classnames": "^2.5.1",
|
|
51
51
|
"lodash": "^4.17.21",
|
|
52
|
-
"lottie-web": "^5.
|
|
52
|
+
"lottie-web": "^5.13.0",
|
|
53
53
|
"prop-types": "^15.8.1",
|
|
54
54
|
"rc-util": "^5.44.4"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@babel/cli": "^7.
|
|
58
|
-
"@babel/preset-env": "^7.
|
|
57
|
+
"@babel/cli": "^7.28.0",
|
|
58
|
+
"@babel/preset-env": "^7.28.0",
|
|
59
59
|
"antd-token-previewer": "^2.0.8",
|
|
60
|
-
"rc-select": "^14.16.
|
|
60
|
+
"rc-select": "^14.16.8",
|
|
61
61
|
"rc-slider": "^11.1.8",
|
|
62
|
-
"rc-table": "^7.
|
|
62
|
+
"rc-table": "^7.51.1",
|
|
63
63
|
"rc-tree-select": "^5.27.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"react": ">=16.9.0",
|
|
67
67
|
"react-dom": ">=16.9.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "2d9213d7c374b9dc207ebd40663f1c50828e72b7"
|
|
70
70
|
}
|