@coolms/ui-react 0.1.0-alpha.10 → 0.1.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,12 +2,29 @@
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.11 (2026-11-15)
6
+
7
+ Show original stays in More, and a toolbar's labels give way one by one.
8
+
9
+ - `PaneToolbar`: as the pane narrows, labels hide one by one, in the overflow order (lower priority first, a
10
+ priority's actions together), then the pinned actions' from the end of the row; only once every label is hidden do
11
+ actions go behind More, in the same order, never one alone. They come back in the reverse order. An action hiding its
12
+ label keeps it as its tooltip. The row is marked `cms-pane-toolbar--labels-partly-hidden` between the two, the
13
+ contract's new `labels-partly-hidden` state.
14
+ - `PaneToolbar`: the classes named as the contract names them. An action whose label is hidden is
15
+ `cms-pane-toolbar__action--bare` (renamed `--icon` to `--bare`), and an action drawn without an icon is
16
+ `cms-pane-toolbar__action--text`, the same in both kits.
17
+ - `PaneToolbar`: `overflow: 0` means menu only. The action is never drawn in the row, at any width, and always sits behind
18
+ 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
19
+ rule that one action never goes behind More alone counts only the actions that could have stayed in the row.
20
+ - `Icon`: `file-code`, a file with code's angle brackets, for the server's `file-earmark-code` (Show original).
21
+
5
22
  ## 0.1.0-alpha.10 (2026-11-10)
6
23
 
7
24
  The row of actions at the top of a pane, drawn from the server's action nodes.
8
25
 
9
26
  - `ContextMenu` takes `focus`, the item focused as it opens; `PaneToolbar`'s More opens its menu on the last item with Up.
10
- - `PaneToolbar`, the contract's `pane-toolbar` (design-tokens develop): the one row of actions at the top of a pane, the
27
+ - `PaneToolbar`, the contract's `pane-toolbar`: the one row of actions at the top of a pane, the
11
28
  same height in every pane. It draws the actions it is given, as the server's action nodes give them (id, label, icon,
12
29
  group, overflow priority, danger, disabled), and says which was chosen by its id. As the pane narrows every label
13
30
  hides at once, then actions go behind More by their overflow priority, never one alone, a priority's actions together.
@@ -135,13 +152,11 @@ The token file is CSS a browser keeps whole.
135
152
  `design-tokens.lock.json` with the tag's commit.
136
153
  - Added: `tools/check-css.mjs`, copied from v0.5.0 and pinned the same way, runs on the token file in
137
154
  `tokens:check`; `tools/check-css-teeth.mjs` makes sure it still fails a `//` header and a missing file.
138
- - Changed: the README's install line names no version (it named 0.1.0-alpha.1), and says to use 0.1.0-alpha.2 or
139
- later.
155
+ - Changed: the README's install line names no version, and says to use 0.1.0-alpha.2 or later.
140
156
 
141
157
  ## 0.1.0-alpha.1 (2026-10-23)
142
158
 
143
- The first pre-release. Published from `develop` at 91f0db3, which has no tag; the package already carries
144
- `design-tokens.lock.json` (#1).
159
+ The first pre-release. The package carries `design-tokens.lock.json` (#1).
145
160
 
146
161
  - The 15 components of the CoolMS UI contract, each in every state the contract names. `elevation-required` is not
147
162
  offered.
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  /** The icons the Workspace draws: one stroke style, 24 units, coloured by the text around them. */
3
- export type IconName = 'mail' | 'chat' | 'phone' | 'calendar' | 'file' | 'image' | 'search' | 'bell' | 'pencil' | 'star' | 'send' | 'inbox' | 'archive' | 'trash' | 'paperclip' | 'mic' | 'speaker' | 'user-plus' | 'phone-off' | 'video' | 'info' | 'chevron-down' | 'chevron-left' | 'plus' | 'folder' | 'check' | 'server' | 'reply' | 'more' | 'download' | 'print' | 'open-separately' | 'important' | 'forward' | 'refresh';
3
+ export type IconName = 'mail' | 'chat' | 'phone' | 'calendar' | 'file' | 'image' | 'search' | 'bell' | 'pencil' | 'star' | 'send' | 'inbox' | 'archive' | 'trash' | 'paperclip' | 'mic' | 'speaker' | 'user-plus' | 'phone-off' | 'video' | 'info' | 'chevron-down' | 'chevron-left' | 'plus' | 'folder' | 'check' | 'server' | 'reply' | 'more' | 'download' | 'print' | 'open-separately' | 'important' | 'forward' | 'refresh' | 'file-code';
4
4
  export interface IconProps {
5
5
  readonly name: IconName;
6
6
  readonly size?: number;
@@ -13,7 +13,8 @@ export interface PaneToolbarAction {
13
13
  readonly group: string;
14
14
  /**
15
15
  * When it goes behind ... as the row narrows: lower first; actions of the same priority go together (a toggle's
16
- * pair). Without one it is pinned: it never goes behind ....
16
+ * pair). Without one it is pinned: it never goes behind .... 0: menu only, behind ... at every width and never in
17
+ * the row.
17
18
  */
18
19
  readonly overflow?: number;
19
20
  /** Shown, kept in the focus order, and doing nothing when chosen; `reason` is its tooltip. */
@@ -39,10 +40,16 @@ export interface PaneToolbarProps {
39
40
  readonly leading?: ReactNode;
40
41
  }
41
42
  /**
42
- * The one row of actions at the top of a pane (contract component `pane-toolbar`: default, labels-hidden, overflowing,
43
- * menu-open, with-status, action-disabled, action-busy, phone). It is measured on its own width as its pane resizes:
44
- * every label shows while all fit; then every label hides at once; then actions go behind ... in the overflow order,
45
- * the fewest that let the rest and ... fit, never one alone; they come back in the reverse order, and the labels once
46
- * every action is back and all of them fit. One Tab stop; Left and Right, Home and End move inside it.
43
+ * The one row of actions at the top of a pane (contract component `pane-toolbar`: default, labels-partly-hidden,
44
+ * labels-hidden, overflowing, menu-open, with-status, action-disabled, action-busy, phone). It is measured on its own
45
+ * width as its pane resizes:
46
+ * every label shows while all fit; then labels hide one by one in the overflow order (lower first, a priority's actions
47
+ * together), the pinned last, from the end of the row; only once every label is hidden do actions go behind ..., in
48
+ * the same order, the fewest that let the rest and ... fit, never one alone. They come back in the reverse order. One
49
+ * Tab stop; Left and Right, Home and End move inside it.
50
+ *
51
+ * Menu-only actions (overflow 0) are behind ... at every width, first in its menu, and take no part in the giving way:
52
+ * their labels are not counted, and "never one alone" counts only the actions that could have stayed in the row. ...
53
+ * is drawn for them even when one is alone.
47
54
  */
48
55
  export declare function PaneToolbar({ label, actions, onAction, status, moreLabel, leading }: PaneToolbarProps): ReactNode;