@usableapp/cardds 0.7.122 → 0.7.124
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 +4 -0
- package/css/stamp.css +2 -0
- package/dist/cardds.css +6 -0
- package/dist/catalog.json +1 -1
- package/dist/stamp/Stamp.d.ts +3 -1
- package/dist/stamp/Stamp.js +2 -2
- 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.124 — 2026-10-25
|
|
6
|
+
|
|
7
|
+
A stamp in a card's head band keeps the head's padding under it.
|
|
8
|
+
|
|
9
|
+
Components: Card, Stamp
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **A card head that holds a stamp is never shorter than the stamp plus the head's padding above and below.** In a banded card the stamp sat on the narrow seam (`--card-band-seam`) at the band's lower edge; it now keeps `--card-pad` under it, plain or `under`. Words taller than the stamp grow the head as before. Story `Card/StampShortTitle` (new).
|
|
13
|
+
|
|
14
|
+
## 0.7.123 — 2026-10-25
|
|
15
|
+
|
|
16
|
+
A stamp the app is not ready to show keeps its room (`Stamp held`).
|
|
17
|
+
|
|
18
|
+
Components: Stamp
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **`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).
|
|
22
|
+
|
|
5
23
|
## 0.7.122 — 2026-10-25
|
|
6
24
|
|
|
7
25
|
A count before a start, over the whole screen (`CountIn`).
|
package/css/parts.css
CHANGED
|
@@ -166,6 +166,10 @@
|
|
|
166
166
|
/* the seam: the heading and the words under it read as ONE paragraph that changes colour at the band's edge (Lh 2026-10-21), so the room on
|
|
167
167
|
each side of the head band's lower edge is --card-band-seam, not the card's padding and gap */
|
|
168
168
|
:is(.card--bands, .card--bands > .card__face) > .head + * { margin-block-start: calc(var(--card-band-seam, var(--sp-2)) - var(--card-gap)); }
|
|
169
|
+
/* a STAMP in the head band (Lh 2026-10-25, the request card): the head is never shorter than the stamp plus the head's padding above AND below it — the
|
|
170
|
+
seam is the words' room, not the stamp's, so the stamp keeps --card-pad under it too. On the stamp, not a head min-height: it follows the stamp's
|
|
171
|
+
own size (standard, xs, held, under — every one holds the head up in its grid), and words taller than it grow the head as before */
|
|
172
|
+
:is(.card--bands, .card--bands > .card__face) > .head > .stamp { margin-block-end: max(0rem, calc(var(--card-pad) - var(--card-band-seam, var(--sp-2)))); }
|
|
169
173
|
/* an under stamp (`StampOn under`) lies at --z-under, below the words but above the card's paper; the head's paper background would paint over it, so the band moves
|
|
170
174
|
onto a pseudo-element one step lower (--z-under-2): the stamp shows on the band and the head's words stay over the stamp */
|
|
171
175
|
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { position: relative; background: none; }
|
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
|
@@ -4357,6 +4357,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4357
4357
|
/* the seam: the heading and the words under it read as ONE paragraph that changes colour at the band's edge (Lh 2026-10-21), so the room on
|
|
4358
4358
|
each side of the head band's lower edge is --card-band-seam, not the card's padding and gap */
|
|
4359
4359
|
:is(.card--bands, .card--bands > .card__face) > .head + * { margin-block-start: calc(var(--card-band-seam, var(--sp-2)) - var(--card-gap)); }
|
|
4360
|
+
/* a STAMP in the head band (Lh 2026-10-25, the request card): the head is never shorter than the stamp plus the head's padding above AND below it — the
|
|
4361
|
+
seam is the words' room, not the stamp's, so the stamp keeps --card-pad under it too. On the stamp, not a head min-height: it follows the stamp's
|
|
4362
|
+
own size (standard, xs, held, under — every one holds the head up in its grid), and words taller than it grow the head as before */
|
|
4363
|
+
:is(.card--bands, .card--bands > .card__face) > .head > .stamp { margin-block-end: max(0rem, calc(var(--card-pad) - var(--card-band-seam, var(--sp-2)))); }
|
|
4360
4364
|
/* an under stamp (`StampOn under`) lies at --z-under, below the words but above the card's paper; the head's paper background would paint over it, so the band moves
|
|
4361
4365
|
onto a pseudo-element one step lower (--z-under-2): the stamp shows on the band and the head's words stay over the stamp */
|
|
4362
4366
|
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { position: relative; background: none; }
|
|
@@ -5138,6 +5142,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5138
5142
|
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: none; }
|
|
5139
5143
|
.stamp--xs .stamp__paper { --_pitch: calc(100cqw / 8); --_hole: 3.9cqw; }
|
|
5140
5144
|
.stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
|
|
5145
|
+
/* 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 */
|
|
5146
|
+
.stamp--held { visibility: hidden; }
|
|
5141
5147
|
|
|
5142
5148
|
/* --tilt: turned a little on its middle — the one stamp a start screen hands over */
|
|
5143
5149
|
.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 */
|