{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "team-03",
  "title": "Invite flow",
  "description": "A sheet with Invite and Invited tabs that turns addresses into chips, beside the list of pending invitations it keeps up to date.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/animated-size.json",
    "https://ui.ndekocode.dev/r/avatar.json",
    "https://ui.ndekocode.dev/r/badge.json",
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/chip.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/motion-number.json",
    "https://ui.ndekocode.dev/r/radio-group.json",
    "https://ui.ndekocode.dev/r/recipes.json",
    "https://ui.ndekocode.dev/r/sheet.json",
    "https://ui.ndekocode.dev/r/tabs.json",
    "https://ui.ndekocode.dev/r/textarea.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/use-prefers-reduced-motion.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/blocks/team/team-03/index.tsx",
      "content": "'use client';\n\nimport { AnimatePresence, motion, type Transition } from 'motion/react';\nimport { useId, useState } from 'react';\n\nimport { MailIcon, UserRoundPlusIcon } from '@/registry/ndeko/lib/icons';\nimport { AnimatedSize } from '@/registry/ndeko/ui/animated-size';\nimport { Badge } from '@/registry/ndeko/ui/badge';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Avatar } from '@/registry/ndeko/ui/avatar';\n\nimport {\n  CURRENT_USER_NAME,\n  INVITATIONS,\n  MEMBERS,\n  ROLE_LABEL,\n  TEAM_NAME,\n  type Invitation,\n  type Role,\n} from './data';\nimport { InvitationList, LIST_SURFACE } from './invitation-list';\nimport { InviteSheet, type InviteTab } from './invite-sheet';\n\nconst SWITCH_IN: Transition = { duration: 0.2, ease: [0.23, 1, 0.32, 1] };\n\nconst SWITCH_OUT: Transition = { duration: 0.12, ease: [0.23, 1, 0.32, 1] };\n\nfunction countLabel(count: number, singular: string, plural: string) {\n  if (count === 1) {\n    return `1 ${singular}`;\n  }\n  return `${count} ${plural}`;\n}\n\nfunction invitationOf(email: string, role: Role): Invitation {\n  return {\n    id: `invite-${email}`,\n    email,\n    role,\n    invitedBy: CURRENT_USER_NAME,\n    sentLabel: 'Sent just now',\n  };\n}\n\nexport default function Team03() {\n  const [invitations, setInvitations] = useState<Invitation[]>(INVITATIONS);\n  const [isSheetOpen, setIsSheetOpen] = useState(false);\n  const [sheetTab, setSheetTab] = useState<InviteTab>('invite');\n  const pendingHeadingId = useId();\n  const membersHeadingId = useId();\n  const hasInvitations = invitations.length > 0;\n  const memberText = countLabel(MEMBERS.length, 'member', 'members');\n  const pendingText = countLabel(\n    invitations.length,\n    'pending invitation',\n    'pending invitations'\n  );\n\n  function openInvite() {\n    setSheetTab('invite');\n    setIsSheetOpen(true);\n  }\n\n  function openInvited() {\n    setSheetTab('invited');\n    setIsSheetOpen(true);\n  }\n\n  function send(emails: string[], role: Role) {\n    const created = emails.map((email) => invitationOf(email, role));\n    setInvitations((previous) => [...created, ...previous]);\n  }\n\n  function resend(invitationId: string) {\n    setInvitations((previous) =>\n      previous.map((invitation) => {\n        if (invitation.id !== invitationId) {\n          return invitation;\n        }\n        return { ...invitation, sentLabel: 'Sent again just now' };\n      })\n    );\n  }\n\n  function revoke(invitationId: string) {\n    setInvitations((previous) =>\n      previous.filter((invitation) => invitation.id !== invitationId)\n    );\n  }\n\n  return (\n    <div className='bg-background text-foreground flex min-h-dvh w-full flex-col'>\n      <div className='hairline-b border-border flex flex-wrap items-center gap-x-3 gap-y-2 px-4 py-3 md:px-6'>\n        <div className='flex min-w-0 items-baseline gap-2'>\n          <h1 className='truncate text-lg font-semibold'>{`${TEAM_NAME} team`}</h1>\n          <span className='text-muted-foreground text-xs tabular-nums'>\n            {`${memberText} · ${pendingText}`}\n          </span>\n        </div>\n        <div className='ml-auto flex items-center gap-2'>\n          <Button\n            variant='outline'\n            onClick={openInvited}\n            className='hidden sm:inline-flex'\n          >\n            <MailIcon />\n            Invited\n          </Button>\n          <Button onClick={openInvite}>\n            <UserRoundPlusIcon />\n            Invite people\n          </Button>\n        </div>\n      </div>\n      <div className='mx-auto flex w-full max-w-3xl flex-col gap-8 px-4 py-6 md:px-6'>\n        <section\n          aria-labelledby={pendingHeadingId}\n          className='flex flex-col gap-3'\n        >\n          <div className='flex items-baseline gap-2'>\n            <h2 id={pendingHeadingId} className='text-sm font-medium'>\n              Pending invitations\n            </h2>\n            <span className='text-muted-foreground text-xs tabular-nums'>\n              {invitations.length}\n            </span>\n          </div>\n          <AnimatedSize>\n            <div className='relative'>\n              <AnimatePresence mode='popLayout' initial={false}>\n                {hasInvitations && (\n                  <motion.div\n                    key='list'\n                    initial={{ opacity: 0 }}\n                    animate={{ opacity: 1, transition: SWITCH_IN }}\n                    exit={{ opacity: 0, transition: SWITCH_OUT }}\n                  >\n                    <InvitationList\n                      invitations={invitations}\n                      onResend={resend}\n                      onRevoke={revoke}\n                    />\n                  </motion.div>\n                )}\n                {!hasInvitations && (\n                  <motion.div\n                    key='empty'\n                    initial={{ opacity: 0 }}\n                    animate={{ opacity: 1, transition: SWITCH_IN }}\n                    exit={{ opacity: 0, transition: SWITCH_OUT }}\n                    className='hairline-border border-foreground/20 flex flex-col items-center gap-3 rounded-xl border-dashed px-4 py-10 text-center'\n                  >\n                    <div className='flex flex-col gap-1'>\n                      <p className='text-sm font-medium'>\n                        No pending invitation\n                      </p>\n                      <p className='text-muted-foreground text-[13px]'>\n                        Everyone you invited has joined or the invitation was\n                        revoked\n                      </p>\n                    </div>\n                    <Button variant='outline' onClick={openInvite}>\n                      Invite people\n                    </Button>\n                  </motion.div>\n                )}\n              </AnimatePresence>\n            </div>\n          </AnimatedSize>\n        </section>\n        <section\n          aria-labelledby={membersHeadingId}\n          className='flex flex-col gap-3'\n        >\n          <div className='flex items-baseline gap-2'>\n            <h2 id={membersHeadingId} className='text-sm font-medium'>\n              Members\n            </h2>\n            <span className='text-muted-foreground text-xs tabular-nums'>\n              {MEMBERS.length}\n            </span>\n          </div>\n          <ul className={LIST_SURFACE}>\n            {MEMBERS.map((member) => (\n              <li\n                key={member.id}\n                className='flex min-h-14 items-center gap-3 px-3 py-2.5'\n              >\n                <Avatar seed={member.name} />\n                <div className='flex min-w-0 flex-1 flex-col gap-0.5'>\n                  <p className='truncate text-[13px] font-medium'>\n                    {member.name}\n                  </p>\n                  <p className='text-muted-foreground truncate text-xs'>\n                    {member.email}\n                  </p>\n                </div>\n                <Badge variant='secondary' className='text-muted-foreground'>\n                  {ROLE_LABEL[member.role]}\n                </Badge>\n              </li>\n            ))}\n          </ul>\n        </section>\n      </div>\n      <InviteSheet\n        open={isSheetOpen}\n        onOpenChange={setIsSheetOpen}\n        tab={sheetTab}\n        onTabChange={setSheetTab}\n        teamName={TEAM_NAME}\n        members={MEMBERS}\n        invitations={invitations}\n        onSend={send}\n        onResend={resend}\n        onRevoke={revoke}\n      />\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/team-03/index.tsx"
    },
    {
      "path": "registry/ndeko/blocks/team/team-03/invite-sheet.tsx",
      "content": "'use client';\n\nimport {\n  AnimatePresence,\n  motion,\n  type Transition,\n  type Variants,\n} from 'motion/react';\nimport { useEffect, useEffectEvent, useId, useState } from 'react';\n\nimport { MotionNumber } from '@/components/core/motion-number';\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport {\n  AlertCircleIcon,\n  CheckIcon,\n  ClockIcon,\n  InfoIcon,\n  LoaderCircleIcon,\n  MailIcon,\n  UserIcon,\n} from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { AnimatedSize } from '@/registry/ndeko/ui/animated-size';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { RadioGroup, RadioGroupItem } from '@/registry/ndeko/ui/radio-group';\nimport {\n  Sheet,\n  SheetClose,\n  SheetContent,\n  SheetDescription,\n  SheetHeader,\n  SheetTitle,\n} from '@/registry/ndeko/ui/sheet';\nimport { Tabs, TabsList, TabsPanel, TabsTab } from '@/registry/ndeko/ui/tabs';\nimport { Textarea } from '@/registry/ndeko/ui/textarea';\n\nimport { ROLE_OPTIONS, type Invitation, type Member, type Role } from './data';\nimport { EmailChipsField, type ChipLook } from './email-chips-field';\nimport { InvitationList } from './invitation-list';\n\nexport type InviteTab = 'invite' | 'invited';\n\n/** What sending does to an address: a new invitation, the e-mail again for a pending one, nothing for a member or a typo. */\ntype AddressState = 'new' | 'pending' | 'member' | 'invalid';\n\ntype AddressEntry = { email: string; state: AddressState };\n\ntype SendState = 'idle' | 'sending' | 'sent';\n\ntype SummaryLine = { state: AddressState; text: string };\n\nconst EMAIL_PATTERN = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n\nconst TOKEN_SEPARATORS = /[\\s,;<>\"'()]+/;\n\nconst SENDING_MS = 800;\n\nconst SENT_MS = 700;\n\nconst INVITED_COUNT =\n  'bg-foreground/[0.06] text-muted-foreground h-5 min-w-5 items-center justify-center rounded-sm px-1.5 text-xs';\n\nconst CHIP_LOOK: Record<AddressState, ChipLook> = {\n  new: { color: 'var(--muted-foreground)', icon: null, hint: '' },\n  pending: {\n    color: 'var(--warning)',\n    icon: ClockIcon,\n    hint: 'Already invited: they get the e-mail again',\n  },\n  member: {\n    color: 'var(--muted-foreground)',\n    icon: UserIcon,\n    hint: 'Already in the team: not invited again',\n  },\n  invalid: {\n    color: 'var(--destructive)',\n    icon: AlertCircleIcon,\n    hint: 'Not a valid e-mail address',\n  },\n};\n\nconst SUMMARY_ORDER: AddressState[] = ['invalid', 'member', 'pending'];\n\nconst SWAP_TRANSITION: Transition = { duration: 0.15, ease: [0.2, 0, 0, 1] };\n\nconst TRAVEL: Transition = { type: 'spring', bounce: 0, duration: 0.3 };\n\nconst INSTANT: Transition = { duration: 0 };\n\nconst ICON_SWAP: Variants = {\n  enter: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n  visible: { opacity: 1, scale: 1, filter: 'blur(0px)' },\n  exit: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n};\n\nconst LABEL_SWAP: Variants = {\n  enter: { opacity: 0, filter: 'blur(2px)' },\n  visible: { opacity: 1, filter: 'blur(0px)' },\n  exit: { opacity: 0, filter: 'blur(2px)' },\n};\n\nconst FADE: Variants = {\n  enter: { opacity: 0 },\n  visible: { opacity: 1 },\n  exit: { opacity: 0 },\n};\n\nfunction iconSwapOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE;\n  }\n  return ICON_SWAP;\n}\n\nfunction labelSwapOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE;\n  }\n  return LABEL_SWAP;\n}\n\nfunction travelOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return INSTANT;\n  }\n  return TRAVEL;\n}\n\nfunction isInviteTab(value: unknown): value is InviteTab {\n  const isInvite = value === 'invite';\n  const isInvited = value === 'invited';\n  return isInvite || isInvited;\n}\n\nfunction isRole(value: unknown): value is Role {\n  return ROLE_OPTIONS.some((option) => option.value === value);\n}\n\n/** The addresses in what was typed or pasted; words around an address, such as names copied from a mail, are left out. */\nfunction splitAddresses(text: string) {\n  const tokens = text.split(TOKEN_SEPARATORS);\n  const holdsAnAddress = text.includes('@');\n  const addresses: string[] = [];\n  for (const token of tokens) {\n    const trimmed = token.trim();\n    const address = trimmed.toLowerCase();\n    const isEmpty = address.length === 0;\n    const isNameAround = holdsAnAddress && !address.includes('@');\n    const isRepeat = addresses.includes(address);\n    if (isEmpty || isNameAround || isRepeat) {\n      continue;\n    }\n    addresses.push(address);\n  }\n  return addresses;\n}\n\nfunction mergeAddresses(current: string[], added: string[]) {\n  const merged = [...current];\n  for (const address of added) {\n    if (!merged.includes(address)) {\n      merged.push(address);\n    }\n  }\n  return merged;\n}\n\nfunction sendLabelOf(state: SendState, count: number) {\n  if (state === 'sending') {\n    return 'Sending';\n  }\n  if (state === 'sent') {\n    return 'Sent';\n  }\n  if (count > 1) {\n    return `Send ${count} invitations`;\n  }\n  return 'Send invitation';\n}\n\nfunction summaryTextOf(state: AddressState, count: number) {\n  const isOne = count === 1;\n  if (state === 'invalid') {\n    if (isOne) {\n      return '1 address is not valid. Fix or remove it';\n    }\n    return `${count} addresses are not valid. Fix or remove them`;\n  }\n  if (state === 'member') {\n    if (isOne) {\n      return '1 person is already in the team and is skipped';\n    }\n    return `${count} people are already in the team and are skipped`;\n  }\n  if (isOne) {\n    return '1 person was already invited and gets the e-mail again';\n  }\n  return `${count} people were already invited and get the e-mail again`;\n}\n\nfunction summaryOf(entries: AddressEntry[]) {\n  const lines: SummaryLine[] = [];\n  for (const state of SUMMARY_ORDER) {\n    const count = entries.filter((entry) => entry.state === state).length;\n    if (count > 0) {\n      lines.push({ state, text: summaryTextOf(state, count) });\n    }\n  }\n  return lines;\n}\n\nfunction SendGlyph({ state }: { state: SendState }) {\n  if (state === 'sending') {\n    return <LoaderCircleIcon className='animate-spin' />;\n  }\n  if (state === 'sent') {\n    return <CheckIcon />;\n  }\n  return <MailIcon />;\n}\n\n/** The send button becomes its next state: its icon swaps, its label crossfades and its width follows. */\nfunction SendButton({\n  state,\n  count,\n  isDisabled,\n}: {\n  state: SendState;\n  count: number;\n  isDisabled: boolean;\n}) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const iconVariants = iconSwapOf(shouldReduceMotion);\n  const labelVariants = labelSwapOf(shouldReduceMotion);\n  const label = sendLabelOf(state, count);\n  const isSending = state === 'sending';\n\n  return (\n    <Button type='submit' disabled={isDisabled} aria-busy={isSending}>\n      <span className='relative flex'>\n        <AnimatePresence mode='popLayout' initial={false}>\n          <motion.span\n            key={state}\n            className='flex'\n            variants={iconVariants}\n            initial='enter'\n            animate='visible'\n            exit='exit'\n            transition={SWAP_TRANSITION}\n          >\n            <SendGlyph state={state} />\n          </motion.span>\n        </AnimatePresence>\n      </span>\n      <AnimatedSize axis='width' as='span'>\n        <span className='relative flex'>\n          <AnimatePresence mode='popLayout' initial={false}>\n            <motion.span\n              key={label}\n              className='whitespace-nowrap'\n              variants={labelVariants}\n              initial='enter'\n              animate='visible'\n              exit='exit'\n              transition={SWAP_TRANSITION}\n            >\n              {label}\n            </motion.span>\n          </AnimatePresence>\n        </span>\n      </AnimatedSize>\n    </Button>\n  );\n}\n\ntype InviteSheetProps = {\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  tab: InviteTab;\n  onTabChange: (tab: InviteTab) => void;\n  teamName: string;\n  members: Member[];\n  invitations: Invitation[];\n  onSend: (emails: string[], role: Role) => void;\n  onResend: (invitationId: string) => void;\n  onRevoke: (invitationId: string) => void;\n};\n\n/**\n * Invites people the way the invite dialog does: every address becomes a chip tinted by what sending does to it,\n * a summary says what is skipped or sent again, and sending morphs the button before the Invited tab shows the rows.\n */\nexport function InviteSheet({\n  open,\n  onOpenChange,\n  tab,\n  onTabChange,\n  teamName,\n  members,\n  invitations,\n  onSend,\n  onResend,\n  onRevoke,\n}: InviteSheetProps) {\n  const [addresses, setAddresses] = useState<string[]>([]);\n  const [queued, setQueued] = useState<AddressEntry[]>([]);\n  const [draft, setDraft] = useState('');\n  const [role, setRole] = useState<Role>('member');\n  const [note, setNote] = useState('');\n  const [sendState, setSendState] = useState<SendState>('idle');\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const roleTravel = travelOf(shouldReduceMotion);\n  const fieldId = useId();\n  const summaryId = useId();\n  const noteId = useId();\n  const roleTintId = useId();\n  const memberEmails = new Set(members.map((member) => member.email));\n  const pendingEmails = new Set(\n    invitations.map((invitation) => invitation.email)\n  );\n  const hasInvitations = invitations.length > 0;\n  const draftAddresses = splitAddresses(draft);\n  const withDraft = mergeAddresses(addresses, draftAddresses);\n  const withDraftEntries = withDraft.map(entryOf);\n  const sendable = withDraftEntries.filter(isSendable);\n  const sendCount = sendable.length;\n  const entries = addresses.map(entryOf);\n  const summary = summaryOf(entries);\n  const hasSummary = summary.length > 0;\n  const hasInvalid = summary.some((line) => line.state === 'invalid');\n  const isIdle = sendState === 'idle';\n  const isSendDisabled = sendCount === 0;\n\n  function entryOf(email: string): AddressEntry {\n    if (!EMAIL_PATTERN.test(email)) {\n      return { email, state: 'invalid' };\n    }\n    if (memberEmails.has(email)) {\n      return { email, state: 'member' };\n    }\n    if (pendingEmails.has(email)) {\n      return { email, state: 'pending' };\n    }\n    return { email, state: 'new' };\n  }\n\n  function isSendable(entry: AddressEntry) {\n    const isNew = entry.state === 'new';\n    const isPending = entry.state === 'pending';\n    return isNew || isPending;\n  }\n\n  function lookOf(email: string) {\n    const entry = entryOf(email);\n    return CHIP_LOOK[entry.state];\n  }\n\n  const deliverQueued = useEffectEvent(() => {\n    const newEntries = queued.filter((entry) => entry.state === 'new');\n    const newEmails = newEntries.map((entry) => entry.email);\n    const pendingEntries = queued.filter((entry) => entry.state === 'pending');\n    const resentEmails = pendingEntries.map((entry) => entry.email);\n    const sentEmails = queued.map((entry) => entry.email);\n    const hasNew = newEmails.length > 0;\n    if (hasNew) {\n      onSend(newEmails, role);\n    }\n    for (const invitation of invitations) {\n      const isResent = resentEmails.includes(invitation.email);\n      if (isResent) {\n        onResend(invitation.id);\n      }\n    }\n    setAddresses((previous) =>\n      previous.filter((email) => !sentEmails.includes(email))\n    );\n    setQueued([]);\n    setNote('');\n  });\n\n  const showInvited = useEffectEvent(() => {\n    onTabChange('invited');\n  });\n\n  useEffect(() => {\n    if (sendState === 'sending') {\n      const timeout = window.setTimeout(() => {\n        deliverQueued();\n        setSendState('sent');\n      }, SENDING_MS);\n      return () => window.clearTimeout(timeout);\n    }\n    if (sendState === 'sent') {\n      const timeout = window.setTimeout(() => {\n        setSendState('idle');\n        showInvited();\n      }, SENT_MS);\n      return () => window.clearTimeout(timeout);\n    }\n  }, [sendState]);\n\n  function commit(text: string) {\n    const added = splitAddresses(text);\n    setAddresses((previous) => mergeAddresses(previous, added));\n    setDraft('');\n  }\n\n  function changeDraft(nextDraft: string) {\n    setDraft(nextDraft);\n  }\n\n  function removeEmail(email: string) {\n    setAddresses((previous) => previous.filter((item) => item !== email));\n  }\n\n  function changeRole(value: unknown) {\n    if (isRole(value)) {\n      setRole(value);\n    }\n  }\n\n  function changeNote(event: React.ChangeEvent<HTMLTextAreaElement>) {\n    setNote(event.target.value);\n  }\n\n  function changeTab(value: unknown) {\n    if (isInviteTab(value)) {\n      onTabChange(value);\n    }\n  }\n\n  function showInviteTab() {\n    onTabChange('invite');\n  }\n\n  function send(event: React.FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    if (!isIdle) {\n      return;\n    }\n    setAddresses(withDraft);\n    setDraft('');\n    if (sendable.length === 0) {\n      return;\n    }\n    setQueued(sendable);\n    setSendState('sending');\n  }\n\n  return (\n    <Sheet open={open} onOpenChange={onOpenChange}>\n      <SheetContent className='bottom-auto max-h-[calc(100dvh-1rem)] max-w-md gap-0 p-0'>\n        <SheetHeader className='px-5 pt-5 pb-3'>\n          <SheetTitle>{`Invite to ${teamName}`}</SheetTitle>\n          <SheetDescription>\n            They get an e-mail with a link to join the team\n          </SheetDescription>\n        </SheetHeader>\n        <Tabs value={tab} onValueChange={changeTab} className='gap-0'>\n          <TabsList aria-label='Invitations' className='mx-5'>\n            <TabsTab value='invite'>Invite</TabsTab>\n            <TabsTab value='invited'>\n              Invited\n              <MotionNumber\n                value={invitations.length}\n                className={INVITED_COUNT}\n              />\n            </TabsTab>\n          </TabsList>\n          <AnimatedSize className='m-0' contentClassName='p-0'>\n            <TabsPanel value='invite' className='rounded-none'>\n              <form\n                onSubmit={send}\n                autoComplete='off'\n                className='flex flex-col gap-5 px-5 pt-4 pb-5'\n              >\n                <div className='flex flex-col gap-1.5'>\n                  <label htmlFor={fieldId} className='text-[13px] font-medium'>\n                    E-mail addresses\n                  </label>\n                  <EmailChipsField\n                    id={fieldId}\n                    emails={addresses}\n                    draft={draft}\n                    isInvalid={hasInvalid}\n                    describedBy={summaryId}\n                    onDraftChange={changeDraft}\n                    onCommit={commit}\n                    onRemove={removeEmail}\n                    lookOf={lookOf}\n                  />\n                  <AnimatedSize>\n                    <div\n                      id={summaryId}\n                      className='flex flex-col gap-0.5 text-xs'\n                    >\n                      <p className='text-muted-foreground flex items-center gap-1.5'>\n                        <InfoIcon className='size-3.5 shrink-0' />\n                        Press Enter or a comma after each address, or paste a\n                        list\n                      </p>\n                      {hasSummary && (\n                        <ul className='flex flex-col gap-0.5 pl-5'>\n                          {summary.map((line) => (\n                            <li\n                              key={line.state}\n                              className={cn(\n                                line.state === 'invalid' &&\n                                  'text-destructive-ink',\n                                line.state !== 'invalid' &&\n                                  'text-muted-foreground'\n                              )}\n                            >\n                              {line.text}\n                            </li>\n                          ))}\n                        </ul>\n                      )}\n                    </div>\n                  </AnimatedSize>\n                </div>\n                <fieldset className='flex flex-col gap-1.5'>\n                  <legend className='mb-1.5 text-[13px] font-medium'>\n                    Role\n                  </legend>\n                  <RadioGroup\n                    value={role}\n                    onValueChange={changeRole}\n                    className='bg-card hairline-ring ring-border gap-0 rounded-xl p-1 shadow-[0_1px_2px_rgb(0_0_0/0.04)]'\n                  >\n                    {ROLE_OPTIONS.map((option) => {\n                      const isPicked = option.value === role;\n\n                      return (\n                        <label\n                          key={option.value}\n                          className='relative flex cursor-pointer items-start gap-3 rounded-lg px-3 py-2.5'\n                        >\n                          {isPicked && (\n                            <motion.span\n                              layoutId={roleTintId}\n                              aria-hidden='true'\n                              transition={roleTravel}\n                              className='bg-primary/[0.07] absolute inset-0 rounded-lg'\n                            />\n                          )}\n                          <RadioGroupItem\n                            value={option.value}\n                            className='relative mt-0.5'\n                          />\n                          <span className='relative flex min-w-0 flex-col gap-0.5'>\n                            <span className='text-[13px] font-medium'>\n                              {option.label}\n                            </span>\n                            <span className='text-muted-foreground text-xs'>\n                              {option.line}\n                            </span>\n                          </span>\n                        </label>\n                      );\n                    })}\n                  </RadioGroup>\n                </fieldset>\n                <div className='flex flex-col gap-1.5'>\n                  <label htmlFor={noteId} className='text-[13px] font-medium'>\n                    Note\n                    <span className='text-muted-foreground font-normal'>\n                      {' '}\n                      (optional)\n                    </span>\n                  </label>\n                  <Textarea\n                    id={noteId}\n                    value={note}\n                    placeholder='Added to the invitation e-mail'\n                    onChange={changeNote}\n                  />\n                </div>\n                <div className='flex items-center justify-end gap-2'>\n                  <SheetClose render={<Button type='button' variant='ghost' />}>\n                    Cancel\n                  </SheetClose>\n                  <SendButton\n                    state={sendState}\n                    count={sendCount}\n                    isDisabled={isSendDisabled}\n                  />\n                </div>\n              </form>\n            </TabsPanel>\n            <TabsPanel value='invited' className='rounded-none'>\n              <div className='flex flex-col gap-3 px-5 pt-4 pb-5'>\n                {hasInvitations && (\n                  <InvitationList\n                    invitations={invitations}\n                    isCompact\n                    onResend={onResend}\n                    onRevoke={onRevoke}\n                  />\n                )}\n                {!hasInvitations && (\n                  <div className='hairline-border border-foreground/20 flex flex-col items-center gap-3 rounded-xl border-dashed px-4 py-8 text-center'>\n                    <p className='text-sm font-medium'>No pending invitation</p>\n                    <Button variant='outline' onClick={showInviteTab}>\n                      Invite people\n                    </Button>\n                  </div>\n                )}\n              </div>\n            </TabsPanel>\n          </AnimatedSize>\n        </Tabs>\n      </SheetContent>\n    </Sheet>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/team-03/invite-sheet.tsx"
    },
    {
      "path": "registry/ndeko/blocks/team/team-03/email-chips-field.tsx",
      "content": "'use client';\n\nimport {\n  AnimatePresence,\n  motion,\n  type Transition,\n  type Variants,\n} from 'motion/react';\nimport { useRef } from 'react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { XIcon, type Icon } from '@/registry/ndeko/lib/icons';\nimport { CONTROL_RECIPE } from '@/registry/ndeko/lib/recipes';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { Chip } from '@/registry/ndeko/ui/chip';\n\nconst SEPARATOR_KEYS = new Set(['Enter', ',', ' ', 'Tab']);\n\nconst CHIP_TRANSITION: Transition = {\n  duration: 0.15,\n  ease: [0.23, 1, 0.32, 1],\n};\n\nconst CHIP_PRESENCE: Variants = {\n  hidden: { opacity: 0, scale: 0.9 },\n  shown: { opacity: 1, scale: 1 },\n};\n\nconst CHIP_FADE: Variants = {\n  hidden: { opacity: 0 },\n  shown: { opacity: 1 },\n};\n\nexport type ChipLook = { color: string; icon: Icon | null; hint: string };\n\nconst NEUTRAL_LOOK: ChipLook = {\n  color: 'var(--muted-foreground)',\n  icon: null,\n  hint: '',\n};\n\nfunction neutralLook() {\n  return NEUTRAL_LOOK;\n}\n\nfunction chipVariantsOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return CHIP_FADE;\n  }\n  return CHIP_PRESENCE;\n}\n\ntype EmailChipsFieldProps = {\n  id: string;\n  emails: string[];\n  draft: string;\n  isInvalid: boolean;\n  describedBy?: string;\n  onDraftChange: (draft: string) => void;\n  onCommit: (text: string) => void;\n  onRemove: (email: string) => void;\n  /** Tints each chip by what sending will do with its address. */\n  lookOf?: (email: string) => ChipLook;\n};\n\n/** Addresses become chips on Enter, comma or space; a pasted list splits into chips. */\nexport function EmailChipsField({\n  id,\n  emails,\n  draft,\n  isInvalid,\n  describedBy,\n  onDraftChange,\n  onCommit,\n  onRemove,\n  lookOf = neutralLook,\n}: EmailChipsFieldProps) {\n  const inputRef = useRef<HTMLInputElement>(null);\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const chipVariants = chipVariantsOf(shouldReduceMotion);\n  const hasDraft = draft.trim().length > 0;\n  const lastEmail = emails.at(-1);\n\n  function focusInput() {\n    inputRef.current?.focus();\n  }\n\n  function changeDraft(event: React.ChangeEvent<HTMLInputElement>) {\n    onDraftChange(event.target.value);\n  }\n\n  function handleKeyDown(event: React.KeyboardEvent<HTMLInputElement>) {\n    const isSeparator = SEPARATOR_KEYS.has(event.key);\n    const commitsDraft = isSeparator && hasDraft;\n    if (commitsDraft) {\n      event.preventDefault();\n      onCommit(draft);\n      return;\n    }\n    const isBackspace = event.key === 'Backspace';\n    const removesLast = isBackspace && !hasDraft;\n    if (removesLast && lastEmail) {\n      onRemove(lastEmail);\n    }\n  }\n\n  function handlePaste(event: React.ClipboardEvent<HTMLInputElement>) {\n    const pasted = event.clipboardData.getData('text');\n    const hasSeveral = /[\\s,;]/.test(pasted.trim());\n    if (hasSeveral) {\n      event.preventDefault();\n      onCommit(pasted);\n    }\n  }\n\n  function commitOnBlur() {\n    if (hasDraft) {\n      onCommit(draft);\n    }\n  }\n\n  return (\n    <div\n      onClick={focusInput}\n      data-invalid={isInvalid || undefined}\n      className={cn(\n        CONTROL_RECIPE,\n        'flex min-h-9 cursor-text flex-wrap items-center gap-1 px-1.5 py-1',\n        'focus-within:border-foreground/30 focus-within:ring-ring/25 focus-within:ring-[3px]'\n      )}\n    >\n      <AnimatePresence initial={false}>\n        {emails.map((email) => {\n          const look = lookOf(email);\n          const ChipGlyph = look.icon;\n          const hasHint = look.hint.length > 0;\n\n          function removeEmail() {\n            onRemove(email);\n            focusInput();\n          }\n\n          return (\n            <motion.span\n              key={email}\n              layout\n              variants={chipVariants}\n              initial='hidden'\n              animate='shown'\n              exit='hidden'\n              transition={CHIP_TRANSITION}\n              className='flex'\n            >\n              <Chip\n                color={look.color}\n                title={look.hint}\n                className='h-6 max-w-56 gap-1 pr-0.5 pl-2 text-[13px]'\n              >\n                {ChipGlyph && <ChipGlyph strokeWidth={2.25} />}\n                <span className='truncate'>{email}</span>\n                {hasHint && <span className='sr-only'>{look.hint}</span>}\n                <button\n                  type='button'\n                  aria-label={`Remove ${email}`}\n                  onClick={removeEmail}\n                  className='hover:bg-foreground/10 focus-visible:ring-ring/25 flex size-5 cursor-pointer items-center justify-center rounded-[5px] outline-none focus-visible:ring-[3px]'\n                >\n                  <XIcon className='size-3' />\n                </button>\n              </Chip>\n            </motion.span>\n          );\n        })}\n      </AnimatePresence>\n      <input\n        ref={inputRef}\n        id={id}\n        type='email'\n        multiple\n        autoComplete='off'\n        value={draft}\n        aria-invalid={isInvalid}\n        aria-describedby={describedBy}\n        placeholder='name@company.com'\n        onChange={changeDraft}\n        onKeyDown={handleKeyDown}\n        onPaste={handlePaste}\n        onBlur={commitOnBlur}\n        className='placeholder:text-muted-foreground/75 h-6 min-w-40 flex-1 bg-transparent px-1 text-base outline-none md:text-[13px]'\n      />\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/team-03/email-chips-field.tsx"
    },
    {
      "path": "registry/ndeko/blocks/team/team-03/invitation-list.tsx",
      "content": "'use client';\n\nimport {\n  AnimatePresence,\n  motion,\n  type Transition,\n  type Variants,\n} from 'motion/react';\nimport { useEffect, useEffectEvent, useState } from 'react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport {\n  CheckIcon,\n  ClockIcon,\n  LoaderCircleIcon,\n  MailIcon,\n  SendIcon,\n  TrashIcon,\n} from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { AnimatedSize } from '@/registry/ndeko/ui/animated-size';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Chip } from '@/registry/ndeko/ui/chip';\n\nimport { ROLE_LABEL, type Invitation } from './data';\n\ntype ResendState = 'idle' | 'sending' | 'sent';\n\nconst PRESENCE_IN: Transition = { duration: 0.2, ease: [0.23, 1, 0.32, 1] };\n\nconst PRESENCE_OUT: Transition = { duration: 0.12, ease: [0.23, 1, 0.32, 1] };\n\n/**\n * The spring AnimatedSize resizes with. It starts from rest, so the fade leads and the freed space\n * closes after it at the pace the list follows, instead of snapping shut.\n */\nconst SIZE_SPRING: Transition = { type: 'spring', bounce: 0, duration: 0.32 };\n\nconst SWAP_TRANSITION: Transition = { duration: 0.15, ease: [0.2, 0, 0, 1] };\n\nconst SENDING_MS = 700;\n\nconst SENT_MS = 1400;\n\nconst REVOKE_ARMED_MS = 4000;\n\nconst ROW_PRESENCE: Variants = {\n  hidden: {\n    height: 0,\n    opacity: 0,\n    overflow: 'hidden',\n    transition: { ...SIZE_SPRING, opacity: PRESENCE_OUT },\n  },\n  shown: {\n    height: 'auto',\n    opacity: 1,\n    transition: { ...SIZE_SPRING, opacity: PRESENCE_IN },\n    transitionEnd: { overflow: 'visible' },\n  },\n};\n\nconst ROW_FADE: Variants = {\n  hidden: { opacity: 0, transition: PRESENCE_OUT },\n  shown: { opacity: 1, transition: PRESENCE_IN },\n};\n\nconst ICON_SWAP: Variants = {\n  enter: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n  visible: { opacity: 1, scale: 1, filter: 'blur(0px)' },\n  exit: { opacity: 0, scale: 0.6, filter: 'blur(2px)' },\n};\n\nconst LABEL_SWAP: Variants = {\n  enter: { opacity: 0, filter: 'blur(2px)' },\n  visible: { opacity: 1, filter: 'blur(0px)' },\n  exit: { opacity: 0, filter: 'blur(2px)' },\n};\n\nconst FADE: Variants = {\n  enter: { opacity: 0 },\n  visible: { opacity: 1 },\n  exit: { opacity: 0 },\n};\n\n/** One card for a list of people: its ring is the only outline, and the rows are separated by space. */\nexport const LIST_SURFACE =\n  'bg-card hairline-ring ring-border flex flex-col overflow-hidden rounded-xl py-1 shadow-[0_1px_2px_rgb(0_0_0/0.04)]';\n\nfunction rowVariantsOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return ROW_FADE;\n  }\n  return ROW_PRESENCE;\n}\n\nfunction iconSwapOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE;\n  }\n  return ICON_SWAP;\n}\n\nfunction labelSwapOf(shouldReduceMotion: boolean | null) {\n  if (shouldReduceMotion) {\n    return FADE;\n  }\n  return LABEL_SWAP;\n}\n\nfunction Swap({\n  swapKey,\n  variants,\n  className,\n  children,\n}: {\n  swapKey: string;\n  variants: Variants;\n  className?: string;\n  children: React.ReactNode;\n}) {\n  return (\n    <span className={cn('relative inline-flex items-center', className)}>\n      <AnimatePresence mode='popLayout' initial={false}>\n        <motion.span\n          key={swapKey}\n          className='inline-flex max-w-full min-w-0 items-center whitespace-nowrap'\n          variants={variants}\n          initial='enter'\n          animate='visible'\n          exit='exit'\n          transition={SWAP_TRANSITION}\n        >\n          {children}\n        </motion.span>\n      </AnimatePresence>\n    </span>\n  );\n}\n\n/** Someone invited who has not joined: an empty dashed slot with an envelope and a clock. */\nfunction PendingAvatar() {\n  return (\n    <span aria-hidden='true' className='relative inline-flex shrink-0'>\n      <span className='hairline-border border-foreground/25 text-muted-foreground flex size-8 items-center justify-center rounded-full border-dashed'>\n        <MailIcon className='size-3.5' />\n      </span>\n      <span className='bg-card absolute -right-0.5 -bottom-0.5 flex rounded-full p-px'>\n        <span className='chip-3d flex size-3.5 items-center justify-center rounded-full [--chip:var(--warning)]'>\n          <ClockIcon className='size-2' strokeWidth={2.75} />\n        </span>\n      </span>\n    </span>\n  );\n}\n\nfunction ResendGlyph({ state }: { state: ResendState }) {\n  if (state === 'sending') {\n    return <LoaderCircleIcon className='animate-spin' />;\n  }\n  if (state === 'sent') {\n    return <CheckIcon className='text-success-foreground' />;\n  }\n  return <SendIcon />;\n}\n\nfunction ResendButton({\n  email,\n  onResend,\n}: {\n  email: string;\n  onResend: () => void;\n}) {\n  const [state, setState] = useState<ResendState>('idle');\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const variants = iconSwapOf(shouldReduceMotion);\n  const isSending = state === 'sending';\n  const deliver = useEffectEvent(onResend);\n\n  useEffect(() => {\n    if (state === 'sending') {\n      const timeout = window.setTimeout(() => {\n        deliver();\n        setState('sent');\n      }, SENDING_MS);\n      return () => window.clearTimeout(timeout);\n    }\n    if (state === 'sent') {\n      const timeout = window.setTimeout(() => {\n        setState('idle');\n      }, SENT_MS);\n      return () => window.clearTimeout(timeout);\n    }\n  }, [state]);\n\n  function resend() {\n    if (state !== 'idle') {\n      return;\n    }\n    setState('sending');\n  }\n\n  return (\n    <Button\n      variant='ghost'\n      size='icon-sm'\n      aria-label={`Send the invitation to ${email} again`}\n      aria-busy={isSending}\n      title='Send again'\n      onClick={resend}\n      className='text-muted-foreground hover:text-foreground'\n    >\n      <Swap swapKey={state} variants={variants}>\n        <ResendGlyph state={state} />\n      </Swap>\n    </Button>\n  );\n}\n\n/** Revoking asks once more in place, in the destructive ink, and forgets the question after a few seconds. */\nfunction RevokeButton({\n  email,\n  onRevoke,\n}: {\n  email: string;\n  onRevoke: () => void;\n}) {\n  const [isArmed, setIsArmed] = useState(false);\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const variants = labelSwapOf(shouldReduceMotion);\n  const swapKey = String(isArmed);\n\n  useEffect(() => {\n    if (!isArmed) {\n      return;\n    }\n    const timeout = window.setTimeout(() => {\n      setIsArmed(false);\n    }, REVOKE_ARMED_MS);\n    return () => window.clearTimeout(timeout);\n  }, [isArmed]);\n\n  function press() {\n    if (isArmed) {\n      onRevoke();\n      return;\n    }\n    setIsArmed(true);\n  }\n\n  function disarm() {\n    setIsArmed(false);\n  }\n\n  let accessibleLabel = `Revoke the invitation sent to ${email}`;\n  if (isArmed) {\n    accessibleLabel = `Confirm: revoke the invitation sent to ${email}`;\n  }\n\n  return (\n    <Button\n      variant='ghost'\n      size='sm'\n      aria-label={accessibleLabel}\n      onClick={press}\n      onBlur={disarm}\n      className={cn(\n        'text-muted-foreground hover:text-destructive-ink min-w-7 px-1.5',\n        isArmed && 'bg-destructive/10 text-destructive-ink'\n      )}\n    >\n      <AnimatedSize axis='width' as='span'>\n        <Swap swapKey={swapKey} variants={variants}>\n          {isArmed && 'Revoke'}\n          {!isArmed && <TrashIcon />}\n        </Swap>\n      </AnimatedSize>\n    </Button>\n  );\n}\n\nfunction InvitationRow({\n  invitation,\n  isCompact,\n  onResend,\n  onRevoke,\n}: {\n  invitation: Invitation;\n  isCompact: boolean;\n  onResend: (invitationId: string) => void;\n  onRevoke: (invitationId: string) => void;\n}) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const lineVariants = labelSwapOf(shouldReduceMotion);\n  const roleLabel = ROLE_LABEL[invitation.role];\n  const line = `${roleLabel} · Invited by ${invitation.invitedBy} · ${invitation.sentLabel}`;\n\n  function resend() {\n    onResend(invitation.id);\n  }\n\n  function revoke() {\n    onRevoke(invitation.id);\n  }\n\n  return (\n    <div className='flex min-h-14 items-center gap-3 py-2 pr-1.5 pl-3'>\n      <PendingAvatar />\n      <div className='flex min-w-0 flex-1 flex-col gap-0.5'>\n        <p className='truncate text-[13px] leading-tight font-medium'>\n          {invitation.email}\n        </p>\n        <Swap\n          swapKey={line}\n          variants={lineVariants}\n          className='text-muted-foreground flex min-w-0 text-xs leading-tight'\n        >\n          <span className='truncate'>{line}</span>\n        </Swap>\n      </div>\n      {!isCompact && (\n        <Chip color='var(--warning)' className='hidden sm:inline-flex'>\n          <ClockIcon strokeWidth={2.25} />\n          Pending\n        </Chip>\n      )}\n      <div className='flex shrink-0 items-center'>\n        <ResendButton email={invitation.email} onResend={resend} />\n        <RevokeButton email={invitation.email} onRevoke={revoke} />\n      </div>\n    </div>\n  );\n}\n\ntype InvitationListProps = {\n  invitations: Invitation[];\n  isCompact?: boolean;\n  onResend: (invitationId: string) => void;\n  onRevoke: (invitationId: string) => void;\n};\n\n/** The pending invitations, the way the invite dialog lists them: a dashed avatar slot, the state, resend and a revoke that asks twice. */\nexport function InvitationList({\n  invitations,\n  isCompact = false,\n  onResend,\n  onRevoke,\n}: InvitationListProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const rowVariants = rowVariantsOf(shouldReduceMotion);\n\n  return (\n    <ul className={LIST_SURFACE}>\n      <AnimatePresence initial={false}>\n        {invitations.map((invitation) => (\n          <motion.li\n            key={invitation.id}\n            variants={rowVariants}\n            initial='hidden'\n            animate='shown'\n            exit='hidden'\n          >\n            <InvitationRow\n              invitation={invitation}\n              isCompact={isCompact}\n              onResend={onResend}\n              onRevoke={onRevoke}\n            />\n          </motion.li>\n        ))}\n      </AnimatePresence>\n    </ul>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/team-03/invitation-list.tsx"
    },
    {
      "path": "registry/ndeko/blocks/team/team-03/data.ts",
      "content": "export type Role = 'manager' | 'member' | 'viewer';\n\nexport type Member = {\n  id: string;\n  name: string;\n  email: string;\n  title: string;\n  role: Role;\n};\n\nexport type Invitation = {\n  id: string;\n  email: string;\n  role: Role;\n  invitedBy: string;\n  sentLabel: string;\n};\n\nexport const TEAM_NAME = 'Product';\n\nexport const CURRENT_USER_NAME = 'Amara Okafor';\n\nexport const ROLE_OPTIONS: { value: Role; label: string; line: string }[] = [\n  {\n    value: 'member',\n    label: 'Member',\n    line: 'Creates tasks, tracks time and edits the board',\n  },\n  {\n    value: 'manager',\n    label: 'Manager',\n    line: 'Also invites people and changes the team’s settings',\n  },\n  {\n    value: 'viewer',\n    label: 'Viewer',\n    line: 'Reads tasks and reports without editing them',\n  },\n];\n\nexport const ROLE_LABEL: Record<Role, string> = {\n  manager: 'Manager',\n  member: 'Member',\n  viewer: 'Viewer',\n};\n\nexport const MEMBERS: Member[] = [\n  {\n    id: 'amara',\n    name: 'Amara Okafor',\n    email: 'amara@lattice.example',\n    title: 'Product designer',\n    role: 'manager',\n  },\n  {\n    id: 'lucas',\n    name: 'Lucas Moreau',\n    email: 'lucas@lattice.example',\n    title: 'Engineering lead',\n    role: 'manager',\n  },\n  {\n    id: 'priya',\n    name: 'Priya Raman',\n    email: 'priya@lattice.example',\n    title: 'Frontend engineer',\n    role: 'member',\n  },\n  {\n    id: 'mateo',\n    name: 'Mateo Silva',\n    email: 'mateo@lattice.example',\n    title: 'Backend engineer',\n    role: 'member',\n  },\n  {\n    id: 'hana',\n    name: 'Hana Kobayashi',\n    email: 'hana@lattice.example',\n    title: 'Product manager',\n    role: 'member',\n  },\n  {\n    id: 'jonas',\n    name: 'Jonas Weber',\n    email: 'jonas@lattice.example',\n    title: 'QA engineer',\n    role: 'viewer',\n  },\n];\n\nexport const INVITATIONS: Invitation[] = [\n  {\n    id: 'invite-noor',\n    email: 'noor.haddad@lattice.example',\n    role: 'member',\n    invitedBy: 'Lucas Moreau',\n    sentLabel: 'Sent 2 days ago',\n  },\n  {\n    id: 'invite-kofi',\n    email: 'kofi.mensah@lattice.example',\n    role: 'viewer',\n    invitedBy: 'Amara Okafor',\n    sentLabel: 'Sent this morning',\n  },\n  {\n    id: 'invite-ines',\n    email: 'ines.carvalho@northfield.example',\n    role: 'member',\n    invitedBy: 'Amara Okafor',\n    sentLabel: 'Sent last week',\n  },\n];\n",
      "type": "registry:component",
      "target": "components/blocks/team-03/data.ts"
    }
  ],
  "categories": [
    "blocks",
    "team"
  ],
  "type": "registry:block"
}