"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
Object.defineProperty(exports, "__esModule", { value: true });
var styled_components_1 = require("styled-components");
var button_style_1 = require("@monstrosity/enums/button-style");
var bar_button_1 = require("./bar-button");
exports.getColour = function (theme, buttonStyle) {
    switch (buttonStyle) {
        case button_style_1.ButtonStyle.Primary:
            return theme.style.colour.background;
        case button_style_1.ButtonStyle.Secondary:
            return theme.style.colour.base;
        case button_style_1.ButtonStyle.Text:
        default:
            return theme.style.colour.active;
    }
};
exports.getHoverStyle = function (buttonStyle, isDisabled) {
    if (isDisabled)
        return styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
    switch (buttonStyle) {
        case button_style_1.ButtonStyle.Primary:
            return styled_components_1.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\t\t\t\t", " {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"], ["\n\t\t\t\t", " {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"])), bar_button_1.ButtonRoot, function (_a) {
                var theme = _a.theme;
                return theme.style.colour.hover;
            });
        case button_style_1.ButtonStyle.Secondary:
            return styled_components_1.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\t\t\t\t", " {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"], ["\n\t\t\t\t", " {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"])), bar_button_1.ButtonRoot, function (_a) {
                var theme = _a.theme;
                return theme.style.colour.disabled.fill;
            });
        case button_style_1.ButtonStyle.Text:
        default:
            return styled_components_1.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\t\t\t\t", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t"], ["\n\t\t\t\t", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t"])), bar_button_1.ButtonRoot, function (_a) {
                var theme = _a.theme;
                return theme.style.colour.hover;
            });
    }
};
exports.getFocusStyle = function (buttonStyle, isTabMode) {
    switch (buttonStyle) {
        case button_style_1.ButtonStyle.Primary:
            return styled_components_1.css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\t\t\t\t", " {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"], ["\n\t\t\t\t", " {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"])), bar_button_1.ButtonRoot, function (_a) {
                var theme = _a.theme;
                return theme.style.colour.active;
            });
        case button_style_1.ButtonStyle.Secondary:
            return styled_components_1.css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\t\t\t\t", " {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"], ["\n\t\t\t\t", " {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t}\n\t\t\t"])), bar_button_1.ButtonRoot, function (_a) {
                var theme = _a.theme;
                return theme.style.colour.disabled.background;
            });
        case button_style_1.ButtonStyle.Text:
        default:
            return styled_components_1.css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n\t\t\t\t", " {\n\t\t\t\t\ttext-decoration: ", ";\n\t\t\t\t}\n\t\t\t"], ["\n\t\t\t\t", " {\n\t\t\t\t\ttext-decoration: ", ";\n\t\t\t\t}\n\t\t\t"])), bar_button_1.ButtonRoot, isTabMode ? 'underline' : 'unset');
    }
};
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
