@usableapp/cardds 0.7.146 → 0.7.148
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 +2 -0
- package/css/base.css +12 -0
- package/css/stamp.css +4 -5
- package/css/step.css +2 -0
- package/dist/cardds.css +20 -5
- package/dist/catalog.json +1 -1
- package/dist/scaffold/Screen.d.ts +5 -2
- package/dist/scaffold/Screen.js +3 -3
- package/docs/reference.md +4 -0
- 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.148 — 2026-10-26
|
|
6
|
+
|
|
7
|
+
A stamp's teeth are fewer and larger: 8 across, 10 down.
|
|
8
|
+
|
|
9
|
+
Components: Stamp
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- **Stamp perforation: 8 × 10 teeth** (Lh 2026-10-26: the teeth were too dense). Before → after: the normal and `sm` stamps had 12 teeth across, 15 down → 8 across, 10 down, each hole larger in step so it still reads as a round punched tooth; the holes still land whole on every edge of the 4:5 stamp. `xs` already had 8 × 10 and is unchanged. The size, the frame, the shadow, the pictures and the words do not move; no prop or knob changed.
|
|
13
|
+
|
|
14
|
+
## 0.7.147 — 2026-10-26
|
|
15
|
+
|
|
16
|
+
A screen pins a row under its top bar: `Screen topRow`.
|
|
17
|
+
|
|
18
|
+
Components: Screen
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **`Screen topRow`**: one row pinned under the top (Lh 2026-10-26 — a chat's request bar: icon · request · time · arrow to its card). Before → after: `top` took only a `TopBar` / `AppBar`, so a row meant to stay under the bar had to be the first line of the `Page` and scrolled away (a chat opened at its last message showed it above the glass) → `<Screen fill top={<TopBar…/>} topRow={<Row>…</Row>} bottom={<MessageBar…/>}>` keeps it under the bar while the content scrolls; the content starts under it at its real height. It touches the bar, edge to edge, on the screen's ground (knob `--top-row-bg`); on a scrolling screen it sticks to the top. A screen without the prop is unchanged. CSS: `.screen__top-row` is new. Story `Bubble · WithMessageBar` shows it.
|
|
22
|
+
|
|
5
23
|
## 0.7.146 — 2026-10-26
|
|
6
24
|
|
|
7
25
|
A stamp always has its teeth. The choice is whether the white paper frame round the picture is there: `Stamp frame={false}`.
|
package/css/actions.css
CHANGED
|
@@ -557,6 +557,8 @@
|
|
|
557
557
|
/* …and a STEP touches it, as it touches a TopBar: a full sheet's top edge on the bar's bottom edge (0.6.5 left 8px of base between
|
|
558
558
|
them — timebank #137); the words keep the screen's gap as their lead (--_lead, .appbar + .step above) */
|
|
559
559
|
.screen--fill > .appbar:has(+ .step) { margin-bottom: calc(-1 * var(--screen-gap)); }
|
|
560
|
+
/* a row pinned under it (Screen `topRow`) touches it too — the row cancels the gap itself (base.css) */
|
|
561
|
+
.screen--fill > .appbar:has(+ .screen__top-row) { margin-bottom: 0; }
|
|
560
562
|
/* ---- where it sits in what forms.css draws (docs/reference.md rule 15) ---- */
|
|
561
563
|
.field--action > .icon-btn { margin-left: auto; }
|
|
562
564
|
/* ---- where it sits in what sticky.css draws (docs/reference.md rule 15) ---- */
|
package/css/base.css
CHANGED
|
@@ -144,6 +144,18 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
+
/* the ROW PINNED under the top (Screen `topRow`, Lh 2026-10-26 — a chat's request bar): a row of the column, so the content
|
|
148
|
+
starts under it at its real height and it never scrolls away; touching the bar above, edge to edge, its own padding the inset,
|
|
149
|
+
on the screen's ground. On a scrolling screen it sticks to the viewport's top once the bar has gone. Knob --top-row-bg. */
|
|
150
|
+
.screen__top-row {
|
|
151
|
+
flex: none;
|
|
152
|
+
margin-inline: calc(-1 * var(--screen-pad));
|
|
153
|
+
padding-inline: var(--screen-pad);
|
|
154
|
+
background: var(--top-row-bg, var(--surface));
|
|
155
|
+
}
|
|
156
|
+
:is(.topbar, .appbar) + .screen__top-row { margin-top: calc(-1 * var(--screen-gap)); }
|
|
157
|
+
.screen:not(.screen--fill) > .screen__top-row { position: sticky; top: 0; z-index: var(--z-bar); }
|
|
158
|
+
|
|
147
159
|
/* ---- typography levels ---- */
|
|
148
160
|
/* --fs-self: each level publishes its own size, for a consumer that scales a level without knowing which */
|
|
149
161
|
.t-display { --_type: var(--type-display); font: var(--type-display); letter-spacing: var(--track-display); margin: 0; text-wrap: balance; --fs-self: var(--fs-display); }
|
package/css/stamp.css
CHANGED
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
animation: var(--stamp-arrive, none);
|
|
43
43
|
}
|
|
44
44
|
.stamp__paper {
|
|
45
|
-
--_pitch: calc(100cqw /
|
|
46
|
-
--_hole:
|
|
45
|
+
--_pitch: calc(100cqw / 8); /* one tooth: 8 across, 10 down — the holes land whole on every edge. Fewer and larger than a real stamp's: a small stamp's teeth must still read (Lh 2026-10-26, it was 12 × 15; Lh 2026-10-07, it was 20 × 25) */
|
|
46
|
+
--_hole: 3.9cqw;
|
|
47
47
|
position: absolute;
|
|
48
48
|
inset: 0;
|
|
49
49
|
-webkit-mask: linear-gradient(#000 0 0) center / calc(100% - var(--_pitch)) calc(100% - var(--_pitch)) no-repeat,
|
|
@@ -89,11 +89,10 @@
|
|
|
89
89
|
|
|
90
90
|
/* --xs: the stamp INLINE with a status line (a card's foot: the stamp, "X took it", a round button) — one caption line tall,
|
|
91
91
|
--stamp-xs-size (18.7 × 23.4 at the default bases, one Chip xs tall, on --fs-base: it follows the words it stands with; Lh 2026-10-24).
|
|
92
|
-
Too small for words: it is bare whatever it is handed. Only the contact shadow (--stamp-shadow): it lies flat in the line, its edge still seen. The teeth are
|
|
93
|
-
10 down)
|
|
92
|
+
Too small for words: it is bare whatever it is handed. Only the contact shadow (--stamp-shadow): it lies flat in the line, its edge still seen. The teeth are every stamp's (8 across,
|
|
93
|
+
10 down), and the frame round the picture wider to clear them. Several, lapped, with a "+8": AvatarStack (below).
|
|
94
94
|
<span class="stamp stamp--1 stamp--xs">…</span> */
|
|
95
95
|
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
96
|
-
.stamp--xs .stamp__paper { --_pitch: calc(100cqw / 8); --_hole: 3.9cqw; }
|
|
97
96
|
.stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
|
|
98
97
|
/* 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 */
|
|
99
98
|
.stamp--held { visibility: hidden; }
|
package/css/step.css
CHANGED
|
@@ -54,6 +54,8 @@
|
|
|
54
54
|
that thing. */
|
|
55
55
|
.topbar + .step { margin-top: calc(-1 * var(--screen-gap)); --_lead: var(--screen-gap); }
|
|
56
56
|
.appbar + .step { margin-top: calc(-1 * var(--header-gap)); --_lead: var(--screen-gap); }
|
|
57
|
+
/* …and so does the row pinned under the bar (Screen `topRow`): the step touches it, the words keep the screen's gap */
|
|
58
|
+
.screen__top-row + .step { margin-top: calc(-1 * var(--screen-gap)); --_lead: var(--screen-gap); }
|
|
57
59
|
/* no bar at all — the step is the screen's first child (a page whose one heading is the base's own, Lh 2026-09-22):
|
|
58
60
|
the words start a share of the screen down — --screen-lead, 15% of its height (Lh 2026-09-22), so a tall phone gives
|
|
59
61
|
more air and a short one less; a screen with a bar keeps the bar's own room */
|
package/dist/cardds.css
CHANGED
|
@@ -724,6 +724,18 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
+
/* the ROW PINNED under the top (Screen `topRow`, Lh 2026-10-26 — a chat's request bar): a row of the column, so the content
|
|
728
|
+
starts under it at its real height and it never scrolls away; touching the bar above, edge to edge, its own padding the inset,
|
|
729
|
+
on the screen's ground. On a scrolling screen it sticks to the viewport's top once the bar has gone. Knob --top-row-bg. */
|
|
730
|
+
.screen__top-row {
|
|
731
|
+
flex: none;
|
|
732
|
+
margin-inline: calc(-1 * var(--screen-pad));
|
|
733
|
+
padding-inline: var(--screen-pad);
|
|
734
|
+
background: var(--top-row-bg, var(--surface));
|
|
735
|
+
}
|
|
736
|
+
:is(.topbar, .appbar) + .screen__top-row { margin-top: calc(-1 * var(--screen-gap)); }
|
|
737
|
+
.screen:not(.screen--fill) > .screen__top-row { position: sticky; top: 0; z-index: var(--z-bar); }
|
|
738
|
+
|
|
727
739
|
/* ---- typography levels ---- */
|
|
728
740
|
/* --fs-self: each level publishes its own size, for a consumer that scales a level without knowing which */
|
|
729
741
|
.t-display { --_type: var(--type-display); font: var(--type-display); letter-spacing: var(--track-display); margin: 0; text-wrap: balance; --fs-self: var(--fs-display); }
|
|
@@ -2487,6 +2499,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
2487
2499
|
that thing. */
|
|
2488
2500
|
.topbar + .step { margin-top: calc(-1 * var(--screen-gap)); --_lead: var(--screen-gap); }
|
|
2489
2501
|
.appbar + .step { margin-top: calc(-1 * var(--header-gap)); --_lead: var(--screen-gap); }
|
|
2502
|
+
/* …and so does the row pinned under the bar (Screen `topRow`): the step touches it, the words keep the screen's gap */
|
|
2503
|
+
.screen__top-row + .step { margin-top: calc(-1 * var(--screen-gap)); --_lead: var(--screen-gap); }
|
|
2490
2504
|
/* no bar at all — the step is the screen's first child (a page whose one heading is the base's own, Lh 2026-09-22):
|
|
2491
2505
|
the words start a share of the screen down — --screen-lead, 15% of its height (Lh 2026-09-22), so a tall phone gives
|
|
2492
2506
|
more air and a short one less; a screen with a bar keeps the bar's own room */
|
|
@@ -3322,6 +3336,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3322
3336
|
/* …and a STEP touches it, as it touches a TopBar: a full sheet's top edge on the bar's bottom edge (0.6.5 left 8px of base between
|
|
3323
3337
|
them — timebank #137); the words keep the screen's gap as their lead (--_lead, .appbar + .step above) */
|
|
3324
3338
|
.screen--fill > .appbar:has(+ .step) { margin-bottom: calc(-1 * var(--screen-gap)); }
|
|
3339
|
+
/* a row pinned under it (Screen `topRow`) touches it too — the row cancels the gap itself (base.css) */
|
|
3340
|
+
.screen--fill > .appbar:has(+ .screen__top-row) { margin-bottom: 0; }
|
|
3325
3341
|
/* ---- where it sits in what forms.css draws (docs/reference.md rule 15) ---- */
|
|
3326
3342
|
.field--action > .icon-btn { margin-left: auto; }
|
|
3327
3343
|
/* ---- where it sits in what sticky.css draws (docs/reference.md rule 15) ---- */
|
|
@@ -5241,8 +5257,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5241
5257
|
animation: var(--stamp-arrive, none);
|
|
5242
5258
|
}
|
|
5243
5259
|
.stamp__paper {
|
|
5244
|
-
--_pitch: calc(100cqw /
|
|
5245
|
-
--_hole:
|
|
5260
|
+
--_pitch: calc(100cqw / 8); /* one tooth: 8 across, 10 down — the holes land whole on every edge. Fewer and larger than a real stamp's: a small stamp's teeth must still read (Lh 2026-10-26, it was 12 × 15; Lh 2026-10-07, it was 20 × 25) */
|
|
5261
|
+
--_hole: 3.9cqw;
|
|
5246
5262
|
position: absolute;
|
|
5247
5263
|
inset: 0;
|
|
5248
5264
|
-webkit-mask: linear-gradient(#000 0 0) center / calc(100% - var(--_pitch)) calc(100% - var(--_pitch)) no-repeat,
|
|
@@ -5288,11 +5304,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
5288
5304
|
|
|
5289
5305
|
/* --xs: the stamp INLINE with a status line (a card's foot: the stamp, "X took it", a round button) — one caption line tall,
|
|
5290
5306
|
--stamp-xs-size (18.7 × 23.4 at the default bases, one Chip xs tall, on --fs-base: it follows the words it stands with; Lh 2026-10-24).
|
|
5291
|
-
Too small for words: it is bare whatever it is handed. Only the contact shadow (--stamp-shadow): it lies flat in the line, its edge still seen. The teeth are
|
|
5292
|
-
10 down)
|
|
5307
|
+
Too small for words: it is bare whatever it is handed. Only the contact shadow (--stamp-shadow): it lies flat in the line, its edge still seen. The teeth are every stamp's (8 across,
|
|
5308
|
+
10 down), and the frame round the picture wider to clear them. Several, lapped, with a "+8": AvatarStack (below).
|
|
5293
5309
|
<span class="stamp stamp--1 stamp--xs">…</span> */
|
|
5294
5310
|
.stamp--xs { width: var(--stamp-xs-size, var(--stamp-xs)); flex: none; margin-inline: 0; filter: drop-shadow(var(--stamp-shadow, var(--_contact))); }
|
|
5295
|
-
.stamp--xs .stamp__paper { --_pitch: calc(100cqw / 8); --_hole: 3.9cqw; }
|
|
5296
5311
|
.stamp--xs .stamp__pic { inset: var(--stamp-frame, 12cqw); }
|
|
5297
5312
|
/* 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 */
|
|
5298
5313
|
.stamp--held { visibility: hidden; }
|