@usableapp/cardds 0.7.171 → 0.7.173

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,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.173 — 2026-10-29
6
+
7
+ A round button's icon is 15% smaller, and a StackSheet's tabs stand further in from the edge with more room between them.
8
+
9
+ Components: all
10
+
11
+ ### Changed
12
+ - **Round `Btn` icon** (Lh 2026-10-29): before, the icon in a md or sm round was the Icon's own 28px (7/12 of `--tap-base`), and in lg / xl 7/12 of the circle. After, half: 24px in md and sm (`--tap-base` × 1/2), half the circle in lg and xl. `--icon-btn-icon` (now `1 / 2`) retunes every size; `7 / 12` is the old size. An `IconBtnGroup`'s buttons and a sheet's back chevron keep their own.
13
+ - **`StackSheet` tabs** (Lh 2026-10-29): before, the last tab reached `--sp-2` into the card's padding, and the sheet's round corner and the next sheet cut its icon; the tabs stood `--sp-2` apart. After, the row ends `--sp-2` short of the inset (new knob `--stack-sheet-tabs-end`; `calc(-1 * var(--sp-2))` is the old place) and the tabs stand `--sp-4` apart (`--stack-sheet-tabs-gap`).
14
+
15
+ ## 0.7.172 — 2026-10-29
16
+
17
+ `NumberBand` reads its type from the tokens: the label is a label, the number is the one number on a sheet.
18
+
19
+ Components: NumberBand
20
+
21
+ ### Changed
22
+ - **`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.
23
+ - **`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.
24
+
25
+ ### Added
26
+ - **`--band-num-font`** (default `--type-stat`) and **`--band-num-font-size`** (default `--fs-hero`): the band's number.
27
+
5
28
  ## 0.7.171 — 2026-10-29
6
29
 
7
30
  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/actions.css CHANGED
@@ -89,13 +89,15 @@
89
89
  :is(.icon-btn--invert, .icon-btn--primary) { background: var(--icon-btn-invert-bg, var(--btn-primary-bg, var(--accent))); color: var(--icon-btn-invert-ink, var(--btn-primary-ink, var(--on-accent))); border-color: transparent; }
90
90
  .icon-btn--sm { width: var(--icon-btn-sm-size, var(--tap-sm)); height: var(--icon-btn-sm-size, var(--tap-sm)); font-size: var(--fs-title); }
91
91
  /* the bigger round sizes (`Btn shape="round" size`): lg is the hero control's size (--tap-lg), xl the biggest (--tap-xl), both on --tap-base like every size.
92
- What stands inside is a share of the circle (`--_ib`, its side), so it grows with it: the ICON is --icon-btn-icon of the side (7/12, the share of the default 48px
93
- button's 28px icon), and a WORD (a string child) keeps to --icon-btn-word-max of the side (0.45: a word of four letters stays inside) — it still
94
- grows with the member's text size, to that ceiling and no further. The default and the sm button keep their icon tokens and their word as before. */
92
+ What stands inside is a share of the circle (`--_ib`, its side), so it grows with it: the ICON is --icon-btn-icon of the side (1/2, below), and a WORD (a string child) keeps to --icon-btn-word-max of the side (0.45: a word of four letters stays inside) — it still
93
+ grows with the member's text size, to that ceiling and no further. The default and the sm button keep their word as before. */
95
94
  .icon-btn--lg { --_ib: var(--icon-btn-lg-size, var(--tap-lg)); width: var(--_ib); height: var(--_ib); }
96
95
  .icon-btn--xl { --_ib: var(--icon-btn-xl-size, var(--tap-xl)); width: var(--_ib); height: var(--_ib); }
97
96
  :is(.icon-btn--lg, .icon-btn--xl) { font-size: min(var(--fs-lg), calc(var(--_ib) * var(--icon-btn-word-max, 0.45))); }
98
- :is(.icon-btn--lg, .icon-btn--xl) > .icon { --icon-size: calc(var(--_ib) * var(--icon-btn-icon, 7 / 12)); --icon-sm-size: var(--icon-size); --icon-lg-size: var(--icon-size); } /* the Icon's own knobs */
97
+ /* the icon in a round is HALF its side (Lh 2026-10-29: 15% smaller than the 7/12 it was — the glyph filled the disc): md and sm on --tap-base
98
+ (24 at the default bases, in a 48 and a 44), lg and xl on their own side. A group's buttons are a frame's parts, not rounds: they keep the Icon's own. :where: any rule naming the icon (a back chevron) outranks this one */
99
+ :where(.icon-btn:not(.icon-btn-group > .icon-btn)) > .icon { --icon-size: calc(var(--tap-base) * var(--icon-btn-icon, 1 / 2)); --icon-sm-size: var(--icon-size); --icon-lg-size: var(--icon-size); } /* the Icon's own knobs */
100
+ :is(.icon-btn--lg, .icon-btn--xl) > .icon { --icon-size: calc(var(--_ib) * var(--icon-btn-icon, 1 / 2)); }
99
101
  /* ---- icon button group: up to four icon-only commands in ONE frame (Lh 2026-09-29) ----
100
102
  <div class="icon-btn-group" role="group"><button class="icon-btn" aria-label="…">…</button>…</div>
101
103
  One pill as tall as a button, the buttons share its width, a hairline between them; in a foot it takes the row. */
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-body)); line-height: round(down, calc(var(--lh-label) * 1em), 1px); }
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(--fw-heavy) var(--fs-giant) / var(--lh-band) var(--font-display); /* a ratio, not rounded: its <small> unit sets a smaller size and inherits this leading */
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/css/stack.css CHANGED
@@ -279,7 +279,7 @@
279
279
 
280
280
  /* ---- StackSheet's tabs (Lh 2026-09-23): the head's end is a row of small icon buttons, the sheet's pages — the chosen one
281
281
  filled (.icon-btn--invert) only while the sheet is open; a count is a small circle over the icon's top right corner ---- */
282
- .stack-sheet__tabs { display: flex; gap: var(--stack-sheet-tabs-gap, var(--sp-2)); flex: none; } /* room between the tabs: with none, the chosen tab's disc touched its neighbour's (Lh 2026-09-24) */
282
+ .stack-sheet__tabs { display: flex; gap: var(--stack-sheet-tabs-gap, var(--sp-4)); flex: none; } /* room between the tabs: with none, the chosen tab's disc touched its neighbour's (Lh 2026-09-24); sp-4 since Lh 2026-10-29: a finger's room between two tabs */
283
283
  /* the title's run (the title's own rules are parts.css's, in a stack sheet) */
284
284
  .stack-sheet__run { display: inline-block; }
285
285
  .stack-sheet > .head > .words__title.is-long > .stack-sheet__run {
@@ -324,9 +324,9 @@
324
324
  .sheet-stack--tap > .card:not(.is-open) > .head .stack-sheet__tab.icon-btn--invert {
325
325
  border-color: transparent; background-color: transparent; box-shadow: none; color: inherit;
326
326
  }
327
- /* the last tab's ICON lines up with the inset, not its button's edge: an unchosen tab shows the glyph only, so the button's own
328
- margin around it reaches into the card's padding — and an open head (back · title · three tabs) keeps one line (Lh 2026-09-23) */
329
- .head > .stack-sheet__tabs { margin-right: calc(-1 * var(--sp-2)); }
327
+ /* the tabs stand IN from the inset (Lh 2026-10-29): the last one reached into the card's padding (Lh 2026-09-23) and the sheet's round
328
+ corner, and the next sheet's, cut its icon — now the row ends --stack-sheet-tabs-end short of the inset */
329
+ .head > .stack-sheet__tabs { margin-right: var(--stack-sheet-tabs-end, var(--sp-2)); }
330
330
 
331
331
  /* AT THE END (Lh 2026-09-29, the home): after the tabs, chevron down — the open sheet folds down. The head's end gives it its room
332
332
  while open; the last tab then sits on the inset (no reach into the padding) */
package/dist/cardds.css CHANGED
@@ -1970,7 +1970,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
1970
1970
 
1971
1971
  /* ---- StackSheet's tabs (Lh 2026-09-23): the head's end is a row of small icon buttons, the sheet's pages — the chosen one
1972
1972
  filled (.icon-btn--invert) only while the sheet is open; a count is a small circle over the icon's top right corner ---- */
1973
- .stack-sheet__tabs { display: flex; gap: var(--stack-sheet-tabs-gap, var(--sp-2)); flex: none; } /* room between the tabs: with none, the chosen tab's disc touched its neighbour's (Lh 2026-09-24) */
1973
+ .stack-sheet__tabs { display: flex; gap: var(--stack-sheet-tabs-gap, var(--sp-4)); flex: none; } /* room between the tabs: with none, the chosen tab's disc touched its neighbour's (Lh 2026-09-24); sp-4 since Lh 2026-10-29: a finger's room between two tabs */
1974
1974
  /* the title's run (the title's own rules are parts.css's, in a stack sheet) */
1975
1975
  .stack-sheet__run { display: inline-block; }
1976
1976
  .stack-sheet > .head > .words__title.is-long > .stack-sheet__run {
@@ -2015,9 +2015,9 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
2015
2015
  .sheet-stack--tap > .card:not(.is-open) > .head .stack-sheet__tab.icon-btn--invert {
2016
2016
  border-color: transparent; background-color: transparent; box-shadow: none; color: inherit;
2017
2017
  }
2018
- /* the last tab's ICON lines up with the inset, not its button's edge: an unchosen tab shows the glyph only, so the button's own
2019
- margin around it reaches into the card's padding — and an open head (back · title · three tabs) keeps one line (Lh 2026-09-23) */
2020
- .head > .stack-sheet__tabs { margin-right: calc(-1 * var(--sp-2)); }
2018
+ /* the tabs stand IN from the inset (Lh 2026-10-29): the last one reached into the card's padding (Lh 2026-09-23) and the sheet's round
2019
+ corner, and the next sheet's, cut its icon — now the row ends --stack-sheet-tabs-end short of the inset */
2020
+ .head > .stack-sheet__tabs { margin-right: var(--stack-sheet-tabs-end, var(--sp-2)); }
2021
2021
 
2022
2022
  /* AT THE END (Lh 2026-09-29, the home): after the tabs, chevron down — the open sheet folds down. The head's end gives it its room
2023
2023
  while open; the last tab then sits on the inset (no reach into the padding) */
@@ -3081,13 +3081,15 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3081
3081
  :is(.icon-btn--invert, .icon-btn--primary) { background: var(--icon-btn-invert-bg, var(--btn-primary-bg, var(--accent))); color: var(--icon-btn-invert-ink, var(--btn-primary-ink, var(--on-accent))); border-color: transparent; }
3082
3082
  .icon-btn--sm { width: var(--icon-btn-sm-size, var(--tap-sm)); height: var(--icon-btn-sm-size, var(--tap-sm)); font-size: var(--fs-title); }
3083
3083
  /* the bigger round sizes (`Btn shape="round" size`): lg is the hero control's size (--tap-lg), xl the biggest (--tap-xl), both on --tap-base like every size.
3084
- What stands inside is a share of the circle (`--_ib`, its side), so it grows with it: the ICON is --icon-btn-icon of the side (7/12, the share of the default 48px
3085
- button's 28px icon), and a WORD (a string child) keeps to --icon-btn-word-max of the side (0.45: a word of four letters stays inside) — it still
3086
- grows with the member's text size, to that ceiling and no further. The default and the sm button keep their icon tokens and their word as before. */
3084
+ What stands inside is a share of the circle (`--_ib`, its side), so it grows with it: the ICON is --icon-btn-icon of the side (1/2, below), and a WORD (a string child) keeps to --icon-btn-word-max of the side (0.45: a word of four letters stays inside) — it still
3085
+ grows with the member's text size, to that ceiling and no further. The default and the sm button keep their word as before. */
3087
3086
  .icon-btn--lg { --_ib: var(--icon-btn-lg-size, var(--tap-lg)); width: var(--_ib); height: var(--_ib); }
3088
3087
  .icon-btn--xl { --_ib: var(--icon-btn-xl-size, var(--tap-xl)); width: var(--_ib); height: var(--_ib); }
3089
3088
  :is(.icon-btn--lg, .icon-btn--xl) { font-size: min(var(--fs-lg), calc(var(--_ib) * var(--icon-btn-word-max, 0.45))); }
3090
- :is(.icon-btn--lg, .icon-btn--xl) > .icon { --icon-size: calc(var(--_ib) * var(--icon-btn-icon, 7 / 12)); --icon-sm-size: var(--icon-size); --icon-lg-size: var(--icon-size); } /* the Icon's own knobs */
3089
+ /* the icon in a round is HALF its side (Lh 2026-10-29: 15% smaller than the 7/12 it was — the glyph filled the disc): md and sm on --tap-base
3090
+ (24 at the default bases, in a 48 and a 44), lg and xl on their own side. A group's buttons are a frame's parts, not rounds: they keep the Icon's own. :where: any rule naming the icon (a back chevron) outranks this one */
3091
+ :where(.icon-btn:not(.icon-btn-group > .icon-btn)) > .icon { --icon-size: calc(var(--tap-base) * var(--icon-btn-icon, 1 / 2)); --icon-sm-size: var(--icon-size); --icon-lg-size: var(--icon-size); } /* the Icon's own knobs */
3092
+ :is(.icon-btn--lg, .icon-btn--xl) > .icon { --icon-size: calc(var(--_ib) * var(--icon-btn-icon, 1 / 2)); }
3091
3093
  /* ---- icon button group: up to four icon-only commands in ONE frame (Lh 2026-09-29) ----
3092
3094
  <div class="icon-btn-group" role="group"><button class="icon-btn" aria-label="…">…</button>…</div>
3093
3095
  One pill as tall as a button, the buttons share its width, a hairline between them; in a foot it takes the row. */
@@ -3715,10 +3717,11 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
3715
3717
 
3716
3718
  /* ---- band: data card — 2-line label · giant number · footnote ----
3717
3719
  <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-body)); line-height: round(down, calc(var(--lh-label) * 1em), 1px); }
3720
+ .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
3721
  .band__num {
3720
3722
  grid-area: num;
3721
- font: var(--fw-heavy) var(--fs-giant) / var(--lh-band) var(--font-display); /* a ratio, not rounded: its <small> unit sets a smaller size and inherits this leading */
3723
+ 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) */
3724
+ font-size: var(--band-num-font-size, var(--fs-hero));
3722
3725
  letter-spacing: var(--track-display);
3723
3726
  font-variant-numeric: tabular-nums;
3724
3727
  }