{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One member of TeamGrid beside a small portrait: the name, the role, then the department and the place (detailed, directory), the bio (detailed) and the skills (detailed, list).",
  "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 * One member of TeamGrid beside a small portrait: the name, the role, then the department and the place\n * (detailed, directory), the bio (detailed) and the skills (detailed, list).\n */\nimport { For, type JSX } from \"solid-js\";\nimport { Badge, Group, Inline, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { at, cn } from \"../utils\";\nimport type { Member } from \"../blocks/team-grid.types\";\n\nexport type MemberRowProps = {\n  member: Member;\n  depts: Record<string, string>;\n  layout?: \"cards\" | \"minimal\" | \"detailed\" | \"list\" | \"directory\";\n};\n\nexport function MemberRow({ member, depts, layout = \"list\" }: MemberRowProps) {\n  return (\n    <Group\n      gap=\"4\"\n      align=\"start\"\n      class={\n        (layout as string) === \"detailed\" ? \"rounded bg-card inset-ring inset-ring-border flex-col p-6\"\n        : (layout as string) === \"directory\" ? \"rounded bg-card inset-ring inset-ring-border p-4\"\n        : \"border-b border-border pb-4\"\n      }\n      data-slot=\"item\"\n    >\n      <MediaFrame\n        alt={member.name}\n        src={member.image}\n        ratio=\"1/1\"\n        class={cn((((layout as string) === \"detailed\") ? \"size-16\" : \"size-12\"), \"shrink-0\")}\n      />\n      <Stack gap=\"2\" class=\"min-w-0 flex-1\">\n        <Stack gap=\"0\">\n          <Text size=\"base\" weight=\"semibold\">\n            {member.name}\n          </Text>\n          <Text size=\"sm\" class=\"text-muted-foreground\">\n            {member.role}\n          </Text>\n        </Stack>\n        {((layout as string) !== \"list\") ? (\n          <Group gap=\"2\" align=\"center\" class=\"flex-wrap text-xs text-muted-foreground\">\n            <Badge variant=\"outline\" size=\"sm\">\n              {at(depts, member.dept)}\n            </Badge>\n            <LucideIcon name=\"map-pin\" size={16} />\n            <Inline>\n              {member.location}\n            </Inline>\n          </Group>\n        ) : null}\n        {((layout as string) === \"detailed\") ? (\n          <Text size=\"sm\" class=\"text-muted-foreground\">\n            {member.bio}\n          </Text>\n        ) : null}\n        {((layout as string) !== \"directory\") ? (\n          <Group gap=\"2\" class=\"flex-wrap\">\n            <For each={member.skills ?? []}>{(k) => (\n              <Badge variant=\"secondary\" size=\"sm\">\n                {k}\n              </Badge>\n            )}</For>\n          </Group>\n        ) : null}\n      </Stack>\n    </Group>\n  );\n}\n",
      "path": "components/member-row.tsx",
      "target": "components/member-row.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "member-row",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "media-frame",
    "team-grid",
    "utils"
  ],
  "runtime": "solid",
  "title": "Member Row",
  "type": "registry:component"
}
