@coolms/ui-react 0.1.0-alpha.19 → 0.1.0-alpha.20

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,14 @@
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.20 (2026-11-20)
6
+
7
+ 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.
8
+
9
+ - `Icon`: `folder-plus`, `folder-x`, `user-check` and `user-x`, in the set's stroke style.
10
+ - `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`.
11
+ - `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.
12
+
5
13
  ## 0.1.0-alpha.19 (2026-11-20)
6
14
 
7
15
  The screen shell at phone width, on design tokens 0.10.0 (contract 0.5.0).
@@ -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' | 'file-code' | 'mail-open' | 'copy' | 'user';
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' | 'mail-open' | 'copy' | 'user' | 'folder-plus' | 'folder-x' | 'user-check' | 'user-x';
4
4
  export interface IconProps {
5
5
  readonly name: IconName;
6
6
  readonly size?: number;
@@ -12,8 +12,18 @@ export declare function Icon({ name, size, label }: IconProps): ReactNode;
12
12
  export declare const ICON_NAMES: readonly IconName[];
13
13
  /**
14
14
  * The server's action icons, named as Bootstrap Icons names them, to the kit's own: the one table that turns a node's
15
- * icon into what the kit draws. A name not here has no icon, and its action shows its label alone.
15
+ * icon into what the kit draws. A name not here has no icon: a toolbar shows its action's label alone, and NamedIcon
16
+ * keeps the icon's space empty.
16
17
  */
17
18
  export declare const BOOTSTRAP_ICONS: Readonly<Record<string, IconName>>;
18
19
  /** The kit's icon for a server's (Bootstrap Icons) name; null for a name the table does not hold. */
19
20
  export declare function iconForName(name: string): IconName | null;
21
+ /**
22
+ * A server's icon, by its (Bootstrap Icons) name, at the size a row of items draws them. A name the kit's table does not
23
+ * hold draws an empty space of the same size, so the labels beside it line up, and outside production says so once per
24
+ * name in the console. No name draws nothing.
25
+ */
26
+ export declare function NamedIcon({ name, size }: {
27
+ readonly name: string;
28
+ readonly size?: number;
29
+ }): ReactNode;
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { State, STATE_DELAY_MS, type StateKind, type StatePlacement, type StateP
6
6
  export { FileViewer, type FileViewerAction, type FileViewerConflict, type FileViewerEditing, type FileViewerProps, type FileViewerSiblings, type FileViewerState } from './components/FileViewer';
7
7
  export { FilePicker, FilePickerDenied, type FilePickerBudget, type FilePickerChoice, type FilePickerEntry, type FilePickerLabels, type FilePickerPage, type FilePickerProps, type FilePickerSpace } from './components/FilePicker';
8
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, iconForName, type IconName, type IconProps } from './components/Icon';
9
+ export { Icon, ICON_NAMES, BOOTSTRAP_ICONS, NamedIcon, iconForName, type IconName, type IconProps } from './components/Icon';
10
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
11
  export { IncomingCall, CallPanel, CallBar, CALL_LABELS, type CallLabels, type IncomingCallProps, type CallPanelProps, type CallBarProps } from './components/Call';
12
12
  export { SignInLayout, SignInForm, SIGN_IN_LABELS, type SignInLabels, type SignInLayoutProps, type SignInFormProps, type SignInFeature } from './components/SignIn';