@nadicodeai/ui 12.1.201 → 12.1.203

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.
@@ -17,9 +17,9 @@ export type CatalogCardProps = {
17
17
  * Browse Connectors draws a connector.
18
18
  *
19
19
  * @family Data
20
- * @when A catalogue a person browses by picture and name, where opening one sets it up in a drawer: Nadia's Browse apps. On a `LibraryShelf` through its `galleries`.
20
+ * @when A catalogue a person browses by picture and name, where opening one sets it up in a drawer: Nadia's Browse apps. On a `LibraryShelf` through its `cards`.
21
21
  * @instead A thing added with one press, with no setup, is a `CatalogEntry`. An Agent or template chosen by its preview is an `AgentCard`. What a person already holds is a row of its `CollectionPage`.
22
- * @behaviour A hairline card with the mark at 40 at its top, and at its foot the name, the line cut after two lines and the tags, so names line up along a row of cards. The whole card is one target and takes the `accent` hover, with no button of its own: the drawer holds the commands. On hover or focus an app's own logo fades in behind the card's top right corner, 112 px, blurred 40 px and more saturated, so the card glows in the app's colours, as Vercel's Featured connectors do at their top left, ruled by the owner at the top right; a mark with no logo has no glow.
22
+ * @behaviour A hairline card with the mark at 40 at its top, and at its foot the name, the line cut after two lines and the tags, so names line up along a row of cards. The whole card is one target and takes the `accent` hover, with no button of its own: the drawer holds the commands. On hover or focus an app's own logo fades in behind the card's top right corner, 112 px, blurred 40 px and more saturated, so the card glows in the app's colours; a mark with no logo has no glow.
23
23
  * @words The name as the catalogue gives it. The line says what it does. Tags are short facts: a category, "2 accounts".
24
24
  * @access The name is a real button whose target covers the card, so the tab order holds one stop a card. The mark is decorative beside it.
25
25
  */
@@ -7,9 +7,9 @@ import { IdentityMark } from "./identity-mark.js";
7
7
  * Browse Connectors draws a connector.
8
8
  *
9
9
  * @family Data
10
- * @when A catalogue a person browses by picture and name, where opening one sets it up in a drawer: Nadia's Browse apps. On a `LibraryShelf` through its `galleries`.
10
+ * @when A catalogue a person browses by picture and name, where opening one sets it up in a drawer: Nadia's Browse apps. On a `LibraryShelf` through its `cards`.
11
11
  * @instead A thing added with one press, with no setup, is a `CatalogEntry`. An Agent or template chosen by its preview is an `AgentCard`. What a person already holds is a row of its `CollectionPage`.
12
- * @behaviour A hairline card with the mark at 40 at its top, and at its foot the name, the line cut after two lines and the tags, so names line up along a row of cards. The whole card is one target and takes the `accent` hover, with no button of its own: the drawer holds the commands. On hover or focus an app's own logo fades in behind the card's top right corner, 112 px, blurred 40 px and more saturated, so the card glows in the app's colours, as Vercel's Featured connectors do at their top left, ruled by the owner at the top right; a mark with no logo has no glow.
12
+ * @behaviour A hairline card with the mark at 40 at its top, and at its foot the name, the line cut after two lines and the tags, so names line up along a row of cards. The whole card is one target and takes the `accent` hover, with no button of its own: the drawer holds the commands. On hover or focus an app's own logo fades in behind the card's top right corner, 112 px, blurred 40 px and more saturated, so the card glows in the app's colours; a mark with no logo has no glow.
13
13
  * @words The name as the catalogue gives it. The line says what it does. Tags are short facts: a category, "2 accounts".
14
14
  * @access The name is a real button whose target covers the card, so the tab order holds one stop a card. The mark is decorative beside it.
15
15
  */
@@ -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: 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, 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.
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
  */
@@ -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: 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, 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.
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
  */
@@ -23,7 +23,7 @@ function ContextMenuPortal({ ...props }) {
23
23
  return _jsx(ContextMenuPrimitive.Portal, { "data-slot": "context-menu-portal", ...props });
24
24
  }
25
25
  function ContextMenuTrigger({ className, ...props }) {
26
- return (_jsx(ContextMenuPrimitive.Trigger, { "data-slot": "context-menu-trigger", className: cn("select-none", className), ...props }));
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
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 }) }) }));
@@ -2,13 +2,6 @@ import type { ReactElement, ReactNode } from "react";
2
2
  import type { CatalogSection } from "./catalog-entry.js";
3
3
  import { type CollectionSearchProps } from "./collection-search.js";
4
4
  import { type EmptyStateKind } from "./empty-state.js";
5
- export type ShelfGallery = {
6
- id: string;
7
- title?: string;
8
- cards: readonly ReactElement[];
9
- /** Under the cards, for a shelf that shows only its first ones: a `LoadMoreButton`. */
10
- more?: ReactNode;
11
- };
12
5
  export type LibraryShelfProps = {
13
6
  /** One line saying what the shelf holds, for a shelf whose page has no title of its own to carry it, such as Nadia's gallery. */
14
7
  definition?: string;
@@ -32,18 +25,20 @@ export type LibraryShelfProps = {
32
25
  columns?: 2 | 3;
33
26
  view?: "cards" | "rows";
34
27
  }
35
- /** A shelf of cards under section titles, three to a row: `CatalogCard` elements. */
28
+ /** A shelf of cards, three to a row: `CatalogCard` elements. */
36
29
  | {
37
- galleries: readonly ShelfGallery[] | undefined;
30
+ cards: readonly ReactElement[] | undefined;
31
+ /** Under the cards, for a shelf that shows only its first ones: a `LoadMoreButton`. */
32
+ more?: ReactNode;
38
33
  });
39
34
  /**
40
35
  * A Library shelf: the one line saying what it holds, the search, then the
41
36
  * reusable things a person adds, as two-column entries, or Agent template cards or rows.
42
37
  *
43
38
  * @family Compositions
44
- * @when A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery; or a catalogue of cards under section titles, as Vercel's Browse Connectors: Nadia's Browse apps (`galleries`).
39
+ * @when A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery; or a catalogue of cards, as Vercel's Browse Connectors: Nadia's Browse apps (`cards`).
45
40
  * @instead The Portal's Skills and Plugins are entity rows a person finds, opens and adds, a CollectionPage; records a person already has and acts on are a CollectionPage too; choosing from a catalogue without leaving the page is a CatalogDrawer.
46
- * @behaviour The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view="rows"`. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.
41
+ * @behaviour The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view="rows"`, or the cards, three to a row, with `more` under them. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.
47
42
  * @words The product words every string: the optional definition (one sentence on what the shelf holds), the search's label ("Search skills"), the loading label, each entry's name, line, Add label and added word, the empty, noMatch and failed messages.
48
43
  * @access Each section is a region named by its h2; entries are list items; loading is a status named by loadingLabel and aria-busy; a failed add is announced as an alert; each entry's menu is named by its label.
49
44
  */
@@ -1 +1 @@
1
- {"version":3,"file":"library-shelf.d.ts","sourceRoot":"","sources":["../../src/components/library-shelf.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG3E,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B,uFAAuF;IACvF,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,iIAAiI;IACjI,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,8EAA8E;IAC9E,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;IACjE,iGAAiG;IACjG,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;CACnC,GAAG,CACA;IAAE,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,CAAA;CAAE;AACrD,8FAA8F;GAC5F;IACE,SAAS,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,CAAC;IAC/C,gDAAgD;IAChD,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACzB;AACH,qFAAqF;GACnF;IAAE,SAAS,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,CAAA;CAAE,CACrD,CAAC;AAoEF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAgCpD"}
1
+ {"version":3,"file":"library-shelf.d.ts","sourceRoot":"","sources":["../../src/components/library-shelf.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,iIAAiI;IACjI,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,8EAA8E;IAC9E,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;IACjE,iGAAiG;IACjG,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;CACnC,GAAG,CACA;IAAE,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,CAAA;CAAE;AACrD,8FAA8F;GAC5F;IACE,SAAS,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,CAAC;IAC/C,gDAAgD;IAChD,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACzB;AACH,gEAAgE;GAC9D;IACE,KAAK,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,CAAC;IAC3C,uFAAuF;IACvF,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CACJ,CAAC;AA6DF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAgCpD"}
@@ -8,8 +8,8 @@ import { CatalogList, CatalogSkeleton, catalogIsEmpty } from "../internal/catalo
8
8
  function loadedShelf(props) {
9
9
  if ("sections" in props)
10
10
  return props.sections && { sections: props.sections };
11
- if ("galleries" in props)
12
- return props.galleries && { galleries: props.galleries };
11
+ if ("cards" in props)
12
+ return props.cards && { cards: props.cards, more: props.more };
13
13
  return (props.templates && {
14
14
  templates: props.templates,
15
15
  columns: props.columns ?? 3,
@@ -19,8 +19,8 @@ function loadedShelf(props) {
19
19
  function holdsNothing(shelf) {
20
20
  if ("sections" in shelf)
21
21
  return catalogIsEmpty(shelf.sections);
22
- if ("galleries" in shelf)
23
- return shelf.galleries.every(({ cards }) => cards.length === 0);
22
+ if ("cards" in shelf)
23
+ return shelf.cards.length === 0;
24
24
  return shelf.templates.length === 0;
25
25
  }
26
26
  function ShelfCards({ cards, columns }) {
@@ -30,8 +30,8 @@ function ShelfContents({ shelf }) {
30
30
  if ("sections" in shelf) {
31
31
  return _jsx(CatalogList, { columns: 2, headingLevel: 2, sections: shelf.sections });
32
32
  }
33
- if ("galleries" in shelf) {
34
- return (_jsx("div", { className: "grid min-w-0 gap-8", children: shelf.galleries.map(({ id, title, cards, more }) => cards.length === 0 ? null : (_jsxs("section", { className: "grid min-w-0 gap-3", children: [title ? _jsx("h2", { className: "text-heading-sm text-foreground", children: title }) : null, _jsx(ShelfCards, { cards: cards, columns: 3 }), more] }, id))) }));
33
+ if ("cards" in shelf) {
34
+ return (_jsxs("div", { className: "grid min-w-0 gap-3", children: [_jsx(ShelfCards, { cards: shelf.cards, columns: 3 }), shelf.more] }));
35
35
  }
36
36
  if (shelf.view === "rows") {
37
37
  return (_jsx(Card, { className: "gap-0 overflow-hidden py-0", render: _jsx("ul", {}), children: shelf.templates.map((template, index) => (_jsx("li", { className: "not-last:border-b not-last:border-border", children: template }, template.key ?? index))) }));
@@ -43,9 +43,9 @@ function ShelfContents({ shelf }) {
43
43
  * reusable things a person adds, as two-column entries, or Agent template cards or rows.
44
44
  *
45
45
  * @family Compositions
46
- * @when A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery; or a catalogue of cards under section titles, as Vercel's Browse Connectors: Nadia's Browse apps (`galleries`).
46
+ * @when A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery; or a catalogue of cards, as Vercel's Browse Connectors: Nadia's Browse apps (`cards`).
47
47
  * @instead The Portal's Skills and Plugins are entity rows a person finds, opens and adds, a CollectionPage; records a person already has and acts on are a CollectionPage too; choosing from a catalogue without leaving the page is a CatalogDrawer.
48
- * @behaviour The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view="rows"`. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.
48
+ * @behaviour The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view="rows"`, or the cards, three to a row, with `more` under them. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.
49
49
  * @words The product words every string: the optional definition (one sentence on what the shelf holds), the search's label ("Search skills"), the loading label, each entry's name, line, Add label and added word, the empty, noMatch and failed messages.
50
50
  * @access Each section is a region named by its h2; entries are list items; loading is a status named by loadingLabel and aria-busy; a failed add is announced as an alert; each entry's menu is named by its label.
51
51
  */
@@ -162,9 +162,9 @@ export const USAGE = [
162
162
  module: "library-shelf",
163
163
  family: "Compositions",
164
164
  summary: "A Library shelf: the one line saying what it holds, the search, then the reusable things a person adds, as two-column entries, or Agent template cards or rows.",
165
- when: "A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery; or a catalogue of cards under section titles, as Vercel's Browse Connectors: Nadia's Browse apps (`galleries`).",
165
+ when: "A gallery of reusable things a person adds, as Vercel's Templates gallery: the Portal's Agent templates, Nadia's New Agent gallery; or a catalogue of cards, as Vercel's Browse Connectors: Nadia's Browse apps (`cards`).",
166
166
  instead: "The Portal's Skills and Plugins are entity rows a person finds, opens and adds, a CollectionPage; records a person already has and acts on are a CollectionPage too; choosing from a catalogue without leaving the page is a CatalogDrawer.",
167
- behaviour: "The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view=\"rows\"`. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.",
167
+ behaviour: "The definition line only where the page has no title row to stand under (a titled page follows the title with the search, as every collection does). Shows, the first that holds: the failure; still entries while the shelf loads; noMatch while the search finds nothing; empty when the shelf holds nothing; then each section's title over its entries, two to a row from md, or the templates as cards, three to a row or as `columns` says, or as one list of rows with `view=\"rows\"`, or the cards, three to a row, with `more` under them. Each entry has its kind's tile, its name (the link to its page), one line, one fact, one Add control or the word saying it is already added, then its menu. A failed add puts its message in the entry's line and its next steps beside its controls. The search shows unless the shelf is empty, with `searchEnd` at the end of its row.",
168
168
  words: "The product words every string: the optional definition (one sentence on what the shelf holds), the search's label (\"Search skills\"), the loading label, each entry's name, line, Add label and added word, the empty, noMatch and failed messages.",
169
169
  access: "Each section is a region named by its h2; entries are list items; loading is a status named by loadingLabel and aria-busy; a failed add is announced as an alert; each entry's menu is named by its label.",
170
170
  },
@@ -1163,9 +1163,9 @@ export const USAGE = [
1163
1163
  module: "catalog-card",
1164
1164
  family: "Data",
1165
1165
  summary: "One thing a person can connect, as a card in a catalogue that opens its drawer, as Vercel's Browse Connectors draws a connector.",
1166
- when: "A catalogue a person browses by picture and name, where opening one sets it up in a drawer: Nadia's Browse apps. On a `LibraryShelf` through its `galleries`.",
1166
+ when: "A catalogue a person browses by picture and name, where opening one sets it up in a drawer: Nadia's Browse apps. On a `LibraryShelf` through its `cards`.",
1167
1167
  instead: "A thing added with one press, with no setup, is a `CatalogEntry`. An Agent or template chosen by its preview is an `AgentCard`. What a person already holds is a row of its `CollectionPage`.",
1168
- behaviour: "A hairline card with the mark at 40 at its top, and at its foot the name, the line cut after two lines and the tags, so names line up along a row of cards. The whole card is one target and takes the `accent` hover, with no button of its own: the drawer holds the commands. On hover or focus an app's own logo fades in behind the card's top right corner, 112 px, blurred 40 px and more saturated, so the card glows in the app's colours, as Vercel's Featured connectors do at their top left, ruled by the owner at the top right; a mark with no logo has no glow.",
1168
+ behaviour: "A hairline card with the mark at 40 at its top, and at its foot the name, the line cut after two lines and the tags, so names line up along a row of cards. The whole card is one target and takes the `accent` hover, with no button of its own: the drawer holds the commands. On hover or focus an app's own logo fades in behind the card's top right corner, 112 px, blurred 40 px and more saturated, so the card glows in the app's colours; a mark with no logo has no glow.",
1169
1169
  words: 'The name as the catalogue gives it. The line says what it does. Tags are short facts: a category, "2 accounts".',
1170
1170
  access: "The name is a real button whose target covers the card, so the tab order holds one stop a card. The mark is decorative beside it.",
1171
1171
  },
@@ -1616,7 +1616,7 @@ export const USAGE = [
1616
1616
  summary: "A menu that opens at the pointer on a right-click or a long press, from the dropdown's own parts.",
1617
1617
  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.',
1618
1618
  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`.',
1619
- 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: 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.',
1619
+ 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.',
1620
1620
  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.',
1621
1621
  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.',
1622
1622
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.201",
3
+ "version": "12.1.203",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#jsx": "./src/jsx/index.ts",
@@ -78,7 +78,7 @@
78
78
  "@headless-tree/react": "1.8.0",
79
79
  "@iconify-icons/logos": "^2.0.3",
80
80
  "@iconify/react": "^6.0.2",
81
- "@nadicodeai/design-system": "12.1.201",
81
+ "@nadicodeai/design-system": "12.1.203",
82
82
  "@tanstack/react-table": "^9.3.1",
83
83
  "@vgpu/wgsl": "0.6.0",
84
84
  "class-variance-authority": "^0.7.1",