import { __makeTemplateObject } from "tslib";
import styled, { css } from "styled-components";
import { LIGHT_THEME } from "../Pallette/themes";
import { getTheme } from "../utils/theme/getTheme";
import { Padding } from "../Pallette/style-utils";
import Button from "../Button";
import { ZINDEX } from "../Pallette/ZIndex";
import { defaultTheme } from "./theme";
var COMPONENT_NAME = "banner";
export var BannerStyled = styled.div.attrs(function (props) { return ({
    theme: getTheme({
        theme: props.theme,
        componentName: COMPONENT_NAME,
        defaultTheme: defaultTheme
    })
}); })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  display: flex;\n  width: 100%;\n  ", "\n\n  background: ", ";\n  ", "\n  ", ";\n"], ["\n  display: flex;\n  width: 100%;\n  ", "\n\n  background: ", ";\n  ", "\n  ", ";\n"])), function (_a) {
    var type = _a.type;
    return type === "overlay" && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n      position: fixed;\n      top: 0;\n      z-index: ", ";\n    "], ["\n      position: fixed;\n      top: 0;\n      z-index: ", ";\n    "])), ZINDEX.tooltip);
}, function (_a) {
    var theme = _a.theme;
    return theme.components.banner.background;
}, function (_a) {
    var theme = _a.theme;
    return theme.dividers.secondary.bottom;
}, Padding.allSide(6, 10, 4));
BannerStyled.defaultProps = {
    theme: LIGHT_THEME
};
export var ContentWrapper = styled.div.attrs(function (props) { return ({
    theme: getTheme({
        theme: props.theme,
        componentName: COMPONENT_NAME,
        defaultTheme: defaultTheme
    })
}); })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 12px;\n\n  .banner-message {\n    color: ", ";\n  }\n"], ["\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 12px;\n\n  .banner-message {\n    color: ", ";\n  }\n"])), function (_a) {
    var theme = _a.theme;
    return theme.components.banner.color;
});
ContentWrapper.defaultProps = {
    theme: LIGHT_THEME
};
export var ActionsWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n  display: flex;\n  gap: 48px;\n  margin-left: auto;\n"], ["\n  display: flex;\n  gap: 48px;\n  margin-left: auto;\n"])));
export var ButtonStyled = styled(Button)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n  margin-top: auto;\n  p {\n    margin: 0;\n  }\n"], ["\n  margin-top: auto;\n  p {\n    margin: 0;\n  }\n"])));
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
