@coolms/ui-react 0.1.0-alpha.25 → 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 +7 -0
- package/design-tokens.lock.json +4 -4
- package/dist/index.js +1 -2
- package/package.json +1 -1
- package/src/kit.css +9 -21
- package/src/tokens/coolms-tokens.css +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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
|
+
|
|
5
12
|
## 0.1.0-alpha.25 (2026-11-22)
|
|
6
13
|
|
|
7
14
|
Mail rows at the list density tokens: two lines from tablet width up, three on a phone.
|
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",
|
package/dist/index.js
CHANGED
|
@@ -1199,10 +1199,9 @@ function Jn({ from: n, subject: l, preview: t, time: o, unread: i, hasAttachment
|
|
|
1199
1199
|
] }),
|
|
1200
1200
|
/* @__PURE__ */ u("span", { className: "cms-mail-row__line", children: [
|
|
1201
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 }),
|
|
1203
1202
|
i ? /* @__PURE__ */ e("span", { className: "cms-mail-row__dot", role: "img", "aria-label": _.unread }) : null
|
|
1204
1203
|
] }),
|
|
1205
|
-
/* @__PURE__ */ e("span", { className: "cms-mail-row__preview
|
|
1204
|
+
/* @__PURE__ */ e("span", { className: "cms-mail-row__preview", children: t })
|
|
1206
1205
|
] })
|
|
1207
1206
|
]
|
|
1208
1207
|
}
|
package/package.json
CHANGED
package/src/kit.css
CHANGED
|
@@ -459,13 +459,14 @@
|
|
|
459
459
|
/* Mail row */
|
|
460
460
|
.cms-mail-row {
|
|
461
461
|
display: flex;
|
|
462
|
-
align-items:
|
|
462
|
+
align-items: flex-start;
|
|
463
463
|
gap: var(--cms-space-3);
|
|
464
464
|
box-sizing: border-box;
|
|
465
465
|
width: 100%;
|
|
466
|
-
/*
|
|
467
|
-
|
|
468
|
-
|
|
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);
|
|
469
470
|
border: 0;
|
|
470
471
|
border-bottom: 1px solid var(--cms-border-light);
|
|
471
472
|
background: var(--cms-surface);
|
|
@@ -476,14 +477,12 @@
|
|
|
476
477
|
}
|
|
477
478
|
.cms-mail-row:hover { background: var(--cms-surface-muted); }
|
|
478
479
|
.cms-mail-row.is-selected { background: var(--cms-row-selected); }
|
|
479
|
-
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.
|
|
480
|
+
.cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.5; }
|
|
480
481
|
.cms-mail-row__line { display: flex; align-items: center; gap: var(--cms-space-2); min-width: 0; }
|
|
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
|
|
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); }
|
|
482
483
|
.cms-mail-row__time { color: var(--cms-text-muted); font-size: var(--cms-font-size-meta); white-space: nowrap; }
|
|
483
|
-
.cms-mail-row__subject { flex:
|
|
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; }
|
|
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); }
|
|
487
486
|
.cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
|
|
488
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); }
|
|
489
488
|
.cms-mail-row .cms-icon { color: var(--cms-text-muted); }
|
|
@@ -613,17 +612,6 @@
|
|
|
613
612
|
@media (max-width: 1199.98px) {
|
|
614
613
|
.cms-viewer__icon, .cms-viewer__button { min-height: var(--cms-touch-target-min); min-width: var(--cms-touch-target-min); }
|
|
615
614
|
}
|
|
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
|
-
}
|
|
627
615
|
@media (max-width: 599.98px) {
|
|
628
616
|
.cms-viewer__top { padding: 0 var(--cms-space-1); gap: var(--cms-space-1); }
|
|
629
617
|
.cms-viewer__icon { width: var(--cms-touch-target-min); height: var(--cms-touch-target-min); }
|
|
@@ -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;
|