{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "career-1",
  "dependencies": [
    "lucide-react",
    "react-icons"
  ],
  "registryDependencies": [
    "button",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/career-1.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport type { ReactNode } from \"react\";\nimport { FiBriefcase } from \"react-icons/fi\";\nimport { FaArrowRight, FaMapMarkerAlt, FaClock, FaFire } from \"react-icons/fa\";\nimport { HiSparkles } from \"react-icons/hi\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport type Career1JobType =\n  | \"Full-time\"\n  | \"Part-time\"\n  | \"Contract\"\n  | \"Internship\";\n\nexport type Career1LocationType = \"Remote\" | \"Hybrid\" | \"On-site\";\n\nexport interface Career1Job {\n  id: string;\n  title: string;\n  description: string;\n  department: string;\n  location: Career1LocationType;\n  type: Career1JobType;\n  featured?: boolean;\n  href?: string;\n}\n\nexport interface Career1Department {\n  label: string;\n  value: string;\n}\n\nexport interface Career1Cta {\n  text: string;\n  linkLabel: string;\n  href?: string;\n}\n\nexport interface Career1Props {\n  badge?: string;\n  heading?: string;\n  headingHighlight?: string;\n  description?: string;\n  departments?: Career1Department[];\n  jobs?: Career1Job[];\n  cta?: Career1Cta;\n  className?: string;\n  renderLink?: (props: {\n    href: string;\n    label: string;\n    children: ReactNode;\n    className?: string;\n  }) => ReactNode;\n}\n\nconst defaultDepartments: Career1Department[] = [\n  { label: \"All Roles\", value: \"all\" },\n  { label: \"Engineering\", value: \"Engineering\" },\n  { label: \"Design\", value: \"Design\" },\n  { label: \"Product\", value: \"Product\" },\n  { label: \"Growth\", value: \"Growth\" },\n];\n\nconst defaultJobs: Career1Job[] = [\n  {\n    id: \"eng-manager\",\n    title: \"Engineering Manager\",\n    description:\n      \"Lead cross-functional squads, set technical direction, and help engineers grow.\",\n    department: \"Engineering\",\n    location: \"Remote\",\n    type: \"Full-time\",\n    featured: true,\n    href: \"#\",\n  },\n  {\n    id: \"senior-fe\",\n    title: \"Senior Frontend Engineer\",\n    description:\n      \"Craft delightful, performant interfaces used by thousands of teams worldwide.\",\n    department: \"Engineering\",\n    location: \"Hybrid\",\n    type: \"Full-time\",\n    href: \"#\",\n  },\n  {\n    id: \"product-designer\",\n    title: \"Product Designer\",\n    description:\n      \"Own the end-to-end design of core product flows from research to pixel-perfect handoff.\",\n    department: \"Design\",\n    location: \"Remote\",\n    type: \"Full-time\",\n    featured: true,\n    href: \"#\",\n  },\n  {\n    id: \"data-scientist\",\n    title: \"Data Scientist\",\n    description:\n      \"Build models that power intelligent features and surface actionable insights.\",\n    department: \"Engineering\",\n    location: \"Remote\",\n    type: \"Full-time\",\n    href: \"#\",\n  },\n  {\n    id: \"pm\",\n    title: \"Product Manager\",\n    description:\n      \"Drive roadmap strategy, synthesise user feedback, and ship products people love.\",\n    department: \"Product\",\n    location: \"Hybrid\",\n    type: \"Full-time\",\n    href: \"#\",\n  },\n  {\n    id: \"growth\",\n    title: \"Growth Marketer\",\n    description:\n      \"Experiment relentlessly across channels to accelerate acquisition and retention.\",\n    department: \"Growth\",\n    location: \"Remote\",\n    type: \"Full-time\",\n    href: \"#\",\n  },\n];\n\nconst defaultCta: Career1Cta = {\n  text: \"Don't see a fit? We're always looking for great people.\",\n  linkLabel: \"Send an open application\",\n  href: \"#\",\n};\n\nconst locationVariant: Record<Career1LocationType, string> = {\n  Remote:\n    \"bg-emerald-50 text-emerald-700 border-emerald-100 dark:bg-emerald-950/40 dark:text-emerald-400 dark:border-emerald-900\",\n  Hybrid:\n    \"bg-blue-50 text-blue-700 border-blue-100 dark:bg-blue-950/40 dark:text-blue-400 dark:border-blue-900\",\n  \"On-site\":\n    \"bg-orange-50 text-orange-700 border-orange-100 dark:bg-orange-950/40 dark:text-orange-400 dark:border-orange-900\",\n};\n\nfunction DeptTab({\n  dept,\n  isActive,\n  count,\n  onClick,\n}: {\n  dept: Career1Department;\n  isActive: boolean;\n  count: number;\n  onClick: () => void;\n}) {\n  return (\n    <button\n      type=\"button\"\n      onClick={onClick}\n      aria-pressed={isActive}\n      className={cn(\n        \"inline-flex items-center gap-1.5 rounded-full px-3.5 py-1.5 text-sm font-medium\",\n        \"transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring/50\",\n        isActive\n          ? \"bg-foreground text-background shadow-sm\"\n          : \"bg-muted text-muted-foreground hover:bg-muted/80 hover:text-foreground\",\n      )}\n    >\n      {dept.label}\n      {dept.value !== \"all\" && (\n        <span\n          className={cn(\n            \"inline-flex size-4 items-center justify-center rounded-full text-[10px] font-semibold tabular-nums\",\n            isActive\n              ? \"bg-background/20 text-background\"\n              : \"bg-border text-muted-foreground\",\n          )}\n        >\n          {count}\n        </span>\n      )}\n    </button>\n  );\n}\n\nfunction JobRow({\n  job,\n  renderLink,\n}: {\n  job: Career1Job;\n  renderLink?: Career1Props[\"renderLink\"];\n}) {\n  const rowContent = (\n    <div\n      className={cn(\n        \"group relative flex flex-col gap-3 py-5 sm:flex-row sm:items-center sm:gap-6\",\n        \"transition-colors duration-150\",\n      )}\n    >\n      <div className=\"min-w-0 flex-1 space-y-1\">\n        <div className=\"flex flex-wrap items-center gap-2\">\n          <h3 className=\"text-sm font-semibold text-foreground group-hover:text-foreground/80 transition-colors sm:text-base\">\n            {job.title}\n          </h3>\n          {job.featured && (\n            <span className=\"inline-flex items-center gap-1 rounded-full bg-amber-50 px-2 py-0.5 text-[10px] font-semibold text-amber-600 border border-amber-100 dark:bg-amber-950/40 dark:text-amber-400 dark:border-amber-900\">\n              <FaFire className=\"size-2.5\" />\n              Hot\n            </span>\n          )}\n        </div>\n        <p className=\"text-xs text-muted-foreground sm:text-sm line-clamp-1\">\n          {job.description}\n        </p>\n      </div>\n\n      <div className=\"flex flex-wrap items-center gap-2 sm:flex-nowrap sm:shrink-0\">\n        <span\n          className={cn(\n            \"inline-flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-xs font-medium\",\n            locationVariant[job.location],\n          )}\n        >\n          <FaMapMarkerAlt className=\"size-2.5\" />\n          {job.location}\n        </span>\n\n        <span className=\"inline-flex items-center gap-1 rounded-full border border-border bg-muted px-2.5 py-0.5 text-xs font-medium text-muted-foreground\">\n          <FaClock className=\"size-2.5\" />\n          {job.type}\n        </span>\n\n        <span className=\"ml-auto flex size-7 items-center justify-center rounded-full bg-muted text-muted-foreground transition-colors duration-300 group-hover:bg-foreground group-hover:text-background sm:ml-3\">\n          <FaArrowRight className=\"size-3 transition-transform duration-400 group-hover:translate-x-0.5\" />\n        </span>\n      </div>\n    </div>\n  );\n\n  const href = job.href ?? \"#\";\n  const label = `View ${job.title} role`;\n\n  if (renderLink) {\n    return (\n      <li className=\"border-b border-border last:border-b-0\">\n        {renderLink({ href, label, children: rowContent })}\n      </li>\n    );\n  }\n\n  return (\n    <li className=\"border-b border-border last:border-b-0\">\n      <a href={href} aria-label={label} className=\"block\">\n        {rowContent}\n      </a>\n    </li>\n  );\n}\n\nfunction CtaBanner({\n  cta,\n  renderLink,\n}: {\n  cta: Career1Cta;\n  renderLink?: Career1Props[\"renderLink\"];\n}) {\n  const linkContent = (\n    <span className=\"inline-flex items-center gap-1.5 text-sm font-semibold text-foreground hover:underline underline-offset-4 transition-all\">\n      {cta.linkLabel}\n      <FaArrowRight className=\"size-3\" />\n    </span>\n  );\n\n  const renderedLink = renderLink ? (\n    renderLink({\n      href: cta.href ?? \"#\",\n      label: cta.linkLabel,\n      children: linkContent,\n    })\n  ) : (\n    <a href={cta.href ?? \"#\"}>{linkContent}</a>\n  );\n\n  return (\n    <div className=\"mt-6 flex flex-col items-start gap-3 rounded-xl border border-border bg-muted/50 px-5 py-4 sm:flex-row sm:items-center sm:justify-between\">\n      <div className=\"flex items-center gap-3\">\n        <span className=\"flex size-8 shrink-0 items-center justify-center rounded-full bg-background border border-border text-muted-foreground\">\n          <FiBriefcase className=\"size-3.5\" />\n        </span>\n        <p className=\"text-sm text-muted-foreground\">{cta.text}</p>\n      </div>\n      {renderedLink}\n    </div>\n  );\n}\n\nexport default function Career1({\n  badge = \"Join our team\",\n  heading = \"Exciting careers for\",\n  headingHighlight = \"bright minds\",\n  description = \"We hire curious, driven people who want to build things that matter. Explore open roles below.\",\n  departments = defaultDepartments,\n  jobs = defaultJobs,\n  cta = defaultCta,\n  className,\n  renderLink,\n}: Career1Props) {\n  const [activeTab, setActiveTab] = useState<string>(\"all\");\n\n  const filteredJobs =\n    activeTab === \"all\" ? jobs : jobs.filter((j) => j.department === activeTab);\n\n  const countByDept = (value: string) =>\n    value === \"all\"\n      ? jobs.length\n      : jobs.filter((j) => j.department === value).length;\n\n  return (\n    <section className={cn(\"w-full bg-background py-8\", className)}>\n      <div className=\"mx-auto max-w-4xl px-4 sm:px-6 lg:px-8\">\n        <div className=\"mb-10 space-y-4 sm:mb-12\">\n          {badge && (\n            <div className=\"inline-flex items-center gap-1.5 rounded-full border border-border bg-muted px-3 py-1 text-xs font-medium text-muted-foreground\">\n              <HiSparkles className=\"size-3 text-foreground\" />\n              {badge}\n            </div>\n          )}\n\n          {(heading || headingHighlight) && (\n            <h2 className=\"text-3xl font-bold tracking-tight text-foreground sm:text-4xl lg:text-5xl\">\n              {heading}{\" \"}\n              {headingHighlight && (\n                <span className=\"relative inline-block\">\n                  <span className=\"relative z-10 text-foreground\">\n                    {headingHighlight}\n                  </span>\n\n                  <span\n                    aria-hidden=\"true\"\n                    className=\"absolute inset-x-0 bottom-0.5 h-[6px] rounded-full bg-primary/15 dark:bg-primary/20\"\n                  />\n                </span>\n              )}\n            </h2>\n          )}\n\n          {description && (\n            <p className=\"max-w-xl text-sm text-muted-foreground sm:text-base\">\n              {description}\n            </p>\n          )}\n        </div>\n\n        {departments.length > 0 && (\n          <div className=\"mb-8 flex flex-wrap gap-2\">\n            {departments.map((dept) => (\n              <DeptTab\n                key={dept.value}\n                dept={dept}\n                isActive={activeTab === dept.value}\n                count={countByDept(dept.value)}\n                onClick={() => setActiveTab(dept.value)}\n              />\n            ))}\n          </div>\n        )}\n\n        <div className=\"rounded-xl border border-border bg-card px-4 sm:px-6\">\n          {filteredJobs.length > 0 ? (\n            <ul role=\"list\">\n              {filteredJobs.map((job) => (\n                <JobRow key={job.id} job={job} renderLink={renderLink} />\n              ))}\n            </ul>\n          ) : (\n            <div className=\"flex flex-col items-center gap-3 py-14 text-center\">\n              <span className=\"flex size-10 items-center justify-center rounded-full bg-muted text-muted-foreground\">\n                <FiBriefcase className=\"size-4\" />\n              </span>\n              <p className=\"text-sm font-medium text-foreground\">\n                No openings right now\n              </p>\n              <p className=\"max-w-xs text-xs text-muted-foreground\">\n                We don't have any open roles in this department at the moment.\n                Check back soon!\n              </p>\n            </div>\n          )}\n        </div>\n\n        {cta && <CtaBanner cta={cta} renderLink={renderLink} />}\n      </div>\n    </section>\n  );\n}\n\nexport { Career1 };\n",
      "type": "registry:ui",
      "target": "components/ui/career-1.tsx"
    }
  ],
  "type": "registry:ui"
}
