{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Sign in, sign up and reset password.",
  "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-card.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/link\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/separator\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// AuthCardProps are the props of AuthCard; the values are the JSON shapes of the TypeScript props.\ntype AuthCardProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tText any `json:\"text\"`\n\tSubmit any `json:\"submit\"`\n\tSwitchText any `json:\"switchText\"`\n\tSwitchLink any `json:\"switchLink\"`\n\tSwitchHref any `json:\"switchHref\"`\n\tLabels any `json:\"labels\"`\n\tMode any `json:\"mode\"`\n\tLayout any `json:\"layout\"`\n\tSocial any `json:\"social\"`\n\tLevel any `json:\"level\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A sign-in, sign-up or password reset card: heading, one sentence, the fields of the mode, a submit button, optional alternative sign-in buttons and a link to the other mode. Axes: mode (signin, signup, reset), layout (card, plain), social (none, show).\ntempl AuthCard(p AuthCardProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vText := p.Text }}\n\t{{ vSubmit := p.Submit }}\n\t{{ vSwitchText := p.SwitchText }}\n\t{{ vSwitchLink := p.SwitchLink }}\n\t{{ vSwitchHref := p.SwitchHref }}\n\t{{ vLabels := p.Labels }}\n\t{{ vMode := uiutils.Def(p.Mode, \"signin\") }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"card\") }}\n\t{{ vSocial := uiutils.Def(p.Social, \"none\") }}\n\t{{ vLevel := uiutils.Def(p.Level, float64(2)) }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"section\", Class: uiutils.S(uiutils.Cnv(\"flex w-full flex-col gap-6\", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"card\")), \"rounded bg-card p-6 inset-ring inset-ring-border\", \"\"))), Attrs: uiutils.Attrs(\"aria-labelledby\", uiutils.Cond(uiutils.T(vLandmarkLabel), nil, uiutils.Tpl(\"{0}-title\", vId)), \"data-mode\", vMode, \"aria-label\", vLandmarkLabel, \"data-slot\", \"auth-card\")}}) {\n\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{}}) {\n\t\t\t@compose.Title(compose.TitleProps{As: uiutils.S(vLevel), Size: \"2xl\", Weight: \"bold\", TextProps: text.TextProps{Attrs: uiutils.Attrs(\"id\", uiutils.Tpl(\"{0}-title\", vId))}}) {\n\t\t\t\t{ uiutils.Text(vTitle) }\n\t\t\t}\n\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t{ uiutils.Text(vText) }\n\t\t\t}\n\t\t}\n\t\tif uiutils.T(uiutils.And(uiutils.Eq(vSocial, \"first\"), !uiutils.Eq(vSocial, \"none\"), !uiutils.Eq(vMode, \"reset\"), !uiutils.Eq(vMode, \"magic\"))) {\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"social\")}}) {\n\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.Separator(compose.SeparatorProps{SeparatorProps: separator.SeparatorProps{Class: \"flex-1\"}})\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"divider\")) }\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Separator(compose.SeparatorProps{SeparatorProps: separator.SeparatorProps{Class: \"flex-1\"}})\n\t\t\t\t}\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"default\", ButtonProps: button.ButtonProps{Type: \"button\", Class: \"w-full\"}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"key-round\", Size: 16})\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"passkey\")) }\n\t\t\t\t}\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"default\", ButtonProps: button.ButtonProps{Type: \"button\", Class: \"w-full\"}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"mail\", Size: 16})\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"magic\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@AuthForm(AuthFormProps{Id: vId, Mode: vMode, Labels: vLabels, Submit: vSubmit})\n\t\tif uiutils.T(uiutils.And(!uiutils.Eq(vSocial, \"first\"), !uiutils.Eq(vSocial, \"none\"), !uiutils.Eq(vMode, \"reset\"), !uiutils.Eq(vMode, \"magic\"))) {\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"social\")}}) {\n\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.Separator(compose.SeparatorProps{SeparatorProps: separator.SeparatorProps{Class: \"flex-1\"}})\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"divider\")) }\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Separator(compose.SeparatorProps{SeparatorProps: separator.SeparatorProps{Class: \"flex-1\"}})\n\t\t\t\t}\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"default\", ButtonProps: button.ButtonProps{Type: \"button\", Class: \"w-full\"}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"key-round\", Size: 16})\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"passkey\")) }\n\t\t\t\t}\n\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"default\", ButtonProps: button.ButtonProps{Type: \"button\", Class: \"w-full\"}}) {\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"mail\", Size: 16})\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vLabels, \"magic\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-center text-muted-foreground\"}}) {\n\t\t\t{ uiutils.Text(vSwitchText) }\n\t\t\t{ uiutils.Text(\" \") }\n\t\t\t@compose.Link(compose.LinkProps{Variant: \"default\", LinkProps: link.LinkProps{Href: uiutils.URL(vSwitchHref, false), Attrs: uiutils.Attrs(\"data-slot\", \"switch\")}}) {\n\t\t\t\t{ uiutils.Text(vSwitchLink) }\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/auth-card.templ",
      "target": "blocks/auth-card.templ"
    }
  ],
  "meta": {
    "category": "account",
    "group": "auth",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "auth-card",
  "registryDependencies": [
    "auth-form",
    "block",
    "button",
    "group",
    "kit-box",
    "kit-button",
    "kit-link",
    "kit-separator",
    "kit-text",
    "link",
    "lucide-icon",
    "separator",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Auth Card",
  "type": "registry:block"
}
