{
  "$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/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * A list or figures beside a picture. Axes: layout (figures: four figures in two columns, proof: three figures\n * and a featured review, steps: numbered steps, posts: the latest posts, topics: topic rows with counts,\n * contact: contact buttons and support figures), mediaSide, tone. The actions follow every layout but contact.\n */\nimport { type ReactNode } from \"react\";\nimport { ActionGroup } from \"../components/action-group\";\nimport { MediaContacts } from \"../components/media-contacts\";\nimport { MediaFigures } from \"../components/media-figures\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { MediaPosts } from \"../components/media-posts\";\nimport { MediaReview } from \"../components/media-review\";\nimport { MediaSteps } from \"../components/media-steps\";\nimport { MediaTopics } from \"../components/media-topics\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport type { MediaExtras, MediaListLabels } from \"./media-list.types\";\nimport type { Stat } from \"./stats-band.types\";\nimport type { Step } from \"./steps-list.types\";\nimport type { Post } from \"./post-card.types\";\nimport type { Category } from \"./category-nav.types\";\nimport type { Feature } from \"./feature-grid.types\";\nimport type { Review } from \"./review-list.types\";\nimport type { LinkActions } from \"./error-page.types\";\n\nexport type MediaListProps = {\n  id: string;\n  title: string;\n  lead?: string;\n  badge?: string;\n  extras: MediaExtras;\n  labels: MediaListLabels;\n  actions: LinkActions;\n  layout?: \"figures\" | \"proof\" | \"steps\" | \"posts\" | \"topics\" | \"contact\";\n  mediaSide?: \"end\" | \"start\";\n  tone?: \"default\" | \"muted\";\n  image?: string;\n  imageAlt?: string;\n  landmarkLabel?: string;\n};\n\nexport function MediaList({\n  id,\n  title,\n  lead = \"\",\n  badge = \"\",\n  extras,\n  labels,\n  actions,\n  layout = \"figures\",\n  mediaSide = \"end\",\n  tone = \"default\",\n  image,\n  imageAlt,\n  landmarkLabel,\n}: MediaListProps) {\n  return (\n    <SectionFrame\n      id={id}\n      title={title}\n      lead={lead}\n      heading={{ badge }}\n      tone={tone}\n      layout=\"split\"\n      media={{ show: true, side: mediaSide }}\n      landmarkLabel={landmarkLabel}\n      aside={(\n        <MediaFrame\n          alt={(imageAlt ? imageAlt : title)}\n          src={image}\n          ratio={((((layout as string) === \"steps\") || ((layout as string) === \"topics\")) ? \"1/1\" : \"4/3\")}\n        />\n      )}\n    >\n      {(((layout as string) === \"figures\") || ((layout as string) === \"proof\")) ? (\n        <>\n          {((extras.stats?.length ?? 0) > 0) ? (\n            <MediaFigures extras={extras} mode={(((layout as string) === \"proof\") ? \"row\" : \"grid\")} />\n          ) : null}\n        </>\n      ) : null}\n      {((layout as string) === \"proof\") ? (\n        <>\n          {((extras.reviews?.length ?? 0) > 0) ? (\n            <MediaReview extras={extras} labels={labels} />\n          ) : null}\n        </>\n      ) : null}\n      {((layout as string) === \"steps\") ? (\n        <>\n          {((extras.steps?.length ?? 0) > 0) ? (\n            <MediaSteps extras={extras} labels={labels} />\n          ) : null}\n        </>\n      ) : null}\n      {((layout as string) === \"posts\") ? (\n        <>\n          {((extras.posts?.length ?? 0) > 0) ? (\n            <MediaPosts extras={extras} labels={labels} />\n          ) : null}\n        </>\n      ) : null}\n      {((layout as string) === \"topics\") ? (\n        <>\n          {((extras.topics?.length ?? 0) > 0) ? (\n            <MediaTopics extras={extras} labels={labels} />\n          ) : null}\n        </>\n      ) : null}\n      {((layout as string) === \"contact\") ? (\n        <>\n          {((extras.channels?.length ?? 0) > 0) ? (\n            <MediaContacts extras={extras} labels={labels} />\n          ) : null}\n        </>\n      ) : null}\n      {((layout as string) !== \"contact\") ? (\n        <ActionGroup\n          primary={actions.cta}\n          primaryHref={actions.href}\n          secondary={((actions.mode === \"two\") ? actions.secondary : undefined)}\n          secondaryHref={actions.secondaryHref}\n        />\n      ) : null}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/media-list.tsx",
      "target": "blocks/media-list.tsx"
    },
    {
      "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\nimport type { Stat } from \"./stats-band.types\";\nimport type { Step } from \"./steps-list.types\";\nimport type { Post } from \"./post-card.types\";\nimport type { Category } from \"./category-nav.types\";\nimport type { Feature } from \"./feature-grid.types\";\nimport type { Review } from \"./review-list.types\";\n\nexport type MediaExtras = {\n  stats: Stat[];\n  steps: Step[];\n  posts: Post[];\n  topics: Category[];\n  channels: Feature[];\n  reviews: Review[];\n};\n\nexport type MediaListLabels = {\n  list: string;\n  count: string;\n  minutes: string;\n  featured: string;\n  rating: string;\n  figures: string;\n};\n",
      "path": "blocks/media-list.types.ts",
      "target": "blocks/media-list.types.ts"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "react",
      "block"
    ]
  },
  "name": "media-list",
  "registryDependencies": [
    "action-group",
    "category-nav",
    "error-page",
    "feature-grid",
    "media-contacts",
    "media-figures",
    "media-frame",
    "media-posts",
    "media-review",
    "media-steps",
    "media-topics",
    "post-card",
    "review-list",
    "section-frame",
    "stats-band",
    "steps-list",
    "utils"
  ],
  "runtime": "react",
  "title": "Media List",
  "type": "registry:block"
}
