{
  "$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-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { AuthSwitch, AuthVisual } from \"./auth-layout.types\";\n  import type { AuthLabels } from \"./auth-card.types\";\n\n  export 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</script>\n\n<script lang=\"ts\">\n  import Block from \"../compose/Block.svelte\";\n  import Box from \"../compose/Box.svelte\";\n  import Container from \"../compose/Container.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import Title from \"../compose/Title.svelte\";\n  import AuthCard from \"../blocks/auth-card.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import { cn } from \"../utils\";\n\n  let {\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 = $props();\n</script>\n\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    {#if ((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    {:else if ((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    {:else}\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    {/if}\n  </Container>\n</Block>\n",
      "path": "blocks/auth-layout.svelte",
      "target": "blocks/auth-layout.svelte"
    },
    {
      "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": [
      "svelte",
      "block"
    ]
  },
  "name": "auth-layout",
  "registryDependencies": [
    "auth-card",
    "block",
    "box",
    "container",
    "grid",
    "media-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Auth Layout",
  "type": "registry:block"
}
