PromoCursed/node_modules/antd/lib/collapse/style/index.d.ts

35 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
import type { CSSProperties } from 'react';
import type { FullToken, GenerateStyle, GetDefaultToken } from '../../theme/internal';
/** Component only token. Which will handle additional calculation of alias token */
export interface ComponentToken {
/**
* @desc
* @descEN Padding of header
*/
headerPadding: CSSProperties['padding'];
/**
* @desc
* @descEN Background of header
*/
headerBg: string;
/**
* @desc
* @descEN Padding of content
*/
contentPadding: CSSProperties['padding'];
/**
* @desc
* @descEN Background of content
*/
contentBg: string;
}
type CollapseToken = FullToken<'Collapse'> & {
collapseHeaderPaddingSM: string;
collapseHeaderPaddingLG: string;
collapsePanelBorderRadius: number;
};
export declare const genBaseStyle: GenerateStyle<CollapseToken>;
export declare const prepareComponentToken: GetDefaultToken<'Collapse'>;
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: import("react").ReactElement) => import("react").ReactElement, string, string];
export default _default;