@fle-ui/next 3.0.0-alpha.2 → 3.0.0-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/es/theme/index.d.ts +21 -0
- package/es/theme/index.js +37 -0
- package/es/theme/interface/alias.d.ts +133 -0
- package/es/theme/interface/alias.js +1 -0
- package/es/theme/interface/components.d.ts +110 -0
- package/es/theme/interface/components.js +1 -0
- package/es/theme/interface/index.d.ts +13 -0
- package/es/theme/interface/index.js +1 -0
- package/es/theme/interface/maps/colors.d.ts +342 -0
- package/es/theme/interface/maps/colors.js +1 -0
- package/es/theme/interface/maps/index.d.ts +15 -0
- package/es/theme/interface/maps/index.js +3 -0
- package/es/theme/interface/maps/size.d.ts +49 -0
- package/es/theme/interface/maps/size.js +1 -0
- package/es/theme/interface/maps/style.d.ts +33 -0
- package/es/theme/interface/maps/style.js +1 -0
- package/es/theme/interface/presetColors.d.ts +8 -0
- package/es/theme/interface/presetColors.js +1 -0
- package/es/theme/interface/seeds.d.ts +139 -0
- package/es/theme/interface/seeds.js +1 -0
- package/es/theme/internal.d.ts +23 -0
- package/es/theme/internal.js +47 -0
- package/es/theme/themes/ColorMap.d.ts +15 -0
- package/es/theme/themes/ColorMap.js +1 -0
- package/es/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/es/theme/themes/compact/genCompactSizeMapToken.js +16 -0
- package/es/theme/themes/compact/index.d.ts +4 -0
- package/es/theme/themes/compact/index.js +34 -0
- package/es/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/es/theme/themes/dark/colorAlgorithm.js +8 -0
- package/es/theme/themes/dark/colors.d.ts +3 -0
- package/es/theme/themes/dark/colors.js +44 -0
- package/es/theme/themes/dark/index.d.ts +4 -0
- package/es/theme/themes/dark/index.js +34 -0
- package/es/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/es/theme/themes/default/colorAlgorithm.js +8 -0
- package/es/theme/themes/default/colors.d.ts +3 -0
- package/es/theme/themes/default/colors.js +42 -0
- package/es/theme/themes/default/index.d.ts +2 -0
- package/es/theme/themes/default/index.js +30 -0
- package/es/theme/themes/seed.d.ts +4 -0
- package/es/theme/themes/seed.js +67 -0
- package/es/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/es/theme/themes/shared/genColorMapToken.js +78 -0
- package/es/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/es/theme/themes/shared/genCommonMapToken.js +33 -0
- package/es/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/es/theme/themes/shared/genControlHeight.js +10 -0
- package/es/theme/themes/shared/genFontSizes.d.ts +4 -0
- package/es/theme/themes/shared/genFontSizes.js +18 -0
- package/es/theme/themes/shared/genRadius.d.ts +3 -0
- package/es/theme/themes/shared/genRadius.js +51 -0
- package/es/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/es/theme/themes/shared/genSizeMapToken.js +24 -0
- package/es/theme/util/alias.d.ts +12 -0
- package/es/theme/util/alias.js +169 -0
- package/es/theme/util/genComponentStyleHook.d.ts +25 -0
- package/es/theme/util/genComponentStyleHook.js +65 -0
- package/es/theme/util/getAlphaColor.d.ts +2 -0
- package/es/theme/util/getAlphaColor.js +46 -0
- package/es/theme/util/statistic.d.ts +18 -0
- package/es/theme/util/statistic.js +80 -0
- package/lib/theme/index.d.ts +21 -0
- package/lib/theme/index.js +52 -0
- package/lib/theme/interface/alias.d.ts +133 -0
- package/lib/theme/interface/alias.js +5 -0
- package/lib/theme/interface/components.d.ts +110 -0
- package/lib/theme/interface/components.js +5 -0
- package/lib/theme/interface/index.d.ts +13 -0
- package/lib/theme/interface/index.js +13 -0
- package/lib/theme/interface/maps/colors.d.ts +342 -0
- package/lib/theme/interface/maps/colors.js +5 -0
- package/lib/theme/interface/maps/index.d.ts +15 -0
- package/lib/theme/interface/maps/index.js +44 -0
- package/lib/theme/interface/maps/size.d.ts +49 -0
- package/lib/theme/interface/maps/size.js +5 -0
- package/lib/theme/interface/maps/style.d.ts +33 -0
- package/lib/theme/interface/maps/style.js +5 -0
- package/lib/theme/interface/presetColors.d.ts +8 -0
- package/lib/theme/interface/presetColors.js +8 -0
- package/lib/theme/interface/seeds.d.ts +139 -0
- package/lib/theme/interface/seeds.js +5 -0
- package/lib/theme/internal.d.ts +23 -0
- package/lib/theme/internal.js +108 -0
- package/lib/theme/themes/ColorMap.d.ts +15 -0
- package/lib/theme/themes/ColorMap.js +1 -0
- package/lib/theme/themes/compact/genCompactSizeMapToken.d.ts +2 -0
- package/lib/theme/themes/compact/genCompactSizeMapToken.js +16 -0
- package/lib/theme/themes/compact/index.d.ts +4 -0
- package/lib/theme/themes/compact/index.js +34 -0
- package/lib/theme/themes/dark/colorAlgorithm.d.ts +2 -0
- package/lib/theme/themes/dark/colorAlgorithm.js +8 -0
- package/lib/theme/themes/dark/colors.d.ts +3 -0
- package/lib/theme/themes/dark/colors.js +44 -0
- package/lib/theme/themes/dark/index.d.ts +4 -0
- package/lib/theme/themes/dark/index.js +34 -0
- package/lib/theme/themes/default/colorAlgorithm.d.ts +2 -0
- package/lib/theme/themes/default/colorAlgorithm.js +8 -0
- package/lib/theme/themes/default/colors.d.ts +3 -0
- package/lib/theme/themes/default/colors.js +42 -0
- package/lib/theme/themes/default/index.d.ts +2 -0
- package/lib/theme/themes/default/index.js +30 -0
- package/lib/theme/themes/seed.d.ts +4 -0
- package/lib/theme/themes/seed.js +67 -0
- package/lib/theme/themes/shared/genColorMapToken.d.ts +8 -0
- package/lib/theme/themes/shared/genColorMapToken.js +78 -0
- package/lib/theme/themes/shared/genCommonMapToken.d.ts +2 -0
- package/lib/theme/themes/shared/genCommonMapToken.js +33 -0
- package/lib/theme/themes/shared/genControlHeight.d.ts +3 -0
- package/lib/theme/themes/shared/genControlHeight.js +10 -0
- package/lib/theme/themes/shared/genFontSizes.d.ts +4 -0
- package/lib/theme/themes/shared/genFontSizes.js +18 -0
- package/lib/theme/themes/shared/genRadius.d.ts +3 -0
- package/lib/theme/themes/shared/genRadius.js +51 -0
- package/lib/theme/themes/shared/genSizeMapToken.d.ts +2 -0
- package/lib/theme/themes/shared/genSizeMapToken.js +24 -0
- package/lib/theme/util/alias.d.ts +12 -0
- package/lib/theme/util/alias.js +177 -0
- package/lib/theme/util/genComponentStyleHook.d.ts +25 -0
- package/lib/theme/util/genComponentStyleHook.js +79 -0
- package/lib/theme/util/getAlphaColor.d.ts +2 -0
- package/lib/theme/util/getAlphaColor.js +54 -0
- package/lib/theme/util/statistic.d.ts +18 -0
- package/lib/theme/util/statistic.js +97 -0
- package/package.json +1 -1
@@ -0,0 +1,80 @@
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
2
|
+
var enableStatistic = process.env.NODE_ENV !== 'production' || typeof CSSINJS_STATISTIC !== 'undefined';
|
3
|
+
var recording = true;
|
4
|
+
/**
|
5
|
+
* This function will do as `Object.assign` in production. But will use Object.defineProperty:get to
|
6
|
+
* pass all value access in development. To support statistic field usage with alias token.
|
7
|
+
*/
|
8
|
+
|
9
|
+
export function merge() {
|
10
|
+
for (var _len = arguments.length, objs = new Array(_len), _key = 0; _key < _len; _key++) {
|
11
|
+
objs[_key] = arguments[_key];
|
12
|
+
}
|
13
|
+
/* istanbul ignore next */
|
14
|
+
|
15
|
+
|
16
|
+
if (!enableStatistic) {
|
17
|
+
return _extends.apply(void 0, [{}].concat(objs));
|
18
|
+
}
|
19
|
+
|
20
|
+
recording = false;
|
21
|
+
var ret = {};
|
22
|
+
objs.forEach(function (obj) {
|
23
|
+
var keys = Object.keys(obj);
|
24
|
+
keys.forEach(function (key) {
|
25
|
+
Object.defineProperty(ret, key, {
|
26
|
+
configurable: true,
|
27
|
+
enumerable: true,
|
28
|
+
get: function get() {
|
29
|
+
return obj[key];
|
30
|
+
}
|
31
|
+
});
|
32
|
+
});
|
33
|
+
});
|
34
|
+
recording = true;
|
35
|
+
return ret;
|
36
|
+
}
|
37
|
+
/** @private Internal Usage. Not use in your production. */
|
38
|
+
|
39
|
+
export var statistic = {};
|
40
|
+
/** @private Internal Usage. Not use in your production. */
|
41
|
+
// eslint-disable-next-line camelcase
|
42
|
+
|
43
|
+
export var _statistic_build_ = {};
|
44
|
+
/* istanbul ignore next */
|
45
|
+
|
46
|
+
function noop() {}
|
47
|
+
/** Statistic token usage case. Should use `merge` function if you do not want spread record. */
|
48
|
+
|
49
|
+
|
50
|
+
export default function statisticToken(token) {
|
51
|
+
var tokenKeys;
|
52
|
+
var proxy = token;
|
53
|
+
var flush = noop;
|
54
|
+
|
55
|
+
if (enableStatistic) {
|
56
|
+
tokenKeys = new Set();
|
57
|
+
proxy = new Proxy(token, {
|
58
|
+
get: function get(obj, prop) {
|
59
|
+
if (recording) {
|
60
|
+
tokenKeys.add(prop);
|
61
|
+
}
|
62
|
+
|
63
|
+
return obj[prop];
|
64
|
+
}
|
65
|
+
});
|
66
|
+
|
67
|
+
flush = function flush(componentName, componentToken) {
|
68
|
+
statistic[componentName] = {
|
69
|
+
global: Array.from(tokenKeys),
|
70
|
+
component: componentToken
|
71
|
+
};
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
return {
|
76
|
+
token: proxy,
|
77
|
+
keys: tokenKeys,
|
78
|
+
flush: flush
|
79
|
+
};
|
80
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import defaultAlgorithm from './themes/default';
|
2
|
+
/** Get current context Design Token. Will be different if you are using nest theme config. */
|
3
|
+
declare function useToken(): {
|
4
|
+
theme: import("@ant-design/cssinjs").Theme<import("./internal").SeedToken, import("./interface").MapToken>;
|
5
|
+
token: import("./interface").GlobalToken;
|
6
|
+
hashId: string;
|
7
|
+
};
|
8
|
+
declare const _default: {
|
9
|
+
/** @private Test Usage. Do not use in production. */
|
10
|
+
defaultConfig: {
|
11
|
+
token: import("./internal").SeedToken;
|
12
|
+
hashed: boolean;
|
13
|
+
};
|
14
|
+
/** Default seedToken */
|
15
|
+
defaultSeed: import("./internal").SeedToken;
|
16
|
+
useToken: typeof useToken;
|
17
|
+
defaultAlgorithm: typeof defaultAlgorithm;
|
18
|
+
darkAlgorithm: import("@ant-design/cssinjs").DerivativeFunc<import("./internal").SeedToken, import("./interface").MapToken>;
|
19
|
+
compactAlgorithm: import("@ant-design/cssinjs").DerivativeFunc<import("./internal").SeedToken, import("./interface").MapToken>;
|
20
|
+
};
|
21
|
+
export default _default;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports["default"] = void 0;
|
9
|
+
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
11
|
+
|
12
|
+
var _internal = require("./internal");
|
13
|
+
|
14
|
+
var _default2 = _interopRequireDefault(require("./themes/default"));
|
15
|
+
|
16
|
+
var _dark = _interopRequireDefault(require("./themes/dark"));
|
17
|
+
|
18
|
+
var _compact = _interopRequireDefault(require("./themes/compact"));
|
19
|
+
/* eslint-disable import/prefer-default-export */
|
20
|
+
// ZombieJ: We export as object to user but array in internal.
|
21
|
+
// This is used to minimize the bundle size for antd package but safe to refactor as object also.
|
22
|
+
// Please do not export internal `useToken` directly to avoid something export unexpected.
|
23
|
+
|
24
|
+
/** Get current context Design Token. Will be different if you are using nest theme config. */
|
25
|
+
|
26
|
+
|
27
|
+
function useToken() {
|
28
|
+
var _useInternalToken = (0, _internal.useToken)(),
|
29
|
+
_useInternalToken2 = (0, _slicedToArray2["default"])(_useInternalToken, 3),
|
30
|
+
theme = _useInternalToken2[0],
|
31
|
+
token = _useInternalToken2[1],
|
32
|
+
hashId = _useInternalToken2[2];
|
33
|
+
|
34
|
+
return {
|
35
|
+
theme: theme,
|
36
|
+
token: token,
|
37
|
+
hashId: hashId
|
38
|
+
};
|
39
|
+
}
|
40
|
+
|
41
|
+
var _default = {
|
42
|
+
/** @private Test Usage. Do not use in production. */
|
43
|
+
defaultConfig: _internal.defaultConfig,
|
44
|
+
|
45
|
+
/** Default seedToken */
|
46
|
+
defaultSeed: _internal.defaultConfig.token,
|
47
|
+
useToken: useToken,
|
48
|
+
defaultAlgorithm: _default2["default"],
|
49
|
+
darkAlgorithm: _dark["default"],
|
50
|
+
compactAlgorithm: _compact["default"]
|
51
|
+
};
|
52
|
+
exports["default"] = _default;
|
@@ -0,0 +1,133 @@
|
|
1
|
+
import type * as React from 'react';
|
2
|
+
import type { MapToken } from './maps';
|
3
|
+
export interface AliasToken extends MapToken {
|
4
|
+
colorFillContentHover: string;
|
5
|
+
colorFillAlter: string;
|
6
|
+
colorFillContent: string;
|
7
|
+
colorBgContainerDisabled: string;
|
8
|
+
colorBgTextHover: string;
|
9
|
+
colorBgTextActive: string;
|
10
|
+
colorBorderBg: string;
|
11
|
+
/**
|
12
|
+
* @nameZH 分割线颜色
|
13
|
+
* @desc 用于作为分割线的颜色,此颜色和 colorBorderSecondary 的颜色一致,但是用的是透明色。
|
14
|
+
*/
|
15
|
+
colorSplit: string;
|
16
|
+
colorTextPlaceholder: string;
|
17
|
+
colorTextDisabled: string;
|
18
|
+
colorTextHeading: string;
|
19
|
+
colorTextLabel: string;
|
20
|
+
colorTextDescription: string;
|
21
|
+
colorTextLightSolid: string;
|
22
|
+
/** Weak action. Such as `allowClear` or Alert close button */
|
23
|
+
colorIcon: string;
|
24
|
+
/** Weak action hover color. Such as `allowClear` or Alert close button */
|
25
|
+
colorIconHover: string;
|
26
|
+
colorLink: string;
|
27
|
+
colorLinkHover: string;
|
28
|
+
colorLinkActive: string;
|
29
|
+
colorHighlight: string;
|
30
|
+
controlOutline: string;
|
31
|
+
colorWarningOutline: string;
|
32
|
+
colorErrorOutline: string;
|
33
|
+
fontSizeSM: number;
|
34
|
+
fontSize: number;
|
35
|
+
fontSizeLG: number;
|
36
|
+
fontSizeXL: number;
|
37
|
+
/** Operation icon in Select, Cascader, etc. icon fontSize. Normal is same as fontSizeSM */
|
38
|
+
fontSizeIcon: number;
|
39
|
+
/**
|
40
|
+
* @nameZH 一级标题字号
|
41
|
+
* @desc H1 标签所使用的字号
|
42
|
+
* @default 38
|
43
|
+
*/
|
44
|
+
fontSizeHeading1: number;
|
45
|
+
/**
|
46
|
+
* @nameZH 二级标题字号
|
47
|
+
* @desc h2 标签所使用的字号
|
48
|
+
* @default 30
|
49
|
+
*/
|
50
|
+
fontSizeHeading2: number;
|
51
|
+
/**
|
52
|
+
* @nameZH 三级标题字号
|
53
|
+
* @desc h3 标签使用的字号
|
54
|
+
* @default 24
|
55
|
+
*/
|
56
|
+
fontSizeHeading3: number;
|
57
|
+
/**
|
58
|
+
* @nameZH 四级标题字号
|
59
|
+
* @desc h4 标签使用的字号
|
60
|
+
* @default 20
|
61
|
+
*/
|
62
|
+
fontSizeHeading4: number;
|
63
|
+
/**
|
64
|
+
* @nameZH 五级标题字号
|
65
|
+
* @desc h5 标签使用的字号
|
66
|
+
* @default 16
|
67
|
+
*/
|
68
|
+
fontSizeHeading5: number;
|
69
|
+
/** For heading like h1, h2, h3 or option selected item */
|
70
|
+
fontWeightStrong: number;
|
71
|
+
lineHeight: number;
|
72
|
+
lineHeightLG: number;
|
73
|
+
lineHeightSM: number;
|
74
|
+
lineHeightHeading1: number;
|
75
|
+
lineHeightHeading2: number;
|
76
|
+
lineHeightHeading3: number;
|
77
|
+
lineHeightHeading4: number;
|
78
|
+
lineHeightHeading5: number;
|
79
|
+
controlOutlineWidth: number;
|
80
|
+
controlItemBgHover: string;
|
81
|
+
controlItemBgActive: string;
|
82
|
+
controlItemBgActiveHover: string;
|
83
|
+
controlInteractiveSize: number;
|
84
|
+
controlItemBgActiveDisabled: string;
|
85
|
+
paddingXXS: number;
|
86
|
+
paddingXS: number;
|
87
|
+
paddingSM: number;
|
88
|
+
padding: number;
|
89
|
+
paddingMD: number;
|
90
|
+
paddingLG: number;
|
91
|
+
paddingXL: number;
|
92
|
+
paddingContentHorizontalLG: number;
|
93
|
+
paddingContentHorizontal: number;
|
94
|
+
paddingContentHorizontalSM: number;
|
95
|
+
paddingContentVerticalLG: number;
|
96
|
+
paddingContentVertical: number;
|
97
|
+
paddingContentVerticalSM: number;
|
98
|
+
marginXXS: number;
|
99
|
+
marginXS: number;
|
100
|
+
marginSM: number;
|
101
|
+
margin: number;
|
102
|
+
marginMD: number;
|
103
|
+
marginLG: number;
|
104
|
+
marginXL: number;
|
105
|
+
marginXXL: number;
|
106
|
+
opacityLoading: number;
|
107
|
+
boxShadow: string;
|
108
|
+
boxShadowSecondary: string;
|
109
|
+
linkDecoration: React.CSSProperties['textDecoration'];
|
110
|
+
linkHoverDecoration: React.CSSProperties['textDecoration'];
|
111
|
+
linkFocusDecoration: React.CSSProperties['textDecoration'];
|
112
|
+
controlPaddingHorizontal: number;
|
113
|
+
controlPaddingHorizontalSM: number;
|
114
|
+
screenXS: number;
|
115
|
+
screenXSMin: number;
|
116
|
+
screenXSMax: number;
|
117
|
+
screenSM: number;
|
118
|
+
screenSMMin: number;
|
119
|
+
screenSMMax: number;
|
120
|
+
screenMD: number;
|
121
|
+
screenMDMin: number;
|
122
|
+
screenMDMax: number;
|
123
|
+
screenLG: number;
|
124
|
+
screenLGMin: number;
|
125
|
+
screenLGMax: number;
|
126
|
+
screenXL: number;
|
127
|
+
screenXLMin: number;
|
128
|
+
screenXLMax: number;
|
129
|
+
screenXXL: number;
|
130
|
+
screenXXLMin: number;
|
131
|
+
/** Used for DefaultButton, Switch which has default outline */
|
132
|
+
controlTmpOutline: string;
|
133
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import type { ComponentToken as AlertComponentToken } from '../../alert/style';
|
2
|
+
import type { ComponentToken as AnchorComponentToken } from '../../anchor/style';
|
3
|
+
import type { ComponentToken as AvatarComponentToken } from '../../avatar/style';
|
4
|
+
import type { ComponentToken as BackTopComponentToken } from '../../back-top/style';
|
5
|
+
import type { ComponentToken as ButtonComponentToken } from '../../button/style';
|
6
|
+
import type { ComponentToken as FloatButtonComponentToken } from '../../float-button/style';
|
7
|
+
import type { ComponentToken as CalendarComponentToken } from '../../calendar/style';
|
8
|
+
import type { ComponentToken as CardComponentToken } from '../../card/style';
|
9
|
+
import type { ComponentToken as CarouselComponentToken } from '../../carousel/style';
|
10
|
+
import type { ComponentToken as CascaderComponentToken } from '../../cascader/style';
|
11
|
+
import type { ComponentToken as CheckboxComponentToken } from '../../checkbox/style';
|
12
|
+
import type { ComponentToken as CollapseComponentToken } from '../../collapse/style';
|
13
|
+
import type { ComponentToken as DatePickerComponentToken } from '../../date-picker/style';
|
14
|
+
import type { ComponentToken as DividerComponentToken } from '../../divider/style';
|
15
|
+
import type { ComponentToken as DropdownComponentToken } from '../../dropdown/style';
|
16
|
+
import type { ComponentToken as DrawerComponentToken } from '../../drawer/style';
|
17
|
+
import type { ComponentToken as EmptyComponentToken } from '../../empty/style';
|
18
|
+
import type { ComponentToken as ImageComponentToken } from '../../image/style';
|
19
|
+
import type { ComponentToken as InputNumberComponentToken } from '../../input-number/style';
|
20
|
+
import type { ComponentToken as LayoutComponentToken } from '../../layout/style';
|
21
|
+
import type { ComponentToken as ListComponentToken } from '../../list/style';
|
22
|
+
import type { ComponentToken as MentionsComponentToken } from '../../mentions/style';
|
23
|
+
import type { ComponentToken as MenuComponentToken } from '../../menu/style';
|
24
|
+
import type { ComponentToken as MessageComponentToken } from '../../message/style';
|
25
|
+
import type { ComponentToken as ModalComponentToken } from '../../modal/style';
|
26
|
+
import type { ComponentToken as NotificationComponentToken } from '../../notification/style';
|
27
|
+
import type { ComponentToken as PopconfirmComponentToken } from '../../popconfirm/style';
|
28
|
+
import type { ComponentToken as PopoverComponentToken } from '../../popover/style';
|
29
|
+
import type { ComponentToken as ProgressComponentToken } from '../../progress/style';
|
30
|
+
import type { ComponentToken as RadioComponentToken } from '../../radio/style';
|
31
|
+
import type { ComponentToken as RateComponentToken } from '../../rate/style';
|
32
|
+
import type { ComponentToken as ResultComponentToken } from '../../result/style';
|
33
|
+
import type { ComponentToken as SegmentedComponentToken } from '../../segmented/style';
|
34
|
+
import type { ComponentToken as SelectComponentToken } from '../../select/style';
|
35
|
+
import type { ComponentToken as SkeletonComponentToken } from '../../skeleton/style';
|
36
|
+
import type { ComponentToken as SliderComponentToken } from '../../slider/style';
|
37
|
+
import type { ComponentToken as SpaceComponentToken } from '../../space/style';
|
38
|
+
import type { ComponentToken as SpinComponentToken } from '../../spin/style';
|
39
|
+
import type { ComponentToken as StepsComponentToken } from '../../steps/style';
|
40
|
+
import type { ComponentToken as TableComponentToken } from '../../table/style';
|
41
|
+
import type { ComponentToken as TabsComponentToken } from '../../tabs/style';
|
42
|
+
import type { ComponentToken as TagComponentToken } from '../../tag/style';
|
43
|
+
import type { ComponentToken as TimelineComponentToken } from '../../timeline/style';
|
44
|
+
import type { ComponentToken as TooltipComponentToken } from '../../tooltip/style';
|
45
|
+
import type { ComponentToken as TransferComponentToken } from '../../transfer/style';
|
46
|
+
import type { ComponentToken as TypographyComponentToken } from '../../typography/style';
|
47
|
+
import type { ComponentToken as UploadComponentToken } from '../../upload/style';
|
48
|
+
import type { ComponentToken as TourComponentToken } from '../../tour/style';
|
49
|
+
export interface ComponentTokenMap {
|
50
|
+
Affix?: {};
|
51
|
+
Alert?: AlertComponentToken;
|
52
|
+
Anchor?: AnchorComponentToken;
|
53
|
+
Avatar?: AvatarComponentToken;
|
54
|
+
BackTop?: BackTopComponentToken;
|
55
|
+
Badge?: {};
|
56
|
+
Button?: ButtonComponentToken;
|
57
|
+
Breadcrumb?: {};
|
58
|
+
Card?: CardComponentToken;
|
59
|
+
Carousel?: CarouselComponentToken;
|
60
|
+
Cascader?: CascaderComponentToken;
|
61
|
+
Checkbox?: CheckboxComponentToken;
|
62
|
+
Collapse?: CollapseComponentToken;
|
63
|
+
DatePicker?: DatePickerComponentToken;
|
64
|
+
Descriptions?: {};
|
65
|
+
Divider?: DividerComponentToken;
|
66
|
+
Drawer?: DrawerComponentToken;
|
67
|
+
Dropdown?: DropdownComponentToken;
|
68
|
+
Empty?: EmptyComponentToken;
|
69
|
+
FloatButton?: FloatButtonComponentToken;
|
70
|
+
Form?: {};
|
71
|
+
Grid?: {};
|
72
|
+
Image?: ImageComponentToken;
|
73
|
+
Input?: {};
|
74
|
+
InputNumber?: InputNumberComponentToken;
|
75
|
+
Layout?: LayoutComponentToken;
|
76
|
+
List?: ListComponentToken;
|
77
|
+
Mentions?: MentionsComponentToken;
|
78
|
+
Notification?: NotificationComponentToken;
|
79
|
+
Pagination?: {};
|
80
|
+
Popover?: PopoverComponentToken;
|
81
|
+
Popconfirm?: PopconfirmComponentToken;
|
82
|
+
Rate?: RateComponentToken;
|
83
|
+
Radio?: RadioComponentToken;
|
84
|
+
Result?: ResultComponentToken;
|
85
|
+
Segmented?: SegmentedComponentToken;
|
86
|
+
Select?: SelectComponentToken;
|
87
|
+
Skeleton?: SkeletonComponentToken;
|
88
|
+
Slider?: SliderComponentToken;
|
89
|
+
Spin?: SpinComponentToken;
|
90
|
+
Statistic?: {};
|
91
|
+
Switch?: {};
|
92
|
+
Tag?: TagComponentToken;
|
93
|
+
Tree?: {};
|
94
|
+
TreeSelect?: {};
|
95
|
+
Typography?: TypographyComponentToken;
|
96
|
+
Timeline?: TimelineComponentToken;
|
97
|
+
Transfer?: TransferComponentToken;
|
98
|
+
Tabs?: TabsComponentToken;
|
99
|
+
Calendar?: CalendarComponentToken;
|
100
|
+
Steps?: StepsComponentToken;
|
101
|
+
Menu?: MenuComponentToken;
|
102
|
+
Modal?: ModalComponentToken;
|
103
|
+
Message?: MessageComponentToken;
|
104
|
+
Upload?: UploadComponentToken;
|
105
|
+
Tooltip?: TooltipComponentToken;
|
106
|
+
Table?: TableComponentToken;
|
107
|
+
Space?: SpaceComponentToken;
|
108
|
+
Progress?: ProgressComponentToken;
|
109
|
+
Tour?: TourComponentToken;
|
110
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { ComponentTokenMap } from './components';
|
2
|
+
import type { AliasToken } from './alias';
|
3
|
+
export type OverrideToken = {
|
4
|
+
[key in keyof ComponentTokenMap]: Partial<ComponentTokenMap[key]> & Partial<AliasToken>;
|
5
|
+
};
|
6
|
+
/** Final token which contains the components level override */
|
7
|
+
export type GlobalToken = AliasToken & ComponentTokenMap;
|
8
|
+
export { PresetColors } from './presetColors';
|
9
|
+
export type { PresetColorType, ColorPalettes } from './presetColors';
|
10
|
+
export type { SeedToken } from './seeds';
|
11
|
+
export type { MapToken, ColorMapToken, ColorNeutralMapToken, CommonMapToken, HeightMapToken, SizeMapToken, FontSizeMapToken, StyleMapToken, } from './maps';
|
12
|
+
export type { AliasToken } from './alias';
|
13
|
+
export type { ComponentTokenMap } from './components';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "PresetColors", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _presetColors.PresetColors;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
|
13
|
+
var _presetColors = require("./presetColors");
|