@coolms/ui-react 0.1.0-alpha.4 → 0.1.0-alpha.40
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 +364 -4
- package/design-tokens.lock.json +14 -6
- package/dist/components/Button.d.ts +6 -3
- package/dist/components/Call.d.ts +3 -1
- package/dist/components/Collections.d.ts +24 -6
- package/dist/components/Column.d.ts +21 -0
- package/dist/components/Dialogs.d.ts +6 -2
- package/dist/components/Fields.d.ts +59 -4
- package/dist/components/FilePicker.d.ts +91 -0
- package/dist/components/FileViewer.d.ts +106 -0
- package/dist/components/FilterMenu.d.ts +51 -0
- package/dist/components/Icon.d.ts +18 -1
- package/dist/components/ListHead.d.ts +15 -0
- package/dist/components/Notification.d.ts +38 -0
- package/dist/components/PaneToolbar.d.ts +83 -0
- package/dist/components/ScreenShell.d.ts +110 -0
- package/dist/components/SectionHeader.d.ts +95 -0
- package/dist/components/SignIn.d.ts +1 -1
- package/dist/components/Splitter.d.ts +38 -0
- package/dist/components/State.d.ts +33 -0
- package/dist/components/Structure.d.ts +34 -4
- package/dist/components/Workspace.d.ts +84 -20
- package/dist/components/pull.d.ts +21 -0
- package/dist/components/tipDismissal.d.ts +14 -0
- package/dist/index.d.ts +27 -15
- package/dist/index.js +2511 -732
- package/kit.contract.json +15 -5
- package/package.json +10 -5
- package/src/kit.css +401 -41
- package/src/tokens/coolms-tokens.css +26 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,368 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@coolms/ui-react` are listed here. Versions follow [semantic versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## 0.1.0-alpha.40 (2026-12-03)
|
|
6
|
+
|
|
7
|
+
A password field can show what is typed, and a host can tell the browser what may fill a field.
|
|
8
|
+
|
|
9
|
+
- `TextField`: `reveal: { show, hide }` draws an eye at a password field's end that shows the typed text and hides it again, keeping the value. It names the field it controls, and its name says what a press does next, so it carries no pressed state. It is as wide as the field is high (a full touch target under a coarse pointer), and the field's text keeps clear of it. It is not drawn on a field that is not a password, on one that is read-only or pinned, or without its two names. (#159)
|
|
10
|
+
- `TextField`: `autoComplete` is passed to the input as given, so a host can follow a server's `new-password`. (#159)
|
|
11
|
+
- `Icon`: `eye` and `eye-off`, read from the server's `eye` and `eye-slash`. (#159)
|
|
12
|
+
|
|
13
|
+
## 0.1.0-alpha.39 (2026-12-02)
|
|
14
|
+
|
|
15
|
+
A refused phone action says why on a press, and an avatar for no one shows no letters.
|
|
16
|
+
|
|
17
|
+
- `ScreenShell`: the phone screen's primary action can be refused (`offer`, as `SectionHeader`'s primary). It stays drawn, greyed as a whole by a surface wash, and never runs. Its reason is its description, shown above it on a press, keyboard focus and hover with a fine pointer; Escape hides it. A primary the server does not offer is not drawn. (#154)
|
|
18
|
+
- `Avatar`: `placeholder` marks a name that is the host's words for no one ("No recipient yet", "No sender", a call's status). It draws the neutral person icon, never initials of those words, which stay its accessible name. `MailRow` passes it as `fromPlaceholder`, `IncomingCall` as `namePlaceholder`. (#155)
|
|
19
|
+
|
|
20
|
+
Not in the package: the button-radius test lets a button's own `::before` or `::after` inherit its radius (#154). The demo's shell has a refused-primary screen (#154).
|
|
21
|
+
|
|
22
|
+
## 0.1.0-alpha.38 (2026-12-02)
|
|
23
|
+
|
|
24
|
+
An action that cannot run says why on hover, on keyboard focus and on a press, and Escape hides that.
|
|
25
|
+
|
|
26
|
+
- `SectionHeader`: a refused action (the primary or a secondary) draws its reason instead of a native title, which only a mouse hover shows. The reason shows on hover with a fine pointer, on keyboard focus and after a press. It is the action's description, centred under the action and moved only as far as keeps it inside the header row, never wider than the row. A refused secondary is named by its label alone, and its reason keeps full contrast. (#149)
|
|
27
|
+
- `SectionHeader` and `PaneToolbar`: Escape hides a drawn reason whichever of hover, focus or a press showed it, until the pointer and the focus have left the action; a press shows it again (WCAG 1.4.13). (#149)
|
|
28
|
+
|
|
29
|
+
Not in the package: ws 8.23.1 in the lockfile clears GHSA-37g9-w4hg-h9qr; it is a development dependency only (#150). The demo's headers screen has a head in a real pane whose actions are refused (#149).
|
|
30
|
+
|
|
31
|
+
## 0.1.0-alpha.37 (2026-12-01)
|
|
32
|
+
|
|
33
|
+
A list flung to its end on a phone stays there.
|
|
34
|
+
|
|
35
|
+
- `ScreenShell`: the bar steps out only while the list's position stays in reach without it. A list longer than its box by less than the bar's height (about one row) used to snap back to its top after a fast fling. The bar collapsed, the box grew by the bar's height, and nothing was left to scroll. Such a list now keeps its bar. At the end of a long list the bar stays rather than pulling the list back. (#145)
|
|
36
|
+
|
|
37
|
+
Not in the package: the layout check flings each shell screen's list to its end (one row too long, or as long as it is) and finds any that does not stay there (#145). CI jobs time out at about twice their usual time, and a newer push cancels the run it supersedes (#144).
|
|
38
|
+
|
|
39
|
+
## 0.1.0-alpha.36 (2026-11-29)
|
|
40
|
+
|
|
41
|
+
Header and toolbar actions give way in steps, and only the last reaches More; an avatar for a person with no name says the host's label; design tokens v0.36.0.
|
|
42
|
+
|
|
43
|
+
- `SectionHeader` takes `secondary` (`SectionAction[]`): the section's other actions as quiet buttons in row 1 while they fit, by their icon and `overflow`. `more` (menu items) is still read for one release, as secondary actions. Row 1 is left to right: the secondary actions (a single menu-only one among them, last), the primary, the last action on the right, then More. (#140)
|
|
44
|
+
- `SectionHeader` is measured on its own width, and again once the web fonts are in, and gives way in the contract's order:
|
|
45
|
+
1. the description hides;
|
|
46
|
+
2. the chips said elsewhere hide;
|
|
47
|
+
3. the secondary actions drop their labels, one by one (a single menu-only button's first);
|
|
48
|
+
4. the primary drops its label, keeping its colour;
|
|
49
|
+
5. the secondary actions move into More;
|
|
50
|
+
6. the primary moves into More;
|
|
51
|
+
7. only then is the title cut, down to 64px;
|
|
52
|
+
8. last, the chips that are the only place their fact appears are cut.
|
|
53
|
+
|
|
54
|
+
`description` and `meta` (`SectionMeta[]`) are new. Its actions are one toolbar named by the title. (#140)
|
|
55
|
+
- `PaneToolbar` takes `primary` on an action: it keeps its label longest and goes behind More last. (#140)
|
|
56
|
+
- Both: More never holds one action. The first move takes two, or one beside a menu-only action; where only one could go, it stays as its icon. More's menu lists the primary first, then the actions that gave way, then the menu-only ones. (#140)
|
|
57
|
+
- Both: an action is a 44px touch target where the pointer is coarse, at any width. A desktop browser in a narrow window keeps desktop-size buttons, so a row gives way the same at 768px as at 1440px. (#140)
|
|
58
|
+
- `Avatar` has `unnamedLabel`: the host's words for a person with no name to show ("No name"), the avatar's accessible name for a blank name, with any presence after it. Left out, "?" as before. (#139)
|
|
59
|
+
- Design tokens v0.36.0 (contract 0.26.0). The contract's fixture `contract/fixtures/header-give-way.json` (served heads and the row each draws at each width) is pinned with the tokens and runs against `SectionHeader`. (#140)
|
|
60
|
+
|
|
61
|
+
Not in the package: the layout check finds any part of a row of actions past its own row's edge, reads touch from the pointer, and with `--pointer=fine` reads every width with a mouse (#140).
|
|
62
|
+
|
|
63
|
+
## 0.1.0-alpha.35 (2026-11-27)
|
|
64
|
+
|
|
65
|
+
A column's head stays at the top while its list scrolls.
|
|
66
|
+
|
|
67
|
+
- `Column` is new: a head that stays at the top (a section header, a pane toolbar, a list's head) and a body that is the column's one scroll region, filling the rest of its height, as the components contract's grid asks. The host gets the scroll region itself: `scrollRef`, `onScroll` and `bodyProps`, for a list that reads more as the person nears its end. (#135)
|
|
68
|
+
- A pane of `SplitPanes` lays its content out as a column at every width, so a `Column` in it fills its height; content that is not a `Column` scrolls with the pane as before. (#135)
|
|
69
|
+
- In a screen shell (a phone) the shell's bar is the head that stays and its content the one scroll region, which pull to refresh reads, so a `Column` there grows with its list. (#135)
|
|
70
|
+
|
|
71
|
+
Not in the package: the kit's checks find a dash used as a separator in its words (`check:ui-text`, a list of grandfathered texts that may only shrink, empty today) (#136); the layout check measures a page only once its stylesheets are in, and finds a `Column` whose head moves when its list scrolls (#135).
|
|
72
|
+
|
|
73
|
+
## 0.1.0-alpha.34 (2026-11-27)
|
|
74
|
+
|
|
75
|
+
An avatar with no letter to show says "?", and its tint can come from a stable id.
|
|
76
|
+
|
|
77
|
+
- `Avatar` shows "?" when its name gives no letter (no name, a blank one, or one of signs only), never a letter of an identifier passed for a name. With no name, or a blank one, its accessible name is "?" too, with the presence or connection after it as before. (#132)
|
|
78
|
+
- `Avatar` has `tintSeed`: what its tint is chosen from, an id that stays the same (a user's, a conversation's). Left out, the name, as before. (#132)
|
|
79
|
+
|
|
80
|
+
## 0.1.0-alpha.33 (2026-11-25)
|
|
81
|
+
|
|
82
|
+
A list's filter is one menu button, the second row's label one step under the section's title, and design tokens v0.32.0.
|
|
83
|
+
|
|
84
|
+
**Breaking.** `FilterChips` and `ScreenShell`'s `filters` are gone, with `FilterChipsProps`: a list's filter is one menu button now. Draw `ListHead` (or `FilterMenu`) where `FilterChips` was, and give `ScreenShell` `filter` in place of `filters` (`value` for `selected`, `onChange` for `onSelect`, and `defaultValue`, the choice that shows every row).
|
|
85
|
+
|
|
86
|
+
- `FilterMenu` is new: the components contract's `filter-menu`. On the default choice an icon only, the funnel; on any other choice that choice's name and a chevron in the accent, so a filtered list never looks like one with rows missing. Its menu is a single choice with a mark on the current one: Enter, Space and Down open it at the current choice, Up at the last; a second press closes it; choosing the current one changes nothing. `iconOnly` keeps the funnel, in the accent, for a bar whose title says the choice. With fewer than two choices nothing is drawn, and a value that names no choice reads as the default one and says so once, by `onChange`; while there are no choices at all they are not known yet, and nothing is said. The accessible name is the label and the choice ("Show: All"); `labels.name` gives the pattern in another language.
|
|
87
|
+
- `ListHead` is new: a list's second row, the header row's height. What leads (a select-all box), the list's name (title-sm, semibold: one step under the section title) on one line, cut with an ellipsis, its whole text as its title, then the filter at the end, which keeps its place and its width (a choice's name is cut only past 176px).
|
|
88
|
+
- `ScreenShell` has `filter`: an icon in the bar, after the search and before More, and no row of its own. On a choice other than the default the icon takes the accent and the title reads the place's name and the choice's ("Inbox · Unread"): the name is cut first, and with under 24px of it left it and its dot are not drawn, so the title is the choice alone; then the choice is cut; Back's name still gives way before both. No icon drops. Where the bar with the filter in it leaves the title less than its least (64px of the place's name, or all of a shorter one, and the choice's name whole while filtered) and More is drawn for other actions, the filter moves into More: a single choice under its label, after the other actions; More then takes the accent, and says the choice in its name, while the filter is not the default one. One width of the bar always has one answer, and the filter comes back when the width allows it. A choice that moves it gives the focus to where it then is. The bar does not step out of view while the filter's menu is open.
|
|
89
|
+
- `ContextMenu` items may be `checked` (true or false): each is then a `menuitemradio` with `aria-checked`, the current one with a check mark, and the menu opens with it focused. `focus` may be `current`, the default: the current choice, or the first item where there is none, as before. Items may carry a `group`: those of one group are drawn under its name, after a line (`role="group"`).
|
|
90
|
+
- The `funnel` icon draws as the kit's new `funnel` glyph.
|
|
91
|
+
- The design-tokens copy is v0.32.0: the components contract 0.22.0, with `filter-menu` in place of `filter-chips`, the screen shell's filter, the second row's label one step under the section's title, and a filtered title that never starts with its dot.
|
|
92
|
+
|
|
93
|
+
## 0.1.0-alpha.32 (2026-11-25)
|
|
94
|
+
|
|
95
|
+
The phone screen shell's More, Back's name giving way before the title, and design tokens v0.31.0.
|
|
96
|
+
|
|
97
|
+
- In the screen shell's bar Back's parent name gives way before the title, down to Back's icon, as the contract says; it kept its width while the title was cut. A name with no room for a readable piece (24px) is not drawn at all; it stays Back's accessible name.
|
|
98
|
+
- `ScreenShell` has More: `more` (the entries the section header shows under its own, in the tree's order) and `moreLabel`. More is an icon button in the bar, after the section's search and before the shell's own icons, opening the context menu with them; an action the server says cannot run now stays, with its sentence. With no entry shown there is no More, and while the section's search is open it gives way. The bar does not step out of view while the menu is open.
|
|
99
|
+
- The design-tokens copy is v0.31.0: the components contract 0.21.0, the phone screen shell's `with-more`.
|
|
100
|
+
|
|
101
|
+
## 0.1.0-alpha.31 (2026-11-24)
|
|
102
|
+
|
|
103
|
+
The splitter, quiet and menu buttons, one control radius, no empty menus, filter chips that wrap whole, hover only where hover exists on a touch screen, and design tokens v0.30.0.
|
|
104
|
+
|
|
105
|
+
- `Splitter` is new: the components contract's `splitter`, the one handle between two columns. An 8px strip that draws nothing at rest, the accent line on hover and while dragged, and one line in the focus ring's colour with keyboard focus (no ring around the strip), with a col-resize pointer. A drag moves the leading column within `min` and `max`; on release the width is remembered on the device under `storageKey` (in `localStorage`, every read and write guarded, so it works without storage) and read back, within today's limits, the next time it is drawn; a double-click puts it back to `default` and forgets it. It is a focusable separator (`aria-valuenow`, `aria-valuemin`, `aria-valuemax`, named by `label`): Left and Right move it by `step` (16 by default, Shift 64), Home and End take it to its limits, and each key is remembered as a release is. `onChange(width, done)` reports each move. A width the host keeps that today's limits move (a minimum measured since) is handed back once, as `onChange(width, true)`.
|
|
106
|
+
- `SplitPanes` draws the kit's `Splitter` between its panes instead of a splitter of its own, with the same limits (each pane's own, and what leaves the last pane `lastMin`). The new `storageKey` lets the device remember the widths itself, one key per split (`${storageKey}:0`, `${storageKey}:1`); `sizes` and `onResize` work as before. Enter on a splitter no longer puts the pane back to its default width; a double-click does.
|
|
107
|
+
- `PaneToolbar` actions may carry `entries`, the action node's children: the action is then a menu button (`aria-haspopup="menu"`, `aria-expanded`, a chevron after it) that opens the context menu with its entries, each with its own state (disabled with its reason, danger), and choosing one says the entry's id. An action whose `entries` is empty is not drawn at all, so no empty menu is ever opened; one that is itself disabled keeps its reason and does not open. Menu buttons give way as any other action: their label hides, and behind More actions choosing one opens its entries there.
|
|
108
|
+
- `PaneToolbar`'s buttons are the contract's quiet buttons throughout: an action's and More's hover background is the button hover (`--cms-btn-hover-bg`).
|
|
109
|
+
- Every button the kit styles has the same corners, `--cms-radius-control`, whatever its style and size: `.cms-button`, icon buttons, the section head's More, the round Send (now a rounded square), the viewer's buttons and its previous and next, the call bar's buttons, the file picker's selection toggle and breadcrumbs, and the rest. The split primary's halves keep square corners where they join. Filter chips stay pills, the call buttons' discs stay circles, and the screen shell's floating primary stays the circle its contract draws.
|
|
110
|
+
- `SectionHeader` draws a plain primary, with no menu half, when its menu has no entry to show (empty, or every entry not offered).
|
|
111
|
+
- `FilterChips` never scroll sideways or fade at an edge any more: the group keeps its whole width beside what its row holds, and where it does not fit there it goes on its own line below (in a row that wraps), its chips wrapping onto the next line in turn, each chip whole, as the contract's `filter-chips` now says. The arrow keys move between them as before. The screen shell's filter row no longer scrolls sideways either.
|
|
112
|
+
- The `hash` icon (the number sign, for browsing channels) draws as the kit's new `hash` glyph.
|
|
113
|
+
- `Button` has the contract's `quiet` variant, an action bar's button: no border and no fill at rest, the button hover (`--cms-btn-hover-bg`) under the pointer.
|
|
114
|
+
- `ScreenShell` draws no floating primary when its menu has no entry to show (empty, or every entry not offered), so no empty menu is ever opened.
|
|
115
|
+
- List rows on a touch screen: a row's hover tint, and the mail row's checkbox in the avatar's place on hover, apply only where hover exists (`(hover: hover) and (pointer: fine)`); the checkbox shows on keyboard focus (`:focus-visible`), not on focus from a tap; so with nothing selected a touch screen shows every avatar, and a deselected row goes back to its avatar. The same holds for the icon buttons, the screen shell's Back, filter chips and the pane toolbar's actions, More and tooltip: their hover applies only where hover exists, so a tap leaves no tint or tooltip behind. The demo has a phone mailbox (`#shell/mail`) with rows to select and Compose floating over the list's end.
|
|
116
|
+
- The design-tokens copy is v0.30.0: the components contract with the quiet button, one control radius and the `splitter`, and the icon contract with `hash`. The kit declares the quiet state and the splitter.
|
|
117
|
+
|
|
118
|
+
## 0.1.0-alpha.30 (2026-11-24)
|
|
119
|
+
|
|
120
|
+
The section head, the file picker restarting on a page link no longer valid, the mail row's avatar checkbox, and design tokens v0.24.0.
|
|
121
|
+
|
|
122
|
+
- `SectionHeader` draws the components contract's `section-header` (design tokens v0.23.0, contract 0.16.0): the head of a section from tablet width up. Row 1: the declared title, then the primary action (icon and label, always shown; a split button with a menu when it has entries) and More for the section's other actions, a refused one kept with the server's reason. Row 2: the context (a mailbox card, filters, breadcrumbs), only when given. No divider lines; `fullWidth` spans a one-column page.
|
|
123
|
+
- `FilePicker` restarts a folder whose page link is no longer valid (contract 0.15.0, `file-picker`): `list` throws the new `FilePickerRestart` for the server's declared problem (`/errors/page-link-invalid`, 409), and the picker reads the folder's first page again, once, the selection kept. A second restart before a next page is read is the error with Retry, so a server that keeps refusing cannot loop. Any other refusal is as before.
|
|
124
|
+
- `MailRow` carries the components contract's avatar checkbox (`list`, part avatar checkbox): with `check`, the avatar is the row's checkbox (`cms-mail-row__check`), shown as the checkbox while the pointer is over the row or the focus is within it, while `selecting` and while checked; a real checkbox named by `check.label`, whose click, tap or Space calls `check.onCheck` with Shift and Ctrl/Cmd and never opens the row. The row is now a container (`cms-mail-row`, carrying is-unread, is-selected, is-selecting, is-checked) holding the open button (`cms-mail-row__open`, aria-current when selected). Without `check`, the avatar alone, as before.
|
|
125
|
+
- `MailRow`'s unread dot never shrinks beside a long subject.
|
|
126
|
+
- Design tokens v0.24.0 (icon contract 0.9.0): the `plus-lg`, `gear` and `upload` icons draw as `plus`, the new `settings` glyph and `upload`.
|
|
127
|
+
|
|
128
|
+
## 0.1.0-alpha.29 (2026-11-23)
|
|
129
|
+
|
|
130
|
+
Filter chips on one line with a fade while more is past the edge; check:package in the release checks.
|
|
131
|
+
|
|
132
|
+
- `FilterChips` draws the components contract's `filter-chips` entry (design tokens v0.20.0, contract 0.13.0): chips that do not fit stay on one line and scroll sideways, the scrollbar hidden; the clipped edge fades at the start and at the end only while there is more past it, measured from the scroll; a chip reached by key, or chosen while partly clipped, scrolls fully into view. Before, the chips wrapped onto more lines.
|
|
133
|
+
- Design tokens v0.20.0.
|
|
134
|
+
|
|
135
|
+
- `check:package`, in `verify` after `check:types-resolution`: the package as it would be published (packed without scripts), read by Are The Types Wrong (`@arethetypeswrong/cli`, its esm-only profile, the three stylesheet exports left out) and `publint` (strict); a problem either reports fails it. Both are dev dependencies, pinned.
|
|
136
|
+
- The repository url in `package.json` is the full git url (`git+https://`), as publint suggests.
|
|
137
|
+
|
|
138
|
+
## 0.1.0-alpha.28 (2026-11-23)
|
|
139
|
+
|
|
140
|
+
Declarations that resolve under node16 and nodenext.
|
|
141
|
+
|
|
142
|
+
- The published declarations resolve under `moduleResolution` `node16` and `nodenext`: the declaration build uses NodeNext, so every relative import in the `.d.ts` files carries its `.js` extension. Before, an ESM project with nodenext resolution got every export as `any` (#53).
|
|
143
|
+
- `check:types-resolution`, in `verify`: the built package read by an ESM project with nodenext resolution and its declarations checked; any error, or an export that comes through as `any`, fails it.
|
|
144
|
+
|
|
145
|
+
## 0.1.0-alpha.27 (2026-11-23)
|
|
146
|
+
|
|
147
|
+
Design tokens v0.19.0: two icon names drawn for the workspace, and the empty pane's icon.
|
|
148
|
+
|
|
149
|
+
- `State`: the empty kind takes an optional `icon` (a name from the icon list, as the server's nodes give it), drawn above the title, decorative, 32px on a page and 24px elsewhere; a name the kit does not draw leaves no box.
|
|
150
|
+
- Design tokens v0.19.0: the icon list 0.8.0 names `chat-dots` and `folder2-open` for the workspace too, and the kit draws them as `chat` and `folder`; the components contract 0.12.0 (pane header row, list selection), with `settings-shell` not offered until a screen of the kit draws a settings layout.
|
|
151
|
+
|
|
152
|
+
## 0.1.0-alpha.26 (2026-11-23)
|
|
153
|
+
|
|
154
|
+
Mail rows back to three lines at every width, on design tokens v0.14.0.
|
|
155
|
+
|
|
156
|
+
- Design tokens v0.14.0 (#102): `--cms-list-row-height-three-line` (84px), and the `state` entry's optional icon and empty pane part.
|
|
157
|
+
- `MailRow` back to three lines at every width (the sender and the time; the subject, with the unread dot; the preview), at least `--cms-list-row-height-three-line` (84px): .875, .8125 and .75rem at line-height 1.5, 2px apart, 10px above and below. The compact density heights stay for the other lists. The two-line desktop row and the phone's own rule of alpha.25 are gone.
|
|
158
|
+
|
|
159
|
+
## 0.1.0-alpha.25 (2026-11-22)
|
|
160
|
+
|
|
161
|
+
Mail rows at the list density tokens: two lines from tablet width up, three on a phone.
|
|
162
|
+
|
|
163
|
+
- `MailRow` by the list density rule: from tablet width up two lines (the sender and the time; the subject, then the muted preview on one cut line) at `--cms-list-row-height-two-line`; on a phone three lines from `--cms-list-row-height-phone-two-line`. The row's height is the token's, its padding only centres it.
|
|
164
|
+
|
|
165
|
+
## 0.1.0-alpha.24 (2026-11-22)
|
|
166
|
+
|
|
167
|
+
Design tokens v0.13.0: the list density tokens, the list's density and columns parts, and the served icon list 0.7.0, every Workspace name in it drawn by the kit.
|
|
168
|
+
|
|
169
|
+
- Design tokens v0.13.0 (a3767861cd02baaf26980596179bab8815e7a66a), from v0.11.0: the list density tokens (`list-row-height` 40px and `list-row-height-two-line` 52px from tablet width up, `list-row-height-phone` 48px and `list-row-height-phone-two-line` 60px at phone width), the list contract's `density` and `columns` parts, and `contract/icons.json` 0.7.0 (111 names, 31 for the Workspace).
|
|
170
|
+
- `iconForName`: the names the Drive sections and the Chat composer trees add for the Workspace (icons list 0.7.0): `file-earmark-text` (file), `folder2` (folder), `images` (image) and `paperclip`.
|
|
171
|
+
|
|
172
|
+
## 0.1.0-alpha.23 (2026-11-21)
|
|
173
|
+
|
|
174
|
+
A tap that opens a view no longer folds the screen shell's bar.
|
|
175
|
+
|
|
176
|
+
- `ScreenShell` `bar-hidden`: a reader's input counts only for a scroll of the element it was aimed at (its target inside it, or a key aimed at the whole page). A tap that opens a view, such as a conversation that then scrolls to its latest message, no longer folds the bar.
|
|
177
|
+
|
|
178
|
+
## 0.1.0-alpha.22 (2026-11-21)
|
|
179
|
+
|
|
180
|
+
The screen shell's bar steps aside only for the reader's own scroll, never for a scroll the host makes, and never moves with motion when reduced motion is set.
|
|
181
|
+
|
|
182
|
+
- `ScreenShell` `bar-hidden`: only a scroll that follows the reader's own input (a wheel, a touch, a key, a press on a scrollbar) moves the bar. A scroll the host makes itself, such as a conversation opening at its latest message, keeps it in view.
|
|
183
|
+
- `ScreenShell`: the bar's show and hide never animate when the reader prefers reduced motion.
|
|
184
|
+
|
|
185
|
+
## 0.1.0-alpha.21 (2026-11-21)
|
|
186
|
+
|
|
187
|
+
The kit on design tokens v0.11.0 (contract 0.6.0, with the served icon list): the screen shell steps its bar out of the way while scrolling down, one header at phone width, and the Workspace's served icon names.
|
|
188
|
+
|
|
189
|
+
- Tokens: the copy is design-tokens v0.11.0 (eea2e13), contract 0.6.0, and `contract/icons.json` is copied and pinned with it: the icon names the server's navigation trees use, each with the interfaces whose trees use it.
|
|
190
|
+
- `ScreenShell`: `bar-hidden` (contract 0.6.0). The bar and the filters step out of view while the content, or any pane in it that scrolls on its own, scrolls down past 48px, and come back on any scroll up, at the top, or when focus moves into the bar; never while searching, pulling or refreshing. `barHidden` hands the decision to the host. Collapsed rather than removed, so focus can still reach the bar.
|
|
191
|
+
- `AppShell` at phone width: while a screen shell is drawn in it, its own top bar gives way, so the screen's bar is the only header (contract 0.6.0: one header at phone width). A host no longer needs its own rule for it.
|
|
192
|
+
- `iconForName`: the served names the Workspace's trees use since the Chat and Drive trees: `arrow-left` (chevron-left), `pencil-square` (pencil), `cloud-upload` (the new `upload` icon), `people` (the new `users` icon), `file-earmark-word` and `file-earmark-spreadsheet` (file). A test reads `contract/icons.json` and fails, naming it, for any name listed for the Workspace that has no icon.
|
|
193
|
+
- `ScreenShell` / `usePull`: a pull starts only when every region that scrolls under the finger, up to the shell's content, is at its top. A list that scrolls in its own box inside the shell, scrolled down, takes a downward drag as its own scroll, not as a refresh.
|
|
194
|
+
|
|
195
|
+
## 0.1.0-alpha.20 (2026-11-20)
|
|
196
|
+
|
|
197
|
+
The server's icon names the folder menu and the image bar use, and a space kept for a name the kit does not know.
|
|
198
|
+
|
|
199
|
+
- `Icon`: `folder-plus`, `folder-x`, `user-check` and `user-x`, in the set's stroke style.
|
|
200
|
+
- `BOOTSTRAP_ICONS` / `iconForName`: `pencil` is `pencil`, `trash3` is `trash`, `folder-plus` and `folder-x` are themselves, `image` is `image`, `person-check` is `user-check`, and `person-x` is `user-x`.
|
|
201
|
+
- `NamedIcon` (new): a server's icon by its name, 18px by default, for a row of items. A name the table does not hold draws an empty space of the same size, so the labels beside it line up, and says so once per name in the console outside production. No name draws nothing.
|
|
202
|
+
|
|
203
|
+
## 0.1.0-alpha.19 (2026-11-20)
|
|
204
|
+
|
|
205
|
+
The screen shell at phone width, on design tokens 0.10.0 (contract 0.5.0).
|
|
206
|
+
|
|
207
|
+
- `ScreenShell` (contract `screen-shell`): one screen of a section at phone width. One bar: the section's navigation at its root, or Back named by the parent on a nested screen; the title; the section's search, then the shell's own icons (the bell, the avatar). Optional filter chips under it, exactly one selected. The content scrolls on its own and refreshes by a pull from its top (`onRefresh`, 64px); the primary action floats at the bottom right as one button or a menu of declared entries, and the content ends with room for it. While the section's search is open (`searching`), the bar is Close and the host's search field.
|
|
208
|
+
- `usePull`, `PULL_AT`, `usePullState`: the pull, shared; a `List` inside a shell draws it (state `pulled`) with the sync time, then the refreshing state.
|
|
209
|
+
- `List`: one row anatomy, flat on one surface with light separators, no border or card; a row may be `unread` (the title semibold) and carry a `count` under its meta.
|
|
210
|
+
- `Avatar`: `connection` (on one's own avatar, the live connection as its dot, said in words as its name and tooltip), `deleted` (a neutral person icon, never initials), and presence `busy`, drawn as away.
|
|
211
|
+
- Icons: `user`, a person.
|
|
212
|
+
- Tokens: the copy is design-tokens v0.10.0 (a075e93); only the components contract changed (the screen shell, its search part, the list's row and the avatar's states).
|
|
213
|
+
|
|
214
|
+
## 0.1.0-alpha.18 (2026-11-20)
|
|
215
|
+
|
|
216
|
+
A sender's own initials when a service sent on their behalf.
|
|
217
|
+
|
|
218
|
+
- `Avatar` / `initialsOf`: a trailing "via <service>" is left out before the initials are taken, so a message sent on someone's behalf shows the sender's own: "Valentina Zagnetova via LinkedIn" is VZ, not VL. Only a lowercase "via", as relays write it: "Maria Via Rossi" stays MR. Each initial is the word's first letter or digit, so a name in quotes ("'Anna Kowalska' via Partners") is AK.
|
|
219
|
+
|
|
220
|
+
## 0.1.0-alpha.17 (2026-11-19)
|
|
221
|
+
|
|
222
|
+
The pane toolbar always reaches More, and two icons of their own.
|
|
223
|
+
|
|
224
|
+
- `PaneToolbar`: More is always reached. In a row too narrow for its pinned actions and More, after the overflow, the pinned go behind More too, from the end of the row, and its menu lists them after the overflow; no action is cut off at the row's edge. One action alone goes behind More when no other can go with it and that alone lets the row fit (one keeping its label, without an icon).
|
|
225
|
+
- Icons: `envelope-open` draws an open envelope (`mail-open`), apart from `envelope`, and `clipboard` draws a clipboard (`copy`), so Show message and Copy source have their own icons.
|
|
226
|
+
|
|
227
|
+
## 0.1.0-alpha.16 (2026-11-19)
|
|
228
|
+
|
|
229
|
+
The design tokens 0.8.0 with their control heights, and the kit covering every entry of their contract 0.3.0.
|
|
230
|
+
|
|
231
|
+
- Tokens: the copy is design-tokens v0.8.0, with `--cms-control-height-sm` (32px), `-md` (40px; 44px on a coarse pointer) and `-lg` (44px). `tools/check-css.mjs` is its copy that keeps the coarse-pointer block.
|
|
232
|
+
- Control heights: a button, a text field and a select are `--cms-control-height-md`: 40px with a mouse, 44px on a touch screen, as the token says. A button's height is no longer set again by the window's width.
|
|
233
|
+
- `Notification`: one notification in a list (contract `notification`: unread, read, collapsed, expanded, with-action, row-action). Pressing the row reads it and follows only a row action the host can follow; a button action goes only from its button, after the text; the chevron opens the body and reads it.
|
|
234
|
+
- `FileViewer`: `state` draws loading, an error (Retry only when the caller gives it) or no preview (Download as its action) inside the content, the top bar staying; `editing.conflict` asks, above the editor, whether to overwrite the other version or keep both, and saves nothing on its own.
|
|
235
|
+
- `ContextMenu`: a refused or disabled item is described by its reason (`aria-describedby`), as the pane toolbar's disabled action is (contract `item-disabled`); an item's icon and words share one line.
|
|
236
|
+
- The kit declares `file-viewer`, `file-picker`, `pane-toolbar` and `notification` against the contract, state by state.
|
|
237
|
+
- `tools/check-layout.mjs`: below the desktop width the browser is a touch screen's (a coarse pointer, no hover), so a control's touch height is the one measured; the demo has a notifications screen.
|
|
238
|
+
|
|
239
|
+
## 0.1.0-alpha.15 (2026-11-18)
|
|
240
|
+
|
|
241
|
+
Resizable panes.
|
|
242
|
+
|
|
243
|
+
- `SplitPanes`: `sizes` gives the panes before the last a width, limits, a width to put back and a splitter's name; where every pane shows, a splitter is drawn after each. A splitter is a vertical separator with its width and limits, dragged by mouse, touch or pen, moved 16 px by the arrow keys, taken to its limits by Home and End, and put back by a double-click or Enter. `onResize` reports a move while it is dragged and once more when the drag or the key ends. The last pane is never narrower than `lastMin` (360 by default); as the window narrows the pane nearest it gives way first. Where fewer panes show, there is no splitter.
|
|
244
|
+
- `fitPanes(sizes, room, lastMin)`: the widths the panes take in a given room, as `SplitPanes` lays them out.
|
|
245
|
+
|
|
246
|
+
## 0.1.0-alpha.14 (2026-11-18)
|
|
247
|
+
|
|
248
|
+
Number, date and time fields, and a field of several lines, for forms the server declares.
|
|
249
|
+
|
|
250
|
+
- `TextField`: `type` adds `number`, `date`, `time` and `datetime-local`, native inputs, so a phone shows its own keyboard or picker and assistive technology reads them as what they are. The server's constraints are the input's own: `min`, `max`, `step`, `minLength`, `maxLength` and `required`. A number with a fractional or `any` step asks for the decimal keyboard. `locale` (the person's) is the input's language, and a read-only or pinned date or time is written out in it as the wall-clock value it is, with its ISO value in `data-value`; a value naming no real date or time is shown as given. While a date or time is edited, the device's picker shows the browser's own format.
|
|
251
|
+
- `writtenOut(type, value, locale)`: the same writing out, for a host.
|
|
252
|
+
- `TextArea`: several lines in the text field's frame and states, with `rows`, `minLength`, `maxLength`, `required` and `locale`.
|
|
253
|
+
|
|
254
|
+
## 0.1.0-alpha.13 (2026-11-17)
|
|
255
|
+
|
|
256
|
+
The viewer's side arrows say where they go, and the next one stands clear of the scrollbar.
|
|
257
|
+
|
|
258
|
+
- `FileViewer`: each side arrow's label (`siblings.previousLabel` / `nextLabel`) is also its tooltip, so the caller's words ("Next attachment: Receipt.pdf") show on hover. The next arrow stands 20px further in from the content's right edge, clear of the content's own vertical scrollbar.
|
|
259
|
+
|
|
260
|
+
## 0.1.0-alpha.12 (2026-11-16)
|
|
261
|
+
|
|
262
|
+
A disabled action's reason is read out with it, and a press shows it.
|
|
263
|
+
|
|
264
|
+
- `PaneToolbar`: a disabled action's reason describes it (`aria-describedby`), so it is read out with the action, and a press shows it as hover and focus do, until focus leaves or Escape. A press still runs nothing.
|
|
265
|
+
|
|
266
|
+
## 0.1.0-alpha.11 (2026-11-15)
|
|
267
|
+
|
|
268
|
+
Show original stays in More, and a toolbar's labels give way one by one.
|
|
269
|
+
|
|
270
|
+
- `PaneToolbar`: as the pane narrows, labels hide one by one, in the overflow order (lower priority first, a
|
|
271
|
+
priority's actions together), then the pinned actions' from the end of the row; only once every label is hidden do
|
|
272
|
+
actions go behind More, in the same order, never one alone. They come back in the reverse order. An action hiding its
|
|
273
|
+
label keeps it as its tooltip. The row is marked `cms-pane-toolbar--labels-partly-hidden` between the two, the
|
|
274
|
+
contract's new `labels-partly-hidden` state.
|
|
275
|
+
- `PaneToolbar`: the classes named as the contract names them. An action whose label is hidden is
|
|
276
|
+
`cms-pane-toolbar__action--bare` (renamed `--icon` to `--bare`), and an action drawn without an icon is
|
|
277
|
+
`cms-pane-toolbar__action--text`, the same in both kits.
|
|
278
|
+
- `PaneToolbar`: `overflow: 0` means menu only. The action is never drawn in the row, at any width, and always sits behind
|
|
279
|
+
More, first in its menu. More is drawn for it even when it is alone. Its label takes no part in the giving way, and the
|
|
280
|
+
rule that one action never goes behind More alone counts only the actions that could have stayed in the row.
|
|
281
|
+
- `Icon`: `file-code`, a file with code's angle brackets, for the server's `file-earmark-code` (Show original).
|
|
282
|
+
|
|
283
|
+
## 0.1.0-alpha.10 (2026-11-10)
|
|
284
|
+
|
|
285
|
+
The row of actions at the top of a pane, drawn from the server's action nodes.
|
|
286
|
+
|
|
287
|
+
- `ContextMenu` takes `focus`, the item focused as it opens; `PaneToolbar`'s More opens its menu on the last item with Up.
|
|
288
|
+
- `PaneToolbar`, the contract's `pane-toolbar`: the one row of actions at the top of a pane, the
|
|
289
|
+
same height in every pane. It draws the actions it is given, as the server's action nodes give them (id, label, icon,
|
|
290
|
+
group, overflow priority, danger, disabled), and says which was chosen by its id. As the pane narrows every label
|
|
291
|
+
hides at once, then actions go behind More by their overflow priority, never one alone, a priority's actions together.
|
|
292
|
+
One Tab stop, a status at the end.
|
|
293
|
+
- Icons `forward` and `refresh`.
|
|
294
|
+
|
|
295
|
+
## 0.1.0-alpha.9 (2026-11-09)
|
|
296
|
+
|
|
297
|
+
A quick reply that carries its own controls and decides when it may be sent.
|
|
298
|
+
|
|
299
|
+
- `Composer` takes `leading`, a quick reply's own controls at the start of its last row before Send, and `canSend`,
|
|
300
|
+
which decides whether Send sends in place of the text being non-empty.
|
|
301
|
+
|
|
302
|
+
## 0.1.0-alpha.8 (2026-11-09)
|
|
303
|
+
|
|
304
|
+
Choosing files a person already has, and a file viewer that keeps to the screen.
|
|
305
|
+
|
|
306
|
+
- Added: `FilePicker`, for choosing files that already exist in the person's spaces, such as Drive, to attach them
|
|
307
|
+
without downloading and uploading them again (contract component `file-picker`). The kit knows no API: the host
|
|
308
|
+
gives the spaces, lists a folder page by page (`list(space, path, cursor?)`), and receives the chosen entries with
|
|
309
|
+
the space and path each was chosen in.
|
|
310
|
+
- The selection holds across folders and spaces; the footer counts all of it, and a chip lists it, with Remove and
|
|
311
|
+
Clear.
|
|
312
|
+
- An optional `budget` (`usedBytes`, `limitBytes`, `cost`) is counted here: what is left after the selection, and
|
|
313
|
+
a file that would go over is disabled with the host's words for it. `disabledReason` adds the host's own reasons.
|
|
314
|
+
Attach is disabled with nothing chosen and while over.
|
|
315
|
+
- A listbox with aria-multiselectable: Up, Down, Home and End move, Enter opens a folder, Space ticks a file,
|
|
316
|
+
Backspace goes up, Escape cancels. The breadcrumb is a navigation landmark. A page further is asked for near the
|
|
317
|
+
end of the list.
|
|
318
|
+
- Loading, empty and error with Retry through `State`; a folder the person may not open (`FilePickerDenied` from
|
|
319
|
+
`list`) is denied in place, the dialog staying open.
|
|
320
|
+
- A dialog of fixed height on a wide screen; the whole screen on a phone, its foot kept at the bottom.
|
|
321
|
+
- `kit.contract.json` does not declare it yet: no released design-tokens version has the entry.
|
|
322
|
+
- Fixed: the file viewer is never wider than the screen. A viewer bar wider than a phone widened the whole overlay;
|
|
323
|
+
now the overlay is one column the screen's width, and the bar scrolls sideways in its place, its controls centred
|
|
324
|
+
while they fit.
|
|
325
|
+
- `Modal` takes `initialFocus`, what takes the focus on opening when it is not the body's first control, and
|
|
326
|
+
`className`, for a component drawn in it that has a layout of its own.
|
|
327
|
+
|
|
328
|
+
## 0.1.0-alpha.7 (2026-11-08)
|
|
329
|
+
|
|
330
|
+
An icon of its own for the important folder.
|
|
331
|
+
|
|
332
|
+
- Added: the `important` icon, a marker shaped as a label's chevron, for a mail client's important folder. The bell
|
|
333
|
+
stays for notifications alone. The demo's mail folders show it after Starred.
|
|
334
|
+
|
|
335
|
+
## 0.1.0-alpha.6 (2026-11-08)
|
|
336
|
+
|
|
337
|
+
A file opens over the page, and every place that waits, finds nothing or is refused says so in one way.
|
|
338
|
+
|
|
339
|
+
- Added: `FileViewer`, the overlay a file's adapter goes inside. It draws no file itself.
|
|
340
|
+
- The top bar has Close, the type badge and the name, then the caller's actions (Download, Print, Open separately),
|
|
341
|
+
in a menu on a phone. Edit is there only when the caller passes it.
|
|
342
|
+
- Close leaves the viewer, asking the caller first when there is unsaved work; Done returns from editing.
|
|
343
|
+
Escape closes only while viewing.
|
|
344
|
+
- Focus starts on Close, stays among what is drawn, and returns to what opened the viewer. The page behind does not
|
|
345
|
+
scroll.
|
|
346
|
+
- Arrows, swipes and side buttons move through a set of files. A field, an editor, or anything marked
|
|
347
|
+
`data-viewer-keys` or `data-viewer-gestures` keeps its keys and gestures. A key held with Ctrl, Cmd or Alt is left
|
|
348
|
+
to the browser.
|
|
349
|
+
- Plus, minus and 0 call `onZoom`. The viewer bar, thumbnails and strip hold what the adapter gives.
|
|
350
|
+
- `download`, `print` and `open-separately` join the icons.
|
|
351
|
+
- `kit.contract.json` does not declare it yet: design-tokens v0.7.1 has no entry for it.
|
|
352
|
+
- Added: `State`, for loading, empty, error and denied, at a page's, a card's or a line's size, with the caller's
|
|
353
|
+
title, description and action. Loading shows nothing until `STATE_DELAY_MS` (the `state-delay` token) has passed.
|
|
354
|
+
`elevation-required` is declared not offered, since this kit's clients never elevate.
|
|
355
|
+
- Changed: the kit is checked against design-tokens v0.7.1, from v0.7.0.
|
|
356
|
+
|
|
357
|
+
## 0.1.0-alpha.5 (2026-11-04)
|
|
358
|
+
|
|
359
|
+
A field is drawn once.
|
|
360
|
+
|
|
361
|
+
- Fixed: `SignInForm`'s inputs carried the class of a field's frame, `cms-field`, so their box (a border, a fixed
|
|
362
|
+
44px height, padding and a background) fell on the frame of every `TextField`, `Select` and `Toggle` too: each field
|
|
363
|
+
drew two boxes, and its help text ran over the next label. The sign-in inputs are now `cms-signin-form__input`, and
|
|
364
|
+
the frame is a column of label, box and help only. A page that styled the sign-in inputs as `.cms-field` styles
|
|
365
|
+
them as `.cms-signin-form__input`.
|
|
366
|
+
|
|
5
367
|
## 0.1.0-alpha.4 (2026-11-02)
|
|
6
368
|
|
|
7
369
|
The kit's words come from the app, and the composer leaves an input method's Enter alone.
|
|
@@ -51,13 +413,11 @@ The token file is CSS a browser keeps whole.
|
|
|
51
413
|
`design-tokens.lock.json` with the tag's commit.
|
|
52
414
|
- Added: `tools/check-css.mjs`, copied from v0.5.0 and pinned the same way, runs on the token file in
|
|
53
415
|
`tokens:check`; `tools/check-css-teeth.mjs` makes sure it still fails a `//` header and a missing file.
|
|
54
|
-
- Changed: the README's install line names no version
|
|
55
|
-
later.
|
|
416
|
+
- Changed: the README's install line names no version, and says to use 0.1.0-alpha.2 or later.
|
|
56
417
|
|
|
57
418
|
## 0.1.0-alpha.1 (2026-10-23)
|
|
58
419
|
|
|
59
|
-
The first pre-release.
|
|
60
|
-
`design-tokens.lock.json` (#1).
|
|
420
|
+
The first pre-release. The package carries `design-tokens.lock.json` (#1).
|
|
61
421
|
|
|
62
422
|
- The 15 components of the CoolMS UI contract, each in every state the contract names. `elevation-required` is not
|
|
63
423
|
offered.
|
package/design-tokens.lock.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repository": "coolms/design-tokens",
|
|
3
|
-
"tag": "v0.
|
|
4
|
-
"commit": "
|
|
3
|
+
"tag": "v0.36.0",
|
|
4
|
+
"commit": "f6c0293f514a51a6adc1d98cc4c56273a99eafab",
|
|
5
5
|
"files": {
|
|
6
6
|
"dist/coolms-tokens.css": {
|
|
7
7
|
"to": "src/tokens/coolms-tokens.css",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "2c9304e54dd7692ddd7987f01b0c26bc866152a09b52ee34c78ebccaf0fc90e8"
|
|
9
9
|
},
|
|
10
10
|
"contract/components.json": {
|
|
11
11
|
"to": "contract/components.json",
|
|
12
|
-
"sha256": "
|
|
12
|
+
"sha256": "cec38a4c7f47a12a2796be7e7ffcf15a337c3cd9165b713765b28717a488d532"
|
|
13
13
|
},
|
|
14
14
|
"contract/server-states.json": {
|
|
15
15
|
"to": "contract/server-states.json",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
},
|
|
18
18
|
"tools/check-kit.mjs": {
|
|
19
19
|
"to": "tools/check-kit.mjs",
|
|
20
|
-
"sha256": "
|
|
20
|
+
"sha256": "c48ac67d267aec11698ab362a8095a355eea8c8775c313d4261be2c60b65d0bb"
|
|
21
21
|
},
|
|
22
22
|
"tools/check-css.mjs": {
|
|
23
23
|
"to": "tools/check-css.mjs",
|
|
24
|
-
"sha256": "
|
|
24
|
+
"sha256": "aad1b7d00c46577346b4fc38ddfe0047633a61f4eebe39959918811eb134fd12"
|
|
25
25
|
},
|
|
26
26
|
"fonts/inter.css": {
|
|
27
27
|
"to": "src/fonts/inter.css",
|
|
@@ -42,6 +42,14 @@
|
|
|
42
42
|
"fonts/OFL.txt": {
|
|
43
43
|
"to": "src/fonts/OFL.txt",
|
|
44
44
|
"sha256": "262481e844521b326f5ecd053e59b98c8b2da78c8ee1bdbb6e8174305e54935a"
|
|
45
|
+
},
|
|
46
|
+
"contract/icons.json": {
|
|
47
|
+
"to": "contract/icons.json",
|
|
48
|
+
"sha256": "bf8856c702f5c989b1878b96e534dbffb24a4d831adcf81236db324c2f5f5d19"
|
|
49
|
+
},
|
|
50
|
+
"contract/fixtures/header-give-way.json": {
|
|
51
|
+
"to": "contract/fixtures/header-give-way.json",
|
|
52
|
+
"sha256": "b43ddaf8cff636ce3d06a7cee8bfa5e3142f62021eba8af4573ddb24cd5d7b19"
|
|
45
53
|
}
|
|
46
54
|
}
|
|
47
55
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* secondary (the default); primary, the filled one, at most one per screen; danger, for an action that destroys or
|
|
5
|
+
* cannot be undone; quiet, an action bar's: no border and no fill at rest.
|
|
6
|
+
*/
|
|
7
|
+
readonly variant?: 'secondary' | 'primary' | 'danger' | 'quiet';
|
|
5
8
|
/** The action is running: the button keeps its place, says so, and cannot be pressed twice. */
|
|
6
9
|
readonly busy?: boolean;
|
|
7
10
|
/** What the button says while busy; defaults to its own label. */
|
|
@@ -15,7 +18,7 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
|
|
|
15
18
|
readonly children: ReactNode;
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
|
-
* An action (contract component `button`: default, primary, danger, disabled, busy, locked). A busy button is not
|
|
21
|
+
* An action (contract component `button`: default, primary, danger, disabled, busy, locked, quiet). A busy button is not
|
|
19
22
|
* disabled to assistive technology's eyes alone: `aria-busy` says why it does nothing now. A locked one stays
|
|
20
23
|
* pressable -- the press is how the person asks for elevation -- and names why it is locked.
|
|
21
24
|
*/
|
|
@@ -26,6 +26,8 @@ export declare const CALL_LABELS: CallLabels;
|
|
|
26
26
|
export interface IncomingCallProps {
|
|
27
27
|
/** Who is calling. */
|
|
28
28
|
readonly name: string;
|
|
29
|
+
/** `name` is the host's words for no one (the call's status while the caller is unknown): a neutral person icon. */
|
|
30
|
+
readonly namePlaceholder?: boolean;
|
|
29
31
|
readonly media: 'audio' | 'video';
|
|
30
32
|
readonly onAccept: () => void;
|
|
31
33
|
readonly onDecline: () => void;
|
|
@@ -33,7 +35,7 @@ export interface IncomingCallProps {
|
|
|
33
35
|
readonly labels?: Partial<CallLabels>;
|
|
34
36
|
}
|
|
35
37
|
/** A call ringing on this device: who, and Accept or Decline. An alert dialog, so a screen reader announces it. */
|
|
36
|
-
export declare function IncomingCall({ name, media, onAccept, onDecline, labels }: IncomingCallProps): ReactNode;
|
|
38
|
+
export declare function IncomingCall({ name, namePlaceholder, media, onAccept, onDecline, labels }: IncomingCallProps): ReactNode;
|
|
37
39
|
export interface CallPanelProps {
|
|
38
40
|
readonly name: string;
|
|
39
41
|
/** How long the call has lasted ("04:12"). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { Offer } from '../server/capability';
|
|
2
|
+
import type { Offer } from '../server/capability.js';
|
|
3
3
|
export interface ListRow {
|
|
4
4
|
readonly id: string;
|
|
5
5
|
readonly primary: ReactNode;
|
|
@@ -8,6 +8,10 @@ export interface ListRow {
|
|
|
8
8
|
readonly lead?: ReactNode;
|
|
9
9
|
/** Trailing text: a date, a size. */
|
|
10
10
|
readonly meta?: ReactNode;
|
|
11
|
+
/** Not read yet: the title in semibold. */
|
|
12
|
+
readonly unread?: boolean;
|
|
13
|
+
/** A count under the meta (unread messages in a conversation). */
|
|
14
|
+
readonly count?: number;
|
|
11
15
|
}
|
|
12
16
|
export interface ListProps {
|
|
13
17
|
/** What the rows are, for a screen reader ("Messages"). */
|
|
@@ -31,7 +35,9 @@ export interface ListProps {
|
|
|
31
35
|
}
|
|
32
36
|
/**
|
|
33
37
|
* Rows of objects, each opened by a press; a row's other actions in its menu (contract component `list`: loading,
|
|
34
|
-
* empty, populated, selected, error). Up and Down move between rows; Enter opens one.
|
|
38
|
+
* empty, populated, selected, error, pulled). Up and Down move between rows; Enter opens one. Every row has one anatomy:
|
|
39
|
+
* a leading icon or avatar, a title (semibold while unread), a secondary line, the meta with a count under it; rows sit
|
|
40
|
+
* on one surface, never cards. Inside a screen that takes a pull, the list draws it at its top (pulled).
|
|
35
41
|
*/
|
|
36
42
|
export declare function List({ label, rows, error, onRetry, loadingText, emptyTitle, emptyHint, selected, onOpen, onRowMenu }: ListProps): ReactNode;
|
|
37
43
|
export interface MenuItem {
|
|
@@ -41,6 +47,10 @@ export interface MenuItem {
|
|
|
41
47
|
readonly offer: Offer;
|
|
42
48
|
/** Destroys or cannot be undone. */
|
|
43
49
|
readonly danger?: boolean;
|
|
50
|
+
/** Given, the item is one choice of a single choice: the current one (marked) or not. Not given, a plain item. */
|
|
51
|
+
readonly checked?: boolean;
|
|
52
|
+
/** The group it is in: the items of one group, beside each other, are drawn under its name, apart from the rest. */
|
|
53
|
+
readonly group?: string;
|
|
44
54
|
readonly onSelect: () => void;
|
|
45
55
|
}
|
|
46
56
|
export interface ContextMenuProps {
|
|
@@ -53,10 +63,18 @@ export interface ContextMenuProps {
|
|
|
53
63
|
readonly items: readonly MenuItem[];
|
|
54
64
|
readonly onClose: () => void;
|
|
55
65
|
readonly label?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The item focused as it opens: the current choice (the first item without one), the first, or the last (a menu
|
|
68
|
+
* button opened with Up).
|
|
69
|
+
*/
|
|
70
|
+
readonly focus?: 'current' | 'first' | 'last';
|
|
56
71
|
}
|
|
57
72
|
/**
|
|
58
|
-
* The selected object's actions (contract component `context-menu`: open, item-danger, item-locked, item-refused
|
|
59
|
-
* An item the server withheld is not drawn; a locked one carries its lock; a refused
|
|
60
|
-
*
|
|
73
|
+
* The selected object's actions (contract component `context-menu`: open, item-danger, item-locked, item-refused,
|
|
74
|
+
* item-disabled). An item the server withheld is not drawn; a locked one carries its lock; a refused or disabled one
|
|
75
|
+
* stays in the menu, reached by the arrow keys, aria-disabled, with the server's reason under its label and as its
|
|
76
|
+
* description; choosing it does nothing and the menu stays open. Escape, a press outside, or a choice closes it, and focus goes back where it was.
|
|
77
|
+
* Items with `checked` are a single choice: each a menuitemradio, the current one with a check mark.
|
|
78
|
+
* Items of one `group` are a group named by it, under its name and a line.
|
|
61
79
|
*/
|
|
62
|
-
export declare function ContextMenu({ at, items, onClose, label }: ContextMenuProps): ReactNode;
|
|
80
|
+
export declare function ContextMenu({ at, items, onClose, label, focus }: ContextMenuProps): ReactNode;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode, Ref, UIEventHandler } from 'react';
|
|
2
|
+
export interface ColumnProps {
|
|
3
|
+
/** What stays at the column's top and never scrolls: its section header, a pane toolbar, a list's head. */
|
|
4
|
+
readonly head?: ReactNode;
|
|
5
|
+
/** The column's list or content, in its one scroll region. */
|
|
6
|
+
readonly children?: ReactNode;
|
|
7
|
+
readonly className?: string;
|
|
8
|
+
/** The scroll region itself, for a host that reads more as the person scrolls. */
|
|
9
|
+
readonly scrollRef?: Ref<HTMLDivElement>;
|
|
10
|
+
readonly onScroll?: UIEventHandler<HTMLDivElement>;
|
|
11
|
+
/** Further attributes of the scroll region (a `data-list` name, an accessible name). */
|
|
12
|
+
readonly bodyProps?: Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onScroll'> & {
|
|
13
|
+
readonly [data: `data-${string}`]: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A column of a fill layout (contract `split-panes`, grid: each pane has exactly one scroll region): a head that stays at
|
|
18
|
+
* the top, and under it a body that scrolls on its own and fills the rest of the column's height. In a pane of
|
|
19
|
+
* SplitPanes, in a screen shell or in any box of a definite height, the head and its primary action never scroll away.
|
|
20
|
+
*/
|
|
21
|
+
export declare function Column({ head, children, className, scrollRef, onScroll, bodyProps }: ColumnProps): ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import { type ReactNode, type RefObject } from 'react';
|
|
2
2
|
/** How long the closing state is drawn before the dialog leaves the page. */
|
|
3
3
|
export declare const MODAL_CLOSE_MS = 150;
|
|
4
4
|
export interface ModalProps {
|
|
@@ -17,12 +17,16 @@ export interface ModalProps {
|
|
|
17
17
|
readonly footer?: ReactNode;
|
|
18
18
|
/** The close button's name, in the app's language ("Close"). */
|
|
19
19
|
readonly closeLabel?: string;
|
|
20
|
+
/** What takes the focus on opening, when it is not the body's first control (a list, say). */
|
|
21
|
+
readonly initialFocus?: RefObject<HTMLElement | null>;
|
|
22
|
+
/** A class for the dialog itself, for a component drawn in it that has a layout of its own. */
|
|
23
|
+
readonly className?: string;
|
|
20
24
|
}
|
|
21
25
|
/**
|
|
22
26
|
* A dialog over the page (contract component `modal`: open, closing, dirty). Focus moves into it on open and back to
|
|
23
27
|
* where it was on close; Tab stays inside while it is open.
|
|
24
28
|
*/
|
|
25
|
-
export declare function Modal({ open, title, onClose, dirty, onDirtyClose, children, footer, closeLabel }: ModalProps): ReactNode;
|
|
29
|
+
export declare function Modal({ open, title, onClose, dirty, onDirtyClose, children, footer, closeLabel, initialFocus, className }: ModalProps): ReactNode;
|
|
26
30
|
export interface ConfirmDialogProps {
|
|
27
31
|
readonly open: boolean;
|
|
28
32
|
readonly title: ReactNode;
|