@nadicodeai/ui 12.1.194 → 12.1.196

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.
Files changed (36) hide show
  1. package/LICENSES/SELFHST-ICONS-CC-BY-4.0.txt +396 -0
  2. package/LICENSES/THESVG-MIT.txt +21 -0
  3. package/NOTICE +11 -0
  4. package/dist/components/chart-ranking.d.ts +1 -1
  5. package/dist/components/chart-ranking.d.ts.map +1 -1
  6. package/dist/components/chart-ranking.js +4 -2
  7. package/dist/components/entry-scene.d.ts +2 -2
  8. package/dist/components/entry-scene.js +2 -2
  9. package/dist/components/hive-scene.d.ts +3 -3
  10. package/dist/components/hive-scene.js +1 -1
  11. package/dist/components/overview-page.d.ts +13 -3
  12. package/dist/components/overview-page.d.ts.map +1 -1
  13. package/dist/components/overview-page.js +6 -4
  14. package/dist/components/pairing-code.d.ts +2 -2
  15. package/dist/components/pairing-code.js +2 -2
  16. package/dist/components/platform-mark.d.ts +11 -7
  17. package/dist/components/platform-mark.d.ts.map +1 -1
  18. package/dist/components/platform-mark.js +12 -7
  19. package/dist/components/record-identity.d.ts +3 -2
  20. package/dist/components/record-identity.d.ts.map +1 -1
  21. package/dist/components/record-identity.js +4 -2
  22. package/dist/components/record-list.d.ts +12 -8
  23. package/dist/components/record-list.d.ts.map +1 -1
  24. package/dist/components/record-list.js +2 -2
  25. package/dist/components/sidebar.d.ts +9 -2
  26. package/dist/components/sidebar.d.ts.map +1 -1
  27. package/dist/components/sidebar.js +3 -3
  28. package/dist/components/table.js +1 -1
  29. package/dist/internal/hypervisor-marks.d.ts +9 -0
  30. package/dist/internal/hypervisor-marks.d.ts.map +1 -0
  31. package/dist/internal/hypervisor-marks.js +17 -0
  32. package/dist/internal/table-compact-line.d.ts +10 -3
  33. package/dist/internal/table-compact-line.d.ts.map +1 -1
  34. package/dist/internal/table-compact-line.js +13 -4
  35. package/dist/showcase/usage.generated.js +12 -12
  36. package/package.json +2 -2
@@ -9,7 +9,7 @@ export type PairingCodeProps = Omit<React.ComponentProps<"div">, "children" | "r
9
9
  };
10
10
  /**
11
11
  * The short code a person reads on one screen to pair it with another: compared
12
- * between two screens, such as the four digits Nadia and Alveare Server both
12
+ * between two screens, such as the four digits Nadia and Alveare HQ both
13
13
  * show while a Nadia asks to join, or typed on another device, such as the
14
14
  * code WhatsApp asks for to link a device by its phone number.
15
15
  *
@@ -18,7 +18,7 @@ export type PairingCodeProps = Omit<React.ComponentProps<"div">, "children" | "r
18
18
  *
19
19
  * @family Data
20
20
  * @when Pairing two devices or apps a person can see side by side: the four digits Nadia and
21
- * Alveare Server both show while a Nadia asks to join; or a code the person types on another
21
+ * Alveare HQ both show while a Nadia asks to join; or a code the person types on another
22
22
  * device, such as WhatsApp's linking code ("5QTH-LMWG") they type on the phone under Linked devices.
23
23
  * @instead A code a person types into this screen is `InputOTP`. A link another device scans is `QrCode`.
24
24
  * @behaviour Each character in its own cell at `heading-lg` with tabular figures, large enough to
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { cn } from "../lib/utils.js";
3
3
  /**
4
4
  * The short code a person reads on one screen to pair it with another: compared
5
- * between two screens, such as the four digits Nadia and Alveare Server both
5
+ * between two screens, such as the four digits Nadia and Alveare HQ both
6
6
  * show while a Nadia asks to join, or typed on another device, such as the
7
7
  * code WhatsApp asks for to link a device by its phone number.
8
8
  *
@@ -11,7 +11,7 @@ import { cn } from "../lib/utils.js";
11
11
  *
12
12
  * @family Data
13
13
  * @when Pairing two devices or apps a person can see side by side: the four digits Nadia and
14
- * Alveare Server both show while a Nadia asks to join; or a code the person types on another
14
+ * Alveare HQ both show while a Nadia asks to join; or a code the person types on another
15
15
  * device, such as WhatsApp's linking code ("5QTH-LMWG") they type on the phone under Linked devices.
16
16
  * @instead A code a person types into this screen is `InputOTP`. A link another device scans is `QrCode`.
17
17
  * @behaviour Each character in its own cell at `heading-lg` with tabular figures, large enough to
@@ -1,17 +1,20 @@
1
1
  import { type IconifyIcon, type IconProps } from "@iconify/react/offline";
2
2
  import * as React from "react";
3
3
  /**
4
- * The platforms the products name, operating systems, messaging channels and
5
- * sign-in providers, each by its mark in Iconify's `logos` set, one module per
6
- * mark, so a page carries these and no other; Alveare by its own.
4
+ * The platforms the products name, operating systems, hypervisors, messaging
5
+ * channels and sign-in providers, each by its mark in Iconify's `logos` set, one
6
+ * module per mark, so a page carries these and no other; Alveare by its own, and
7
+ * the hypervisors the set lacks from `hypervisor-marks`.
7
8
  */
8
9
  declare const PLATFORMS: {
9
10
  alveare: IconifyIcon;
10
11
  apple: IconifyIcon;
11
12
  discord: IconifyIcon;
13
+ esxi: IconifyIcon;
12
14
  google: IconifyIcon;
13
15
  linux: IconifyIcon;
14
16
  microsoft: IconifyIcon;
17
+ proxmox: IconifyIcon;
15
18
  slack: IconifyIcon;
16
19
  teams: IconifyIcon;
17
20
  telegram: IconifyIcon;
@@ -27,16 +30,17 @@ type PlatformMarkProps = Omit<IconProps, "children" | "icon" | "ref"> & {
27
30
  size?: number;
28
31
  };
29
32
  /**
30
- * A platform's genuine mark: an operating system, a messaging channel or a sign-in provider.
33
+ * A platform's genuine mark: an operating system, a hypervisor, a messaging channel or a sign-in
34
+ * provider.
31
35
  *
32
36
  * @family Status
33
37
  * @when Naming a platform beside its word: *Continue with Google*, a Telegram channel, the macOS
34
- * download.
38
+ * download, NadiaOS for VMware.
35
39
  * @instead A connected app in its tile is `AppMark`. A model's maker is `ModelMark`. The company is
36
40
  * `BrandMark`.
37
41
  * @behaviour Drawn at once on the server and in the browser from Iconify's `logos` set, one module
38
- * per mark; Alveare by its own. A silhouette takes the text colour; a coloured mark keeps its
39
- * paint.
42
+ * per mark; Alveare by its own; VMware ESXi and Proxmox by the marks Iconify serves from other
43
+ * sets. A silhouette takes the text colour; a coloured mark keeps its paint.
40
44
  * @words None of its own; the platform's name always stands beside it.
41
45
  * @access Always `aria-hidden`: the name beside it is the reading.
42
46
  */
@@ -1 +1 @@
1
- {"version":3,"file":"platform-mark.d.ts","sourceRoot":"","sources":["../../src/components/platform-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAYhF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAwB/B;;;;GAIG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;CAYwB,CAAC;AAExC,KAAK,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAE3C,qFAAqF;AACrF,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,YAAY,CAEtD;AAOD,KAAK,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG;IACtE,QAAQ,EAAE,YAAY,CAAC;IACvB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,IAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAgBzE;AAED,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACpC,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"platform-mark.d.ts","sourceRoot":"","sources":["../../src/components/platform-mark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAYhF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0B/B;;;;;GAKG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;CAcwB,CAAC;AAExC,KAAK,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAE3C,qFAAqF;AACrF,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,YAAY,CAEtD;AAOD,KAAK,iBAAiB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG;IACtE,QAAQ,EAAE,YAAY,CAAC;IACvB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,IAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAgBzE;AAED,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AACpC,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
@@ -12,6 +12,7 @@ import telegram from "@iconify-icons/logos/telegram";
12
12
  import whatsapp from "@iconify-icons/logos/whatsapp-icon";
13
13
  import { alveareMarkGeometry } from "@nadicodeai/design-system/assets/alveare-geometry";
14
14
  import * as React from "react";
15
+ import { esxi, proxmox } from "../internal/hypervisor-marks.js";
15
16
  /**
16
17
  * Alveare, nadicode's own chat, which no catalogue carries: its mark, drawn from
17
18
  * Alveare's geometry without the app icon's tile, boxed to the cells, each cell
@@ -31,17 +32,20 @@ const alveare = {
31
32
  .join(""),
32
33
  };
33
34
  /**
34
- * The platforms the products name, operating systems, messaging channels and
35
- * sign-in providers, each by its mark in Iconify's `logos` set, one module per
36
- * mark, so a page carries these and no other; Alveare by its own.
35
+ * The platforms the products name, operating systems, hypervisors, messaging
36
+ * channels and sign-in providers, each by its mark in Iconify's `logos` set, one
37
+ * module per mark, so a page carries these and no other; Alveare by its own, and
38
+ * the hypervisors the set lacks from `hypervisor-marks`.
37
39
  */
38
40
  const PLATFORMS = {
39
41
  alveare,
40
42
  apple,
41
43
  discord,
44
+ esxi,
42
45
  google,
43
46
  linux,
44
47
  microsoft,
48
+ proxmox,
45
49
  slack,
46
50
  teams,
47
51
  telegram,
@@ -57,16 +61,17 @@ function silhouette(icon) {
57
61
  return !/\b(?:fill|stroke|stop-color)=/.test(icon.body);
58
62
  }
59
63
  /**
60
- * A platform's genuine mark: an operating system, a messaging channel or a sign-in provider.
64
+ * A platform's genuine mark: an operating system, a hypervisor, a messaging channel or a sign-in
65
+ * provider.
61
66
  *
62
67
  * @family Status
63
68
  * @when Naming a platform beside its word: *Continue with Google*, a Telegram channel, the macOS
64
- * download.
69
+ * download, NadiaOS for VMware.
65
70
  * @instead A connected app in its tile is `AppMark`. A model's maker is `ModelMark`. The company is
66
71
  * `BrandMark`.
67
72
  * @behaviour Drawn at once on the server and in the browser from Iconify's `logos` set, one module
68
- * per mark; Alveare by its own. A silhouette takes the text colour; a coloured mark keeps its
69
- * paint.
73
+ * per mark; Alveare by its own; VMware ESXi and Proxmox by the marks Iconify serves from other
74
+ * sets. A silhouette takes the text colour; a coloured mark keeps its paint.
70
75
  * @words None of its own; the platform's name always stands beside it.
71
76
  * @access Always `aria-hidden`: the name beside it is the reading.
72
77
  */
@@ -8,7 +8,7 @@ import { type IdentityMarkProps } from "./identity-mark.js";
8
8
  * @family Status
9
9
  * @when The first cell of every collection row: the mark, the name, and one muted line saying what the record is or where it comes from, so the row reads without a heading.
10
10
  * @instead An Agent in a gallery is `AgentListRow`; a model is `ModelIdentity`. A descriptive item with prose and actions is `Item`.
11
- * @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text; in a row on a card narrower than its columns, the facts that leave the row join it after a middle dot and wrap so every value stays readable, and a status that leaves the row stands beside the name, which ends in an ellipsis before it. `wraps` only when the name is the whole record, such as a memory: the name is then a sentence at the body's regular weight, not a name in semibold, and the detail wraps too. The table owns the link.
11
+ * @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text; in a row on a card narrower than its columns, the facts that leave the row join it after a middle dot and wrap so every value stays readable, and a status that leaves the row stands beside the name, which ends in an ellipsis before it. `wraps` only when the name is the whole record, such as a memory: the name is then a sentence at the body's regular weight, not a name in semibold, and the detail wraps too. `wraps="detail"` keeps the name a one-line name in semibold and wraps the detail in full, for a line the person must read whole, such as the code a request asks them to check. The table owns the link.
12
12
  * @words “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)
13
13
  * Ours: the name as the record calls itself, and the detail in sentence case: kind, then relation, three to six words, "Company skill · every Agent has it".
14
14
  * @access The name is the row link's text; the mark is decorative; the title carries the full name.
@@ -21,7 +21,8 @@ declare function RecordIdentity({ name, mark, hint, detail, wraps, }: {
21
21
  hint?: string;
22
22
  /** The muted line under the name; absent, the row is the name alone. */
23
23
  detail?: ReactNode;
24
- wraps?: boolean;
24
+ /** `true` wraps the name and the detail; `"detail"` the detail alone. */
25
+ wraps?: boolean | "detail";
25
26
  }): import("react").JSX.Element;
26
27
  export { RecordIdentity };
27
28
  //# sourceMappingURL=record-identity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"record-identity.d.ts","sourceRoot":"","sources":["../../src/components/record-identity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAIlF;;;;;;;;;;;;GAYG;AACH,iBAAS,cAAc,CAAC,EACtB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,KAAa,GACd,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,8FAA8F;IAC9F,IAAI,EAAE,iBAAiB,CAAC;IACxB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,+BAgCA;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"record-identity.d.ts","sourceRoot":"","sources":["../../src/components/record-identity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAIlF;;;;;;;;;;;;GAYG;AACH,iBAAS,cAAc,CAAC,EACtB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,KAAa,GACd,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,8FAA8F;IAC9F,IAAI,EAAE,iBAAiB,CAAC;IACxB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,yEAAyE;IACzE,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC5B,+BAkCA;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -10,13 +10,15 @@ import { cn } from "../lib/utils.js";
10
10
  * @family Status
11
11
  * @when The first cell of every collection row: the mark, the name, and one muted line saying what the record is or where it comes from, so the row reads without a heading.
12
12
  * @instead An Agent in a gallery is `AgentListRow`; a model is `ModelIdentity`. A descriptive item with prose and actions is `Item`.
13
- * @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text; in a row on a card narrower than its columns, the facts that leave the row join it after a middle dot and wrap so every value stays readable, and a status that leaves the row stands beside the name, which ends in an ellipsis before it. `wraps` only when the name is the whole record, such as a memory: the name is then a sentence at the body's regular weight, not a name in semibold, and the detail wraps too. The table owns the link.
13
+ * @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text; in a row on a card narrower than its columns, the facts that leave the row join it after a middle dot and wrap so every value stays readable, and a status that leaves the row stands beside the name, which ends in an ellipsis before it. `wraps` only when the name is the whole record, such as a memory: the name is then a sentence at the body's regular weight, not a name in semibold, and the detail wraps too. `wraps="detail"` keeps the name a one-line name in semibold and wraps the detail in full, for a line the person must read whole, such as the code a request asks them to check. The table owns the link.
14
14
  * @words “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)
15
15
  * Ours: the name as the record calls itself, and the detail in sentence case: kind, then relation, three to six words, "Company skill · every Agent has it".
16
16
  * @access The name is the row link's text; the mark is decorative; the title carries the full name.
17
17
  */
18
18
  function RecordIdentity({ name, mark, hint, detail, wraps = false, }) {
19
+ const nameWraps = wraps === true;
20
+ const detailWraps = wraps !== false;
19
21
  const title = typeof name === "string" ? (hint ? `${name} · ${hint}` : name) : undefined;
20
- return (_jsxs("span", { className: "flex min-w-0 items-center gap-4", "data-slot": "record-identity", children: [_jsx(IdentityMark, { ...mark, size: 32 }), _jsxs("span", { className: "grid min-w-0 in-[table]:w-0 in-[table]:flex-1", children: [_jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [_jsx("span", { className: cn("min-w-0 text-foreground", wraps ? "wrap-break-word whitespace-pre-wrap" : "truncate font-semibold"), title: wraps ? undefined : title, children: name }), _jsx(TableCompactNameFacts, {})] }), _jsx("span", { className: cn("text-sm text-muted-foreground", wraps ? "wrap-break-word whitespace-normal" : "truncate"), "data-slot": "record-identity-detail", title: !wraps && typeof detail === "string" ? detail : undefined, children: detail }), _jsx(TableCompactFacts, {})] })] }));
22
+ return (_jsxs("span", { className: "flex min-w-0 items-center gap-4", "data-slot": "record-identity", children: [_jsx(IdentityMark, { ...mark, size: 32 }), _jsxs("span", { className: "grid min-w-0 in-[table]:w-0 in-[table]:flex-1", children: [_jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [_jsx("span", { className: cn("min-w-0 text-foreground", nameWraps ? "wrap-break-word whitespace-pre-wrap" : "truncate font-semibold"), title: nameWraps ? undefined : title, children: name }), _jsx(TableCompactNameFacts, {})] }), _jsx("span", { className: cn("text-sm text-muted-foreground", detailWraps ? "wrap-break-word whitespace-normal" : "truncate"), "data-slot": "record-identity-detail", title: !detailWraps && typeof detail === "string" ? detail : undefined, children: detail }), _jsx(TableCompactFacts, {})] })] }));
21
23
  }
22
24
  export { RecordIdentity };
@@ -12,7 +12,7 @@ import type { CollectionNote } from "../internal/collection-note.js";
12
12
  import { type RowMessage } from "../internal/row-message.js";
13
13
  export type { RowMessage };
14
14
  export type RecordName = {
15
- /** One line, ending in an ellipsis and whole in its title, unless the list `wraps`. */
15
+ /** One line, ending in an ellipsis and whole in its title, unless the list `wraps` it. */
16
16
  name: string;
17
17
  /**
18
18
  * The muted line under the name: what it is or where it comes from. A record with nothing to
@@ -152,8 +152,12 @@ export type RecordListProps<TRecord extends RowData, TCommand extends string = n
152
152
  getId: (record: TRecord) => string;
153
153
  /** What the row is called: required, because every row is an entity with a mark, a name and a line under it. */
154
154
  name: (record: TRecord) => RecordName;
155
- /** The name is the record's whole text, such as a memory: it wraps in full. */
156
- wraps?: boolean;
155
+ /**
156
+ * `true`: the name is the record's whole text, such as a memory: it wraps in full. `"detail"`:
157
+ * the name stays one line and the line under it wraps in full, for a detail the person must read
158
+ * whole, such as the code a request asks them to check.
159
+ */
160
+ wraps?: boolean | "detail";
157
161
  /** A box before each record, so a person can pick several. */
158
162
  select?: RecordSelection<TRecord>;
159
163
  /**
@@ -233,10 +237,10 @@ export type RecordListProps<TRecord extends RowData, TCommand extends string = n
233
237
  /** The record's own action failed or was refused: its message inside its row. */
234
238
  state?: (record: TRecord) => RowMessage | null;
235
239
  /**
236
- * The least width of the commands column in pixels, for a row that draws a button or a failed
237
- * action's next steps. The column is already as wide as its widest row's buttons, next steps
238
- * and three dots need, worked out from their labels, so none is cut: a list gives it only to
239
- * hold a wider column.
240
+ * The least width of the commands column in pixels, whatever its rows draw. The column is
241
+ * already as wide as its widest row's buttons, next steps and three dots need, worked out from
242
+ * their labels, so none is cut: a list gives it only to hold a wider column, such as two lists
243
+ * on one page whose columns line up although only one of them has buttons.
240
244
  */
241
245
  commandsSize?: number;
242
246
  };
@@ -253,7 +257,7 @@ export type RecordListWithout<TRecord extends RowData, Key extends PropertyKey,
253
257
  * @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
254
258
  * “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
255
259
  * Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item`.
256
- * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; a row that draws a button or next steps is never narrower than a `commandsSize` the caller gives). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. A menu keeps every command in the three dots, one alone included, as Vercel's Environment Variables and Members rows do: a button stands on a row only where the list names it as `command`, the record's main job, on every row that can do it, so one list never mixes rows ending in a button with rows ending in dots. The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the button, a decorative icon for the record's mark, a status on every row, or a destructive button on every row: a destructive command stays in the three dots. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"), so choosing never changes the page's title row; the record's own main job stays its row's `command`, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
260
+ * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps="detail"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. A menu keeps every command in the three dots, one alone included, as Vercel's Environment Variables and Members rows do: a button stands on a row only where the list names it as `command`, the record's main job, on every row that can do it, so one list never mixes rows ending in a button with rows ending in dots. The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the button, a decorative icon for the record's mark, a status on every row, or a destructive button on every row: a destructive command stays in the three dots. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"), so choosing never changes the page's title row; the record's own main job stays its row's `command`, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
257
261
  * “Pick the variant by what the user needs: no-results for a filtered list that returned zero rows, blank slate or informational for a resource the user hasn’t created, cleared for completed work, permission for role or tier denials, error for a failed load.” (https://vercel.com/geist/empty-state)
258
262
  * Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card.
259
263
  * “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)
@@ -1 +1 @@
1
- {"version":3,"file":"record-list.d.ts","sourceRoot":"","sources":["../../src/components/record-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAExE,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EAGvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAIjG,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE9E,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,EAAE,cAA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AC,QAAQ,CAAC,CAAC;IAClC;;;OAGG;IACH,KAAK,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IACxE,kDAAkD;IAClD,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,+DAA+D;QAC/D,MAAM,CAAC,EAAE,YAAY,CAAC;QACtB,WAAW,CAAC,EAAE,SAAS,CAAC;QACxB,6GAA6G;QAC7G,OAAO,CAAC,EAAE,WAAW,CAAC;KACvB,CAAC;IACF,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,iFAAiF;IACjF,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;IAC/C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAC3B,OAAO,SAAS,OAAO,EACvB,GAAG,SAAS,WAAW,EACvB,QAAQ,SAAS,MAAM,GAAG,KAAK,IAE/B,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,MAAM,MAAM,GACnD,MAAM,SAAS,OAAO,GACpB,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GACjB,KAAK,GACP,KAAK,CAAC;AAgXZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,UAAU,CAAC,OAAO,SAAS,OAAO,EAAE,QAAQ,SAAS,MAAM,GAAG,KAAK,EACjF,KAAK,EAAE,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC,sCA+C1C"}
@@ -75,7 +75,7 @@ function commandsRoom(list, record) {
75
75
  ...(state?.message.actions ?? []).map((action) => buttonRoom(action, "default")),
76
76
  ];
77
77
  if (widths.length === 0)
78
- return DOTS_ALONE_SIZE;
78
+ return Math.max(DOTS_ALONE_SIZE, list.commandsSize ?? 0);
79
79
  if (dots)
80
80
  widths.push(TOUCH_TARGET);
81
81
  const room = CELL_START +
@@ -310,7 +310,7 @@ function RecordRows(props) {
310
310
  * @instead “For tabular data with sortable columns and shared row shape, use `Table` instead.” (https://vercel.com/geist/entity)
311
311
  * “For a static key/value metadata block on a detail page, use `Description`.” (https://vercel.com/geist/entity)
312
312
  * Ours: Geist's `Table` is a `DataTable`: this list has no visible headings and at most three facts, so a fourth fact is a table, and anything more than a few facts lives on the record's page. A screen gives `RecordList` the records and what each one says, never its own toolbar, table, rows or menus, and nothing else draws a record row. Its `Description` is `ObjectFacts`. Events in time are an `ActivityFeed`. Reusable things a person adds from a catalogue are a `LibraryShelf`. A descriptive row with prose is an `Item`.
313
- * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; a row that draws a button or next steps is never narrower than a `commandsSize` the caller gives). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. A menu keeps every command in the three dots, one alone included, as Vercel's Environment Variables and Members rows do: a button stands on a row only where the list names it as `command`, the record's main job, on every row that can do it, so one list never mixes rows ending in a button with rows ending in dots. The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the button, a decorative icon for the record's mark, a status on every row, or a destructive button on every row: a destructive command stays in the three dots. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"), so choosing never changes the page's title row; the record's own main job stays its row's `command`, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
313
+ * @behaviour One bordered card, a 1 px rule between records and none after the last. A row is 72 px, with 16 px above and below, and its columns stand left to right at the widths the list declares, so a person reads every list the same way: the `select` box (40 px, only when the list is picked from, an optional column), the identity (the rest: the one column without a size), the facts (each its `size`), the status (`status.size`), the time (`time.size`, tabular), the `checklist` ring (52 px, only when the record has steps to be ready) and the commands (as wide as the widest row's buttons, a failed action's next steps and the three dots after them need, worked out from their labels, each label at most 8 px a character and a button holding the longer of its label and its pending label, the dots at their 44 px touch target; 64 px for the three dots alone; never narrower than a `commandsSize` the caller gives, which two lists on one page share so their columns line up although only one has buttons). A `checklist` puts the record's `ProgressChecklist` ring just before its commands, where Vercel ends a project's row with its Production Checklist; the ring opens its own drawer, never the row. Every row has its 32 px mark, its name (600) and, under it, one muted 14 px line, which `wraps="detail"` lets wrap in full where the person must read it whole; `name` and the mark are required; a record with nothing to say under its name leaves the line out and is the name alone, never a dash. Give every column a `size` in pixels; the name takes the rest. With `layout="line"`, as on Vercel's Projects page, the facts and the status share one muted line, joined by a middle dot, in a column as wide as the name's, and the row stays one line (mark, name over its line, that summary, the time, the ring, the three dots) on a card wide enough for its sized columns and 160 px each for the name and the summary, and on a narrower card the summary and the time move under the name as muted text joined by a middle dot that wraps, the status keeping its mark whole and breaking between its words only when it alone is wider than the line, in the same row, their labels read by assistive technology only. Rows of `columns` follow the same rule once the card is narrower than their columns: the facts and the time leave the row for that muted text, wrapping so every value stays readable, never a labelled list, and the status stands beside the name, which ends in an ellipsis before it, so the exception is never the part a phone's line cuts. `facts` takes at most three. A menu keeps every command in the three dots, one alone included, as Vercel's Environment Variables and Members rows do: a button stands on a row only where the list names it as `command`, the record's main job, on every row that can do it, so one list never mixes rows ending in a button with rows ending in dots. The commands never take the name's room: once the row is compact, its commands column holds only the three dots and the row's own buttons stand under the name, beside a failed action's next steps, outside the row's link, so pressing one never opens the record. Every column of the records' attributes stands on every row, as Vercel's lists keep theirs, so a person reads one attribute down a column: a record with no value for a fact draws `TableValue`'s muted dash, with the fact's `missing` read in its place; status is only for the exception, so a healthy record's status cell stays empty and the records that need a person stand out; the commands column, which holds no attribute, stands only while a record has a command, a menu or a message, or the rows open, and it widens for a failed action's next steps only while a row shows one. Never the three dots before the button, a decorative icon for the record's mark, a status on every row, or a destructive button on every row: a destructive command stays in the three dots. A `line` row's summary joins only the facts the record has, so it never ends in a dot. A failed or refused action of the record shows as its catalogue message inside its own row, never a notice under the row: it replaces the detail line, with its next steps beside its commands, or under the message on a card too narrow for the row's columns. With `open` the whole row is one target and takes the `accent` hover, with no chevron, as Vercel's Deployments rows open theirs; a row that opens nothing never reacts to hover. Opening is the row's alone: the three dots never hold a command that only shows the record (*Details*, *View*, *Open*). With `editor` the record's row opens its form under its line. `empty` is required: `null` is the choice to draw nothing for a list with no records, and any other value is the state it draws. A list that is a section of another page takes `heading`: its title, the one line under it, and at the trailing edge the card's `actions`, such as its Add command and a muted count, drawn as every card draws them, so the list and its commands are one card, never a list inside a setting card. A note about the whole list is `footer.note`: one muted line, an optional *Learn more* after it at the left and one secondary action at the right, in a strip of its own under the count and the paging, as Vercel ends its deployments list ("Deployment retention is enabled. Learn more", *View recently deleted*). A list a person picks from (`select`) says what the chosen records do together: while any is chosen, the footer's count becomes theirs ("2 selected") and their one command stands at the footer's end as an outline button ("Invite 2"), so choosing never changes the page's title row; the record's own main job stays its row's `command`, so a person never has to choose a record to act on it. Colour is neutral, the name in ink and every other cell in the body grey, except the status badge and a failed action's message.
314
314
  * “Pick the variant by what the user needs: no-results for a filtered list that returned zero rows, blank slate or informational for a resource the user hasn’t created, cleared for completed work, permission for role or tier denials, error for a failed load.” (https://vercel.com/geist/empty-state)
315
315
  * Ours: `failed`, `noMatch` and `empty` are those variants, drawn inside the card.
316
316
  * “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)
@@ -83,8 +83,15 @@ type SidebarProps = React.ComponentProps<"div"> & ({
83
83
  * @access The column is a landmark; each row is a link or a button with its name, and the current one carries aria-current="page". The handle is a focusable separator with its value in px. The badge's number is read with its row.
84
84
  */
85
85
  declare function Sidebar({ collapsible, resize, mobileTitle, mobileDescription, mobileCloseLabel, mobileFinalFocus, className, children, dir, ...props }: SidebarProps): React.JSX.Element;
86
- type SidebarTriggerProps = Omit<IconButtonPartProps, "aria-label" | "aria-labelledby"> & AccessibleName;
87
- declare function SidebarTrigger({ className, onClick, ...props }: SidebarTriggerProps): React.JSX.Element;
86
+ type SidebarTriggerProps = Omit<IconButtonPartProps, "aria-label" | "aria-labelledby"> & AccessibleName & {
87
+ /**
88
+ * A count among the places that needs the person, such as requests waiting for an answer: the
89
+ * attention badge of the place that holds it, drawn on the trigger while the places are out of
90
+ * sight. The caller's name says it too ("Open the places, 1 waiting").
91
+ */
92
+ attention?: number;
93
+ };
94
+ declare function SidebarTrigger({ className, onClick, attention, ...props }: SidebarTriggerProps): React.JSX.Element;
88
95
  declare function SidebarInset({ className, focusTarget, render, ...props }: useRender.ComponentProps<"div"> & React.ComponentProps<"div"> & {
89
96
  focusTarget?: boolean;
90
97
  }): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/components/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMlE,OAAO,EAAE,KAAK,cAAc,EAAU,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBA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EAChB,cAAc,EACd,yBAAyB,EACzB,UAAU,GACX,CAAC"}
@@ -201,12 +201,12 @@ function SidebarResizeHandle(name) {
201
201
  });
202
202
  } }));
203
203
  }
204
- function SidebarTrigger({ className, onClick, ...props }) {
204
+ function SidebarTrigger({ className, onClick, attention = 0, ...props }) {
205
205
  const { toggleSidebar } = useSidebar();
206
- return (_jsx(Button, { "data-sidebar": "trigger", "data-slot": "sidebar-trigger", variant: "ghost", size: "icon-sm", className: cn(className), onClick: (event) => {
206
+ return (_jsxs(Button, { "data-sidebar": "trigger", "data-slot": "sidebar-trigger", variant: "ghost", size: "icon-sm", className: cn(attention > 0 && "relative", className), onClick: (event) => {
207
207
  onClick?.(event);
208
208
  toggleSidebar();
209
- }, ...props, children: _jsx(PanelLeftIcon, {}) }));
209
+ }, ...props, children: [_jsx(PanelLeftIcon, {}), attention > 0 ? (_jsx("span", { "aria-hidden": "true", className: "pointer-events-none absolute -top-1.5 -right-1.5 flex h-4.5 min-w-4.5 items-center justify-center rounded-full bg-destructive px-1 text-xs font-semibold text-destructive-foreground tabular-nums select-none", "data-slot": "sidebar-trigger-badge", children: attention })) : null] }));
210
210
  }
211
211
  function SidebarInset({ className, focusTarget = false, render, ...props }) {
212
212
  return useRender({
@@ -86,7 +86,7 @@ function TableCell({ className, ...props }) {
86
86
  }
87
87
  function TableDetailRow({ colSpan, facts, layout = "standard", }) {
88
88
  const wraps = facts.some((fact) => fact.wraps);
89
- return (_jsx(TableRow, { "data-slot": "table-detail-row", className: cn("h-auto!", tableCompactLayouts[layout].details), children: _jsx(TableCell, { colSpan: colSpan, className: "pt-0! pb-3! whitespace-normal text-muted-foreground last:text-left", children: _jsx("div", { className: cn("relative min-w-0 in-[[data-slot=table-record-group]:has([data-slot=record-identity])]:pl-12", detailFactsLine, wraps ? ["wrap-break-word", detailFactsWrap] : "w-0 min-w-full truncate"), "data-slot": "table-detail-line", onFocus: wraps ? undefined : titleWhenCut, onPointerEnter: wraps ? undefined : titleWhenCut, children: _jsx(DetailFacts, { facts: facts }) }) }) }));
89
+ return (_jsx(TableRow, { "data-slot": "table-detail-row", className: cn("h-auto!", tableCompactLayouts[layout].details), children: _jsx(TableCell, { colSpan: colSpan, className: "pt-0! pb-3! whitespace-normal text-muted-foreground last:text-left", children: _jsx("div", { className: cn("relative min-w-0 in-[[data-slot=table-record-group]:has([data-slot=record-identity])]:pl-12", detailFactsLine, wraps ? ["wrap-break-word", detailFactsWrap] : "w-0 min-w-full truncate"), "data-slot": "table-detail-line", onFocus: wraps ? undefined : titleWhenCut, onPointerEnter: wraps ? undefined : titleWhenCut, children: _jsx(DetailFacts, { facts: facts, wraps: wraps }) }) }) }));
90
90
  }
91
91
  function TableCaption({ className, ...props }) {
92
92
  return (_jsx("caption", { "data-slot": "table-caption", className: cn("mt-4 text-sm text-muted-foreground", className), ...props }));
@@ -0,0 +1,9 @@
1
+ import type { IconifyIcon } from "@iconify/react/offline";
2
+ /**
3
+ * The hypervisors NadiaOS is deployed on, which Iconify's `logos` set draws only as wordmarks or not
4
+ * at all: VMware ESXi by selfh.st's icon of it and Proxmox by theSVG's mark, as Iconify serves
5
+ * them, each under the licence NOTICE names.
6
+ */
7
+ export declare const esxi: IconifyIcon;
8
+ export declare const proxmox: IconifyIcon;
9
+ //# sourceMappingURL=hypervisor-marks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hypervisor-marks.d.ts","sourceRoot":"","sources":["../../src/internal/hypervisor-marks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,WAKlB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,WAKrB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The hypervisors NadiaOS is deployed on, which Iconify's `logos` set draws only as wordmarks or not
3
+ * at all: VMware ESXi by selfh.st's icon of it and Proxmox by theSVG's mark, as Iconify serves
4
+ * them, each under the licence NOTICE names.
5
+ */
6
+ export const esxi = {
7
+ width: 512,
8
+ height: 512,
9
+ // oxlint-disable-next-line nadicodeai/ui-raw-colour-literal -- a hypervisor's logo keeps its maker's paint, as the Iconify logos the platform mark imports do
10
+ body: '<path fill="#78be20" d="M491.2 87v136h20.4V87c-.1-48-39-86.9-87-87H286.7l-20.4 20.4h158.3c36.7.1 66.5 29.9 66.6 66.6"/><path fill="#00c1d5" d="M221.2 490.8H87.4c-36.7 0-66.5-29.8-66.6-66.6V87c0-36.7 29.8-66.5 66.6-66.6H221L241.5 0H87.4C39.4.1.5 39 .4 87v337.2c.1 48 39 86.9 87 87h133.8z"/><path fill="#0091da" d="M80.7 100v226.9c0 10.9 8.8 19.7 19.7 19.7H129V367h-28.5c-22.2 0-40.2-18-40.2-40.2V100c0-22.2 18-40.2 40.2-40.2h221.4c22.2 0 40.2 18 40.2 40.2v23.1h-20.4V100c0-10.9-8.8-19.7-19.7-19.7H100.4c-10.8 0-19.7 8.8-19.7 19.7M189 450.7h32.2v-20.4H189c-10.9 0-19.7-8.8-19.7-19.7v-227c0-10.9 8.8-19.7 19.7-19.7h221.4c10.9 0 19.7 8.8 19.7 19.7V223h20.4v-39.4c0-22.2-18-40.2-40.2-40.2H189c-22.2 0-40.2 18-40.2 40.2v226.9c0 22.2 18 40.2 40.2 40.2"/><path fill="#1d428a" d="M316.2 376.4c-32.4 0-58.8-26.3-58.8-58.8s26.3-58.8 58.8-58.8c32.4 0 58.8 26.3 58.8 58.8c-.1 32.5-26.3 58.8-58.8 58.8m0-97c-21.2 0-38.3 17.2-38.3 38.3c0 21.2 17.2 38.3 38.3 38.3c21.2 0 38.3-17.2 38.3-38.3c0-21.2-17.1-38.3-38.3-38.3M451.8 512c-32.4 0-58.8-26.3-58.8-58.8s26.3-58.8 58.8-58.8c32.4 0 58.8 26.3 58.8 58.8c-.1 32.5-26.4 58.8-58.8 58.8m0-97.1c-21.2 0-38.3 17.2-38.3 38.3c0 21.2 17.2 38.3 38.3 38.3c21.2 0 38.3-17.2 38.3-38.3s-17.2-38.2-38.3-38.3m58.7-40.9H397.8V261.3h112.7zm-92.2-20.4H490v-71.8h-71.8v71.8zm-46.1 156.2H259.5V397.1h112.7zm-92.3-20.5h71.8v-71.8h-71.8z"/>',
11
+ };
12
+ export const proxmox = {
13
+ width: 24,
14
+ height: 24,
15
+ // oxlint-disable-next-line nadicodeai/ui-raw-colour-literal -- a hypervisor's logo keeps its maker's paint, as the Iconify logos the platform mark imports do
16
+ body: '<path fill="#e57000" d="M4.928 1.825c-1.09.553-1.09.64-.07 1.78c5.655 6.295 7.004 7.782 7.107 7.782c.139.017 7.971-8.542 8.058-8.801c.034-.07-.208-.312-.519-.536c-.415-.312-.864-.433-1.712-.467c-1.59-.104-2.144.242-4.115 2.455c-.899 1.003-1.66 1.833-1.66 1.833c-.017 0-.76-.813-1.642-1.798S8.473 2.1 8.127 1.91c-.796-.45-2.421-.484-3.2-.086zM1.297 4.367C.45 4.695 0 5.007 0 5.248c0 .121 1.331 1.678 2.94 3.459c1.625 1.78 2.939 3.268 2.939 3.302s-1.331 1.522-2.94 3.303C1.314 17.11.017 18.683.035 18.822c.086.467 1.504 1.055 2.541 1.055c1.678-.018 2.058-.312 5.603-4.202c1.78-1.954 3.233-3.614 3.233-3.666c0-.069-1.435-1.694-3.199-3.63c-2.3-2.508-3.423-3.632-3.96-3.874c-.812-.398-2.126-.467-2.956-.138m18.467.12c-.502.26-1.764 1.505-3.943 3.891c-1.763 1.937-3.199 3.562-3.199 3.631c0 .07 1.453 1.712 3.234 3.666c3.544 3.89 3.925 4.184 5.602 4.202c1.038 0 2.455-.588 2.542-1.055c.017-.156-1.28-1.712-2.905-3.493c-1.608-1.78-2.94-3.285-2.94-3.32s1.332-1.539 2.94-3.32C22.72 6.91 24.017 5.352 24 5.214c-.087-.45-1.366-.968-2.473-1.038c-.795-.034-1.21.035-1.763.312zM7.954 16.973c-2.144 2.369-3.908 4.374-3.943 4.46c-.034.07.208.312.52.537c.414.311.864.432 1.711.467c1.574.103 2.161-.26 4.15-2.508c.864-.968 1.608-1.78 1.625-1.78s.761.812 1.643 1.798c2.023 2.248 2.559 2.576 4.132 2.49c.848-.035 1.297-.156 1.712-.467c.311-.225.553-.467.519-.536c-.087-.26-7.92-8.819-8.058-8.801c-.069 0-1.867 1.954-4.011 4.34"/>',
17
+ };
@@ -9,11 +9,18 @@ export type TableDetailFact = {
9
9
  /** The value stands beside the record's name instead, which ends in an ellipsis before it: a status. */
10
10
  besideName?: boolean;
11
11
  };
12
- export declare const detailFactsLine = "**:data-[slot=tag]:align-middle [&>span>:is(div,p,.block,.grid,.flex)]:inline";
12
+ export declare const detailFactsLine = "**:data-[slot=tag]:align-middle [&_[data-slot=detail-fact]>:is(div,p,.block,.grid,.flex)]:inline";
13
13
  export declare const detailFactsWrap = "[&_:not(.sr-only,[data-slot=badge],[data-slot=badge]_*)]:whitespace-normal";
14
- export declare function DetailFacts({ facts }: {
14
+ /**
15
+ * The facts joined by a middle dot. On one line each fact after the first opens with its dot. A line
16
+ * that wraps gives every fact its dot in a 10 px box and shifts the line 10 px back under a clip, so
17
+ * the dot of whichever fact opens a line, the first included, falls outside it: no line starts with
18
+ * a dot.
19
+ */
20
+ export declare function DetailFacts({ facts, wraps, }: {
15
21
  facts: readonly TableDetailFact[];
16
- }): React.JSX.Element[];
22
+ wraps?: boolean;
23
+ }): React.JSX.Element | React.JSX.Element[];
17
24
  type TableCompactLineValue = {
18
25
  layout: TableCompactLayout;
19
26
  facts: readonly TableDetailFact[];
@@ -1 +1 @@
1
- {"version":3,"file":"table-compact-line.d.ts","sourceRoot":"","sources":["../../src/internal/table-compact-line.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAuB,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAG1F,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,K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AK,EAAE,WAAW,CAAA;CAAE,CAAC;AAMlF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,KAAK,EACL,QAAQ,GACT,EAAE,uBAAuB,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAGzD;AAwDD,oEAAoE;AACpE,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4BAenE;AAED,gDAAgD;AAChD,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,4BAetE"}
@@ -3,10 +3,19 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import { tableCompactLayouts } from "../components/table-layouts.js";
5
5
  import { cn } from "../lib/utils.js";
6
- export const detailFactsLine = "**:data-[slot=tag]:align-middle [&>span>:is(div,p,.block,.grid,.flex)]:inline";
6
+ export const detailFactsLine = "**:data-[slot=tag]:align-middle [&_[data-slot=detail-fact]>:is(div,p,.block,.grid,.flex)]:inline";
7
7
  export const detailFactsWrap = "[&_:not(.sr-only,[data-slot=badge],[data-slot=badge]_*)]:whitespace-normal";
8
- export function DetailFacts({ facts }) {
9
- return facts.map((fact, index) => (_jsxs(React.Fragment, { children: [index > 0 ? " " : null, _jsxs("span", { className: "inline-block max-w-full", children: [index > 0 ? _jsx("span", { "aria-hidden": "true", children: "\u00B7 " }) : null, _jsxs("span", { className: "sr-only", children: [fact.label, ": "] }), fact.value] })] }, fact.id)));
8
+ /**
9
+ * The facts joined by a middle dot. On one line each fact after the first opens with its dot. A line
10
+ * that wraps gives every fact its dot in a 10 px box and shifts the line 10 px back under a clip, so
11
+ * the dot of whichever fact opens a line, the first included, falls outside it: no line starts with
12
+ * a dot.
13
+ */
14
+ export function DetailFacts({ facts, wraps = false, }) {
15
+ const shown = facts.map((fact, index) => (_jsxs(React.Fragment, { children: [index > 0 ? " " : null, _jsxs("span", { className: "inline-block max-w-full", "data-slot": "detail-fact", children: [wraps ? (_jsx("span", { "aria-hidden": "true", className: "inline-block w-2.5 text-start", children: "\u00B7" })) : index > 0 ? (_jsx("span", { "aria-hidden": "true", children: "\u00B7 " })) : null, _jsxs("span", { className: "sr-only", children: [fact.label, ": "] }), fact.value] })] }, fact.id)));
16
+ if (!wraps)
17
+ return shown;
18
+ return (_jsx("span", { className: "block overflow-hidden", "data-slot": "detail-facts-clip", children: _jsx("span", { className: "-ms-2.5 flow-root", children: shown }) }));
10
19
  }
11
20
  const TableCompactLineContext = React.createContext(null);
12
21
  export function TableCompactLine({ children, ...value }) {
@@ -19,7 +28,7 @@ export function TableCompactFacts() {
19
28
  const facts = line.facts.filter((fact) => !fact.besideName);
20
29
  if (facts.length === 0)
21
30
  return null;
22
- return (_jsx("span", { className: cn("relative text-sm text-muted-foreground", detailFactsLine, detailFactsWrap, tableCompactLayouts[line.layout].details), "data-slot": "table-detail-line", children: _jsx(DetailFacts, { facts: facts }) }));
31
+ return (_jsx("span", { className: cn("relative text-sm text-muted-foreground", detailFactsLine, detailFactsWrap, tableCompactLayouts[line.layout].details), "data-slot": "table-detail-line", children: _jsx(DetailFacts, { facts: facts, wraps: true }) }));
23
32
  }
24
33
  /** The compact facts that stand beside the name of the row this stands in, which no ellipsis cuts; nothing outside such a row or on a card wide enough for the columns. */
25
34
  export function TableCompactNameFacts() {