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

63 lines
1.9 KiB
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
import type { CSSProperties } from 'react';
import type { FullToken, GetDefaultToken, GenStyleFn } from '../../theme/internal';
export interface ComponentToken {
/**
* @desc
* @descEN Required mark color
*/
labelRequiredMarkColor: string;
/**
* @desc
* @descEN Label color
*/
labelColor: string;
/**
* @desc
* @descEN Label font size
*/
labelFontSize: number;
/**
* @desc
* @descEN Label height
*/
labelHeight: number | string;
/**
* @desc
* @descEN Label colon margin-inline-start
*/
labelColonMarginInlineStart: number;
/**
* @desc
* @descEN Label colon margin-inline-end
*/
labelColonMarginInlineEnd: number;
/**
* @desc
* @descEN Form item margin bottom
*/
itemMarginBottom: number;
/**
* @desc
* @descEN Inline layout form item margin bottom
*/
inlineItemMarginBottom: number;
/**
* @desc
* @descEN Vertical layout label padding
*/
verticalLabelPadding: CSSProperties['padding'];
/**
* @desc
* @descEN Vertical layout label margin
*/
verticalLabelMargin: CSSProperties['margin'];
}
export interface FormToken extends FullToken<'Form'> {
formItemCls: string;
rootPrefixCls: string;
}
export declare const prepareComponentToken: GetDefaultToken<'Form'>;
export declare const prepareToken: (token: Parameters<GenStyleFn<'Form'>>[0], rootPrefixCls: string) => FormToken;
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: import("react").ReactElement) => import("react").ReactElement, string, string];
export default _default;