{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ds-press-wall",
  "title": "PressWall",
  "description": "Mural de menções na imprensa, veículos de mídia e notícias institucionais.",
  "dependencies": [
    "class-variance-authority",
    "lucide-react"
  ],
  "registryDependencies": [
    "@lema-ds/badge",
    "@lema-ds/skeleton"
  ],
  "files": [
    {
      "path": "components/ds/ds-press-wall.tsx",
      "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Skeleton } from \"@/components/ui/skeleton\"\n\n// ── Types ──\n\nexport type PressWallLogoSize = \"sm\" | \"md\" | \"lg\"\n\nexport interface PressWallProps extends React.HTMLAttributes<HTMLDivElement> {\n  /** Small uppercase label above the logo grid, e.g. \"As seen in\". */\n  kicker?: string\n}\n\nexport interface PressWallLogoProps\n  extends\n    Omit<React.HTMLAttributes<HTMLDivElement>, \"children\">,\n    VariantProps<typeof pressWallLogoVariants> {\n  /** Accessible name for the mention (publication or award name). */\n  label: string\n  href?: string\n  /** Renders `label` as a visible caption below the mark. */\n  showLabel?: boolean\n  /** Logo mark — an <img\n loading=\"lazy\"\n decoding=\"async\"> or inline <svg>, sized by the component. */\n  children: React.ReactNode\n}\n\nexport interface PressWallAwardProps {\n  label: string\n  icon?: React.ElementType\n}\n\n// ── Variants ──\n\nexport const pressWallGridVariants = cva(\n  \"grid grid-cols-2 items-center gap-x-10 gap-y-8 sm:grid-cols-3 md:grid-cols-4\"\n)\n\nexport const pressWallLogoVariants = cva(\n  \"flex w-full items-center justify-center opacity-60 grayscale transition-all duration-200 group-hover:opacity-100 group-hover:grayscale-0 group-focus-visible:opacity-100 group-focus-visible:grayscale-0 [&_img]:h-full [&_img]:w-auto [&_img]:object-contain [&_svg]:h-full [&_svg]:w-auto\",\n  {\n    variants: {\n      size: {\n        sm: \"h-5\",\n        md: \"h-6\",\n        lg: \"h-8\",\n      },\n    },\n    defaultVariants: { size: \"md\" },\n  }\n)\n\n// ── Component ──\n\nexport function PressWall({\n  kicker,\n  className,\n  children,\n  ...props\n}: PressWallProps) {\n  return (\n    <div\n      className={cn(\"flex flex-col gap-8\", className)}\n      data-slot=\"press-wall\"\n      {...props}\n    >\n      {kicker && (\n        <p className=\"text-center text-xs font-medium tracking-wide text-muted-foreground uppercase\">\n          {kicker}\n        </p>\n      )}\n      <div className={cn(pressWallGridVariants())}>{children}</div>\n    </div>\n  )\n}\n\nexport function PressWallLogo({\n  label,\n  href,\n  size = \"md\",\n  showLabel = false,\n  className,\n  children,\n  ...props\n}: PressWallLogoProps) {\n  const mark = (\n    <span className={cn(pressWallLogoVariants({ size }))}>{children}</span>\n  )\n\n  const content = showLabel ? (\n    <span className=\"flex flex-col items-center gap-2\">\n      {mark}\n      <span className=\"text-center text-xs font-medium text-muted-foreground\">\n        {label}\n      </span>\n    </span>\n  ) : (\n    mark\n  )\n\n  const a11yProps = showLabel\n    ? {}\n    : { role: \"img\" as const, \"aria-label\": label, tabIndex: 0 }\n\n  if (href) {\n    return (\n      <a\n        href={href}\n        aria-label={showLabel ? undefined : label}\n        className={cn(\n          \"group rounded-md focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none\",\n          className\n        )}\n      >\n        {content}\n      </a>\n    )\n  }\n\n  return (\n    <div\n      {...a11yProps}\n      className={cn(\n        \"group rounded-md focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none\",\n        className\n      )}\n      {...props}\n    >\n      {content}\n    </div>\n  )\n}\n\nexport function PressWallAward({ label, icon: Icon }: PressWallAwardProps) {\n  return (\n    <Badge variant=\"secondary\" className=\"gap-1.5 font-medium\">\n      {Icon && <Icon className=\"size-3.5\" aria-hidden=\"true\" />}\n      {label}\n    </Badge>\n  )\n}\n\nexport function PressWallSkeleton({\n  size = \"md\",\n  count = 4,\n}: {\n  size?: PressWallLogoSize\n  count?: number\n}) {\n  return (\n    <div\n      className={cn(pressWallGridVariants())}\n      data-slot=\"press-wall-skeleton\"\n    >\n      {Array.from({ length: count }).map((_, index) => (\n        <Skeleton\n          key={index}\n          className={cn(\n            \"w-full rounded-md\",\n            size === \"sm\" ? \"h-5\" : size === \"lg\" ? \"h-8\" : \"h-6\"\n          )}\n        />\n      ))}\n    </div>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}
