@usableapp/cardds 0.7.154 → 0.7.156

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,27 @@
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.156 — 2026-10-28
6
+
7
+ A chat opens as a Sheet: the `MessageBar` stands as a sheet's `Foot`, a `StickyAnswer` works as a sheet's last child, and a sheet pins a row under its head (`topRow`).
8
+
9
+ Components: Sheet, Foot, MessageBar, StickyAnswer
10
+
11
+ ### Added
12
+ - **`MessageBar` in a sheet's `Foot`** (timebank, Lh 2026-10-28: a chat opens over home, not as a page). Before → after: a MessageBar was only a Screen's `bottom`; inside a Sheet's Foot it kept its own padding and ground → `<Foot><MessageBar…/></Foot>`: the bar takes the foot's whole line and its padding, stands on the sheet's bottom edge above the keyboard, and the body stops above it however tall the words grow. A cursor in the bar no longer makes the sheet scroll or change state (the sheet reveals body controls only).
13
+ - **`StickyAnswer` inside a `Sheet`** — the sheet's last child, in place of the Foot: the note waits at the sheet's foot, comes up under the sheet's head, and its `sheet` (the make-a-note form) slides up under it; the keyboard's room is the sheet's, never counted twice. Before → after: it was placed for a Screen only (under the top bar, lifted by `--kb`) → the same component works in both.
14
+ - **`Sheet topRow`** — a row pinned under the sheet's `Head` (a `Row`: the request a chat is about), as `Screen topRow`: it never scrolls, the body starts under it, edge to edge on the sheet's ground.
15
+ - Stories `Bubble/ChatSheet` and `StickyScreens/ChatSheet`: `<SheetStage over dim><Sheet state="full" states="full" handle={false}>` · Head (name, ✕) · Body (thread) · Foot (MessageBar) or StickyAnswer.
16
+
17
+ ## 0.7.155 — 2026-10-27
18
+
19
+ A stock `stamp` icon: a postage stamp with a person in it.
20
+
21
+ Components: Icon
22
+
23
+ ### Added
24
+ - **`stamp` icon** — Tabler's `email-stamp` (MIT), stretched to portrait (16 by 20) in the same 24 box and stroke as the other stock icons. Before → after: an app drew a stamp with `registerIcons({ stamp: … })` → `icon="stamp"` / `<Icon name="stamp">` works as is and type-checks; drop the app's own `stamp` from `registerIcons`.
25
+
5
26
  ## 0.7.154 — 2026-10-27
6
27
 
7
28
  A cut note says unread again (the fold, inside the white band), and `StickyAnswer` takes a `sheet`: the make-a-note form under the note, the keyboard kept up.
package/css/parts.css CHANGED
@@ -452,6 +452,10 @@
452
452
  a stack sheet's), so the one margin is exact in each */
453
453
  .foot > :is(.rows, .kv--lined) { flex: 1 1 100%; margin-inline: calc(-1 * var(--card-pad)); }
454
454
  .foot > .rows > .row, .foot > .kv--lined > .kv__row { padding-inline: var(--card-pad); }
455
+ /* a chat's MessageBar as a sheet's foot (a conversation in a Sheet): the bar takes the foot's whole line; the foot's padding and
456
+ ground are the bar's, so it drops its own (the gesture bar's room is the foot's too). It grows with the words: the Sheet measures
457
+ the foot's rows (--sheet-foot-h), so the body stops above it */
458
+ .foot > .message-bar { flex: 1 1 100%; padding: 0; background: none; }
455
459
 
456
460
  /* in a card with paper bands: the foot band (the head's look, above) is slim */
457
461
  :is(.card--bands, .card--bands > .card__face) > .foot { margin-bottom: calc(-1 * var(--card-pad)); padding-block: var(--sp-3); }
package/css/sheet.css CHANGED
@@ -120,6 +120,9 @@
120
120
  One row, ≤ 2 buttons (parts.css). <div class="foot"><button class="btn btn--primary btn--block">…</button></div> */
121
121
  /* …and the link row under the button, when there is one (its line + the gap over it) */
122
122
  .sheet:has(> .foot--link) { --_foot: calc(var(--card-gap) + var(--sheet-foot-h, calc(var(--btn-h) + var(--sp-1) + var(--link-sm-min-h, calc(var(--tap-base) * 7 / 12)))) + var(--card-pad) + var(--_safe-b-open)); } /* --sheet-foot-h: the foot's rows as the Sheet measured them (a button grows with the text size) */
123
+ /* the ROW PINNED under the head (Sheet `topRow`): a row of the column, so the body starts under it at its real height and it never
124
+ scrolls away; edge to edge, its own padding the card's inset, on the sheet's ground */
125
+ .sheet__top-row { margin-inline: calc(-1 * var(--card-pad)); padding-inline: var(--card-pad); }
123
126
  /* the body's padding can be taller than its own box, so the pinned parts must not give way to it (parts.css) */
124
127
  .sheet > :not(.body) { flex-shrink: 0; }
125
128
 
package/css/sticky.css CHANGED
@@ -270,7 +270,7 @@
270
270
  .sticky-thread--lapped > .sticky-post > .sticky-post__notes > .sticky { rotate: calc(-1 * var(--sticky-thread-tilt, calc(var(--tilt-base) * 2))); }
271
271
  .sticky-thread--lapped > .sticky-post:nth-child(even of .sticky-post) > .sticky-post__notes > .sticky { rotate: var(--sticky-thread-tilt, calc(var(--tilt-base) * 2)); }
272
272
  /* under an answer note the thread ends with the room that note stands in: the last turn scrolls up clear of it */
273
- .screen:has(> .sticky-answer) .sticky-thread--lapped { padding-block-end: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) * var(--sticky-answer-show, 0.75) + var(--sp-6)); }
273
+ :is(.screen, .sheet):has(> .sticky-answer) .sticky-thread--lapped { padding-block-end: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) * var(--sticky-answer-show, 0.75) + var(--sp-6)); }
274
274
 
275
275
  /* ---- sticky board: notes stuck on a page — rows that wrap by the width, each note turned a little ----
276
276
  <div class="sticky-board"><button class="sticky sticky--tap …">…</button>…</div>
@@ -363,6 +363,8 @@
363
363
  places. One `top`, one `right` — they slide between the two places; nothing else moves. */
364
364
  .sticky-answer {
365
365
  --_size: var(--sticky-size, calc(var(--sp-12) * 3.5));
366
+ --_answer-top: calc(var(--safe-top) + var(--header-h)); /* where the writing note stands under: the screen's top bar */
367
+ --_answer-kb: var(--kb, 0rem); /* the keyboard's room — the screen's box does not give it up */
366
368
  position: fixed; inset: 0;
367
369
  max-width: var(--screen-w); margin-inline: auto;
368
370
  overflow: clip;
@@ -370,21 +372,24 @@
370
372
  pointer-events: none;
371
373
  }
372
374
  .screen--fill > .sticky-answer { position: absolute; }
375
+ /* IN A SHEET (a chat that opens as a Sheet, the sheet's last child): a layer of the sheet, not the screen. The writing note stands
376
+ under the sheet's head, and the keyboard's room is already the sheet's (a stage lifts it, a Step shrinks) — not counted twice */
377
+ .sheet > .sticky-answer { position: absolute; --_answer-top: calc(var(--card-pad) + var(--sheet-head-h)); --_answer-kb: 0rem; }
373
378
  .sticky-answer--writing { z-index: calc(var(--z-top) + var(--z-over)); }
374
379
  .sticky-answer__scrim { position: absolute; inset: 0; background: var(--sticky-answer-scrim-bg, color-mix(in srgb, var(--surface) 82%, transparent)); opacity: 0; visibility: hidden; transition: opacity var(--motion-sheet) var(--ease), visibility 0s var(--motion-sheet); }
375
380
  .sticky-answer--writing > .sticky-answer__scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
376
381
  .sticky-answer__note {
377
382
  position: absolute;
378
- top: calc(100% - var(--_size) * var(--sticky-answer-show, 0.75) - max(var(--safe-bottom), var(--kb, 0rem)));
383
+ top: calc(100% - var(--_size) * var(--sticky-answer-show, 0.75) - max(var(--safe-bottom), var(--_answer-kb)));
379
384
  right: var(--sticky-answer-end, var(--screen-pad));
380
385
  rotate: var(--sticky-answer-tilt, calc(var(--tilt-base) * -3));
381
386
  pointer-events: auto;
382
387
  transition: top var(--motion-sheet) var(--ease), right var(--motion-sheet) var(--ease), rotate var(--motion-sheet) var(--ease);
383
388
  }
384
- .sticky-answer--writing > .sticky-answer__note { top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5))); right: calc(50% - var(--_size) / 2); rotate: 0deg; }
389
+ .sticky-answer--writing > .sticky-answer__note { top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5))); right: calc(50% - var(--_size) / 2); rotate: 0deg; }
385
390
  .sticky-answer__under {
386
391
  position: absolute; inset-inline: var(--screen-pad);
387
- top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
392
+ top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
388
393
  display: grid; gap: var(--sticky-answer-gap, var(--sp-4));
389
394
  opacity: 0; visibility: hidden;
390
395
  transition: opacity var(--motion-sheet-rest) var(--ease), visibility 0s var(--motion-sheet-rest);
@@ -399,11 +404,12 @@
399
404
  above the keyboard as on a stage (--_lift); the box itself takes no touch, so a touch beside the sheet is still the scrim's. */
400
405
  .sticky-answer__sheet {
401
406
  position: absolute; inset-inline: 0; bottom: 0;
402
- top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
407
+ top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
403
408
  overflow: clip;
404
409
  container-type: size; /* the sheet reads this box's height as 100cqh */
405
410
  }
406
- .sticky-answer__sheet > .sheet { --_lift: var(--kb, 0rem); bottom: var(--_lift); pointer-events: auto; }
411
+ .sticky-answer__sheet { --_top: 0rem; } /* a stage's top-bar reserve is not this box's */
412
+ .sticky-answer__sheet > .sheet { --_lift: var(--_answer-kb); bottom: var(--_lift); pointer-events: auto; }
407
413
  @media (prefers-reduced-motion: reduce) { .sticky-answer__scrim, .sticky-answer__note, .sticky-answer__under { transition: none; } }
408
414
 
409
415
  /* ---- sticky heading: what the notes are about — the subject and a short caption written on whatever it stands on, a dotted rule under it ----
package/dist/cardds.css CHANGED
@@ -2037,6 +2037,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2037
2037
  One row, ≤ 2 buttons (parts.css). <div class="foot"><button class="btn btn--primary btn--block">…</button></div> */
2038
2038
  /* …and the link row under the button, when there is one (its line + the gap over it) */
2039
2039
  .sheet:has(> .foot--link) { --_foot: calc(var(--card-gap) + var(--sheet-foot-h, calc(var(--btn-h) + var(--sp-1) + var(--link-sm-min-h, calc(var(--tap-base) * 7 / 12)))) + var(--card-pad) + var(--_safe-b-open)); } /* --sheet-foot-h: the foot's rows as the Sheet measured them (a button grows with the text size) */
2040
+ /* the ROW PINNED under the head (Sheet `topRow`): a row of the column, so the body starts under it at its real height and it never
2041
+ scrolls away; edge to edge, its own padding the card's inset, on the sheet's ground */
2042
+ .sheet__top-row { margin-inline: calc(-1 * var(--card-pad)); padding-inline: var(--card-pad); }
2040
2043
  /* the body's padding can be taller than its own box, so the pinned parts must not give way to it (parts.css) */
2041
2044
  .sheet > :not(.body) { flex-shrink: 0; }
2042
2045
 
@@ -4807,6 +4810,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4807
4810
  a stack sheet's), so the one margin is exact in each */
4808
4811
  .foot > :is(.rows, .kv--lined) { flex: 1 1 100%; margin-inline: calc(-1 * var(--card-pad)); }
4809
4812
  .foot > .rows > .row, .foot > .kv--lined > .kv__row { padding-inline: var(--card-pad); }
4813
+ /* a chat's MessageBar as a sheet's foot (a conversation in a Sheet): the bar takes the foot's whole line; the foot's padding and
4814
+ ground are the bar's, so it drops its own (the gesture bar's room is the foot's too). It grows with the words: the Sheet measures
4815
+ the foot's rows (--sheet-foot-h), so the body stops above it */
4816
+ .foot > .message-bar { flex: 1 1 100%; padding: 0; background: none; }
4810
4817
 
4811
4818
  /* in a card with paper bands: the foot band (the head's look, above) is slim */
4812
4819
  :is(.card--bands, .card--bands > .card__face) > .foot { margin-bottom: calc(-1 * var(--card-pad)); padding-block: var(--sp-3); }
@@ -5121,7 +5128,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5121
5128
  .sticky-thread--lapped > .sticky-post > .sticky-post__notes > .sticky { rotate: calc(-1 * var(--sticky-thread-tilt, calc(var(--tilt-base) * 2))); }
5122
5129
  .sticky-thread--lapped > .sticky-post:nth-child(even of .sticky-post) > .sticky-post__notes > .sticky { rotate: var(--sticky-thread-tilt, calc(var(--tilt-base) * 2)); }
5123
5130
  /* under an answer note the thread ends with the room that note stands in: the last turn scrolls up clear of it */
5124
- .screen:has(> .sticky-answer) .sticky-thread--lapped { padding-block-end: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) * var(--sticky-answer-show, 0.75) + var(--sp-6)); }
5131
+ :is(.screen, .sheet):has(> .sticky-answer) .sticky-thread--lapped { padding-block-end: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) * var(--sticky-answer-show, 0.75) + var(--sp-6)); }
5125
5132
 
5126
5133
  /* ---- sticky board: notes stuck on a page — rows that wrap by the width, each note turned a little ----
5127
5134
  <div class="sticky-board"><button class="sticky sticky--tap …">…</button>…</div>
@@ -5214,6 +5221,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5214
5221
  places. One `top`, one `right` — they slide between the two places; nothing else moves. */
5215
5222
  .sticky-answer {
5216
5223
  --_size: var(--sticky-size, calc(var(--sp-12) * 3.5));
5224
+ --_answer-top: calc(var(--safe-top) + var(--header-h)); /* where the writing note stands under: the screen's top bar */
5225
+ --_answer-kb: var(--kb, 0rem); /* the keyboard's room — the screen's box does not give it up */
5217
5226
  position: fixed; inset: 0;
5218
5227
  max-width: var(--screen-w); margin-inline: auto;
5219
5228
  overflow: clip;
@@ -5221,21 +5230,24 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5221
5230
  pointer-events: none;
5222
5231
  }
5223
5232
  .screen--fill > .sticky-answer { position: absolute; }
5233
+ /* IN A SHEET (a chat that opens as a Sheet, the sheet's last child): a layer of the sheet, not the screen. The writing note stands
5234
+ under the sheet's head, and the keyboard's room is already the sheet's (a stage lifts it, a Step shrinks) — not counted twice */
5235
+ .sheet > .sticky-answer { position: absolute; --_answer-top: calc(var(--card-pad) + var(--sheet-head-h)); --_answer-kb: 0rem; }
5224
5236
  .sticky-answer--writing { z-index: calc(var(--z-top) + var(--z-over)); }
5225
5237
  .sticky-answer__scrim { position: absolute; inset: 0; background: var(--sticky-answer-scrim-bg, color-mix(in srgb, var(--surface) 82%, transparent)); opacity: 0; visibility: hidden; transition: opacity var(--motion-sheet) var(--ease), visibility 0s var(--motion-sheet); }
5226
5238
  .sticky-answer--writing > .sticky-answer__scrim { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
5227
5239
  .sticky-answer__note {
5228
5240
  position: absolute;
5229
- top: calc(100% - var(--_size) * var(--sticky-answer-show, 0.75) - max(var(--safe-bottom), var(--kb, 0rem)));
5241
+ top: calc(100% - var(--_size) * var(--sticky-answer-show, 0.75) - max(var(--safe-bottom), var(--_answer-kb)));
5230
5242
  right: var(--sticky-answer-end, var(--screen-pad));
5231
5243
  rotate: var(--sticky-answer-tilt, calc(var(--tilt-base) * -3));
5232
5244
  pointer-events: auto;
5233
5245
  transition: top var(--motion-sheet) var(--ease), right var(--motion-sheet) var(--ease), rotate var(--motion-sheet) var(--ease);
5234
5246
  }
5235
- .sticky-answer--writing > .sticky-answer__note { top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5))); right: calc(50% - var(--_size) / 2); rotate: 0deg; }
5247
+ .sticky-answer--writing > .sticky-answer__note { top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5))); right: calc(50% - var(--_size) / 2); rotate: 0deg; }
5236
5248
  .sticky-answer__under {
5237
5249
  position: absolute; inset-inline: var(--screen-pad);
5238
- top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
5250
+ top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
5239
5251
  display: grid; gap: var(--sticky-answer-gap, var(--sp-4));
5240
5252
  opacity: 0; visibility: hidden;
5241
5253
  transition: opacity var(--motion-sheet-rest) var(--ease), visibility 0s var(--motion-sheet-rest);
@@ -5250,11 +5262,12 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5250
5262
  above the keyboard as on a stage (--_lift); the box itself takes no touch, so a touch beside the sheet is still the scrim's. */
5251
5263
  .sticky-answer__sheet {
5252
5264
  position: absolute; inset-inline: 0; bottom: 0;
5253
- top: calc(var(--safe-top) + var(--header-h) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
5265
+ top: calc(var(--_answer-top) + var(--sticky-answer-top, var(--sp-5)) + var(--_size) + var(--sticky-answer-gap, var(--sp-4)));
5254
5266
  overflow: clip;
5255
5267
  container-type: size; /* the sheet reads this box's height as 100cqh */
5256
5268
  }
5257
- .sticky-answer__sheet > .sheet { --_lift: var(--kb, 0rem); bottom: var(--_lift); pointer-events: auto; }
5269
+ .sticky-answer__sheet { --_top: 0rem; } /* a stage's top-bar reserve is not this box's */
5270
+ .sticky-answer__sheet > .sheet { --_lift: var(--_answer-kb); bottom: var(--_lift); pointer-events: auto; }
5258
5271
  @media (prefers-reduced-motion: reduce) { .sticky-answer__scrim, .sticky-answer__note, .sticky-answer__under { transition: none; } }
5259
5272
 
5260
5273
  /* ---- sticky heading: what the notes are about — the subject and a short caption written on whatever it stands on, a dotted rule under it ----