import { __makeTemplateObject } from "tslib";
import styled, { css } from "styled-components";
import { getTheme } from "../../../utils/theme/getTheme";
import { ColorLine } from "../Hue/styles";
import { defaultThemeColorPicker } from "../../theme";
import { LIGHT_THEME } from "../../../Pallette/themes";
export var TransparencyLine = styled(ColorLine).attrs(function (props) { return ({
    theme: getTheme({
        theme: props.theme,
        componentName: "colorPicker",
        defaultTheme: defaultThemeColorPicker
    })
}); })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  ", "\n  background-position-x: 9px;\n  position: relative;\n\n  &::after {\n    content: \"\";\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    top: 0;\n    left: 0;\n    border-radius: 8px;\n    ", "\n  }\n"], ["\n  ", "\n  background-position-x: 9px;\n  position: relative;\n\n  &::after {\n    content: \"\";\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    top: 0;\n    left: 0;\n    border-radius: 8px;\n    ", "\n  }\n"])), function (_a) {
    var theme = _a.theme;
    return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n    background: repeating-conic-gradient(\n        ", " 0% 25%,\n        ", " 0% 50%\n      )\n      50% / 10px 10px;\n\n    & > button {\n      background: repeating-conic-gradient(\n          ", " 0% 25%,\n          ", " 0% 50%\n        )\n        50% / 8px 12px;\n    }\n  "], ["\n    background: repeating-conic-gradient(\n        ", " 0% 25%,\n        ", " 0% 50%\n      )\n      50% / 10px 10px;\n\n    & > button {\n      background: repeating-conic-gradient(\n          ", " 0% 25%,\n          ", " 0% 50%\n        )\n        50% / 8px 12px;\n    }\n  "])), theme.components.colorPicker.transparencyChess, theme.components.colorPicker.background, theme.components.colorPicker.transparencyChess, theme.components.colorPicker.background);
}, function (_a) {
    var colorRgb = _a.colorRgb;
    return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n      background: linear-gradient(\n        90deg,\n        rgba(255, 33, 2, 0) 0%,\n        rgb(", ") 100%\n      );\n    "], ["\n      background: linear-gradient(\n        90deg,\n        rgba(255, 33, 2, 0) 0%,\n        rgb(", ") 100%\n      );\n    "])), Object.values(colorRgb).join(","));
});
export var PointButton = styled.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n  ", "\n  z-index: 1;\n"], ["\n  ", "\n  z-index: 1;\n"])), function (_a) {
    var colorRgb = _a.colorRgb, alpha = _a.alpha;
    return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n    box-shadow: inset 0 0 20px 0\n      rgba(", ", ", ");\n    left: calc(", "% - 4px);\n  "], ["\n    box-shadow: inset 0 0 20px 0\n      rgba(", ", ", ");\n    left: calc(", "% - 4px);\n  "])), Object.values(colorRgb).join(","), alpha, alpha * 100);
});
TransparencyLine.defaultProps = {
    theme: LIGHT_THEME
};
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
