{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faq-journey",
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "../../packages/blocks/src/faq-section/faq-journey.tsx",
      "content": "'use client'\r\nimport React, { useState } from 'react'\r\nimport {\r\n  Accordion,\r\n  AccordionItem,\r\n  AccordionHeader,\r\n  AccordionPanel,\r\n} from '@/components/ui/accordion'\r\nimport {\r\n  LayoutGrid,\r\n  ShieldCheck,\r\n  Zap,\r\n  CreditCard,\r\n  ArrowRight,\r\n  Sparkles,\r\n} from 'lucide-react'\r\nimport { motion, AnimatePresence } from 'motion/react'\r\nimport { cn } from '@/lib/utils'\r\nimport { TimelineAnimation } from '@/components/ui/timeline-animation'\r\n\r\ninterface FAQItem {\r\n  id: string\r\n  question: string\r\n  answer: string\r\n  category: 'general' | 'technical' | 'billing' | 'account'\r\n}\r\n\r\nconst FAQ_DATA: FAQItem[] = [\r\n  {\r\n    id: 'g1',\r\n    category: 'general',\r\n    question: 'What is this platform about?',\r\n    answer:\r\n      'This is a premium showcase platform designed to demonstrate modern UI patterns, including sophisticated accordions and AI-driven features.',\r\n  },\r\n  {\r\n    id: 'g2',\r\n    category: 'general',\r\n    question: 'How do I get started?',\r\n    answer:\r\n      'Simply browse through our various sections. If you have a specific question, use our AI Assistant at the bottom of the page.',\r\n  },\r\n  {\r\n    id: 't1',\r\n    category: 'technical',\r\n    question: 'Is it mobile responsive?',\r\n    answer:\r\n      'Absolutely. Every component is built with a mobile-first approach using Tailwind CSS, ensuring a seamless experience across all devices.',\r\n  },\r\n  {\r\n    id: 't2',\r\n    category: 'technical',\r\n    question: 'What technologies are used?',\r\n    answer:\r\n      'We use React 18, TypeScript, Framer Motion for animations, and the Gemini AI API for our intelligent features.',\r\n  },\r\n  {\r\n    id: 'b1',\r\n    category: 'billing',\r\n    question: 'What payment methods are accepted?',\r\n    answer:\r\n      'We accept all major credit cards, PayPal, and cryptocurrency for our premium enterprise plans.',\r\n  },\r\n  {\r\n    id: 'b2',\r\n    category: 'billing',\r\n    question: 'Can I cancel my subscription anytime?',\r\n    answer:\r\n      'Yes, you can cancel your subscription from your account dashboard at any time. Your features will remain active until the end of the billing cycle.',\r\n  },\r\n  {\r\n    id: 'a1',\r\n    category: 'account',\r\n    question: 'How do I reset my password?',\r\n    answer:\r\n      'Go to the login page and click on \"Forgot Password\". We will send an email with instructions to reset your access securely.',\r\n  },\r\n  {\r\n    id: 'a2',\r\n    category: 'account',\r\n    question: 'Can I share my account?',\r\n    answer:\r\n      'Sharing accounts is against our terms of service. We offer team plans for collaborative work environments.',\r\n  },\r\n]\r\n\r\nexport const FaqJourney = () => {\r\n  const timelineRef = React.useRef<HTMLDivElement>(null)\r\n\r\n  return (\r\n    <section\r\n      className=\"w-full min-h-screen flex flex-col items-center justify-center bg-white\"\r\n      ref={timelineRef}\r\n    >\r\n      <div className=\"w-full max-w-3xl mx-auto px-4 py-12 relative\">\r\n        <TimelineAnimation\r\n          timelineRef={timelineRef}\r\n          animationNum={0}\r\n          as=\"h1\"\r\n          className=\"text-2xl sm:text-3xl font-medium text-neutral-900  mb-10 text-center\"\r\n        >\r\n          Frequently Asked Questions\r\n        </TimelineAnimation>\r\n        <div className=\"relative z-10\">\r\n          <TimelineAnimation\r\n            animationNum={3}\r\n            timelineRef={timelineRef}\r\n            className=\"absolute left-[27px] top-8 bottom-8 w-0.5 bg-slate-200 hidden sm:block\"\r\n          />\r\n          <Accordion multiple={false} defaultValue=\"g1\">\r\n            {FAQ_DATA.slice(0, 6).map((item, idx) => (\r\n              <AccordionItem\r\n                key={item.id}\r\n                value={item.id}\r\n                className=\"mb-8 relative z-10\"\r\n              >\r\n                <div className=\"flex gap-6 shadow-2xl\">\r\n                  <TimelineAnimation\r\n                    animationNum={idx + 1}\r\n                    timelineRef={timelineRef}\r\n                    className=\"shrink-0 w-14 h-14 translate-x-1 rounded-full bg-white border-2 border-slate-100 flex items-center justify-center text-xl font-semibold font-spaceGrotesk text-neutral-500 group-data-active:border-primary-500 group-data-active:bg-black group-data-active:text-white transition-all duration-500 shadow-xl sm:flex\"\r\n                  >\r\n                    {(idx + 1).toString().padStart(2, '0')}\r\n                  </TimelineAnimation>\r\n                  <TimelineAnimation\r\n                    animationNum={idx + 1}\r\n                    timelineRef={timelineRef}\r\n                    className=\"flex-1 bg-neutral-100 border border-slate-100 rounded-3xl p-2  transition-all duration-500\"\r\n                  >\r\n                    <AccordionHeader className=\"p-4 sm:p-6 text-xl font-semibold font-spaceGrotesk rounded-2xl data-active:bg-white\">\r\n                      {item.question}\r\n                    </AccordionHeader>\r\n                    <AccordionPanel className=\"data-active:bg-transparent\">\r\n                      <div className=\"text-slate-500  border-t border-slate-100 pt-4 mt-2\">\r\n                        {item.answer}\r\n                      </div>\r\n                    </AccordionPanel>\r\n                  </TimelineAnimation>\r\n                </div>\r\n              </AccordionItem>\r\n            ))}\r\n          </Accordion>\r\n        </div>\r\n      </div>\r\n    </section>\r\n  )\r\n}\r\n",
      "type": "registry:block"
    },
    {
      "path": "./components/ui/timeline-animation.tsx",
      "content": "import type { Variants } from 'motion/react';\nimport { type HTMLMotionProps, motion, useInView } from 'motion/react';\nimport type React from 'react';\n\ntype TimelineContentProps<T extends keyof HTMLElementTagNameMap> = {\n  children?: React.ReactNode;\n  animationNum: number;\n  className?: string;\n  timelineRef: React.RefObject<HTMLElement | null>;\n  as?: T;\n  customVariants?: Variants;\n  once?: boolean;\n} & HTMLMotionProps<T>;\n\nexport const TimelineAnimation = <T extends keyof HTMLElementTagNameMap = 'div'>({\n  children,\n  animationNum,\n  timelineRef,\n  className,\n  as,\n  customVariants,\n  once = true,\n  ...props\n}: TimelineContentProps<T>) => {\n  const defaultSequenceVariants = {\n    visible: (i: number) => ({\n      filter: 'blur(0px)',\n      y: 0,\n      opacity: 1,\n      transition: {\n        delay: i * 0.5,\n        duration: 0.5,\n      },\n    }),\n    hidden: {\n      filter: 'blur(20px)',\n      y: 0,\n      opacity: 0,\n    },\n  };\n\n  const sequenceVariants = customVariants || defaultSequenceVariants;\n\n  const isInView = useInView(timelineRef, {\n    once,\n  });\n\n  const MotionComponent = motion[as || 'div'] as React.ElementType;\n\n  return (\n    <MotionComponent\n      initial='hidden'\n      animate={isInView ? 'visible' : 'hidden'}\n      custom={animationNum}\n      variants={sequenceVariants}\n      className={className}\n      {...props}\n    >\n      {children}\n    </MotionComponent>\n  );\n};\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:block"
}