@usableapp/cardds 0.7.119 → 0.7.121
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/parts.css +28 -2
- package/dist/cardds.css +28 -2
- package/dist/catalog.json +1 -1
- package/dist/sheets/StackSheet.d.ts +4 -2
- package/dist/sheets/StackSheet.js +3 -3
- package/dist/templates/Home.d.ts +2 -0
- package/dist/templates/Home.js +1 -1
- package/docs/reference.md +3 -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.121 — 2026-10-25
|
|
6
|
+
|
|
7
|
+
A `Home` sheet reaches the pinned row (`top`).
|
|
8
|
+
|
|
9
|
+
Components: Home
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`Home sheets[n].top`: passes to `StackSheet top`, the row pinned under the sheet head.** Like `body` and `foot` it may be a function of the chosen tab, returning null where that tab has no row. A closed sheet renders no row, as with its body. Story `Home · Feed` (the Requests tab pins a button, Help log has none).
|
|
13
|
+
|
|
14
|
+
## 0.7.120 — 2026-10-25
|
|
15
|
+
|
|
16
|
+
A `StackSheet` row pinned under its head (`top`).
|
|
17
|
+
|
|
18
|
+
Components: StackSheet
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **`StackSheet top`: a row pinned under the sheet head, outside the body's scroll and its pull to refresh** (a form button over a list): it never moves while the list scrolls or is pulled. A paper sheet carries its paper onto the row with no seam. Knob `--stack-sheet-top-gap`. Stories `SheetStack/PinnedTopRow`, `SheetStack/PinnedTopRowPaper` (new).
|
|
22
|
+
|
|
5
23
|
## 0.7.119 — 2026-10-25
|
|
6
24
|
|
|
7
25
|
Rows and a lined Kv in a card's foot run the card's full width, a `Link error` for a move that cancels, a tighter h1, and a `Stamp under` that lets a long title run over the head's stamp.
|
package/css/parts.css
CHANGED
|
@@ -325,6 +325,32 @@
|
|
|
325
325
|
padding-top: calc(var(--body-pad-top, var(--sp-6)) + var(--_refresh, 0rem));
|
|
326
326
|
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
327
327
|
}
|
|
328
|
+
/* a stack sheet's `top` (StackSheet `top`): a row pinned between the head and the body, outside the body's scroll, so neither a scroll nor a pull
|
|
329
|
+
to refresh moves it (only the body's padding grows under a pull). Its sides are the body's, so a block button lines up with the rows under it.
|
|
330
|
+
Knob --stack-sheet-top-gap (between its own rows; the card's gap). */
|
|
331
|
+
.stack-sheet > .stack-sheet__top {
|
|
332
|
+
flex: none;
|
|
333
|
+
display: grid;
|
|
334
|
+
gap: var(--stack-sheet-top-gap, var(--card-gap));
|
|
335
|
+
grid-auto-rows: max-content;
|
|
336
|
+
margin-inline: calc(-1 * var(--card-pad));
|
|
337
|
+
padding-inline: var(--card-pad);
|
|
338
|
+
}
|
|
339
|
+
.stack-sheet > .stack-sheet__top > * { min-width: 0; }
|
|
340
|
+
/* paper: the top is content, so it is paper too and starts where the paper starts (the slim band under the head, the paper's inset). The body under
|
|
341
|
+
it joins it with no seam: the card's gap comes back as the body's own top padding, a pull still adds --_refresh to it */
|
|
342
|
+
.sheet-stack > .card.sheet--paper > .stack-sheet__top {
|
|
343
|
+
--card-bg: var(--action-bg);
|
|
344
|
+
--dark: var(--action-dark);
|
|
345
|
+
background: var(--card-bg);
|
|
346
|
+
color: var(--card-ink);
|
|
347
|
+
margin-top: calc(var(--sp-3) - var(--card-gap));
|
|
348
|
+
padding-top: var(--body-pad-top, var(--sp-6));
|
|
349
|
+
}
|
|
350
|
+
.sheet-stack > .card.sheet--paper > .stack-sheet__top + .body {
|
|
351
|
+
margin-top: calc(-1 * var(--card-gap));
|
|
352
|
+
padding-top: calc(var(--card-gap) + var(--_refresh, 0rem));
|
|
353
|
+
}
|
|
328
354
|
/* a pull follows the finger at once, on paper too: the rule above is as strong as the stack's own `is-refreshing` one and comes later */
|
|
329
355
|
.sheet-stack > .card.sheet--paper > .body.is-refreshing { transition: none; }
|
|
330
356
|
/* a closed paper sheet's body stays clear (Lh 2026-10-06). The next sheet's round top does not
|
|
@@ -335,13 +361,13 @@
|
|
|
335
361
|
into the stack the card colour fades in quickly (--motion-quick) and that fade ends with the
|
|
336
362
|
sheet's own slide (--motion-sheet, plus the same stagger), so the corner is the head colour
|
|
337
363
|
at the moment the sheet stops. Rising, the body is paper at once. */
|
|
338
|
-
.sheet-stack > .card.sheet--paper:not(.is-open) > .body {
|
|
364
|
+
.sheet-stack > .card.sheet--paper:not(.is-open) > :is(.body, .stack-sheet__top) {
|
|
339
365
|
background-color: transparent;
|
|
340
366
|
transition:
|
|
341
367
|
padding-top var(--motion-sheet) var(--ease),
|
|
342
368
|
background-color var(--motion-quick) var(--ease) calc(var(--stagger, 0) * var(--motion-stagger) + var(--motion-sheet) - var(--motion-quick));
|
|
343
369
|
}
|
|
344
|
-
@media (prefers-reduced-motion: reduce) { .sheet-stack > .card.sheet--paper:not(.is-open) > .body {
|
|
370
|
+
@media (prefers-reduced-motion: reduce) { .sheet-stack > .card.sheet--paper:not(.is-open) > :is(.body, .stack-sheet__top) {
|
|
345
371
|
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
346
372
|
} }
|
|
347
373
|
/* a body pulled to refresh holds still */
|
package/dist/cardds.css
CHANGED
|
@@ -4516,6 +4516,32 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4516
4516
|
padding-top: calc(var(--body-pad-top, var(--sp-6)) + var(--_refresh, 0rem));
|
|
4517
4517
|
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
4518
4518
|
}
|
|
4519
|
+
/* a stack sheet's `top` (StackSheet `top`): a row pinned between the head and the body, outside the body's scroll, so neither a scroll nor a pull
|
|
4520
|
+
to refresh moves it (only the body's padding grows under a pull). Its sides are the body's, so a block button lines up with the rows under it.
|
|
4521
|
+
Knob --stack-sheet-top-gap (between its own rows; the card's gap). */
|
|
4522
|
+
.stack-sheet > .stack-sheet__top {
|
|
4523
|
+
flex: none;
|
|
4524
|
+
display: grid;
|
|
4525
|
+
gap: var(--stack-sheet-top-gap, var(--card-gap));
|
|
4526
|
+
grid-auto-rows: max-content;
|
|
4527
|
+
margin-inline: calc(-1 * var(--card-pad));
|
|
4528
|
+
padding-inline: var(--card-pad);
|
|
4529
|
+
}
|
|
4530
|
+
.stack-sheet > .stack-sheet__top > * { min-width: 0; }
|
|
4531
|
+
/* paper: the top is content, so it is paper too and starts where the paper starts (the slim band under the head, the paper's inset). The body under
|
|
4532
|
+
it joins it with no seam: the card's gap comes back as the body's own top padding, a pull still adds --_refresh to it */
|
|
4533
|
+
.sheet-stack > .card.sheet--paper > .stack-sheet__top {
|
|
4534
|
+
--card-bg: var(--action-bg);
|
|
4535
|
+
--dark: var(--action-dark);
|
|
4536
|
+
background: var(--card-bg);
|
|
4537
|
+
color: var(--card-ink);
|
|
4538
|
+
margin-top: calc(var(--sp-3) - var(--card-gap));
|
|
4539
|
+
padding-top: var(--body-pad-top, var(--sp-6));
|
|
4540
|
+
}
|
|
4541
|
+
.sheet-stack > .card.sheet--paper > .stack-sheet__top + .body {
|
|
4542
|
+
margin-top: calc(-1 * var(--card-gap));
|
|
4543
|
+
padding-top: calc(var(--card-gap) + var(--_refresh, 0rem));
|
|
4544
|
+
}
|
|
4519
4545
|
/* a pull follows the finger at once, on paper too: the rule above is as strong as the stack's own `is-refreshing` one and comes later */
|
|
4520
4546
|
.sheet-stack > .card.sheet--paper > .body.is-refreshing { transition: none; }
|
|
4521
4547
|
/* a closed paper sheet's body stays clear (Lh 2026-10-06). The next sheet's round top does not
|
|
@@ -4526,13 +4552,13 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4526
4552
|
into the stack the card colour fades in quickly (--motion-quick) and that fade ends with the
|
|
4527
4553
|
sheet's own slide (--motion-sheet, plus the same stagger), so the corner is the head colour
|
|
4528
4554
|
at the moment the sheet stops. Rising, the body is paper at once. */
|
|
4529
|
-
.sheet-stack > .card.sheet--paper:not(.is-open) > .body {
|
|
4555
|
+
.sheet-stack > .card.sheet--paper:not(.is-open) > :is(.body, .stack-sheet__top) {
|
|
4530
4556
|
background-color: transparent;
|
|
4531
4557
|
transition:
|
|
4532
4558
|
padding-top var(--motion-sheet) var(--ease),
|
|
4533
4559
|
background-color var(--motion-quick) var(--ease) calc(var(--stagger, 0) * var(--motion-stagger) + var(--motion-sheet) - var(--motion-quick));
|
|
4534
4560
|
}
|
|
4535
|
-
@media (prefers-reduced-motion: reduce) { .sheet-stack > .card.sheet--paper:not(.is-open) > .body {
|
|
4561
|
+
@media (prefers-reduced-motion: reduce) { .sheet-stack > .card.sheet--paper:not(.is-open) > :is(.body, .stack-sheet__top) {
|
|
4536
4562
|
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
4537
4563
|
} }
|
|
4538
4564
|
/* a body pulled to refresh holds still */
|