@usableapp/cardds 0.7.169 → 0.7.171

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/docs/reference.md CHANGED
@@ -676,6 +676,12 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
676
676
  - **Wrap buttons** (`Foot wrap`, `BtnRow wrap`, Lh 2026-10-28): each `Btn` as wide as its words, with its own side
677
677
  padding (never narrowed), from the start, wrapping to a new line when they do not fit. `end` stands them at the
678
678
  foot's (the row's) end: `<Foot wrap end><Btn>Reply</Btn><Btn>Open the chat</Btn></Foot>` (stories `Foot · Wrap`, `BtnRow · Wrap`).
679
+ - **Button width: one long, the rest short** (Lh 2026-10-29). The full-width button (`Btn block`, `width: 100%`) is ONLY the last
680
+ button of the matter: the one move that finishes a flow or a screen (the `ActionBar`'s one wide `Btn tone="primary" block`, a
681
+ sheet's `Foot`). Every other button is short, in one of two forms: *hug the label* when it stands alone, centred
682
+ (`Btn form`: its words with wide sides, in the middle; or `Foot wrap` / `BtnRow wrap`, each as wide as its words from the start),
683
+ and *share by count* when several stand in one row (`Foot`, `BtnRow`: the buttons split the row in even parts by their number).
684
+ All three forms are the existing `Btn` / `Foot` / `BtnRow` API; a project sets none of them by hand.
679
685
  - **The member's own item: the foot split in half** (Lh 2026-10-25). On a card of something the member owns (their
680
686
  request, post, booking), the foot is `Foot split`: two halves that ARE the foot, each half the card's width, edge
681
687
  to edge and flush with its bottom edge (the card's corners round them), a `--rule-w` rule between them and over
@@ -759,6 +765,19 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
759
765
  extra unseen button, named by `pressLabel` (required), that carries the focus
760
766
  ring; no control is nested in another. It replaces the automatic rule above
761
767
  for that card. Not with `back` or `stack`. Story `Card · PressedWithControls`.
768
+ - **A card that folds to its head** (timebank, 2026-10-29): `Card folds`.
769
+ Folded, only the card's `Head` shows; a tap on the head (off a control in
770
+ it) opens the rest, the content and the `Foot`, and another folds it. It is
771
+ controlled like every stateful part: `open` + `onOpenChange`, or
772
+ `defaultOpen` (default folded). The rest opens and folds as a grid row
773
+ (the small `FeedCard`'s own fold, one rule); folded it is `inert`. The head
774
+ dims under the finger; a control in it keeps its own press. The keyboard and
775
+ a screen reader meet one unseen button after the head, named by the head's
776
+ words (or `openLabel`), with `aria-expanded`; it carries the card's focus
777
+ ring. A folding card is never pressed whole. Not on a `row`, `sm`, `stack`
778
+ or `paper="bands"` card, nor with `back` or `onPress` (it is ignored there,
779
+ with a warning). The card draws its own chevron down as the head's last
780
+ end (after the app's ends), turned up while open, as a `Banner`'s. Stories `Card · Folds`, `FoldsControlled`.
762
781
  - A page with **one feature and one CTA** (an install page, a single
763
782
  decision) may be contained in one card: head, the pitch, foot.
764
783
  - **A bottom sheet holds what the member acts on** — controls, or small
@@ -1473,7 +1492,10 @@ reads every value from a token in `css/tokens.css` (or a palette, a finish, a pr
1473
1492
  mark over the first line, a lower vowel under the last — in the em of the type it is read in (a font metric, so it follows the size). A
1474
1493
  line that clips its words (a head's title and meta cut by a line count, a top bar's title cut by an ellipsis) pads its box by them inside
1475
1494
  the clip and gives them back outside (`padding-block: var(--glyph-rise) var(--glyph-drop)` with the same negative margin), so no mark is
1476
- cut and nothing moves. A small icon set in a line of words (an End's arrow, a chip's icon in a head) is a letter of it: `vertical-align:
1495
+ cut and nothing moves. A box that SCROLLS clips whatever rises out of it, and a child's padding cannot reach past it: a scroller
1496
+ whose first line touches its top edge (a lone `Page` in a `Step`) pads its top by `--glyph-rise-room` (the rise at the display size,
1497
+ `calc(var(--fs-display) * 0.2)`, so it grows with a member's text size) and takes it back from its margin, so the words stand where
1498
+ they stood. A small icon set in a line of words (an End's arrow, a chip's icon in a head) is a letter of it: `vertical-align:
1477
1499
  middle`, its middle on the words' x-height middle, never a hand-set em offset.
1478
1500
 
1479
1501
  A knob's default is one of these too, so a knob read from nowhere still shows the theme. No value is written in place in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usableapp/cardds",
3
- "version": "0.7.169",
3
+ "version": "0.7.171",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "description": "card-first mobile design system, React-first: the components in src/ are thin wrappers over the CSS contract (css/*.css stays the only truth); gallery/ shows every story live (npm run dev).",