PromoCursed/node_modules/antd/lib/date-picker/style/token.d.ts

104 lines
3.4 KiB
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
import type { SharedComponentToken, SharedInputToken } from '../../input/style/token';
import type { MultipleSelectorToken, SelectorToken } from '../../select/style/token';
import type { ArrowToken } from '../../style/roundedArrow';
import type { GlobalToken, FullToken, GetDefaultToken, TokenWithCommonCls } from '../../theme/internal';
export interface PanelComponentToken extends MultipleSelectorToken {
/**
* @desc
* @descEN Background color of cell hover state
*/
cellHoverBg: string;
/**
* @desc
* @descEN Background color of cell in range
*/
cellActiveWithRangeBg: string;
/**
* @desc
* @descEN Background color of hovered cell in range
*/
cellHoverWithRangeBg: string;
/**
* @desc
* @descEN Background color of disabled cell
*/
cellBgDisabled: string;
/**
* @desc
* @descEN Border color of cell in range when picking
*/
cellRangeBorderColor: string;
/**
* @desc
* @descEN Width of time column
*/
timeColumnWidth: number;
/**
* @desc
* @descEN Height of time column
*/
timeColumnHeight: number;
/**
* @desc
* @descEN Height of time cell
*/
timeCellHeight: number;
/**
* @desc
* @descEN Height of cell
*/
cellHeight: number;
/**
* @desc
* @descEN Width of cell
*/
cellWidth: number;
/**
* @desc
* @descEN Height of cell text
*/
textHeight: number;
/**
* @desc ////
* @descEN Height of decade/year/quarter/month/week cell
*/
withoutTimeCellHeight: number;
}
export interface ComponentToken extends Exclude<SharedComponentToken, 'addonBg'>, PanelComponentToken, ArrowToken {
/**
* @desc
* @descEN Width of preset area
*/
presetsWidth: number;
/**
* @desc
* @descEN Max width of preset area
*/
presetsMaxWidth: number;
/**
* @desc z-index
* @descEN z-index of popup
*/
zIndexPopup: number;
}
export type PickerPanelToken = {
pickerCellCls: string;
pickerCellInnerCls: string;
pickerDatePanelPaddingHorizontal: number | string;
pickerYearMonthCellWidth: number | string;
pickerCellPaddingVertical: number | string;
pickerQuarterPanelContentHeight: number | string;
pickerCellBorderGap: number;
pickerControlIconSize: number;
pickerControlIconMargin: number;
pickerControlIconBorderWidth: number;
};
export interface PickerToken extends FullToken<'DatePicker'>, PickerPanelToken, SharedInputToken, SelectorToken {
/** @private Used for internal calculation */
INTERNAL_FIXED_ITEM_MARGIN: number;
}
export type SharedPickerToken = TokenWithCommonCls<GlobalToken> & PickerPanelToken & PanelComponentToken;
export declare const initPickerPanelToken: (token: TokenWithCommonCls<GlobalToken>) => PickerPanelToken;
export declare const initPanelComponentToken: (token: GlobalToken) => PanelComponentToken;
export declare const prepareComponentToken: GetDefaultToken<'DatePicker'>;