{
  "$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 */\nimport { type JSX } from \"solid-js\";\nimport { Block, Button, Group, Stack, Text } from \"../compose\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { cn } from \"../utils\";\n\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\nexport function TourCallout({\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) {\n  return (\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  );\n}\n",
      "path": "blocks/tour-callout.tsx",
      "target": "blocks/tour-callout.tsx"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "guidance",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "tour-callout",
  "registryDependencies": [
    "compose",
    "section-frame",
    "utils"
  ],
  "runtime": "solid",
  "title": "Tour Callout",
  "type": "registry:block"
}
