@coolms/ui-react 0.1.0-alpha.23 → 0.1.0-alpha.25
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 -1
- package/design-tokens.lock.json +5 -5
- package/dist/components/Workspace.d.ts +5 -1
- package/dist/index.js +7 -2
- package/package.json +1 -1
- package/src/kit.css +20 -3
- package/src/tokens/coolms-tokens.css +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,22 @@
|
|
|
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.25 (2026-11-22)
|
|
6
|
+
|
|
7
|
+
Mail rows at the list density tokens: two lines from tablet width up, three on a phone.
|
|
8
|
+
|
|
9
|
+
- `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.
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.24 (2026-11-22)
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
- Design tokens v0.13.0 (a3767861cd02baaf26980596179bab8815e7a66a), from v0.11.0: the list density tokens (`list-row-height` 40px and `list-row-height-two-line` 52px from tablet width up, `list-row-height-phone` 48px and `list-row-height-phone-two-line` 60px at phone width), the list contract's `density` and `columns` parts, and `contract/icons.json` 0.7.0 (111 names, 31 for the Workspace).
|
|
16
|
+
- `iconForName`: the names the Drive sections and the Chat composer trees add for the Workspace (icons list 0.7.0): `file-earmark-text` (file), `folder2` (folder), `images` (image) and `paperclip`.
|
|
17
|
+
|
|
5
18
|
## 0.1.0-alpha.23 (2026-11-21)
|
|
6
19
|
|
|
7
|
-
|
|
20
|
+
A tap that opens a view no longer folds the screen shell's bar.
|
|
8
21
|
|
|
9
22
|
- `ScreenShell` `bar-hidden`: a reader's input counts only for a scroll of the element it was aimed at (its target inside it, or a key aimed at the whole page). A tap that opens a view, such as a conversation that then scrolls to its latest message, no longer folds the bar.
|
|
10
23
|
|
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.13.0",
|
|
4
|
+
"commit": "a3767861cd02baaf26980596179bab8815e7a66a",
|
|
5
5
|
"files": {
|
|
6
6
|
"dist/coolms-tokens.css": {
|
|
7
7
|
"to": "src/tokens/coolms-tokens.css",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "b4a72dd2c095f086c7110648b1655bb12779d1a9eeac619056e0f1c19bf1f188"
|
|
9
9
|
},
|
|
10
10
|
"contract/components.json": {
|
|
11
11
|
"to": "contract/components.json",
|
|
12
|
-
"sha256": "
|
|
12
|
+
"sha256": "2e85cedcc47db8d13585c80954ef83582ee6d95a732ead3be87d0fc9a4f3faba"
|
|
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": "677c7439f14e35bbe4c7278b559d280bcd01e33ba8e68134805538b3262f5408"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -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/dist/index.js
CHANGED
|
@@ -569,7 +569,11 @@ const zn = Object.keys(Be), Ae = {
|
|
|
569
569
|
"cloud-upload": "upload",
|
|
570
570
|
people: "users",
|
|
571
571
|
"file-earmark-word": "file",
|
|
572
|
-
"file-earmark-spreadsheet": "file"
|
|
572
|
+
"file-earmark-spreadsheet": "file",
|
|
573
|
+
"file-earmark-text": "file",
|
|
574
|
+
folder2: "folder",
|
|
575
|
+
images: "image",
|
|
576
|
+
paperclip: "paperclip"
|
|
573
577
|
};
|
|
574
578
|
function re(n) {
|
|
575
579
|
return Object.prototype.hasOwnProperty.call(Ae, n) ? Ae[n] : null;
|
|
@@ -1195,9 +1199,10 @@ function Jn({ from: n, subject: l, preview: t, time: o, unread: i, hasAttachment
|
|
|
1195
1199
|
] }),
|
|
1196
1200
|
/* @__PURE__ */ u("span", { className: "cms-mail-row__line", children: [
|
|
1197
1201
|
/* @__PURE__ */ e("span", { className: "cms-mail-row__subject", children: l }),
|
|
1202
|
+
/* @__PURE__ */ e("span", { className: "cms-mail-row__preview cms-mail-row__preview--after", children: t }),
|
|
1198
1203
|
i ? /* @__PURE__ */ e("span", { className: "cms-mail-row__dot", role: "img", "aria-label": _.unread }) : null
|
|
1199
1204
|
] }),
|
|
1200
|
-
/* @__PURE__ */ e("span", { className: "cms-mail-row__preview", children: t })
|
|
1205
|
+
/* @__PURE__ */ e("span", { className: "cms-mail-row__preview cms-mail-row__preview--below", children: t })
|
|
1201
1206
|
] })
|
|
1202
1207
|
]
|
|
1203
1208
|
}
|
package/package.json
CHANGED
package/src/kit.css
CHANGED
|
@@ -459,9 +459,13 @@
|
|
|
459
459
|
/* Mail row */
|
|
460
460
|
.cms-mail-row {
|
|
461
461
|
display: flex;
|
|
462
|
+
align-items: center;
|
|
462
463
|
gap: var(--cms-space-3);
|
|
464
|
+
box-sizing: border-box;
|
|
463
465
|
width: 100%;
|
|
464
|
-
padding
|
|
466
|
+
/* The row's height is the density token's; the padding only centres its two lines and its avatar in it. */
|
|
467
|
+
min-height: var(--cms-list-row-height-two-line);
|
|
468
|
+
padding: calc((var(--cms-list-row-height-two-line) - 40px) / 2) var(--cms-space-4);
|
|
465
469
|
border: 0;
|
|
466
470
|
border-bottom: 1px solid var(--cms-border-light);
|
|
467
471
|
background: var(--cms-surface);
|
|
@@ -472,12 +476,14 @@
|
|
|
472
476
|
}
|
|
473
477
|
.cms-mail-row:hover { background: var(--cms-surface-muted); }
|
|
474
478
|
.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; }
|
|
479
|
+
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.3; }
|
|
476
480
|
.cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
477
481
|
.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-lg); }
|
|
478
482
|
.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); }
|
|
483
|
+
.cms-mail-row__subject { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); }
|
|
480
484
|
.cms-mail-row__preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text-muted); }
|
|
485
|
+
.cms-mail-row__preview--after { flex: 1 1 0; min-width: 0; }
|
|
486
|
+
.cms-mail-row__preview--below { display: none; }
|
|
481
487
|
.cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
482
488
|
.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
489
|
.cms-mail-row .cms-icon { color: var(--cms-text-muted); }
|
|
@@ -607,6 +613,17 @@
|
|
|
607
613
|
@media (max-width: 1199.98px) {
|
|
608
614
|
.cms-viewer__icon, .cms-viewer__button { min-height: var(--cms-touch-target-min); min-width: var(--cms-touch-target-min); }
|
|
609
615
|
}
|
|
616
|
+
/* A mail row on a phone: three lines (the sender and the time; the subject; the preview) in three sizes, 72px at the
|
|
617
|
+
default sizes, never shorter than the phone's two-line row and taller as the text grows. */
|
|
618
|
+
@media (max-width: 599.98px) {
|
|
619
|
+
.cms-mail-row { align-items: flex-start; min-height: var(--cms-list-row-height-phone-two-line); padding: 6px var(--cms-space-4); }
|
|
620
|
+
.cms-mail-row__body { line-height: 1.4; }
|
|
621
|
+
.cms-mail-row__from { font-size: var(--cms-font-size-body); }
|
|
622
|
+
.cms-mail-row__subject { flex: 1 1 auto; font-size: var(--cms-font-size-meta); }
|
|
623
|
+
.cms-mail-row__preview { font-size: var(--cms-font-size-label); }
|
|
624
|
+
.cms-mail-row__preview--after { display: none; }
|
|
625
|
+
.cms-mail-row__preview--below { display: block; }
|
|
626
|
+
}
|
|
610
627
|
@media (max-width: 599.98px) {
|
|
611
628
|
.cms-viewer__top { padding: 0 var(--cms-space-1); gap: var(--cms-space-1); }
|
|
612
629
|
.cms-viewer__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
|
|
@@ -108,6 +108,10 @@
|
|
|
108
108
|
--cms-row-height: 36px;
|
|
109
109
|
--cms-row-height-sm: 28px;
|
|
110
110
|
--cms-row-height-lg: 48px;
|
|
111
|
+
--cms-list-row-height: 40px;
|
|
112
|
+
--cms-list-row-height-two-line: 52px;
|
|
113
|
+
--cms-list-row-height-phone: 48px;
|
|
114
|
+
--cms-list-row-height-phone-two-line: 60px;
|
|
111
115
|
--cms-row-selected: #eef2f7;
|
|
112
116
|
--cms-border-input: #8b929c;
|
|
113
117
|
--cms-success-strong: #15803d;
|