@coolms/ui-react 0.1.0-alpha.40 → 0.1.0-alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,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.43 (2026-12-03)
6
+
7
+ The pane toolbar's primary in the accent, and the icons as one data file every host draws them from.
8
+
9
+ - `PaneToolbar`: the row's primary (a folder's Upload) is drawn in the accent, as a section header's primary is, and keeps it with its label hidden. Every pane whose row declares a primary follows. (#172)
10
+ - The icons' drawings and the server's names for them are one data file, `src/components/icons.json`, exported as `@coolms/ui-react/icons.json`: the source every host draws the icons from, the mobile app included. `Icon`, `NamedIcon` and `BOOTSTRAP_ICONS` read it, and every icon draws as before. (#173)
11
+ - The server names `inbox` and `bell` draw the kit's inbox and bell: an empty mail list's and an empty notifications list's icons. (#173)
12
+
13
+ ## 0.1.0-alpha.42 (2026-12-03)
14
+
15
+ One empty state in two sizes, from design-tokens v0.37.0's state tokens.
16
+
17
+ - `State`: two sizes set by placement. `page` (a pane or a page) fills the free area it stands in and is centred both ways there, with no least height; its icon (32px), title, one line (at most `state-measure`), at most one action and their gaps read the `state-*` tokens. `block` (a section inside a card) is one muted line aligned with the card's text: no icon or glyph, no description, its action a quiet link beside it, an error's line in the danger colour. A state that names no placement is a page's. (#164)
18
+ - `EmptyState`, and every `List` with no rows, draw the same page state; the old `.cms-empty` rules are gone. `List` gains `emptyIcon` and `EmptyState` gains `icon`, drawn above the title as `State` draws it. (#164) (#165)
19
+ - `FilePicker`: its listing's loading, error, denied and empty states are its pane's (page). (#164)
20
+ - Design tokens v0.37.0 (components contract 0.28.0) in the kit's token file and contract copy. (#164)
21
+
22
+ Not in the package: every GitHub Action in CI is pinned by its full commit SHA, the release in a comment (#163).
23
+
24
+ ## 0.1.0-alpha.41 (2026-12-03)
25
+
26
+ Tagged, not published. Its changes are released as 0.1.0-alpha.42.
27
+
5
28
  ## 0.1.0-alpha.40 (2026-12-03)
6
29
 
7
30
  A password field can show what is typed, and a host can tell the browser what may fill a field.
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "repository": "coolms/design-tokens",
3
- "tag": "v0.36.0",
4
- "commit": "f6c0293f514a51a6adc1d98cc4c56273a99eafab",
3
+ "tag": "v0.37.0",
4
+ "commit": "04f8c3083fde17a36cd051c49527c795dd7b0e15",
5
5
  "files": {
6
6
  "dist/coolms-tokens.css": {
7
7
  "to": "src/tokens/coolms-tokens.css",
8
- "sha256": "2c9304e54dd7692ddd7987f01b0c26bc866152a09b52ee34c78ebccaf0fc90e8"
8
+ "sha256": "9a78d7f998ad1460ffb7d4d3189cc60ab5bde0d112baee34e7b31af7f35cb24f"
9
9
  },
10
10
  "contract/components.json": {
11
11
  "to": "contract/components.json",
12
- "sha256": "cec38a4c7f47a12a2796be7e7ffcf15a337c3cd9165b713765b28717a488d532"
12
+ "sha256": "77d73390059b30c7288546aeb0a80c7b042eee9f90917b3efba14467d469bec5"
13
13
  },
14
14
  "contract/server-states.json": {
15
15
  "to": "contract/server-states.json",
@@ -24,6 +24,8 @@ export interface ListProps {
24
24
  readonly loadingText?: ReactNode;
25
25
  readonly emptyTitle?: ReactNode;
26
26
  readonly emptyHint?: ReactNode;
27
+ /** The empty list's icon, a name from the icon list, drawn above its title. */
28
+ readonly emptyIcon?: string;
27
29
  readonly selected?: string | null;
28
30
  /** A press opens the row. */
29
31
  readonly onOpen?: (id: string) => void;
@@ -39,7 +41,7 @@ export interface ListProps {
39
41
  * a leading icon or avatar, a title (semibold while unread), a secondary line, the meta with a count under it; rows sit
40
42
  * on one surface, never cards. Inside a screen that takes a pull, the list draws it at its top (pulled).
41
43
  */
42
- export declare function List({ label, rows, error, onRetry, loadingText, emptyTitle, emptyHint, selected, onOpen, onRowMenu }: ListProps): ReactNode;
44
+ export declare function List({ label, rows, error, onRetry, loadingText, emptyTitle, emptyHint, emptyIcon, selected, onOpen, onRowMenu }: ListProps): ReactNode;
43
45
  export interface MenuItem {
44
46
  readonly id: string;
45
47
  readonly label: ReactNode;
@@ -1,5 +1,8 @@
1
- import type { ReactNode } from 'react';
2
- /** The icons the Workspace draws: one stroke style, 24 units, coloured by the text around them. */
1
+ import { type ReactNode } from 'react';
2
+ /**
3
+ * The icons the Workspace draws: one stroke style, 24 units, coloured by the text around them. Their drawings and the
4
+ * server's names for them are icons.json, the one source every host draws them from.
5
+ */
3
6
  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' | 'mail-open' | 'copy' | 'user' | 'folder-plus' | 'folder-x' | 'user-check' | 'user-x' | 'upload' | 'users' | 'settings' | 'hash' | 'funnel' | 'eye' | 'eye-off';
4
7
  export interface IconProps {
5
8
  readonly name: IconName;
@@ -4,7 +4,12 @@ import { type ReactNode } from 'react';
4
4
  * clients this kit serves never elevate (kit.contract.json, notOffered).
5
5
  */
6
6
  export type StateKind = 'loading' | 'empty' | 'error' | 'denied';
7
- /** page: centred in the content area; block: centred in its card; inline: small, beside text. */
7
+ /**
8
+ * Where it stands, which sets its size: `page` (a pane or a page: the icon, the title, one line and at most one action,
9
+ * centred both ways in the free area it fills), `block` (a section inside a card: one muted line, no icon, aligned with
10
+ * the card's text; its title is the line, a description is not drawn, an action is a link beside it), or `inline`
11
+ * (small, beside text).
12
+ */
8
13
  export type StatePlacement = 'page' | 'block' | 'inline';
9
14
  export interface StateProps {
10
15
  readonly kind: StateKind;
@@ -33,9 +33,14 @@ export interface EmptyStateProps {
33
33
  /** Why there is nothing, and what would bring something. */
34
34
  readonly hint?: ReactNode;
35
35
  readonly action?: ReactNode;
36
+ /** An icon name from the icon list (as the server's nodes name them), drawn above the title, decorative. */
37
+ readonly icon?: string;
36
38
  }
37
- /** Nothing to show, and why; optionally what to do (contract component `empty-state`: default, with-action). */
38
- export declare function EmptyState({ title, hint, action }: EmptyStateProps): ReactNode;
39
+ /**
40
+ * Nothing to show, and why; optionally what to do (contract component `empty-state`: default, with-action). Drawn as the
41
+ * state component's empty state at page size: centred both ways in the free area it fills, as `State` draws it.
42
+ */
43
+ export declare function EmptyState({ title, hint, action, icon }: EmptyStateProps): ReactNode;
39
44
  export interface ErrorBannerProps {
40
45
  /** Why the read failed, in the person's words -- the server's own words when it gave them. */
41
46
  readonly message: ReactNode;