/*!
 * KoliBri - The accessible HTML-Standard
 */
var KeyEnum;
(function (KeyEnum) {
    KeyEnum[KeyEnum["error"] = 0] = "error";
    KeyEnum[KeyEnum["warning"] = 1] = "warning";
    KeyEnum[KeyEnum["info"] = 2] = "info";
    KeyEnum[KeyEnum["success"] = 3] = "success";
    KeyEnum[KeyEnum["message"] = 4] = "message";
    KeyEnum[KeyEnum["close"] = 5] = "close";
    KeyEnum[KeyEnum["form-description"] = 6] = "form-description";
    KeyEnum[KeyEnum["of"] = 7] = "of";
    KeyEnum[KeyEnum["characters"] = 8] = "characters";
    KeyEnum[KeyEnum["new"] = 9] = "new";
    KeyEnum[KeyEnum["no-entries"] = 10] = "no-entries";
    KeyEnum[KeyEnum["change-order"] = 11] = "change-order";
    KeyEnum[KeyEnum["action-running"] = 12] = "action-running";
    KeyEnum[KeyEnum["action-done"] = 13] = "action-done";
    KeyEnum[KeyEnum["page-first"] = 14] = "page-first";
    KeyEnum[KeyEnum["page-back"] = 15] = "page-back";
    KeyEnum[KeyEnum["page-next"] = 16] = "page-next";
    KeyEnum[KeyEnum["page-last"] = 17] = "page-last";
    KeyEnum[KeyEnum["entries-per-site"] = 18] = "entries-per-site";
    KeyEnum[KeyEnum["page-current"] = 19] = "page-current";
    KeyEnum[KeyEnum["page-selected"] = 20] = "page-selected";
    KeyEnum[KeyEnum["page-per-site"] = 21] = "page-per-site";
    KeyEnum[KeyEnum["logo-description"] = 22] = "logo-description";
    KeyEnum[KeyEnum["live-value-bounded"] = 23] = "live-value-bounded";
    KeyEnum[KeyEnum["live-value"] = 24] = "live-value";
    KeyEnum[KeyEnum["open-link-in-tab"] = 25] = "open-link-in-tab";
    KeyEnum[KeyEnum["kolibri-logo"] = 26] = "kolibri-logo";
})(KeyEnum || (KeyEnum = {}));

var TagEnum;
(function (TagEnum) {
    TagEnum[TagEnum["abbr"] = 0] = "abbr";
    TagEnum[TagEnum["accordion"] = 1] = "accordion";
    TagEnum[TagEnum["alert"] = 2] = "alert";
    TagEnum[TagEnum["avatar"] = 3] = "avatar";
    TagEnum[TagEnum["badge"] = 4] = "badge";
    TagEnum[TagEnum["breadcrumb"] = 5] = "breadcrumb";
    TagEnum[TagEnum["button"] = 6] = "button";
    TagEnum[TagEnum["button-link"] = 7] = "button-link";
    TagEnum[TagEnum["card"] = 8] = "card";
    TagEnum[TagEnum["combobox"] = 9] = "combobox";
    TagEnum[TagEnum["details"] = 10] = "details";
    TagEnum[TagEnum["dialog"] = 11] = "dialog";
    TagEnum[TagEnum["drawer"] = 12] = "drawer";
    TagEnum[TagEnum["form"] = 13] = "form";
    TagEnum[TagEnum["heading"] = 14] = "heading";
    TagEnum[TagEnum["icon"] = 15] = "icon";
    TagEnum[TagEnum["image"] = 16] = "image";
    TagEnum[TagEnum["input-checkbox"] = 17] = "input-checkbox";
    TagEnum[TagEnum["input-color"] = 18] = "input-color";
    TagEnum[TagEnum["input-date"] = 19] = "input-date";
    TagEnum[TagEnum["input-email"] = 20] = "input-email";
    TagEnum[TagEnum["input-file"] = 21] = "input-file";
    TagEnum[TagEnum["input-number"] = 22] = "input-number";
    TagEnum[TagEnum["input-password"] = 23] = "input-password";
    TagEnum[TagEnum["input-radio"] = 24] = "input-radio";
    TagEnum[TagEnum["input-range"] = 25] = "input-range";
    TagEnum[TagEnum["input-text"] = 26] = "input-text";
    TagEnum[TagEnum["kolibri"] = 27] = "kolibri";
    TagEnum[TagEnum["link"] = 28] = "link";
    TagEnum[TagEnum["link-button"] = 29] = "link-button";
    TagEnum[TagEnum["logo"] = 30] = "logo";
    TagEnum[TagEnum["meter"] = 31] = "meter";
    TagEnum[TagEnum["modal"] = 32] = "modal";
    TagEnum[TagEnum["nav"] = 33] = "nav";
    TagEnum[TagEnum["pagination"] = 34] = "pagination";
    TagEnum[TagEnum["popover-button"] = 35] = "popover-button";
    TagEnum[TagEnum["progress"] = 36] = "progress";
    TagEnum[TagEnum["quote"] = 37] = "quote";
    TagEnum[TagEnum["select"] = 38] = "select";
    TagEnum[TagEnum["single-select"] = 39] = "single-select";
    TagEnum[TagEnum["skip-nav"] = 40] = "skip-nav";
    TagEnum[TagEnum["spin"] = 41] = "spin";
    TagEnum[TagEnum["split-button"] = 42] = "split-button";
    TagEnum[TagEnum["symbol"] = 43] = "symbol";
    TagEnum[TagEnum["table"] = 44] = "table";
    TagEnum[TagEnum["table-stateful"] = 45] = "table-stateful";
    TagEnum[TagEnum["table-stateless"] = 46] = "table-stateless";
    TagEnum[TagEnum["tabs"] = 47] = "tabs";
    TagEnum[TagEnum["textarea"] = 48] = "textarea";
    TagEnum[TagEnum["toast-container"] = 49] = "toast-container";
    TagEnum[TagEnum["toolbar"] = 50] = "toolbar";
    TagEnum[TagEnum["tooltip"] = 51] = "tooltip";
    TagEnum[TagEnum["tree"] = 52] = "tree";
    TagEnum[TagEnum["tree-item"] = 53] = "tree-item";
})(TagEnum || (TagEnum = {}));

const isObject = (value) => typeof value === 'object' && value !== null;
const isString = (value, minLength = 0) => typeof value === 'string' && value.length >= minLength;
const isStyle = (style) => {
    if (typeof style === 'object' && style !== null) {
        for (const property in style) {
            if (isString(property, 1) === false) {
                return false;
            }
        }
    }
    else {
        return isString(style, 1);
    }
    return true;
};
const STATE_CHANGE_EVENT = new Event('StateChange');

export { KeyEnum as K, STATE_CHANGE_EVENT as S, TagEnum as T, isStyle as a, isObject as b, isString as i };
//# sourceMappingURL=common.js.map

//# sourceMappingURL=common.js.map