@usableapp/cardds 0.7.132 → 0.7.134
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 +24 -0
- package/css/parts.css +28 -4
- package/dist/cardds.css +28 -4
- package/dist/catalog.json +1 -1
- package/dist/parts/Foot.d.ts +7 -4
- package/dist/parts/Foot.js +1 -1
- package/docs/reference.md +10 -5
- package/package.json +1 -1
package/dist/parts/Foot.d.ts
CHANGED
|
@@ -10,16 +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
|
|
16
|
-
*
|
|
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 */
|
|
17
20
|
split?: boolean;
|
|
18
21
|
}
|
|
19
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
|
|
20
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,
|
|
21
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
|
|
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
|
|
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
|
|
23
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
|
|
24
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`
|
|
25
28
|
* is not found. */
|
package/dist/parts/Foot.js
CHANGED
|
@@ -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,11 +589,16 @@ 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.
|
|
593
|
-
size="xs"` leading its word; right, the cancel /
|
|
594
|
-
|
|
595
|
-
size="xs"` leading (`<Foot split><
|
|
596
|
-
size="xs" /> Cancel request</
|
|
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. Two `Btn`s (`Btn warn` for the cancel) still work as the
|
|
599
|
+
halves (story `Foot · Split`): the label words then (knob `--foot-split-font-size`), one short word each. The foot's status
|
|
600
|
+
`Rows` follow the two halves in the same `Foot split` and stand under them, a rule between, the same row pitch
|
|
601
|
+
(`<Foot split><Link sm>…</Link><Link sm error>…</Link><Rows>…</Rows></Foot>`, story `Foot · SplitOverStatus`).
|
|
597
602
|
- A pick of a few WORDS (`BtnGroupItem`s) has two looks of its own. `look="strip"`: muted words on no
|
|
598
603
|
paper, the picked one filled — a tab strip, a day picker under a number. `look="choice"`: the words
|
|
599
604
|
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.
|
|
3
|
+
"version": "0.7.134",
|
|
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.",
|