@vokality/design-system 5.0.0 → 5.1.1

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,27 @@
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.1 — 2026-10-20
6
+
7
+ ### Fixed
8
+ - 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`.
9
+ - 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.
10
+ - `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.
11
+ - Stories: `Button` `DisabledVariants`, `IconButton` `DisabledVariants`, `ChatInbox` `LongTitle` and `List` `NarrowContainer`.
12
+
13
+ ## 5.1.0 — 2026-10-19
14
+
15
+ Compact toolbar and status-line controls.
16
+
17
+ ### Added
18
+ - `settings` (Lucide settings) and `refresh` (Lucide rotate-cw) icons, 18px by default, in `iconData`, `Icon`, `IconButton` and `icons/*.svg`.
19
+ - `variant="text"` on `Menu` and `Popover` triggers: sentence case with the chevron after the label; at `size="xs"` it is 12px, the size of `Text size="small"` under compact density. With `size="xs"` it sits at `--control-height-xs`, like `Button variant="text" size="xs"`.
20
+ - `Select` `size="xs"`: a 24px toolbar trigger with 12px text and tighter padding on fine pointers; coarse pointers keep 44px, and form fields keep the control height.
21
+ - Stories: `IconButton` `Settings`, `Popover` `StatusLine`, `Select` `Sizes`, and the text variant in the `Menu` and `Popover` `Sizes` stories.
22
+
23
+ ### Fixed
24
+ - An icon-only `Menu` trigger with `variant="primary"` rendered a class with no styles; it is a ghost icon button, as for every variant other than `outline`.
25
+
5
26
  ## 5.0.0 — 2026-10-19
6
27
 
7
28
  Agent activity in chat transcripts.
package/README.md CHANGED
@@ -89,7 +89,7 @@ Pages not rendered by React can inline `themeScript()` instead. See `docs/compon
89
89
 
90
90
  Pass `density="compact"` to `ThemeProvider` for dense operational interfaces. It uses 20px page titles, 16px section titles, 14px body text and 24px statistics, never enlarges smaller text, and tightens table cells, list and navigation rows, menus and cards. Page-header actions align with the title; headers leave section spacing to `Stack` instead of adding another margin. With only a fine pointer, buttons and fields share a 32px height and inputs use 14px text; when a coarse pointer is available they keep 44px targets and 16px input text, which stops iOS zooming on focus. Density redefines the control tokens (`--control-height`, `--control-font-size`, `--control-padding-block`) and the button heights, so components that size from them follow it while component-specific sizes still apply. The provider sets it on `html`, so portalled dialogs and menus inherit it. Without it the defaults apply. Prose follows the compact scale (14px text, headings from 20px), and alert and toast titles use 14px.
91
91
 
92
- For toolbars, record rows and status lines, `size="xs"` on `Button`, `IconButton`, `Menu`, `Popover` and `SegmentedControl` gives 24px actions with 11px labels. Fields keep the control height, so forms stay readable. Extra-small sizes apply with fine pointers only; a coarse pointer keeps the 44px target. The `--control-height-xs` token holds the height.
92
+ For toolbars, record rows and status lines, `size="xs"` on `Button`, `IconButton`, `Menu`, `Popover` and `SegmentedControl` gives 24px actions with 11px labels, and on `Select` a 24px toolbar picker with 12px text. A status-line `Menu` or `Popover` takes `variant="text"` to read in sentence case, at 12px with `size="xs"`, like compact `Text size="small"`. Form fields keep the control height, so forms stay readable. Extra-small sizes apply with fine pointers only; a coarse pointer keeps the 44px target. The `--control-height-xs` token holds the height.
93
93
 
94
94
  Compose pages with `Stack`, `Inline` and `Grid`; these forward standard attributes and events typed for the element they render, including `Inline as="form" onSubmit={...}`. Use `Fieldset` for related controls, `Button variant="text"` for record names, and `Text numeric overflowWrap="anywhere"` for long identifiers.
95
95
 
@@ -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 }) {
@@ -3,8 +3,8 @@ export interface MenuProps {
3
3
  items: MenuEntry[];
4
4
  label?: string;
5
5
  icon?: IconName;
6
- triggerLabel?: string;
7
- variant?: 'outline' | 'ghost' | 'primary';
6
+ triggerLabel?: string; /** text reads as a sentence-case label, 12px at xs; it applies to labelled triggers. */
7
+ variant?: 'outline' | 'ghost' | 'primary' | 'text';
8
8
  size?: 'sm' | 'xs';
9
9
  align?: 'start' | 'end';
10
10
  disabled?: boolean;
@@ -6,10 +6,10 @@ import { Icon } from "../Icon/Icon.js";
6
6
  import { cx } from "../../lib/cx.js";
7
7
  import { MenuEntries } from "./entries.js";
8
8
  /** Menu button (WAI-ARIA), built on Radix DropdownMenu. */
9
- /** An icon button when the trigger has only an icon, else a labelled button; both follow size. */
9
+ /** An icon button (ghost or outline) when the trigger has only an icon, else a labelled button; both follow size. */
10
10
  function triggerClass(iconOnly, variant, size) {
11
11
  return iconOnly
12
- ? cx("vk-icon-btn", "vk-icon-btn-" + (variant || "ghost"), size === "xs" && "vk-icon-btn-xs")
12
+ ? cx("vk-icon-btn", variant === "outline" ? "vk-icon-btn-outline" : "vk-icon-btn-ghost", size === "xs" && "vk-icon-btn-xs")
13
13
  : cx("vk-btn", "vk-btn-" + (variant || "outline"), size === "sm" && "vk-btn-sm", size === "xs" && "vk-btn-xs");
14
14
  }
15
15
  export function Menu({ items, label, icon, triggerLabel, variant, size, align, disabled, className }) {
@@ -4,8 +4,8 @@ import type { IconName } from "../../types.js";
4
4
  export interface PopoverProps extends Pick<Primitive.PopoverProps, 'open' | 'defaultOpen' | 'onOpenChange' | 'modal'> {
5
5
  label: string;
6
6
  title?: string;
7
- icon?: IconName;
8
- variant?: 'outline' | 'ghost' | 'primary';
7
+ icon?: IconName; /** text reads as a sentence-case status ("2 issues"), 12px at xs; outline is the default. */
8
+ variant?: 'outline' | 'ghost' | 'primary' | 'text';
9
9
  size?: 'sm' | 'xs';
10
10
  align?: 'start' | 'end';
11
11
  width?: string;
@@ -13,6 +13,8 @@ export interface SelectProps extends Omit<RootProps, "children" | "value" | "def
13
13
  defaultValue?: string;
14
14
  /** Receives Radix's changed value and its matching option. */
15
15
  onChange?: (value: string, option: SelectOption) => void;
16
+ /** xs for toolbars and status lines (24px with small type on fine pointers, 44px on touch); forms keep the control height. */
17
+ size?: 'xs';
16
18
  id?: string;
17
19
  className?: string;
18
20
  "aria-label"?: string;
@@ -8,7 +8,7 @@ import { normalizeOptions } from "../../internal/options.js";
8
8
  import { useUid } from "../../internal/useUid.js";
9
9
  import { cx } from "../../lib/cx.js";
10
10
  /** Styled Radix Select. Radix owns state, form participation, focus, keys and dismissal. */
11
- export const Select = forwardRef(function Select({ options: optionValues, placeholder, value, defaultValue, onChange, id, className, "aria-label": ariaLabel, "aria-labelledby": labelledBy, "aria-describedby": describedBy, "aria-invalid": invalid, ...rootProps }, ref) {
11
+ export const Select = forwardRef(function Select({ options: optionValues, placeholder, value, defaultValue, onChange, size, id, className, "aria-label": ariaLabel, "aria-labelledby": labelledBy, "aria-describedby": describedBy, "aria-invalid": invalid, ...rootProps }, ref) {
12
12
  const { messages } = useLocale();
13
13
  const options = normalizeOptions(optionValues);
14
14
  const baseId = useUid("vk-select");
@@ -17,5 +17,5 @@ export const Select = forwardRef(function Select({ options: optionValues, placeh
17
17
  if (option)
18
18
  onChange?.(option.value, option);
19
19
  };
20
- return (_jsx("div", { className: cx("vk-select", className), children: _jsxs(Primitive.Root, { ...rootProps, value: value === null ? "" : value, defaultValue: defaultValue, onValueChange: onValueChange, children: [_jsxs(Primitive.Trigger, { ref: ref, id: id, className: "vk-input vk-select-trigger", "aria-label": ariaLabel, "aria-labelledby": labelledBy, "aria-describedby": describedBy, "aria-invalid": invalid, children: [_jsx("span", { className: "vk-select-value", children: _jsx(Primitive.Value, { placeholder: placeholder ?? messages.selectOne }) }), _jsx(Primitive.Icon, { asChild: true, children: _jsx(Icon, { name: "chevron-down", className: "vk-select-icon" }) })] }), _jsx(Primitive.Portal, { children: _jsx(Primitive.Content, { position: "popper", side: "bottom", align: "start", sideOffset: 4, collisionPadding: 8, className: "vk-select-menu vk-select-content", "aria-label": ariaLabel, "aria-labelledby": labelledBy, children: _jsx(Primitive.Viewport, { className: "vk-select-viewport", children: options.map((option, index) => (_jsxs(Primitive.Item, { value: option.value, textValue: option.label, disabled: option.disabled, "data-index": index, "aria-describedby": option.description ? baseId + "-" + String(index) + "-desc" : undefined, className: "vk-select-option", children: [_jsxs("span", { className: "vk-select-option-text", children: [_jsx(Primitive.ItemText, { children: option.label }), option.description ? _jsx("span", { id: baseId + "-" + String(index) + "-desc", className: "vk-select-option-description", children: option.description }) : null] }), _jsx(Primitive.ItemIndicator, { asChild: true, children: _jsx(Icon, { name: "check", size: 16, className: "vk-select-check" }) })] }, option.value))) }) }) })] }) }));
20
+ return (_jsx("div", { className: cx("vk-select", size === "xs" && "vk-select-xs", className), children: _jsxs(Primitive.Root, { ...rootProps, value: value === null ? "" : value, defaultValue: defaultValue, onValueChange: onValueChange, children: [_jsxs(Primitive.Trigger, { ref: ref, id: id, className: "vk-input vk-select-trigger", "aria-label": ariaLabel, "aria-labelledby": labelledBy, "aria-describedby": describedBy, "aria-invalid": invalid, children: [_jsx("span", { className: "vk-select-value", children: _jsx(Primitive.Value, { placeholder: placeholder ?? messages.selectOne }) }), _jsx(Primitive.Icon, { asChild: true, children: _jsx(Icon, { name: "chevron-down", className: "vk-select-icon" }) })] }), _jsx(Primitive.Portal, { children: _jsx(Primitive.Content, { position: "popper", side: "bottom", align: "start", sideOffset: 4, collisionPadding: 8, className: "vk-select-menu vk-select-content", "aria-label": ariaLabel, "aria-labelledby": labelledBy, children: _jsx(Primitive.Viewport, { className: "vk-select-viewport", children: options.map((option, index) => (_jsxs(Primitive.Item, { value: option.value, textValue: option.label, disabled: option.disabled, "data-index": index, "aria-describedby": option.description ? baseId + "-" + String(index) + "-desc" : undefined, className: "vk-select-option", children: [_jsxs("span", { className: "vk-select-option-text", children: [_jsx(Primitive.ItemText, { children: option.label }), option.description ? _jsx("span", { id: baseId + "-" + String(index) + "-desc", className: "vk-select-option-description", children: option.description }) : null] }), _jsx(Primitive.ItemIndicator, { asChild: true, children: _jsx(Icon, { name: "check", size: 16, className: "vk-select-check" }) })] }, option.value))) }) }) })] }) }));
21
21
  });
@@ -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; }
@@ -115,8 +113,25 @@ body {
115
113
  border: 1px solid transparent;
116
114
  }
117
115
  .vk-btn-text .vk-btn-label, .vk-btn-text .vk-btn-label:only-child { padding: var(--space-xs) 0; }
116
+ /* A text Menu or Popover trigger keeps its chevron beside the label instead of in a square cell. */
117
+ .vk-btn-text .vk-btn-glyph { width: auto; padding-left: var(--space-xs); }
118
118
  .vk-btn-text:hover { color: var(--primary); text-decoration: underline; text-underline-offset: var(--space-xs); }
119
- .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
+ }
120
135
 
121
136
  /* Square glyph */
122
137
  @keyframes vk-glyph-blink {
@@ -505,7 +520,13 @@ body {
505
520
  .vk-icon-btn-outline { border-color: var(--muted-subtle); }
506
521
  .vk-icon-btn-outline:hover { border-color: var(--primary-hover); }
507
522
  .vk-icon-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
508
- .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
+ }
509
530
 
510
531
  /* Dismiss and remove buttons inside alerts, toasts and upload rows keep a 16px glyph. */
511
532
  .vk-alert-close .vk-icon, .vk-upload-item .vk-icon-btn .vk-icon { width: 16px; height: 16px; }
@@ -1731,8 +1752,11 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
1731
1752
  .vk-list-bordered { border: 1px solid var(--border-subtle); }
1732
1753
  .vk-list-bordered .vk-list-main { padding-inline: 1rem; }
1733
1754
  .vk-list-bordered .vk-list-trailing { padding-right: 1rem; }
1734
- .vk-list-item { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
1735
- .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; }
1736
1760
  .vk-list-interactive { cursor: pointer; }
1737
1761
  .vk-list-interactive:hover { background: var(--card-fill); }
1738
1762
  .vk-list-interactive:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
@@ -1744,7 +1768,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
1744
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); }
1745
1769
  /* muted-subtle falls under 4.5:1 on the primary-tint wash. */
1746
1770
  .vk-list-item-selected .vk-list-meta { color: var(--muted-foreground); }
1747
- .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); }
1748
1773
  @media (max-width: 40rem) {
1749
1774
  .vk-list-main { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; }
1750
1775
  .vk-list-main:has(.vk-list-leading) { grid-template-columns: auto minmax(0, 1fr); }
@@ -1927,7 +1952,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
1927
1952
  .vk-chat-panel { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; color: var(--foreground); }
1928
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); }
1929
1954
  .vk-chat-heading { display: grid; gap: var(--space-xs); min-width: 0; }
1930
- .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; }
1931
1957
  .vk-chat-title:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
1932
1958
  .vk-chat-description { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
1933
1959
  .vk-chat-header > .vk-icon-btn { flex-shrink: 0; }
@@ -2142,16 +2168,19 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
2142
2168
  @media (max-width: 40rem) {
2143
2169
  .vk-btn-xs { width: auto; justify-content: flex-start; }
2144
2170
  }
2145
- /* Extra-small action controls for toolbars, record rows and status lines: size="xs" on Button, IconButton,
2146
- Menu, Popover and SegmentedControl. Fine pointers only; with any coarse pointer they keep the 44px touch target. */
2171
+ /* Extra-small controls for toolbars, record rows and status lines: size="xs" on Button, IconButton,
2172
+ Menu, Popover, SegmentedControl and Select. Fine pointers only; with any coarse pointer they keep the 44px touch target. */
2147
2173
  @media (pointer: fine) and (not (any-pointer: coarse)) {
2148
2174
  .vk-btn-xs { min-height: var(--control-height-xs); font-size: 0.6875rem; }
2149
2175
  .vk-btn-xs .vk-btn-label, .vk-btn-xs .vk-btn-label:only-child { padding: 0 var(--space-sm); }
2150
2176
  .vk-btn-xs .vk-btn-glyph { width: var(--control-height-xs); }
2151
2177
  .vk-btn-text.vk-btn-xs { font-size: var(--text-xs); }
2152
2178
  .vk-btn-text.vk-btn-xs .vk-btn-label, .vk-btn-text.vk-btn-xs .vk-btn-label:only-child { padding: 0; }
2179
+ .vk-btn-text.vk-btn-xs .vk-btn-glyph { width: auto; }
2153
2180
  .vk-icon-btn-xs { width: var(--control-height-xs); height: var(--control-height-xs); }
2154
2181
  .vk-icon-btn-xs .vk-icon { width: 16px; height: 16px; }
2182
+ .vk-select-xs .vk-select-trigger { min-height: var(--control-height-xs); padding: 0 calc(var(--space-sm) + 14px + var(--space-xs)) 0 var(--space-sm); font-size: var(--text-xs); }
2183
+ .vk-select-xs .vk-select-icon { top: calc(var(--control-height-xs) / 2); right: var(--space-sm); width: 14px; height: 14px; }
2155
2184
  .vk-segmented-xs .vk-segment { min-height: calc(var(--control-height-xs) - 2px); padding: 0 var(--space-sm); font-size: var(--text-xs); }
2156
2185
  }
2157
2186
  /* Touch: buttons and rows meet a 44px target in every density (WCAG 2.5.5, Apple HIG); density only tightens fine-pointer layouts. */
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#e1dfdb" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#e1dfdb" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/></svg>
@@ -196,6 +196,21 @@ export declare const ICONS: {
196
196
  stroke: number;
197
197
  d: string[];
198
198
  };
199
+ settings: {
200
+ size: number;
201
+ stroke: number;
202
+ d: string[];
203
+ circle: {
204
+ cx: number;
205
+ cy: number;
206
+ r: number;
207
+ };
208
+ };
209
+ refresh: {
210
+ size: number;
211
+ stroke: number;
212
+ d: string[];
213
+ };
199
214
  menu: {
200
215
  size: number;
201
216
  stroke: number;
package/dist/lib/icons.js CHANGED
@@ -38,6 +38,15 @@ export const ICONS = {
38
38
  chart: { size: 16, stroke: 1.5, d: ["M3 3v16a2 2 0 0 0 2 2h16", "M18 17V9", "M13 17V5", "M8 17v-3"] },
39
39
  clock: { size: 16, stroke: 1.75, d: ["M12 6v6l4 2"], circle: { cx: 12, cy: 12, r: 10 } },
40
40
  sidebar: { size: 18, stroke: 1.75, d: ["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z", "M9 3v18"] },
41
+ // https://github.com/lucide-icons/lucide/blob/main/icons/settings.svg
42
+ settings: {
43
+ size: 18,
44
+ stroke: 1.75,
45
+ d: ["M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"],
46
+ circle: { cx: 12, cy: 12, r: 3 }
47
+ },
48
+ // https://github.com/lucide-icons/lucide/blob/main/icons/rotate-cw.svg
49
+ refresh: { size: 18, stroke: 1.75, d: ["M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8", "M21 3v5h-5"] },
41
50
  menu: { size: 22, stroke: 1.75, d: ["M4 6h16M4 12h16M4 18h16"] },
42
51
  x: { size: 22, stroke: 1.75, d: ["M18 6 6 18M6 6l12 12"] },
43
52
  phone: {
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; }
@@ -459,8 +457,25 @@ body {
459
457
  border: 1px solid transparent;
460
458
  }
461
459
  .vk-btn-text .vk-btn-label, .vk-btn-text .vk-btn-label:only-child { padding: var(--space-xs) 0; }
460
+ /* A text Menu or Popover trigger keeps its chevron beside the label instead of in a square cell. */
461
+ .vk-btn-text .vk-btn-glyph { width: auto; padding-left: var(--space-xs); }
462
462
  .vk-btn-text:hover { color: var(--primary); text-decoration: underline; text-underline-offset: var(--space-xs); }
463
- .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
+ }
464
479
 
465
480
  /* Square glyph */
466
481
  @keyframes vk-glyph-blink {
@@ -849,7 +864,13 @@ body {
849
864
  .vk-icon-btn-outline { border-color: var(--muted-subtle); }
850
865
  .vk-icon-btn-outline:hover { border-color: var(--primary-hover); }
851
866
  .vk-icon-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
852
- .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
+ }
853
874
 
854
875
  /* Dismiss and remove buttons inside alerts, toasts and upload rows keep a 16px glyph. */
855
876
  .vk-alert-close .vk-icon, .vk-upload-item .vk-icon-btn .vk-icon { width: 16px; height: 16px; }
@@ -2075,8 +2096,11 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2075
2096
  .vk-list-bordered { border: 1px solid var(--border-subtle); }
2076
2097
  .vk-list-bordered .vk-list-main { padding-inline: 1rem; }
2077
2098
  .vk-list-bordered .vk-list-trailing { padding-right: 1rem; }
2078
- .vk-list-item { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
2079
- .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; }
2080
2104
  .vk-list-interactive { cursor: pointer; }
2081
2105
  .vk-list-interactive:hover { background: var(--card-fill); }
2082
2106
  .vk-list-interactive:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
@@ -2088,7 +2112,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2088
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); }
2089
2113
  /* muted-subtle falls under 4.5:1 on the primary-tint wash. */
2090
2114
  .vk-list-item-selected .vk-list-meta { color: var(--muted-foreground); }
2091
- .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); }
2092
2117
  @media (max-width: 40rem) {
2093
2118
  .vk-list-main { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; }
2094
2119
  .vk-list-main:has(.vk-list-leading) { grid-template-columns: auto minmax(0, 1fr); }
@@ -2271,7 +2296,8 @@ textarea.vk-input, .vk-textarea { resize: vertical; min-height: 8rem; padding-bl
2271
2296
  .vk-chat-panel { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; color: var(--foreground); }
2272
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); }
2273
2298
  .vk-chat-heading { display: grid; gap: var(--space-xs); min-width: 0; }
2274
- .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; }
2275
2301
  .vk-chat-title:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
2276
2302
  .vk-chat-description { font-size: var(--text-sm); line-height: 1.5; color: var(--muted-foreground); overflow-wrap: anywhere; }
2277
2303
  .vk-chat-header > .vk-icon-btn { flex-shrink: 0; }
@@ -2486,16 +2512,19 @@ html[data-density="compact"] body { font-size: var(--text-sm); }
2486
2512
  @media (max-width: 40rem) {
2487
2513
  .vk-btn-xs { width: auto; justify-content: flex-start; }
2488
2514
  }
2489
- /* Extra-small action controls for toolbars, record rows and status lines: size="xs" on Button, IconButton,
2490
- Menu, Popover and SegmentedControl. Fine pointers only; with any coarse pointer they keep the 44px touch target. */
2515
+ /* Extra-small controls for toolbars, record rows and status lines: size="xs" on Button, IconButton,
2516
+ Menu, Popover, SegmentedControl and Select. Fine pointers only; with any coarse pointer they keep the 44px touch target. */
2491
2517
  @media (pointer: fine) and (not (any-pointer: coarse)) {
2492
2518
  .vk-btn-xs { min-height: var(--control-height-xs); font-size: 0.6875rem; }
2493
2519
  .vk-btn-xs .vk-btn-label, .vk-btn-xs .vk-btn-label:only-child { padding: 0 var(--space-sm); }
2494
2520
  .vk-btn-xs .vk-btn-glyph { width: var(--control-height-xs); }
2495
2521
  .vk-btn-text.vk-btn-xs { font-size: var(--text-xs); }
2496
2522
  .vk-btn-text.vk-btn-xs .vk-btn-label, .vk-btn-text.vk-btn-xs .vk-btn-label:only-child { padding: 0; }
2523
+ .vk-btn-text.vk-btn-xs .vk-btn-glyph { width: auto; }
2497
2524
  .vk-icon-btn-xs { width: var(--control-height-xs); height: var(--control-height-xs); }
2498
2525
  .vk-icon-btn-xs .vk-icon { width: 16px; height: 16px; }
2526
+ .vk-select-xs .vk-select-trigger { min-height: var(--control-height-xs); padding: 0 calc(var(--space-sm) + 14px + var(--space-xs)) 0 var(--space-sm); font-size: var(--text-xs); }
2527
+ .vk-select-xs .vk-select-icon { top: calc(var(--control-height-xs) / 2); right: var(--space-sm); width: 14px; height: 14px; }
2499
2528
  .vk-segmented-xs .vk-segment { min-height: calc(var(--control-height-xs) - 2px); padding: 0 var(--space-sm); font-size: var(--text-xs); }
2500
2529
  }
2501
2530
  /* Touch: buttons and rows meet a 44px target in every density (WCAG 2.5.5, Apple HIG); density only tightens fine-pointer layouts. */
@@ -1293,6 +1293,13 @@ Check the top-level render call using <` + parentName + ">.";
1293
1293
  chart: { size: 16, stroke: 1.5, d: ["M3 3v16a2 2 0 0 0 2 2h16", "M18 17V9", "M13 17V5", "M8 17v-3"] },
1294
1294
  clock: { size: 16, stroke: 1.75, d: ["M12 6v6l4 2"], circle: { cx: 12, cy: 12, r: 10 } },
1295
1295
  sidebar: { size: 18, stroke: 1.75, d: ["M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z", "M9 3v18"] },
1296
+ settings: {
1297
+ size: 18,
1298
+ stroke: 1.75,
1299
+ d: ["M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"],
1300
+ circle: { cx: 12, cy: 12, r: 3 }
1301
+ },
1302
+ refresh: { size: 18, stroke: 1.75, d: ["M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8", "M21 3v5h-5"] },
1296
1303
  menu: { size: 22, stroke: 1.75, d: ["M4 6h16M4 12h16M4 18h16"] },
1297
1304
  x: { size: 22, stroke: 1.75, d: ["M18 6 6 18M6 6l12 12"] },
1298
1305
  phone: {
@@ -14843,6 +14850,7 @@ Defaulting to \`null\`.`;
14843
14850
  value,
14844
14851
  defaultValue,
14845
14852
  onChange,
14853
+ size,
14846
14854
  id,
14847
14855
  className,
14848
14856
  "aria-label": ariaLabel,
@@ -14860,7 +14868,7 @@ Defaulting to \`null\`.`;
14860
14868
  onChange?.(option.value, option);
14861
14869
  };
14862
14870
  return /* @__PURE__ */ jsx_dev_runtime24.jsxDEV("div", {
14863
- className: cx("vk-select", className),
14871
+ className: cx("vk-select", size === "xs" && "vk-select-xs", className),
14864
14872
  children: /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Select, {
14865
14873
  ...rootProps,
14866
14874
  value: value === null ? "" : value,
@@ -16967,7 +16975,7 @@ Defaulting to \`null\`.`;
16967
16975
  var jsx_dev_runtime40 = __toESM(require_jsx_dev_runtime(), 1);
16968
16976
  "use client";
16969
16977
  function triggerClass(iconOnly, variant, size) {
16970
- return iconOnly ? cx("vk-icon-btn", "vk-icon-btn-" + (variant || "ghost"), size === "xs" && "vk-icon-btn-xs") : cx("vk-btn", "vk-btn-" + (variant || "outline"), size === "sm" && "vk-btn-sm", size === "xs" && "vk-btn-xs");
16978
+ return iconOnly ? cx("vk-icon-btn", variant === "outline" ? "vk-icon-btn-outline" : "vk-icon-btn-ghost", size === "xs" && "vk-icon-btn-xs") : cx("vk-btn", "vk-btn-" + (variant || "outline"), size === "sm" && "vk-btn-sm", size === "xs" && "vk-btn-xs");
16971
16979
  }
16972
16980
  function Menu2({ items, label, icon, triggerLabel, variant, size, align, disabled, className }) {
16973
16981
  const { messages } = useLocale();
@@ -45930,6 +45938,7 @@ Defaulting to \`null\`.`;
45930
45938
  /* @__PURE__ */ jsx_dev_runtime93.jsxDEV("h2", {
45931
45939
  id: titleId,
45932
45940
  className: "vk-chat-title",
45941
+ title,
45933
45942
  children: title
45934
45943
  }, undefined, false, undefined, this),
45935
45944
  description ? /* @__PURE__ */ jsx_dev_runtime93.jsxDEV("div", {
@@ -46143,6 +46152,7 @@ Defaulting to \`null\`.`;
46143
46152
  ref: headingRef,
46144
46153
  tabIndex: -1,
46145
46154
  className: "vk-chat-title",
46155
+ title: selected.title,
46146
46156
  children: selected.title
46147
46157
  }, undefined, false, undefined, this),
46148
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
 
@@ -8,7 +8,7 @@ An outline icon from the Vokality set (Lucide), drawn inline with `currentColor`
8
8
  ## The set
9
9
  | Group | Icons | Default size |
10
10
  | --- | --- | --- |
11
- | Actions | `arrow-up-right`, `pencil`, `copy`, `trash`, `plus`, `minus`, `upload`, `ellipsis` | 16–20px (arrow 17px) |
11
+ | Actions | `arrow-up-right`, `pencil`, `copy`, `trash`, `plus`, `minus`, `upload`, `ellipsis`, `refresh`, `settings` | 16–20px (arrow 17px; refresh and settings 18px) |
12
12
  | Status | `info`, `circle-check`, `triangle-alert`, `circle-alert`, `check` | 18px (check 16px) |
13
13
  | Navigation | `chevron-left`, `chevron-right`, `chevron-down`, `menu`, `x`, `home`, `folder`, `users`, `chart`, `search`, `calendar` | 16px (menu and x 22px) |
14
14
  | Data | `arrow-up`, `arrow-down`, `chevrons-up-down`, `file` | 14–16px |
@@ -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`.
@@ -41,7 +41,7 @@ WAI-ARIA menu button: the trigger has `aria-haspopup="menu"`, `aria-expanded` an
41
41
 
42
42
  ## Props
43
43
  - `items`: `{ label, onSelect, icon, shortcut, danger, disabled }`, checkable and submenu items as above, `{ type: 'separator' }` or `{ type: 'label', label }`.
44
- - `label` or `icon` + `triggerLabel`, `variant`, `size` (`sm` or `xs`; an icon-only trigger becomes a 24px icon button at `xs`), `align`, `disabled`.
44
+ - `label` or `icon` + `triggerLabel`, `variant` (`outline`, `ghost`, `primary` or `text`), `size` (`sm` or `xs`; an icon-only trigger becomes a 24px icon button at `xs`), `align`, `disabled`. `text` draws a labelled trigger in sentence case (12px at `xs`, the size of compact `Text size="small"`); an icon-only trigger is a ghost icon button unless `variant="outline"`.
45
45
 
46
46
  ## Rules
47
47
  - Menus hold actions. To pick a value, use `Select`; to navigate, use links.
@@ -3,7 +3,7 @@
3
3
  A small non-modal panel attached to a button, for interactive content that doesn't need a full dialog: filters, quick settings, a short form. Built on Radix Popover.
4
4
 
5
5
  ## Anatomy
6
- 1. **Trigger**: an outline `Button` with a chevron glyph cell (optional leading `icon`).
6
+ 1. **Trigger**: an outline `Button` with a chevron glyph cell (optional leading `icon`). `variant="text"` draws it as `Button variant="text"`: sentence case, no edge, the chevron right after the label.
7
7
  2. **Panel**: `surface-elevated`, 1px `border`, square, 0.75rem padding, at least 16rem wide (`width` to set it), with an optional title in Manrope 600. It sits 4px below the trigger, lined up with its start (or end, `align="end"`) edge, flips above when there is no room below and shrinks to the room it has; it rises 0.5rem as it fades in.
8
8
 
9
9
  ## Behaviour
@@ -12,7 +12,7 @@ A small non-modal panel attached to a button, for interactive content that doesn
12
12
  - The page stays usable behind it; nothing else is blocked.
13
13
 
14
14
  ## Props
15
- - `label`, `title`, `icon`, `variant`, `size` (`sm` or `xs`), `align`, `width`.
15
+ - `label`, `title`, `icon`, `variant` (`outline`, `ghost`, `primary` or `text`), `size` (`sm` or `xs`), `align`, `width`.
16
16
  - Native Radix state and mode: `open`, `defaultOpen`, `onOpenChange`, `modal`.
17
17
  - `children`: panel content. `close`: one focusable element rendered through Radix Close. The former render-function child is replaced by native Close composition; for more application-specific actions, control `open` through `onOpenChange`.
18
18
 
@@ -22,5 +22,6 @@ The trigger has `aria-haspopup="dialog"`, `aria-expanded` and `aria-controls`; t
22
22
  ## Rules
23
23
  - Use a `Dialog` when the content needs full attention or a decision before continuing.
24
24
  - Use a `Tooltip` for plain text with nothing to interact with.
25
+ - In a status line, use `variant="text" size="xs"`: the trigger reads in sentence case at 12px (`text-xs`, the size of `Text size="small"` under compact density) and sits at `--control-height-xs`.
25
26
 
26
27
  [Radix Popover documentation](https://www.radix-ui.com/primitives/docs/components/popover) defines focus and dismissal behavior.
@@ -39,10 +39,11 @@ Implements the WAI-ARIA *select-only combobox* pattern with Radix Select: the tr
39
39
  - `name`, `form`, `required` and `disabled` pass to Radix Root. Its native form select posts the value, participates in validation and handles reset; disabled controls are excluded.
40
40
  - `aria-label` when there is no `Field`; `aria-labelledby`, `aria-describedby` and `aria-invalid` wire accessible presentation.
41
41
  - `open`, `defaultOpen` and `onOpenChange` pass directly to Radix; `dir` and `autoComplete` are supported through its Root contract.
42
+ - `size="xs"`: the compact trigger for toolbars and status lines, 24px (`--control-height-xs`) with `text-xs` and `space-sm` padding on fine pointers; a coarse pointer keeps the 44px target. Name it with `aria-label` or a visible label beside it. Forms keep the default size.
42
43
  - The ref is the trigger `<button>`, so a `Select` can be a `Tooltip` trigger.
43
44
 
44
45
  ## Rules
45
- - Render inside a `Field`.
46
+ - Render inside a `Field`, except a `size="xs"` select in a toolbar.
46
47
  - With five or fewer options that people should compare, use a `RadioGroup`.
47
48
  - For long lists that need search, use `Combobox`; to pick several, use `MultiSelect`.
48
49
  - Never fall back to a native `<select>`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vokality/design-system",
3
- "version": "5.0.0",
3
+ "version": "5.1.1",
4
4
  "description": "Vokality's design system: tokens, themes and React components for every Vokality project.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,