@coolms/ui-react 0.1.0-alpha.26 → 0.1.0-alpha.28
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 +14 -0
- package/design-tokens.lock.json +5 -5
- package/dist/components/Collections.d.ts +1 -1
- package/dist/components/ScreenShell.d.ts +3 -3
- package/dist/components/SignIn.d.ts +1 -1
- package/dist/components/State.d.ts +3 -1
- package/dist/components/Workspace.d.ts +1 -1
- package/dist/index.d.ts +22 -22
- package/dist/index.js +335 -332
- package/kit.contract.json +2 -1
- package/package.json +3 -2
- package/src/kit.css +1 -0
- package/src/tokens/coolms-tokens.css +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.28 (2026-11-23)
|
|
6
|
+
|
|
7
|
+
Declarations that resolve under node16 and nodenext.
|
|
8
|
+
|
|
9
|
+
- 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).
|
|
10
|
+
- `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.
|
|
11
|
+
|
|
12
|
+
## 0.1.0-alpha.27 (2026-11-23)
|
|
13
|
+
|
|
14
|
+
Design tokens v0.19.0: two icon names drawn for the workspace, and the empty pane's icon.
|
|
15
|
+
|
|
16
|
+
- `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.
|
|
17
|
+
- 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.
|
|
18
|
+
|
|
5
19
|
## 0.1.0-alpha.26 (2026-11-23)
|
|
6
20
|
|
|
7
21
|
Mail rows back to three lines at every width, on design tokens v0.14.0.
|
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.19.0",
|
|
4
|
+
"commit": "b565620abfc9626aae52bd9fa9076b377068b257",
|
|
5
5
|
"files": {
|
|
6
6
|
"dist/coolms-tokens.css": {
|
|
7
7
|
"to": "src/tokens/coolms-tokens.css",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "8913f190633292fd3e991bfacd3ed9e0927c98c2c46f533161cc4adebd948a21"
|
|
9
9
|
},
|
|
10
10
|
"contract/components.json": {
|
|
11
11
|
"to": "contract/components.json",
|
|
12
|
-
"sha256": "
|
|
12
|
+
"sha256": "b95106d16e3ec77399690042fb2f4037606222eb0419629d3386fe260d11f1a6"
|
|
13
13
|
},
|
|
14
14
|
"contract/server-states.json": {
|
|
15
15
|
"to": "contract/server-states.json",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"contract/icons.json": {
|
|
47
47
|
"to": "contract/icons.json",
|
|
48
|
-
"sha256": "
|
|
48
|
+
"sha256": "5d107ac1d99e7a1a5914f6497799b0984e663b7d3f095bb1c40e8d6f84a0b088"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import { type MenuItem } from './Collections';
|
|
3
|
-
import { type IconName } from './Icon';
|
|
4
|
-
import { type FilterOption } from './Workspace';
|
|
2
|
+
import { type MenuItem } from './Collections.js';
|
|
3
|
+
import { type IconName } from './Icon.js';
|
|
4
|
+
import { type FilterOption } from './Workspace.js';
|
|
5
5
|
/** The screen's floating primary action: one action, or a menu of declared entries. */
|
|
6
6
|
export type ScreenPrimary = {
|
|
7
7
|
readonly label: string;
|
|
@@ -18,6 +18,8 @@ export interface StateProps {
|
|
|
18
18
|
readonly onAction: () => void;
|
|
19
19
|
};
|
|
20
20
|
readonly placement?: StatePlacement;
|
|
21
|
+
/** The empty kind only: an icon name from the icon list (as the server's nodes name them), drawn above the title, decorative. */
|
|
22
|
+
readonly icon?: string;
|
|
21
23
|
}
|
|
22
24
|
/** How long a loading state shows nothing, so a read answered sooner does not flash: the `state-delay` token. */
|
|
23
25
|
export declare const STATE_DELAY_MS = 300;
|
|
@@ -28,4 +30,4 @@ export declare const STATE_DELAY_MS = 300;
|
|
|
28
30
|
* nor title -- until the state delay has passed, then both together, while its title is in the live region from the
|
|
29
31
|
* start, visually hidden.
|
|
30
32
|
*/
|
|
31
|
-
export declare function State({ kind, title, description, action, placement }: StateProps): ReactNode;
|
|
33
|
+
export declare function State({ kind, title, description, action, placement, icon }: StateProps): ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { Button, type ButtonProps } from './components/Button';
|
|
2
|
-
export { TextField, TextArea, Select, Toggle, writtenOut, type TextFieldProps, type TextFieldType, type TextAreaProps, 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 { State, STATE_DELAY_MS, type StateKind, type StatePlacement, type StateProps } from './components/State';
|
|
6
|
-
export { FileViewer, type FileViewerAction, type FileViewerConflict, type FileViewerEditing, type FileViewerProps, type FileViewerSiblings, type FileViewerState } from './components/FileViewer';
|
|
7
|
-
export { FilePicker, FilePickerDenied, type FilePickerBudget, type FilePickerChoice, type FilePickerEntry, type FilePickerLabels, type FilePickerPage, type FilePickerProps, type FilePickerSpace } from './components/FilePicker';
|
|
8
|
-
export { PageHeader, TabStrip, Avatar, initialsOf, tintOf, type PageHeaderProps, type Tab, type TabStripProps, type AvatarProps, type AvatarPresence, type AvatarConnection } from './components/Structure';
|
|
9
|
-
export { Icon, ICON_NAMES, BOOTSTRAP_ICONS, NamedIcon, iconForName, type IconName, type IconProps } from './components/Icon';
|
|
10
|
-
export { AppShell, Badge, SearchField, FilterChips, SplitPanes, fitPanes, MailRow, ChatBubble, Composer, MAIL_ROW_LABELS, type MailRowLabels, type AppShellProps, type RailItem, type BadgeProps, type SearchFieldProps, type FilterChipsProps, type FilterOption, type SplitPanesProps, type PaneSize, type Pane, type MailRowProps, type ChatBubbleProps, type ComposerProps } from './components/Workspace';
|
|
11
|
-
export { IncomingCall, CallPanel, CallBar, CALL_LABELS, type CallLabels, type IncomingCallProps, type CallPanelProps, type CallBarProps } from './components/Call';
|
|
12
|
-
export { SignInLayout, SignInForm, SIGN_IN_LABELS, type SignInLabels, type SignInLayoutProps, type SignInFormProps, type SignInFeature } from './components/SignIn';
|
|
13
|
-
export { List, ContextMenu, type ListRow, type ListProps, type MenuItem, type ContextMenuProps } from './components/Collections';
|
|
14
|
-
export { PaneToolbar, type PaneToolbarAction, type PaneToolbarProps } from './components/PaneToolbar';
|
|
15
|
-
export { Notification, type NotificationAction, type NotificationProps } from './components/Notification';
|
|
16
|
-
export { offerFor, isCapability, type Capability, type Offer, type OfferOptions } from './server/capability';
|
|
17
|
-
export { readRefusal, refusalText, type Refusal } from './server/refusal';
|
|
18
|
-
export { useReread, rereadAll, type Reread } from './server/reread';
|
|
19
|
-
export { readConflict, type Conflict } from './server/conflict';
|
|
20
|
-
export { needsClientUpdate, versionBelow, CLIENT_UPDATE_REQUIRED } from './server/client-update';
|
|
21
|
-
export { ScreenShell, type ScreenShellProps, type ScreenPrimary } from './components/ScreenShell';
|
|
22
|
-
export { PULL_AT, usePull, usePullState, type PullState } from './components/pull';
|
|
1
|
+
export { Button, type ButtonProps } from './components/Button.js';
|
|
2
|
+
export { TextField, TextArea, Select, Toggle, writtenOut, type TextFieldProps, type TextFieldType, type TextAreaProps, type SelectProps, type SelectOption, type ToggleProps } from './components/Fields.js';
|
|
3
|
+
export { Modal, ConfirmDialog, MODAL_CLOSE_MS, type ModalProps, type ConfirmDialogProps } from './components/Dialogs.js';
|
|
4
|
+
export { Toast, ToastRegion, Loading, EmptyState, ErrorBanner, type ToastProps, type LoadingProps, type EmptyStateProps, type ErrorBannerProps } from './components/Status.js';
|
|
5
|
+
export { State, STATE_DELAY_MS, type StateKind, type StatePlacement, type StateProps } from './components/State.js';
|
|
6
|
+
export { FileViewer, type FileViewerAction, type FileViewerConflict, type FileViewerEditing, type FileViewerProps, type FileViewerSiblings, type FileViewerState } from './components/FileViewer.js';
|
|
7
|
+
export { FilePicker, FilePickerDenied, type FilePickerBudget, type FilePickerChoice, type FilePickerEntry, type FilePickerLabels, type FilePickerPage, type FilePickerProps, type FilePickerSpace } from './components/FilePicker.js';
|
|
8
|
+
export { PageHeader, TabStrip, Avatar, initialsOf, tintOf, type PageHeaderProps, type Tab, type TabStripProps, type AvatarProps, type AvatarPresence, type AvatarConnection } from './components/Structure.js';
|
|
9
|
+
export { Icon, ICON_NAMES, BOOTSTRAP_ICONS, NamedIcon, iconForName, type IconName, type IconProps } from './components/Icon.js';
|
|
10
|
+
export { AppShell, Badge, SearchField, FilterChips, SplitPanes, fitPanes, MailRow, ChatBubble, Composer, MAIL_ROW_LABELS, type MailRowLabels, type AppShellProps, type RailItem, type BadgeProps, type SearchFieldProps, type FilterChipsProps, type FilterOption, type SplitPanesProps, type PaneSize, type Pane, type MailRowProps, type ChatBubbleProps, type ComposerProps } from './components/Workspace.js';
|
|
11
|
+
export { IncomingCall, CallPanel, CallBar, CALL_LABELS, type CallLabels, type IncomingCallProps, type CallPanelProps, type CallBarProps } from './components/Call.js';
|
|
12
|
+
export { SignInLayout, SignInForm, SIGN_IN_LABELS, type SignInLabels, type SignInLayoutProps, type SignInFormProps, type SignInFeature } from './components/SignIn.js';
|
|
13
|
+
export { List, ContextMenu, type ListRow, type ListProps, type MenuItem, type ContextMenuProps } from './components/Collections.js';
|
|
14
|
+
export { PaneToolbar, type PaneToolbarAction, type PaneToolbarProps } from './components/PaneToolbar.js';
|
|
15
|
+
export { Notification, type NotificationAction, type NotificationProps } from './components/Notification.js';
|
|
16
|
+
export { offerFor, isCapability, type Capability, type Offer, type OfferOptions } from './server/capability.js';
|
|
17
|
+
export { readRefusal, refusalText, type Refusal } from './server/refusal.js';
|
|
18
|
+
export { useReread, rereadAll, type Reread } from './server/reread.js';
|
|
19
|
+
export { readConflict, type Conflict } from './server/conflict.js';
|
|
20
|
+
export { needsClientUpdate, versionBelow, CLIENT_UPDATE_REQUIRED } from './server/client-update.js';
|
|
21
|
+
export { ScreenShell, type ScreenShellProps, type ScreenPrimary } from './components/ScreenShell.js';
|
|
22
|
+
export { PULL_AT, usePull, usePullState, type PullState } from './components/pull.js';
|