@usableapp/cardds 0.7.116 → 0.7.118

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 CHANGED
@@ -2,6 +2,42 @@
2
2
 
3
3
  > For: a project that consumes `@usableapp/cardds` and its AI — what changed between versions, written as before → after, so a screen can be brought up to date without reading the source. Newest first. A consumer never edits cardds; if something here leaves you without a way to do what you did before, report the gap. Each release section after 0.7.97 carries one `Components:` line, written by `node scripts/components-changed.mjs <previous tag>`: the components the release changed, or `all` when a file changed that any component can read (a token, the build), or `none`; check only the screens that import those.
4
4
 
5
+ ## 0.7.118 — 2026-10-25
6
+
7
+ A long body text that opens in place (`Text expand`, replaces `Text scroll`), a settings sheet whose sections are all open (`SheetSettings`), a two-line `Tile inline`, and `Panes` that slide when the app moves them.
8
+
9
+ Components: Text, Card, Panes, Tile, SheetSettings, SheetSettingsGroup, SheetSteps
10
+
11
+ ### Breaking
12
+ - **`Text scroll` is gone; a long body text is `Text expand` (Lh 2026-10-25).** `scroll` showed a box of `--text-scroll-lines` lines that scrolled inside itself. `expand` CUTS the text at those lines with a chevron under it; a tap on the box or the chevron opens the whole text in place (the chevron turns up), a tap again folds it. A text that fits is only read: no chevron, not a control. Controlled like an input: `open` + `onOpenChange`, or `defaultOpen`. A cut text is a control (`role="button"`, `aria-expanded`, Enter/Space): a turning card does not turn on it, and a card with it beside one foot button is no longer pressed whole. Before → after: `<Text level="body" scroll>` → `<Text level="body" expand>`. The knobs keep their names: `--text-scroll-lines`, `--text-scroll-size` (`3.6lh` keeps the closed box 3.6 lines tall at every text size). Stories `Text/ExpandInATurningCard`, `Text/ExpandWithOneFootButton`, `Text/ExpandFits`, `Text/Controlled` (new); `Card/ReasonScrolls` removed, `Card/ReasonFixedHeight` uses `expand`.
13
+
14
+ ### Changed
15
+ - **`--text-scroll-lines` defaults to 3.6 (was 3.5):** a part of the next line peeks out under the cut, so it reads as more. A project that set the knob is unchanged.
16
+
17
+ ### Added
18
+ - **`SheetSettings` + `SheetSettingsGroup title`: a settings sheet's sections, ALL open, one under another (Lh 2026-10-25).** Settings built from `SheetSteps` had to be done one section before the next showed, and a done line looked like a title bar. `SheetSettings` has no order, no `at`, no ✓, no summary, no finish and no folding: each `SheetSettingsGroup` is a group labelled by its title, then its own rows and controls (`Rows` of `Row` + `Toggle`, a row with an `End` value). The title bar is the `SheetStep`'s own (same tint, height, type, inset), and information only: nothing to press. It shares the step's rules, so the `--sheet-step-bar-*`, `--sheet-step-title-font`, `--sheet-steps-row-h` and `--sheet-step-inner-pad-x` knobs retune both. Before → after: `<SheetSteps>` with one `SheetStep` per settings section → `<SheetSettings><SheetSettingsGroup title="Notifications">…`. Goes in a Sheet's `Body`. Stories `SheetSettings/Default`, `Short`, `Ruled` (new).
19
+ - **`Tile inline`: a two-line tile.** The icon at the start of the label's line, the sub under the label, at least the two lines tall (floored at the tap height). For wide picks in a `TileGrid` (time slots with their hours). Without `inline` nothing changes. Knobs `--tile-inline-gap`, `--tile-inline-min-h`. Story `Tile/Inline` (new).
20
+
21
+ ### Fixed
22
+ - **`Panes` slides when `at` changes from outside.** A `BtnGroup` (or anything of the app's) driving `at` made the rail jump instead of slide: the size watcher was made anew every render and its at-once align cut the smooth scroll short. Now one watcher for the rail's life, aligning only when the rail's width really changes. Story `Panes/Controlled` (new).
23
+ - **`Card` re-finds its pressed-whole control when a child becomes a control after mounting** (a `Text expand` that turns out not to fit), so the card is no longer pressed whole beside it.
24
+ - **`SheetSteps`:** nothing moves; its bar's rules are now written once with `SheetSettings` (`:is(.sheet-step__head, .sheet-settings__head)`).
25
+
26
+ ### Gallery
27
+ - ↓ / ↑ go page to page again, and a story no longer takes the focus or scrolls the page on arrival. Not shipped in the package.
28
+
29
+ ## 0.7.117 — 2026-10-25
30
+
31
+ Every switch follows the brand on every palette (orchard's sky Toggle and Ring removed); a gallery page of every switch; the spec scripts are paused.
32
+
33
+ Components: all
34
+
35
+ ### Changed
36
+ - **Every switch is the brand, `--accent` / `--on-accent`, on every palette (Lh 2026-10-25).** Under `data-palette="orchard"` an on `Toggle` was sky `--highlight-3` with a dark knob, and a `Ring`'s filled part was sky too, left over from a trial; on the brand card (tone 3) they did not turn to the card's ink like the other switches. Both rules are gone: the Toggle and the Ring now read like `Check`, the picks and `BtnGroup` — moss with a linen knob on paper, linen with a dark knob on the brand card. Before → after: nothing to change in a project; a project that wanted sky sets it from its own theme. Story `Switches/All` (new): every switch in five states (off, on, disabled off, disabled on, focus) under every palette and ground.
37
+
38
+ ### Removed
39
+ - **The spec scripts are paused (Lh 2026-10-25):** `npm test`, `npm run ci`, `snapshot:write`, `snapshot:check`, `scripts/ci.mjs` and `.github/workflows/ci.yml` are gone; lint (`check`, `validate:inbox`, `typecheck`, `dup`) stays. Nothing a consumer imports changes; publishing is unchanged.
40
+
5
41
  ## 0.7.116 — 2026-10-25
6
42
 
7
43
  `MapArea mark="none"`, a `keyboard` icon, `CalendarWeeks` holding several ranges, and controls in a scrolling body no longer cut with large text.
package/bin/cardds.mjs CHANGED
@@ -102,7 +102,7 @@ A real phone: run the dev server with server: { host: true } and open the Netw
102
102
  }
103
103
 
104
104
  // the exports beside the components that are not components (docs/roles.md rows `a function, not a component`…): shape `—` and nothing to tell them from a structural part, so they are named.
105
- // A new one joins here and in the list test of tests/catalog.spec.js, or it is listed as structure
105
+ // A new one joins here, or it is listed as structure
106
106
  const HELPERS = new Set(['applyMask', 'cardGrounds', 'inkGrounds', 'slideTo', 'slideScreen', 'installScreenSlide', 'useLayer', 'useLayers', 'useOptionalLayer', 'registerIcons', 'LayerHistory', 'setWords', 'word', 'setTextScale', 'controlsFor']);
107
107
  const one = (text) => text.replace(/\s+/g, ' ').trim();
108
108
  const indent = (text, by = ' ') => text.replace(/^(?=.)/gm, by);
package/css/actions.css CHANGED
@@ -428,7 +428,8 @@
428
428
  .feed-card--small (Lh 2026-10-09) = the small card of a CardFeed: the card itself is the button that grows it, so it has the ring too.
429
429
  .card--go (Lh 2026-10-09) = a card pressed whole: `Card` renders it while its ONE control is its foot's button or a row card's end
430
430
  button (src/cards/cardGo.ts). It is in the DIM pointer and :active lists only — the focus ring and the disabled look stay the
431
- button's, the card itself is never focused or disabled. */
431
+ button's, the card itself is never focused or disabled.
432
+ .t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds, so it DIMS. */
432
433
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
433
434
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
434
435
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick) {
@@ -436,7 +437,7 @@
436
437
  touch-action: manipulation;
437
438
  transition: scale var(--motion-press) var(--ease-out);
438
439
  }
439
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge) {
440
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more) {
440
441
  cursor: pointer;
441
442
  touch-action: manipulation;
442
443
  transition: opacity var(--motion-press) var(--ease-out);
@@ -451,7 +452,7 @@
451
452
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
452
453
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
453
454
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
454
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
455
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
455
456
  /* SHADE — what has something BEHIND it (a peeked sheet over the pile, a postcard's face over its back, a post letter's sheet over the other) must not turn see-through:
456
457
  it darkens a touch instead (--press-shade) */
457
458
  :where(.sheet-stack--tap > .card:not(.is-open), .postcard__turn, .post-letter__sheet:not(:has(.icon-btn:active))) { cursor: pointer; touch-action: manipulation; transition: filter var(--motion-press) var(--ease-out); }
@@ -461,7 +462,7 @@
461
462
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
462
463
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove):focus-visible,
463
464
  :where(.chip--pick, .tile--pick, label.btn, label.row, .toggle-field):has(:focus-visible), :where(label.card:has(> input[type="radio"]:focus-visible)) { outline: var(--focus); outline-offset: var(--sp-1); }
464
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
465
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
465
466
  /* disabled: no pointer anywhere; a control fades (a link and a row keep their own muted look) */
466
467
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
467
468
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
package/css/base.css CHANGED
@@ -138,7 +138,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
138
138
  .t-h2 { font: var(--type-h2); letter-spacing: var(--track-h2); margin: 0; --fs-self: var(--fs-h2); }
139
139
  .t-title { font: var(--type-title); margin: 0; --fs-self: var(--fs-title); }
140
140
  .t-body { font: var(--type-body); margin: 0; }
141
- .t-scroll { --_t-scroll-max: calc(var(--text-scroll-lines, 3.5) * 1lh); height: var(--text-scroll-size, auto); max-height: var(--text-scroll-size, var(--_t-scroll-max)); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; } /* the box is plain: no border, no ground; lh = the body's own line */
141
+ .t-scroll { --_t-scroll-max: calc(var(--text-scroll-lines, 3.6) * 1lh); height: var(--text-scroll-size, auto); max-height: var(--text-scroll-size, var(--_t-scroll-max)); overflow: hidden; } /* the cut box of `Text expand`: plain, no border, no ground, no scroll; lh = the body's own line */
142
+ .t-expand { display: grid; } /* the box, and under it the chevron when the text does not fit */
143
+ .t-expand.is-open > .t-scroll { height: auto; max-height: none; } /* open: the whole text in place */
144
+ .t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
142
145
  .t-label { font: var(--type-label); }
143
146
  .t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
144
147
  .t-stat { font: var(--type-stat); letter-spacing: var(--track-display); margin: 0; font-variant-numeric: tabular-nums; }
package/css/media.css CHANGED
@@ -16,7 +16,7 @@
16
16
  .quote--sm .quote__text { font: var(--type-h2); letter-spacing: var(--track-h2); }
17
17
  .quote__by { font: var(--quote-by-font, var(--type-caption)); color: var(--quote-by-ink, var(--card-muted)); }
18
18
 
19
- /* ---- tile grid: big square tiles — icon top, label bottom ----
19
+ /* ---- tile grid: big square tiles — icon top, label bottom (inline: icon and label on one line) ----
20
20
  <div class="tile-grid"><button class="tile"><svg class="icon"/><span class="tile__label">Light</span></button>
21
21
  <label class="tile tile--pick"><input type="checkbox"><svg class="icon"/><span class="tile__label">Music</span></label></div> */
22
22
  .tile-grid {
@@ -48,6 +48,18 @@
48
48
  .tile--on { background: var(--tile-on-bg, var(--accent)); --dark: var(--accent-dark); color: var(--tile-on-ink, var(--card-ink)); border-color: transparent; }
49
49
  /* .tile--pick's hidden input and :has(:checked) fill are declared once in choice.css, alongside .chip--pick and .mood__opt */
50
50
  .tile--wide { grid-column: 1 / -1; }
51
+ /* inline: the icon at the start of the label's line, the sub under the label (not under the icon); as tall as those two lines */
52
+ .tile--inline {
53
+ grid-template-columns: auto 1fr;
54
+ align-items: center;
55
+ align-content: center;
56
+ column-gap: var(--tile-inline-gap, var(--sp-3));
57
+ row-gap: var(--tile-text-gap, var(--sp-0));
58
+ min-height: var(--tile-inline-min-h, var(--tap));
59
+ }
60
+ .tile--inline:not(:has(> .icon)) { grid-template-columns: 1fr; }
61
+ .tile--inline .tile__text { display: contents; }
62
+ .tile--inline .tile__sub { grid-column: -2; }
51
63
  /* upload: dashed, centred plus + label */
52
64
  .tile--upload {
53
65
  border-style: dashed;
package/css/palette.css CHANGED
@@ -97,11 +97,10 @@
97
97
  /* fields are WHITE boxes on every ground (Lh 2026-09-25): a light ground, so the words typed in them are onlight, even on the moss card */
98
98
  [data-palette="orchard"] .field { background: var(--field-bg, #ffffff); color: var(--ink-onlight); }
99
99
  [data-palette="orchard"] .pin__cell { background: var(--pin-cell-bg, #ffffff); color: var(--ink-onlight); }
100
- /* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · ring = sky · a switch on = sky · maple only on small dots (the count, dot a); the chosen stack tab stays moss */
100
+ /* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · maple only on small dots (the count, dot a); the chosen stack tab stays moss.
101
+ Every switch (Toggle, Check, a pick, a Ring…) is the brand, --accent / --on-accent, as on every palette: no switch rule here (Lh 2026-10-25) */
101
102
  [data-palette="orchard"] :is(.btn--primary, .icon-btn--primary) { background: var(--btn-primary-bg, var(--highlight-2)); color: var(--btn-primary-ink, var(--ink-onlight)); }
102
103
  [data-palette="orchard"] .avatar:not(.avatar--outline, .avatar--add, .avatar--on) { background: var(--avatar-bg, var(--highlight-4)); --dark: 1; }
103
- [data-palette="orchard"] .ring::before { background: conic-gradient(var(--highlight-3) calc(var(--value) * 1%), var(--ink-tint) 0); }
104
- [data-palette="orchard"] .toggle:checked { background: var(--highlight-3); --accent-dark: 0; } /* sky is a light ground: its knob is onlight */
105
104
 
106
105
  /* ---- VERS — Lh's own-palette pick (2026-09-25): white surface, champagne paper, sage brand; earth tones for tones 2·4·5 ---- */
107
106
  [data-palette="vers"] {
package/css/sheet.css CHANGED
@@ -491,21 +491,23 @@
491
491
  display: grid; grid-template-columns: minmax(0, 1fr); /* the column is the step's width, never its words' — a long summary is cut with …, it never pushes the row past the sheet's edge (Lh 2026-09-28, #153) */ grid-template-rows: auto 0fr; align-content: start; /* mid-fold the rows sum to less than the box: the spare room stays BELOW, never spread into the title row (Lh: it looked like a spring) */
492
492
  flex: 0 0 auto;
493
493
  transition: grid-template-rows var(--motion-sheet) var(--ease), flex-grow var(--motion-sheet) var(--ease);
494
- --_row-h: var(--sheet-steps-row-h, calc(var(--tap-base) * 2 / 3)); /* the bar's own floor, read once (__head and __go below share it) */
495
494
  }
495
+ /* the title bar, its words and the inset of what stands under it are ONE look for a step and a settings section (SheetSettings,
496
+ Lh 2026-10-25): the same rules, the same knobs — a theme that retunes the step bar retunes the settings bar with it */
497
+ :where(.sheet-step, .sheet-settings__group) { --_row-h: var(--sheet-steps-row-h, calc(var(--tap-base) * 2 / 3)); /* the bar's own floor, read once (__head and __go below share it) */ }
496
498
  /* the open step GROWS into the room left, so the steps not done yet wait in a pile at the bottom — and a move is an ACCORDION:
497
499
  in one beat the step that was open folds while the new one unfolds (flex-grow and the 1fr row both ease), the piles slide
498
500
  with them, nothing jumps (Lh 2026-09-24) */
499
501
  .sheet-step--now { grid-template-rows: auto 1fr; flex-grow: 1; }
500
502
  .sheet-step + .sheet-step { margin-top: var(--sheet-steps-gap, var(--sp-1)); } /* the folded bars read as a pile, a little ground between them (Lh 2026-09-25) */
501
- .sheet-step__head { /* every step's title line is a quiet BAR (a tint of the ink, not the brand — a brand bar read as a button, Lh 2026-09-25), the same height open or folded — opening shows the card's room under it, never a taller bar (Lh 2026-09-25; was a thin rule on top) */
503
+ :is(.sheet-step__head, .sheet-settings__head) { /* every step's title line is a quiet BAR (a tint of the ink, not the brand — a brand bar read as a button, Lh 2026-09-25), the same height open or folded — opening shows the card's room under it, never a taller bar (Lh 2026-09-25; was a thin rule on top) */
502
504
  display: flex; align-items: center; gap: var(--sp-3); min-height: var(--_row-h); min-width: 0; /* THIN: 32px, a summary line, not a button (Lh 2026-09-25) — the tap stays 44, see __go */
503
505
  padding-inline: var(--sheet-step-bar-pad-x, var(--sp-3)); border-radius: var(--sheet-step-bar-radius, var(--r-chip));
504
506
  background: var(--sheet-step-bar-bg, var(--ink-tint)); color: var(--sheet-step-bar-ink, inherit);
505
507
  --card-muted: var(--card-ink); /* a tint of the ink: its secondary words are the full ink (no lighter shade holds 4.5:1 there) */
506
508
  border-top: var(--sheet-step-border-w, 0rem) solid var(--sheet-step-border, currentColor); /* a rule instead of the bar: set this, the bar's bg transparent, radius 0 */
507
509
  }
508
- .sheet-step__title { font: var(--sheet-step-title-font, var(--type-label)); margin: 0; flex: 0 1 auto; min-width: 0; outline: none; /* the label size, not a body title: a pile of rows must stay small (Lh 2026-09-24) */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
510
+ :is(.sheet-step__title, .sheet-settings__title) { font: var(--sheet-step-title-font, var(--type-label)); margin: 0; flex: 0 1 auto; min-width: 0; outline: none; /* the label size, not a body title: a pile of rows must stay small (Lh 2026-09-24) */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
509
511
  .sheet-step__num { /* `numbered`: the step's number in a disc BEFORE its title (Lh 2026-09-25) — a disc of the card's colour on the bar, the number in the ink */
510
512
  flex: none; display: grid; place-items: center; box-sizing: border-box; inline-size: var(--sheet-step-num-size, 1.408em); block-size: var(--sheet-step-num-size, 1.408em); /* em, not rem (Lh 2026-10-03, as the StackSheet's count): the disc is cut from ITS OWN number's size —
511
513
  at a large text size the number grew and a 24px disc did not, so the digit sat on its bottom edge; 1.408em of a 17px caption = the 24px it always was */
@@ -522,15 +524,22 @@
522
524
  so a .bleed cancels it exactly. The sum is computed on the body, before the inner's --card-pad takes over; outside a card there is
523
525
  no --card-pad and the step keeps its own inset (0px, as .bleed reads it). The inner reads the knob itself, not the sum: a theme's
524
526
  unitless 0 (SheetSteps · Ruled) is a length there but not in a calc, so the step stays right and only the bleed is lost. */
525
- .sheet-step__body { --_step-pad: var(--sheet-step-inner-pad-x, var(--sheet-step-bar-pad-x, var(--sp-3))); --_pad: calc(var(--card-pad, 0rem) + var(--_step-pad)); margin-inline: calc(-1 * var(--card-pad, 0rem)); padding-inline: var(--card-pad, 0rem); min-height: 0; overflow: clip; overflow-clip-margin: var(--sp-1); }
526
- .sheet-step__inner { --card-pad: var(--_pad); display: grid; gap: var(--card-gap); padding-block: var(--card-gap); padding-inline: var(--_step-pad); } /* the open step's content in the frame of its title's words (the bar's own inset), so it reads as that step's (Lh 2026-09-28, #153) */
527
- .sheet-step__inner > * { min-width: 0; }
527
+ :is(.sheet-step__body, .sheet-settings__group) { --_step-pad: var(--sheet-step-inner-pad-x, var(--sheet-step-bar-pad-x, var(--sp-3))); --_pad: calc(var(--card-pad, 0rem) + var(--_step-pad)); }
528
+ .sheet-step__body { margin-inline: calc(-1 * var(--card-pad, 0rem)); padding-inline: var(--card-pad, 0rem); min-height: 0; overflow: clip; overflow-clip-margin: var(--sp-1); }
529
+ :is(.sheet-step__inner, .sheet-settings__body) { --card-pad: var(--_pad); display: grid; gap: var(--card-gap); padding-block: var(--card-gap); padding-inline: var(--_step-pad); } /* the open step's content in the frame of its title's words (the bar's own inset), so it reads as that step's (Lh 2026-09-28, #153) */
530
+ :is(.sheet-step__inner, .sheet-settings__body) > * { min-width: 0; }
528
531
  .sheet-step:not(.sheet-step--now) > .sheet-step__body { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-sheet); }
529
532
  .sheet-step__go { position: absolute; inset: min(0rem, (var(--_row-h) - var(--tap-sm)) / 2) 0 auto; min-height: max(100%, var(--tap-sm)); /* a thin bar still takes a 44px tap */ margin: 0; cursor: pointer; }
530
533
  /* the last step's finish, when the app gives one: under the steps */
531
534
  .sheet-steps__finish { display: grid; padding-top: var(--card-gap); }
532
535
  @media (prefers-reduced-motion: reduce) { .sheet-step { transition: none; } }
533
536
 
537
+ /* ---- sheet settings: a settings sheet's sections, ALL open, one under another (Lh 2026-10-25) ----
538
+ <div class="sheet-settings"> › <div class="sheet-settings__group" role="group"> › __head (the step's bar, rules above) + __body (the
539
+ step's inner: the bar's inset, the card's gap). No order, no fold, nothing pressed: the bar is information. */
540
+ .sheet-settings { display: flex; flex-direction: column; min-width: 0; }
541
+ .sheet-settings__group { display: flex; flex-direction: column; min-width: 0; }
542
+
534
543
  /* ==== the step bar answers a press, as PRESS in actions.css answers every other control (#62: a block is written in its own file) ==== */
535
544
  .sheet-step:has(> .sheet-step__go:active) { opacity: var(--press-dim); } /* the step bar's button is invisible over it: the bar answers */
536
545
 
package/dist/cardds.css CHANGED
@@ -527,11 +527,10 @@
527
527
  /* fields are WHITE boxes on every ground (Lh 2026-09-25): a light ground, so the words typed in them are onlight, even on the moss card */
528
528
  [data-palette="orchard"] .field { background: var(--field-bg, #ffffff); color: var(--ink-onlight); }
529
529
  [data-palette="orchard"] .pin__cell { background: var(--pin-cell-bg, #ffffff); color: var(--ink-onlight); }
530
- /* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · ring = sky · a switch on = sky · maple only on small dots (the count, dot a); the chosen stack tab stays moss */
530
+ /* the vivid ones, tried on the live parts (Lh 2026-09-25): primary = yellow · a user avatar = fuchsia · maple only on small dots (the count, dot a); the chosen stack tab stays moss.
531
+ Every switch (Toggle, Check, a pick, a Ring…) is the brand, --accent / --on-accent, as on every palette: no switch rule here (Lh 2026-10-25) */
531
532
  [data-palette="orchard"] :is(.btn--primary, .icon-btn--primary) { background: var(--btn-primary-bg, var(--highlight-2)); color: var(--btn-primary-ink, var(--ink-onlight)); }
532
533
  [data-palette="orchard"] .avatar:not(.avatar--outline, .avatar--add, .avatar--on) { background: var(--avatar-bg, var(--highlight-4)); --dark: 1; }
533
- [data-palette="orchard"] .ring::before { background: conic-gradient(var(--highlight-3) calc(var(--value) * 1%), var(--ink-tint) 0); }
534
- [data-palette="orchard"] .toggle:checked { background: var(--highlight-3); --accent-dark: 0; } /* sky is a light ground: its knob is onlight */
535
534
 
536
535
  /* ---- VERS — Lh's own-palette pick (2026-09-25): white surface, champagne paper, sage brand; earth tones for tones 2·4·5 ---- */
537
536
  [data-palette="vers"] {
@@ -708,7 +707,10 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
708
707
  .t-h2 { font: var(--type-h2); letter-spacing: var(--track-h2); margin: 0; --fs-self: var(--fs-h2); }
709
708
  .t-title { font: var(--type-title); margin: 0; --fs-self: var(--fs-title); }
710
709
  .t-body { font: var(--type-body); margin: 0; }
711
- .t-scroll { --_t-scroll-max: calc(var(--text-scroll-lines, 3.5) * 1lh); height: var(--text-scroll-size, auto); max-height: var(--text-scroll-size, var(--_t-scroll-max)); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; } /* the box is plain: no border, no ground; lh = the body's own line */
710
+ .t-scroll { --_t-scroll-max: calc(var(--text-scroll-lines, 3.6) * 1lh); height: var(--text-scroll-size, auto); max-height: var(--text-scroll-size, var(--_t-scroll-max)); overflow: hidden; } /* the cut box of `Text expand`: plain, no border, no ground, no scroll; lh = the body's own line */
711
+ .t-expand { display: grid; } /* the box, and under it the chevron when the text does not fit */
712
+ .t-expand.is-open > .t-scroll { height: auto; max-height: none; } /* open: the whole text in place */
713
+ .t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
712
714
  .t-label { font: var(--type-label); }
713
715
  .t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
714
716
  .t-stat { font: var(--type-stat); letter-spacing: var(--track-display); margin: 0; font-variant-numeric: tabular-nums; }
@@ -2335,21 +2337,23 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2335
2337
  display: grid; grid-template-columns: minmax(0, 1fr); /* the column is the step's width, never its words' — a long summary is cut with …, it never pushes the row past the sheet's edge (Lh 2026-09-28, #153) */ grid-template-rows: auto 0fr; align-content: start; /* mid-fold the rows sum to less than the box: the spare room stays BELOW, never spread into the title row (Lh: it looked like a spring) */
2336
2338
  flex: 0 0 auto;
2337
2339
  transition: grid-template-rows var(--motion-sheet) var(--ease), flex-grow var(--motion-sheet) var(--ease);
2338
- --_row-h: var(--sheet-steps-row-h, calc(var(--tap-base) * 2 / 3)); /* the bar's own floor, read once (__head and __go below share it) */
2339
2340
  }
2341
+ /* the title bar, its words and the inset of what stands under it are ONE look for a step and a settings section (SheetSettings,
2342
+ Lh 2026-10-25): the same rules, the same knobs — a theme that retunes the step bar retunes the settings bar with it */
2343
+ :where(.sheet-step, .sheet-settings__group) { --_row-h: var(--sheet-steps-row-h, calc(var(--tap-base) * 2 / 3)); /* the bar's own floor, read once (__head and __go below share it) */ }
2340
2344
  /* the open step GROWS into the room left, so the steps not done yet wait in a pile at the bottom — and a move is an ACCORDION:
2341
2345
  in one beat the step that was open folds while the new one unfolds (flex-grow and the 1fr row both ease), the piles slide
2342
2346
  with them, nothing jumps (Lh 2026-09-24) */
2343
2347
  .sheet-step--now { grid-template-rows: auto 1fr; flex-grow: 1; }
2344
2348
  .sheet-step + .sheet-step { margin-top: var(--sheet-steps-gap, var(--sp-1)); } /* the folded bars read as a pile, a little ground between them (Lh 2026-09-25) */
2345
- .sheet-step__head { /* every step's title line is a quiet BAR (a tint of the ink, not the brand — a brand bar read as a button, Lh 2026-09-25), the same height open or folded — opening shows the card's room under it, never a taller bar (Lh 2026-09-25; was a thin rule on top) */
2349
+ :is(.sheet-step__head, .sheet-settings__head) { /* every step's title line is a quiet BAR (a tint of the ink, not the brand — a brand bar read as a button, Lh 2026-09-25), the same height open or folded — opening shows the card's room under it, never a taller bar (Lh 2026-09-25; was a thin rule on top) */
2346
2350
  display: flex; align-items: center; gap: var(--sp-3); min-height: var(--_row-h); min-width: 0; /* THIN: 32px, a summary line, not a button (Lh 2026-09-25) — the tap stays 44, see __go */
2347
2351
  padding-inline: var(--sheet-step-bar-pad-x, var(--sp-3)); border-radius: var(--sheet-step-bar-radius, var(--r-chip));
2348
2352
  background: var(--sheet-step-bar-bg, var(--ink-tint)); color: var(--sheet-step-bar-ink, inherit);
2349
2353
  --card-muted: var(--card-ink); /* a tint of the ink: its secondary words are the full ink (no lighter shade holds 4.5:1 there) */
2350
2354
  border-top: var(--sheet-step-border-w, 0rem) solid var(--sheet-step-border, currentColor); /* a rule instead of the bar: set this, the bar's bg transparent, radius 0 */
2351
2355
  }
2352
- .sheet-step__title { font: var(--sheet-step-title-font, var(--type-label)); margin: 0; flex: 0 1 auto; min-width: 0; outline: none; /* the label size, not a body title: a pile of rows must stay small (Lh 2026-09-24) */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2356
+ :is(.sheet-step__title, .sheet-settings__title) { font: var(--sheet-step-title-font, var(--type-label)); margin: 0; flex: 0 1 auto; min-width: 0; outline: none; /* the label size, not a body title: a pile of rows must stay small (Lh 2026-09-24) */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2353
2357
  .sheet-step__num { /* `numbered`: the step's number in a disc BEFORE its title (Lh 2026-09-25) — a disc of the card's colour on the bar, the number in the ink */
2354
2358
  flex: none; display: grid; place-items: center; box-sizing: border-box; inline-size: var(--sheet-step-num-size, 1.408em); block-size: var(--sheet-step-num-size, 1.408em); /* em, not rem (Lh 2026-10-03, as the StackSheet's count): the disc is cut from ITS OWN number's size —
2355
2359
  at a large text size the number grew and a 24px disc did not, so the digit sat on its bottom edge; 1.408em of a 17px caption = the 24px it always was */
@@ -2366,15 +2370,22 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2366
2370
  so a .bleed cancels it exactly. The sum is computed on the body, before the inner's --card-pad takes over; outside a card there is
2367
2371
  no --card-pad and the step keeps its own inset (0px, as .bleed reads it). The inner reads the knob itself, not the sum: a theme's
2368
2372
  unitless 0 (SheetSteps · Ruled) is a length there but not in a calc, so the step stays right and only the bleed is lost. */
2369
- .sheet-step__body { --_step-pad: var(--sheet-step-inner-pad-x, var(--sheet-step-bar-pad-x, var(--sp-3))); --_pad: calc(var(--card-pad, 0rem) + var(--_step-pad)); margin-inline: calc(-1 * var(--card-pad, 0rem)); padding-inline: var(--card-pad, 0rem); min-height: 0; overflow: clip; overflow-clip-margin: var(--sp-1); }
2370
- .sheet-step__inner { --card-pad: var(--_pad); display: grid; gap: var(--card-gap); padding-block: var(--card-gap); padding-inline: var(--_step-pad); } /* the open step's content in the frame of its title's words (the bar's own inset), so it reads as that step's (Lh 2026-09-28, #153) */
2371
- .sheet-step__inner > * { min-width: 0; }
2373
+ :is(.sheet-step__body, .sheet-settings__group) { --_step-pad: var(--sheet-step-inner-pad-x, var(--sheet-step-bar-pad-x, var(--sp-3))); --_pad: calc(var(--card-pad, 0rem) + var(--_step-pad)); }
2374
+ .sheet-step__body { margin-inline: calc(-1 * var(--card-pad, 0rem)); padding-inline: var(--card-pad, 0rem); min-height: 0; overflow: clip; overflow-clip-margin: var(--sp-1); }
2375
+ :is(.sheet-step__inner, .sheet-settings__body) { --card-pad: var(--_pad); display: grid; gap: var(--card-gap); padding-block: var(--card-gap); padding-inline: var(--_step-pad); } /* the open step's content in the frame of its title's words (the bar's own inset), so it reads as that step's (Lh 2026-09-28, #153) */
2376
+ :is(.sheet-step__inner, .sheet-settings__body) > * { min-width: 0; }
2372
2377
  .sheet-step:not(.sheet-step--now) > .sheet-step__body { visibility: hidden; transition: visibility 0s var(--ease-linear) var(--motion-sheet); }
2373
2378
  .sheet-step__go { position: absolute; inset: min(0rem, (var(--_row-h) - var(--tap-sm)) / 2) 0 auto; min-height: max(100%, var(--tap-sm)); /* a thin bar still takes a 44px tap */ margin: 0; cursor: pointer; }
2374
2379
  /* the last step's finish, when the app gives one: under the steps */
2375
2380
  .sheet-steps__finish { display: grid; padding-top: var(--card-gap); }
2376
2381
  @media (prefers-reduced-motion: reduce) { .sheet-step { transition: none; } }
2377
2382
 
2383
+ /* ---- sheet settings: a settings sheet's sections, ALL open, one under another (Lh 2026-10-25) ----
2384
+ <div class="sheet-settings"> › <div class="sheet-settings__group" role="group"> › __head (the step's bar, rules above) + __body (the
2385
+ step's inner: the bar's inset, the card's gap). No order, no fold, nothing pressed: the bar is information. */
2386
+ .sheet-settings { display: flex; flex-direction: column; min-width: 0; }
2387
+ .sheet-settings__group { display: flex; flex-direction: column; min-width: 0; }
2388
+
2378
2389
  /* ==== the step bar answers a press, as PRESS in actions.css answers every other control (#62: a block is written in its own file) ==== */
2379
2390
  .sheet-step:has(> .sheet-step__go:active) { opacity: var(--press-dim); } /* the step bar's button is invisible over it: the bar answers */
2380
2391
 
@@ -3091,7 +3102,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3091
3102
  .feed-card--small (Lh 2026-10-09) = the small card of a CardFeed: the card itself is the button that grows it, so it has the ring too.
3092
3103
  .card--go (Lh 2026-10-09) = a card pressed whole: `Card` renders it while its ONE control is its foot's button or a row card's end
3093
3104
  button (src/cards/cardGo.ts). It is in the DIM pointer and :active lists only — the focus ring and the disabled look stay the
3094
- button's, the card itself is never focused or disabled. */
3105
+ button's, the card itself is never focused or disabled.
3106
+ .t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds, so it DIMS. */
3095
3107
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
3096
3108
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3097
3109
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick) {
@@ -3099,7 +3111,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3099
3111
  touch-action: manipulation;
3100
3112
  transition: scale var(--motion-press) var(--ease-out);
3101
3113
  }
3102
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge) {
3114
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more) {
3103
3115
  cursor: pointer;
3104
3116
  touch-action: manipulation;
3105
3117
  transition: opacity var(--motion-press) var(--ease-out);
@@ -3114,7 +3126,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3114
3126
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
3115
3127
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3116
3128
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
3117
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
3129
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
3118
3130
  /* SHADE — what has something BEHIND it (a peeked sheet over the pile, a postcard's face over its back, a post letter's sheet over the other) must not turn see-through:
3119
3131
  it darkens a touch instead (--press-shade) */
3120
3132
  :where(.sheet-stack--tap > .card:not(.is-open), .postcard__turn, .post-letter__sheet:not(:has(.icon-btn:active))) { cursor: pointer; touch-action: manipulation; transition: filter var(--motion-press) var(--ease-out); }
@@ -3124,7 +3136,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3124
3136
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
3125
3137
  a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove):focus-visible,
3126
3138
  :where(.chip--pick, .tile--pick, label.btn, label.row, .toggle-field):has(:focus-visible), :where(label.card:has(> input[type="radio"]:focus-visible)) { outline: var(--focus); outline-offset: var(--sp-1); }
3127
- :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
3139
+ :where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .feed-card--small, .toggle-field, .post-box__edge, .t-expand--more):not(label, .toggle-field):focus-visible { outline: var(--focus); outline-offset: var(--sp-1); }
3128
3140
  /* disabled: no pointer anywhere; a control fades (a link and a row keep their own muted look) */
3129
3141
  :where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
3130
3142
  .float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
@@ -5646,7 +5658,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5646
5658
  .quote--sm .quote__text { font: var(--type-h2); letter-spacing: var(--track-h2); }
5647
5659
  .quote__by { font: var(--quote-by-font, var(--type-caption)); color: var(--quote-by-ink, var(--card-muted)); }
5648
5660
 
5649
- /* ---- tile grid: big square tiles — icon top, label bottom ----
5661
+ /* ---- tile grid: big square tiles — icon top, label bottom (inline: icon and label on one line) ----
5650
5662
  <div class="tile-grid"><button class="tile"><svg class="icon"/><span class="tile__label">Light</span></button>
5651
5663
  <label class="tile tile--pick"><input type="checkbox"><svg class="icon"/><span class="tile__label">Music</span></label></div> */
5652
5664
  .tile-grid {
@@ -5678,6 +5690,18 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5678
5690
  .tile--on { background: var(--tile-on-bg, var(--accent)); --dark: var(--accent-dark); color: var(--tile-on-ink, var(--card-ink)); border-color: transparent; }
5679
5691
  /* .tile--pick's hidden input and :has(:checked) fill are declared once in choice.css, alongside .chip--pick and .mood__opt */
5680
5692
  .tile--wide { grid-column: 1 / -1; }
5693
+ /* inline: the icon at the start of the label's line, the sub under the label (not under the icon); as tall as those two lines */
5694
+ .tile--inline {
5695
+ grid-template-columns: auto 1fr;
5696
+ align-items: center;
5697
+ align-content: center;
5698
+ column-gap: var(--tile-inline-gap, var(--sp-3));
5699
+ row-gap: var(--tile-text-gap, var(--sp-0));
5700
+ min-height: var(--tile-inline-min-h, var(--tap));
5701
+ }
5702
+ .tile--inline:not(:has(> .icon)) { grid-template-columns: 1fr; }
5703
+ .tile--inline .tile__text { display: contents; }
5704
+ .tile--inline .tile__sub { grid-column: -2; }
5681
5705
  /* upload: dashed, centred plus + label */
5682
5706
  .tile--upload {
5683
5707
  border-style: dashed;
@@ -53,7 +53,16 @@ export function Card({ tone, paper, sm, row, cover, fold, centre, band, as = 'ar
53
53
  return () => { live = false; };
54
54
  }, [away]);
55
55
  const [go, setGo] = useState(false);
56
- useLayoutEffect(() => { setGo(!turns && own.current != null && goControl(own.current) != null); }); // every render: what the card holds is its children's
56
+ const findGo = useLatest(() => setGo(!turns && own.current != null && goControl(own.current) != null));
57
+ useLayoutEffect(() => findGo.current()); // every render: what the card holds is its children's
58
+ useEffect(() => {
59
+ const card = own.current;
60
+ if (!card)
61
+ return;
62
+ const watch = new MutationObserver(() => findGo.current());
63
+ watch.observe(card, { subtree: true, childList: true, attributes: true, attributeFilter: ['role', 'tabindex', 'href', 'disabled', 'aria-disabled', 'inert'] });
64
+ return () => watch.disconnect();
65
+ }, []);
57
66
  const pressing = useRef(false);
58
67
  const click = (e) => {
59
68
  if (pressing.current)