UNPKG

maille

Version:

Component library for MithrilJS

87 lines (86 loc) 3.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Size; (function (Size) { Size["Mini"] = "mini"; Size["Small"] = "sm"; Size["Medium"] = "md"; Size["Large"] = "lg"; Size["XLarge"] = "xlg"; })(Size = exports.Size || (exports.Size = {})); var ButtonType; (function (ButtonType) { ButtonType["Default"] = "default"; ButtonType["Primary"] = "primary"; ButtonType["Success"] = "success"; ButtonType["Info"] = "info"; ButtonType["Warning"] = "warning"; ButtonType["Error"] = "error"; })(ButtonType = exports.ButtonType || (exports.ButtonType = {})); var TagType; (function (TagType) { TagType["Default"] = "default"; TagType["Primary"] = "primary"; TagType["Success"] = "success"; TagType["Info"] = "info"; TagType["Warning"] = "warning"; TagType["Error"] = "error"; })(TagType = exports.TagType || (exports.TagType = {})); var AlertType; (function (AlertType) { AlertType["Default"] = "default"; AlertType["Primary"] = "primary"; AlertType["Success"] = "success"; AlertType["Info"] = "info"; AlertType["Warning"] = "warning"; AlertType["Error"] = "error"; })(AlertType = exports.AlertType || (exports.AlertType = {})); var GeneralIconAttrName; (function (GeneralIconAttrName) { GeneralIconAttrName["Height"] = "height"; GeneralIconAttrName["Width"] = "width"; GeneralIconAttrName["Fill"] = "fill"; GeneralIconAttrName["Style"] = "style"; GeneralIconAttrName["ClassName"] = "className"; })(GeneralIconAttrName = exports.GeneralIconAttrName || (exports.GeneralIconAttrName = {})); var ToolTipActivation; (function (ToolTipActivation) { ToolTipActivation["Hover"] = "hover"; })(ToolTipActivation = exports.ToolTipActivation || (exports.ToolTipActivation = {})); var ToolTipPosition; (function (ToolTipPosition) { ToolTipPosition["Top"] = "top"; ToolTipPosition["Bottom"] = "bottom"; ToolTipPosition["Left"] = "left"; ToolTipPosition["Right"] = "right"; })(ToolTipPosition = exports.ToolTipPosition || (exports.ToolTipPosition = {})); var CardImagePosition; (function (CardImagePosition) { CardImagePosition["Top"] = "top"; CardImagePosition["Bottom"] = "bottom"; CardImagePosition["Left"] = "left"; CardImagePosition["Right"] = "right"; })(CardImagePosition = exports.CardImagePosition || (exports.CardImagePosition = {})); class CardImageOptions { constructor(opts) { this.position = CardImagePosition.Top; this.fullWidth = true; if (opts) { if (opts.src) { this.src = opts.src; } if (opts.position) { this.position = opts.position; } if (opts.fullWidth !== undefined) { this.fullWidth = opts.fullWidth; } } } } exports.CardImageOptions = CardImageOptions; var KeyboardKeyCode; (function (KeyboardKeyCode) { KeyboardKeyCode[KeyboardKeyCode["Enter"] = 13] = "Enter"; })(KeyboardKeyCode = exports.KeyboardKeyCode || (exports.KeyboardKeyCode = {})); exports.NoOpFn = () => undefined;