{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "team-members-list",
  "title": "Team Members List Block",
  "description": "A workspace members list for settings pages: a seats meter, search, an invite form that turns typed or pasted emails into chips and flags bad ones, role selects that protect the last owner, pending invites with Resend, 2FA badges, last-active status and remove with an inline confirmation.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/team-members-list/team-members-list.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport type Role = \"Owner\" | \"Admin\" | \"Member\" | \"Viewer\";\n\nexport interface TeamMember {\n  id: string;\n  name: string;\n  email: string;\n  avatar?: string;\n  role: Role;\n  status: \"active\" | \"invited\" | \"suspended\";\n  /** Free text, e.g. \"2h ago\". */\n  lastActive?: string;\n  twoFactor?: boolean;\n}\n\nexport interface TeamMembersListProps {\n  title?: string;\n  members?: TeamMember[];\n  seats?: number;\n  /** Id of the person viewing (cannot remove themselves). */\n  currentUserId?: string;\n  onInvite?: (emails: string[], role: Role) => void;\n  onRoleChange?: (id: string, role: Role) => void;\n  onRemove?: (id: string) => void;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: { bg: \"#0A0A0A\", text: \"#F5F4F1\", muted: \"rgba(245,244,241,0.62)\", faint: \"rgba(245,244,241,0.36)\", card: \"#121212\", border: \"rgba(255,255,255,0.09)\", chip: \"rgba(255,255,255,0.06)\", row: \"rgba(255,255,255,0.025)\", input: \"#0D0D0D\", on: \"#F5F4F1\", onText: \"#0A0A0A\", green: \"#4ADE80\", amber: \"#FBBF24\", red: \"#F87171\", accent: \"#FB923C\", track: \"rgba(255,255,255,0.08)\", ring: \"rgba(245,244,241,0.6)\" },\n  light: { bg: \"#FAFAF8\", text: \"#0A0A0A\", muted: \"rgba(10,10,10,0.62)\", faint: \"rgba(10,10,10,0.4)\", card: \"#FFFFFF\", border: \"rgba(10,10,10,0.09)\", chip: \"rgba(10,10,10,0.05)\", row: \"rgba(10,10,10,0.02)\", input: \"#FAFAF8\", on: \"#0A0A0A\", onText: \"#FAFAF8\", green: \"#15803D\", amber: \"#B45309\", red: \"#DC2626\", accent: \"#EA580C\", track: \"rgba(10,10,10,0.07)\", ring: \"rgba(10,10,10,0.5)\" },\n};\nconst ROLES: Role[] = [\"Owner\", \"Admin\", \"Member\", \"Viewer\"];\nconst ROLE_HINT: Record<Role, string> = { Owner: \"Full access, billing and deleting the workspace\", Admin: \"Manage members, settings and integrations\", Member: \"Create and edit projects\", Viewer: \"Read-only access\" };\n\nconst DEFAULT_MEMBERS: TeamMember[] = [\n  { id: \"m1\", name: \"Mara Okafor\", email: \"mara@nexora.io\", avatar: \"/demo/44.webp\", role: \"Owner\", status: \"active\", lastActive: \"Online\", twoFactor: true },\n  { id: \"m2\", name: \"Daniel Reyes\", email: \"daniel@nexora.io\", avatar: \"/demo/42.webp\", role: \"Admin\", status: \"active\", lastActive: \"12m ago\", twoFactor: true },\n  { id: \"m3\", name: \"Lena Brandt\", email: \"lena@nexora.io\", avatar: \"/demo/55.webp\", role: \"Member\", status: \"active\", lastActive: \"2h ago\", twoFactor: false },\n  { id: \"m4\", name: \"Tomás Ferreira\", email: \"tomas@nexora.io\", avatar: \"/demo/43.webp\", role: \"Member\", status: \"active\", lastActive: \"Yesterday\", twoFactor: true },\n  { id: \"m5\", name: \"Noor Haddad\", email: \"noor@nexora.io\", avatar: \"/demo/46.webp\", role: \"Viewer\", status: \"active\", lastActive: \"3d ago\", twoFactor: false },\n  { id: \"m6\", name: \"\", email: \"jonah@kestrel.dev\", role: \"Member\", status: \"invited\", lastActive: \"Invited 2d ago\" },\n  { id: \"m7\", name: \"Priya Nair\", email: \"priya@nexora.io\", avatar: \"/demo/41.webp\", role: \"Member\", status: \"suspended\", lastActive: \"Suspended\", twoFactor: true },\n];\n\nconst EMAIL = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\nexport function TeamMembersList({ title = \"Team members\", members, seats = 10, currentUserId = \"m1\", onInvite, onRoleChange, onRemove, theme = \"dark\", className }: TeamMembersListProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const uid = React.useId();\n  const [list, setList] = React.useState<TeamMember[]>(() => members ?? DEFAULT_MEMBERS);\n  const [q, setQ] = React.useState(\"\");\n  const [inviteOpen, setInviteOpen] = React.useState(false);\n  const [chips, setChips] = React.useState<string[]>([]);\n  const [draft, setDraft] = React.useState(\"\");\n  const [inviteRole, setInviteRole] = React.useState<Role>(\"Member\");\n  const [confirm, setConfirm] = React.useState<string | null>(null);\n  const [toast, setToast] = React.useState<string | null>(null);\n  const [resent, setResent] = React.useState<string[]>([]);\n  const [newIds, setNewIds] = React.useState<string[]>([]);\n  const seq = React.useRef(0);\n  const timer = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n  React.useEffect(\n    () => () => {\n      if (timer.current) clearTimeout(timer.current);\n    },\n    [],\n  );\n\n  const used = list.filter((m) => m.status !== \"suspended\").length;\n  const free = seats - used;\n  const owners = list.filter((m) => m.role === \"Owner\" && m.status === \"active\").length;\n  const query = q.trim().toLowerCase();\n  const rows = list.filter((m) => !query || `${m.name} ${m.email} ${m.role}`.toLowerCase().includes(query));\n  const say = (t: string) => {\n    setToast(t);\n    if (timer.current) clearTimeout(timer.current);\n    timer.current = setTimeout(() => setToast(null), 2400);\n  };\n\n  const addChip = (raw: string) => {\n    const parts = raw\n      .split(/[\\s,;]+/)\n      .map((s) => s.trim().toLowerCase())\n      .filter(Boolean);\n    if (!parts.length) return;\n    setChips((c) => Array.from(new Set([...c, ...parts])));\n    setDraft(\"\");\n  };\n  const valid = chips.filter((c) => EMAIL.test(c) && !list.some((m) => m.email === c));\n  const sendInvites = () => {\n    const pending = draft.trim() ? Array.from(new Set([...chips, ...draft.split(/[\\s,;]+/).map((s) => s.trim().toLowerCase()).filter(Boolean)])) : chips;\n    const ok = pending.filter((c) => EMAIL.test(c) && !list.some((m) => m.email === c)).slice(0, Math.max(0, free));\n    if (!ok.length) return;\n    const added: TeamMember[] = ok.map((email) => {\n      seq.current += 1;\n      return { id: `new-${seq.current}`, name: \"\", email, role: inviteRole, status: \"invited\", lastActive: \"Invited just now\" };\n    });\n    setList((l) => [...l, ...added]);\n    setNewIds(added.map((a) => a.id));\n    onInvite?.(ok, inviteRole);\n    setChips([]);\n    setDraft(\"\");\n    setInviteOpen(false);\n    say(`${ok.length} ${ok.length === 1 ? \"invite\" : \"invites\"} sent`);\n  };\n  const changeRole = (m: TeamMember, role: Role) => {\n    setList((l) => l.map((x) => (x.id === m.id ? { ...x, role } : x)));\n    onRoleChange?.(m.id, role);\n    say(`${m.name || m.email} is now ${role === \"Admin\" ? \"an\" : \"a\"} ${role}`);\n  };\n  const remove = (m: TeamMember) => {\n    setList((l) => l.filter((x) => x.id !== m.id));\n    setConfirm(null);\n    onRemove?.(m.id);\n    say(m.status === \"invited\" ? \"Invite revoked\" : `${m.name} removed`);\n  };\n  const focusInvite = React.useCallback((el: HTMLInputElement | null) => el?.focus({ preventScroll: true }), []);\n  const focusCancel = React.useCallback((el: HTMLButtonElement | null) => el?.focus({ preventScroll: true }), []);\n\n  const ring = { [\"--tw-ring-color\" as string]: p.ring, [\"--tw-ring-offset-color\" as string]: p.card } as React.CSSProperties;\n  const focus = \"outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n  const avatar = (m: TeamMember) =>\n    m.avatar ? (\n      // eslint-disable-next-line @next/next/no-img-element\n      <img src={m.avatar} alt=\"\" className=\"h-9 w-9 shrink-0 rounded-full object-cover\" style={{ opacity: m.status === \"suspended\" ? 0.45 : 1 }} />\n    ) : (\n      <span className=\"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-dashed text-[12px] font-semibold uppercase\" style={{ borderColor: p.faint, color: p.muted }} aria-hidden=\"true\">\n        {(m.name || m.email)[0]}\n      </span>\n    );\n\n  return (\n    <section className={cn(\"@container w-full\", className)} style={{ background: p.bg, color: p.text }}>\n      <div className=\"relative mx-auto max-w-5xl px-4 py-10 @[640px]:px-6 @[640px]:py-14\">\n        <div className=\"overflow-hidden rounded-2xl border\" style={{ background: p.card, borderColor: p.border }}>\n          <div className=\"flex flex-wrap items-center justify-between gap-4 p-5\">\n            <div className=\"min-w-0\">\n              <h2 className=\"m-0 text-[18px] font-semibold tracking-[-0.01em]\">{title}</h2>\n              <div className=\"mt-2 flex items-center gap-2.5\">\n                <div className=\"h-1.5 w-28 overflow-hidden rounded-full\" style={{ background: p.track }} role=\"progressbar\" aria-label=\"Seats used\" aria-valuenow={used} aria-valuemin={0} aria-valuemax={seats}>\n                  <motion.div className=\"h-full rounded-full\" style={{ background: free <= 1 ? p.amber : p.on }} initial={false} animate={{ width: `${Math.min(100, (used / seats) * 100)}%` }} transition={{ duration: reduce ? 0 : 0.4 }} />\n                </div>\n                <span className=\"text-[12.5px] tabular-nums\" style={{ color: free <= 1 ? p.amber : p.muted }} aria-live=\"polite\">\n                  {used} of {seats} seats\n                </span>\n              </div>\n            </div>\n            <div className=\"flex w-full gap-2 @[640px]:w-auto\">\n              <label className=\"relative min-w-0 flex-1 @[640px]:w-56 @[640px]:flex-none\">\n                <span className=\"sr-only\">Search members</span>\n                <svg className=\"pointer-events-none absolute top-1/2 left-3 -translate-y-1/2\" width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" aria-hidden=\"true\" style={{ color: p.faint }}>\n                  <circle cx=\"11\" cy=\"11\" r=\"7\" />\n                  <path d=\"m20 20-3.5-3.5\" />\n                </svg>\n                <input type=\"search\" value={q} onChange={(e) => setQ(e.target.value)} placeholder=\"Search\" className={cn(\"h-9 w-full rounded-lg border pr-3 pl-8 text-[13px]\", focus)} style={{ borderColor: p.border, background: \"transparent\", color: p.text, ...ring }} />\n              </label>\n              <button type=\"button\" aria-expanded={inviteOpen} aria-controls={`${uid}-invite`} onClick={() => setInviteOpen((o) => !o)} className={cn(\"flex h-9 shrink-0 cursor-pointer items-center gap-1.5 rounded-lg border-0 px-3.5 text-[13px] font-medium\", focus)} style={{ background: p.on, color: p.onText, ...ring }}>\n                <svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" aria-hidden=\"true\">\n                  <path d=\"M12 5v14M5 12h14\" />\n                </svg>\n                Invite\n              </button>\n            </div>\n          </div>\n\n          <AnimatePresence initial={false}>\n            {inviteOpen && (\n              <motion.div id={`${uid}-invite`} initial={reduce ? false : { height: 0, opacity: 0 }} animate={{ height: \"auto\", opacity: 1 }} exit={reduce ? undefined : { height: 0, opacity: 0 }} className=\"overflow-hidden border-t\" style={{ borderColor: p.border, background: p.row }}>\n                <form\n                  className=\"flex flex-col gap-3 p-5 @[720px]:flex-row @[720px]:items-start\"\n                  onSubmit={(e) => {\n                    e.preventDefault();\n                    sendInvites();\n                  }}\n                >\n                  <div className=\"min-w-0 flex-1\">\n                    <label htmlFor={`${uid}-emails`} className=\"mb-1.5 block text-[12.5px]\" style={{ color: p.muted }}>\n                      Email addresses\n                    </label>\n                    <div className=\"flex min-h-10 flex-wrap items-center gap-1.5 rounded-lg border px-2 py-1.5 focus-within:ring-2\" style={{ borderColor: p.border, background: p.input, ...ring }}>\n                      {chips.map((c) => {\n                        const bad = !EMAIL.test(c) || list.some((m) => m.email === c);\n                        return (\n                          <span key={c} className=\"flex items-center gap-1 rounded-md py-0.5 pr-1 pl-2 text-[12.5px]\" style={{ background: p.chip, color: bad ? p.red : p.text }} title={bad ? (EMAIL.test(c) ? \"Already a member\" : \"Not a valid email\") : undefined}>\n                            {c}\n                            <button type=\"button\" aria-label={`Remove ${c}`} onClick={() => setChips((x) => x.filter((y) => y !== c))} className=\"flex h-4 w-4 cursor-pointer items-center justify-center rounded border-0 bg-transparent\" style={{ color: p.faint }}>\n                              ×\n                            </button>\n                          </span>\n                        );\n                      })}\n                      <input\n                        id={`${uid}-emails`}\n                        ref={focusInvite}\n                        value={draft}\n                        onChange={(e) => (/[\\s,;]$/.test(e.target.value) ? addChip(e.target.value) : setDraft(e.target.value))}\n                        onKeyDown={(e) => {\n                          if (e.key === \"Enter\" && draft.trim()) {\n                            e.preventDefault();\n                            addChip(draft);\n                          } else if (e.key === \"Backspace\" && !draft && chips.length) setChips((c) => c.slice(0, -1));\n                        }}\n                        onPaste={(e) => {\n                          e.preventDefault();\n                          addChip(e.clipboardData.getData(\"text\"));\n                        }}\n                        placeholder={chips.length ? \"\" : \"name@company.com, another@company.com\"}\n                        className=\"h-7 min-w-[160px] flex-1 border-0 bg-transparent px-1 text-[13px] outline-none\"\n                        style={{ color: p.text }}\n                      />\n                    </div>\n                    <p className=\"m-0 mt-1.5 text-[12px]\" style={{ color: chips.length - valid.length ? p.red : p.faint }}>\n                      {chips.length - valid.length ? `${chips.length - valid.length} address${chips.length - valid.length > 1 ? \"es\" : \"\"} will be skipped. ` : \"\"}\n                      {free > 0 ? `${free} seat${free > 1 ? \"s\" : \"\"} left.` : \"No seats left. Add seats in billing.\"}\n                    </p>\n                  </div>\n                  <div className=\"@[720px]:w-40\">\n                    <label htmlFor={`${uid}-role`} className=\"mb-1.5 block text-[12.5px]\" style={{ color: p.muted }}>\n                      Role\n                    </label>\n                    <select id={`${uid}-role`} value={inviteRole} onChange={(e) => setInviteRole(e.target.value as Role)} className={cn(\"h-10 w-full cursor-pointer rounded-lg border px-2.5 text-[13px]\", focus)} style={{ borderColor: p.border, background: p.input, color: p.text, ...ring }}>\n                      {ROLES.filter((r) => r !== \"Owner\").map((r) => (\n                        <option key={r}>{r}</option>\n                      ))}\n                    </select>\n                  </div>\n                  <button type=\"submit\" disabled={!(valid.length || EMAIL.test(draft.trim())) || free <= 0} className={cn(\"h-10 cursor-pointer rounded-lg border-0 px-4 text-[13px] font-medium disabled:cursor-not-allowed disabled:opacity-40 @[720px]:mt-[26px]\", focus)} style={{ background: p.on, color: p.onText, ...ring }}>\n                    Send invites\n                  </button>\n                </form>\n              </motion.div>\n            )}\n          </AnimatePresence>\n\n          <ul className=\"m-0 list-none border-t p-0\" style={{ borderColor: p.border }} aria-label=\"Members\">\n            <AnimatePresence initial={false}>\n              {rows.map((m) => {\n                const me = m.id === currentUserId;\n                const lastOwner = m.role === \"Owner\" && owners <= 1;\n                return (\n                  <motion.li key={m.id} layout={!reduce} initial={reduce ? false : { opacity: 0, height: 0 }} animate={{ opacity: 1, height: \"auto\" }} exit={reduce ? undefined : { opacity: 0, height: 0 }} transition={{ duration: 0.25 }} className=\"overflow-hidden border-b last:border-b-0\" style={{ borderColor: p.border }}>\n                    <motion.div className=\"flex flex-wrap items-center gap-x-4 gap-y-2 px-5 py-3.5\" initial={newIds.includes(m.id) && !reduce ? { backgroundColor: p.chip } : false} animate={{ backgroundColor: \"rgba(0,0,0,0)\" }} transition={{ duration: 2 }}>\n                      <div className=\"flex min-w-0 flex-1 basis-56 items-center gap-3\">\n                        {avatar(m)}\n                        <div className=\"min-w-0\">\n                          <p className=\"m-0 flex items-center gap-1.5 text-[13.5px] font-medium\">\n                            <span className=\"truncate\" style={{ color: m.status === \"suspended\" ? p.faint : p.text }}>\n                              {m.name || m.email}\n                            </span>\n                            {me && (\n                              <span className=\"rounded px-1 text-[10.5px] font-semibold\" style={{ background: p.chip, color: p.muted }}>\n                                You\n                              </span>\n                            )}\n                            {m.twoFactor && (\n                              <span title=\"Two-factor authentication on\" className=\"flex\" style={{ color: p.green }}>\n                                <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                                  <path d=\"M12 3 5 6v5c0 4.5 3 8.2 7 10 4-1.8 7-5.5 7-10V6l-7-3Z\" />\n                                  <path d=\"m9 12 2 2 4-4\" />\n                                </svg>\n                                <span className=\"sr-only\">2FA on</span>\n                              </span>\n                            )}\n                          </p>\n                          <p className=\"m-0 truncate text-[12px]\" style={{ color: p.faint }}>\n                            {m.name ? m.email : m.status === \"invited\" ? \"Invitation pending\" : \"\"}\n                          </p>\n                        </div>\n                      </div>\n                      <span className=\"hidden w-24 text-[12.5px] @[720px]:block\" style={{ color: m.status === \"invited\" ? p.amber : m.status === \"suspended\" ? p.red : m.lastActive === \"Online\" ? p.green : p.faint }}>\n                        {m.lastActive}\n                      </span>\n                      <div className=\"flex items-center gap-1.5\">\n                        <label className=\"sr-only\" htmlFor={`${uid}-r-${m.id}`}>\n                          Role for {m.name || m.email}\n                        </label>\n                        <select\n                          id={`${uid}-r-${m.id}`}\n                          value={m.role}\n                          disabled={lastOwner || m.status === \"suspended\"}\n                          title={lastOwner ? \"A workspace needs at least one owner\" : ROLE_HINT[m.role]}\n                          onChange={(e) => changeRole(m, e.target.value as Role)}\n                          className={cn(\"h-8 cursor-pointer rounded-lg border px-2 text-[12.5px] disabled:cursor-not-allowed disabled:opacity-60\", focus)}\n                          style={{ borderColor: p.border, background: p.card, color: p.text, ...ring }}\n                        >\n                          {ROLES.map((r) => (\n                            <option key={r}>{r}</option>\n                          ))}\n                        </select>\n                        {m.status === \"invited\" && (\n                          <button\n                            type=\"button\"\n                            disabled={resent.includes(m.id)}\n                            onClick={() => {\n                              setResent((r) => [...r, m.id]);\n                              say(`Invite resent to ${m.email}`);\n                            }}\n                            className={cn(\"h-8 cursor-pointer rounded-lg border bg-transparent px-2.5 text-[12.5px] disabled:cursor-default disabled:opacity-50\", focus)}\n                            style={{ borderColor: p.border, color: p.text, ...ring }}\n                          >\n                            {resent.includes(m.id) ? \"Sent\" : \"Resend\"}\n                          </button>\n                        )}\n                        <button\n                          type=\"button\"\n                          disabled={me || lastOwner}\n                          aria-label={m.status === \"invited\" ? `Revoke invite for ${m.email}` : `Remove ${m.name}`}\n                          title={me ? \"You can't remove yourself\" : undefined}\n                          onClick={() => setConfirm(m.id)}\n                          className={cn(\"flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg border-0 bg-transparent disabled:cursor-not-allowed disabled:opacity-30\", focus)}\n                          style={{ color: p.faint, ...ring }}\n                        >\n                          <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                            <path d=\"M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3\" />\n                          </svg>\n                        </button>\n                      </div>\n                    </motion.div>\n                    <AnimatePresence initial={false}>\n                      {confirm === m.id && (\n                        <motion.div initial={reduce ? false : { height: 0, opacity: 0 }} animate={{ height: \"auto\", opacity: 1 }} exit={reduce ? undefined : { height: 0, opacity: 0 }} className=\"overflow-hidden\" role=\"alertdialog\" aria-label={`Remove ${m.name || m.email}?`}>\n                          <div className=\"mx-5 mb-3.5 flex flex-wrap items-center justify-between gap-3 rounded-xl border px-3.5 py-2.5\" style={{ borderColor: p.red }}>\n                            <p className=\"m-0 text-[13px]\">{m.status === \"invited\" ? `Revoke the invite for ${m.email}?` : `Remove ${m.name}? They lose access right away and their seat is freed.`}</p>\n                            <div className=\"flex gap-2\">\n                              <button ref={focusCancel} type=\"button\" onClick={() => setConfirm(null)} className={cn(\"h-8 cursor-pointer rounded-lg border bg-transparent px-3 text-[12.5px]\", focus)} style={{ borderColor: p.border, color: p.text, ...ring }}>\n                                Cancel\n                              </button>\n                              <button type=\"button\" onClick={() => remove(m)} className={cn(\"h-8 cursor-pointer rounded-lg border-0 px-3 text-[12.5px] font-medium\", focus)} style={{ background: p.red, color: \"#fff\", ...ring }}>\n                                {m.status === \"invited\" ? \"Revoke\" : \"Remove\"}\n                              </button>\n                            </div>\n                          </div>\n                        </motion.div>\n                      )}\n                    </AnimatePresence>\n                  </motion.li>\n                );\n              })}\n            </AnimatePresence>\n          </ul>\n          {rows.length === 0 && (\n            <p className=\"m-0 border-t px-5 py-10 text-center text-[14px]\" style={{ borderColor: p.border, color: p.muted }}>\n              No members match “{q}”.\n            </p>\n          )}\n        </div>\n\n        <div className=\"pointer-events-none absolute inset-x-0 bottom-4 flex justify-center px-4\" aria-live=\"polite\">\n          <AnimatePresence>\n            {toast && (\n              <motion.div key={toast} initial={reduce ? false : { opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} exit={reduce ? undefined : { opacity: 0, y: 6 }} className=\"rounded-full px-4 py-2 text-[13px] font-medium shadow-lg\" style={{ background: p.on, color: p.onText }}>\n                {toast}\n              </motion.div>\n            )}\n          </AnimatePresence>\n        </div>\n      </div>\n    </section>\n  );\n}\n\nexport default TeamMembersList;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}