{
  "$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/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/member-row.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// MemberRowProps are the props of MemberRow; the values are the JSON shapes of the TypeScript props.\ntype MemberRowProps struct {\n\tMember any `json:\"member\"`\n\tDepts any `json:\"depts\"`\n\tLayout any `json:\"layout\"`\n}\n\n// 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).\ntempl MemberRow(p MemberRowProps) {\n\t{{ vMember := p.Member }}\n\t{{ vDepts := p.Depts }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"list\") }}\n\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"start\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"detailed\")), \"rounded bg-card inset-ring inset-ring-border flex-col p-6\", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"directory\")), \"rounded bg-card inset-ring inset-ring-border p-4\", \"border-b border-border pb-4\"))), Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vMember, \"name\"), Src: uiutils.Get(vMember, \"image\"), Ratio: \"1/1\", Class: uiutils.Cnv(uiutils.Cnv(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"detailed\")), \"size-16\", \"size-12\"), \"shrink-0\"))})\n\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{Class: \"min-w-0 flex-1\"}}) {\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"base\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vMember, \"name\")) }\n\t\t\t\t}\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vMember, \"role\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t\tif !uiutils.Eq(vLayout, \"list\") {\n\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{Class: \"flex-wrap text-xs text-muted-foreground\"}}) {\n\t\t\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"outline\", Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.At(vDepts, uiutils.Get(vMember, \"dept\"))) }\n\t\t\t\t\t}\n\t\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"map-pin\", Size: 16})\n\t\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vMember, \"location\")) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif uiutils.Eq(vLayout, \"detailed\") {\n\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(uiutils.Get(vMember, \"bio\")) }\n\t\t\t\t}\n\t\t\t}\n\t\t\tif !uiutils.Eq(vLayout, \"directory\") {\n\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"2\", BoxProps: box.BoxProps{Class: \"flex-wrap\"}}) {\n\t\t\t\t\tfor _, vK := range uiutils.L(uiutils.Get(vMember, \"skills\")) {\n\t\t\t\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"secondary\", Size: \"sm\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t{ uiutils.Text(vK) }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/member-row.templ",
      "target": "blocks/member-row.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "member-row",
  "registryDependencies": [
    "badge",
    "group",
    "inline",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "media-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Member Row",
  "type": "registry:component"
}
