{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tw-utils",
  "type": "registry:lib",
  "title": "react-tw/lib/utils",
  "description": "shadcn's cn(): clsx + tailwind-merge (knows the Carbon type-* utilities). Copied from @purpurabog/ui 2.3.0; the package is the maintained source, this copy is yours to change. Icons from the Carbon Design System (Apache-2.0, © IBM Corp.; see THIRD-PARTY-NOTICES.md in the package).",
  "dependencies": [
    "clsx@2.1.1",
    "tailwind-merge@3.7.0"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "src/react-tw/lib/utils.ts",
      "type": "registry:lib",
      "target": "components/ui/react-tw/lib/utils.ts",
      "content": "import { clsx, type ClassValue } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\n/**\n * tailwind-merge that knows theme.css: the Carbon type styles, so `type-body` and `type-caption` replace each\n * other, and the field heights, so `h-16` replaces `h-field-md` (unknown, both would stay and the stylesheet's\n * order would pick).\n */\nconst twMerge = extendTailwindMerge<'type'>({\n    extend: {\n        classGroups: { type: [{ type: [(value: string) => value.length > 0] }] },\n        theme: { spacing: ['field-sm', 'field-md', 'field-lg'] },\n    },\n});\n\n/** shadcn's `cn`: join class names (clsx) and let later Tailwind classes win over earlier ones (tailwind-merge). */\nexport function cn(...inputs: ClassValue[]) {\n    return twMerge(clsx(inputs));\n}\n"
    }
  ]
}
