@vokality/design-system 5.1.0 → 5.1.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,20 @@
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
+ ## 5.1.2 — 2026-10-20
6
+
7
+ ### Fixed
8
+ - A `Field`'s `optional` text is readable in dialogs, drawers and popovers in the dark theme. It used `muted-subtle`, 4.23:1 on a dark dialog; on those surfaces it now uses `muted-foreground`, as the hint does.
9
+ - Stories: the `Dialog` form has an optional field, so every theme's axe run covers it.
10
+
11
+ ## 5.1.1 — 2026-10-20
12
+
13
+ ### Fixed
14
+ - Disabled buttons look disabled. Every `Button` variant drops its fill instead of fading it: `primary`, `outline` and `danger` get a dashed `muted-subtle` edge, every variant gets `muted-subtle` text and no hover. Disabled `IconButton`s get a `muted-subtle` glyph, with a dashed edge on `outline`. A `loading` button keeps its fill and spinner. Forced colors use `GrayText`.
15
+ - Chat header titles (`ChatInbox`'s conversation header and `ChatWidget`) stop at two lines with an ellipsis, so a long thread title keeps the header compact in a docked pane. The heading keeps the full title as its name and `title` tooltip.
16
+ - `ListItem` trailing actions move below the title and description when the row is narrower than 30rem, or when the text would get less than 14rem beside them. Wider rows are unchanged.
17
+ - Stories: `Button` `DisabledVariants`, `IconButton` `DisabledVariants`, `ChatInbox` `LongTitle` and `List` `NarrowContainer`.
18
+
5
19
  ## 5.1.0 — 2026-10-19
6
20
 
7
21
  Compact toolbar and status-line controls.
@@ -46,5 +46,5 @@ export function ChatInbox({ title, threads, selectedThreadId, onSelectThread, em
46
46
  };
47
47
  const empty = emptySelection === undefined ? messages.chat.chooseThread : emptySelection;
48
48
  const actions = headerActions ? _jsx("div", { className: "vk-chat-header-actions", children: headerActions }) : null;
49
- return (_jsxs("div", { className: cx("vk-chat-inbox", selected && "vk-chat-inbox-selected", className), children: [_jsxs("section", { className: "vk-chat-inbox-list", "aria-labelledby": listTitleId, children: [_jsxs("header", { className: "vk-chat-header", children: [_jsx("h2", { id: listTitleId, className: "vk-chat-title", children: title || messages.chat.conversations }), selected ? null : actions] }), _jsx(ThreadList, { threads: threads, selectedId: selectedThreadId, activeRef: activeRef, onSelect: select })] }), _jsx("section", { className: "vk-chat-inbox-detail", "aria-label": selected?.title || messages.chat.messages, children: selected ? _jsxs(_Fragment, { children: [_jsxs("header", { className: "vk-chat-header", children: [_jsx(IconButton, { icon: "chevron-left", label: messages.chat.back, className: "vk-chat-back", onClick: back }), _jsx("h2", { ref: headingRef, tabIndex: -1, className: "vk-chat-title", children: selected.title }), actions] }), _jsx(ChatPanel, { ...panel }, selected.id)] }) : _jsx("div", { className: "vk-chat-empty vk-chat-no-selection", children: empty }) })] }));
49
+ return (_jsxs("div", { className: cx("vk-chat-inbox", selected && "vk-chat-inbox-selected", className), children: [_jsxs("section", { className: "vk-chat-inbox-list", "aria-labelledby": listTitleId, children: [_jsxs("header", { className: "vk-chat-header", children: [_jsx("h2", { id: listTitleId, className: "vk-chat-title", children: title || messages.chat.conversations }), selected ? null : actions] }), _jsx(ThreadList, { threads: threads, selectedId: selectedThreadId, activeRef: activeRef, onSelect: select })] }), _jsx("section", { className: "vk-chat-inbox-detail", "aria-label": selected?.title || messages.chat.messages, children: selected ? _jsxs(_Fragment, { children: [_jsxs("header", { className: "vk-chat-header", children: [_jsx(IconButton, { icon: "chevron-left", label: messages.chat.back, className: "vk-chat-back", onClick: back }), _jsx("h2", { ref: headingRef, tabIndex: -1, className: "vk-chat-title", title: selected.title, children: selected.title }), actions] }), _jsx(ChatPanel, { ...panel }, selected.id)] }) : _jsx("div", { className: "vk-chat-empty vk-chat-no-selection", children: empty }) })] }));
50
50
  }
@@ -28,7 +28,7 @@ function WidgetContent({ title, description, align, titleId, panel }) {
28
28
  const { messages } = useLocale();
29
29
  const reducedMotion = useReducedMotion() === true;
30
30
  const descriptionId = titleId + "-description";
31
- return _jsx(Primitive.Portal, { forceMount: true, children: _jsx(Primitive.Content, { forceMount: true, asChild: true, side: "top", align: align, sideOffset: 12, collisionPadding: 12, "aria-labelledby": titleId, "aria-describedby": description ? descriptionId : undefined, className: "vk-chat-widget-panel", children: _jsxs(m.div, { initial: { opacity: 0, y: reducedMotion ? 0 : 8, scale: reducedMotion ? 1 : 0.99 }, animate: { opacity: 1, y: 0, scale: 1, transition: { duration: reducedMotion ? 0 : 0.2, ease: [0.2, 0.8, 0.2, 1] } }, exit: { opacity: 0, y: reducedMotion ? 0 : 8, scale: reducedMotion ? 1 : 0.99, transition: { duration: reducedMotion ? 0 : 0.12 } }, children: [_jsxs("header", { className: "vk-chat-header", children: [_jsxs("div", { className: "vk-chat-heading", children: [_jsx("h2", { id: titleId, className: "vk-chat-title", children: title }), description ? _jsx("div", { id: descriptionId, className: "vk-chat-description", children: description }) : null] }), _jsx(Primitive.Close, { asChild: true, children: _jsx(IconButton, { icon: "x", label: messages.chat.close }) })] }), _jsx(ChatPanel, { ...panel })] }) }) });
31
+ return _jsx(Primitive.Portal, { forceMount: true, children: _jsx(Primitive.Content, { forceMount: true, asChild: true, side: "top", align: align, sideOffset: 12, collisionPadding: 12, "aria-labelledby": titleId, "aria-describedby": description ? descriptionId : undefined, className: "vk-chat-widget-panel", children: _jsxs(m.div, { initial: { opacity: 0, y: reducedMotion ? 0 : 8, scale: reducedMotion ? 1 : 0.99 }, animate: { opacity: 1, y: 0, scale: 1, transition: { duration: reducedMotion ? 0 : 0.2, ease: [0.2, 0.8, 0.2, 1] } }, exit: { opacity: 0, y: reducedMotion ? 0 : 8, scale: reducedMotion ? 1 : 0.99, transition: { duration: reducedMotion ? 0 : 0.12 } }, children: [_jsxs("header", { className: "vk-chat-header", children: [_jsxs("div", { className: "vk-chat-heading", children: [_jsx("h2", { id: titleId, className: "vk-chat-title", title: title, children: title }), description ? _jsx("div", { id: descriptionId, className: "vk-chat-description", children: description }) : null] }), _jsx(Primitive.Close, { asChild: true, children: _jsx(IconButton, { icon: "x", label: messages.chat.close }) })] }), _jsx(ChatPanel, { ...panel })] }) }) });
32
32
  }
33
33
  /** A floating chat launcher with native Radix Popover focus, state and dismissal. */
34
34
  export function ChatWidget({ title, description, align = "end", triggerLabel, unreadCount, open, defaultOpen, onOpenChange, modal, className, ...panel }) {
@@ -64,7 +64,6 @@ body {
64
64
  border: 1px solid var(--primary);
65
65
  }
66
66
  .vk-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
67
- .vk-btn-primary:disabled { cursor: progress; opacity: 0.7; }
68
67
  .vk-btn-outline {
69
68
  font-weight: 600;
70
69
  color: var(--foreground);
@@ -79,7 +78,6 @@ body {
79
78
  border: 1px solid transparent;
80
79
  }
81
80
  .vk-btn-ghost:hover { background: var(--primary-tint); }
82
- .vk-btn-outline:disabled, .vk-btn-ghost:disabled { cursor: not-allowed; opacity: 0.5; }
83
81
  .vk-btn-sm { min-height: var(--button-height-sm, 32px); font-size: 0.6875rem; }
84
82
  .vk-btn-sm .vk-btn-label { padding: 0.4rem 0.75rem 0.4rem 0.85rem; }
85
83
  .vk-btn-sm .vk-btn-label:only-child { padding-right: 0.85rem; }
@@ -118,7 +116,22 @@ body {
118
116
  /* A text Menu or Popover trigger keeps its chevron beside the label instead of in a square cell. */
119
117
  .vk-btn-text .vk-btn-glyph { width: auto; padding-left: var(--space-xs); }
120
118
  .vk-btn-text:hover { color: var(--primary); text-decoration: underline; text-underline-offset: var(--space-xs); }
121
- .vk-btn-text:disabled { cursor: not-allowed; opacity: 0.5; }
119
+
120
+ /* Disabled: no brand fill and no hover. Filled and outlined variants become a dashed muted-subtle edge on
121
+ no fill, like a disabled field; every variant's text and glyph are muted-subtle. A loading button is
122
+ disabled too, but keeps its fill and spinner, since it is busy rather than unavailable. */
123
+ .vk-btn:disabled:not(.vk-btn-loading) {
124
+ cursor: not-allowed;
125
+ color: var(--muted-subtle);
126
+ background: transparent;
127
+ text-decoration: none;
128
+ }
129
+ .vk-btn:is(.vk-btn-primary, .vk-btn-outline, .vk-btn-danger):disabled:not(.vk-btn-loading) { border: 1px dashed var(--muted-subtle); }
130
+ .vk-btn:disabled:not(.vk-btn-loading) .vk-btn-glyph { color: inherit; }
131
+ .vk-btn-loading:disabled { cursor: progress; opacity: 0.7; }
132
+ @media (forced-colors: active) {
133
+ .vk-btn:disabled:not(.vk-btn-loading) { color: GrayText; border-color: GrayText; }
134
+ }
122
135
 
123
136
  /* Square glyph */
124
137
  @keyframes vk-glyph-blink {
@@ -507,7 +520,13 @@ body {
507
520
  .vk-icon-btn-outline { border-color: var(--muted-subtle); }
508
521
  .vk-icon-btn-outline:hover { border-color: var(--primary-hover); }
509
522
  .vk-icon-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
510
- .vk-icon-btn:disabled { cursor: not-allowed; opacity: 0.5; }
523
+ /* Disabled: muted-subtle glyph, no hover fill; an outline button's edge turns dashed. */
524
+ .vk-icon-btn:disabled { cursor: not-allowed; color: var(--muted-subtle); background: transparent; }
525
+ .vk-icon-btn-outline:disabled { border-style: dashed; border-color: var(--muted-subtle); }
526
+ @media (forced-colors: active) {
527
+ .vk-icon-btn:disabled { color: GrayText; }
528
+ .vk-icon-btn-outline:disabled { border-color: GrayText; }
529
+ }
511
530
 
512
531
  /* Dismiss and remove buttons inside alerts, toasts and upload rows keep a 16px glyph. */
513
532
  .vk-alert-close .vk-icon, .vk-upload-item .vk-icon-btn .vk-icon { width: 16px; height: 16px; }
@@ -533,7 +552,7 @@ body {
533
552
  .vk-field-optional { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted-subtle); }
534
553
  .vk-field-hint { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-subtle); }
535
554
  /* muted-subtle reaches AA only on background and card; raised surfaces use the stronger muted ink. */
536
- :is(.vk-dialog, .vk-drawer, .vk-popover) .vk-field-hint { color: var(--muted-foreground); }
555
+ :is(.vk-dialog, .vk-drawer, .vk-popover) :is(.vk-field-hint, .vk-field-optional) { color: var(--muted-foreground); }
537
556
  .vk-input:disabled { cursor: not-allowed; color: var(--muted-subtle); background: transparent; border-style: dashed; }
538
557
  /* Only real fields: :read-only also matches every non-editable element, such as the select trigger. */
539
558
  input.vk-input:read-only, textarea.vk-input:read-only { background: transparent; }
@@ -1733,8 +1752,11 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
1733
1752
  .vk-list-bordered { border: 1px solid var(--border-subtle); }
1734
1753
  .vk-list-bordered .vk-list-main { padding-inline: 1rem; }
1735
1754
  .vk-list-bordered .vk-list-trailing { padding-right: 1rem; }
1736
- .vk-list-item { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
1737
- .vk-list-main { flex: 1; display: flex; align-items: center; gap: 0.85rem; min-width: 0; padding: 0.75rem 0.25rem; font: inherit; text-align: left; color: inherit; text-decoration: none; background: none; border: 0; }
1755
+ /* Trailing actions move below the body when the row is narrower than 30rem, or when the body would get less
1756
+ than 14rem beside them. --vk-list-narrow is huge below 30rem and negative above, so the clamps below switch
1757
+ on the row's own width (no container query, so a list still sizes to its content). */
1758
+ .vk-list-item { --vk-list-narrow: calc((30rem - 100%) * 999); display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.5rem; row-gap: 0; min-width: 0; }
1759
+ .vk-list-main { flex: 1 1 max(14rem, var(--vk-list-narrow)); display: flex; align-items: center; gap: 0.85rem; min-width: 0; padding: 0.75rem 0.25rem; font: inherit; text-align: left; color: inherit; text-decoration: none; background: none; border: 0; }
1738
1760
  .vk-list-interactive { cursor: pointer; }
1739
1761
  .vk-list-interactive:hover { background: var(--card-fill); }
1740
1762
  .vk-list-interactive:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
@@ -1746,7 +1768,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
1746
1768
  .vk-list-meta { flex-shrink: 0; font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--muted-subtle); }
1747
1769
  /* muted-subtle falls under 4.5:1 on the primary-tint wash. */
1748
1770
  .vk-list-item-selected .vk-list-meta { color: var(--muted-foreground); }
1749
- .vk-list-trailing { display: inline-flex; align-items: center; gap: 0.25rem; flex-shrink: 0; padding-right: 0.25rem; }
1771
+ .vk-list-trailing { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; flex-shrink: 0; max-width: 100%; box-sizing: border-box; padding-right: 0.25rem; padding-left: clamp(0px, var(--vk-list-narrow), 0.25rem); padding-bottom: clamp(0px, var(--vk-list-narrow), 0.75rem); }
1772
+ .vk-list-bordered .vk-list-trailing { padding-left: clamp(0px, var(--vk-list-narrow), 1rem); }
1750
1773
  @media (max-width: 40rem) {
1751
1774
  .vk-list-main { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; }
1752
1775
  .vk-list-main:has(.vk-list-leading) { grid-template-columns: auto minmax(0, 1fr); }
@@ -1929,7 +1952,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
1929
1952
  .vk-chat-panel { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; color: var(--foreground); }
1930
1953
  .vk-chat-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--space-sm); min-width: 0; padding: var(--space-md); border-bottom: 1px solid var(--border-subtle); }
1931
1954
  .vk-chat-heading { display: grid; gap: var(--space-xs); min-width: 0; }
1932
- .vk-chat-title { min-width: 0; margin: 0; font: 600 var(--text-base)/1.4 var(--font-display); color: var(--foreground); overflow-wrap: anywhere; }
1955
+ /* At most two lines, so a long thread title keeps the header one compact height; the element keeps the full text. */
1956
+ .vk-chat-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-width: 0; margin: 0; font: 600 var(--text-base)/1.4 var(--font-display); color: var(--foreground); overflow-wrap: anywhere; }
1933
1957
  .vk-chat-title:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
1934
1958
  .vk-chat-description { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
1935
1959
  .vk-chat-header > .vk-icon-btn { flex-shrink: 0; }
package/dist/vokality.css CHANGED
@@ -408,7 +408,6 @@ body {
408
408
  border: 1px solid var(--primary);
409
409
  }
410
410
  .vk-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
411
- .vk-btn-primary:disabled { cursor: progress; opacity: 0.7; }
412
411
  .vk-btn-outline {
413
412
  font-weight: 600;
414
413
  color: var(--foreground);
@@ -423,7 +422,6 @@ body {
423
422
  border: 1px solid transparent;
424
423
  }
425
424
  .vk-btn-ghost:hover { background: var(--primary-tint); }
426
- .vk-btn-outline:disabled, .vk-btn-ghost:disabled { cursor: not-allowed; opacity: 0.5; }
427
425
  .vk-btn-sm { min-height: var(--button-height-sm, 32px); font-size: 0.6875rem; }
428
426
  .vk-btn-sm .vk-btn-label { padding: 0.4rem 0.75rem 0.4rem 0.85rem; }
429
427
  .vk-btn-sm .vk-btn-label:only-child { padding-right: 0.85rem; }
@@ -462,7 +460,22 @@ body {
462
460
  /* A text Menu or Popover trigger keeps its chevron beside the label instead of in a square cell. */
463
461
  .vk-btn-text .vk-btn-glyph { width: auto; padding-left: var(--space-xs); }
464
462
  .vk-btn-text:hover { color: var(--primary); text-decoration: underline; text-underline-offset: var(--space-xs); }
465
- .vk-btn-text:disabled { cursor: not-allowed; opacity: 0.5; }
463
+
464
+ /* Disabled: no brand fill and no hover. Filled and outlined variants become a dashed muted-subtle edge on
465
+ no fill, like a disabled field; every variant's text and glyph are muted-subtle. A loading button is
466
+ disabled too, but keeps its fill and spinner, since it is busy rather than unavailable. */
467
+ .vk-btn:disabled:not(.vk-btn-loading) {
468
+ cursor: not-allowed;
469
+ color: var(--muted-subtle);
470
+ background: transparent;
471
+ text-decoration: none;
472
+ }
473
+ .vk-btn:is(.vk-btn-primary, .vk-btn-outline, .vk-btn-danger):disabled:not(.vk-btn-loading) { border: 1px dashed var(--muted-subtle); }
474
+ .vk-btn:disabled:not(.vk-btn-loading) .vk-btn-glyph { color: inherit; }
475
+ .vk-btn-loading:disabled { cursor: progress; opacity: 0.7; }
476
+ @media (forced-colors: active) {
477
+ .vk-btn:disabled:not(.vk-btn-loading) { color: GrayText; border-color: GrayText; }
478
+ }
466
479
 
467
480
  /* Square glyph */
468
481
  @keyframes vk-glyph-blink {
@@ -851,7 +864,13 @@ body {
851
864
  .vk-icon-btn-outline { border-color: var(--muted-subtle); }
852
865
  .vk-icon-btn-outline:hover { border-color: var(--primary-hover); }
853
866
  .vk-icon-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
854
- .vk-icon-btn:disabled { cursor: not-allowed; opacity: 0.5; }
867
+ /* Disabled: muted-subtle glyph, no hover fill; an outline button's edge turns dashed. */
868
+ .vk-icon-btn:disabled { cursor: not-allowed; color: var(--muted-subtle); background: transparent; }
869
+ .vk-icon-btn-outline:disabled { border-style: dashed; border-color: var(--muted-subtle); }
870
+ @media (forced-colors: active) {
871
+ .vk-icon-btn:disabled { color: GrayText; }
872
+ .vk-icon-btn-outline:disabled { border-color: GrayText; }
873
+ }
855
874
 
856
875
  /* Dismiss and remove buttons inside alerts, toasts and upload rows keep a 16px glyph. */
857
876
  .vk-alert-close .vk-icon, .vk-upload-item .vk-icon-btn .vk-icon { width: 16px; height: 16px; }
@@ -877,7 +896,7 @@ body {
877
896
  .vk-field-optional { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted-subtle); }
878
897
  .vk-field-hint { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-subtle); }
879
898
  /* muted-subtle reaches AA only on background and card; raised surfaces use the stronger muted ink. */
880
- :is(.vk-dialog, .vk-drawer, .vk-popover) .vk-field-hint { color: var(--muted-foreground); }
899
+ :is(.vk-dialog, .vk-drawer, .vk-popover) :is(.vk-field-hint, .vk-field-optional) { color: var(--muted-foreground); }
881
900
  .vk-input:disabled { cursor: not-allowed; color: var(--muted-subtle); background: transparent; border-style: dashed; }
882
901
  /* Only real fields: :read-only also matches every non-editable element, such as the select trigger. */
883
902
  input.vk-input:read-only, textarea.vk-input:read-only { background: transparent; }
@@ -2077,8 +2096,11 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2077
2096
  .vk-list-bordered { border: 1px solid var(--border-subtle); }
2078
2097
  .vk-list-bordered .vk-list-main { padding-inline: 1rem; }
2079
2098
  .vk-list-bordered .vk-list-trailing { padding-right: 1rem; }
2080
- .vk-list-item { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
2081
- .vk-list-main { flex: 1; display: flex; align-items: center; gap: 0.85rem; min-width: 0; padding: 0.75rem 0.25rem; font: inherit; text-align: left; color: inherit; text-decoration: none; background: none; border: 0; }
2099
+ /* Trailing actions move below the body when the row is narrower than 30rem, or when the body would get less
2100
+ than 14rem beside them. --vk-list-narrow is huge below 30rem and negative above, so the clamps below switch
2101
+ on the row's own width (no container query, so a list still sizes to its content). */
2102
+ .vk-list-item { --vk-list-narrow: calc((30rem - 100%) * 999); display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.5rem; row-gap: 0; min-width: 0; }
2103
+ .vk-list-main { flex: 1 1 max(14rem, var(--vk-list-narrow)); display: flex; align-items: center; gap: 0.85rem; min-width: 0; padding: 0.75rem 0.25rem; font: inherit; text-align: left; color: inherit; text-decoration: none; background: none; border: 0; }
2082
2104
  .vk-list-interactive { cursor: pointer; }
2083
2105
  .vk-list-interactive:hover { background: var(--card-fill); }
2084
2106
  .vk-list-interactive:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
@@ -2090,7 +2112,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2090
2112
  .vk-list-meta { flex-shrink: 0; font-family: var(--font-numeric); font-variant-numeric: tabular-nums; font-size: 0.75rem; color: var(--muted-subtle); }
2091
2113
  /* muted-subtle falls under 4.5:1 on the primary-tint wash. */
2092
2114
  .vk-list-item-selected .vk-list-meta { color: var(--muted-foreground); }
2093
- .vk-list-trailing { display: inline-flex; align-items: center; gap: 0.25rem; flex-shrink: 0; padding-right: 0.25rem; }
2115
+ .vk-list-trailing { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; flex-shrink: 0; max-width: 100%; box-sizing: border-box; padding-right: 0.25rem; padding-left: clamp(0px, var(--vk-list-narrow), 0.25rem); padding-bottom: clamp(0px, var(--vk-list-narrow), 0.75rem); }
2116
+ .vk-list-bordered .vk-list-trailing { padding-left: clamp(0px, var(--vk-list-narrow), 1rem); }
2094
2117
  @media (max-width: 40rem) {
2095
2118
  .vk-list-main { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; }
2096
2119
  .vk-list-main:has(.vk-list-leading) { grid-template-columns: auto minmax(0, 1fr); }
@@ -2273,7 +2296,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2273
2296
  .vk-chat-panel { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; color: var(--foreground); }
2274
2297
  .vk-chat-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--space-sm); min-width: 0; padding: var(--space-md); border-bottom: 1px solid var(--border-subtle); }
2275
2298
  .vk-chat-heading { display: grid; gap: var(--space-xs); min-width: 0; }
2276
- .vk-chat-title { min-width: 0; margin: 0; font: 600 var(--text-base)/1.4 var(--font-display); color: var(--foreground); overflow-wrap: anywhere; }
2299
+ /* At most two lines, so a long thread title keeps the header one compact height; the element keeps the full text. */
2300
+ .vk-chat-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-width: 0; margin: 0; font: 600 var(--text-base)/1.4 var(--font-display); color: var(--foreground); overflow-wrap: anywhere; }
2277
2301
  .vk-chat-title:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
2278
2302
  .vk-chat-description { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
2279
2303
  .vk-chat-header > .vk-icon-btn { flex-shrink: 0; }
@@ -45938,6 +45938,7 @@ Defaulting to \`null\`.`;
45938
45938
  /* @__PURE__ */ jsx_dev_runtime93.jsxDEV("h2", {
45939
45939
  id: titleId,
45940
45940
  className: "vk-chat-title",
45941
+ title,
45941
45942
  children: title
45942
45943
  }, undefined, false, undefined, this),
45943
45944
  description ? /* @__PURE__ */ jsx_dev_runtime93.jsxDEV("div", {
@@ -46151,6 +46152,7 @@ Defaulting to \`null\`.`;
46151
46152
  ref: headingRef,
46152
46153
  tabIndex: -1,
46153
46154
  className: "vk-chat-title",
46155
+ title: selected.title,
46154
46156
  children: selected.title
46155
46157
  }, undefined, false, undefined, this),
46156
46158
  actions
@@ -31,7 +31,10 @@ Use `xs` in toolbars, record rows and status lines where a 32px control crowds t
31
31
  | Rest | `primary` fill | transparent, `primary` border | transparent |
32
32
  | Hover | `primary-hover` fill and border | `primary-tint` fill, `primary-hover` border, glyph `primary-hover` | `primary-tint` fill |
33
33
  | Focus | 2px `ring` outline, 3px offset | same | same |
34
- | Busy / disabled | 70% opacity, `progress` cursor, change the label ("Saving…") | 50% opacity, `not-allowed` cursor | 50% opacity |
34
+ | Busy (`loading`) | spinner, 70% opacity, `progress` cursor, change the label ("Saving…") | same | same |
35
+ | Disabled | no fill, 1px dashed `muted-subtle` edge, `muted-subtle` text, no hover, `not-allowed` cursor | same | no fill or edge, `muted-subtle` text |
36
+
37
+ Every disabled variant drops its brand fill instead of fading it, so an unavailable action never reads as the primary one; `danger` matches primary and `text` matches ghost. Disabled controls are exempt from WCAG contrast minimums, and `muted-subtle` still clears 4.5:1 on background and card. Forced colors use `GrayText`.
35
38
 
36
39
  ## Props
37
40
  - `children`: the label in sentence case, starting with a verb.
@@ -26,7 +26,7 @@ function Inbox({ threads, items }: { threads: ChatThread[]; items: ChatItem[] })
26
26
 
27
27
  `threads` is an array of `ChatThread`: `id`, `title`, optional render-ready `preview`, `avatar`, `timestamp`, positive whole-number `unreadCount` and `disabled`. IDs stay stable across updates. The application owns filtering, fetching, selection, transcript items, delivery and retry requests.
28
28
 
29
- `selectedThreadId` and `onSelectThread(id)` form the controlled selection contract. Back emits `null`. `title` names the thread list and defaults to “Conversations”; the conversation header uses the selected thread title. With no selection, `emptySelection` overrides the invitation to choose a conversation. An empty thread list has localized feedback.
29
+ `selectedThreadId` and `onSelectThread(id)` form the controlled selection contract. Back emits `null`. `title` names the thread list and defaults to “Conversations”; the conversation header uses the selected thread title, clamped to two lines with an ellipsis; the heading keeps the full title as its accessible name and its `title` tooltip. With no selection, `emptySelection` overrides the invitation to choose a conversation. An empty thread list has localized feedback.
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
 
@@ -17,7 +17,7 @@ A square button that shows only an icon, for compact controls: close, menu, prev
17
17
  | --- | --- |
18
18
  | Hover | `primary-tint` fill; outline border turns `primary-hover` |
19
19
  | Focus | 2px `ring` outline, 2px offset |
20
- | Disabled | 50% opacity, `not-allowed` cursor |
20
+ | Disabled | `muted-subtle` glyph, no hover fill, dashed `muted-subtle` edge on outline, `not-allowed` cursor; `GrayText` in forced colors |
21
21
 
22
22
  ## Props
23
23
  - `icon` (required): an `Icon` name. `label` (required): the action in words; it becomes `aria-label` and the tooltip.
@@ -18,4 +18,5 @@ Rows of records: people, files, notifications, recent items. Each `ListItem` has
18
18
 
19
19
  ## Rules
20
20
  - Keep the trailing slot to one or two controls; more goes in a `Menu`.
21
+ - In a row narrower than 30rem, or where the title and description would get less than 14rem beside them, the trailing controls move below the text, lined up with the row's start. Wider rows keep them on the right.
21
22
  - For records people compare column by column, use `Table`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vokality/design-system",
3
- "version": "5.1.0",
3
+ "version": "5.1.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,