# Deal record (Notchset): prompt.md (v2.0.0)

- id: `deal-record` · version 2.0.0 · block · pro (Pro)
- category: Industry: Sales
- build: one set of files for every shadcn style
- install: `npx shadcn@latest add @notchset-pro/deal-record`
- npm dependencies: lucide-react@^1
- registry dependencies: utils, https://notchset.dev/r/notchset-foundation.json, @notchset/avatar, @notchset/avatar-stack, @notchset/badge, @notchset/banner, @notchset/button, @notchset/disclosure, @notchset/empty-state, @notchset/icon-button, @notchset/menu, @notchset/select, @notchset-pro/split-button, @notchset/tabs, @notchset/toast
- docs: https://notchset.dev/blocks/deal-record
- The install command carries everything this item needs (files, CSS, tokens, npm and registry dependencies). Prefer it to copying source by hand.

One deal's page from the system's own pieces, with one primary. The header names the company, the stage, who is on it and who has it, then Send proposal and More. An agent's banner asks for an OK, then folds. Activity and Files are tabs; an agent's entry folds its steps; Files starts empty. Archive offers Undo..

## Build it
- Stack: React 18.3 or 19, TypeScript, Tailwind CSS v4 utility classes on the foundation's roles, a components.json (imports use its aliases).
- Packages: `lucide-react@^1` beyond `react` and `react-dom`.
- Files: `components/ui/notchset/blocks/deal-record.tsx`; shared code: `lib/notchset/icons.ts`.
- Registry dependencies, installed with it automatically: shadcn `utils` (cn), `notchset-foundation`, `avatar`, `avatar-stack`, `badge`, `banner`, `button`, `disclosure`, `empty-state`, `icon-button`, `menu`, `select`, `split-button`, `tabs`, `toast`.
- Builds: one set of files, the same for every shadcn style.
- Exports to keep: `DEAL_RECORD_LABELS`, `DealRecord`, and every exported type.
- CSS: the install adds the notchset foundation (its roles, keyframes and motion switch, reading your shadcn tokens for colour) to your global stylesheet once. Nothing to import by hand.
- Re-running `add` (or `--overwrite`) re-applies those rules: put overrides in your own CSS, never in the installed rules.
- Colours: every part reads the foundation's roles (`--ns-canvas`, `--ns-ink`, `--ns-line`, `--ns-signal` …), which read your shadcn tokens (`--background`, `--foreground`, `--border`, `--destructive` …), plus the optional `--success` and `--warning`. Retheme on `:root` or any container; never add Tailwind colour classes inside the component.
- This item reads `--ns-ink`, `--ns-ink-2`, `--ns-ink-3`, `--ns-line`, `--ns-radius-card`, `--ns-raised`, `--ns-signal`, `--ns-text-heading`, `--ns-text-meta`, `--ns-text-small`, `--ns-time-color`, `--ns-weight-medium`, `--ns-weight-strong`.
- Retune it (on any ancestor) with the foundation's roles and hooks: `--ns-agent-b`, `--ns-agent-c`, `--ns-agent-d`, `--ns-agent-drift`, `--ns-agent-fill`, `--ns-agent-h1`, `--ns-agent-h2`, `--ns-agent-h3`, `--ns-agent-shift`, `--ns-avatar-card`, `--ns-avatar-lg`, `--ns-avatar-md`, `--ns-avatar-sm`, `--ns-avatar-xs`, `--ns-bad`, `--ns-bad-ink`, `--ns-band`, `--ns-band-edge`, `--ns-band-grade`, `--ns-band-optimal`, `--ns-banner-beat`, `--ns-banner-radius`, `--ns-beat`, `--ns-beat-ease`, `--ns-bezel`, `--ns-bloom-close`, `--ns-bloom-open`, `--ns-bloom-rise`, `--ns-btn-bad`, `--ns-btn-bad-hover`, `--ns-btn-bad-line`, `--ns-btn-bezel`, `--ns-btn-chosen`, `--ns-btn-gone`, `--ns-btn-morph`, `--ns-btn-ok`, `--ns-btn-press`, `--ns-btn-release`, `--ns-btn-result`, `--ns-btn-roll`, `--ns-btn-stagger`, `--ns-btn-stagger-step`, `--ns-btn-tick`, `--ns-btn-tonal`, `--ns-btn-tonal-edge`, `--ns-btn-tonal-hover`, `--ns-bulk-clear`, `--ns-button`, `--ns-button-field-inset`, `--ns-button-lg`, `--ns-button-sm`, `--ns-canvas`, `--ns-card-tilt`, `--ns-cat-1`, `--ns-cat-2`, `--ns-cat-3`, `--ns-cat-4`, `--ns-cat-5`, `--ns-cat-6`, `--ns-check`, `--ns-check-round`, `--ns-cheer-1`, `--ns-cheer-2`, `--ns-cheer-3`, `--ns-cheer-edge`, `--ns-cheer-fold`, `--ns-cheer-glow`, `--ns-cheer-lift`, `--ns-chip`, `--ns-chip-pick`, `--ns-control`, `--ns-control-lg`, `--ns-control-pad`, `--ns-control-sm`, `--ns-corner`, `--ns-danger`, `--ns-deep`, `--ns-deep-ink`, `--ns-deep-ink-2`, `--ns-deep-line`, `--ns-depth-card`, `--ns-depth-lift`, `--ns-depth-surface`, `--ns-dialog`, `--ns-dialog-grow`, `--ns-dialog-lg`, `--ns-dialog-max`, `--ns-dialog-shrink`, `--ns-dialog-sm`, `--ns-dialog-top`, `--ns-dock-bottom`, `--ns-drop`, `--ns-ease`, `--ns-ease-arrive`, `--ns-ease-breathe`, `--ns-ease-drum`, `--ns-ease-exit`, `--ns-ease-fling`, `--ns-ease-glide`, `--ns-ease-grow`, `--ns-ease-move`, `--ns-ease-panel`, `--ns-ease-pop`, `--ns-ease-press`, `--ns-ease-spring`, `--ns-ebg-arm`, `--ns-ebg-lit`, `--ns-emoji`, `--ns-emoji-md`, `--ns-emoji-sm`, `--ns-field`, `--ns-field-edge`, `--ns-field-h`, `--ns-fill`, `--ns-fill-time`, `--ns-flood-arc`, `--ns-flood-aurora`, `--ns-flood-behind-1`, `--ns-flood-behind-2`, `--ns-flood-bloom`, `--ns-flood-deep`, `--ns-flood-dial-bloom`, `--ns-flood-glass`, `--ns-flood-grain`, `--ns-flood-image`, `--ns-flood-ink`, `--ns-flood-ink-low`, `--ns-flood-light`, `--ns-flood-mid`, `--ns-flood-pale`, `--ns-flood-pane`, `--ns-flood-pane-edge`, `--ns-flood-pill-ink`, `--ns-flood-ribbon`, `--ns-flood-ribbon-core`, `--ns-flood-shadow`, `--ns-flood-sheen`, `--ns-flood-wash`, `--ns-font-body`, `--ns-font-display`, `--ns-font-mono`, `--ns-font-script`, `--ns-glass`, `--ns-glass-blur`, `--ns-glass-shadow`, `--ns-glow`, `--ns-glyph-pad`, `--ns-grain`, `--ns-gutter`, `--ns-header`, `--ns-help-max`, `--ns-hit`, `--ns-hover`, `--ns-icon`, `--ns-icon-lg`, `--ns-icon-sm`, `--ns-icon-stroke`, `--ns-info`, `--ns-info-ink`, `--ns-ink`, `--ns-ink-2`, `--ns-ink-3`, `--ns-ink-4`, `--ns-layer-bar`, `--ns-layer-modal`, `--ns-layer-panel`, `--ns-layer-popup`, `--ns-layer-sticky`, `--ns-layer-tip`, `--ns-layer-toast`, `--ns-layer-zoom`, `--ns-lead-body`, `--ns-lead-figure`, `--ns-lead-large`, `--ns-lead-meta`, `--ns-lead-small`, `--ns-lead-sub`, `--ns-lead-title`, `--ns-leading`, `--ns-leading-prose`, `--ns-leading-title`, `--ns-lift`, `--ns-light-1`, `--ns-light-2`, `--ns-light-3`, `--ns-light-spread`, `--ns-light-strength`, `--ns-line`, `--ns-line-soft`, `--ns-lit-edge`, `--ns-map-grass`, `--ns-map-water`, `--ns-mark-edge`, `--ns-mark-lifted`, `--ns-mark-rest`, `--ns-mark-swap`, `--ns-marker`, `--ns-marker-ink`, `--ns-mc-place`, `--ns-mc-roll`, `--ns-measure`, `--ns-menu-dy`, `--ns-menu-lit`, `--ns-menu-pad`, `--ns-menu-row`, `--ns-menu-rule`, `--ns-mesh`, `--ns-mesh-frost`, `--ns-nest-inset`, `--ns-nest-outer`, `--ns-nest-r`, `--ns-notch-ease`, `--ns-ok`, `--ns-ok-ink`, `--ns-on-fill`, `--ns-orb-body`, `--ns-orb-cool`, `--ns-orb-core`, `--ns-orb-dawn`, `--ns-orb-deep`, `--ns-orb-edge`, `--ns-orb-grain`, `--ns-orb-ground`, `--ns-orb-halo`, `--ns-orb-inner`, `--ns-orb-key`, `--ns-orb-lift`, `--ns-orb-limb`, `--ns-orb-limb-from`, `--ns-orb-rim`, `--ns-orb-skin-hi`, `--ns-orb-skin-lo`, `--ns-orb-skin-mid`, `--ns-orb-warm`, `--ns-palette-min`, `--ns-panel`, `--ns-panel-room`, `--ns-panel-w`, `--ns-panel-w-lg`, `--ns-pick-slot`, `--ns-pill-prop`, `--ns-play-fill`, `--ns-play-fill-color`, `--ns-play-lift`, `--ns-play-lift-y`, `--ns-play-open`, `--ns-play-open-content`, `--ns-play-press`, `--ns-play-press-box`, `--ns-play-reduced`, `--ns-play-ring`, `--ns-play-roll`, `--ns-play-shake`, `--ns-play-spring`, `--ns-play-swap`, `--ns-play-swap-blur`, `--ns-press-min`, `--ns-press-scale`, `--ns-press-x`, `--ns-press-y`, `--ns-primary-hover`, `--ns-primary-press`, `--ns-prism-edge`, `--ns-prism-glint`, `--ns-prism-sheen`, `--ns-prism-tint`, `--ns-pulse`, `--ns-radius`, `--ns-radius-2xl`, `--ns-radius-button`, `--ns-radius-button-lg`, `--ns-radius-button-sm`, `--ns-radius-card`, `--ns-radius-check`, `--ns-radius-control`, `--ns-radius-control-sm`, `--ns-radius-float`, `--ns-radius-full`, `--ns-radius-lg`, `--ns-radius-mark`, `--ns-radius-menu-row`, `--ns-radius-modal`, `--ns-radius-pill`, `--ns-radius-sm`, `--ns-radius-xl`, `--ns-radius-xs`, `--ns-raised`, `--ns-ramp-1`, `--ns-ramp-2`, `--ns-ramp-3`, `--ns-ramp-4`, `--ns-ramp-5`, `--ns-ramp-shine`, `--ns-range`, `--ns-rest-1`, `--ns-rest-2`, `--ns-rest-3`, `--ns-rise`, `--ns-row`, `--ns-row-compact`, `--ns-row-hue`, `--ns-scrim`, `--ns-search-h`, `--ns-segment`, `--ns-segment-inset`, `--ns-segment-lift`, `--ns-segment-sm`, `--ns-selected`, `--ns-series`, `--ns-series-core`, `--ns-series-glint`, `--ns-series-tint`, `--ns-shadow-dialog`, `--ns-shadow-float`, `--ns-shadow-lift`, `--ns-shadow-panel`, `--ns-sheet`, `--ns-sheet-back`, `--ns-sheet-bottom`, `--ns-sheet-drop`, `--ns-sheet-rise`, `--ns-shift`, `--ns-side`, `--ns-signal`, `--ns-signal-ink`, `--ns-signal-wash`, `--ns-sk-figure`, `--ns-sk-land`, `--ns-sk-p`, `--ns-sk-p0`, `--ns-sk-p1`, `--ns-sk-p2`, `--ns-sk-p3`, `--ns-sk-p4`, `--ns-sk-p5`, `--ns-sk-p6`, `--ns-sk-p7`, `--ns-sk-read`, `--ns-sk-sweep`, `--ns-skeleton`, `--ns-skeleton-bone`, `--ns-skeleton-bone-light`, `--ns-skeleton-light`, `--ns-slab`, `--ns-slab-edge`, `--ns-slab-ink`, `--ns-sleep-awake`, `--ns-sleep-deep`, `--ns-sleep-light`, `--ns-sleep-rem`, `--ns-space-1`, `--ns-space-2`, `--ns-space-3`, `--ns-space-4`, `--ns-space-5`, `--ns-space-6`, `--ns-space-8`, `--ns-space-section`, `--ns-stack-fan`, `--ns-stack-fan-gap`, `--ns-stack-fan-lag`, `--ns-stack-on`, `--ns-stagger-item`, `--ns-stagger-mark`, `--ns-stagger-max`, `--ns-standing-critical`, `--ns-standing-in`, `--ns-standing-out`, `--ns-state-doing`, `--ns-state-done`, `--ns-state-review`, `--ns-state-todo`, `--ns-step`, `--ns-step-from`, `--ns-step-sign`, `--ns-swipe-surface`, `--ns-switch-h`, `--ns-switch-w`, `--ns-text-body`, `--ns-text-control`, `--ns-text-control-lg`, `--ns-text-display`, `--ns-text-editorial`, `--ns-text-empty`, `--ns-text-figure`, `--ns-text-giant`, `--ns-text-heading`, `--ns-text-headline`, `--ns-text-input`, `--ns-text-large`, `--ns-text-lede`, `--ns-text-meta`, `--ns-text-record`, `--ns-text-sentence`, `--ns-text-small`, `--ns-text-sub`, `--ns-text-title`, `--ns-theme-fade`, `--ns-tile-shadow`, `--ns-time-born`, `--ns-time-color`, `--ns-time-confirm`, `--ns-time-dialog`, `--ns-time-fling`, `--ns-time-flip`, `--ns-time-glide`, `--ns-time-grow`, `--ns-time-hold`, `--ns-time-menu`, `--ns-time-page`, `--ns-time-panel`, `--ns-time-quick`, `--ns-time-roll`, `--ns-time-settle`, `--ns-time-snap`, `--ns-time-spin`, `--ns-time-spring`, `--ns-time-sweep`, `--ns-time-toast`, `--ns-tint`, `--ns-tint-c`, `--ns-tint-ease`, `--ns-tint-fill`, `--ns-tint-gap`, `--ns-tint-h1`, `--ns-tint-h2`, `--ns-tint-h3`, `--ns-tint-ink`, `--ns-tint-row`, `--ns-tip-fold`, `--ns-tip-grow`, `--ns-toast-bottom`, `--ns-toast-gap`, `--ns-toast-left`, `--ns-toast-lift`, `--ns-toast-peek`, `--ns-toast-scale`, `--ns-toast-w`, `--ns-touch`, `--ns-tracking-body`, `--ns-tracking-caps`, `--ns-tracking-control`, `--ns-tracking-display`, `--ns-tracking-headline`, `--ns-tracking-sub`, `--ns-tracking-title`, `--ns-warn`, `--ns-warn-ink`, `--ns-wash-clay`, `--ns-wash-dusk`, `--ns-wash-graphite`, `--ns-wash-ink`, `--ns-wash-sage`, `--ns-wash-sand`, `--ns-weight-light`, `--ns-weight-medium`, `--ns-weight-regular`, `--ns-weight-strong`, `--ns-well`, `--ns-width-lg`, `--ns-width-md`, `--ns-width-sm`, `--ns-width-xl`.
- Never add Tailwind colour classes inside the component.

```tsx
import { Avatar } from "@/components/ui/notchset/avatar";
```

## Parts
- A single export that takes props.

## Match the original
- Read `components/ui/notchset/blocks/deal-record.tsx` as the reference implementation before changing or recreating anything, and match it: sizes, colours per theme, motion timings, copy and behaviour.
- If you deviate (a prop you can't honour, a style you changed, a dependency you swapped), say so in your reply, part by part.
- Keep the accessibility contract, the keyboard map and the motion levels listed below.

## Use it when
- The page for one record a team works through stages with one next step at a time.

### Not when
- A card on a board is Deal card; a side panel over a list is Side panel.

## Built from
- avatar (`avatar`), installed with it: reuse it, don't rebuild it
- avatar-stack (`avatar-stack`), installed with it: reuse it, don't rebuild it
- badge (`badge`), installed with it: reuse it, don't rebuild it
- banner (`banner`), installed with it: reuse it, don't rebuild it
- button (`button`), installed with it: reuse it, don't rebuild it
- disclosure (`disclosure`), installed with it: reuse it, don't rebuild it
- empty-state (`empty-state`), installed with it: reuse it, don't rebuild it
- icon-button (`icon-button`), installed with it: reuse it, don't rebuild it
- menu (`menu`), installed with it: reuse it, don't rebuild it
- select (`select`), installed with it: reuse it, don't rebuild it
- split-button (`split-button`), installed with it: reuse it, don't rebuild it
- tabs (`tabs`), installed with it: reuse it, don't rebuild it
- toast (`toast`), installed with it: reuse it, don't rebuild it
- Icons (shared helper, ships with it)

## Mistakes
- A second ink primary on the page: the Files action is secondary
- Collapsing Activity and Files: they are the page's main content

## Usage

```tsx
"use client";
import * as React from "react";
import { Clock, FileText, Send } from "@/lib/notchset/icons";
import { Avatar } from "@/components/ui/notchset/avatar";
import { CompanyMark } from "@/components/ui/notchset/company-mark";
import { DealRecord, type DealEvent } from "@/components/ui/notchset/blocks/deal-record";
import { Toaster } from "@/components/ui/notchset/toast";
import { brandGlyph } from "./brands";

/*
 * One deal's page, Notion · Seat expansion, built only from the system's pieces with one ink primary (Send
 * proposal). Scout's banner asks for an OK: Review opens the proposal row, Approve lands it, the banner says
 * "Proposal approved" and folds. Activity and Files are tabs; Scout's entry folds its 3 steps. Files starts empty;
 * Upload the proposal fills it. More holds Copy link, Mark as won, Archive (a toast with Undo) and Delete. What you do
 * lands in Activity.
 */
const PHOTO: Record<string, string> = {
  "Maya Lindqvist": "https://notchset.dev/media/people/person-03.webp",
  "Priya Raman": "https://notchset.dev/media/people/person-01.webp",
  "Ines Duarte": "https://notchset.dev/media/people/person-07.webp",
  "Ana Ruiz": "https://notchset.dev/media/people/person-05.webp",
};
const W = {
  title: "Notion · Seat expansion",
  facts: "$48,000 · 40 seats · closes Dec 12 · Berlin",
  stage: "Proposal",
  me: "Maya Lindqvist",
  owners: ["Priya Raman", "Maya Lindqvist", "Ines Duarte", "Ana Ruiz"],
  send: { verb: "Send proposal", detail: "To Lena at Notion, now", later: "Send Monday 9:00", laterDetail: "Lands at the start of her week", sent: "Sent", scheduled: "Scheduled" },
  review: {
    title: "Scout needs your OK on the proposal",
    line: "Drafted from Tuesday's call · 40 seats, 10% off the list price",
    row: "Notion proposal v2 · $48,000",
    rowLine: "40 seats at $1,200, 10% off · valid until Dec 12",
    verb: "Approve",
    done: "Approved",
    handled: "Proposal approved",
    reason: "Ready to send · Scout logged it on the deal",
  },
  events: {
    drafted: "drafted the proposal from Tuesday's call notes",
    moved: "moved the deal to Proposal",
    seats: "raised the seats from 28 to 40",
    sent: "sent the proposal to Lena at Notion",
    scheduled: "scheduled the proposal for Monday 9:00",
    approved: "approved Scout's proposal",
    uploaded: "uploaded Notion proposal v2.pdf",
    gave: "gave the deal to {name}",
    archived: "archived the deal",
    restored: "restored the deal",
    now: "now",
  },
  steps: [
    { text: "Read the notes from Tuesday's call with Lena Ortiz", time: "11:02" },
    { text: "Priced 40 seats at $1,200 with the 10% team discount", time: "11:03" },
    { text: "Drafted Notion proposal v2 for your OK", time: "11:04" },
  ],
  files: { title: "No files on this deal yet", line: "Proposals and contracts for Notion land here, newest first.", done: "1 file on this deal", verb: "Upload the proposal", file: "Notion proposal v2.pdf", by: "Maya Lindqvist · just now", said: "Notion proposal v2.pdf added" },
};

const person = (name: string) => ({ name, src: PHOTO[name] });

export default function DealRecordDemo() {
  const C = W;
  const scout = { name: "Scout", variant: "agent" as const };
  const [events, setEvents] = React.useState<DealEvent[]>(() => [
    { id: "drafted", who: scout, text: C.events.drafted, when: "2h", steps: C.steps },
    { id: "moved", who: person("Priya Raman"), text: C.events.moved, when: "3h" },
    { id: "seats", who: person("Ines Duarte"), text: C.events.seats, when: "Yesterday" },
  ]);
  const seq = React.useRef(0);
  const note = (text: string) => setEvents((xs) => [{ id: `e${++seq.current}`, who: person(C.me), text, when: C.events.now }, ...xs].slice(0, 5));
  const glyph = brandGlyph("notion");
  return (
    <div className="flex w-full justify-center">
      <DealRecord
        mark={<CompanyMark name="Notion" color="#191919" glyph={glyph} size="lg" />}
        title={C.title}
        facts={C.facts}
        stage={{ label: C.stage, tone: "info" }}
        owners={C.owners.map((n) => ({ value: n, label: n, icon: <Avatar name={n} src={PHOTO[n]} size="xs" /> }))}
        defaultOwner="Priya Raman"
        onOwnerChange={(v) => note(C.events.gave.replace("{name}", v === C.me ? "herself" : (v.split(" ")[0] ?? v)))}
        ways={[
          { id: "now", verb: C.send.verb, icon: Send, detail: C.send.detail, onClick: () => note(C.events.sent) },
          { id: "monday", verb: C.send.later, icon: Clock, detail: C.send.laterDetail, onClick: () => note(C.events.scheduled) },
        ]}
        doneLabel={(id) => (id === "now" ? C.send.sent : C.send.scheduled)}
        review={{
          agent: "Scout",
          title: C.review.title,
          line: C.review.line,
          item: { id: "proposal", mark: <CompanyMark name="Notion" color="#191919" glyph={glyph} size="sm" />, title: C.review.row, line: C.review.rowLine, verb: C.review.verb, doneVerb: C.review.done },
          handled: { title: C.review.handled, reason: C.review.reason },
        }}
        onApprove={() => note(C.events.approved)}
        activity={events}
        files={{
          title: C.files.title,
          line: C.files.line,
          doneTitle: C.files.done,
          ghost: ["file", "lines", "figure"],
          verb: C.files.verb,
          announce: C.files.said,
          rows: [
            <React.Fragment key="file">
              <span aria-hidden className="grid h-8 w-6 shrink-0 place-items-center rounded-[var(--ns-radius-xs)] bg-[color-mix(in_oklab,var(--ns-bad)_12%,var(--ns-raised))] text-[var(--ns-bad-ink)]">
                <FileText className="size-3.5" />
              </span>
              <span className="flex min-w-0 flex-1 flex-col">
                <span className="truncate text-[length:var(--ns-text-body)] font-[number:var(--ns-weight-medium)] text-[var(--ns-ink)]">{C.files.file}</span>
                <span className="truncate text-[length:var(--ns-text-meta)] text-[var(--ns-ink-3)]">{C.files.by}</span>
              </span>
            </React.Fragment>,
          ],
        }}
        onUpload={() => note(C.events.uploaded)}
        onArchive={(a) => note(a ? C.events.archived : C.events.restored)}
      />
      {/* Archive says so with Undo; Undo says "Deal restored" */}
      <Toaster align="center" />
    </div>
  );
}
```

This example also uses `company-mark` (https://notchset.dev/components/company-mark). Installing this item doesn't bring them; to paste the example as it is: `npx shadcn@latest add @notchset-pro/deal-record @notchset/company-mark`. The `@notchset-pro` items are Pro: they need the registries in components.json and the key (Setup).

## Props

| Prop | Type | Default | What it does |
|---|---|---|---|
| `mark` | `React.ReactNode` |  | the company's mark (a CompanyMark with its brand glyph) |
| `title` | `string` |  | the deal's name, company first ("Airtable · Seat expansion") |
| `facts` | `React.ReactNode` |  | the facts under it, one line ("$48,000 · 40 seats · closes Dec 12 · Berlin") |
| `stage` | `{ label: string; tone: "info" \| "signal" \| "neutral" \| "ok" \| "warn" }` |  | the stage it stands in, as a word, and its tone |
| `team` | `AvatarStackPerson[]` |  | who is on the deal, as a face stack beside the owner (optional; the record draws none without it) |
| `owners` | `SelectOption<string>[]` |  | who can have it, and who has it (uncontrolled start) |
| `defaultOwner` | `string` |  | Required. |
| `onOwnerChange` | `(value: string) => void` |  |  |
| `ways` | `SplitWay[]` |  | the one primary: the ways to send; each way's onClick is called when it runs |
| `doneLabel` | `(way: string) => React.ReactNode` |  | the word the verb lands on once it ran, per way |
| `review` | `DealReview` |  | an agent asking for an OK; leave it out for none |
| `onApprove` | `() => void` |  |  |
| `activity` | `DealEvent[]` |  | Required. |
| `files` | `DealFiles` |  | Required. |
| `onUpload` | `() => void` |  |  |
| `onArchive` | `(archived: boolean) => void` |  |  |
| `labels` | `Partial<DealRecordLabels>` |  |  |

Full docs: https://notchset.dev/blocks/deal-record

## Customising
- Colours: every part reads the foundation's roles (`--ns-canvas`, `--ns-ink`, `--ns-line`, `--ns-signal` …), which read your shadcn tokens (`--background`, `--foreground`, `--border`, `--destructive` …), plus the optional `--success` and `--warning`. Retheme on `:root` or any container; never add Tailwind colour classes inside the component.
- Dark mode follows the `.dark` class or `data-theme="dark"` on an ancestor (the shadcn and next-themes conventions).
- Update later: Commit or stash local changes first (or copy the files), so the update can be undone. Read https://notchset.dev/r/changelog.json for the new versions: a major version, an entry marked breaking or a merge says what to change. Then re-run the install with `--overwrite`, on a branch. It replaces the component's files, the shared helper files they import, and the item's CSS rules in the global stylesheet, so review the whole diff (components, shared files, CSS), re-apply your own edits, and run the app's typecheck, tests and build.

## Keyboard

| Keys | Action |
|---|---|
| Tab | the header's controls, the banner, the tabs, the panel |
| Left or Right on a tab | the other tab |
| ⌘Z after Archive | Undo |

## Performance

- Its pieces only; nothing runs at rest.

## Responsive

- phone: the header's actions wrap under the name
- dark (tokens)
- reduced motion: every result lands at once

## Motion inventory

| Interaction | What moves |
|---|---|
| an archived deal's name dims, and comes back when restored | opacity, --ns-time-color. Reduced motion: the same; colour changes are kept. |
| the agent's banner folds once approved and what is under glides up | Banner's own fold (--ns-time-panel, --ns-ease-move). Reduced motion: folds at once. |

## Accessibility contract (preserve when editing)
- An article named for the deal.
- Assign to is a labelled select; the split button names its chevron; More names the deal; the tabs are a tablist; an agent's steps are a disclosure; the toasts and the banner speak in a status region.

## Install

```bash
# npm
npx shadcn@latest add @notchset-pro/deal-record
# pnpm
pnpm dlx shadcn@latest add @notchset-pro/deal-record
# yarn
yarn dlx shadcn@latest add @notchset-pro/deal-record
# bun
bunx --bun shadcn@latest add @notchset-pro/deal-record
```

Pro item: needs the `@notchset-pro` registry in `components.json` and `NOTCHSET_TOKEN` in `.env.local` (https://notchset.dev/account). Setup: https://notchset.dev/docs/pro. Every components.json `style` gets the same files.

### Manual

1. Install the packages: `npm install lucide-react@^1`.
2. Copy `components/ui/notchset/blocks/deal-record.tsx`, `lib/notchset/icons.ts` from https://notchset.dev/r/pro/deal-record.json, sent with the header `Authorization: Bearer ${NOTCHSET_TOKEN}` (each file's `content`, at its `target`), keeping the `@/` path alias of your tsconfig.
3. Add what it builds on: shadcn `utils` (cn), `notchset-foundation`, `avatar`, `avatar-stack`, `badge`, `banner`, `button`, `disclosure`, `empty-state`, `icon-button`, `menu`, `select`, `split-button`, `tabs`, `toast`.

The foundation (the tokens listed above, keyframes and motion levels) installs once with the first component; its CSS is public at https://notchset.dev/r/notchset-foundation.json.
