@usableapp/cardds 0.7.121 → 0.7.122

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,15 @@
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.122 — 2026-10-25
6
+
7
+ A count before a start, over the whole screen (`CountIn`).
8
+
9
+ Components: CountIn
10
+
11
+ ### Added
12
+ - **`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).
13
+
5
14
  ## 0.7.121 — 2026-10-25
6
15
 
7
16
  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/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);
@@ -6269,6 +6269,37 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
6269
6269
  .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
6270
  @media (prefers-reduced-motion: reduce) { .snackbar { transition: none; } }
6271
6271
 
6272
+ /* ---- 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) ----
6273
+ <div class="count-in count-in--open"><button class="count-in__cancel" aria-label="Cancel"/>
6274
+ <span class="count-in__number" aria-live="assertive"><span class="count-in__digit">5</span></span></div>
6275
+ 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
6276
+ one control (the cancel button under the number): a tap anywhere stops the count. Each number arrives with a short grow; reduced motion = none. */
6277
+ .count-in {
6278
+ position: fixed; inset: 0;
6279
+ display: grid; place-items: center;
6280
+ z-index: calc(var(--z-top) + var(--z-over));
6281
+ background: var(--count-in-bg, var(--scrim));
6282
+ --dark: 1;
6283
+ color: var(--count-in-ink, var(--ink-ondark));
6284
+ opacity: 0; visibility: hidden;
6285
+ transition: opacity var(--motion-quick) var(--ease), visibility 0s var(--motion-quick);
6286
+ }
6287
+ .screen--fill > .count-in, .sheet-stage > .count-in { position: absolute; }
6288
+ .count-in--open { opacity: 1; visibility: visible; transition-delay: 0s; }
6289
+ .count-in__cancel { position: absolute; inset: 0; background: none; border: 0; padding: 0; }
6290
+ .count-in__cancel:focus-visible { outline: var(--focus); outline-offset: calc(-1 * var(--sp-2)); }
6291
+ .count-in__number {
6292
+ position: relative; pointer-events: none;
6293
+ font: var(--fw-heavy) var(--count-in-size, var(--fs-giant)) / var(--lh-solid) var(--font-display);
6294
+ font-variant-numeric: tabular-nums;
6295
+ }
6296
+ .count-in__digit { display: block; }
6297
+ @media (prefers-reduced-motion: no-preference) {
6298
+ .count-in__digit { animation: count-in-grow var(--motion-slide) var(--ease) both; }
6299
+ @keyframes count-in-grow { from { scale: 0.6; opacity: 0; } }
6300
+ }
6301
+ @media (prefers-reduced-motion: reduce) { .count-in { transition: none; } }
6302
+
6272
6303
  /* ---- where it sits in what actions.css draws (docs/reference.md rule 15) ---- */
6273
6304
  .dropdown--end .menu[popover] { position-area: block-end span-inline-start; } /* right-aligned trigger: panel grows leftwards (= .menu--end, layover.css) */
6274
6305