@oceanbase/design 1.0.0-alpha.2 → 1.0.0-alpha.4
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/_util/genComponentStyleHook.d.ts +2 -2
- package/es/_util/genComponentStyleHook.js +15 -2
- package/es/alert/index.d.ts +2 -2
- package/es/alert/index.js +13 -4
- package/es/alert/style/index.d.ts +1 -1
- package/es/alert/style/index.js +152 -58
- package/es/app/index.d.ts +8 -0
- package/es/app/index.js +36 -1
- package/es/app/style/index.d.ts +9 -0
- package/es/{_util/genStyle.js → app/style/index.js} +10 -11
- package/es/badge/index.js +2 -3
- package/es/badge/style/index.d.ts +1 -1
- package/es/badge/style/index.js +1 -3
- package/es/button/style/index.d.ts +1 -1
- package/es/card/index.d.ts +4 -0
- package/es/card/index.js +64 -7
- package/es/card/style/index.d.ts +1 -1
- package/es/card/style/index.js +32 -8
- package/es/checkbox/style/index.d.ts +1 -1
- package/es/config-provider/context.d.ts +11 -0
- package/es/config-provider/context.js +2 -1
- package/es/config-provider/index.d.ts +2 -2
- package/es/config-provider/index.js +57 -34
- package/es/descriptions/style/index.d.ts +1 -1
- package/es/drawer/index.js +7 -5
- package/es/drawer/style/index.d.ts +1 -1
- package/es/drawer/style/index.js +31 -9
- package/es/empty/index.js +1 -1
- package/es/empty/style/index.d.ts +1 -1
- package/es/form/FormItem.d.ts +2 -1
- package/es/form/FormItem.js +14 -4
- package/es/form/style/index.d.ts +1 -1
- package/es/form/style/index.js +13 -2
- package/es/index.d.ts +4 -2
- package/es/index.js +1 -0
- package/es/input-number/index.d.ts +2 -1
- package/es/locale/ja-JP.d.ts +3 -0
- package/es/locale/ja-JP.js +28 -0
- package/es/modal/Modal.js +20 -6
- package/es/modal/style/index.d.ts +1 -1
- package/es/modal/style/index.js +62 -19
- package/es/radio/style/index.d.ts +1 -1
- package/es/result/index.d.ts +2 -2
- package/es/result/index.js +5 -4
- package/es/result/style/index.d.ts +1 -1
- package/es/select/style/index.d.ts +1 -1
- package/es/slider/style/index.d.ts +1 -1
- package/es/space/style/index.d.ts +1 -1
- package/es/spin/style/index.d.ts +1 -1
- package/es/static-function/index.js +13 -4
- package/es/switch/style/index.d.ts +1 -1
- package/es/table/style/index.d.ts +1 -1
- package/es/table/style/index.js +3 -4
- package/es/tabs/style/index.d.ts +1 -1
- package/es/tabs/style/index.js +4 -2
- package/es/tag/index.d.ts +1 -0
- package/es/tag/index.js +3 -2
- package/es/tag/style/index.d.ts +2 -4
- package/es/tag/style/index.js +20 -31
- package/es/theme/dark.d.ts +1 -48
- package/es/theme/default.d.ts +4 -2
- package/es/theme/default.js +59 -28
- package/es/theme/index.d.ts +20 -57
- package/es/theme/interface.d.ts +66 -0
- package/es/theme/interface.js +4 -1
- package/es/theme/style/aliyun.less +40 -40
- package/es/theme/style/compact.less +79 -72
- package/es/theme/style/dark.less +53 -53
- package/es/theme/style/default.less +79 -72
- package/es/tooltip/style/index.d.ts +1 -1
- package/es/tree-select/style/index.d.ts +1 -1
- package/lib/_util/genComponentStyleHook.d.ts +2 -2
- package/lib/_util/genComponentStyleHook.js +20 -4
- package/lib/alert/index.d.ts +2 -2
- package/lib/alert/index.js +18 -9
- package/lib/alert/style/index.d.ts +1 -1
- package/lib/alert/style/index.js +170 -71
- package/lib/app/index.d.ts +8 -0
- package/lib/app/index.js +36 -1
- package/lib/app/style/index.d.ts +9 -0
- package/lib/{_util/getWeakenBorderColor.js → app/style/index.js} +20 -10
- package/lib/badge/index.js +23 -20
- package/lib/badge/style/index.d.ts +1 -1
- package/lib/badge/style/index.js +1 -3
- package/lib/button/index.js +2 -1
- package/lib/button/style/index.d.ts +1 -1
- package/lib/card/index.d.ts +4 -0
- package/lib/card/index.js +70 -9
- package/lib/card/style/index.d.ts +1 -1
- package/lib/card/style/index.js +56 -10
- package/lib/checkbox/index.js +2 -1
- package/lib/checkbox/style/index.d.ts +1 -1
- package/lib/config-provider/DefaultRenderEmpty.js +4 -3
- package/lib/config-provider/context.d.ts +11 -0
- package/lib/config-provider/index.d.ts +2 -2
- package/lib/config-provider/index.js +70 -26
- package/lib/descriptions/hooks/useItems.js +5 -4
- package/lib/descriptions/index.js +3 -2
- package/lib/descriptions/style/index.d.ts +1 -1
- package/lib/drawer/index.js +44 -33
- package/lib/drawer/style/index.d.ts +1 -1
- package/lib/drawer/style/index.js +33 -6
- package/lib/dropdown/dropdown-button.js +3 -13
- package/lib/dropdown/index.js +2 -2
- package/lib/empty/colored.js +413 -327
- package/lib/empty/database.js +267 -222
- package/lib/empty/default.js +16 -21
- package/lib/empty/guide.js +201 -184
- package/lib/empty/index.js +23 -18
- package/lib/empty/style/index.d.ts +1 -1
- package/lib/form/FormItem.d.ts +2 -1
- package/lib/form/FormItem.js +18 -6
- package/lib/form/index.js +6 -3
- package/lib/form/style/index.d.ts +1 -1
- package/lib/form/style/index.js +19 -0
- package/lib/grid/col.js +2 -1
- package/lib/grid/row.js +2 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.js +3 -0
- package/lib/input/Input.js +3 -2
- package/lib/input/Password.js +3 -2
- package/lib/input/Search.js +3 -2
- package/lib/input/TextArea.js +3 -2
- package/lib/input-number/index.d.ts +2 -1
- package/lib/input-number/index.js +2 -1
- package/lib/list/index.js +3 -2
- package/lib/locale/ja-JP.d.ts +3 -0
- package/lib/locale/ja-JP.js +60 -0
- package/lib/lottie/index.js +2 -1
- package/lib/modal/Modal.js +33 -9
- package/lib/modal/Progress.js +9 -5
- package/lib/modal/style/index.d.ts +1 -1
- package/lib/modal/style/index.js +76 -17
- package/lib/radio/index.js +2 -1
- package/lib/radio/style/index.d.ts +1 -1
- package/lib/result/403.js +156 -121
- package/lib/result/404.js +328 -267
- package/lib/result/500.js +295 -257
- package/lib/result/Error.js +127 -99
- package/lib/result/Processing.js +246 -213
- package/lib/result/Success.js +233 -169
- package/lib/result/Warning.js +611 -515
- package/lib/result/index.d.ts +2 -2
- package/lib/result/index.js +12 -11
- package/lib/result/style/index.d.ts +1 -1
- package/lib/segmented/index.js +8 -4
- package/lib/select/index.js +2 -1
- package/lib/select/style/index.d.ts +1 -1
- package/lib/slider/index.js +2 -1
- package/lib/slider/style/index.d.ts +1 -1
- package/lib/space/index.js +2 -1
- package/lib/space/style/index.d.ts +1 -1
- package/lib/spin/index.js +5 -4
- package/lib/spin/style/index.d.ts +1 -1
- package/lib/static-function/index.js +7 -1
- package/lib/switch/index.js +2 -1
- package/lib/switch/style/index.d.ts +1 -1
- package/lib/table/index.js +44 -31
- package/lib/table/style/index.d.ts +1 -1
- package/lib/table/style/index.js +3 -4
- package/lib/tabs/index.js +10 -5
- package/lib/tabs/style/index.d.ts +1 -1
- package/lib/tabs/style/index.js +5 -0
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/index.js +12 -6
- package/lib/tag/style/index.d.ts +2 -4
- package/lib/tag/style/index.js +20 -27
- package/lib/theme/dark.d.ts +1 -48
- package/lib/theme/default.d.ts +4 -2
- package/lib/theme/default.js +67 -27
- package/lib/theme/index.d.ts +20 -57
- package/lib/theme/interface.d.ts +66 -0
- package/lib/theme/style/aliyun.less +40 -40
- package/lib/theme/style/compact.less +79 -72
- package/lib/theme/style/dark.less +53 -53
- package/lib/theme/style/default.less +79 -72
- package/lib/tooltip/MouseTooltip.js +43 -39
- package/lib/tooltip/ReactStickyMouseTooltip.js +5 -4
- package/lib/tooltip/index.js +14 -10
- package/lib/tooltip/style/index.d.ts +1 -1
- package/lib/tree-select/index.js +2 -1
- package/lib/tree-select/style/index.d.ts +1 -1
- package/lib/typography/Link.js +5 -4
- package/lib/typography/Paragraph.js +5 -4
- package/lib/typography/Text.js +5 -4
- package/lib/typography/Title.js +5 -4
- package/package.json +7 -6
- package/es/_util/genStyle.d.ts +0 -2
- package/es/_util/getWeakenBorderColor.d.ts +0 -1
- package/es/_util/getWeakenBorderColor.js +0 -4
- package/lib/_util/genStyle.d.ts +0 -2
- package/lib/_util/genStyle.js +0 -43
- package/lib/_util/getWeakenBorderColor.d.ts +0 -1
package/es/modal/Modal.js
CHANGED
|
@@ -8,6 +8,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
10
|
import { Modal as AntModal } from 'antd';
|
|
11
|
+
import { ExclamationCircleOutlined, CloseCircleOutlined, CheckCircleOutlined, InfoCircleOutlined } from '@oceanbase/icons';
|
|
11
12
|
import classNames from 'classnames';
|
|
12
13
|
import React, { useContext } from 'react';
|
|
13
14
|
import ConfigProvider from "../config-provider";
|
|
@@ -52,22 +53,35 @@ var Modal = function Modal(_ref) {
|
|
|
52
53
|
// 替换 Modal 上的静态方法,支持消费 ConfigProvider 配置
|
|
53
54
|
// 注意: 不能使用 Modal.info = modal.info 进行属性赋值,需要新建函数赋值,否则仍然无法消费 ConfigProvider 配置
|
|
54
55
|
Modal.info = function (props) {
|
|
55
|
-
return modal.info(
|
|
56
|
+
return modal.info(_objectSpread({
|
|
57
|
+
// use outlined icon
|
|
58
|
+
icon: /*#__PURE__*/_jsx(InfoCircleOutlined, {})
|
|
59
|
+
}, props));
|
|
56
60
|
};
|
|
57
61
|
Modal.success = function (props) {
|
|
58
|
-
return modal.success(
|
|
62
|
+
return modal.success(_objectSpread({
|
|
63
|
+
icon: /*#__PURE__*/_jsx(CheckCircleOutlined, {})
|
|
64
|
+
}, props));
|
|
59
65
|
};
|
|
60
66
|
Modal.error = function (props) {
|
|
61
|
-
return modal.error(
|
|
67
|
+
return modal.error(_objectSpread({
|
|
68
|
+
icon: /*#__PURE__*/_jsx(CloseCircleOutlined, {})
|
|
69
|
+
}, props));
|
|
62
70
|
};
|
|
63
71
|
Modal.warning = function (props) {
|
|
64
|
-
return modal.warning(
|
|
72
|
+
return modal.warning(_objectSpread({
|
|
73
|
+
icon: /*#__PURE__*/_jsx(ExclamationCircleOutlined, {})
|
|
74
|
+
}, props));
|
|
65
75
|
};
|
|
66
76
|
Modal.warn = function (props) {
|
|
67
|
-
return modal.warning(
|
|
77
|
+
return modal.warning(_objectSpread({
|
|
78
|
+
icon: /*#__PURE__*/_jsx(ExclamationCircleOutlined, {})
|
|
79
|
+
}, props));
|
|
68
80
|
};
|
|
69
81
|
Modal.confirm = function (props) {
|
|
70
|
-
return modal.confirm(
|
|
82
|
+
return modal.confirm(_objectSpread({
|
|
83
|
+
icon: /*#__PURE__*/_jsx(ExclamationCircleOutlined, {})
|
|
84
|
+
}, props));
|
|
71
85
|
};
|
|
72
86
|
Modal.useModal = AntModal.useModal;
|
|
73
87
|
Modal.destroyAll = AntModal.destroyAll;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type ModalToken = FullToken<'Modal'>;
|
|
4
4
|
export declare const genModalStyle: GenerateStyle<ModalToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
package/es/modal/style/index.js
CHANGED
|
@@ -6,21 +6,48 @@ import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
|
6
6
|
export var genModalStyle = function genModalStyle(token) {
|
|
7
7
|
var antCls = token.antCls,
|
|
8
8
|
componentCls = token.componentCls,
|
|
9
|
-
marginXXS = token.marginXXS,
|
|
10
9
|
marginLG = token.marginLG,
|
|
11
|
-
paddingMD = token.paddingMD,
|
|
12
|
-
borderRadius = token.borderRadius,
|
|
13
|
-
controlHeight = token.controlHeight,
|
|
14
10
|
fontSizeHeading5 = token.fontSizeHeading5,
|
|
15
|
-
lineHeightHeading5 = token.lineHeightHeading5
|
|
11
|
+
lineHeightHeading5 = token.lineHeightHeading5,
|
|
12
|
+
fontSizeHeading3 = token.fontSizeHeading3,
|
|
13
|
+
colorSplit = token.colorSplit;
|
|
16
14
|
var top = 100;
|
|
17
15
|
var bottom = 100;
|
|
18
16
|
var titleHeight = fontSizeHeading5 * lineHeightHeading5;
|
|
19
|
-
return _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-confirm)"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
marginTop:
|
|
23
|
-
|
|
17
|
+
return _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-confirm):not(").concat(componentCls, "-progress)"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-content"), _defineProperty(_defineProperty(_defineProperty({
|
|
18
|
+
paddingBlock: token.padding
|
|
19
|
+
}, "".concat(componentCls, "-close"), {
|
|
20
|
+
marginTop: token.marginXXS,
|
|
21
|
+
marginRight: token.marginXXS
|
|
22
|
+
}), "".concat(componentCls, "-header"), _defineProperty(_defineProperty({
|
|
23
|
+
position: 'relative',
|
|
24
|
+
marginBottom: 0,
|
|
25
|
+
paddingBottom: token.padding
|
|
26
|
+
}, "".concat(componentCls, "-title"), {
|
|
27
|
+
fontSize: fontSizeHeading3
|
|
28
|
+
}), '&::after', {
|
|
29
|
+
content: '""',
|
|
30
|
+
position: 'absolute',
|
|
31
|
+
bottom: 0,
|
|
32
|
+
left: 0,
|
|
33
|
+
right: 0,
|
|
34
|
+
height: '1px',
|
|
35
|
+
backgroundColor: colorSplit,
|
|
36
|
+
// antd Modal content默认padding通常是24px,使用负margin让分割线贯通
|
|
37
|
+
// 如果antd使用其他padding值,可能需要调整
|
|
38
|
+
marginLeft: "-".concat(token.paddingLG, "px"),
|
|
39
|
+
marginRight: "-".concat(token.paddingLG, "px")
|
|
40
|
+
})), "".concat(componentCls, "-body"), {
|
|
41
|
+
paddingTop: token.paddingLG,
|
|
42
|
+
marginInline: "-".concat(token.marginLG, "px"),
|
|
43
|
+
paddingInline: token.paddingLG
|
|
44
|
+
})), "".concat(componentCls, "-footer"), _defineProperty(_defineProperty({
|
|
45
|
+
paddingTop: token.paddingLG,
|
|
46
|
+
marginTop: 0
|
|
47
|
+
}, "".concat(antCls, "-btn"), {
|
|
48
|
+
height: 28,
|
|
49
|
+
minHeight: 28
|
|
50
|
+
}), "".concat(componentCls, "-footer-content"), _defineProperty({
|
|
24
51
|
display: 'flex',
|
|
25
52
|
justifyContent: 'space-between',
|
|
26
53
|
alignItems: 'center'
|
|
@@ -28,13 +55,16 @@ export var genModalStyle = function genModalStyle(token) {
|
|
|
28
55
|
marginInlineEnd: token.margin,
|
|
29
56
|
// make extra align to start
|
|
30
57
|
textAlign: 'start'
|
|
31
|
-
})))), "".concat(componentCls).concat(componentCls, "-progress"), _defineProperty({}, "".concat(componentCls, "-content"), _defineProperty(_defineProperty(_defineProperty({
|
|
32
|
-
padding:
|
|
33
|
-
}, "".concat(componentCls, "-
|
|
58
|
+
})))), "".concat(componentCls).concat(componentCls, "-progress"), _defineProperty({}, "".concat(componentCls, "-content"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
59
|
+
padding: token.paddingLG
|
|
60
|
+
}, "".concat(componentCls, "-close"), {
|
|
61
|
+
marginTop: token.marginSM,
|
|
62
|
+
marginRight: token.marginXXS
|
|
63
|
+
}), "".concat(componentCls, "-header"), _defineProperty({
|
|
34
64
|
textAlign: 'center',
|
|
35
65
|
marginBottom: token.marginXXL
|
|
36
66
|
}, "".concat(componentCls, "-title"), {
|
|
37
|
-
fontSize:
|
|
67
|
+
fontSize: fontSizeHeading3
|
|
38
68
|
})), "".concat(componentCls, "-body"), _defineProperty(_defineProperty(_defineProperty({
|
|
39
69
|
textAlign: 'center'
|
|
40
70
|
}, "".concat(componentCls, "-progress-loading"), {
|
|
@@ -45,14 +75,27 @@ export var genModalStyle = function genModalStyle(token) {
|
|
|
45
75
|
color: token.colorTextTertiary
|
|
46
76
|
}), "".concat(antCls, "-alert"), {
|
|
47
77
|
textAlign: 'left'
|
|
48
|
-
})), "".concat(componentCls, "-footer"), {
|
|
78
|
+
})), "".concat(componentCls, "-footer"), _defineProperty({
|
|
49
79
|
textAlign: 'center'
|
|
50
|
-
}
|
|
51
|
-
|
|
80
|
+
}, "".concat(antCls, "-btn"), {
|
|
81
|
+
height: 28,
|
|
82
|
+
minHeight: 28
|
|
83
|
+
})))), "".concat(componentCls, "-confirm"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-content"), {
|
|
84
|
+
padding: token.paddingLG
|
|
85
|
+
}), "".concat(componentCls, "-body"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-confirm-title"), {
|
|
86
|
+
fontSize: fontSizeHeading3
|
|
87
|
+
}), "".concat(componentCls, "-confirm-body > ").concat(token.iconCls), {
|
|
88
|
+
height: token.fontSizeHeading3 * token.lineHeight
|
|
89
|
+
}), "".concat(componentCls, "-confirm-paragraph"), {
|
|
90
|
+
rowGap: token.marginSM
|
|
91
|
+
}), "".concat(componentCls, "-confirm-content"), {
|
|
52
92
|
color: token.colorTextSecondary
|
|
53
|
-
}), "".concat(componentCls, "-confirm-btns"), {
|
|
93
|
+
}), "".concat(componentCls, "-confirm-btns"), _defineProperty({
|
|
54
94
|
marginTop: marginLG
|
|
55
|
-
})
|
|
95
|
+
}, "".concat(antCls, "-btn"), {
|
|
96
|
+
height: 28,
|
|
97
|
+
minHeight: 28
|
|
98
|
+
}))));
|
|
56
99
|
};
|
|
57
100
|
export default (function (prefixCls) {
|
|
58
101
|
var useStyle = genComponentStyleHook('Modal', function (token) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type RadioToken = FullToken<'Radio'>;
|
|
4
4
|
export declare const genRadioStyle: GenerateStyle<RadioToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
package/es/result/index.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export type ResultStatusType = AntResultStatusType | 'processing';
|
|
|
8
8
|
export interface ResultProps extends Omit<AntResultProps, 'status'> {
|
|
9
9
|
status?: ResultStatusType;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type ResultType = React.FC<ResultProps> & {
|
|
12
12
|
PRESENTED_IMAGE_403: typeof Image403;
|
|
13
13
|
PRESENTED_IMAGE_404: typeof Image404;
|
|
14
14
|
PRESENTED_IMAGE_500: typeof Image500;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
declare const Result: ResultType;
|
|
17
17
|
export default Result;
|
package/es/result/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["
|
|
2
|
+
var _excluded = ["prefixCls", "className", "status"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -22,15 +22,16 @@ import useStyle from "./style";
|
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
23
|
export * from 'antd/es/result';
|
|
24
24
|
var Result = function Result(_ref) {
|
|
25
|
-
var
|
|
26
|
-
|
|
25
|
+
var customizePrefixCls = _ref.prefixCls,
|
|
26
|
+
className = _ref.className,
|
|
27
|
+
status = _ref.status,
|
|
27
28
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
28
29
|
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
29
30
|
getPrefixCls = _useContext.getPrefixCls;
|
|
30
31
|
var prefixCls = getPrefixCls('result', customizePrefixCls);
|
|
31
32
|
var _useStyle = useStyle(prefixCls),
|
|
32
33
|
wrapSSR = _useStyle.wrapSSR;
|
|
33
|
-
var resultCls = classNames(
|
|
34
|
+
var resultCls = classNames(className);
|
|
34
35
|
var statusMap = {
|
|
35
36
|
success: /*#__PURE__*/_jsx(Success, {}),
|
|
36
37
|
error: /*#__PURE__*/_jsx(Error, {}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type ResultToken = FullToken<'Result'>;
|
|
4
4
|
export declare const genResultStyle: GenerateStyle<ResultToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SelectToken = FullToken<'Select'>;
|
|
4
4
|
export declare const genSelectStyle: GenerateStyle<SelectToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SliderToken = FullToken<'Slider'>;
|
|
4
4
|
export declare const genSliderStyle: GenerateStyle<SliderToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SpaceToken = FullToken<'Space'>;
|
|
4
4
|
export declare const genSpaceStyle: GenerateStyle<SpaceToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
package/es/spin/style/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SpinToken = FullToken<'Spin'> & {
|
|
4
4
|
spinDotSize: number;
|
|
5
5
|
spinDotSizeSM: number;
|
|
@@ -5,17 +5,20 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
import { useContext } from 'react';
|
|
8
9
|
import { App, message as antMessage, Modal as AntModal, notification as antNotification } from 'antd';
|
|
9
10
|
import formatToken from 'antd/lib/theme/util/alias';
|
|
11
|
+
import ConfigProvider from "../config-provider";
|
|
12
|
+
import useModalStyle from "../modal/style";
|
|
10
13
|
import theme from "../theme";
|
|
11
14
|
import defaultTheme from "../theme/default";
|
|
12
15
|
var defaultAlgorithm = theme.defaultAlgorithm,
|
|
13
16
|
defaultSeed = theme.defaultSeed,
|
|
14
17
|
useToken = theme.useToken;
|
|
15
18
|
|
|
16
|
-
//
|
|
19
|
+
// set default token
|
|
17
20
|
var mapToken = _objectSpread(_objectSpread(_objectSpread({}, defaultAlgorithm(defaultSeed)), defaultTheme.token), {}, {
|
|
18
|
-
//
|
|
21
|
+
// need to override some Alias Token values
|
|
19
22
|
override: {
|
|
20
23
|
boxShadow: (_defaultTheme$token = defaultTheme.token) === null || _defaultTheme$token === void 0 ? void 0 : _defaultTheme$token.boxShadow,
|
|
21
24
|
boxShadowSecondary: (_defaultTheme$token2 = defaultTheme.token) === null || _defaultTheme$token2 === void 0 ? void 0 : _defaultTheme$token2.boxShadowSecondary,
|
|
@@ -27,10 +30,16 @@ var message = antMessage;
|
|
|
27
30
|
var notification = antNotification;
|
|
28
31
|
var modal = AntModal;
|
|
29
32
|
export default (function () {
|
|
30
|
-
//
|
|
33
|
+
// automatically inject useToken, avoid declaring it every time
|
|
31
34
|
token = useToken().token;
|
|
35
|
+
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
36
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
37
|
+
var prefixCls = getPrefixCls('modal');
|
|
38
|
+
|
|
39
|
+
// register Modal style, ensure static function can also apply style
|
|
40
|
+
useModalStyle(prefixCls);
|
|
32
41
|
var staticFunction = App.useApp();
|
|
33
|
-
//
|
|
42
|
+
// replace antd's static methods, support consuming ConfigProvider configuration
|
|
34
43
|
message = _objectSpread(_objectSpread({}, staticFunction.message), {}, {
|
|
35
44
|
useMessage: antMessage.useMessage
|
|
36
45
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { FullToken, GenerateStyle } from '
|
|
2
|
+
import type { FullToken, GenerateStyle } from '../../theme/interface';
|
|
3
3
|
export type SwitchToken = FullToken<'Switch'>;
|
|
4
4
|
export declare const genSwitchStyle: GenerateStyle<SwitchToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
|
-
import type { FullToken } from '
|
|
3
|
+
import type { FullToken } from '../../theme/interface';
|
|
4
4
|
export type TableToken = FullToken<'Table'>;
|
|
5
5
|
export declare const genTableStyle: (token: TableToken) => CSSObject;
|
|
6
6
|
declare const _default: (prefixCls: string) => {
|
package/es/table/style/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
18
18
|
padding = token.padding,
|
|
19
19
|
marginLG = token.marginLG,
|
|
20
20
|
marginXS = token.marginXS;
|
|
21
|
+
console.log(token.fontWeight);
|
|
21
22
|
return _ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "".concat(componentCls, "-wrapper ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty({
|
|
22
23
|
color: colorText,
|
|
23
24
|
backgroundColor: colorBgBase,
|
|
@@ -26,9 +27,8 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
26
27
|
borderBottom: "1px solid ".concat(colorBorderSecondary),
|
|
27
28
|
borderRadius: 0
|
|
28
29
|
}), "".concat(componentCls, "-thead > tr"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'th', {
|
|
29
|
-
// 弱化列标题
|
|
30
30
|
color: colorTextSecondary,
|
|
31
|
-
fontWeight:
|
|
31
|
+
fontWeight: token.fontWeight,
|
|
32
32
|
backgroundColor: colorBgBase
|
|
33
33
|
}), "th".concat(componentCls, "-column-has-sorters"), {
|
|
34
34
|
backgroundColor: colorBgBase
|
|
@@ -73,7 +73,6 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
73
73
|
}, "".concat(componentCls, "-thead > tr > th, ").concat(componentCls, "-tbody > tr > td"), _defineProperty({}, '&:last-child', {
|
|
74
74
|
borderInlineEnd: 'none'
|
|
75
75
|
})))), "".concat(componentCls, "-wrapper ").concat(componentCls, ":not(").concat(componentCls, "-bordered)"), _defineProperty({}, "".concat(componentCls, "-thead, ").concat(componentCls, "-tbody"), _defineProperty({}, 'td, th', _defineProperty(_defineProperty({}, "&".concat(componentCls, "-row-expand-icon-cell"), {
|
|
76
|
-
backgroundColor: colorBgBase,
|
|
77
76
|
// 设置 paddingRight 即可
|
|
78
77
|
paddingRight: token.paddingXS
|
|
79
78
|
}), "&".concat(componentCls, "-selection-column, &").concat(componentCls, "-row-expand-icon-cell"), _defineProperty({}, "& + td, & + th", {
|
|
@@ -110,7 +109,7 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
110
109
|
marginRight: marginLG
|
|
111
110
|
}, "".concat(componentCls, "-batch-operation-selection"), _defineProperty({
|
|
112
111
|
color: colorTextSecondary,
|
|
113
|
-
fontWeight:
|
|
112
|
+
fontWeight: token.fontWeightStrong
|
|
114
113
|
}, "".concat(componentCls, "-batch-operation-selection-count"), {
|
|
115
114
|
margin: "0 ".concat(marginXS, "px"),
|
|
116
115
|
color: colorLink
|
package/es/tabs/style/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
|
-
import type { FullToken } from '
|
|
3
|
+
import type { FullToken } from '../../theme/interface';
|
|
4
4
|
export type TabsToken = FullToken<'Tabs'>;
|
|
5
5
|
export declare const genTabsStyle: (token: Partial<TabsToken>) => CSSObject;
|
|
6
6
|
declare const _default: (prefixCls: string) => {
|
package/es/tabs/style/index.js
CHANGED
|
@@ -10,9 +10,11 @@ export var genTabsStyle = function genTabsStyle(token) {
|
|
|
10
10
|
colorInfoBg = token.colorInfoBg,
|
|
11
11
|
colorTextSecondary = token.colorTextSecondary,
|
|
12
12
|
colorFillQuaternary = token.colorFillQuaternary;
|
|
13
|
-
return _defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&".concat(componentCls, "-no-divider"), _defineProperty({}, "&".concat(componentCls, "-top, &").concat(componentCls, "-bottom"), _defineProperty({}, "".concat(componentCls, "-nav::before"), {
|
|
13
|
+
return _defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&".concat(componentCls, "-no-divider"), _defineProperty({}, "&".concat(componentCls, "-top, &").concat(componentCls, "-bottom"), _defineProperty({}, "".concat(componentCls, "-nav::before"), {
|
|
14
14
|
border: 'none'
|
|
15
|
-
}))), "".concat(componentCls, "-
|
|
15
|
+
}))), "&".concat(componentCls, "-left, &").concat(componentCls, "-right"), _defineProperty({}, "".concat(componentCls, "-tab[data-node-key^=divider-]"), {
|
|
16
|
+
paddingBlock: 0
|
|
17
|
+
})), "".concat(componentCls, "-tab"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-tab-tag"), {
|
|
16
18
|
color: colorTextSecondary,
|
|
17
19
|
fontSize: 12,
|
|
18
20
|
borderRadius: 12,
|
package/es/tag/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { Ellipsis } from '../_util/getEllipsisConfig';
|
|
|
4
4
|
export * from 'antd/es/tag';
|
|
5
5
|
export interface TagProps extends AntTagProps {
|
|
6
6
|
ellipsis?: Ellipsis;
|
|
7
|
+
pill?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const _default: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLSpanElement>> & {
|
|
9
10
|
CheckableTag: React.ForwardRefExoticComponent<import("antd/es/tag").CheckableTagProps & React.RefAttributes<HTMLSpanElement>>;
|
package/es/tag/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["children", "prefixCls", "icon", "className", "ellipsis"];
|
|
2
|
+
var _excluded = ["children", "prefixCls", "icon", "className", "ellipsis", "pill"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -28,6 +28,7 @@ var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
28
28
|
title: children
|
|
29
29
|
}
|
|
30
30
|
} : _ref$ellipsis,
|
|
31
|
+
pill = _ref.pill,
|
|
31
32
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
32
33
|
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
33
34
|
getPrefixCls = _useContext.getPrefixCls;
|
|
@@ -35,7 +36,7 @@ var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
35
36
|
var _useStyle = useStyle(prefixCls),
|
|
36
37
|
wrapSSR = _useStyle.wrapSSR;
|
|
37
38
|
var ellipsisConfig = getEllipsisConfig(ellipsis, children);
|
|
38
|
-
var tagCls = classNames(_defineProperty({}, "".concat(prefixCls, "-ellipsis"), !!ellipsisConfig), className);
|
|
39
|
+
var tagCls = classNames(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-ellipsis"), !!ellipsisConfig), "".concat(prefixCls, "-pill"), pill), className);
|
|
39
40
|
var realIcon = icon ? /*#__PURE__*/_jsx("span", {
|
|
40
41
|
className: "".concat(prefixCls, "-icon"),
|
|
41
42
|
children: icon
|
package/es/tag/style/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type FullToken } from 'antd/es/theme/internal';
|
|
3
2
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
import type { FullToken } from '../../theme/interface';
|
|
4
|
+
export type TagToken = FullToken<'Tag'>;
|
|
7
5
|
export declare const genTagStyle: (token: TagToken) => CSSObject;
|
|
8
6
|
declare const _default: (prefixCls: string) => {
|
|
9
7
|
wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
package/es/tag/style/index.js
CHANGED
|
@@ -4,43 +4,30 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
4
4
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
5
|
import { mergeToken } from 'antd/es/theme/internal';
|
|
6
6
|
import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
|
|
7
|
-
import { genPresetColor } from 'antd/lib/theme/internal';
|
|
8
|
-
import { getWeakenBorderColor } from "../../_util/getWeakenBorderColor";
|
|
9
|
-
var getTagBorderColor = function getTagBorderColor(color) {
|
|
10
|
-
return getWeakenBorderColor(color);
|
|
11
|
-
};
|
|
12
7
|
var genTagPresetStatusStyle = function genTagPresetStatusStyle(token, status) {
|
|
13
|
-
var
|
|
14
|
-
success: token.
|
|
15
|
-
processing: token.
|
|
16
|
-
error: token.
|
|
17
|
-
warning: token.
|
|
8
|
+
var colorMap = {
|
|
9
|
+
success: token.colorSuccessText,
|
|
10
|
+
processing: token.colorInfoText,
|
|
11
|
+
error: token.colorErrorText,
|
|
12
|
+
warning: token.colorWarningText
|
|
18
13
|
};
|
|
19
14
|
return _defineProperty({}, "".concat(token.componentCls).concat(token.componentCls, "-").concat(status), {
|
|
20
|
-
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
var genPresetStyle = function genPresetStyle(token) {
|
|
24
|
-
return genPresetColor(token, function (colorKey, _ref2) {
|
|
25
|
-
var lightBorderColor = _ref2.lightBorderColor;
|
|
26
|
-
return _defineProperty({}, "".concat(token.componentCls).concat(token.componentCls, "-").concat(colorKey), {
|
|
27
|
-
borderColor: getTagBorderColor(lightBorderColor)
|
|
28
|
-
});
|
|
15
|
+
color: colorMap[status]
|
|
29
16
|
});
|
|
30
17
|
};
|
|
31
18
|
export var genTagStyle = function genTagStyle(token) {
|
|
32
19
|
var antCls = token.antCls,
|
|
33
20
|
componentCls = token.componentCls,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
calc = token.calc;
|
|
37
|
-
var paddingInline = calc(tagPaddingHorizontal).sub(lineWidth).equal();
|
|
38
|
-
return _defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
21
|
+
iconCls = token.iconCls;
|
|
22
|
+
return _defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
39
23
|
paddingInline: token.paddingXS,
|
|
40
|
-
borderColor: getTagBorderColor(token.colorBorder),
|
|
41
24
|
fontSize: token.fontSizeSM
|
|
42
|
-
}, "
|
|
43
|
-
|
|
25
|
+
}, "&:not(".concat(componentCls, "-pill)"), {
|
|
26
|
+
fontWeight: token.fontWeightStrong
|
|
27
|
+
}), "".concat(componentCls, "-close-icon").concat(iconCls), {
|
|
28
|
+
marginInlineStart: token.marginXXS
|
|
29
|
+
}), "".concat(antCls, "-typography"), _defineProperty({}, "".concat(componentCls, "-icon"), {
|
|
30
|
+
marginInlineEnd: token.marginXXS
|
|
44
31
|
})), '&-ellipsis', {
|
|
45
32
|
maxWidth: '100%',
|
|
46
33
|
textOverflow: 'ellipsis',
|
|
@@ -52,14 +39,16 @@ export var genTagStyle = function genTagStyle(token) {
|
|
|
52
39
|
display: 'none'
|
|
53
40
|
}), '&-borderless', {
|
|
54
41
|
borderColor: 'transparent'
|
|
42
|
+
}), '&-pill', {
|
|
43
|
+
borderRadius: 100,
|
|
44
|
+
lineHeight: token.lineHeight,
|
|
45
|
+
marginInlineEnd: token.marginXXS
|
|
55
46
|
}));
|
|
56
47
|
};
|
|
57
48
|
export default (function (prefixCls) {
|
|
58
49
|
var useStyle = genComponentStyleHook('Tag', function (token) {
|
|
59
|
-
var tagToken = mergeToken(token, {
|
|
60
|
-
|
|
61
|
-
});
|
|
62
|
-
return [genTagStyle(tagToken), genPresetStyle(tagToken), genTagPresetStatusStyle(tagToken, 'success'), genTagPresetStatusStyle(tagToken, 'error'), genTagPresetStatusStyle(tagToken, 'processing'), genTagPresetStatusStyle(tagToken, 'warning')];
|
|
50
|
+
var tagToken = mergeToken(token, {});
|
|
51
|
+
return [genTagStyle(tagToken), genTagPresetStatusStyle(tagToken, 'success'), genTagPresetStatusStyle(tagToken, 'error'), genTagPresetStatusStyle(tagToken, 'processing'), genTagPresetStatusStyle(tagToken, 'warning')];
|
|
63
52
|
});
|
|
64
53
|
return useStyle(prefixCls);
|
|
65
54
|
});
|
package/es/theme/dark.d.ts
CHANGED
|
@@ -1,52 +1,5 @@
|
|
|
1
1
|
declare const darkTheme: {
|
|
2
|
-
token:
|
|
3
|
-
colorPrimary: string;
|
|
4
|
-
colorSuccess: string;
|
|
5
|
-
colorWarning: string;
|
|
6
|
-
colorError: string;
|
|
7
|
-
colorInfo: string;
|
|
8
|
-
colorTextBase: string;
|
|
9
|
-
colorBgBase: string;
|
|
10
|
-
colorLink: string;
|
|
11
|
-
fontFamily: string;
|
|
12
|
-
fontFamilyCode: string;
|
|
13
|
-
fontSize: number;
|
|
14
|
-
lineWidth: number;
|
|
15
|
-
lineType: string;
|
|
16
|
-
borderRadius: number;
|
|
17
|
-
sizeUnit: number;
|
|
18
|
-
sizeStep: number;
|
|
19
|
-
sizePopupArrow: number;
|
|
20
|
-
controlHeight: number;
|
|
21
|
-
zIndexBase: number;
|
|
22
|
-
zIndexPopupBase: number;
|
|
23
|
-
opacityImage: number;
|
|
24
|
-
motionUnit: number;
|
|
25
|
-
motionBase: number;
|
|
26
|
-
motionEaseOutCirc: string;
|
|
27
|
-
motionEaseInOutCirc: string;
|
|
28
|
-
motionEaseInOut: string;
|
|
29
|
-
motionEaseOutBack: string;
|
|
30
|
-
motionEaseInBack: string;
|
|
31
|
-
motionEaseInQuint: string;
|
|
32
|
-
motionEaseOutQuint: string;
|
|
33
|
-
motionEaseOut: string;
|
|
34
|
-
wireframe: boolean;
|
|
35
|
-
motion: boolean;
|
|
36
|
-
blue: string;
|
|
37
|
-
purple: string;
|
|
38
|
-
cyan: string;
|
|
39
|
-
green: string;
|
|
40
|
-
magenta: string;
|
|
41
|
-
pink: string;
|
|
42
|
-
red: string;
|
|
43
|
-
orange: string;
|
|
44
|
-
yellow: string;
|
|
45
|
-
volcano: string;
|
|
46
|
-
geekblue: string;
|
|
47
|
-
lime: string;
|
|
48
|
-
gold: string;
|
|
49
|
-
};
|
|
2
|
+
token: import("antd/es/theme/internal").SeedToken;
|
|
50
3
|
components: {
|
|
51
4
|
InputNumber: {
|
|
52
5
|
handleVisible: boolean;
|
package/es/theme/default.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { ThemeConfig } from 'antd';
|
|
2
1
|
export declare const fontFamilyEn = "Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'";
|
|
3
|
-
declare const
|
|
2
|
+
export declare const fontWeightWeakEn = 400;
|
|
3
|
+
export declare const fontWeightEn = 500;
|
|
4
|
+
export declare const fontWeightStrongEn = 600;
|
|
5
|
+
declare const _default: import("antd").ThemeConfig;
|
|
4
6
|
export default _default;
|