{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-sales-overview",
  "type": "registry:block",
  "title": "Sales overview",
  "description": "Sales against target on a grey canvas: key figures with their progress to target, the pipeline by stage and the deals closing this month.",
  "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/button.json",
    "https://wideset.co/r/dropdown-menu.json",
    "https://wideset.co/r/icon-button.json",
    "https://wideset.co/r/list-item.json",
    "https://wideset.co/r/progress-bar.json",
    "https://wideset.co/r/status-badge.json",
    "https://wideset.co/r/table.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/sales-overview/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/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/sales-overview/closing-deals-table.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/closing-deals-table.tsx",
      "content": "'use client';\n\nimport { cn } from '@/lib/wideset/utils';\nimport { type SortDirection } from '@/components/ui/wideset/table/Table.types';\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 { type ReactNode, useId, useState } from 'react';\n\nimport { CLOSING, type Deal } from './data';\nimport { formatCount, formatDay, formatUsd } from './format';\nimport { PersonAvatar } from './person-avatar';\n\nconst STAGE_ORDER: Record<Deal['stage'], number> = { Proposal: 0, Negotiation: 1, Commit: 2 };\n\n/**\n * A stage's colour says how the deal stands: a proposal is out and in progress, a negotiation\n * still needs a look before it can close, a commit is as good as won.\n */\nconst STAGE_COLOR: Record<Deal['stage'], NonNullable<StatusBadgeProps['color']>> = {\n  Proposal: 'info',\n  Negotiation: 'notice',\n  Commit: 'positive',\n};\n\ntype Column = {\n  key: string;\n  label: string;\n  /** What the column sorts by. */\n  value: (deal: Deal) => string | number;\n  cell: (deal: Deal) => ReactNode;\n  numeric?: boolean;\n  className?: string;\n};\n\nconst COLUMNS: Column[] = [\n  {\n    key: 'deal',\n    label: 'Deal',\n    value: (deal) => deal.name,\n    cell: (deal) => <span className=\"text-ws-static-strong\">{deal.name}</span>,\n    className: 'w-[22%]',\n  },\n  {\n    key: 'account',\n    label: 'Account',\n    value: (deal) => deal.account,\n    cell: (deal) => deal.account,\n    className: 'w-[17%]',\n  },\n  {\n    key: 'owner',\n    label: 'Owner',\n    value: (deal) => deal.owner.name,\n    cell: (deal) => (\n      <span className=\"gap-ws-5 flex items-center\">\n        <PersonAvatar\n          size=\"sm\"\n          name={deal.owner.name}\n          initials={deal.owner.initials}\n          color={deal.owner.color}\n          aria-hidden\n        />\n        <span className=\"truncate\">{deal.owner.name}</span>\n      </span>\n    ),\n    className: 'w-[17%]',\n  },\n  {\n    key: 'stage',\n    label: 'Stage',\n    value: (deal) => STAGE_ORDER[deal.stage],\n    cell: (deal) => <StatusBadge color={STAGE_COLOR[deal.stage]}>{deal.stage}</StatusBadge>,\n    className: 'w-[14%]',\n  },\n  {\n    key: 'close',\n    label: 'Close date',\n    value: (deal) => deal.close,\n    cell: (deal) => <span className=\"tabular-nums\">{formatDay(deal.close)}</span>,\n    className: 'w-[15%]',\n  },\n  {\n    key: 'amount',\n    label: 'Amount',\n    value: (deal) => deal.amount,\n    cell: (deal) => (\n      <span className=\"text-ws-static-strong tabular-nums\">{formatUsd(deal.amount)}</span>\n    ),\n    numeric: true,\n  },\n];\n\n// The first and last columns sit on the card's padding, in line with its title.\nconst flush = (index: number) => index === 0 || index === COLUMNS.length - 1;\n\n/** Open deals expected to close this month, soonest first; every column sorts. */\nexport function ClosingDealsTable({ className }: { className?: string }) {\n  const titleId = useId();\n  const [sort, setSort] = useState<{ key: string; direction: SortDirection }>({\n    key: 'close',\n    direction: 'asc',\n  });\n  const column = COLUMNS.find((entry) => entry.key === sort.key)!;\n  const rows = sort.direction\n    ? [...CLOSING].sort((a, b) => {\n        const order =\n          column.value(a) < column.value(b) ? -1 : column.value(a) > column.value(b) ? 1 : 0;\n        return sort.direction === 'asc' ? order : -order;\n      })\n    : CLOSING;\n  const total = CLOSING.reduce((sum, deal) => sum + deal.amount, 0);\n\n  return (\n    <section\n      aria-labelledby={titleId}\n      className={cn(\n        'bg-ws-static-foreground rounded-ws-container-md shadow-ws-low p-ws-11 gap-ws-9 flex flex-col',\n        className,\n      )}\n    >\n      <div className=\"gap-ws-9 flex items-baseline justify-between\">\n        <h2 id={titleId} className=\"typography-subtitle-xs text-ws-static-strong\">\n          Closing this month\n        </h2>\n        <p className=\"typography-body-md text-ws-static-subtle tabular-nums\">\n          {formatUsd(total)} in {formatCount(CLOSING.length)} open deals\n        </p>\n      </div>\n      <Table aria-labelledby={titleId} className=\"w-full table-fixed\">\n        <Table.Head>\n          <Table.Row>\n            {COLUMNS.map((entry, index) => (\n              <Table.Header\n                key={entry.key}\n                align={entry.numeric ? 'right' : 'left'}\n                flushMargin={flush(index)}\n                className={entry.className}\n                sortable\n                sortDirection={sort.key === entry.key ? sort.direction : null}\n                onSort={() =>\n                  setSort((current) => ({\n                    key: entry.key,\n                    direction:\n                      current.key === entry.key && current.direction === 'asc' ? 'desc' : 'asc',\n                  }))\n                }\n              >\n                {entry.label}\n              </Table.Header>\n            ))}\n          </Table.Row>\n        </Table.Head>\n        <Table.Body>\n          {rows.map((deal) => (\n            <Table.Row key={deal.id}>\n              {COLUMNS.map((entry, index) => (\n                <Table.Cell\n                  key={entry.key}\n                  align={entry.numeric ? 'right' : 'left'}\n                  flushMargin={flush(index)}\n                  truncate={index < 2}\n                >\n                  {entry.cell(deal)}\n                </Table.Cell>\n              ))}\n            </Table.Row>\n          ))}\n        </Table.Body>\n      </Table>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/sales-overview/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/data.ts",
      "content": "import type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\n\nexport const ACCOUNT = { name: 'Nina Alvarez', initials: 'NA' };\n\nexport const NAV = [\n  { label: 'Home', href: '#home' },\n  { label: 'Customers', href: '#customers' },\n  { label: 'Deals', href: '#deals' },\n  { label: 'Sales', href: '#sales' },\n  { label: 'Reports', href: '#reports' },\n];\n\n/** Today, and the quarter the page measures. */\nexport const TODAY = '2026-12-14';\nexport const QUARTER = { label: 'Q4 2026', from: '2026-10-01', to: '2026-12-31' };\n\n/** The quarter's key figures against their targets. */\nexport const KEY_FIGURES: {\n  label: string;\n  value: number;\n  target: number;\n  unit: 'usd' | 'count';\n}[] = [\n  {\n    label: 'Closed won',\n    value: 412_300,\n    target: 500_000,\n    unit: 'usd',\n  },\n  {\n    label: 'New pipeline',\n    value: 1_184_000,\n    target: 1_500_000,\n    unit: 'usd',\n  },\n  {\n    label: 'Deals won',\n    value: 38,\n    target: 45,\n    unit: 'count',\n  },\n  {\n    label: 'Meetings booked',\n    value: 334,\n    target: 320,\n    unit: 'count',\n  },\n];\n\n/** Open deals by stage, earliest stage first. */\nexport const PIPELINE = [\n  { stage: 'Qualified', deals: 42, amount: 486_000 },\n  { stage: 'Discovery', deals: 31, amount: 402_500 },\n  { stage: 'Proposal', deals: 18, amount: 268_400 },\n  { stage: 'Negotiation', deals: 11, amount: 171_200 },\n  { stage: 'Commit', deals: 6, amount: 94_800 },\n];\n\nexport type Rep = { name: string; initials: string; color: AvatarColor };\n\nconst MAYA: Rep = { name: 'Maya Okafor', initials: 'MO', color: 'purple' };\nconst DANIEL: Rep = { name: 'Daniel Reyes', initials: 'DR', color: 'blue' };\nconst PRIYA: Rep = { name: 'Priya Shah', initials: 'PS', color: 'orange' };\nconst LEO: Rep = { name: 'Leo Marchetti', initials: 'LM', color: 'teal' };\nconst TOM: Rep = { name: 'Tom Becker', initials: 'TB', color: 'pink' };\n\n/** Each rep's quarter so far; together they make the closed won figure. */\nexport const REPS = [\n  { rep: MAYA, won: 118_400, deals: 9, quota: 100_000 },\n  { rep: DANIEL, won: 96_200, deals: 8, quota: 100_000 },\n  { rep: PRIYA, won: 84_700, deals: 10, quota: 100_000 },\n  { rep: LEO, won: 63_500, deals: 6, quota: 100_000 },\n  { rep: TOM, won: 49_500, deals: 5, quota: 100_000 },\n];\n\nexport type Deal = {\n  id: string;\n  name: string;\n  account: string;\n  owner: Rep;\n  stage: 'Proposal' | 'Negotiation' | 'Commit';\n  amount: number;\n  /** Expected close date. */\n  close: string;\n};\n\n/** Open deals expected to close before the month ends. */\nexport const CLOSING: Deal[] = [\n  {\n    id: 'd-2041',\n    name: 'Annual plan, 120 seats',\n    account: 'Halcyon Health',\n    owner: MAYA,\n    stage: 'Commit',\n    amount: 24_000,\n    close: '2026-12-18',\n  },\n  {\n    id: 'd-2017',\n    name: 'Revenue suite expansion',\n    account: 'Northwind Freight',\n    owner: DANIEL,\n    stage: 'Negotiation',\n    amount: 38_500,\n    close: '2026-12-22',\n  },\n  {\n    id: 'd-2063',\n    name: 'Analytics add-on',\n    account: 'Brightline Dental',\n    owner: PRIYA,\n    stage: 'Commit',\n    amount: 9_600,\n    close: '2026-12-16',\n  },\n  {\n    id: 'd-2072',\n    name: 'Team plan, 45 seats',\n    account: 'Kestrel Labs',\n    owner: TOM,\n    stage: 'Proposal',\n    amount: 13_500,\n    close: '2026-12-29',\n  },\n  {\n    id: 'd-1988',\n    name: 'Enterprise pilot',\n    account: 'Mosaic Bank',\n    owner: MAYA,\n    stage: 'Negotiation',\n    amount: 52_000,\n    close: '2026-12-30',\n  },\n  {\n    id: 'd-2035',\n    name: 'Migration from Salesforce',\n    account: 'Fernhill Studio',\n    owner: LEO,\n    stage: 'Negotiation',\n    amount: 18_750,\n    close: '2026-12-21',\n  },\n  {\n    id: 'd-2079',\n    name: 'Support tier upgrade',\n    account: 'Atlas Robotics',\n    owner: PRIYA,\n    stage: 'Commit',\n    amount: 7_200,\n    close: '2026-12-15',\n  },\n  {\n    id: 'd-2002',\n    name: 'Multi-region rollout',\n    account: 'Junipero Foods',\n    owner: DANIEL,\n    stage: 'Proposal',\n    amount: 31_400,\n    close: '2026-12-31',\n  },\n  {\n    id: 'd-2051',\n    name: 'Renewal, 3 years',\n    account: 'Corvid Security',\n    owner: LEO,\n    stage: 'Commit',\n    amount: 15_900,\n    close: '2026-12-17',\n  },\n  {\n    id: 'd-2090',\n    name: 'Annual plan, 60 seats',\n    account: 'Quillon Legal',\n    owner: DANIEL,\n    stage: 'Commit',\n    amount: 12_600,\n    close: '2026-12-19',\n  },\n  {\n    id: 'd-2068',\n    name: 'Onboarding services',\n    account: 'Larkspur Hotels',\n    owner: PRIYA,\n    stage: 'Proposal',\n    amount: 4_800,\n    close: '2026-12-28',\n  },\n  {\n    id: 'd-2084',\n    name: 'Starter to Growth',\n    account: 'Pellucid Optics',\n    owner: TOM,\n    stage: 'Negotiation',\n    amount: 6_450,\n    close: '2026-12-23',\n  },\n];\n"
    },
    {
      "path": "src/blocks/sales-overview/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/format.ts",
      "content": "// One locale for the whole screen; swap it for the user's.\nconst LOCALE = 'en-US';\n\nconst count = new Intl.NumberFormat(LOCALE);\nconst usd = new Intl.NumberFormat(LOCALE, {\n  style: 'currency',\n  currency: 'USD',\n  maximumFractionDigits: 0,\n});\nconst usdCompact = new Intl.NumberFormat(LOCALE, {\n  style: 'currency',\n  currency: 'USD',\n  notation: 'compact',\n  maximumFractionDigits: 1,\n});\nconst percent = new Intl.NumberFormat(LOCALE, { style: 'percent', maximumFractionDigits: 0 });\n// Dates are calendar days (`2026-12-14`), parsed as UTC midnight: format them in UTC too.\nconst day = new Intl.DateTimeFormat(LOCALE, { month: 'short', day: 'numeric', timeZone: 'UTC' });\n\nexport const formatCount = (value: number) => count.format(value);\nexport const formatUsd = (value: number) => usd.format(value);\n/** `$500K`, `$1.2M`: for amounts beside a figure that already gives the exact one. */\nexport const formatUsdCompact = (value: number) => usdCompact.format(value);\nexport const formatPercent = (value: number) => percent.format(value);\nexport const formatDay = (iso: string) => day.format(new Date(iso));\n/** Whole days from one calendar day to another. */\nexport const daysBetween = (from: string, to: string) =>\n  Math.round((Date.parse(to) - Date.parse(from)) / 86_400_000);\n"
    },
    {
      "path": "src/blocks/sales-overview/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/index.tsx",
      "content": "'use client';\n\nimport '@/styles/wideset-blocks.css';\n\nimport { AppShell } from '@/components/ui/wideset/app-shell/AppShell';\n\nimport { ClosingDealsTable } from './closing-deals-table';\nimport { KEY_FIGURES } from './data';\nimport { formatCount, formatPercent, formatUsd, formatUsdCompact } from './format';\nimport { KpiCard } from './kpi-card';\nimport { PageHeader } from './page-header';\nimport { PipelineByStage } from './pipeline-by-stage';\nimport { RepLeaderboard } from './rep-leaderboard';\nimport { TopBar } from './top-bar';\n\ntype Figure = (typeof KEY_FIGURES)[number];\n\n/** A figure against its target, in the words the key figure card shows. */\nconst toKpi = ({ label, value, target, unit }: Figure) => {\n  const format = unit === 'usd' ? formatUsd : formatCount;\n  const short = unit === 'usd' ? formatUsdCompact : formatCount;\n  return {\n    label,\n    value: format(value),\n    progress: value / target,\n    target: `${formatPercent(value / target)} of ${short(target)}`,\n    remaining: value >= target ? 'Target met' : `${short(target - value)} to go`,\n  };\n};\n\n/**\n * Sales against target, Canvas direction: the top bar and the page title on the grey canvas, every\n * block of content in its own white card.\n */\nexport default function SalesOverview() {\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"canvas\">\n      <AppShell.Main className=\"flex flex-col\">\n        <TopBar />\n        <div className=\"px-ws-12 pb-ws-9 pt-ws-13 flex-1\">\n          <div className=\"gap-ws-12 mx-auto flex w-full max-w-[80rem] flex-col\">\n            <PageHeader />\n            <div className=\"gap-ws-9 flex flex-col\">\n              <section aria-label=\"Key figures\" className=\"gap-ws-9 grid grid-cols-4\">\n                {KEY_FIGURES.map((figure) => (\n                  <KpiCard key={figure.label} {...toKpi(figure)} />\n                ))}\n              </section>\n              <div className=\"gap-ws-9 grid grid-cols-4\">\n                <ClosingDealsTable className=\"col-span-3\" />\n                <div className=\"gap-ws-9 flex flex-col\">\n                  <PipelineByStage />\n                  <RepLeaderboard className=\"flex-1\" />\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </AppShell.Main>\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/sales-overview/kpi-card.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/kpi-card.tsx",
      "content": "'use client';\n\n// TODO(custom): key figure card, version 02 (figure, progress to target); no KpiCard in Wideset yet.\nimport { cn } from '@/lib/wideset/utils';\nimport { ProgressBar } from '@/components/ui/wideset/progress-bar/ProgressBar';\n\nexport type KpiCardProps = {\n  label: string;\n  /** The figure, formatted: `$412,300`, `38`. */\n  value: string;\n  /** The figure as a share of its target; above 1 once the target is met. */\n  progress: number;\n  /** The share and the target, formatted: `82% of $500K`. */\n  target: string;\n  /** What is left to reach the target, formatted: `$87.7K to go`. */\n  remaining: string;\n  className?: string;\n};\n\n/**\n * A key figure measured against its target: the number and how far it is to the target. One\n * visual per value: the bar, and nothing beside the figure. It turns positive once the target is\n * met.\n */\nexport function KpiCard({ label, value, progress, target, remaining, className }: KpiCardProps) {\n  return (\n    <div\n      className={cn(\n        'bg-ws-static-foreground rounded-ws-container-md shadow-ws-low p-ws-11 gap-ws-9 flex flex-col',\n        className,\n      )}\n    >\n      <div className=\"gap-ws-3 flex min-w-0 flex-col\">\n        <p className=\"typography-label-sm text-ws-static-subtle\">{label}</p>\n        <p className=\"typography-title-md text-ws-static-strong tabular-nums\">{value}</p>\n      </div>\n      <div className=\"gap-ws-5 flex flex-col\">\n        <ProgressBar\n          value={Math.min(progress, 1) * 100}\n          status={progress >= 1 ? 'success' : 'default'}\n          aria-label={`${label}: ${target}`}\n        />\n        <div className=\"typography-caption-md gap-ws-5 flex justify-between tabular-nums\">\n          <span className=\"text-ws-static-base\">{target}</span>\n          <span className=\"text-ws-static-subtle\">{remaining}</span>\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/sales-overview/page-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/page-header.tsx",
      "content": "'use client';\n\nimport { RiAddLine, RiDownload2Line } from '@remixicon/react';\nimport { Button } from '@/components/ui/wideset/button/Button';\n\nimport { QUARTER, TODAY } from './data';\nimport { daysBetween } from './format';\n\n/** The page's title on the canvas, the quarter it measures, and its actions. */\nexport function PageHeader() {\n  const daysLeft = daysBetween(TODAY, QUARTER.to);\n\n  return (\n    <header className=\"gap-ws-9 flex items-end justify-between\">\n      <div className=\"gap-ws-3 flex flex-col\">\n        <h1 className=\"typography-title-md text-ws-static-strong\">Sales</h1>\n        <p className=\"typography-body-md text-ws-static-subtle\">\n          {QUARTER.label} · {daysLeft} days left in the quarter\n        </p>\n      </div>\n      <div className=\"gap-ws-5 flex items-center\">\n        <Button size=\"sm\" variant=\"secondary\" preset=\"border\">\n          <Button.Icon icon={RiDownload2Line} />\n          Export\n        </Button>\n        <Button size=\"sm\">\n          <Button.Icon icon={RiAddLine} />\n          New deal\n        </Button>\n      </div>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/sales-overview/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/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/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQA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Ow3DFmMqbdbUUrQsYINTGzad+EmNrShJGQRmhzbe1ljO/mST8zC9jY601IlZ0FAHyAiWFbb/rPwm7g0uDBSBzDI53PYdKl15tbcWNCiR0BDbZwAkdBipVEZCEcxxnFaqtjlxkNJbbK3SocoHn/akqutrsWyr1gekXIpqvqeq/qrDR+EgE60yre2y680Qw+OZt0fpWP97UiPSrIyLNFTaGLe82h1tKQkhSQQcd/3qC3rh1BkgrhKMV3uB8yD7dvaiNi8XVlAvGj7R5QR5/hl1YtiHmX2Hz/X4nKKKd7tpq42ZSviI6i0OjqBlB9+3vTTVyliuOZDsTMW0vS3JYpB98ftO6cXd1hxf/AFYx511e22iPCZS220kBI7CmXRkMRHExjsh5suJH9QOD9sVMEjEhKfNJ+1ZDKy3yX2x6dhCXw7h1WDWFUel3Pt/qIHI45hgda3ZjhG9KlI+Yp7GvRLe1RNSx3I/etF2vUICpDRbkAYS82cLHv396QI4fvMtIQ1KbWUdFLSUn3xmpklHpXunKaj2YlVh2wkivLtrGlPSR2Bo98DEmU2B5NgnP71JIVui2tJLKMuEYKzuo/2rZJJ716Yp1WLXX1UdY23Ktt6Mek81oU8rKz7VoWEJ7ZNe/etSCd/KpGpH3PBxhLzakKQCk7EEbGuW640MzborlygIUlKVfmND9IHmPL6V1fJQyk9zWJ0duXGWwtIU2tJCge+akY2S9DhlPx98hZ2DVmVFHHXsfYZ/9k=',\n};\n"
    },
    {
      "path": "src/blocks/sales-overview/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/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/sales-overview/pipeline-by-stage.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/pipeline-by-stage.tsx",
      "content": "'use client';\n\n// TODO(custom): stage breakdown (label, count, amount, bar); no component in Wideset.\nimport { cn } from '@/lib/wideset/utils';\nimport { useId } from 'react';\n\nimport { PIPELINE } from './data';\nimport { formatCount, formatUsd, formatUsdCompact } from './format';\n\n/** Open pipeline by stage: each stage's amount as a bar against the largest stage, with its deals. */\nexport function PipelineByStage({ className }: { className?: string }) {\n  const titleId = useId();\n  const max = Math.max(...PIPELINE.map((stage) => stage.amount));\n  const amount = PIPELINE.reduce((sum, stage) => sum + stage.amount, 0);\n  const deals = PIPELINE.reduce((sum, stage) => sum + stage.deals, 0);\n\n  return (\n    <section\n      aria-labelledby={titleId}\n      className={cn(\n        'bg-ws-static-foreground rounded-ws-container-md shadow-ws-low p-ws-11 gap-ws-9 flex flex-col',\n        className,\n      )}\n    >\n      <div className=\"gap-ws-9 flex items-baseline justify-between\">\n        <h2 id={titleId} className=\"typography-subtitle-xs text-ws-static-strong\">\n          Pipeline by stage\n        </h2>\n        <p\n          title={`${formatUsd(amount)} in ${formatCount(deals)} open deals`}\n          className=\"typography-body-md text-ws-static-subtle tabular-nums\"\n        >\n          {formatUsdCompact(amount)}\n        </p>\n      </div>\n      <ul className=\"gap-ws-7 flex flex-col\">\n        {PIPELINE.map((stage) => (\n          <li key={stage.stage} className=\"gap-ws-3 flex flex-col\">\n            <div className=\"typography-label-sm gap-ws-5 flex items-baseline\">\n              <span className=\"text-ws-static-base\">{stage.stage}</span>\n              <span className=\"text-ws-static-subtle tabular-nums\">{stage.deals}</span>\n              <span className=\"text-ws-static-strong ml-auto tabular-nums\">\n                {formatUsd(stage.amount)}\n              </span>\n            </div>\n            {/* 4px, the thickness of ProgressBar in the key figures: bars on one screen match. */}\n            <svg aria-hidden className=\"h-ws-3 w-full\">\n              <rect\n                width={`${(stage.amount / max) * 100}%`}\n                height=\"100%\"\n                rx=\"2\"\n                className=\"fill-ws-static-subtle\"\n              />\n            </svg>\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/sales-overview/rep-leaderboard.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/rep-leaderboard.tsx",
      "content": "'use client';\n\n// TODO(custom): ranked person row (Avatar, name, meta, value); no component in Wideset.\nimport { cn } from '@/lib/wideset/utils';\nimport { useId } from 'react';\n\nimport { REPS } from './data';\nimport { formatPercent, formatUsd } from './format';\nimport { PersonAvatar } from './person-avatar';\n\n/** The reps ranked by what they closed this quarter, with how much of their quota that is. */\nexport function RepLeaderboard({ className }: { className?: string }) {\n  const titleId = useId();\n  const ranked = [...REPS].sort((a, b) => b.won - a.won);\n\n  return (\n    <section\n      aria-labelledby={titleId}\n      className={cn(\n        'bg-ws-static-foreground rounded-ws-container-md shadow-ws-low p-ws-11 gap-ws-9 flex flex-col',\n        className,\n      )}\n    >\n      <div className=\"gap-ws-9 flex items-baseline justify-between\">\n        <h2 id={titleId} className=\"typography-subtitle-xs text-ws-static-strong\">\n          Top reps\n        </h2>\n        <p className=\"typography-body-md text-ws-static-subtle\">Closed won</p>\n      </div>\n      <ol className=\"gap-ws-6 flex flex-col\">\n        {ranked.map(({ rep, won, quota }) => (\n          <li key={rep.name} className=\"gap-ws-7 flex items-center\">\n            <PersonAvatar name={rep.name} initials={rep.initials} color={rep.color} aria-hidden />\n            <div className=\"flex min-w-0 flex-1 flex-col\">\n              <span className=\"typography-label-sm text-ws-static-strong truncate\">{rep.name}</span>\n              <span className=\"typography-caption-md text-ws-static-subtle tabular-nums\">\n                {formatPercent(won / quota)} of quota\n              </span>\n            </div>\n            <span className=\"typography-number-sm text-ws-static-strong tabular-nums\">\n              {formatUsd(won)}\n            </span>\n          </li>\n        ))}\n      </ol>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/sales-overview/top-bar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/sales-overview/top-bar.tsx",
      "content": "'use client';\n\n// TODO(custom): top-bar navigation items are composed by hand (copied from crypto); no NavigationBar item yet.\nimport { RiNotification3Line, RiSearchLine } from '@remixicon/react';\nimport { cn } from '@/lib/wideset/utils';\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 { type AnchorHTMLAttributes, useState } from 'react';\n\nimport { BrandMark } from './brand-mark';\nimport { ACCOUNT, NAV } from './data';\nimport { PersonAvatar } from './person-avatar';\n\n/** The top bar on the grey canvas, no fill and no line: product, navigation, tools and account. */\nexport function TopBar() {\n  const [current, setCurrent] = useState('#sales');\n\n  return (\n    <header className=\"px-ws-12 shrink-0\">\n      {/* In line with the page below it: the bar has no fill, so only its content shows. */}\n      <div className=\"h-ws-20 mx-auto flex w-full max-w-[80rem] items-center justify-between\">\n        <div className=\"gap-ws-12 flex items-center\">\n          <BrandMark label=\"Orbit\" />\n          <nav aria-label=\"Main\" className=\"gap-ws-3 flex items-center\">\n            {NAV.map((item) => (\n              <NavItem\n                key={item.href}\n                href={item.href}\n                active={item.href === current}\n                onClick={() => setCurrent(item.href)}\n              >\n                {item.label}\n              </NavItem>\n            ))}\n          </nav>\n        </div>\n\n        <div className=\"gap-ws-5 flex items-center\">\n          <IconButton\n            variant=\"secondary\"\n            preset=\"ghost\"\n            size=\"sm\"\n            icon={RiSearchLine}\n            aria-label=\"Search\"\n          />\n          <IconButton\n            variant=\"secondary\"\n            preset=\"ghost\"\n            size=\"sm\"\n            icon={RiNotification3Line}\n            aria-label=\"Notifications\"\n          />\n          <DropdownMenu>\n            <DropdownMenu.Trigger asChild>\n              <button\n                type=\"button\"\n                className=\"typography-label-strong-sm text-ws-static-strong rounded-ws-control-lg gap-ws-5 px-ws-5 py-ws-3 hover:bg-ws-dynamic-secondary-alpha-hover focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default flex cursor-pointer items-center\"\n              >\n                <PersonAvatar name={ACCOUNT.name} initials={ACCOUNT.initials} aria-hidden />\n                {ACCOUNT.name}\n              </button>\n            </DropdownMenu.Trigger>\n            <DropdownMenu.Content className=\"ws-block-utility\" align=\"end\">\n              {['Profile', 'Settings', 'Log out'].map((label) => (\n                <DropdownMenu.Item key={label}>\n                  <ListItem.Content>\n                    <ListItem.Label>{label}</ListItem.Label>\n                  </ListItem.Content>\n                </DropdownMenu.Item>\n              ))}\n            </DropdownMenu.Content>\n          </DropdownMenu>\n        </div>\n      </div>\n    </header>\n  );\n}\n\ntype NavItemProps = AnchorHTMLAttributes<HTMLAnchorElement> & { active: boolean };\n\n/** Figma \"Assets / Navigation Bar Page\": a top-bar link, filled while it is the current page. */\nfunction NavItem({ active, className, children, ...props }: NavItemProps) {\n  return (\n    <a\n      aria-current={active ? 'page' : undefined}\n      className={cn(\n        'typography-label-strong-sm rounded-ws-control-lg px-ws-5 py-ws-3 min-h-ws-14 flex items-center',\n        'focus-visible:wds-focus-visible outline-ws-dynamic-primary-strong-default',\n        active\n          ? 'bg-ws-dynamic-tertiary-alpha-strong-default text-ws-static-strong'\n          : 'text-ws-static-base hover:bg-ws-dynamic-tertiary-alpha-strong-default hover:text-ws-static-strong',\n        className,\n      )}\n      {...props}\n    >\n      {children}\n    </a>\n  );\n}\n"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
