veza/apps/web/dist_verification/assets/progress-aFwN-D7R.js
senke b733f47a33 chore: playwright workflow, docs, rapports audit, visual-tests, tmt unit
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-11 22:19:34 +01:00

1 line
1.6 KiB
JavaScript

import{a as f,j as a}from"./vendor-react-Dkpvlwai.js";import{d as e}from"./index-VJPzCABl.js";const c=f.forwardRef(({value:o,max:n=100,variant:g="default",color:u="cyan","aria-label":i="Progress",labelLeft:r,labelRight:s,className:d,...l},t)=>{const m=Math.min(100,Math.max(0,o/n*100)),x={cyan:"bg-primary",magenta:"bg-kodo-magenta",lime:"bg-kodo-lime",gold:"bg-warning"},h={gold:"from-kodo-gold to-orange-500"};return g==="gaming"?a.jsxs("div",{className:e("relative",d),ref:t,role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":n,"aria-label":i,...l,children:[a.jsx("div",{className:"h-4 bg-kodo-void rounded-full overflow-hidden border border-warning/30",children:a.jsx("div",{className:e("h-full bg-gradient-to-r shadow-gold-glow transition-all duration-[var(--duration-slow)]",h.gold),style:{width:`${m}%`}})}),(r||s)&&a.jsxs("div",{className:"flex justify-between text-xs font-mono font-bold text-warning mt-1 uppercase tracking-wider",children:[a.jsx("span",{children:r}),a.jsx("span",{children:s})]})]}):a.jsxs("div",{className:e("w-full",d),ref:t,role:"progressbar","aria-valuenow":o,"aria-valuemin":0,"aria-valuemax":n,"aria-label":i,...l,children:[a.jsx("div",{className:"h-2 bg-muted rounded-full overflow-hidden",children:a.jsx("div",{className:e("h-full transition-all duration-[var(--duration-normal)] shadow-slider-thumb",x[u]),style:{width:`${m}%`}})}),(r||s)&&a.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground mt-1 font-mono",children:[a.jsx("span",{children:r}),a.jsx("span",{children:s})]})]})});c.displayName="Progress";const j=c;export{c as P,j as a};