@coolms/ui-react 0.1.0-alpha.24 → 0.1.0-alpha.26
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 +13 -0
- package/design-tokens.lock.json +4 -4
- package/dist/components/Workspace.d.ts +5 -1
- package/package.json +1 -1
- package/src/kit.css +10 -5
- package/src/tokens/coolms-tokens.css +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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.26 (2026-11-23)
|
|
6
|
+
|
|
7
|
+
Mail rows back to three lines at every width, on design tokens v0.14.0.
|
|
8
|
+
|
|
9
|
+
- Design tokens v0.14.0 (#102): `--cms-list-row-height-three-line` (84px), and the `state` entry's optional icon and empty pane part.
|
|
10
|
+
- `MailRow` back to three lines at every width (the sender and the time; the subject, with the unread dot; the preview), at least `--cms-list-row-height-three-line` (84px): .875, .8125 and .75rem at line-height 1.5, 2px apart, 10px above and below. The compact density heights stay for the other lists. The two-line desktop row and the phone's own rule of alpha.25 are gone.
|
|
11
|
+
|
|
12
|
+
## 0.1.0-alpha.25 (2026-11-22)
|
|
13
|
+
|
|
14
|
+
Mail rows at the list density tokens: two lines from tablet width up, three on a phone.
|
|
15
|
+
|
|
16
|
+
- `MailRow` by the list density rule: from tablet width up two lines (the sender and the time; the subject, then the muted preview on one cut line) at `--cms-list-row-height-two-line`; on a phone three lines from `--cms-list-row-height-phone-two-line`. The row's height is the token's, its padding only centres it.
|
|
17
|
+
|
|
5
18
|
## 0.1.0-alpha.24 (2026-11-22)
|
|
6
19
|
|
|
7
20
|
Design tokens v0.13.0: the list density tokens, the list's density and columns parts, and the served icon list 0.7.0, every Workspace name in it drawn by the kit.
|
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.14.0",
|
|
4
|
+
"commit": "1e707a3e3124254a8eb2bd9f92942da84f625a47",
|
|
5
5
|
"files": {
|
|
6
6
|
"dist/coolms-tokens.css": {
|
|
7
7
|
"to": "src/tokens/coolms-tokens.css",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "d98294c16191d36569a81f5c97c17cd20f8bdc4a2a6a30efae5b66ee952c4eab"
|
|
9
9
|
},
|
|
10
10
|
"contract/components.json": {
|
|
11
11
|
"to": "contract/components.json",
|
|
12
|
-
"sha256": "
|
|
12
|
+
"sha256": "dc5f30ef81c6d96cc408cb2533601e5c5dc5ea2becf045328e30462cb7abcfd6"
|
|
13
13
|
},
|
|
14
14
|
"contract/server-states.json": {
|
|
15
15
|
"to": "contract/server-states.json",
|
|
@@ -140,7 +140,11 @@ export interface MailRowLabels {
|
|
|
140
140
|
readonly unread: string;
|
|
141
141
|
}
|
|
142
142
|
export declare const MAIL_ROW_LABELS: MailRowLabels;
|
|
143
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* One message in a mailbox's list: who, what, the start of it, when; unread in bold with its dot. From tablet width up
|
|
145
|
+
* two lines (contract list, part density): the sender and the time, then the subject and the muted preview on one cut
|
|
146
|
+
* line, at the two-line row height; on a phone three lines, the preview on its own.
|
|
147
|
+
*/
|
|
144
148
|
export declare function MailRow({ from, subject, preview, time, unread, hasAttachment, selected, onOpen, labels }: MailRowProps): ReactNode;
|
|
145
149
|
export interface ChatBubbleProps {
|
|
146
150
|
/** Received from someone else, or sent by this account. */
|
package/package.json
CHANGED
package/src/kit.css
CHANGED
|
@@ -459,9 +459,14 @@
|
|
|
459
459
|
/* Mail row */
|
|
460
460
|
.cms-mail-row {
|
|
461
461
|
display: flex;
|
|
462
|
+
align-items: flex-start;
|
|
462
463
|
gap: var(--cms-space-3);
|
|
464
|
+
box-sizing: border-box;
|
|
463
465
|
width: 100%;
|
|
464
|
-
|
|
466
|
+
/* Three lines at every width (the sender and the time; the subject; the preview), never shorter than the three-line
|
|
467
|
+
token and taller as the text grows. */
|
|
468
|
+
min-height: var(--cms-list-row-height-three-line);
|
|
469
|
+
padding: 10px var(--cms-space-4);
|
|
465
470
|
border: 0;
|
|
466
471
|
border-bottom: 1px solid var(--cms-border-light);
|
|
467
472
|
background: var(--cms-surface);
|
|
@@ -472,12 +477,12 @@
|
|
|
472
477
|
}
|
|
473
478
|
.cms-mail-row:hover { background: var(--cms-surface-muted); }
|
|
474
479
|
.cms-mail-row.is-selected { background: var(--cms-row-selected); }
|
|
475
|
-
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
|
|
480
|
+
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.5; }
|
|
476
481
|
.cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
477
|
-
.cms-mail-row__from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-body
|
|
482
|
+
.cms-mail-row__from { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-body); }
|
|
478
483
|
.cms-mail-row__time { color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); white-space: nowrap; }
|
|
479
|
-
.cms-mail-row__subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); }
|
|
480
|
-
.cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); }
|
|
484
|
+
.cms-mail-row__subject { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); font-size: var(--cms-font-size-meta); }
|
|
485
|
+
.cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); font-size: var(--cms-font-size-label); }
|
|
481
486
|
.cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
482
487
|
.cms-mail-row.is-unread .cms-mail-row__from, .cms-mail-row.is-unread .cms-mail-row__subject { font-weight: var(--cms-font-weight-semibold); }
|
|
483
488
|
.cms-mail-row .cms-icon { color: var(--cms-text-muted); }
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
--cms-list-row-height-two-line: 52px;
|
|
113
113
|
--cms-list-row-height-phone: 48px;
|
|
114
114
|
--cms-list-row-height-phone-two-line: 60px;
|
|
115
|
+
--cms-list-row-height-three-line: 84px;
|
|
115
116
|
--cms-row-selected: #eef2f7;
|
|
116
117
|
--cms-border-input: #8b929c;
|
|
117
118
|
--cms-success-strong: #15803d;
|