@nadicodeai/ui 12.1.242 → 12.1.244

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 (33) hide show
  1. package/dist/components/activity-feed.d.ts +5 -18
  2. package/dist/components/activity-feed.d.ts.map +1 -1
  3. package/dist/components/activity-feed.js +6 -15
  4. package/dist/components/button.d.ts +2 -2
  5. package/dist/components/button.js +2 -2
  6. package/dist/components/card.d.ts +1 -1
  7. package/dist/components/card.js +2 -2
  8. package/dist/components/disclosure-row.d.ts +3 -2
  9. package/dist/components/disclosure-row.d.ts.map +1 -1
  10. package/dist/components/disclosure-row.js +4 -5
  11. package/dist/components/event-row.d.ts +59 -0
  12. package/dist/components/event-row.d.ts.map +1 -0
  13. package/dist/components/event-row.js +59 -0
  14. package/dist/components/object-page.js +1 -1
  15. package/dist/components/object-workspace.js +1 -1
  16. package/dist/components/plan-card.d.ts +1 -1
  17. package/dist/components/plan-card.d.ts.map +1 -1
  18. package/dist/components/plan-card.js +2 -2
  19. package/dist/components/sonner.d.ts +2 -2
  20. package/dist/components/sonner.d.ts.map +1 -1
  21. package/dist/components/sonner.js +18 -12
  22. package/dist/components/toast.d.ts.map +1 -1
  23. package/dist/components/toast.js +32 -34
  24. package/dist/showcase/specimens/data.d.ts +2 -0
  25. package/dist/showcase/specimens/data.d.ts.map +1 -1
  26. package/dist/showcase/specimens/data.js +27 -1
  27. package/dist/showcase/specimens/index.d.ts +1 -0
  28. package/dist/showcase/specimens/index.d.ts.map +1 -1
  29. package/dist/showcase/usage.generated.d.ts +1 -1
  30. package/dist/showcase/usage.generated.d.ts.map +1 -1
  31. package/dist/showcase/usage.generated.js +18 -7
  32. package/dist/styles/components.css +0 -26
  33. package/package.json +2 -2
@@ -1,24 +1,11 @@
1
- import type { ComponentProps, ReactNode } from "react";
1
+ import type { ComponentProps } from "react";
2
2
  import { DateRangeControl } from "./chart-date-range-control.js";
3
3
  import { type CollectionFiltersProps } from "./collection-filters.js";
4
4
  import { type CollectionSearchProps } from "./collection-search.js";
5
5
  import { type EmptyStateKind } from "./empty-state.js";
6
- import { type IdentityMarkProps } from "./identity-mark.js";
6
+ import { type ActivityEvent } from "./event-row.js";
7
7
  import type { PageCommand } from "./page-actions.js";
8
- import type { RecordStatus } from "./record-list.js";
9
- export type ActivityEvent = {
10
- id: string;
11
- /** Shown as the time of day in the viewer's zone; UTC and local on hover. */
12
- at: Date | number | string;
13
- /** Who did it, at 24: a person's initials, an Agent's orb, an Installation's tile. The system's own work has none. */
14
- actor?: IdentityMarkProps;
15
- /** The sentence: the actor's name in <strong>, the action, the object as a value link. */
16
- summary: ReactNode;
17
- /** Only for the exception: a revocation, a failure. */
18
- status?: RecordStatus | null;
19
- /** One muted line. */
20
- detail?: ReactNode;
21
- };
8
+ export type { ActivityEvent } from "./event-row.js";
22
9
  export type ActivityDay = {
23
10
  id: string;
24
11
  /** "Today" */
@@ -54,9 +41,9 @@ export declare function ActivityFeedSkeleton(): import("react").JSX.Element;
54
41
  * newest first.
55
42
  *
56
43
  * @family Compositions
57
- * @when A record's history: a Customer's, a Partner's or an Installation's Activity tab in the Portal, the company wiki's updates in Nadia. Each answers "what happened, and when?".
44
+ * @when A record's history: a Customer's, a Partner's or an Installation's Activity tab in the Portal, the company wiki's updates in Nadia. Each answers "what happened, and when?". Its row, `EventRow`, also stands alone, one row at a time, between the messages of an Agent's chat in Nadia.
58
45
  * @instead The steps of one Agent run, read in order, are a RunTimeline; a list of records a person finds and acts on is a CollectionPage; a single "last changed" fact is a RecordTime.
59
- * @behaviour The search, filters and window sit right above the rows, kept in the URL by the product. Days stand newest first, each a title and a muted date over one card of rows; a row is the time of day, the actor's 24 px mark, the sentence with a status badge only for an exception, and one muted line of detail. "Show older events" follows the last day as a full-width `LoadMoreButton`, or as a `ButtonLink` when it navigates; there is never a page count. States, first that holds: failed, loading (still rows in the row's shape, which `ActivityFeedSkeleton` also draws while a page reads the events before it can draw the feed; nadicode decision), no match with Clear filters, nothing yet in one line, the days. Nothing yet is one quiet line, never a picture; a failed read is the warning mark with Retry, never "no events". The time is the time of day in the viewer's own zone in tabular figures (`RecordTime`), with UTC and the viewer's zone in its hover card; one rule for every feed, never a time printed in UTC as the viewer's: a server-rendered page passes the viewer's `timeZone`, since without it the server and the first client render print UTC. The actor's mark is a person's initials, an Agent's real orb or an Installation's tile; the system's own work has no mark and never takes an orb. Under 900 px the time moves under the sentence. It draws no card header: the tab is the title.
46
+ * @behaviour The search, filters and window sit right above the rows, kept in the URL by the product. Days stand newest first, each a title and a muted date over one card of rows; a row, an `EventRow`, is the time of day, the actor's 24 px mark, the sentence with a status badge only for an exception, and one muted line of detail. "Show older events" follows the last day as a full-width `LoadMoreButton`, or as a `ButtonLink` when it navigates; there is never a page count. States, first that holds: failed, loading (still rows in the row's shape, which `ActivityFeedSkeleton` also draws while a page reads the events before it can draw the feed; nadicode decision), no match with Clear filters, nothing yet in one line, the days. Nothing yet is one quiet line, never a picture; a failed read is the warning mark with Retry, never "no events". The time is the time of day in the viewer's own zone in tabular figures (`RecordTime`), with UTC and the viewer's zone in its hover card; one rule for every feed, never a time printed in UTC as the viewer's: a server-rendered page passes the viewer's `timeZone`, since without it the server and the first client render print UTC. The actor's mark is a person's initials, an Agent's real orb or an Installation's tile; the system's own work has no mark and never takes an orb. Under 900 px the time moves under the sentence. It draws no card header: the tab is the title.
60
47
  * @words The sentence names the actor in `<strong>`, the action in the past tense and the object as a link that keeps the text's colour: "Marco Rinaldi created the Agent Acme Quotes". Day titles are "Today", "Yesterday", then the weekday; dates are the product's own ("14 October"). Nothing yet: "No events yet." and what will appear. No match: "No events match these filters.".
61
48
  * @access The toolbar is named by `label`; each day's title is a level-3 heading over a list of its events; while loading, one status named by `loadingLabel` stands for the rows, and `ActivityFeedSkeleton`, a page's placeholder before it can draw the feed, is busy and carries no words; each time is a `<time>` with its exact moment for assistive technology. A system event has no mark, so nothing empty is announced.
62
49
  */
@@ -1 +1 @@
1
- {"version":3,"file":"activity-feed.d.ts","sourceRoot":"","sources":["../../src/components/activity-feed.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACjG,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAElF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,EAAE,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAC3B,sHAAsH;IACtH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,0FAA0F;IAC1F,OAAO,EAAE,SAAS,CAAC;IACnB,uDAAuD;IACvD,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,sBAAsB;IACtB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc;IACd,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,EAAE,SAAS,WAAW,EAAE,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,+CAA+C;IAC/C,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IACpC,uGAAuG;IACvG,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;CACnC,CAAC;AAiEF,qIAAqI;AACrI,wBAAgB,oBAAoB,gCAUnC;AA6DD;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,MAAM,EACN,OAAO,EACP,KAAK,EACL,KAAK,EACL,YAAY,EACZ,KAAK,EACL,OAAO,EACP,MAAM,GACP,EAAE,iBAAiB,+BAiCnB"}
1
+ {"version":3,"file":"activity-feed.d.ts","sourceRoot":"","sources":["../../src/components/activity-feed.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAqB,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACjG,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,KAAK,aAAa,EAA8B,MAAM,wBAAwB,CAAC;AAExF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAG7D,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc;IACd,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB;IACpB,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,EAAE,SAAS,WAAW,EAAE,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,+CAA+C;IAC/C,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IACpC,uGAAuG;IACvG,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;CACnC,CAAC;AAwBF,qIAAqI;AACrI,wBAAgB,oBAAoB,gCAUnC;AAmED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,MAAM,EACN,OAAO,EACP,KAAK,EACL,KAAK,EACL,YAAY,EACZ,KAAK,EACL,OAAO,EACP,MAAM,GACP,EAAE,iBAAiB,+BAiCnB"}
@@ -7,21 +7,12 @@ import { CollectionFilters } from "./collection-filters.js";
7
7
  import { CollectionSearch } from "./collection-search.js";
8
8
  import { CollectionToolbar } from "./collection-toolbar.js";
9
9
  import { EmptyState } from "./empty-state.js";
10
- import { IdentityMark } from "./identity-mark.js";
10
+ import { EventRow, EventRowSkeleton } from "./event-row.js";
11
11
  import { LoadMoreButton } from "./load-more-button.js";
12
- import { RecordTime } from "./record-time.js";
13
- import { Skeleton, SkeletonRegion } from "./skeleton.js";
14
- import { StatusBadge } from "./status-badge.js";
15
- const ROW = "grid grid-cols-[72px_24px_minmax(0,1fr)] items-start gap-3 px-4 py-3 max-[900px]:grid-cols-[24px_minmax(0,1fr)]";
16
- const UNDER_TEXT = "max-[900px]:col-start-2 max-[900px]:row-start-2";
17
- const MARK_CELL = "max-[900px]:col-start-1 max-[900px]:row-start-1";
18
- const TEXT_CELL = "max-[900px]:col-start-2 max-[900px]:row-start-1";
12
+ import { SkeletonRegion } from "./skeleton.js";
19
13
  const LOADING_ROWS = ["first", "second", "third"];
20
- function EventRow({ event, locale, timeZone }) {
21
- return (_jsxs("li", { className: ROW, "data-slot": "activity-event", children: [_jsx("div", { className: `text-label-sm leading-5 ${UNDER_TEXT}`, "data-slot": "activity-event-time", children: _jsx(RecordTime, { at: event.at, locale: locale, mode: "clock", timeZone: timeZone }) }), _jsx("div", { className: `flex h-5 items-center ${MARK_CELL}`, children: event.actor ? _jsx(IdentityMark, { ...event.actor, size: 24 }) : null }), _jsxs("div", { className: `min-w-0 ${TEXT_CELL}`, children: [_jsxs("div", { className: "text-body-sm text-muted-foreground [&_strong]:font-medium [&_strong]:text-foreground", children: [event.summary, event.status ? (_jsx(StatusBadge, { className: "ml-1.5 align-middle", label: event.status.label, tone: event.status.tone })) : null] }), event.detail ? (_jsx("div", { className: "mt-0.5 text-label-sm text-muted-foreground", children: event.detail })) : null] })] }));
22
- }
23
14
  function LoadingCard() {
24
- return (_jsx(Card, { className: "gap-0 divide-y divide-border py-0", surface: "resting", children: LOADING_ROWS.map((row) => (_jsxs("div", { "aria-hidden": "true", className: ROW, children: [_jsx(Skeleton, { className: `mt-1 h-2.5 w-12 ${UNDER_TEXT}` }), _jsx(Skeleton, { className: `size-6 ${MARK_CELL}`, shape: "circle" }), _jsxs("div", { className: `grid gap-2 pt-1 ${TEXT_CELL}`, children: [_jsx(Skeleton, { className: "h-2.5 w-4/5" }), _jsx(Skeleton, { className: "h-2.5 w-3/5" })] })] }, row))) }));
15
+ return (_jsx(Card, { className: "gap-0 divide-y divide-border py-0", surface: "resting", children: LOADING_ROWS.map((row) => (_jsx(EventRowSkeleton, {}, row))) }));
25
16
  }
26
17
  function LoadingRows({ label }) {
27
18
  return (_jsx(SkeletonRegion, { "aria-label": label, busy: true, role: "status", children: _jsx(LoadingCard, {}) }));
@@ -39,16 +30,16 @@ function OlderEvents({ command }) {
39
30
  return (_jsx(LoadMoreButton, { disabled: command.disabled, loading: loading, loadingLabel: loadingLabel, noGap: true, onClick: command.onClick, render: command.render, children: command.label }));
40
31
  }
41
32
  function Days({ days, locale, timeZone, older, }) {
42
- return (_jsxs(_Fragment, { children: [days.map((day) => (_jsxs("div", { className: "flex flex-col gap-2", "data-slot": "activity-day", children: [_jsxs("h3", { className: "text-body-sm font-medium text-foreground", children: [day.title, " ", _jsx("span", { className: "text-muted-foreground", children: day.date })] }), _jsx(Card, { className: "gap-0 divide-y divide-border py-0", render: _jsx("ul", {}), surface: "resting", children: day.events.map((event) => (_jsx(EventRow, { event: event, locale: locale, timeZone: timeZone }, event.id))) })] }, day.id))), older ? _jsx(OlderEvents, { command: older }) : null] }));
33
+ return (_jsxs(_Fragment, { children: [days.map((day) => (_jsxs("div", { className: "flex flex-col gap-2", "data-slot": "activity-day", children: [_jsxs("h3", { className: "text-body-sm font-medium text-foreground", children: [day.title, " ", _jsx("span", { className: "text-muted-foreground", children: day.date })] }), _jsx(Card, { className: "gap-0 divide-y divide-border py-0", render: _jsx("ul", {}), surface: "resting", children: day.events.map((event) => (_jsx(EventRow, { event: event, layout: "feed", locale: locale, timeZone: timeZone }, event.id))) })] }, day.id))), older ? _jsx(OlderEvents, { command: older }) : null] }));
43
34
  }
44
35
  /**
45
36
  * What happened to a record, and when: one row per event under its day,
46
37
  * newest first.
47
38
  *
48
39
  * @family Compositions
49
- * @when A record's history: a Customer's, a Partner's or an Installation's Activity tab in the Portal, the company wiki's updates in Nadia. Each answers "what happened, and when?".
40
+ * @when A record's history: a Customer's, a Partner's or an Installation's Activity tab in the Portal, the company wiki's updates in Nadia. Each answers "what happened, and when?". Its row, `EventRow`, also stands alone, one row at a time, between the messages of an Agent's chat in Nadia.
50
41
  * @instead The steps of one Agent run, read in order, are a RunTimeline; a list of records a person finds and acts on is a CollectionPage; a single "last changed" fact is a RecordTime.
51
- * @behaviour The search, filters and window sit right above the rows, kept in the URL by the product. Days stand newest first, each a title and a muted date over one card of rows; a row is the time of day, the actor's 24 px mark, the sentence with a status badge only for an exception, and one muted line of detail. "Show older events" follows the last day as a full-width `LoadMoreButton`, or as a `ButtonLink` when it navigates; there is never a page count. States, first that holds: failed, loading (still rows in the row's shape, which `ActivityFeedSkeleton` also draws while a page reads the events before it can draw the feed; nadicode decision), no match with Clear filters, nothing yet in one line, the days. Nothing yet is one quiet line, never a picture; a failed read is the warning mark with Retry, never "no events". The time is the time of day in the viewer's own zone in tabular figures (`RecordTime`), with UTC and the viewer's zone in its hover card; one rule for every feed, never a time printed in UTC as the viewer's: a server-rendered page passes the viewer's `timeZone`, since without it the server and the first client render print UTC. The actor's mark is a person's initials, an Agent's real orb or an Installation's tile; the system's own work has no mark and never takes an orb. Under 900 px the time moves under the sentence. It draws no card header: the tab is the title.
42
+ * @behaviour The search, filters and window sit right above the rows, kept in the URL by the product. Days stand newest first, each a title and a muted date over one card of rows; a row, an `EventRow`, is the time of day, the actor's 24 px mark, the sentence with a status badge only for an exception, and one muted line of detail. "Show older events" follows the last day as a full-width `LoadMoreButton`, or as a `ButtonLink` when it navigates; there is never a page count. States, first that holds: failed, loading (still rows in the row's shape, which `ActivityFeedSkeleton` also draws while a page reads the events before it can draw the feed; nadicode decision), no match with Clear filters, nothing yet in one line, the days. Nothing yet is one quiet line, never a picture; a failed read is the warning mark with Retry, never "no events". The time is the time of day in the viewer's own zone in tabular figures (`RecordTime`), with UTC and the viewer's zone in its hover card; one rule for every feed, never a time printed in UTC as the viewer's: a server-rendered page passes the viewer's `timeZone`, since without it the server and the first client render print UTC. The actor's mark is a person's initials, an Agent's real orb or an Installation's tile; the system's own work has no mark and never takes an orb. Under 900 px the time moves under the sentence. It draws no card header: the tab is the title.
52
43
  * @words The sentence names the actor in `<strong>`, the action in the past tense and the object as a link that keeps the text's colour: "Marco Rinaldi created the Agent Acme Quotes". Day titles are "Today", "Yesterday", then the weekday; dates are the product's own ("14 October"). Nothing yet: "No events yet." and what will appear. No match: "No events match these filters.".
53
44
  * @access The toolbar is named by `label`; each day's title is a level-3 heading over a list of its events; while loading, one status named by `loadingLabel` stands for the rows, and `ActivityFeedSkeleton`, a page's placeholder before it can draw the feed, is busy and carries no words; each time is a `<time>` with its exact moment for assistive technology. A system event has no mark, so nothing empty is announced.
54
45
  */
@@ -92,8 +92,8 @@ export type IconButtonPartProps = Omit<IconButtonProps, "size" | "aria-label" |
92
92
  * Ours: text children sit in a label box that adds 6 px each side to the padding, except at `xs` and
93
93
  * the icon sizes, which have none; an element child (a `render` target, a row with a trailing `Kbd`)
94
94
  * lays itself out and gets no box. Colour sits on
95
- * the whole button for three looks: `default` is ink with a white label (in dark, the light action
96
- * fill with a near-black label, never pure white), `destructive` is the error fill for permanent
95
+ * the whole button for three looks: `default` is the primary action colour, cobalto, with its white
96
+ * label in both themes, `destructive` is the error fill for permanent
97
97
  * loss (Delete project), `warning` is the amber fill for a disruptive command that can be undone
98
98
  * (Pause project). `link` is the link colour as text, with the arrow as `suffix` when the
99
99
  * destination is outside the product. `outline` and `secondary` are neutral with a hairline edge,
@@ -70,8 +70,8 @@ function ButtonContent({ children, loading, loadingLabel, prefix, size, suffix,
70
70
  * Ours: text children sit in a label box that adds 6 px each side to the padding, except at `xs` and
71
71
  * the icon sizes, which have none; an element child (a `render` target, a row with a trailing `Kbd`)
72
72
  * lays itself out and gets no box. Colour sits on
73
- * the whole button for three looks: `default` is ink with a white label (in dark, the light action
74
- * fill with a near-black label, never pure white), `destructive` is the error fill for permanent
73
+ * the whole button for three looks: `default` is the primary action colour, cobalto, with its white
74
+ * label in both themes, `destructive` is the error fill for permanent
75
75
  * loss (Delete project), `warning` is the amber fill for a disruptive command that can be undone
76
76
  * (Pause project). `link` is the link colour as text, with the arrow as `suffix` when the
77
77
  * destination is outside the product. `outline` and `secondary` are neutral with a hairline edge,
@@ -9,7 +9,7 @@ type CardFlush = "bottom" | "all";
9
9
  * @family Data
10
10
  * @when "For in-product cards and dashboard tiles, use `Card`; Book is too decorative for repeated UI rows." (https://vercel.com/geist/book) Ours: only inside a composition that owns the job: the object card of an `ObjectPage`, the setting card of a `SettingsSection`, a KPI, a chart, a table. A new kind of card is a new composition, never a `Card` assembled at a call site, and never a card holding only an introduction.
11
11
  * @instead "Groups related form controls inside a bordered card with optional footer actions." (https://vercel.com/geist/fieldset) Ours: that card, a title and description, one control and a footer with help at the start and one action at the end, is `SettingsSection`. An object's card (a header bar with its name and commands, a body of facts, rows that open, a footer hint with one link elsewhere) is `ObjectPage`. The page's title row is never in a card. A row of a list is `Item`. A plane of brand colour is `BrandField`.
12
- * @behaviour "One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title's right; on a card narrower than 28rem, as on a phone, the description runs under both, and the control moves under the title only when the title's longest word would not fit beside it, so it never covers it. An action of several controls moves under the description in a header narrower than 28rem (the header's own width, not the viewport's); `CardFooter` is a strip in the `recessed` role, one tone off the card body inside the card's edge, behind one seam in the border colour: `canvas-soft` below the white card in light, and `dark-canvas` below the resting body in dark; on the left one short muted line, only where it says something specific to that card (a limit such as *Please use 32 characters at maximum.*, what a value is for, the plan a feature needs or a link to learn more) and never one sentence every card repeats, on the right at most one button or link, the section's action. It is 56 px high whether or not it holds a button, and as high as its lines in a `size="sm"` card, the compact card of a side column or a figure. The two kinds differ in what their header and footer hold: an object card's header holds the object's commands and its footer only a link, so it never saves; a setting card's header holds a title, a description and its `actions` or `control`, and its footer holds the Save, which also applies a switch in the card (`SettingsSection`). A card's or a section's title carries no icon, unless the card stands for one external system, whose mark it then carries. A card is neutral; colour enters only through a status inside it or a section's `tone`.
12
+ * @behaviour "One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. A `CardTitle` wraps inside the card, breaking a word longer than its width, such as a long name, so no title runs past the card's edge. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title's right; on a card narrower than 28rem, as on a phone, the description runs under both, and the control moves under the title only when the title's longest word would not fit beside it, so it never covers it. An action of several controls moves under the description in a header narrower than 28rem (the header's own width, not the viewport's); `CardFooter` is a strip in the `recessed` role, one tone off the card body inside the card's edge, behind one seam in the border colour: `canvas-soft` below the white card in light, and `dark-canvas` below the resting body in dark; on the left one short muted line, only where it says something specific to that card (a limit such as *Please use 32 characters at maximum.*, what a value is for, the plan a feature needs or a link to learn more) and never one sentence every card repeats, on the right at most one button or link, the section's action. It is 56 px high whether or not it holds a button, and as high as its lines in a `size="sm"` card, the compact card of a side column or a figure. The two kinds differ in what their header and footer hold: an object card's header holds the object's commands and its footer only a link, so it never saves; a setting card's header holds a title, a description and its `actions` or `control`, and its footer holds the Save, which also applies a switch in the card (`SettingsSection`). A card's or a section's title carries no icon, unless the card stands for one external system, whose mark it then carries. A card is neutral; colour enters only through a status inside it or a section's `tone`.
13
13
  * `flush="bottom"` ends the card at its last child, for rows whose hairlines run to its bottom edge, as a footer does; `flush="all"` lets the content meet every edge with no gap between children, for one picture or grid that fills the card.
14
14
  * @words The title is a noun phrase naming what the card holds; the description one sentence directly under it, only when it adds something.
15
15
  * @access A plain container; give it `render={<section />}` with a heading when it is a region of the page.
@@ -8,7 +8,7 @@ import { cn } from "../lib/utils.js";
8
8
  * @family Data
9
9
  * @when "For in-product cards and dashboard tiles, use `Card`; Book is too decorative for repeated UI rows." (https://vercel.com/geist/book) Ours: only inside a composition that owns the job: the object card of an `ObjectPage`, the setting card of a `SettingsSection`, a KPI, a chart, a table. A new kind of card is a new composition, never a `Card` assembled at a call site, and never a card holding only an introduction.
10
10
  * @instead "Groups related form controls inside a bordered card with optional footer actions." (https://vercel.com/geist/fieldset) Ours: that card, a title and description, one control and a footer with help at the start and one action at the end, is `SettingsSection`. An object's card (a header bar with its name and commands, a body of facts, rows that open, a footer hint with one link elsewhere) is `ObjectPage`. The page's title row is never in a card. A row of a list is `Item`. A plane of brand colour is `BrandField`.
11
- * @behaviour "One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title's right; on a card narrower than 28rem, as on a phone, the description runs under both, and the control moves under the title only when the title's longest word would not fit beside it, so it never covers it. An action of several controls moves under the description in a header narrower than 28rem (the header's own width, not the viewport's); `CardFooter` is a strip in the `recessed` role, one tone off the card body inside the card's edge, behind one seam in the border colour: `canvas-soft` below the white card in light, and `dark-canvas` below the resting body in dark; on the left one short muted line, only where it says something specific to that card (a limit such as *Please use 32 characters at maximum.*, what a value is for, the plan a feature needs or a link to learn more) and never one sentence every card repeats, on the right at most one button or link, the section's action. It is 56 px high whether or not it holds a button, and as high as its lines in a `size="sm"` card, the compact card of a side column or a figure. The two kinds differ in what their header and footer hold: an object card's header holds the object's commands and its footer only a link, so it never saves; a setting card's header holds a title, a description and its `actions` or `control`, and its footer holds the Save, which also applies a switch in the card (`SettingsSection`). A card's or a section's title carries no icon, unless the card stands for one external system, whose mark it then carries. A card is neutral; colour enters only through a status inside it or a section's `tone`.
11
+ * @behaviour "One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. A `CardTitle` wraps inside the card, breaking a word longer than its width, such as a long name, so no title runs past the card's edge. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title's right; on a card narrower than 28rem, as on a phone, the description runs under both, and the control moves under the title only when the title's longest word would not fit beside it, so it never covers it. An action of several controls moves under the description in a header narrower than 28rem (the header's own width, not the viewport's); `CardFooter` is a strip in the `recessed` role, one tone off the card body inside the card's edge, behind one seam in the border colour: `canvas-soft` below the white card in light, and `dark-canvas` below the resting body in dark; on the left one short muted line, only where it says something specific to that card (a limit such as *Please use 32 characters at maximum.*, what a value is for, the plan a feature needs or a link to learn more) and never one sentence every card repeats, on the right at most one button or link, the section's action. It is 56 px high whether or not it holds a button, and as high as its lines in a `size="sm"` card, the compact card of a side column or a figure. The two kinds differ in what their header and footer hold: an object card's header holds the object's commands and its footer only a link, so it never saves; a setting card's header holds a title, a description and its `actions` or `control`, and its footer holds the Save, which also applies a switch in the card (`SettingsSection`). A card's or a section's title carries no icon, unless the card stands for one external system, whose mark it then carries. A card is neutral; colour enters only through a status inside it or a section's `tone`.
12
12
  * `flush="bottom"` ends the card at its last child, for rows whose hairlines run to its bottom edge, as a footer does; `flush="all"` lets the content meet every edge with no gap between children, for one picture or grid that fills the card.
13
13
  * @words The title is a noun phrase naming what the card holds; the description one sentence directly under it, only when it adds something.
14
14
  * @access A plain container; give it `render={<section />}` with a heading when it is a region of the page.
@@ -32,7 +32,7 @@ function CardHeader({ className, narrowAction, ...props }) {
32
32
  return (_jsx("div", { "data-slot": "card-header-frame", className: "@container/card-header-frame rounded-t-[inherit]", children: _jsx("div", { "data-slot": "card-header", "data-narrow-action": narrowAction, className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-x-1 gap-y-2 rounded-t-[inherit] px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[minmax(0,1fr)_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] *:data-[slot=card-description]:col-start-1 *:data-[slot=card-title]:col-start-1 [.border-b]:pb-(--card-spacing)", className), ...props }) }));
33
33
  }
34
34
  function CardTitle({ className, focusTarget = false, ...props }) {
35
- return (_jsx("div", { "data-slot": "card-title", "data-focus-target": focusTarget || undefined, className: cn("text-heading-sm group-data-[size=sm]/card:text-heading-xs", focusTarget && "rounded-sm", className), ...props }));
35
+ return (_jsx("div", { "data-slot": "card-title", "data-focus-target": focusTarget || undefined, className: cn("min-w-0 text-heading-sm wrap-break-word group-data-[size=sm]/card:text-heading-xs", focusTarget && "rounded-sm", className), ...props }));
36
36
  }
37
37
  function CardDescription({ className, ...props }) {
38
38
  return (_jsx("div", { "data-slot": "card-description", className: cn("text-sm text-muted-foreground", className), ...props }));
@@ -13,8 +13,9 @@ interface DisclosureRowProps {
13
13
  * @family Data
14
14
  * @when A line in a dense list that opens to show its detail: a tool call, a group of steps.
15
15
  * @instead Supporting detail on a page is `Disclosure`.
16
- * @behaviour The chevron shows on hover or focus and while open. Without `onToggle` the row is
17
- * static and draws no chevron.
16
+ * @behaviour A row that toggles always shows its chevron right after the label, pointing right
17
+ * while closed and turned down while open; hover and focus only turn the label to the foreground
18
+ * colour. Without `onToggle` the row is static and draws no chevron.
18
19
  * @words The label names what is inside; the trailing value is a short figure.
19
20
  * @access The label is a `button` with `aria-expanded` when it toggles.
20
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"disclosure-row.d.ts","sourceRoot":"","sources":["../../src/components/disclosure-row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,QAAQ,GACT,EAAE,kBAAkB,+BA+CpB;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"disclosure-row.d.ts","sourceRoot":"","sources":["../../src/components/disclosure-row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;GAWG;AACH,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,QAAQ,GACT,EAAE,kBAAkB,+BAyCpB;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -7,14 +7,13 @@ import { cn } from "../lib/utils.js";
7
7
  * @family Data
8
8
  * @when A line in a dense list that opens to show its detail: a tool call, a group of steps.
9
9
  * @instead Supporting detail on a page is `Disclosure`.
10
- * @behaviour The chevron shows on hover or focus and while open. Without `onToggle` the row is
11
- * static and draws no chevron.
10
+ * @behaviour A row that toggles always shows its chevron right after the label, pointing right
11
+ * while closed and turned down while open; hover and focus only turn the label to the foreground
12
+ * colour. Without `onToggle` the row is static and draws no chevron.
12
13
  * @words The label names what is inside; the trailing value is a short figure.
13
14
  * @access The label is a `button` with `aria-expanded` when it toggles.
14
15
  */
15
16
  function DisclosureRow({ action, children, className, onToggle, open, trailing, }) {
16
- return (_jsxs("div", { className: cn("group/disclosure-row relative flex w-full max-w-full min-w-0 text-muted-foreground", className), "data-slot": "disclosure-row", children: [_jsxs("button", { "aria-expanded": onToggle ? open : undefined, className: cn("nc-transition-paint flex min-w-0 max-w-fit items-start gap-1.5 text-left", onToggle ? "hover:text-foreground focus-visible:text-foreground" : "cursor-default"), disabled: !onToggle, onClick: onToggle, type: "button", children: [_jsx("span", { className: "flex min-w-0 flex-col gap-0.5", children: children }), onToggle ? (_jsx("span", { className: cn("nc-transition-opacity flex shrink-0 items-center justify-center", open
17
- ? "opacity-80"
18
- : "opacity-0 group-hover/disclosure-row:opacity-80 group-focus-within/disclosure-row:opacity-80"), children: _jsx(ChevronRightIcon, { "aria-hidden": "true", className: cn("nc-transition-transform size-3", open && "rotate-90"), "data-icon": "inline-end" }) })) : null] }), action ? (_jsx("span", { className: "ml-auto flex shrink-0 items-center self-start pl-1.5", children: action })) : null, trailing ? (_jsx("span", { className: "pointer-events-none absolute top-0 right-1 flex items-center", children: trailing })) : null] }));
17
+ return (_jsxs("div", { className: cn("group/disclosure-row relative flex w-full max-w-full min-w-0 text-muted-foreground", className), "data-slot": "disclosure-row", children: [_jsxs("button", { "aria-expanded": onToggle ? open : undefined, className: cn("nc-transition-paint flex min-w-0 max-w-fit items-start gap-1.5 text-left", onToggle ? "hover:text-foreground focus-visible:text-foreground" : "cursor-default"), disabled: !onToggle, onClick: onToggle, type: "button", children: [_jsx("span", { className: "flex min-w-0 flex-col gap-0.5", children: children }), onToggle ? (_jsx("span", { className: "flex shrink-0 items-center justify-center", children: _jsx(ChevronRightIcon, { "aria-hidden": "true", className: "nc-transition-transform size-3 data-[state=open]:rotate-90", "data-icon": "inline-end", "data-state": open ? "open" : "closed" }) })) : null] }), action ? (_jsx("span", { className: "ml-auto flex shrink-0 items-center self-start pl-1.5", children: action })) : null, trailing ? (_jsx("span", { className: "pointer-events-none absolute top-0 right-1 flex items-center", children: trailing })) : null] }));
19
18
  }
20
19
  export { DisclosureRow };
@@ -0,0 +1,59 @@
1
+ import { type ReactNode } from "react";
2
+ import { type IdentityMarkProps } from "./identity-mark.js";
3
+ import type { PageCommand } from "./page-actions.js";
4
+ import type { RecordStatus } from "./record-list.js";
5
+ export type ActivityEvent = {
6
+ id: string;
7
+ /** Shown as the time of day in the viewer's zone; UTC and local on hover. */
8
+ at: Date | number | string;
9
+ /** Who did it, at 24: a person's initials, an Agent's orb, an Installation's tile. The system's own work has none. */
10
+ actor?: IdentityMarkProps;
11
+ /** The sentence: the actor's name in <strong>, the action, the object as a value link. */
12
+ summary: ReactNode;
13
+ /** Only for the exception: a revocation, a failure. */
14
+ status?: RecordStatus | null;
15
+ /** One muted line. */
16
+ detail?: ReactNode;
17
+ };
18
+ export type EventRowOpens = {
19
+ /** The row's accessible name: the sentence in plain words. */
20
+ label: string;
21
+ /** What it opens to, on a resting card under the sentence. */
22
+ body: ReactNode;
23
+ /** Outline small buttons under the body, at most two. */
24
+ actions?: readonly PageCommand[] | undefined;
25
+ defaultOpen?: boolean | undefined;
26
+ };
27
+ export type EventRowProps = {
28
+ event: ActivityEvent;
29
+ locale?: string | undefined;
30
+ /** The viewer's zone, which a page rendered on a server passes: the time of day is written in it. */
31
+ timeZone?: string | undefined;
32
+ } & ({
33
+ /** In a feed's card under its day: the time leads in its own column. */
34
+ layout: "feed";
35
+ opens?: never;
36
+ } | {
37
+ /** Between a conversation's messages, with no card: the time trails at the right and the detail is one line. */
38
+ layout: "conversation";
39
+ /** Given only when the row opens; its chevron then always shows after the words. */
40
+ opens?: EventRowOpens | undefined;
41
+ });
42
+ /**
43
+ * A feed row's place while its feed reads the events: the time, the mark and two lines, with no
44
+ * words. The region that holds the rows announces the wait.
45
+ */
46
+ export declare function EventRowSkeleton(): import("react").JSX.Element;
47
+ /**
48
+ * One thing that happened, told in one sentence: a row of a feed, or a line between the messages
49
+ * of a conversation.
50
+ *
51
+ * @family Data
52
+ * @when Something that happened, read in passing: each row of an `ActivityFeed` (`layout="feed"`, which the feed draws), and, in an Agent's chat in Nadia, what happened between the messages that needs no answer from the person (`layout="conversation"`): background work finished or failed, an Assignment handed back, a scheduled task ran, the model changed, earlier messages summarized.
53
+ * @instead A failure the person must act on before the conversation can go on is a `MessageNotice`; the steps of one Agent run, read in order, are a `RunTimeline`; a line inside a reply that opens to a tool call's detail is a `DisclosureRow`; a record's whole history is an `ActivityFeed`.
54
+ * @behaviour A row is the actor's 24 px mark, the sentence, a status badge only for an exception, one muted line of detail and the time of day in tabular figures; the sentence wraps pretty, and a status badge that wraps starts its own line at the sentence's edge, with UTC and the viewer's zone in its hover card. The mark is a person's initials or an Agent's orb, the Agent Nadia's included; the system's own work, such as background work or the app changing the model, has none, and its cell stays empty so the sentences line up. `feed`: the time leads in its own column inside the feed's card and moves under the sentence below 900 px. `conversation`: no card; the time trails at the right, the detail is one line cut with an ellipsis, and the object's link is underlined in the line colour. Only a `conversation` row opens (nadicode decision): given `opens`, the whole row toggles a resting card under the sentence, set in to the words and ending where the time ends, holding its body with its line breaks kept and at most two outline small buttons. A row that opens always shows its 12 px chevron right after the words, pointing right while closed and turned down while open; hover and focus only turn the words to the foreground colour. A row without `opens` draws no chevron and does nothing when pressed. The object's link and the time stay above the row's toggle: pressing the link goes to the object and never opens the row. The row holds whether it is open; `defaultOpen` sets how it starts.
55
+ * @words The sentence names the actor in `<strong>`, the action in the past tense and the object as a link in the text's colour: "Bruno replied to Marta", "Marta finished the Assignment Q4 price list". Done is the past tense, never a badge; a status is an exception's word only, the word the object's own page shows for that state: Failed, Needs you, Checking, Not run. A failure says so in the sentence too. The detail is one short line, such as the first words of a reply or a result. `opens.label` is the sentence in plain words; a button names what it does to the object: "Open the conversation".
56
+ * @access In a feed each row is an item of its day's list. A row that opens is one `button` over the whole row, named by `opens.label`, with `aria-expanded` and, while open, `aria-controls` naming the card; the object's link comes before it in the tab order and the card's buttons after it. The mark and the chevron are hidden; the time is a `<time>` with its exact moment for assistive technology.
57
+ */
58
+ export declare function EventRow({ event, layout, locale, timeZone, opens }: EventRowProps): import("react").JSX.Element;
59
+ //# sourceMappingURL=event-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-row.d.ts","sourceRoot":"","sources":["../../src/components/event-row.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAO7D,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,EAAE,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAC3B,sHAAsH;IACtH,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,0FAA0F;IAC1F,OAAO,EAAE,SAAS,CAAC;IACnB,uDAAuD;IACvD,MAAM,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,sBAAsB;IACtB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,IAAI,EAAE,SAAS,CAAC;IAChB,yDAAyD;IACzD,OAAO,CAAC,EAAE,SAAS,WAAW,EAAE,GAAG,SAAS,CAAC;IAC7C,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,qGAAqG;IACrG,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,GAAG,CACA;IACE,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACE,gHAAgH;IAChH,MAAM,EAAE,cAAc,CAAC;IACvB,oFAAoF;IACpF,KAAK,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CACnC,CACJ,CAAC;AAgDF;;;GAGG;AACH,wBAAgB,gBAAgB,gCAW/B;AAgGD;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,aAAa,+BAIjF"}
@@ -0,0 +1,59 @@
1
+ "use client";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
4
+ import { ChevronRightIcon } from "lucide-react";
5
+ import { useState } from "react";
6
+ import { Card } from "./card.js";
7
+ import { IdentityMark } from "./identity-mark.js";
8
+ import { RecordTime } from "./record-time.js";
9
+ import { Skeleton, SkeletonRegion } from "./skeleton.js";
10
+ import { StatusBadge } from "./status-badge.js";
11
+ import { PageCommandButton } from "../internal/page-command-button.js";
12
+ import { cn } from "../lib/utils.js";
13
+ const FEED_ROW = "grid grid-cols-[72px_24px_minmax(0,1fr)] items-start gap-3 px-4 py-3 max-[900px]:grid-cols-[24px_minmax(0,1fr)]";
14
+ const UNDER_TEXT = "max-[900px]:col-start-2 max-[900px]:row-start-2";
15
+ const MARK_CELL = "max-[900px]:col-start-1 max-[900px]:row-start-1";
16
+ const TEXT_CELL = "max-[900px]:col-start-2 max-[900px]:row-start-1";
17
+ const WORDS = "text-body-sm text-pretty text-muted-foreground [&_strong]:font-medium [&_strong]:text-foreground";
18
+ function Mark({ actor }) {
19
+ return actor ? _jsx(IdentityMark, { ...actor, size: 24 }) : null;
20
+ }
21
+ function Status({ status }) {
22
+ return status ? (_jsxs(_Fragment, { children: [" ", _jsx(StatusBadge, { className: "align-middle", label: status.label, tone: status.tone })] })) : null;
23
+ }
24
+ function FeedRow({ event, locale, timeZone }) {
25
+ return (_jsxs("li", { className: FEED_ROW, "data-slot": "activity-event", children: [_jsx("div", { className: `text-label-sm leading-5 ${UNDER_TEXT}`, "data-slot": "activity-event-time", children: _jsx(RecordTime, { at: event.at, locale: locale, mode: "clock", timeZone: timeZone }) }), _jsx("div", { className: `flex h-5 items-center ${MARK_CELL}`, children: _jsx(Mark, { actor: event.actor }) }), _jsxs("div", { className: `min-w-0 ${TEXT_CELL}`, children: [_jsxs("div", { className: WORDS, children: [event.summary, _jsx(Status, { status: event.status })] }), event.detail ? (_jsx("div", { className: "mt-0.5 text-label-sm text-muted-foreground", children: event.detail })) : null] })] }));
26
+ }
27
+ /**
28
+ * A feed row's place while its feed reads the events: the time, the mark and two lines, with no
29
+ * words. The region that holds the rows announces the wait.
30
+ */
31
+ export function EventRowSkeleton() {
32
+ return (_jsxs(SkeletonRegion, { "aria-hidden": "true", busy: true, className: FEED_ROW, children: [_jsx(Skeleton, { className: `mt-1 h-2.5 w-12 ${UNDER_TEXT}` }), _jsx(Skeleton, { className: `size-6 ${MARK_CELL}`, shape: "circle" }), _jsxs("div", { className: `grid gap-2 pt-1 ${TEXT_CELL}`, children: [_jsx(Skeleton, { className: "h-2.5 w-4/5" }), _jsx(Skeleton, { className: "h-2.5 w-3/5" })] })] }));
33
+ }
34
+ function ConversationRow({ event, locale, timeZone, toggle, }) {
35
+ return (_jsxs("div", { className: "group/event-row relative grid grid-cols-[24px_minmax(0,1fr)_auto] items-start gap-x-3 px-2 py-1.5", "data-slot": toggle ? undefined : "event-row", children: [_jsx("div", { className: "flex h-5 items-center", children: _jsx(Mark, { actor: event.actor }) }), _jsxs("div", { className: "min-w-0", children: [_jsxs("div", { className: cn(WORDS, "[&_a]:relative [&_a]:z-10 [&_a]:underline [&_a]:decoration-border [&_a]:underline-offset-3", toggle &&
36
+ "nc-transition-paint group-hover/event-row:text-foreground group-has-[>button:focus-visible]/event-row:text-foreground"), children: [event.summary, toggle ? (_jsx(ChevronRightIcon, { "aria-hidden": "true", className: "nc-transition-transform ml-1.5 inline-block size-3 align-[-1px] data-[state=open]:rotate-90", "data-state": toggle.open ? "open" : "closed" })) : null, _jsx(Status, { status: event.status })] }), event.detail ? (_jsx("div", { className: "mt-0.5 truncate text-label-sm text-muted-foreground", children: event.detail })) : null] }), _jsx("div", { className: "relative z-10 text-label-sm leading-5", children: _jsx(RecordTime, { at: event.at, locale: locale, mode: "clock", timeZone: timeZone }) }), toggle ? (_jsx(CollapsiblePrimitive.Trigger, { "aria-label": toggle.label, className: "absolute inset-0 cursor-pointer rounded-sm" })) : null] }));
37
+ }
38
+ function OpeningRow({ event, locale, timeZone, opens, }) {
39
+ const [open, setOpen] = useState(opens.defaultOpen === true);
40
+ return (_jsxs(CollapsiblePrimitive.Root, { className: "flex flex-col gap-1", "data-slot": "event-row", onOpenChange: setOpen, open: open, children: [_jsx(ConversationRow, { event: event, locale: locale, timeZone: timeZone, toggle: { label: opens.label, open } }), _jsx(CollapsiblePrimitive.Panel, { className: "mr-2 ml-11 pb-2", children: _jsxs(Card, { className: "gap-2 px-4 py-3", surface: "resting", children: [_jsx("div", { className: "whitespace-pre-line text-body-sm text-foreground", children: opens.body }), opens.actions && opens.actions.length > 0 ? (_jsx("div", { className: "flex flex-wrap gap-2", children: opens.actions.map((command) => (_jsx(PageCommandButton, { command: command, size: "sm", variant: "outline" }, command.label))) })) : null] }) })] }));
41
+ }
42
+ /**
43
+ * One thing that happened, told in one sentence: a row of a feed, or a line between the messages
44
+ * of a conversation.
45
+ *
46
+ * @family Data
47
+ * @when Something that happened, read in passing: each row of an `ActivityFeed` (`layout="feed"`, which the feed draws), and, in an Agent's chat in Nadia, what happened between the messages that needs no answer from the person (`layout="conversation"`): background work finished or failed, an Assignment handed back, a scheduled task ran, the model changed, earlier messages summarized.
48
+ * @instead A failure the person must act on before the conversation can go on is a `MessageNotice`; the steps of one Agent run, read in order, are a `RunTimeline`; a line inside a reply that opens to a tool call's detail is a `DisclosureRow`; a record's whole history is an `ActivityFeed`.
49
+ * @behaviour A row is the actor's 24 px mark, the sentence, a status badge only for an exception, one muted line of detail and the time of day in tabular figures; the sentence wraps pretty, and a status badge that wraps starts its own line at the sentence's edge, with UTC and the viewer's zone in its hover card. The mark is a person's initials or an Agent's orb, the Agent Nadia's included; the system's own work, such as background work or the app changing the model, has none, and its cell stays empty so the sentences line up. `feed`: the time leads in its own column inside the feed's card and moves under the sentence below 900 px. `conversation`: no card; the time trails at the right, the detail is one line cut with an ellipsis, and the object's link is underlined in the line colour. Only a `conversation` row opens (nadicode decision): given `opens`, the whole row toggles a resting card under the sentence, set in to the words and ending where the time ends, holding its body with its line breaks kept and at most two outline small buttons. A row that opens always shows its 12 px chevron right after the words, pointing right while closed and turned down while open; hover and focus only turn the words to the foreground colour. A row without `opens` draws no chevron and does nothing when pressed. The object's link and the time stay above the row's toggle: pressing the link goes to the object and never opens the row. The row holds whether it is open; `defaultOpen` sets how it starts.
50
+ * @words The sentence names the actor in `<strong>`, the action in the past tense and the object as a link in the text's colour: "Bruno replied to Marta", "Marta finished the Assignment Q4 price list". Done is the past tense, never a badge; a status is an exception's word only, the word the object's own page shows for that state: Failed, Needs you, Checking, Not run. A failure says so in the sentence too. The detail is one short line, such as the first words of a reply or a result. `opens.label` is the sentence in plain words; a button names what it does to the object: "Open the conversation".
51
+ * @access In a feed each row is an item of its day's list. A row that opens is one `button` over the whole row, named by `opens.label`, with `aria-expanded` and, while open, `aria-controls` naming the card; the object's link comes before it in the tab order and the card's buttons after it. The mark and the chevron are hidden; the time is a `<time>` with its exact moment for assistive technology.
52
+ */
53
+ export function EventRow({ event, layout, locale, timeZone, opens }) {
54
+ if (layout === "feed")
55
+ return _jsx(FeedRow, { event: event, locale: locale, timeZone: timeZone });
56
+ if (opens)
57
+ return _jsx(OpeningRow, { event: event, locale: locale, opens: opens, timeZone: timeZone });
58
+ return _jsx(ConversationRow, { event: event, locale: locale, timeZone: timeZone, toggle: undefined });
59
+ }
@@ -27,7 +27,7 @@ function UrlValue({ url, href }) {
27
27
  */
28
28
  export function ObjectPage({ heading, picture, mark, name, headingProps, description, facts, figures, actions, entries, footer, notice, children, }) {
29
29
  const title = headingProps ? (_jsx("h1", { ...headingProps, className: cn("outline-none", heading && "sr-only", headingProps.className), children: name })) : heading ? null : (name);
30
- return (_jsxs("div", { className: "grid min-w-0 gap-6", "data-slot": "object-page", children: [notice ? _jsx(NoticeBanner, { ...notice }) : null, _jsx("div", { className: "grid min-w-0 gap-3", children: _jsxs(Card, { className: cn("min-w-0", entries && entries.length > 0 && !footer && "pb-0"), render: _jsx("div", { "data-slot": "object-card" }), size: "sm", children: [_jsxs(CardHeader, { className: cn("flex flex-wrap items-center justify-between gap-x-4 gap-y-3", (facts !== undefined || figures !== undefined) && "border-b"), children: [heading ? (_jsxs("div", { className: "flex min-w-0 flex-1 basis-64 items-center", children: [title, _jsx(CardTitle, { className: "min-w-0 wrap-break-word", children: _jsx("h2", { children: heading }) })] })) : (_jsxs("div", { className: cn("flex min-w-0 flex-1 items-center gap-4", actions?.menu && !actions.secondary && !actions.primary ? "basis-0" : "basis-64"), children: [_jsx(IdentityMark, { ...mark, size: 64 }), _jsxs("div", { className: "grid min-w-0 gap-1", children: [_jsx(CardTitle, { className: "min-w-0 wrap-break-word group-data-[size=sm]/card:text-heading-sm", children: title }), description ? _jsx(CardDescription, { children: description }) : null] })] })), actions ? _jsx(CardActionsRow, { ...actions }) : null] }), facts ? (_jsx(CardContent, { className: cn("@container/object-page-body grid min-w-0 gap-x-6 gap-y-5", picture && "py-(--card-spacing)"), children: _jsxs("div", { className: cn("grid min-w-0 gap-6", picture && "@3xl/object-page-body:grid-cols-[minmax(0,2fr)_minmax(0,3fr)]"), children: [picture ? (_jsx("div", { className: "flex min-w-0 flex-col *:flex-1", "data-slot": "object-page-picture", children: picture })) : null, _jsx("div", { className: "@container/object-page-facts grid min-w-0 content-start gap-4", children: _jsx("dl", { className: cn("grid min-w-0 grid-flow-row-dense grid-cols-2 gap-x-6 gap-y-5", picture
30
+ return (_jsxs("div", { className: "grid min-w-0 gap-6", "data-slot": "object-page", children: [notice ? _jsx(NoticeBanner, { ...notice }) : null, _jsx("div", { className: "grid min-w-0 gap-3", children: _jsxs(Card, { className: cn("min-w-0", entries && entries.length > 0 && !footer && "pb-0"), render: _jsx("div", { "data-slot": "object-card" }), size: "sm", children: [_jsxs(CardHeader, { className: cn("flex flex-wrap items-center justify-between gap-x-4 gap-y-3", (facts !== undefined || figures !== undefined) && "border-b"), children: [heading ? (_jsxs("div", { className: "flex min-w-0 flex-1 basis-64 items-center", children: [title, _jsx(CardTitle, { children: _jsx("h2", { children: heading }) })] })) : (_jsxs("div", { className: cn("flex min-w-0 flex-1 items-center gap-4", actions?.menu && !actions.secondary && !actions.primary ? "basis-0" : "basis-64"), children: [_jsx(IdentityMark, { ...mark, size: 64 }), _jsxs("div", { className: "grid min-w-0 gap-1", children: [_jsx(CardTitle, { className: "group-data-[size=sm]/card:text-heading-sm", children: title }), description ? _jsx(CardDescription, { children: description }) : null] })] })), actions ? _jsx(CardActionsRow, { ...actions }) : null] }), facts ? (_jsx(CardContent, { className: cn("@container/object-page-body grid min-w-0 gap-x-6 gap-y-5", picture && "py-(--card-spacing)"), children: _jsxs("div", { className: cn("grid min-w-0 gap-6", picture && "@3xl/object-page-body:grid-cols-[minmax(0,2fr)_minmax(0,3fr)]"), children: [picture ? (_jsx("div", { className: "flex min-w-0 flex-col *:flex-1", "data-slot": "object-page-picture", children: picture })) : null, _jsx("div", { className: "@container/object-page-facts grid min-w-0 content-start gap-4", children: _jsx("dl", { className: cn("grid min-w-0 grid-flow-row-dense grid-cols-2 gap-x-6 gap-y-5", picture
31
31
  ? "@lg/object-page-facts:grid-cols-3"
32
32
  : "@xl/object-page-facts:grid-cols-4"), "data-slot": "object-page-facts", children: facts.map((fact) => (_jsxs("div", { className: cn("grid min-w-0 content-start gap-1", fact.wide && "col-span-2"), children: [_jsx("dt", { className: "text-label-sm text-muted-foreground", children: fact.label }), _jsx("dd", { className: cn("min-w-0 text-body-sm wrap-break-word text-foreground", fact.icon && "flex items-start gap-2"), children: fact.icon ? (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": "true", className: "flex h-5 shrink-0 items-center text-muted-foreground [&>svg]:size-4", children: fact.icon }), _jsx("span", { className: "min-w-0", children: fact.url ? (_jsx(UrlValue, { href: fact.href, url: fact.value })) : (fact.value) })] })) : fact.url ? (_jsx(UrlValue, { href: fact.href, url: fact.value })) : (fact.value) })] }, fact.label))) }) })] }) })) : null, figures ? (_jsx("div", { className: cn("-mb-(--card-spacing) min-w-0 px-(--card-spacing)", facts ? "border-t" : "-mt-(--card-spacing)"), "data-slot": "object-page-figures", children: figures })) : null, entries && entries.length > 0 ? (_jsx("div", { className: "@container/object-page-entries min-w-0", "data-slot": "object-page-entries", children: _jsx(Accordion, { className: "*:last:border-b-0", defaultValue: entries
33
33
  .filter((entry) => entry.defaultOpen)
@@ -32,7 +32,7 @@ function BackLink({ label, link }) {
32
32
  */
33
33
  export function ObjectSection({ title, status, description, actions, back, footer, children, headingLevel = 2, cardSize = "default", }) {
34
34
  const loneMeta = Boolean(actions?.meta) && !hasCardActions({ ...actions, meta: undefined });
35
- const header = (_jsxs(CardHeader, { className: status ? "[&_[data-slot=card-actions-meta]]:text-caption" : undefined, narrowAction: status && loneMeta ? "title-row" : undefined, children: [status ? (_jsxs(CardTitle, { className: "flex flex-wrap items-center gap-2 font-medium", children: [_jsx("span", { role: "heading", "aria-level": headingLevel, children: title }), status] })) : (_jsx(CardTitle, { role: "heading", "aria-level": headingLevel, children: title })), _jsx(CardDescription, { children: description }), actions ? (_jsx(CardAction, { children: _jsx(CardActionsRow, { ...actions }) })) : null] }));
35
+ const header = (_jsxs(CardHeader, { className: status ? "[&_[data-slot=card-actions-meta]]:text-caption" : undefined, narrowAction: status && loneMeta ? "title-row" : undefined, children: [status ? (_jsxs(CardTitle, { className: "flex flex-wrap items-center gap-2 font-medium", children: [_jsx("span", { className: "min-w-0", role: "heading", "aria-level": headingLevel, children: title }), status] })) : (_jsx(CardTitle, { role: "heading", "aria-level": headingLevel, children: title })), _jsx(CardDescription, { children: description }), actions ? (_jsx(CardAction, { children: _jsx(CardActionsRow, { ...actions }) })) : null] }));
36
36
  return (_jsxs(Card, { "data-slot": "object-section", size: cardSize, children: [back ? (_jsxs("div", { className: "grid min-w-0 gap-2", children: [_jsx("div", { className: "px-(--card-spacing)", children: _jsx(BackLink, { ...back }) }), header] })) : (header), _jsx(CardContent, { children: children }), footer ? (_jsx(FooterStrip, { hint: footer.hint, hintSlot: "object-section-hint", children: footer.command ? (_jsx(PageCommandButton, { command: footer.command, variant: footer.command.link ? "outline" : "default" })) : null })) : null] }));
37
37
  }
38
38
  /**
@@ -53,7 +53,7 @@ export type PlanCardProps = Omit<ComponentProps<"section">, "title" | "children"
53
53
  * @family Compositions
54
54
  * @when The plans a person compares and chooses from: the Portal's plan catalogue in Billing, a Partner's plans above its Customers' (nadicode decision).
55
55
  * @instead The plan an account holds now is a fact of its billing, in an `ObjectSection` or a `SettingsFactsSection`. A thing added from a catalogue with no price is a `CatalogCard` or a `CatalogEntry`. A row of these cards is a `CardRow`.
56
- * @behaviour A resting card. The `picture` fills its width at the top, square, the card's corner clipping it; then the name, with the `status` badges at its trailing edge; then the `description`, the allowance's `figure` large over its `label`, the `inclusions` as a list under their label, each item after a muted check mark, and the price with its period beside it and its `note` under it. The `action` stands at the card's foot under a divider, so the actions of a row of cards line up whatever each plan holds: its `command` as an outline button, filled when `recommended`, for the plan the catalogue recommends to a person choosing their first, or its `note` as one muted line. The card draws the command itself, a link staying a link and a submit of the product's form staying its submit; one that cannot run now stays, disabled (nadicode decision). Neutral throughout: a plan is told apart by its emblem and its badges, never a coloured card (nadicode decision).
56
+ * @behaviour A resting card. The `picture` fills its width at the top, square, the card's corner clipping it; then the name, with the `status` badges at its trailing edge; then the `description`, the allowance's `figure` large over its `label`, the `inclusions` as a list under their label, each item after a muted check mark, and the price with its period beside it and its `note` under it. The `action` stands at the card's foot under a divider, so the actions of a row of cards line up whatever each plan holds: its `command` as an outline button, filled when `recommended`, for the plan the catalogue recommends to a person choosing their first, or its `note` as one muted line. The card draws the command itself, a link staying a link and a submit of the product's form staying its submit; one that cannot run now stays, disabled, its `disabledReason` written under it as one muted line, since a disabled command's reason is never only behind hover (nadicode decision). Neutral throughout: a plan is told apart by its emblem and its badges, never a coloured card (nadicode decision).
57
57
  * @words The name as the plan is called everywhere. A badge is one word: "Current", "Next", "Recommended". The allowance's label says the use in words ("Three times the usage of Pro", "Usage included"); the price is the amount, the period "/month", the note what the price leaves out ("VAT excluded"). The action is a verb on the plan ("Subscribe", "Change plan"), or the line that says why there is none ("Your current plan").
58
58
  * @access A `section` labelled by the plan's name, a heading at `headingLevel`. The picture and the allowance's figure are hidden from assistive technology, which reads the name and the label instead. The inclusions are a list.
59
59
  */
@@ -1 +1 @@
1
- {"version":3,"file":"plan-card.d.ts","sourceRoot":"","sources":["../../src/components/plan-card.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAGtF,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,gCAAgC,CAAC;AAGrF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,mHAAmH;IACnH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1B,CAAC;AAEF,8GAA8G;AAC9G,MAAM,MAAM,cAAc,GACtB;IACE,OAAO,EAAE,WAAW,CAAC;IACrB,sHAAsH;IACtH,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,GACD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAClF,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,uGAAuG;IACvG,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACrB,6HAA6H;IAC7H,OAAO,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACnC,mHAAmH;IACnH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,2GAA2G;IAC3G,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,sCAAsC;IACtC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,6EAA6E;IAC7E,UAAU,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC5C,2GAA2G;IAC3G,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACrE,4HAA4H;IAC5H,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,YAAgB,EAChB,OAAO,EACP,MAAM,EACN,WAAW,EACX,SAAS,EACT,UAAU,EACV,KAAK,EACL,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,aAAa,+BA0Ef"}
1
+ {"version":3,"file":"plan-card.d.ts","sourceRoot":"","sources":["../../src/components/plan-card.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAGtF,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,gCAAgC,CAAC;AAGrF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,mHAAmH;IACnH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1B,CAAC;AAEF,8GAA8G;AAC9G,MAAM,MAAM,cAAc,GACtB;IACE,OAAO,EAAE,WAAW,CAAC;IACrB,sHAAsH;IACtH,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,GACD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAClF,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,uGAAuG;IACvG,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACrB,6HAA6H;IAC7H,OAAO,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACnC,mHAAmH;IACnH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,2GAA2G;IAC3G,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,sCAAsC;IACtC,SAAS,EAAE,iBAAiB,CAAC;IAC7B,6EAA6E;IAC7E,UAAU,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC5C,2GAA2G;IAC3G,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;IACrE,4HAA4H;IAC5H,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,YAAgB,EAChB,OAAO,EACP,MAAM,EACN,WAAW,EACX,SAAS,EACT,UAAU,EACV,KAAK,EACL,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,aAAa,+BA+Ef"}
@@ -11,7 +11,7 @@ import { Card, CardContent, CardHeader, CardTitle } from "./card.js";
11
11
  * @family Compositions
12
12
  * @when The plans a person compares and chooses from: the Portal's plan catalogue in Billing, a Partner's plans above its Customers' (nadicode decision).
13
13
  * @instead The plan an account holds now is a fact of its billing, in an `ObjectSection` or a `SettingsFactsSection`. A thing added from a catalogue with no price is a `CatalogCard` or a `CatalogEntry`. A row of these cards is a `CardRow`.
14
- * @behaviour A resting card. The `picture` fills its width at the top, square, the card's corner clipping it; then the name, with the `status` badges at its trailing edge; then the `description`, the allowance's `figure` large over its `label`, the `inclusions` as a list under their label, each item after a muted check mark, and the price with its period beside it and its `note` under it. The `action` stands at the card's foot under a divider, so the actions of a row of cards line up whatever each plan holds: its `command` as an outline button, filled when `recommended`, for the plan the catalogue recommends to a person choosing their first, or its `note` as one muted line. The card draws the command itself, a link staying a link and a submit of the product's form staying its submit; one that cannot run now stays, disabled (nadicode decision). Neutral throughout: a plan is told apart by its emblem and its badges, never a coloured card (nadicode decision).
14
+ * @behaviour A resting card. The `picture` fills its width at the top, square, the card's corner clipping it; then the name, with the `status` badges at its trailing edge; then the `description`, the allowance's `figure` large over its `label`, the `inclusions` as a list under their label, each item after a muted check mark, and the price with its period beside it and its `note` under it. The `action` stands at the card's foot under a divider, so the actions of a row of cards line up whatever each plan holds: its `command` as an outline button, filled when `recommended`, for the plan the catalogue recommends to a person choosing their first, or its `note` as one muted line. The card draws the command itself, a link staying a link and a submit of the product's form staying its submit; one that cannot run now stays, disabled, its `disabledReason` written under it as one muted line, since a disabled command's reason is never only behind hover (nadicode decision). Neutral throughout: a plan is told apart by its emblem and its badges, never a coloured card (nadicode decision).
15
15
  * @words The name as the plan is called everywhere. A badge is one word: "Current", "Next", "Recommended". The allowance's label says the use in words ("Three times the usage of Pro", "Usage included"); the price is the amount, the period "/month", the note what the price leaves out ("VAT excluded"). The action is a verb on the plan ("Subscribe", "Change plan"), or the line that says why there is none ("Your current plan").
16
16
  * @access A `section` labelled by the plan's name, a heading at `headingLevel`. The picture and the allowance's figure are hidden from assistive technology, which reads the name and the label instead. The inclusions are a list.
17
17
  */
@@ -19,5 +19,5 @@ export function PlanCard({ name, headingLevel = 3, picture, status, description,
19
19
  const headingId = useId();
20
20
  const inclusionsId = useId();
21
21
  const Heading = headingLevel === 2 ? "h2" : "h3";
22
- return (_jsxs(Card, { className: cn("h-full", picture && "pt-0", className), render: _jsx("section", { ...props, "aria-labelledby": headingId, "data-slot": "plan-card" }), children: [picture ? (_jsx("div", { "aria-hidden": "true", className: "*:aspect-square *:h-auto *:w-full *:object-contain", "data-slot": "plan-card-picture", children: picture })) : null, _jsxs(CardHeader, { className: "flex flex-row items-start justify-between gap-3", children: [_jsx(CardTitle, { children: _jsx(Heading, { id: headingId, children: name }) }), status ? _jsx("div", { className: "flex flex-wrap justify-end gap-2", children: status }) : null] }), _jsxs(CardContent, { className: "flex flex-1 flex-col gap-4", children: [description ? _jsx("p", { className: "text-body-sm", children: description }) : null, _jsxs("div", { className: "flex flex-col gap-2", "data-slot": "plan-card-allowance", children: [allowance.figure ? (_jsx("p", { "aria-hidden": "true", className: "text-display-lg tabular-nums", children: allowance.figure })) : null, _jsx("p", { className: "text-body-sm text-muted-foreground", children: allowance.label })] }), inclusions && inclusions.items.length > 0 ? (_jsxs("div", { className: "flex flex-col gap-2", "data-slot": "plan-card-inclusions", children: [_jsx("p", { className: "text-caption text-muted-foreground", id: inclusionsId, children: inclusions.label }), _jsx("ul", { "aria-labelledby": inclusionsId, className: "flex flex-col gap-1.5 text-body-sm", children: inclusions.items.map((item) => (_jsxs("li", { className: "flex items-start gap-2", children: [_jsx(Check, { "aria-hidden": "true", className: "mt-0.5 size-4 shrink-0 text-muted-foreground" }), item] }, item))) })] })) : null, _jsxs("div", { className: "flex flex-col gap-1", "data-slot": "plan-card-price", children: [_jsxs("p", { className: "text-body-lg font-medium tabular-nums", children: [price.amount, _jsx("span", { className: "text-body-sm text-muted-foreground", children: price.period })] }), price.note ? _jsx("p", { className: "text-caption text-muted-foreground", children: price.note }) : null] }), _jsx("div", { className: "mt-auto border-t pt-4", "data-slot": "plan-card-action", children: _jsx("div", { className: "flex min-h-control-height items-center", children: action.command ? (_jsx(PageCommandButton, { command: action.command, variant: action.recommended ? "default" : "outline" })) : (_jsx("p", { className: "text-caption text-muted-foreground", children: action.note })) }) })] })] }));
22
+ return (_jsxs(Card, { className: cn("h-full", picture && "pt-0", className), render: _jsx("section", { ...props, "aria-labelledby": headingId, "data-slot": "plan-card" }), children: [picture ? (_jsx("div", { "aria-hidden": "true", className: "*:aspect-square *:h-auto *:w-full *:object-contain", "data-slot": "plan-card-picture", children: picture })) : null, _jsxs(CardHeader, { className: "flex flex-row items-start justify-between gap-3", children: [_jsx(CardTitle, { children: _jsx(Heading, { id: headingId, children: name }) }), status ? _jsx("div", { className: "flex flex-wrap justify-end gap-2", children: status }) : null] }), _jsxs(CardContent, { className: "flex flex-1 flex-col gap-4", children: [description ? _jsx("p", { className: "text-body-sm", children: description }) : null, _jsxs("div", { className: "flex flex-col gap-2", "data-slot": "plan-card-allowance", children: [allowance.figure ? (_jsx("p", { "aria-hidden": "true", className: "text-display-lg tabular-nums", children: allowance.figure })) : null, _jsx("p", { className: "text-body-sm text-muted-foreground", children: allowance.label })] }), inclusions && inclusions.items.length > 0 ? (_jsxs("div", { className: "flex flex-col gap-2", "data-slot": "plan-card-inclusions", children: [_jsx("p", { className: "text-caption text-muted-foreground", id: inclusionsId, children: inclusions.label }), _jsx("ul", { "aria-labelledby": inclusionsId, className: "flex flex-col gap-1.5 text-body-sm", children: inclusions.items.map((item) => (_jsxs("li", { className: "flex items-start gap-2", children: [_jsx(Check, { "aria-hidden": "true", className: "mt-0.5 size-4 shrink-0 text-muted-foreground" }), item] }, item))) })] })) : null, _jsxs("div", { className: "flex flex-col gap-1", "data-slot": "plan-card-price", children: [_jsxs("p", { className: "text-body-lg font-medium tabular-nums", children: [price.amount, _jsx("span", { className: "text-body-sm text-muted-foreground", children: price.period })] }), price.note ? _jsx("p", { className: "text-caption text-muted-foreground", children: price.note }) : null] }), _jsxs("div", { className: "mt-auto border-t pt-4", "data-slot": "plan-card-action", children: [_jsx("div", { className: "flex min-h-control-height items-center", children: action.command ? (_jsx(PageCommandButton, { command: action.command, variant: action.recommended ? "default" : "outline" })) : (_jsx("p", { className: "text-caption text-muted-foreground", children: action.note })) }), action.command?.disabledReason ? (_jsx("p", { className: "mt-2 text-caption text-muted-foreground", children: action.command.disabledReason })) : null] })] })] }));
23
23
  }
@@ -8,14 +8,14 @@ type ToasterLabels = {
8
8
  /** Each tone's word, read before the toast's words and never shown: "Success", "Error". */
9
9
  toneLabels: Record<MessageToastTone, string>;
10
10
  };
11
- type ToasterOwnProps = Omit<ToasterProps, "closeButton" | "containerAriaLabel" | "duration" | "icons" | "toastOptions">;
11
+ type ToasterOwnProps = Omit<ToasterProps, "closeButton" | "containerAriaLabel" | "duration" | "icons" | "richColors" | "toastOptions">;
12
12
  /**
13
13
  * The one place toasts appear, mounted once per product.
14
14
  *
15
15
  * @family Feedback
16
16
  * @when "A succinct message that is displayed temporarily." (https://vercel.com/geist/toast) "Use a toast for non-blocking acknowledgments of user-initiated actions: `Domain added`, `Project archived`, `Deployment canceled`." (https://vercel.com/geist/toast) "Pick the method by how the user experienced the event, not by HTTP status. A user-canceled deploy is `toasts.message('Deployment canceled')`, not `success`. A partial deploy with skipped routes is `toasts.warning(...)`." (https://vercel.com/geist/toast) Ours: mount it once and raise toasts through `showMessageToast` from `@nadicodeai/ui/components/toast`. `toasts.message` is the tone `info`, and `success`, `warning` and `error` keep their names.
17
17
  * @instead "Don’t use a toast alone for billing failures, permission denials, or build failures the user has to triage. Pair a ≤6-word toast (`Build failed`) with a persistent row carrying the recovery step and a stable identifier." (https://vercel.com/geist/toast) "Field-level validation belongs on the `Input`, not in a toast. Persistent configuration warnings belong in `Note` or `Banner`." (https://vercel.com/geist/toast) Ours: the persistent row is a `MessageNotice`, a field's wrong value stays on the field (`FieldError`), and a lasting condition is a `NoticeBanner`.
18
- * @behaviour "Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears." (https://vercel.com/geist/toast) "Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button." (https://vercel.com/geist/toast) "Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step." (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A product that shows another store's notifications, as Nadia shows Hermes's, raises each with `showHeldToast`: the store decides when it leaves (`dismissToast`), so a failure the person must act on stays, and its second action stands beside the first, both on a row under the toast's words when it has a body. A toast always has a tone: `info` is the nearest to a neutral one. Colour sits on the whole toast: `success` fills it with the accent blue (Geist's blue success, the same hue as an `info` note), `warning` and `error` with their solid colour, each with that colour's text; `info` stays the solid floating surface, never glass. A toast draws no tone mark, as Geist's: its words sit alone beside the close button, on one centre line, and the tone is read as a hidden word in the product's language (`toneLabels`), so it reads without colour. A toast is 420 px wide at most, 16 px padded, with a close button of 32 px at its trailing edge. A toast that stays up shows the waiting line, not a spinner. Required: `closeLabel`, `regionLabel` and `toneLabels`, because the close button, the region and each tone need a name in the product's language.
18
+ * @behaviour "Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears." (https://vercel.com/geist/toast) "Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button." (https://vercel.com/geist/toast) "Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step." (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A product that shows another store's notifications, as Nadia shows Hermes's, raises each with `showHeldToast`: the store decides when it leaves (`dismissToast`), so a failure the person must act on stays, and it offers the message's second action as well as its first. A toast's words are one passage: the title, closed with a full stop when a body follows, then the body, in the toast's body size and weight. A toast always has a tone (`info` is the nearest to a neutral one) and takes one of two looks by whether it has a button. A toast with no button is a status to read, filled with its tone: `success` with the accent blue (the same hue as an `info` note), `warning` and `error` with their solid colour, each with that colour's text, and `info` with the solid floating surface, never glass. A toast with a button is a message to act on: the solid floating surface whatever its tone, its words in the surface's text colour, and its buttons on a row under the words, at the trailing end: each a `Button` of the `sm` size (32 px), the second action first as `ghost` and the primary last as `default`, so no button sits on a colour. A toast draws no tone mark: the tone is read as a hidden word in the product's language (`toneLabels`), so it reads without colour, and the words start at the toast's 16 px padding. A toast is 420 px wide at most, 16 px padded, with a close button of 32 px at its trailing edge, centred on the first line of the words. A toast that stays up shows the waiting line, not a spinner. Required: `closeLabel`, `regionLabel` and `toneLabels`, because the close button, the region and each tone need a name in the product's language.
19
19
  * @words "One sentence, sentence case, no trailing period when the toast is a single sentence." (https://vercel.com/geist/toast) "Completion toasts follow `{Noun} {past-participle}`: `Blob deleted`, `Domain added`, `Environment variable saved`. Never include `successfully`; the action name implies it." (https://vercel.com/geist/toast) "Error toasts are two sentences with periods and end with a recovery step: `Couldn’t verify domain. Try again.` Use `Couldn’t` for user-state errors and `Failed to` for system or infra errors; match adjacent shipped copy and don’t flip mid-flow." (https://vercel.com/geist/toast) "Pair the toast verb 1:1 with the destructive button verb (`Delete Project` then `Project deleted`, never `Project removed`)." (https://vercel.com/geist/toast) "Undo snackbars use the literal label `Undo`, never `Restore`, `Bring Back`, or `Cancel`. Only use the pattern when the rollback is safe." (https://vercel.com/geist/toast) Ours: the words come from the catalogue; *Mailbox removed* pairs with its button *Remove mailbox*.
20
20
  * @access "The toast region announces with `aria-live="polite"`; reserve `assertive` for blocking errors that interrupt a flow." (https://vercel.com/geist/toast) "Don’t put primary navigation inside a toast; transient surfaces vanish before keyboard users can reach them." (https://vercel.com/geist/toast) Ours: the toaster's live region is named by `regionLabel` and the close button by `closeLabel`. Navigation is never the only route to recovery: the record's own row keeps its controls. Undo is reachable by keyboard (Alt+T moves focus to the toasts) while it shows.
21
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../src/components/sonner.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAM9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAO3D,KAAK,aAAa,GAAG;IACnB,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAC;IACpB,2FAA2F;IAC3F,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,KAAK,eAAe,GAAG,IAAI,CACzB,YAAY,EACZ,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,CAC7E,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAA,MAAM,OAAO,GAAI,mDAKd,eAAe,GAAG,aAAa,gCA8CjC,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../src/components/sonner.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAM9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAM3D,KAAK,aAAa,GAAG;IACnB,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAC;IACpB,2FAA2F;IAC3F,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,KAAK,eAAe,GAAG,IAAI,CACzB,YAAY,EACZ,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,GAAG,cAAc,CAC5F,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAA,MAAM,OAAO,GAAI,mDAKd,eAAe,GAAG,aAAa,gCAsDjC,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -7,21 +7,20 @@ import { WaitingLine } from "./waiting-line.js";
7
7
  import { cssVariables } from "../lib/css-variables.js";
8
8
  import { isThemeMode } from "../lib/theme-mode.js";
9
9
  const TOAST_DURATION_MS = 6000;
10
- // A tone toast keeps its tone word for a screen reader and shows no mark.
11
- const TONE_WORD_ONLY = "[&_[data-icon]]:sr-only";
10
+ const TONE_WORD_ONLY = "[&_[data-icon]]:sr-only!";
12
11
  /**
13
12
  * The one place toasts appear, mounted once per product.
14
13
  *
15
14
  * @family Feedback
16
15
  * @when "A succinct message that is displayed temporarily." (https://vercel.com/geist/toast) "Use a toast for non-blocking acknowledgments of user-initiated actions: `Domain added`, `Project archived`, `Deployment canceled`." (https://vercel.com/geist/toast) "Pick the method by how the user experienced the event, not by HTTP status. A user-canceled deploy is `toasts.message('Deployment canceled')`, not `success`. A partial deploy with skipped routes is `toasts.warning(...)`." (https://vercel.com/geist/toast) Ours: mount it once and raise toasts through `showMessageToast` from `@nadicodeai/ui/components/toast`. `toasts.message` is the tone `info`, and `success`, `warning` and `error` keep their names.
17
16
  * @instead "Don’t use a toast alone for billing failures, permission denials, or build failures the user has to triage. Pair a ≤6-word toast (`Build failed`) with a persistent row carrying the recovery step and a stable identifier." (https://vercel.com/geist/toast) "Field-level validation belongs on the `Input`, not in a toast. Persistent configuration warnings belong in `Note` or `Banner`." (https://vercel.com/geist/toast) Ours: the persistent row is a `MessageNotice`, a field's wrong value stays on the field (`FieldError`), and a lasting condition is a `NoticeBanner`.
18
- * @behaviour "Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears." (https://vercel.com/geist/toast) "Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button." (https://vercel.com/geist/toast) "Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step." (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A product that shows another store's notifications, as Nadia shows Hermes's, raises each with `showHeldToast`: the store decides when it leaves (`dismissToast`), so a failure the person must act on stays, and its second action stands beside the first, both on a row under the toast's words when it has a body. A toast always has a tone: `info` is the nearest to a neutral one. Colour sits on the whole toast: `success` fills it with the accent blue (Geist's blue success, the same hue as an `info` note), `warning` and `error` with their solid colour, each with that colour's text; `info` stays the solid floating surface, never glass. A toast draws no tone mark, as Geist's: its words sit alone beside the close button, on one centre line, and the tone is read as a hidden word in the product's language (`toneLabels`), so it reads without colour. A toast is 420 px wide at most, 16 px padded, with a close button of 32 px at its trailing edge. A toast that stays up shows the waiting line, not a spinner. Required: `closeLabel`, `regionLabel` and `toneLabels`, because the close button, the region and each tone need a name in the product's language.
17
+ * @behaviour "Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears." (https://vercel.com/geist/toast) "Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button." (https://vercel.com/geist/toast) "Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step." (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A product that shows another store's notifications, as Nadia shows Hermes's, raises each with `showHeldToast`: the store decides when it leaves (`dismissToast`), so a failure the person must act on stays, and it offers the message's second action as well as its first. A toast's words are one passage: the title, closed with a full stop when a body follows, then the body, in the toast's body size and weight. A toast always has a tone (`info` is the nearest to a neutral one) and takes one of two looks by whether it has a button. A toast with no button is a status to read, filled with its tone: `success` with the accent blue (the same hue as an `info` note), `warning` and `error` with their solid colour, each with that colour's text, and `info` with the solid floating surface, never glass. A toast with a button is a message to act on: the solid floating surface whatever its tone, its words in the surface's text colour, and its buttons on a row under the words, at the trailing end: each a `Button` of the `sm` size (32 px), the second action first as `ghost` and the primary last as `default`, so no button sits on a colour. A toast draws no tone mark: the tone is read as a hidden word in the product's language (`toneLabels`), so it reads without colour, and the words start at the toast's 16 px padding. A toast is 420 px wide at most, 16 px padded, with a close button of 32 px at its trailing edge, centred on the first line of the words. A toast that stays up shows the waiting line, not a spinner. Required: `closeLabel`, `regionLabel` and `toneLabels`, because the close button, the region and each tone need a name in the product's language.
19
18
  * @words "One sentence, sentence case, no trailing period when the toast is a single sentence." (https://vercel.com/geist/toast) "Completion toasts follow `{Noun} {past-participle}`: `Blob deleted`, `Domain added`, `Environment variable saved`. Never include `successfully`; the action name implies it." (https://vercel.com/geist/toast) "Error toasts are two sentences with periods and end with a recovery step: `Couldn’t verify domain. Try again.` Use `Couldn’t` for user-state errors and `Failed to` for system or infra errors; match adjacent shipped copy and don’t flip mid-flow." (https://vercel.com/geist/toast) "Pair the toast verb 1:1 with the destructive button verb (`Delete Project` then `Project deleted`, never `Project removed`)." (https://vercel.com/geist/toast) "Undo snackbars use the literal label `Undo`, never `Restore`, `Bring Back`, or `Cancel`. Only use the pattern when the rollback is safe." (https://vercel.com/geist/toast) Ours: the words come from the catalogue; *Mailbox removed* pairs with its button *Remove mailbox*.
20
19
  * @access "The toast region announces with `aria-live="polite"`; reserve `assertive` for blocking errors that interrupt a flow." (https://vercel.com/geist/toast) "Don’t put primary navigation inside a toast; transient surfaces vanish before keyboard users can reach them." (https://vercel.com/geist/toast) Ours: the toaster's live region is named by `regionLabel` and the close button by `closeLabel`. Navigation is never the only route to recovery: the record's own row keeps its controls. Undo is reachable by keyboard (Alt+T moves focus to the toasts) while it shows.
21
20
  */
22
21
  const Toaster = ({ closeLabel, regionLabel, toneLabels, ...props }) => {
23
22
  const { theme = "system" } = useTheme();
24
- return (_jsx(Sonner, { theme: isThemeMode(theme) ? theme : "system", className: "toaster group", closeButton: true, containerAriaLabel: regionLabel, duration: TOAST_DURATION_MS, icons: {
23
+ return (_jsx(Sonner, { theme: isThemeMode(theme) ? theme : "system", className: "toaster group", closeButton: true, containerAriaLabel: regionLabel, duration: TOAST_DURATION_MS, richColors: true, icons: {
25
24
  success: _jsx("span", { children: toneLabels.success }),
26
25
  info: _jsx("span", { children: toneLabels.info }),
27
26
  warning: _jsx("span", { children: toneLabels.warning }),
@@ -34,20 +33,27 @@ const Toaster = ({ closeLabel, regionLabel, toneLabels, ...props }) => {
34
33
  "--normal-bg": "var(--nc-material-floating)",
35
34
  "--normal-text": "var(--popover-foreground)",
36
35
  "--normal-border": "transparent",
36
+ "--success-bg": "var(--info)",
37
+ "--success-text": "var(--info-foreground)",
38
+ "--info-bg": "var(--normal-bg)",
39
+ "--info-text": "var(--normal-text)",
40
+ "--warning-bg": "var(--warning)",
41
+ "--warning-text": "var(--warning-foreground)",
42
+ "--error-bg": "var(--destructive)",
43
+ "--error-text": "var(--destructive-foreground)",
37
44
  "--border-radius": "var(--radius-lg)",
38
45
  "--width": "420px",
39
46
  }), toastOptions: {
40
47
  closeButtonAriaLabel: closeLabel,
41
48
  classNames: {
42
- toast: "nc-toast nc-elevation-floating min-h-16 pr-16! text-body-sm!",
43
- title: "font-normal!",
44
- description: "text-current!",
45
- closeButton: "top-4! right-4! left-auto! size-8! transform-none! rounded-sm! border-0! bg-transparent! text-current! opacity-100! hover:bg-current/10!",
46
- actionButton: "h-nadicode-control-height-sm! rounded-sm! bg-primary! px-button-padding-inline-sm! text-button! font-medium! text-primary-foreground!",
47
- success: `${TONE_WORD_ONLY} [--normal-bg:var(--info)] [--normal-text:var(--info-foreground)]`,
49
+ toast: "nc-toast nc-elevation-floating flex-wrap justify-end gap-x-2! gap-y-3! text-body-sm!",
50
+ content: "basis-full! pr-10",
51
+ title: "text-body-sm!",
52
+ closeButton: "top-2.5! right-3! left-auto! size-8! transform-none! rounded-sm! border-0! bg-transparent! text-current! opacity-100! hover:bg-current/10!",
53
+ success: TONE_WORD_ONLY,
48
54
  info: TONE_WORD_ONLY,
49
- warning: `${TONE_WORD_ONLY} [--normal-bg:var(--warning)] [--normal-text:var(--warning-foreground)]`,
50
- error: `${TONE_WORD_ONLY} [--normal-bg:var(--destructive)] [--normal-text:var(--destructive-foreground)]`,
55
+ warning: TONE_WORD_ONLY,
56
+ error: TONE_WORD_ONLY,
51
57
  },
52
58
  }, ...props }));
53
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/components/toast.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAExE,0FAA0F;AAC1F,wBAAgB,aAAa,IAAI,IAAI,CAEpC;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/C,IAAI,CAON;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC9C,IAAI,CAiBN;AAOD;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GACnE,IAAI,CAiBN;AAED,6FAA6F;AAC7F,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAE7C"}
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/components/toast.ts"],"names":[],"mappings":"AAMA,OAAO,EAAwC,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/F,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAyCxE,0FAA0F;AAC1F,wBAAgB,aAAa,IAAI,IAAI,CAEpC;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/C,IAAI,CAUN;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAC9C,IAAI,CAUN;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GACnE,IAAI,CAgBN;AAED,6FAA6F;AAC7F,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAE7C"}
@@ -1,17 +1,37 @@
1
1
  // The one way a product raises a toast: a message its catalogue worded, never
2
2
  // a string, so sonner is imported here and nowhere else.
3
+ import { createElement } from "react";
3
4
  import { toast } from "sonner";
4
- import { bodyBeyondTitle } from "./product-message.js";
5
+ import { Button } from "./button.js";
6
+ import { messageSentences } from "./product-message.js";
7
+ function command(action) {
8
+ return action?.onClick ? { label: action.label, onClick: action.onClick } : undefined;
9
+ }
10
+ function raise(message, tone, options, { closes, primary, second }) {
11
+ const button = (pressed, variant) => createElement(Button, {
12
+ onClick: (event) => {
13
+ pressed.onClick(event);
14
+ if (closes)
15
+ toast.dismiss(shown);
16
+ },
17
+ size: "sm",
18
+ variant,
19
+ }, pressed.label);
20
+ const shown = toast[tone](messageSentences(message), {
21
+ ...options,
22
+ action: primary ? button(primary, "default") : undefined,
23
+ cancel: second ? button(second, "ghost") : undefined,
24
+ richColors: primary ? false : undefined,
25
+ });
26
+ }
5
27
  /** Takes down every toast on screen, such as between two tests that share the toaster. */
6
28
  export function dismissToasts() {
7
29
  toast.dismiss();
8
30
  }
9
31
  export function showMessageToast(message, options) {
10
- const action = message.actions.find((command) => command.onClick !== undefined);
11
- toast[options.tone](message.title, {
12
- id: options.id,
13
- description: bodyBeyondTitle(message) ?? undefined,
14
- action: action?.onClick ? { label: action.label, onClick: action.onClick } : undefined,
32
+ raise(message, options.tone, { id: options.id }, {
33
+ primary: command(message.actions.find((action) => action.onClick !== undefined)),
34
+ closes: true,
15
35
  });
16
36
  }
17
37
  /**
@@ -20,27 +40,11 @@ export function showMessageToast(message, options) {
20
40
  * action runs without taking the toast down, so the outcome replaces it (the same `id`) or lets it go.
21
41
  */
22
42
  export function showStayingToast(message, options) {
23
- const action = message.actions.find((command) => command.onClick !== undefined);
24
- toast[options.tone](message.title, {
25
- id: options.id,
26
- description: bodyBeyondTitle(message) ?? undefined,
27
- duration: Number.POSITIVE_INFINITY,
28
- action: action?.onClick
29
- ? {
30
- label: action.label,
31
- onClick: (event) => {
32
- // Sonner takes an action's toast down as the click resolves unless the click says not to.
33
- event.preventDefault();
34
- action.onClick?.(event);
35
- },
36
- }
37
- : undefined,
43
+ raise(message, options.tone, { id: options.id, duration: Number.POSITIVE_INFINITY }, {
44
+ primary: command(message.actions.find((action) => action.onClick !== undefined)),
45
+ closes: false,
38
46
  });
39
47
  }
40
- const HELD_WITH_WORDS = {
41
- toast: "flex-wrap! [--toast-button-margin-start:0px]",
42
- content: "basis-full!",
43
- };
44
48
  /**
45
49
  * A toast whose lifetime another store holds, such as Hermes's notification
46
50
  * store in Nadia's window: it stays until `dismissToast(id)`, offers the
@@ -48,22 +52,16 @@ const HELD_WITH_WORDS = {
48
52
  * person closes or swipes it away.
49
53
  */
50
54
  export function showHeldToast(message, options) {
51
- const [action, second] = message.actions.filter((command) => command.onClick !== undefined);
52
- const description = bodyBeyondTitle(message) ?? undefined;
53
- toast[options.tone](message.title, {
55
+ const [primary, second] = message.actions.filter((action) => action.onClick !== undefined);
56
+ raise(message, options.tone, {
54
57
  id: options.id,
55
- description,
56
- // A held toast's words can run to a few sentences, so its buttons go on a row under them.
57
- classNames: description ? HELD_WITH_WORDS : undefined,
58
58
  duration: Number.POSITIVE_INFINITY,
59
- action: action?.onClick ? { label: action.label, onClick: action.onClick } : undefined,
60
- cancel: second?.onClick ? { label: second.label, onClick: second.onClick } : undefined,
61
59
  onDismiss: (shown) => {
62
60
  if (!shown.delete) {
63
61
  options.onClose();
64
62
  }
65
63
  },
66
- });
64
+ }, { primary: command(primary), second: command(second), closes: true });
67
65
  }
68
66
  /** Takes down the toast `id`: a held one without calling its `onClose`, or a staying one. */
69
67
  export function dismissToast(id) {
@@ -5,6 +5,7 @@ declare function ItemSpecimen(): import("react").JSX.Element;
5
5
  declare function KbdSpecimen(): import("react").JSX.Element;
6
6
  declare function ProgressSpecimen(): import("react").JSX.Element;
7
7
  declare function DisclosureRowSpecimen(): import("react").JSX.Element;
8
+ declare function EventRowSpecimen(): import("react").JSX.Element;
8
9
  declare function UsageTable(): import("react").JSX.Element;
9
10
  export declare const DATA: {
10
11
  AgentCard: () => import("react").JSX.Element;
@@ -15,6 +16,7 @@ export declare const DATA: {
15
16
  DataTable: typeof DataTableSpecimen;
16
17
  DiffCount: () => import("react").JSX.Element;
17
18
  DisclosureRow: typeof DisclosureRowSpecimen;
19
+ EventRow: typeof EventRowSpecimen;
18
20
  FigureRow: () => import("react").JSX.Element;
19
21
  FileDiff: () => import("react").JSX.Element;
20
22
  Item: typeof ItemSpecimen;
@@ -1 +1 @@
1
- {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/data.tsx"],"names":[],"mappings":"AA8HA,iBAAS,iBAAiB,gCAazB;AAsCD,iBAAS,iBAAiB,gCAkDzB;AAUD,iBAAS,eAAe,gCASvB;AAED,iBAAS,YAAY,gCAkCpB;AAED,iBAAS,WAAW,gCAuBnB;AAQD,iBAAS,gBAAgB,gCAqBxB;AAED,iBAAS,qBAAqB,gCAc7B;AAED,iBAAS,UAAU,gCAqClB;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiSU,CAAC"}
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/data.tsx"],"names":[],"mappings":"AA+HA,iBAAS,iBAAiB,gCAazB;AAsCD,iBAAS,iBAAiB,gCAkDzB;AAUD,iBAAS,eAAe,gCASvB;AAED,iBAAS,YAAY,gCAkCpB;AAED,iBAAS,WAAW,gCAuBnB;AAQD,iBAAS,gBAAgB,gCAqBxB;AAED,iBAAS,qBAAqB,gCAc7B;AAED,iBAAS,gBAAgB,gCAkDxB;AAED,iBAAS,UAAU,gCAqClB;AAED,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkSU,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import { Coins, CreditCard, Gauge, MessageCircle, RotateCw } from "lucide-react";
4
4
  import { useState } from "react";
5
5
  import { AgentCard, AgentRow } from "../../components/agent-card.js";
@@ -11,6 +11,7 @@ import { CodeBlock } from "../../components/code-block.js";
11
11
  import { DataTable } from "../../components/data-table.js";
12
12
  import { DiffCount } from "../../components/diff-count.js";
13
13
  import { DisclosureRow } from "../../components/disclosure-row.js";
14
+ import { EventRow } from "../../components/event-row.js";
14
15
  import { FigureRow, FigureRowSkeleton, FigureRows } from "../../components/figure-row.js";
15
16
  import { FileDiff } from "../../components/file-diff.js";
16
17
  import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemSelect, ItemTitle, } from "../../components/item.js";
@@ -153,6 +154,30 @@ function DisclosureRowSpecimen() {
153
154
  const [open, setOpen] = useState(false);
154
155
  return (_jsxs("div", { className: "grid max-w-md gap-2", children: [_jsx(DisclosureRow, { onToggle: () => setOpen((value) => !value), open: open, trailing: "3 steps", children: "Read the price list" }), open ? (_jsx("p", { className: "pl-6 text-sm text-muted-foreground", children: "Opened listino-2026.xlsx, read 412 rows, kept 38 for the quote." })) : null] }));
155
156
  }
157
+ function EventRowSpecimen() {
158
+ return (_jsxs("div", { className: "grid max-w-2xl gap-1", children: [_jsx(EventRow, { event: {
159
+ id: "replied",
160
+ at: NOW,
161
+ actor: { kind: "agent", orb: { form: "orbit", color: COBALTO } },
162
+ summary: (_jsxs(_Fragment, { children: [_jsx("strong", { children: "Bruno" }), " replied to ", _jsx("a", { href: "#marta", children: "Marta" })] })),
163
+ detail: "The margins hold except on two items",
164
+ }, layout: "conversation", locale: "en", opens: {
165
+ label: "Bruno replied to Marta",
166
+ body: "The margins hold except on two items: the 5 L olive oil is under 18 %, and the honey gift box is priced below cost.\nEverything else is fine to send.",
167
+ actions: [{ label: "Open the conversation", onClick: nothing }],
168
+ } }), _jsx(EventRow, { event: {
169
+ id: "build",
170
+ at: NOW,
171
+ summary: "Background work failed",
172
+ status: { label: "Failed", tone: "danger" },
173
+ detail: "pnpm build stopped at step 3 of 5",
174
+ }, layout: "conversation", locale: "en" }), _jsx(EventRow, { event: {
175
+ id: "model",
176
+ at: NOW,
177
+ actor: { kind: "person", name: "Giulia Bassi" },
178
+ summary: (_jsxs(_Fragment, { children: [_jsx("strong", { children: "Giulia Bassi" }), " changed the model to Claude Sonnet"] })),
179
+ }, layout: "conversation", locale: "en" })] }));
180
+ }
156
181
  function UsageTable() {
157
182
  return (_jsxs(Table, { "aria-label": "Usage by Agent", children: [_jsxs(TableColgroup, { children: [_jsx(TableCol, {}), _jsx(TableCol, { className: "w-36" }), _jsx(TableCol, { className: "w-32" })] }), _jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { scope: "col", children: "Agent" }), _jsx(TableHead, { className: "text-right", scope: "col", children: "Tokens" }), _jsx(TableHead, { className: "text-right", scope: "col", children: "Cost (\u20AC)" })] }) }), _jsx(TableBody, { interactive: true, striped: true, children: USAGE_ROWS.map((row) => (_jsxs(TableRow, { children: [_jsx(TableCell, { children: row.agent }), _jsx(TableCell, { className: "text-right tabular-nums", children: row.tokens }), _jsx(TableCell, { className: "text-right tabular-nums", children: row.cost })] }, row.agent))) }), _jsx(TableFooter, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { children: "Total" }), _jsx(TableCell, { className: "text-right tabular-nums", children: "3,850,352" }), _jsx(TableCell, { className: "text-right tabular-nums", children: "\u20AC 59.27" })] }) })] }));
158
183
  }
@@ -165,6 +190,7 @@ export const DATA = {
165
190
  DataTable: DataTableSpecimen,
166
191
  DiffCount: () => (_jsxs("span", { className: "flex items-center gap-2 font-mono text-sm", children: ["quote-template.md", _jsx(DiffCount, { added: 12, removed: 3 })] })),
167
192
  DisclosureRow: DisclosureRowSpecimen,
193
+ EventRow: EventRowSpecimen,
168
194
  FigureRow: () => (_jsxs("div", { className: "grid max-w-xl gap-6", children: [_jsx(Card, { size: "sm", children: _jsx(CardContent, { children: _jsxs(FigureRows, { "aria-label": "Usage", children: [_jsx(FigureRow, { icon: Gauge, label: "Included usage", meter: { value: 86, tone: "warning" }, note: "Running low. Extra usage pays for work past 100%.", noteTone: "warning", tone: "blue", value: "86% used" }), _jsx(FigureRow, { command: { label: "Buy Extra usage", onClick: nothing }, icon: Coins, label: "Extra usage available", note: "Spent after Included usage runs out. Never expires.", tone: "purple", value: "\u20AC15.00" }), _jsx(FigureRow, { command: { label: "Manage payment method", onClick: nothing }, icon: CreditCard, label: "Card", value: "Visa \u00B7\u00B7\u00B7\u00B7 2212" })] }) }) }), _jsx(Card, { size: "sm", children: _jsx(CardContent, { children: _jsx(FigureRows, { "aria-label": "Usage", children: _jsx(FigureRow, { command: { label: "Update payment method", onClick: nothing }, icon: Gauge, label: "Included usage", note: "Update your payment method to restore your Included usage.", noteTone: "critical", tone: "blue", value: _jsx(StatusBadge, { label: "Held back", tone: "danger" }) }) }) }) }), _jsx(Card, { size: "sm", children: _jsx(CardContent, { children: _jsxs(FigureRows, { "aria-label": "Usage", children: [_jsx(FigureRowSkeleton, {}), _jsx(FigureRowSkeleton, {})] }) }) })] })),
169
195
  FileDiff: () => (_jsx(FileDiff, { addedLabel: "Added", after: "Payment within 30 days.\nPrices include VAT.\nValid until 31 December.", before: "Payment within 60 days.\nPrices include VAT.", className: "max-w-lg", removedLabel: "Removed", skippedLabel: (count) => `${count} unchanged lines` })),
170
196
  Item: ItemSpecimen,
@@ -63,6 +63,7 @@ export declare const SPECIMENS: {
63
63
  DataTable: () => import("react").JSX.Element;
64
64
  DiffCount: () => import("react").JSX.Element;
65
65
  DisclosureRow: () => import("react").JSX.Element;
66
+ EventRow: () => import("react").JSX.Element;
66
67
  FigureRow: () => import("react").JSX.Element;
67
68
  FileDiff: () => import("react").JSX.Element;
68
69
  Item: () => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/showcase/specimens/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC"}
@@ -1,4 +1,4 @@
1
- export type UsageName = "ActivityFeed" | "AssistantPanelHeader" | "AssistantWelcome" | "BoardEmpty" | "BoardHeader" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "ConversationCard" | "DrawerSteps" | "EntryPage" | "EntryPicture" | "EntryScene" | "FilterToolbar" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageFrame" | "PageHeader" | "PlanCard" | "ProductBand" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "StepCards" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CompanyCardActions" | "CopyButton" | "LoadMoreButton" | "PageActions" | "RecordCommands" | "RecordContextMenu" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "FolderField" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppIcon" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IconTile" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProductWordmark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "ColumnFoot" | "CommandDialog" | "DocumentTabs" | "FileTree" | "Footer" | "PlaceCount" | "PortalSidebarFrame" | "ProductShell" | "ProductShellBell" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarEntryCard" | "SidebarFind" | "SidebarFoot" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "AgentRow" | "Card" | "CardRow" | "CatalogCard" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "FigureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
1
+ export type UsageName = "ActivityFeed" | "AssistantPanelHeader" | "AssistantWelcome" | "BoardEmpty" | "BoardHeader" | "CatalogDrawer" | "CollectionFilters" | "CollectionPage" | "CollectionToolbar" | "ConfirmDialog" | "ConversationCard" | "DrawerSteps" | "EntryPage" | "EntryPicture" | "EntryScene" | "FilterToolbar" | "FormDialog" | "FormDrawer" | "InviteCard" | "LibraryShelf" | "ObjectPage" | "ObjectSection" | "OverviewPage" | "PageFrame" | "PageHeader" | "PlanCard" | "ProductBand" | "RecordList" | "RecordSheet" | "RowEditForm" | "SettingsPage" | "SettingsSection" | "StepCards" | "useCatalogRows" | "Button" | "ButtonGroup" | "ButtonLink" | "CardActionsRow" | "CompanyCardActions" | "CopyButton" | "LoadMoreButton" | "PageActions" | "RecordCommands" | "RecordContextMenu" | "Calendar" | "ClearableInput" | "CollectionSearch" | "Field" | "FolderField" | "Form" | "Input" | "InputGroup" | "InputOTP" | "Label" | "NativeSelect" | "SettingsField" | "SettingsRows" | "Slider" | "Textarea" | "Checkbox" | "ChoiceboxGroup" | "CollectionSort" | "Combobox" | "ModelSelect" | "MultiSelect" | "RadioGroup" | "SegmentedChoice" | "SegmentedControl" | "Select" | "Switch" | "ThemeModeSegments" | "ThemeModeSwitcher" | "Toggle" | "ToggleGroup" | "ActionStatus" | "AgentOrb" | "AppIcon" | "AppMark" | "ArchIcon" | "Avatar" | "Badge" | "BrandWordmark" | "CategoryTag" | "CheckCounts" | "FileTypeIcon" | "IconTile" | "IdentityMark" | "ModelIdentity" | "ModelMark" | "ObjectFactValue" | "PlatformMark" | "ProductWordmark" | "ProgressChecklist" | "RecordIdentity" | "StatusBadge" | "Tag" | "AgentListRow" | "Breadcrumb" | "ColumnFoot" | "CommandDialog" | "DocumentTabs" | "FileTree" | "Footer" | "PlaceCount" | "PortalSidebarFrame" | "ProductShell" | "ProductShellBell" | "ScopeSwitcher" | "Sidebar" | "SidebarBrand" | "SidebarEntryCard" | "SidebarFind" | "SidebarFoot" | "SidebarFrame" | "SidebarMenuChevron" | "SidebarSections" | "Tabs" | "TabsNav" | "textLinkVariants" | "AgentCard" | "AgentRow" | "Card" | "CardRow" | "CatalogCard" | "CodeBlock" | "DataTable" | "DiffCount" | "DisclosureRow" | "EventRow" | "FigureRow" | "FileDiff" | "Gauge" | "Item" | "Kbd" | "MiddleTruncate" | "ObjectFacts" | "PairingCode" | "Progress" | "QrCode" | "RecordTime" | "RunTimeline" | "SettingsFactsSection" | "Snippet" | "Table" | "TableCard" | "TableValue" | "TextWithCopyButton" | "UsageMeter" | "Alert" | "EmptyState" | "EntryProgress" | "EntryStageList" | "HoverCard" | "MessageNotice" | "NoticeBanner" | "PendingLabel" | "Skeleton" | "SkeletonRegion" | "Toaster" | "Tooltip" | "UpdateCard" | "WaitingLine" | "AccountMenu" | "ActionContextMenu" | "ActionMenu" | "AlertDialog" | "ContextMenu" | "Dialog" | "Drawer" | "DropdownMenu" | "GlassControl" | "MenuChoiceRow" | "Popover" | "Sheet" | "SiteMenu" | "ThemeModeMenu" | "ActivityCalendar" | "ChartAreaStacked" | "ChartBarHorizontal" | "ChartBarMultiple" | "ChartBarStacked" | "ChartCard" | "ChartContainer" | "ChartRanking" | "ChartSparkline" | "DateRangeControl" | "KpiCard" | "TrendBadge" | "createEntityColorMap" | "Accordion" | "AspectRatio" | "BrandField" | "Collapsible" | "CompanyCard" | "Disclosure" | "HiveScene" | "NadiaPresence" | "NumberedSteps" | "Prose" | "ReadingColumn" | "ResizablePanelGroup" | "ScrollArea" | "Separator" | "ToolIcon";
2
2
  export type UsageFamily = "Compositions" | "Actions" | "Inputs" | "Choices" | "Status" | "Navigation" | "Data" | "Feedback" | "Menus" | "Charts" | "Other";
3
3
  export type ComponentUsage = {
4
4
  name: UsageName;
@@ -1 +1 @@
1
- {"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,sBAAsB,GACtB,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,aAAa,GACb,WAAW,GACX,cAAc,GACd,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,WAAW,GACX,YAAY,GACZ,UAAU,GACV,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,oBAAoB,GACpB,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,aAAa,GACb,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,UAAU,GACV,SAAS,GACT,SAAS,GACT,UAAU,GACV,QAAQ,GACR,OAAO,GACP,eAAe,GACf,aAAa,GACb,aAAa,GACb,cAAc,GACd,UAAU,GACV,cAAc,GACd,eAAe,GACf,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,iBAAiB,GACjB,mBAAmB,GACnB,gBAAgB,GAChB,aAAa,GACb,KAAK,GACL,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,cAAc,GACd,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,oBAAoB,GACpB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,SAAS,GACT,cAAc,GACd,kBAAkB,GAClB,aAAa,GACb,aAAa,GACb,cAAc,GACd,oBAAoB,GACpB,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,kBAAkB,GAClB,WAAW,GACX,UAAU,GACV,MAAM,GACN,SAAS,GACT,aAAa,GACb,WAAW,GACX,WAAW,GACX,WAAW,GACX,eAAe,GACf,WAAW,GACX,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,aAAa,GACb,sBAAsB,GACtB,SAAS,GACT,OAAO,GACP,WAAW,GACX,YAAY,GACZ,oBAAoB,GACpB,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,eAAe,GACf,cAAc,GACd,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,aAAa,GACb,aAAa,GACb,mBAAmB,GACnB,YAAY,GACZ,aAAa,GACb,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,cAAc,GACd,eAAe,GACf,SAAS,GACT,OAAO,GACP,UAAU,GACV,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,kBAAkB,GAClB,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,SAAS,GACT,YAAY,GACZ,sBAAsB,GACtB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,YAAY,GACZ,WAAW,GACX,eAAe,GACf,eAAe,GACf,OAAO,GACP,eAAe,GACf,qBAAqB,GACrB,YAAY,GACZ,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,EAq9F1C,CAAC"}
1
+ {"version":3,"file":"usage.generated.d.ts","sourceRoot":"","sources":["../../src/showcase/usage.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GACjB,cAAc,GACd,sBAAsB,GACtB,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,mBAAmB,GACnB,gBAAgB,GAChB,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,aAAa,GACb,WAAW,GACX,cAAc,GACd,YAAY,GACZ,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,eAAe,GACf,cAAc,GACd,WAAW,GACX,YAAY,GACZ,UAAU,GACV,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,gBAAgB,GAChB,oBAAoB,GACpB,YAAY,GACZ,gBAAgB,GAChB,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,UAAU,GACV,gBAAgB,GAChB,kBAAkB,GAClB,OAAO,GACP,aAAa,GACb,MAAM,GACN,OAAO,GACP,YAAY,GACZ,UAAU,GACV,OAAO,GACP,cAAc,GACd,eAAe,GACf,cAAc,GACd,QAAQ,GACR,UAAU,GACV,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,UAAU,GACV,aAAa,GACb,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GAClB,QAAQ,GACR,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,QAAQ,GACR,aAAa,GACb,cAAc,GACd,UAAU,GACV,SAAS,GACT,SAAS,GACT,UAAU,GACV,QAAQ,GACR,OAAO,GACP,eAAe,GACf,aAAa,GACb,aAAa,GACb,cAAc,GACd,UAAU,GACV,cAAc,GACd,eAAe,GACf,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,iBAAiB,GACjB,mBAAmB,GACnB,gBAAgB,GAChB,aAAa,GACb,KAAK,GACL,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,cAAc,GACd,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,oBAAoB,GACpB,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,SAAS,GACT,cAAc,GACd,kBAAkB,GAClB,aAAa,GACb,aAAa,GACb,cAAc,GACd,oBAAoB,GACpB,iBAAiB,GACjB,MAAM,GACN,SAAS,GACT,kBAAkB,GAClB,WAAW,GACX,UAAU,GACV,MAAM,GACN,SAAS,GACT,aAAa,GACb,WAAW,GACX,WAAW,GACX,WAAW,GACX,eAAe,GACf,UAAU,GACV,WAAW,GACX,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,aAAa,GACb,sBAAsB,GACtB,SAAS,GACT,OAAO,GACP,WAAW,GACX,YAAY,GACZ,oBAAoB,GACpB,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,eAAe,GACf,cAAc,GACd,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,SAAS,GACT,SAAS,GACT,YAAY,GACZ,aAAa,GACb,aAAa,GACb,mBAAmB,GACnB,YAAY,GACZ,aAAa,GACb,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,cAAc,GACd,eAAe,GACf,SAAS,GACT,OAAO,GACP,UAAU,GACV,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,oBAAoB,GACpB,kBAAkB,GAClB,iBAAiB,GACjB,WAAW,GACX,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,SAAS,GACT,YAAY,GACZ,sBAAsB,GACtB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,aAAa,GACb,aAAa,GACb,YAAY,GACZ,WAAW,GACX,eAAe,GACf,eAAe,GACf,OAAO,GACP,eAAe,GACf,qBAAqB,GACrB,YAAY,GACZ,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,WAAW,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAYhD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,SAAS,cAAc,EAq+F1C,CAAC"}
@@ -19,9 +19,9 @@ export const USAGE = [
19
19
  module: "activity-feed",
20
20
  family: "Compositions",
21
21
  summary: "What happened to a record, and when: one row per event under its day, newest first.",
22
- when: "A record's history: a Customer's, a Partner's or an Installation's Activity tab in the Portal, the company wiki's updates in Nadia. Each answers \"what happened, and when?\".",
22
+ when: "A record's history: a Customer's, a Partner's or an Installation's Activity tab in the Portal, the company wiki's updates in Nadia. Each answers \"what happened, and when?\". Its row, `EventRow`, also stands alone, one row at a time, between the messages of an Agent's chat in Nadia.",
23
23
  instead: 'The steps of one Agent run, read in order, are a RunTimeline; a list of records a person finds and acts on is a CollectionPage; a single "last changed" fact is a RecordTime.',
24
- behaviour: "The search, filters and window sit right above the rows, kept in the URL by the product. Days stand newest first, each a title and a muted date over one card of rows; a row is the time of day, the actor's 24 px mark, the sentence with a status badge only for an exception, and one muted line of detail. \"Show older events\" follows the last day as a full-width `LoadMoreButton`, or as a `ButtonLink` when it navigates; there is never a page count. States, first that holds: failed, loading (still rows in the row's shape, which `ActivityFeedSkeleton` also draws while a page reads the events before it can draw the feed; nadicode decision), no match with Clear filters, nothing yet in one line, the days. Nothing yet is one quiet line, never a picture; a failed read is the warning mark with Retry, never \"no events\". The time is the time of day in the viewer's own zone in tabular figures (`RecordTime`), with UTC and the viewer's zone in its hover card; one rule for every feed, never a time printed in UTC as the viewer's: a server-rendered page passes the viewer's `timeZone`, since without it the server and the first client render print UTC. The actor's mark is a person's initials, an Agent's real orb or an Installation's tile; the system's own work has no mark and never takes an orb. Under 900 px the time moves under the sentence. It draws no card header: the tab is the title.",
24
+ behaviour: "The search, filters and window sit right above the rows, kept in the URL by the product. Days stand newest first, each a title and a muted date over one card of rows; a row, an `EventRow`, is the time of day, the actor's 24 px mark, the sentence with a status badge only for an exception, and one muted line of detail. \"Show older events\" follows the last day as a full-width `LoadMoreButton`, or as a `ButtonLink` when it navigates; there is never a page count. States, first that holds: failed, loading (still rows in the row's shape, which `ActivityFeedSkeleton` also draws while a page reads the events before it can draw the feed; nadicode decision), no match with Clear filters, nothing yet in one line, the days. Nothing yet is one quiet line, never a picture; a failed read is the warning mark with Retry, never \"no events\". The time is the time of day in the viewer's own zone in tabular figures (`RecordTime`), with UTC and the viewer's zone in its hover card; one rule for every feed, never a time printed in UTC as the viewer's: a server-rendered page passes the viewer's `timeZone`, since without it the server and the first client render print UTC. The actor's mark is a person's initials, an Agent's real orb or an Installation's tile; the system's own work has no mark and never takes an orb. Under 900 px the time moves under the sentence. It draws no card header: the tab is the title.",
25
25
  words: 'The sentence names the actor in `<strong>`, the action in the past tense and the object as a link that keeps the text\'s colour: "Marco Rinaldi created the Agent Acme Quotes". Day titles are "Today", "Yesterday", then the weekday; dates are the product\'s own ("14 October"). Nothing yet: "No events yet." and what will appear. No match: "No events match these filters.".',
26
26
  access: "The toolbar is named by `label`; each day's title is a level-3 heading over a list of its events; while loading, one status named by `loadingLabel` stands for the rows, and `ActivityFeedSkeleton`, a page's placeholder before it can draw the feed, is busy and carries no words; each time is a `<time>` with its exact moment for assistive technology. A system event has no mark, so nothing empty is announced.",
27
27
  },
@@ -296,7 +296,7 @@ export const USAGE = [
296
296
  summary: "One plan a person can choose, in a row of plans: its emblem, name, use, what comes with it, its price and the command that chooses it.",
297
297
  when: "The plans a person compares and chooses from: the Portal's plan catalogue in Billing, a Partner's plans above its Customers' (nadicode decision).",
298
298
  instead: "The plan an account holds now is a fact of its billing, in an `ObjectSection` or a `SettingsFactsSection`. A thing added from a catalogue with no price is a `CatalogCard` or a `CatalogEntry`. A row of these cards is a `CardRow`.",
299
- behaviour: "A resting card. The `picture` fills its width at the top, square, the card's corner clipping it; then the name, with the `status` badges at its trailing edge; then the `description`, the allowance's `figure` large over its `label`, the `inclusions` as a list under their label, each item after a muted check mark, and the price with its period beside it and its `note` under it. The `action` stands at the card's foot under a divider, so the actions of a row of cards line up whatever each plan holds: its `command` as an outline button, filled when `recommended`, for the plan the catalogue recommends to a person choosing their first, or its `note` as one muted line. The card draws the command itself, a link staying a link and a submit of the product's form staying its submit; one that cannot run now stays, disabled (nadicode decision). Neutral throughout: a plan is told apart by its emblem and its badges, never a coloured card (nadicode decision).",
299
+ behaviour: "A resting card. The `picture` fills its width at the top, square, the card's corner clipping it; then the name, with the `status` badges at its trailing edge; then the `description`, the allowance's `figure` large over its `label`, the `inclusions` as a list under their label, each item after a muted check mark, and the price with its period beside it and its `note` under it. The `action` stands at the card's foot under a divider, so the actions of a row of cards line up whatever each plan holds: its `command` as an outline button, filled when `recommended`, for the plan the catalogue recommends to a person choosing their first, or its `note` as one muted line. The card draws the command itself, a link staying a link and a submit of the product's form staying its submit; one that cannot run now stays, disabled, its `disabledReason` written under it as one muted line, since a disabled command's reason is never only behind hover (nadicode decision). Neutral throughout: a plan is told apart by its emblem and its badges, never a coloured card (nadicode decision).",
300
300
  words: 'The name as the plan is called everywhere. A badge is one word: "Current", "Next", "Recommended". The allowance\'s label says the use in words ("Three times the usage of Pro", "Usage included"); the price is the amount, the period "/month", the note what the price leaves out ("VAT excluded"). The action is a verb on the plan ("Subscribe", "Change plan"), or the line that says why there is none ("Your current plan").',
301
301
  access: "A `section` labelled by the plan's name, a heading at `headingLevel`. The picture and the allowance's figure are hidden from assistive technology, which reads the name and the label instead. The inclusions are a list.",
302
302
  },
@@ -395,7 +395,7 @@ export const USAGE = [
395
395
  summary: "The package's one button: a command, its label naming the result.",
396
396
  when: "\"Use `Button` for actions that mutate state (deploy, save, delete); use `ButtonLink` for navigation that changes the URL.\" (https://vercel.com/geist/button) Ours: one `default` per surface, the thing this page or dialog is for; on a settings page each card acts on its own, so each card's footer action is its one `default` (Save, Invite, Enable). A product's page never renders it: the page gives each command as data to the composition of the place it stands in (`PageActions`, a card's `actions`, `SettingsSection`'s `footer`, `RecordList`'s `commands`, `EmptyState`'s `action`, a dialog's form), which draws this button with that place's look; the Portal's lint (`nadicodeai/commands-as-data`) refuses it on a signed-in page.",
397
397
  instead: '"Switch to a `Menu` or `Split Button` when more than one related action shares a row." (https://vercel.com/geist/button) Ours: a link inside a sentence is `TextLink`. A record\'s secondary commands go in `ActionMenu`. Appending to a list is a `LoadMoreButton`. An on/off value is a `Switch`.',
398
- behaviour: '"Default `Button` is primary." (https://vercel.com/geist/button) "Pass `type="secondary"` for the supporting action and `type="error"` for destructive confirmations." (https://vercel.com/geist/button) "`primary`, `success`, `ghost`, and `violet` are not valid `type` values." (https://vercel.com/geist/button) "For form submits, use `typeName="submit"`." (https://vercel.com/geist/button) "The HTML `type` attribute lives on `typeName`, not on `type`, which controls the visual variant." (https://vercel.com/geist/button) Ours: the look is `variant` (`default`, `secondary`, `outline`, `ghost`, `link`, `destructive` for Geist\'s error, `warning`, and `brandSolid` and `brandGhost` for a colour or black ground) and `type` is the HTML type, `button` unless it submits. There is no `CustomButton`: colour is ours, chosen by `variant`, never at the call site. "The default size is medium." (https://vercel.com/geist/button) Ours: `xs` (24 px), `sm` (32 px), `default` (36 px, medium) and `lg` (40 px); `sm` and `xs` are for a control nested in dense content, such as a composer or an input group, never for chrome. `inline` is a `link` command standing in a line of text (*Change*, *Switch account*): no padding of its own, and on a mouse it keeps the control\'s minimum height so it is as easy to hit. The corner is 6 px, 8 px at `lg` and 4 px on the 24 px icon button. The label is the button type at `sm` and `default`, the large one at `lg` and the 12 px one at `xs`, and the inline padding is 6 px at `sm`, 10 px at `default` and 14 px at `lg` (8 px at `xs`). "Pass `loading` instead of swapping in a spinner so the button stays focusable and announces the busy state to assistive tech." (https://vercel.com/geist/button) Ours: `loading` is the only busy state: the button keeps its place and focus, says `loadingLabel` in the label\'s place, ignores a second press and shows no spinner. "Disable a button only when the action is impossible right now (missing input, insufficient permission); pair with a `Tooltip` that explains why." (https://vercel.com/geist/button) Ours: the reason is written beside the button. "Icon-only buttons should include the `svgOnly` prop and an `aria-label`." (https://vercel.com/geist/button) Ours: an icon-only button takes an `icon` size and its icon as the child; `shape="circle"` is only for it. An icon with text passes as `prefix` or `suffix`. "Combination of `shape="rounded"` and the `shadow` prop, often used on marketing pages." (https://vercel.com/geist/button) Ours: `shape="rounded"` is a pill for a call to action that stands apart (a banner\'s or a scroller\'s), with no `shadow` prop. Ours: a Button drawn as another Button\'s element, through that Button\'s `render` (a product\'s component that opens a dialog), takes that Button\'s look and size, never its own default. Ours: text children sit in a label box that adds 6 px each side to the padding, except at `xs` and the icon sizes, which have none; an element child (a `render` target, a row with a trailing `Kbd`) lays itself out and gets no box. Colour sits on the whole button for three looks: `default` is ink with a white label (in dark, the light action fill with a near-black label, never pure white), `destructive` is the error fill for permanent loss (Delete project), `warning` is the amber fill for a disruptive command that can be undone (Pause project). `link` is the link colour as text, with the arrow as `suffix` when the destination is outside the product. `outline` and `secondary` are neutral with a hairline edge, `ghost` has no chrome and serves a tertiary text action or an icon-only command (the three dots, close, collapse), and no look puts a hue on its edge. Held (disabled or `loading`), a filled look (`default`, `outline`, `secondary`, `destructive` and `warning`, so `outline` and `secondary` too) drops its hue to the muted fill, the muted text and the hairline at full opacity, so it reads as unavailable; `ghost`, `link` and the two brand looks dim instead. Pressed looks like hover, with no movement. On a colour or black ground a control takes a look whose label clears AA there: `brandSolid` (white fill, ink label) or `brandGhost` (white label, no fill) on cobalto, rosso and black, and the `default` ink button on verde, arancio and giallo.',
398
+ behaviour: '"Default `Button` is primary." (https://vercel.com/geist/button) "Pass `type="secondary"` for the supporting action and `type="error"` for destructive confirmations." (https://vercel.com/geist/button) "`primary`, `success`, `ghost`, and `violet` are not valid `type` values." (https://vercel.com/geist/button) "For form submits, use `typeName="submit"`." (https://vercel.com/geist/button) "The HTML `type` attribute lives on `typeName`, not on `type`, which controls the visual variant." (https://vercel.com/geist/button) Ours: the look is `variant` (`default`, `secondary`, `outline`, `ghost`, `link`, `destructive` for Geist\'s error, `warning`, and `brandSolid` and `brandGhost` for a colour or black ground) and `type` is the HTML type, `button` unless it submits. There is no `CustomButton`: colour is ours, chosen by `variant`, never at the call site. "The default size is medium." (https://vercel.com/geist/button) Ours: `xs` (24 px), `sm` (32 px), `default` (36 px, medium) and `lg` (40 px); `sm` and `xs` are for a control nested in dense content, such as a composer or an input group, never for chrome. `inline` is a `link` command standing in a line of text (*Change*, *Switch account*): no padding of its own, and on a mouse it keeps the control\'s minimum height so it is as easy to hit. The corner is 6 px, 8 px at `lg` and 4 px on the 24 px icon button. The label is the button type at `sm` and `default`, the large one at `lg` and the 12 px one at `xs`, and the inline padding is 6 px at `sm`, 10 px at `default` and 14 px at `lg` (8 px at `xs`). "Pass `loading` instead of swapping in a spinner so the button stays focusable and announces the busy state to assistive tech." (https://vercel.com/geist/button) Ours: `loading` is the only busy state: the button keeps its place and focus, says `loadingLabel` in the label\'s place, ignores a second press and shows no spinner. "Disable a button only when the action is impossible right now (missing input, insufficient permission); pair with a `Tooltip` that explains why." (https://vercel.com/geist/button) Ours: the reason is written beside the button. "Icon-only buttons should include the `svgOnly` prop and an `aria-label`." (https://vercel.com/geist/button) Ours: an icon-only button takes an `icon` size and its icon as the child; `shape="circle"` is only for it. An icon with text passes as `prefix` or `suffix`. "Combination of `shape="rounded"` and the `shadow` prop, often used on marketing pages." (https://vercel.com/geist/button) Ours: `shape="rounded"` is a pill for a call to action that stands apart (a banner\'s or a scroller\'s), with no `shadow` prop. Ours: a Button drawn as another Button\'s element, through that Button\'s `render` (a product\'s component that opens a dialog), takes that Button\'s look and size, never its own default. Ours: text children sit in a label box that adds 6 px each side to the padding, except at `xs` and the icon sizes, which have none; an element child (a `render` target, a row with a trailing `Kbd`) lays itself out and gets no box. Colour sits on the whole button for three looks: `default` is the primary action colour, cobalto, with its white label in both themes, `destructive` is the error fill for permanent loss (Delete project), `warning` is the amber fill for a disruptive command that can be undone (Pause project). `link` is the link colour as text, with the arrow as `suffix` when the destination is outside the product. `outline` and `secondary` are neutral with a hairline edge, `ghost` has no chrome and serves a tertiary text action or an icon-only command (the three dots, close, collapse), and no look puts a hue on its edge. Held (disabled or `loading`), a filled look (`default`, `outline`, `secondary`, `destructive` and `warning`, so `outline` and `secondary` too) drops its hue to the muted fill, the muted text and the hairline at full opacity, so it reads as unavailable; `ghost`, `link` and the two brand looks dim instead. Pressed looks like hover, with no movement. On a colour or black ground a control takes a look whose label clears AA there: `brandSolid` (white fill, ink label) or `brandGhost` (white label, no fill) on cobalto, rosso and black, and the `default` ink button on verde, arancio and giallo.',
399
399
  words: '"Title Case the label and name what happens: `Deploy Project`, `Invite Member`, `Rotate Key`." (https://vercel.com/geist/button) "Avoid bare verbs (`Submit`) and generic confirms (`OK`, `Confirm`)." (https://vercel.com/geist/button) "Destructive buttons follow `Verb + Noun` and pair 1:1 with their toast: `Delete Project` then `Project deleted`." (https://vercel.com/geist/button) "Mode-switch buttons append `Instead`: `Use a Recovery Code Instead`." (https://vercel.com/geist/button) Ours: sentence case, not Title Case: *Invite member*, *Remove mailbox* then *Mailbox removed*, *Use a recovery code instead*. `loadingLabel` is the same words in the -ing form: *Inviting member*. Italian runs about a third longer (*Rimuovi casella*), so a footer leaves room and a label never wraps.',
400
400
  access: '"Icon-only buttons require both `svgOnly` and `aria-label`; the validator throws without them." (https://vercel.com/geist/button) "The `aria-label` names the action and the target (`Copy deployment URL`), not the icon (`Copy`)." (https://vercel.com/geist/button) "Don’t set `aria-label` on a button that already has visible text; it overrides the label and creates a screen-reader mismatch." (https://vercel.com/geist/button) Ours: the type requires `aria-label` or `aria-labelledby` on an icon-only button. A native `button`, `type="button"` unless it submits. `loading` sets `aria-busy`. Focus shows the base outline in one colour for every look; nothing repaints it.',
401
401
  },
@@ -1352,7 +1352,7 @@ export const USAGE = [
1352
1352
  summary: "The surface of every card; on its own only a container inside a composition.",
1353
1353
  when: '"For in-product cards and dashboard tiles, use `Card`; Book is too decorative for repeated UI rows." (https://vercel.com/geist/book) Ours: only inside a composition that owns the job: the object card of an `ObjectPage`, the setting card of a `SettingsSection`, a KPI, a chart, a table. A new kind of card is a new composition, never a `Card` assembled at a call site, and never a card holding only an introduction.',
1354
1354
  instead: "\"Groups related form controls inside a bordered card with optional footer actions.\" (https://vercel.com/geist/fieldset) Ours: that card, a title and description, one control and a footer with help at the start and one action at the end, is `SettingsSection`. An object's card (a header bar with its name and commands, a body of facts, rows that open, a footer hint with one link elsewhere) is `ObjectPage`. The page's title row is never in a card. A row of a list is `Item`. A plane of brand colour is `BrandField`.",
1355
- behaviour: '"One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title\'s right; on a card narrower than 28rem, as on a phone, the description runs under both, and the control moves under the title only when the title\'s longest word would not fit beside it, so it never covers it. An action of several controls moves under the description in a header narrower than 28rem (the header\'s own width, not the viewport\'s); `CardFooter` is a strip in the `recessed` role, one tone off the card body inside the card\'s edge, behind one seam in the border colour: `canvas-soft` below the white card in light, and `dark-canvas` below the resting body in dark; on the left one short muted line, only where it says something specific to that card (a limit such as *Please use 32 characters at maximum.*, what a value is for, the plan a feature needs or a link to learn more) and never one sentence every card repeats, on the right at most one button or link, the section\'s action. It is 56 px high whether or not it holds a button, and as high as its lines in a `size="sm"` card, the compact card of a side column or a figure. The two kinds differ in what their header and footer hold: an object card\'s header holds the object\'s commands and its footer only a link, so it never saves; a setting card\'s header holds a title, a description and its `actions` or `control`, and its footer holds the Save, which also applies a switch in the card (`SettingsSection`). A card\'s or a section\'s title carries no icon, unless the card stands for one external system, whose mark it then carries. A card is neutral; colour enters only through a status inside it or a section\'s `tone`. `flush="bottom"` ends the card at its last child, for rows whose hairlines run to its bottom edge, as a footer does; `flush="all"` lets the content meet every edge with no gap between children, for one picture or grid that fills the card.',
1355
+ behaviour: '"One Note per concept." (https://vercel.com/geist/note) "Stacking three Notes on a card means the page architecture, not the Note copy, is wrong." (https://vercel.com/geist/note) "Use the Error component as a block surface when a section or page-level resource failed to load: a panel, a dashboard card, a route boundary." (https://vercel.com/geist/error) Ours: the corner and shadow come with `surface`: a raised card takes the larger corner. Never set a corner at the call site. `surface` defaults to `resting`, the resting height of "Elevation & Depth" in DESIGN.md. `CardHeader` lays out title, description and one `CardAction`. A `CardTitle` wraps inside the card, breaking a word longer than its width, such as a long name, so no title runs past the card\'s edge. An action of one control (a button, a badge, a sparkline, the three dots) stands at the title\'s right; on a card narrower than 28rem, as on a phone, the description runs under both, and the control moves under the title only when the title\'s longest word would not fit beside it, so it never covers it. An action of several controls moves under the description in a header narrower than 28rem (the header\'s own width, not the viewport\'s); `CardFooter` is a strip in the `recessed` role, one tone off the card body inside the card\'s edge, behind one seam in the border colour: `canvas-soft` below the white card in light, and `dark-canvas` below the resting body in dark; on the left one short muted line, only where it says something specific to that card (a limit such as *Please use 32 characters at maximum.*, what a value is for, the plan a feature needs or a link to learn more) and never one sentence every card repeats, on the right at most one button or link, the section\'s action. It is 56 px high whether or not it holds a button, and as high as its lines in a `size="sm"` card, the compact card of a side column or a figure. The two kinds differ in what their header and footer hold: an object card\'s header holds the object\'s commands and its footer only a link, so it never saves; a setting card\'s header holds a title, a description and its `actions` or `control`, and its footer holds the Save, which also applies a switch in the card (`SettingsSection`). A card\'s or a section\'s title carries no icon, unless the card stands for one external system, whose mark it then carries. A card is neutral; colour enters only through a status inside it or a section\'s `tone`. `flush="bottom"` ends the card at its last child, for rows whose hairlines run to its bottom edge, as a footer does; `flush="all"` lets the content meet every edge with no gap between children, for one picture or grid that fills the card.',
1356
1356
  words: "The title is a noun phrase naming what the card holds; the description one sentence directly under it, only when it adds something.",
1357
1357
  access: "A plain container; give it `render={<section />}` with a heading when it is a region of the page.",
1358
1358
  },
@@ -1418,10 +1418,21 @@ export const USAGE = [
1418
1418
  summary: "A row whose label opens what it holds, with an action and a trailing value beside it.",
1419
1419
  when: "A line in a dense list that opens to show its detail: a tool call, a group of steps.",
1420
1420
  instead: "Supporting detail on a page is `Disclosure`.",
1421
- behaviour: "The chevron shows on hover or focus and while open. Without `onToggle` the row is static and draws no chevron.",
1421
+ behaviour: "A row that toggles always shows its chevron right after the label, pointing right while closed and turned down while open; hover and focus only turn the label to the foreground colour. Without `onToggle` the row is static and draws no chevron.",
1422
1422
  words: "The label names what is inside; the trailing value is a short figure.",
1423
1423
  access: "The label is a `button` with `aria-expanded` when it toggles.",
1424
1424
  },
1425
+ {
1426
+ name: "EventRow",
1427
+ module: "event-row",
1428
+ family: "Data",
1429
+ summary: "One thing that happened, told in one sentence: a row of a feed, or a line between the messages of a conversation.",
1430
+ when: 'Something that happened, read in passing: each row of an `ActivityFeed` (`layout="feed"`, which the feed draws), and, in an Agent\'s chat in Nadia, what happened between the messages that needs no answer from the person (`layout="conversation"`): background work finished or failed, an Assignment handed back, a scheduled task ran, the model changed, earlier messages summarized.',
1431
+ instead: "A failure the person must act on before the conversation can go on is a `MessageNotice`; the steps of one Agent run, read in order, are a `RunTimeline`; a line inside a reply that opens to a tool call's detail is a `DisclosureRow`; a record's whole history is an `ActivityFeed`.",
1432
+ behaviour: "A row is the actor's 24 px mark, the sentence, a status badge only for an exception, one muted line of detail and the time of day in tabular figures; the sentence wraps pretty, and a status badge that wraps starts its own line at the sentence's edge, with UTC and the viewer's zone in its hover card. The mark is a person's initials or an Agent's orb, the Agent Nadia's included; the system's own work, such as background work or the app changing the model, has none, and its cell stays empty so the sentences line up. `feed`: the time leads in its own column inside the feed's card and moves under the sentence below 900 px. `conversation`: no card; the time trails at the right, the detail is one line cut with an ellipsis, and the object's link is underlined in the line colour. Only a `conversation` row opens (nadicode decision): given `opens`, the whole row toggles a resting card under the sentence, set in to the words and ending where the time ends, holding its body with its line breaks kept and at most two outline small buttons. A row that opens always shows its 12 px chevron right after the words, pointing right while closed and turned down while open; hover and focus only turn the words to the foreground colour. A row without `opens` draws no chevron and does nothing when pressed. The object's link and the time stay above the row's toggle: pressing the link goes to the object and never opens the row. The row holds whether it is open; `defaultOpen` sets how it starts.",
1433
+ words: 'The sentence names the actor in `<strong>`, the action in the past tense and the object as a link in the text\'s colour: "Bruno replied to Marta", "Marta finished the Assignment Q4 price list". Done is the past tense, never a badge; a status is an exception\'s word only, the word the object\'s own page shows for that state: Failed, Needs you, Checking, Not run. A failure says so in the sentence too. The detail is one short line, such as the first words of a reply or a result. `opens.label` is the sentence in plain words; a button names what it does to the object: "Open the conversation".',
1434
+ access: "In a feed each row is an item of its day's list. A row that opens is one `button` over the whole row, named by `opens.label`, with `aria-expanded` and, while open, `aria-controls` naming the card; the object's link comes before it in the tab order and the card's buttons after it. The mark and the chevron are hidden; the time is a `<time>` with its exact moment for assistive technology.",
1435
+ },
1425
1436
  {
1426
1437
  name: "FigureRow",
1427
1438
  module: "figure-row",
@@ -1748,7 +1759,7 @@ export const USAGE = [
1748
1759
  summary: "The one place toasts appear, mounted once per product.",
1749
1760
  when: '"A succinct message that is displayed temporarily." (https://vercel.com/geist/toast) "Use a toast for non-blocking acknowledgments of user-initiated actions: `Domain added`, `Project archived`, `Deployment canceled`." (https://vercel.com/geist/toast) "Pick the method by how the user experienced the event, not by HTTP status. A user-canceled deploy is `toasts.message(\'Deployment canceled\')`, not `success`. A partial deploy with skipped routes is `toasts.warning(...)`." (https://vercel.com/geist/toast) Ours: mount it once and raise toasts through `showMessageToast` from `@nadicodeai/ui/components/toast`. `toasts.message` is the tone `info`, and `success`, `warning` and `error` keep their names.',
1750
1761
  instead: '"Don’t use a toast alone for billing failures, permission denials, or build failures the user has to triage. Pair a ≤6-word toast (`Build failed`) with a persistent row carrying the recovery step and a stable identifier." (https://vercel.com/geist/toast) "Field-level validation belongs on the `Input`, not in a toast. Persistent configuration warnings belong in `Note` or `Banner`." (https://vercel.com/geist/toast) Ours: the persistent row is a `MessageNotice`, a field\'s wrong value stays on the field (`FieldError`), and a lasting condition is a `NoticeBanner`.',
1751
- behaviour: "\"Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears.\" (https://vercel.com/geist/toast) \"Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button.\" (https://vercel.com/geist/toast) \"Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step.\" (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A product that shows another store's notifications, as Nadia shows Hermes's, raises each with `showHeldToast`: the store decides when it leaves (`dismissToast`), so a failure the person must act on stays, and its second action stands beside the first, both on a row under the toast's words when it has a body. A toast always has a tone: `info` is the nearest to a neutral one. Colour sits on the whole toast: `success` fills it with the accent blue (Geist's blue success, the same hue as an `info` note), `warning` and `error` with their solid colour, each with that colour's text; `info` stays the solid floating surface, never glass. A toast draws no tone mark, as Geist's: its words sit alone beside the close button, on one centre line, and the tone is read as a hidden word in the product's language (`toneLabels`), so it reads without colour. A toast is 420 px wide at most, 16 px padded, with a close button of 32 px at its trailing edge. A toast that stays up shows the waiting line, not a spinner. Required: `closeLabel`, `regionLabel` and `toneLabels`, because the close button, the region and each tone need a name in the product's language.",
1762
+ behaviour: "\"Default toasts auto-dismiss; pass `preserve` only when the user must read or act on the message before it disappears.\" (https://vercel.com/geist/toast) \"Undo snackbars stay on screen for 5–10 seconds and pair the past-tense toast with a single `Undo` action button.\" (https://vercel.com/geist/toast) \"Don’t stack toasts to narrate one async flow; emit the success or error toast at the terminal step.\" (https://vercel.com/geist/toast) Ours: `showMessageToast` takes no `preserve`, so every toast leaves after 6 s, which is also the Undo window; the first action with a handler becomes the toast's one button, and its label is the catalogue's, so a literal `Undo` is not enforced. A product that shows another store's notifications, as Nadia shows Hermes's, raises each with `showHeldToast`: the store decides when it leaves (`dismissToast`), so a failure the person must act on stays, and it offers the message's second action as well as its first. A toast's words are one passage: the title, closed with a full stop when a body follows, then the body, in the toast's body size and weight. A toast always has a tone (`info` is the nearest to a neutral one) and takes one of two looks by whether it has a button. A toast with no button is a status to read, filled with its tone: `success` with the accent blue (the same hue as an `info` note), `warning` and `error` with their solid colour, each with that colour's text, and `info` with the solid floating surface, never glass. A toast with a button is a message to act on: the solid floating surface whatever its tone, its words in the surface's text colour, and its buttons on a row under the words, at the trailing end: each a `Button` of the `sm` size (32 px), the second action first as `ghost` and the primary last as `default`, so no button sits on a colour. A toast draws no tone mark: the tone is read as a hidden word in the product's language (`toneLabels`), so it reads without colour, and the words start at the toast's 16 px padding. A toast is 420 px wide at most, 16 px padded, with a close button of 32 px at its trailing edge, centred on the first line of the words. A toast that stays up shows the waiting line, not a spinner. Required: `closeLabel`, `regionLabel` and `toneLabels`, because the close button, the region and each tone need a name in the product's language.",
1752
1763
  words: '"One sentence, sentence case, no trailing period when the toast is a single sentence." (https://vercel.com/geist/toast) "Completion toasts follow `{Noun} {past-participle}`: `Blob deleted`, `Domain added`, `Environment variable saved`. Never include `successfully`; the action name implies it." (https://vercel.com/geist/toast) "Error toasts are two sentences with periods and end with a recovery step: `Couldn’t verify domain. Try again.` Use `Couldn’t` for user-state errors and `Failed to` for system or infra errors; match adjacent shipped copy and don’t flip mid-flow." (https://vercel.com/geist/toast) "Pair the toast verb 1:1 with the destructive button verb (`Delete Project` then `Project deleted`, never `Project removed`)." (https://vercel.com/geist/toast) "Undo snackbars use the literal label `Undo`, never `Restore`, `Bring Back`, or `Cancel`. Only use the pattern when the rollback is safe." (https://vercel.com/geist/toast) Ours: the words come from the catalogue; *Mailbox removed* pairs with its button *Remove mailbox*.',
1753
1764
  access: '"The toast region announces with `aria-live="polite"`; reserve `assertive` for blocking errors that interrupt a flow." (https://vercel.com/geist/toast) "Don’t put primary navigation inside a toast; transient surfaces vanish before keyboard users can reach them." (https://vercel.com/geist/toast) Ours: the toaster\'s live region is named by `regionLabel` and the close button by `closeLabel`. Navigation is never the only route to recovery: the record\'s own row keeps its controls. Undo is reachable by keyboard (Alt+T moves focus to the toasts) while it shows.',
1754
1765
  },
@@ -212,32 +212,6 @@
212
212
  * surfaces.
213
213
  */
214
214
 
215
- .toaster [data-sonner-toast][data-styled="true"] [data-description] {
216
- color: var(--muted-foreground);
217
- }
218
-
219
- .toaster [data-sonner-toast][data-styled="true"] [data-button] {
220
- background: var(--popover-foreground);
221
- color: var(--popover);
222
- }
223
-
224
- .toaster [data-sonner-toast][data-styled="true"] [data-cancel] {
225
- background: var(--muted);
226
- color: var(--popover-foreground);
227
- }
228
-
229
- .toaster [data-sonner-toast][data-styled="true"] [data-close-button] {
230
- background: var(--popover);
231
- border-color: var(--border);
232
- color: var(--popover-foreground);
233
- }
234
-
235
- .toaster [data-sonner-toast][data-styled="true"] [data-close-button]:hover {
236
- background: var(--accent);
237
- border-color: var(--border);
238
- color: var(--accent-foreground);
239
- }
240
-
241
215
  /*
242
216
  * Inside a collapsed column: one the Sidebar draws collapsed, or one its server drew open while the
243
217
  * root carries the pre-paint mark of a column kept collapsed (`PRODUCT_SHELL_KEPT_COLLAPSED_ATTRIBUTE`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.242",
3
+ "version": "12.1.244",
4
4
  "type": "module",
5
5
  "imports": {
6
6
  "#jsx": "./src/jsx/index.ts",
@@ -82,7 +82,7 @@
82
82
  "@headless-tree/react": "1.8.0",
83
83
  "@iconify-icons/logos": "^2.0.3",
84
84
  "@iconify/react": "^6.0.2",
85
- "@nadicodeai/design-system": "12.1.242",
85
+ "@nadicodeai/design-system": "12.1.244",
86
86
  "@tanstack/react-table": "^9.3.1",
87
87
  "@vgpu/wgsl": "0.6.0",
88
88
  "class-variance-authority": "^0.7.1",