"use strict";var c=require("react/jsx-runtime"),l=require("react");const d=75,g=90,o="var(--color-brand-lighter)",i="var(--color-negative-lighter)",v="var(--color-neutral-secondary)",h="var(--color-positive-lighter)",n="var(--color-warning-lighter)",b=({autoTarget:e="min",progress:r=0})=>e==="min"?r>g?i:r>d?n:o:r<=100-g?i:r<=100-d?n:r===100?h:o,p=({autoTarget:e,current:r=0,strokeWidth:a=8,total:t=100,variant:u="auto"})=>{const s=l.useMemo(()=>Math.min(r,t)/t*100,[r,t]),m=l.useMemo(()=>{switch(u){case"branded":return o;case"success":return h;case"error":return i;case"warning":return n;case"neutral":return v;default:return b({autoTarget:e,progress:s})}},[s,u]);return c.jsx("div",{className:"bg-surface-tertiary rounded-[2rem] relative w-full",style:{height:`${a}px`},children:c.jsx("div",{className:"absolute rounded-[2rem] border-solid border-thick border-surface-primary",style:{height:`${a}px`,minWidth:`${a}px`,width:`${s}%`,background:m}})})};exports.ProgressBar=p;
//# sourceMappingURL=progress-bar.js.map
