@coolms/ui-react 0.1.0-alpha.1 → 0.1.0-alpha.3
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 +40 -1
- package/README.md +8 -3
- package/design-tokens.lock.json +28 -4
- package/dist/components/Call.d.ts +41 -0
- package/dist/components/Icon.d.ts +12 -0
- package/dist/components/SignIn.d.ts +30 -0
- package/dist/components/Structure.d.ts +2 -0
- package/dist/components/Workspace.d.ts +129 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +784 -349
- package/package.json +7 -4
- package/src/fonts/OFL.txt +92 -0
- package/src/fonts/inter-cyrillic.woff2 +0 -0
- package/src/fonts/inter-latin-ext.woff2 +0 -0
- package/src/fonts/inter-latin.woff2 +0 -0
- package/src/fonts/inter.css +27 -0
- package/src/kit.css +261 -0
- package/src/tokens/coolms-tokens.css +78 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,48 @@
|
|
|
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.3 (2026-10-30)
|
|
6
|
+
|
|
7
|
+
The Workspace's components, on design-tokens 0.6.0.
|
|
8
|
+
|
|
9
|
+
- Added: `AppShell` (the dark rail of sections with counts, the top bar with the server, search and account),
|
|
10
|
+
`SearchField`, `Badge`, `FilterChips` (a radio group of pills), `SplitPanes` (two or three labelled panes),
|
|
11
|
+
`MailRow`, `ChatBubble`, `Composer` (chat and quick reply), `IncomingCall`, `CallPanel`, `CallBar`, `SignInLayout`
|
|
12
|
+
and `SignInForm`, and `Icon` with its set of 29 icons.
|
|
13
|
+
- Responsive by design, on the layout's tokens: desktop from 1200px (the full rail, three panes), tablet from 600px
|
|
14
|
+
(an icons-only rail with each section's name as its tooltip, two panes), phone below 600px (a bottom tab bar, one
|
|
15
|
+
pane at a time). `SplitPanes` takes `active`, the pane the person is in, and `back`, a link to the pane before
|
|
16
|
+
it, shown where that pane is hidden; with the selection in the address, the browser's Back agrees. Sign-in fits
|
|
17
|
+
every width, and every control is at least 44px at tablet and phone widths.
|
|
18
|
+
- A navy button keeps a visible 1px edge in dark (`button-chrome-border`).
|
|
19
|
+
- Changed: `Avatar` takes one of six tints from the name (`tintOf`), the same name always the same tint.
|
|
20
|
+
- Added: Inter (`./fonts.css`, SIL Open Font License 1.1) and the token file with the Workspace tokens, both from
|
|
21
|
+
design-tokens 0.6.0, as the lock records.
|
|
22
|
+
- The demo gains a Workspace page per screen (Mail, Chat, Calls, Sign in), light and dark: `demo/workspace.html`.
|
|
23
|
+
Mail shows the mailbox's folders as a tree, never labels. Each screen's place is in its address (`#mail/2` is
|
|
24
|
+
Mail with its third message open).
|
|
25
|
+
- Checks: `check-breakpoints` (every media query width is a breakpoint token) and `check-layout` (every demo screen
|
|
26
|
+
at 1440, 1024, 768 and 390px, light and dark, in headless Chrome: nothing passes the edge or scrolls sideways,
|
|
27
|
+
and no control at touch widths is under 44px).
|
|
28
|
+
|
|
29
|
+
## 0.1.0-alpha.2 (2026-10-28)
|
|
30
|
+
|
|
31
|
+
The token file is CSS a browser keeps whole.
|
|
32
|
+
|
|
33
|
+
- Fixed: `tokens.css` was a copy of `coolms/design-tokens`' SCSS file. Its first line, a `//` comment, is a comment in
|
|
34
|
+
SCSS but not in CSS, so a browser dropped the whole light `:root` block behind it: in the light theme every
|
|
35
|
+
`--cms-*` token was undefined and the components lost their colours, spacing and radii. It is now a copy of
|
|
36
|
+
`dist/coolms-tokens.css`, the same blocks with a CSS comment header, from `coolms/design-tokens` v0.5.0, pinned in
|
|
37
|
+
`design-tokens.lock.json` with the tag's commit.
|
|
38
|
+
- Added: `tools/check-css.mjs`, copied from v0.5.0 and pinned the same way, runs on the token file in
|
|
39
|
+
`tokens:check`; `tools/check-css-teeth.mjs` makes sure it still fails a `//` header and a missing file.
|
|
40
|
+
- 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
|
|
41
|
+
later.
|
|
42
|
+
|
|
5
43
|
## 0.1.0-alpha.1 (2026-10-23)
|
|
6
44
|
|
|
7
|
-
The first pre-release.
|
|
45
|
+
The first pre-release. Published from `develop` at 91f0db3, which has no tag; the package already carries
|
|
46
|
+
`design-tokens.lock.json` (#1).
|
|
8
47
|
|
|
9
48
|
- The 15 components of the CoolMS UI contract, each in every state the contract names. `elevation-required` is not
|
|
10
49
|
offered.
|
package/README.md
CHANGED
|
@@ -13,9 +13,13 @@ server helpers are how a React client reads it.
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install @coolms/ui-react@
|
|
16
|
+
npm install @coolms/ui-react@VERSION
|
|
17
17
|
```
|
|
18
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
|
+
|
|
19
23
|
React 19.2 or later is a peer dependency.
|
|
20
24
|
|
|
21
25
|
```tsx
|
|
@@ -77,8 +81,9 @@ npm run verify
|
|
|
77
81
|
|
|
78
82
|
runs, in order:
|
|
79
83
|
|
|
80
|
-
- `tokens:check`: the token file, the contract and
|
|
81
|
-
every token `kit.css` reads is
|
|
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.
|
|
82
87
|
- `check`: `kit.contract.json` covers the contract, and the components and files it names exist.
|
|
83
88
|
- `typecheck` and `test`.
|
|
84
89
|
- `build`, then `check:built`: the published module loads, exports every declared component, and every target the
|
package/design-tokens.lock.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repository": "coolms/design-tokens",
|
|
3
|
-
"tag": "v0.
|
|
4
|
-
"commit": "
|
|
3
|
+
"tag": "v0.6.0",
|
|
4
|
+
"commit": "0dd27d145de67936bde4b6dd4d904a9d8df63211",
|
|
5
5
|
"files": {
|
|
6
|
-
"dist/coolms-tokens.
|
|
6
|
+
"dist/coolms-tokens.css": {
|
|
7
7
|
"to": "src/tokens/coolms-tokens.css",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "670c856f8473924fe07b735b39ddd0d14afa0f648373bd4d8b906309fd49a08e"
|
|
9
9
|
},
|
|
10
10
|
"contract/components.json": {
|
|
11
11
|
"to": "contract/components.json",
|
|
@@ -18,6 +18,30 @@
|
|
|
18
18
|
"tools/check-kit.mjs": {
|
|
19
19
|
"to": "tools/check-kit.mjs",
|
|
20
20
|
"sha256": "f8407f6accd55eb666eb6bbfe629a10f959c3bf6c62fe8ef2f1fe06a48471a8c"
|
|
21
|
+
},
|
|
22
|
+
"tools/check-css.mjs": {
|
|
23
|
+
"to": "tools/check-css.mjs",
|
|
24
|
+
"sha256": "231ca006b6e949f9882c98186527e2a974efb5acd60bfb8d05a37d82eae6a678"
|
|
25
|
+
},
|
|
26
|
+
"fonts/inter.css": {
|
|
27
|
+
"to": "src/fonts/inter.css",
|
|
28
|
+
"sha256": "78bea3ce5f8e0209ec80162fd692c138a5628ae37c69b2362a49ba755540b2b1"
|
|
29
|
+
},
|
|
30
|
+
"fonts/inter-latin.woff2": {
|
|
31
|
+
"to": "src/fonts/inter-latin.woff2",
|
|
32
|
+
"sha256": "3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62"
|
|
33
|
+
},
|
|
34
|
+
"fonts/inter-latin-ext.woff2": {
|
|
35
|
+
"to": "src/fonts/inter-latin-ext.woff2",
|
|
36
|
+
"sha256": "34b9c504cab7a73e37b746343a449132e56cf7b5481af2cb81dc74dcff25c956"
|
|
37
|
+
},
|
|
38
|
+
"fonts/inter-cyrillic.woff2": {
|
|
39
|
+
"to": "src/fonts/inter-cyrillic.woff2",
|
|
40
|
+
"sha256": "71d5ee93cc1e9f1d520a3a8b66456de18c7879d8df09d57fcd2eaff75fef0075"
|
|
41
|
+
},
|
|
42
|
+
"fonts/OFL.txt": {
|
|
43
|
+
"to": "src/fonts/OFL.txt",
|
|
44
|
+
"sha256": "262481e844521b326f5ecd053e59b98c8b2da78c8ee1bdbb6e8174305e54935a"
|
|
21
45
|
}
|
|
22
46
|
}
|
|
23
47
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface IncomingCallProps {
|
|
3
|
+
/** Who is calling. */
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly media: 'audio' | 'video';
|
|
6
|
+
readonly onAccept: () => void;
|
|
7
|
+
readonly onDecline: () => void;
|
|
8
|
+
}
|
|
9
|
+
/** A call ringing on this device: who, and Accept or Decline. An alert dialog, so a screen reader announces it. */
|
|
10
|
+
export declare function IncomingCall({ name, media, onAccept, onDecline }: IncomingCallProps): ReactNode;
|
|
11
|
+
export interface CallPanelProps {
|
|
12
|
+
readonly name: string;
|
|
13
|
+
/** How long the call has lasted ("04:12"). */
|
|
14
|
+
readonly duration: string;
|
|
15
|
+
/** What the call's statistics say of the connection. */
|
|
16
|
+
readonly connection: 'good' | 'poor';
|
|
17
|
+
/** This account, in the call: its name and whether it is speaking. */
|
|
18
|
+
readonly you: {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly speaking: boolean;
|
|
21
|
+
};
|
|
22
|
+
readonly muted: boolean;
|
|
23
|
+
readonly speaker: boolean;
|
|
24
|
+
readonly onToggleMute: () => void;
|
|
25
|
+
readonly onToggleSpeaker: () => void;
|
|
26
|
+
readonly onAddPerson?: () => void;
|
|
27
|
+
readonly onChat?: () => void;
|
|
28
|
+
readonly onHangUp: () => void;
|
|
29
|
+
}
|
|
30
|
+
/** A call in progress: who, how long, how the connection is, and its controls. */
|
|
31
|
+
export declare function CallPanel({ name, duration, connection, you, muted, speaker, onToggleMute, onToggleSpeaker, onAddPerson, onChat, onHangUp }: CallPanelProps): ReactNode;
|
|
32
|
+
export interface CallBarProps {
|
|
33
|
+
readonly name: string;
|
|
34
|
+
readonly duration: string;
|
|
35
|
+
readonly muted: boolean;
|
|
36
|
+
readonly onToggleMute: () => void;
|
|
37
|
+
readonly onReturn: () => void;
|
|
38
|
+
readonly onHangUp: () => void;
|
|
39
|
+
}
|
|
40
|
+
/** The call, kept in view while another section is open: who, how long, mute, back to it, hang up. */
|
|
41
|
+
export declare function CallBar({ name, duration, muted, onToggleMute, onReturn, onHangUp }: CallBarProps): ReactNode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
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';
|
|
4
|
+
export interface IconProps {
|
|
5
|
+
readonly name: IconName;
|
|
6
|
+
readonly size?: number;
|
|
7
|
+
/** Only for an icon that stands alone and carries meaning; an icon beside its text is decorative. */
|
|
8
|
+
readonly label?: string;
|
|
9
|
+
}
|
|
10
|
+
/** An icon from the Workspace's set; decorative unless given a label. */
|
|
11
|
+
export declare function Icon({ name, size, label }: IconProps): ReactNode;
|
|
12
|
+
export declare const ICON_NAMES: readonly IconName[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type IconName } from './Icon';
|
|
3
|
+
export interface SignInFeature {
|
|
4
|
+
readonly icon: IconName;
|
|
5
|
+
readonly label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface SignInLayoutProps {
|
|
8
|
+
/** The brand mark: one letter, or an image. */
|
|
9
|
+
readonly mark: ReactNode;
|
|
10
|
+
readonly product: string;
|
|
11
|
+
readonly headline: string;
|
|
12
|
+
readonly lead: string;
|
|
13
|
+
readonly features?: readonly SignInFeature[];
|
|
14
|
+
/** The form, on the light side. */
|
|
15
|
+
readonly children: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/** The one sign-in page of the admin and the Workspace: the brand on the dark side, the form on the light side. */
|
|
18
|
+
export declare function SignInLayout({ mark, product, headline, lead, features, children }: SignInLayoutProps): ReactNode;
|
|
19
|
+
export interface SignInFormProps {
|
|
20
|
+
/** The server signed in to, as its host. */
|
|
21
|
+
readonly server: string;
|
|
22
|
+
readonly onSubmit: (identifier: string, password: string) => void;
|
|
23
|
+
readonly forgotHref?: string;
|
|
24
|
+
readonly createHref?: string;
|
|
25
|
+
/** The server's refusal, in its words. */
|
|
26
|
+
readonly error?: string;
|
|
27
|
+
readonly busy?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** Signing in with an identifier and a password; the password can be shown while typed. */
|
|
30
|
+
export declare function SignInForm({ server, onSubmit, forgotHref, createHref, error, busy }: SignInFormProps): ReactNode;
|
|
@@ -42,5 +42,7 @@ export interface AvatarProps {
|
|
|
42
42
|
}
|
|
43
43
|
/** Up to two initials from a name: "Ada Lovelace" -> "AL", "ada" -> "A". */
|
|
44
44
|
export declare function initialsOf(name: string): string;
|
|
45
|
+
/** Which of the six avatar tints a name takes: the same name always the same tint. */
|
|
46
|
+
export declare function tintOf(name: string): number;
|
|
45
47
|
/** A person or an account, by picture or initials (contract component `avatar`: picture, initials, presence). */
|
|
46
48
|
export declare function Avatar({ name, pictureUrl, presence, size }: AvatarProps): ReactNode;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type IconName } from './Icon';
|
|
3
|
+
export interface BadgeProps {
|
|
4
|
+
readonly count: number;
|
|
5
|
+
/** What the number counts, for a screen reader ("12 unread"). */
|
|
6
|
+
readonly label: string;
|
|
7
|
+
/** Over this, the badge reads "max+". */
|
|
8
|
+
readonly max?: number;
|
|
9
|
+
}
|
|
10
|
+
/** A count on the accent: unread messages, chats waiting. Nothing is drawn for zero. */
|
|
11
|
+
export declare function Badge({ count, label, max }: BadgeProps): ReactNode;
|
|
12
|
+
export interface RailItem {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly label: string;
|
|
15
|
+
readonly icon: IconName;
|
|
16
|
+
readonly href: string;
|
|
17
|
+
readonly badge?: {
|
|
18
|
+
readonly count: number;
|
|
19
|
+
readonly label: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface AppShellProps {
|
|
23
|
+
/** The product's name, beside the brand mark ("CoolMS Workspace"). */
|
|
24
|
+
readonly product: ReactNode;
|
|
25
|
+
/** The brand mark at the top of the rail: one letter, or an image. */
|
|
26
|
+
readonly mark: ReactNode;
|
|
27
|
+
readonly rail: readonly RailItem[];
|
|
28
|
+
readonly active: string;
|
|
29
|
+
/** Called instead of following the link, when given (a client-side router). */
|
|
30
|
+
readonly onNavigate?: (id: string) => void;
|
|
31
|
+
/** The server the page is signed in to, as a control that switches servers. */
|
|
32
|
+
readonly server?: ReactNode;
|
|
33
|
+
/** The global search field. */
|
|
34
|
+
readonly search?: ReactNode;
|
|
35
|
+
/** Notifications and the account, at the right of the top bar. */
|
|
36
|
+
readonly account?: ReactNode;
|
|
37
|
+
readonly children: ReactNode;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The Workspace's frame: a dark rail of sections, each an icon over its name with its count, and a light top bar with
|
|
41
|
+
* the server, the search and the account. The open section is marked for assistive technology as the current page.
|
|
42
|
+
*/
|
|
43
|
+
export declare function AppShell({ product, mark, rail, active, onNavigate, server, search, account, children }: AppShellProps): ReactNode;
|
|
44
|
+
export interface SearchFieldProps {
|
|
45
|
+
readonly label: string;
|
|
46
|
+
readonly placeholder?: string;
|
|
47
|
+
readonly value: string;
|
|
48
|
+
readonly onChange: (value: string) => void;
|
|
49
|
+
readonly onSearch?: (value: string) => void;
|
|
50
|
+
}
|
|
51
|
+
/** A search field with its icon; the label is for assistive technology, the placeholder shows what can be found. */
|
|
52
|
+
export declare function SearchField({ label, placeholder, value, onChange, onSearch }: SearchFieldProps): ReactNode;
|
|
53
|
+
export interface FilterOption {
|
|
54
|
+
readonly id: string;
|
|
55
|
+
readonly label: string;
|
|
56
|
+
}
|
|
57
|
+
export interface FilterChipsProps {
|
|
58
|
+
readonly options: readonly FilterOption[];
|
|
59
|
+
readonly value: string;
|
|
60
|
+
readonly onChange: (id: string) => void;
|
|
61
|
+
/** What the chips filter ("Show"). */
|
|
62
|
+
readonly label: string;
|
|
63
|
+
}
|
|
64
|
+
/** One of a few filters, as pills; arrow keys move between them, as a radio group does. */
|
|
65
|
+
export declare function FilterChips({ options, value, onChange, label }: FilterChipsProps): ReactNode;
|
|
66
|
+
export interface Pane {
|
|
67
|
+
/** What the pane holds, for assistive technology ("Folders", "Messages", "Message"). */
|
|
68
|
+
readonly label: string;
|
|
69
|
+
readonly content: ReactNode;
|
|
70
|
+
}
|
|
71
|
+
export interface SplitPanesProps {
|
|
72
|
+
/** Two panes (a list and what is open) or three (navigation, a list, what is open). */
|
|
73
|
+
readonly panes: readonly [Pane, Pane] | readonly [Pane, Pane, Pane];
|
|
74
|
+
/**
|
|
75
|
+
* The pane the person is in, by its index: where the selection has got to (the folders, a list, a message). At
|
|
76
|
+
* phone width only this pane shows; at tablet width it and the one before it. The last pane by default.
|
|
77
|
+
*/
|
|
78
|
+
readonly active?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Where Back goes from the active pane: the address of the pane before it, so the browser's own Back agrees. Shown
|
|
81
|
+
* only where that pane is hidden (phone, or tablet with three panes and the last one active).
|
|
82
|
+
*/
|
|
83
|
+
readonly back?: {
|
|
84
|
+
readonly label: string;
|
|
85
|
+
readonly href: string;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* A section's panes: side by side on desktop, the active pane and the one before it on tablet, the active pane alone
|
|
90
|
+
* on phone, with Back to the one before it. The last visible pane takes the rest of the width.
|
|
91
|
+
*/
|
|
92
|
+
export declare function SplitPanes({ panes, active, back }: SplitPanesProps): ReactNode;
|
|
93
|
+
export interface MailRowProps {
|
|
94
|
+
readonly from: string;
|
|
95
|
+
readonly subject: string;
|
|
96
|
+
readonly preview: string;
|
|
97
|
+
/** When it arrived, as the reader reads it ("09:42", "Yesterday"). */
|
|
98
|
+
readonly time: string;
|
|
99
|
+
readonly unread?: boolean;
|
|
100
|
+
readonly hasAttachment?: boolean;
|
|
101
|
+
readonly selected?: boolean;
|
|
102
|
+
readonly onOpen: () => void;
|
|
103
|
+
}
|
|
104
|
+
/** One message in a mailbox's list: who, what, the start of it, when; unread in bold with its dot. */
|
|
105
|
+
export declare function MailRow({ from, subject, preview, time, unread, hasAttachment, selected, onOpen }: MailRowProps): ReactNode;
|
|
106
|
+
export interface ChatBubbleProps {
|
|
107
|
+
/** Received from someone else, or sent by this account. */
|
|
108
|
+
readonly direction: 'in' | 'out';
|
|
109
|
+
readonly children: ReactNode;
|
|
110
|
+
readonly time: string;
|
|
111
|
+
/** For a sent message: whether the other side has read it. */
|
|
112
|
+
readonly read?: boolean;
|
|
113
|
+
}
|
|
114
|
+
/** One chat message; the corner nearest its sender is the tail. */
|
|
115
|
+
export declare function ChatBubble({ direction, children, time, read }: ChatBubbleProps): ReactNode;
|
|
116
|
+
export interface ComposerProps {
|
|
117
|
+
/** What is being written and to whom ("Message Anna", "Quick reply to Anna Kowalska"). */
|
|
118
|
+
readonly label: string;
|
|
119
|
+
readonly value: string;
|
|
120
|
+
readonly onChange: (value: string) => void;
|
|
121
|
+
readonly onSend: () => void;
|
|
122
|
+
readonly onAttach?: () => void;
|
|
123
|
+
readonly placeholder?: string;
|
|
124
|
+
/** `chat`: one line beside its buttons; `reply`: a titled box under a message. */
|
|
125
|
+
readonly variant?: 'chat' | 'reply';
|
|
126
|
+
readonly sendLabel?: string;
|
|
127
|
+
}
|
|
128
|
+
/** Writing a message: the text, attaching a file, sending. Enter sends a chat message; Shift+Enter starts a new line. */
|
|
129
|
+
export declare function Composer({ label, value, onChange, onSend, onAttach, placeholder, variant, sendLabel }: ComposerProps): ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,11 @@ export { Button, type ButtonProps } from './components/Button';
|
|
|
2
2
|
export { TextField, Select, Toggle, type TextFieldProps, type SelectProps, type SelectOption, type ToggleProps } from './components/Fields';
|
|
3
3
|
export { Modal, ConfirmDialog, MODAL_CLOSE_MS, type ModalProps, type ConfirmDialogProps } from './components/Dialogs';
|
|
4
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';
|
|
5
|
+
export { PageHeader, TabStrip, Avatar, initialsOf, tintOf, type PageHeaderProps, type Tab, type TabStripProps, type AvatarProps } from './components/Structure';
|
|
6
|
+
export { Icon, ICON_NAMES, type IconName, type IconProps } from './components/Icon';
|
|
7
|
+
export { AppShell, Badge, SearchField, FilterChips, SplitPanes, MailRow, ChatBubble, Composer, type AppShellProps, type RailItem, type BadgeProps, type SearchFieldProps, type FilterChipsProps, type FilterOption, type SplitPanesProps, type Pane, type MailRowProps, type ChatBubbleProps, type ComposerProps } from './components/Workspace';
|
|
8
|
+
export { IncomingCall, CallPanel, CallBar, type IncomingCallProps, type CallPanelProps, type CallBarProps } from './components/Call';
|
|
9
|
+
export { SignInLayout, SignInForm, type SignInLayoutProps, type SignInFormProps, type SignInFeature } from './components/SignIn';
|
|
6
10
|
export { List, ContextMenu, type ListRow, type ListProps, type MenuItem, type ContextMenuProps } from './components/Collections';
|
|
7
11
|
export { offerFor, isCapability, type Capability, type Offer, type OfferOptions } from './server/capability';
|
|
8
12
|
export { readRefusal, refusalText, type Refusal } from './server/refusal';
|