UNPKG

@brizy/ui

Version:
17 lines (16 loc) 846 B
import { ApplyProperties, Color } from "../types"; export type Placement = "top" | "topLeft" | "topRight" | "bottom" | "bottomLeft" | "bottomRight" | "left" | "leftBottom" | "leftTop" | "right" | "rightBottom" | "rightTop"; export type OverlayProperty = ApplyProperties<{ "--brz-ui-dropdown-content-width"?: string; "--brz-ui-dropdown-content-offset"?: string; }>; export type ItemProperty = ApplyProperties<{ "--brz-ui-dropdown-item-background"?: string; "--brz-ui-dropdown-item-hover-background"?: string; }>; export declare const getOverlayProperties: (width?: number, offset?: number) => ApplyProperties<OverlayProperty> | undefined; export interface itemColors { background?: Color; hoverBackground?: Color; } export declare const getItemProperties: (color?: itemColors) => ApplyProperties<ItemProperty> | undefined;