@nadicodeai/ui 12.1.244 → 12.1.245

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.
@@ -51,7 +51,7 @@ export declare function EventRowSkeleton(): import("react").JSX.Element;
51
51
  * @family Data
52
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
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.
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, on the line of the last word, 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
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
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
57
  */
@@ -1 +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,C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;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,aAAa,+BAIjF"}
@@ -33,7 +33,7 @@ export function EventRowSkeleton() {
33
33
  }
34
34
  function ConversationRow({ event, locale, timeZone, toggle, }) {
35
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] }));
36
+ "nc-transition-paint group-hover/event-row:text-foreground group-has-[>button:focus-visible]/event-row:text-foreground"), children: [event.summary, toggle ? (_jsx("span", { "aria-hidden": "true", className: "nc-after-word", children: _jsx(ChevronRightIcon, { 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
37
  }
38
38
  function OpeningRow({ event, locale, timeZone, opens, }) {
39
39
  const [open, setOpen] = useState(opens.defaultOpen === true);
@@ -46,7 +46,7 @@ function OpeningRow({ event, locale, timeZone, opens, }) {
46
46
  * @family Data
47
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
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.
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, on the line of the last word, 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
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
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
52
  */
@@ -20,7 +20,7 @@ const TONE_WORD_ONLY = "[&_[data-icon]]:sr-only!";
20
20
  */
21
21
  const Toaster = ({ closeLabel, regionLabel, toneLabels, ...props }) => {
22
22
  const { theme = "system" } = useTheme();
23
- return (_jsx(Sonner, { theme: isThemeMode(theme) ? theme : "system", className: "toaster group", closeButton: true, containerAriaLabel: regionLabel, duration: TOAST_DURATION_MS, richColors: true, icons: {
23
+ return (_jsx(Sonner, { theme: isThemeMode(theme) ? theme : "system", className: "toaster group font-sans!", closeButton: true, containerAriaLabel: regionLabel, duration: TOAST_DURATION_MS, richColors: true, icons: {
24
24
  success: _jsx("span", { children: toneLabels.success }),
25
25
  info: _jsx("span", { children: toneLabels.info }),
26
26
  warning: _jsx("span", { children: toneLabels.warning }),
@@ -1429,7 +1429,7 @@ export const USAGE = [
1429
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
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
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.",
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, on the line of the last word, 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
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
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
1435
  },
@@ -161,6 +161,17 @@
161
161
  }
162
162
  }
163
163
 
164
+ /* An inline mark that follows a sentence, such as EventRow's chevron, stays on the line of the sentence's last word,
165
+ with no character added to the text: the word joiner forbids a break before it, and nowrap forbids the break a
166
+ browser allows between that joiner and an icon. */
167
+ @utility nc-after-word {
168
+ white-space: nowrap;
169
+
170
+ &::before {
171
+ content: "\2060";
172
+ }
173
+ }
174
+
164
175
  /* A list that scrolls under its own fade or edge, such as Command's and Combobox's, draws no scrollbar. */
165
176
  @utility no-scrollbar {
166
177
  scrollbar-width: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "12.1.244",
3
+ "version": "12.1.245",
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.244",
85
+ "@nadicodeai/design-system": "12.1.245",
86
86
  "@tanstack/react-table": "^9.3.1",
87
87
  "@vgpu/wgsl": "0.6.0",
88
88
  "class-variance-authority": "^0.7.1",