import { __makeTemplateObject } from "tslib";
import styled from "styled-components";
import { LIGHT_THEME } from "../Pallette/themes";
import { getTheme } from "../utils/theme/getTheme";
import { defaultThemeColorPicker } from "./theme";
var COMPONENT_NAME = "colorPicker";
export var ColorPickerComponent = styled.div.attrs(function (props) { return ({
    theme: getTheme({
        theme: props.theme,
        componentName: COMPONENT_NAME,
        defaultTheme: defaultThemeColorPicker
    })
}); })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  width: 320px;\n  height: 244px;\n  background-color: ", ";\n  ", ";\n  border-radius: 16px;\n  padding: 16px;\n  display: flex;\n  flex-direction: row;\n  align-items: flex-start;\n  justify-content: center;\n  gap: 16px;\n\n  & > div {\n    display: flex;\n    flex-direction: row;\n    justify-content: flex-start;\n    align-items: center;\n    gap: 16px;\n    height: 100%;\n    width: 100%;\n  }\n\n  & > div > div:first-child {\n    width: 100%;\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n    gap: 16px;\n  }\n\n  .color-picker-row {\n    display: flex;\n    flex-direction: row;\n    gap: 16px;\n    height: 100%;\n  }\n"], ["\n  width: 320px;\n  height: 244px;\n  background-color: ", ";\n  ", ";\n  border-radius: 16px;\n  padding: 16px;\n  display: flex;\n  flex-direction: row;\n  align-items: flex-start;\n  justify-content: center;\n  gap: 16px;\n\n  & > div {\n    display: flex;\n    flex-direction: row;\n    justify-content: flex-start;\n    align-items: center;\n    gap: 16px;\n    height: 100%;\n    width: 100%;\n  }\n\n  & > div > div:first-child {\n    width: 100%;\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n    gap: 16px;\n  }\n\n  .color-picker-row {\n    display: flex;\n    flex-direction: row;\n    gap: 16px;\n    height: 100%;\n  }\n"])), function (_a) {
    var theme = _a.theme;
    return theme.components.colorPicker.background;
}, function (_a) {
    var theme = _a.theme;
    return theme.shadows.sp.bottom;
});
export var SelectedColor = styled.div.attrs(function (props) { return ({
    theme: getTheme({
        theme: props.theme,
        componentName: COMPONENT_NAME,
        defaultTheme: defaultThemeColorPicker
    })
}); })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  border-radius: 8px;\n  height: 100%;\n  width: 60px;\n  min-width: 60px;\n  background: ", ";\n  border: 1px solid\n    ", ";\n"], ["\n  border-radius: 8px;\n  height: 100%;\n  width: 60px;\n  min-width: 60px;\n  background: ", ";\n  border: 1px solid\n    ", ";\n"])), function (_a) {
    var hex = _a.hex;
    return hex;
}, function (_a) {
    var theme = _a.theme;
    return theme.components.colorPicker.borderSelectColor;
});
export var UsedColors = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  height: 100%;\n  width: 60px;\n\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 24px;\n\n  .used-colors-list {\n    min-height: 132px;\n    width: 56px;\n    display: flex;\n    flex-direction: row;\n    align-content: flex-start;\n    gap: 12px 8px;\n    flex-wrap: wrap;\n  }\n\n  .used-colors-list > button {\n    width: 24px;\n    height: 24px;\n    border: none;\n    border-radius: 8px;\n    outline: none;\n    cursor: pointer;\n  }\n"], ["\n  height: 100%;\n  width: 60px;\n\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 24px;\n\n  .used-colors-list {\n    min-height: 132px;\n    width: 56px;\n    display: flex;\n    flex-direction: row;\n    align-content: flex-start;\n    gap: 12px 8px;\n    flex-wrap: wrap;\n  }\n\n  .used-colors-list > button {\n    width: 24px;\n    height: 24px;\n    border: none;\n    border-radius: 8px;\n    outline: none;\n    cursor: pointer;\n  }\n"])));
ColorPickerComponent.defaultProps = {
    theme: LIGHT_THEME
};
SelectedColor.defaultProps = {
    theme: LIGHT_THEME
};
var templateObject_1, templateObject_2, templateObject_3;
