@usableapp/cardds 0.7.127 → 0.7.128

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,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.128 — 2026-10-25
6
+
7
+ `Foot split`: a card foot split in half, now the own-item standard. Under `lit`, sheet shadows are very subtle.
8
+
9
+ Components: Foot, Btn, Sheet, SheetStack
10
+
11
+ ### Added
12
+ - **`Foot split`**: two `Btn`s that ARE the card's foot, each half its width, edge to edge and flush with the card's bottom edge. The card's corners round them, and a `--rule-w` rule runs between them and over them. On a `paper="bands"` foot band there is no rule over them; the band's fill is the edge. No pill: no fill, no edge, no radius, and every finish leaves them flat. Knob `--foot-split-rule-ink`. Story `Foot · Split` (new).
13
+
14
+ ### Changed
15
+ - **The member's own item: the foot is split in half** (replaces 0.7.127's two pills in a row): `<Foot split><Btn><Icon name="pencil" size="xs" /> Edit</Btn><Btn warn><Icon name="x" size="xs" /> Cancel request</Btn></Foot>`. Story `Btn · OwnItemFoot`; `docs/reference.md`.
16
+ - **Under `data-finish="lit"`, a sheet's shadow is very subtle** (`--shadow-sheet`): the sheets of a stack, the top one, and a lone `Sheet`. The layers are now 4% and 6%; they were 6% and 18%. The shadow still falls up the screen.
17
+
5
18
  ## 0.7.127 — 2026-10-25
6
19
 
7
20
  `Btn warn`: a pill in the warning ink. The member's own item gets a standard foot: Edit left, cancel right.
package/css/finish.css CHANGED
@@ -45,8 +45,8 @@
45
45
  0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 12%, transparent),
46
46
  0 0.5rem 1.25rem -0.25rem color-mix(in srgb, var(--_shade) 22%, transparent);
47
47
  --shadow-sheet: var(--finish-edge), var(--finish-ring),
48
- 0 -0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 6%, transparent),
49
- 0 -0.75rem 2.5rem color-mix(in srgb, var(--_shade) 18%, transparent);
48
+ 0 -0.0625rem 0.0625rem color-mix(in srgb, var(--_shade) 4%, transparent),
49
+ 0 -0.5rem 2rem -0.25rem color-mix(in srgb, var(--_shade) 6%, transparent);
50
50
 
51
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
52
  --finish-control: var(--finish-edge), var(--finish-ring);
@@ -66,14 +66,14 @@
66
66
  [data-finish="lit"] .sheet-stack > .card,
67
67
  [data-finish="lit"] .sheet-stack > :not(.card, .sheet-stack__base) > .card { box-shadow: var(--shadow-sheet); }
68
68
 
69
- /* ---- controls: a filled button stands up, and goes down under the finger ---- */
70
- [data-finish="lit"] .btn:not(.btn--quiet),
69
+ /* ---- controls: a filled button stands up, and goes down under the finger. The halves of a split foot (.foot--split > *) stay flat in every finish: the card carries it ---- */
70
+ [data-finish="lit"] .btn:not(.btn--quiet, .foot--split > *),
71
71
  [data-finish="lit"] .icon-btn:not(.icon-btn-group > *, .stack-sheet__tab:not(.icon-btn--invert)) {
72
72
  background-image: var(--finish-sheen);
73
73
  box-shadow: var(--finish-control);
74
74
  }
75
75
  /* the main button: its lit edge only, no ring and no shadow behind it */
76
- [data-finish="lit"] .btn--primary,
76
+ [data-finish="lit"] .btn--primary:not(.foot--split > *),
77
77
  [data-finish="lit"] :is(.icon-btn--invert, .icon-btn--primary):not(.icon-btn-group > *) {
78
78
  box-shadow: var(--finish-edge);
79
79
  }
@@ -82,7 +82,7 @@
82
82
  background-image: none;
83
83
  box-shadow: none;
84
84
  }
85
- [data-finish="lit"] :is(.btn:not(.btn--quiet), .icon-btn:not(.icon-btn-group > *, .stack-sheet__tab:not(.icon-btn--invert))):active:not(:disabled) {
85
+ [data-finish="lit"] :is(.btn:not(.btn--quiet, .foot--split > *), .icon-btn:not(.icon-btn-group > *, .stack-sheet__tab:not(.icon-btn--invert))):active:not(:disabled) {
86
86
  background-image: none;
87
87
  box-shadow: var(--finish-control-down);
88
88
  }
@@ -121,13 +121,13 @@
121
121
  padding-bottom: var(--sp-2);
122
122
  border-bottom: var(--rule-w) dotted color-mix(in srgb, currentColor 45%, transparent);
123
123
  }
124
- [data-finish="print"] :is(.btn, .chip) {
124
+ [data-finish="print"] :is(.btn:not(.foot--split > *), .chip) {
125
125
  border-color: var(--_ink);
126
126
  box-shadow: 0.125rem 0.125rem 0 0 color-mix(in srgb, currentColor 35%, transparent);
127
127
  }
128
128
  [data-finish="print"] .chip { border-color: var(--chip-border, var(--_ink)); } /* a holder that clears a chip's edge (a note's chips) clears it in print too */
129
- [data-finish="print"] .btn--primary { box-shadow: 0.125rem 0.125rem 0 0 color-mix(in srgb, var(--card-ink) 60%, transparent); }
130
- [data-finish="print"] :is(.btn, .chip):active { box-shadow: none; translate: 0.125rem 0.125rem; }
129
+ [data-finish="print"] .btn--primary:not(.foot--split > *) { box-shadow: 0.125rem 0.125rem 0 0 color-mix(in srgb, var(--card-ink) 60%, transparent); }
130
+ [data-finish="print"] :is(.btn:not(.foot--split > *), .chip):active { box-shadow: none; translate: 0.125rem 0.125rem; }
131
131
  [data-finish="print"] .card--row > .lead { border-style: dashed; }
132
132
 
133
133
  /* ============================================================
@@ -146,12 +146,12 @@
146
146
  [data-finish="sticker"] .card:not(.sheet, .modal, .card--away, .sheet-stack *, .card-list > *, .card-feed > *) { rotate: var(--sticker-tilt, 0.8deg); }
147
147
  [data-finish="sticker"] .card:not(.sheet, .modal, .card--away, .sheet-stack *, .card-list > *, .card-feed > *):nth-of-type(even) { rotate: calc(-1 * var(--sticker-tilt, 0.8deg)); }
148
148
  [data-finish="sticker"] .card-list { gap: var(--sp-5); }
149
- [data-finish="sticker"] .btn {
149
+ [data-finish="sticker"] .btn:not(.foot--split > *) {
150
150
  box-shadow: 0 0.1875rem 0 0 color-mix(in srgb, currentColor 30%, transparent);
151
151
  border-color: color-mix(in srgb, currentColor 25%, transparent);
152
152
  }
153
- [data-finish="sticker"] .btn--primary { box-shadow: 0 0.1875rem 0 0 color-mix(in srgb, var(--btn-primary-bg, var(--accent)) 55%, var(--on-surface)); }
154
- [data-finish="sticker"] .btn:active { box-shadow: none; translate: 0 0.1875rem; }
153
+ [data-finish="sticker"] .btn--primary:not(.foot--split > *) { box-shadow: 0 0.1875rem 0 0 color-mix(in srgb, var(--btn-primary-bg, var(--accent)) 55%, var(--on-surface)); }
154
+ [data-finish="sticker"] .btn:not(.foot--split > *):active { box-shadow: none; translate: 0 0.1875rem; }
155
155
  [data-finish="sticker"] .chip { box-shadow: 0 0 0 0.1875rem #fff; }
156
156
 
157
157
  /* ============================================================
@@ -160,8 +160,8 @@
160
160
  ============================================================ */
161
161
  [data-finish="ink"] { --card-border: var(--on-surface); --action-border: var(--on-surface); --outline: currentColor; }
162
162
  [data-finish="ink"] .card { border: var(--ink-w, 0.15625rem) solid var(--on-surface); box-shadow: var(--ink-off, 0.3125rem) var(--ink-off, 0.3125rem) 0 0 var(--on-surface); }
163
- [data-finish="ink"] :is(.btn, .chip, .icon-btn:not(.icon-btn-group > *)) { border: var(--ink-w, 0.15625rem) solid currentColor; box-shadow: 0.1875rem 0.1875rem 0 0 currentColor; }
164
- [data-finish="ink"] .btn--warn { border-color: var(--btn-ink, var(--action-ink)); box-shadow: 0.1875rem 0.1875rem 0 0 var(--btn-ink, var(--action-ink)); } /* the edge stays the plain button's: only the words take the warning */
165
- [data-finish="ink"] .btn--primary { border-color: var(--on-surface); box-shadow: 0.1875rem 0.1875rem 0 0 var(--on-surface); }
163
+ [data-finish="ink"] :is(.btn:not(.foot--split > *), .chip, .icon-btn:not(.icon-btn-group > *)) { border: var(--ink-w, 0.15625rem) solid currentColor; box-shadow: 0.1875rem 0.1875rem 0 0 currentColor; }
164
+ [data-finish="ink"] .btn--warn:not(.foot--split > *) { border-color: var(--btn-ink, var(--action-ink)); box-shadow: 0.1875rem 0.1875rem 0 0 var(--btn-ink, var(--action-ink)); } /* the edge stays the plain button's: only the words take the warning */
165
+ [data-finish="ink"] .btn--primary:not(.foot--split > *) { border-color: var(--on-surface); box-shadow: 0.1875rem 0.1875rem 0 0 var(--on-surface); }
166
166
  [data-finish="ink"] .toggle { box-shadow: 0.125rem 0.125rem 0 0 var(--on-surface); }
167
167
  [data-finish="ink"] .card--row > .lead { border-width: var(--ink-w, 0.15625rem); }
package/css/parts.css CHANGED
@@ -403,6 +403,24 @@
403
403
  .foot--round { justify-content: center; gap: var(--foot-gap, var(--sp-6)); }
404
404
  /* joined (Foot round joined): the round buttons linked by dots (the dots are BtnRow's, actions.css), a closer gap */
405
405
  .foot--joined { gap: var(--btn-trio-gap, var(--sp-3)); }
406
+ /* split (Foot split, Lh 2026-10-25): two Btns that ARE the card's foot — each half its width, edge to edge, flush with its bottom edge,
407
+ the card's bottom corners round them. No pill: no fill, no edge, no radius; the words in the ink of the ground they stand on (a `Btn warn`
408
+ keeps its warning, on that ground's side). A rule of --rule-w between the halves and over them (the band's own fill is the edge on bands).
409
+ Knob --foot-split-rule-ink. The finishes leave the halves flat (finish.css): the card carries the finish */
410
+ .foot.foot--split {
411
+ gap: 0;
412
+ align-items: stretch;
413
+ margin: 0 calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad));
414
+ padding: 0;
415
+ border-block-start: var(--rule-w) solid var(--foot-split-rule-ink, var(--hairline));
416
+ overflow: hidden;
417
+ border-end-start-radius: calc(var(--card-radius, var(--r-card)) - var(--border-w));
418
+ border-end-end-radius: calc(var(--card-radius, var(--r-card)) - var(--border-w));
419
+ }
420
+ :is(.card--bands, .card--bands > .card__face) > .foot.foot--split { padding: 0; border-block-start: 0; } /* the band's slim padding goes: the halves are the band */
421
+ .foot--split > .btn { --btn-bg: transparent; --btn-ink: var(--card-ink); flex: 1 1 0; min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
422
+ .foot--split > .btn--warn { --dark: inherit; }
423
+ .foot--split > .btn + .btn { border-inline-start: var(--rule-w) solid var(--foot-split-rule-ink, var(--hairline)); }
406
424
  /* what draws across the foot runs the card's FULL width (Lh 2026-10-25): a Rows or a lined Kv in a foot reaches the card's edges, so its
407
425
  rule meets them as the band seams do, and each of its rows takes the card's padding back (--card-pad, the body's own), so the words
408
426
  stand on the body's line. Every foot's content box is --card-pad in from the card's edges (the card's padding, or a band's, a sheet's,
package/dist/cardds.css CHANGED
@@ -4598,6 +4598,24 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
4598
4598
  .foot--round { justify-content: center; gap: var(--foot-gap, var(--sp-6)); }
4599
4599
  /* joined (Foot round joined): the round buttons linked by dots (the dots are BtnRow's, actions.css), a closer gap */
4600
4600
  .foot--joined { gap: var(--btn-trio-gap, var(--sp-3)); }
4601
+ /* split (Foot split, Lh 2026-10-25): two Btns that ARE the card's foot — each half its width, edge to edge, flush with its bottom edge,
4602
+ the card's bottom corners round them. No pill: no fill, no edge, no radius; the words in the ink of the ground they stand on (a `Btn warn`
4603
+ keeps its warning, on that ground's side). A rule of --rule-w between the halves and over them (the band's own fill is the edge on bands).
4604
+ Knob --foot-split-rule-ink. The finishes leave the halves flat (finish.css): the card carries the finish */
4605
+ .foot.foot--split {
4606
+ gap: 0;
4607
+ align-items: stretch;
4608
+ margin: 0 calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad));
4609
+ padding: 0;
4610
+ border-block-start: var(--rule-w) solid var(--foot-split-rule-ink, var(--hairline));
4611
+ overflow: hidden;
4612
+ border-end-start-radius: calc(var(--card-radius, var(--r-card)) - var(--border-w));
4613
+ border-end-end-radius: calc(var(--card-radius, var(--r-card)) - var(--border-w));
4614
+ }
4615
+ :is(.card--bands, .card--bands > .card__face) > .foot.foot--split { padding: 0; border-block-start: 0; } /* the band's slim padding goes: the halves are the band */
4616
+ .foot--split > .btn { --btn-bg: transparent; --btn-ink: var(--card-ink); flex: 1 1 0; min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
4617
+ .foot--split > .btn--warn { --dark: inherit; }
4618
+ .foot--split > .btn + .btn { border-inline-start: var(--rule-w) solid var(--foot-split-rule-ink, var(--hairline)); }
4601
4619
  /* what draws across the foot runs the card's FULL width (Lh 2026-10-25): a Rows or a lined Kv in a foot reaches the card's edges, so its
4602
4620
  rule meets them as the band seams do, and each of its rows takes the card's padding back (--card-pad, the body's own), so the words
4603
4621
  stand on the body's line. Every foot's content box is --card-pad in from the card's edges (the card's padding, or a band's, a sheet's,
@@ -6364,8 +6382,8 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
6364
6382
  0 0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 12%, transparent),
6365
6383
  0 0.5rem 1.25rem -0.25rem color-mix(in srgb, var(--_shade) 22%, transparent);
6366
6384
  --shadow-sheet: var(--finish-edge), var(--finish-ring),
6367
- 0 -0.0625rem 0.125rem color-mix(in srgb, var(--_shade) 6%, transparent),
6368
- 0 -0.75rem 2.5rem color-mix(in srgb, var(--_shade) 18%, transparent);
6385
+ 0 -0.0625rem 0.0625rem color-mix(in srgb, var(--_shade) 4%, transparent),
6386
+ 0 -0.5rem 2rem -0.25rem color-mix(in srgb, var(--_shade) 6%, transparent);
6369
6387
 
6370
6388
  /* a control: its lit edge and ring, no shadow behind it (Lh 2026-10-25), and the sheen that runs down its face */
6371
6389
  --finish-control: var(--finish-edge), var(--finish-ring);
@@ -6385,14 +6403,14 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
6385
6403
  [data-finish="lit"] .sheet-stack > .card,
6386
6404
  [data-finish="lit"] .sheet-stack > :not(.card, .sheet-stack__base) > .card { box-shadow: var(--shadow-sheet); }
6387
6405
 
6388
- /* ---- controls: a filled button stands up, and goes down under the finger ---- */
6389
- [data-finish="lit"] .btn:not(.btn--quiet),
6406
+ /* ---- controls: a filled button stands up, and goes down under the finger. The halves of a split foot (.foot--split > *) stay flat in every finish: the card carries it ---- */
6407
+ [data-finish="lit"] .btn:not(.btn--quiet, .foot--split > *),
6390
6408
  [data-finish="lit"] .icon-btn:not(.icon-btn-group > *, .stack-sheet__tab:not(.icon-btn--invert)) {
6391
6409
  background-image: var(--finish-sheen);
6392
6410
  box-shadow: var(--finish-control);
6393
6411
  }
6394
6412
  /* the main button: its lit edge only, no ring and no shadow behind it */
6395
- [data-finish="lit"] .btn--primary,
6413
+ [data-finish="lit"] .btn--primary:not(.foot--split > *),
6396
6414
  [data-finish="lit"] :is(.icon-btn--invert, .icon-btn--primary):not(.icon-btn-group > *) {
6397
6415
  box-shadow: var(--finish-edge);
6398
6416
  }
@@ -6401,7 +6419,7 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
6401
6419
  background-image: none;
6402
6420
  box-shadow: none;
6403
6421
  }
6404
- [data-finish="lit"] :is(.btn:not(.btn--quiet), .icon-btn:not(.icon-btn-group > *, .stack-sheet__tab:not(.icon-btn--invert))):active:not(:disabled) {
6422
+ [data-finish="lit"] :is(.btn:not(.btn--quiet, .foot--split > *), .icon-btn:not(.icon-btn-group > *, .stack-sheet__tab:not(.icon-btn--invert))):active:not(:disabled) {
6405
6423
  background-image: none;
6406
6424
  box-shadow: var(--finish-control-down);
6407
6425
  }
@@ -6440,13 +6458,13 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
6440
6458
  padding-bottom: var(--sp-2);
6441
6459
  border-bottom: var(--rule-w) dotted color-mix(in srgb, currentColor 45%, transparent);
6442
6460
  }
6443
- [data-finish="print"] :is(.btn, .chip) {
6461
+ [data-finish="print"] :is(.btn:not(.foot--split > *), .chip) {
6444
6462
  border-color: var(--_ink);
6445
6463
  box-shadow: 0.125rem 0.125rem 0 0 color-mix(in srgb, currentColor 35%, transparent);
6446
6464
  }
6447
6465
  [data-finish="print"] .chip { border-color: var(--chip-border, var(--_ink)); } /* a holder that clears a chip's edge (a note's chips) clears it in print too */
6448
- [data-finish="print"] .btn--primary { box-shadow: 0.125rem 0.125rem 0 0 color-mix(in srgb, var(--card-ink) 60%, transparent); }
6449
- [data-finish="print"] :is(.btn, .chip):active { box-shadow: none; translate: 0.125rem 0.125rem; }
6466
+ [data-finish="print"] .btn--primary:not(.foot--split > *) { box-shadow: 0.125rem 0.125rem 0 0 color-mix(in srgb, var(--card-ink) 60%, transparent); }
6467
+ [data-finish="print"] :is(.btn:not(.foot--split > *), .chip):active { box-shadow: none; translate: 0.125rem 0.125rem; }
6450
6468
  [data-finish="print"] .card--row > .lead { border-style: dashed; }
6451
6469
 
6452
6470
  /* ============================================================
@@ -6465,12 +6483,12 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
6465
6483
  [data-finish="sticker"] .card:not(.sheet, .modal, .card--away, .sheet-stack *, .card-list > *, .card-feed > *) { rotate: var(--sticker-tilt, 0.8deg); }
6466
6484
  [data-finish="sticker"] .card:not(.sheet, .modal, .card--away, .sheet-stack *, .card-list > *, .card-feed > *):nth-of-type(even) { rotate: calc(-1 * var(--sticker-tilt, 0.8deg)); }
6467
6485
  [data-finish="sticker"] .card-list { gap: var(--sp-5); }
6468
- [data-finish="sticker"] .btn {
6486
+ [data-finish="sticker"] .btn:not(.foot--split > *) {
6469
6487
  box-shadow: 0 0.1875rem 0 0 color-mix(in srgb, currentColor 30%, transparent);
6470
6488
  border-color: color-mix(in srgb, currentColor 25%, transparent);
6471
6489
  }
6472
- [data-finish="sticker"] .btn--primary { box-shadow: 0 0.1875rem 0 0 color-mix(in srgb, var(--btn-primary-bg, var(--accent)) 55%, var(--on-surface)); }
6473
- [data-finish="sticker"] .btn:active { box-shadow: none; translate: 0 0.1875rem; }
6490
+ [data-finish="sticker"] .btn--primary:not(.foot--split > *) { box-shadow: 0 0.1875rem 0 0 color-mix(in srgb, var(--btn-primary-bg, var(--accent)) 55%, var(--on-surface)); }
6491
+ [data-finish="sticker"] .btn:not(.foot--split > *):active { box-shadow: none; translate: 0 0.1875rem; }
6474
6492
  [data-finish="sticker"] .chip { box-shadow: 0 0 0 0.1875rem #fff; }
6475
6493
 
6476
6494
  /* ============================================================
@@ -6479,9 +6497,9 @@ button.calendar__label:focus-visible { outline: var(--focus); outline-offset: va
6479
6497
  ============================================================ */
6480
6498
  [data-finish="ink"] { --card-border: var(--on-surface); --action-border: var(--on-surface); --outline: currentColor; }
6481
6499
  [data-finish="ink"] .card { border: var(--ink-w, 0.15625rem) solid var(--on-surface); box-shadow: var(--ink-off, 0.3125rem) var(--ink-off, 0.3125rem) 0 0 var(--on-surface); }
6482
- [data-finish="ink"] :is(.btn, .chip, .icon-btn:not(.icon-btn-group > *)) { border: var(--ink-w, 0.15625rem) solid currentColor; box-shadow: 0.1875rem 0.1875rem 0 0 currentColor; }
6483
- [data-finish="ink"] .btn--warn { border-color: var(--btn-ink, var(--action-ink)); box-shadow: 0.1875rem 0.1875rem 0 0 var(--btn-ink, var(--action-ink)); } /* the edge stays the plain button's: only the words take the warning */
6484
- [data-finish="ink"] .btn--primary { border-color: var(--on-surface); box-shadow: 0.1875rem 0.1875rem 0 0 var(--on-surface); }
6500
+ [data-finish="ink"] :is(.btn:not(.foot--split > *), .chip, .icon-btn:not(.icon-btn-group > *)) { border: var(--ink-w, 0.15625rem) solid currentColor; box-shadow: 0.1875rem 0.1875rem 0 0 currentColor; }
6501
+ [data-finish="ink"] .btn--warn:not(.foot--split > *) { border-color: var(--btn-ink, var(--action-ink)); box-shadow: 0.1875rem 0.1875rem 0 0 var(--btn-ink, var(--action-ink)); } /* the edge stays the plain button's: only the words take the warning */
6502
+ [data-finish="ink"] .btn--primary:not(.foot--split > *) { border-color: var(--on-surface); box-shadow: 0.1875rem 0.1875rem 0 0 var(--on-surface); }
6485
6503
  [data-finish="ink"] .toggle { box-shadow: 0.125rem 0.125rem 0 0 var(--on-surface); }
6486
6504
  [data-finish="ink"] .card--row > .lead { border-width: var(--ink-w, 0.15625rem); }
6487
6505