{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "neural-pulse-loader",
  "title": "Neural Pulse Loader",
  "description": "A neural-inspired loader with connected nodes, expanding pulse rings and a reduced-motion fallback.",
  "dependencies": [
    "motion",
    "lucide-react",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/neural-pulse-loader/neural-pulse-loader.tsx",
      "content": "\"use client\";\n\nimport type * as React from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\nimport { clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport interface NeuralPulseLoaderProps {\n  label?: string;\n  description?: string;\n  active?: boolean;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nexport function NeuralPulseLoader({ label = \"Connecting the dots\", description = \"Finding the signal in your context.\", active = true, theme = \"dark\", className }: NeuralPulseLoaderProps) {\n  const reduced = useReducedMotion();\n  const animate = active && !reduced;\n  const palette = { \"--ai-accent\": theme === \"dark\" ? \"#b5a1ff\" : \"#7052bd\" } as React.CSSProperties;\n  return <div style={palette} role=\"status\" aria-busy={active} className={twMerge(clsx(\"mx-auto flex w-full max-w-[460px] flex-col items-center overflow-hidden rounded-[24px] border border-current/[0.09] relative px-6 pb-8 pt-10 font-sans antialiased [font-family:Inter,ui-sans-serif,system-ui,sans-serif]\", theme === \"dark\" ? \"bg-[#0a0a0a] text-[#f2f2f2]\" : \"bg-[#fafafa] text-[#171717]\", className))}>\n    <div aria-hidden=\"true\" className=\"relative flex size-48 items-center justify-center\">\n      <div className=\"absolute inset-3 rounded-full border border-current/[0.045]\" />\n      <div className=\"absolute inset-7 rounded-full border border-dashed border-current/[0.09]\" />\n      <svg viewBox=\"0 0 192 192\" className=\"absolute inset-0 size-full overflow-visible text-[var(--ai-accent)]\">\n        {[0, 1, 2].map(i => <motion.g key={i} style={{ transformOrigin: \"96px 96px\" }} animate={animate ? { rotate: i % 2 ? -360 : 360 } : { rotate: i * 90 }} transition={{ duration: 14 + i * 6, repeat: Infinity, ease: \"linear\" }}>\n          <circle cx=\"96\" cy=\"96\" r={58 + i * 12} fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1\" strokeOpacity={0.12 + i * 0.04} strokeDasharray={`${28 + i * 12} 500`} strokeLinecap=\"round\" />\n          <circle cx={154 + i * 12} cy=\"96\" r={i === 1 ? 2.5 : 1.5} fill=\"currentColor\" opacity={0.8 - i * 0.15} />\n        </motion.g>)}\n      </svg>\n      <motion.div className=\"absolute size-24 rounded-full bg-[conic-gradient(#9b7bff55,#7cf3ff40,#ff7bd540,#7cffc430,#9b7bff55)] blur-2xl\" animate={animate ? { rotate: 360, opacity: [0.45, 0.8, 0.45] } : { opacity: 0.3 }} transition={{ duration: 10, repeat: Infinity, ease: \"linear\" }} />\n      <svg viewBox=\"0 0 100 100\" className=\"relative size-20 text-current\">{Array.from({ length: 169 }, (_, i) => {\n        const x = i % 13 - 6; const y = Math.floor(i / 13) - 6; const d = Math.hypot(x, y);\n        return d <= 6.2 ? <motion.circle key={i} cx={50 + x * 6.5} cy={50 + y * 6.5} r={Number((1.45 - d * 0.12).toFixed(4))} fill=\"currentColor\" animate={animate ? { opacity: [0.15 + (6 - d) * 0.07, 0.9 - d * 0.07, 0.15 + (6 - d) * 0.07] } : { opacity: 0.65 - d * 0.06 }} transition={{ duration: 2.8, repeat: Infinity, delay: d * 0.12 }} /> : null;\n      })}</svg>\n    </div>\n    <p className=\"mt-5 text-[17px] font-medium tracking-[-0.035em]\">{label}</p><p className=\"mt-2 max-w-[240px] text-center text-[12px] leading-5 opacity-45\">{description}</p>\n    <div className=\"mt-8 flex w-full items-center justify-between border-t border-current/[0.07] pt-4 text-[10px] opacity-45\"><span className=\"flex items-center gap-2\"><span className={clsx(\"size-1.5 rounded-full\", active ? \"bg-[var(--ai-accent)]\" : \"bg-current/40\")} />{active ? \"Processing context\" : \"Processing paused\"}</span><span>Neural engine</span></div>\n  </div>;\n}\nexport default NeuralPulseLoader;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}