@usableapp/cardds 0.7.172 → 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 +10 -0
- package/css/actions.css +6 -4
- package/css/stack.css +4 -4
- package/dist/cardds.css +10 -8
- package/dist/catalog.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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
|
+
|
|
5
15
|
## 0.7.172 — 2026-10-29
|
|
6
16
|
|
|
7
17
|
`NumberBand` reads its type from the tokens: the label is a label, the number is the one number on a sheet.
|
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 (
|
|
93
|
-
|
|
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
|
-
|
|
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/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-
|
|
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
|
|
328
|
-
|
|
329
|
-
.head > .stack-sheet__tabs { margin-right:
|
|
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-
|
|
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
|
|
2019
|
-
|
|
2020
|
-
.head > .stack-sheet__tabs { margin-right:
|
|
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 (
|
|
3085
|
-
|
|
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
|
-
|
|
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. */
|