feat(ConfigProvider): supplement the type declaration of ConfigProviderThemeVars (#12264)

* feat: supplement the type declaration of ConfigProviderThemeVars

* feat: change to hump

* feat: change to hump

---------

Co-authored-by: xieyezi <202202409@any3.com>
This commit is contained in:
xieyezi 2023-09-08 14:46:04 +08:00 committed by GitHub
parent e67d8aa0cf
commit 7c7202d0da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,77 @@
export type ConfigProviderThemeVars =
type BaseThemeVars = {
// Color Palette
black?: string;
white?: string;
gray1?: string;
gray2?: string;
gray3?: string;
gray4?: string;
gray5?: string;
gray6?: string;
gray7?: string;
gray8?: string;
red?: string;
blue?: string;
orange?: string;
orangeDark?: string;
orangeLight?: string;
green?: string;
// Gradient Colors
gradientRed?: string;
gradientOrange?: string;
// Component Colors
primaryColor?: string;
successColor?: string;
dangerColor?: string;
warningColor?: string;
textColor?: string;
textColor2?: string;
textColor3?: string;
activeColor?: string;
activeOpacity?: number;
disabledOpacity?: number;
background?: string;
background2?: string;
// Padding
paddingBase?: string;
paddingXs?: string;
paddingSm?: string;
paddingMd?: string;
paddingLg?: string;
paddingXl?: string;
// Font
fontSizexs?: string;
fontSizeSm?: string;
fontSizeMd?: string;
fontSizeLg?: string;
fontBold?: number;
lineHeightXs?: string;
lineHeightSm?: string;
lineHeightMd?: string;
lineHeightLg?: string;
baseFont?: string;
priceFont?: string;
// Animation
durationBase?: string;
durationFast?: string;
easeOut?: string;
easeIn?: string;
// Border
borderColor?: string;
borderWidth?: string;
radiusSm?: string;
radiusMd?: string;
radiusLg?: string;
radiusMax?: string;
};
export type ConfigProviderThemeVars = BaseThemeVars &
import('../action-bar').ActionBarThemeVars &
import('../action-bar-button').ActionBarButtonThemeVars &
import('../action-bar-icon').ActionBarIconThemeVars &