@usableapp/cardds 0.7.149 → 0.7.151

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,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.151 — 2026-10-27
6
+
7
+ The caption over a `Words` title gets its own knob, `--words-over-font`, so a low bar can set all its words smaller from outside.
8
+
9
+ Components: Words
10
+
11
+ ### Added
12
+ - **Knob `--words-over-font`** on `.words__over` (the caption `Words over` puts over the title; the timebank chat's request bar under the TopBar wanted smaller words). Before → after: the over caption was `.t-caption` and only `--type-caption`, a scale token no theme may touch, set it → it reads `var(--words-over-font, var(--type-caption))`, the same shape as `--words-title-font` and `--words-meta-font`. Default unchanged. A bar sets all three on its own class, e.g. `--words-over-font: var(--fw-caption) var(--fs-2xs) / var(--lh-caption) var(--face-caption)`; what size is the project's call. A title the app wraps in its own `Text` takes that level's font, not the knob: give the title as plain words. A low row card already has `--card-row-pad`. No new type size.
13
+
14
+ ## 0.7.150 — 2026-10-26
15
+
16
+ Name a neighbour with `@` in a comment or a post: `MessageBar` and `Composer` take `people` + `onMention`.
17
+
18
+ Components: MessageBar, Composer
19
+
20
+ ### Added
21
+ - **`people` + `onMention` on `MessageBar` and `Composer`** (the timebank neighbourhood feed: a comment that names a neighbour). Before → after: `@` was a letter; an app that wanted mentions laid a row of `ChipPick`s under the box that added `@name` by hand → with `people={[{ id, name, src? }]}` typing `@` and letters right before the caret lists the people whose name holds them (above a MessageBar's box, under a Composer's words; an inline `.menu`, 48px rows with an `Avatar sm`); a pick writes `@name ` in their place (the usual `onValueChange` / `onChange` comes first) and hands the person to `onMention(person)`. A written name is one piece: a soft mark under it (knob `--mention-bg`, default `--accent-soft`) and one backspace right after it takes the whole name. The words stay plain text with `@name` in them; who to notify is the app's. New type export `MentionPerson`. Without `people`, nothing changes. Stories `MessageBar · Mentions`, `Composer · Mentions`.
22
+
5
23
  ## 0.7.149 — 2026-10-26
6
24
 
7
25
  A frameless stamp's teeth read on any tone: a thin paper rim parts its colour from the shadow.
package/css/forms.css CHANGED
@@ -133,6 +133,23 @@
133
133
  caret-color: currentColor;
134
134
  }
135
135
  .message-bar__input::placeholder { color: inherit; opacity: var(--fade-hint); }
136
+ /* ---- naming with @ (MessageBar / Composer `people`): the list of matching people, and the marks under the words ----
137
+ <div class="menu mention-list" role="listbox"><button class="menu__item" role="option"><span class="avatar avatar--sm">N</span>Noi</button>…</div>
138
+ The list is an inline .menu (layover.css) in the flow: above a MessageBar's row, under a Composer's words — never a popover, so
139
+ it rides with the bar above the keyboard. A written name is one piece: .mention-under is a copy of the words in the textarea's
140
+ own cell and class (same font, padding, wrap), its ink clear, drawn BEHIND the transparent textarea; only the names' marks show. */
141
+ .mention-list { flex: 0 0 100%; order: -1; max-height: calc(var(--tap) * 4.5); /* the fifth name shows half: the list scrolls */ }
142
+ .message-bar:has(> .mention-list) { flex-wrap: wrap; }
143
+ .mention-box { display: grid; }
144
+ .mention-box > * { grid-area: 1 / 1; }
145
+ .mention-under {
146
+ overflow: hidden;
147
+ color: transparent;
148
+ pointer-events: none;
149
+ white-space: pre-wrap;
150
+ overflow-wrap: anywhere;
151
+ }
152
+ .mention-under__name { border-radius: var(--r-badge); background: var(--mention-bg, var(--accent-soft)); color: transparent; }
136
153
  /* the Screen's BOTTOM: in a .screen--fill a layer over the content's foot, as the .action-bar is (actions.css) — Screen measures it
137
154
  into --bottom-h, so a Page's last words scroll clear; on a scrolling screen its sticky last row. Both ride above the keyboard (--kb) */
138
155
  .screen--fill > .message-bar { position: absolute; inset-inline: 0; bottom: var(--kb, 0rem); z-index: var(--z-bar); }
package/css/parts.css CHANGED
@@ -30,6 +30,7 @@
30
30
  .words { flex: 1; display: grid; gap: var(--words-gap, var(--sp-0)); }
31
31
  .row > .words { min-width: 0; }
32
32
  .words__title { font: var(--words-title-font, var(--type-title)); overflow-wrap: anywhere; } /* wraps freely — no clip, so no padding trick for Thai marks (Lh 2026-09-16, same call as the card heading) */
33
+ .words__over { font: var(--words-over-font, var(--type-caption)); } /* the caption over the title (Words over): its own knob, as title and meta have — a low bar sets all three smaller from outside */
33
34
  .words__meta { font: var(--words-meta-font, var(--type-caption)); color: var(--words-meta-ink, var(--card-muted)); display: flex; align-items: center; gap: var(--words-meta-gap, var(--sp-1)); }
34
35
  .row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / var(--lh-h1) var(--font-display); }
35
36
  .row--done > .words > .words__title { color: var(--card-muted); }
package/dist/cardds.css CHANGED
@@ -2672,6 +2672,23 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2672
2672
  caret-color: currentColor;
2673
2673
  }
2674
2674
  .message-bar__input::placeholder { color: inherit; opacity: var(--fade-hint); }
2675
+ /* ---- naming with @ (MessageBar / Composer `people`): the list of matching people, and the marks under the words ----
2676
+ <div class="menu mention-list" role="listbox"><button class="menu__item" role="option"><span class="avatar avatar--sm">N</span>Noi</button>…</div>
2677
+ The list is an inline .menu (layover.css) in the flow: above a MessageBar's row, under a Composer's words — never a popover, so
2678
+ it rides with the bar above the keyboard. A written name is one piece: .mention-under is a copy of the words in the textarea's
2679
+ own cell and class (same font, padding, wrap), its ink clear, drawn BEHIND the transparent textarea; only the names' marks show. */
2680
+ .mention-list { flex: 0 0 100%; order: -1; max-height: calc(var(--tap) * 4.5); /* the fifth name shows half: the list scrolls */ }
2681
+ .message-bar:has(> .mention-list) { flex-wrap: wrap; }
2682
+ .mention-box { display: grid; }
2683
+ .mention-box > * { grid-area: 1 / 1; }
2684
+ .mention-under {
2685
+ overflow: hidden;
2686
+ color: transparent;
2687
+ pointer-events: none;
2688
+ white-space: pre-wrap;
2689
+ overflow-wrap: anywhere;
2690
+ }
2691
+ .mention-under__name { border-radius: var(--r-badge); background: var(--mention-bg, var(--accent-soft)); color: transparent; }
2675
2692
  /* the Screen's BOTTOM: in a .screen--fill a layer over the content's foot, as the .action-bar is (actions.css) — Screen measures it
2676
2693
  into --bottom-h, so a Page's last words scroll clear; on a scrolling screen its sticky last row. Both ride above the keyboard (--kb) */
2677
2694
  .screen--fill > .message-bar { position: absolute; inset-inline: 0; bottom: var(--kb, 0rem); z-index: var(--z-bar); }
@@ -4339,6 +4356,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4339
4356
  .words { flex: 1; display: grid; gap: var(--words-gap, var(--sp-0)); }
4340
4357
  .row > .words { min-width: 0; }
4341
4358
  .words__title { font: var(--words-title-font, var(--type-title)); overflow-wrap: anywhere; } /* wraps freely — no clip, so no padding trick for Thai marks (Lh 2026-09-16, same call as the card heading) */
4359
+ .words__over { font: var(--words-over-font, var(--type-caption)); } /* the caption over the title (Words over): its own knob, as title and meta have — a low bar sets all three smaller from outside */
4342
4360
  .words__meta { font: var(--words-meta-font, var(--type-caption)); color: var(--words-meta-ink, var(--card-muted)); display: flex; align-items: center; gap: var(--words-meta-gap, var(--sp-1)); }
4343
4361
  .row--lg > .words > .words__title { font: var(--fw-bold) var(--fs-lg) / var(--lh-h1) var(--font-display); }
4344
4362
  .row--done > .words > .words__title { color: var(--card-muted); }