{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-hero-forms-quiz-assessment-form","type":"registry:block","title":"Quiz Assessment Form","files":[{"path":"components/blocks/marketing/hero-forms/quiz-assessment-form.tsx","content":"import { useState } from 'react';\nimport { Button } from '@/components/ui/button';\nimport { Label } from '@/components/ui/label';\nimport { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardFooter,\n  CardHeader,\n  CardTitle,\n} from '@/components/ui/card';\nimport { Progress } from '@/components/ui/progress';\nimport { Checkbox } from '@/components/ui/checkbox';\nimport {\n  ArrowRightIcon,\n  CheckIcon,\n  ClockIcon,\n  TrophyIcon,\n  RotateCwIcon,\n  HelpCircleIcon,\n} from 'lucide-react';\n\ninterface Question {\n  id: number;\n  text: string;\n  type: 'single' | 'multiple' | 'text';\n  options?: {\n    id: string;\n    text: string;\n    isCorrect?: boolean;\n  }[];\n  answerExplanation?: string;\n}\n\nexport default function HeroFormQuizAssessment() {\n  const [currentQuestion, setCurrentQuestion] = useState(0);\n  const [answers, setAnswers] = useState<Record<number, string | string[]>>({});\n  const [showResults, setShowResults] = useState(false);\n  const [timeLeft] = useState(300); // 5 minutes in seconds\n  const [showExplanation, setShowExplanation] = useState(false);\n\n  const questions: Question[] = [\n    {\n      id: 1,\n      text: 'Which of the following is a core principle of user-centered design?',\n      type: 'single',\n      options: [\n        {\n          id: 'a',\n          text: 'Focusing on aesthetics above all else',\n          isCorrect: false,\n        },\n        {\n          id: 'b',\n          text: 'Prioritizing technical complexity',\n          isCorrect: false,\n        },\n        {\n          id: 'c',\n          text: 'Involving users throughout the design process',\n          isCorrect: true,\n        },\n        { id: 'd', text: 'Minimizing development costs', isCorrect: false },\n      ],\n      answerExplanation:\n        'User-centered design requires involving users throughout the entire design process to ensure the final product meets their needs and expectations.',\n    },\n    {\n      id: 2,\n      text: 'Which of these tools would you use for collaborative wireframing?',\n      type: 'multiple',\n      options: [\n        { id: 'a', text: 'Figma', isCorrect: true },\n        { id: 'b', text: 'Microsoft Word', isCorrect: false },\n        { id: 'c', text: 'Miro', isCorrect: true },\n        { id: 'd', text: 'Adobe Photoshop', isCorrect: false },\n      ],\n      answerExplanation:\n        'Both Figma and Miro offer robust collaboration features that make them excellent choices for team wireframing sessions.',\n    },\n    {\n      id: 3,\n      text: 'What is the primary goal of a usability test?',\n      type: 'single',\n      options: [\n        {\n          id: 'a',\n          text: 'To showcase the design to stakeholders',\n          isCorrect: false,\n        },\n        {\n          id: 'b',\n          text: 'To identify and fix user experience issues',\n          isCorrect: true,\n        },\n        { id: 'c', text: 'To finalize the visual design', isCorrect: false },\n        {\n          id: 'd',\n          text: 'To compare with competitor products',\n          isCorrect: false,\n        },\n      ],\n      answerExplanation:\n        'Usability testing aims to identify issues in the user experience by observing real users interacting with the product, allowing designers to make improvements.',\n    },\n    {\n      id: 4,\n      text: 'Which accessibility guideline is crucial for color usage in UI design?',\n      type: 'single',\n      options: [\n        {\n          id: 'a',\n          text: 'Always use bright colors to attract attention',\n          isCorrect: false,\n        },\n        {\n          id: 'b',\n          text: 'Ensure sufficient color contrast for text readability',\n          isCorrect: true,\n        },\n        {\n          id: 'c',\n          text: 'Use as many colors as possible to differentiate elements',\n          isCorrect: false,\n        },\n        {\n          id: 'd',\n          text: 'Avoid using color entirely to prevent issues',\n          isCorrect: false,\n        },\n      ],\n      answerExplanation:\n        'Sufficient color contrast between text and background is essential for readability, particularly for users with visual impairments or color blindness.',\n    },\n    {\n      id: 5,\n      text: 'Explain how you would approach designing a new feature for a mobile app. What steps would you take from concept to implementation?',\n      type: 'text',\n      answerExplanation:\n        'A strong approach would include user research, defining requirements, sketching and wireframing, prototyping, usability testing, iteration based on feedback, and collaboration with developers during implementation.',\n    },\n  ];\n\n  // Calculate progress percentage\n  const progress = ((currentQuestion + 1) / questions.length) * 100;\n\n  // Format time remaining (MM:SS)\n  const formatTime = (seconds: number) => {\n    const mins = Math.floor(seconds / 60);\n    const secs = seconds % 60;\n    return `${mins.toString().padStart(2, '0')}:${secs\n      .toString()\n      .padStart(2, '0')}`;\n  };\n\n  // Handle selection for single choice questions\n  const handleSingleChoice = (value: string) => {\n    setAnswers({\n      ...answers,\n      [questions[currentQuestion]!.id]: value,\n    });\n  };\n\n  // Handle selection for multiple choice questions\n  const handleMultipleChoice = (value: string) => {\n    const currentAnswers =\n      (answers[questions[currentQuestion]!.id] as string[]) || [];\n    let newAnswers: string[];\n\n    if (currentAnswers.includes(value)) {\n      newAnswers = currentAnswers.filter((item) => item !== value);\n    } else {\n      newAnswers = [...currentAnswers, value];\n    }\n\n    setAnswers({\n      ...answers,\n      [questions[currentQuestion]!.id]: newAnswers,\n    });\n  };\n\n  // Handle text input for open-ended questions\n  const handleTextInput = (value: string) => {\n    setAnswers({\n      ...answers,\n      [questions[currentQuestion]!.id]: value,\n    });\n  };\n\n  // Calculate score for results\n  const calculateScore = () => {\n    let score = 0;\n    let totalPossible = 0;\n\n    questions.forEach((question) => {\n      if (question.type === 'text') return; // Skip text questions for scoring\n\n      const userAnswer = answers[question.id];\n\n      if (question.type === 'single' && question.options) {\n        totalPossible++;\n        const correctOption = question.options.find(\n          (option) => option.isCorrect\n        );\n        if (correctOption && userAnswer === correctOption.id) {\n          score++;\n        }\n      }\n\n      if (question.type === 'multiple' && question.options) {\n        totalPossible++;\n        const correctOptions = question.options\n          .filter((option) => option.isCorrect)\n          .map((option) => option.id);\n\n        const userAnswers = (userAnswer as string[]) || [];\n        const allCorrect = correctOptions.every((id) =>\n          userAnswers.includes(id)\n        );\n        const noIncorrect = userAnswers.every(\n          (id) =>\n            question.options?.find((option) => option.id === id)?.isCorrect\n        );\n\n        if (\n          allCorrect &&\n          noIncorrect &&\n          userAnswers.length === correctOptions.length\n        ) {\n          score++;\n        }\n      }\n    });\n\n    return { score, totalPossible };\n  };\n\n  const handleNextQuestion = () => {\n    if (currentQuestion < questions.length - 1) {\n      setCurrentQuestion(currentQuestion + 1);\n      setShowExplanation(false);\n    } else {\n      setShowResults(true);\n    }\n  };\n\n  const handlePreviousQuestion = () => {\n    if (currentQuestion > 0) {\n      setCurrentQuestion(currentQuestion - 1);\n      setShowExplanation(false);\n    }\n  };\n\n  const currentQuestionData = questions[currentQuestion]!;\n  const hasAnswered =\n    answers[currentQuestionData.id] !== undefined &&\n    (currentQuestionData.type !== 'multiple' ||\n      (answers[currentQuestionData.id] as string[])?.length > 0);\n\n  return (\n    <>\n      {/* Hero */}\n      <div className=\"relative overflow-hidden bg-gradient-to-b from-blue-50/50 to-white dark:from-slate-950 dark:to-slate-900\">\n        <div className=\"bg-grid-slate-100 dark:bg-grid-slate-800/10 absolute inset-0 bg-[size:40px_40px] opacity-20\"></div>\n\n        <div className=\"relative z-10 container mx-auto px-4 py-16 md:px-6 lg:py-24 2xl:max-w-[1400px]\">\n          <div className=\"mx-auto max-w-4xl\">\n            {!showResults ? (\n              <Card className=\"border shadow-lg\">\n                <CardHeader className=\"pb-4\">\n                  <div className=\"mb-2 flex items-center justify-between\">\n                    <div className=\"inline-flex items-center rounded-full bg-blue-100 px-3 py-1 text-sm font-medium text-blue-800 dark:bg-blue-900/30 dark:text-blue-300\">\n                      UX Design Assessment\n                    </div>\n                    <div className=\"text-muted-foreground flex items-center text-sm\">\n                      <ClockIcon className=\"mr-1 h-4 w-4\" />\n                      <span>{formatTime(timeLeft)}</span>\n                    </div>\n                  </div>\n\n                  <CardTitle className=\"text-2xl font-bold\">\n                    Question {currentQuestion + 1} of {questions.length}\n                  </CardTitle>\n\n                  <CardDescription>\n                    <Progress value={progress} className=\"mt-2 h-2\" />\n                  </CardDescription>\n                </CardHeader>\n\n                <CardContent className=\"pt-4\">\n                  <div className=\"space-y-6\">\n                    <div>\n                      <h3 className=\"mb-4 text-xl font-medium\">\n                        {currentQuestionData.text}\n                      </h3>\n\n                      {/* Single Choice Question */}\n                      {currentQuestionData.type === 'single' &&\n                        currentQuestionData.options && (\n                          <RadioGroup\n                            value={\n                              (answers[currentQuestionData.id] as string) || ''\n                            }\n                            onValueChange={handleSingleChoice}\n                            className=\"space-y-3\"\n                          >\n                            {currentQuestionData.options.map((option) => (\n                              <div\n                                key={option.id}\n                                className=\"hover:bg-muted/50 flex items-center space-x-2 rounded-lg border p-4 transition-colors\"\n                              >\n                                <RadioGroupItem\n                                  value={option.id}\n                                  id={`option-${option.id}`}\n                                />\n                                <Label\n                                  htmlFor={`option-${option.id}`}\n                                  className=\"flex-grow cursor-pointer\"\n                                >\n                                  {option.text}\n                                </Label>\n                              </div>\n                            ))}\n                          </RadioGroup>\n                        )}\n\n                      {/* Multiple Choice Question */}\n                      {currentQuestionData.type === 'multiple' &&\n                        currentQuestionData.options && (\n                          <div className=\"space-y-3\">\n                            <p className=\"text-muted-foreground mb-2 text-sm\">\n                              Select all that apply\n                            </p>\n                            {currentQuestionData.options.map((option) => (\n                              <div\n                                key={option.id}\n                                className=\"hover:bg-muted/50 flex items-center space-x-2 rounded-lg border p-4 transition-colors\"\n                                onClick={() => handleMultipleChoice(option.id)}\n                              >\n                                <Checkbox\n                                  id={`option-${option.id}`}\n                                  checked={(\n                                    (answers[\n                                      currentQuestionData.id\n                                    ] as string[]) || []\n                                  ).includes(option.id)}\n                                  onCheckedChange={() =>\n                                    handleMultipleChoice(option.id)\n                                  }\n                                />\n                                <Label\n                                  htmlFor={`option-${option.id}`}\n                                  className=\"flex-grow cursor-pointer\"\n                                >\n                                  {option.text}\n                                </Label>\n                              </div>\n                            ))}\n                          </div>\n                        )}\n\n                      {/* Text Question */}\n                      {currentQuestionData.type === 'text' && (\n                        <div className=\"space-y-2\">\n                          <Label htmlFor=\"text-answer\" className=\"sr-only\">\n                            Your answer\n                          </Label>\n                          <textarea\n                            id=\"text-answer\"\n                            rows={6}\n                            placeholder=\"Type your answer here...\"\n                            className=\"border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring w-full rounded-md border px-3 py-2 text-sm focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50\"\n                            value={\n                              (answers[currentQuestionData.id] as string) || ''\n                            }\n                            onChange={(e) => handleTextInput(e.target.value)}\n                          />\n                        </div>\n                      )}\n                    </div>\n\n                    {/* Explanation section (shown after answering) */}\n                    {showExplanation &&\n                      currentQuestionData.answerExplanation && (\n                        <div className=\"mt-4 rounded-lg border border-blue-100 bg-blue-50 p-4 dark:border-blue-800 dark:bg-blue-900/20\">\n                          <h4 className=\"mb-1 font-medium\">Explanation:</h4>\n                          <p className=\"text-muted-foreground text-sm\">\n                            {currentQuestionData.answerExplanation}\n                          </p>\n                        </div>\n                      )}\n                  </div>\n                </CardContent>\n\n                <CardFooter className=\"flex justify-between pt-6\">\n                  <div className=\"flex space-x-2\">\n                    <Button\n                      variant=\"outline\"\n                      onClick={handlePreviousQuestion}\n                      disabled={currentQuestion === 0}\n                    >\n                      Previous\n                    </Button>\n\n                    {!showExplanation &&\n                      currentQuestionData.answerExplanation && (\n                        <Button\n                          variant=\"outline\"\n                          onClick={() => setShowExplanation(true)}\n                          disabled={!hasAnswered}\n                        >\n                          <HelpCircleIcon className=\"mr-1 h-4 w-4\" />\n                          Show Explanation\n                        </Button>\n                      )}\n                  </div>\n\n                  <Button onClick={handleNextQuestion} disabled={!hasAnswered}>\n                    {currentQuestion < questions.length - 1 ? (\n                      <>\n                        Next\n                        <ArrowRightIcon className=\"ml-2 h-4 w-4\" />\n                      </>\n                    ) : (\n                      'Submit Assessment'\n                    )}\n                  </Button>\n                </CardFooter>\n              </Card>\n            ) : (\n              <Card className=\"border shadow-lg\">\n                <CardHeader className=\"pb-4 text-center\">\n                  <div className=\"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/30\">\n                    <TrophyIcon className=\"h-8 w-8 text-green-600 dark:text-green-400\" />\n                  </div>\n\n                  <CardTitle className=\"text-2xl font-bold\">\n                    Assessment Complete!\n                  </CardTitle>\n\n                  <CardDescription className=\"text-lg\">\n                    {(() => {\n                      const { score, totalPossible } = calculateScore();\n                      const percentage = (score / totalPossible) * 100;\n\n                      let message = 'Thank you for completing the assessment.';\n                      if (percentage >= 80) {\n                        message +=\n                          ' Great job! You demonstrated excellent knowledge.';\n                      } else if (percentage >= 60) {\n                        message +=\n                          ' Good work! You have a solid understanding of the concepts.';\n                      } else {\n                        message +=\n                          ' Thanks for your effort. Consider reviewing the material.';\n                      }\n\n                      return message;\n                    })()}\n                  </CardDescription>\n                </CardHeader>\n\n                <CardContent className=\"pt-2\">\n                  <div className=\"space-y-6\">\n                    <div className=\"bg-muted/30 rounded-lg p-6\">\n                      <h3 className=\"mb-4 font-medium\">Your Results</h3>\n\n                      <div className=\"space-y-4\">\n                        <div className=\"flex items-center justify-between\">\n                          <span className=\"text-muted-foreground text-sm\">\n                            Score\n                          </span>\n                          <div className=\"text-lg font-semibold\">\n                            {(() => {\n                              const { score, totalPossible } = calculateScore();\n                              return `${score}/${totalPossible}`;\n                            })()}\n                          </div>\n                        </div>\n\n                        <div className=\"space-y-2\">\n                          <div className=\"flex items-center justify-between\">\n                            <span className=\"text-muted-foreground text-sm\">\n                              Percentage\n                            </span>\n                            <div className=\"text-lg font-semibold\">\n                              {(() => {\n                                const { score, totalPossible } =\n                                  calculateScore();\n                                return `${Math.round(\n                                  (score / totalPossible) * 100\n                                )}%`;\n                              })()}\n                            </div>\n                          </div>\n\n                          <Progress\n                            value={(() => {\n                              const { score, totalPossible } = calculateScore();\n                              return (score / totalPossible) * 100;\n                            })()}\n                            className=\"h-2\"\n                          />\n                        </div>\n\n                        <div className=\"flex items-center justify-between\">\n                          <span className=\"text-muted-foreground text-sm\">\n                            Time Taken\n                          </span>\n                          <div className=\"font-semibold\">\n                            {formatTime(300 - timeLeft)}\n                          </div>\n                        </div>\n\n                        <div className=\"flex flex-col items-center justify-between gap-2 pt-4 sm:flex-row\">\n                          <div className=\"text-muted-foreground text-sm\">\n                            Your answers have been submitted. You can now view\n                            your certificate or retake the assessment.\n                          </div>\n                        </div>\n                      </div>\n                    </div>\n                  </div>\n                </CardContent>\n\n                <CardFooter className=\"flex flex-col gap-4 pt-6 sm:flex-row\">\n                  <Button\n                    className=\"w-full sm:w-auto\"\n                    variant=\"outline\"\n                    onClick={() => window.location.reload()}\n                  >\n                    <RotateCwIcon className=\"mr-2 h-4 w-4\" />\n                    Retake Assessment\n                  </Button>\n\n                  <Button className=\"w-full sm:w-auto\">\n                    <CheckIcon className=\"mr-2 h-4 w-4\" />\n                    View Certificate\n                  </Button>\n                </CardFooter>\n              </Card>\n            )}\n          </div>\n        </div>\n      </div>\n      {/* End Hero */}\n    </>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/hero-forms/quiz-assessment-form.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"},{"path":"components/ui/label.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Label as LabelPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Label({\n  className,\n  ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n  return (\n    <LabelPrimitive.Root\n      data-slot=\"label\"\n      className={cn(\n        \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Label }\n","type":"registry:ui","target":"components/ui/label.tsx"},{"path":"components/ui/radio-group.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction RadioGroup({\n  className,\n  ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n  return (\n    <RadioGroupPrimitive.Root\n      data-slot=\"radio-group\"\n      className={cn(\"grid w-full gap-3\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction RadioGroupItem({\n  className,\n  ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n  return (\n    <RadioGroupPrimitive.Item\n      data-slot=\"radio-group-item\"\n      className={cn(\n        \"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n        className\n      )}\n      {...props}\n    >\n      <RadioGroupPrimitive.Indicator\n        data-slot=\"radio-group-indicator\"\n        className=\"flex size-4 items-center justify-center\"\n      >\n        <span className=\"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground\" />\n      </RadioGroupPrimitive.Indicator>\n    </RadioGroupPrimitive.Item>\n  )\n}\n\nexport { RadioGroup, RadioGroupItem }\n","type":"registry:ui","target":"components/ui/radio-group.tsx"},{"path":"components/ui/card.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Card({\n  className,\n  size = \"default\",\n  ...props\n}: React.ComponentProps<\"div\"> & { size?: \"default\" | \"sm\" }) {\n  return (\n    <div\n      data-slot=\"card\"\n      data-size={size}\n      className={cn(\n        \"group/card flex flex-col gap-6 overflow-hidden rounded-xl bg-card py-6 text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-header\"\n      className={cn(\n        \"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-title\"\n      className={cn(\n        \"font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-description\"\n      className={cn(\"text-sm text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-action\"\n      className={cn(\n        \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-content\"\n      className={cn(\"px-6 group-data-[size=sm]/card:px-4\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      data-slot=\"card-footer\"\n      className={cn(\n        \"flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport {\n  Card,\n  CardHeader,\n  CardFooter,\n  CardTitle,\n  CardAction,\n  CardDescription,\n  CardContent,\n}\n","type":"registry:ui","target":"components/ui/card.tsx"},{"path":"components/ui/progress.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Progress as ProgressPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Progress({\n  className,\n  value,\n  ...props\n}: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n  return (\n    <ProgressPrimitive.Root\n      data-slot=\"progress\"\n      className={cn(\n        \"relative flex h-1.5 w-full items-center overflow-x-hidden rounded-full bg-muted\",\n        className\n      )}\n      {...props}\n    >\n      <ProgressPrimitive.Indicator\n        data-slot=\"progress-indicator\"\n        className=\"size-full flex-1 bg-primary transition-all\"\n        style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n      />\n    </ProgressPrimitive.Root>\n  )\n}\n\nexport { Progress }\n","type":"registry:ui","target":"components/ui/progress.tsx"},{"path":"components/ui/checkbox.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Checkbox as CheckboxPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\nimport { CheckIcon } from \"lucide-react\"\n\nfunction Checkbox({\n  className,\n  ...props\n}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n  return (\n    <CheckboxPrimitive.Root\n      data-slot=\"checkbox\"\n      className={cn(\n        \"peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n        className\n      )}\n      {...props}\n    >\n      <CheckboxPrimitive.Indicator\n        data-slot=\"checkbox-indicator\"\n        className=\"grid place-content-center text-current transition-none [&>svg]:size-3.5\"\n      >\n        <CheckIcon\n        />\n      </CheckboxPrimitive.Indicator>\n    </CheckboxPrimitive.Root>\n  )\n}\n\nexport { Checkbox }\n","type":"registry:ui","target":"components/ui/checkbox.tsx"}],"description":"A hero with a quiz or assessment form that walks through scored questions. Engages visitors and routes them toward a tailored recommendation.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}