@vokality/design-system 6.0.0 → 6.0.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to `@vokality/design-system`. The package follows [semantic versioning](https://semver.org); see CONTRIBUTING.md for what counts as breaking.
4
4
 
5
+ ## 6.0.2 — 2026-10-26
6
+
7
+ ### Fixed
8
+ - Chat messages render formatted React content with normal HTML whitespace, preventing Markdown renderer newline nodes from adding empty lines around paragraphs and list items. Plain message strings retain their line breaks, and preformatted code and read-only editors retain their own whitespace.
9
+
10
+ ## 6.0.1 — 2026-10-26
11
+
12
+ ### Fixed
13
+ - Compact Textarea respects native rows with a two-line minimum based on shared field text, padding and target tokens, including character counts. Default density retains its 8rem floor; touch retains readable 16px text and larger targets.
14
+ - Compact chat density now tightens header, thread and transcript spacing, reduces incoming-message framing and starts the composer at two short lines. Docked inbox titles leave more room for actions; the Back control uses an extra-small fine-pointer target and retains larger coarse-pointer targets. Default density and native editor behavior are unchanged.
15
+ - CommandPalette captures the current outside focus on every opening, including controlled application/native-menu actions, and restores that opening's context when it closes instead of retaining an earlier hotkey invoker.
16
+
5
17
  ## 6.0.0 — 2026-10-26
6
18
 
7
19
  - Clean native HTML and Radix component contracts: native callbacks, refs, array slider values and discriminated accordion state.
@@ -19,7 +19,7 @@ function MessageDelivery({ message, onRetry }) {
19
19
  return (_jsxs("div", { className: "vk-chat-delivery vk-chat-delivery-failed", children: [_jsx(Icon, { name: "circle-alert", size: 14 }), _jsx("span", { children: message.delivery.error || messages.chat.failed }), onRetry ? _jsx(Button, { type: "button", size: "sm", variant: "ghost", "aria-label": messages.chat.retryMessage(message.author.name), onClick: () => { onRetry(message.id); }, children: messages.chat.retry }) : null] }));
20
20
  }
21
21
  function MessageItem({ message, onRetry, reducedMotion }) {
22
- return (_jsxs(m.li, { className: cx("vk-chat-message", "vk-chat-message-" + message.direction), initial: { opacity: 0, y: reducedMotion ? 0 : 4 }, animate: { opacity: 1, y: 0 }, transition: { duration: reducedMotion ? 0 : 0.16, ease: "easeOut" }, children: [_jsx("span", { className: "vk-chat-message-avatar", children: message.author.avatar || _jsx(Avatar, { name: message.author.name, size: 28, decorative: true }) }), _jsxs("div", { className: "vk-chat-message-body", children: [_jsxs("div", { className: "vk-chat-message-meta", children: [_jsx("span", { className: "vk-chat-message-author", children: message.author.name }), message.author.source ? _jsxs("span", { className: "vk-chat-message-source", children: [message.author.source.mark, message.author.source.label] }) : null, message.timestamp ? _jsx("span", { className: "vk-chat-message-time", children: message.timestamp }) : null] }), _jsx("div", { className: "vk-prose vk-chat-message-content", children: message.content }), _jsx(MessageDelivery, { message: message, onRetry: onRetry })] }), message.actions?.length ? _jsx("div", { className: "vk-chat-message-actions", children: message.actions.map((action) => _jsx(Button, { type: "button", size: "xs", variant: action.variant || "outline", color: action.color, disabled: action.disabled, onClick: action.onSelect, children: action.label }, action.id)) }) : null] }));
22
+ return (_jsxs(m.li, { className: cx("vk-chat-message", "vk-chat-message-" + message.direction), initial: { opacity: 0, y: reducedMotion ? 0 : 4 }, animate: { opacity: 1, y: 0 }, transition: { duration: reducedMotion ? 0 : 0.16, ease: "easeOut" }, children: [_jsx("span", { className: "vk-chat-message-avatar", children: message.author.avatar || _jsx(Avatar, { name: message.author.name, size: 28, decorative: true }) }), _jsxs("div", { className: "vk-chat-message-body", children: [_jsxs("div", { className: "vk-chat-message-meta", children: [_jsx("span", { className: "vk-chat-message-author", children: message.author.name }), message.author.source ? _jsxs("span", { className: "vk-chat-message-source", children: [message.author.source.mark, message.author.source.label] }) : null, message.timestamp ? _jsx("span", { className: "vk-chat-message-time", children: message.timestamp }) : null] }), _jsx("div", { className: cx("vk-prose vk-chat-message-content", typeof message.content === "string" && "vk-chat-message-text"), children: message.content }), _jsx(MessageDelivery, { message: message, onRetry: onRetry })] }), message.actions?.length ? _jsx("div", { className: "vk-chat-message-actions", children: message.actions.map((action) => _jsx(Button, { type: "button", size: "xs", variant: action.variant || "outline", color: action.color, disabled: action.disabled, onClick: action.onSelect, children: action.label }, action.id)) }) : null] }));
23
23
  }
24
24
  /** A native scrollable log of messages and agent runs. Follow new items only while the reader is near its end. */
25
25
  export function ChatTranscript(props) {
@@ -22,7 +22,7 @@ export function CommandPalette({ commands, open: openProp, onOpenChange, hotkey,
22
22
  onOpenChange?.(v);
23
23
  };
24
24
  const uid = useUid("vk-cmd");
25
- // A keyboard command has no Dialog.Trigger: its invoker is application context.
25
+ // A palette opened by an application menu or hotkey has no Dialog.Trigger.
26
26
  const invokerRef = useRef(null);
27
27
  // The hotkey listener toggles from the latest state without re-subscribing on every change.
28
28
  const toggleRef = useRef(() => { setOpen(!open); });
@@ -33,8 +33,6 @@ export function CommandPalette({ commands, open: openProp, onOpenChange, hotkey,
33
33
  const onKey = (e) => {
34
34
  if ((e.metaKey || e.ctrlKey) && (e.key === "k" || e.key === "K")) {
35
35
  e.preventDefault();
36
- if (e.target instanceof HTMLElement && !e.target.closest(".vk-cmd"))
37
- invokerRef.current = e.target;
38
36
  toggleRef.current();
39
37
  }
40
38
  };
@@ -43,6 +41,8 @@ export function CommandPalette({ commands, open: openProp, onOpenChange, hotkey,
43
41
  }, [hotkey]);
44
42
  return (_jsxs(Dialog, { open: open, onOpenChange: setOpen, title: title || messages.commandPalette, className: "vk-cmd", size: "md", contentProps: {
45
43
  onOpenAutoFocus(event) {
44
+ const active = document.activeElement;
45
+ invokerRef.current = active instanceof HTMLElement && active !== document.body && active !== document.documentElement && !active.closest(".vk-cmd") ? active : null;
46
46
  event.preventDefault();
47
47
  document.getElementById(uid + "-search")?.focus();
48
48
  },
@@ -51,6 +51,7 @@ export function CommandPalette({ commands, open: openProp, onOpenChange, hotkey,
51
51
  event.preventDefault();
52
52
  invokerRef.current.focus();
53
53
  }
54
+ invokerRef.current = null;
54
55
  }
55
56
  }, children: [_jsx(PaletteSearch, { uid: uid, commands: commands, placeholder: placeholder, emptyText: emptyText, close: () => { setOpen(false); } }), _jsxs("div", { className: "vk-cmd-footer", "aria-hidden": "true", children: [_jsx(Kbd, { children: "↑" }), _jsx(Kbd, { children: "↓" }), messages.commandMove, _jsx(Kbd, { children: "Enter" }), messages.commandRun, _jsx(Kbd, { children: "Esc" }), messages.commandClose] })] }));
56
57
  }
@@ -2079,7 +2079,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2079
2079
  .vk-chat-message-source { display: inline-flex; align-items: center; gap: var(--space-xs); padding-inline: var(--space-xs); border: 1px solid var(--border-subtle); font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
2080
2080
  .vk-chat-message-source > svg, .vk-chat-message-source > img { flex: none; width: 0.75rem; height: 0.75rem; }
2081
2081
  .vk-chat-message-time { font: var(--text-xs)/1.5 var(--font-numeric); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
2082
- .vk-chat-message-content { min-width: 0; max-width: none; font-size: var(--text-sm); color: var(--foreground); white-space: pre-wrap; overflow-wrap: anywhere; }
2082
+ .vk-chat-message-content { min-width: 0; max-width: none; font-size: var(--text-sm); color: var(--foreground); white-space: normal; overflow-wrap: anywhere; }
2083
+ .vk-chat-message-text { white-space: pre-wrap; }
2083
2084
  .vk-chat-message-content > :last-child { margin-bottom: 0; }
2084
2085
  .vk-chat-message-content pre { max-width: 100%; box-sizing: border-box; white-space: pre; }
2085
2086
  .vk-chat-message-content img { max-width: 100%; height: auto; }
@@ -2141,6 +2142,20 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2141
2142
  .vk-chat-composer .vk-rich-content { min-height: 4rem; max-height: 8rem; overflow-y: auto; padding: var(--space-sm); }
2142
2143
  .vk-chat-composer-actions { display: flex; justify-content: flex-end; }
2143
2144
  .vk-chat-composer-actions .vk-btn { width: auto; }
2145
+ /* Dense workspaces spend their width on the conversation rather than repeated message frames. */
2146
+ [data-density="compact"] .vk-chat-header,
2147
+ [data-density="compact"] .vk-chat-transcript,
2148
+ [data-density="compact"] .vk-chat-composer,
2149
+ [data-density="compact"] .vk-chat-read-only { padding: var(--space-sm); }
2150
+ [data-density="compact"] .vk-chat-title { flex: 1; font-size: var(--text-sm); }
2151
+ [data-density="compact"] .vk-chat-messages { gap: var(--space-md); }
2152
+ [data-density="compact"] .vk-chat-message { max-width: 100%; }
2153
+ [data-density="compact"] .vk-chat-message-body { padding: var(--space-xs) var(--space-sm); border-color: transparent; }
2154
+ [data-density="compact"] .vk-chat-message-incoming .vk-chat-message-body { padding-inline: 0; background: transparent; }
2155
+ [data-density="compact"] .vk-chat-activity-line,
2156
+ [data-density="compact"] .vk-chat-activity-body { padding-inline: var(--space-sm); }
2157
+ /* Start with two short lines; the editor still grows, then scrolls within the bounded composer. */
2158
+ [data-density="compact"] .vk-chat-composer .vk-rich-content { min-height: calc(var(--control-height) + var(--space-sm)); }
2144
2159
  @media (max-width: 40rem) {
2145
2160
  .vk-chat-header, .vk-chat-transcript, .vk-chat-composer, .vk-chat-read-only { padding: var(--space-sm); }
2146
2161
  .vk-chat-activity-line, .vk-chat-activity-body { padding-inline: var(--space-sm); }
@@ -2195,6 +2210,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2195
2210
  .vk-chat-back { display: none; }
2196
2211
  .vk-chat-header-actions { display: flex; flex: none; align-items: center; gap: var(--space-xs); margin-inline-start: auto; }
2197
2212
  .vk-chat-header-actions .vk-btn { width: auto; }
2213
+ [data-density="compact"] .vk-chat-thread { padding: var(--space-sm); }
2214
+ @media (pointer: fine) and (not (any-pointer: coarse)) {
2215
+ [data-density="compact"] .vk-chat-back { --button-height: var(--control-height-xs); }
2216
+ }
2198
2217
  @container (max-width: 40rem) {
2199
2218
  .vk-chat-inbox-list { border-inline-end: 0; }
2200
2219
  .vk-chat-inbox:not(.vk-chat-inbox-selected) .vk-chat-inbox-detail, .vk-chat-inbox-selected .vk-chat-inbox-list { display: none; }
@@ -2207,6 +2226,11 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2207
2226
  On fine pointers the control height is 32px; with any coarse pointer it stays 44px, and buttons follow it either way. */
2208
2227
  [data-density="compact"] { --button-height: var(--control-height); --button-height-sm: var(--control-height); }
2209
2228
  html[data-density="compact"] body { font-size: var(--text-sm); }
2229
+ /* Native rows sets multiline height; compact fields keep two readable lines rather than an 8rem floor. */
2230
+ [data-density="compact"] .vk-textarea {
2231
+ padding-block: var(--control-padding-block, var(--space-xs));
2232
+ min-height: max(var(--control-height), calc(2lh + 2 * var(--control-padding-block, var(--space-xs)) + 2px));
2233
+ }
2210
2234
  [data-density="compact"] .vk-page-header { container-type: inline-size; box-sizing: border-box; width: 100%; gap: var(--space-sm); padding-block: 0; }
2211
2235
  [data-density="compact"] .vk-page-header-divider { padding-bottom: var(--space-md); margin-bottom: 0; }
2212
2236
  [data-density="compact"] .vk-page-header-row { display: grid; grid-template-columns: minmax(min-content, 1fr) minmax(0, auto); align-items: center; gap: var(--space-xs) var(--space-md); }
@@ -2288,7 +2312,7 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
2288
2312
  [data-vk-size="xs"] {
2289
2313
  --control-height: var(--control-height-xs);
2290
2314
  --control-font-size: var(--text-xs);
2291
- --control-padding-block: 0;
2315
+ --control-padding-block: 0px;
2292
2316
  --control-padding-inline: var(--space-sm);
2293
2317
  --control-icon-size: 14px;
2294
2318
  }
package/dist/vokality.css CHANGED
@@ -2425,7 +2425,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2425
2425
  .vk-chat-message-source { display: inline-flex; align-items: center; gap: var(--space-xs); padding-inline: var(--space-xs); border: 1px solid var(--border-subtle); font-size: var(--text-xs); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
2426
2426
  .vk-chat-message-source > svg, .vk-chat-message-source > img { flex: none; width: 0.75rem; height: 0.75rem; }
2427
2427
  .vk-chat-message-time { font: var(--text-xs)/1.5 var(--font-numeric); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
2428
- .vk-chat-message-content { min-width: 0; max-width: none; font-size: var(--text-sm); color: var(--foreground); white-space: pre-wrap; overflow-wrap: anywhere; }
2428
+ .vk-chat-message-content { min-width: 0; max-width: none; font-size: var(--text-sm); color: var(--foreground); white-space: normal; overflow-wrap: anywhere; }
2429
+ .vk-chat-message-text { white-space: pre-wrap; }
2429
2430
  .vk-chat-message-content > :last-child { margin-bottom: 0; }
2430
2431
  .vk-chat-message-content pre { max-width: 100%; box-sizing: border-box; white-space: pre; }
2431
2432
  .vk-chat-message-content img { max-width: 100%; height: auto; }
@@ -2487,6 +2488,20 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2487
2488
  .vk-chat-composer .vk-rich-content { min-height: 4rem; max-height: 8rem; overflow-y: auto; padding: var(--space-sm); }
2488
2489
  .vk-chat-composer-actions { display: flex; justify-content: flex-end; }
2489
2490
  .vk-chat-composer-actions .vk-btn { width: auto; }
2491
+ /* Dense workspaces spend their width on the conversation rather than repeated message frames. */
2492
+ [data-density="compact"] .vk-chat-header,
2493
+ [data-density="compact"] .vk-chat-transcript,
2494
+ [data-density="compact"] .vk-chat-composer,
2495
+ [data-density="compact"] .vk-chat-read-only { padding: var(--space-sm); }
2496
+ [data-density="compact"] .vk-chat-title { flex: 1; font-size: var(--text-sm); }
2497
+ [data-density="compact"] .vk-chat-messages { gap: var(--space-md); }
2498
+ [data-density="compact"] .vk-chat-message { max-width: 100%; }
2499
+ [data-density="compact"] .vk-chat-message-body { padding: var(--space-xs) var(--space-sm); border-color: transparent; }
2500
+ [data-density="compact"] .vk-chat-message-incoming .vk-chat-message-body { padding-inline: 0; background: transparent; }
2501
+ [data-density="compact"] .vk-chat-activity-line,
2502
+ [data-density="compact"] .vk-chat-activity-body { padding-inline: var(--space-sm); }
2503
+ /* Start with two short lines; the editor still grows, then scrolls within the bounded composer. */
2504
+ [data-density="compact"] .vk-chat-composer .vk-rich-content { min-height: calc(var(--control-height) + var(--space-sm)); }
2490
2505
  @media (max-width: 40rem) {
2491
2506
  .vk-chat-header, .vk-chat-transcript, .vk-chat-composer, .vk-chat-read-only { padding: var(--space-sm); }
2492
2507
  .vk-chat-activity-line, .vk-chat-activity-body { padding-inline: var(--space-sm); }
@@ -2541,6 +2556,10 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2541
2556
  .vk-chat-back { display: none; }
2542
2557
  .vk-chat-header-actions { display: flex; flex: none; align-items: center; gap: var(--space-xs); margin-inline-start: auto; }
2543
2558
  .vk-chat-header-actions .vk-btn { width: auto; }
2559
+ [data-density="compact"] .vk-chat-thread { padding: var(--space-sm); }
2560
+ @media (pointer: fine) and (not (any-pointer: coarse)) {
2561
+ [data-density="compact"] .vk-chat-back { --button-height: var(--control-height-xs); }
2562
+ }
2544
2563
  @container (max-width: 40rem) {
2545
2564
  .vk-chat-inbox-list { border-inline-end: 0; }
2546
2565
  .vk-chat-inbox:not(.vk-chat-inbox-selected) .vk-chat-inbox-detail, .vk-chat-inbox-selected .vk-chat-inbox-list { display: none; }
@@ -2553,6 +2572,11 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2553
2572
  On fine pointers the control height is 32px; with any coarse pointer it stays 44px, and buttons follow it either way. */
2554
2573
  [data-density="compact"] { --button-height: var(--control-height); --button-height-sm: var(--control-height); }
2555
2574
  html[data-density="compact"] body { font-size: var(--text-sm); }
2575
+ /* Native rows sets multiline height; compact fields keep two readable lines rather than an 8rem floor. */
2576
+ [data-density="compact"] .vk-textarea {
2577
+ padding-block: var(--control-padding-block, var(--space-xs));
2578
+ min-height: max(var(--control-height), calc(2lh + 2 * var(--control-padding-block, var(--space-xs)) + 2px));
2579
+ }
2556
2580
  [data-density="compact"] .vk-page-header { container-type: inline-size; box-sizing: border-box; width: 100%; gap: var(--space-sm); padding-block: 0; }
2557
2581
  [data-density="compact"] .vk-page-header-divider { padding-bottom: var(--space-md); margin-bottom: 0; }
2558
2582
  [data-density="compact"] .vk-page-header-row { display: grid; grid-template-columns: minmax(min-content, 1fr) minmax(0, auto); align-items: center; gap: var(--space-xs) var(--space-md); }
@@ -2634,7 +2658,7 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
2634
2658
  [data-vk-size="xs"] {
2635
2659
  --control-height: var(--control-height-xs);
2636
2660
  --control-font-size: var(--text-xs);
2637
- --control-padding-block: 0;
2661
+ --control-padding-block: 0px;
2638
2662
  --control-padding-inline: var(--space-sm);
2639
2663
  --control-icon-size: 14px;
2640
2664
  }
@@ -19798,8 +19798,6 @@ Defaulting to \`null\`.`;
19798
19798
  const onKey = (e) => {
19799
19799
  if ((e.metaKey || e.ctrlKey) && (e.key === "k" || e.key === "K")) {
19800
19800
  e.preventDefault();
19801
- if (e.target instanceof HTMLElement && !e.target.closest(".vk-cmd"))
19802
- invokerRef.current = e.target;
19803
19801
  toggleRef.current();
19804
19802
  }
19805
19803
  };
@@ -19816,6 +19814,8 @@ Defaulting to \`null\`.`;
19816
19814
  size: "md",
19817
19815
  contentProps: {
19818
19816
  onOpenAutoFocus(event) {
19817
+ const active = document.activeElement;
19818
+ invokerRef.current = active instanceof HTMLElement && active !== document.body && active !== document.documentElement && !active.closest(".vk-cmd") ? active : null;
19819
19819
  event.preventDefault();
19820
19820
  document.getElementById(uid + "-search")?.focus();
19821
19821
  },
@@ -19824,6 +19824,7 @@ Defaulting to \`null\`.`;
19824
19824
  event.preventDefault();
19825
19825
  invokerRef.current.focus();
19826
19826
  }
19827
+ invokerRef.current = null;
19827
19828
  }
19828
19829
  },
19829
19830
  children: [
@@ -45842,7 +45843,7 @@ Defaulting to \`null\`.`;
45842
45843
  ]
45843
45844
  }, undefined, true, undefined, this),
45844
45845
  /* @__PURE__ */ jsx_dev_runtime90.jsxDEV("div", {
45845
- className: "vk-prose vk-chat-message-content",
45846
+ className: cx("vk-prose vk-chat-message-content", typeof message.content === "string" && "vk-chat-message-text"),
45846
45847
  children: message.content
45847
45848
  }, undefined, false, undefined, this),
45848
45849
  /* @__PURE__ */ jsx_dev_runtime90.jsxDEV(MessageDelivery, {
@@ -30,6 +30,8 @@ function Inbox({ threads, items }: { threads: ChatThread[]; items: ChatItem[] })
30
30
 
31
31
  `headerActions` puts controls at the trailing end of the header that is showing: the conversation header (after Back and the title) while a thread is open, otherwise the thread-list header. Use `size="xs"` `IconButton`s and `Button`s, such as a docked pane's close action and an "Open task" link, so the header stays one row at 380px. The application decides what to show for the open thread.
32
32
 
33
+ With `ThemeProvider density="compact"`, headers and thread rows use smaller insets, the two-line title yields space to header actions, and Back uses the extra-small fine-pointer target while coarse pointers keep their larger target. The transcript has tighter message spacing and quiet incoming messages; outgoing messages retain their tinted surface. The composer begins with a shorter writing area and grows before scrolling. Use this shared density contract for docked application panes rather than overriding chat styles in the application.
34
+
33
35
  Selecting a thread focuses its heading after the application accepts the selection. Back returns focus to its thread button. The layout responds to container width, including inside a narrow desktop column. No viewport listener, custom list keyboard behavior or routing is added.
34
36
 
35
37
  ## Conversation and composer
@@ -30,7 +30,7 @@ const items: ChatItem[] = [{
30
30
  - `author.source: { label, mark? }` names the channel the message came through ("Linear", "Pull request") in a small ruled tag beside the author. `mark` is a decorative 12px image; the label carries the meaning.
31
31
  - `actions: ChatAction[]` draws extra-small buttons under the message: `{ id, label, onSelect, disabled?, variant? }`, where `variant` is `outline` (default), `primary`, `ghost` or `danger`. Keep to one primary action per message.
32
32
 
33
- The application owns the transcript items, transport, authentication, async sending, retries and persistence. Content is a React node; strings are displayed as text. The component does not parse incoming Markdown or inject HTML. Render formatted content in your application, including through an existing read-only `RichTextEditor` if useful.
33
+ The application owns the transcript items, transport, authentication, async sending, retries and persistence. Content is a React node; plain strings are displayed as text with their line breaks preserved. Formatted React content uses normal HTML whitespace, so newline text nodes between paragraphs or list items do not add empty lines. Use semantic `<br>` and `<pre>` elements for intentional breaks and preformatted text. The component does not parse incoming Markdown or inject HTML. Render formatted content in your application, including through an existing read-only `RichTextEditor` if useful.
34
34
 
35
35
  ## Agent activity
36
36
 
@@ -75,6 +75,8 @@ The Send action is disabled for empty drafts, while `disabled` or `sending` is t
75
75
 
76
76
  The composer shows the writing field first. Its lower action row contains Aa, emoji, and an attachment action when uploads are configured. Aa reveals bold, italic, link and bullet-list tools; the full standalone editor toolbar is kept out of the initial chat view.
77
77
 
78
+ Compact density starts the writing area at two short lines while retaining growth, bounded scrolling and every formatting/upload action. Its transcript uses tighter message spacing and quieter incoming-message surfaces; outgoing messages retain their tint. Default density keeps its existing presentation.
79
+
78
80
  ## States and layout
79
81
 
80
82
  - `open`, `defaultOpen`, `onOpenChange` and `modal` pass directly to Radix. The default is non-modal. `align` chooses the start or end corner; end is the default.
@@ -8,6 +8,8 @@ A `Dialog` (Radix Dialog) near the top of the screen (12vh down) with a borderle
8
8
  ## Keyboard
9
9
  ⌘K / Ctrl+K toggles it from anywhere. Typing filters by label, keywords and group; ↓ ↑ move; Enter runs the command and closes; Esc or a backdrop click closes it and returns focus.
10
10
 
11
+ Controlled `open` changes work for application or native-menu actions too. Every opening captures the currently focused element outside the palette before focusing search, so closing returns to that opening's context rather than a previous hotkey invoker. Applications do not need a second focus-restoration wrapper.
12
+
11
13
  ## Accessibility
12
14
  A modal dialog containing a combobox (the search) that controls a listbox of options; the active command is announced through `aria-activedescendant`.
13
15
 
@@ -3,7 +3,7 @@
3
3
  A multi-line text control for notes, descriptions and messages.
4
4
 
5
5
  ## Anatomy
6
- Same box as `Input` (`card` fill, `input-border` edge, square, 0.6rem 0.75rem padding), 5 rows by default, at least 8rem tall, line height 1.6, resizable vertically only.
6
+ Same box as `Input` (`card` fill, `input-border` edge, square, 0.6rem 0.75rem padding), 5 rows by default, line height 1.6, resizable vertically only. Default density keeps an 8rem minimum. Compact density follows native `rows` with a minimum of two readable lines plus shared field padding and borders, never smaller than the control target.
7
7
 
8
8
  ## States
9
9
  Identical to `Input`: focus adds a `primary` border and the 2px `ring` outline; invalid gets a `primary` border; disabled is transparent with a dashed edge and `muted-subtle` text.
@@ -21,4 +21,4 @@ Identical to `Input`: focus adds a `primary` border and the 2px `ring` outline;
21
21
 
22
22
  ## Sizes
23
23
 
24
- `size="xs" | "sm" | "md"` controls text size and padding, using the same scale as other fields. `rows` and the 8rem minimum still determine the multiline height. On fine pointers, the text sizes are 12px, 14px and 16px. A coarse pointer keeps 16px field text. Omit `size` to follow the app's density.
24
+ `size="xs" | "sm" | "md"` controls text size and padding, using the same scale as other fields. `rows` controls the initial multiline height within the density's minimum, including with `showCount`. In compact density, `rows={2}` starts smaller than `rows={5}` without an application height override. On fine pointers, the text sizes are 12px, 14px and 16px. A coarse pointer keeps 16px field text and a target of at least 44px. Native vertical resizing and scrolling remain available. Omit `size` to follow the app's density.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vokality/design-system",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "Vokality's design system: tokens, themes and React components for every Vokality project.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,