{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/organisms/tour-callout.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/button\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// TourCalloutProps are the props of TourCallout; the values are the JSON shapes of the TypeScript props.\ntype TourCalloutProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tText any `json:\"text\"`\n\tTarget any `json:\"target\"`\n\tPosition any `json:\"position\"`\n\tSkip any `json:\"skip\"`\n\tNext any `json:\"next\"`\n\tPlacement any `json:\"placement\"`\n\tTone any `json:\"tone\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// One stop of a product tour: the element being explained and a callout beside it with a title, a sentence, the position in the tour and the buttons. Axes: placement (below, above, end: the callout sits beside the target), tone, density.\ntempl TourCallout(p TourCalloutProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vText := p.Text }}\n\t{{ vTarget := p.Target }}\n\t{{ vPosition := p.Position }}\n\t{{ vSkip := p.Skip }}\n\t{{ vNext := p.Next }}\n\t{{ vPlacement := uiutils.Def(p.Placement, \"below\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vDensity := uiutils.Def(p.Density, \"default\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Tone: vTone, Density: vDensity, LandmarkLabel: vLandmarkLabel}) {\n\t\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"div\", Class: uiutils.S(uiutils.Cnv(\"flex gap-4\", uiutils.Cond(uiutils.T(uiutils.Eq(vPlacement, \"end\")), \"flex-col items-start md:flex-row md:items-center\", uiutils.Cond(uiutils.T(uiutils.Eq(vPlacement, \"above\")), \"flex-col-reverse items-start\", \"flex-col items-start\")))), Attrs: uiutils.Attrs(\"data-placement\", vPlacement, \"data-slot\", \"tour\")}}) {\n\t\t\t@compose.Button(compose.ButtonProps{Variant: \"outline\", Size: \"default\", ButtonProps: button.ButtonProps{Type: \"button\", Class: \"inset-ring-foreground\"}}) {\n\t\t\t\t{ uiutils.Text(vTarget) }\n\t\t\t}\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", Align: \"stretch\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"w-full max-w-sm\", \"rounded bg-card inset-ring inset-ring-border\", \"p-4\", \"shadow-md\")), Attrs: uiutils.Attrs(\"role\", \"group\", \"aria-label\", vTitle, \"data-slot\", \"tour-callout\")}}) {\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(vPosition) }\n\t\t\t\t}\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"base\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(vTitle) }\n\t\t\t\t}\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(vText) }\n\t\t\t\t}\n\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Justify: \"end\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"ghost\", Size: \"sm\", ButtonProps: button.ButtonProps{Type: \"button\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(vSkip) }\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Button(compose.ButtonProps{Variant: \"default\", Size: \"sm\", ButtonProps: button.ButtonProps{Type: \"button\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(vNext) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/tour-callout.templ",
      "target": "blocks/tour-callout.templ"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "guidance",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "tour-callout",
  "registryDependencies": [
    "block",
    "button",
    "group",
    "kit-box",
    "kit-button",
    "kit-text",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Tour Callout",
  "type": "registry:block"
}
