@oceanbase/design 1.0.0-alpha.1 → 1.0.0-alpha.3
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/style/index.d.ts +1 -1
- 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/style/index.d.ts +1 -1
- package/es/badge/style/index.js +7 -10
- package/es/button/style/index.d.ts +1 -1
- package/es/card/index.js +5 -1
- package/es/card/style/index.d.ts +1 -1
- package/es/card/style/index.js +8 -2
- 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.js +31 -32
- package/es/descriptions/hooks/useItems.d.ts +6 -6
- package/es/descriptions/style/index.d.ts +1 -1
- package/es/descriptions/style/index.js +4 -2
- package/es/drawer/index.js +7 -5
- package/es/drawer/style/index.d.ts +1 -1
- package/es/drawer/style/index.js +11 -7
- package/es/empty/index.js +1 -1
- package/es/empty/style/index.d.ts +1 -1
- package/es/form/FormItem.d.ts +1 -1
- package/es/form/style/index.d.ts +1 -1
- package/es/index.d.ts +4 -2
- package/es/index.js +1 -0
- package/es/modal/style/index.d.ts +1 -1
- 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/switch/style/index.d.ts +1 -1
- package/es/table/style/index.d.ts +1 -1
- package/es/table/style/index.js +1 -3
- package/es/tabs/style/index.d.ts +1 -1
- package/es/tabs/style/index.js +1 -2
- package/es/tag/style/index.d.ts +2 -4
- package/es/tag/style/index.js +14 -31
- package/es/theme/dark.d.ts +1 -48
- package/es/theme/default.d.ts +4 -2
- package/es/theme/default.js +71 -35
- 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 +41 -41
- package/es/theme/style/compact.less +87 -80
- package/es/theme/style/dark.less +58 -58
- package/es/theme/style/default.less +89 -82
- 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.js +7 -6
- package/lib/alert/style/index.d.ts +1 -1
- 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 +21 -18
- package/lib/badge/style/index.d.ts +1 -1
- package/lib/badge/style/index.js +6 -7
- package/lib/button/index.js +2 -1
- package/lib/button/style/index.d.ts +1 -1
- package/lib/card/index.js +14 -5
- package/lib/card/style/index.d.ts +1 -1
- package/lib/card/style/index.js +10 -0
- 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.js +36 -25
- package/lib/descriptions/hooks/useItems.d.ts +6 -6
- 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/descriptions/style/index.js +6 -1
- package/lib/drawer/index.js +44 -33
- package/lib/drawer/style/index.d.ts +1 -1
- package/lib/drawer/style/index.js +11 -5
- 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 +1 -1
- package/lib/form/FormItem.js +9 -5
- package/lib/form/index.js +6 -3
- package/lib/form/style/index.d.ts +1 -1
- 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.js +2 -1
- package/lib/list/index.js +3 -2
- package/lib/lottie/index.js +2 -1
- package/lib/modal/Modal.js +7 -3
- package/lib/modal/Progress.js +9 -5
- package/lib/modal/style/index.d.ts +1 -1
- 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/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 +2 -4
- package/lib/tabs/index.js +10 -5
- package/lib/tabs/style/index.d.ts +1 -1
- package/lib/tabs/style/index.js +1 -2
- package/lib/tag/index.js +9 -5
- package/lib/tag/style/index.d.ts +2 -4
- package/lib/tag/style/index.js +12 -27
- package/lib/theme/dark.d.ts +1 -48
- package/lib/theme/default.d.ts +4 -2
- package/lib/theme/default.js +79 -34
- package/lib/theme/index.d.ts +20 -57
- package/lib/theme/interface.d.ts +66 -0
- package/lib/theme/style/aliyun.less +41 -41
- package/lib/theme/style/compact.less +87 -80
- package/lib/theme/style/dark.less +58 -58
- package/lib/theme/style/default.less +89 -82
- 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 +8 -7
- 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/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export { default as Space } from "./space";
|
|
|
7
7
|
export { Col, Row } from "./grid";
|
|
8
8
|
export { default as Typography } from "./typography";
|
|
9
9
|
export { default as Card } from "./card";
|
|
10
|
+
export { default as App } from "./app";
|
|
10
11
|
export { default as ConfigProvider } from "./config-provider";
|
|
11
12
|
export { default as Descriptions } from "./descriptions";
|
|
12
13
|
export { default as Empty } from "./empty";
|
|
@@ -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) => {
|
|
@@ -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;
|
|
@@ -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
|
@@ -46,9 +46,7 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
46
46
|
borderBottom: 'none'
|
|
47
47
|
})), "tr > td", {
|
|
48
48
|
transition: "background ".concat(token.motionDurationMid)
|
|
49
|
-
}), "".concat(componentCls, "-placeholder td"), {
|
|
50
|
-
borderBottom: 'none'
|
|
51
|
-
}), "".concat(componentCls, "-empty-wrapper"), {
|
|
49
|
+
}), "".concat(componentCls, "-placeholder td"), {}), "".concat(componentCls, "-empty-wrapper"), {
|
|
52
50
|
minHeight: 360 - token.paddingSM * 2,
|
|
53
51
|
display: 'flex',
|
|
54
52
|
justifyContent: 'center',
|
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
|
@@ -14,11 +14,10 @@ export var genTabsStyle = function genTabsStyle(token) {
|
|
|
14
14
|
border: 'none'
|
|
15
15
|
}))), "".concat(componentCls, "-tab"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-tab-tag"), {
|
|
16
16
|
color: colorTextSecondary,
|
|
17
|
-
fontFamily: 'PingFangSC',
|
|
18
17
|
fontSize: 12,
|
|
19
18
|
borderRadius: 12,
|
|
20
19
|
marginInlineEnd: 0,
|
|
21
|
-
height:
|
|
20
|
+
height: token.controlHeightSM
|
|
22
21
|
}), "".concat(componentCls, "-tab-badge"), _defineProperty(_defineProperty({}, ">".concat(antCls, "-badge-count"), {
|
|
23
22
|
color: colorTextSecondary,
|
|
24
23
|
backgroundColor: colorFillQuaternary
|
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,28 @@ 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({
|
|
39
23
|
paddingInline: token.paddingXS,
|
|
40
|
-
borderColor: getTagBorderColor(token.colorBorder),
|
|
41
24
|
fontSize: token.fontSizeSM
|
|
42
|
-
}, "".concat(
|
|
43
|
-
|
|
25
|
+
}, "".concat(componentCls, "-close-icon").concat(iconCls), {
|
|
26
|
+
marginInlineStart: token.marginXXS
|
|
27
|
+
}), "".concat(antCls, "-typography"), _defineProperty({}, "".concat(componentCls, "-icon"), {
|
|
28
|
+
marginInlineEnd: token.marginXXS
|
|
44
29
|
})), '&-ellipsis', {
|
|
45
30
|
maxWidth: '100%',
|
|
46
31
|
textOverflow: 'ellipsis',
|
|
@@ -56,10 +41,8 @@ export var genTagStyle = function genTagStyle(token) {
|
|
|
56
41
|
};
|
|
57
42
|
export default (function (prefixCls) {
|
|
58
43
|
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')];
|
|
44
|
+
var tagToken = mergeToken(token, {});
|
|
45
|
+
return [genTagStyle(tagToken), genTagPresetStatusStyle(tagToken, 'success'), genTagPresetStatusStyle(tagToken, 'error'), genTagPresetStatusStyle(tagToken, 'processing'), genTagPresetStatusStyle(tagToken, 'warning')];
|
|
63
46
|
});
|
|
64
47
|
return useStyle(prefixCls);
|
|
65
48
|
});
|
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;
|
package/es/theme/default.js
CHANGED
|
@@ -11,43 +11,64 @@ var colorPrimarySecondary = '#598CF3';
|
|
|
11
11
|
var colorText = '#132039';
|
|
12
12
|
var colorTextSecondary = '#5C6B8A';
|
|
13
13
|
var colorTextTertiary = '#8592AD';
|
|
14
|
-
var colorTextQuaternary = '#
|
|
14
|
+
var colorTextQuaternary = '#B6C0D4';
|
|
15
15
|
var colorFill = '#CDD5E4';
|
|
16
16
|
var colorFillSecondary = '#E2E8F3';
|
|
17
|
-
var colorFillTertiary = '#
|
|
18
|
-
var colorFillQuaternary = '#
|
|
19
|
-
var colorFillHover = '#EFF3FA';
|
|
20
|
-
var colorFillSelected = '#E2E8F3';
|
|
17
|
+
var colorFillTertiary = '#EFF3FA';
|
|
18
|
+
var colorFillQuaternary = '#F7F9FC';
|
|
21
19
|
var colorBorderSecondary = colorFillSecondary;
|
|
22
|
-
|
|
23
|
-
var tagColorBorder =
|
|
20
|
+
var fontSizeSM = 12;
|
|
21
|
+
var tagColorBorder = colorTextQuaternary;
|
|
24
22
|
export var fontFamilyEn = "Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'";
|
|
23
|
+
export var fontWeightWeakEn = 400;
|
|
24
|
+
export var fontWeightEn = 500;
|
|
25
|
+
export var fontWeightStrongEn = 600;
|
|
25
26
|
var defaultTheme = {
|
|
26
27
|
token: {
|
|
27
28
|
fontFamily: "-apple-system, 'Noto Sans', BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
|
28
29
|
fontFamilyCode: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
fontWeightWeak: 400,
|
|
31
|
+
fontWeight: 400,
|
|
32
|
+
fontWeightStrong: 500,
|
|
31
33
|
borderRadiusSM: 2,
|
|
34
|
+
borderRadius: 4,
|
|
35
|
+
borderRadiusMD: 6,
|
|
36
|
+
borderRadiusLG: 8,
|
|
37
|
+
fontSizeSM: fontSizeSM,
|
|
32
38
|
fontSize: 13,
|
|
33
|
-
|
|
39
|
+
lineHeight: 20 / 13,
|
|
40
|
+
fontHeight: 20,
|
|
41
|
+
fontSizeLG: 16,
|
|
42
|
+
fontSizeHeading1: 24,
|
|
43
|
+
fontSizeHeading2: 20,
|
|
44
|
+
fontSizeHeading3: 18,
|
|
45
|
+
fontSizeHeading4: 16,
|
|
46
|
+
fontSizeHeading5: 13,
|
|
47
|
+
controlHeightSM: 24,
|
|
48
|
+
controlHeight: 28,
|
|
34
49
|
colorPrimary: colorPrimary,
|
|
35
50
|
colorInfo: colorPrimary,
|
|
36
|
-
colorInfoBorder: '#
|
|
37
|
-
colorInfoBg: '#
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
51
|
+
colorInfoBorder: '#619EF3',
|
|
52
|
+
colorInfoBg: '#F3F8FE',
|
|
53
|
+
colorInfoHover: '#0852BB',
|
|
54
|
+
colorInfoActive: '#0852BB',
|
|
55
|
+
colorInfoText: '#0D3C80',
|
|
56
|
+
colorSuccess: '#16B882',
|
|
57
|
+
colorSuccessBorder: '#79D1B4',
|
|
58
|
+
colorSuccessBg: '#F5FAF8',
|
|
59
|
+
colorSuccessText: '#09593F',
|
|
43
60
|
colorWarning: '#F49F25',
|
|
44
|
-
colorWarningBorder: '#
|
|
45
|
-
colorWarningBg: '#
|
|
46
|
-
colorWarningText: '#
|
|
47
|
-
colorError: '#
|
|
61
|
+
colorWarningBorder: '#FAC373',
|
|
62
|
+
colorWarningBg: '#FFF9EE',
|
|
63
|
+
colorWarningText: '#6C4408',
|
|
64
|
+
colorError: '#EB4242',
|
|
48
65
|
colorErrorBorder: '#F69898',
|
|
49
|
-
colorErrorBg: '#
|
|
66
|
+
colorErrorBg: '#FFF2F2',
|
|
50
67
|
colorErrorText: '#8A1B1B',
|
|
68
|
+
colorFuchsia: '#B04EC4',
|
|
69
|
+
colorFuchsiaBorder: '#D88EE7',
|
|
70
|
+
colorFuchsiaBg: '#FAF0FC',
|
|
71
|
+
colorFuchsiaText: '#580E67',
|
|
51
72
|
colorTextBase: '#000000',
|
|
52
73
|
colorText: colorText,
|
|
53
74
|
colorTextSecondary: colorTextSecondary,
|
|
@@ -63,7 +84,8 @@ var defaultTheme = {
|
|
|
63
84
|
colorFillSecondary: colorFillSecondary,
|
|
64
85
|
colorFillTertiary: colorFillTertiary,
|
|
65
86
|
colorFillQuaternary: colorFillQuaternary,
|
|
66
|
-
|
|
87
|
+
colorBgContainerDisabled: colorFillTertiary,
|
|
88
|
+
colorBgMask: 'rgba(19, 32, 57, 0.6)',
|
|
67
89
|
colorBgElevated: '#ffffff',
|
|
68
90
|
colorBgSpotlight: '#ffffff',
|
|
69
91
|
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)',
|
|
@@ -74,16 +96,20 @@ var defaultTheme = {
|
|
|
74
96
|
lineWidthFocus: 0
|
|
75
97
|
},
|
|
76
98
|
components: {
|
|
77
|
-
Badge: {
|
|
78
|
-
colorInfo: colorPrimarySecondary
|
|
79
|
-
},
|
|
80
99
|
Breadcrumb: {
|
|
81
|
-
fontSize:
|
|
82
|
-
// @ts-ignore
|
|
83
|
-
// fontHeight is internal token
|
|
100
|
+
fontSize: fontSizeSM,
|
|
84
101
|
fontHeight: 20,
|
|
85
102
|
lastItemColor: colorTextSecondary
|
|
86
103
|
},
|
|
104
|
+
Button: {
|
|
105
|
+
contentFontSizeSM: 12,
|
|
106
|
+
borderRadiusSM: 4,
|
|
107
|
+
borderRadius: 4,
|
|
108
|
+
borderRadiusLG: 4,
|
|
109
|
+
paddingInlineSM: 8,
|
|
110
|
+
paddingInline: 12,
|
|
111
|
+
paddingInlineLG: 12
|
|
112
|
+
},
|
|
87
113
|
Card: {
|
|
88
114
|
headerFontSize: 16,
|
|
89
115
|
borderRadiusLG: 8
|
|
@@ -91,6 +117,9 @@ var defaultTheme = {
|
|
|
91
117
|
Collapse: {
|
|
92
118
|
colorBorder: colorBorderSecondary
|
|
93
119
|
},
|
|
120
|
+
Descriptions: {
|
|
121
|
+
labelColor: colorTextSecondary
|
|
122
|
+
},
|
|
94
123
|
InputNumber: {
|
|
95
124
|
handleVisible: true
|
|
96
125
|
},
|
|
@@ -101,6 +130,9 @@ var defaultTheme = {
|
|
|
101
130
|
// temporarily fix style for checked disabled Radio.Button
|
|
102
131
|
controlItemBgActiveDisabled: colorFillSecondary
|
|
103
132
|
},
|
|
133
|
+
Segmented: {
|
|
134
|
+
trackBg: colorFillTertiary
|
|
135
|
+
},
|
|
104
136
|
Select: {
|
|
105
137
|
// work for all multiple select component, including Select, TreeSelect and Cascader and so on
|
|
106
138
|
multipleItemBg: colorFillQuaternary,
|
|
@@ -115,6 +147,9 @@ var defaultTheme = {
|
|
|
115
147
|
handleActiveColor: '#5189fb',
|
|
116
148
|
handleColorDisabled: '#b3ccff'
|
|
117
149
|
},
|
|
150
|
+
Skeleton: {
|
|
151
|
+
blockRadius: 4
|
|
152
|
+
},
|
|
118
153
|
Tabs: {
|
|
119
154
|
horizontalItemGutter: 24,
|
|
120
155
|
itemActiveColor: colorText,
|
|
@@ -122,15 +157,15 @@ var defaultTheme = {
|
|
|
122
157
|
itemHoverColor: colorText
|
|
123
158
|
},
|
|
124
159
|
Tag: {
|
|
125
|
-
|
|
126
|
-
|
|
160
|
+
colorBorder: tagColorBorder,
|
|
161
|
+
borderRadiusSM: 4
|
|
127
162
|
},
|
|
128
163
|
Table: {
|
|
129
|
-
cellFontSize:
|
|
164
|
+
cellFontSize: fontSizeSM,
|
|
130
165
|
headerSplitColor: 'transparent',
|
|
131
|
-
cellPaddingBlock:
|
|
166
|
+
cellPaddingBlock: 8,
|
|
132
167
|
cellPaddingInline: 16,
|
|
133
|
-
cellPaddingBlockMD:
|
|
168
|
+
cellPaddingBlockMD: 6,
|
|
134
169
|
cellPaddingBlockSM: 4,
|
|
135
170
|
rowHoverBg: colorFillQuaternary,
|
|
136
171
|
rowSelectedBg: colorFillQuaternary,
|
|
@@ -151,7 +186,8 @@ var defaultTheme = {
|
|
|
151
186
|
itemColor: '#36496F',
|
|
152
187
|
itemSelectedColor: colorText,
|
|
153
188
|
itemMarginBlock: 6,
|
|
154
|
-
groupTitleFontSize: 11
|
|
189
|
+
groupTitleFontSize: 11,
|
|
190
|
+
groupTitleColor: colorTextSecondary
|
|
155
191
|
}
|
|
156
192
|
}
|
|
157
193
|
};
|
package/es/theme/index.d.ts
CHANGED
|
@@ -1,71 +1,34 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { theme } from 'antd';
|
|
3
|
+
import type { Theme } from '@ant-design/cssinjs';
|
|
4
|
+
import type { SeedToken } from 'antd/lib/theme/interface';
|
|
5
|
+
import type { GlobalToken, AliasToken } from './interface';
|
|
2
6
|
export * from 'antd/lib/theme/internal';
|
|
3
7
|
export * from 'antd/lib/theme';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
defaultSeed:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
colorInfo: string;
|
|
11
|
-
colorTextBase: string;
|
|
12
|
-
colorBgBase: string;
|
|
13
|
-
colorLink: string;
|
|
14
|
-
fontFamily: string;
|
|
15
|
-
fontFamilyCode: string;
|
|
16
|
-
fontSize: number;
|
|
17
|
-
lineWidth: number;
|
|
18
|
-
lineType: string;
|
|
19
|
-
borderRadius: number;
|
|
20
|
-
sizeUnit: number;
|
|
21
|
-
sizeStep: number;
|
|
22
|
-
sizePopupArrow: number;
|
|
23
|
-
controlHeight: number;
|
|
24
|
-
zIndexBase: number;
|
|
25
|
-
zIndexPopupBase: number;
|
|
26
|
-
opacityImage: number;
|
|
27
|
-
motionUnit: number;
|
|
28
|
-
motionBase: number;
|
|
29
|
-
motionEaseOutCirc: string;
|
|
30
|
-
motionEaseInOutCirc: string;
|
|
31
|
-
motionEaseInOut: string;
|
|
32
|
-
motionEaseOutBack: string;
|
|
33
|
-
motionEaseInBack: string;
|
|
34
|
-
motionEaseInQuint: string;
|
|
35
|
-
motionEaseOutQuint: string;
|
|
36
|
-
motionEaseOut: string;
|
|
37
|
-
wireframe: boolean;
|
|
38
|
-
motion: boolean;
|
|
39
|
-
blue: string;
|
|
40
|
-
purple: string;
|
|
41
|
-
cyan: string;
|
|
42
|
-
green: string;
|
|
43
|
-
magenta: string;
|
|
44
|
-
pink: string;
|
|
45
|
-
red: string;
|
|
46
|
-
orange: string;
|
|
47
|
-
yellow: string;
|
|
48
|
-
volcano: string;
|
|
49
|
-
geekblue: string;
|
|
50
|
-
lime: string;
|
|
51
|
-
gold: string;
|
|
8
|
+
declare const _default: Omit<{
|
|
9
|
+
defaultSeed: import("antd/es/theme/interface/seeds").SeedToken;
|
|
10
|
+
useToken: () => {
|
|
11
|
+
theme: Theme<import("antd/es/theme/interface/seeds").SeedToken, import("antd/es/theme/internal").AliasToken>;
|
|
12
|
+
token: import("antd").GlobalToken;
|
|
13
|
+
hashId: string;
|
|
52
14
|
};
|
|
15
|
+
defaultAlgorithm: typeof import("antd/es/theme/themes/default").default;
|
|
16
|
+
darkAlgorithm: import("@ant-design/cssinjs").DerivativeFunc<import("antd/es/theme/interface/seeds").SeedToken, import("antd/es/theme/interface/maps").MapToken>;
|
|
17
|
+
compactAlgorithm: import("@ant-design/cssinjs").DerivativeFunc<import("antd/es/theme/interface/seeds").SeedToken, import("antd/es/theme/interface/maps").MapToken>;
|
|
18
|
+
getDesignToken: (config?: import("antd").ThemeConfig) => import("antd/es/theme/internal").AliasToken;
|
|
53
19
|
defaultConfig: {
|
|
54
|
-
token: import("antd/es/theme/
|
|
20
|
+
token: import("antd/es/theme/interface/seeds").SeedToken;
|
|
55
21
|
override: {
|
|
56
|
-
override: import("antd/es/theme/
|
|
22
|
+
override: import("antd/es/theme/interface/seeds").SeedToken;
|
|
57
23
|
};
|
|
58
24
|
hashed: boolean;
|
|
59
25
|
};
|
|
26
|
+
_internalContext: import("react").Context<import("antd/es/theme/context").DesignTokenProviderProps>;
|
|
27
|
+
}, "useToken"> & {
|
|
60
28
|
useToken: () => {
|
|
61
|
-
theme:
|
|
62
|
-
token:
|
|
29
|
+
theme: Theme<SeedToken, AliasToken>;
|
|
30
|
+
token: GlobalToken;
|
|
63
31
|
hashId: string;
|
|
64
32
|
};
|
|
65
|
-
defaultAlgorithm: typeof import("antd/es/theme/themes/default").default;
|
|
66
|
-
darkAlgorithm: import("@ant-design/cssinjs").DerivativeFunc<import("antd/es/theme/internal").SeedToken, import("antd/es/theme/interface").MapToken>;
|
|
67
|
-
compactAlgorithm: import("@ant-design/cssinjs").DerivativeFunc<import("antd/es/theme/internal").SeedToken, import("antd/es/theme/interface").MapToken>;
|
|
68
|
-
getDesignToken: (config?: import("antd").ThemeConfig) => import("antd/es/theme/internal").AliasToken;
|
|
69
|
-
_internalContext: import("react").Context<import("antd/es/theme/context").DesignTokenProviderProps>;
|
|
70
33
|
};
|
|
71
34
|
export default _default;
|
package/es/theme/interface.d.ts
CHANGED
|
@@ -1 +1,67 @@
|
|
|
1
|
+
import type { GlobalToken as GlobalTokenTypeUtil, OverrideTokenMap as OverrideTokenTypeUtil, FullToken as FullTokenTypeUtil, TokenMapKey } from '@ant-design/cssinjs-utils';
|
|
2
|
+
import type { AliasToken as AntAliasToken, ComponentTokenMap } from 'antd/es/theme/interface';
|
|
1
3
|
export * from 'antd/es/theme/interface';
|
|
4
|
+
export interface AliasToken extends AntAliasToken {
|
|
5
|
+
/**
|
|
6
|
+
* @nameZH 正文的字体粗细
|
|
7
|
+
* @nameEN Font weight for body text
|
|
8
|
+
* @desc 控制正文的字体粗细。
|
|
9
|
+
* @descEN Control the font weight of body text.
|
|
10
|
+
*/
|
|
11
|
+
fontWeight: number;
|
|
12
|
+
/**
|
|
13
|
+
* @nameZH 辅助描述的字体粗细,一般弱于正文
|
|
14
|
+
* @nameEN Font weight for auxiliary description, usually weaker than body text
|
|
15
|
+
* @desc 控制辅助描述的字体粗细,一般弱于正文。
|
|
16
|
+
* @descEN Control the font weight of auxiliary description, usually weaker than body text.
|
|
17
|
+
*/
|
|
18
|
+
fontWeightWeak: number;
|
|
19
|
+
/**
|
|
20
|
+
* @nameZH 等于 fontSize * lineHeight 的值
|
|
21
|
+
* @nameEN Round of fontSize * lineHeight
|
|
22
|
+
* @desc 等于 fontSize * lineHeight 的值。
|
|
23
|
+
* @descEN Round of fontSize * lineHeight.
|
|
24
|
+
*/
|
|
25
|
+
fontHeight: number;
|
|
26
|
+
/**
|
|
27
|
+
* @nameZH MD号圆角
|
|
28
|
+
* @nameEN MD Border Radius
|
|
29
|
+
* @desc MD号圆角,用于组件中的一些中圆角,如嵌套 Card、Alert、Tooltip、Dropdown 等一些组件样式。
|
|
30
|
+
* @descEN MD size border radius, used in some medium border radius components, such as nested Card, Alert, Tooltip, Dropdown etc.
|
|
31
|
+
* @default 6
|
|
32
|
+
*/
|
|
33
|
+
borderRadiusMD: number;
|
|
34
|
+
/**
|
|
35
|
+
* @nameZH 严重错误色
|
|
36
|
+
* @nameEN Critical Error Color
|
|
37
|
+
* @desc 用于表示操作严重失败的 Token 序列,如严重错误告警等。
|
|
38
|
+
* @descEN Used to represent the visual elements of the operation serious failure, such as critical error alert etc.
|
|
39
|
+
*/
|
|
40
|
+
colorFuchsia: string;
|
|
41
|
+
/**
|
|
42
|
+
* @nameZH 严重错误色的描边色
|
|
43
|
+
* @nameEN Critical error border color
|
|
44
|
+
* @desc 严重错误色的描边色
|
|
45
|
+
* @descEN The border color of the critical error state.
|
|
46
|
+
*/
|
|
47
|
+
colorFuchsiaBorder: string;
|
|
48
|
+
/**
|
|
49
|
+
* @nameZH 严重错误色背景
|
|
50
|
+
* @nameEN Critical error background color
|
|
51
|
+
* @desc 严重错误色背景
|
|
52
|
+
* @descEN The background color of the critical error state.
|
|
53
|
+
*/
|
|
54
|
+
colorFuchsiaBg: string;
|
|
55
|
+
/**
|
|
56
|
+
* @nameZH 严重错误色文本
|
|
57
|
+
* @nameEN Critical error text color
|
|
58
|
+
* @desc 严重错误色文本
|
|
59
|
+
* @descEN The text color of the critical error state.
|
|
60
|
+
*/
|
|
61
|
+
colorFuchsiaText: string;
|
|
62
|
+
}
|
|
63
|
+
/** Final token which contains the components level override */
|
|
64
|
+
export type GlobalToken = GlobalTokenTypeUtil<ComponentTokenMap, AliasToken>;
|
|
65
|
+
export type OverrideToken = OverrideTokenTypeUtil<ComponentTokenMap, AliasToken>;
|
|
66
|
+
export type OverrideComponent = TokenMapKey<ComponentTokenMap>;
|
|
67
|
+
export type FullToken<C extends TokenMapKey<ComponentTokenMap>> = FullTokenTypeUtil<ComponentTokenMap, AliasToken, C>;
|