@usableapp/cardds 0.7.165 → 0.7.166
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/card.css +1 -1
- package/dist/cardds.css +1 -1
- package/dist/cards/FeedEnd.d.ts +2 -2
- package/dist/cards/FeedEnd.js +1 -1
- package/dist/catalog.json +1 -1
- package/docs/reference.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.166 — 2026-10-29
|
|
6
|
+
|
|
7
|
+
`FeedEnd art` is 30% of the feed's width.
|
|
8
|
+
|
|
9
|
+
Components: FeedEnd
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- **`FeedEnd art` width** (timebank, 2026-10-29): the app's picture stands centred in a box `--feed-end-art-w` wide, default 30% of the feed's width (before: `--feed-end-size`, 96). The drawn cat is unchanged (`--feed-end-size`). Before → after: `style` by hand to centre and size a Lottie → `<FeedEnd art={<MyLottie />} />`, nothing else. Story `CardFeed · EndArt`.
|
|
13
|
+
|
|
5
14
|
## 0.7.165 — 2026-10-29
|
|
6
15
|
|
|
7
16
|
A led line's round ends take their tap again; `FeedEnd art`.
|
package/css/card.css
CHANGED
|
@@ -318,7 +318,7 @@
|
|
|
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-
|
|
321
|
+
.feed-end__art { width: var(--feed-end-art-w, 30%); } /* the app's own picture: its box is the cat's box */
|
|
322
322
|
.feed-end__art > * { display: block; width: 100%; height: auto; }
|
|
323
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 */
|
|
324
324
|
@keyframes feed-end-wag { 0%, 100% { rotate: calc(var(--feed-end-wag, 14deg) * -1); } 50% { rotate: var(--feed-end-wag, 14deg); } }
|
package/dist/cardds.css
CHANGED
|
@@ -1341,7 +1341,7 @@ 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-
|
|
1344
|
+
.feed-end__art { width: var(--feed-end-art-w, 30%); } /* the app's own picture: its box is the cat's box */
|
|
1345
1345
|
.feed-end__art > * { display: block; width: 100%; height: auto; }
|
|
1346
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 */
|
|
1347
1347
|
@keyframes feed-end-wag { 0%, 100% { rotate: calc(var(--feed-end-wag, 14deg) * -1); } 50% { rotate: var(--feed-end-wag, 14deg); } }
|
package/dist/cards/FeedEnd.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ 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-
|
|
5
|
+
/** the app's own picture in place of the drawn cat (a Lottie player, an img, an svg): it is drawn centred in a box `--feed-end-art-w` wide (default 30% of the feed's width) and fills it; cardds plays nothing, the app's player does. Hidden from a screen reader — `children` or `label` names the end */
|
|
6
6
|
art?: ReactNode;
|
|
7
7
|
/** the cat's spoken name when there is no caption to read out */
|
|
8
8
|
label?: string;
|
|
@@ -10,5 +10,5 @@ export interface FeedEndProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
|
10
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
|
|
11
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
|
|
12
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
|
|
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
|
|
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 drawn cat's width) · `--feed-end-art-w` (the `art` box's width, 30%) · `--feed-end-ink` · `--feed-end-wag`. */
|
|
14
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. `art` swaps the drawn cat for the app's own picture (its Lottie, an image). Knobs `--feed-end-size` (the
|
|
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 drawn cat's width) · `--feed-end-art-w` (the `art` box's width, 30%) · `--feed-end-ink` · `--feed-end-wag`. */
|
|
8
8
|
export function FeedEnd({ children, label, art, className, ...rest }) {
|
|
9
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
|
}
|