UNPKG

1.03 kBTypeScriptView Raw
1export type PopoverTheme = 'light' | 'dark';
2export type PopoverActionsDirection = 'horizontal' | 'vertical';
3export type PopoverTrigger = 'manual' | 'click';
4export type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end';
5export type PopoverAction = {
6 text: string;
7 icon?: string;
8 color?: string;
9 disabled?: boolean;
10 className?: string;
11 [key: PropertyKey]: any;
12};
13export type PopoverThemeVars = {
14 popoverArrowSize?: string;
15 popoverRadius?: string;
16 popoverActionWidth?: string;
17 popoverActionHeight?: string;
18 popoverActionFontSize?: string;
19 popoverActionLineHeight?: number | string;
20 popoverActionIconSize?: string;
21 popoverLightTextColor?: string;
22 popoverLightBackground?: string;
23 popoverLightActionDisabledTextColor?: string;
24 popoverDarkTextColor?: string;
25 popoverDarkBackground?: string;
26 popoverDarkActionDisabledTextColor?: string;
27};