{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "block-dashboard",
  "type": "registry:block",
  "title": "Dashboard",
  "description": "A revenue dashboard on a raised page: a period control over four key figures with their change, a trend against the period before, revenue by owner and progress to the quarter’s goal, split by lines instead of cards.",
  "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/divider.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/segmented-control.json",
    "https://wideset.co/r/sidebar.json",
    "https://wideset.co/r/status-badge.json",
    "https://wideset.co/r/text-input.json",
    "https://wideset.co/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/dashboard/brand-mark.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/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/dashboard/data.ts",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/data.ts",
      "content": "import {\n  type RemixiconComponentType,\n  RiBankCardLine,\n  RiContactsBook3Line,\n  RiHandCoinLine,\n  RiHome5Line,\n  RiInbox2Line,\n  RiKey2Line,\n  RiLineChartFill,\n  RiLineChartLine,\n  RiPieChart2Line,\n  RiPlugLine,\n  RiQuestionLine,\n  RiSettings3Line,\n  RiTeamLine,\n} from '@remixicon/react';\n\n/** The product is Orbit; the workspace whose revenue this is, Lumen Studio. */\nexport const product = { name: 'Orbit' };\nexport const workspace = { name: 'Lumen Studio', initials: 'LS' };\nexport const account = { name: 'Maya Okafor', email: 'maya@lumenstudio.co', initials: 'MO' };\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 },\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, activeIcon: RiLineChartFill },\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\n/*\n  The dataset: every deal the team has closed since Jan 1, 2025, won or lost, with its owner and\n  its amount. Every figure on the screen is counted from these rows, so the key figures, the\n  chart, the breakdown and the goal always add up. The rows are generated once from a seeded\n  sequence, up to the sample's today; a real app fetches the same rows for the period on screen.\n*/\n\nconst DAY = 86_400_000;\nconst START = Date.UTC(2025, 0, 1);\n\n/** A calendar day (`2026-11-10`) as a day number (days since Jan 1, 2025), and back. */\nexport const dayOf = (iso: string) => Math.round((Date.parse(iso) - START) / DAY);\nexport const isoOf = (day: number) => new Date(START + day * DAY).toISOString().slice(0, 10);\n\n/** The sample is frozen on this day. */\nexport const TODAY = dayOf('2026-11-10');\n\nexport const OWNERS = [\n  { id: 'jonas', name: 'Jonas Weber', share: 0.26 },\n  { id: 'priya', name: 'Priya Raman', share: 0.23 },\n  { id: 'maya', name: 'Maya Okafor', share: 0.2 },\n  { id: 'tom', name: 'Tom Becker', share: 0.17 },\n  { id: 'elena', name: 'Elena Silva', share: 0.14 },\n] as const;\n\ntype Deal = { day: number; owner: (typeof OWNERS)[number]['id']; amount: number; won: boolean };\n\n/** A repeatable sequence in [0, 1). */\nconst random = (() => {\n  let seed = 20_251_109;\n  return () => {\n    seed = (seed + 0x6d2b79f5) | 0;\n    let t = Math.imul(seed ^ (seed >>> 15), 1 | seed);\n    t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;\n    return ((t ^ (t >>> 14)) >>> 0) / 4_294_967_296;\n  };\n})();\n\nconst DEALS: Deal[] = (() => {\n  const rows: Deal[] = [];\n  for (let day = 0; day <= TODAY; day++) {\n    const weekday = new Date(START + day * DAY).getUTCDay();\n    // Deals close on working days: three or four a day at first, a third more a year on.\n    if (weekday === 0 || weekday === 6) continue;\n    for (let n = Math.floor(3.2 * (1 + (0.3 * day) / 365) + random()); n > 0; n--) {\n      // The owner whose share of the team's deals the draw lands in.\n      let draw = random();\n      const owner = OWNERS.find((entry) => (draw -= entry.share) < 0) ?? OWNERS[0];\n      // $2,000 to $26,000 in steps of $500, most of them small; a third are won.\n      const amount = 2_000 + Math.round(random() ** 2 * 48) * 500;\n      rows.push({ day, owner: owner.id, amount, won: random() < 0.34 });\n    }\n  }\n  return rows;\n})();\n\n/** What closed between two days, both included. */\nconst totals = (from: number, to: number) => {\n  const closed = DEALS.filter((deal) => deal.day >= from && deal.day <= to);\n  const won = closed.filter((deal) => deal.won);\n  const revenue = won.reduce((sum, deal) => sum + deal.amount, 0);\n  return {\n    revenue,\n    won: won.length,\n    average: won.length ? revenue / won.length : 0,\n    winRate: closed.length ? won.length / closed.length : 0,\n    owners: OWNERS.map(({ id, name }) => ({\n      id,\n      name,\n      revenue: won.reduce((sum, deal) => (deal.owner === id ? sum + deal.amount : sum), 0),\n    })),\n  };\n};\n\n/** Revenue won from `from` to the close of each day up to `to`: a running total. */\nconst running = (from: number, to: number) => {\n  const days = new Array<number>(to - from + 1).fill(0);\n  for (const deal of DEALS) {\n    if (deal.won && deal.day >= from && deal.day <= to) days[deal.day - from] += deal.amount;\n  }\n  for (let index = 1; index < days.length; index++) days[index] += days[index - 1];\n  return days;\n};\n\nexport type Period = 'month' | 'quarter' | 'year';\n\nexport const PERIODS: { value: Period; label: string }[] = [\n  { value: 'month', label: 'This month' },\n  { value: 'quarter', label: 'This quarter' },\n  { value: 'year', label: 'This year' },\n];\n\n// The sample's today never moves, so each period's first day and the one before it are written out.\nconst SPANS: Record<Period, { from: string; before: string }> = {\n  month: { from: '2026-11-01', before: '2026-10-01' },\n  quarter: { from: '2026-10-01', before: '2026-07-01' },\n  year: { from: '2026-01-01', before: '2025-01-01' },\n};\n\n/**\n * Everything the page shows for one period. The period runs to today and is compared with the\n * same number of days at the start of the period before: a month ten days in is measured against\n * the first ten days of last month, not against all of it.\n */\nexport function revenueFor(period: Period) {\n  const from = dayOf(SPANS[period].from);\n  const before = dayOf(SPANS[period].before);\n  const beforeTo = before + TODAY - from;\n  return {\n    /** The days on screen, and the days they are compared with. */\n    range: { from, to: TODAY },\n    comparison: { from: before, to: beforeTo },\n    current: totals(from, TODAY),\n    previous: totals(before, beforeTo),\n    /** Running revenue, day by day, for both. */\n    series: running(from, TODAY),\n    previousSeries: running(before, beforeTo),\n  };\n}\n\n/** The quarter's goal. It does not move with the period control: it is always this quarter's. */\nexport const GOAL = {\n  label: 'Q4 goal',\n  target: 1_100_000,\n  revenue: totals(dayOf(SPANS.quarter.from), TODAY).revenue,\n  daysLeft: dayOf('2026-12-31') - TODAY,\n};\n"
    },
    {
      "path": "src/blocks/dashboard/format.ts",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/format.ts",
      "content": "import { isoOf } from './data';\n\n// One locale and currency for the whole screen; swap them for the workspace's.\nconst LOCALE = 'en-US';\nconst CURRENCY = 'USD';\n\nconst usd = new Intl.NumberFormat(LOCALE, {\n  style: 'currency',\n  currency: CURRENCY,\n  maximumFractionDigits: 0,\n});\nconst usdCompact = new Intl.NumberFormat(LOCALE, {\n  style: 'currency',\n  currency: CURRENCY,\n  notation: 'compact',\n  maximumFractionDigits: 1,\n});\nconst count = new Intl.NumberFormat(LOCALE);\nconst percent = new Intl.NumberFormat(LOCALE, {\n  style: 'percent',\n  minimumFractionDigits: 1,\n  maximumFractionDigits: 1,\n});\nconst share = new Intl.NumberFormat(LOCALE, { style: 'percent', maximumFractionDigits: 0 });\nconst points = new Intl.NumberFormat(LOCALE, {\n  minimumFractionDigits: 1,\n  maximumFractionDigits: 1,\n});\n// Days are calendar days (`2026-11-10`), parsed as UTC midnight: format them in UTC too.\nconst day = new Intl.DateTimeFormat(LOCALE, { month: 'short', day: 'numeric', timeZone: 'UTC' });\nconst month = new Intl.DateTimeFormat(LOCALE, { month: 'short', timeZone: 'UTC' });\nconst fullDay = new Intl.DateTimeFormat(LOCALE, {\n  month: 'short',\n  day: 'numeric',\n  year: 'numeric',\n  timeZone: 'UTC',\n});\n\nconst dateOf = (dayNumber: number) => new Date(isoOf(dayNumber));\n\nexport const formatUsd = (value: number) => usd.format(value);\n/** An axis value: `$250K`, `$1M`. */\nexport const formatUsdCompact = (value: number) => usdCompact.format(value);\nexport const formatCount = (value: number) => count.format(value);\n/** A rate or a change, unsigned: an arrow says which way a change went. */\nexport const formatPercent = (value: number) => percent.format(Math.abs(value));\n/** A share of a whole, in whole percent: `45%`. */\nexport const formatShare = (value: number) => share.format(value);\n/** A change between two rates, in percentage points, unsigned: `3.6 pts`. */\nexport const formatPoints = (value: number) => `${points.format(Math.abs(value) * 100)} pts`;\nexport const formatDay = (dayNumber: number) => day.format(dateOf(dayNumber));\nexport const formatMonth = (dayNumber: number) => month.format(dateOf(dayNumber));\n/** `Nov 1 – 10, 2026`, or one day: `Nov 10, 2026`. */\nexport const formatRange = (from: number, to: number) =>\n  from === to ? fullDay.format(dateOf(from)) : fullDay.formatRange(dateOf(from), dateOf(to));\n"
    },
    {
      "path": "src/blocks/dashboard/goal-progress.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/goal-progress.tsx",
      "content": "'use client';\n\n// TODO(custom): goal meter (figure against a target, bar, what is left); ProgressBar's own label shows only a percentage.\nimport { cn } from '@/lib/wideset/utils';\nimport { ProgressBar } from '@/components/ui/wideset/progress-bar/ProgressBar';\nimport { useId } from 'react';\n\nimport { formatCount, formatShare, formatUsd } from './format';\n\ntype GoalProgressProps = {\n  label: string;\n  revenue: number;\n  target: number;\n  daysLeft: number;\n  className?: string;\n};\n\n/**\n * Progress to the quarter's goal: the revenue so far against the target, one bar, then what is\n * left as plain facts. The bar turns positive once the goal is met.\n */\nexport function GoalProgress({ label, revenue, target, daysLeft, className }: GoalProgressProps) {\n  const titleId = useId();\n  const met = revenue >= target;\n  const toGo = Math.max(target - revenue, 0);\n  // What is left: the money, the time, and the pace that closes the gap in that time.\n  const left = [\n    ['To go', formatUsd(toGo)],\n    ['Days left in the quarter', formatCount(daysLeft)],\n    ['Needed a week', formatUsd(daysLeft > 0 ? toGo / (daysLeft / 7) : toGo)],\n  ];\n\n  return (\n    <section aria-labelledby={titleId} className={cn('gap-ws-9 flex flex-col', className)}>\n      <h2 id={titleId} className=\"typography-label-strong-md text-ws-static-strong\">\n        {label}\n      </h2>\n      <div className=\"gap-ws-7 flex flex-col\">\n        <div className=\"gap-ws-9 flex items-baseline justify-between tabular-nums\">\n          <p className=\"gap-ws-5 flex items-baseline\">\n            <span className=\"typography-title-sm text-ws-static-strong\">{formatUsd(revenue)}</span>\n            <span className=\"typography-body-md text-ws-static-subtle\">of {formatUsd(target)}</span>\n          </p>\n          <p className=\"typography-label-sm text-ws-static-base\">{formatShare(revenue / target)}</p>\n        </div>\n        <ProgressBar\n          value={Math.min(revenue, target)}\n          max={target}\n          status={met ? 'success' : 'default'}\n          aria-labelledby={titleId}\n          aria-valuetext={`${formatUsd(revenue)} of ${formatUsd(target)}`}\n        />\n      </div>\n      <dl className=\"gap-ws-5 typography-label-sm flex flex-col tabular-nums\">\n        {left.map(([term, value]) => (\n          <div key={term} className=\"gap-ws-9 flex justify-between\">\n            <dt className=\"text-ws-static-subtle\">{term}</dt>\n            <dd className=\"text-ws-static-strong\">{value}</dd>\n          </div>\n        ))}\n      </dl>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/dashboard/index.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/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 { cn } from '@/lib/wideset/utils';\nimport { IconButton } from '@/components/ui/wideset/button/IconButton';\nimport { useId, useState } from 'react';\n\nimport { GOAL, type Period, revenueFor } from './data';\nimport { formatCount, formatPercent, formatPoints, formatRange, formatUsd } from './format';\nimport { GoalProgress } from './goal-progress';\nimport { KeyFigure } from './key-figure';\nimport { OwnerBreakdown } from './owner-breakdown';\nimport { PageHeader } from './page-header';\nimport { RevenueChart } from './revenue-chart';\nimport { DashboardSidebar } from './sidebar';\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/** A module under another: a line and space above it. No module has a box of its own. */\nconst LINE = 'border-ws-static-subtle pt-ws-12 border-t';\n\ntype Figure = {\n  label: string;\n  value: number;\n  previous: number;\n  format: (value: number) => string;\n  /** A rate: its change is counted in percentage points, not in percent of what it was. */\n  rate?: boolean;\n};\n\n/** A figure as a key figure: the value, its change, and what the change is measured against. */\nconst toKeyFigure = ({ label, value, previous, format, rate }: Figure) =>\n  ({\n    label,\n    value: format(value),\n    change: rate ? formatPoints(value - previous) : formatPercent((value - previous) / previous),\n    direction: value >= previous ? 'up' : 'down',\n    comparison: `from ${format(previous)}`,\n  }) as const;\n\n/**\n * Dashboard (Inset direction): revenue for a period on the raised page beside the workspace\n * sidebar. Everything sits on the page's white, split by lines and space: four key figures, the\n * trend against the period before, then who the revenue came from and how far the quarter's goal\n * is. The period control recounts every figure from one list of closed deals; the goal stays the\n * quarter's.\n */\nexport default function Dashboard() {\n  const sidebarId = useId();\n  const [collapsed, setCollapsed] = useState(false);\n  const [period, setPeriod] = useState<Period>('month');\n\n  const { current, previous, range, comparison, series, previousSeries } = revenueFor(period);\n\n  const figures: Figure[] = [\n    { label: 'Closed won', value: current.revenue, previous: previous.revenue, format: formatUsd },\n    { label: 'Deals won', value: current.won, previous: previous.won, format: formatCount },\n    {\n      label: 'Average deal size',\n      value: current.average,\n      previous: previous.average,\n      format: formatUsd,\n    },\n    {\n      label: 'Win rate',\n      value: current.winRate,\n      previous: previous.winRate,\n      format: formatPercent,\n      rate: true,\n    },\n  ];\n\n  return (\n    <AppShell className=\"ws-block-utility\" direction=\"inset\">\n      <DashboardSidebar 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. */}\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>Revenue</Breadcrumbs.Item>\n            </Breadcrumbs>\n          </div>\n        </div>\n\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            <PageHeader\n              summary={`Closed revenue for ${formatRange(range.from, range.to)}, compared with ${formatRange(comparison.from, comparison.to)}`}\n              period={period}\n              onPeriodChange={setPeriod}\n            />\n\n            {/* Lines between the figures, not boxes round them: they read as one row. */}\n            <section aria-label=\"Key figures\" className=\"grid grid-cols-4\">\n              {figures.map((figure) => (\n                <KeyFigure\n                  key={figure.label}\n                  {...toKeyFigure(figure)}\n                  className=\"border-ws-static-subtle pl-ws-12 first:pl-ws-0 border-l first:border-l-0\"\n                />\n              ))}\n            </section>\n\n            <RevenueChart\n              start={range.from}\n              series={series}\n              previousStart={comparison.from}\n              previousSeries={previousSeries}\n              className={LINE}\n            />\n\n            <div className={cn(LINE, 'grid grid-cols-2')}>\n              <OwnerBreakdown owners={current.owners} className=\"pr-ws-12\" />\n              <GoalProgress {...GOAL} className=\"border-ws-static-subtle pl-ws-12 border-l\" />\n            </div>\n          </div>\n        </div>\n      </AppShell.Main>\n    </AppShell>\n  );\n}\n"
    },
    {
      "path": "src/blocks/dashboard/key-figure.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/key-figure.tsx",
      "content": "'use client';\n\n// TODO(custom): key figure (label, figure, change badge, what it changed from); no stat or KpiCard component in Wideset.\nimport { RiArrowDownLine, RiArrowUpLine } from '@remixicon/react';\nimport { cn } from '@/lib/wideset/utils';\nimport { StatusBadge } from '@/components/ui/wideset/status-badge/StatusBadge';\n\nexport type KeyFigureProps = {\n  label: string;\n  /** The figure, formatted: `$149,000`, `14`, `40.0%`. */\n  value: string;\n  /** The change against the period before, formatted and unsigned: `12.0%`, `3.6 pts`. */\n  change: string;\n  direction: 'up' | 'down';\n  /** What the change is measured against: `from $133,000`. */\n  comparison: string;\n  className?: string;\n};\n\n/**\n * A key figure: what it measures, the number, and how it moved against the period before. One\n * visual per value: the change badge, and nothing else. Every figure here is better when it\n * rises, so up is positive and down negative; a figure that is better falling (churn) flips that.\n */\nexport function KeyFigure({\n  label,\n  value,\n  change,\n  direction,\n  comparison,\n  className,\n}: KeyFigureProps) {\n  const up = direction === 'up';\n\n  return (\n    <div className={cn('gap-ws-5 flex min-w-0 flex-col', className)}>\n      <div className=\"gap-ws-3 flex 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 items-center\">\n        <StatusBadge size=\"sm\" color={up ? 'positive' : 'negative'}>\n          <StatusBadge.Icon icon={up ? RiArrowUpLine : RiArrowDownLine} />\n          <StatusBadge.Label>\n            <span className=\"sr-only\">{up ? 'Up' : 'Down'} </span>\n            {change}\n          </StatusBadge.Label>\n        </StatusBadge>\n        <span className=\"typography-label-sm text-ws-static-subtle truncate tabular-nums\">\n          {comparison}\n        </span>\n      </div>\n    </div>\n  );\n}\n"
    },
    {
      "path": "src/blocks/dashboard/owner-breakdown.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/owner-breakdown.tsx",
      "content": "'use client';\n\n// TODO(custom): bar list (a bar per row against the largest, the label on it, the amount beside it); no BarList in Wideset, and no data-viz colour tokens (uses the chart's non-semantic blue).\nimport { cn } from '@/lib/wideset/utils';\nimport { useId } from 'react';\n\nimport { formatUsd } from './format';\n\ntype Owner = { id: string; name: string; revenue: number };\n\n/**\n * Revenue by the deal's owner, largest first. Each row is its own bar, the owner's revenue\n * against the largest: a pale fill in the revenue chart's blue, the name on it and the amount\n * beside it. Fills, not lines, so the list reads as a chart and not as rules under the names, and\n * the blue ties it to the period's line above.\n */\nexport function OwnerBreakdown({ owners, className }: { owners: Owner[]; className?: string }) {\n  const titleId = useId();\n  const sorted = [...owners].sort((a, b) => b.revenue - a.revenue);\n  const max = sorted[0]?.revenue || 1;\n\n  return (\n    <section aria-labelledby={titleId} className={cn('gap-ws-9 flex flex-col', className)}>\n      <h2 id={titleId} className=\"typography-label-strong-md text-ws-static-strong\">\n        Revenue by owner\n      </h2>\n      <ul className=\"gap-ws-3 typography-label-sm flex flex-col\">\n        {sorted.map((owner) => (\n          <li key={owner.id} className=\"gap-ws-9 flex items-center\">\n            <div className=\"h-ws-14 relative min-w-0 flex-1\">\n              <svg aria-hidden className=\"inset-ws-0 absolute size-full\">\n                <rect\n                  width={`${(owner.revenue / max) * 100}%`}\n                  height=\"100%\"\n                  rx=\"4\"\n                  className=\"fill-(--ws-non-semantic-fill-blue-subtle)\"\n                />\n              </svg>\n              <span className=\"px-ws-5 text-ws-static-strong relative flex h-full items-center truncate\">\n                {owner.name}\n              </span>\n            </div>\n            <span className=\"text-ws-static-strong w-[4.5rem] shrink-0 text-right tabular-nums\">\n              {formatUsd(owner.revenue)}\n            </span>\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/dashboard/page-header.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/page-header.tsx",
      "content": "'use client';\n\n// TODO(custom): page header (title, a line of description, the period control on the right); no PageHeader in Wideset.\nimport { SegmentedControl } from '@/components/ui/wideset/segmented-control/SegmentedControl';\n\nimport { type Period, PERIODS } from './data';\n\ntype PageHeaderProps = {\n  /** The days on screen and what they are compared with, in words. */\n  summary: string;\n  period: Period;\n  onPeriodChange: (period: Period) => void;\n};\n\n/**\n * The page's title, what its numbers cover, and the period control: three short options that\n * apply at once, so a segmented control and not a menu.\n */\nexport function PageHeader({ summary, period, onPeriodChange }: PageHeaderProps) {\n  return (\n    <header className=\"gap-ws-9 flex flex-wrap items-center justify-between\">\n      <div className=\"gap-ws-2 flex min-w-0 flex-col\">\n        <h1 className=\"typography-title-md text-ws-static-strong\">Revenue</h1>\n        <p className=\"typography-body-md text-ws-static-subtle tabular-nums\">{summary}</p>\n      </div>\n      <SegmentedControl\n        size=\"sm\"\n        aria-label=\"Period\"\n        value={period}\n        onValueChange={(value) => onPeriodChange(value as Period)}\n      >\n        {PERIODS.map(({ value, label }) => (\n          <SegmentedControl.Item key={value} value={value}>\n            {label}\n          </SegmentedControl.Item>\n        ))}\n      </SegmentedControl>\n    </header>\n  );\n}\n"
    },
    {
      "path": "src/blocks/dashboard/people.assets.ts",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/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/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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qyLjsJIHD+mfuP3rduZ7JqO37TjY+WDWxfWu2tkhPUJCx8ONDOEa40WLQybFwafZ2n3fsqY1B49G9voT+mq//2Q==',\n};\n"
    },
    {
      "path": "src/blocks/dashboard/person-avatar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/person-avatar.tsx",
      "content": "'use client';\n\nimport type { AvatarColor } from '@/components/ui/wideset/avatar/Avatar.colors';\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' | 'status' | 'className' | 'title' | 'aria-hidden'\n> & {\n  /** The person's full name: the key their photo is stored under. */\n  name: string;\n  initials: string;\n  /** The colour of the initials. A photo takes none. */\n  color?: AvatarColor;\n  /** Empty beside the person's name (the default); their name when the avatar stands alone. */\n  alt?: string;\n};\n\n/**\n * A person's avatar: their photo when there is one, their initials otherwise, which is also what\n * shows if the photo fails to load. The one place the block makes that choice, so a list that\n * mixes photos and initials is still drawn the same way everywhere.\n */\nexport function PersonAvatar({ name, initials, color, alt = '', ...avatar }: PersonAvatarProps) {\n  const photo = PHOTOS[name];\n  return photo ? (\n    <Avatar src={photo} alt={alt} initials={initials} {...avatar} />\n  ) : (\n    <Avatar initials={initials} color={color} {...avatar} />\n  );\n}\n"
    },
    {
      "path": "src/blocks/dashboard/revenue-chart.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/revenue-chart.tsx",
      "content": "'use client';\n\n// TODO(custom): hand-built SVG line chart with a comparison series and a hover readout; no chart component and no data-viz colour tokens (uses non-semantic blue).\nimport { cn } from '@/lib/wideset/utils';\nimport { useId, useState } from 'react';\n\nimport { isoOf } from './data';\nimport { formatDay, formatMonth, formatRange, formatUsd, formatUsdCompact } from './format';\n\n// The plot in viewBox units; the SVG stretches to its box and the strokes keep their width.\nconst WIDTH = 1000;\nconst HEIGHT = 220;\n\n// Wideset has no data-visualisation colours yet: the period in view takes the blue highlight, the\n// period it is compared with stays a neutral grey, dashed so it does not rest on colour alone.\nconst CURRENT = 'stroke-(--ws-non-semantic-fill-blue-strong)';\nconst PREVIOUS = 'stroke-ws-static-subtle';\nconst DASH = '4 4';\n\n/** The axis step: 1, 2, 2.5 or 5 times a power of ten, for about four gridlines. */\nconst niceStep = (max: number) => {\n  const raw = max / 4;\n  const power = 10 ** Math.floor(Math.log10(raw));\n  return [1, 2, 2.5, 5, 10].map((factor) => factor * power).find((step) => step >= raw)!;\n};\n\n/** Which days get a date under the axis: month starts on a long period, else every few days. */\nconst labelled = (start: number, count: number) => {\n  const days = Array.from({ length: count }, (_, index) => index);\n  if (count > 62) return days.filter((index) => isoOf(start + index).endsWith('-01'));\n  // Counted back from the last day, so today always has its date.\n  const step = count <= 14 ? 3 : 7;\n  return days.filter((index) => (count - 1 - index) % step === 0);\n};\n\ntype RevenueChartProps = {\n  /** The first day of the period, and the running revenue at the close of each day so far. */\n  start: number;\n  series: number[];\n  /** The same for the period before, day for day. */\n  previousStart: number;\n  previousSeries: number[];\n  className?: string;\n};\n\n/**\n * Revenue adding up over the period so far, over the same days of the period before: one line in\n * colour, the comparison a quiet grey. Hovering the plot reads one day off both lines in the\n * legend; at rest the legend reads today, the same two numbers as the first key figure.\n */\nexport function RevenueChart({\n  start,\n  series,\n  previousStart,\n  previousSeries,\n  className,\n}: RevenueChartProps) {\n  const titleId = useId();\n  const [hover, setHover] = useState<number | null>(null);\n  const last = series.length - 1;\n\n  // Running totals only rise, so each line's last point is its highest.\n  const high = Math.max(series[last], previousSeries[last], 1);\n  const step = niceStep(high);\n  const ceiling = Math.ceil(high / step) * step;\n  const ticks = Array.from({ length: ceiling / step + 1 }, (_, index) => ceiling - index * step);\n\n  const x = (index: number) => (last ? (index / last) * WIDTH : WIDTH);\n  const y = (value: number) => HEIGHT - (value / ceiling) * HEIGHT;\n  const line = (values: number[]) =>\n    values.map((value, index) => `${index ? 'L' : 'M'}${x(index)} ${y(value)}`).join('');\n\n  // The day the readout shows: the hovered one, or today.\n  const at = hover ?? last;\n  const lines = [\n    { key: 'previous', stroke: PREVIOUS, dash: DASH, first: previousStart, values: previousSeries },\n    { key: 'current', stroke: CURRENT, dash: undefined, first: start, values: series },\n  ];\n\n  return (\n    <section aria-labelledby={titleId} className={cn('gap-ws-11 flex flex-col', className)}>\n      <div className=\"gap-ws-9 flex items-center justify-between\">\n        <h2 id={titleId} className=\"typography-label-strong-md text-ws-static-strong\">\n          Revenue to date\n        </h2>\n        {/* The period in view reads first; the plot draws it last, over the comparison. */}\n        <ul className=\"gap-ws-12 typography-label-sm flex items-center\">\n          {[...lines].reverse().map(({ key, stroke, dash, first, values }) => (\n            <li key={key} className=\"gap-ws-5 flex items-center\">\n              <svg\n                aria-hidden\n                viewBox=\"0 0 20 2\"\n                className={cn('w-ws-11 h-ws-2 overflow-visible', stroke)}\n              >\n                <line x1=\"0\" x2=\"20\" y1=\"1\" y2=\"1\" strokeWidth={2} strokeDasharray={dash} />\n              </svg>\n              <span className=\"text-ws-static-subtle\">\n                {hover === null\n                  ? formatRange(first, first + last)\n                  : formatRange(first + at, first + at)}\n              </span>\n              <span\n                className={cn(\n                  'tabular-nums',\n                  dash ? 'text-ws-static-base' : 'text-ws-static-strong',\n                )}\n              >\n                {formatUsd(values[at])}\n              </span>\n            </li>\n          ))}\n        </ul>\n      </div>\n\n      <figure aria-label=\"Revenue adding up over the period, against the period before\">\n        <div className=\"relative h-[13.75rem]\">\n          {/* Tick values: a second SVG with no viewBox, so the text keeps its shape. */}\n          <svg aria-hidden className=\"inset-ws-0 absolute size-full overflow-visible\">\n            {ticks.map((tick) => (\n              <text\n                key={tick}\n                x=\"0\"\n                y={`${((ceiling - tick) / ceiling) * 100}%`}\n                dominantBaseline=\"middle\"\n                className=\"typography-caption-md fill-ws-static-subtle tabular-nums\"\n              >\n                {formatUsdCompact(tick)}\n              </text>\n            ))}\n          </svg>\n          <div\n            className=\"inset-y-ws-0 left-ws-18 right-ws-0 absolute\"\n            onPointerMove={(event) => {\n              const box = event.currentTarget.getBoundingClientRect();\n              const fraction = (event.clientX - box.left) / box.width;\n              setHover(Math.min(Math.max(Math.round(fraction * last), 0), last));\n            }}\n            onPointerLeave={() => setHover(null)}\n          >\n            <svg\n              viewBox={`0 0 ${WIDTH} ${HEIGHT}`}\n              preserveAspectRatio=\"none\"\n              aria-hidden\n              className=\"size-full overflow-visible\"\n            >\n              {ticks.map((tick) => (\n                <line\n                  key={tick}\n                  x1=\"0\"\n                  x2={WIDTH}\n                  y1={y(tick)}\n                  y2={y(tick)}\n                  vectorEffect=\"non-scaling-stroke\"\n                  className=\"stroke-(--ws-static-stroke-subtle)\"\n                />\n              ))}\n              {hover !== null && (\n                <line\n                  x1={x(at)}\n                  x2={x(at)}\n                  y1=\"0\"\n                  y2={HEIGHT}\n                  vectorEffect=\"non-scaling-stroke\"\n                  className=\"stroke-(--ws-static-stroke-strong)\"\n                />\n              )}\n              {lines.map(({ key, stroke, dash, values }) => (\n                <g\n                  key={key}\n                  fill=\"none\"\n                  strokeLinecap=\"round\"\n                  strokeLinejoin=\"round\"\n                  className={stroke}\n                >\n                  <path\n                    d={line(values)}\n                    strokeWidth={dash ? 1.5 : 2}\n                    strokeDasharray={dash}\n                    vectorEffect=\"non-scaling-stroke\"\n                  />\n                  {/* The day in the readout: a round cap on a zero-length line stays a circle. */}\n                  <path\n                    d={`M${x(at)} ${y(values[at])}h0`}\n                    strokeWidth={8}\n                    vectorEffect=\"non-scaling-stroke\"\n                  />\n                </g>\n              ))}\n            </svg>\n          </div>\n        </div>\n        <div className=\"pl-ws-18 mt-ws-5\">\n          <svg aria-hidden className=\"h-ws-9 w-full overflow-visible\">\n            {labelled(start, series.length).map((index) => (\n              <text\n                key={index}\n                x={`${last ? (index / last) * 100 : 100}%`}\n                y=\"50%\"\n                dominantBaseline=\"middle\"\n                textAnchor={index === 0 ? 'start' : index === last ? 'end' : 'middle'}\n                className=\"typography-caption-md fill-ws-static-subtle\"\n              >\n                {series.length > 62 ? formatMonth(start + index) : formatDay(start + index)}\n              </text>\n            ))}\n          </svg>\n        </div>\n      </figure>\n    </section>\n  );\n}\n"
    },
    {
      "path": "src/blocks/dashboard/sidebar.tsx",
      "type": "registry:file",
      "target": "blocks/wideset/dashboard/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 DashboardSidebar(\n  props: Pick<SidebarProps, 'id' | 'collapsed' | 'onCollapsedChange'>,\n) {\n  const [active, setActive] = useState('revenue');\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"
    }
  ],
  "meta": {
    "version": "1.1.0",
    "commit": "a734f9f0"
  }
}
