@coolms/ui-react 0.0.0-stage → 0.1.0-alpha.2

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 ADDED
@@ -0,0 +1,32 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@coolms/ui-react` are listed here. Versions follow [semantic versioning](https://semver.org/).
4
+
5
+ ## 0.1.0-alpha.2 (2026-10-28)
6
+
7
+ The token file is CSS a browser keeps whole.
8
+
9
+ - Fixed: `tokens.css` was a copy of `coolms/design-tokens`' SCSS file. Its first line, a `//` comment, is a comment in
10
+ SCSS but not in CSS, so a browser dropped the whole light `:root` block behind it: in the light theme every
11
+ `--cms-*` token was undefined and the components lost their colours, spacing and radii. It is now a copy of
12
+ `dist/coolms-tokens.css`, the same blocks with a CSS comment header, from `coolms/design-tokens` v0.5.0, pinned in
13
+ `design-tokens.lock.json` with the tag's commit.
14
+ - Added: `tools/check-css.mjs`, copied from v0.5.0 and pinned the same way, runs on the token file in
15
+ `tokens:check`; `tools/check-css-teeth.mjs` makes sure it still fails a `//` header and a missing file.
16
+ - 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
17
+ later.
18
+
19
+ ## 0.1.0-alpha.1 (2026-10-23)
20
+
21
+ The first pre-release. Published from `develop` at 91f0db3, which has no tag; the package already carries
22
+ `design-tokens.lock.json` (#1).
23
+
24
+ - The 15 components of the CoolMS UI contract, each in every state the contract names. `elevation-required` is not
25
+ offered.
26
+ - Server helpers for the contract's reactions R1 to R6: `offerFor`, `readRefusal`, `useReread`, `readConflict` and
27
+ `needsClientUpdate`.
28
+ - `kit.css`, styled only with `--cms-*` tokens.
29
+ - The token file, the UI contract and its checker, all copied from `coolms/design-tokens` v0.4.0 and pinned in
30
+ `design-tokens.lock.json`.
31
+ - A published build: one ES module plus type declarations. React is left to the application.
32
+ - A demo page with every state, in light and dark.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dmitry Popov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,100 @@
1
- # Temporary Holding Version
1
+ # @coolms/ui-react
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens.
4
+
5
+ The same contract is implemented for Angular by [`@coolms/ui-angular`](https://github.com/coolms/ui-angular). Two
6
+ clients built on different kits may look different; they may not disagree about what the server said. This kit's
7
+ server helpers are how a React client reads it.
8
+
9
+ > **Pre-release.** Every version so far is an alpha (`0.1.0-alpha.N`). npm marks a package's first published
10
+ > version `latest` whatever its tag, so a plain `npm install @coolms/ui-react` installs an alpha too. Names, props
11
+ > and states may still change between alphas; pin an exact version.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install @coolms/ui-react@VERSION
17
+ ```
18
+
19
+ Replace `VERSION` with the exact version you test with, and pin it; the versions are listed on npm. Use
20
+ `0.1.0-alpha.2` or later: in `0.1.0-alpha.1` the token file's first line is not CSS, so a browser drops its light
21
+ theme and the components lose their colours, spacing and radii.
22
+
23
+ React 19.2 or later is a peer dependency.
24
+
25
+ ```tsx
26
+ import '@coolms/ui-react/tokens.css';
27
+ import '@coolms/ui-react/kit.css';
28
+ import { Button, List, ContextMenu, offerFor } from '@coolms/ui-react';
29
+ ```
30
+
31
+ Dark mode is the token file's: set `data-theme="dark"` on the root element.
32
+
33
+ ## Components
34
+
35
+ The contract lives in [`coolms/design-tokens`](https://github.com/coolms/design-tokens), beside the tokens, so every
36
+ CoolMS UI kit checks against one source. This kit copies it at a tag, and `design-tokens.lock.json` pins each copy.
37
+
38
+ Every component of `contract/components.json`, each rendering every state the contract names:
39
+
40
+ | Contract | Component | States |
41
+ | --- | --- | --- |
42
+ | button | `Button` | default, primary, danger, disabled, busy, locked |
43
+ | text-field | `TextField` | default, focused, disabled, read-only, invalid, pinned |
44
+ | select | `Select` | default, disabled, read-only, invalid, empty-list |
45
+ | toggle | `Toggle` | on, off, disabled, read-only |
46
+ | modal | `Modal` | open, closing, dirty |
47
+ | confirm-dialog | `ConfirmDialog` | default, danger, discard-changes |
48
+ | toast | `Toast`, `ToastRegion` | success, error, info, with-action |
49
+ | loading | `Loading` | inline, block |
50
+ | empty-state | `EmptyState` | default, with-action |
51
+ | error-banner | `ErrorBanner` | default, with-retry |
52
+ | page-header | `PageHeader` | default, with-actions, with-back-link |
53
+ | tab-strip | `TabStrip` | default, active, with-count |
54
+ | list | `List` | loading, empty, populated, selected, error |
55
+ | avatar | `Avatar` | picture, initials, presence |
56
+ | context-menu | `ContextMenu` | open, item-danger, item-locked, item-refused |
57
+
58
+ `elevation-required` is not offered: this kit's clients never elevate, so an action the server answers `elevate` is
59
+ not offered at all.
60
+
61
+ ## Reading the server
62
+
63
+ `contract/server-states.json` lists every state the server decides and how every client reacts to it. The helpers:
64
+
65
+ | Reaction | Helper |
66
+ | --- | --- |
67
+ | An action is offered from the subject's capabilities map; an unknown answer is denied (R3, R4) | `offerFor(answer, { elevates })` |
68
+ | A 403 is the last word; elevation-required is told apart from a refusal (R2) | `readRefusal(status, headers, body, { elevates })` |
69
+ | State that expires is read again, not remembered (R1) | `useReread(read)`, `rereadAll()` |
70
+ | A versioned write that answers 412 changed nothing (R5) | `readConflict(status)` |
71
+ | A server that refuses this client's version is not used further (R6) | `needsClientUpdate(...)` |
72
+
73
+ A context menu and an action bar take the same list of items, each with its `offerFor` answer, so they cannot
74
+ disagree.
75
+
76
+ ## Checks
77
+
78
+ ```bash
79
+ npm run verify
80
+ ```
81
+
82
+ runs, in order:
83
+
84
+ - `tokens:check`: the token file, the contract and the checkers are the copies `design-tokens.lock.json` pins; the
85
+ token file is CSS a browser keeps whole, and the check still fails a `//` header; and every token `kit.css` reads is
86
+ defined.
87
+ - `check`: `kit.contract.json` covers the contract, and the components and files it names exist.
88
+ - `typecheck` and `test`.
89
+ - `build`, then `check:built`: the published module loads, exports every declared component, and every target the
90
+ package's `exports` map promises exists.
91
+ - `demo:build`.
92
+
93
+ CI also checks the lock against `coolms/design-tokens` itself: the tag names the lock's commit, and each file there
94
+ hashes as the lock says.
95
+
96
+ `npm run demo` serves a page with every component in every state, in light and dark.
97
+
98
+ ## Licence
99
+
100
+ MIT
@@ -0,0 +1,27 @@
1
+ {
2
+ "repository": "coolms/design-tokens",
3
+ "tag": "v0.5.0",
4
+ "commit": "9e18a14ca2b5549ab217beab007a9f480dd3b12c",
5
+ "files": {
6
+ "dist/coolms-tokens.css": {
7
+ "to": "src/tokens/coolms-tokens.css",
8
+ "sha256": "bb89703ab55784b538c18a3dd82f95769980b2c83fa0733a81f628ae3d6ad1c3"
9
+ },
10
+ "contract/components.json": {
11
+ "to": "contract/components.json",
12
+ "sha256": "3a21896076d70e96658033eb85173b1a0fc745151a7d4d5c070d882ec7605658"
13
+ },
14
+ "contract/server-states.json": {
15
+ "to": "contract/server-states.json",
16
+ "sha256": "c8332421aee691374188e2cddfb4f9a7eba1a7d8044309cbc63aeb63467b1562"
17
+ },
18
+ "tools/check-kit.mjs": {
19
+ "to": "tools/check-kit.mjs",
20
+ "sha256": "f8407f6accd55eb666eb6bbfe629a10f959c3bf6c62fe8ef2f1fe06a48471a8c"
21
+ },
22
+ "tools/check-css.mjs": {
23
+ "to": "tools/check-css.mjs",
24
+ "sha256": "231ca006b6e949f9882c98186527e2a974efb5acd60bfb8d05a37d82eae6a678"
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,22 @@
1
+ import type { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
3
+ /** secondary (the default), primary -- one per view -- or danger, for an action that destroys or cannot be undone. */
4
+ readonly variant?: 'secondary' | 'primary' | 'danger';
5
+ /** The action is running: the button keeps its place, says so, and cannot be pressed twice. */
6
+ readonly busy?: boolean;
7
+ /** What the button says while busy; defaults to its own label. */
8
+ readonly busyLabel?: ReactNode;
9
+ /** Allowed once the session is elevated: drawn with a lock; what pressing it does is the caller's. */
10
+ readonly locked?: boolean;
11
+ /** Why it is locked, for its tooltip and a screen reader. */
12
+ readonly lockedReason?: string;
13
+ /** A glyph or icon before the label. */
14
+ readonly icon?: ReactNode;
15
+ readonly children: ReactNode;
16
+ }
17
+ /**
18
+ * An action (contract component `button`: default, primary, danger, disabled, busy, locked). A busy button is not
19
+ * disabled to assistive technology's eyes alone: `aria-busy` says why it does nothing now. A locked one stays
20
+ * pressable -- the press is how the person asks for elevation -- and names why it is locked.
21
+ */
22
+ export declare function Button({ variant, busy, busyLabel, locked, lockedReason, icon, disabled, className, children, type, title, ...rest }: ButtonProps): ReactNode;
@@ -0,0 +1,62 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Offer } from '../server/capability';
3
+ export interface ListRow {
4
+ readonly id: string;
5
+ readonly primary: ReactNode;
6
+ readonly secondary?: ReactNode;
7
+ /** Leading visual: an Avatar, an icon. */
8
+ readonly lead?: ReactNode;
9
+ /** Trailing text: a date, a size. */
10
+ readonly meta?: ReactNode;
11
+ }
12
+ export interface ListProps {
13
+ /** What the rows are, for a screen reader ("Messages"). */
14
+ readonly label: string;
15
+ /** null while the first read runs. */
16
+ readonly rows: readonly ListRow[] | null;
17
+ /** The read failed: why, in the person's words. Wins over rows. */
18
+ readonly error?: ReactNode;
19
+ readonly onRetry?: () => void;
20
+ readonly loadingText?: ReactNode;
21
+ readonly emptyTitle?: ReactNode;
22
+ readonly emptyHint?: ReactNode;
23
+ readonly selected?: string | null;
24
+ /** A press opens the row. */
25
+ readonly onOpen?: (id: string) => void;
26
+ /** Right-click or the context-menu key on a row: the page opens its ContextMenu at the point. */
27
+ readonly onRowMenu?: (id: string, at: {
28
+ x: number;
29
+ y: number;
30
+ }) => void;
31
+ }
32
+ /**
33
+ * 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.
35
+ */
36
+ export declare function List({ label, rows, error, onRetry, loadingText, emptyTitle, emptyHint, selected, onOpen, onRowMenu }: ListProps): ReactNode;
37
+ export interface MenuItem {
38
+ readonly id: string;
39
+ readonly label: ReactNode;
40
+ /** The server's answer for this action on this subject, read with offerFor (R3). Not offered = not drawn. */
41
+ readonly offer: Offer;
42
+ /** Destroys or cannot be undone. */
43
+ readonly danger?: boolean;
44
+ readonly onSelect: () => void;
45
+ }
46
+ export interface ContextMenuProps {
47
+ /** Where it opens; null = closed. */
48
+ readonly at: {
49
+ readonly x: number;
50
+ readonly y: number;
51
+ } | null;
52
+ /** Exactly the action bar's items for the selection -- the page passes the same list to both. */
53
+ readonly items: readonly MenuItem[];
54
+ readonly onClose: () => void;
55
+ readonly label?: string;
56
+ }
57
+ /**
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 one is shown disabled with the
60
+ * server's refusal. Escape, a press outside, or a choice closes it, and focus goes back where it was.
61
+ */
62
+ export declare function ContextMenu({ at, items, onClose, label }: ContextMenuProps): ReactNode;
@@ -0,0 +1,40 @@
1
+ import { type ReactNode } from 'react';
2
+ /** How long the closing state is drawn before the dialog leaves the page. */
3
+ export declare const MODAL_CLOSE_MS = 150;
4
+ export interface ModalProps {
5
+ readonly open: boolean;
6
+ readonly title: ReactNode;
7
+ /** Asked to close: Escape, the scrim, the close button. */
8
+ readonly onClose: () => void;
9
+ /**
10
+ * It holds unsaved work: Escape and the scrim do not close it; they call onDirtyClose, which asks the person
11
+ * (typically a discard-changes ConfirmDialog). The close button does the same.
12
+ */
13
+ readonly dirty?: boolean;
14
+ readonly onDirtyClose?: () => void;
15
+ readonly children: ReactNode;
16
+ /** The dialog's actions, at its foot. */
17
+ readonly footer?: ReactNode;
18
+ }
19
+ /**
20
+ * A dialog over the page (contract component `modal`: open, closing, dirty). Focus moves into it on open and back to
21
+ * where it was on close; Tab stays inside while it is open.
22
+ */
23
+ export declare function Modal({ open, title, onClose, dirty, onDirtyClose, children, footer }: ModalProps): ReactNode;
24
+ export interface ConfirmDialogProps {
25
+ readonly open: boolean;
26
+ readonly title: ReactNode;
27
+ readonly message?: ReactNode;
28
+ /**
29
+ * default: a question; danger: the action destroys or cannot be undone -- its button is the danger one;
30
+ * discard-changes: leaving loses unsaved work -- "Discard changes" against "Keep editing".
31
+ */
32
+ readonly kind?: 'default' | 'danger' | 'discard-changes';
33
+ /** The confirming button names the outcome ("Delete 3 messages"), never "OK". */
34
+ readonly confirmLabel?: ReactNode;
35
+ readonly cancelLabel?: ReactNode;
36
+ readonly onConfirm: () => void;
37
+ readonly onCancel: () => void;
38
+ }
39
+ /** A question before a destructive or irreversible action (contract component `confirm-dialog`: default, danger, discard-changes). */
40
+ export declare function ConfirmDialog({ open, title, message, kind, confirmLabel, cancelLabel, onConfirm, onCancel }: ConfirmDialogProps): ReactNode;
@@ -0,0 +1,50 @@
1
+ import { type ReactNode } from 'react';
2
+ interface FieldFrame {
3
+ readonly label: ReactNode;
4
+ /** What the field is for, under it. */
5
+ readonly help?: ReactNode;
6
+ /** Why the value is not accepted; makes the field invalid. */
7
+ readonly error?: ReactNode;
8
+ readonly disabled?: boolean;
9
+ /** Shown, focusable and copyable, but not changed here. */
10
+ readonly readOnly?: boolean;
11
+ }
12
+ export interface TextFieldProps extends FieldFrame {
13
+ readonly value: string;
14
+ readonly onChange?: (value: string) => void;
15
+ readonly placeholder?: string;
16
+ readonly type?: 'text' | 'email' | 'url' | 'search' | 'tel' | 'password';
17
+ /**
18
+ * The value is set by the environment, not here (a pinned setting): shown read-only with why, the way the admin
19
+ * shows a key the deployment pins.
20
+ */
21
+ readonly pinned?: ReactNode;
22
+ readonly name?: string;
23
+ }
24
+ /** One line of text (contract component `text-field`: default, focused, disabled, read-only, invalid, pinned). */
25
+ export declare function TextField({ label, help, error, disabled, readOnly, pinned, value, onChange, placeholder, type, name }: TextFieldProps): ReactNode;
26
+ export interface SelectOption {
27
+ readonly value: string;
28
+ readonly label: string;
29
+ }
30
+ export interface SelectProps extends FieldFrame {
31
+ readonly value: string;
32
+ readonly options: readonly SelectOption[];
33
+ readonly onChange?: (value: string) => void;
34
+ /** What the field says when the list has nothing to choose from (contract state `empty-list`). */
35
+ readonly emptyText?: ReactNode;
36
+ readonly name?: string;
37
+ }
38
+ /** One choice from a list (contract component `select`: default, disabled, read-only, invalid, empty-list). */
39
+ export declare function Select({ label, help, error, disabled, readOnly, value, options, onChange, emptyText, name }: SelectProps): ReactNode;
40
+ export interface ToggleProps {
41
+ readonly label: ReactNode;
42
+ readonly checked: boolean;
43
+ readonly onChange?: (checked: boolean) => void;
44
+ readonly disabled?: boolean;
45
+ readonly readOnly?: boolean;
46
+ readonly help?: ReactNode;
47
+ }
48
+ /** On or off, the label on the same baseline (contract component `toggle`: on, off, disabled, read-only). */
49
+ export declare function Toggle({ label, checked, onChange, disabled, readOnly, help }: ToggleProps): ReactNode;
50
+ export {};
@@ -0,0 +1,44 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface ToastProps {
3
+ readonly kind: 'success' | 'error' | 'info';
4
+ readonly message: ReactNode;
5
+ /** One follow-up the person may want ("Undo", "Open"). */
6
+ readonly action?: {
7
+ readonly label: ReactNode;
8
+ readonly onAction: () => void;
9
+ };
10
+ readonly onDismiss?: () => void;
11
+ }
12
+ /**
13
+ * A short report of what happened (contract component `toast`: success, error, info, with-action). An error is said
14
+ * assertively (role=alert); the others politely (role=status). Placement and timing are the page's (ToastRegion).
15
+ */
16
+ export declare function Toast({ kind, message, action, onDismiss }: ToastProps): ReactNode;
17
+ /** Where toasts stack: a fixed corner of the page. */
18
+ export declare function ToastRegion({ children }: {
19
+ readonly children: ReactNode;
20
+ }): ReactNode;
21
+ export interface LoadingProps {
22
+ /** What is being read ("Loading messages"): never a bare spinner. */
23
+ readonly what: ReactNode;
24
+ /** inline: beside other content; block: in place of a whole region. */
25
+ readonly layout?: 'inline' | 'block';
26
+ }
27
+ /** Something is being read, and says what (contract component `loading`: inline, block). */
28
+ export declare function Loading({ what, layout }: LoadingProps): ReactNode;
29
+ export interface EmptyStateProps {
30
+ readonly title: ReactNode;
31
+ /** Why there is nothing, and what would bring something. */
32
+ readonly hint?: ReactNode;
33
+ readonly action?: ReactNode;
34
+ }
35
+ /** Nothing to show, and why; optionally what to do (contract component `empty-state`: default, with-action). */
36
+ export declare function EmptyState({ title, hint, action }: EmptyStateProps): ReactNode;
37
+ export interface ErrorBannerProps {
38
+ /** Why the read failed, in the person's words -- the server's own words when it gave them. */
39
+ readonly message: ReactNode;
40
+ /** Offered only when trying again can help (a timeout, a network failure), never for a refusal. */
41
+ readonly onRetry?: () => void;
42
+ }
43
+ /** A read failed; says why, offers retry when retrying can help (contract component `error-banner`: default, with-retry). */
44
+ export declare function ErrorBanner({ message, onRetry }: ErrorBannerProps): ReactNode;
@@ -0,0 +1,46 @@
1
+ import { type ReactNode } from 'react';
2
+ export interface PageHeaderProps {
3
+ readonly title: ReactNode;
4
+ /** Whose or what this page is about ("Work mail · 3 folders"). */
5
+ readonly scope?: ReactNode;
6
+ /** The page's own actions, at the right. */
7
+ readonly actions?: ReactNode;
8
+ /** Back to where the page was opened from. */
9
+ readonly backLink?: {
10
+ readonly label: string;
11
+ readonly href?: string;
12
+ readonly onBack?: () => void;
13
+ };
14
+ }
15
+ /** The page's title, its scope line and its actions (contract component `page-header`: default, with-actions, with-back-link). */
16
+ export declare function PageHeader({ title, scope, actions, backLink }: PageHeaderProps): ReactNode;
17
+ export interface Tab {
18
+ readonly id: string;
19
+ readonly label: ReactNode;
20
+ /** How many things the section holds, when that helps choose it. */
21
+ readonly count?: number;
22
+ }
23
+ export interface TabStripProps {
24
+ readonly tabs: readonly Tab[];
25
+ readonly active: string;
26
+ readonly onSelect: (id: string) => void;
27
+ /** What the tabs are sections of, for a screen reader. */
28
+ readonly label: string;
29
+ }
30
+ /**
31
+ * Sections of one object, one at a time (contract component `tab-strip`: default, active, with-count). Arrow keys
32
+ * move between tabs, Home and End to the ends, as a tablist does.
33
+ */
34
+ export declare function TabStrip({ tabs, active, onSelect, label }: TabStripProps): ReactNode;
35
+ export interface AvatarProps {
36
+ /** The person's or account's name: the initials, and the accessible name. */
37
+ readonly name: string;
38
+ readonly pictureUrl?: string;
39
+ /** Whether they are reachable now, as the server said. */
40
+ readonly presence?: 'online' | 'away' | 'offline';
41
+ readonly size?: number;
42
+ }
43
+ /** Up to two initials from a name: "Ada Lovelace" -> "AL", "ada" -> "A". */
44
+ export declare function initialsOf(name: string): string;
45
+ /** A person or an account, by picture or initials (contract component `avatar`: picture, initials, presence). */
46
+ export declare function Avatar({ name, pictureUrl, presence, size }: AvatarProps): ReactNode;
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from 'react';
2
+ /** Class names, the falsy ones left out. */
3
+ export declare function cx(...names: ReadonlyArray<string | false | null | undefined>): string;
4
+ /** The kit's few glyphs, inline: no icon font, no dependency. Decorative -- the text beside them carries the meaning. */
5
+ export declare function Glyph({ name }: {
6
+ name: 'lock' | 'spinner' | 'back' | 'close' | 'warning' | 'check' | 'info';
7
+ }): ReactNode;
@@ -0,0 +1,11 @@
1
+ export { Button, type ButtonProps } from './components/Button';
2
+ export { TextField, Select, Toggle, type TextFieldProps, type SelectProps, type SelectOption, type ToggleProps } from './components/Fields';
3
+ export { Modal, ConfirmDialog, MODAL_CLOSE_MS, type ModalProps, type ConfirmDialogProps } from './components/Dialogs';
4
+ export { Toast, ToastRegion, Loading, EmptyState, ErrorBanner, type ToastProps, type LoadingProps, type EmptyStateProps, type ErrorBannerProps } from './components/Status';
5
+ export { PageHeader, TabStrip, Avatar, initialsOf, type PageHeaderProps, type Tab, type TabStripProps, type AvatarProps } from './components/Structure';
6
+ export { List, ContextMenu, type ListRow, type ListProps, type MenuItem, type ContextMenuProps } from './components/Collections';
7
+ export { offerFor, isCapability, type Capability, type Offer, type OfferOptions } from './server/capability';
8
+ export { readRefusal, refusalText, type Refusal } from './server/refusal';
9
+ export { useReread, rereadAll, type Reread } from './server/reread';
10
+ export { readConflict, type Conflict } from './server/conflict';
11
+ export { needsClientUpdate, versionBelow, CLIENT_UPDATE_REQUIRED } from './server/client-update';