UNPKG

maille

Version:

Component library for MithrilJS

78 lines (77 loc) 1.84 kB
export declare enum Size { Mini = "mini", Small = "sm", Medium = "md", Large = "lg", XLarge = "xlg" } export declare enum ButtonType { Default = "default", Primary = "primary", Success = "success", Info = "info", Warning = "warning", Error = "error" } export declare enum TagType { Default = "default", Primary = "primary", Success = "success", Info = "info", Warning = "warning", Error = "error" } export declare enum AlertType { Default = "default", Primary = "primary", Success = "success", Info = "info", Warning = "warning", Error = "error" } export interface ComponentSettings { redrawChildrenOnly: boolean; } export declare type MithrilEvent = Event & { redraw: boolean; }; export declare enum GeneralIconAttrName { Height = "height", Width = "width", Fill = "fill", Style = "style", ClassName = "className" } export declare type GeneralIconAttrs = { [key in GeneralIconAttrName]?: any; }; export declare enum ToolTipActivation { Hover = "hover" } export declare enum ToolTipPosition { Top = "top", Bottom = "bottom", Left = "left", Right = "right" } export declare enum CardImagePosition { Top = "top", Bottom = "bottom", Left = "left", Right = "right" } export declare type CSSColor = string; export declare type CSSSize = string; export declare class CardImageOptions { src: string; position?: CardImagePosition; fullWidth?: boolean; constructor(opts: Partial<CardImageOptions>); } export declare enum KeyboardKeyCode { Enter = 13 } export declare const NoOpFn: () => undefined; export declare type InputUpdateFn = (value: string, e: any) => any; export declare type KeyupFn = (e: any) => any; export declare type ButtonClickFn = (e: any) => any;