{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "loader-progress-stripes",
  "type": "registry:component",
  "title": "Loader Progress Stripes",
  "description": "A determinate progress bar with moving stripes, a soft glint at the leading edge and a tabular percentage.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "loaders",
    "loader",
    "progress",
    "bar",
    "stripes",
    "upload",
    "percentage"
  ],
  "docs": "https://hyperblur.dev/effects/loader-progress-stripes",
  "files": [
    {
      "path": "registry/hyperblur/loader-progress-stripes.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/loader-progress-stripes.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface LoaderProgressStripesProps extends React.HTMLAttributes<HTMLDivElement> {\n  value?: number;\n  size?: number;\n  color?: string;\n  accent?: string;\n  showValue?: boolean;\n  label?: string;\n}\n\nconst css = `\n.hb-qc5 {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n  width: 100%;\n  box-sizing: border-box;\n  font-family: inherit;\n  color: #ededed;\n}\n.hb-qc5 *, .hb-qc5 *::before, .hb-qc5 *::after { box-sizing: border-box; }\n.hb-qc5-top {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  gap: 12px;\n  font-size: 12px;\n  line-height: 1.3;\n}\n.hb-qc5-l { color: #a1a1a1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.hb-qc5-v { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: #ededed; }\n.hb-qc5-track {\n  position: relative;\n  width: 100%;\n  height: var(--hb-qc5-h);\n  overflow: hidden;\n  border-radius: 999px;\n  background: #1f1f1f;\n  box-shadow: inset 0 0 0 1px #262626;\n}\n.hb-qc5-fill {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  width: calc(var(--hb-qc5-p) * 1%);\n  overflow: hidden;\n  border-radius: 999px;\n  background: linear-gradient(90deg, var(--hb-qc5-c), var(--hb-qc5-a));\n  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n.hb-qc5-fill::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background-image: repeating-linear-gradient(\n    135deg,\n    rgba(255, 255, 255, 0.22) 0,\n    rgba(255, 255, 255, 0.22) 6px,\n    transparent 6px,\n    transparent 12px\n  );\n  background-size: 17px 17px;\n  animation: hb-qc5-slide 0.7s linear infinite;\n}\n.hb-qc5-fill::after {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  width: 36px;\n  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55));\n  filter: blur(2px);\n  animation: hb-qc5-glint 1.6s ease-in-out infinite;\n}\n.hb-qc5-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: -1px;\n  padding: 0;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n  border: 0;\n}\n@keyframes hb-qc5-slide { to { background-position: 17px 0; } }\n@keyframes hb-qc5-glint {\n  0%, 100% { opacity: 0.35; }\n  50% { opacity: 1; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-qc5-fill { transition: none; }\n  .hb-qc5-fill::before, .hb-qc5-fill::after { animation: none; }\n}\n`;\n\nexport function LoaderProgressStripes({\n  value = 60,\n  size = 10,\n  color = \"#2f7bff\",\n  accent = \"#7fb3ff\",\n  showValue = true,\n  label,\n  className = \"\",\n  style,\n  ...rest\n}: LoaderProgressStripesProps) {\n  const pct = Math.min(100, Math.max(0, Number.isFinite(value) ? value : 0));\n  const rounded = Math.round(pct);\n  const vars = {\n    \"--hb-qc5-h\": `${size}px`,\n    \"--hb-qc5-c\": color,\n    \"--hb-qc5-a\": accent,\n    \"--hb-qc5-p\": pct.toFixed(2),\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <>\n      <style href=\"hb-loader-progress-stripes\" precedence=\"default\">{css}</style>\n      <div role=\"status\" className={`hb-qc5 ${className}`} style={vars} {...rest}>\n        {(label || showValue) && (\n          <div className=\"hb-qc5-top\" aria-hidden=\"true\">\n            {label ? <span className=\"hb-qc5-l\">{label}</span> : null}\n            {showValue ? <span className=\"hb-qc5-v\">{rounded}%</span> : null}\n          </div>\n        )}\n        <div\n          className=\"hb-qc5-track\"\n          role=\"progressbar\"\n          aria-valuemin={0}\n          aria-valuemax={100}\n          aria-valuenow={rounded}\n          aria-label={label ?? \"Loading\"}\n        >\n          <div className=\"hb-qc5-fill\" />\n        </div>\n        <span className=\"hb-qc5-sr\">{label ?? \"Loading\"}</span>\n      </div>\n    </>\n  );\n}\n"
    }
  ]
}