@usableapp/cardds 0.7.133 → 0.7.135
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 +23 -0
- package/css/lists.css +3 -0
- package/css/parts.css +12 -2
- package/dist/cardds.css +15 -2
- package/dist/catalog.json +1 -1
- package/dist/parts/Foot.d.ts +7 -5
- package/dist/parts/Foot.js +1 -1
- package/docs/reference.md +11 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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.135 — 2026-10-25
|
|
6
|
+
|
|
7
|
+
An `Icon` in a `Link` is now as tall as the link's words.
|
|
8
|
+
|
|
9
|
+
Components: Link
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- **An `Icon` inside a `Link` takes the link's text size, `1em`** (knob `--link-icon-size`), whatever `size` it was given. Before, an `Icon xs` (16px) stood taller than `Link sm`'s words, as in the `Foot split` Edit · Cancel request. The app's JSX stays the same; `size="xs"` may stay or go. Story `Link · WithIcon`.
|
|
13
|
+
|
|
14
|
+
## 0.7.134 — 2026-10-25
|
|
15
|
+
|
|
16
|
+
`Foot split` takes two small links. The member's own item is now Edit · Cancel request as `Link sm`, not Btns.
|
|
17
|
+
|
|
18
|
+
Components: Foot, Link
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
- **`Foot split` with two `Link sm`s.** Each link fills its half of the foot, so the whole half is the tap target, at least `--tap` tall. Its icon and words are centred, at the link's small size and ink, and never wrap; a `Link sm error` keeps its red. The rule between the halves and the flush bottom edge are the same as the Btn version. It also works on `paper="bands"`. Story `Foot · SplitLinks`.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- **The member's own item: the split foot is two small links** (Lh found the Btns too big):
|
|
25
|
+
`<Foot split><Link sm><Icon name="pencil" size="xs" /> Edit</Link><Link sm error><Icon name="x" size="xs" /> Cancel request</Link></Foot>`.
|
|
26
|
+
Two `Btn`s still work as the halves. Stories `Btn · OwnItemFoot` and `Foot · SplitOverStatus`; `docs/reference.md`, guide.
|
|
27
|
+
|
|
5
28
|
## 0.7.133 — 2026-10-25
|
|
6
29
|
|
|
7
30
|
`Foot split` halves are now a strip at a status row's height with small label words, and status `Rows` can follow them in the same foot.
|
package/css/lists.css
CHANGED
|
@@ -188,6 +188,9 @@
|
|
|
188
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 */
|
|
189
189
|
.link:disabled { color: var(--link-disabled-ink, var(--card-muted)); cursor: default; } /* inactive = muted (a Countdown) */
|
|
190
190
|
.link--wait { font-variant-numeric: tabular-nums; } /* the countdown's digits keep their width: the words do not jiggle each second */
|
|
191
|
+
/* an icon in a link is as tall as the link's words (TT 2026-10-25: an Icon xs, 16, stood over Link sm's 15): it takes the link's own text
|
|
192
|
+
size, whatever `size` the app gave it, through the Icon's own knobs. Centred on the words by the link's align-items, its gap kept */
|
|
193
|
+
.link > .icon { --icon-size: var(--link-icon-size, 1em); --icon-xs-size: var(--icon-size); --icon-sm-size: var(--icon-size); --icon-lg-size: var(--icon-size); }
|
|
191
194
|
|
|
192
195
|
/* ---- bullets: a list, each item led by a small square picture as tall as a line of its words (Lh 2026-09-28, timebank #153) ----
|
|
193
196
|
<ul class="bullets"><li class="bullets__item"><img class="bullets__pic" alt=""><span class="bullets__text">…</span></li></ul>
|
package/css/parts.css
CHANGED
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
.foot--round { justify-content: center; gap: var(--foot-gap, var(--sp-6)); }
|
|
404
404
|
/* joined (Foot round joined): the round buttons linked by dots (the dots are BtnRow's, actions.css), a closer gap */
|
|
405
405
|
.foot--joined { gap: var(--btn-trio-gap, var(--sp-3)); }
|
|
406
|
-
/* split (Foot split, Lh 2026-10-25): two Btns that ARE the card's foot — each half its width, edge to edge, flush with its bottom edge,
|
|
406
|
+
/* split (Foot split, Lh 2026-10-25): two Btns (or two small Links, below) that ARE the card's foot — each half its width, edge to edge, flush with its bottom edge,
|
|
407
407
|
the card's bottom corners round them. No pill: no fill, no edge, no radius; the words in the ink of the ground they stand on (a `Btn warn`
|
|
408
408
|
keeps its warning, on that ground's side). A rule of --rule-w between the halves and over them (the band's own fill is the edge on bands).
|
|
409
409
|
Knob --foot-split-rule-ink. The finishes leave the halves flat (finish.css): the card carries the finish.
|
|
@@ -429,7 +429,17 @@
|
|
|
429
429
|
font-size: var(--foot-split-font-size, var(--fs-label));
|
|
430
430
|
}
|
|
431
431
|
.foot--split > .btn--warn { --dark: inherit; }
|
|
432
|
-
|
|
432
|
+
/* or two small Links (Link sm, Lh 2026-10-25: the Btns read too big): each fills its half, so the whole half is the tap target, its icon and
|
|
433
|
+
words centred, at the link's own small size and ink (a Link error keeps its red). The words never wrap: short of room, the side padding goes
|
|
434
|
+
first. The link's invisible tap ring (::after) is the half itself here */
|
|
435
|
+
.foot--split > .link {
|
|
436
|
+
flex: 1 1 0; min-width: 0; justify-content: center;
|
|
437
|
+
min-height: var(--row-min-h, var(--tap));
|
|
438
|
+
padding: var(--sp-2);
|
|
439
|
+
white-space: nowrap;
|
|
440
|
+
}
|
|
441
|
+
.foot--split > .link::after { inset: 0; }
|
|
442
|
+
.foot--split > :is(.btn, .link) + :is(.btn, .link) { border-inline-start: var(--rule-w) solid var(--foot-split-rule-ink, var(--hairline)); }
|
|
433
443
|
.foot.foot--split > .rows {
|
|
434
444
|
margin-inline: 0; /* the split foot already runs the card's full width */
|
|
435
445
|
padding-block: var(--sp-2);
|
package/dist/cardds.css
CHANGED
|
@@ -4192,6 +4192,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4192
4192
|
.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 */
|
|
4193
4193
|
.link:disabled { color: var(--link-disabled-ink, var(--card-muted)); cursor: default; } /* inactive = muted (a Countdown) */
|
|
4194
4194
|
.link--wait { font-variant-numeric: tabular-nums; } /* the countdown's digits keep their width: the words do not jiggle each second */
|
|
4195
|
+
/* an icon in a link is as tall as the link's words (TT 2026-10-25: an Icon xs, 16, stood over Link sm's 15): it takes the link's own text
|
|
4196
|
+
size, whatever `size` the app gave it, through the Icon's own knobs. Centred on the words by the link's align-items, its gap kept */
|
|
4197
|
+
.link > .icon { --icon-size: var(--link-icon-size, 1em); --icon-xs-size: var(--icon-size); --icon-sm-size: var(--icon-size); --icon-lg-size: var(--icon-size); }
|
|
4195
4198
|
|
|
4196
4199
|
/* ---- bullets: a list, each item led by a small square picture as tall as a line of its words (Lh 2026-09-28, timebank #153) ----
|
|
4197
4200
|
<ul class="bullets"><li class="bullets__item"><img class="bullets__pic" alt=""><span class="bullets__text">…</span></li></ul>
|
|
@@ -4611,7 +4614,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4611
4614
|
.foot--round { justify-content: center; gap: var(--foot-gap, var(--sp-6)); }
|
|
4612
4615
|
/* joined (Foot round joined): the round buttons linked by dots (the dots are BtnRow's, actions.css), a closer gap */
|
|
4613
4616
|
.foot--joined { gap: var(--btn-trio-gap, var(--sp-3)); }
|
|
4614
|
-
/* split (Foot split, Lh 2026-10-25): two Btns that ARE the card's foot — each half its width, edge to edge, flush with its bottom edge,
|
|
4617
|
+
/* split (Foot split, Lh 2026-10-25): two Btns (or two small Links, below) that ARE the card's foot — each half its width, edge to edge, flush with its bottom edge,
|
|
4615
4618
|
the card's bottom corners round them. No pill: no fill, no edge, no radius; the words in the ink of the ground they stand on (a `Btn warn`
|
|
4616
4619
|
keeps its warning, on that ground's side). A rule of --rule-w between the halves and over them (the band's own fill is the edge on bands).
|
|
4617
4620
|
Knob --foot-split-rule-ink. The finishes leave the halves flat (finish.css): the card carries the finish.
|
|
@@ -4637,7 +4640,17 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4637
4640
|
font-size: var(--foot-split-font-size, var(--fs-label));
|
|
4638
4641
|
}
|
|
4639
4642
|
.foot--split > .btn--warn { --dark: inherit; }
|
|
4640
|
-
|
|
4643
|
+
/* or two small Links (Link sm, Lh 2026-10-25: the Btns read too big): each fills its half, so the whole half is the tap target, its icon and
|
|
4644
|
+
words centred, at the link's own small size and ink (a Link error keeps its red). The words never wrap: short of room, the side padding goes
|
|
4645
|
+
first. The link's invisible tap ring (::after) is the half itself here */
|
|
4646
|
+
.foot--split > .link {
|
|
4647
|
+
flex: 1 1 0; min-width: 0; justify-content: center;
|
|
4648
|
+
min-height: var(--row-min-h, var(--tap));
|
|
4649
|
+
padding: var(--sp-2);
|
|
4650
|
+
white-space: nowrap;
|
|
4651
|
+
}
|
|
4652
|
+
.foot--split > .link::after { inset: 0; }
|
|
4653
|
+
.foot--split > :is(.btn, .link) + :is(.btn, .link) { border-inline-start: var(--rule-w) solid var(--foot-split-rule-ink, var(--hairline)); }
|
|
4641
4654
|
.foot.foot--split > .rows {
|
|
4642
4655
|
margin-inline: 0; /* the split foot already runs the card's full width */
|
|
4643
4656
|
padding-block: var(--sp-2);
|