import { __makeTemplateObject } from "tslib";
import styled, { css } from "styled-components";
import { LIGHT_THEME } from "../Pallette/themes";
import { getTheme } from "../utils/theme/getTheme";
import { defaultThemeProgressBar } from "./themes";
export var ProgressBarBase = styled.div.attrs(function (props) { return ({
    theme: getTheme({
        theme: props.theme,
        defaultTheme: defaultThemeProgressBar,
        componentName: "progressBar"
    })
}); })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  width: 100%;\n  ", "\n"], ["\n  width: 100%;\n  ", "\n"])), function (_a) {
    var theme = _a.theme, variant = _a.variant;
    return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n    .background {\n      background: ", ";\n    }\n    .filler {\n      background: ", ";\n    }\n    .progress-text {\n      color: ", ";\n      padding-right: 4px;\n      display: flex;\n      align-items: center;\n      justify-content: end;\n      flex: 0 0 44px;\n    }\n  "], ["\n    .background {\n      background: ", ";\n    }\n    .filler {\n      background: ", ";\n    }\n    .progress-text {\n      color: ", ";\n      padding-right: 4px;\n      display: flex;\n      align-items: center;\n      justify-content: end;\n      flex: 0 0 44px;\n    }\n  "])), theme.components.progressBar["background" + (variant.charAt(0).toUpperCase() + variant.slice(1))], theme.components.progressBar["backgroundFilter" + (variant.charAt(0).toUpperCase() + variant.slice(1))], theme.components.progressBar.colorProgress);
});
ProgressBarBase.defaultProps = {
    theme: LIGHT_THEME
};
export var ProgressBarStyle = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  width: 100%;\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  gap: 8px;\n  padding: 0;\n  height: ", "px;\n\n  .background {\n    border-radius: 8px;\n    overflow: hidden;\n    display: flex;\n    flex-direction: row;\n    flex: 1;\n  }\n"], ["\n  width: 100%;\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  gap: 8px;\n  padding: 0;\n  height: ", "px;\n\n  .background {\n    border-radius: 8px;\n    overflow: hidden;\n    display: flex;\n    flex-direction: row;\n    flex: 1;\n  }\n"])), function (_a) {
    var size = _a.size;
    return (size === "m" ? 16 : 8);
});
export var Filler = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n  width: ", "%;\n  transition: all 0.2s linear;\n  height: 100%;\n"], ["\n  width: ", "%;\n  transition: all 0.2s linear;\n  height: 100%;\n"])), function (_a) {
    var progress = _a.progress;
    return progress;
});
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
