@nadicodeai/ui 12.1.257 → 12.1.259

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import { DropdownMenuCheckboxItem, DropdownMenuGroup, DropdownMenuItem, Dropdown
7
7
  * @family Menus
8
8
  * @when "Use ContextMenu for power-user shortcuts on right-click or long-press over a row, file, or canvas object." (https://vercel.com/geist/context-menu) "ContextMenu must never be the only entry point for an action. Mirror every item in a visible `Menu` trigger or row button so mouse-only and keyboard-only users have parity." (https://vercel.com/geist/context-menu) Ours: inside `@nadicodeai/ui` only, which does not export it: `ActionContextMenu` draws it for a record. A right-click on a canvas or a surface no record owns, whose commands are also reachable another way, is a composition built on it in this package.
9
9
  * @instead "For a global command palette, use `CommandMenu`; for a dropdown opened from a visible trigger, use `Menu`." (https://vercel.com/geist/context-menu) Ours: those are `CommandDialog` and `DropdownMenu`. A record's right-click is `ActionContextMenu`, from the same data as its `ActionMenu`.
10
- * @behaviour "Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu) "Position the menu at the pointer; if it would overflow the viewport, flip horizontally then vertically before clipping." (https://vercel.com/geist/context-menu) "Close on activation, Escape, and outside-click. Don’t close on hover-out." (https://vercel.com/geist/context-menu) Ours: a mouse still selects the trigger's text, so a person can copy an address from a row; on a touch screen, where a long press opens the menu, the text cannot be selected. The dropdown's surface and rows exactly, 160 px wide at least, opening 2 px right of the pointer and appearing at once, with no entry motion. A row that cannot be chosen keeps its place with its text muted, never dimmed. Destructive last, after a divider.
10
+ * @behaviour "Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu) "Position the menu at the pointer; if it would overflow the viewport, flip horizontally then vertically before clipping." (https://vercel.com/geist/context-menu) "Close on activation, Escape, and outside-click. Don’t close on hover-out." (https://vercel.com/geist/context-menu) Ours: a mouse still selects the trigger's text, so a person can copy an address from a row; on a touch screen, where a long press opens the menu, the text cannot be selected. The dropdown's surface and rows exactly, its least width of 200 px included, opening 2 px right of the pointer and appearing at once, with no entry motion. A row that cannot be chosen keeps its place with its text muted, never dimmed. Destructive last, after a divider.
11
11
  * @words "Items follow the same rules as `Menu`: Title Case `Verb + Noun` (`Open in New Tab`, `Copy URL`, `Delete Deployment`). Bare verbs are wrong." (https://vercel.com/geist/context-menu) "End with `…` only when activating opens a follow-up dialog (`Rename…`, `Move to Folder…`)." (https://vercel.com/geist/context-menu) "Group destructive items at the bottom with a divider and keep the destructive label `Verb + Noun`. `Delete` alone never ships." (https://vercel.com/geist/context-menu) Ours: sentence case, "Copy address", not Title Case. Identical to the visible menu's, in the same order; a command reached two ways reads the same both ways.
12
12
  * @access "Trigger the keyboard menu key (`Shift+F10` on Windows/Linux, the menu key, or platform equivalent) to open the same menu without right-click." (https://vercel.com/geist/context-menu) "Up/Down arrows move focus, Enter/Space activates, Escape closes and returns focus to the row." (https://vercel.com/geist/context-menu) "Don’t bury destructive items behind nested submenus. One level deep keeps keyboard navigation predictable." (https://vercel.com/geist/context-menu) Ours: the trigger must itself be focusable or hold something that is. The content requires an `aria-label` naming the menu, because nothing visible labels a menu opened at the pointer.
13
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/components/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAIlF,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAKpC;;;;;;;;;GASG;AACH,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE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iBAAS,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,qBAS5E;AAED,iBAAS,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,wBAAwB,CAAC,qBAE5F;AAED,iBAAS,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,sBAAsB,CAAC,qBAExF;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,qBAEtF;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,qBAEtF;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,qBAEpF;AAED,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
1
+ {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../src/components/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAIlF,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAKpC;;;;;;;;;GASG;AACH,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,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qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,qBAS5E;AAED,iBAAS,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,wBAAwB,CAAC,qBAE5F;AAED,iBAAS,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,sBAAsB,CAAC,qBAExF;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,qBAEtF;AAED,iBAAS,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,qBAEtF;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,qBAEpF;AAED,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
@@ -12,7 +12,7 @@ import { DropdownMenuCheckboxItem, DropdownMenuGroup, DropdownMenuItem, Dropdown
12
12
  * @family Menus
13
13
  * @when "Use ContextMenu for power-user shortcuts on right-click or long-press over a row, file, or canvas object." (https://vercel.com/geist/context-menu) "ContextMenu must never be the only entry point for an action. Mirror every item in a visible `Menu` trigger or row button so mouse-only and keyboard-only users have parity." (https://vercel.com/geist/context-menu) Ours: inside `@nadicodeai/ui` only, which does not export it: `ActionContextMenu` draws it for a record. A right-click on a canvas or a surface no record owns, whose commands are also reachable another way, is a composition built on it in this package.
14
14
  * @instead "For a global command palette, use `CommandMenu`; for a dropdown opened from a visible trigger, use `Menu`." (https://vercel.com/geist/context-menu) Ours: those are `CommandDialog` and `DropdownMenu`. A record's right-click is `ActionContextMenu`, from the same data as its `ActionMenu`.
15
- * @behaviour "Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu) "Position the menu at the pointer; if it would overflow the viewport, flip horizontally then vertically before clipping." (https://vercel.com/geist/context-menu) "Close on activation, Escape, and outside-click. Don’t close on hover-out." (https://vercel.com/geist/context-menu) Ours: a mouse still selects the trigger's text, so a person can copy an address from a row; on a touch screen, where a long press opens the menu, the text cannot be selected. The dropdown's surface and rows exactly, 160 px wide at least, opening 2 px right of the pointer and appearing at once, with no entry motion. A row that cannot be chosen keeps its place with its text muted, never dimmed. Destructive last, after a divider.
15
+ * @behaviour "Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu) "Position the menu at the pointer; if it would overflow the viewport, flip horizontally then vertically before clipping." (https://vercel.com/geist/context-menu) "Close on activation, Escape, and outside-click. Don’t close on hover-out." (https://vercel.com/geist/context-menu) Ours: a mouse still selects the trigger's text, so a person can copy an address from a row; on a touch screen, where a long press opens the menu, the text cannot be selected. The dropdown's surface and rows exactly, its least width of 200 px included, opening 2 px right of the pointer and appearing at once, with no entry motion. A row that cannot be chosen keeps its place with its text muted, never dimmed. Destructive last, after a divider.
16
16
  * @words "Items follow the same rules as `Menu`: Title Case `Verb + Noun` (`Open in New Tab`, `Copy URL`, `Delete Deployment`). Bare verbs are wrong." (https://vercel.com/geist/context-menu) "End with `…` only when activating opens a follow-up dialog (`Rename…`, `Move to Folder…`)." (https://vercel.com/geist/context-menu) "Group destructive items at the bottom with a divider and keep the destructive label `Verb + Noun`. `Delete` alone never ships." (https://vercel.com/geist/context-menu) Ours: sentence case, "Copy address", not Title Case. Identical to the visible menu's, in the same order; a command reached two ways reads the same both ways.
17
17
  * @access "Trigger the keyboard menu key (`Shift+F10` on Windows/Linux, the menu key, or platform equivalent) to open the same menu without right-click." (https://vercel.com/geist/context-menu) "Up/Down arrows move focus, Enter/Space activates, Escape closes and returns focus to the row." (https://vercel.com/geist/context-menu) "Don’t bury destructive items behind nested submenus. One level deep keeps keyboard navigation predictable." (https://vercel.com/geist/context-menu) Ours: the trigger must itself be focusable or hold something that is. The content requires an `aria-label` naming the menu, because nothing visible labels a menu opened at the pointer.
18
18
  */
@@ -26,7 +26,7 @@ function ContextMenuTrigger({ className, ...props }) {
26
26
  return (_jsx(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", className: cn("select-none [@media(hover:hover)_and_(pointer:fine)]:select-auto", className), ...props }));
27
27
  }
28
28
  function ContextMenuPopup({ className, align = "start", alignOffset = 0, density = "comfortable", side = "right", sideOffset = 2, ...props }) {
29
- return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Positioner, { className: "isolate z-50 outline-none", align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, collisionPadding: 8, children: _jsx(ContextMenuPrimitive.Popup, { "data-slot": "context-menu-content", "data-density": density, className: cn("pointer-events-auto", menuSurface, "min-w-[min(10rem,var(--available-width))]", className), ...props }) }) }));
29
+ return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Positioner, { className: "isolate z-50 outline-none", align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, collisionPadding: 8, children: _jsx(ContextMenuPrimitive.Popup, { "data-slot": "context-menu-content", "data-nc-ui": "", "data-density": density, className: cn("pointer-events-auto", menuSurface, className), ...props }) }) }));
30
30
  }
31
31
  function ContextMenuContent({ "aria-label": name, ...props }) {
32
32
  return _jsx(ContextMenuPopup, { "aria-label": name, ...props });
@@ -84,7 +84,7 @@ export type ObjectPageProps = {
84
84
  * @family Compositions
85
85
  * @when One thing a person opened from a list and now reads or acts on: a customer, a partner, an Installation, a Library entry, an Agent's Profile in Nadia's window.
86
86
  * @instead "Use Context Card to reveal entity metadata on hover or focus: a user, a deployment, a project, an API key." (https://vercel.com/geist/context-card) Ours: that hover is a `HoverCard`, drawn inside this package by a component such as `RecordTime`, never this page. A list of records is a CollectionPage; a page of settings only is a SettingsPage, whose cards are SettingsSections. A card of values a person saves is a setting card, never this one.
87
- * @behaviour "For a static key/value metadata block on a detail page, use `Description`." (https://vercel.com/geist/entity) "The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`." (https://vercel.com/geist/entity) "Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`)." (https://vercel.com/geist/entity) "Don’t put interactive controls in the title slot. Buttons, menus, and links belong in the content (`<dd>`) or in the parent layout, not the label (`<dt>`)." (https://vercel.com/geist/description) Ours: where the product draws a path, the path above the page names the object's parent, and the product's section navigation stands between the path and the card. The object card is the first card of the page: a header bar with the name at the start and the object's commands at the end (a secondary, then the primary as the filled button, then the three dots, in `PageActions`' order, on the name's row while the name keeps 128 px, as on a phone, and under it otherwise; the primary is the one thing the object waits on its viewer for, such as approving a company that waits for approval, beside its alternative as the secondary, and an object with nothing waiting has none), the mark at 64 stands beside the name and optional line in the header; with `heading` the header instead names what the card holds, the name staying in the product's path and the page's h1 read only, and with `picture` the object's picture stands beside its facts, such as a company's map of its registered office (owner, 2026-11-08); facts follow in four columns once they have 36rem and two below, or in three beside a `picture`, each value after the mark of its kind (`icon`), a long one such as an address across two columns (`wide`); the facts are the object's own details, so none repeats the product's path (the name, the status beside it) or a tab (the Agents an Agents tab lists), and beside a `picture` they keep to four rows while the picture stands as tall as they do, so no fact runs below it (owner, 2026-11-08) (an object that exists always has one; an object not made yet, such as an account's plan before it chooses one, has none, and its card is the header alone, its name saying so and, for a viewer who may, its primary making it), each a muted label over its value in body text, then an optional footer with a hint at the start and one link at the end. `figures` are the object's own readings, a `FigureRows` between the facts and the entries, under a rule and at the card's inset. Optional `entries` close the same card under a rule: rows that open one by one, each with its chevron first (it turns down when open), its title, and its summary at the trailing edge; an open entry's panel starts under its title, and on a card narrower than 28 rem, as on a phone, at the card's edge, so its sections keep the chevron's room; an entry marked `defaultOpen` opens with the page, for a link that names it. The footer takes a link only, so no Save fits in it. The object's facts change from its card, never from another tab (owner, 2026-11-08): the card's secondary command, Edit, opens a `FormDialog` of the facts the card shows. How the object behaves is its last tab, Settings, when it has one: a `SettingsPage` of one `SettingsSection` each, the destructive cards last, holding no fact the card shows, as the card holds no setting. An object with few settings and no Settings tab keeps each of them as one of its card's `entries`, its `value` the current value (read, missing, failed or loading, as `TableValue` draws them, muted), holding a `SettingsSection` with `frame="fold"` whose controls are live and whose Save is off until one changes (owner, 2026-11-09). An entry holds what most visits to the object skip (one of its settings, its history, its notes, the output of one of its steps), read in place once opened; what every reader of the page needs, and a collection a person adds to or manages, is a section with its heading under the card (a `RecordList` or a `DataTable`), never an entry, and a different question about the object is a tab of its own (owner, 2026-11-09). A value on the card is never a control that opens an editor. The sections follow, 24 apart, each an `ObjectSection`, `ObjectFacts`, a `RecordList` with its `heading`, a `SettingsSection` or an `ActivityFeed`, drawing its own states; a section earns a card when it owns a decision, never for every label and value. The card is neutral; colour belongs to the company's compact identity, a semantic fact value, or an entry's status summary, with no coloured card ground. A fact marked `url`, such as a company's website, wraps only after `://`, a dot or a slash, never inside a word, and keeps the whole address as its text (design inspection, 2026-11-07). Deleting the object is a `SettingsSection` with `tone="error"` whose button names the object and opens its confirmation, never a button in the page's header: the last card of its Settings tab when the object has one, as a Customer's Archive is, and otherwise the last card under its sections (owner, 2026-11-18).
87
+ * @behaviour "For a static key/value metadata block on a detail page, use `Description`." (https://vercel.com/geist/entity) "The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`." (https://vercel.com/geist/entity) "Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`)." (https://vercel.com/geist/entity) "Don’t put interactive controls in the title slot. Buttons, menus, and links belong in the content (`<dd>`) or in the parent layout, not the label (`<dt>`)." (https://vercel.com/geist/description) Ours: where the product draws a path, the path above the page names the object's parent, and the product's section navigation stands between the path and the card. The object card is the first card of the page: a header bar with the name at the start and the object's commands at the end (a secondary, then the primary as the filled button, then the three dots, in `PageActions`' order, on the name's row while the name keeps 128 px, as on a phone, and under it otherwise; the primary is the one thing the object waits on its viewer for, such as approving a company that waits for approval, beside its alternative as the secondary, and an object with nothing waiting has none), the mark at 64 stands beside the name and optional line in the header; with `heading` the header instead names what the card holds, the name staying in the product's path and the page's h1 read only, and with `picture` the object's picture stands beside its facts, such as a company's map of its registered office (owner, 2026-11-08); facts follow in four columns once they have 36rem and two below, or in three beside a `picture`, each value after the mark of its kind (`icon`), a long one such as an address across two columns (`wide`); the facts are the object's own details, so none repeats the product's path (the name, the status beside it) or a tab (the Agents an Agents tab lists), and beside a `picture` they keep to four rows while the picture stands as tall as they do, so no fact runs below it (owner, 2026-11-08) (an object that exists always has one; an object not made yet, such as an account's plan before it chooses one, has none, and its card is the header alone, its name saying so and, for a viewer who may, its primary making it), each a muted label over its value in body text, then an optional footer with a hint at the start and one link at the end. `figures` are the object's own readings, a `FigureRows` between the facts and the entries, under a rule and at the card's inset. Optional `entries` close the same card under a rule: rows that open one by one, each with its chevron first (it turns down when open), its title, and its summary at the trailing edge; the title keeps the row at its whole width, and a summary or value too long to stand beside it moves under it, from the title's start, and wraps there, so a narrow card, as on a phone, never shrinks the title below its words or draws one over the other (design inspection, 2026-11-19); an open entry's panel starts under its title, and on a card narrower than 28 rem, as on a phone, at the card's edge, so its sections keep the chevron's room; an entry marked `defaultOpen` opens with the page, for a link that names it. The footer takes a link only, so no Save fits in it. The object's facts change from its card, never from another tab (owner, 2026-11-08): the card's secondary command, Edit, opens a `FormDialog` of the facts the card shows. How the object behaves is its last tab, Settings, when it has one: a `SettingsPage` of one `SettingsSection` each, the destructive cards last, holding no fact the card shows, as the card holds no setting. An object with few settings and no Settings tab keeps each of them as one of its card's `entries`, its `value` the current value (read, missing, failed or loading, as `TableValue` draws them, muted), holding a `SettingsSection` with `frame="fold"` whose controls are live and whose Save is off until one changes (owner, 2026-11-09). An entry holds what most visits to the object skip (one of its settings, its history, its notes, the output of one of its steps), read in place once opened; what every reader of the page needs, and a collection a person adds to or manages, is a section with its heading under the card (a `RecordList` or a `DataTable`), never an entry, and a different question about the object is a tab of its own (owner, 2026-11-09). A value on the card is never a control that opens an editor. The sections follow, 24 apart, each an `ObjectSection`, `ObjectFacts`, a `RecordList` with its `heading`, a `SettingsSection` or an `ActivityFeed`, drawing its own states; a section earns a card when it owns a decision, never for every label and value. The card is neutral; colour belongs to the company's compact identity, a semantic fact value, or an entry's status summary, with no coloured card ground. A fact marked `url`, such as a company's website, wraps only after `://`, a dot or a slash, never inside a word, and keeps the whole address as its text (design inspection, 2026-11-07). Deleting the object is a `SettingsSection` with `tone="error"` whose button names the object and opens its confirmation, never a button in the page's header: the last card of its Settings tab when the object has one, as a Customer's Archive is, and otherwise the last card under its sections (owner, 2026-11-18).
88
88
  * @words "Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen." (https://vercel.com/geist/entity) "Title slot is Title Case noun (`Last Deployed`, `Build Duration`); content is sentence case unless the value is a literal identifier, ID, or timestamp that should be preserved verbatim." (https://vercel.com/geist/description) Ours: sentence case throughout. The name as the object is called everywhere else; the line says what it is and whose ("Customer of Partner Alpha · since 3 August 2026"); a fact's label is a noun ("Plan"), its value the figure; an entry's title is a noun phrase; the hint is one sentence ("To update it, push to the main branch."); the link names where it goes ("Deployments"); the menu's trigger reads "More for {name}".
89
89
  * @access "Geist renders `<dl>`/`<dt>`/`<dd>` so screen readers announce each key/value pair as a definition." (https://vercel.com/geist/description) "Don’t wrap the component in extra paragraphs that break the list semantics." (https://vercel.com/geist/description) Ours: with `headingProps` the name is the page's h1; without them it is text, for a product whose chrome already titles the page. The mark is decorative beside the name. Each entry is an h2 heading holding a button with `aria-expanded` that controls its panel.
90
90
  */
@@ -1 +1 @@
1
- {"version":3,"file":"object-page.d.ts","sourceRoot":"","sources":["../../src/components/object-page.tsx"],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CA6LhC"}
@@ -21,7 +21,7 @@ function UrlValue({ url, href }) {
21
21
  * @family Compositions
22
22
  * @when One thing a person opened from a list and now reads or acts on: a customer, a partner, an Installation, a Library entry, an Agent's Profile in Nadia's window.
23
23
  * @instead "Use Context Card to reveal entity metadata on hover or focus: a user, a deployment, a project, an API key." (https://vercel.com/geist/context-card) Ours: that hover is a `HoverCard`, drawn inside this package by a component such as `RecordTime`, never this page. A list of records is a CollectionPage; a page of settings only is a SettingsPage, whose cards are SettingsSections. A card of values a person saves is a setting card, never this one.
24
- * @behaviour "For a static key/value metadata block on a detail page, use `Description`." (https://vercel.com/geist/entity) "The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`." (https://vercel.com/geist/entity) "Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`)." (https://vercel.com/geist/entity) "Don’t put interactive controls in the title slot. Buttons, menus, and links belong in the content (`<dd>`) or in the parent layout, not the label (`<dt>`)." (https://vercel.com/geist/description) Ours: where the product draws a path, the path above the page names the object's parent, and the product's section navigation stands between the path and the card. The object card is the first card of the page: a header bar with the name at the start and the object's commands at the end (a secondary, then the primary as the filled button, then the three dots, in `PageActions`' order, on the name's row while the name keeps 128 px, as on a phone, and under it otherwise; the primary is the one thing the object waits on its viewer for, such as approving a company that waits for approval, beside its alternative as the secondary, and an object with nothing waiting has none), the mark at 64 stands beside the name and optional line in the header; with `heading` the header instead names what the card holds, the name staying in the product's path and the page's h1 read only, and with `picture` the object's picture stands beside its facts, such as a company's map of its registered office (owner, 2026-11-08); facts follow in four columns once they have 36rem and two below, or in three beside a `picture`, each value after the mark of its kind (`icon`), a long one such as an address across two columns (`wide`); the facts are the object's own details, so none repeats the product's path (the name, the status beside it) or a tab (the Agents an Agents tab lists), and beside a `picture` they keep to four rows while the picture stands as tall as they do, so no fact runs below it (owner, 2026-11-08) (an object that exists always has one; an object not made yet, such as an account's plan before it chooses one, has none, and its card is the header alone, its name saying so and, for a viewer who may, its primary making it), each a muted label over its value in body text, then an optional footer with a hint at the start and one link at the end. `figures` are the object's own readings, a `FigureRows` between the facts and the entries, under a rule and at the card's inset. Optional `entries` close the same card under a rule: rows that open one by one, each with its chevron first (it turns down when open), its title, and its summary at the trailing edge; an open entry's panel starts under its title, and on a card narrower than 28 rem, as on a phone, at the card's edge, so its sections keep the chevron's room; an entry marked `defaultOpen` opens with the page, for a link that names it. The footer takes a link only, so no Save fits in it. The object's facts change from its card, never from another tab (owner, 2026-11-08): the card's secondary command, Edit, opens a `FormDialog` of the facts the card shows. How the object behaves is its last tab, Settings, when it has one: a `SettingsPage` of one `SettingsSection` each, the destructive cards last, holding no fact the card shows, as the card holds no setting. An object with few settings and no Settings tab keeps each of them as one of its card's `entries`, its `value` the current value (read, missing, failed or loading, as `TableValue` draws them, muted), holding a `SettingsSection` with `frame="fold"` whose controls are live and whose Save is off until one changes (owner, 2026-11-09). An entry holds what most visits to the object skip (one of its settings, its history, its notes, the output of one of its steps), read in place once opened; what every reader of the page needs, and a collection a person adds to or manages, is a section with its heading under the card (a `RecordList` or a `DataTable`), never an entry, and a different question about the object is a tab of its own (owner, 2026-11-09). A value on the card is never a control that opens an editor. The sections follow, 24 apart, each an `ObjectSection`, `ObjectFacts`, a `RecordList` with its `heading`, a `SettingsSection` or an `ActivityFeed`, drawing its own states; a section earns a card when it owns a decision, never for every label and value. The card is neutral; colour belongs to the company's compact identity, a semantic fact value, or an entry's status summary, with no coloured card ground. A fact marked `url`, such as a company's website, wraps only after `://`, a dot or a slash, never inside a word, and keeps the whole address as its text (design inspection, 2026-11-07). Deleting the object is a `SettingsSection` with `tone="error"` whose button names the object and opens its confirmation, never a button in the page's header: the last card of its Settings tab when the object has one, as a Customer's Archive is, and otherwise the last card under its sections (owner, 2026-11-18).
24
+ * @behaviour "For a static key/value metadata block on a detail page, use `Description`." (https://vercel.com/geist/entity) "The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`." (https://vercel.com/geist/entity) "Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`)." (https://vercel.com/geist/entity) "Don’t put interactive controls in the title slot. Buttons, menus, and links belong in the content (`<dd>`) or in the parent layout, not the label (`<dt>`)." (https://vercel.com/geist/description) Ours: where the product draws a path, the path above the page names the object's parent, and the product's section navigation stands between the path and the card. The object card is the first card of the page: a header bar with the name at the start and the object's commands at the end (a secondary, then the primary as the filled button, then the three dots, in `PageActions`' order, on the name's row while the name keeps 128 px, as on a phone, and under it otherwise; the primary is the one thing the object waits on its viewer for, such as approving a company that waits for approval, beside its alternative as the secondary, and an object with nothing waiting has none), the mark at 64 stands beside the name and optional line in the header; with `heading` the header instead names what the card holds, the name staying in the product's path and the page's h1 read only, and with `picture` the object's picture stands beside its facts, such as a company's map of its registered office (owner, 2026-11-08); facts follow in four columns once they have 36rem and two below, or in three beside a `picture`, each value after the mark of its kind (`icon`), a long one such as an address across two columns (`wide`); the facts are the object's own details, so none repeats the product's path (the name, the status beside it) or a tab (the Agents an Agents tab lists), and beside a `picture` they keep to four rows while the picture stands as tall as they do, so no fact runs below it (owner, 2026-11-08) (an object that exists always has one; an object not made yet, such as an account's plan before it chooses one, has none, and its card is the header alone, its name saying so and, for a viewer who may, its primary making it), each a muted label over its value in body text, then an optional footer with a hint at the start and one link at the end. `figures` are the object's own readings, a `FigureRows` between the facts and the entries, under a rule and at the card's inset. Optional `entries` close the same card under a rule: rows that open one by one, each with its chevron first (it turns down when open), its title, and its summary at the trailing edge; the title keeps the row at its whole width, and a summary or value too long to stand beside it moves under it, from the title's start, and wraps there, so a narrow card, as on a phone, never shrinks the title below its words or draws one over the other (design inspection, 2026-11-19); an open entry's panel starts under its title, and on a card narrower than 28 rem, as on a phone, at the card's edge, so its sections keep the chevron's room; an entry marked `defaultOpen` opens with the page, for a link that names it. The footer takes a link only, so no Save fits in it. The object's facts change from its card, never from another tab (owner, 2026-11-08): the card's secondary command, Edit, opens a `FormDialog` of the facts the card shows. How the object behaves is its last tab, Settings, when it has one: a `SettingsPage` of one `SettingsSection` each, the destructive cards last, holding no fact the card shows, as the card holds no setting. An object with few settings and no Settings tab keeps each of them as one of its card's `entries`, its `value` the current value (read, missing, failed or loading, as `TableValue` draws them, muted), holding a `SettingsSection` with `frame="fold"` whose controls are live and whose Save is off until one changes (owner, 2026-11-09). An entry holds what most visits to the object skip (one of its settings, its history, its notes, the output of one of its steps), read in place once opened; what every reader of the page needs, and a collection a person adds to or manages, is a section with its heading under the card (a `RecordList` or a `DataTable`), never an entry, and a different question about the object is a tab of its own (owner, 2026-11-09). A value on the card is never a control that opens an editor. The sections follow, 24 apart, each an `ObjectSection`, `ObjectFacts`, a `RecordList` with its `heading`, a `SettingsSection` or an `ActivityFeed`, drawing its own states; a section earns a card when it owns a decision, never for every label and value. The card is neutral; colour belongs to the company's compact identity, a semantic fact value, or an entry's status summary, with no coloured card ground. A fact marked `url`, such as a company's website, wraps only after `://`, a dot or a slash, never inside a word, and keeps the whole address as its text (design inspection, 2026-11-07). Deleting the object is a `SettingsSection` with `tone="error"` whose button names the object and opens its confirmation, never a button in the page's header: the last card of its Settings tab when the object has one, as a Customer's Archive is, and otherwise the last card under its sections (owner, 2026-11-18).
25
25
  * @words "Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen." (https://vercel.com/geist/entity) "Title slot is Title Case noun (`Last Deployed`, `Build Duration`); content is sentence case unless the value is a literal identifier, ID, or timestamp that should be preserved verbatim." (https://vercel.com/geist/description) Ours: sentence case throughout. The name as the object is called everywhere else; the line says what it is and whose ("Customer of Partner Alpha · since 3 August 2026"); a fact's label is a noun ("Plan"), its value the figure; an entry's title is a noun phrase; the hint is one sentence ("To update it, push to the main branch."); the link names where it goes ("Deployments"); the menu's trigger reads "More for {name}".
26
26
  * @access "Geist renders `<dl>`/`<dt>`/`<dd>` so screen readers announce each key/value pair as a definition." (https://vercel.com/geist/description) "Don’t wrap the component in extra paragraphs that break the list semantics." (https://vercel.com/geist/description) Ours: with `headingProps` the name is the page's h1; without them it is text, for a product whose chrome already titles the page. The mark is decorative beside the name. Each entry is an h2 heading holding a button with `aria-expanded` that controls its panel.
27
27
  */
@@ -31,5 +31,5 @@ export function ObjectPage({ heading, picture, mark, name, headingProps, descrip
31
31
  ? "@lg/object-page-facts:grid-cols-3"
32
32
  : "@xl/object-page-facts:grid-cols-4"), "data-slot": "object-page-facts", children: facts.map((fact) => (_jsxs("div", { className: cn("grid min-w-0 content-start gap-1", fact.wide && "col-span-2"), children: [_jsx("dt", { className: "text-label-sm text-muted-foreground", children: fact.label }), _jsx("dd", { className: cn("min-w-0 text-body-sm wrap-break-word text-foreground", fact.icon && "flex items-start gap-2"), children: fact.icon ? (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": "true", className: "flex h-5 shrink-0 items-center text-muted-foreground [&>svg]:size-4", children: fact.icon }), _jsx("span", { className: "min-w-0", children: fact.url ? (_jsx(UrlValue, { href: fact.href, url: fact.value })) : (fact.value) })] })) : fact.url ? (_jsx(UrlValue, { href: fact.href, url: fact.value })) : (fact.value) })] }, fact.label))) }) })] }) })) : null, figures ? (_jsx("div", { className: cn("-mb-(--card-spacing) min-w-0 px-(--card-spacing)", facts ? "border-t" : "-mt-(--card-spacing)"), "data-slot": "object-page-figures", children: figures })) : null, entries && entries.length > 0 ? (_jsx("div", { className: "@container/object-page-entries min-w-0", "data-slot": "object-page-entries", children: _jsx(Accordion, { className: "*:last:border-b-0", defaultValue: entries
33
33
  .filter((entry) => entry.defaultOpen)
34
- .map((entry) => entry.title), multiple: true, size: "small", children: entries.map((entry) => (_jsxs(AccordionItem, { value: entry.title, children: [_jsxs(AccordionTrigger, { className: "justify-start gap-3 px-(--card-spacing) group-data-[size=small]/accordion:text-body-sm focus-visible:-outline-offset-2 *:data-[slot=accordion-trigger-icon]:order-first *:data-[slot=accordion-trigger-icon]:text-muted-foreground", level: 2, children: [_jsx("span", { className: "min-w-0 flex-1", children: entry.title }, "title"), _jsx(Fragment, { children: entry.summary }, "summary"), entry.value ? (_jsx("span", { className: "flex min-w-0 items-center gap-2 text-body-sm font-normal text-muted-foreground", "data-slot": "object-page-entry-value", children: _jsx(TableValue, { ...entry.value }) }, "value")) : null] }), _jsx(AccordionContent, { className: "px-(--card-spacing) @md/object-page-entries:ps-[calc(var(--card-spacing)+1.75rem)]", children: entry.children })] }, entry.title))) }) })) : null, footer ? (_jsx(FooterStrip, { hint: footer.hint, hintSlot: "object-page-hint", children: _jsx(PageCommandButton, { command: footer.link, variant: "outline" }) })) : null] }) }), children] }));
34
+ .map((entry) => entry.title), multiple: true, size: "small", children: entries.map((entry) => (_jsxs(AccordionItem, { value: entry.title, children: [_jsx(AccordionTrigger, { className: "justify-start gap-3 px-(--card-spacing) group-data-[size=small]/accordion:text-body-sm focus-visible:-outline-offset-2 *:data-[slot=accordion-trigger-icon]:order-first *:data-[slot=accordion-trigger-icon]:text-muted-foreground", level: 2, children: _jsxs("span", { className: "flex min-w-0 flex-1 flex-wrap items-center justify-between gap-x-3 gap-y-1 wrap-break-word", children: [_jsx("span", { className: "min-w-0 grow", children: entry.title }, "title"), _jsx(Fragment, { children: entry.summary }, "summary"), entry.value ? (_jsx("span", { className: "flex min-w-0 items-center gap-2 text-body-sm font-normal text-muted-foreground", "data-slot": "object-page-entry-value", children: _jsx(TableValue, { ...entry.value }) }, "value")) : null] }) }), _jsx(AccordionContent, { className: "px-(--card-spacing) @md/object-page-entries:ps-[calc(var(--card-spacing)+1.75rem)]", children: entry.children })] }, entry.title))) }) })) : null, footer ? (_jsx(FooterStrip, { hint: footer.hint, hintSlot: "object-page-hint", children: _jsx(PageCommandButton, { command: footer.link, variant: "outline" }) })) : null] }) }), children] }));
35
35
  }
@@ -27,7 +27,11 @@ export type RecordGridCell = {
27
27
  /** The record has no value for it: an `optional` column leaves it off the record's card. */
28
28
  empty: boolean;
29
29
  };
30
- /** A press anywhere on a row that opens a record follows its one link, unless it lands on a control. */
30
+ /**
31
+ * A press anywhere on a row that opens a record presses its one opening control, the element
32
+ * marked `data-row-link`: a link is followed, a button is pressed. A press on a control of the row
33
+ * is that control's alone.
34
+ */
31
35
  export declare function openRowOnClick(href: string | null | undefined): React.MouseEventHandler<HTMLElement> | undefined;
32
36
  /**
33
37
  * Records a person opens, in aligned columns on a wide card and one card per record on a narrow
@@ -1 +1 @@
1
- {"version":3,"file":"record-grid.d.ts","sourceRoot":"","sources":["../../src/internal/record-grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,mGAAmG;AACnG,KAAK,oBAAoB,GACrB;IACE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,GACD,SAAS,CAAC;AAEd,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,mFAAmF;IACnF,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,EAAE,WAAW,GAAG,YAAY,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB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,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACT,EAAE;IACD,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;IACjC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACjC,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,qBAyEhD;AAED,oGAAoG;AACpG,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAWjF"}
@@ -16,7 +16,11 @@ function track(column) {
16
16
  }
17
17
  return column.size === undefined ? "minmax(0,1fr)" : `minmax(0,${column.size}px)`;
18
18
  }
19
- /** A press anywhere on a row that opens a record follows its one link, unless it lands on a control. */
19
+ /**
20
+ * A press anywhere on a row that opens a record presses its one opening control, the element
21
+ * marked `data-row-link`: a link is followed, a button is pressed. A press on a control of the row
22
+ * is that control's alone.
23
+ */
20
24
  export function openRowOnClick(href) {
21
25
  if (!href)
22
26
  return undefined;
@@ -24,10 +28,10 @@ export function openRowOnClick(href) {
24
28
  const target = event.target;
25
29
  if (!(target instanceof Element) ||
26
30
  !event.currentTarget.contains(target) ||
27
- target.closest("a, button, input, select, textarea, label, [role='button'], [role='checkbox']")) {
31
+ target.closest("a, button, input, select, textarea, label, [role='button'], [role='checkbox'], [data-row-link]")) {
28
32
  return;
29
33
  }
30
- event.currentTarget.querySelector("a[data-row-link]")?.click();
34
+ event.currentTarget.querySelector("[data-row-link]")?.click();
31
35
  };
32
36
  }
33
37
  // From 48rem of card the records stand in aligned columns; on a narrower card each record is a
@@ -54,24 +58,27 @@ const PLACE = {
54
58
  trail: "order-3 shrink-0",
55
59
  fact: "order-5 max-w-full",
56
60
  };
61
+ function placeOf(cell, index, identityIndex) {
62
+ if (cell.identity)
63
+ return "identity";
64
+ if (cell.meta?.firstLine !== true)
65
+ return "fact";
66
+ return index < identityIndex ? "lead" : "trail";
67
+ }
57
68
  /**
58
69
  * One record: its row and, while it is edited, its form under it. A row that opens the record
59
70
  * takes `accent` on hover, and any row on focus within and while its menu is open.
60
71
  */
61
72
  export function RecordGridRow({ cells, editor, href, className, ...props }) {
62
73
  const identityIndex = cells.findIndex((cell) => cell.identity);
63
- return (_jsxs("div", { className: cn("border-b border-border transition-colors last:border-b-0 data-[interactive=true]:hover:bg-accent has-focus-visible:bg-accent has-[[aria-expanded=true]]:bg-accent", WIDE_GRID, className), "data-interactive": Boolean(href), role: "rowgroup", ...props, "data-slot": "record-grid-record", children: [_jsx("div", { className: cn("flex flex-wrap items-center gap-x-3 gap-y-2 px-(--card-spacing) py-4", WIDE_GRID, "@3xl/list:min-h-18 @3xl/list:items-center @3xl/list:gap-0 @3xl/list:p-0", href && "cursor-pointer"), "data-href": href ?? undefined, "data-slot": "record-grid-row", onClick: openRowOnClick(href), role: "row", children: cells.map((cell, index) => {
64
- const place = cell.identity
65
- ? "identity"
66
- : cell.meta?.firstLine === true
67
- ? index < identityIndex
68
- ? "lead"
69
- : "trail"
70
- : "fact";
74
+ const placed = cells.map((cell, index) => ({ cell, place: placeOf(cell, index, identityIndex) }));
75
+ // On a narrow card the facts wrap under the name, and an optional one the record lacks is hidden.
76
+ const factsUnder = placed.some(({ cell, place }) => place === "fact" && !(cell.meta?.optional === true && cell.empty));
77
+ return (_jsxs("div", { className: cn("border-b border-border transition-colors last:border-b-0 data-[interactive=true]:hover:bg-accent has-focus-visible:bg-accent has-[[aria-expanded=true]]:bg-accent", WIDE_GRID, className), "data-interactive": Boolean(href), role: "rowgroup", ...props, "data-slot": "record-grid-record", children: [_jsx("div", { className: cn("flex min-h-18 flex-wrap items-center gap-x-3 gap-y-2 px-(--card-spacing) py-4", WIDE_GRID, "@3xl/list:items-center @3xl/list:gap-0 @3xl/list:p-0", href && "cursor-pointer"), "data-href": href ?? undefined, "data-slot": "record-grid-row", onClick: openRowOnClick(href), role: "row", children: placed.map(({ cell, place }) => {
71
78
  const wraps = cell.meta?.wraps === true;
72
79
  const cut = place === "fact" && !wraps;
73
80
  return (_jsxs(React.Fragment, { children: [_jsx("div", { className: cn("min-w-0 @3xl/list:order-none @3xl/list:px-2 @3xl/list:py-4 @3xl/list:first:pl-(--card-spacing) @3xl/list:last:pr-(--card-spacing) @3xl/list:last:text-right", PLACE[place], cut && "truncate", wraps && "whitespace-normal wrap-break-word @3xl/list:last:text-left", cell.meta?.numeric === true && "tabular-nums @3xl/list:text-right", cell.meta?.centered === true &&
74
- "@3xl/list:text-center @3xl/list:last:text-center", cell.meta?.optional === true && cell.empty && "hidden @3xl/list:block"), "data-slot": "record-grid-cell", onFocus: cut ? titleWhenCut : undefined, onPointerEnter: cut ? titleWhenCut : undefined, role: "cell", children: cell.content }), cell.identity ? (_jsx("div", { "aria-hidden": "true", className: "order-4 h-0 basis-full @3xl/list:hidden" })) : null] }, cell.id));
81
+ "@3xl/list:text-center @3xl/list:last:text-center", cell.meta?.optional === true && cell.empty && "hidden @3xl/list:block"), "data-slot": "record-grid-cell", onFocus: cut ? titleWhenCut : undefined, onPointerEnter: cut ? titleWhenCut : undefined, role: "cell", children: cell.content }), cell.identity && factsUnder ? (_jsx("div", { "aria-hidden": "true", className: "order-4 h-0 basis-full @3xl/list:hidden" })) : null] }, cell.id));
75
82
  }) }), editor ? (_jsx("div", { className: "@3xl/list:col-span-full", "data-slot": "table-row-editor", role: "row", children: _jsx("div", { className: "whitespace-normal", role: "cell", children: editor }) })) : null] }));
76
83
  }
77
84
  /** A section's heading inside the records: the name of the group the records under it belong to. */
@@ -252,7 +252,7 @@ export const USAGE = [
252
252
  summary: "One object's page: the object card with its name, commands, facts, rows that open and one link elsewhere, then its sections as cards.",
253
253
  when: "One thing a person opened from a list and now reads or acts on: a customer, a partner, an Installation, a Library entry, an Agent's Profile in Nadia's window.",
254
254
  instead: '"Use Context Card to reveal entity metadata on hover or focus: a user, a deployment, a project, an API key." (https://vercel.com/geist/context-card) Ours: that hover is a `HoverCard`, drawn inside this package by a component such as `RecordTime`, never this page. A list of records is a CollectionPage; a page of settings only is a SettingsPage, whose cards are SettingsSections. A card of values a person saves is a setting card, never this one.',
255
- behaviour: "\"For a static key/value metadata block on a detail page, use `Description`.\" (https://vercel.com/geist/entity) \"The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.\" (https://vercel.com/geist/entity) \"Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).\" (https://vercel.com/geist/entity) \"Don’t put interactive controls in the title slot. Buttons, menus, and links belong in the content (`<dd>`) or in the parent layout, not the label (`<dt>`).\" (https://vercel.com/geist/description) Ours: where the product draws a path, the path above the page names the object's parent, and the product's section navigation stands between the path and the card. The object card is the first card of the page: a header bar with the name at the start and the object's commands at the end (a secondary, then the primary as the filled button, then the three dots, in `PageActions`' order, on the name's row while the name keeps 128 px, as on a phone, and under it otherwise; the primary is the one thing the object waits on its viewer for, such as approving a company that waits for approval, beside its alternative as the secondary, and an object with nothing waiting has none), the mark at 64 stands beside the name and optional line in the header; with `heading` the header instead names what the card holds, the name staying in the product's path and the page's h1 read only, and with `picture` the object's picture stands beside its facts, such as a company's map of its registered office (owner, 2026-11-08); facts follow in four columns once they have 36rem and two below, or in three beside a `picture`, each value after the mark of its kind (`icon`), a long one such as an address across two columns (`wide`); the facts are the object's own details, so none repeats the product's path (the name, the status beside it) or a tab (the Agents an Agents tab lists), and beside a `picture` they keep to four rows while the picture stands as tall as they do, so no fact runs below it (owner, 2026-11-08) (an object that exists always has one; an object not made yet, such as an account's plan before it chooses one, has none, and its card is the header alone, its name saying so and, for a viewer who may, its primary making it), each a muted label over its value in body text, then an optional footer with a hint at the start and one link at the end. `figures` are the object's own readings, a `FigureRows` between the facts and the entries, under a rule and at the card's inset. Optional `entries` close the same card under a rule: rows that open one by one, each with its chevron first (it turns down when open), its title, and its summary at the trailing edge; an open entry's panel starts under its title, and on a card narrower than 28 rem, as on a phone, at the card's edge, so its sections keep the chevron's room; an entry marked `defaultOpen` opens with the page, for a link that names it. The footer takes a link only, so no Save fits in it. The object's facts change from its card, never from another tab (owner, 2026-11-08): the card's secondary command, Edit, opens a `FormDialog` of the facts the card shows. How the object behaves is its last tab, Settings, when it has one: a `SettingsPage` of one `SettingsSection` each, the destructive cards last, holding no fact the card shows, as the card holds no setting. An object with few settings and no Settings tab keeps each of them as one of its card's `entries`, its `value` the current value (read, missing, failed or loading, as `TableValue` draws them, muted), holding a `SettingsSection` with `frame=\"fold\"` whose controls are live and whose Save is off until one changes (owner, 2026-11-09). An entry holds what most visits to the object skip (one of its settings, its history, its notes, the output of one of its steps), read in place once opened; what every reader of the page needs, and a collection a person adds to or manages, is a section with its heading under the card (a `RecordList` or a `DataTable`), never an entry, and a different question about the object is a tab of its own (owner, 2026-11-09). A value on the card is never a control that opens an editor. The sections follow, 24 apart, each an `ObjectSection`, `ObjectFacts`, a `RecordList` with its `heading`, a `SettingsSection` or an `ActivityFeed`, drawing its own states; a section earns a card when it owns a decision, never for every label and value. The card is neutral; colour belongs to the company's compact identity, a semantic fact value, or an entry's status summary, with no coloured card ground. A fact marked `url`, such as a company's website, wraps only after `://`, a dot or a slash, never inside a word, and keeps the whole address as its text (design inspection, 2026-11-07). Deleting the object is a `SettingsSection` with `tone=\"error\"` whose button names the object and opens its confirmation, never a button in the page's header: the last card of its Settings tab when the object has one, as a Customer's Archive is, and otherwise the last card under its sections (owner, 2026-11-18).",
255
+ behaviour: "\"For a static key/value metadata block on a detail page, use `Description`.\" (https://vercel.com/geist/entity) \"The right column holds at most one or two controls. If the row needs more, move secondary actions into a `Dots Menu`.\" (https://vercel.com/geist/entity) \"Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).\" (https://vercel.com/geist/entity) \"Don’t put interactive controls in the title slot. Buttons, menus, and links belong in the content (`<dd>`) or in the parent layout, not the label (`<dt>`).\" (https://vercel.com/geist/description) Ours: where the product draws a path, the path above the page names the object's parent, and the product's section navigation stands between the path and the card. The object card is the first card of the page: a header bar with the name at the start and the object's commands at the end (a secondary, then the primary as the filled button, then the three dots, in `PageActions`' order, on the name's row while the name keeps 128 px, as on a phone, and under it otherwise; the primary is the one thing the object waits on its viewer for, such as approving a company that waits for approval, beside its alternative as the secondary, and an object with nothing waiting has none), the mark at 64 stands beside the name and optional line in the header; with `heading` the header instead names what the card holds, the name staying in the product's path and the page's h1 read only, and with `picture` the object's picture stands beside its facts, such as a company's map of its registered office (owner, 2026-11-08); facts follow in four columns once they have 36rem and two below, or in three beside a `picture`, each value after the mark of its kind (`icon`), a long one such as an address across two columns (`wide`); the facts are the object's own details, so none repeats the product's path (the name, the status beside it) or a tab (the Agents an Agents tab lists), and beside a `picture` they keep to four rows while the picture stands as tall as they do, so no fact runs below it (owner, 2026-11-08) (an object that exists always has one; an object not made yet, such as an account's plan before it chooses one, has none, and its card is the header alone, its name saying so and, for a viewer who may, its primary making it), each a muted label over its value in body text, then an optional footer with a hint at the start and one link at the end. `figures` are the object's own readings, a `FigureRows` between the facts and the entries, under a rule and at the card's inset. Optional `entries` close the same card under a rule: rows that open one by one, each with its chevron first (it turns down when open), its title, and its summary at the trailing edge; the title keeps the row at its whole width, and a summary or value too long to stand beside it moves under it, from the title's start, and wraps there, so a narrow card, as on a phone, never shrinks the title below its words or draws one over the other (design inspection, 2026-11-19); an open entry's panel starts under its title, and on a card narrower than 28 rem, as on a phone, at the card's edge, so its sections keep the chevron's room; an entry marked `defaultOpen` opens with the page, for a link that names it. The footer takes a link only, so no Save fits in it. The object's facts change from its card, never from another tab (owner, 2026-11-08): the card's secondary command, Edit, opens a `FormDialog` of the facts the card shows. How the object behaves is its last tab, Settings, when it has one: a `SettingsPage` of one `SettingsSection` each, the destructive cards last, holding no fact the card shows, as the card holds no setting. An object with few settings and no Settings tab keeps each of them as one of its card's `entries`, its `value` the current value (read, missing, failed or loading, as `TableValue` draws them, muted), holding a `SettingsSection` with `frame=\"fold\"` whose controls are live and whose Save is off until one changes (owner, 2026-11-09). An entry holds what most visits to the object skip (one of its settings, its history, its notes, the output of one of its steps), read in place once opened; what every reader of the page needs, and a collection a person adds to or manages, is a section with its heading under the card (a `RecordList` or a `DataTable`), never an entry, and a different question about the object is a tab of its own (owner, 2026-11-09). A value on the card is never a control that opens an editor. The sections follow, 24 apart, each an `ObjectSection`, `ObjectFacts`, a `RecordList` with its `heading`, a `SettingsSection` or an `ActivityFeed`, drawing its own states; a section earns a card when it owns a decision, never for every label and value. The card is neutral; colour belongs to the company's compact identity, a semantic fact value, or an entry's status summary, with no coloured card ground. A fact marked `url`, such as a company's website, wraps only after `://`, a dot or a slash, never inside a word, and keeps the whole address as its text (design inspection, 2026-11-07). Deleting the object is a `SettingsSection` with `tone=\"error\"` whose button names the object and opens its confirmation, never a button in the page's header: the last card of its Settings tab when the object has one, as a Customer's Archive is, and otherwise the last card under its sections (owner, 2026-11-18).",
256
256
  words: '"Keep right-column buttons Verb + Noun (`Remove Member`, `Resend Invite`). Bare verbs like `Remove` or `Confirm` lose context once the row scrolls offscreen." (https://vercel.com/geist/entity) "Title slot is Title Case noun (`Last Deployed`, `Build Duration`); content is sentence case unless the value is a literal identifier, ID, or timestamp that should be preserved verbatim." (https://vercel.com/geist/description) Ours: sentence case throughout. The name as the object is called everywhere else; the line says what it is and whose ("Customer of Partner Alpha · since 3 August 2026"); a fact\'s label is a noun ("Plan"), its value the figure; an entry\'s title is a noun phrase; the hint is one sentence ("To update it, push to the main branch."); the link names where it goes ("Deployments"); the menu\'s trigger reads "More for {name}".',
257
257
  access: '"Geist renders `<dl>`/`<dt>`/`<dd>` so screen readers announce each key/value pair as a definition." (https://vercel.com/geist/description) "Don’t wrap the component in extra paragraphs that break the list semantics." (https://vercel.com/geist/description) Ours: with `headingProps` the name is the page\'s h1; without them it is text, for a product whose chrome already titles the page. The mark is decorative beside the name. Each entry is an h2 heading holding a button with `aria-expanded` that controls its panel.',
258
258
  },
@@ -1847,7 +1847,7 @@ export const USAGE = [
1847
1847
  summary: "A menu that opens at the pointer on a right-click or a long press, from the dropdown's own parts.",
1848
1848
  when: '"Use ContextMenu for power-user shortcuts on right-click or long-press over a row, file, or canvas object." (https://vercel.com/geist/context-menu) "ContextMenu must never be the only entry point for an action. Mirror every item in a visible `Menu` trigger or row button so mouse-only and keyboard-only users have parity." (https://vercel.com/geist/context-menu) Ours: inside `@nadicodeai/ui` only, which does not export it: `ActionContextMenu` draws it for a record. A right-click on a canvas or a surface no record owns, whose commands are also reachable another way, is a composition built on it in this package.',
1849
1849
  instead: '"For a global command palette, use `CommandMenu`; for a dropdown opened from a visible trigger, use `Menu`." (https://vercel.com/geist/context-menu) Ours: those are `CommandDialog` and `DropdownMenu`. A record\'s right-click is `ActionContextMenu`, from the same data as its `ActionMenu`.',
1850
- behaviour: '"Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu) "Position the menu at the pointer; if it would overflow the viewport, flip horizontally then vertically before clipping." (https://vercel.com/geist/context-menu) "Close on activation, Escape, and outside-click. Don’t close on hover-out." (https://vercel.com/geist/context-menu) Ours: a mouse still selects the trigger\'s text, so a person can copy an address from a row; on a touch screen, where a long press opens the menu, the text cannot be selected. The dropdown\'s surface and rows exactly, 160 px wide at least, opening 2 px right of the pointer and appearing at once, with no entry motion. A row that cannot be chosen keeps its place with its text muted, never dimmed. Destructive last, after a divider.',
1850
+ behaviour: '"Bind to right-click on desktop and long-press on touch. Suppress the native browser menu only on the trigger area, not the whole page." (https://vercel.com/geist/context-menu) "Position the menu at the pointer; if it would overflow the viewport, flip horizontally then vertically before clipping." (https://vercel.com/geist/context-menu) "Close on activation, Escape, and outside-click. Don’t close on hover-out." (https://vercel.com/geist/context-menu) Ours: a mouse still selects the trigger\'s text, so a person can copy an address from a row; on a touch screen, where a long press opens the menu, the text cannot be selected. The dropdown\'s surface and rows exactly, its least width of 200 px included, opening 2 px right of the pointer and appearing at once, with no entry motion. A row that cannot be chosen keeps its place with its text muted, never dimmed. Destructive last, after a divider.',
1851
1851
  words: '"Items follow the same rules as `Menu`: Title Case `Verb + Noun` (`Open in New Tab`, `Copy URL`, `Delete Deployment`). Bare verbs are wrong." (https://vercel.com/geist/context-menu) "End with `…` only when activating opens a follow-up dialog (`Rename…`, `Move to Folder…`)." (https://vercel.com/geist/context-menu) "Group destructive items at the bottom with a divider and keep the destructive label `Verb + Noun`. `Delete` alone never ships." (https://vercel.com/geist/context-menu) Ours: sentence case, "Copy address", not Title Case. Identical to the visible menu\'s, in the same order; a command reached two ways reads the same both ways.',
1852
1852
  access: '"Trigger the keyboard menu key (`Shift+F10` on Windows/Linux, the menu key, or platform equivalent) to open the same menu without right-click." (https://vercel.com/geist/context-menu) "Up/Down arrows move focus, Enter/Space activates, Escape closes and returns focus to the row." (https://vercel.com/geist/context-menu) "Don’t bury destructive items behind nested submenus. One level deep keeps keyboard navigation predictable." (https://vercel.com/geist/context-menu) Ours: the trigger must itself be focusable or hold something that is. The content requires an `aria-label` naming the menu, because nothing visible labels a menu opened at the pointer.',
1853
1853
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.257",
3
+ "version": "12.1.259",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#jsx": "./src/jsx/index.ts",
@@ -82,7 +82,7 @@
82
82
  "@headless-tree/react": "1.8.0",
83
83
  "@iconify-icons/logos": "^2.0.3",
84
84
  "@iconify/react": "^6.0.2",
85
- "@nadicodeai/design-system": "12.1.257",
85
+ "@nadicodeai/design-system": "12.1.259",
86
86
  "@tanstack/react-table": "^9.3.1",
87
87
  "@vgpu/wgsl": "0.6.0",
88
88
  "class-variance-authority": "^0.7.1",