@usableapp/cardds 0.7.164 → 0.7.165
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 +12 -0
- package/css/card.css +2 -0
- package/css/parts.css +1 -1
- package/dist/cardds.css +3 -1
- package/dist/cards/FeedEnd.d.ts +4 -2
- package/dist/cards/FeedEnd.js +3 -3
- package/dist/catalog.json +1 -1
- package/docs/reference.md +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
> For: a project that consumes `@usableapp/cardds` and its AI — what changed between versions, written as before → after, so a screen can be brought up to date without reading the source. Newest first. A consumer never edits cardds; if something here leaves you without a way to do what you did before, report the gap. Each release section after 0.7.97 carries one `Components:` line, written by `node scripts/components-changed.mjs <previous tag>`: the components the release changed, or `all` when a file changed that any component can read (a token, the build), or `none`; check only the screens that import those.
|
|
4
4
|
|
|
5
|
+
## 0.7.165 — 2026-10-29
|
|
6
|
+
|
|
7
|
+
A led line's round ends take their tap again; `FeedEnd art`.
|
|
8
|
+
|
|
9
|
+
Components: Card, Head, Row, LinkBlock, FeedEnd
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- **A Head's (or row's) ends under a lead were visible but not pressable** (timebank, 2026-10-29): in a led line (lead + words + ends, 0.7.161) the title and meta run under the ends at full width, and their `clip-path` painted them over the unpositioned `.line-ends`, so a tap on ✕ or a flag landed on the words. The ends now stand above the words. Look unchanged. Story `Card · HeadLeadEndsPressable` (shows which end was pressed).
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **`FeedEnd art`** (timebank, 2026-10-29): the app's own picture in place of the drawn cat — a Lottie player, an `<img>`, an `<svg>` — in a box `--feed-end-size` wide (default 96); cardds plays nothing, the app's player does; hidden from a screen reader. Before → after: only the drawn cat → `<FeedEnd art={<MyLottie />}>That is all</FeedEnd>`; `<CardFeed end={<FeedEnd art={…}>…</FeedEnd>}>`. Story `CardFeed · EndArt`.
|
|
16
|
+
|
|
5
17
|
## 0.7.164 — 2026-10-29
|
|
6
18
|
|
|
7
19
|
`FeedEnd` (the end of a feed), `Card onPress` (a card pressed whole with links and buttons inside), `AppBar lead`.
|
package/css/card.css
CHANGED
|
@@ -318,6 +318,8 @@
|
|
|
318
318
|
/* FeedEnd (Lh 2026-10-29): the end of a feed — a drawn cat, its tail wagging, and a caption. Quiet: the ground's muted ink. */
|
|
319
319
|
.feed-end { display: grid; justify-items: center; gap: var(--sp-2); padding-block: var(--sp-4); color: var(--feed-end-ink, var(--on-surface-muted)); text-align: center; }
|
|
320
320
|
.feed-end__cat { width: var(--feed-end-size, var(--stamp)); height: auto; }
|
|
321
|
+
.feed-end__art { width: var(--feed-end-size, var(--stamp)); } /* the app's own picture: its box is the cat's box */
|
|
322
|
+
.feed-end__art > * { display: block; width: 100%; height: auto; }
|
|
321
323
|
.feed-end__tail { transform-box: view-box; transform-origin: 59.4% 84.7%; } /* the tail's root (57, 61) on the 96 × 72 drawing */
|
|
322
324
|
@keyframes feed-end-wag { 0%, 100% { rotate: calc(var(--feed-end-wag, 14deg) * -1); } 50% { rotate: var(--feed-end-wag, 14deg); } }
|
|
323
325
|
@media (prefers-reduced-motion: no-preference) { .feed-end__tail { animation: feed-end-wag var(--motion-wag) var(--ease-in-out) infinite; } }
|
package/css/parts.css
CHANGED
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
.head:has(> .line-ends):not(:has(> .words__flow > .words__meta)) { grid-template-rows: [lead] auto [top] auto [top-end] auto [lead-end]; }
|
|
223
223
|
:is(.head, .link-block > .row):has(> .line-ends) > :first-child { grid-column: 1; grid-row: lead / lead-end; margin-inline-end: var(--_led-col-gap); }
|
|
224
224
|
:is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) { grid-column: 2 / -1; grid-row: top / top-end; align-self: first baseline; display: block; min-width: 0; }
|
|
225
|
-
:is(.head, .link-block > .row):has(> .line-ends) > .line-ends { grid-column: 3; grid-row: top / top-end; align-self: first baseline; display: flex; align-items: center; padding-inline-start: var(--_led-col-gap); }
|
|
225
|
+
:is(.head, .link-block > .row):has(> .line-ends) > .line-ends { grid-column: 3; position: relative; z-index: 1; grid-row: top / top-end; align-self: first baseline; display: flex; align-items: center; padding-inline-start: var(--_led-col-gap); }
|
|
226
226
|
:is(.head, .link-block > .row):has(> .line-ends) > .line-ends::before { content: ""; flex: none; width: 0; height: 1ex; font: var(--_led-title-font); }
|
|
227
227
|
:is(.head, .link-block > .row):has(> .line-ends) > :is(.line-ends, .words__flow > .words__room, .words > .words__room) > * { flex: none; }
|
|
228
228
|
:is(.head, .link-block > .row):has(> .line-ends) > :is(.line-ends, .words__flow > .words__room, .words > .words__room) > * + * { margin-inline-start: var(--_led-col-gap); }
|
package/dist/cardds.css
CHANGED
|
@@ -1341,6 +1341,8 @@ button:enabled { cursor: pointer; } /* a disabled one keeps the arrow */
|
|
|
1341
1341
|
/* FeedEnd (Lh 2026-10-29): the end of a feed — a drawn cat, its tail wagging, and a caption. Quiet: the ground's muted ink. */
|
|
1342
1342
|
.feed-end { display: grid; justify-items: center; gap: var(--sp-2); padding-block: var(--sp-4); color: var(--feed-end-ink, var(--on-surface-muted)); text-align: center; }
|
|
1343
1343
|
.feed-end__cat { width: var(--feed-end-size, var(--stamp)); height: auto; }
|
|
1344
|
+
.feed-end__art { width: var(--feed-end-size, var(--stamp)); } /* the app's own picture: its box is the cat's box */
|
|
1345
|
+
.feed-end__art > * { display: block; width: 100%; height: auto; }
|
|
1344
1346
|
.feed-end__tail { transform-box: view-box; transform-origin: 59.4% 84.7%; } /* the tail's root (57, 61) on the 96 × 72 drawing */
|
|
1345
1347
|
@keyframes feed-end-wag { 0%, 100% { rotate: calc(var(--feed-end-wag, 14deg) * -1); } 50% { rotate: var(--feed-end-wag, 14deg); } }
|
|
1346
1348
|
@media (prefers-reduced-motion: no-preference) { .feed-end__tail { animation: feed-end-wag var(--motion-wag) var(--ease-in-out) infinite; } }
|
|
@@ -4748,7 +4750,7 @@ a.bubble { color: inherit; text-decoration: none; }
|
|
|
4748
4750
|
.head:has(> .line-ends):not(:has(> .words__flow > .words__meta)) { grid-template-rows: [lead] auto [top] auto [top-end] auto [lead-end]; }
|
|
4749
4751
|
:is(.head, .link-block > .row):has(> .line-ends) > :first-child { grid-column: 1; grid-row: lead / lead-end; margin-inline-end: var(--_led-col-gap); }
|
|
4750
4752
|
:is(.head, .link-block > .row):has(> .line-ends) > :is(.words__flow, .words) { grid-column: 2 / -1; grid-row: top / top-end; align-self: first baseline; display: block; min-width: 0; }
|
|
4751
|
-
:is(.head, .link-block > .row):has(> .line-ends) > .line-ends { grid-column: 3; grid-row: top / top-end; align-self: first baseline; display: flex; align-items: center; padding-inline-start: var(--_led-col-gap); }
|
|
4753
|
+
:is(.head, .link-block > .row):has(> .line-ends) > .line-ends { grid-column: 3; position: relative; z-index: 1; grid-row: top / top-end; align-self: first baseline; display: flex; align-items: center; padding-inline-start: var(--_led-col-gap); }
|
|
4752
4754
|
:is(.head, .link-block > .row):has(> .line-ends) > .line-ends::before { content: ""; flex: none; width: 0; height: 1ex; font: var(--_led-title-font); }
|
|
4753
4755
|
:is(.head, .link-block > .row):has(> .line-ends) > :is(.line-ends, .words__flow > .words__room, .words > .words__room) > * { flex: none; }
|
|
4754
4756
|
:is(.head, .link-block > .row):has(> .line-ends) > :is(.line-ends, .words__flow > .words__room, .words > .words__room) > * + * { margin-inline-start: var(--_led-col-gap); }
|
package/dist/cards/FeedEnd.d.ts
CHANGED
|
@@ -2,11 +2,13 @@ import type { ComponentProps, ReactNode } from 'react';
|
|
|
2
2
|
export interface FeedEndProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
3
3
|
/** the one line under the cat, in the app's own words ("you've seen it all") — omit it for the cat alone */
|
|
4
4
|
children?: ReactNode;
|
|
5
|
+
/** the app's own picture in place of the drawn cat (a Lottie player, an img, an svg): it is drawn in a box `--feed-end-size` wide and fills it; cardds plays nothing, the app's player does. Hidden from a screen reader — `children` or `label` names the end */
|
|
6
|
+
art?: ReactNode;
|
|
5
7
|
/** the cat's spoken name when there is no caption to read out */
|
|
6
8
|
label?: string;
|
|
7
9
|
}
|
|
8
10
|
/** FeedEnd — "this is the end of the feed": a small drawn cat sitting with its tail wagging, quiet (the muted ink of the ground), and an optional
|
|
9
11
|
* one-line caption under it. Stands under the LAST card of a scrolling feed: pass it as a `CardFeed`'s `end` (the feed then asks for no more), or put it
|
|
10
12
|
* after the cards yourself. It keeps the card's width and centres, so a short feed ends on it as a long one does. The tail wags forever; under
|
|
11
|
-
* reduced motion the cat sits still. Knobs `--feed-end-size` · `--feed-end-ink` · `--feed-end-wag`. */
|
|
12
|
-
export declare function FeedEnd({ children, label, className, ...rest }: FeedEndProps): import("react").JSX.Element;
|
|
13
|
+
* reduced motion the cat sits still. `art` swaps the drawn cat for the app's own picture (its Lottie, an image). Knobs `--feed-end-size` (the picture's width, drawn or `art`) · `--feed-end-ink` · `--feed-end-wag`. */
|
|
14
|
+
export declare function FeedEnd({ children, label, art, className, ...rest }: FeedEndProps): import("react").JSX.Element;
|
package/dist/cards/FeedEnd.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Text } from '../type/Text.js';
|
|
|
4
4
|
/** FeedEnd — "this is the end of the feed": a small drawn cat sitting with its tail wagging, quiet (the muted ink of the ground), and an optional
|
|
5
5
|
* one-line caption under it. Stands under the LAST card of a scrolling feed: pass it as a `CardFeed`'s `end` (the feed then asks for no more), or put it
|
|
6
6
|
* after the cards yourself. It keeps the card's width and centres, so a short feed ends on it as a long one does. The tail wags forever; under
|
|
7
|
-
* reduced motion the cat sits still. Knobs `--feed-end-size` · `--feed-end-ink` · `--feed-end-wag`. */
|
|
8
|
-
export function FeedEnd({ children, label, className, ...rest }) {
|
|
9
|
-
return (_jsxs("div", { className: cx('feed-end', className), role: "note", "aria-label": children == null ? label : undefined, ...rest, children: [_jsxs("svg", { className: "feed-end__cat", viewBox: "0 0 96 72", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("path", { className: "feed-end__tail", d: "M57 61C70 61 74 52 72 40" }), _jsx("path", { d: "M30 65C21 65 19 52 23 43C26 36 31 33 36 33C46 33 55 40 57 50C59 59 56 65 50 65Z" }), _jsx("path", { d: "M23 23C23 15 28 12 34 12C40 12 45 15 45 23C45 30 40 34 34 34C28 34 23 30 23 23Z" }), _jsx("path", { d: "M25 16L24 5L32 12M43 16L44 5L36 12M30 22V24M38 22V24M32 28H36" })] }), children != null && _jsx(Text, { level: "caption", muted: true, as: "p", children: children })] }));
|
|
7
|
+
* reduced motion the cat sits still. `art` swaps the drawn cat for the app's own picture (its Lottie, an image). Knobs `--feed-end-size` (the picture's width, drawn or `art`) · `--feed-end-ink` · `--feed-end-wag`. */
|
|
8
|
+
export function FeedEnd({ children, label, art, className, ...rest }) {
|
|
9
|
+
return (_jsxs("div", { className: cx('feed-end', className), role: "note", "aria-label": children == null ? label : undefined, ...rest, children: [art != null ? _jsx("div", { className: "feed-end__art", "aria-hidden": "true", children: art }) : _jsxs("svg", { className: "feed-end__cat", viewBox: "0 0 96 72", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("path", { className: "feed-end__tail", d: "M57 61C70 61 74 52 72 40" }), _jsx("path", { d: "M30 65C21 65 19 52 23 43C26 36 31 33 36 33C46 33 55 40 57 50C59 59 56 65 50 65Z" }), _jsx("path", { d: "M23 23C23 15 28 12 34 12C40 12 45 15 45 23C45 30 40 34 34 34C28 34 23 30 23 23Z" }), _jsx("path", { d: "M25 16L24 5L32 12M43 16L44 5L36 12M30 22V24M38 22V24M32 28H36" })] }), children != null && _jsx(Text, { level: "caption", muted: true, as: "p", children: children })] }));
|
|
10
10
|
}
|