{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Open jobs as cards, grouped by department, or as a table.",
  "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/job-board.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// JobBoardProps are the props of JobBoard; the values are the JSON shapes of the TypeScript props.\ntype JobBoardProps struct {\n\tId any `json:\"id\"`\n\tTitle any `json:\"title\"`\n\tLead any `json:\"lead\"`\n\tJobs any `json:\"jobs\"`\n\tDepartments any `json:\"departments\"`\n\tLabels any `json:\"labels\"`\n\tLayout any `json:\"layout\"`\n\tSalary any `json:\"salary\"`\n\tTone any `json:\"tone\"`\n\tEmpty any `json:\"empty\"`\n\tLandmarkLabel any `json:\"landmarkLabel\"`\n}\n\n// Open jobs as cards in two columns, grouped by department, or as a table: the title, the department, the place, the type, an optional salary and an apply link. Axes: layout (grid, grouped, table), salary (show, hide), tone.\ntempl JobBoard(p JobBoardProps) {\n\t{{ vId := p.Id }}\n\t{{ vTitle := p.Title }}\n\t{{ vLead := uiutils.Def(p.Lead, \"\") }}\n\t{{ vJobs := p.Jobs }}\n\t{{ vDepartments := p.Departments }}\n\t{{ vLabels := p.Labels }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"grid\") }}\n\t{{ vSalary := uiutils.Def(p.Salary, \"hide\") }}\n\t{{ vTone := uiutils.Def(p.Tone, \"default\") }}\n\t{{ vEmpty := uiutils.Def(p.Empty, \"\") }}\n\t{{ vLandmarkLabel := p.LandmarkLabel }}\n\t@SectionFrame(SectionFrameProps{Id: vId, Title: vTitle, Lead: vLead, Tone: vTone, Measure: uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"grouped\")), \"3xl\", \"default\"), LandmarkLabel: vLandmarkLabel}) {\n\t\tif uiutils.Eq(uiutils.Len(vJobs), float64(0)) {\n\t\t\t@EmptyState(EmptyStateProps{Icon: \"briefcase\", Title: vEmpty})\n\t\t} else if uiutils.Eq(vLayout, \"grouped\") {\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"8\", Align: \"stretch\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"groups\")}}) {\n\t\t\t\tfor _, vD := range uiutils.L(vDepartments) {\n\t\t\t\t\t@compose.Stack(compose.StackProps{Gap: \"2\", Align: \"stretch\", BoxProps: box.BoxProps{Attrs: uiutils.Attrs(\"data-slot\", \"group\")}}) {\n\t\t\t\t\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"baseline\", Justify: \"between\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t\t\t\t@compose.Title(compose.TitleProps{As: \"3\", Size: \"lg\", Weight: \"bold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vD, \"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.Tpl(uiutils.Get(vLabels, \"count\"), uiutils.Len(uiutils.Where(vJobs, \"dept\", uiutils.Get(vD, \"id\"))))) }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@compose.List(compose.ListProps{BoxProps: box.BoxProps{Tag: \"ul\", Class: \"flex flex-col\"}}) {\n\t\t\t\t\t\t\tfor _, vJ := range uiutils.L(uiutils.Where(vJobs, \"dept\", uiutils.Get(vD, \"id\"))) {\n\t\t\t\t\t\t\t\t@compose.ListItem(compose.ListItemProps{BoxProps: box.BoxProps{Class: \"flex flex-wrap items-center justify-between gap-4 border-b border-border py-4\", Attrs: uiutils.Attrs(\"data-slot\", \"item\")}}) {\n\t\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\t@MenuEntry(MenuEntryProps{Href: uiutils.Get(vJ, \"href\"), Class: uiutils.Cnv(\"font-medium\")}) {\n\t\t\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vJ, \"title\")) }\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\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\t\t\t{ uiutils.Text(uiutils.Tpl(\"{0}, {1}\", uiutils.Get(vJ, \"location\"), uiutils.Get(vJ, \"type\"))) }\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t@compose.Badge(compose.BadgeProps{Variant: \"outline\", Size: \"default\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vJ, \"type\")) }\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}\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} else {\n\t\t\t@JobCards(JobCardsProps{Jobs: vJobs, Departments: vDepartments, Labels: vLabels, Layout: vLayout, Salary: vSalary})\n\t\t}\n\t}\n}\n",
      "path": "blocks/job-board.templ",
      "target": "blocks/job-board.templ"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "company",
    "kind": "block",
    "tags": [
      "templ",
      "block"
    ]
  },
  "name": "job-board",
  "registryDependencies": [
    "badge",
    "empty-state",
    "group",
    "job-cards",
    "kit-box",
    "kit-text",
    "list",
    "list-item",
    "menu-entry",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Job Board",
  "type": "registry:block"
}
