import { __makeTemplateObject } from "tslib";
import styled, { css } from "styled-components";
import { BorderRadius } from "../../../Pallette/style-utils";
import { LIGHT_THEME } from "../../../Pallette/themes";
import { defaultThemeSelect } from "../../../SelectBase/themes";
import { getTheme } from "../../../utils/theme/getTheme";
export var MenuStyle = styled.div.attrs(function (props) { return ({
    theme: getTheme({
        theme: props.theme,
        defaultTheme: defaultThemeSelect,
        componentName: "select"
    })
}); })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  position: absolute;\n  width: 100%;\n  top: calc(100% + 8px);\n  left: 0;\n  padding: 16px;\n\n  ", ";\n\n  ", ";\n  border-top: none;\n  box-sizing: border-box;\n  z-index: 5;\n\n  &.select-menu__top {\n    top: auto;\n    bottom: calc(100% + 8px);\n  }\n"], ["\n  position: absolute;\n  width: 100%;\n  top: calc(100% + 8px);\n  left: 0;\n  padding: 16px;\n\n  ", ";\n\n  ", ";\n  border-top: none;\n  box-sizing: border-box;\n  z-index: 5;\n\n  &.select-menu__top {\n    top: auto;\n    bottom: calc(100% + 8px);\n  }\n"])), function (_a) {
    var theme = _a.theme;
    return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n    ", ";\n    background-color: ", ";\n    ", ";\n    color: ", ";\n  "], ["\n    ", ";\n    background-color: ", ";\n    ", ";\n    color: ", ";\n  "])), theme.shadows.sp.bottom, theme.components.select.backgroundMenu, BorderRadius.roundBorder(theme.shape.borderRadiusMedium), theme.components.select.colorMenu);
}, function (_a) {
    var isError = _a.isError, theme = _a.theme;
    return isError && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n      border-color: ", ";\n    "], ["\n      border-color: ", ";\n    "])), theme.components.select.colorError);
});
MenuStyle.defaultProps = {
    theme: LIGHT_THEME
};
export var MenuButtonsWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n  .select-menu__divider {\n    margin-top: 16px;\n    margin-bottom: 16px;\n  }\n"], ["\n  .select-menu__divider {\n    margin-top: 16px;\n    margin-bottom: 16px;\n  }\n"])));
export var MenuItemsWrapper = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n  display: flex;\n  flex-direction: column;\n\n  .react-select__menu-list > div:not(:last-child) {\n    margin-bottom: 16px;\n  }\n"], ["\n  display: flex;\n  flex-direction: column;\n\n  .react-select__menu-list > div:not(:last-child) {\n    margin-bottom: 16px;\n  }\n"])));
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
