{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "onboarding-checklist-base",
  "type": "registry:component",
  "title": "Onboarding Checklist (base)",
  "description": "Theme-ready base variant of Step-by-step onboarding checklist with progress tracking and completion feedback..",
  "dependencies": [
    "lucide-react",
    "motion"
  ],
  "files": [
    {
      "path": "components/watermelon/onboarding-checklist.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport React, { useState } from 'react';\nimport { motion, AnimatePresence } from 'motion/react';\nimport { ChevronUp, ChevronRight, Check } from 'lucide-react';\n\ninterface Step {\n  id: number;\n  title: string;\n  isCompleted: boolean;\n}\n\ninterface ChecklistProps {\n  steps: Step[];\n  title?: string;\n}\n\nexport const OnboardingChecklist: React.FC<ChecklistProps> = ({\n  steps,\n  title = \"Getting started\"\n}) => {\n  const [isExpanded, setIsExpanded] = useState(false);\n  const [theme] = useState<'light' | 'dark'>('light');\n\n  const completedCount = steps.filter(s => s.isCompleted).length;\n  const totalSteps = steps.length;\n  const springConfig = { type: \"spring\", stiffness: 300, damping: 30 } as const;\n\n  return (\n    <div\n      className={`theme-injected ${theme === 'dark' ? 'dark' : ''} bg-transparent text-foreground font-sans`}\n      style={{ fontFamily: \"var(--font-sans)\" }}\n    >\n      <div className=\"min-h-full bg-transparent flex flex-col items-center justify-center p-4 xs:p-6 sm:p-10 space-y-12 relative transition-colors duration-500\">\n        <motion.div\n          layout\n          transition={springConfig}\n          className=\"w-full max-w-xl bg-card text-card-foreground border border-border rounded-xl shadow-lg overflow-hidden\"\n        >\n          {/* Header Section */}\n          <div\n            onClick={() => setIsExpanded(!isExpanded)}\n            className=\"p-3 sm:p-4 flex items-center justify-between cursor-pointer select-none\"\n          >\n            <div className=\"flex items-center gap-2 sm:gap-3 min-w-0\">\n              <motion.div\n                animate={{ rotate: isExpanded ? 0 : 180 }}\n                className=\"w-7 h-7 sm:w-8 sm:h-8 rounded-md flex items-center justify-center text-muted-foreground shrink-0\"\n              >\n                <ChevronUp size={20} className=\"sm:hidden\" />\n                <ChevronUp size={22} className=\"hidden sm:block\" />\n              </motion.div>\n              <span className=\"font-bold text-foreground text-sm sm:text-base truncate pr-1\">\n                {title}\n              </span>\n            </div>\n\n            <div className=\"flex items-center gap-2 sm:gap-3 shrink-0 ml-1\">\n              <div className=\"flex gap-1\">\n                {Array.from({ length: 14 }).map((_, i) => (\n                  <div\n                    key={i}\n                    className={`h-3 sm:h-4 w-1 rounded-full transition-colors duration-500 ${i < (completedCount / totalSteps) * 14\n                        ? 'bg-primary'\n                        : 'bg-muted'\n                      }`}\n                  />\n                ))}\n              </div>\n\n              <span\n                className=\"text-xs sm:text-sm font-bold text-muted-foreground min-w-7 sm:min-w-8 text-right\"\n                style={{ fontFamily: \"var(--font-mono)\" }}\n              >\n                {completedCount}/{totalSteps}\n              </span>\n            </div>\n          </div>\n\n          {/* Expanded Checklist Items */}\n          <AnimatePresence>\n            {isExpanded && (\n              <motion.div\n                initial={{ height: 0, opacity: 0 }}\n                animate={{ height: 'auto', opacity: 1 }}\n                exit={{ height: 0, opacity: 0 }}\n                transition={springConfig}\n                className=\"border-t border-border bg-background rounded-t-xl\"\n              >\n                <div className=\"p-2 space-y-1\">\n                  {steps.map((step) => (\n                    <div\n                      key={step.id}\n                      className=\"group flex items-center justify-between py-3 px-3 sm:px-4 hover:bg-accent/40 rounded-lg cursor-pointer transition-all active:scale-95 sm:active:scale-100\"\n                    >\n                      <div className=\"flex items-center gap-2 sm:gap-3 min-w-0\">\n                        {step.isCompleted ? (\n                          <div className=\"w-5 h-5 sm:w-6 sm:h-6 rounded-full bg-primary shadow-xs flex items-center justify-center shrink-0\">\n                            <Check size={10} strokeWidth={4} className=\"text-primary-foreground sm:hidden\" />\n                            <Check size={12} strokeWidth={4} className=\"text-primary-foreground hidden sm:block\" />\n                          </div>\n                        ) : (\n                          <div className={`w-5 h-5 sm:w-6 sm:h-6 rounded-full border-2 flex items-center justify-center text-xs font-bold shrink-0 ${step.id === 3\n                              ? 'bg-foreground border-foreground shadow-xs text-background'\n                              : 'border-border text-muted-foreground shadow-xs'\n                            }`}>\n                            {step.id}\n                          </div>\n                        )}\n                        <span className={`text-sm font-medium transition-colors truncate ${step.isCompleted ? 'text-muted-foreground' : 'text-foreground'\n                          }`}>\n                          {step.title}\n                        </span>\n                      </div>\n\n                      {!step.isCompleted && (\n                        <ChevronRight size={14} className=\"text-muted-foreground shrink-0 sm:size-4\" />\n                      )}\n                    </div>\n                  ))}\n                </div>\n              </motion.div>\n            )}\n          </AnimatePresence>\n        </motion.div>\n      </div>\n    </div>\n  );\n};"
    }
  ]
}
