@usableapp/cardds 0.7.152 → 0.7.154

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,28 @@
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.154 — 2026-10-27
6
+
7
+ 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.
8
+
9
+ Components: Sticky, StickyAnswer, Sheet
10
+
11
+ ### Changed
12
+ - **`Sticky cut` folds when unread** (the timebank chat marks unread on cut notes). Before → after: `cut` had no fold and was always read → it follows every note's rule: unread (default) folds the paper's corner inside the band and says `unreadLabel` to a screen reader; `flat` = read. An app that passes `flat={!unread}` needs nothing more; a cut note that should never fold now needs `flat`.
13
+
14
+ ### Added
15
+ - **`StickyAnswer sheet`** — a `Sheet` standing under the note while it is written on, from its bottom edge to the screen's foot, above the keyboard; in place of `tools`/`tray`. What it holds and its `state` (`writing ? 'full' : 'away'`) are the app's. A press on a control under the note (a swatch, a stamp, a button, not a field) leaves the cursor in the note, so the keyboard stays up. Before → after: the app swapped StickyAnswer for its own Step + Sheet and the cursor jumped → one StickyAnswer, the cursor stays in its field from the first touch.
16
+ - **`Sheet leaveCursor`** — coming up, the sheet moves the cursor nowhere (a field over it is being written in). Give it to the sheet in `StickyAnswer sheet`.
17
+
18
+ ## 0.7.153 — 2026-10-27
19
+
20
+ `Sticky cut`'s white band moves inside the note, half as thick, with smaller corners; nothing spills past the note.
21
+
22
+ Components: Sticky
23
+
24
+ ### Changed
25
+ - **`Sticky cut` band inside the box** (Lh 2026-10-27). Before → after: the band was drawn outside the note (`--sticky-cut-size` default `--sp-2`) and the note kept a margin for it → the band is the note's own edge (`padding: var(--sticky-cut-size, var(--sp-1))`, half as thick), and the note grows by it on every side (176 at the default size); the toned paper inside stays `--sticky-size` with the same padding, so the writing room and the `--small` switch are a plain note's. No margin, nothing spills: a holder spaces for it as for any note. Corners: `--sticky-radius` on a cut note defaults to `--r-card-row` (was `--r-media`); the band's outer corner is the paper's + the cut. Knobs unchanged in name.
26
+
5
27
  ## 0.7.152 — 2026-10-27
6
28
 
7
29
  A straight die-cut sticker note, cards two across with a cut-out picture, and the pickers of a make-a-note sheet.
package/css/sheet.css CHANGED
@@ -90,7 +90,7 @@
90
90
  /* --sheet-peek is declared on the BOX the sheet slides in, not on the sheet: the words behind a peeked sheet
91
91
  have to read it too (step.css keeps that much room under them), and a token only flows down. The sheet
92
92
  inherits it. A sheet whose head is taller retunes it on the box. */
93
- :is(.step, .sheet-stage) { --_handle: var(--hairline-w); --sheet-peek: calc(var(--card-pad-rest) + var(--sheet-head-h) + var(--card-gap-rest) + var(--safe-bottom)); } /* + the gesture bar: the peeked head stands above it. The handle sits IN the card's top padding, so the strip is that padding, the title row and the gap under it */
93
+ :is(.step, .sheet-stage, .sticky-answer__sheet) { --_handle: var(--hairline-w); --sheet-peek: calc(var(--card-pad-rest) + var(--sheet-head-h) + var(--card-gap-rest) + var(--safe-bottom)); } /* + the gesture bar: the peeked head stands above it. The handle sits IN the card's top padding, so the strip is that padding, the title row and the gap under it */
94
94
  /* the head's floor: a tap, or an h2 line with its Thai-mark padding when the type is bigger than that (a large text-size
95
95
  setting on a narrow phone) — the strip and the head read the same number, so the title row is always inside the strip */
96
96
  :root { --sheet-head-h: max(var(--tap), calc(var(--fs-h2) * 1.25 + var(--sp-2))); }
package/css/sticky.css CHANGED
@@ -52,18 +52,28 @@
52
52
  filter: blur(var(--sticky-shadow-blur, var(--sp-0)));
53
53
  }
54
54
  .sticky--flat::before, .sticky--flat::after { background: var(--_ink); }
55
- /* --cut: a die-cut sticker note — a band of plain paper left all round the print (--sticky-cut-size), round corners, a soft lifted shadow
56
- under the band; no fold (a sticker says nothing of read or unread). STRAIGHT (Lh 2026-10-27: the sample's turn is not taken); `tilt` still turns it.
57
- The paper's band is ::after, the edge layer, grown out by the cut; the shadow is the band's own. The note keeps the band's room round it. */
58
- .sticky--cut { margin: var(--sticky-cut-size, var(--sp-2)); border-radius: var(--sticky-radius, var(--r-media)); }
55
+ /* --cut: a die-cut sticker note — a band of plain paper left all round the print (--sticky-cut-size), small round corners (--sticky-radius,
56
+ the small card's corner), a soft lifted shadow. THE FOLD STILL SAYS UNREAD (2026-10-27, a chat marks unread on cut notes): the paper inside
57
+ keeps the plain note's cut corner and flap (its clip-path, .sticky__fold), so the fold lies INSIDE the band and the band shows through the
58
+ cut corner (the band is ::after over the whole box, under the paper); --flat = read, as on every note. STRAIGHT (Lh 2026-10-27: the sample's turn
59
+ is not taken); `tilt` still turns it. THE BAND IS INSIDE THE BOX (Lh 2026-10-27): the note GROWS by the band on every side, the toned paper
60
+ inside stays --sticky-size square with its own padding, so the writing room (and the --small switch, which measures the words in it) is a
61
+ plain note's. Nothing spills: a holder spaces for it as for any note. The band is ::after laid over the whole box, under the paper; the outer
62
+ box's own tone stops at its content box (background-clip, above), so the band shows round the paper. */
63
+ .sticky--cut {
64
+ padding: var(--sticky-cut-size, var(--sp-1)); /* the knob, read by a real property first; --_cut hands it to the width and the corner */
65
+ --_cut: var(--sticky-cut-size, var(--sp-1));
66
+ width: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) + 2 * var(--_cut));
67
+ border-radius: calc(var(--sticky-radius, var(--r-card-row)) + var(--_cut));
68
+ }
59
69
  .sticky--cut::before { content: none; }
60
70
  .sticky--cut::after {
61
- inset: calc(-1 * var(--sticky-cut-size, var(--sp-2)));
62
- border-radius: calc(var(--sticky-radius, var(--r-media)) + var(--sticky-cut-size, var(--sp-2)));
71
+ inset: 0;
72
+ border-radius: inherit; /* the paper's corner + the band: concentric */
63
73
  background: var(--sticky-cut-bg, var(--stamp-paper));
64
74
  box-shadow: var(--shadow-card), var(--shadow-contact);
65
75
  }
66
- .sticky--cut > .sticky__paper { border-radius: var(--sticky-radius, var(--r-media)); }
76
+ .sticky--cut > .sticky__paper { margin: 0; border-radius: var(--sticky-radius, var(--r-card-row)); }
67
77
  /* the tones — the names in src/sticky/tones.ts. A swatch of the chooser wears the same class. */
68
78
  .sticky--cotton { background-color: var(--sticky-cotton-bg, var(--pastel-cotton)); }
69
79
  .sticky--blush { background-color: var(--sticky-blush-bg, var(--pastel-blush)); }
@@ -345,6 +355,7 @@
345
355
  <div class="sticky-answer__tools">…the paper chooser · the send button…</div>
346
356
  <div class="sticky-answer__tray">…what else stands under them (the writer's stamp)…</div>
347
357
  </div>
358
+ <div class="sticky-answer__sheet" inert><article class="card sheet sheet--away">…</article></div> (the make-a-note form, in place of under)
348
359
  </div>
349
360
  A LAYER of the screen (its child), as the snackbar is. AT REST the note stands near the right, three quarters of it above the screen's
350
361
  foot (--sticky-answer-show), turned a little; what stands under it is out of sight and inert. WRITING it stands straight in the middle under
@@ -382,6 +393,17 @@
382
393
  .sticky-answer__tools { display: flex; align-items: center; justify-content: space-between; gap: var(--sticky-answer-tools-gap, var(--sp-3)); }
383
394
  .sticky-answer__tools > .sticky-pick { justify-content: start; }
384
395
  .sticky-answer__tray { display: grid; gap: var(--sticky-answer-tray-gap, var(--sp-2)); }
396
+ /* a cut note is bigger by its band on every side: the places reckon with the note's whole box */
397
+ .sticky-answer:has(> .sticky-answer__note > .sticky--cut) { --_size: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) + 2 * var(--sticky-cut-size, var(--sp-1))); }
398
+ /* the make-a-note form: the box a Sheet slides in, from under the note (where `under` stands) to the screen's foot. The sheet stands
399
+ 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
+ .sticky-answer__sheet {
401
+ 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)));
403
+ overflow: clip;
404
+ container-type: size; /* the sheet reads this box's height as 100cqh */
405
+ }
406
+ .sticky-answer__sheet > .sheet { --_lift: var(--kb, 0rem); bottom: var(--_lift); pointer-events: auto; }
385
407
  @media (prefers-reduced-motion: reduce) { .sticky-answer__scrim, .sticky-answer__note, .sticky-answer__under { transition: none; } }
386
408
 
387
409
  /* ---- 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
@@ -2007,7 +2007,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2007
2007
  /* --sheet-peek is declared on the BOX the sheet slides in, not on the sheet: the words behind a peeked sheet
2008
2008
  have to read it too (step.css keeps that much room under them), and a token only flows down. The sheet
2009
2009
  inherits it. A sheet whose head is taller retunes it on the box. */
2010
- :is(.step, .sheet-stage) { --_handle: var(--hairline-w); --sheet-peek: calc(var(--card-pad-rest) + var(--sheet-head-h) + var(--card-gap-rest) + var(--safe-bottom)); } /* + the gesture bar: the peeked head stands above it. The handle sits IN the card's top padding, so the strip is that padding, the title row and the gap under it */
2010
+ :is(.step, .sheet-stage, .sticky-answer__sheet) { --_handle: var(--hairline-w); --sheet-peek: calc(var(--card-pad-rest) + var(--sheet-head-h) + var(--card-gap-rest) + var(--safe-bottom)); } /* + the gesture bar: the peeked head stands above it. The handle sits IN the card's top padding, so the strip is that padding, the title row and the gap under it */
2011
2011
  /* the head's floor: a tap, or an h2 line with its Thai-mark padding when the type is bigger than that (a large text-size
2012
2012
  setting on a narrow phone) — the strip and the head read the same number, so the title row is always inside the strip */
2013
2013
  :root { --sheet-head-h: max(var(--tap), calc(var(--fs-h2) * 1.25 + var(--sp-2))); }
@@ -4903,18 +4903,28 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4903
4903
  filter: blur(var(--sticky-shadow-blur, var(--sp-0)));
4904
4904
  }
4905
4905
  .sticky--flat::before, .sticky--flat::after { background: var(--_ink); }
4906
- /* --cut: a die-cut sticker note — a band of plain paper left all round the print (--sticky-cut-size), round corners, a soft lifted shadow
4907
- under the band; no fold (a sticker says nothing of read or unread). STRAIGHT (Lh 2026-10-27: the sample's turn is not taken); `tilt` still turns it.
4908
- The paper's band is ::after, the edge layer, grown out by the cut; the shadow is the band's own. The note keeps the band's room round it. */
4909
- .sticky--cut { margin: var(--sticky-cut-size, var(--sp-2)); border-radius: var(--sticky-radius, var(--r-media)); }
4906
+ /* --cut: a die-cut sticker note — a band of plain paper left all round the print (--sticky-cut-size), small round corners (--sticky-radius,
4907
+ the small card's corner), a soft lifted shadow. THE FOLD STILL SAYS UNREAD (2026-10-27, a chat marks unread on cut notes): the paper inside
4908
+ keeps the plain note's cut corner and flap (its clip-path, .sticky__fold), so the fold lies INSIDE the band and the band shows through the
4909
+ cut corner (the band is ::after over the whole box, under the paper); --flat = read, as on every note. STRAIGHT (Lh 2026-10-27: the sample's turn
4910
+ is not taken); `tilt` still turns it. THE BAND IS INSIDE THE BOX (Lh 2026-10-27): the note GROWS by the band on every side, the toned paper
4911
+ inside stays --sticky-size square with its own padding, so the writing room (and the --small switch, which measures the words in it) is a
4912
+ plain note's. Nothing spills: a holder spaces for it as for any note. The band is ::after laid over the whole box, under the paper; the outer
4913
+ box's own tone stops at its content box (background-clip, above), so the band shows round the paper. */
4914
+ .sticky--cut {
4915
+ padding: var(--sticky-cut-size, var(--sp-1)); /* the knob, read by a real property first; --_cut hands it to the width and the corner */
4916
+ --_cut: var(--sticky-cut-size, var(--sp-1));
4917
+ width: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) + 2 * var(--_cut));
4918
+ border-radius: calc(var(--sticky-radius, var(--r-card-row)) + var(--_cut));
4919
+ }
4910
4920
  .sticky--cut::before { content: none; }
4911
4921
  .sticky--cut::after {
4912
- inset: calc(-1 * var(--sticky-cut-size, var(--sp-2)));
4913
- border-radius: calc(var(--sticky-radius, var(--r-media)) + var(--sticky-cut-size, var(--sp-2)));
4922
+ inset: 0;
4923
+ border-radius: inherit; /* the paper's corner + the band: concentric */
4914
4924
  background: var(--sticky-cut-bg, var(--stamp-paper));
4915
4925
  box-shadow: var(--shadow-card), var(--shadow-contact);
4916
4926
  }
4917
- .sticky--cut > .sticky__paper { border-radius: var(--sticky-radius, var(--r-media)); }
4927
+ .sticky--cut > .sticky__paper { margin: 0; border-radius: var(--sticky-radius, var(--r-card-row)); }
4918
4928
  /* the tones — the names in src/sticky/tones.ts. A swatch of the chooser wears the same class. */
4919
4929
  .sticky--cotton { background-color: var(--sticky-cotton-bg, var(--pastel-cotton)); }
4920
4930
  .sticky--blush { background-color: var(--sticky-blush-bg, var(--pastel-blush)); }
@@ -5196,6 +5206,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5196
5206
  <div class="sticky-answer__tools">…the paper chooser · the send button…</div>
5197
5207
  <div class="sticky-answer__tray">…what else stands under them (the writer's stamp)…</div>
5198
5208
  </div>
5209
+ <div class="sticky-answer__sheet" inert><article class="card sheet sheet--away">…</article></div> (the make-a-note form, in place of under)
5199
5210
  </div>
5200
5211
  A LAYER of the screen (its child), as the snackbar is. AT REST the note stands near the right, three quarters of it above the screen's
5201
5212
  foot (--sticky-answer-show), turned a little; what stands under it is out of sight and inert. WRITING it stands straight in the middle under
@@ -5233,6 +5244,17 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
5233
5244
  .sticky-answer__tools { display: flex; align-items: center; justify-content: space-between; gap: var(--sticky-answer-tools-gap, var(--sp-3)); }
5234
5245
  .sticky-answer__tools > .sticky-pick { justify-content: start; }
5235
5246
  .sticky-answer__tray { display: grid; gap: var(--sticky-answer-tray-gap, var(--sp-2)); }
5247
+ /* a cut note is bigger by its band on every side: the places reckon with the note's whole box */
5248
+ .sticky-answer:has(> .sticky-answer__note > .sticky--cut) { --_size: calc(var(--sticky-size, calc(var(--sp-12) * 3.5)) + 2 * var(--sticky-cut-size, var(--sp-1))); }
5249
+ /* the make-a-note form: the box a Sheet slides in, from under the note (where `under` stands) to the screen's foot. The sheet stands
5250
+ 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
+ .sticky-answer__sheet {
5252
+ 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)));
5254
+ overflow: clip;
5255
+ container-type: size; /* the sheet reads this box's height as 100cqh */
5256
+ }
5257
+ .sticky-answer__sheet > .sheet { --_lift: var(--kb, 0rem); bottom: var(--_lift); pointer-events: auto; }
5236
5258
  @media (prefers-reduced-motion: reduce) { .sticky-answer__scrim, .sticky-answer__note, .sticky-answer__under { transition: none; } }
5237
5259
 
5238
5260
  /* ---- sticky heading: what the notes are about — the subject and a short caption written on whatever it stands on, a dotted rule under it ----