2022-04-06 22:14:16 +08:00
|
|
|
import type * as React from 'react';
|
2022-06-27 14:25:59 +08:00
|
|
|
import type { ComponentToken as AlertComponentToken } from '../alert/style';
|
|
|
|
import type { ComponentToken as AnchorComponentToken } from '../anchor/style';
|
|
|
|
import type { ComponentToken as AvatarComponentToken } from '../avatar/style';
|
|
|
|
import type { ComponentToken as BackTopComponentToken } from '../back-top/style';
|
|
|
|
import type { ComponentToken as ButtonComponentToken } from '../button/style';
|
|
|
|
import type { ComponentToken as CalendarComponentToken } from '../calendar/style';
|
|
|
|
import type { ComponentToken as CarouselComponentToken } from '../carousel/style';
|
|
|
|
import type { ComponentToken as CascaderComponentToken } from '../cascader/style';
|
|
|
|
import type { ComponentToken as CheckboxComponentToken } from '../checkbox/style';
|
|
|
|
import type { ComponentToken as DatePickerComponentToken } from '../date-picker/style';
|
|
|
|
import type { ComponentToken as DividerComponentToken } from '../divider/style';
|
|
|
|
import type { ComponentToken as DropdownComponentToken } from '../dropdown/style';
|
2022-07-29 15:56:11 +08:00
|
|
|
import type { ComponentToken as DrawerComponentToken } from '../drawer/style';
|
2022-06-27 14:25:59 +08:00
|
|
|
import type { ComponentToken as EmptyComponentToken } from '../empty/style';
|
|
|
|
import type { ComponentToken as ImageComponentToken } from '../image/style';
|
|
|
|
import type { ComponentToken as InputNumberComponentToken } from '../input-number/style';
|
|
|
|
import type { ComponentToken as LayoutComponentToken } from '../layout/style';
|
|
|
|
import type { ComponentToken as ListComponentToken } from '../list/style';
|
|
|
|
import type { ComponentToken as MentionsComponentToken } from '../mentions/style';
|
|
|
|
import type { ComponentToken as MenuComponentToken } from '../menu/style';
|
|
|
|
import type { ComponentToken as MessageComponentToken } from '../message/style';
|
|
|
|
import type { ComponentToken as ModalComponentToken } from '../modal/style';
|
|
|
|
import type { ComponentToken as NotificationComponentToken } from '../notification/style';
|
|
|
|
import type { ComponentToken as PopconfirmComponentToken } from '../popconfirm/style';
|
|
|
|
import type { ComponentToken as PopoverComponentToken } from '../popover/style';
|
|
|
|
import type { ComponentToken as ProgressComponentToken } from '../progress/style';
|
|
|
|
import type { ComponentToken as RadioComponentToken } from '../radio/style';
|
|
|
|
import type { ComponentToken as RateComponentToken } from '../rate/style';
|
|
|
|
import type { ComponentToken as ResultComponentToken } from '../result/style';
|
|
|
|
import type { ComponentToken as SegmentedComponentToken } from '../segmented/style';
|
|
|
|
import type { ComponentToken as SelectComponentToken } from '../select/style';
|
|
|
|
import type { ComponentToken as SkeletonComponentToken } from '../skeleton/style';
|
|
|
|
import type { ComponentToken as SliderComponentToken } from '../slider/style';
|
|
|
|
import type { ComponentToken as SpaceComponentToken } from '../space/style';
|
|
|
|
import type { ComponentToken as SpinComponentToken } from '../spin/style';
|
|
|
|
import type { ComponentToken as StepsComponentToken } from '../steps/style';
|
|
|
|
import type { ComponentToken as TableComponentToken } from '../table/style';
|
|
|
|
import type { ComponentToken as TabsComponentToken } from '../tabs/style';
|
|
|
|
import type { ComponentToken as TimelineComponentToken } from '../timeline/style';
|
|
|
|
import type { ComponentToken as TooltipComponentToken } from '../tooltip/style';
|
|
|
|
import type { ComponentToken as TransferComponentToken } from '../transfer/style';
|
|
|
|
import type { ComponentToken as TypographyComponentToken } from '../typography/style';
|
|
|
|
import type { ComponentToken as UploadComponentToken } from '../upload/style';
|
2022-03-21 16:48:25 +08:00
|
|
|
|
|
|
|
export const PresetColors = [
|
|
|
|
'blue',
|
|
|
|
'purple',
|
|
|
|
'cyan',
|
|
|
|
'green',
|
|
|
|
'magenta',
|
|
|
|
'pink',
|
|
|
|
'red',
|
|
|
|
'orange',
|
|
|
|
'yellow',
|
|
|
|
'volcano',
|
|
|
|
'geekblue',
|
|
|
|
'lime',
|
|
|
|
'gold',
|
|
|
|
] as const;
|
|
|
|
|
|
|
|
type PresetColorKey = typeof PresetColors[number];
|
|
|
|
|
|
|
|
export type PresetColorType = Record<PresetColorKey, string>;
|
|
|
|
|
|
|
|
type ColorPaletteKeyIndex = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
|
|
|
|
|
|
export type ColorPalettes = {
|
|
|
|
[key in `${keyof PresetColorType}-${ColorPaletteKeyIndex}`]: string;
|
|
|
|
};
|
|
|
|
|
2022-06-27 11:54:31 +08:00
|
|
|
export interface ComponentTokenMap {
|
2022-04-07 14:53:13 +08:00
|
|
|
Affix?: {};
|
2022-05-24 15:45:41 +08:00
|
|
|
Alert?: AlertComponentToken;
|
2022-04-29 17:23:23 +08:00
|
|
|
Anchor?: AnchorComponentToken;
|
2022-05-27 13:37:24 +08:00
|
|
|
Avatar?: AvatarComponentToken;
|
2022-04-20 19:36:59 +08:00
|
|
|
BackTop?: BackTopComponentToken;
|
2022-04-08 00:18:02 +08:00
|
|
|
Badge?: {};
|
2022-03-29 15:57:39 +08:00
|
|
|
Button?: ButtonComponentToken;
|
2022-05-24 01:13:36 +08:00
|
|
|
Breadcrumb?: {};
|
2022-04-24 17:42:36 +08:00
|
|
|
Carousel?: CarouselComponentToken;
|
2022-03-29 15:57:39 +08:00
|
|
|
Cascader?: CascaderComponentToken;
|
2022-05-31 10:10:35 +08:00
|
|
|
Checkbox?: CheckboxComponentToken;
|
2022-04-25 14:45:26 +08:00
|
|
|
Collapse?: {};
|
2022-04-19 16:54:52 +08:00
|
|
|
DatePicker?: DatePickerComponentToken;
|
2022-04-08 15:28:34 +08:00
|
|
|
Descriptions?: {};
|
2022-03-29 15:57:39 +08:00
|
|
|
Divider?: DividerComponentToken;
|
2022-07-29 15:56:11 +08:00
|
|
|
Drawer?: DrawerComponentToken;
|
2022-04-25 10:54:00 +08:00
|
|
|
Dropdown?: DropdownComponentToken;
|
2022-04-02 18:17:14 +08:00
|
|
|
Empty?: EmptyComponentToken;
|
2022-04-06 22:14:16 +08:00
|
|
|
Form?: {};
|
2022-04-08 15:24:07 +08:00
|
|
|
Grid?: {};
|
2022-05-10 10:16:46 +08:00
|
|
|
Image?: ImageComponentToken;
|
2022-04-06 21:49:30 +08:00
|
|
|
Input?: {};
|
2022-03-29 15:57:39 +08:00
|
|
|
InputNumber?: InputNumberComponentToken;
|
2022-05-19 16:23:12 +08:00
|
|
|
Layout?: LayoutComponentToken;
|
2022-05-16 17:52:35 +08:00
|
|
|
List?: ListComponentToken;
|
2022-03-29 15:57:39 +08:00
|
|
|
Mentions?: MentionsComponentToken;
|
2022-05-16 18:02:46 +08:00
|
|
|
Notification?: NotificationComponentToken;
|
2022-04-06 21:49:30 +08:00
|
|
|
Pagination?: {};
|
2022-05-27 11:07:58 +08:00
|
|
|
Popover?: PopoverComponentToken;
|
2022-05-23 20:34:20 +08:00
|
|
|
Popconfirm?: PopconfirmComponentToken;
|
2022-06-17 18:47:47 +08:00
|
|
|
Rate?: RateComponentToken;
|
2022-06-01 10:14:57 +08:00
|
|
|
Radio?: RadioComponentToken;
|
2022-05-31 20:32:00 +08:00
|
|
|
Result?: ResultComponentToken;
|
2022-05-11 19:35:00 +08:00
|
|
|
Segmented?: SegmentedComponentToken;
|
2022-03-29 15:57:39 +08:00
|
|
|
Select?: SelectComponentToken;
|
2022-06-02 15:06:27 +08:00
|
|
|
Skeleton?: SkeletonComponentToken;
|
2022-03-29 15:57:39 +08:00
|
|
|
Slider?: SliderComponentToken;
|
2022-05-26 16:05:21 +08:00
|
|
|
Spin?: SpinComponentToken;
|
2022-04-08 00:18:31 +08:00
|
|
|
Statistic?: {};
|
2022-04-08 14:36:26 +08:00
|
|
|
Switch?: {};
|
2022-04-07 22:19:56 +08:00
|
|
|
Tag?: {};
|
2022-04-07 18:24:45 +08:00
|
|
|
Tree?: {};
|
2022-04-07 12:20:34 +08:00
|
|
|
TreeSelect?: {};
|
2022-03-29 15:57:39 +08:00
|
|
|
Typography?: TypographyComponentToken;
|
2022-04-12 00:17:57 +08:00
|
|
|
Timeline?: TimelineComponentToken;
|
2022-06-02 16:17:40 +08:00
|
|
|
Transfer?: TransferComponentToken;
|
2022-06-02 19:28:06 +08:00
|
|
|
Tabs?: TabsComponentToken;
|
2022-05-11 20:07:40 +08:00
|
|
|
Calendar?: CalendarComponentToken;
|
2022-04-13 16:22:28 +08:00
|
|
|
Card?: {};
|
2022-06-01 11:19:05 +08:00
|
|
|
Steps?: StepsComponentToken;
|
2022-04-20 15:31:04 +08:00
|
|
|
Menu?: MenuComponentToken;
|
2022-04-26 22:45:39 +08:00
|
|
|
Modal?: ModalComponentToken;
|
2022-05-24 09:29:33 +08:00
|
|
|
Message?: MessageComponentToken;
|
2022-04-25 18:46:53 +08:00
|
|
|
Upload?: UploadComponentToken;
|
2022-06-02 22:15:54 +08:00
|
|
|
Tooltip?: TooltipComponentToken;
|
2022-06-17 18:47:47 +08:00
|
|
|
Table?: TableComponentToken;
|
2022-05-04 22:00:39 +08:00
|
|
|
Space?: SpaceComponentToken;
|
2022-05-11 10:52:10 +08:00
|
|
|
Progress?: ProgressComponentToken;
|
2022-03-21 16:48:25 +08:00
|
|
|
}
|
|
|
|
|
2022-06-29 16:41:42 +08:00
|
|
|
type OverrideComponentToken = {
|
|
|
|
[key in keyof ComponentTokenMap]: Partial<ComponentTokenMap[key]>;
|
|
|
|
};
|
|
|
|
|
|
|
|
export interface OverrideToken extends OverrideComponentToken {
|
2022-06-27 11:54:31 +08:00
|
|
|
derivative?: Partial<MapToken>;
|
|
|
|
/** @private Internal Usage */
|
|
|
|
alias?: Partial<AliasToken>;
|
|
|
|
}
|
|
|
|
|
2022-03-24 18:44:42 +08:00
|
|
|
/** Final token which contains the components level override */
|
2022-06-27 11:54:31 +08:00
|
|
|
export type GlobalToken = AliasToken & ComponentTokenMap;
|
2022-03-24 18:44:42 +08:00
|
|
|
|
2022-03-21 16:48:25 +08:00
|
|
|
// ======================================================================
|
|
|
|
// == Seed Token ==
|
|
|
|
// ======================================================================
|
2022-03-24 14:30:48 +08:00
|
|
|
// 🔥🔥🔥🔥🔥🔥🔥 DO NOT MODIFY THIS. PLEASE CONTACT DESIGNER. 🔥🔥🔥🔥🔥🔥🔥
|
2022-03-21 16:48:25 +08:00
|
|
|
export interface SeedToken extends PresetColorType {
|
|
|
|
// Color
|
2022-07-20 18:35:09 +08:00
|
|
|
colorPrimary: string;
|
2022-03-21 16:48:25 +08:00
|
|
|
colorSuccess: string;
|
|
|
|
colorWarning: string;
|
|
|
|
colorError: string;
|
|
|
|
colorInfo: string;
|
2022-06-29 21:24:29 +08:00
|
|
|
colorTextBase: string;
|
2022-03-21 16:48:25 +08:00
|
|
|
colorTextLightSolid: string;
|
2022-03-22 20:02:04 +08:00
|
|
|
/** Base component background color. Will derivative container background color with this */
|
2022-06-29 21:24:29 +08:00
|
|
|
colorBgBase: string;
|
2022-03-21 16:48:25 +08:00
|
|
|
|
|
|
|
// Font
|
|
|
|
fontFamily: string;
|
|
|
|
fontSizeBase: number;
|
|
|
|
|
|
|
|
// Grid
|
|
|
|
gridUnit: number;
|
|
|
|
gridBaseStep: number;
|
|
|
|
|
|
|
|
// Line
|
2022-03-24 14:30:48 +08:00
|
|
|
/** Border width of base components */
|
2022-03-21 16:48:25 +08:00
|
|
|
lineWidth: number;
|
2022-05-16 17:52:35 +08:00
|
|
|
lineType: string;
|
2022-03-21 16:48:25 +08:00
|
|
|
|
|
|
|
// Motion
|
|
|
|
motionUnit: number;
|
2022-03-22 20:02:04 +08:00
|
|
|
motionBase: number;
|
2022-06-21 00:34:51 +08:00
|
|
|
motionEaseOutCirc: string;
|
2022-03-21 16:48:25 +08:00
|
|
|
motionEaseInOutCirc: string;
|
|
|
|
motionEaseInOut: string;
|
|
|
|
motionEaseOutBack: string;
|
|
|
|
motionEaseInQuint: string;
|
|
|
|
motionEaseOutQuint: string;
|
2022-06-24 11:11:42 +08:00
|
|
|
motionEaseOut: string;
|
2022-03-21 16:48:25 +08:00
|
|
|
|
|
|
|
// Radius
|
|
|
|
radiusBase: number;
|
|
|
|
|
|
|
|
// Size
|
|
|
|
sizeUnit: number;
|
|
|
|
sizeBaseStep: number;
|
2022-04-25 10:54:00 +08:00
|
|
|
sizePopupArrow: number;
|
2022-03-22 09:37:37 +08:00
|
|
|
|
|
|
|
// Control Base
|
|
|
|
controlHeight: number;
|
2022-03-24 14:30:48 +08:00
|
|
|
|
|
|
|
// zIndex
|
|
|
|
/** Base zIndex of component like BackTop, Affix which can be cover by large popup */
|
|
|
|
zIndexBase: number;
|
|
|
|
/** Base popup component zIndex */
|
2022-05-10 17:30:01 +08:00
|
|
|
zIndexPopupBase: number;
|
2022-05-18 15:37:27 +08:00
|
|
|
|
|
|
|
// Image
|
|
|
|
/** Define default Image opacity. Useful when in dark-like theme */
|
2022-06-17 18:47:47 +08:00
|
|
|
opacityImage: number;
|
2022-03-21 16:48:25 +08:00
|
|
|
}
|
|
|
|
|
2022-08-05 16:15:24 +08:00
|
|
|
export interface NeutralColorMapToken {
|
2022-08-19 13:57:19 +08:00
|
|
|
// Base
|
|
|
|
colorTextBase: string;
|
|
|
|
colorBgBase: string;
|
|
|
|
|
2022-08-05 16:15:24 +08:00
|
|
|
// Text
|
2022-07-21 17:00:42 +08:00
|
|
|
colorText: string;
|
|
|
|
colorTextSecondary: string;
|
|
|
|
colorTextTertiary: string;
|
|
|
|
colorTextQuaternary: string;
|
|
|
|
|
2022-08-05 16:15:24 +08:00
|
|
|
// Fill
|
2022-07-21 17:00:42 +08:00
|
|
|
colorFill: string;
|
|
|
|
colorFillSecondary: string;
|
|
|
|
colorFillTertiary: string;
|
|
|
|
colorFillQuaternary: string;
|
2022-08-05 16:15:24 +08:00
|
|
|
|
|
|
|
// Background
|
2022-07-21 17:00:42 +08:00
|
|
|
colorBgContainer: string;
|
|
|
|
colorBgElevated: string;
|
|
|
|
colorBgLayout: string;
|
2022-08-09 20:29:12 +08:00
|
|
|
colorBgSpotlight: string;
|
2022-08-03 20:04:58 +08:00
|
|
|
|
|
|
|
// Border
|
|
|
|
colorBorder: string;
|
|
|
|
colorBorderSecondary: string;
|
|
|
|
colorSplit: string;
|
2022-07-21 17:00:42 +08:00
|
|
|
}
|
|
|
|
|
2022-08-05 16:15:24 +08:00
|
|
|
export interface ColorMapToken extends NeutralColorMapToken {
|
2022-07-22 20:09:26 +08:00
|
|
|
// Primary
|
2022-07-21 17:00:42 +08:00
|
|
|
colorPrimaryBg: string; // 1
|
|
|
|
colorPrimaryBgHover: string; // 2
|
|
|
|
colorPrimaryBorder: string; // 3
|
|
|
|
colorPrimaryBorderHover: string; // 4
|
|
|
|
colorPrimaryHover: string; // 5
|
|
|
|
colorPrimary: string; // 6
|
|
|
|
colorPrimaryActive: string; // 7
|
2022-08-04 16:16:50 +08:00
|
|
|
colorPrimaryTextHover: string; // 8
|
|
|
|
colorPrimaryText: string; // 9
|
|
|
|
colorPrimaryTextActive: string; // 10
|
2022-03-24 14:30:48 +08:00
|
|
|
|
2022-07-22 20:09:26 +08:00
|
|
|
// Success
|
|
|
|
colorSuccessBg: string; // 1
|
|
|
|
colorSuccessBgHover: string; // 2
|
|
|
|
colorSuccessBorder: string; // 3
|
|
|
|
colorSuccessBorderHover: string; // 4
|
|
|
|
colorSuccessHover: string; // 5
|
|
|
|
colorSuccess: string; // 6
|
|
|
|
colorSuccessActive: string; // 7
|
2022-08-04 16:16:50 +08:00
|
|
|
colorSuccessTextHover: string; // 8
|
|
|
|
colorSuccessText: string; // 9
|
|
|
|
colorSuccessTextActive: string; // 10
|
2022-07-22 20:09:26 +08:00
|
|
|
|
|
|
|
// Warning
|
|
|
|
colorWarningBg: string; // 1
|
|
|
|
colorWarningBgHover: string; // 2
|
|
|
|
colorWarningBorder: string; // 3
|
|
|
|
colorWarningBorderHover: string; // 4
|
|
|
|
colorWarningHover: string; // 5
|
|
|
|
colorWarning: string; // 6
|
|
|
|
colorWarningActive: string; // 7
|
2022-08-04 16:16:50 +08:00
|
|
|
colorWarningTextHover: string; // 8
|
|
|
|
colorWarningText: string; // 9
|
|
|
|
colorWarningTextActive: string; // 10
|
2022-07-22 20:09:26 +08:00
|
|
|
|
|
|
|
// Error
|
|
|
|
colorErrorBg: string; // 1
|
|
|
|
colorErrorBgHover: string; // 2
|
|
|
|
colorErrorBorder: string; // 3
|
|
|
|
colorErrorBorderHover: string; // 4
|
|
|
|
colorErrorHover: string; // 5
|
|
|
|
colorError: string; // 6
|
|
|
|
colorErrorActive: string; // 7
|
2022-08-04 16:16:50 +08:00
|
|
|
colorErrorTextHover: string; // 8
|
|
|
|
colorErrorText: string; // 9
|
|
|
|
colorErrorTextActive: string; // 10
|
2022-07-22 20:09:26 +08:00
|
|
|
|
|
|
|
// Info
|
|
|
|
colorInfoBg: string; // 1
|
|
|
|
colorInfoBgHover: string; // 2
|
|
|
|
colorInfoBorder: string; // 3
|
|
|
|
colorInfoBorderHover: string; // 4
|
|
|
|
colorInfoHover: string; // 5
|
|
|
|
colorInfo: string; // 6
|
|
|
|
colorInfoActive: string; // 7
|
2022-08-04 16:16:50 +08:00
|
|
|
colorInfoTextHover: string; // 8
|
|
|
|
colorInfoText: string; // 9
|
|
|
|
colorInfoTextActive: string; // 10
|
2022-08-03 20:04:58 +08:00
|
|
|
|
|
|
|
colorBgMask: string;
|
2022-06-29 16:15:58 +08:00
|
|
|
}
|
2022-06-28 20:33:01 +08:00
|
|
|
|
2022-06-29 16:15:58 +08:00
|
|
|
export interface CommonMapToken {
|
2022-03-21 16:48:25 +08:00
|
|
|
// Font
|
2022-03-22 09:37:37 +08:00
|
|
|
fontSizes: number[];
|
|
|
|
lineHeights: number[];
|
2022-03-21 16:48:25 +08:00
|
|
|
|
|
|
|
// Size
|
|
|
|
sizeSpace: number;
|
|
|
|
sizeSpaceXS: number;
|
|
|
|
sizeSpaceXXS: number;
|
|
|
|
sizeSpaceSM: number;
|
|
|
|
|
|
|
|
// Grid
|
|
|
|
gridSpaceSM: number;
|
|
|
|
gridSpaceBase: number;
|
|
|
|
gridSpaceLG: number;
|
|
|
|
gridSpaceXL: number;
|
|
|
|
gridSpaceXXL: number;
|
|
|
|
|
2022-05-17 18:04:24 +08:00
|
|
|
// Line
|
|
|
|
lineWidthBold: number;
|
|
|
|
|
2022-03-21 16:48:25 +08:00
|
|
|
// Motion
|
|
|
|
motionDurationFast: string;
|
2022-03-22 20:02:04 +08:00
|
|
|
motionDurationMid: string;
|
2022-03-21 16:48:25 +08:00
|
|
|
motionDurationSlow: string;
|
|
|
|
|
|
|
|
// Radius
|
2022-08-19 10:10:51 +08:00
|
|
|
radiusXS: number;
|
2022-03-21 16:48:25 +08:00
|
|
|
radiusSM: number;
|
|
|
|
radiusLG: number;
|
2022-08-19 10:10:51 +08:00
|
|
|
radiusOuter: number;
|
2022-03-22 13:26:29 +08:00
|
|
|
|
2022-03-24 14:30:48 +08:00
|
|
|
// Control
|
2022-03-22 13:26:29 +08:00
|
|
|
/** @private Only Used for control inside component like Multiple Select inner selection item */
|
|
|
|
controlHeightXS: number;
|
|
|
|
controlHeightSM: number;
|
|
|
|
controlHeightLG: number;
|
2022-06-29 16:15:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// ======================================================================
|
|
|
|
// == Map Token ==
|
|
|
|
// ======================================================================
|
|
|
|
// 🔥🔥🔥🔥🔥🔥🔥 DO NOT MODIFY THIS. PLEASE CONTACT DESIGNER. 🔥🔥🔥🔥🔥🔥🔥
|
2022-07-15 19:27:29 +08:00
|
|
|
export interface MapToken extends SeedToken, ColorPalettes, ColorMapToken, CommonMapToken {}
|
2022-03-21 16:48:25 +08:00
|
|
|
|
|
|
|
// ======================================================================
|
|
|
|
// == Alias Token ==
|
|
|
|
// ======================================================================
|
2022-03-24 14:30:48 +08:00
|
|
|
// 🔥🔥🔥🔥🔥🔥🔥 DO NOT MODIFY THIS. PLEASE CONTACT DESIGNER. 🔥🔥🔥🔥🔥🔥🔥
|
2022-06-27 11:54:31 +08:00
|
|
|
export interface AliasToken extends MapToken {
|
2022-07-21 17:00:42 +08:00
|
|
|
// Background
|
|
|
|
colorFillSecondary: string;
|
|
|
|
colorFillContentHover: string;
|
|
|
|
colorFillAlter: string;
|
|
|
|
colorBgContainerDisabled: string;
|
|
|
|
colorFillContent: string;
|
|
|
|
|
|
|
|
// Border
|
|
|
|
colorBorderBg: string;
|
|
|
|
|
|
|
|
// Text
|
2022-06-29 21:24:29 +08:00
|
|
|
colorTextPlaceholder: string;
|
2022-07-21 17:00:42 +08:00
|
|
|
colorTextDisabled: string;
|
|
|
|
colorTextHeading: string;
|
|
|
|
colorTextLabel: string;
|
2022-08-04 16:16:50 +08:00
|
|
|
colorTextDescription: string;
|
2022-07-21 17:00:42 +08:00
|
|
|
|
|
|
|
/** Weak action. Such as `allowClear` or Alert close button */
|
|
|
|
colorIcon: string;
|
|
|
|
/** Weak action hover color. Such as `allowClear` or Alert close button */
|
|
|
|
colorIconHover: string;
|
|
|
|
|
|
|
|
colorLink: string;
|
|
|
|
colorLinkHover: string;
|
|
|
|
colorLinkActive: string;
|
2022-06-29 21:24:29 +08:00
|
|
|
|
|
|
|
colorHighlight: string;
|
|
|
|
|
2022-07-21 17:00:42 +08:00
|
|
|
controlOutline: string;
|
|
|
|
colorWarningOutline: string;
|
|
|
|
colorErrorOutline: string;
|
|
|
|
|
2022-03-22 09:37:37 +08:00
|
|
|
// Font
|
|
|
|
fontSizeSM: number;
|
|
|
|
fontSize: number;
|
|
|
|
fontSizeLG: number;
|
|
|
|
fontSizeXL: number;
|
2022-03-29 15:57:39 +08:00
|
|
|
/** Operation icon in Select, Cascader, etc. icon fontSize. Normal is same as fontSizeSM */
|
|
|
|
fontSizeIcon: number;
|
2022-03-21 16:48:25 +08:00
|
|
|
|
2022-03-22 09:37:37 +08:00
|
|
|
fontSizeHeading1: number;
|
|
|
|
fontSizeHeading2: number;
|
|
|
|
fontSizeHeading3: number;
|
|
|
|
fontSizeHeading4: number;
|
|
|
|
fontSizeHeading5: number;
|
|
|
|
|
2022-03-25 17:54:57 +08:00
|
|
|
/** For heading like h1, h2, h3 or option selected item */
|
|
|
|
fontWeightStrong: number;
|
|
|
|
|
2022-03-22 09:37:37 +08:00
|
|
|
// LineHeight
|
2022-03-21 16:48:25 +08:00
|
|
|
lineHeight: number;
|
2022-03-22 09:37:37 +08:00
|
|
|
lineHeightLG: number;
|
2022-05-20 14:33:33 +08:00
|
|
|
lineHeightSM: number;
|
2022-03-22 09:37:37 +08:00
|
|
|
|
|
|
|
lineHeightHeading1: number;
|
|
|
|
lineHeightHeading2: number;
|
|
|
|
lineHeightHeading3: number;
|
|
|
|
lineHeightHeading4: number;
|
|
|
|
lineHeightHeading5: number;
|
|
|
|
|
2022-03-22 13:26:29 +08:00
|
|
|
// Control
|
|
|
|
controlLineWidth: number;
|
|
|
|
controlLineType: string;
|
|
|
|
controlRadius: number;
|
2022-08-19 10:10:51 +08:00
|
|
|
controlRadiusXS: number;
|
|
|
|
controlRadiusSM: number;
|
|
|
|
controlRadiusLG: number;
|
2022-03-22 13:26:29 +08:00
|
|
|
controlOutlineWidth: number;
|
2022-03-22 20:02:04 +08:00
|
|
|
controlItemBgHover: string; // Note. It also is a color
|
|
|
|
controlItemBgActive: string; // Note. It also is a color
|
2022-06-02 16:17:40 +08:00
|
|
|
controlItemBgActiveHover: string; // Note. It also is a color
|
2022-05-31 10:10:35 +08:00
|
|
|
controlInteractiveSize: number;
|
2022-06-02 19:27:31 +08:00
|
|
|
controlItemBgActiveDisabled: string; // Note. It also is a color
|
2022-03-21 16:48:25 +08:00
|
|
|
|
2022-03-22 13:26:29 +08:00
|
|
|
// =============== Legacy: should be remove ===============
|
2022-06-17 18:47:47 +08:00
|
|
|
opacityLoading: number;
|
2022-04-25 10:54:00 +08:00
|
|
|
|
2022-03-21 16:48:25 +08:00
|
|
|
padding: number;
|
|
|
|
margin: number;
|
|
|
|
|
2022-03-22 20:02:04 +08:00
|
|
|
boxShadow: string;
|
2022-03-21 16:48:25 +08:00
|
|
|
|
|
|
|
linkDecoration: React.CSSProperties['textDecoration'];
|
|
|
|
linkHoverDecoration: React.CSSProperties['textDecoration'];
|
|
|
|
linkFocusDecoration: React.CSSProperties['textDecoration'];
|
|
|
|
|
|
|
|
controlPaddingHorizontal: number;
|
|
|
|
controlPaddingHorizontalSM: number;
|
2022-05-11 19:35:00 +08:00
|
|
|
|
2022-03-21 16:48:25 +08:00
|
|
|
paddingSM: number;
|
|
|
|
paddingXS: number;
|
|
|
|
paddingXXS: number;
|
|
|
|
paddingLG: number;
|
2022-05-23 10:58:30 +08:00
|
|
|
paddingXL: number;
|
2022-05-16 17:52:35 +08:00
|
|
|
marginXXS: number;
|
2022-03-21 16:48:25 +08:00
|
|
|
marginXS: number;
|
2022-03-25 13:20:42 +08:00
|
|
|
marginSM: number;
|
2022-03-21 16:48:25 +08:00
|
|
|
marginLG: number;
|
2022-05-16 17:52:35 +08:00
|
|
|
marginXL: number;
|
2022-05-18 15:37:27 +08:00
|
|
|
marginXXL: number;
|
2022-03-30 14:13:36 +08:00
|
|
|
|
|
|
|
// Media queries breakpoints
|
|
|
|
screenXS: number;
|
|
|
|
screenXSMin: number;
|
|
|
|
screenXSMax: number;
|
|
|
|
screenSM: number;
|
|
|
|
screenSMMin: number;
|
|
|
|
screenSMMax: number;
|
|
|
|
screenMD: number;
|
|
|
|
screenMDMin: number;
|
|
|
|
screenMDMax: number;
|
|
|
|
screenLG: number;
|
|
|
|
screenLGMin: number;
|
|
|
|
screenLGMax: number;
|
|
|
|
screenXL: number;
|
|
|
|
screenXLMin: number;
|
|
|
|
screenXLMax: number;
|
|
|
|
screenXXL: number;
|
|
|
|
screenXXLMin: number;
|
|
|
|
screenXXLMax: number;
|
|
|
|
|
2022-06-29 21:24:29 +08:00
|
|
|
/** Used for DefaultButton, Switch which has default outline */
|
|
|
|
controlTmpOutline: string;
|
2022-06-24 10:45:29 +08:00
|
|
|
|
|
|
|
// FIXME: component box-shadow, should be removed
|
|
|
|
boxShadowPopoverArrow: string;
|
|
|
|
boxShadowPopoverArrowBottom: string;
|
|
|
|
boxShadowSegmentedSelectedItem: string;
|
|
|
|
boxShadowCard: string;
|
|
|
|
boxShadowDrawerRight: string;
|
|
|
|
boxShadowDrawerLeft: string;
|
|
|
|
boxShadowDrawerUp: string;
|
|
|
|
boxShadowDrawerDown: string;
|
|
|
|
boxShadowTabsOverflowLeft: string;
|
|
|
|
boxShadowTabsOverflowRight: string;
|
|
|
|
boxShadowTabsOverflowTop: string;
|
|
|
|
boxShadowTabsOverflowBottom: string;
|
2022-03-21 16:48:25 +08:00
|
|
|
}
|