@usableapp/cardds 0.7.146 → 0.7.147

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.147 — 2026-10-26
6
+
7
+ A screen pins a row under its top bar: `Screen topRow`.
8
+
9
+ Components: Screen
10
+
11
+ ### Added
12
+ - **`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.
13
+
5
14
  ## 0.7.146 — 2026-10-26
6
15
 
7
16
  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/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) ---- */