UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

42 lines (41 loc) 1.45 kB
import type { FullToken, UseComponentStyleResult } from '../../theme'; /** Component only token. Which will handle additional calculation of alias token */ export interface ComponentToken { dropdownWidth: number; zIndexPopup: number; colorGroupTitle: string; radiusItem: number; radiusSubMenuItem: number; colorItemText: string; colorItemTextHover: string; colorItemTextHoverHorizontal: string; colorItemTextSelected: string; colorItemTextSelectedHorizontal: string; colorItemTextDisabled: string; colorDangerItemText: string; colorDangerItemTextHover: string; colorDangerItemTextSelected: string; colorDangerItemBgActive: string; colorDangerItemBgSelected: string; colorItemBg: string; colorItemBgHover: string; colorSubItemBg: string; colorItemBgActive: string; colorItemBgSelected: string; colorItemBgSelectedHorizontal: string; colorActiveBarWidth: number; colorActiveBarHeight: number; colorActiveBarBorderSize: number; itemMarginInline: number; } export interface MenuToken extends FullToken<'Menu'> { menuItemHeight: number; menuHorizontalHeight: number; menuItemPaddingInline: number; menuItemMarginInline: number; menuArrowSize: number; menuArrowOffset: string; menuPanelMaskInset: number; } declare const _default: (prefixCls: string, injectStyle: boolean) => UseComponentStyleResult; export default _default;