{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A whole sign-in page: the card beside a picture panel, on a tinted page, or alone; with any mode of the card.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/organisms/auth-layout.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// AuthLayoutProps are the props of AuthLayout; the values are the JSON shapes of the TypeScript props.\ntype AuthLayoutProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tText any `json:\"text\"`\n\tSubmit any `json:\"submit\"`\n\tSwitchTo any `json:\"switchTo\"`\n\tLabels any `json:\"labels\"`\n\tVisual any `json:\"visual\"`\n\tLevel any `json:\"level\"`\n\tLayout any `json:\"layout\"`\n\tSide any `json:\"side\"`\n\tMode any `json:\"mode\"`\n\tSocial any `json:\"social\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A whole sign-in page: the AuthCard placed in the page. Axes: layout (split: a picture panel beside the card, centered: the card on a tinted page, minimal: the card alone in a narrow column), side (end, start: the side of the picture), mode, social. The page's heading is the card's title.\ntempl AuthLayout(p AuthLayoutProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vText := p.Text }}\n\t{{ vSubmit := p.Submit }}\n\t{{ vSwitchTo := p.SwitchTo }}\n\t{{ vLabels := p.Labels }}\n\t{{ vVisual := p.Visual }}\n\t{{ vLevel := uiutils.Def(p.Level, float64(1)) }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"split\") }}\n\t{{ vSide := uiutils.Def(p.Side, \"end\") }}\n\t{{ vMode := uiutils.Def(p.Mode, \"signin\") }}\n\t{{ vSocial := uiutils.Def(p.Social, \"none\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"div\", Class: \"w-full\", Attrs: uiutils.Attrs(\"data-layout\", vLayout, \"data-slot\", \"auth-layout\")}}) {\n\t\t@compose.Container(compose.ContainerProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"mx-auto w-full max-w-6xl px-4\", \"py-12\")), Attrs: uiutils.Attrs(\"data-slot\", \"container\")}}) {\n\t\t\tif uiutils.Eq(vLayout, \"split\") {\n\t\t\t\t@compose.Grid(compose.GridProps{Cols: \"1-2\", BoxProps: box.BoxProps{Class: \"items-stretch gap-8\"}}) {\n\t\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"mx-auto flex w-full max-w-sm items-center\"}}) {\n\t\t\t\t\t\t@AuthCard(AuthCardProps{Id: vId, Title: vTitle, Text: vText, Submit: vSubmit, SwitchText: uiutils.Get(vSwitchTo, \"text\"), SwitchLink: uiutils.Get(vSwitchTo, \"link\"), SwitchHref: uiutils.Get(vSwitchTo, \"href\"), Labels: vLabels, Mode: vMode, Layout: \"plain\", Social: vSocial, Level: vLevel, LandmarkLabel: vLandmarkLabel})\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"stretch\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"justify-end rounded bg-muted p-8\", uiutils.Cond(uiutils.T(uiutils.Eq(vSide, \"start\")), \"md:order-first\", \"md:order-last\"))), Attrs: uiutils.Attrs(\"data-slot\", \"visual\")}}) {\n\t\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vVisual, \"title\"), Ratio: \"4/3\"})\n\t\t\t\t\t\t@compose.Title(compose.TitleProps{As: \"2\", Size: \"2xl\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vVisual, \"title\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vVisual, \"text\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if uiutils.Eq(vLayout, \"centered\") {\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"mx-auto w-full max-w-md rounded bg-muted p-6\"}}) {\n\t\t\t\t\t@AuthCard(AuthCardProps{Id: vId, Title: vTitle, Text: vText, Submit: vSubmit, SwitchText: uiutils.Get(vSwitchTo, \"text\"), SwitchLink: uiutils.Get(vSwitchTo, \"link\"), SwitchHref: uiutils.Get(vSwitchTo, \"href\"), Labels: vLabels, Mode: vMode, Social: vSocial, Level: vLevel, LandmarkLabel: vLandmarkLabel})\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"mx-auto w-full max-w-sm\"}}) {\n\t\t\t\t\t@AuthCard(AuthCardProps{Id: vId, Title: vTitle, Text: vText, Submit: vSubmit, SwitchText: uiutils.Get(vSwitchTo, \"text\"), SwitchLink: uiutils.Get(vSwitchTo, \"link\"), SwitchHref: uiutils.Get(vSwitchTo, \"href\"), Labels: vLabels, Mode: vMode, Layout: \"plain\", Social: vSocial, Level: vLevel, LandmarkLabel: vLandmarkLabel})\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/auth-layout.templ",
      "target": "blocks/auth-layout.templ"
    }
  ],
  "meta": {
    "category": "account",
    "group": "auth",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "auth-layout",
  "registryDependencies": [
    "auth-card",
    "block",
    "box",
    "container",
    "grid",
    "kit-box",
    "kit-text",
    "media-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Auth Layout",
  "type": "registry:block"
}
