chore: Add comments to token interfaces (#50386)

pull/50388/head
Arvin Xu 5 months ago committed by GitHub
parent 7d66a8e5cf
commit 700e0aeebe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -193,8 +193,20 @@ export interface ComponentToken {
}
export interface ButtonToken extends FullToken<'Button'> {
/**
* @desc
* @descEN Horizontal padding of button
*/
buttonPaddingHorizontal: CSSProperties['paddingInline'];
/**
* @desc
* @descEN Vertical padding of button
*/
buttonPaddingVertical: CSSProperties['paddingBlock'];
/**
* @desc
* @descEN Icon size of button which only contains icon
*/
buttonIconOnlyFontSize: number;
}

@ -54,10 +54,30 @@ export interface ComponentToken {
}
interface CardToken extends FullToken<'Card'> {
/**
* @desc
* @descEN Shadow of card
*/
cardShadow: string;
/**
* @desc
* @descEN Padding of card header
*/
cardHeadPadding: number;
/**
* @desc
* @descEN Padding of small card
*/
cardPaddingSM: number;
/**
* @desc
* @descEN Padding of base card
*/
cardPaddingBase: number;
/**
* @desc
* @descEN Size of card actions icon
*/
cardActionsIconSize: number;
}

@ -32,8 +32,20 @@ export interface ComponentToken {
}
type CollapseToken = FullToken<'Collapse'> & {
/**
* @desc
* @descEN Padding of small header
*/
collapseHeaderPaddingSM: string;
/**
* @desc
* @descEN Padding of large header
*/
collapseHeaderPaddingLG: string;
/**
* @desc
* @descEN Border radius of collapse panel
*/
collapsePanelBorderRadius: number;
};

Loading…
Cancel
Save