{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ds-pricing-comparison",
  "title": "Pricing Comparison",
  "description": "Tabela comparativa feature × plano — blockus #06.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "@lema-ds/table",
    "@lema-ds/tokens"
  ],
  "files": [
    {
      "path": "components/ds/ds-pricing-comparison.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { CheckIcon, MinusIcon } from \"lucide-react\"\n\n// ── Types ──────────────────────────────────────────────────────────────────\n\nexport interface PricingComparisonPlan {\n  name: string\n  price?: string\n  featured?: boolean\n}\n\nexport interface PricingComparisonFeature {\n  category: string\n  items: { label: string; values: (boolean | string)[] }[]\n}\n\nexport interface PricingComparisonProps extends React.HTMLAttributes<HTMLDivElement> {\n  plans: PricingComparisonPlan[]\n  features: PricingComparisonFeature[]\n}\n\n// ── Component ──────────────────────────────────────────────────────────────\n\nexport function PricingComparison({\n  className,\n  plans,\n  features,\n  ...props\n}: PricingComparisonProps) {\n  return (\n    <div\n      data-slot=\"pricing-comparison\"\n      className={cn(\"w-full overflow-x-auto\", className)}\n      {...props}\n    >\n      <table className=\"w-full caption-bottom text-sm\">\n        <thead>\n          <tr className=\"border-b\">\n            <th className=\"h-10 px-3 text-left text-xs font-medium text-muted-foreground\">\n              Feature\n            </th>\n            {plans.map((plan) => (\n              <th\n                key={plan.name}\n                className={cn(\n                  \"h-10 px-3 text-center text-sm font-semibold\",\n                  plan.featured && \"text-primary\"\n                )}\n              >\n                {plan.name}\n                {plan.price && (\n                  <span className=\"ml-1 text-xs font-normal text-muted-foreground tabular-nums\">\n                    {plan.price}\n                  </span>\n                )}\n              </th>\n            ))}\n          </tr>\n        </thead>\n        <tbody>\n          {features.map((group) => (\n            <React.Fragment key={group.category}>\n              <tr className=\"bg-muted/30\">\n                <td\n                  colSpan={plans.length + 1}\n                  className=\"h-8 px-3 text-xs font-semibold text-foreground\"\n                >\n                  {group.category}\n                </td>\n              </tr>\n              {group.items.map((item) => (\n                <tr key={item.label} className=\"border-b last:border-0\">\n                  <td className=\"h-10 px-3 text-xs text-muted-foreground\">\n                    {item.label}\n                  </td>\n                  {item.values.map((val, idx) => (\n                    <td key={idx} className=\"h-10 px-3 text-center\">\n                      {typeof val === \"boolean\" ? (\n                        val ? (\n                          <CheckIcon\n                            className=\"mx-auto size-4 text-success\"\n                            aria-label=\"Included\"\n                          />\n                        ) : (\n                          <MinusIcon\n                            className=\"mx-auto size-4 text-muted-foreground/30\"\n                            aria-label=\"Not included\"\n                          />\n                        )\n                      ) : (\n                        <span className=\"text-xs tabular-nums\">{val}</span>\n                      )}\n                    </td>\n                  ))}\n                </tr>\n              ))}\n            </React.Fragment>\n          ))}\n        </tbody>\n      </table>\n    </div>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "pricing"
  ],
  "type": "registry:block"
}
