{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "faq-minimilastic",
  "dependencies": [
    "motion"
  ],
  "devDependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "../../packages/blocks/src/faq-section/faq-minimilastic.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 { Plus } from 'lucide-react'\r\nimport { TimelineAnimation } from '@/components/ui/timeline-animation'\r\nimport { FaqQuestionImg } from '../../assets'\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 FaqMinimalist = () => {\r\n  const timelineRef = React.useRef<HTMLDivElement>(null)\r\n  console.log(FaqQuestionImg)\r\n\r\n  return (\r\n    <section className=\"w-full bg-blue-50 relative py-20\" ref={timelineRef}>\r\n      {/* <div\r\n        className=\"absolute inset-0 z-0 h-full w-full\"\r\n        style={{\r\n          background:\r\n            'radial-gradient(125% 125% at 50% 10%, #fff 40%, #55a0f7 100%)',\r\n        }}\r\n      /> */}\r\n      <div className=\"w-full max-w-3xl mx-auto px-4 relative\">\r\n        <TimelineAnimation\r\n          timelineRef={timelineRef}\r\n          as=\"h1\"\r\n          animationNum={0}\r\n          className=\"text-2xl sm:text-4xl font-medium text-blue-800 mb-10 text-center\"\r\n        >\r\n          All the Answer to Your Question\r\n        </TimelineAnimation>\r\n        <Accordion multiple={false} defaultValue=\"g1\">\r\n          {FAQ_DATA.slice(0, 5).map((item, i) => (\r\n            <AccordionItem key={item.id} value={item.id} className=\"mb-4\">\r\n              <TimelineAnimation\r\n                timelineRef={timelineRef}\r\n                animationNum={i + 1}\r\n                className=\"border border-slate-200 bg-blue-100 data-active:bg-blue-100 backdrop-blur-sm rounded-2xl overflow-hidden transition-all duration-500\"\r\n              >\r\n                <AccordionHeader\r\n                  customIcon\r\n                  className=\"p-4 text-xl dark:bg-transparent bg-transparent data-active:bg-transparent text-blue-800 hover:text-blue-800 hover:bg-blue-50\"\r\n                >\r\n                  {item.question}\r\n                  <span className=\"relative group-data-active:rotate-90 border border-neutral-200 bg-white text-neutral-950 p-2 -translate-x-1 rounded-xl\">\r\n                    <Plus className=\"group-data-active:rotate-45 transition-all duration-300\" />\r\n                  </span>\r\n                </AccordionHeader>\r\n                <AccordionPanel className=\"px-3 dark:bg-transparent bg-transparent data-active:bg-transparent\">\r\n                  <p className=\"text-lg text-slate-600\">{item.answer}</p>\r\n                </AccordionPanel>\r\n              </TimelineAnimation>\r\n            </AccordionItem>\r\n          ))}\r\n        </Accordion>\r\n\r\n        <div className=\"max-w-xl mx-auto pt-10\">\r\n          <TimelineAnimation\r\n            timelineRef={timelineRef}\r\n            animationNum={7}\r\n            as=\"img\"\r\n            //@ts-ignore\r\n            src={FaqQuestionImg?.src}\r\n            className=\"w-20 mx-auto\"\r\n            alt=\"questionimg\"\r\n          />\r\n          <TimelineAnimation\r\n            timelineRef={timelineRef}\r\n            animationNum={7}\r\n            className=\"text-2xl sm:text-4xl font-medium text-blue-800 pt-4 text-center\"\r\n          >\r\n            Still have Question?\r\n          </TimelineAnimation>\r\n          <TimelineAnimation\r\n            timelineRef={timelineRef}\r\n            animationNum={8}\r\n            as=\"p\"\r\n            className=\"font-medium text-blue-800 my-2 text-center\"\r\n          >\r\n            Book a call with our team to learn how UI-Layouts can help you to\r\n            change he way you manage your business?\r\n          </TimelineAnimation>\r\n          <TimelineAnimation\r\n            timelineRef={timelineRef}\r\n            animationNum={8}\r\n            as=\"button\"\r\n            className=\"text-xl px-4 font-medium bg-blue-800 text-white  text-center grid place-items-center p-3 rounded-xl w-fit mx-auto\"\r\n          >\r\n            Book a demo\r\n          </TimelineAnimation>\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"
}