{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Four figures, figures with a featured review, numbered steps, the latest posts, topic rows, or contact buttons with support figures, beside a picture.",
  "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/media-list.json\n\npackage blocks\n\nimport (\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// MediaListProps are the props of MediaList; the values are the JSON shapes of the TypeScript props.\ntype MediaListProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tBadge any `json:\"badge\"`\n\tExtras any `json:\"extras\"`\n\tLabels any `json:\"labels\"`\n\tActions any `json:\"actions\"`\n\tLayout any `json:\"layout\"`\n\tMediaSide any `json:\"mediaSide\"`\n\tTone any `json:\"tone\"`\n\tImage any `json:\"image\"`\n\tImageAlt any `json:\"imageAlt\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// A list or figures beside a picture. Axes: layout (figures: four figures in two columns, proof: three figures and a featured review, steps: numbered steps, posts: the latest posts, topics: topic rows with counts, contact: contact buttons and support figures), mediaSide, tone. The actions follow every layout but contact.\ntempl MediaList(p MediaListProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLead := uiutils.Def(p.Lead, \"\") }}\n\t{{ vBadge := uiutils.Def(p.Badge, \"\") }}\n\t{{ vExtras := p.Extras }}\n\t{{ vLabels := p.Labels }}\n\t{{ vActions := p.Actions }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"figures\") }}\n\t{{ vMediaSide := uiutils.Def(p.MediaSide, \"end\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vImage := p.Image }}\n\t{{ vImageAlt := p.ImageAlt }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Heading: map[string]any{\"badge\": vBadge}, Tone: vTone, Layout: \"split\", Media: map[string]any{\"show\": true, \"side\": vMediaSide}, LandmarkLabel: vLandmarkLabel, Aside: mediaListFill1(p, vTitle, vLayout, vImage, vImageAlt)}) {\n\t\tif uiutils.T(uiutils.Or(uiutils.Eq(vLayout, \"figures\"), uiutils.Eq(vLayout, \"proof\"))) {\n\t\t\tif uiutils.Gt(uiutils.Len(uiutils.Get(vExtras, \"stats\")), float64(0)) {\n\t\t\t\t@MediaFigures(MediaFiguresProps{Extras: vExtras, Mode: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"proof\")), \"row\", \"grid\")})\n\t\t\t}\n\t\t}\n\t\tif uiutils.Eq(vLayout, \"proof\") {\n\t\t\tif uiutils.Gt(uiutils.Len(uiutils.Get(vExtras, \"reviews\")), float64(0)) {\n\t\t\t\t@MediaReview(MediaReviewProps{Extras: vExtras, Labels: vLabels})\n\t\t\t}\n\t\t}\n\t\tif uiutils.Eq(vLayout, \"steps\") {\n\t\t\tif uiutils.Gt(uiutils.Len(uiutils.Get(vExtras, \"steps\")), float64(0)) {\n\t\t\t\t@MediaSteps(MediaStepsProps{Extras: vExtras, Labels: vLabels})\n\t\t\t}\n\t\t}\n\t\tif uiutils.Eq(vLayout, \"posts\") {\n\t\t\tif uiutils.Gt(uiutils.Len(uiutils.Get(vExtras, \"posts\")), float64(0)) {\n\t\t\t\t@MediaPosts(MediaPostsProps{Extras: vExtras, Labels: vLabels})\n\t\t\t}\n\t\t}\n\t\tif uiutils.Eq(vLayout, \"topics\") {\n\t\t\tif uiutils.Gt(uiutils.Len(uiutils.Get(vExtras, \"topics\")), float64(0)) {\n\t\t\t\t@MediaTopics(MediaTopicsProps{Extras: vExtras, Labels: vLabels})\n\t\t\t}\n\t\t}\n\t\tif uiutils.Eq(vLayout, \"contact\") {\n\t\t\tif uiutils.Gt(uiutils.Len(uiutils.Get(vExtras, \"channels\")), float64(0)) {\n\t\t\t\t@MediaContacts(MediaContactsProps{Extras: vExtras, Labels: vLabels})\n\t\t\t}\n\t\t}\n\t\tif !uiutils.Eq(vLayout, \"contact\") {\n\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\")})\n\t\t}\n\t}\n}\n\ntempl mediaListFill1(p MediaListProps, vTitle any, vLayout any, vImage any, vImageAlt any) {\n\t@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Src: vImage, Ratio: uiutils.Cond(uiutils.T(uiutils.Or(uiutils.Eq(vLayout, \"steps\"), uiutils.Eq(vLayout, \"topics\"))), \"1/1\", \"4/3\")})\n}\n",
      "path": "blocks/media-list.templ",
      "target": "blocks/media-list.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "media-list",
  "registryDependencies": [
    "action-group",
    "media-contacts",
    "media-figures",
    "media-frame",
    "media-posts",
    "media-review",
    "media-steps",
    "media-topics",
    "section-frame",
    "utils"
  ],
  "runtime": "templ",
  "title": "Media List",
  "type": "registry:block"
}
