{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ds-register-split",
  "title": "Register Split",
  "description": "Split screen imagem + formulário — blockus #09-22.",
  "dependencies": [],
  "registryDependencies": [
    "@lema-ds/ds-register",
    "@lema-ds/avatar"
  ],
  "files": [
    {
      "path": "components/ds/ds-register-split.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Register, type RegisterProps } from \"./ds-register\"\n\n// ── Types ──────────────────────────────────────────────────────────────────\n\nexport interface RegisterSplitProps extends RegisterProps {\n  imageSrc?: string\n  testimonial?: {\n    quote: string\n    author: string\n    role?: string\n    avatarUrl?: string\n  }\n}\n\n// ── Component ──────────────────────────────────────────────────────────────\n\nexport function RegisterSplit({\n  className,\n  imageSrc,\n  testimonial,\n  ...props\n}: RegisterSplitProps) {\n  return (\n    <div\n      data-slot=\"register-split\"\n      className={cn(\n        \"grid overflow-hidden rounded-3xl border bg-card md:grid-cols-2\",\n        className\n      )}\n    >\n      <div className=\"relative hidden flex-col justify-between gap-8 bg-muted p-8 md:flex\">\n        {imageSrc ? (\n          // eslint-disable-next-line @next/next/no-img-element\n          <img\n            src={imageSrc}\n            alt=\"\"\n            loading=\"lazy\"\n            decoding=\"async\"\n            className=\"absolute inset-0 size-full object-cover\"\n          />\n        ) : (\n          <div className=\"absolute inset-0 bg-gradient-to-br from-primary/20 via-primary/5 to-transparent\" />\n        )}\n        <div className=\"relative z-10 flex flex-col gap-2\">\n          <div className=\"flex size-8 items-center justify-center rounded-lg bg-primary text-xs font-bold text-primary-foreground\">\n            L\n          </div>\n          <span className=\"text-sm font-semibold text-foreground\">LEMA</span>\n        </div>\n        {testimonial && (\n          <div className=\"relative z-10 rounded-2xl bg-background/80 p-4 backdrop-blur\">\n            <p className=\"text-sm leading-relaxed text-foreground\">\n              “{testimonial.quote}”\n            </p>\n            <div className=\"mt-3 flex items-center gap-2\">\n              <Avatar className=\"size-7\">\n                <AvatarImage\n                  src={testimonial.avatarUrl ?? \"\"}\n                  alt={testimonial.author}\n                />\n                <AvatarFallback className=\"text-xs\">\n                  {testimonial.author.slice(0, 2).toUpperCase()}\n                </AvatarFallback>\n              </Avatar>\n              <span className=\"flex flex-col\">\n                <span className=\"text-xs font-medium text-foreground\">\n                  {testimonial.author}\n                </span>\n                {testimonial.role && (\n                  <span className=\"text-xs text-muted-foreground\">\n                    {testimonial.role}\n                  </span>\n                )}\n              </span>\n            </div>\n          </div>\n        )}\n      </div>\n\n      <div className=\"flex flex-col justify-center p-6 md:p-8\">\n        <Register {...props} className=\"border-0 p-0 shadow-none\" />\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "register"
  ],
  "type": "registry:block"
}
