(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "@greenatom/icons"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.getComputedLabelColor = exports.labelIcon = void 0;
    var icons_1 = require("@greenatom/icons");
    exports.labelIcon = {
        info: icons_1.IconBrokenInformation,
        error: icons_1.IconBrokenDanger,
        success: icons_1.IconBrokenTickCircle,
        warning: icons_1.IconWarning2,
        focused: icons_1.IconBrokenSetting2,
        filled: icons_1.IconBrokenSetting2
    };
    var getComputedLabelColor = function (status, theme, isDisabled) {
        if (isDisabled) {
            return theme.components.label.colorDisabled;
        }
        else {
            switch (status) {
                case "info":
                    return theme.components.label.colorInfo;
                case "focused":
                    return theme.components.label.colorFocused;
                case "error":
                    return theme.components.label.colorError;
                case "success":
                    return theme.components.label.colorSuccess;
                case "warning":
                    return theme.components.label.colorWarning;
                default:
                    return theme.components.label.colorFilled;
            }
        }
    };
    exports.getComputedLabelColor = getComputedLabelColor;
});
