{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * A whole sign-in page: the AuthCard placed in the page. Axes: layout (split: a picture panel beside the card,\n * centered: the card on a tinted page, minimal: the card alone in a narrow column), side (end, start: the side\n * of the picture), mode, social. The page's heading is the card's title.\n */\nimport { type JSX } from \"solid-js\";\nimport { Block, Box, Container, Grid, Stack, Text, Title } from \"../compose\";\nimport { AuthCard } from \"../blocks/auth-card\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { cn } from \"../utils\";\nimport type { AuthSwitch, AuthVisual } from \"./auth-layout.types\";\nimport type { AuthLabels } from \"./auth-card.types\";\n\nexport type AuthLayoutProps = {\n  id: string;\n  title: string;\n  text: string;\n  submit: string;\n  switchTo: AuthSwitch;\n  labels: AuthLabels;\n  visual: AuthVisual;\n  level?: 1 | 2;\n  layout?: \"split\" | \"centered\" | \"minimal\";\n  side?: \"end\" | \"start\";\n  mode?: \"signin\" | \"signup\" | \"reset\" | \"magic\";\n  social?: \"none\" | \"show\" | \"first\";\n  landmarkLabel?: string;\n};\n\nexport function AuthLayout({\n  id,\n  title,\n  text,\n  submit,\n  switchTo,\n  labels,\n  visual,\n  level = 1,\n  layout = \"split\",\n  side = \"end\",\n  mode = \"signin\",\n  social = \"none\",\n  landmarkLabel,\n}: AuthLayoutProps) {\n  return (\n    <Block tag=\"div\" class=\"w-full\" data-layout={layout} data-slot=\"auth-layout\">\n      <Container class={cn(\"mx-auto w-full max-w-6xl px-4\", \"py-12\")} data-slot=\"container\">\n        {((layout as string) === \"split\") ? (\n          <Grid cols=\"1-2\" class=\"items-stretch gap-8\">\n            <Box class=\"mx-auto flex w-full max-w-sm items-center\">\n              <AuthCard\n                id={id}\n                title={title}\n                text={text}\n                submit={submit}\n                switchText={switchTo.text}\n                switchLink={switchTo.link}\n                switchHref={switchTo.href}\n                labels={labels}\n                mode={mode}\n                layout=\"plain\"\n                social={social}\n                level={level}\n                landmarkLabel={landmarkLabel}\n              />\n            </Box>\n            <Stack\n              gap=\"4\"\n              align=\"stretch\"\n              class={cn(\n                \"justify-end rounded bg-muted p-8\",\n                (((side as string) === \"start\") ? \"md:order-first\" : \"md:order-last\")\n              )}\n              data-slot=\"visual\"\n            >\n              <MediaFrame alt={visual.title} ratio=\"4/3\" />\n              <Title as={2} size=\"2xl\" weight=\"bold\">\n                {visual.title}\n              </Title>\n              <Text size=\"sm\" class=\"text-muted-foreground\">\n                {visual.text}\n              </Text>\n            </Stack>\n          </Grid>\n        ) : ((layout as string) === \"centered\") ? (\n          <Box class=\"mx-auto w-full max-w-md rounded bg-muted p-6\">\n            <AuthCard\n              id={id}\n              title={title}\n              text={text}\n              submit={submit}\n              switchText={switchTo.text}\n              switchLink={switchTo.link}\n              switchHref={switchTo.href}\n              labels={labels}\n              mode={mode}\n              social={social}\n              level={level}\n              landmarkLabel={landmarkLabel}\n            />\n          </Box>\n        ) : (\n          <Box class=\"mx-auto w-full max-w-sm\">\n            <AuthCard\n              id={id}\n              title={title}\n              text={text}\n              submit={submit}\n              switchText={switchTo.text}\n              switchLink={switchTo.link}\n              switchHref={switchTo.href}\n              labels={labels}\n              mode={mode}\n              layout=\"plain\"\n              social={social}\n              level={level}\n              landmarkLabel={landmarkLabel}\n            />\n          </Box>\n        )}\n      </Container>\n    </Block>\n  );\n}\n",
      "path": "blocks/auth-layout.tsx",
      "target": "blocks/auth-layout.tsx"
    },
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n\nexport type AuthSwitch = {\n  /** the sentence before the link */\n  text: string;\n  /** text of the link */\n  link: string;\n  href?: string;\n};\n\nexport type AuthVisual = {\n  /** the line on the picture panel */\n  title: string;\n  text: string;\n};\n",
      "path": "blocks/auth-layout.types.ts",
      "target": "blocks/auth-layout.types.ts"
    }
  ],
  "meta": {
    "category": "account",
    "group": "auth",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "auth-layout",
  "registryDependencies": [
    "auth-card",
    "compose",
    "media-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Auth Layout",
  "type": "registry:block"
}
