{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "onboarding-checklist",
  "type": "registry:component",
  "title": "Onboarding Checklist",
  "description": "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 className={theme === 'dark' ? 'dark' : ''}>\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 lg:w-100 max-w-100 bg-[#F5F5F7] dark:bg-[#161616] border border-[#E5E5E5] dark:border-white/10 rounded-xl shadow-lg overflow-hidden\"\n        >\n          {/* Header Section */}\n          <div\n            onClick={() => setIsExpanded(!isExpanded)}\n            className=\"p-3 sm:p-3.5 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-lg flex items-center justify-center text-[#A1A1A1] 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-[#1A1A1A] dark:text-[#EDEDED] text-[14px] sm:text-[15px] 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-0.5 xs:gap-[3px]\">\n                {Array.from({ length: 14 }).map((_, i) => (\n                  <div\n                    key={i}\n                    className={`h-3.5 sm:h-4 w-[2.5px] sm:w-[3.5px] rounded-full transition-colors duration-500 ${i < (completedCount / totalSteps) * 14\n                        ? 'bg-[#22C55E]'\n                        : 'bg-[#E5E5E7] dark:bg-[#2A2A2A]'\n                      }`}\n                  />\n                ))}\n              </div>\n\n              <span className=\"text-[12px] sm:text-[13px] font-bold text-[#71717A] dark:text-[#888] min-w-7 sm:min-w-7.5 text-right\">\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-[1.4px] border-[#E9E8EF] dark:border-white/5 bg-white dark:bg-[#1C1C1C] rounded-t-4xl sm:rounded-t-[24px]\"\n              >\n                <div className=\"p-1.5 sm:p-2 space-y-0.5 sm:y-1\">\n                  {steps.map((step) => (\n                    <div\n                      key={step.id}\n                      className=\"group flex items-center justify-between p-2.5 sm:p-3 px-3 sm:px-4 hover:bg-[#F9F9F9] dark:hover:bg-white/5 rounded-xl cursor-pointer transition-all active:scale-[0.98] sm:active:scale-100\"\n                    >\n                      <div className=\"flex items-center gap-2.5 sm:gap-3 min-w-0\">\n                        {step.isCompleted ? (\n                          <div className=\"w-5 h-4.5 sm:w-6 sm:h-5 rounded-full bg-[#00B613] shadow-sm shadow-[#238848] flex items-center justify-center shrink-0\">\n                            <Check size={10} strokeWidth={4} className=\"text-white sm:hidden\" />\n                            <Check size={12} strokeWidth={4} className=\"text-white hidden sm:block\" />\n                          </div>\n                        ) : (\n                          <div className={`w-5 h-4.5 sm:w-6 sm:h-5 rounded-full border-2 flex items-center justify-center text-[10px] sm:text-[12px] font-bold shrink-0 ${step.id === 3\n                              ? 'bg-[#292929] dark:bg-[#EDEDED] border-[#292929] dark:border-[#EDEDED] shadow-sm shadow-[#1a1919] text-white dark:text-[#1A1A1A]'\n                              : 'border-[#E5E5E7] dark:border-[#333] text-[#A1A1A1] dark:text-[#555] shadow-sm shadow-[#8f8e8e]/40'\n                            }`}>\n                            {step.id}\n                          </div>\n                        )}\n                        <span className={`text-[13px] sm:text-[14px] font-medium transition-colors truncate ${step.isCompleted ? 'text-[#A1A1A1] dark:text-[#555]' : 'text-[#1A1A1A] dark:text-[#D4D4D4]'\n                          }`}>\n                          {step.title}\n                        </span>\n                      </div>\n\n                      {!step.isCompleted && (\n                        <ChevronRight size={14} className=\"text-[#D1D1D6] dark:text-[#444] 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};"
    }
  ]
}
