@usableapp/cardds 0.7.118 → 0.7.120
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 +27 -0
- package/css/base.css +3 -0
- package/css/lists.css +1 -0
- package/css/parts.css +56 -4
- package/css/stamp.css +4 -0
- package/css/theme.template.css +1 -1
- package/css/tokens.css +3 -1
- package/dist/actions/Link.d.ts +3 -1
- package/dist/actions/Link.js +2 -2
- package/dist/cardds.css +67 -5
- package/dist/catalog.json +1 -1
- package/dist/sheets/StackSheet.d.ts +4 -2
- package/dist/sheets/StackSheet.js +3 -3
- package/dist/stamp/Stamp.d.ts +3 -1
- package/dist/stamp/Stamp.js +2 -2
- package/docs/reference.md +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
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.120 — 2026-10-25
|
|
6
|
+
|
|
7
|
+
A `StackSheet` row pinned under its head (`top`).
|
|
8
|
+
|
|
9
|
+
Components: StackSheet
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **`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).
|
|
13
|
+
|
|
14
|
+
## 0.7.119 — 2026-10-25
|
|
15
|
+
|
|
16
|
+
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.
|
|
17
|
+
|
|
18
|
+
Components: all (`css/tokens.css`: `--lh-h1` 1.2 → 1.15, new tokens `--lh-h1-caption` and `--shadow-glued`; the components a screen sees change are Text, Words, Head, Stamp, Foot, Rows, Kv and Link)
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- **`--lh-h1` is 1.15 (was 1.2): an h1 reads tighter (Lh 2026-10-25).** A stacked Thai mark (1.13em up) still clears the line above. A project that set `--lh-h1` is unchanged.
|
|
22
|
+
- **A caption that goes with an h1, over it or under it, keeps to the heading's leading** (new token `--lh-h1-caption`, `var(--lh-tight)`), not a caption's own 1.35. A caption over an h1 is an inline-block, so its wrapped lines keep their own leading and its last line keeps its distance to the h1. Story `Text/HeadingWraps` (new).
|
|
23
|
+
- **A `Foot`'s `Rows`, or a lined `Kv`, runs the card's FULL width (Lh 2026-10-25).** Its rule meets the card's edges as the band seams do, and each row takes the card's padding back, so the words stand on the body's line. Nothing to change in a screen. Story `Card/FootRows` (new).
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
- **`Link error`: the signal set's error ink, for a move that undoes or ends something** ("Cancel the request" in a `Foot`'s `link`). Knob `--link-error-ink`. Story `Link/ErrorInFoot` (new).
|
|
27
|
+
- **`Stamp under`: in a `Head`, the words keep no room for the stamp (Lh 2026-10-25).** They run the head's whole width over it; the stamp keeps its place and size at the right, under them, and never hides a word. Where the words cross the stamp's pictures they carry a paper edge in the head's own fill (knobs `--stamp-under-edge-ink`, `--stamp-under-edge-size`). The stamp lies glued down, a hair of shadow at its teeth (new token `--shadow-glued`, knob `--stamp-under-drop`); a bare or xs stamp stays flat. For a long title that would wrap in the column beside the stamp. Before → after: `<Head><Words title={long} meta={…} /><Stamp …/></Head>` → `<Stamp under …/>`. Story `Card/StampBesideLongTitle` (new).
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
- **A clamped head title keeps room under its last line for a Thai lower vowel** (it reaches 0.30em under the baseline; the tighter h1 line box ends 0.175em under it): room inside the clip, given back outside, so nothing moves.
|
|
31
|
+
|
|
5
32
|
## 0.7.118 — 2026-10-25
|
|
6
33
|
|
|
7
34
|
A long body text that opens in place (`Text expand`, replaces `Text scroll`), a settings sheet whose sections are all open (`SheetSettings`), a two-line `Tile inline`, and `Panes` that slide when the app moves them.
|
package/css/base.css
CHANGED
|
@@ -144,6 +144,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
144
144
|
.t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
|
|
145
145
|
.t-label { font: var(--type-label); }
|
|
146
146
|
.t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
|
|
147
|
+
.t-caption:has(+ .t-h1), .t-h1 + .t-caption { line-height: var(--lh-h1-caption); } /* an h1's caption, over it or under it (Words meta) */
|
|
148
|
+
.t-caption:has(+ .t-h1) { display: inline-block; } /* a caption over an h1 is a span in its div's line: inline, its wrapped lines stood on the div's body leading (33px);
|
|
149
|
+
an inline-block keeps its own leading inside and still stands on that line, so its last line keeps its distance to the h1 (Lh 2026-10-25) */
|
|
147
150
|
.t-stat { font: var(--type-stat); letter-spacing: var(--track-display); margin: 0; font-variant-numeric: tabular-nums; }
|
|
148
151
|
.t-stat--mono { font-family: var(--font-mono); letter-spacing: 0; } /* clocks, ETAs, codes */
|
|
149
152
|
.t-stat--xl { font-size: var(--fs-hero); } /* the one number on a sheet */
|
package/css/lists.css
CHANGED
|
@@ -185,6 +185,7 @@
|
|
|
185
185
|
.link--sm { position: relative; font-size: var(--link-sm-font-size, var(--fs-2xs)); min-height: var(--link-sm-min-h, calc(var(--tap-base) * 7 / 12)); }
|
|
186
186
|
.link--sm::after { content: ""; position: absolute; inset: calc((var(--link-sm-min-h, calc(var(--tap-base) * 7 / 12)) - var(--tap-sm)) / 2) 0; }
|
|
187
187
|
.link--muted { color: var(--link-muted-ink, var(--card-muted)); }
|
|
188
|
+
.link--error { color: var(--link-error-ink, var(--signal-error)); } /* a move that undoes or ends something ("cancel the request"): the signal set's error, the word that says it */
|
|
188
189
|
.link:disabled { color: var(--link-disabled-ink, var(--card-muted)); cursor: default; } /* inactive = muted (a Countdown) */
|
|
189
190
|
.link--wait { font-variant-numeric: tabular-nums; } /* the countdown's digits keep their width: the words do not jiggle each second */
|
|
190
191
|
|
package/css/parts.css
CHANGED
|
@@ -85,9 +85,10 @@
|
|
|
85
85
|
-webkit-line-clamp: var(--head-title-lines, 3);
|
|
86
86
|
line-clamp: var(--head-title-lines, 3);
|
|
87
87
|
overflow: hidden;
|
|
88
|
-
padding-block
|
|
89
|
-
margin-block
|
|
88
|
+
padding-block: var(--_mark-room) var(--_mark-foot); /* a stacked Thai mark rises over the first line's box, a lower vowel hangs under the last: room inside the clip, given back outside */
|
|
89
|
+
margin-block: calc(-1 * var(--_mark-room)) calc(-1 * var(--_mark-foot));
|
|
90
90
|
--_mark-room: 0.2em;
|
|
91
|
+
--_mark-foot: 0.15em; /* a lower vowel reaches 0.30em under the baseline, a tight line box (1.15) ends 0.175em under it */
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
.head > .words__title { font: var(--words-title-font, var(--_type, var(--type-h2))); } /* --_type: the level's own face, set by .t-h1 and .t-display (base.css) */
|
|
@@ -117,6 +118,25 @@
|
|
|
117
118
|
<div class="head"><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><span class="stamp">…</span></div> */
|
|
118
119
|
.head:has(> .stamp) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
|
|
119
120
|
.head:has(> .stamp) > :is(h1, h2, h3) { grid-column: 1; grid-row: 1; align-self: end; }
|
|
121
|
+
/* `Stamp under` (Lh 2026-10-25): the words keep no room for the stamp — one column, the stamp at its end (stamp.css), every word over it.
|
|
122
|
+
A grid item takes z-index unpositioned. The stamp is a look piece: it lies under the words and never hides one */
|
|
123
|
+
.head:has(> .stamp--under) { grid-template-columns: minmax(0, 1fr); }
|
|
124
|
+
.head:has(> .stamp--under) > :not(.stamp) { z-index: var(--z-over); }
|
|
125
|
+
/* the words' paper edge (Lh 2026-10-25): where they run over the stamp's pictures they stay readable — a text-shadow in the ground they stand
|
|
126
|
+
on (the head's fill: --card-bg, the band's own in a banded card), eight ways round each glyph and its Thai marks, under the glyphs, never
|
|
127
|
+
thickening them. A shadow, not paint-order + -webkit-text-stroke: the stroke sits half inside the glyph unless paint-order applies, and
|
|
128
|
+
paint-order on HTML text is too young for the iOS 16.4 floor. Knobs: --stamp-under-edge-ink, --stamp-under-edge-size */
|
|
129
|
+
.head:has(> .stamp--under) > :not(.stamp) {
|
|
130
|
+
--_e: var(--stamp-under-edge-size, var(--sp-0));
|
|
131
|
+
--_n: calc(-1 * var(--_e));
|
|
132
|
+
--_ink: var(--stamp-under-edge-ink, var(--card-bg));
|
|
133
|
+
text-shadow:
|
|
134
|
+
var(--_e) 0 var(--_ink), var(--_n) 0 var(--_ink), 0 var(--_e) var(--_ink), 0 var(--_n) var(--_ink),
|
|
135
|
+
var(--_e) var(--_e) var(--_ink), var(--_n) var(--_e) var(--_ink), var(--_e) var(--_n) var(--_ink), var(--_n) var(--_n) var(--_ink),
|
|
136
|
+
0 0 var(--_e) var(--_ink);
|
|
137
|
+
}
|
|
138
|
+
/* words in a wrapper (`<div><Text caption/><Text h1/></div>`): the stamp's rows are taken, so auto placement would put it under them — it stands in row 1 of the one column */
|
|
139
|
+
.head:has(> .stamp--under) > :first-child:not(.stamp, h1, h2, h3, .t-caption, .t-body) { grid-area: 1 / 1; }
|
|
120
140
|
|
|
121
141
|
/* a head that LEADS with a date (Lh 2026-10-21, timebank's request card): a `Head` whose first child is a JourneyBadge and whose second is a
|
|
122
142
|
ChipRow. The date stands at the left and the chips beside it, the two as tall as each other; the heading and its caption take the whole
|
|
@@ -305,6 +325,32 @@
|
|
|
305
325
|
padding-top: calc(var(--body-pad-top, var(--sp-6)) + var(--_refresh, 0rem));
|
|
306
326
|
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
307
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
|
+
}
|
|
308
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 */
|
|
309
355
|
.sheet-stack > .card.sheet--paper > .body.is-refreshing { transition: none; }
|
|
310
356
|
/* a closed paper sheet's body stays clear (Lh 2026-10-06). The next sheet's round top does not
|
|
@@ -315,13 +361,13 @@
|
|
|
315
361
|
into the stack the card colour fades in quickly (--motion-quick) and that fade ends with the
|
|
316
362
|
sheet's own slide (--motion-sheet, plus the same stagger), so the corner is the head colour
|
|
317
363
|
at the moment the sheet stops. Rising, the body is paper at once. */
|
|
318
|
-
.sheet-stack > .card.sheet--paper:not(.is-open) > .body {
|
|
364
|
+
.sheet-stack > .card.sheet--paper:not(.is-open) > :is(.body, .stack-sheet__top) {
|
|
319
365
|
background-color: transparent;
|
|
320
366
|
transition:
|
|
321
367
|
padding-top var(--motion-sheet) var(--ease),
|
|
322
368
|
background-color var(--motion-quick) var(--ease) calc(var(--stagger, 0) * var(--motion-stagger) + var(--motion-sheet) - var(--motion-quick));
|
|
323
369
|
}
|
|
324
|
-
@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) {
|
|
325
371
|
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
326
372
|
} }
|
|
327
373
|
/* a body pulled to refresh holds still */
|
|
@@ -350,6 +396,12 @@
|
|
|
350
396
|
.foot--round { justify-content: center; gap: var(--foot-gap, var(--sp-6)); }
|
|
351
397
|
/* joined (Foot round joined): the round buttons linked by dots (the dots are BtnRow's, actions.css), a closer gap */
|
|
352
398
|
.foot--joined { gap: var(--btn-trio-gap, var(--sp-3)); }
|
|
399
|
+
/* what draws across the foot runs the card's FULL width (Lh 2026-10-25): a Rows or a lined Kv in a foot reaches the card's edges, so its
|
|
400
|
+
rule meets them as the band seams do, and each of its rows takes the card's padding back (--card-pad, the body's own), so the words
|
|
401
|
+
stand on the body's line. Every foot's content box is --card-pad in from the card's edges (the card's padding, or a band's, a sheet's,
|
|
402
|
+
a stack sheet's), so the one margin is exact in each */
|
|
403
|
+
.foot > :is(.rows, .kv--lined) { flex: 1 1 100%; margin-inline: calc(-1 * var(--card-pad)); }
|
|
404
|
+
.foot > .rows > .row, .foot > .kv--lined > .kv__row { padding-inline: var(--card-pad); }
|
|
353
405
|
|
|
354
406
|
/* in a card with paper bands: the foot band (the head's look, above) is slim */
|
|
355
407
|
:is(.card--bands, .card--bands > .card__face) > .foot { margin-bottom: calc(-1 * var(--card-pad)); padding-block: var(--sp-3); }
|
package/css/stamp.css
CHANGED
|
@@ -293,7 +293,11 @@
|
|
|
293
293
|
A sheet is a `.card` too, but what it holds stands off its paper: the album, the tray, a start screen's stamp keep their shadow, and so
|
|
294
294
|
does a stamp in an album's cell wherever the album lies */
|
|
295
295
|
.card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter: none; }
|
|
296
|
+
/* ONE exception (Lh 2026-10-25): the head's `under` stamp is glued down — a hair of shadow at its teeth, flat paper, never a lifted sticker.
|
|
297
|
+
A bare or xs stamp stays flat. Knob: --stamp-under-drop */
|
|
298
|
+
.card:not(.sheet) .head > .stamp--under:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
|
|
296
299
|
.head > .stamp { grid-column: 2; grid-row: 1 / span 2; margin-inline: 0; }
|
|
300
|
+
.head > .stamp--under { grid-column: 1; justify-self: end; } /* `under`: in the words' own column, at its end, the words over it (parts.css) */
|
|
297
301
|
/* ---- where it sits in what people.css draws (docs/reference.md rule 15) ---- */
|
|
298
302
|
/* a stamp in the stack is the stamp's small size (--stamp-sm-size: one rule in stamp.css, 48 × 60), lapped like the heads. Measured 2026-10-11 in a Row's
|
|
299
303
|
lead with a title, a meta line and an end button: at 375 the meta line breaks in two, accepted by Lh (a lap of 16 would hold it; the lap stays 8)
|
package/css/theme.template.css
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
motion: --motion-* (times) --ease --ease-in --ease-out --ease-in-out --ease-linear --ease-settle
|
|
71
71
|
angle: --tilt-base (1deg; 0deg lays every note, stamp and letter straight)
|
|
72
72
|
layer: --z-under-2 … --z-over-3 fade: --off --fade-faint … --fade-most
|
|
73
|
-
type: per kind (display h1 h2 title body label caption stat) --face-<kind> --fw-<kind> --fs-<kind> --lh-<kind> --track-<kind>;
|
|
73
|
+
type: per kind (display h1 h2 title body label caption stat) --face-<kind> --fw-<kind> --fs-<kind> --lh-<kind> --track-<kind>; --lh-h1-caption;
|
|
74
74
|
the scales --fw-regular --fw-medium --fw-semibold --fw-strong --fw-bold --fw-heavy --fw-black
|
|
75
75
|
--lh-mark --lh-band --lh-badge --lh-solid --lh-tight --lh-field --lh-hand --lh-ruled --track-loose --track-caps */
|
|
76
76
|
}
|
package/css/tokens.css
CHANGED
|
@@ -202,13 +202,14 @@
|
|
|
202
202
|
--track-caps: 0.08em; /* a kicker in capitals */
|
|
203
203
|
/* THE EIGHT KINDS: each has its face, weight, size (--fs-* above), leading and tracking, and its style --type-<kind> is made of them */
|
|
204
204
|
--fw-display: var(--fw-heavy); --lh-display: 1.15; --track-display: -0.02em; /* leading: Thai marks stack to 1.1em up and 0.3em down in FC Pride — 1.02 clipped them (2026-09-10) */
|
|
205
|
-
--fw-h1: var(--fw-black); --lh-h1: 1.
|
|
205
|
+
--fw-h1: var(--fw-black); --lh-h1: 1.15; --track-h1: -0.015em; /* tight, the display's floor: a stacked mark (1.13em up) clears the line above (Lh 2026-10-25: 1.2 read loose) */
|
|
206
206
|
--fw-h2: var(--fw-bold); --lh-h2: 1.25; --track-h2: -0.01em;
|
|
207
207
|
--fw-title: var(--fw-strong); --lh-title: 1.3; --track-title: normal;
|
|
208
208
|
--fw-body: var(--fw-regular); --lh-body: 1.5; --track-body: normal;
|
|
209
209
|
--fw-label: var(--fw-semibold); --lh-label: 1.2; --track-label: normal; /* chips, buttons */
|
|
210
210
|
--fw-caption: var(--fw-medium); --lh-caption: 1.35; --track-caption: normal;
|
|
211
211
|
--fw-stat: var(--fw-heavy); --lh-stat: 1.05; --track-stat: normal; /* big numbers */
|
|
212
|
+
--lh-h1-caption: var(--lh-tight); /* the caption that goes with an h1, over it or under it: it keeps to the heading, not a caption's own 1.35 (Lh 2026-10-25) */
|
|
212
213
|
--face-display: var(--font-display); --face-h1: var(--font-display); --face-h2: var(--font-display); --face-stat: var(--font-display);
|
|
213
214
|
--face-title: var(--font-ui); --face-body: var(--font-ui); --face-label: var(--font-ui); --face-caption: var(--font-ui);
|
|
214
215
|
/* --type-<kind> is set where a palette or a mode is (below), so a weight or a face tuned there reaches the words inside */
|
|
@@ -337,6 +338,7 @@
|
|
|
337
338
|
/* shadows of paper laid on paper: mixed from the onlight ink, so re-derived where a palette is set */
|
|
338
339
|
--shadow-paper: 0 var(--sp-1) var(--sp-2) color-mix(in srgb, var(--ink-onlight) 16%, transparent); /* a stamp lying on paper: follows its teeth (drop-shadow) */
|
|
339
340
|
--shadow-lift: 0 var(--sp-0) var(--sp-1) color-mix(in srgb, var(--ink-onlight) 35%, transparent); /* a small disc lifted over a picture */
|
|
341
|
+
--shadow-glued: 0 var(--border-w) var(--border-w) rgb(0 0 0 / 0.22); /* a stamp glued flat on its card, a hair raised (Lh 2026-10-25): one border's offset and blur, black as the scrim; no color-mix (iOS 16.4) */
|
|
340
342
|
--shadow-fold: calc(-1 * var(--sp-0)) calc(-1 * var(--sp-0)) var(--sp-1) color-mix(in srgb, var(--ink-onlight) 8%, transparent); /* a note's folded corner */
|
|
341
343
|
--on-surface: color-mix(in srgb, var(--ink-ondark) calc(var(--surface-dark) * 100%), var(--ink-onlight));
|
|
342
344
|
--on-surface-muted: color-mix(in srgb, var(--ink-ondark-muted) calc(var(--surface-dark) * 100%), var(--ink-onlight-muted));
|
package/dist/actions/Link.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { type IconName } from '../type/Icon.js';
|
|
|
3
3
|
export interface LinkProps extends ComponentProps<'a'> {
|
|
4
4
|
/** muted ink (Skip, "didn't get the code?") */
|
|
5
5
|
muted?: boolean;
|
|
6
|
+
/** the error ink (`--signal-error`, knob `--link-error-ink`), for a move that undoes or ends something: "Cancel the request" in a Foot's `link` */
|
|
7
|
+
error?: boolean;
|
|
6
8
|
/** a trailing xs icon (arrow-up-right for "See all") */
|
|
7
9
|
icon?: IconName;
|
|
8
10
|
/** SMALL: the minor-link size (15) and a 28px line, for what is tapped rarely (details, a ctaLink); the tap target stays 44px */
|
|
@@ -13,7 +15,7 @@ export interface LinkProps extends ComponentProps<'a'> {
|
|
|
13
15
|
disabled?: boolean;
|
|
14
16
|
}
|
|
15
17
|
/** Link — an inline text action big enough to tap (40px): "See all ↗" in a card head, "Skip" between pager buttons. */
|
|
16
|
-
export declare function Link({ muted, sm, icon, href, className, children, ...rest }: LinkProps): import("react").DetailedReactHTMLElement<{
|
|
18
|
+
export declare function Link({ muted, error, sm, icon, href, className, children, ...rest }: LinkProps): import("react").DetailedReactHTMLElement<{
|
|
17
19
|
/** a button link that takes no taps now (reads inactive: muted) — `Countdown` while it counts down */
|
|
18
20
|
disabled?: boolean;
|
|
19
21
|
ref?: import("react").Ref<HTMLAnchorElement> | undefined;
|
package/dist/actions/Link.js
CHANGED
|
@@ -3,6 +3,6 @@ import { createElement } from 'react';
|
|
|
3
3
|
import { cx } from '../cx.js';
|
|
4
4
|
import { Icon } from '../type/Icon.js';
|
|
5
5
|
/** Link — an inline text action big enough to tap (40px): "See all ↗" in a card head, "Skip" between pager buttons. */
|
|
6
|
-
export function Link({ muted, sm, icon, href, className, children, ...rest }) {
|
|
7
|
-
return createElement(href ? 'a' : 'button', { href, type: href ? undefined : 'button', className: cx('link', muted && 'link--muted', sm && 'link--sm', className), ...rest }, children, icon && _jsx(Icon, { name: icon, size: "xs" }));
|
|
6
|
+
export function Link({ muted, error, sm, icon, href, className, children, ...rest }) {
|
|
7
|
+
return createElement(href ? 'a' : 'button', { href, type: href ? undefined : 'button', className: cx('link', muted && 'link--muted', error && 'link--error', sm && 'link--sm', className), ...rest }, children, icon && _jsx(Icon, { name: icon, size: "xs" }));
|
|
8
8
|
}
|
package/dist/cardds.css
CHANGED
|
@@ -243,13 +243,14 @@
|
|
|
243
243
|
--track-caps: 0.08em; /* a kicker in capitals */
|
|
244
244
|
/* THE EIGHT KINDS: each has its face, weight, size (--fs-* above), leading and tracking, and its style --type-<kind> is made of them */
|
|
245
245
|
--fw-display: var(--fw-heavy); --lh-display: 1.15; --track-display: -0.02em; /* leading: Thai marks stack to 1.1em up and 0.3em down in FC Pride — 1.02 clipped them (2026-09-10) */
|
|
246
|
-
--fw-h1: var(--fw-black); --lh-h1: 1.
|
|
246
|
+
--fw-h1: var(--fw-black); --lh-h1: 1.15; --track-h1: -0.015em; /* tight, the display's floor: a stacked mark (1.13em up) clears the line above (Lh 2026-10-25: 1.2 read loose) */
|
|
247
247
|
--fw-h2: var(--fw-bold); --lh-h2: 1.25; --track-h2: -0.01em;
|
|
248
248
|
--fw-title: var(--fw-strong); --lh-title: 1.3; --track-title: normal;
|
|
249
249
|
--fw-body: var(--fw-regular); --lh-body: 1.5; --track-body: normal;
|
|
250
250
|
--fw-label: var(--fw-semibold); --lh-label: 1.2; --track-label: normal; /* chips, buttons */
|
|
251
251
|
--fw-caption: var(--fw-medium); --lh-caption: 1.35; --track-caption: normal;
|
|
252
252
|
--fw-stat: var(--fw-heavy); --lh-stat: 1.05; --track-stat: normal; /* big numbers */
|
|
253
|
+
--lh-h1-caption: var(--lh-tight); /* the caption that goes with an h1, over it or under it: it keeps to the heading, not a caption's own 1.35 (Lh 2026-10-25) */
|
|
253
254
|
--face-display: var(--font-display); --face-h1: var(--font-display); --face-h2: var(--font-display); --face-stat: var(--font-display);
|
|
254
255
|
--face-title: var(--font-ui); --face-body: var(--font-ui); --face-label: var(--font-ui); --face-caption: var(--font-ui);
|
|
255
256
|
/* --type-<kind> is set where a palette or a mode is (below), so a weight or a face tuned there reaches the words inside */
|
|
@@ -378,6 +379,7 @@
|
|
|
378
379
|
/* shadows of paper laid on paper: mixed from the onlight ink, so re-derived where a palette is set */
|
|
379
380
|
--shadow-paper: 0 var(--sp-1) var(--sp-2) color-mix(in srgb, var(--ink-onlight) 16%, transparent); /* a stamp lying on paper: follows its teeth (drop-shadow) */
|
|
380
381
|
--shadow-lift: 0 var(--sp-0) var(--sp-1) color-mix(in srgb, var(--ink-onlight) 35%, transparent); /* a small disc lifted over a picture */
|
|
382
|
+
--shadow-glued: 0 var(--border-w) var(--border-w) rgb(0 0 0 / 0.22); /* a stamp glued flat on its card, a hair raised (Lh 2026-10-25): one border's offset and blur, black as the scrim; no color-mix (iOS 16.4) */
|
|
381
383
|
--shadow-fold: calc(-1 * var(--sp-0)) calc(-1 * var(--sp-0)) var(--sp-1) color-mix(in srgb, var(--ink-onlight) 8%, transparent); /* a note's folded corner */
|
|
382
384
|
--on-surface: color-mix(in srgb, var(--ink-ondark) calc(var(--surface-dark) * 100%), var(--ink-onlight));
|
|
383
385
|
--on-surface-muted: color-mix(in srgb, var(--ink-ondark-muted) calc(var(--surface-dark) * 100%), var(--ink-onlight-muted));
|
|
@@ -713,6 +715,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
713
715
|
.t-expand__sign { justify-self: center; } /* the chevron: down = there is more, up = fold it */
|
|
714
716
|
.t-label { font: var(--type-label); }
|
|
715
717
|
.t-caption { font: var(--type-caption); color: var(--t-caption-ink, inherit); }
|
|
718
|
+
.t-caption:has(+ .t-h1), .t-h1 + .t-caption { line-height: var(--lh-h1-caption); } /* an h1's caption, over it or under it (Words meta) */
|
|
719
|
+
.t-caption:has(+ .t-h1) { display: inline-block; } /* a caption over an h1 is a span in its div's line: inline, its wrapped lines stood on the div's body leading (33px);
|
|
720
|
+
an inline-block keeps its own leading inside and still stands on that line, so its last line keeps its distance to the h1 (Lh 2026-10-25) */
|
|
716
721
|
.t-stat { font: var(--type-stat); letter-spacing: var(--track-display); margin: 0; font-variant-numeric: tabular-nums; }
|
|
717
722
|
.t-stat--mono { font-family: var(--font-mono); letter-spacing: 0; } /* clocks, ETAs, codes */
|
|
718
723
|
.t-stat--xl { font-size: var(--fs-hero); } /* the one number on a sheet */
|
|
@@ -4167,6 +4172,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4167
4172
|
.link--sm { position: relative; font-size: var(--link-sm-font-size, var(--fs-2xs)); min-height: var(--link-sm-min-h, calc(var(--tap-base) * 7 / 12)); }
|
|
4168
4173
|
.link--sm::after { content: ""; position: absolute; inset: calc((var(--link-sm-min-h, calc(var(--tap-base) * 7 / 12)) - var(--tap-sm)) / 2) 0; }
|
|
4169
4174
|
.link--muted { color: var(--link-muted-ink, var(--card-muted)); }
|
|
4175
|
+
.link--error { color: var(--link-error-ink, var(--signal-error)); } /* a move that undoes or ends something ("cancel the request"): the signal set's error, the word that says it */
|
|
4170
4176
|
.link:disabled { color: var(--link-disabled-ink, var(--card-muted)); cursor: default; } /* inactive = muted (a Countdown) */
|
|
4171
4177
|
.link--wait { font-variant-numeric: tabular-nums; } /* the countdown's digits keep their width: the words do not jiggle each second */
|
|
4172
4178
|
|
|
@@ -4270,9 +4276,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4270
4276
|
-webkit-line-clamp: var(--head-title-lines, 3);
|
|
4271
4277
|
line-clamp: var(--head-title-lines, 3);
|
|
4272
4278
|
overflow: hidden;
|
|
4273
|
-
padding-block
|
|
4274
|
-
margin-block
|
|
4279
|
+
padding-block: var(--_mark-room) var(--_mark-foot); /* a stacked Thai mark rises over the first line's box, a lower vowel hangs under the last: room inside the clip, given back outside */
|
|
4280
|
+
margin-block: calc(-1 * var(--_mark-room)) calc(-1 * var(--_mark-foot));
|
|
4275
4281
|
--_mark-room: 0.2em;
|
|
4282
|
+
--_mark-foot: 0.15em; /* a lower vowel reaches 0.30em under the baseline, a tight line box (1.15) ends 0.175em under it */
|
|
4276
4283
|
}
|
|
4277
4284
|
|
|
4278
4285
|
.head > .words__title { font: var(--words-title-font, var(--_type, var(--type-h2))); } /* --_type: the level's own face, set by .t-h1 and .t-display (base.css) */
|
|
@@ -4302,6 +4309,25 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4302
4309
|
<div class="head"><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><span class="stamp">…</span></div> */
|
|
4303
4310
|
.head:has(> .stamp) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
|
|
4304
4311
|
.head:has(> .stamp) > :is(h1, h2, h3) { grid-column: 1; grid-row: 1; align-self: end; }
|
|
4312
|
+
/* `Stamp under` (Lh 2026-10-25): the words keep no room for the stamp — one column, the stamp at its end (stamp.css), every word over it.
|
|
4313
|
+
A grid item takes z-index unpositioned. The stamp is a look piece: it lies under the words and never hides one */
|
|
4314
|
+
.head:has(> .stamp--under) { grid-template-columns: minmax(0, 1fr); }
|
|
4315
|
+
.head:has(> .stamp--under) > :not(.stamp) { z-index: var(--z-over); }
|
|
4316
|
+
/* the words' paper edge (Lh 2026-10-25): where they run over the stamp's pictures they stay readable — a text-shadow in the ground they stand
|
|
4317
|
+
on (the head's fill: --card-bg, the band's own in a banded card), eight ways round each glyph and its Thai marks, under the glyphs, never
|
|
4318
|
+
thickening them. A shadow, not paint-order + -webkit-text-stroke: the stroke sits half inside the glyph unless paint-order applies, and
|
|
4319
|
+
paint-order on HTML text is too young for the iOS 16.4 floor. Knobs: --stamp-under-edge-ink, --stamp-under-edge-size */
|
|
4320
|
+
.head:has(> .stamp--under) > :not(.stamp) {
|
|
4321
|
+
--_e: var(--stamp-under-edge-size, var(--sp-0));
|
|
4322
|
+
--_n: calc(-1 * var(--_e));
|
|
4323
|
+
--_ink: var(--stamp-under-edge-ink, var(--card-bg));
|
|
4324
|
+
text-shadow:
|
|
4325
|
+
var(--_e) 0 var(--_ink), var(--_n) 0 var(--_ink), 0 var(--_e) var(--_ink), 0 var(--_n) var(--_ink),
|
|
4326
|
+
var(--_e) var(--_e) var(--_ink), var(--_n) var(--_e) var(--_ink), var(--_e) var(--_n) var(--_ink), var(--_n) var(--_n) var(--_ink),
|
|
4327
|
+
0 0 var(--_e) var(--_ink);
|
|
4328
|
+
}
|
|
4329
|
+
/* words in a wrapper (`<div><Text caption/><Text h1/></div>`): the stamp's rows are taken, so auto placement would put it under them — it stands in row 1 of the one column */
|
|
4330
|
+
.head:has(> .stamp--under) > :first-child:not(.stamp, h1, h2, h3, .t-caption, .t-body) { grid-area: 1 / 1; }
|
|
4305
4331
|
|
|
4306
4332
|
/* a head that LEADS with a date (Lh 2026-10-21, timebank's request card): a `Head` whose first child is a JourneyBadge and whose second is a
|
|
4307
4333
|
ChipRow. The date stands at the left and the chips beside it, the two as tall as each other; the heading and its caption take the whole
|
|
@@ -4490,6 +4516,32 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4490
4516
|
padding-top: calc(var(--body-pad-top, var(--sp-6)) + var(--_refresh, 0rem));
|
|
4491
4517
|
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
4492
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
|
+
}
|
|
4493
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 */
|
|
4494
4546
|
.sheet-stack > .card.sheet--paper > .body.is-refreshing { transition: none; }
|
|
4495
4547
|
/* a closed paper sheet's body stays clear (Lh 2026-10-06). The next sheet's round top does not
|
|
@@ -4500,13 +4552,13 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4500
4552
|
into the stack the card colour fades in quickly (--motion-quick) and that fade ends with the
|
|
4501
4553
|
sheet's own slide (--motion-sheet, plus the same stagger), so the corner is the head colour
|
|
4502
4554
|
at the moment the sheet stops. Rising, the body is paper at once. */
|
|
4503
|
-
.sheet-stack > .card.sheet--paper:not(.is-open) > .body {
|
|
4555
|
+
.sheet-stack > .card.sheet--paper:not(.is-open) > :is(.body, .stack-sheet__top) {
|
|
4504
4556
|
background-color: transparent;
|
|
4505
4557
|
transition:
|
|
4506
4558
|
padding-top var(--motion-sheet) var(--ease),
|
|
4507
4559
|
background-color var(--motion-quick) var(--ease) calc(var(--stagger, 0) * var(--motion-stagger) + var(--motion-sheet) - var(--motion-quick));
|
|
4508
4560
|
}
|
|
4509
|
-
@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) {
|
|
4510
4562
|
transition: padding-top var(--motion-sheet) var(--ease), background-color 0s var(--ease-linear);
|
|
4511
4563
|
} }
|
|
4512
4564
|
/* a body pulled to refresh holds still */
|
|
@@ -4535,6 +4587,12 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4535
4587
|
.foot--round { justify-content: center; gap: var(--foot-gap, var(--sp-6)); }
|
|
4536
4588
|
/* joined (Foot round joined): the round buttons linked by dots (the dots are BtnRow's, actions.css), a closer gap */
|
|
4537
4589
|
.foot--joined { gap: var(--btn-trio-gap, var(--sp-3)); }
|
|
4590
|
+
/* what draws across the foot runs the card's FULL width (Lh 2026-10-25): a Rows or a lined Kv in a foot reaches the card's edges, so its
|
|
4591
|
+
rule meets them as the band seams do, and each of its rows takes the card's padding back (--card-pad, the body's own), so the words
|
|
4592
|
+
stand on the body's line. Every foot's content box is --card-pad in from the card's edges (the card's padding, or a band's, a sheet's,
|
|
4593
|
+
a stack sheet's), so the one margin is exact in each */
|
|
4594
|
+
.foot > :is(.rows, .kv--lined) { flex: 1 1 100%; margin-inline: calc(-1 * var(--card-pad)); }
|
|
4595
|
+
.foot > .rows > .row, .foot > .kv--lined > .kv__row { padding-inline: var(--card-pad); }
|
|
4538
4596
|
|
|
4539
4597
|
/* in a card with paper bands: the foot band (the head's look, above) is slim */
|
|
4540
4598
|
:is(.card--bands, .card--bands > .card__face) > .foot { margin-bottom: calc(-1 * var(--card-pad)); padding-block: var(--sp-3); }
|
|
@@ -5282,7 +5340,11 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5282
5340
|
A sheet is a `.card` too, but what it holds stands off its paper: the album, the tray, a start screen's stamp keep their shadow, and so
|
|
5283
5341
|
does a stamp in an album's cell wherever the album lies */
|
|
5284
5342
|
.card:not(.sheet) .stamp:not(.stamp-cell > .stamp) { filter: none; }
|
|
5343
|
+
/* ONE exception (Lh 2026-10-25): the head's `under` stamp is glued down — a hair of shadow at its teeth, flat paper, never a lifted sticker.
|
|
5344
|
+
A bare or xs stamp stays flat. Knob: --stamp-under-drop */
|
|
5345
|
+
.card:not(.sheet) .head > .stamp--under:not(.stamp--bare, .stamp--xs) { filter: drop-shadow(var(--stamp-under-drop, var(--shadow-glued))); }
|
|
5285
5346
|
.head > .stamp { grid-column: 2; grid-row: 1 / span 2; margin-inline: 0; }
|
|
5347
|
+
.head > .stamp--under { grid-column: 1; justify-self: end; } /* `under`: in the words' own column, at its end, the words over it (parts.css) */
|
|
5286
5348
|
/* ---- where it sits in what people.css draws (docs/reference.md rule 15) ---- */
|
|
5287
5349
|
/* a stamp in the stack is the stamp's small size (--stamp-sm-size: one rule in stamp.css, 48 × 60), lapped like the heads. Measured 2026-10-11 in a Row's
|
|
5288
5350
|
lead with a title, a meta line and an end button: at 375 the meta line breaks in two, accepted by Lh (a lap of 16 would hold it; the lap stays 8)
|