@usableapp/cardds 0.7.133 → 0.7.135

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.
@@ -10,17 +10,19 @@ export interface FootProps extends ComponentProps<'div'> {
10
10
  /** with `round`: a dotted link between each two buttons and a closer gap (was `BtnTrio`). Knobs `--btn-trio-gap`, `--btn-trio-dots-w`,
11
11
  * `--btn-trio-dots-h` */
12
12
  joined?: boolean;
13
- /** a foot SPLIT IN HALF: two `Btn`s that ARE the card's foot, each half its width, edge to edge and flush with the card's bottom edge (its
13
+ /** a foot SPLIT IN HALF: two small `Link sm`s (or two `Btn`s) that ARE the card's foot, each half its width, edge to edge and flush with the card's bottom edge (its
14
14
  * corners round them), a thin rule between them and over them (none over a `paper="bands"` foot band, whose fill is its edge). No pill: no
15
- * fill, no edge, no radius, the words centred in the ground's ink; a `Btn warn` keeps its warning ink. Knob `--foot-split-rule-ink`.
16
- * The member's own item: Edit left, the cancel right (Lh 2026-10-25). The halves are a strip at a status row's height with small words
17
- * (knob `--foot-split-font-size`); status `Rows` may follow the two `Btn`s in the same foot and stand under them, a rule between */
15
+ * fill, no edge, no radius, the words centred; a `Link sm` keeps its small size and ink (`error` its red), fills its half (the whole half is
16
+ * the tap target) and never wraps; a `Btn warn` keeps its warning ink. Knob `--foot-split-rule-ink`.
17
+ * The member's own item: `<Link sm><Icon name="pencil" size="xs" /> Edit</Link>` left, `<Link sm error><Icon name="x" size="xs" />
18
+ * Cancel request</Link>` right (Lh 2026-10-25). The halves are a strip at a status row's height with small words
19
+ * (knob `--foot-split-font-size`, the Btns'); status `Rows` may follow the two halves in the same foot and stand under them, a rule between */
18
20
  split?: boolean;
19
21
  }
20
22
  /** Foot — the last row of a card, a sheet or a stack sheet: what the member can do next, its buttons on one line. One takes the width, up to
21
23
  * four share it evenly. Btns only in the row; a small link goes in `link`, under it. A `Btn form` keeps its own size here: as wide as its words,
22
24
  * centred — for a foot whose one button should not fill the card. With `round` it is the foot of a few round `IconBtn`s (`size="xl"`, one
23
- * `primary` with a word, the others with icons): one centred group, a fixed gap between them. With `split` it is two `Btn`s that are the
25
+ * `primary` with a word, the others with icons): one centred group, a fixed gap between them. With `split` it is two small `Link`s (or `Btn`s) that are the
24
26
  * card's foot, each half its width, edge to edge on its bottom edge, a rule between (the member's own item: Edit · Cancel). In a `Sheet` it stands on the box's bottom edge
25
27
  * at every state. A `Card` finds its `Foot` by type (a turning card draws it on both faces), so a consumer's own component that wraps a `Foot`
26
28
  * is not found. */
@@ -4,7 +4,7 @@ import { joinDots } from '../actions/joined.js';
4
4
  /** Foot — the last row of a card, a sheet or a stack sheet: what the member can do next, its buttons on one line. One takes the width, up to
5
5
  * four share it evenly. Btns only in the row; a small link goes in `link`, under it. A `Btn form` keeps its own size here: as wide as its words,
6
6
  * centred — for a foot whose one button should not fill the card. With `round` it is the foot of a few round `IconBtn`s (`size="xl"`, one
7
- * `primary` with a word, the others with icons): one centred group, a fixed gap between them. With `split` it is two `Btn`s that are the
7
+ * `primary` with a word, the others with icons): one centred group, a fixed gap between them. With `split` it is two small `Link`s (or `Btn`s) that are the
8
8
  * card's foot, each half its width, edge to edge on its bottom edge, a rule between (the member's own item: Edit · Cancel). In a `Sheet` it stands on the box's bottom edge
9
9
  * at every state. A `Card` finds its `Foot` by type (a turning card draws it on both faces), so a consumer's own component that wraps a `Foot`
10
10
  * is not found. */
package/docs/reference.md CHANGED
@@ -589,14 +589,17 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
589
589
  request, post, booking), the foot is `Foot split`: two halves that ARE the foot, each half the card's width, edge
590
590
  to edge and flush with its bottom edge (the card's corners round them), a `--rule-w` rule between them and over
591
591
  them (none over a `paper="bands"` foot band: its fill is the edge; knob `--foot-split-rule-ink`). No pill: no
592
- fill, no edge, no radius, every finish leaves them flat. Left, Edit: a `Btn` with an `Icon name="pencil"
593
- size="xs"` leading its word; right, the cancel / withdraw: a `Btn warn` (its words and icon in the warning ink,
594
- `--signal-warn`, knob `--btn-warn-ink`: a move to think twice about, not an error) with an `Icon name="x"
595
- size="xs"` leading (`<Foot split><Btn><Icon name="pencil" size="xs" /> Edit</Btn><Btn warn><Icon name="x"
596
- size="xs" /> Cancel</Btn></Foot>`, stories `Btn · OwnItemFoot`, `Foot · Split`). The halves are a STRIP, not a button row:
597
- a status row's height and the small label words (knob `--foot-split-font-size`), one short word each. The foot's status
598
- `Rows` follow the two `Btn`s in the same `Foot split` and stand under them, a rule between, the same row pitch
599
- (`<Foot split><Btn>…</Btn><Btn warn>…</Btn><Rows>…</Rows></Foot>`, story `Foot · SplitOverStatus`).
592
+ fill, no edge, no radius, every finish leaves them flat. The halves are two SMALL LINKS (Lh 2026-10-25: Btns read
593
+ too big): left, Edit: a `Link sm` with an `Icon name="pencil" size="xs"` leading its word; right, the cancel /
594
+ withdraw: a `Link sm error` (its words and icon in the error ink, `--signal-error`, knob `--link-error-ink`) with an
595
+ `Icon name="x" size="xs"` leading (`<Foot split><Link sm><Icon name="pencil" size="xs" /> Edit</Link><Link sm
596
+ error><Icon name="x" size="xs" /> Cancel request</Link></Foot>`, stories `Btn · OwnItemFoot`, `Foot · SplitLinks`).
597
+ Each link fills its half (the whole half is the tap target, a status row's height, at least `--tap`), its icon and
598
+ words centred at the link's small size, never wrapped. An `Icon` in any `Link` is the link's text size (`1em`, knob `--link-icon-size`),
599
+ whatever its `size`: `size="xs"` may stay or go. Two `Btn`s (`Btn warn` for the cancel) still work as the
600
+ halves (story `Foot · Split`): the label words then (knob `--foot-split-font-size`), one short word each. The foot's status
601
+ `Rows` follow the two halves in the same `Foot split` and stand under them, a rule between, the same row pitch
602
+ (`<Foot split><Link sm>…</Link><Link sm error>…</Link><Rows>…</Rows></Foot>`, story `Foot · SplitOverStatus`).
600
603
  - A pick of a few WORDS (`BtnGroupItem`s) has two looks of its own. `look="strip"`: muted words on no
601
604
  paper, the picked one filled — a tab strip, a day picker under a number. `look="choice"`: the words
602
605
  JOINED in one frame like the icon frame — the button's paper and edge, a full tap tall, the words sharing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usableapp/cardds",
3
- "version": "0.7.133",
3
+ "version": "0.7.135",
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), tests/ measures the geometry.",