{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The people of a team as cards, a minimal grid, detailed cards, rows beside a picture or a directory.",
  "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/team-grid.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/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// TeamGridProps are the props of TeamGrid; the values are the JSON shapes of the TypeScript props.\ntype TeamGridProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tMembers any `json:\"members\"`\n\tEmpty any `json:\"empty\"`\n\tDepts any `json:\"depts\"`\n\tLayout any `json:\"layout\"`\n\tCols any `json:\"cols\"`\n\tTone any `json:\"tone\"`\n\tDensity any `json:\"density\"`\n\tImage any `json:\"image\"`\n\tImageAlt any `json:\"imageAlt\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// The people of a team: portrait cards, a minimal grid of small portraits, detailed cards with skills, rows beside a picture, or a directory of two columns. Axes: layout (cards, minimal, detailed, list, directory), cols, tone, density.\ntempl TeamGrid(p TeamGridProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLead := uiutils.Def(p.Lead, \"\") }}\n\t{{ vMembers := p.Members }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vDepts := p.Depts }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"cards\") }}\n\t{{ vCols := uiutils.Def(p.Cols, \"1-4\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vDensity := uiutils.Def(p.Density, \"default\") }}\n\t{{ vImage := p.Image }}\n\t{{ vImageAlt := p.ImageAlt }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Tone: vTone, Density: vDensity, Layout: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"list\")), \"split\", \"stack\"), Media: map[string]any{\"show\": uiutils.Eq(vLayout, \"list\"), \"side\": \"start\", \"align\": \"start\"}, LandmarkLabel: vLandmarkLabel, Aside: teamGridFill1(p, vTitle, vImage, vImageAlt)}) {\n\t\tif uiutils.Eq(uiutils.Len(vMembers), float64(0)) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"users\", Title: vEmpty})\n\t\t} else {\n\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"minimal\")), \"grid grid-cols-2 gap-8 md:grid-cols-4\", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"directory\")), \"grid grid-cols-1 gap-4 md:grid-cols-2\", uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"list\")), \"flex flex-col gap-4\", uiutils.Cond(uiutils.T(uiutils.Eq(vCols, \"1-3\")), \"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3\", \"grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-4\"))))), Attrs: uiutils.Attrs(\"data-slot\", \"items\")}}) {\n\t\t\t\tfor _, vM := range uiutils.L(vMembers) {\n\t\t\t\t\tif uiutils.Eq(vLayout, \"minimal\") {\n\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"center\", BoxProps: box.BoxProps{Class: \"text-center\", Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vM, \"name\"), Src: uiutils.Get(vM, \"image\"), Ratio: \"1/1\", Class: uiutils.Cnv(uiutils.Cnv(\"size-16\", \"shrink-0\"))})\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vM, \"name\")) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"xs\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vM, \"role\")) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if uiutils.Eq(vLayout, \"cards\") {\n\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"4\", BoxProps: box.BoxProps{Class: \"rounded bg-card inset-ring inset-ring-border p-4\", Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\t\t\t\t\t\t@MediaFrame(MediaFrameProps{Alt: uiutils.Get(vM, \"name\"), Src: uiutils.Get(vM, \"image\"), Ratio: \"1/1\"})\n\t\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"base\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vM, \"name\")) }\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vM, \"role\")) }\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vM, \"bio\")) }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t@MemberRow(MemberRowProps{Member: vM, Depts: vDepts, Layout: vLayout})\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\ntempl teamGridFill1(p TeamGridProps, vTitle any, vImage any, vImageAlt any) {\n\t@MediaFrame(MediaFrameProps{Alt: uiutils.Cond(uiutils.T(vImageAlt), vImageAlt, vTitle), Src: vImage, Ratio: \"3/4\"})\n}\n",
      "path": "blocks/team-grid.templ",
      "target": "blocks/team-grid.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "company",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "team-grid",
  "registryDependencies": [
    "box",
    "empty-state",
    "kit-box",
    "kit-text",
    "media-frame",
    "member-row",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Team Grid",
  "type": "registry:block"
}
