1 | import type * as React from 'react';
|
2 | import type { ComponentToken as AlertComponentToken } from '../alert/style';
|
3 | import type { ComponentToken as AnchorComponentToken } from '../anchor/style';
|
4 | import type { ComponentToken as AvatarComponentToken } from '../avatar/style';
|
5 | import type { ComponentToken as BackTopComponentToken } from '../back-top/style';
|
6 | import type { ComponentToken as ButtonComponentToken } from '../button/style';
|
7 | import type { ComponentToken as FloatButtonComponentToken } from '../float-button/style';
|
8 | import type { ComponentToken as CalendarComponentToken } from '../calendar/style';
|
9 | import type { ComponentToken as CardComponentToken } from '../card/style';
|
10 | import type { ComponentToken as CarouselComponentToken } from '../carousel/style';
|
11 | import type { ComponentToken as CascaderComponentToken } from '../cascader/style';
|
12 | import type { ComponentToken as CheckboxComponentToken } from '../checkbox/style';
|
13 | import type { ComponentToken as CollapseComponentToken } from '../collapse/style';
|
14 | import type { ComponentToken as DatePickerComponentToken } from '../date-picker/style';
|
15 | import type { ComponentToken as DividerComponentToken } from '../divider/style';
|
16 | import type { ComponentToken as DropdownComponentToken } from '../dropdown/style';
|
17 | import type { ComponentToken as DrawerComponentToken } from '../drawer/style';
|
18 | import type { ComponentToken as EmptyComponentToken } from '../empty/style';
|
19 | import type { ComponentToken as ImageComponentToken } from '../image/style';
|
20 | import type { ComponentToken as InputNumberComponentToken } from '../input-number/style';
|
21 | import type { ComponentToken as LayoutComponentToken } from '../layout/style';
|
22 | import type { ComponentToken as ListComponentToken } from '../list/style';
|
23 | import type { ComponentToken as MentionsComponentToken } from '../mentions/style';
|
24 | import type { ComponentToken as MenuComponentToken } from '../menu/style';
|
25 | import type { ComponentToken as MessageComponentToken } from '../message/style';
|
26 | import type { ComponentToken as ModalComponentToken } from '../modal/style';
|
27 | import type { ComponentToken as NotificationComponentToken } from '../notification/style';
|
28 | import type { ComponentToken as PopconfirmComponentToken } from '../popconfirm/style';
|
29 | import type { ComponentToken as PopoverComponentToken } from '../popover/style';
|
30 | import type { ComponentToken as ProgressComponentToken } from '../progress/style';
|
31 | import type { ComponentToken as RadioComponentToken } from '../radio/style';
|
32 | import type { ComponentToken as RateComponentToken } from '../rate/style';
|
33 | import type { ComponentToken as ResultComponentToken } from '../result/style';
|
34 | import type { ComponentToken as SegmentedComponentToken } from '../segmented/style';
|
35 | import type { ComponentToken as SelectComponentToken } from '../select/style';
|
36 | import type { ComponentToken as SkeletonComponentToken } from '../skeleton/style';
|
37 | import type { ComponentToken as SliderComponentToken } from '../slider/style';
|
38 | import type { ComponentToken as SpaceComponentToken } from '../space/style';
|
39 | import type { ComponentToken as SpinComponentToken } from '../spin/style';
|
40 | import type { ComponentToken as StepsComponentToken } from '../steps/style';
|
41 | import type { ComponentToken as TableComponentToken } from '../table/style';
|
42 | import type { ComponentToken as TabsComponentToken } from '../tabs/style';
|
43 | import type { ComponentToken as TagComponentToken } from '../tag/style';
|
44 | import type { ComponentToken as TimelineComponentToken } from '../timeline/style';
|
45 | import type { ComponentToken as TooltipComponentToken } from '../tooltip/style';
|
46 | import type { ComponentToken as TransferComponentToken } from '../transfer/style';
|
47 | import type { ComponentToken as TypographyComponentToken } from '../typography/style';
|
48 | import type { ComponentToken as UploadComponentToken } from '../upload/style';
|
49 | import type { ComponentToken as TourComponentToken } from '../tour/style';
|
50 | export declare const PresetColors: readonly ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
51 | type PresetColorKey = typeof PresetColors[number];
|
52 | export type PresetColorType = Record<PresetColorKey, string>;
|
53 | type ColorPaletteKeyIndex = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
54 | export type ColorPalettes = {
|
55 | [key in `${keyof PresetColorType}-${ColorPaletteKeyIndex}`]: string;
|
56 | };
|
57 | export interface ComponentTokenMap {
|
58 | Affix?: {};
|
59 | Alert?: AlertComponentToken;
|
60 | Anchor?: AnchorComponentToken;
|
61 | Avatar?: AvatarComponentToken;
|
62 | BackTop?: BackTopComponentToken;
|
63 | Badge?: {};
|
64 | Button?: ButtonComponentToken;
|
65 | Breadcrumb?: {};
|
66 | Card?: CardComponentToken;
|
67 | Carousel?: CarouselComponentToken;
|
68 | Cascader?: CascaderComponentToken;
|
69 | Checkbox?: CheckboxComponentToken;
|
70 | Collapse?: CollapseComponentToken;
|
71 | DatePicker?: DatePickerComponentToken;
|
72 | Descriptions?: {};
|
73 | Divider?: DividerComponentToken;
|
74 | Drawer?: DrawerComponentToken;
|
75 | Dropdown?: DropdownComponentToken;
|
76 | Empty?: EmptyComponentToken;
|
77 | FloatButton?: FloatButtonComponentToken;
|
78 | Form?: {};
|
79 | Grid?: {};
|
80 | Image?: ImageComponentToken;
|
81 | Input?: {};
|
82 | InputNumber?: InputNumberComponentToken;
|
83 | Layout?: LayoutComponentToken;
|
84 | List?: ListComponentToken;
|
85 | Mentions?: MentionsComponentToken;
|
86 | Notification?: NotificationComponentToken;
|
87 | Pagination?: {};
|
88 | Popover?: PopoverComponentToken;
|
89 | Popconfirm?: PopconfirmComponentToken;
|
90 | Rate?: RateComponentToken;
|
91 | Radio?: RadioComponentToken;
|
92 | Result?: ResultComponentToken;
|
93 | Segmented?: SegmentedComponentToken;
|
94 | Select?: SelectComponentToken;
|
95 | Skeleton?: SkeletonComponentToken;
|
96 | Slider?: SliderComponentToken;
|
97 | Spin?: SpinComponentToken;
|
98 | Statistic?: {};
|
99 | Switch?: {};
|
100 | Tag?: TagComponentToken;
|
101 | Tree?: {};
|
102 | TreeSelect?: {};
|
103 | Typography?: TypographyComponentToken;
|
104 | Timeline?: TimelineComponentToken;
|
105 | Transfer?: TransferComponentToken;
|
106 | Tabs?: TabsComponentToken;
|
107 | Calendar?: CalendarComponentToken;
|
108 | Steps?: StepsComponentToken;
|
109 | Menu?: MenuComponentToken;
|
110 | Modal?: ModalComponentToken;
|
111 | Message?: MessageComponentToken;
|
112 | Upload?: UploadComponentToken;
|
113 | Tooltip?: TooltipComponentToken;
|
114 | Table?: TableComponentToken;
|
115 | Space?: SpaceComponentToken;
|
116 | Progress?: ProgressComponentToken;
|
117 | Tour?: TourComponentToken;
|
118 | }
|
119 | export type OverrideToken = {
|
120 | [key in keyof ComponentTokenMap]: Partial<ComponentTokenMap[key]> & Partial<AliasToken>;
|
121 | };
|
122 |
|
123 | export type GlobalToken = AliasToken & ComponentTokenMap;
|
124 | export interface SeedToken extends PresetColorType {
|
125 | colorPrimary: string;
|
126 | colorSuccess: string;
|
127 | colorWarning: string;
|
128 | colorError: string;
|
129 | colorInfo: string;
|
130 | colorTextBase: string;
|
131 |
|
132 | colorBgBase: string;
|
133 | fontFamily: string;
|
134 | fontSize: number;
|
135 |
|
136 | lineWidth: number;
|
137 | lineType: string;
|
138 | motionUnit: number;
|
139 | motionBase: number;
|
140 | motionEaseOutCirc: string;
|
141 | motionEaseInOutCirc: string;
|
142 | motionEaseInOut: string;
|
143 | motionEaseOutBack: string;
|
144 | motionEaseInBack: string;
|
145 | motionEaseInQuint: string;
|
146 | motionEaseOutQuint: string;
|
147 | motionEaseOut: string;
|
148 | borderRadius: number;
|
149 | sizeUnit: number;
|
150 | sizeStep: number;
|
151 | sizePopupArrow: number;
|
152 | controlHeight: number;
|
153 |
|
154 | zIndexBase: number;
|
155 |
|
156 | zIndexPopupBase: number;
|
157 |
|
158 | opacityImage: number;
|
159 | wireframe: boolean;
|
160 | }
|
161 | export interface NeutralColorMapToken {
|
162 | colorTextBase: string;
|
163 | colorBgBase: string;
|
164 | colorText: string;
|
165 | colorTextSecondary: string;
|
166 | colorTextTertiary: string;
|
167 | colorTextQuaternary: string;
|
168 | colorFill: string;
|
169 | colorFillSecondary: string;
|
170 | colorFillTertiary: string;
|
171 | colorFillQuaternary: string;
|
172 | colorBgContainer: string;
|
173 | colorBgElevated: string;
|
174 | colorBgLayout: string;
|
175 | colorBgSpotlight: string;
|
176 | colorBorder: string;
|
177 | colorBorderSecondary: string;
|
178 | }
|
179 | export interface ColorMapToken extends NeutralColorMapToken {
|
180 | colorPrimaryBg: string;
|
181 | colorPrimaryBgHover: string;
|
182 | colorPrimaryBorder: string;
|
183 | colorPrimaryBorderHover: string;
|
184 | colorPrimaryHover: string;
|
185 | colorPrimary: string;
|
186 | colorPrimaryActive: string;
|
187 | colorPrimaryTextHover: string;
|
188 | colorPrimaryText: string;
|
189 | colorPrimaryTextActive: string;
|
190 | colorSuccessBg: string;
|
191 | colorSuccessBgHover: string;
|
192 | colorSuccessBorder: string;
|
193 | colorSuccessBorderHover: string;
|
194 | colorSuccessHover: string;
|
195 | colorSuccess: string;
|
196 | colorSuccessActive: string;
|
197 | colorSuccessTextHover: string;
|
198 | colorSuccessText: string;
|
199 | colorSuccessTextActive: string;
|
200 | colorWarningBg: string;
|
201 | colorWarningBgHover: string;
|
202 | colorWarningBorder: string;
|
203 | colorWarningBorderHover: string;
|
204 | colorWarningHover: string;
|
205 | colorWarning: string;
|
206 | colorWarningActive: string;
|
207 | colorWarningTextHover: string;
|
208 | colorWarningText: string;
|
209 | colorWarningTextActive: string;
|
210 | colorErrorBg: string;
|
211 | colorErrorBgHover: string;
|
212 | colorErrorBorder: string;
|
213 | colorErrorBorderHover: string;
|
214 | colorErrorHover: string;
|
215 | colorError: string;
|
216 | colorErrorActive: string;
|
217 | colorErrorTextHover: string;
|
218 | colorErrorText: string;
|
219 | colorErrorTextActive: string;
|
220 | colorInfoBg: string;
|
221 | colorInfoBgHover: string;
|
222 | colorInfoBorder: string;
|
223 | colorInfoBorderHover: string;
|
224 | colorInfoHover: string;
|
225 | colorInfo: string;
|
226 | colorInfoActive: string;
|
227 | colorInfoTextHover: string;
|
228 | colorInfoText: string;
|
229 | colorInfoTextActive: string;
|
230 | colorBgMask: string;
|
231 | colorWhite: string;
|
232 | }
|
233 | export interface SizeMapToken {
|
234 | sizeXXL: number;
|
235 | sizeXL: number;
|
236 | sizeLG: number;
|
237 | sizeMD: number;
|
238 |
|
239 | sizeMS: number;
|
240 | size: number;
|
241 | sizeSM: number;
|
242 | sizeXS: number;
|
243 | sizeXXS: number;
|
244 | }
|
245 | export interface HeightMapToken {
|
246 |
|
247 | controlHeightXS: number;
|
248 | controlHeightSM: number;
|
249 | controlHeightLG: number;
|
250 | }
|
251 | export interface CommonMapToken {
|
252 | fontSizes: number[];
|
253 | lineHeights: number[];
|
254 | lineWidthBold: number;
|
255 | motionDurationFast: string;
|
256 | motionDurationMid: string;
|
257 | motionDurationSlow: string;
|
258 | borderRadiusXS: number;
|
259 | borderRadiusSM: number;
|
260 | borderRadiusLG: number;
|
261 | borderRadiusOuter: number;
|
262 | }
|
263 | export interface MapToken extends SeedToken, ColorPalettes, ColorMapToken, SizeMapToken, HeightMapToken, CommonMapToken {
|
264 | }
|
265 | export interface AliasToken extends MapToken {
|
266 | colorFillContentHover: string;
|
267 | colorFillAlter: string;
|
268 | colorBgContainerDisabled: string;
|
269 | colorFillContent: string;
|
270 | colorBorderBg: string;
|
271 | colorSplit: string;
|
272 | colorTextPlaceholder: string;
|
273 | colorTextDisabled: string;
|
274 | colorTextHeading: string;
|
275 | colorTextLabel: string;
|
276 | colorTextDescription: string;
|
277 | colorTextLightSolid: string;
|
278 | colorBgTextHover: string;
|
279 | colorBgTextActive: string;
|
280 |
|
281 | colorIcon: string;
|
282 |
|
283 | colorIconHover: string;
|
284 | colorLink: string;
|
285 | colorLinkHover: string;
|
286 | colorLinkActive: string;
|
287 | colorHighlight: string;
|
288 | controlOutline: string;
|
289 | colorWarningOutline: string;
|
290 | colorErrorOutline: string;
|
291 | fontSizeSM: number;
|
292 | fontSize: number;
|
293 | fontSizeLG: number;
|
294 | fontSizeXL: number;
|
295 |
|
296 | fontSizeIcon: number;
|
297 | fontSizeHeading1: number;
|
298 | fontSizeHeading2: number;
|
299 | fontSizeHeading3: number;
|
300 | fontSizeHeading4: number;
|
301 | fontSizeHeading5: number;
|
302 |
|
303 | fontWeightStrong: number;
|
304 | lineHeight: number;
|
305 | lineHeightLG: number;
|
306 | lineHeightSM: number;
|
307 | lineHeightHeading1: number;
|
308 | lineHeightHeading2: number;
|
309 | lineHeightHeading3: number;
|
310 | lineHeightHeading4: number;
|
311 | lineHeightHeading5: number;
|
312 | controlOutlineWidth: number;
|
313 | controlItemBgHover: string;
|
314 | controlItemBgActive: string;
|
315 | controlItemBgActiveHover: string;
|
316 | controlInteractiveSize: number;
|
317 | controlItemBgActiveDisabled: string;
|
318 | paddingXXS: number;
|
319 | paddingXS: number;
|
320 | paddingSM: number;
|
321 | padding: number;
|
322 | paddingMD: number;
|
323 | paddingLG: number;
|
324 | paddingXL: number;
|
325 | paddingContentHorizontalLG: number;
|
326 | paddingContentHorizontal: number;
|
327 | paddingContentHorizontalSM: number;
|
328 | paddingContentVerticalLG: number;
|
329 | paddingContentVertical: number;
|
330 | paddingContentVerticalSM: number;
|
331 | marginXXS: number;
|
332 | marginXS: number;
|
333 | marginSM: number;
|
334 | margin: number;
|
335 | marginMD: number;
|
336 | marginLG: number;
|
337 | marginXL: number;
|
338 | marginXXL: number;
|
339 | opacityLoading: number;
|
340 | boxShadow: string;
|
341 | boxShadowSecondary: string;
|
342 | linkDecoration: React.CSSProperties['textDecoration'];
|
343 | linkHoverDecoration: React.CSSProperties['textDecoration'];
|
344 | linkFocusDecoration: React.CSSProperties['textDecoration'];
|
345 | controlPaddingHorizontal: number;
|
346 | controlPaddingHorizontalSM: number;
|
347 | screenXS: number;
|
348 | screenXSMin: number;
|
349 | screenXSMax: number;
|
350 | screenSM: number;
|
351 | screenSMMin: number;
|
352 | screenSMMax: number;
|
353 | screenMD: number;
|
354 | screenMDMin: number;
|
355 | screenMDMax: number;
|
356 | screenLG: number;
|
357 | screenLGMin: number;
|
358 | screenLGMax: number;
|
359 | screenXL: number;
|
360 | screenXLMin: number;
|
361 | screenXLMax: number;
|
362 | screenXXL: number;
|
363 | screenXXLMin: number;
|
364 | screenXXLMax: number;
|
365 |
|
366 | controlTmpOutline: string;
|
367 | boxShadowPopoverArrow: string;
|
368 | boxShadowCard: string;
|
369 | boxShadowDrawerRight: string;
|
370 | boxShadowDrawerLeft: string;
|
371 | boxShadowDrawerUp: string;
|
372 | boxShadowDrawerDown: string;
|
373 | boxShadowTabsOverflowLeft: string;
|
374 | boxShadowTabsOverflowRight: string;
|
375 | boxShadowTabsOverflowTop: string;
|
376 | boxShadowTabsOverflowBottom: string;
|
377 | }
|
378 | export {};
|