@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.
@@ -10,11 +10,17 @@ 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
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) */
17
+ split?: boolean;
13
18
  }
14
19
  /** 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
15
20
  * 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,
16
21
  * 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
17
- * `primary` with a word, the others with icons): one centred group, a fixed gap between them. In a `Sheet` it stands on the box's bottom edge
22
+ * `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
23
+ * 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
18
24
  * 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`
19
25
  * is not found. */
20
- export declare function Foot({ link, round, joined, className, children, ...rest }: FootProps): import("react").JSX.Element;
26
+ export declare function Foot({ link, round, joined, split, className, children, ...rest }: FootProps): import("react").JSX.Element;
@@ -4,9 +4,10 @@ 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. In a `Sheet` it stands on the box's bottom edge
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
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
8
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`
9
10
  * is not found. */
10
- export function Foot({ link, round, joined, className, children, ...rest }) {
11
- return (_jsxs("div", { className: cx('foot', link != null && 'foot--link', round && 'foot--round', joined && 'foot--joined', className), ...rest, children: [joined ? joinDots(children) : children, link != null && _jsx("div", { className: "foot__link", children: link })] }));
11
+ export function Foot({ link, round, joined, split, className, children, ...rest }) {
12
+ return (_jsxs("div", { className: cx('foot', link != null && 'foot--link', round && 'foot--round', joined && 'foot--joined', split && 'foot--split', className), ...rest, children: [joined ? joinDots(children) : children, link != null && _jsx("div", { className: "foot__link", children: link })] }));
12
13
  }
package/docs/reference.md CHANGED
@@ -583,12 +583,15 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
583
583
  as `Btn form` does — in a foot, a `Page`, a `Centre` or a `CtaPack` — and
584
584
  with `form labelled` its `label` is SHOWN as words at its left, the two
585
585
  centred as one line (Lh 2026-10-10).
586
- - **The member's own item: Edit left, cancel right** (Lh 2026-10-25). On a card of something the member owns (their
587
- request, post, booking), the foot is the pair side by side on one line: Edit first, a `Btn` with an `Icon
588
- name="pencil" size="xs"` leading its word, then the cancel / withdraw action, a `Btn warn` (its words and icon in
589
- the warning ink, `--signal-warn`, knob `--btn-warn-ink`: a move to think twice about, not an error) with an `Icon
590
- name="x" size="xs"` leading (`<Foot><Btn><Icon name="pencil" size="xs" /> Edit</Btn><Btn warn><Icon name="x"
591
- size="xs" /> Cancel request</Btn></Foot>`, story `Btn · OwnItemFoot`).
586
+ - **The member's own item: the foot split in half** (Lh 2026-10-25). On a card of something the member owns (their
587
+ request, post, booking), the foot is `Foot split`: two halves that ARE the foot, each half the card's width, edge
588
+ to edge and flush with its bottom edge (the card's corners round them), a `--rule-w` rule between them and over
589
+ them (none over a `paper="bands"` foot band: its fill is the edge; knob `--foot-split-rule-ink`). No pill: no
590
+ fill, no edge, no radius, every finish leaves them flat. Left, Edit: a `Btn` with an `Icon name="pencil"
591
+ size="xs"` leading its word; right, the cancel / withdraw: a `Btn warn` (its words and icon in the warning ink,
592
+ `--signal-warn`, knob `--btn-warn-ink`: a move to think twice about, not an error) with an `Icon name="x"
593
+ size="xs"` leading (`<Foot split><Btn><Icon name="pencil" size="xs" /> Edit</Btn><Btn warn><Icon name="x"
594
+ size="xs" /> Cancel request</Btn></Foot>`, stories `Btn · OwnItemFoot`, `Foot · Split`).
592
595
  - A pick of a few WORDS (`BtnGroupItem`s) has two looks of its own. `look="strip"`: muted words on no
593
596
  paper, the picked one filled — a tab strip, a day picker under a number. `look="choice"`: the words
594
597
  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.127",
3
+ "version": "0.7.128",
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.",