{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-carousel",
  "type": "registry:component",
  "title": "Hero Carousel",
  "description": "A 3-step hero carousel with animated step cards for landing pages.",
  "dependencies": [
    "framer-motion",
    "lucide-react",
    "iconsax-react"
  ],
  "files": [
    {
      "path": "registry/new-york/ui/hero-carousel.tsx",
      "content": "// ./registry/new-york/ui/hero-carousel.tsx\n\n\"use client\";\n\nimport React, { useState } from \"react\";\nimport { motion } from \"framer-motion\";\nimport { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { Button } from \"@/components/ui/button\";\nimport { StepCard } from \"./step-card\";\n\nconst steps = [1, 2, 3] as const;\n\nexport function HeroCarousel() {\n  const [currentIndex, setCurrentIndex] = useState(0);\n\n  const handleNext = () => {\n    setCurrentIndex((prev) => (prev + 1) % steps.length);\n  };\n\n  const handlePrev = () => {\n    setCurrentIndex((prev) => (prev - 1 + steps.length) % steps.length);\n  };\n\n  const getPosition = (index: number) => {\n    if (index === currentIndex) return \"center\";\n    if (index === (currentIndex + 1) % steps.length) return \"right\";\n    return \"left\";\n  };\n\n  const variants = {\n    center: { x: \"0%\", scale: 1, zIndex: 10, opacity: 1 },\n    right: { x: \"50%\", scale: 0.8, zIndex: 5, opacity: 0.4 },\n    left: { x: \"-50%\", scale: 0.8, zIndex: 5, opacity: 0.4 },\n  };\n\n  return (\n    <div className=\"relative w-full max-w-lg mx-auto h-[400px] flex items-center justify-center\">\n      {/* Controls */}\n      <div className=\"absolute inset-x-0 top-1/2 -translate-y-1/2 flex justify-between px-4 z-30 pointer-events-none\">\n        <Button\n          size=\"icon\"\n          onClick={handlePrev}\n          className=\"pointer-events-auto w-12 h-12 rounded-full bg-white/10 backdrop-blur-md border border-white/20 text-white hover:bg-white/20 transition-all\"\n        >\n          <ChevronLeft className=\"w-6 h-6\" />\n        </Button>\n        <Button\n          size=\"icon\"\n          onClick={handleNext}\n          className=\"pointer-events-auto w-12 h-12 rounded-full bg-white/10 backdrop-blur-md border border-white/20 text-white hover:bg-white/20 transition-all\"\n        >\n          <ChevronRight className=\"w-6 h-6\" />\n        </Button>\n      </div>\n\n      <div className=\"relative w-full h-full flex items-center justify-center perspective-1000\">\n        {steps.map((step, index) => (\n          <motion.div\n            key={step}\n            initial=\"center\"\n            animate={getPosition(index)}\n            variants={variants}\n            transition={{ duration: 0.5, type: \"spring\", stiffness: 300, damping: 30 }}\n            className=\"absolute w-[85%] sm:w-[70%] h-full\"\n          >\n            <StepCard step={step} />\n          </motion.div>\n        ))}\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    },
    {
      "path": "registry/new-york/ui/step-card.tsx",
      "content": "// ./registry/new-york/ui/step-card.tsx\n\n\"use client\";\n\nimport { motion } from \"framer-motion\";\nimport { SearchNormal } from \"iconsax-react\";\nimport { Search, MousePointer2 } from \"lucide-react\";\n\ninterface StepCardProps {\n  step: 1 | 2 | 3;\n}\n\nexport function StepCard({ step }: StepCardProps) {\n  return (\n    <div className=\"relative group overflow-hidden rounded-2xl bg-[#09090b] border border-white/10 p-6 flex flex-col justify-between h-full min-h-[300px]\">\n      {/* Background Gradient */}\n      <div\n        className={`absolute inset-0 bg-linear-to-br opacity-0 group-hover:opacity-100 transition-opacity duration-500 ${step === 1 ? \"from-primary/5 to-transparent\" :\n          step === 2 ? \"from-purple-500/5 to-transparent\" :\n            \"from-green-500/5 to-transparent\"\n          }`}\n      />\n\n      {/* Interactive Element */}\n      <div className=\"relative h-40 mb-6 flex items-center justify-center\">\n        {step === 1 && (\n          <div className=\"relative\">\n            <motion.div\n              animate={{ y: [0, -10, 0] }}\n              transition={{ duration: 4, repeat: Infinity, ease: \"easeInOut\" }}\n              className=\"bg-white/5 backdrop-blur-md border border-white/10 rounded-xl p-4 shadow-2xl transform -rotate-6 z-10 relative\"\n            >\n              <div className=\"flex items-center gap-3 mb-2\">\n                <div className=\"h-8 w-8 rounded-full bg-blue-500/20 flex items-center justify-center text-blue-400\">\n                  <SearchNormal variant=\"TwoTone\" color=\"currentColor\" size={16} />\n                </div>\n                <div className=\"h-2 w-20 bg-white/10 rounded-full\" />\n              </div>\n              <div className=\"space-y-2\">\n                <div className=\"h-2 w-32 bg-white/5 rounded-full\" />\n                <div className=\"h-2 w-24 bg-white/5 rounded-full\" />\n              </div>\n            </motion.div>\n\n            <motion.div\n              animate={{ y: [0, 10, 0] }}\n              transition={{ duration: 5, repeat: Infinity, ease: \"easeInOut\", delay: 1 }}\n              className=\"absolute top-4 -right-12 bg-white/5 backdrop-blur-md border border-white/10 rounded-xl p-4 shadow-2xl transform rotate-6 scale-90 opacity-60\"\n            >\n              <div className=\"flex items-center gap-3 mb-2\">\n                <div className=\"h-8 w-8 rounded-full bg-purple-500/20 flex items-center justify-center text-purple-400\">\n                  <MousePointer2 size={16} />\n                </div>\n                <div className=\"h-2 w-20 bg-white/10 rounded-full\" />\n              </div>\n              <div className=\"space-y-2\">\n                <div className=\"h-2 w-32 bg-white/5 rounded-full\" />\n              </div>\n            </motion.div>\n          </div>\n        )}\n\n        {step === 2 && (\n          <>\n            <div className=\"grid grid-cols-2 gap-3\">\n              {[1, 2, 3, 4].map((i) => (\n                <motion.div\n                  key={i}\n                  initial={{ opacity: 0.5, scale: 0.9 }}\n                  whileHover={{ scale: 1.05, opacity: 1, backgroundColor: \"rgba(255,255,255,0.1)\" }}\n                  className=\"bg-white/5 border border-white/10 rounded-lg p-3 w-24 h-16 flex flex-col justify-center items-center gap-2 cursor-pointer transition-colors\"\n                >\n                  <div className={`h-2 w-12 rounded-full ${i === 2 ? 'bg-green-500' : 'bg-white/10'}`} />\n                  <div className=\"h-1 w-8 bg-white/5 rounded-full\" />\n                </motion.div>\n              ))}\n            </div>\n            <motion.div\n              className=\"absolute inset-0 flex items-center justify-center pointer-events-none\"\n              animate={{ rotate: 360 }}\n              transition={{ duration: 20, repeat: Infinity, ease: \"linear\" }}\n            >\n              <div className=\"absolute top-0 w-full h-full border border-dashed border-white/5 rounded-full scale-150\" />\n            </motion.div>\n          </>\n        )}\n\n        {step === 3 && (\n          <div className=\"flex items-end justify-center gap-2 px-8 h-full\">\n            {[40, 70, 50, 90, 60].map((height, i) => (\n              <motion.div\n                key={i}\n                initial={{ height: 0 }}\n                whileInView={{ height: `${height}%` }}\n                transition={{ duration: 1, delay: i * 0.1 }}\n                className=\"w-8 bg-linear-to-t from-primary/20 to-primary rounded-t-sm relative group/bar\"\n              >\n                <div className=\"absolute -top-8 left-1/2 -translate-x-1/2 bg-white text-black text-[10px] font-bold px-1.5 py-0.5 rounded opacity-0 group-hover/bar:opacity-100 transition-opacity\">\n                  {height}%\n                </div>\n              </motion.div>\n            ))}\n          </div>\n        )}\n      </div>\n\n      <div className=\"relative z-10\">\n        <div className=\"text-xs font-bold text-primary mb-2 uppercase tracking-wider\">Step {step}</div>\n        <h3 className=\"text-xl font-bold text-white mb-2\">\n          {step === 1 ? \"Select Your Niche\" : step === 2 ? \"AI Analysis\" : \"Launch & Profit\"}\n        </h3>\n        <p className=\"text-sm text-muted-foreground\">\n          {step === 1 ? \"Choose from high-profit categories like Pets, Beauty, or Home Decor.\" :\n            step === 2 ? \"Our agents scan thousands of ads, analyze copy, and score potential winners.\" :\n              \"Get a curated list of high-scoring products with ad creatives ready to launch.\"}\n        </p>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component"
    }
  ]
}