{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "animated-wave",
  "title": "Animated Wave",
  "description": "An animated wave component.",
  "files": [
    {
      "path": "registry/components/dashboardblocks/animated-wave.tsx",
      "content": "import { cn } from '@/lib/utils'\n\nconst waveStyles = `\n  @keyframes dashboardblocks-wave {\n    0% { transform: translateX(0); }\n    100% { transform: translateX(-50%); }\n  }\n  .dashboardblocks-wave { animation: dashboardblocks-wave 3s linear infinite; }\n  .dashboardblocks-wave-secondary { animation: dashboardblocks-wave 4s linear infinite reverse; }\n  @media (prefers-reduced-motion: reduce) {\n    .dashboardblocks-wave, .dashboardblocks-wave-secondary { animation: none; }\n  }\n`\n\nexport const AnimatedWave = ({\n  className,\n  percentage = 64,\n  waveColor = 'currentColor',\n  waveColorSecondary = 'currentColor',\n  waveHeight = 16,\n}: {\n  /** Sets the wave color through `currentColor`, e.g. */\n  className?: string\n  percentage?: number\n  waveColor?: string\n  waveColorSecondary?: string\n  waveHeight?: number\n}) => {\n  const safePercentage = Number.isFinite(percentage) ? percentage : 0\n  const normalized = Math.min(100, Math.max(0, safePercentage))\n\n  return (\n    <div\n      aria-hidden\n      className={cn(\n        'pointer-events-none relative size-full overflow-hidden text-chart-2',\n        className,\n      )}\n    >\n      <div\n        className='absolute inset-0 transition-[transform] duration-1000 ease-out'\n        style={{\n          transform: `translateY(${100 - normalized}%)`,\n        }}\n      >\n        <svg\n          className='dashboardblocks-wave absolute top-0 left-0 w-[200%] h-full'\n          viewBox='0 0 400 200'\n          preserveAspectRatio='none'\n        >\n          <path\n            d={`\n                M 0 ${waveHeight}\n                Q 50 0, 100 ${waveHeight}\n                Q 150 ${waveHeight * 2}, 200 ${waveHeight}\n                Q 250 0, 300 ${waveHeight}\n                Q 350 ${waveHeight * 2}, 400 ${waveHeight}\n                L 400 200\n                L 0 200\n                Z\n              `}\n            fill={waveColor}\n          />\n        </svg>\n\n        <svg\n          className='dashboardblocks-wave-secondary absolute top-0 left-0 w-[200%] h-full opacity-60'\n          viewBox='0 0 400 200'\n          preserveAspectRatio='none'\n        >\n          <path\n            d={`\n                M 0 ${waveHeight}\n                Q 50 ${waveHeight * 2}, 100 ${waveHeight}\n                Q 150 0, 200 ${waveHeight}\n                Q 250 ${waveHeight * 2}, 300 ${waveHeight}\n                Q 350 0, 400 ${waveHeight}\n                L 400 200\n                L 0 200\n                Z\n              `}\n            fill={waveColorSecondary}\n          />\n        </svg>\n      </div>\n\n      {/* Keyframes, hoisted and deduped by React 19 across instances */}\n      <style href='dashboardblocks-wave' precedence='default'>\n        {waveStyles}\n      </style>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "@components/dashboardblocks/animated-wave.tsx"
    }
  ],
  "type": "registry:component"
}
