(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", "tslib", "styled-components", "../Pallette/themes", "../utils/theme/getTheme", "./theme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.UsedColors = exports.SelectedColor = exports.ColorPickerComponent = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importDefault)(require("styled-components"));
    var themes_1 = require("../Pallette/themes");
    var getTheme_1 = require("../utils/theme/getTheme");
    var theme_1 = require("./theme");
    var COMPONENT_NAME = "colorPicker";
    exports.ColorPickerComponent = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: theme_1.defaultThemeColorPicker
        })
    }); })(templateObject_1 || (templateObject_1 = (0, tslib_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;
    });
    exports.SelectedColor = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: theme_1.defaultThemeColorPicker
        })
    }); })(templateObject_2 || (templateObject_2 = (0, tslib_1.__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;
    });
    exports.UsedColors = styled_components_1.default.div(templateObject_3 || (templateObject_3 = (0, tslib_1.__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"])));
    exports.ColorPickerComponent.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.SelectedColor.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3;
});
