{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-notifications-popover",
  "type": "registry:block",
  "title": "Notifications popover",
  "description": "Notifications in a popover from the bell: the latest grouped by day with unread dots, an access request answered in place, and the way to the full inbox.",
  "dependencies": [
    "@remixicon/react@^4.9.0"
  ],
  "registryDependencies": [
    "https://wideset.co/r/app-shell.json",
    "https://wideset.co/r/avatar.json",
    "https://wideset.co/r/block-styles.json",
    "https://wideset.co/r/breadcrumbs.json",
    "https://wideset.co/r/button.json",
    "https://wideset.co/r/divider.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/link-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/popup.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/status-badge.json",
    "https://wideset.co/r/table.json",
    "https://wideset.co/r/tabs.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/notifications-popover/bell-button.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/bell-button.tsx",
      "content": "'use client';\n\n// TODO(custom): an icon button with an unread dot; IconButton has no badge or dot.\nimport { RiNotification3Line } from '@remixicon/react';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { type ComponentPropsWithoutRef, forwardRef } from 'react';\n\ntype BellButtonProps = Omit<ComponentPropsWithoutRef<typeof IconButton>, 'icon' | 'aria-label'> & {\n  /** Anything unread: a dot on the bell, never a number. */\n  unread: boolean;\n};\n\n/**\n * The bell in the page bar. While anything is unread it carries a small dot in the brand colour\n * (the unread dot of the rows it opens), and its name says so; how many is the popover's to show.\n * It forwards its ref and props, so `Popup.Trigger asChild` can drive it.\n */\nexport const BellButton = forwardRef<HTMLButtonElement, BellButtonProps>(\n  ({ unread, ...props }, ref) => (\n    <span className=\"relative flex\">\n      <IconButton\n        ref={ref}\n        icon={RiNotification3Line}\n        variant=\"secondary\"\n        preset=\"ghost\"\n        size=\"sm\"\n        iconClassName=\"size-ws-9\"\n        aria-label={unread ? 'Notifications, some unread' : 'Notifications'}\n        {...props}\n      />\n      {unread && (\n        <span\n          aria-hidden=\"true\"\n          className=\"bg-ws-dynamic-primary-default rounded-ws-control-full size-ws-4 top-ws-4 right-ws-4 pointer-events-none absolute\"\n        />\n      )}\n    </span>\n  ),\n);\nBellButton.displayName = 'BellButton';\n"
    },
    {
      "path": "src/blocks/notifications-popover/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/brand-mark.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\n\nconst TILE =\n  'M0 16C0 8.45753 0 4.68629 2.34315 2.34315C4.68629 0 8.45753 0 16 0C23.5425 0 27.3137 0 29.6569 2.34315C32 4.68629 32 8.45753 32 16C32 23.5425 32 27.3137 29.6569 29.6569C27.3137 32 23.5425 32 16 32C8.45753 32 4.68629 32 2.34315 29.6569C0 27.3137 0 23.5425 0 16Z';\n\n/**\n * Orbit's mark: a planet and its ring on the inverse tile, so it inverts in dark mode. It takes\n * the size of its place (32px in a sidebar, 36px in a larger switcher). Decorative beside the\n * product's name; give it a `label` when it stands alone.\n */\nexport function BrandMark({ className, label }: { className?: string; label?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 32 32\"\n      role={label ? 'img' : undefined}\n      aria-label={label}\n      aria-hidden={label ? undefined : true}\n      className={cn('size-ws-14 shrink-0', className)}\n    >\n      <path d={TILE} className=\"fill-(--ws-static-fill-inverse-background)\" />\n      <ellipse\n        cx=\"16\"\n        cy=\"16\"\n        rx=\"10.5\"\n        ry=\"4\"\n        transform=\"rotate(-28 16 16)\"\n        strokeWidth=\"1.75\"\n        className=\"fill-none stroke-(--ws-static-text-inverse-strong)\"\n      />\n      <circle cx=\"16\" cy=\"16\" r=\"4.75\" className=\"fill-(--ws-static-text-inverse-strong)\" />\n    </svg>\n  );\n}\n"
    },
    {
      "path": "src/blocks/notifications-popover/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiCalendarScheduleLine,\n  RiContactsBook3Line,\n  RiHandCoinLine,\n  RiHome5Fill,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\n\n/*\n  Maya's Tuesday afternoon in Orbit, Home open behind the notifications. The latest seven, from\n  this morning back to yesterday: three unread, one of them Tom asking for a report Maya owns.\n*/\n\n/** The product is Orbit; the workspace is Lumen Studio. */\nexport const product = { name: 'Orbit' };\nexport const workspace = { name: 'Lumen Studio', initials: 'LS' };\nexport const account = {\n  name: 'Maya Okafor',\n  firstName: 'Maya',\n  email: 'maya@lumenstudio.co',\n  initials: 'MO',\n};\n\n/** The sample is frozen on this day. */\nexport const TODAY = '2026-11-10';\n\nexport type NavLink = {\n  id: string;\n  label: string;\n  icon: RemixiconComponentType;\n  /** The icon while the page is open (a line icon swaps for its fill). */\n  activeIcon?: RemixiconComponentType;\n};\n\nexport const mainLinks: NavLink[] = [\n  { id: 'home', label: 'Home', icon: RiHome5Line, activeIcon: RiHome5Fill },\n  { id: 'inbox', label: 'Inbox', icon: RiInbox2Line },\n  { id: 'customers', label: 'Customers', icon: RiContactsBook3Line },\n  { id: 'deals', label: 'Deals', icon: RiHandCoinLine },\n  { id: 'revenue', label: 'Revenue', icon: RiLineChartLine },\n  { id: 'reports', label: 'Reports', icon: RiPieChart2Line },\n];\n\nexport const settingsLinks: NavLink[] = [\n  { id: 'general', label: 'General', icon: RiSettings3Line },\n  { id: 'members', label: 'Members', icon: RiTeamLine },\n  { id: 'billing', label: 'Billing', icon: RiBankCardLine },\n  { id: 'integrations', label: 'Integrations', icon: RiPlugLine },\n  { id: 'api-keys', label: 'API keys', icon: RiKey2Line },\n];\n\nexport const helpLink: NavLink = { id: 'help', label: 'Help and support', icon: RiQuestionLine };\n\nexport type Deal = {\n  id: string;\n  customer: string;\n  stage: 'Discovery' | 'Proposal' | 'Negotiation' | 'Commit';\n  amount: number;\n  nextStep: string;\n};\n\n/** Maya's open deals whose next step falls this week, soonest first. */\nexport const deals: Deal[] = [\n  {\n    id: 'halcyon',\n    customer: 'Halcyon Freight',\n    stage: 'Negotiation',\n    amount: 24_000,\n    nextStep: 'Send the revised quote today',\n  },\n  {\n    id: 'northwind',\n    customer: 'Northwind Health',\n    stage: 'Proposal',\n    amount: 18_500,\n    nextStep: 'Walk through the pricing this afternoon',\n  },\n  {\n    id: 'kestrel',\n    customer: 'Kestrel Analytics',\n    stage: 'Discovery',\n    amount: 9_600,\n    nextStep: 'Run the product demo on Thursday',\n  },\n  {\n    id: 'cobalt',\n    customer: 'Cobalt Security',\n    stage: 'Commit',\n    amount: 21_000,\n    nextStep: 'Get the order form signed by Friday',\n  },\n];\n\nexport type Meeting = {\n  id: string;\n  title: string;\n  customer: string;\n  /** When it starts, as a local date and time. */\n  start: string;\n  minutes: number;\n};\n\n/** The next meetings on Maya's calendar. */\nexport const meetings: Meeting[] = [\n  {\n    id: 'northwind',\n    title: 'Pricing review',\n    customer: 'Northwind Health',\n    start: '2026-11-10T16:00',\n    minutes: 30,\n  },\n  {\n    id: 'juniper',\n    title: 'Contract walkthrough',\n    customer: 'Juniper Legal',\n    start: '2026-11-11T10:00',\n    minutes: 60,\n  },\n  {\n    id: 'kestrel',\n    title: 'Product demo',\n    customer: 'Kestrel Analytics',\n    start: '2026-11-12T15:00',\n    minutes: 45,\n  },\n];\n\n/** The sample's clock: Tuesday, November 10, 3:40 PM. */\nexport const NOW = '2026-11-10T15:40';\n\nexport type Person = { name: string; initials: string };\n\n/** What a request asks for, and what Maya answered. */\nexport type AccessRequest = { status: 'pending' | 'approved' | 'declined' };\n\nexport type Notification = {\n  id: string;\n  /** Who did it; `null` when Orbit itself reports it, drawn with `icon`. */\n  actor: Person | null;\n  icon?: RemixiconComponentType;\n  /**\n   * The sentence, as actor + action + target + trail: \"Jonas Weber\" \"mentioned you in\" \"Halcyon\n   * Freight\". The actor and the target are the names the eye looks for.\n   */\n  action: string;\n  target: string;\n  trail?: string;\n  /** Mentions have their own tab. */\n  mention?: boolean;\n  /** Local date and time. */\n  at: string;\n  read: boolean;\n  /** An access request, answered in place. */\n  request?: AccessRequest;\n};\n\nconst jonas = { name: 'Jonas Weber', initials: 'JW' };\nconst tom = { name: 'Tom Becker', initials: 'TB' };\nconst priya = { name: 'Priya Raman', initials: 'PR' };\nconst elena = { name: 'Elena Silva', initials: 'ES' };\nconst nina = { name: 'Nina Alvarez', initials: 'NA' };\n\n/** The latest notifications, newest first. */\nexport const notifications: Notification[] = [\n  {\n    id: 'halcyon-mention',\n    actor: jonas,\n    action: 'mentioned you in',\n    target: 'Halcyon Freight',\n    mention: true,\n    at: '2026-11-10T15:28',\n    read: false,\n  },\n  {\n    id: 'pipeline-access',\n    actor: tom,\n    action: 'asked to view',\n    target: 'Q4 pipeline review',\n    at: '2026-11-10T14:52',\n    read: false,\n    request: { status: 'pending' },\n  },\n  {\n    id: 'northwind-stage',\n    actor: priya,\n    action: 'moved',\n    target: 'Northwind Health',\n    trail: 'to Proposal',\n    at: '2026-11-10T13:10',\n    read: false,\n  },\n  {\n    id: 'tidewater-payment',\n    actor: null,\n    icon: RiBankCardLine,\n    action: 'Payment received from',\n    target: 'Tidewater Energy',\n    at: '2026-11-10T09:05',\n    read: true,\n  },\n  {\n    id: 'kestrel-mention',\n    actor: elena,\n    action: 'mentioned you in',\n    target: 'Kestrel Analytics',\n    mention: true,\n    at: '2026-11-09T17:24',\n    read: true,\n  },\n  {\n    id: 'forecast-shared',\n    actor: nina,\n    action: 'shared',\n    target: 'Q4 forecast',\n    trail: 'with you',\n    at: '2026-11-09T09:15',\n    read: true,\n  },\n  {\n    id: 'juniper-renewal',\n    actor: null,\n    icon: RiCalendarScheduleLine,\n    action: '',\n    target: 'Juniper Legal',\n    trail: 'renews in 30 days',\n    at: '2026-11-09T08:00',\n    read: true,\n  },\n];\n"
    },
    {
      "path": "src/blocks/notifications-popover/deals-table.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/deals-table.tsx",
      "content": "'use client';\n\n// TODO(custom): whole-row link done with a stretched <a>; Table has no row link.\nimport { StatusBadge } from '@/components/ui/wideset/status-badge/StatusBadge';\nimport { type StatusBadgeProps } from '@/components/ui/wideset/status-badge/StatusBadge.types';\nimport { Table } from '@/components/ui/wideset/table/Table';\nimport { useId } from 'react';\n\nimport type { Deal } from './data';\nimport { formatUsd } from './format';\n\n/** A stage in the colour of what it says about the deal, the same in every block. */\nconst STAGE_COLOR: Record<Deal['stage'], StatusBadgeProps['color']> = {\n  Discovery: 'neutral',\n  Proposal: 'info',\n  Negotiation: 'notice',\n  Commit: 'positive',\n};\n\n/**\n * The deals whose next step falls this week, soonest first: who, where the deal stands, what to\n * do next, and what it is worth. A row opens its deal from anywhere on it.\n */\nexport function DealsTable({ deals }: { deals: Deal[] }) {\n  const titleId = useId();\n\n  return (\n    <section aria-labelledby={titleId} className=\"gap-ws-9 flex flex-col\">\n      <h2 id={titleId} className=\"typography-label-strong-md text-ws-static-strong\">\n        Deals to move this week\n      </h2>\n      {/* Auto layout: the short columns keep to one line and their width, the next step takes\n          the rest. */}\n      <Table interactive aria-labelledby={titleId} className=\"w-full\">\n        <Table.Head>\n          <Table.Row>\n            <Table.Header className=\"whitespace-nowrap\">Customer</Table.Header>\n            <Table.Header>Stage</Table.Header>\n            <Table.Header className=\"w-full\">Next step</Table.Header>\n            <Table.Header align=\"right\">Amount</Table.Header>\n          </Table.Row>\n        </Table.Head>\n        <Table.Body>\n          {deals.map((deal) => (\n            // The customer's link stretches over the whole row: one target, the hover on every\n            // cell.\n            <Table.Row key={deal.id} className=\"relative\">\n              <Table.Cell className=\"whitespace-nowrap\">\n                <a\n                  href={`#deal-${deal.id}`}\n                  className=\"text-ws-static-strong focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default after:inset-ws-0 after:absolute\"\n                >\n                  {deal.customer}\n                </a>\n              </Table.Cell>\n              <Table.Cell>\n                <StatusBadge color={STAGE_COLOR[deal.stage]}>{deal.stage}</StatusBadge>\n              </Table.Cell>\n              <Table.Cell>{deal.nextStep}</Table.Cell>\n              <Table.Cell align=\"right\">\n                <span className=\"text-ws-static-strong tabular-nums\">{formatUsd(deal.amount)}</span>\n              </Table.Cell>\n            </Table.Row>\n          ))}\n        </Table.Body>\n      </Table>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/notifications-popover/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/format.ts",
      "content": "// One locale and currency for the whole screen; swap them for the user's.\nconst LOCALE = 'en-US';\n\nconst usd = new Intl.NumberFormat(LOCALE, {\n  style: 'currency',\n  currency: 'USD',\n  maximumFractionDigits: 0,\n});\n// Days are calendar days (`2026-11-10`), parsed as UTC midnight: format them in UTC too.\nconst longDay = new Intl.DateTimeFormat(LOCALE, {\n  weekday: 'long',\n  month: 'long',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\nconst shortDay = new Intl.DateTimeFormat(LOCALE, {\n  weekday: 'short',\n  month: 'short',\n  day: 'numeric',\n  timeZone: 'UTC',\n});\n// Times are local (`2026-11-10T11:30`, no zone): parsed and formatted in the reader's zone, so\n// the clock on screen is the one in the data.\nconst time = new Intl.DateTimeFormat(LOCALE, { hour: 'numeric', minute: '2-digit' });\nconst relative = new Intl.RelativeTimeFormat(LOCALE, { numeric: 'auto' });\n\nconst DAY = 86_400_000;\n\nexport const formatUsd = (value: number) => usd.format(value);\n/** Tuesday, November 10. */\nexport const formatLongDay = (iso: string) => longDay.format(new Date(iso));\n/** 11:30 AM. */\nexport const formatTime = (iso: string) => time.format(new Date(iso));\n\n/** A day as the week reads it: `Today`, `Tomorrow`, then `Thu, Nov 12`. */\nexport function formatDay(iso: string, today: string) {\n  const day = iso.slice(0, 10);\n  const away = (Date.parse(day) - Date.parse(today)) / DAY;\n  if (away < 0 || away > 1) return shortDay.format(new Date(day));\n  const text = relative.format(away, 'day');\n  return text.charAt(0).toUpperCase() + text.slice(1);\n}\n\n/** The popover's day groups, newest first. */\nexport const GROUPS = ['Today', 'Yesterday', 'Earlier'] as const;\nexport type Group = (typeof GROUPS)[number];\n\n/** Which day group a local date and time falls in, counted from `today`. */\nexport function groupOf(iso: string, today: string): Group {\n  const away = (Date.parse(today) - Date.parse(iso.slice(0, 10))) / DAY;\n  return away <= 0 ? 'Today' : away === 1 ? 'Yesterday' : 'Earlier';\n}\n"
    },
    {
      "path": "src/blocks/notifications-popover/home-page.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/home-page.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\n\nimport { account, deals, meetings, TODAY } from './data';\nimport { DealsTable } from './deals-table';\nimport { formatLongDay } from './format';\nimport { UpcomingMeetings } from './upcoming-meetings';\n\n/** One column of the page: the header and the body share its edges. */\nconst COLUMN = 'px-ws-14 mx-auto w-full max-w-[80rem]';\n\n/**\n * Home, drawn quietly: the page the overlay opens over. The greeting, the deals to move this week\n * and what is coming up, so the screen behind is real without competing with what is open on it.\n */\nexport function HomePage() {\n  return (\n    // The page scrolls inside the card, so the card's corners stay put.\n    <div className=\"ws-scrollbar min-h-0 flex-1 overflow-y-auto\">\n      <div className={cn(COLUMN, 'gap-ws-12 pt-ws-14 pb-ws-16 flex flex-col')}>\n        <header className=\"gap-ws-2 flex flex-col\">\n          <h1 className=\"typography-title-md text-ws-static-strong\">\n            Good afternoon, {account.firstName}\n          </h1>\n          <p className=\"typography-body-md text-ws-static-subtle\">\n            {formatLongDay(TODAY)}. Your deals and meetings for the week.\n          </p>\n        </header>\n\n        <div className=\"gap-ws-16 grid grid-cols-1 items-start lg:grid-cols-[minmax(0,1fr)_18rem]\">\n          <DealsTable deals={deals} />\n          <UpcomingMeetings meetings={meetings} today={TODAY} />\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/notifications-popover/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { RiSideBarLine } from '@remixicon/react';\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\nimport { Breadcrumbs } from '@/components/ui/wideset/breadcrumbs/Breadcrumbs';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { useId, useState } from 'react';\n\nimport { type Notification, notifications as notificationsAtStart, TODAY } from './data';\nimport { HomePage } from './home-page';\nimport { NotificationsPopover } from './notifications-popover';\nimport { WorkspaceSidebar } from './sidebar';\n\n/**\n * Notifications popover (panel over Home, Inset direction): the bell at the right of the page bar,\n * its popover open on load. Opening a notification reads it and closes the popover, as going to\n * it would; answering the access request resolves it in place; when nothing is left unread the\n * bell loses its dot.\n */\nexport default function NotificationsPopoverBlock() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n  const [open, setOpen] = useState(true);\n  const [notifications, setNotifications] = useState(notificationsAtStart);\n\n  const update = (id: string, change: Partial<Notification>) =>\n    setNotifications((current) => current.map((n) => (n.id === id ? { ...n, ...change } : n)));\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <WorkspaceSidebar id={sidebarId} collapsed={collapsed} onCollapsedChange={setCollapsed} />\n      <AppShell.Main>\n        <div className=\"h-ws-18 border-ws-static-base flex shrink-0 items-center border-b\">\n          {/* The bar belongs to the surround: it runs edge to edge. The sidebar's toggle is pulled\n              left so its glyph, not its box, sits 20px from the edge; the crumbs follow it, the\n              bell is pulled right the same way. */}\n          <div className=\"gap-ws-5 px-ws-11 flex w-full items-center\">\n            <IconButton\n              icon={RiSideBarLine}\n              variant=\"secondary\"\n              preset=\"ghost\"\n              size=\"sm\"\n              iconClassName=\"text-ws-static-subtle size-ws-9\"\n              aria-label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n              aria-expanded={!collapsed}\n              aria-controls={sidebarId}\n              onClick={() => setCollapsed(!collapsed)}\n              className=\"-ml-ws-5\"\n            />\n            <Breadcrumbs separator=\"arrow\">\n              <Breadcrumbs.Item>Home</Breadcrumbs.Item>\n            </Breadcrumbs>\n            <div className=\"-mr-ws-5 ml-auto\">\n              <NotificationsPopover\n                notifications={notifications}\n                today={TODAY}\n                open={open}\n                onOpenChange={setOpen}\n                onOpen={(id) => {\n                  update(id, { read: true });\n                  setOpen(false);\n                }}\n                onAnswer={(id, approved) =>\n                  update(id, {\n                    read: true,\n                    request: { status: approved ? 'approved' : 'declined' },\n                  })\n                }\n                onMarkAllRead={() =>\n                  setNotifications((current) => current.map((n) => ({ ...n, read: true })))\n                }\n              />\n            </div>\n          </div>\n        </div>\n\n        <HomePage />\n      </AppShell.Main>\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/notifications-popover/notification-item.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/notification-item.tsx",
      "content": "'use client';\n\n// TODO(custom): notification row (actor or icon, one sentence with the names strong, the time, an unread dot, inline actions for a request); ListItem is a one-line menu row.\nimport { RiCheckLine, RiCloseLine } from '@remixicon/react';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { cn } from '@/lib/wideset/utils';\nimport type { ReactNode } from 'react';\n\nimport type { Notification } from './data';\nimport { formatTime } from './format';\nimport { PersonAvatar } from './person-avatar';\n\n/** The names the eye looks for: who did it and what it is about. */\nconst NAME = 'text-ws-static-strong font-ws-medium';\n\nconst ROW = 'gap-ws-7 px-ws-7 py-ws-6 rounded-ws-control-lg flex w-full items-start text-left';\n\n/** The sentence: actor, action, target, trail, with the two names in strong text. */\nfunction Sentence({ notification }: { notification: Notification }) {\n  const { actor, action, target, trail } = notification;\n  return (\n    <>\n      {actor && <span className={NAME}>{actor.name}</span>}\n      {actor && ' '}\n      {action && `${action} `}\n      <span className={NAME}>{target}</span>\n      {trail && ` ${trail}`}\n    </>\n  );\n}\n\n/** The row's inside: who, the sentence and its time (and what to do about it), the unread dot. */\nfunction Body({ notification, children }: { notification: Notification; children?: ReactNode }) {\n  const { actor, icon: Icon, at, read } = notification;\n  return (\n    <>\n      {actor ? (\n        <PersonAvatar name={actor.name} initials={actor.initials} aria-hidden />\n      ) : (\n        <Avatar icon={Icon && <Icon />} aria-hidden />\n      )}\n      <span className=\"gap-ws-2 flex min-w-0 flex-1 flex-col\">\n        <span className=\"typography-body-md text-ws-static-base\">\n          <Sentence notification={notification} />\n        </span>\n        <time dateTime={at} className=\"typography-caption-md text-ws-static-subtle tabular-nums\">\n          {formatTime(at)}\n        </time>\n        {children}\n      </span>\n      {/* The dot sits on the sentence's first line; the column stays when it goes, so text keeps\n          its width. */}\n      <span className=\"mt-ws-4 w-ws-4 flex shrink-0 justify-center\">\n        {!read && (\n          <span className=\"bg-ws-dynamic-primary-default rounded-ws-control-full size-ws-4\">\n            <span className=\"sr-only\">Unread</span>\n          </span>\n        )}\n      </span>\n    </>\n  );\n}\n\ntype NotificationItemProps = {\n  notification: Notification;\n  /** Opening a notification reads it (and, in an app, goes to what it is about). */\n  onOpen: () => void;\n  /** Answering a request; only a request has this. */\n  onAnswer: (approved: boolean) => void;\n};\n\n/**\n * One notification: a person's avatar, or Orbit's icon for what it reports, the sentence and the\n * time under it, a dot on the right while unread. An ordinary row is one target across its width.\n * An access request is not: its Approve and Decline are the targets, and once answered they give\n * way to a quiet line saying what was decided.\n */\nexport function NotificationItem({ notification, onOpen, onAnswer }: NotificationItemProps) {\n  const { request, actor } = notification;\n\n  if (!request) {\n    return (\n      <button\n        type=\"button\"\n        onClick={onOpen}\n        className={cn(\n          ROW,\n          'hover:bg-ws-static-alpha-subtle focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default focus-visible:-outline-offset-2',\n        )}\n      >\n        <Body notification={notification} />\n      </button>\n    );\n  }\n\n  return (\n    <div className={ROW}>\n      <Body notification={notification}>\n        {request.status === 'pending' ? (\n          <span className=\"gap-ws-5 pt-ws-5 flex\">\n            <Button size=\"sm\" onClick={() => onAnswer(true)}>\n              Approve\n            </Button>\n            <Button size=\"sm\" variant=\"secondary\" preset=\"border\" onClick={() => onAnswer(false)}>\n              Decline\n            </Button>\n          </span>\n        ) : (\n          <span\n            role=\"status\"\n            className=\"gap-ws-3 pt-ws-3 typography-body-md text-ws-static-subtle flex items-center\"\n          >\n            {request.status === 'approved' ? (\n              <>\n                <RiCheckLine aria-hidden=\"true\" className=\"size-ws-9 shrink-0\" />\n                {`Approved. ${actor?.name.split(' ')[0]} can view it now.`}\n              </>\n            ) : (\n              <>\n                <RiCloseLine aria-hidden=\"true\" className=\"size-ws-9 shrink-0\" />\n                Declined\n              </>\n            )}\n          </span>\n        )}\n      </Body>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/notifications-popover/notifications-popover.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/notifications-popover.tsx",
      "content": "'use client';\n\nimport { RiCheckDoubleLine, RiSettings3Line } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { LinkButton } from '@/components/ui/wideset/button/LinkButton';\nimport { Popup } from '@/components/ui/wideset/popup/Popup';\nimport { Tabs } from '@/components/ui/wideset/tabs/Tabs';\nimport { useState } from 'react';\n\nimport { BellButton } from './bell-button';\nimport type { Notification } from './data';\nimport { groupOf, GROUPS } from './format';\nimport { NotificationItem } from './notification-item';\n\ntype Tab = 'all' | 'mentions';\n\nconst TABS: { value: Tab; label: string; includes: (n: Notification) => boolean }[] = [\n  { value: 'all', label: 'All', includes: () => true },\n  { value: 'mentions', label: 'Mentions', includes: (n) => n.mention === true },\n];\n\ntype NotificationsPopoverProps = {\n  notifications: Notification[];\n  today: string;\n  open: boolean;\n  onOpenChange: (open: boolean) => void;\n  onOpen: (id: string) => void;\n  onAnswer: (id: string, approved: boolean) => void;\n  onMarkAllRead: () => void;\n};\n\n/**\n * The bell and what it opens: the latest notifications in a popover under the page bar, so the\n * page stays in view. A header with the title, one bulk action and the settings; tabs without\n * counts; the notifications grouped by day; a footer that leads to the full inbox. It informs and\n * lets one request be answered in place, so it has no footer of buttons.\n */\nexport function NotificationsPopover({\n  notifications,\n  today,\n  open,\n  onOpenChange,\n  onOpen,\n  onAnswer,\n  onMarkAllRead,\n}: NotificationsPopoverProps) {\n  const [tab, setTab] = useState<Tab>('all');\n  const allRead = notifications.every((n) => n.read);\n\n  return (\n    <Popup open={open} onOpenChange={onOpenChange}>\n      <Popup.Trigger asChild>\n        <BellButton unread={!allRead} />\n      </Popup.Trigger>\n      <Popup.Container\n        side=\"bottom\"\n        align=\"end\"\n        collisionPadding={12}\n        // Focus the popover itself, not its first button: Tab and the tabs' arrows start from\n        // there, and nothing looks pressed before anything is.\n        onOpenAutoFocus={(event) => {\n          event.preventDefault();\n          (event.currentTarget as HTMLElement).focus();\n        }}\n        className=\"ws-block-utility max-h-[calc(100dvh-6rem)] w-[26rem]\"\n      >\n        <Tabs\n          value={tab}\n          onValueChange={(value) => setTab(value as Tab)}\n          divider={false}\n          className=\"flex min-h-0 flex-1 flex-col\"\n        >\n          {/* The tabs' line is the header's own, edge to edge. */}\n          <div className=\"border-ws-static-base pt-ws-9 px-ws-11 gap-ws-5 flex flex-col border-b\">\n            <div className=\"gap-ws-5 flex items-center justify-between\">\n              <Popup.Title>Notifications</Popup.Title>\n              <div className=\"gap-ws-3 -mr-ws-5 flex items-center\">\n                <Button\n                  size=\"sm\"\n                  variant=\"secondary\"\n                  preset=\"ghost\"\n                  disabled={allRead}\n                  onClick={onMarkAllRead}\n                >\n                  <Button.Icon icon={RiCheckDoubleLine} />\n                  Mark all as read\n                </Button>\n                <IconButton\n                  icon={RiSettings3Line}\n                  variant=\"secondary\"\n                  preset=\"ghost\"\n                  size=\"sm\"\n                  aria-label=\"Notification settings\"\n                />\n              </div>\n            </div>\n            <Tabs.List aria-label=\"Notifications\">\n              {TABS.map(({ value, label }) => (\n                <Tabs.Item key={value} value={value}>\n                  <Tabs.Label>{label}</Tabs.Label>\n                </Tabs.Item>\n              ))}\n            </Tabs.List>\n          </div>\n\n          {TABS.map(({ value, includes }) => {\n            const shown = notifications.filter(includes);\n            return (\n              <Tabs.Content key={value} value={value} className=\"flex min-h-0 flex-1 flex-col\">\n                <Popup.Content contentClassName=\"px-ws-5 pt-ws-3 pb-ws-5\">\n                  {shown.length === 0 ? (\n                    <p\n                      role=\"status\"\n                      className=\"px-ws-7 py-ws-12 typography-body-md text-ws-static-subtle text-center\"\n                    >\n                      No mentions yet. When someone writes your name in a comment, it shows up here.\n                    </p>\n                  ) : (\n                    GROUPS.map((group) => {\n                      const items = shown.filter((n) => groupOf(n.at, today) === group);\n                      if (items.length === 0) return null;\n                      return (\n                        <section key={group} aria-label={group}>\n                          <h3 className=\"px-ws-7 pt-ws-7 pb-ws-3 typography-label-sm text-ws-static-subtle\">\n                            {group}\n                          </h3>\n                          <ul className=\"flex flex-col\">\n                            {items.map((notification) => (\n                              <li key={notification.id}>\n                                <NotificationItem\n                                  notification={notification}\n                                  onOpen={() => onOpen(notification.id)}\n                                  onAnswer={(approved) => onAnswer(notification.id, approved)}\n                                />\n                              </li>\n                            ))}\n                          </ul>\n                        </section>\n                      );\n                    })\n                  )}\n                </Popup.Content>\n              </Tabs.Content>\n            );\n          })}\n        </Tabs>\n\n        <div className=\"border-ws-static-base px-ws-11 py-ws-7 flex justify-center border-t\">\n          <LinkButton href=\"#inbox\">View all notifications</LinkButton>\n        </div>\n      </Popup.Container>\n    </Popup>\n  );\n}\n"
    },
    {
      "path": "src/blocks/notifications-popover/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/people.assets.ts",
      "content": "// Portraits of the sample people as small JPEG data URLs (a block ships only .ts and .tsx).\n// Exported from the Wideset Core Figma file by people.cjs: do not edit by hand.\n\n/** A person’s photo by name. People who are not here show their initials. */\nexport const PHOTOS: Record<string, string | undefined> = {\n  'Maya Okafor':\n    'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAQDAwQDAwQEBAQFBQQFBwsHBwYGBw4KCggLEA4RERAOEA8SFBoWEhMYEw8QFh8XGBsbHR0dERYgIh8cIhocHRz/2wBDAQUFBQcGBw0HBw0cEhASHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBz/wAARCABgAGADASIAAhEBAxEB/8QAHQAAAAcBAQEAAAAAAAAAAAAAAgMEBQYHCAEACf/EADUQAAEDAwMBBgUDAgcAAAAAAAECAwQABREGEiEHEzFBUWGBCBQicaEVMpHB0SQzQkNTseH/xAAbAQACAwEBAQAAAAAAAAAAAAADBAACBQYHAf/EAC0RAAIBAwID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6NS2hxmT3nXDvFR9o86tTU8pK1tQ0EHdO+sD6D9/lUZmR/SVoZ6YJPyodj9c4TthiP8Apr3/AIWigjswvdv8IABZAxdJoU0r0WM8W1LKcpODU20dGLmqYCLZ3oq1b2E54EDr4YOKnGv9nV4scS5xosbtoM94LS6gZW2c5/v31MNjezB3TzMm6TlBTz7Q7MeG8QT/AH76K1eLxvpTJmuSLAduZ6KkNIY5AANOd/pW0lJjwY5J7yS2SfHKhWrqyLjsJIHD+mfuP3rduZ7JqO37TjY+WDWxfWu2tkhPUJCx8ONDOEa40WLQybFwafZ2n3fsqY1B49G9voT+mq//2Q==',\n};\n"
    },
    {
      "path": "src/blocks/notifications-popover/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/person-avatar.tsx",
      "content": "'use client';\n\nimport type { AvatarProps } from '@/components/ui/wideset/avatar/Avatar.types';\nimport { Avatar } from '@/components/ui/wideset/avatar/Avatar';\n\nimport { PHOTOS } from './people.assets';\n\ntype PersonAvatarProps = Pick<\n  AvatarProps,\n  'size' | 'shape' | 'status' | 'color' | 'className' | 'title' | 'aria-hidden' | 'aria-label'\n> & {\n  /** The person's full name: the key their photo is filed under. */\n  name: string;\n  initials: string;\n  /** Leave empty beside the person's name; pass the name where the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when the sample people have one, otherwise their initials in\n * their colour. A real product mixes the two, so every place the block draws a person asks here\n * and the choice is made once. The initials stay as the fallback if the image fails to load.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...props }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...props} />\n  ) : (\n    <Avatar initials={initials} color={color} {...props} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/notifications-popover/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/sidebar.tsx",
      "content": "'use client';\n\n// TODO(custom): workspace switcher and account menu are composed by hand.\nimport {\n  RiAddLine,\n  RiArrowDownSLine,\n  RiLogoutBoxRLine,\n  RiSearchLine,\n  RiSettingsLine,\n} from '@remixicon/react';\nimport { Divider } from '@/components/ui/wideset/divider/Divider';\nimport { DropdownMenu } from '@/components/ui/wideset/dropdown/DropdownMenu';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { ListItem } from '@/components/ui/wideset/list-item/ListItem';\nimport { Sidebar } from '@/components/ui/wideset/sidebar/Sidebar';\nimport { type SidebarProps } from '@/components/ui/wideset/sidebar/Sidebar.types';\nimport { TextInput } from '@/components/ui/wideset/text-input/TextInput';\nimport { useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport {\n  account,\n  helpLink,\n  mainLinks,\n  type NavLink,\n  product,\n  settingsLinks,\n  workspace,\n} from './data';\nimport { PersonAvatar } from './person-avatar';\n\n/**\n * The workspace sidebar: switcher, search, the app's pages, settings and the signed-in account.\n * Its toggle sits in the page bar, so the screen holds `collapsed` and passes it down; collapsed,\n * it keeps the mark, the page icons and the avatar.\n */\nexport function WorkspaceSidebar(\n  props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>,\n) {\n  const [active, setActive] = useState('home');\n\n  const link = ({ id, label, icon, activeIcon }: NavLink) => (\n    <Sidebar.Item\n      key={id}\n      href={`#${id}`}\n      icon={active === id ? (activeIcon ?? icon) : icon}\n      label={label}\n      active={active === id}\n      onClick={() => setActive(id)}\n    />\n  );\n\n  const nav = (\n    <nav aria-label=\"Workspace\" className=\"gap-ws-9 flex flex-col\">\n      <div className=\"flex flex-col\">{mainLinks.map(link)}</div>\n      <Divider weight=\"thin\" />\n      <div role=\"group\" aria-labelledby=\"sidebar-settings\" className=\"gap-ws-2 flex flex-col\">\n        <Sidebar.SectionHeader id=\"sidebar-settings\">Settings</Sidebar.SectionHeader>\n        {settingsLinks.map(link)}\n      </div>\n    </nav>\n  );\n\n  return (\n    <Sidebar {...props}>\n      <Sidebar.Header>\n        <Sidebar.Expanded>\n          <div className=\"gap-ws-9 flex flex-col\">\n            <div className=\"gap-ws-7 pt-ws-3 pb-ws-7 flex items-center\">\n              <BrandMark className=\"size-ws-15\" />\n              <div className=\"flex min-w-0 flex-1 flex-col\">\n                <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                  {workspace.name}\n                </span>\n                <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                  {product.name}\n                </span>\n              </div>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <IconButton\n                    icon={RiArrowDownSLine}\n                    variant=\"secondary\"\n                    preset=\"ghost\"\n                    size=\"xs\"\n                    aria-label=\"Switch workspace\"\n                    className=\"mr-ws-3\"\n                  />\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n                  <DropdownMenu.Item data-state=\"checked\">\n                    <ListItem.Content>\n                      <ListItem.Label>{workspace.name}</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiAddLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>New workspace</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </div>\n            <TextInput size=\"sm\">\n              <TextInput.Prefix inner>\n                <TextInput.Icon icon={RiSearchLine} />\n              </TextInput.Prefix>\n              <TextInput.Input type=\"search\" placeholder=\"Search\" aria-label=\"Search\" />\n            </TextInput>\n          </div>\n        </Sidebar.Expanded>\n        <Sidebar.Collapsed>\n          <div className=\"pt-ws-3 pb-ws-7 flex justify-center\">\n            <BrandMark className=\"size-ws-15\" />\n          </div>\n        </Sidebar.Collapsed>\n      </Sidebar.Header>\n\n      {/* A section draws only the slot for the state it is in, so the pages go in both. */}\n      <Sidebar.Section scrollable>{nav}</Sidebar.Section>\n\n      <Sidebar.Footer>\n        <div className=\"gap-ws-9 flex flex-col\">\n          <div className=\"flex flex-col\">{link(helpLink)}</div>\n          {/* On the grey ground the line keeps the nav's inset: run edge to edge, it would stop\n              short of the page and read as broken. */}\n          <div className=\"border-ws-static-base pt-ws-5 border-t\">\n            <Sidebar.Expanded>\n              <DropdownMenu>\n                <DropdownMenu.Trigger asChild>\n                  <button\n                    type=\"button\"\n                    className=\"gap-ws-5 px-ws-5 py-ws-3 rounded-ws-control-lg hover:bg-ws-dynamic-tertiary-alpha-strong-default focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex w-full items-center text-left\"\n                  >\n                    <PersonAvatar name={account.name} initials={account.initials} color=\"orange\" />\n                    <span className=\"flex min-w-0 flex-1 flex-col\">\n                      <span className=\"typography-label-strong-sm text-ws-static-base truncate\">\n                        {account.name}\n                      </span>\n                      <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                        {account.email}\n                      </span>\n                    </span>\n                    <RiArrowDownSLine\n                      aria-hidden=\"true\"\n                      className=\"size-ws-9 text-ws-static-strong\"\n                    />\n                  </button>\n                </DropdownMenu.Trigger>\n                <DropdownMenu.Content side=\"top\" align=\"start\" className=\"ws-block-utility w-[14rem]\">\n                  <DropdownMenu.Item>\n                    <ListItem.Prefix>\n                      <RiSettingsLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Account settings</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                  <DropdownMenu.Separator />\n                  <DropdownMenu.Item variant=\"danger\">\n                    <ListItem.Prefix>\n                      <RiLogoutBoxRLine className=\"size-ws-9\" />\n                    </ListItem.Prefix>\n                    <ListItem.Content>\n                      <ListItem.Label>Log out</ListItem.Label>\n                    </ListItem.Content>\n                  </DropdownMenu.Item>\n                </DropdownMenu.Content>\n              </DropdownMenu>\n            </Sidebar.Expanded>\n            <Sidebar.Collapsed>\n              <div className=\"flex justify-center\">\n                <PersonAvatar\n                  name={account.name}\n                  initials={account.initials}\n                  color=\"orange\"\n                  alt={account.name}\n                  title={account.name}\n                />\n              </div>\n            </Sidebar.Collapsed>\n          </div>\n        </div>\n      </Sidebar.Footer>\n    </Sidebar>\n  );\n}\n"
    },
    {
      "path": "src/blocks/notifications-popover/upcoming-meetings.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/notifications-popover/upcoming-meetings.tsx",
      "content": "'use client';\n\n// TODO(custom): agenda list (a time column, then the meeting and who it is with); Wideset has no agenda or event row.\nimport { useId } from 'react';\n\nimport type { Meeting } from './data';\nimport { formatDay, formatTime } from './format';\n\n/**\n * The next few meetings: when on the left, in one column so the times line up, then what the\n * meeting is and the customer it is with. Plain rows, nothing to click: the calendar owns them.\n */\nexport function UpcomingMeetings({ meetings, today }: { meetings: Meeting[]; today: string }) {\n  const titleId = useId();\n\n  return (\n    <section aria-labelledby={titleId} className=\"gap-ws-9 flex flex-col\">\n      <h2 id={titleId} className=\"typography-label-strong-md text-ws-static-strong\">\n        Coming up\n      </h2>\n      <ul className=\"gap-ws-9 flex flex-col\">\n        {meetings.map((meeting) => (\n          <li key={meeting.id} className=\"gap-ws-9 flex items-start\">\n            <time dateTime={meeting.start} className=\"flex w-[4.5rem] shrink-0 flex-col\">\n              <span className=\"typography-label-sm text-ws-static-strong tabular-nums\">\n                {formatTime(meeting.start)}\n              </span>\n              <span className=\"typography-caption-md text-ws-static-subtle\">\n                {formatDay(meeting.start, today)}\n              </span>\n            </time>\n            <div className=\"flex min-w-0 flex-col\">\n              <span className=\"typography-label-strong-sm text-ws-static-strong truncate\">\n                {meeting.title}\n              </span>\n              <span className=\"typography-caption-md text-ws-static-subtle truncate\">\n                {meeting.customer} · {meeting.minutes} min\n              </span>\n            </div>\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
