@usableapp/cardds 0.7.125 → 0.7.126
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/actions.css +5 -3
- package/css/finish.css +5 -9
- package/css/parts.css +3 -0
- package/dist/cardds.css +13 -12
- package/dist/catalog.json +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.126 — 2026-10-25
|
|
6
|
+
|
|
7
|
+
A long `Text expand` keeps its ink when pressed, a banded card's head holds an `under` stamp beside it, and under `lit` a button has no shadow behind it.
|
|
8
|
+
|
|
9
|
+
Components: Text, Card, Btn, IconBtn
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **A `Text expand` that does not fit no longer dims under the finger.** It is words: it opens or folds on a tap, and its ink never changes. Pointer stays.
|
|
13
|
+
- **A `paper="bands"` card with `StampOn under` beside its head (a card's child, not in the head) gets a head band at least as tall as the stamp plus `--card-pad` above and below.** A short title no longer leaves the stamp hanging past the band. A long title still runs over the stamp and grows the band. Story `Card/StampOnUnderBandsTitle` (new).
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- **Under `data-finish="lit"`, a button has no shadow behind it.** `Btn` and `IconBtn` keep the lit top edge, the ring and the sheen; the primary one keeps its lit edge only. Pressed still goes down. Cards and sheets keep their shadow.
|
|
17
|
+
|
|
5
18
|
## 0.7.125 — 2026-10-25
|
|
6
19
|
|
|
7
20
|
A caption over an h1 that wraps starts where a one-line one does, and every stamp in a card head is glued down.
|
package/css/actions.css
CHANGED
|
@@ -429,7 +429,8 @@
|
|
|
429
429
|
.card--go (Lh 2026-10-09) = a card pressed whole: `Card` renders it while its ONE control is its foot's button or a row card's end
|
|
430
430
|
button (src/cards/cardGo.ts). It is in the DIM pointer and :active lists only — the focus ring and the disabled look stay the
|
|
431
431
|
button's, the card itself is never focused or disabled.
|
|
432
|
-
.t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds, so it
|
|
432
|
+
.t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds. It is WORDS, so it neither
|
|
433
|
+
dims nor gives: its ink never changes under the finger (Lh 2026-10-25), the opening is the answer. Pointer only (below). */
|
|
433
434
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
|
|
434
435
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
435
436
|
a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick, .count-in__cancel) {
|
|
@@ -437,11 +438,12 @@
|
|
|
437
438
|
touch-action: manipulation;
|
|
438
439
|
transition: scale var(--motion-press) var(--ease-out);
|
|
439
440
|
}
|
|
440
|
-
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge
|
|
441
|
+
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge) {
|
|
441
442
|
cursor: pointer;
|
|
442
443
|
touch-action: manipulation;
|
|
443
444
|
transition: opacity var(--motion-press) var(--ease-out);
|
|
444
445
|
}
|
|
446
|
+
:where(.t-expand--more) { cursor: pointer; touch-action: manipulation; }
|
|
445
447
|
/* a CHOICE's fill fades in as it is picked (a plain button's colour never changes on a tap, so it does not fade) */
|
|
446
448
|
:where(.chip--pick, button.chip, .tile--pick, button.tile, .day, .segment__item, .calendar__day, .float-bar__item, .picker__item, .check,
|
|
447
449
|
.icon-btn[role="tab"], .avatar-pick__item > .avatar, .map-pick > .map-pick__mark, .map-pick > .map-pick__name) {
|
|
@@ -452,7 +454,7 @@
|
|
|
452
454
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
|
|
453
455
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
454
456
|
a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
|
|
455
|
-
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge
|
|
457
|
+
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
|
|
456
458
|
/* SHADE — what has something BEHIND it (a peeked sheet over the pile, a postcard's face over its back, a post letter's sheet over the other) must not turn see-through:
|
|
457
459
|
it darkens a touch instead (--press-shade) */
|
|
458
460
|
:where(.sheet-stack--tap > .card:not(.is-open), .postcard__turn, .post-letter__sheet:not(:has(.icon-btn:active))) { cursor: pointer; touch-action: manipulation; transition: filter var(--motion-press) var(--ease-out); }
|
package/css/finish.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
FINISHES — four values of the one attribute (Lh 2026-10-12, from the timebank home with each injected:
|
|
8
8
|
four finishes, variations of one concept, never new pieces; teeth · tape · ticket · slab were rejected):
|
|
9
|
-
lit = lit from above: a lit top edge, a hairline ring and a layered shadow that grows with height; filled buttons
|
|
9
|
+
lit = lit from above: a lit top edge, a hairline ring and a layered shadow that grows with height; filled buttons have a lit edge and no shadow behind them, and go down under the finger; fields and pin cells are sunk.
|
|
10
10
|
print = printed paper: an ink line in the card's own ink, a hard misregistered offset instead of a blurred shadow, paper grain over the card, a dotted rule under the head as on a printed form; information inside stays flat.
|
|
11
11
|
sticker = a die-cut sticker: a white cut line round the card, a short hard drop, a slight tilt on a lone card, buttons with a bottom edge that press down.
|
|
12
12
|
ink = a poster / comic print: a thick line in the surface's ink round every boundary and control, a hard offset in the same ink.
|
|
@@ -48,10 +48,8 @@
|
|
|
48
48
|
0 -0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 6%, transparent),
|
|
49
49
|
0 -0.75rem 2.5rem color-mix(in srgb, var(--_shade) 18%, transparent);
|
|
50
50
|
|
|
51
|
-
/* a control: its
|
|
52
|
-
--finish-control: var(--finish-edge), var(--finish-ring)
|
|
53
|
-
0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 12%, transparent),
|
|
54
|
-
0 0.25rem 0.5rem -0.125rem color-mix(in srgb, var(--_shade) 12%, transparent);
|
|
51
|
+
/* a control: its lit edge and ring, no shadow behind it (Lh 2026-10-25), and the sheen that runs down its face */
|
|
52
|
+
--finish-control: var(--finish-edge), var(--finish-ring);
|
|
55
53
|
--finish-control-down: var(--finish-ring), inset 0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 18%, transparent);
|
|
56
54
|
--finish-sheen: linear-gradient(to bottom, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 60%);
|
|
57
55
|
--finish-sunk: inset 0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 14%, transparent), 0 0.0625rem 0 rgb(255 255 255 / 0.5);
|
|
@@ -74,12 +72,10 @@
|
|
|
74
72
|
background-image: var(--finish-sheen);
|
|
75
73
|
box-shadow: var(--finish-control);
|
|
76
74
|
}
|
|
77
|
-
/* the main button
|
|
75
|
+
/* the main button: its lit edge only, no ring and no shadow behind it */
|
|
78
76
|
[data-finish="lit"] .btn--primary,
|
|
79
77
|
[data-finish="lit"] :is(.icon-btn--invert, .icon-btn--primary):not(.icon-btn-group > *) {
|
|
80
|
-
box-shadow: var(--finish-edge)
|
|
81
|
-
0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 20%, transparent),
|
|
82
|
-
0 0.5rem 1rem -0.25rem color-mix(in srgb, var(--accent) 45%, transparent);
|
|
78
|
+
box-shadow: var(--finish-edge);
|
|
83
79
|
}
|
|
84
80
|
/* a peeked stack tab is the icon alone: no sheen and no shadow until its sheet is open (the fill fades with the sheet) */
|
|
85
81
|
[data-finish="lit"] .sheet-stack--tap > .card:not(.is-open) > .head .stack-sheet__tab {
|
package/css/parts.css
CHANGED
|
@@ -174,6 +174,9 @@
|
|
|
174
174
|
onto a pseudo-element one step lower (--z-under-2): the stamp shows on the band and the head's words stay over the stamp */
|
|
175
175
|
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { position: relative; background: none; }
|
|
176
176
|
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head::before { content: ""; position: absolute; inset: 0; z-index: var(--z-under-2); background: var(--card-bg); }
|
|
177
|
+
/* the under stamp is absolute at --card-pad from the card's top, so it takes no room in the head: the band is held at least as tall as the stamp
|
|
178
|
+
(--stamp-size wide, 4 : 5) plus --card-pad above and below it, so a short title never leaves the stamp hanging past the band. Words taller grow it as before */
|
|
179
|
+
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { min-block-size: calc(var(--card-pad) * 2 + var(--stamp-size, calc(var(--tap) * 2)) * 5 / 4); }
|
|
177
180
|
|
|
178
181
|
/* in a sheet stack */
|
|
179
182
|
/* stack headers: uniform — [back?] title left, icons right, one height,
|
package/dist/cardds.css
CHANGED
|
@@ -3109,7 +3109,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3109
3109
|
.card--go (Lh 2026-10-09) = a card pressed whole: `Card` renders it while its ONE control is its foot's button or a row card's end
|
|
3110
3110
|
button (src/cards/cardGo.ts). It is in the DIM pointer and :active lists only — the focus ring and the disabled look stay the
|
|
3111
3111
|
button's, the card itself is never focused or disabled.
|
|
3112
|
-
.t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds, so it
|
|
3112
|
+
.t-expand--more (Lh 2026-10-25) = a `Text expand` that does not fit: the whole box opens or folds. It is WORDS, so it neither
|
|
3113
|
+
dims nor gives: its ink never changes under the finger (Lh 2026-10-25), the opening is the answer. Pointer only (below). */
|
|
3113
3114
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
|
|
3114
3115
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3115
3116
|
a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick, .count-in__cancel) {
|
|
@@ -3117,11 +3118,12 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3117
3118
|
touch-action: manipulation;
|
|
3118
3119
|
transition: scale var(--motion-press) var(--ease-out);
|
|
3119
3120
|
}
|
|
3120
|
-
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge
|
|
3121
|
+
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge) {
|
|
3121
3122
|
cursor: pointer;
|
|
3122
3123
|
touch-action: manipulation;
|
|
3123
3124
|
transition: opacity var(--motion-press) var(--ease-out);
|
|
3124
3125
|
}
|
|
3126
|
+
:where(.t-expand--more) { cursor: pointer; touch-action: manipulation; }
|
|
3125
3127
|
/* a CHOICE's fill fades in as it is picked (a plain button's colour never changes on a tap, so it does not fade) */
|
|
3126
3128
|
:where(.chip--pick, button.chip, .tile--pick, button.tile, .day, .segment__item, .calendar__day, .float-bar__item, .picker__item, .check,
|
|
3127
3129
|
.icon-btn[role="tab"], .avatar-pick__item > .avatar, .map-pick > .map-pick__mark, .map-pick > .map-pick__name) {
|
|
@@ -3132,7 +3134,7 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
3132
3134
|
:where(.btn, .icon-btn, .link, a.chip, button.chip, .chip--pick, a.tile, button.tile, .tile--pick, .day, .segment__item, .calendar__day,
|
|
3133
3135
|
.float-bar__item, .avatar-pick__item, .add-row, .picker__item, .dropdown__btn, .appbar__who, .check, .toggle, .mood__opt, .sheet__handle,
|
|
3134
3136
|
a.avatar, button.avatar, .menu__item, button.snackbar__body, .stamp--tap, button.stamp-cell, button.stamp-place, .post-letter__turn, .post-desk__slot, .post-desk__pick, .post-desk__reach, .stamp-on__remove, .map-pick):active:not(:disabled, [aria-disabled="true"], :has(:disabled)) { scale: var(--press-scale); }
|
|
3135
|
-
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge
|
|
3137
|
+
:where(a.row, button.row, label.row, .row-expand > summary, .banner__summary, a.card, label.card, .card--go, .feed-card--small, .toggle-field, .post-box__edge):active:not([aria-disabled="true"], :has(:disabled)) { opacity: var(--press-dim); }
|
|
3136
3138
|
/* SHADE — what has something BEHIND it (a peeked sheet over the pile, a postcard's face over its back, a post letter's sheet over the other) must not turn see-through:
|
|
3137
3139
|
it darkens a touch instead (--press-shade) */
|
|
3138
3140
|
:where(.sheet-stack--tap > .card:not(.is-open), .postcard__turn, .post-letter__sheet:not(:has(.icon-btn:active))) { cursor: pointer; touch-action: manipulation; transition: filter var(--motion-press) var(--ease-out); }
|
|
@@ -4366,6 +4368,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
4366
4368
|
onto a pseudo-element one step lower (--z-under-2): the stamp shows on the band and the head's words stay over the stamp */
|
|
4367
4369
|
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { position: relative; background: none; }
|
|
4368
4370
|
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head::before { content: ""; position: absolute; inset: 0; z-index: var(--z-under-2); background: var(--card-bg); }
|
|
4371
|
+
/* the under stamp is absolute at --card-pad from the card's top, so it takes no room in the head: the band is held at least as tall as the stamp
|
|
4372
|
+
(--stamp-size wide, 4 : 5) plus --card-pad above and below it, so a short title never leaves the stamp hanging past the band. Words taller grow it as before */
|
|
4373
|
+
:is(.card--bands, .card--bands > .card__face):has(> .stamp-on--under, > .card__middle > .stamp-on--under) > .head { min-block-size: calc(var(--card-pad) * 2 + var(--stamp-size, calc(var(--tap) * 2)) * 5 / 4); }
|
|
4369
4374
|
|
|
4370
4375
|
/* in a sheet stack */
|
|
4371
4376
|
/* stack headers: uniform — [back?] title left, icons right, one height,
|
|
@@ -6319,7 +6324,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
6319
6324
|
|
|
6320
6325
|
FINISHES — four values of the one attribute (Lh 2026-10-12, from the timebank home with each injected:
|
|
6321
6326
|
four finishes, variations of one concept, never new pieces; teeth · tape · ticket · slab were rejected):
|
|
6322
|
-
lit = lit from above: a lit top edge, a hairline ring and a layered shadow that grows with height; filled buttons
|
|
6327
|
+
lit = lit from above: a lit top edge, a hairline ring and a layered shadow that grows with height; filled buttons have a lit edge and no shadow behind them, and go down under the finger; fields and pin cells are sunk.
|
|
6323
6328
|
print = printed paper: an ink line in the card's own ink, a hard misregistered offset instead of a blurred shadow, paper grain over the card, a dotted rule under the head as on a printed form; information inside stays flat.
|
|
6324
6329
|
sticker = a die-cut sticker: a white cut line round the card, a short hard drop, a slight tilt on a lone card, buttons with a bottom edge that press down.
|
|
6325
6330
|
ink = a poster / comic print: a thick line in the surface's ink round every boundary and control, a hard offset in the same ink.
|
|
@@ -6361,10 +6366,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
6361
6366
|
0 -0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 6%, transparent),
|
|
6362
6367
|
0 -0.75rem 2.5rem color-mix(in srgb, var(--_shade) 18%, transparent);
|
|
6363
6368
|
|
|
6364
|
-
/* a control: its
|
|
6365
|
-
--finish-control: var(--finish-edge), var(--finish-ring)
|
|
6366
|
-
0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 12%, transparent),
|
|
6367
|
-
0 0.25rem 0.5rem -0.125rem color-mix(in srgb, var(--_shade) 12%, transparent);
|
|
6369
|
+
/* a control: its lit edge and ring, no shadow behind it (Lh 2026-10-25), and the sheen that runs down its face */
|
|
6370
|
+
--finish-control: var(--finish-edge), var(--finish-ring);
|
|
6368
6371
|
--finish-control-down: var(--finish-ring), inset 0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 18%, transparent);
|
|
6369
6372
|
--finish-sheen: linear-gradient(to bottom, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 60%);
|
|
6370
6373
|
--finish-sunk: inset 0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 14%, transparent), 0 0.0625rem 0 rgb(255 255 255 / 0.5);
|
|
@@ -6387,12 +6390,10 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
|
|
|
6387
6390
|
background-image: var(--finish-sheen);
|
|
6388
6391
|
box-shadow: var(--finish-control);
|
|
6389
6392
|
}
|
|
6390
|
-
/* the main button
|
|
6393
|
+
/* the main button: its lit edge only, no ring and no shadow behind it */
|
|
6391
6394
|
[data-finish="lit"] .btn--primary,
|
|
6392
6395
|
[data-finish="lit"] :is(.icon-btn--invert, .icon-btn--primary):not(.icon-btn-group > *) {
|
|
6393
|
-
box-shadow: var(--finish-edge)
|
|
6394
|
-
0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 20%, transparent),
|
|
6395
|
-
0 0.5rem 1rem -0.25rem color-mix(in srgb, var(--accent) 45%, transparent);
|
|
6396
|
+
box-shadow: var(--finish-edge);
|
|
6396
6397
|
}
|
|
6397
6398
|
/* a peeked stack tab is the icon alone: no sheen and no shadow until its sheet is open (the fill fades with the sheet) */
|
|
6398
6399
|
[data-finish="lit"] .sheet-stack--tap > .card:not(.is-open) > .head .stack-sheet__tab {
|