@bigpixelrocket/uiok 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/dist/button/TextLink.d.ts +26 -3
  3. package/dist/button/TextLink.js +5 -3
  4. package/dist/button/button.css +7 -0
  5. package/dist/dialog/ModalDialog.js +8 -2
  6. package/dist/dialog/SectionedDialog.d.ts +37 -0
  7. package/dist/dialog/SectionedDialog.js +157 -0
  8. package/dist/dialog/dialog.css +102 -0
  9. package/dist/dialog/index.d.ts +4 -2
  10. package/dist/dialog/index.js +4 -2
  11. package/dist/frame/AppRoot.d.ts +1 -1
  12. package/dist/frame/AppRoot.js +2 -1
  13. package/dist/frame/Dock.d.ts +1 -1
  14. package/dist/frame/Dock.js +2 -1
  15. package/dist/frame/FilterChips.d.ts +5 -2
  16. package/dist/frame/FilterChips.js +35 -2
  17. package/dist/frame/FilterChips.logic.d.ts +24 -0
  18. package/dist/frame/FilterChips.logic.js +34 -0
  19. package/dist/frame/PageParts.d.ts +4 -3
  20. package/dist/frame/PageParts.js +10 -3
  21. package/dist/frame/SideBySide.d.ts +32 -0
  22. package/dist/frame/SideBySide.js +50 -0
  23. package/dist/frame/Tree.d.ts +9 -3
  24. package/dist/frame/Tree.js +8 -5
  25. package/dist/frame/WindowFrame.d.ts +1 -1
  26. package/dist/frame/WindowFrame.js +3 -1
  27. package/dist/frame/frame.css +74 -5
  28. package/dist/frame/index.d.ts +4 -2
  29. package/dist/frame/index.js +4 -2
  30. package/dist/grid/grid.css +1 -0
  31. package/dist/icon/ProductMark.d.ts +57 -0
  32. package/dist/icon/ProductMark.js +26 -0
  33. package/dist/icon/icon.css +53 -0
  34. package/dist/icon/index.d.ts +3 -1
  35. package/dist/icon/index.js +3 -1
  36. package/dist/keyboard/Keyboard.logic.js +20 -3
  37. package/dist/keychord/KeyChord.d.ts +17 -1
  38. package/dist/keychord/KeyChord.js +16 -1
  39. package/dist/keychord/ShortcutIndex.d.ts +49 -0
  40. package/dist/keychord/ShortcutIndex.js +28 -0
  41. package/dist/keychord/index.d.ts +8 -2
  42. package/dist/keychord/index.js +8 -2
  43. package/dist/keychord/keychord.css +101 -0
  44. package/dist/labels/dialog.d.ts +2 -0
  45. package/dist/labels/dialog.js +2 -1
  46. package/dist/labels/keys.d.ts +5 -0
  47. package/dist/labels/keys.js +2 -1
  48. package/dist/labels/settings.d.ts +6 -0
  49. package/dist/labels/settings.js +1 -0
  50. package/dist/listing/Listing.d.ts +95 -7
  51. package/dist/listing/Listing.js +57 -13
  52. package/dist/listing/ListingScope.d.ts +7 -0
  53. package/dist/listing/ListingScope.js +8 -0
  54. package/dist/listing/PaneMessage.d.ts +7 -4
  55. package/dist/listing/PaneMessage.js +11 -4
  56. package/dist/listing/Timeline.d.ts +51 -0
  57. package/dist/listing/Timeline.js +28 -0
  58. package/dist/listing/index.d.ts +4 -2
  59. package/dist/listing/index.js +3 -1
  60. package/dist/listing/listing.css +268 -25
  61. package/dist/log/Ansi.logic.d.ts +27 -0
  62. package/dist/log/Ansi.logic.js +203 -0
  63. package/dist/log/LogWell.d.ts +11 -2
  64. package/dist/log/LogWell.js +15 -3
  65. package/dist/log/index.d.ts +1 -0
  66. package/dist/log/index.js +1 -0
  67. package/dist/log/log.css +80 -0
  68. package/dist/menu/Menu.d.ts +133 -0
  69. package/dist/menu/Menu.js +351 -0
  70. package/dist/menu/Menu.logic.d.ts +83 -0
  71. package/dist/menu/Menu.logic.js +92 -0
  72. package/dist/menu/index.d.ts +6 -1
  73. package/dist/menu/index.js +6 -1
  74. package/dist/menu/menu.css +57 -0
  75. package/dist/palette/Palette.d.ts +3 -2
  76. package/dist/palette/Palette.js +8 -4
  77. package/dist/palette/PaletteRows.d.ts +138 -0
  78. package/dist/palette/PaletteRows.js +76 -0
  79. package/dist/palette/index.d.ts +5 -2
  80. package/dist/palette/index.js +5 -2
  81. package/dist/pane/Pane.d.ts +42 -6
  82. package/dist/pane/Pane.js +92 -5
  83. package/dist/pane/PaneFrame.d.ts +22 -1
  84. package/dist/pane/PaneFrame.js +42 -5
  85. package/dist/pane/PaneKeys.d.ts +5 -1
  86. package/dist/pane/PaneKeys.js +28 -3
  87. package/dist/pane/PaneKeys.logic.d.ts +25 -0
  88. package/dist/pane/PaneKeys.logic.js +30 -0
  89. package/dist/pane/index.d.ts +2 -2
  90. package/dist/pane/index.js +1 -1
  91. package/dist/pane/usePaneKeys.d.ts +8 -1
  92. package/dist/pane/usePaneKeys.js +32 -12
  93. package/dist/shell/SettingsDialog.d.ts +20 -2
  94. package/dist/shell/SettingsDialog.js +13 -3
  95. package/dist/shell/index.d.ts +1 -1
  96. package/dist/styles.css +18 -3
  97. package/dist/surface/FactList.d.ts +54 -0
  98. package/dist/surface/FactList.js +33 -0
  99. package/dist/surface/FactTable.d.ts +44 -0
  100. package/dist/surface/FactTable.js +33 -0
  101. package/dist/surface/index.d.ts +7 -2
  102. package/dist/surface/index.js +7 -2
  103. package/dist/surface/surface.css +139 -2
  104. package/dist/tabs/PageTabs.d.ts +6 -0
  105. package/dist/tabs/PageTabs.js +1 -1
  106. package/dist/tabs/tabs.css +14 -0
  107. package/dist/terminal/TerminalBox.d.ts +30 -0
  108. package/dist/terminal/TerminalBox.js +17 -0
  109. package/dist/terminal/ghostty/core.d.ts +12 -4
  110. package/dist/terminal/ghostty/core.js +12 -4
  111. package/dist/terminal/index.d.ts +6 -2
  112. package/dist/terminal/index.js +6 -2
  113. package/dist/terminal/terminal.css +29 -0
  114. package/dist/text/Code.d.ts +15 -0
  115. package/dist/text/Code.js +12 -0
  116. package/dist/text/index.d.ts +6 -1
  117. package/dist/text/index.js +6 -1
  118. package/dist/text/text.css +21 -0
  119. package/dist/themes/themes.generated.css +20 -0
  120. package/dist/themes/tokens.d.ts +1 -0
  121. package/dist/themes/tokens.js +16 -2
  122. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,66 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.6.0] - 2026-11-23
10
+
11
+ ### Added
12
+
13
+ - `SectionedDialog`, `SectionedDialogProps`, and `DialogSection` (`@bigpixelrocket/uiok/dialog`): a form too long for one view, in a fixed frame with a sidebar of its sections beside a column that scrolls, each section headed by its name; the sidebar marks the section in view as the column scrolls, a row scrolls the column to its section, and a row run from the keyboard moves the focus to the section's first control. The `dialog` label `sections` names the sidebar.
14
+ - `FactList`, `Fact`, `FactColumns`, and `FactValueTone` (`@bigpixelrocket/uiok/surface`): a headed list of facts set straight on a page, the names in a column of their own and each value beside its name, a long value wrapping whole as a block, a printed one keeping its lines; lists side by side in as many columns as fit.
15
+ - `Code` (`@bigpixelrocket/uiok/text`): a command, a path, or a name inside a sentence, in the code face on a faint track, wrapping anywhere.
16
+ - `ShortcutIndex`, `ShortcutGroup`, and `ShortcutRow` (`@bigpixelrocket/uiok/keychord`): every key a window answers, in groups of verbs whose chords stand in one column across the groups, with a changed chord's accent caps, a verb with no chord, and a dimmed verb.
17
+ - `Row`'s `radio` (`RowRadio`): a row that is one choice of several, led by a radio named by the row's name, its cursor key reached through a `verb`.
18
+ - `PaneBox`'s `bell`: the visual bell, which shoves the cursor row sideways for one beat each time its count rises, or flashes the selection fill under reduced motion.
19
+ - `TextLink`'s `tone` (`danger`): a link to something failing (a log file whose writes fail) in the danger tone, its `tip` (the reason) its accessible description too.
20
+ - `KeyChords` (`@bigpixelrocket/uiok/keychord`): several chords for one verb, parted by the new `keys` label `or`, drawn and read between them, so two chords never run together; `ShortcutRow` draws its chords with it.
21
+ - `usePaneKeys`'s `tabOrder` and `nextTabStop`'s `order` (`TabOrder`): `listing` walks each pane's listing first, then its other controls, then the other pane's listing, over the pure rule `listingFirstStop` (`WalkPane`).
22
+ - `Row`'s `onContextMenu(event, rowKey)`: a secondary click for the row's menu. The row moves the pane's cursor to itself before calling it, and cancels the browser's own menu. From the keyboard, the Menu key or Shift-F10 on a pane's home (`PaneList` with `home`) runs the cursor row's, its event placed under the row.
23
+ - `RegionHandlers`' `onContextMenu`, so every part that takes the region handlers (`PaneBox`, `PaneList`, `SpacePanel`, `WindowFrame`'s `group`, `Dock`, `TreePane`, `TreeList`) takes a secondary click for its own menu. The innermost menu wins: a row's, then its pane's, then the region's around it, each running only for a click nothing inside cancelled, so one click never opens two menus. A secondary click in a text field is never claimed, so the field keeps the browser's own Cut, Copy, and Paste menu.
24
+ - `Menu`'s submenus (`MenuSubmenuEntry`, `{ kind: 'submenu', id, label, entries }`), one level deep (`MenuLeafEntry`): an item that opens a second menu beside it, on its inline-end side or the other with no room there (`placeMenu`'s `{ beside, rtl }`, `MenuFrom`). → (← right to left), Return, or Space opens it with the keys on its first item, ← goes back to its item, Escape closes it alone and Tab the whole menu; resting on or pressing its item opens it for the pointer, which may cross other items on its way in. Both menus read in the direction of what opened them (`Menu`'s new `dir`, else its anchor's or its place's). The item is a `menuitem` with `aria-haspopup="menu"` and `aria-expanded`, the submenu a `menu` labelled by it.
25
+ - `PaletteOption`'s `checked`: a row picked with others (the scripts a project includes), an `option` with `aria-checked` and the menu's check mark in its icon column while ticked. A press, or Return on the cursor row, toggles it through `onPick`; Space stays in the query.
26
+ - `SideBySide` (`@bigpixelrocket/uiok/frame`): two of a page's listings or sections side by side while the room the pair itself is given is `from` pixels wide or more, stacked in less, each a group named by its label. It measures its own width (`data-layout`), so a narrowed pane stacks them in a wide window, and holds no cursor: the page's one cursor walks the first part's rows, then the second's.
27
+ - `FilterChips` keeps to one line: chips that do not fit scroll sideways under the inline edge fade (`.scroll-fade-x`) with no scrollbar drawn, a mouse's vertical wheel scrolls the row sideways while it can move that way (left to the page otherwise; a trackpad's sideways swipe stays the browser's), and a chip the keys reach scrolls into view. Nothing scrolls smoothly.
28
+ - `BUDGETED_TERMINALS_PER_PAGE` (`@bigpixelrocket/uiok/terminal`): how many terminals one page's shared engine memory is budgeted for (17), so an app can test how many it opens against it; past it, terminals that fill their histories to the ceiling can exhaust the shared memory.
29
+
30
+ ### Changed
31
+
32
+ - `menuKeyAction(event, rtl)` maps → and ← (`open`, `back`), and its `close` says whether it closes one level (Escape, `all: false`) or the whole menu (Tab, `all: true`). A `Menu` now holds → and ← too, which no longer reach its owner while it is open.
33
+ - `KeyLabels` takes `or` ("or" in English). An app that builds a whole `keys` group of its own, not an override through `UiokProvider`, adds it.
34
+ - `DialogLabels` takes `sections` ("Sections" in English), the name of a `SectionedDialog`'s sidebar. An app that builds a whole `dialog` group of its own adds it.
35
+ - `PaneMessage` draws its words in one `.pane-message-text`, so inline code flows with them.
36
+ - `PaneMessage` and `PageNote` drawn outside every listing scope carry the scope themselves (a `.listing-root` around them), as `Listing` does, so a note after a listing keeps its look anywhere.
37
+
38
+ ### Fixed
39
+
40
+ - Tab from a pane's listing (`usePaneKeys`) no longer stops on a control the stylesheet hides, which refused the focus and held Tab in place, nor on a hidden input: the walk goes on past such a stop in the same direction, and ends on the pane's home if none takes the focus.
41
+ - `isTextEditingTarget` resolves inherited editability as the browser does (`isContentEditable`, else the nearest `contenteditable` that is not `inherit`), so editable content inside an editable parent counts as a text field and keeps its native menu and keys.
42
+
43
+ ## [0.5.0] - 2026-11-23
44
+
45
+ ### Added
46
+
47
+ - `Menu` (`@bigpixelrocket/uiok/menu`): a menu of verbs or places opened at a point or dropped from an element, through a portal: items (`MenuItemEntry`) with a glyph or a mark, a chord as key caps, a danger tone, a disabled state with its reason, a check, and the current one's dot; separators and group headings; the keys held while open (↑ ↓, Home, End, Return, Space, Escape, Tab), kept from the browser-key guard and a page's own key handlers (`data-native-keyboard`); a menu taller than the window scrolls, the keys keeping the cursor's item in view. Its pure placement and keys are `placeMenu` and `menuKeyAction`.
48
+ - `PanePathBar`'s `siblings` (`PaneSiblings`): the last crumb becomes a ⌄ button that drops the places beside it (a service's other versions) as a `Menu`, the one shown marked; a pick, a closing key, or a second press gives the focus back to the crumb, even when the pick renames it.
49
+ - Palette rows as components (`@bigpixelrocket/uiok/palette`): `PaletteList`, `PaletteOption` (mark, name, a sentence, path, or command, a trail, the current dot, cursor, disabled; its context, a trail in words, and its current state read as its description unless the caller words one), `PaletteHeading`, `PaletteNote`, `PaletteNotes`, and `PaletteFailure`.
50
+ - `TerminalBox` and `TERMINAL_BOX_HEIGHT` (`@bigpixelrocket/uiok/terminal`): a terminal framed at a fixed height (200px by default, a dialog's console), or filling its parent (a dock).
51
+ - `ProductMark` and `ProductMarkShape` (`@bigpixelrocket/uiok/icon`): a product's brand mark drawn from data the app passes in, with a fallback glyph, and the theme token `--product-mark-mix` (100% in a light theme, 78% in a dark one) that sets how much of the brand colour shows; a mark with no colour of its own and a fallback glyph take a row's icon tone, on the cursor and a selection too.
52
+ - `FactTable`, `FactRow`, and `FactTone` (`@bigpixelrocket/uiok/surface`): a page's short table of facts, a state glyph, name, detail, and value a row.
53
+ - `Cell`'s `tone` (`CellTone`: `warning`, `accent`, `danger`), held on the cursor row and under the pointer; `Row`'s `dim` (a name in the row-meta tone, `.row-dim`) and `add` (the add row's look with its accent plus); `TreeRow`'s `add`, whose plus keeps the accent on the cursor row.
54
+ - `PageTab`'s `count`, drawn after the tab's name and read in its accessible name.
55
+ - `TextLink`'s `disabled` and `label` (an accessible name of its own).
56
+ - `SettingsPage`'s `chip` takes a `SettingsChip` (`text`, `icon`, `tip`) as well as a string, and the `settings` label `pageWithChip`, which names a sidebar row and its chip apart ("Updates, Update to 1.4.4").
57
+ - `TimelineCell` and `TimelineScale` (`@bigpixelrocket/uiok/listing`): a row's span on a shared scale (a wait, then a bar, in the solid accent on the path that matters) and the ticks over its column, its bar and wait in the selection's words on a selected row and its span read once, as its name; `Row`'s `emphasis` puts a row's name in the strong weight.
58
+ - `Row`'s `selected`, `marked`, and `change` (`changed`, `removed`), and `Cell`'s `kind` (`action`, `hover`) and `missing`, so a row's states and a cell's kinds need no class name.
59
+ - `LogWell`'s `ansi`, which draws each line's SGR colours, backgrounds, and weights in the theme's text tones (a dim filled run keeps its fill's paired words) and drops every other escape sequence, control string (OSC, DCS, SOS, PM, APC), and cut-off escape, reading colon subparameters as one parameter and applying no CSI with a private marker or an intermediate, in time linear in the line, over `ansiSegments`, `ANSI_COLOURS`, `AnsiColour`, and `AnsiSegment` (`@bigpixelrocket/uiok/log`).
60
+
61
+ ### Changed
62
+
63
+ - A `ModalDialog`'s box (the Settings dialog's included) and a `Palette`'s box carry the listing scope (`.listing-root`), and a `Listing` drawn outside any scope carries it itself, its own rules matching the listing that carries the scope, so listings, rows, and filter fields keep their look in a dialog, a palette, or anywhere else, in the listing's monospace face. `Palette`'s classes are now `folder-menu palette listing-root`.
64
+
65
+ ### Fixed
66
+
67
+ - The tree keeps its look where single-class rules lost to others: a chevron off the cursor row draws in the rows' dim icon tone rather than its row's words, a tree note that is also a listing's empty line (`.pane-message.empty`) keeps the tree's small size and padding, and a focused `TreeFilterInput` shows its row's underline without the field focus ring.
68
+
9
69
  ## [0.4.0] - 2026-11-23
10
70
 
11
71
  ### Added
@@ -245,7 +305,9 @@ The first published version. The package is published to npm as `@bigpixelrocket
245
305
  - `lucide-react` 1.31 or later within 1.x is a peer dependency.
246
306
  - Terminal (`@bigpixelrocket/uiok/terminal`, `docs/components/terminal.md`): `Terminal`, Ghostty's VT engine as WebAssembly drawn on a canvas, read-only without `onInput`, with a Copy and Paste menu whose chords come from `menuChords`, a visual bell, line-editing actions bound by `actionForKey`, and `TerminalScrollbackContext`. The package root does not export it, so an app without a terminal never loads its assets. Its words are the new `terminal` label group; the package now ships a `NOTICE` with the engine's, adapter's, and font's licences.
247
307
 
248
- [Unreleased]: https://github.com/Bigpixelrocket/uiok/compare/v0.4.0...HEAD
308
+ [Unreleased]: https://github.com/Bigpixelrocket/uiok/compare/v0.6.0...HEAD
309
+ [0.6.0]: https://github.com/Bigpixelrocket/uiok/compare/v0.5.0...v0.6.0
310
+ [0.5.0]: https://github.com/Bigpixelrocket/uiok/compare/v0.4.0...v0.5.0
249
311
  [0.4.0]: https://github.com/Bigpixelrocket/uiok/compare/v0.3.0...v0.4.0
250
312
  [0.3.0]: https://github.com/Bigpixelrocket/uiok/compare/v0.2.3...v0.3.0
251
313
  [0.2.3]: https://github.com/Bigpixelrocket/uiok/compare/v0.2.2...v0.2.3
@@ -2,8 +2,23 @@ import type { LucideIcon } from 'lucide-react';
2
2
  import type { ReactElement } from 'react';
3
3
  /** Props for {@link TextLink}. */
4
4
  export interface TextLinkProps {
5
- /** The link's words, which are also its accessible name: "DROP DATABASE in the manual". */
5
+ /**
6
+ * The link's words, which are also its accessible name unless `label`
7
+ * gives one: "DROP DATABASE in the manual".
8
+ */
6
9
  readonly children: string;
10
+ /**
11
+ * The accessible name, when the words alone do not say what the link
12
+ * opens: "View the whole log" for a strip's "View". The words stay what
13
+ * the eye reads; the name is what a screen reader says.
14
+ */
15
+ readonly label?: string;
16
+ /**
17
+ * Refuses the press for now (nothing to open yet): the words dim, the
18
+ * pointer underlines nothing, and the link leaves the Tab order, as
19
+ * every disabled button does.
20
+ */
21
+ readonly disabled?: boolean;
7
22
  /** What it opens: the host opens the manual page, the place, or the window. */
8
23
  readonly onClick: () => void;
9
24
  /** A glyph before the words (a book for a manual page), at the small icon size. */
@@ -14,6 +29,12 @@ export interface TextLinkProps {
14
29
  readonly tip?: string;
15
30
  /** The chord that opens it, as text, written after the tooltip's words. */
16
31
  readonly shortcut?: string;
32
+ /**
33
+ * `danger`: what it opens is failing (a log file whose writes fail), so
34
+ * its words and glyph take the danger tone, and its `tip` (the reason)
35
+ * is its accessible description too, so a screen reader says why.
36
+ */
37
+ readonly tone?: 'danger';
17
38
  }
18
39
  /**
19
40
  * A link in words: a button that reads as a link inside a sentence, a
@@ -21,7 +42,9 @@ export interface TextLinkProps {
21
42
  * It wears the accent's text colour and underlines under the pointer; it
22
43
  * takes the keyboard's focus with the shared ring. It is a button because
23
44
  * the host decides how to open what it names (an external browser, a tab),
24
- * so it never navigates the page itself. Styled by `.text-link` in
45
+ * so it never navigates the page itself. A `disabled` link dims and
46
+ * refuses the press; `label` names it when its words are short; `tone`
47
+ * `danger` sets it in the danger tone with its reason described. Styled by `.text-link` in
25
48
  * `@bigpixelrocket/uiok/styles.css`.
26
49
  */
27
- export declare function TextLink({ children, onClick, icon: Icon, code, tip, shortcut }: TextLinkProps): ReactElement;
50
+ export declare function TextLink({ children, onClick, icon: Icon, code, tip, shortcut, label, disabled, tone }: TextLinkProps): ReactElement;
@@ -7,9 +7,11 @@ import { tooltip } from '../tooltip/Tooltip.logic.js';
7
7
  * It wears the accent's text colour and underlines under the pointer; it
8
8
  * takes the keyboard's focus with the shared ring. It is a button because
9
9
  * the host decides how to open what it names (an external browser, a tab),
10
- * so it never navigates the page itself. Styled by `.text-link` in
10
+ * so it never navigates the page itself. A `disabled` link dims and
11
+ * refuses the press; `label` names it when its words are short; `tone`
12
+ * `danger` sets it in the danger tone with its reason described. Styled by `.text-link` in
11
13
  * `@bigpixelrocket/uiok/styles.css`.
12
14
  */
13
- export function TextLink({ children, onClick, icon: Icon, code = false, tip, shortcut }) {
14
- return (_jsxs("button", { className: code ? 'text-link code' : 'text-link', onClick: onClick, type: "button", ...(tip === undefined && shortcut === undefined ? {} : tooltip(tip ?? children, shortcut)), children: [Icon === undefined ? null : _jsx(Icon, { "aria-hidden": true, size: ICON_SM }), _jsx("span", { className: "text-link-words", children: children })] }));
15
+ export function TextLink({ children, onClick, icon: Icon, code = false, tip, shortcut, label, disabled = false, tone }) {
16
+ return (_jsxs("button", { "aria-description": tone === 'danger' ? tip : undefined, "aria-label": label, className: ['text-link', code ? 'code' : '', tone ?? ''].filter(Boolean).join(' '), disabled: disabled, onClick: onClick, type: "button", ...(tip === undefined && shortcut === undefined ? {} : tooltip(tip ?? children, shortcut)), children: [Icon === undefined ? null : _jsx(Icon, { "aria-hidden": true, size: ICON_SM }), _jsx("span", { className: "text-link-words", children: children })] }));
15
17
  }
@@ -309,3 +309,10 @@
309
309
  .text-link:disabled {
310
310
  color: var(--text-dim);
311
311
  }
312
+
313
+ /* What it opens is failing (`tone="danger"`): the words and glyph in the
314
+ danger text tone, which keeps 4.5:1 as the accent's does; the reason is
315
+ its tooltip and description. A disabled one still dims. */
316
+ .text-link.danger:not(:disabled) {
317
+ color: var(--danger-text);
318
+ }
@@ -3,6 +3,7 @@ import { createContext, useCallback, useContext, useEffect, useLayoutEffect, use
3
3
  import { createPortal } from 'react-dom';
4
4
  import { isKeyKept } from '../keyboard/BrowserKeys.js';
5
5
  import { isTextEditingTarget } from '../keyboard/Keyboard.logic.js';
6
+ import { ListingScopeContext } from '../listing/ListingScope.js';
6
7
  import { cutTooltip } from '../tooltip/Tooltip.logic.js';
7
8
  import { DialogLayerContext } from './DialogLayer.js';
8
9
  import { DialogLegend } from './DialogLegend.js';
@@ -156,7 +157,12 @@ function DialogFrame({ title, labelId, describedBy, className, size, icon: Icon,
156
157
  containTab(event, dialogRef.current);
157
158
  }
158
159
  };
159
- return (_jsx("div", { className: frosted ? 'dialog-backdrop frosted' : 'dialog-backdrop', onMouseDown: onOutsidePress, children: _jsxs("div", { "aria-describedby": describedBy, "aria-labelledby": labelId, "aria-modal": "true", className: ['dialog', size === undefined ? null : `dialog-size-${size}`, className]
160
+ return (_jsx("div", { className: frosted ? 'dialog-backdrop frosted' : 'dialog-backdrop', onMouseDown: onOutsidePress, children: _jsxs("div", { "aria-describedby": describedBy, "aria-labelledby": labelId, "aria-modal": "true", className: [
161
+ 'dialog',
162
+ 'listing-root',
163
+ size === undefined ? null : `dialog-size-${size}`,
164
+ className
165
+ ]
160
166
  .filter(Boolean)
161
167
  .join(' '), "data-pinned": pinned !== null || undefined, "data-tone": tone, onKeyDown: (event) => {
162
168
  // React bubbles events through portals, so a dialog portalled from
@@ -197,5 +203,5 @@ function DialogFrame({ title, labelId, describedBy, className, size, icon: Icon,
197
203
  }
198
204
  }
199
205
  containFocus(event);
200
- }, onMouseDown: (event) => event.stopPropagation(), ref: dialogRef, role: "dialog", style: pinned === null ? undefined : { ['--dialog-top']: `${pinned}px` }, tabIndex: -1, children: [_jsxs("div", { className: "dialog-heading", children: [Icon && _jsx(Icon, { "aria-hidden": true, className: "dialog-icon" }), _jsx("h2", { id: labelId, ...(typeof title === 'string' ? cutTooltip(title) : {}), children: title })] }), _jsx(NestedFocusContext, { value: claimNestedFocus, children: children }), legend && _jsx(DialogLegend, { legend: legend, onLeave: onCancel })] }) }));
206
+ }, onMouseDown: (event) => event.stopPropagation(), ref: dialogRef, role: "dialog", style: pinned === null ? undefined : { ['--dialog-top']: `${pinned}px` }, tabIndex: -1, children: [_jsxs("div", { className: "dialog-heading", children: [Icon && _jsx(Icon, { "aria-hidden": true, className: "dialog-icon" }), _jsx("h2", { id: labelId, ...(typeof title === 'string' ? cutTooltip(title) : {}), children: title })] }), _jsx(NestedFocusContext, { value: claimNestedFocus, children: _jsx(ListingScopeContext, { value: true, children: children }) }), legend && _jsx(DialogLegend, { legend: legend, onLeave: onCancel })] }) }));
201
207
  }
@@ -0,0 +1,37 @@
1
+ import { type ReactElement, type ReactNode } from 'react';
2
+ import { type ModalDialogProps } from './ModalDialog.js';
3
+ /** One headed group of a `SectionedDialog`. */
4
+ export interface DialogSection {
5
+ /** Names the section to the sidebar; unique in the dialog, the same in every language. */
6
+ readonly id: string;
7
+ /** Its name, in the sidebar and as the overline over its rows: "Depends on". */
8
+ readonly title: string;
9
+ /** Its rows: a `FieldGrid` of `FieldRow`s, notes, a listing. */
10
+ readonly children: ReactNode;
11
+ }
12
+ /** Props for {@link SectionedDialog}. */
13
+ export interface SectionedDialogProps extends Omit<ModalDialogProps, 'children' | 'size'> {
14
+ /** The body's groups, in order; the sidebar lists them in the same order. */
15
+ readonly sections: readonly DialogSection[];
16
+ /** The section brought to the top as the dialog opens; the first unless given. */
17
+ readonly openAt?: string;
18
+ /**
19
+ * A line over the scrolling column that stays in view however far it is
20
+ * scrolled: a save that failed (a danger `Notice`).
21
+ */
22
+ readonly notice?: ReactNode;
23
+ }
24
+ /**
25
+ * A form too long for one view (a command's settings, a connection's
26
+ * options), in a dialog with a sidebar of its sections beside a column that
27
+ * scrolls: each section's name heads its group as an overline, a hairline
28
+ * between groups. The sidebar marks the section in view and follows the
29
+ * column as it scrolls, the way the Settings dialog marks a page's
30
+ * subsection; a row scrolls the column to its section. A press leaves the
31
+ * focus where it was; a row chosen from the keyboard (Return or Space on
32
+ * it) moves the focus to its section's first control, so a keyboard user
33
+ * lands where they asked to go. A fixed frame (`.sectioned-dialog`), so the
34
+ * dialog does not resize as its fields change; everything else, the title,
35
+ * the legend and its keys, and Escape, is `ModalDialog`'s.
36
+ */
37
+ export declare function SectionedDialog({ sections, openAt, notice, className, ...dialog }: SectionedDialogProps): ReactElement;
@@ -0,0 +1,157 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId, useLayoutEffect, useRef, useState } from 'react';
3
+ import { useLabels } from '../labels/UiokProvider.js';
4
+ import { spiedSubsection, subsectionScrollTop } from '../shell/SettingsDialog.logic.js';
5
+ import { cutTooltip } from '../tooltip/Tooltip.logic.js';
6
+ import { ModalDialog } from './ModalDialog.js';
7
+ /** The attribute that marks a section of a `SectionedDialog`'s body, carrying its id. */
8
+ const SECTION_ATTRIBUTE = 'data-dialog-section';
9
+ /** What can take the focus inside a section: its first control, for a section chosen from the keyboard. */
10
+ const FOCUSABLE = 'input:not([type="hidden"]), select, textarea, button, [href], [tabindex]';
11
+ /**
12
+ * Moves the focus to the first control of `section` that Tab would stop on
13
+ * and that takes it: one in the Tab order (a row's control out of it, at
14
+ * `tabIndex` -1, is the cursor row's keys' to run), not disabled (by itself
15
+ * or a disabled fieldset), not hidden, and, should the browser still refuse
16
+ * one, the next. So Tab goes on from it as the dialog's Tab cycle expects.
17
+ * Returns the control it focused, null for none.
18
+ */
19
+ const focusFirstControl = (section) => {
20
+ for (const control of section.querySelectorAll(FOCUSABLE)) {
21
+ if (control.tabIndex < 0 ||
22
+ control.matches(':disabled') ||
23
+ control.closest('[hidden], [inert]') !== null) {
24
+ continue;
25
+ }
26
+ control.focus({ preventScroll: true });
27
+ if (control.ownerDocument.activeElement === control)
28
+ return control;
29
+ }
30
+ return null;
31
+ };
32
+ /**
33
+ * Where each section starts in the column, in pixels from the top of its
34
+ * scrolled content.
35
+ */
36
+ const sectionAnchors = (column) => {
37
+ const columnTop = column.getBoundingClientRect().top - column.scrollTop;
38
+ return [...column.querySelectorAll(`[${SECTION_ATTRIBUTE}]`)].map((section) => ({
39
+ id: section.getAttribute(SECTION_ATTRIBUTE) ?? '',
40
+ top: section.getBoundingClientRect().top - columnTop
41
+ }));
42
+ };
43
+ /** A press on a sidebar row leaves the focus where it was, as a list row's does. */
44
+ const keepFocus = (event) => event.preventDefault();
45
+ /**
46
+ * A form too long for one view (a command's settings, a connection's
47
+ * options), in a dialog with a sidebar of its sections beside a column that
48
+ * scrolls: each section's name heads its group as an overline, a hairline
49
+ * between groups. The sidebar marks the section in view and follows the
50
+ * column as it scrolls, the way the Settings dialog marks a page's
51
+ * subsection; a row scrolls the column to its section. A press leaves the
52
+ * focus where it was; a row chosen from the keyboard (Return or Space on
53
+ * it) moves the focus to its section's first control, so a keyboard user
54
+ * lands where they asked to go. A fixed frame (`.sectioned-dialog`), so the
55
+ * dialog does not resize as its fields change; everything else, the title,
56
+ * the legend and its keys, and Escape, is `ModalDialog`'s.
57
+ */
58
+ export function SectionedDialog({ sections, openAt, notice, className, ...dialog }) {
59
+ const labels = useLabels().dialog;
60
+ const prefix = useId();
61
+ // The scrolling column, as state: a dialog under a `DialogLayer` mounts
62
+ // its frame only once the layer's element exists, after this component's
63
+ // first commit, so the effects below wait for the column, not the mount.
64
+ const [column, setColumn] = useState(null);
65
+ // Set while the column scrolls to the section a sidebar row chose, so that
66
+ // scroll keeps the choice marked even where the column cannot bring it to
67
+ // the top (a short last section).
68
+ const chosenScrollRef = useRef(false);
69
+ const [current, setCurrent] = useState(openAt ?? sections[0]?.id ?? null);
70
+ const openAtRef = useRef(openAt);
71
+ const spy = (column) => {
72
+ setCurrent(spiedSubsection(sectionAnchors(column), column));
73
+ };
74
+ // Scrolls the column to a chosen section, keeping the scroll it causes from
75
+ // moving the mark off it.
76
+ const scrollTo = (column, id) => {
77
+ const top = subsectionScrollTop(sectionAnchors(column), id);
78
+ if (top === null)
79
+ return;
80
+ const before = column.scrollTop;
81
+ column.scrollTop = top;
82
+ chosenScrollRef.current = column.scrollTop !== before;
83
+ };
84
+ const show = (id, focus) => {
85
+ setCurrent(id);
86
+ if (column === null)
87
+ return;
88
+ scrollTo(column, id);
89
+ if (focus) {
90
+ const section = [...column.querySelectorAll(`[${SECTION_ATTRIBUTE}]`)].find((candidate) => candidate.getAttribute(SECTION_ATTRIBUTE) === id);
91
+ const control = section === undefined ? null : focusFirstControl(section);
92
+ // A control past the column's end (a long list above it in its
93
+ // section) comes into view, the scroll keeping the section marked.
94
+ if (control !== null) {
95
+ const view = column.getBoundingClientRect();
96
+ const box = control.getBoundingClientRect();
97
+ if (box.top < view.top || box.bottom > view.bottom) {
98
+ const before = column.scrollTop;
99
+ control.scrollIntoView({ block: 'nearest' });
100
+ chosenScrollRef.current = chosenScrollRef.current || column.scrollTop !== before;
101
+ }
102
+ }
103
+ }
104
+ };
105
+ // Opens on the section asked for, or marks the one in view, once the
106
+ // column is in the document.
107
+ useLayoutEffect(() => {
108
+ const first = openAtRef.current;
109
+ if (column === null)
110
+ return;
111
+ if (first === undefined) {
112
+ spy(column);
113
+ }
114
+ else {
115
+ scrollTo(column, first);
116
+ }
117
+ // Runs once per column: a later openAt does not scroll an open dialog.
118
+ }, [column]);
119
+ // A section that grows or shrinks as it is filled in (a dependency added)
120
+ // moves the one in view without a scroll, so the mark follows the content.
121
+ useLayoutEffect(() => {
122
+ if (column === null || typeof MutationObserver === 'undefined')
123
+ return undefined;
124
+ const observer = new MutationObserver(() => {
125
+ if (!chosenScrollRef.current)
126
+ spy(column);
127
+ });
128
+ observer.observe(column, { childList: true, subtree: true });
129
+ return () => observer.disconnect();
130
+ }, [column]);
131
+ const classes = className === undefined ? 'sectioned-dialog' : `sectioned-dialog ${className}`;
132
+ return (_jsx(ModalDialog, { ...dialog, className: classes, children: _jsxs("div", { className: "sectioned-dialog-body", children: [_jsx("nav", { "aria-label": labels.sections, className: "sectioned-dialog-nav scroll-fade", children: sections.map((section) => (_jsx("button", { "aria-controls": `${prefix}-${section.id}`, "aria-current": section.id === current ? 'location' : undefined, className: "sectioned-dialog-nav-row", onClick: (event) => show(section.id, event.detail === 0),
133
+ // Return on a row goes to its section, as Space does, instead
134
+ // of running the dialog's primary verb, which plain Return
135
+ // runs from anywhere else in the dialog.
136
+ onKeyDown: (event) => {
137
+ if (event.key !== 'Enter' ||
138
+ event.nativeEvent.isComposing ||
139
+ event.repeat ||
140
+ event.altKey ||
141
+ event.ctrlKey ||
142
+ event.metaKey ||
143
+ event.shiftKey) {
144
+ return;
145
+ }
146
+ event.preventDefault();
147
+ event.stopPropagation();
148
+ show(section.id, true);
149
+ }, onMouseDown: keepFocus, type: "button", ...cutTooltip(section.title), children: section.title }, section.id))) }), _jsxs("div", { className: "sectioned-dialog-column", children: [notice, _jsx("div", { className: "sectioned-dialog-sections scroll-fade", onScroll: (event) => {
150
+ if (chosenScrollRef.current) {
151
+ chosenScrollRef.current = false;
152
+ }
153
+ else {
154
+ spy(event.currentTarget);
155
+ }
156
+ }, ref: setColumn, children: sections.map((section) => (_jsxs("section", { "aria-labelledby": `${prefix}-${section.id}-title`, className: "dialog-section", id: `${prefix}-${section.id}`, [SECTION_ATTRIBUTE]: section.id, children: [_jsx("h3", { className: "dialog-section-title overline", id: `${prefix}-${section.id}-title`, children: section.title }), section.children] }, section.id))) })] })] }) }));
157
+ }
@@ -423,6 +423,108 @@
423
423
  font-weight: var(--font-weight-strong);
424
424
  }
425
425
 
426
+ /* ---- Sectioned dialog (SectionedDialog) ----
427
+
428
+ A form too long for one view: a sidebar of its sections beside a column
429
+ that scrolls, both reaching the frame's edges from the title strip's rule
430
+ down to the legend's hairline. A fixed frame, so the dialog keeps its
431
+ size as fields come and go, that fits the smallest window. */
432
+ .dialog.sectioned-dialog {
433
+ width: min(860px, 100%);
434
+ height: min(640px, 100%);
435
+ }
436
+
437
+ .sectioned-dialog-body {
438
+ display: grid;
439
+ grid-template-columns: minmax(140px, 170px) minmax(0, 1fr);
440
+ flex: 1 1 auto;
441
+ min-height: 0;
442
+ margin: calc(-1 * var(--space-6));
443
+ }
444
+
445
+ /* The sidebar, a shade over the dialog's surface; the hairline beside it
446
+ is the column's, since its own edge fade would mask one of its own. */
447
+ .sectioned-dialog-nav {
448
+ display: flex;
449
+ flex-direction: column;
450
+ gap: var(--space-1);
451
+ overflow-y: auto;
452
+ padding: var(--space-4);
453
+ background: var(--scrim-strong);
454
+ }
455
+
456
+ /* A section's row: the Settings sidebar's row, its hover and press the
457
+ base sheet's quiet recipes. */
458
+ .sectioned-dialog-nav-row {
459
+ display: block;
460
+ width: 100%;
461
+ min-height: var(--bar-height);
462
+ margin: 0;
463
+ padding: calc((var(--bar-height) - var(--line-height-compact)) / 2) var(--space-4);
464
+ overflow: hidden;
465
+ border: 0;
466
+ border-radius: var(--radius-md);
467
+ background: none;
468
+ color: var(--text-dim);
469
+ cursor: default;
470
+ font: var(--font-weight-regular) var(--font-size-small) / var(--line-height-compact)
471
+ var(--font-ui);
472
+ text-align: start;
473
+ text-overflow: ellipsis;
474
+ white-space: nowrap;
475
+ }
476
+
477
+ .sectioned-dialog-nav-row:focus-visible {
478
+ outline-offset: var(--focus-offset-inset);
479
+ }
480
+
481
+ /* The section in view: the current item's tint and ring, its words full. */
482
+ .sectioned-dialog-nav-row[aria-current='location'] {
483
+ background: var(--current-bg);
484
+ box-shadow: inset 0 0 0 var(--line) var(--current-ring);
485
+ color: var(--text);
486
+ }
487
+
488
+ /* The column: a failed save's notice, which never scrolls, over the
489
+ sections, which do, fading at an edge while more lies past it. */
490
+ .sectioned-dialog-column {
491
+ display: flex;
492
+ flex-direction: column;
493
+ min-width: 0;
494
+ min-height: 0;
495
+ border-inline-start: var(--line) solid var(--border);
496
+ }
497
+
498
+ .sectioned-dialog-column > .notice {
499
+ flex: none;
500
+ padding: var(--space-4) var(--space-8) 0;
501
+ }
502
+
503
+ .sectioned-dialog-sections {
504
+ flex: 1 1 auto;
505
+ min-width: 0;
506
+ min-height: 0;
507
+ overflow-y: auto;
508
+ padding: var(--space-6) var(--space-8) var(--space-8);
509
+ }
510
+
511
+ /* Each section a group under its overline, a hairline between them. */
512
+ .dialog-section {
513
+ padding: var(--space-8) 0;
514
+ }
515
+
516
+ .dialog-section:first-child {
517
+ padding-top: 0;
518
+ }
519
+
520
+ .dialog-section + .dialog-section {
521
+ border-top: var(--line) solid var(--border);
522
+ }
523
+
524
+ .dialog-section > .dialog-section-title {
525
+ margin: 0 0 var(--space-6);
526
+ }
527
+
426
528
  /* ---- Fact list (DialogFacts) ----
427
529
 
428
530
  A desktop property list: one line per row, the labels in a leading
@@ -4,12 +4,14 @@
4
4
  * lists a confirmation's body holds (`DialogItems` for what it acts on,
5
5
  * `DialogStatements` for the statements it runs, `DialogFacts` for facts
6
6
  * about the action), the `ProgressDialog` of long work, the
7
- * `TypedNameDialog` for work a slip would cost most, and the
8
- * `DialogLayer` a host mounts them into.
7
+ * `TypedNameDialog` for work a slip would cost most, the
8
+ * `SectionedDialog` of a form too long for one view, and the `DialogLayer` a
9
+ * host mounts them into.
9
10
  */
10
11
  export { ConfirmDialog, type ConfirmDialogProps, type ConfirmTone } from './ConfirmDialog.js';
11
12
  export { DialogLayer, type DialogLayerProps } from './DialogLayer.js';
12
13
  export { ProgressDialog, type ProgressDialogProps } from './ProgressDialog.js';
14
+ export { SectionedDialog, type DialogSection, type SectionedDialogProps } from './SectionedDialog.js';
13
15
  export { TypedNameDialog, type TypedNameDialogProps } from './TypedNameDialog.js';
14
16
  export { DIALOG_ITEMS_SHOWN, DialogFacts, DialogItems, DialogStatements, shownItems, type DialogFact, type DialogFactsProps, type DialogItem, type DialogItemGroup, type DialogItemsProps, type DialogStatementsProps } from './DialogLists.js';
15
17
  export { DialogLegend, type DialogLegendProps } from './DialogLegend.js';
@@ -4,12 +4,14 @@
4
4
  * lists a confirmation's body holds (`DialogItems` for what it acts on,
5
5
  * `DialogStatements` for the statements it runs, `DialogFacts` for facts
6
6
  * about the action), the `ProgressDialog` of long work, the
7
- * `TypedNameDialog` for work a slip would cost most, and the
8
- * `DialogLayer` a host mounts them into.
7
+ * `TypedNameDialog` for work a slip would cost most, the
8
+ * `SectionedDialog` of a form too long for one view, and the `DialogLayer` a
9
+ * host mounts them into.
9
10
  */
10
11
  export { ConfirmDialog } from './ConfirmDialog.js';
11
12
  export { DialogLayer } from './DialogLayer.js';
12
13
  export { ProgressDialog } from './ProgressDialog.js';
14
+ export { SectionedDialog } from './SectionedDialog.js';
13
15
  export { TypedNameDialog } from './TypedNameDialog.js';
14
16
  export { DIALOG_ITEMS_SHOWN, DialogFacts, DialogItems, DialogStatements, shownItems } from './DialogLists.js';
15
17
  export { DialogLegend } from './DialogLegend.js';
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement, ReactNode, Ref } from 'react';
2
- import type { RegionHandlers } from '../pane/Pane.js';
2
+ import { type RegionHandlers } from '../pane/Pane.js';
3
3
  /** Props for {@link AppRoot}. */
4
4
  export interface AppRootProps {
5
5
  /**
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { regionHandlers } from '../pane/Pane.js';
2
3
  /**
3
4
  * The app window's root: one column the window's height holding its
4
5
  * content, which owns the whole window, its top band included. A window
@@ -14,7 +15,7 @@ export function AppRoot({ channel = null, children }) {
14
15
  * out of the Tab order, never a control, so it draws no ring.
15
16
  */
16
17
  export function SpacePanel({ ref, children, ...handlers }) {
17
- return (_jsx("div", { className: "space-panel", ref: ref, tabIndex: -1, ...handlers, children: children }));
18
+ return (_jsx("div", { className: "space-panel", ref: ref, tabIndex: -1, ...regionHandlers(handlers), children: children }));
18
19
  }
19
20
  /**
20
21
  * One page of the main pane: the front tab's page lays out as the pane's
@@ -1,5 +1,5 @@
1
1
  import { type ReactElement, type ReactNode, type Ref } from 'react';
2
- import type { RegionHandlers } from '../pane/Pane.js';
2
+ import { type RegionHandlers } from '../pane/Pane.js';
3
3
  /**
4
4
  * The height a dock takes: the height its host keeps, between `min` and
5
5
  * the room under the band less what the main pane keeps (`pageMin`), in
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Children, useLayoutEffect, useState } from 'react';
3
+ import { regionHandlers } from '../pane/Pane.js';
3
4
  import { useSharedRef } from './sharedRef.js';
4
5
  import { drawn } from './WindowFrame.js';
5
6
  /**
@@ -107,7 +108,7 @@ export function Dock({ open, label, height, pageMin = 160, active = false, tone,
107
108
  const classes = ['pane', 'window-dock', active ? 'active' : '', open ? '' : 'closed']
108
109
  .filter(Boolean)
109
110
  .join(' ');
110
- return (_jsxs("section", { "aria-label": label, className: classes, "data-tone": tone, ref: attach, style: { height: shown }, ...handlers, children: [onResize === undefined ? null : (_jsx("div", { "aria-label": resizeLabel, "aria-orientation": "horizontal", className: "pane-splitter", onPointerDown: start, role: "separator" })), drawn(bar) ? _jsx("div", { className: "dock-bar", children: bar }) : null, _jsx("div", { className: "dock-body", children: children })] }));
111
+ return (_jsxs("section", { "aria-label": label, className: classes, "data-tone": tone, ref: attach, style: { height: shown }, ...regionHandlers(handlers), children: [onResize === undefined ? null : (_jsx("div", { "aria-label": resizeLabel, "aria-orientation": "horizontal", className: "pane-splitter", onPointerDown: start, role: "separator" })), drawn(bar) ? _jsx("div", { className: "dock-bar", children: bar }) : null, _jsx("div", { className: "dock-body", children: children })] }));
111
112
  }
112
113
  /**
113
114
  * A dock's log: its entries over a hairline each, the newest at the foot;
@@ -1,5 +1,5 @@
1
1
  import type { LucideIcon } from 'lucide-react';
2
- import type { ReactElement } from 'react';
2
+ import { type ReactElement } from 'react';
3
3
  /** One filter of a quick row. */
4
4
  export interface FilterChip<Id extends string> {
5
5
  readonly id: Id;
@@ -23,6 +23,9 @@ export interface FilterChipsProps<Id extends string> {
23
23
  * A pane's quick row of filters under its path bar (`pane-quick-row`), as a
24
24
  * sidebar's Running and Updates: each a quiet button with its glyph, its
25
25
  * word, and its count, pressed while on. A press toggles its filter and
26
- * leaves the focus where it was.
26
+ * leaves the focus where it was. The row is one line: chips that do not
27
+ * fit scroll sideways under an edge fade (`.scroll-fade-x`), a mouse's
28
+ * vertical wheel scrolls it sideways while it can move that way
29
+ * (`sidewaysWheel`), and a chip the keys reach comes whole into view.
27
30
  */
28
31
  export declare function FilterChips<Id extends string>({ chips, on, onToggle, label }: FilterChipsProps<Id>): ReactElement;