{
  "$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\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"
    },
    {
      "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\">\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</script>\n\n<script setup lang=\"ts\">\nimport Block from \"../compose/Block.vue\";\nimport Box from \"../compose/Box.vue\";\nimport Container from \"../compose/Container.vue\";\nimport Grid from \"../compose/Grid.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport Title from \"../compose/Title.vue\";\nimport AuthCard from \"../blocks/auth-card.vue\";\nimport MediaFrame from \"../components/media-frame.vue\";\nimport { cn } from \"../utils\";\n\nconst {\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} = defineProps<AuthLayoutProps>();\n</script>\n\n<template>\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      <Grid v-if=\"((layout as string) === 'split')\" 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      <Box v-else-if=\"((layout as string) === 'centered')\" 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      <Box v-else 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    </Container>\n  </Block>\n</template>\n",
      "path": "blocks/auth-layout.vue",
      "target": "blocks/auth-layout.vue"
    }
  ],
  "meta": {
    "category": "account",
    "group": "auth",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "auth-layout",
  "registryDependencies": [
    "auth-card",
    "block",
    "box",
    "container",
    "grid",
    "media-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "vue",
  "title": "Auth Layout",
  "type": "registry:block"
}
