{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One stop of a product tour: the explained element and a callout with the step, a sentence and buttons. Placing it on the real element is a port contract.",
  "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  One stop of a product tour: the element being explained and a callout beside it with a title, a sentence, the\n  position in the tour and the buttons. Axes: placement (below, above, end: the callout sits beside the target),\n  tone, density.\n-->\n<script lang=\"ts\">\nexport type TourCalloutProps = {\n  id: string;\n  title: string;\n  text: string;\n  target: string;\n  position: string;\n  skip: string;\n  next: string;\n  placement?: \"below\" | \"above\" | \"end\";\n  tone?: \"default\" | \"muted\";\n  density?: \"default\" | \"compact\";\n  landmarkLabel?: string;\n};\n</script>\n\n<script setup lang=\"ts\">\nimport Block from \"../compose/Block.vue\";\nimport Button from \"../compose/Button.vue\";\nimport Group from \"../compose/Group.vue\";\nimport Stack from \"../compose/Stack.vue\";\nimport Text from \"../compose/Text.vue\";\nimport SectionFrame from \"../components/section-frame.vue\";\nimport { cn } from \"../utils\";\n\nconst {\n  id,\n  title,\n  text,\n  target,\n  position,\n  skip,\n  next,\n  placement = \"below\",\n  tone = \"default\",\n  density = \"default\",\n  landmarkLabel,\n} = defineProps<TourCalloutProps>();\n</script>\n\n<template>\n  <SectionFrame :id=\"id\" :title=\"title\" :tone=\"tone\" :density=\"density\" :landmarkLabel=\"landmarkLabel\">\n    <Block\n      tag=\"div\"\n      :class=\"cn(\n        'flex gap-4',\n        (\n          (placement as string) === 'end' ? 'flex-col items-start md:flex-row md:items-center'\n          : (placement as string) === 'above' ? 'flex-col-reverse items-start'\n          : 'flex-col items-start'\n        )\n      )\"\n      :data-placement=\"placement\"\n      data-slot=\"tour\"\n    >\n      <Button variant=\"outline\" size=\"default\" type=\"button\" class=\"inset-ring-foreground\">\n        {{ target }}\n      </Button>\n      <Stack\n        gap=\"4\"\n        align=\"stretch\"\n        :class=\"cn('w-full max-w-sm', 'rounded bg-card inset-ring inset-ring-border', 'p-4', 'shadow-md')\"\n        role=\"group\"\n        :aria-label=\"title\"\n        data-slot=\"tour-callout\"\n      >\n        <Text size=\"xs\" class=\"text-muted-foreground\">\n          {{ position }}\n        </Text>\n        <Text size=\"base\" weight=\"semibold\">\n          {{ title }}\n        </Text>\n        <Text size=\"sm\" class=\"text-muted-foreground\">\n          {{ text }}\n        </Text>\n        <Group gap=\"2\" justify=\"end\">\n          <Button variant=\"ghost\" size=\"sm\" type=\"button\">\n            {{ skip }}\n          </Button>\n          <Button variant=\"default\" size=\"sm\" type=\"button\">\n            {{ next }}\n          </Button>\n        </Group>\n      </Stack>\n    </Block>\n  </SectionFrame>\n</template>\n",
      "path": "blocks/tour-callout.vue",
      "target": "blocks/tour-callout.vue"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "guidance",
    "kind": "block",
    "tags": [
      "vue",
      "block"
    ]
  },
  "name": "tour-callout",
  "registryDependencies": [
    "block",
    "button",
    "group",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "vue",
  "title": "Tour Callout",
  "type": "registry:block"
}
