@usableapp/cardds 0.7.127 → 0.7.129

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
@@ -55,7 +55,10 @@ import './theme.css'; // the project's own look, after the system's — see "A
55
55
  `viewport-fit=cover` = the app runs edge to edge under the phone's own bars; cardds publishes their room as
56
56
  `--safe-top` / `--safe-bottom` (from `env(safe-area-inset-*)`, 0 without cover) and keeps what the member reads or taps
57
57
  clear of them — the bottom bar's buttons, a sheet's peeked head, its foot and the end of its body, the float bar, the FAB,
58
- a stage's foot; a fill `Screen` starts under the status bar — while every ground still runs to the edge. A
58
+ a stage's foot; a fill `Screen` starts under the status bar — while every ground still runs to the edge. Over that
59
+ `--safe-top` room a fill `Screen` draws a solid fixed strip of its own ground (`--safe-top-bg`, default `--surface`; 0 tall
60
+ where `--safe-top` is 0): iOS 26 blurs the top of a home-screen web app with Liquid Glass, and an opaque fixed box there turns
61
+ the blur off, so a sheet's grab handle stays in sight. Nothing to add; it needs no transformed or filtered ancestor. A
59
62
  component of the app's own pinned to an edge reads the same two tokens. `interactive-widget=resizes-content` =
60
63
  Android shrinks the page for the keyboard (`--kb` stays 0 there; iOS publishes it).
61
64
 
@@ -583,12 +586,15 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
583
586
  as `Btn form` does — in a foot, a `Page`, a `Centre` or a `CtaPack` — and
584
587
  with `form labelled` its `label` is SHOWN as words at its left, the two
585
588
  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`).
589
+ - **The member's own item: the foot split in half** (Lh 2026-10-25). On a card of something the member owns (their
590
+ request, post, booking), the foot is `Foot split`: two halves that ARE the foot, each half the card's width, edge
591
+ to edge and flush with its bottom edge (the card's corners round them), a `--rule-w` rule between them and over
592
+ them (none over a `paper="bands"` foot band: its fill is the edge; knob `--foot-split-rule-ink`). No pill: no
593
+ fill, no edge, no radius, every finish leaves them flat. Left, Edit: a `Btn` with an `Icon name="pencil"
594
+ size="xs"` leading its word; right, the cancel / withdraw: a `Btn warn` (its words and icon in the warning ink,
595
+ `--signal-warn`, knob `--btn-warn-ink`: a move to think twice about, not an error) with an `Icon name="x"
596
+ size="xs"` leading (`<Foot split><Btn><Icon name="pencil" size="xs" /> Edit</Btn><Btn warn><Icon name="x"
597
+ size="xs" /> Cancel request</Btn></Foot>`, stories `Btn · OwnItemFoot`, `Foot · Split`).
592
598
  - A pick of a few WORDS (`BtnGroupItem`s) has two looks of its own. `look="strip"`: muted words on no
593
599
  paper, the picked one filled — a tab strip, a day picker under a number. `look="choice"`: the words
594
600
  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.129",
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.",