@usableapp/cardds 0.7.156 → 0.7.157
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 +9 -0
- package/css/parts.css +28 -0
- package/dist/cardds.css +28 -0
- package/dist/catalog.json +1 -1
- package/dist/parts/Head.d.ts +1 -0
- package/dist/parts/Head.js +1 -0
- package/docs/reference.md +7 -0
- package/package.json +1 -1
package/dist/parts/Head.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface HeadProps extends ComponentProps<'div'> {
|
|
|
10
10
|
/**
|
|
11
11
|
* Head — the first row of a card, a sheet or a stack sheet: what this is, and the one thing beside it. Its children are, in order, an optional
|
|
12
12
|
* lead (a `Lead`, a `StackBack`, a `JourneyBadge`), the `Words` (the title takes the room, its meta under it), chips, and an end (an `IconBtn`, a `Chip`, an `End`).
|
|
13
|
+
* A `Lead`, an `Avatar` or an `AvatarStack` first, the `Words` next: the lead at the left, the title over its meta as one block beside it, the end at the right.
|
|
13
14
|
* Never put buttons here that finish the card: they go in the foot. A `Card` finds its `Head` by type, so a consumer's own component that wraps a `Head` is not found.
|
|
14
15
|
*/
|
|
15
16
|
export declare function Head({ top, centre, long, className, children, ...rest }: HeadProps): import("react").JSX.Element;
|
package/dist/parts/Head.js
CHANGED
|
@@ -26,6 +26,7 @@ function markTitle(node, tab, long) {
|
|
|
26
26
|
/**
|
|
27
27
|
* Head — the first row of a card, a sheet or a stack sheet: what this is, and the one thing beside it. Its children are, in order, an optional
|
|
28
28
|
* lead (a `Lead`, a `StackBack`, a `JourneyBadge`), the `Words` (the title takes the room, its meta under it), chips, and an end (an `IconBtn`, a `Chip`, an `End`).
|
|
29
|
+
* A `Lead`, an `Avatar` or an `AvatarStack` first, the `Words` next: the lead at the left, the title over its meta as one block beside it, the end at the right.
|
|
29
30
|
* Never put buttons here that finish the card: they go in the foot. A `Card` finds its `Head` by type, so a consumer's own component that wraps a `Head` is not found.
|
|
30
31
|
*/
|
|
31
32
|
export function Head({ top, centre, long, className, children, ...rest }) {
|
package/docs/reference.md
CHANGED
|
@@ -619,6 +619,13 @@ between at 40% down the screen (see *Anatomy*, "Where the centre is"):
|
|
|
619
619
|
face), which a stack sheet, a sheet and a page set for their heads. `top`
|
|
620
620
|
keeps a tall title's control at the top; `centre` is the stage sheet's
|
|
621
621
|
head, a round button · the title over its meta · a round button.
|
|
622
|
+
A head that LEADS with a person or a thing — a `Lead`, an `Avatar`, an `AvatarStack` (a `Stamp bare` in one)
|
|
623
|
+
as its first child, the `Words` next — draws as a FeedCard's head (Lh 2026-10-28): the lead at the left, beside
|
|
624
|
+
it ONE left-aligned block, the title at the card heading's size over its meta, and the end (`End caption`, an
|
|
625
|
+
`IconBtn` ⋯) at the right, centred to the block; with no end the block takes the room, with no meta the title is
|
|
626
|
+
centred to the lead. `--head-title-lines` cuts the title, `--head-meta-lines` the meta (default: not cut).
|
|
627
|
+
`<Head><AvatarStack><Stamp bare …/></AvatarStack><Words title meta /><End caption="5 min" /></Head>`
|
|
628
|
+
(story `Head · HeadLeadWords`). No `Row` inside the card for it.
|
|
622
629
|
- **Content**: whatever the card frames — rows, key-values, a gauge, a
|
|
623
630
|
paragraph. Frameless, per rule 9.
|
|
624
631
|
- **Foot** (`.foot`): the card's action buttons on one line. One
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.157",
|
|
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).",
|