{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "What HeroSplit shows beside the text: a picture, a picture with a floating card, a grid of four pictures with captions, or a picture with two plan cards floating over it.",
  "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-split-media.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\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// HeroSplitMediaProps are the props of HeroSplitMedia; the values are the JSON shapes of the TypeScript props.\ntype HeroSplitMediaProps struct {\n\tContent any `json:\"content\"`\n\tAlt any `json:\"alt\"`\n\tImage any `json:\"image\"`\n\tMedia any `json:\"media\"`\n}\n\n// What HeroSplit shows beside the text: a picture, a picture with a floating card, a grid of four pictures with captions, or a picture with two plan cards floating over it.\ntempl HeroSplitMedia(p HeroSplitMediaProps) {\n\t{{ vContent := p.Content }}\n\t{{ vAlt := p.Alt }}\n\t{{ vImage := p.Image }}\n\t{{ vMedia := uiutils.Def(p.Media, \"picture\") }}\n\tif uiutils.Eq(vMedia, \"picture\") {\n\t\t@MediaFrame(MediaFrameProps{Alt: vAlt, Src: vImage, Ratio: \"4/3\"})\n\t}\n\tif uiutils.Eq(vMedia, \"card\") {\n\t\t@OfferMedia(OfferMediaProps{Alt: vAlt, Image: vImage, Card: uiutils.Get(vContent, \"card\")})\n\t}\n\tif uiutils.T(uiutils.And(uiutils.Eq(vMedia, \"grid\"), uiutils.Gt(uiutils.Len(uiutils.Get(vContent, \"features\")), float64(0)))) {\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"grid grid-cols-2 gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"hero-grid\")}}) {\n\t\t\tfor vI, vF := range uiutils.L(uiutils.Get(vContent, \"features\")) {\n\t\t\t\tif uiutils.Lt(float64(vI), float64(4)) {\n\t\t\t\t\t@FigureBlock(FigureBlockProps{Class: uiutils.Cnv(\"flex flex-col gap-2\"), Testid: \"hero-tile\"}) {\n\t\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vF, \"title\"), Src: uiutils.Get(vF, \"image\"), Ratio: \"1/1\"})\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vF, \"title\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tif uiutils.T(uiutils.And(uiutils.Eq(vMedia, \"plans\"), uiutils.Gt(uiutils.Len(uiutils.Get(vContent, \"plans\")), float64(0)))) {\n\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"relative\", Attrs: uiutils.Attrs(\"data-slot\", \"hero-media\")}}) {\n\t\t\t@MediaFrame(MediaFrameProps{Alt: vAlt, Src: vImage, Ratio: \"4/3\"})\n\t\t\tfor vI, vP := range uiutils.L(uiutils.Get(vContent, \"plans\")) {\n\t\t\t\tif uiutils.Lt(float64(vI), float64(2)) {\n\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"absolute w-48 rounded bg-card p-4 shadow-lg\", uiutils.Cond(uiutils.T(uiutils.Eq(float64(vI), float64(0))), \"top-8 left-4\", \"right-4 bottom-8\"))), Attrs: uiutils.Attrs(\"data-slot\", \"hero-plan\")}}) {\n\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"name\")) }\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"check\", Size: 16})\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"tagline\")) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\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-split-media.templ",
      "target": "blocks/hero-split-media.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "hero-split-media",
  "registryDependencies": [
    "box",
    "figure-block",
    "group",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "offer-media",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Hero Split Media",
  "type": "registry:component"
}
