@usableapp/cardds 0.7.156 → 0.7.157
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 +9 -0
- package/css/parts.css +28 -0
- package/dist/cardds.css +28 -0
- package/dist/catalog.json +1 -1
- package/dist/parts/Head.d.ts +1 -0
- package/dist/parts/Head.js +1 -0
- package/docs/reference.md +7 -0
- package/package.json +1 -1
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.157 — 2026-10-28
|
|
6
|
+
|
|
7
|
+
A `Head` that leads with a `Lead`, an `Avatar` or an `AvatarStack`, then `Words`, draws as a FeedCard's head.
|
|
8
|
+
|
|
9
|
+
Components: Head
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- **A `Head` that leads with a `Lead`, an `Avatar` or an `AvatarStack`, then `Words`** draws as a FeedCard's head (timebank, Lh 2026-10-28). Before → after: the meta took a full-width row under the lead, and with no end the title stood at the far right → the lead at the left, the title (card heading size) over its meta as one left-aligned block beside it, the end (`End`, `IconBtn`) at the right centred to the block. New knob `--head-meta-lines` (default not cut) beside `--head-title-lines`. A head with no lead before its title is unchanged. Story `Head · HeadLeadWords`.
|
|
13
|
+
|
|
5
14
|
## 0.7.156 — 2026-10-28
|
|
6
15
|
|
|
7
16
|
A chat opens as a Sheet: the `MessageBar` stands as a sheet's `Foot`, a `StickyAnswer` works as a sheet's last child, and a sheet pins a row under its head (`topRow`).
|
package/css/parts.css
CHANGED
|
@@ -153,6 +153,34 @@
|
|
|
153
153
|
}
|
|
154
154
|
.head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
|
|
155
155
|
|
|
156
|
+
/* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card): a `Head` whose first child is a `Lead`, an `Avatar` or an
|
|
157
|
+
`AvatarStack` (a stamp in one) and whose second is the `Words` title. The lead stands at the left; beside it, left-aligned, ONE block — the title
|
|
158
|
+
at the card heading's size over its meta — as a FeedCard's head draws it; whatever follows (an `End`, an `IconBtn`) stands at the right, centred to
|
|
159
|
+
the block. A title without a meta is centred to the lead. The title is cut at --head-title-lines (above), the meta at --head-meta-lines (none).
|
|
160
|
+
A head with no lead before its title is untouched.
|
|
161
|
+
<div class="head"><span class="avatar-stack">…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><span class="end">…</span></div> */
|
|
162
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) {
|
|
163
|
+
display: grid;
|
|
164
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
165
|
+
grid-auto-columns: auto;
|
|
166
|
+
align-items: center;
|
|
167
|
+
}
|
|
168
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1 / 3; }
|
|
169
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; align-self: end; }
|
|
170
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2):not(:has(+ .words__meta)) { grid-row: 1 / 3; align-self: center; }
|
|
171
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > .words__meta:nth-child(3) {
|
|
172
|
+
grid-column: 2; grid-row: 2; align-self: start;
|
|
173
|
+
overflow-wrap: anywhere;
|
|
174
|
+
display: -webkit-box;
|
|
175
|
+
-webkit-box-orient: vertical;
|
|
176
|
+
-webkit-line-clamp: var(--head-meta-lines, none);
|
|
177
|
+
line-clamp: var(--head-meta-lines, none);
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
|
|
180
|
+
margin-block: -0.2em -0.15em;
|
|
181
|
+
}
|
|
182
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1 / 3; }
|
|
183
|
+
|
|
156
184
|
/* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
|
|
157
185
|
:is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
|
|
158
186
|
--card-bg: var(--card-1-bg);
|
package/dist/cardds.css
CHANGED
|
@@ -4511,6 +4511,34 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4511
4511
|
}
|
|
4512
4512
|
.head:has(> .tile-badge:first-child + .chip-row) > :nth-child(n + 3) { grid-column: 1 / -1; grid-row: auto; }
|
|
4513
4513
|
|
|
4514
|
+
/* a head that LEADS with a person or a thing (Lh 2026-10-28, timebank's welcome card): a `Head` whose first child is a `Lead`, an `Avatar` or an
|
|
4515
|
+
`AvatarStack` (a stamp in one) and whose second is the `Words` title. The lead stands at the left; beside it, left-aligned, ONE block — the title
|
|
4516
|
+
at the card heading's size over its meta — as a FeedCard's head draws it; whatever follows (an `End`, an `IconBtn`) stands at the right, centred to
|
|
4517
|
+
the block. A title without a meta is centred to the lead. The title is cut at --head-title-lines (above), the meta at --head-meta-lines (none).
|
|
4518
|
+
A head with no lead before its title is untouched.
|
|
4519
|
+
<div class="head"><span class="avatar-stack">…</span><h2 class="words__title t-h2">…</h2><span class="words__meta t-caption t-muted">…</span><span class="end">…</span></div> */
|
|
4520
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) {
|
|
4521
|
+
display: grid;
|
|
4522
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
4523
|
+
grid-auto-columns: auto;
|
|
4524
|
+
align-items: center;
|
|
4525
|
+
}
|
|
4526
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :first-child { grid-column: 1; grid-row: 1 / 3; }
|
|
4527
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2) { grid-column: 2; grid-row: 1; align-self: end; }
|
|
4528
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(2):not(:has(+ .words__meta)) { grid-row: 1 / 3; align-self: center; }
|
|
4529
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > .words__meta:nth-child(3) {
|
|
4530
|
+
grid-column: 2; grid-row: 2; align-self: start;
|
|
4531
|
+
overflow-wrap: anywhere;
|
|
4532
|
+
display: -webkit-box;
|
|
4533
|
+
-webkit-box-orient: vertical;
|
|
4534
|
+
-webkit-line-clamp: var(--head-meta-lines, none);
|
|
4535
|
+
line-clamp: var(--head-meta-lines, none);
|
|
4536
|
+
overflow: hidden;
|
|
4537
|
+
padding-block: 0.2em 0.15em; /* room for a Thai mark inside the clip, given back outside (as the title's, above) */
|
|
4538
|
+
margin-block: -0.2em -0.15em;
|
|
4539
|
+
}
|
|
4540
|
+
.head:not(.head--centre):has(> :is(.lead, .avatar, .avatar-stack):first-child + :is(.words__title, .words__over-title)) > :nth-child(n + 3):not(.words__meta) { grid-row: 1 / 3; }
|
|
4541
|
+
|
|
4514
4542
|
/* in a card with paper bands: the head and the foot are paper bands edge to edge, one look */
|
|
4515
4543
|
:is(.card--bands, .card--bands > .card__face) > :is(.head, .foot) {
|
|
4516
4544
|
--card-bg: var(--card-1-bg);
|