{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Features beside a picture: plain in two columns, as cards with actions, two figures over checked rows, or four metric cards with actions.",
  "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  Features beside a picture. Axes: layout (grid: four plain features in two columns, cards: four features as\n  cards and the actions, stats: two figure cards over three checked rows beside a square picture, metrics: four\n  metric cards and the actions), mediaSide, tone.\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Feature } from \"./feature-grid.types\";\n  import type { Stat } from \"./stats-band.types\";\n  import type { LinkActions } from \"./error-page.types\";\n\n  export type FeatureSplitProps = {\n    id: string;\n    title: string;\n    lead?: string;\n    badge?: string;\n    level?: 1 | 2;\n    features: Feature[];\n    stats: Stat[];\n    actions: LinkActions;\n    layout?: \"grid\" | \"cards\" | \"stats\" | \"metrics\";\n    mediaSide?: \"end\" | \"start\";\n    tone?: \"default\" | \"muted\";\n    image?: string;\n    imageAlt?: string;\n    landmarkLabel?: string;\n  };\n</script>\n\n<script lang=\"ts\">\n  import ActionGroup from \"../components/action-group.svelte\";\n  import FeatureCards from \"../components/feature-cards.svelte\";\n  import FeatureMetricCards from \"../components/feature-metric-cards.svelte\";\n  import FeaturePairs from \"../components/feature-pairs.svelte\";\n  import FeatureStatRows from \"../components/feature-stat-rows.svelte\";\n  import MediaFrame from \"../components/media-frame.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n\n  let {\n    id,\n    title,\n    lead = \"\",\n    badge = \"\",\n    level = 2,\n    features,\n    stats,\n    actions,\n    layout = \"grid\",\n    mediaSide = \"end\",\n    tone = \"default\",\n    image,\n    imageAlt,\n    landmarkLabel,\n  }: FeatureSplitProps = $props();\n</script>\n\n<SectionFrame\n  id={id}\n  title={title}\n  lead={lead}\n  heading={{ badge, level }}\n  tone={tone}\n  layout=\"split\"\n  media={{ show: true, side: mediaSide }}\n  landmarkLabel={landmarkLabel}\n>\n  {#if ((layout as string) === \"grid\")}\n    {#if ((features?.length ?? 0) > 0)}\n      <FeaturePairs features={features} />\n    {/if}\n  {/if}\n  {#if ((layout as string) === \"cards\")}\n    {#if ((features?.length ?? 0) > 0)}\n      <FeatureCards features={features} cols=\"1-2\" item=\"tile\" />\n    {/if}\n  {/if}\n  {#if ((layout as string) === \"stats\")}\n    {#if ((features?.length ?? 0) > 0)}\n      <FeatureStatRows features={features} stats={stats} />\n    {/if}\n  {/if}\n  {#if ((layout as string) === \"metrics\")}\n    {#if ((stats?.length ?? 0) > 0)}\n      <FeatureMetricCards stats={stats} />\n    {/if}\n  {/if}\n  {#if (((layout as string) === \"cards\") || ((layout as string) === \"metrics\"))}\n    <ActionGroup\n      primary={actions.cta}\n      primaryHref={actions.href}\n      secondary={((actions.mode === \"two\") ? actions.secondary : undefined)}\n      secondaryHref={actions.secondaryHref}\n    />\n  {/if}\n  {#snippet aside()}\n    <MediaFrame\n      alt={(imageAlt ? imageAlt : title)}\n      src={image}\n      ratio={(((layout as string) === \"stats\") ? \"1/1\" : \"4/3\")}\n    />\n  {/snippet}\n</SectionFrame>\n",
      "path": "blocks/feature-split.svelte",
      "target": "blocks/feature-split.svelte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "feature-split",
  "registryDependencies": [
    "action-group",
    "error-page",
    "feature-cards",
    "feature-grid",
    "feature-metric-cards",
    "feature-pairs",
    "feature-stat-rows",
    "media-frame",
    "section-frame",
    "stats-band",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Feature Split",
  "type": "registry:block"
}
