@usableapp/cardds 0.7.121 → 0.7.123
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 +18 -0
- package/css/actions.css +1 -1
- package/css/layover.css +31 -0
- package/css/stamp.css +2 -0
- package/dist/cardds.css +34 -1
- package/dist/catalog.json +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/layover/CountIn.d.ts +27 -0
- package/dist/layover/CountIn.js +46 -0
- package/dist/stamp/Stamp.d.ts +3 -1
- package/dist/stamp/Stamp.js +2 -2
- package/dist/words.d.ts +1 -1
- package/dist/words.js +2 -2
- package/docs/reference.md +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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.123 — 2026-10-25
|
|
6
|
+
|
|
7
|
+
A stamp the app is not ready to show keeps its room (`Stamp held`).
|
|
8
|
+
|
|
9
|
+
Components: Stamp
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`Stamp held`: the stamp keeps its box and draws nothing, hidden from screen readers too, until the app is ready to show it.** When `held` turns false it appears in the same box, so nothing beside it moves. Any size (`xs`, in an `AvatarStack`, in a `Row`). Story `Stamp/Held` (new).
|
|
13
|
+
|
|
14
|
+
## 0.7.122 — 2026-10-25
|
|
15
|
+
|
|
16
|
+
A count before a start, over the whole screen (`CountIn`).
|
|
17
|
+
|
|
18
|
+
Components: CountIn
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **`CountIn`: one BIG number a second over the whole screen (5 4 3 2 1), on the scrim, then `onDone`.** For a start the member must be ready for (a voice recording): the app starts it in `onDone` and plays its own sound or buzz. A tap anywhere stops it: `onCancel`. `from` (default 5); `open` + `onOpenChange(open, reason)` (`done` | `cancel`) or `defaultOpen`; unmount it in `onClosed`. A child of the `Screen`. The number is `--fs-giant`, bigger through the knob `--count-in-size`. A screen reader hears each number. Not `Countdown`, the small link that waits. Story `CountIn` (new).
|
|
22
|
+
|
|
5
23
|
## 0.7.121 — 2026-10-25
|
|
6
24
|
|
|
7
25
|
A `Home` sheet reaches the pinned row (`top`).
|
package/css/actions.css
CHANGED
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
.t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds, so it DIMS. */
|
|
433
433
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
|
|
434
434
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
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) {
|
|
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, .count-in__cancel) {
|
|
436
436
|
cursor: pointer;
|
|
437
437
|
touch-action: manipulation;
|
|
438
438
|
transition: scale var(--motion-press) var(--ease-out);
|
package/css/layover.css
CHANGED
|
@@ -343,5 +343,36 @@
|
|
|
343
343
|
.snackbar__caption { font: var(--snackbar-caption-font, var(--type-caption)); color: var(--snackbar-caption-ink, inherit); } /* on the signal's soft ground the full ink: a muted shade there fell under AA */
|
|
344
344
|
@media (prefers-reduced-motion: reduce) { .snackbar { transition: none; } }
|
|
345
345
|
|
|
346
|
+
/* ---- count-in: one BIG number a second over the whole screen (5 4 3 2 1), then the app starts what it counted in to (2026-10-25) ----
|
|
347
|
+
<div class="count-in count-in--open"><button class="count-in__cancel" aria-label="Cancel"/>
|
|
348
|
+
<span class="count-in__number" aria-live="assertive"><span class="count-in__digit">5</span></span></div>
|
|
349
|
+
A LAYER of the screen (its child), over everything, on the scrim: a dark ground, so its ink is the ondark set. The whole layer is
|
|
350
|
+
one control (the cancel button under the number): a tap anywhere stops the count. Each number arrives with a short grow; reduced motion = none. */
|
|
351
|
+
.count-in {
|
|
352
|
+
position: fixed; inset: 0;
|
|
353
|
+
display: grid; place-items: center;
|
|
354
|
+
z-index: calc(var(--z-top) + var(--z-over));
|
|
355
|
+
background: var(--count-in-bg, var(--scrim));
|
|
356
|
+
--dark: 1;
|
|
357
|
+
color: var(--count-in-ink, var(--ink-ondark));
|
|
358
|
+
opacity: 0; visibility: hidden;
|
|
359
|
+
transition: opacity var(--motion-quick) var(--ease), visibility 0s var(--motion-quick);
|
|
360
|
+
}
|
|
361
|
+
.screen--fill > .count-in, .sheet-stage > .count-in { position: absolute; }
|
|
362
|
+
.count-in--open { opacity: 1; visibility: visible; transition-delay: 0s; }
|
|
363
|
+
.count-in__cancel { position: absolute; inset: 0; background: none; border: 0; padding: 0; }
|
|
364
|
+
.count-in__cancel:focus-visible { outline: var(--focus); outline-offset: calc(-1 * var(--sp-2)); }
|
|
365
|
+
.count-in__number {
|
|
366
|
+
position: relative; pointer-events: none;
|
|
367
|
+
font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / var(--lh-solid) var(--font-display);
|
|
368
|
+
font-variant-numeric: tabular-nums;
|
|
369
|
+
}
|
|
370
|
+
.count-in__digit { display: block; }
|
|
371
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
372
|
+
.count-in__digit { animation: count-in-grow var(--motion-slide) var(--ease) both; }
|
|
373
|
+
@keyframes count-in-grow { from { scale: 0.6; opacity: 0; } }
|
|
374
|
+
}
|
|
375
|
+
@media (prefers-reduced-motion: reduce) { .count-in { transition: none; } }
|
|
376
|
+
|
|
346
377
|
/* ---- where it sits in what actions.css draws (docs/reference.md rule 15) ---- */
|
|
347
378
|
.dropdown--end .menu[popover] { position-area: block-end span-inline-start; } /* right-aligned trigger: panel grows leftwards (= .menu--end, layover.css) */
|
package/css/stamp.css
CHANGED
|
@@ -91,6 +91,8 @@
|
|
|
91
91
|
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: none; }
|
|
92
92
|
.stamp--xs .stamp__paper { --_pitch: calc(100cqw / 8); --_hole: 3.9cqw; }
|
|
93
93
|
.stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
|
|
94
|
+
/* held: the stamp keeps its box and draws nothing (visibility, never display or a size of its own) — shown later in the same box, nothing beside it moves */
|
|
95
|
+
.stamp--held { visibility: hidden; }
|
|
94
96
|
|
|
95
97
|
/* --tilt: turned a little on its middle — the one stamp a start screen hands over */
|
|
96
98
|
.stamp--tilt-left, .stamp--tilt-right { margin-block: var(--sp-4); } /* the turned corners and the shadow need room: a centre scrolls and would cut them */
|
package/dist/cardds.css
CHANGED
|
@@ -3111,7 +3111,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3111
3111
|
.t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds, so it DIMS. */
|
|
3112
3112
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
|
|
3113
3113
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3114
|
-
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) {
|
|
3114
|
+
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, .count-in__cancel) {
|
|
3115
3115
|
cursor: pointer;
|
|
3116
3116
|
touch-action: manipulation;
|
|
3117
3117
|
transition: scale var(--motion-press) var(--ease-out);
|
|
@@ -5138,6 +5138,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5138
5138
|
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: none; }
|
|
5139
5139
|
.stamp--xs .stamp__paper { --_pitch: calc(100cqw / 8); --_hole: 3.9cqw; }
|
|
5140
5140
|
.stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
|
|
5141
|
+
/* held: the stamp keeps its box and draws nothing (visibility, never display or a size of its own) — shown later in the same box, nothing beside it moves */
|
|
5142
|
+
.stamp--held { visibility: hidden; }
|
|
5141
5143
|
|
|
5142
5144
|
/* --tilt: turned a little on its middle — the one stamp a start screen hands over */
|
|
5143
5145
|
.stamp--tilt-left, .stamp--tilt-right { margin-block: var(--sp-4); } /* the turned corners and the shadow need room: a centre scrolls and would cut them */
|
|
@@ -6269,6 +6271,37 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
6269
6271
|
.snackbar__caption { font: var(--snackbar-caption-font, var(--type-caption)); color: var(--snackbar-caption-ink, inherit); } /* on the signal's soft ground the full ink: a muted shade there fell under AA */
|
|
6270
6272
|
@media (prefers-reduced-motion: reduce) { .snackbar { transition: none; } }
|
|
6271
6273
|
|
|
6274
|
+
/* ---- count-in: one BIG number a second over the whole screen (5 4 3 2 1), then the app starts what it counted in to (2026-10-25) ----
|
|
6275
|
+
<div class="count-in count-in--open"><button class="count-in__cancel" aria-label="Cancel"/>
|
|
6276
|
+
<span class="count-in__number" aria-live="assertive"><span class="count-in__digit">5</span></span></div>
|
|
6277
|
+
A LAYER of the screen (its child), over everything, on the scrim: a dark ground, so its ink is the ondark set. The whole layer is
|
|
6278
|
+
one control (the cancel button under the number): a tap anywhere stops the count. Each number arrives with a short grow; reduced motion = none. */
|
|
6279
|
+
.count-in {
|
|
6280
|
+
position: fixed; inset: 0;
|
|
6281
|
+
display: grid; place-items: center;
|
|
6282
|
+
z-index: calc(var(--z-top) + var(--z-over));
|
|
6283
|
+
background: var(--count-in-bg, var(--scrim));
|
|
6284
|
+
--dark: 1;
|
|
6285
|
+
color: var(--count-in-ink, var(--ink-ondark));
|
|
6286
|
+
opacity: 0; visibility: hidden;
|
|
6287
|
+
transition: opacity var(--motion-quick) var(--ease), visibility 0s var(--motion-quick);
|
|
6288
|
+
}
|
|
6289
|
+
.screen--fill > .count-in, .sheet-stage > .count-in { position: absolute; }
|
|
6290
|
+
.count-in--open { opacity: 1; visibility: visible; transition-delay: 0s; }
|
|
6291
|
+
.count-in__cancel { position: absolute; inset: 0; background: none; border: 0; padding: 0; }
|
|
6292
|
+
.count-in__cancel:focus-visible { outline: var(--focus); outline-offset: calc(-1 * var(--sp-2)); }
|
|
6293
|
+
.count-in__number {
|
|
6294
|
+
position: relative; pointer-events: none;
|
|
6295
|
+
font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / var(--lh-solid) var(--font-display);
|
|
6296
|
+
font-variant-numeric: tabular-nums;
|
|
6297
|
+
}
|
|
6298
|
+
.count-in__digit { display: block; }
|
|
6299
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
6300
|
+
.count-in__digit { animation: count-in-grow var(--motion-slide) var(--ease) both; }
|
|
6301
|
+
@keyframes count-in-grow { from { scale: 0.6; opacity: 0; } }
|
|
6302
|
+
}
|
|
6303
|
+
@media (prefers-reduced-motion: reduce) { .count-in { transition: none; } }
|
|
6304
|
+
|
|
6272
6305
|
/* ---- where it sits in what actions.css draws (docs/reference.md rule 15) ---- */
|
|
6273
6306
|
.dropdown--end .menu[popover] { position-area: block-end span-inline-start; } /* right-aligned trigger: panel grows leftwards (= .menu--end, layover.css) */
|
|
6274
6307
|
|