@usableapp/cardds 0.7.136 → 0.7.137
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 +13 -0
- package/css/lists.css +11 -6
- package/dist/cardds.css +11 -6
- package/dist/catalog.json +1 -1
- package/docs/reference.md +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
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.137 — 2026-10-25
|
|
6
|
+
|
|
7
|
+
An icon in a `Link` fills the line of its words. It is centred on the Thai letter band, and the X is judged as well as the pencil.
|
|
8
|
+
|
|
9
|
+
Components: Link
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- **An `Icon` in a `Link` is a 0.8em box, centred on the words' body band** (knob `--link-icon-size`).
|
|
13
|
+
- Before: 0.7.136's `1ex` drew it tiny, and 0.7.135's `1em` stood it over the words.
|
|
14
|
+
- Measured on PK Nonthaburi: a Thai consonant body is 0.523em tall. At 0.8em the X draws about 90% of it, and the pencil stays under the upper vowels' line.
|
|
15
|
+
- The box's centre sits on the band's centre, 0.26em above the baseline.
|
|
16
|
+
- The JSX is unchanged. Story `Link · WithIcon`.
|
|
17
|
+
|
|
5
18
|
## 0.7.136 — 2026-10-25
|
|
6
19
|
|
|
7
20
|
A `MapArea` owns its gestures and sits in a thin frame. An icon in a `Link` is now the words' x-height, on their band.
|
package/css/lists.css
CHANGED
|
@@ -188,12 +188,17 @@
|
|
|
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
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
/* an icon in a link FILLS the line of the link's words, judged by the X (Lh 2026-10-25), centred on the words' body band, whatever `size`
|
|
192
|
+
the app gave it, through the Icon's own knobs. The numbers, from the face the link sets (--type-label → --font-ui, PK Nonthaburi,
|
|
193
|
+
1200 units/em): a Thai consonant body (ก ข น ด ค า) tops at 628 units = 0.523em, so the band runs from the baseline to 0.523em, its
|
|
194
|
+
centre 0.26em up; Thai upper vowels and marks reach 0.75–0.79em (ำ ไ). In its 24-unit box the `x` draws only 14 (6–18 and its stroke),
|
|
195
|
+
the pencil about 22. The box is 0.8em: the X then draws 0.8 × 14/24 = 0.47em, 89% of the body; the pencil 0.73em, its tip 0.63em up,
|
|
196
|
+
still under the upper vowels' line (a larger box puts the X closer to the body but stands the pencil over the words). Never `ex` (it
|
|
197
|
+
follows whichever face answered) nor `cap` (not on iOS 16.4). Baseline alignment puts the box's bottom (an svg's baseline) on the words'
|
|
198
|
+
baseline; `translate` lowers it by half the box less 0.26em, so the box's centre — where a stock icon is drawn about — is the band's
|
|
199
|
+
centre: translate, because it moves only the drawing and leaves the line's box and its centring alone. Baseline-aligned items sit at
|
|
200
|
+
the top of their line, so the link wraps (one line still) and centres that line in its min-height box with align-content; the gap kept */
|
|
201
|
+
.link > .icon { --icon-size: var(--link-icon-size, 0.8em); --icon-xs-size: var(--icon-size); --icon-sm-size: var(--icon-size); --icon-lg-size: var(--icon-size); translate: 0 calc(var(--icon-size) / 2 - 0.26em); }
|
|
197
202
|
.link:has(> .icon) { flex-wrap: wrap; align-items: baseline; align-content: center; }
|
|
198
203
|
|
|
199
204
|
/* ---- 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) ----
|
package/dist/cardds.css
CHANGED
|
@@ -4198,12 +4198,17 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4198
4198
|
.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 */
|
|
4199
4199
|
.link:disabled { color: var(--link-disabled-ink, var(--card-muted)); cursor: default; } /* inactive = muted (a Countdown) */
|
|
4200
4200
|
.link--wait { font-variant-numeric: tabular-nums; } /* the countdown's digits keep their width: the words do not jiggle each second */
|
|
4201
|
-
/* an icon in a link
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4201
|
+
/* an icon in a link FILLS the line of the link's words, judged by the X (Lh 2026-10-25), centred on the words' body band, whatever `size`
|
|
4202
|
+
the app gave it, through the Icon's own knobs. The numbers, from the face the link sets (--type-label → --font-ui, PK Nonthaburi,
|
|
4203
|
+
1200 units/em): a Thai consonant body (ก ข น ด ค า) tops at 628 units = 0.523em, so the band runs from the baseline to 0.523em, its
|
|
4204
|
+
centre 0.26em up; Thai upper vowels and marks reach 0.75–0.79em (ำ ไ). In its 24-unit box the `x` draws only 14 (6–18 and its stroke),
|
|
4205
|
+
the pencil about 22. The box is 0.8em: the X then draws 0.8 × 14/24 = 0.47em, 89% of the body; the pencil 0.73em, its tip 0.63em up,
|
|
4206
|
+
still under the upper vowels' line (a larger box puts the X closer to the body but stands the pencil over the words). Never `ex` (it
|
|
4207
|
+
follows whichever face answered) nor `cap` (not on iOS 16.4). Baseline alignment puts the box's bottom (an svg's baseline) on the words'
|
|
4208
|
+
baseline; `translate` lowers it by half the box less 0.26em, so the box's centre — where a stock icon is drawn about — is the band's
|
|
4209
|
+
centre: translate, because it moves only the drawing and leaves the line's box and its centring alone. Baseline-aligned items sit at
|
|
4210
|
+
the top of their line, so the link wraps (one line still) and centres that line in its min-height box with align-content; the gap kept */
|
|
4211
|
+
.link > .icon { --icon-size: var(--link-icon-size, 0.8em); --icon-xs-size: var(--icon-size); --icon-sm-size: var(--icon-size); --icon-lg-size: var(--icon-size); translate: 0 calc(var(--icon-size) / 2 - 0.26em); }
|
|
4207
4212
|
.link:has(> .icon) { flex-wrap: wrap; align-items: baseline; align-content: center; }
|
|
4208
4213
|
|
|
4209
4214
|
/* ---- 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) ----
|