veza/apps/web/dist_verification/assets/progress-DGUMU2mx.js
senke 8cbd4f7558 refactor: Phase 7 — Clean up legacy components and remove dead tokens
- Bulk replace text-white → text-foreground across 116 component files
  (preserving text-white/ opacity variants)
- Remove hover-glow-cyan, shadow-card-glow-cyan, shadow-button-primary-glow
  classes from all components
- Replace --duration-normal/--duration-immersive/--duration-slow with
  --sumi-duration-normal/--sumi-duration-slow across 130+ files
- Replace --ease-out/--ease-in-out with --sumi-ease-out/--sumi-ease-in-out
- Replace focus:ring-blue-500 → focus:ring-primary (4 files)
- Remove hover:scale-105/110 and hover:-translate-y-1/0.5 transforms
  (SUMI anti-pattern: no scale on hover)
- Clean up stale kodo- references in comments

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 02:09:29 +01:00

1 line
1.6 KiB
JavaScript

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