@usableapp/cardds 0.7.171 → 0.7.172
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/numbers.css +3 -2
- package/dist/cardds.css +3 -2
- package/dist/catalog.json +1 -1
- package/dist/numbers/NumberBand.d.ts +1 -1
- package/dist/numbers/NumberBand.js +1 -1
- 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.172 — 2026-10-29
|
|
6
|
+
|
|
7
|
+
`NumberBand` reads its type from the tokens: the label is a label, the number is the one number on a sheet.
|
|
8
|
+
|
|
9
|
+
Components: NumberBand
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- **`NumberBand` label** (Lh 2026-10-29, "ไม่ได้ถูกคุมด้วย tokens"): before, `.band__label` took the label weight but the body size (`--fs-body`, 22). After, the label size (`--fs-label`, 17), as every other label. The knob `--band-label-font-size` still overrides it.
|
|
13
|
+
- **`NumberBand` number**: before, `.band__num` was `--fw-heavy --fs-giant` (64) on `--lh-band`, written by hand. After, `--type-stat` at `--fs-hero` (55), the size of `Text level="stat" xl`. Its layout (label left, number right, footnote under the label) is unchanged. `--lh-band` is no longer read by the band.
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- **`--band-num-font`** (default `--type-stat`) and **`--band-num-font-size`** (default `--fs-hero`): the band's number.
|
|
17
|
+
|
|
5
18
|
## 0.7.171 — 2026-10-29
|
|
6
19
|
|
|
7
20
|
A `Card` can fold to its head, and a Thai mark over a lone page's first line or a SheetStep's title is no longer cut.
|
package/css/numbers.css
CHANGED
|
@@ -92,10 +92,11 @@
|
|
|
92
92
|
|
|
93
93
|
/* ---- band: data card — 2-line label · giant number · footnote ----
|
|
94
94
|
<article class="card card--band"><span class="band__label">Hours<br>banked</span><span class="band__num">18</span><span class="band__foot">this week</span></article> */
|
|
95
|
-
.band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-
|
|
95
|
+
.band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-label)); line-height: round(down, calc(var(--lh-label) * 1em), 1px); } /* a label like every label, the --type-label size (Lh 2026-10-29: the band's words read bigger than the rest) */
|
|
96
96
|
.band__num {
|
|
97
97
|
grid-area: num;
|
|
98
|
-
font: var(--
|
|
98
|
+
font: var(--band-num-font, var(--type-stat)); /* the one number on a sheet, as `Text level="stat" xl` (Lh 2026-10-29: it was 64 written by hand) */
|
|
99
|
+
font-size: var(--band-num-font-size, var(--fs-hero));
|
|
99
100
|
letter-spacing: var(--track-display);
|
|
100
101
|
font-variant-numeric: tabular-nums;
|
|
101
102
|
}
|
package/dist/cardds.css
CHANGED
|
@@ -3715,10 +3715,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3715
3715
|
|
|
3716
3716
|
/* ---- band: data card — 2-line label · giant number · footnote ----
|
|
3717
3717
|
<article class="card card--band"><span class="band__label">Hours<br>banked</span><span class="band__num">18</span><span class="band__foot">this week</span></article> */
|
|
3718
|
-
.band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-
|
|
3718
|
+
.band__label { grid-area: label; align-self: start; font: var(--band-label-font, var(--type-label)); font-size: var(--band-label-font-size, var(--fs-label)); line-height: round(down, calc(var(--lh-label) * 1em), 1px); } /* a label like every label, the --type-label size (Lh 2026-10-29: the band's words read bigger than the rest) */
|
|
3719
3719
|
.band__num {
|
|
3720
3720
|
grid-area: num;
|
|
3721
|
-
font: var(--
|
|
3721
|
+
font: var(--band-num-font, var(--type-stat)); /* the one number on a sheet, as `Text level="stat" xl` (Lh 2026-10-29: it was 64 written by hand) */
|
|
3722
|
+
font-size: var(--band-num-font-size, var(--fs-hero));
|
|
3722
3723
|
letter-spacing: var(--track-display);
|
|
3723
3724
|
font-variant-numeric: tabular-nums;
|
|
3724
3725
|
}
|