@coolms/ui-react 0.1.0-alpha.31 → 0.1.0-alpha.32

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
@@ -18,7 +18,7 @@
18
18
  "list": { "implementedBy": "List", "states": ["loading", "empty", "populated", "selected", "error", "pulled"] },
19
19
  "avatar": { "implementedBy": "Avatar", "states": ["picture", "initials", "presence", "connection", "deleted"] },
20
20
  "filter-chips": { "implementedBy": "FilterChips", "states": ["default", "chosen", "focused", "overflowing"] },
21
- "screen-shell": { "implementedBy": "ScreenShell", "states": ["root", "nested", "with-filters", "with-primary-action", "with-primary-menu", "pulling", "refreshing", "searching", "bar-hidden"] },
21
+ "screen-shell": { "implementedBy": "ScreenShell", "states": ["root", "nested", "with-filters", "with-primary-action", "with-primary-menu", "with-more", "pulling", "refreshing", "searching", "bar-hidden"] },
22
22
  "context-menu": { "implementedBy": "ContextMenu", "states": ["open", "item-danger", "item-locked", "item-refused", "item-disabled"] },
23
23
  "file-viewer": { "implementedBy": "FileViewer", "states": ["loading", "error", "no-preview", "editing", "editing-closing", "editing-conflict", "with-edit", "with-siblings", "with-thumbnails", "with-attachment-strip", "phone"] },
24
24
  "file-picker": { "implementedBy": "FilePicker", "states": ["loading", "empty", "error", "denied", "with-selection", "with-budget", "over-budget", "disabled-entry", "paging", "phone"] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolms/ui-react",
3
- "version": "0.1.0-alpha.31",
3
+ "version": "0.1.0-alpha.32",
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
@@ -282,10 +282,15 @@
282
282
  at the bottom right above the section bar. */
283
283
  .cms-screen { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--cms-surface); }
284
284
  .cms-screen__bar { display: flex; flex: none; align-items: center; gap: var(--cms-space-2); height: var(--cms-topbar-height); padding: 0 var(--cms-space-2); border-bottom: 1px solid var(--cms-border-light); }
285
- .cms-screen__leading { display: flex; flex: none; align-items: center; max-width: 40%; min-width: 0; }
285
+ /* Back gives way before the title: it takes all of the missing width, down to its icon, and only then is the title cut.
286
+ The weight is large enough that the title's own share rounds to nothing: a share of a hundredth of a pixel would cut it. */
287
+ .cms-screen__leading { display: flex; flex: 0 1000000 auto; align-items: center; max-width: 40%; min-width: var(--cms-touch-target-min); }
286
288
  .cms-screen__leading:empty { display: none; }
287
- .cms-screen__back { display: inline-flex; align-items: center; gap: var(--cms-space-1); min-width: 0; height: var(--cms-control-height-md); padding: 0 var(--cms-space-2); border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); font: inherit; text-decoration: none; cursor: pointer; }
288
- .cms-screen__back-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
289
+ /* Back is one row: the strut makes it the full height, so a name with no room for a readable piece wraps under it and is
290
+ not drawn. The name stays in the text, so Back is still named by it. Clipped, not scrolled: a find in the page moves nothing. */
291
+ .cms-screen__back { display: inline-flex; flex-wrap: wrap; align-content: flex-start; align-items: center; overflow: hidden; overflow: clip; gap: var(--cms-space-1); min-width: 0; height: var(--cms-control-height-md); padding: 0 var(--cms-space-2); border: 0; border-radius: var(--cms-radius-control); background: transparent; color: var(--cms-text-muted); font: inherit; text-decoration: none; cursor: pointer; }
292
+ .cms-screen__back::before { content: ""; width: 0; height: 100%; margin-inline-end: calc(-1 * var(--cms-space-1)); }
293
+ .cms-screen__back-name { flex: 1 1 24px; min-width: 24px; max-width: max-content; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
289
294
  .cms-screen__title { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; font-size: var(--cms-font-size-title-md); font-weight: var(--cms-font-weight-semibold); text-overflow: ellipsis; white-space: nowrap; }
290
295
  .cms-screen__trailing { display: flex; flex: none; align-items: center; gap: var(--cms-space-1); }
291
296
  .cms-screen__search { display: flex; flex: 1 1 auto; min-width: 0; }
@@ -465,8 +470,8 @@
465
470
  .cms-panes--sized { position: relative; }
466
471
  .cms-panes--sized.cms-panes--two { grid-template-columns: var(--split-pane-0) minmax(0, 1fr); }
467
472
  .cms-panes--sized.cms-panes--three { grid-template-columns: var(--split-pane-0) var(--split-pane-1) minmax(0, 1fr); }
468
- /* The splitter (contract `splitter`): an 8px strip between two columns that draws nothing at rest; on hover, while
469
- dragged and with focus, the accent line down its middle. */
473
+ /* The splitter (contract `splitter`): an 8px strip between two columns that draws nothing at rest; on hover and while
474
+ dragged, the accent line down its middle; with keyboard focus, the same line in the focus ring's colour. */
470
475
  .cms-splitter { position: relative; z-index: 2; flex: none; align-self: stretch; width: 8px; margin-inline: -4px; cursor: col-resize; touch-action: none; }
471
476
  .cms-splitter:hover, .cms-splitter.is-dragging { background: linear-gradient(to right, transparent 3px, var(--cms-accent) 3px, var(--cms-accent) 5px, transparent 5px); }
472
477
  /* Keyboard focus is the same one line, in the focus ring's colour: a ring around the 8px strip would draw two. */