{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Customers and partners as glyphs with names.",
  "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 heading and the names of customers or partners as Lucide glyphs with a name. Axes: layout (grid, row),\n  columns (2, 3, 4), item (name, icon only, tile), density, tone.\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Logo } from \"./logo-cloud.types\";\n\n  export type LogoCloudProps = {\n    id: string;\n    title: string;\n    logos: Logo[];\n    empty?: string;\n    layout?: \"grid\" | \"row\";\n    cols?: \"2\" | \"3\" | \"4\";\n    item?: \"name\" | \"icon\" | \"tile\";\n    tone?: \"default\" | \"muted\";\n    density?: \"roomy\" | \"default\" | \"compact\";\n    landmarkLabel?: string;\n  };\n</script>\n\n<script lang=\"ts\">\n  import Grid from \"../compose/Grid.svelte\";\n  import Group from \"../compose/Group.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import EmptyState from \"../components/empty-state.svelte\";\n  import LogoRibbon from \"../blocks/logo-ribbon.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n  import { cn } from \"../utils\";\n\n  let {\n    id,\n    title,\n    logos,\n    empty = \"\",\n    layout = \"grid\",\n    cols = \"4\",\n    item = \"name\",\n    tone = \"default\",\n    density = \"default\",\n    landmarkLabel,\n  }: LogoCloudProps = $props();\n</script>\n\n{#if ((logos?.length ?? 0) === 0)}\n  <SectionFrame id={id} title={title} tone={tone} density={density} align=\"center\" landmarkLabel={landmarkLabel}>\n    <EmptyState icon=\"building-2\" title={empty} />\n  </SectionFrame>\n{:else if ((layout as string) === \"row\")}\n  <LogoRibbon id={id} title={title} logos={logos} tone={tone} density={density} landmarkLabel={landmarkLabel} />\n{:else}\n  <SectionFrame id={id} title={title} tone={tone} density={density} align=\"center\" landmarkLabel={landmarkLabel}>\n    <Grid\n      cols={\n        (cols as string) === \"2\" ? \"2\"\n        : (cols as string) === \"3\" ? \"2-3\"\n        : (cols as string) === \"4\" ? \"2-4\"\n        : \"3-6\"\n      }\n      class=\"gap-4\"\n      data-slot=\"items\"\n    >\n      {#each logos as logo (logo.id)}\n        <Group\n          gap=\"2\"\n          align=\"center\"\n          justify=\"center\"\n          class={cn(\n            \"text-muted-foreground\",\n            (((item as string) === \"tile\") ? \"flex-col rounded p-4 inset-ring inset-ring-border\" : \"\")\n          )}\n          data-slot=\"item\"\n        >\n          <LucideIcon name={logo.icon} size={24} />\n          <Text size=\"sm\" weight=\"semibold\" class={(((item as string) === \"icon\") ? \"sr-only\" : \"\")}>\n            {logo.name}\n          </Text>\n        </Group>\n      {/each}\n    </Grid>\n  </SectionFrame>\n{/if}\n",
      "path": "blocks/logo-cloud.svelte",
      "target": "blocks/logo-cloud.svelte"
    },
    {
      "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\nexport type Logo = {\n  id: string;\n  name: string;\n  icon: string;\n};\n",
      "path": "blocks/logo-cloud.types.ts",
      "target": "blocks/logo-cloud.types.ts"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "proof",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "logo-cloud",
  "registryDependencies": [
    "empty-state",
    "grid",
    "group",
    "logo-ribbon",
    "lucide-icon",
    "section-frame",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Logo Cloud",
  "type": "registry:block"
}
