@usableapp/cardds 0.7.153 → 0.7.155
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 +22 -0
- package/css/sheet.css +1 -1
- package/css/sticky.css +15 -1
- package/dist/cardds.css +16 -2
- package/dist/catalog.json +1 -1
- package/dist/sheets/Sheet.d.ts +5 -2
- package/dist/sheets/Sheet.js +5 -4
- package/dist/sticky/Sticky.d.ts +2 -2
- package/dist/sticky/Sticky.js +3 -3
- package/dist/sticky/StickyAnswer.d.ts +7 -2
- package/dist/sticky/StickyAnswer.js +13 -3
- package/dist/type/icons.d.ts +1 -1
- package/dist/type/icons.js +2 -2
- package/docs/reference.md +13 -4
- package/icons.svg +2 -0
- package/package.json +1 -1
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.155 — 2026-10-27
|
|
6
|
+
|
|
7
|
+
A stock `stamp` icon: a postage stamp with a person in it.
|
|
8
|
+
|
|
9
|
+
Components: Icon
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`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`.
|
|
13
|
+
|
|
14
|
+
## 0.7.154 — 2026-10-27
|
|
15
|
+
|
|
16
|
+
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.
|
|
17
|
+
|
|
18
|
+
Components: Sticky, StickyAnswer, Sheet
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- **`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`.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
- **`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.
|
|
25
|
+
- **`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`.
|
|
26
|
+
|
|
5
27
|
## 0.7.153 — 2026-10-27
|
|
6
28
|
|
|
7
29
|
`Sticky cut`'s white band moves inside the note, half as thick, with smaller corners; nothing spills past the note.
|
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
|
@@ -53,7 +53,9 @@
|
|
|
53
53
|
}
|
|
54
54
|
.sticky--flat::before, .sticky--flat::after { background: var(--_ink); }
|
|
55
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
|
|
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
|
|
57
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
|
|
58
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
|
|
59
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
|
|
@@ -353,6 +355,7 @@
|
|
|
353
355
|
<div class="sticky-answer__tools">…the paper chooser · the send button…</div>
|
|
354
356
|
<div class="sticky-answer__tray">…what else stands under them (the writer's stamp)…</div>
|
|
355
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)
|
|
356
359
|
</div>
|
|
357
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
|
|
358
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
|
|
@@ -390,6 +393,17 @@
|
|
|
390
393
|
.sticky-answer__tools { display: flex; align-items: center; justify-content: space-between; gap: var(--sticky-answer-tools-gap, var(--sp-3)); }
|
|
391
394
|
.sticky-answer__tools > .sticky-pick { justify-content: start; }
|
|
392
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; }
|
|
393
407
|
@media (prefers-reduced-motion: reduce) { .sticky-answer__scrim, .sticky-answer__note, .sticky-answer__under { transition: none; } }
|
|
394
408
|
|
|
395
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))); }
|
|
@@ -4904,7 +4904,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4904
4904
|
}
|
|
4905
4905
|
.sticky--flat::before, .sticky--flat::after { background: var(--_ink); }
|
|
4906
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
|
|
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
|
|
4908
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
|
|
4909
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
|
|
4910
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
|
|
@@ -5204,6 +5206,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5204
5206
|
<div class="sticky-answer__tools">…the paper chooser · the send button…</div>
|
|
5205
5207
|
<div class="sticky-answer__tray">…what else stands under them (the writer's stamp)…</div>
|
|
5206
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)
|
|
5207
5210
|
</div>
|
|
5208
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
|
|
5209
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
|
|
@@ -5241,6 +5244,17 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5241
5244
|
.sticky-answer__tools { display: flex; align-items: center; justify-content: space-between; gap: var(--sticky-answer-tools-gap, var(--sp-3)); }
|
|
5242
5245
|
.sticky-answer__tools > .sticky-pick { justify-content: start; }
|
|
5243
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; }
|
|
5244
5258
|
@media (prefers-reduced-motion: reduce) { .sticky-answer__scrim, .sticky-answer__note, .sticky-answer__under { transition: none; } }
|
|
5245
5259
|
|
|
5246
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 ----
|