@coolms/ui-react 0.1.0-alpha.25 → 0.1.0-alpha.27

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/kit.contract.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "client-version": { "where": "src/server/client-update.ts" }
36
36
  },
37
37
  "notOffered": {
38
- "elevation-required": "this kit's clients never elevate: an `elevate` answer is not offered at all (offerFor with elevates: false)"
38
+ "elevation-required": "this kit's clients never elevate: an `elevate` answer is not offered at all (offerFor with elevates: false)",
39
+ "settings-shell": "no screen of this kit's clients draws a settings layout yet: it is offered with the first one (My Profile)"
39
40
  }
40
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolms/ui-react",
3
- "version": "0.1.0-alpha.25",
3
+ "version": "0.1.0-alpha.27",
4
4
  "description": "The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/kit.css CHANGED
@@ -182,6 +182,7 @@
182
182
  .cms-state--page { flex: 1; min-height: 50vh; padding: var(--cms-space-8, 32px) var(--cms-space-4, 16px); }
183
183
  .cms-state--block { flex: 1; box-sizing: border-box; min-height: 100%; padding: var(--cms-space-8, 32px) var(--cms-space-4, 16px); }
184
184
  .cms-state--inline { display: inline-flex; flex-direction: row; gap: var(--cms-space-2, 8px); text-align: start; }
185
+ .cms-state__icon { display: inline-flex; color: var(--cms-text-muted); }
185
186
  .cms-state.is-waiting > :not(.cms-state__text) { visibility: hidden; }
186
187
  .cms-state.is-waiting > .cms-state__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
187
188
  .cms-state__text { display: flex; flex-direction: column; gap: var(--cms-space-1, 4px); }
@@ -459,13 +460,14 @@
459
460
  /* Mail row */
460
461
  .cms-mail-row {
461
462
  display: flex;
462
- align-items: center;
463
+ align-items: flex-start;
463
464
  gap: var(--cms-space-3);
464
465
  box-sizing: border-box;
465
466
  width: 100%;
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);
467
+ /* Three lines at every width (the sender and the time; the subject; the preview), never shorter than the three-line
468
+ token and taller as the text grows. */
469
+ min-height: var(--cms-list-row-height-three-line);
470
+ padding: 10px var(--cms-space-4);
469
471
  border: 0;
470
472
  border-bottom: 1px solid var(--cms-border-light);
471
473
  background: var(--cms-surface);
@@ -476,14 +478,12 @@
476
478
  }
477
479
  .cms-mail-row:hover { background: var(--cms-surface-muted); }
478
480
  .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.3; }
481
+ .cms-mail-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.5; }
480
482
  .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-lg); }
483
+ .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
484
  .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: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cms-text); }
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; }
485
+ .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); }
486
+ .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
487
  .cms-mail-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cms-accent); }
488
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); }
489
489
  .cms-mail-row .cms-icon { color: var(--cms-text-muted); }
@@ -613,17 +613,6 @@
613
613
  @media (max-width: 1199.98px) {
614
614
  .cms-viewer__icon, .cms-viewer__button { min-height: var(--cms-touch-target-min); min-width: var(--cms-touch-target-min); }
615
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
- }
627
616
  @media (max-width: 599.98px) {
628
617
  .cms-viewer__top { padding: 0 var(--cms-space-1); gap: var(--cms-space-1); }
629
618
  .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;
@@ -171,6 +172,7 @@
171
172
  --cms-control-height-lg: 44px;
172
173
  --cms-topbar-height: 64px;
173
174
  --cms-pane-toolbar-height: calc(var(--cms-row-height) + 2 * var(--cms-space-2));
175
+ --cms-pane-header-height: calc(var(--cms-row-height) + 2 * var(--cms-space-3));
174
176
  --cms-spinner-color: var(--cms-accent-text);
175
177
  --cms-spinner-track: var(--cms-border);
176
178
  --cms-spinner-size-inline: 16px;