{
  "$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\" module>\n  import type { Snippet } from \"svelte\";\n\n  export 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 lang=\"ts\">\n  import Block from \"../compose/Block.svelte\";\n  import Button from \"../compose/Button.svelte\";\n  import Group from \"../compose/Group.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n  import { cn } from \"../utils\";\n\n  let {\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  }: TourCalloutProps = $props();\n</script>\n\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",
      "path": "blocks/tour-callout.svelte",
      "target": "blocks/tour-callout.svelte"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "guidance",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "tour-callout",
  "registryDependencies": [
    "block",
    "button",
    "group",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Tour Callout",
  "type": "registry:block"
}
