minishouyin/node_modules/antd/lib/calendar/style/index.d.ts

62 lines
1.8 KiB
TypeScript
Raw Permalink Normal View History

2025-11-12 11:35:57 +08:00
import type { CSSObject } from '@ant-design/cssinjs';
import type { PanelComponentToken, PickerPanelToken } from '../../date-picker/style';
import type { FullToken, GetDefaultToken } from '../../theme/internal';
export interface ComponentToken {
/**
* @desc
* @descEN Width of year select
*/
yearControlWidth: number | string;
/**
* @desc
* @descEN Width of month select
*/
monthControlWidth: number | string;
/**
* @desc
* @descEN Height of mini calendar content
*/
miniContentHeight: number | string;
/**
* @desc
* @descEN Background color of full calendar
*/
fullBg: string;
/**
* @desc
* @descEN Background color of full calendar panel
*/
fullPanelBg: string;
/**
* @desc
* @descEN Background color of selected date item
*/
itemActiveBg: string;
}
interface CalendarToken extends FullToken<'Calendar'>, PickerPanelToken, PanelComponentToken {
/**
* @desc
* @descEN Calendar class name
*/
calendarCls: string;
/**
* @desc
* @descEN Date value height
*/
dateValueHeight: number | string;
/**
* @desc
* @descEN Week height
*/
weekHeight: number | string;
/**
* @desc
* @descEN Date content height
*/
dateContentHeight: number | string;
}
export declare const genCalendarStyles: (token: CalendarToken) => CSSObject;
export declare const prepareComponentToken: GetDefaultToken<'Calendar'>;
declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: React.ReactElement) => React.ReactElement, string, string];
export default _default;