{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Heading, lead, one or two actions and optional media.",
  "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/hero-prompt.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// HeroPromptProps are the props of HeroPrompt; the values are the JSON shapes of the TypeScript props.\ntype HeroPromptProps struct {\n\tTitle any `json:\"title\"`\n\tLevel any `json:\"level\"`\n\tBadge any `json:\"badge\"`\n\tBadgeMark any `json:\"badgeMark\"`\n\tActions any `json:\"actions\"`\n\tComposer any `json:\"composer\"`\n\tNav any `json:\"nav\"`\n\tTopics any `json:\"topics\"`\n\tDensity any `json:\"density\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A dark hero band: the head row, a badge, a title with weighted words, the prompt box (or actions) and topic pills.\ntempl HeroPrompt(p HeroPromptProps) {\n\t{{ vTitle := p.Title }}\n\t{{ vLevel := uiutils.Def(p.Level, float64(1)) }}\n\t{{ vBadge := p.Badge }}\n\t{{ vBadgeMark := p.BadgeMark }}\n\t{{ vActions := p.Actions }}\n\t{{ vComposer := p.Composer }}\n\t{{ vNav := p.Nav }}\n\t{{ vTopics := p.Topics }}\n\t{{ vDensity := uiutils.Def(p.Density, \"roomy\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@compose.Block(compose.BlockProps{BoxProps: box.BoxProps{Tag: \"section\", Class: uiutils.S(uiutils.Cnv(\"flex w-full flex-col bg-foreground text-background py-8 [&_.text-muted-foreground]:text-background/70\", uiutils.Get(presetDefaults, \"hero\", \"band\"))), Attrs: uiutils.Attrs(\"aria-labelledby\", uiutils.Cond(uiutils.T(vLandmarkLabel), nil, \"home-hero-title\"), \"data-tone\", \"inverse\", \"data-density\", vDensity, \"data-chrome\", \"nav\", \"aria-label\", vLandmarkLabel, \"data-slot\", \"section\")}}) {\n\t\t@compose.Container(compose.ContainerProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"mx-auto w-full px-8\", uiutils.Get(presetDefaults, \"hero\", \"container\"))), Attrs: uiutils.Attrs(\"data-slot\", \"container\")}}) {\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", Align: \"stretch\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@HeroHead(HeroHeadProps{Brand: uiutils.Get(vNav, \"brand\"), Links: uiutils.Get(vNav, \"links\"), Current: uiutils.Get(vNav, \"current\"), Login: uiutils.Get(vNav, \"login\"), LoginHref: uiutils.Get(vNav, \"loginHref\"), Skip: uiutils.Get(vNav, \"skip\"), NavLabel: uiutils.Get(vNav, \"label\"), Cta: uiutils.Get(vActions, \"cta\"), Href: uiutils.Get(vActions, \"href\"), LandmarkLabel: vLandmarkLabel})\n\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", Align: \"center\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"mx-auto w-full pt-24 pb-16\", uiutils.Get(presetDefaults, \"hero\", \"column\"))), Attrs: uiutils.Attrs(\"data-slot\", \"hero-column\")}}) {\n\t\t\t\t\tif uiutils.T(vBadge) {\n\t\t\t\t\t\t@HeroBadge(HeroBadgeProps{Label: vBadge, Mark: vBadgeMark})\n\t\t\t\t\t}\n\t\t\t\t\t@WeightedTitle(WeightedTitleProps{Id: \"home-hero-title\", Title: vTitle, Weights: uiutils.Get(presetDefaults, \"hero\", \"titleWeights\"), Level: vLevel})\n\t\t\t\t\tif uiutils.Eq(uiutils.Get(vActions, \"mode\"), \"form\") {\n\t\t\t\t\t\t@PromptComposer(PromptComposerProps{Label: uiutils.Get(vActions, \"emailLabel\"), AttachLabel: uiutils.Get(vComposer, \"attachLabel\"), ModelLabel: uiutils.Get(vComposer, \"modelLabel\"), Send: uiutils.Get(vActions, \"cta\"), Href: uiutils.Get(vActions, \"href\")})\n\t\t\t\t\t} else if uiutils.T(uiutils.Get(vActions, \"cta\")) {\n\t\t\t\t\t\t@ActionGroup(ActionGroupProps{Primary: uiutils.Get(vActions, \"cta\"), PrimaryHref: uiutils.Get(vActions, \"href\"), Secondary: uiutils.Cond(uiutils.T(uiutils.Eq(uiutils.Get(vActions, \"mode\"), \"two\")), uiutils.Get(vActions, \"secondary\"), nil), SecondaryHref: uiutils.Get(vActions, \"secondaryHref\"), Align: uiutils.Cond(uiutils.T(true), \"center\", \"start\")})\n\t\t\t\t\t}\n\t\t\t\t\tif uiutils.T(uiutils.And(vTopics, uiutils.Gt(uiutils.Len(vTopics), float64(0)))) {\n\t\t\t\t\t\t@TopicChips(TopicChipsProps{Topics: vTopics, Tone: \"inverse\"})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/hero-prompt.templ",
      "target": "blocks/hero-prompt.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "hero",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "hero-prompt",
  "registryDependencies": [
    "action-group",
    "block",
    "container",
    "hero-badge",
    "hero-head",
    "kit-box",
    "presets",
    "prompt-composer",
    "stack",
    "topic-chips",
    "utils",
    "weighted-title"
  ],
  "runtime": "templ",
  "title": "Hero Prompt",
  "type": "registry:block"
}
