{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"striped-animated-progress-bar","type":"registry:component","title":"Striped Animated Progress Bar","description":"","dependencies":[],"files":[{"path":"components/we-inc/striped-animated-progress-bar.tsx","type":"registry:component","content":"import { useEffect, useState } from \"react\";\n\n// Demo only: the value climbs on a timer. Replace with your real progress.\nconst STEP_MS = 700;\n\nexport default function StripedAnimatedProgressBar() {\n  const [pct, setPct] = useState(38);\n\n  useEffect(() => {\n    const t = setInterval(() => setPct((p) => (p >= 100 ? 12 : Math.min(100, p + 4))), STEP_MS);\n    return () => clearInterval(t);\n  }, []);\n\n  const finished = pct >= 100;\n  return (\n    <section className=\"bg-neutral-900 px-4 py-16\">\n      <style>{`\n        @keyframes sapb-slide { to { transform: translateX(28px); } }\n        .sapb-stripes { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 10px, transparent 10px 20px); animation: sapb-slide .9s linear infinite; }\n        @media (prefers-reduced-motion: reduce) { .sapb-stripes { animation: none; } }\n      `}</style>\n      <div className=\"mx-auto max-w-xl rounded-xl bg-neutral-800 p-6 ring-1 ring-white/10 sm:p-8\">\n        <div className=\"flex items-center justify-between gap-4\">\n          <div>\n            <h2 id=\"sapb-label\" className=\"text-base font-semibold text-white\">Exporting season archive</h2>\n            <p className=\"mt-0.5 text-sm text-neutral-300\">1,240 photos to a ZIP, about {Math.max(1, Math.round((100 - pct) / 8))} min left</p>\n          </div>\n          <span className=\"font-mono text-2xl font-semibold tabular-nums text-amber-300\" aria-hidden=\"true\">{pct}%</span>\n        </div>\n\n        <div\n          role=\"progressbar\"\n          aria-labelledby=\"sapb-label\"\n          aria-valuemin={0}\n          aria-valuemax={100}\n          aria-valuenow={pct}\n          className=\"mt-5 h-5 overflow-hidden rounded-md bg-neutral-950 ring-1 ring-inset ring-white/10\"\n        >\n          <div className=\"relative h-full overflow-hidden rounded-md bg-amber-400 transition-[width] duration-700 ease-linear motion-reduce:transition-none\" style={{ width: `${pct}%` }}>\n            {!finished && <div className=\"sapb-stripes absolute inset-y-0 -left-7 right-0\" aria-hidden=\"true\" />}\n          </div>\n        </div>\n\n        <div className=\"mt-4 flex items-center justify-between text-sm\">\n          <span className=\"text-neutral-300\">{finished ? \"Archive ready\" : `${Math.round(1240 * pct / 100)} of 1,240 files`}</span>\n          <button type=\"button\" className=\"h-10 rounded-md px-3 font-medium text-neutral-200 hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-300\">Cancel</button>\n        </div>\n      </div>\n    </section>\n  );\n}\n"}]}
