import styled, { css } from "styled-components";
import { tokens } from "./ProgressBarCircular.tokens";
export const base = css([
    `position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(`,
    `);height:var(`,
    `);`
], tokens.height, tokens.height);
export const StyledSVG = styled.svg.withConfig({
    displayName: "ProgressBarCircular.styles__StyledSVG",
    componentId: "sc-35f28ada-0"
})([
    `width:100%;height:100%;`
]);
export const StyledBackgroundCircle = styled.circle.withConfig({
    displayName: "ProgressBarCircular.styles__StyledBackgroundCircle",
    componentId: "sc-35f28ada-1"
})([
    `fill:none;r:`,
    `;stroke:var(`,
    `);stroke-width:`,
    `;`
], ({ customStrokeWidth = `var(${tokens.strokeSize})` })=>`calc(50px - calc(calc(50px / var(${tokens.size})) * ${customStrokeWidth}))`, tokens.backgroundStroke, ({ customStrokeWidth = `var(${tokens.strokeSize})` })=>`calc(calc(50px / var(${tokens.size})) * calc(${customStrokeWidth}) * 2)`);
export const StyledProgressCircle = styled.circle.withConfig({
    displayName: "ProgressBarCircular.styles__StyledProgressCircle",
    componentId: "sc-35f28ada-2"
})([
    `--percentage:`,
    `;--radius:`,
    `;--circumference:calc(calc(2 * 3.1415926535) * var(--radius));--dashoffset:`,
    `;fill:none;stroke:var(`,
    `);stroke-width:`,
    `;stroke-linecap:round;r:var(--radius);stroke-dasharray:var(--circumference);stroke-dashoffset:var(--dashoffset);transition:stroke-dashoffset 0.3s linear;`
], ({ percent })=>percent ?? 0, ({ customStrokeWidth = `var(${tokens.strokeSize})` })=>`calc(50px - calc(calc(50px / var(${tokens.size})) * ${customStrokeWidth}))`, ({ reverse })=>reverse ? 'calc((var(--percentage, 0) * var(--circumference) / 100) - var(--circumference))' : 'calc(var(--circumference) - (var(--percentage, 0) * var(--circumference) / 100))', tokens.progressStroke, ({ customStrokeWidth = `var(${tokens.strokeSize})` })=>`calc(calc(50px / var(${tokens.size})) * calc(${customStrokeWidth}) * 2)`);
export const StyledContent = styled.div.withConfig({
    displayName: "ProgressBarCircular.styles__StyledContent",
    componentId: "sc-35f28ada-3"
})([
    `position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(`,
    `);font-family:var(`,
    `);font-size:var(`,
    `);font-style:var(`,
    `);font-weight:var(`,
    `);letter-spacing:var(`,
    `);line-height:var(`,
    `);display:flex;align-items:center;justify-content:center;`
], tokens.contentColor, tokens.contentFontFamily, tokens.contentFontSize, tokens.contentFontStyle, tokens.contentFontWeight, tokens.contentLetterSpacing, tokens.contentLineHeight);
