@cloudgrid-io/ui 0.67.0 → 0.69.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"home-pinned.d.ts","sourceRoot":"","sources":["../../src/blocks/home-pinned.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAO5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoGG;AAEH,sCAAsC;AACtC,MAAM,MAAM,YAAY,GAAG;IACzB,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAA;IACV,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,4EAA4E;AAC5E,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,wBAAwB;IACxB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAA;CACxB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,MAAM,CAAA;AAanC,iGAAiG;AACjG,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,CAE/D;AAwMD,iBAAS,eAAe,CAAC,EACvB,KAAK,EACL,OAAO,EACP,MAAM,EACN,aAAa,EACb,UAA6B,EAC7B,UAAo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Ac,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC/D,MAAM,EAAE,SAAS,YAAY,EAAE,CAAA;IAC/B,MAAM,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACzC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACtC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACrC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC,qBAWA;AAED,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,CAAA"}
@@ -1,39 +1,118 @@
1
1
  "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import { cn } from "../lib/cloudgrid-cn.js";
5
5
  import { BentoCard } from "./bento-card.js";
6
6
  import { EntityKindBadge } from "./entity-card.js";
7
- import { ChevronRightIcon, OpenLiveIcon, PinFilledIcon, PinIcon, UnpinIcon } from "./icons.js";
7
+ import { CardViewsIcon, ChevronLeftIcon, ChevronRightIcon, OpenLiveIcon, PinFilledIcon, PinIcon, UnpinIcon } from "./icons.js";
8
8
  import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip.js";
9
9
  import { useBand } from "../lib/fit.js";
10
+ import { FadeInPicture, PICTURE_FADE } from "../lib/fade-in-picture.js";
10
11
  import { PictureOverIdentity, THUMBNAIL_WITH_IDENTITY, ThumbnailIdentity } from "../lib/thumbnail-identity.js";
11
12
  import { TouchHover } from "../lib/touch-hover.js";
12
13
  /**
13
- * The least width of Pinned (its row and the pager) that shows three a page
14
- * (ui#559), in px at a 16px root: three pictures of 118 (6, the 24 arrow, 12,
15
- * the 70 chip, 6), two 8 gaps, and the 24 pager with its 8. It is measured with
16
- * the pager in, whether or not it shows, so showing it never changes the count.
14
+ * The least width of Pinned (its row and the pager) that shows four a page
15
+ * (ui#591), in px at a 16px root: four cards of 122 (a picture of 118: 6, the
16
+ * 24 arrow, 12, the 70 chip, 6; in its 2 of frame a side), three 12 gaps, and
17
+ * the 24 pager with its 8. It is measured with the pager in, whether or not it
18
+ * shows, so showing it never changes the count.
17
19
  */
18
- export const PINNED_THREE_MIN = 402;
19
- /** Three a page, where they fit. */
20
- const PINNED_THREE_PER_PAGE = 3;
20
+ export const PINNED_FOUR_MIN = 556;
21
+ /**
22
+ * The least width of Pinned that shows three a page (ui#559): three cards of
23
+ * 122, two 12 gaps and the pager, measured as `PINNED_FOUR_MIN` is. Narrower,
24
+ * two (a phone).
25
+ */
26
+ export const PINNED_THREE_MIN = 422;
27
+ /** Four a page, where they fit (ui#591). */
28
+ const PINNED_FOUR_PER_PAGE = 4;
21
29
  /**
22
30
  * The row, in CSS on Pinned's own width, so the server's page is the painted
23
- * one: three columns; under 25.125rem (`PINNED_THREE_MIN` / 16) two, and the
24
- * third of a server's page of three hidden until the script pages two at a time.
31
+ * one: four columns 12 apart; under 34.75rem (`PINNED_FOUR_MIN` / 16) three and
32
+ * the fourth of a server's page hidden; under 26.375rem (`PINNED_THREE_MIN` /
33
+ * 16) two and the third hidden too, until the script pages by what shows.
34
+ */
35
+ const PINNED_COLUMNS = "m-0 grid min-w-0 flex-1 list-none grid-cols-4 gap-3 @max-[34.75rem]/pinned:grid-cols-3 @max-[34.75rem]/pinned:[&>li:nth-child(n+4)]:hidden @max-[26.375rem]/pinned:grid-cols-2 @max-[26.375rem]/pinned:[&>li:nth-child(n+3)]:hidden p-0";
36
+ /** The narrower counts a page can show, widest first, and where each stops (ui#591). */
37
+ const PINNED_NARROWER = [3, 2];
38
+ /**
39
+ * Where Pinned's arrows are, `count` pinned on `page` (from 0) at `perPage` a
40
+ * page (ui#587): the previous arrow once the row has moved, the next arrow
41
+ * while a later page has something. No wrap around: `page` past the last is
42
+ * the last (a list that shrank shows its last page), before the first the
43
+ * first. Before the script has measured, the CSS shows fewer of a page than
44
+ * `perPage` where Pinned is narrower (three or two of the server's four;
45
+ * ui#559, ui#591), so one those columns leave behind needs the next arrow
46
+ * there and only there: `nextNarrowOnly` is the most a page shows where it is
47
+ * needed (3: under the four line; 2: under the three line), or false.
25
48
  */
26
- const PINNED_COLUMNS = "m-0 grid min-w-0 flex-1 list-none grid-cols-3 @max-[25.125rem]/pinned:grid-cols-2 @max-[25.125rem]/pinned:[&>li:nth-child(n+3)]:hidden p-0";
49
+ export function pinnedPager(count, page, perPage) {
50
+ const pages = Math.max(1, Math.ceil(count / perPage));
51
+ const current = Math.min(Math.max(0, page), pages - 1);
52
+ const start = current * perPage;
53
+ const later = count > start + perPage;
54
+ const narrow = later ? undefined : PINNED_NARROWER.find((n) => n < perPage && count > start + n);
55
+ return { page: current, pages, prev: current > 0, next: later || narrow !== undefined, nextNarrowOnly: narrow ?? false };
56
+ }
27
57
  /** How many pinned creations a page shows at `width` px of Pinned, the root font at `rem` px. */
28
58
  export function pinnedPerPage(width, rem) {
59
+ if (width >= (PINNED_FOUR_MIN / 16) * rem)
60
+ return 4;
29
61
  return width >= (PINNED_THREE_MIN / 16) * rem ? 3 : 2;
30
62
  }
31
- /** A pinned picture's box: 216 by 98 at radius 8, on `bg-raised` until the picture paints. */
32
- const PINNED_THUMBNAIL = "relative block aspect-[216/98] w-full overflow-hidden rounded-xs bg-raised";
63
+ /**
64
+ * A pinned card's box (ui#591), the Home card's: a 12 corner, a 1 line, a 1
65
+ * pad inside it so the picture never paints over the line. Its height is the
66
+ * row's, so a card and a slot beside it are one size. The line's colour is the
67
+ * caller's: the card's hairline, a slot's clear.
68
+ */
69
+ const PINNED_FRAME = "grid h-full w-full min-w-0 content-start rounded-md border p-px";
70
+ /** A pinned card: the frame, its hairline, the card's ground. */
71
+ const PINNED_CARD = `${PINNED_FRAME} border-hairline bg-card`;
72
+ /** A pinned picture's box: the Home card's 159/92, its top corners at 11, on `bg-raised` until the picture paints. */
73
+ const PINNED_THUMBNAIL = "relative block aspect-[159/92] w-full overflow-hidden rounded-t-[calc(var(--cg-radius-md)-1px)] bg-raised";
74
+ /**
75
+ * Under the picture, 62 tall whatever it holds: the name line, 4, the byline.
76
+ * At two a page (a phone) the name line alone, 42 (Asaf, 2026-11-24). A slot's
77
+ * label sits in the same block.
78
+ */
79
+ const PINNED_TEXT = "flex h-15.5 min-w-0 flex-col gap-1 px-3 pt-2.5 pb-3 @max-[26.375rem]/pinned:h-10.5";
80
+ /**
81
+ * At two a page (Pinned under `PINNED_THREE_MIN`, a phone) a card shows the
82
+ * name only: the byline and the type mark are hidden, so the name has the
83
+ * line (Asaf, 2026-11-24). CSS on Pinned's own width, as the columns are.
84
+ */
85
+ const PINNED_WIDE_ONLY = "@max-[26.375rem]/pinned:hidden";
86
+ /**
87
+ * The Unpin chip at two a page (Asaf, 2026-11-24): the glyph alone in a 24
88
+ * white circle, the live arrow's size and look, so on a phone's narrow picture
89
+ * the two sit apart. The word stays for a screen reader.
90
+ */
91
+ const PINNED_CHIP_PHONE = "@max-[26.375rem]/pinned:size-6 @max-[26.375rem]/pinned:justify-center @max-[26.375rem]/pinned:px-0";
92
+ /** The views count gives way as the chip arrives: on hover, focus within, the first tap (ui#591). */
93
+ const PINNED_VIEWS_YIELD = "transition-opacity duration-(--cg-duration) ease-out group-hover/pin:opacity-0 group-focus-within/pin:opacity-0 group-data-[touch-hover]/pin:opacity-0 motion-reduce:transition-none";
94
+ /** A views count as the Home card draws it: short on the picture (180, 1.2K), whole for a reader. */
95
+ const VIEWS_SHORT = new Intl.NumberFormat("en-US", { notation: "compact", maximumFractionDigits: 1 });
96
+ const VIEWS_WHOLE = new Intl.NumberFormat("en-US");
97
+ /**
98
+ * The views count on a pinned picture (ui#591): the Home card's pill, on one
99
+ * line. Its colours are `:root`-only values, as the pill's are: it is on a
100
+ * picture, and a picture does not flip. A click on it is a click on the card.
101
+ */
102
+ function PinnedViews({ views }) {
103
+ return (_jsxs("span", { "data-slot": "pinned-views", className: cn("pointer-events-none absolute top-1.5 right-1.5 inline-flex h-5 items-center gap-1 rounded-xs px-1.5", "bg-(--cg-neutral-0)/85 backdrop-blur-[1.5px] shadow-mark", "text-caption leading-none text-on-accent tabular-nums", PINNED_VIEWS_YIELD), children: [_jsx(CardViewsIcon, { className: "size-3 shrink-0 text-steel" }), _jsx("span", { "aria-hidden": "true", children: VIEWS_SHORT.format(views) }), _jsx("span", { className: "sr-only", children: `${VIEWS_WHOLE.format(views)} ${views === 1 ? "view" : "views"}` })] }));
104
+ }
33
105
  /** The picture dims a little on hover and after the first tap (ui#559). */
34
106
  const PINNED_DIM = "transition-[filter] duration-(--cg-duration) ease-out group-hover/pin:brightness-90 group-data-[touch-hover]/pin:brightness-90 motion-reduce:transition-none";
107
+ /**
108
+ * A pinned picture's two motions in one transition: the fade in once loaded
109
+ * (ui#598), 150ms, and the dim, at the library's duration as `PINNED_DIM`.
110
+ */
111
+ const PINNED_PICTURE_MOTION = `${PICTURE_FADE} transition-[opacity,filter] duration-[150ms,var(--cg-duration)] group-hover/pin:brightness-90 group-data-[touch-hover]/pin:brightness-90`;
35
112
  /** The hover wash, laid over a control's own ground rather than replacing it. */
36
113
  const WASH = "hover:[background-image:linear-gradient(var(--cg-hover),var(--cg-hover))]";
114
+ /** Both arrows, the next and its mirror the previous: 24, the caret in the action colour, the wash, the keyboard line. */
115
+ const PINNED_ARROW = "inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-pill text-cyan-dark outline-none";
37
116
  /** What the touch rule (ui#559) reads as one pinned item. */
38
117
  const PIN_SCOPE = '[data-slot="pinned-item"]';
39
118
  /**
@@ -60,37 +139,74 @@ function Opener({ item, onOpen, linkComponent, className, slot, children, }) {
60
139
  return (_jsx("div", { "data-slot": slot, className: className, children: children }));
61
140
  }
62
141
  function PinnedItem({ item, onUnpin, onOpen, linkComponent, unpinLabel, liveLabel, }) {
63
- return (_jsxs("li", { "data-slot": "pinned-item", className: "group/pin relative min-w-0", children: [_jsxs(Opener, { item: item, onOpen: onOpen, linkComponent: linkComponent, slot: "pinned-open", className: "grid w-full min-w-0 gap-2.25 rounded-xs outline-none focus-line", children: [_jsxs("span", { "data-slot": "pinned-thumbnail", className: item.seed === undefined ? PINNED_THUMBNAIL : `${PINNED_THUMBNAIL} isolate`, children: [item.seed !== undefined ? (
142
+ return (_jsxs("li", { "data-slot": "pinned-item", className: "group/pin relative min-w-0", children: [_jsxs(Opener, { item: item, onOpen: onOpen, linkComponent: linkComponent, slot: "pinned-open", className: cn(PINNED_CARD, "outline-none focus-line"), children: [_jsxs("span", { "data-slot": "pinned-thumbnail", className: item.seed === undefined ? PINNED_THUMBNAIL : `${PINNED_THUMBNAIL} isolate`, children: [item.seed !== undefined ? (
64
143
  // Dims with the picture on hover and on the first tap, so an item
65
144
  // without a picture answers the pointer as one with a picture does.
66
- _jsx(ThumbnailIdentity, { seed: item.seed, name: item.name, size: "card", className: PINNED_DIM })) : null, item.thumbnailSrc !== undefined && item.seed !== undefined ? (
67
- // Taken out if it fails, so the identity shows (ui#573).
68
- _jsx(PictureOverIdentity, { "data-slot": "pinned-picture", src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, className: `block size-full object-cover ${PINNED_DIM}` })) : item.thumbnailSrc !== undefined ? (_jsx("img", { "data-slot": "pinned-picture", src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, className: `block size-full object-cover ${PINNED_DIM}` })) : (_jsx("span", { "data-slot": "pinned-picture", "aria-hidden": "true", className: `block size-full ${PINNED_DIM}` }))] }), _jsxs("span", { "data-slot": "pinned-label", className: "flex min-w-0 items-center gap-1.5", children: [_jsx(PinFilledIcon, { className: "size-3.75 shrink-0 text-(--cg-text-accent)" }), _jsx("span", { "data-slot": "pinned-name", className: "min-w-0 truncate text-caption font-medium text-ink", children: item.name }), item.kind ? _jsx(EntityKindBadge, { kind: item.kind, lifted: false, className: "ms-auto shrink-0" }) : null] })] }), onUnpin ? (_jsxs("button", { type: "button", "data-slot": "pinned-unpin", onClick: () => onUnpin(item), className: cn(
145
+ _jsx(ThumbnailIdentity, { seed: item.seed, name: item.name, size: "card", className: PINNED_DIM })) : null, item.thumbnailSrc !== undefined ? (
146
+ // Fades in once loaded (ui#598). Over an identity it is taken out
147
+ // if it fails, so the identity shows (ui#573).
148
+ _jsx(FadeInPicture, { "data-slot": "pinned-picture", src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, removeOnError: item.seed !== undefined, className: `block size-full object-cover object-top ${PINNED_PICTURE_MOTION}` })) : (_jsx("span", { "data-slot": "pinned-picture", "aria-hidden": "true", className: `block size-full ${PINNED_DIM}` })), item.views !== undefined && item.views > 0 ? _jsx(PinnedViews, { views: item.views }) : null] }), _jsxs("span", { "data-slot": "pinned-text", className: PINNED_TEXT, children: [_jsxs("span", { "data-slot": "pinned-label", className: "flex h-5 min-w-0 items-center gap-1.5", children: [_jsx(PinFilledIcon, { className: "size-3.75 shrink-0 text-(--cg-text-accent)" }), _jsx("span", { "data-slot": "pinned-name", className: "min-w-0 truncate text-caption font-medium text-ink", children: item.name }), item.kind ? (_jsx(EntityKindBadge, { kind: item.kind, size: "sm", lifted: false, className: `ms-auto shrink-0 ${PINNED_WIDE_ONLY}` })) : null] }), item.byline !== undefined && item.byline !== null ? (_jsx("span", { "data-slot": "pinned-byline",
149
+ // Clipped in x only, as the Home card's line is: a 16 line
150
+ // under `overflow: hidden` would cut its descenders (ui#415).
151
+ className: `min-w-0 overflow-x-clip text-ellipsis whitespace-nowrap text-caption leading-4 text-steel-strong in-data-[cg-surface=panel]:text-faint in-data-[cg-surface=ink]:text-faint ${PINNED_WIDE_ONLY}`, children: item.byline })) : null] })] }), onUnpin ? (_jsxs("button", { type: "button", "data-slot": "pinned-unpin", onClick: () => onUnpin(item), className: cn(
69
152
  // On a picture, so it does not flip with the surface: white, with
70
153
  // the glyph colour every badge on a picture wears.
71
- "absolute top-1.5 right-1.5 inline-flex h-6 cursor-pointer items-center gap-1 rounded-pill bg-(--cg-neutral-0) px-2 text-caption font-medium text-on-accent shadow-mark outline-none", PIN_CONTROL_REVEAL, WASH, "focus-line"), children: [_jsx(UnpinIcon, { className: "size-3.5 shrink-0" }), unpinLabel, _jsx("span", { className: "sr-only", children: ` ${item.name}` })] })) : null, item.liveHref !== undefined ? (
154
+ "absolute top-2 right-2 inline-flex h-6 cursor-pointer items-center gap-1 rounded-pill bg-(--cg-neutral-0) px-2 text-caption font-medium text-on-accent shadow-mark outline-none",
155
+ // At two a page (a phone) the glyph alone, a 24 circle as the
156
+ // live arrow is, so the two sit apart (Asaf, 2026-11-24).
157
+ PINNED_CHIP_PHONE, PIN_CONTROL_REVEAL, WASH, "focus-line"), children: [_jsx(UnpinIcon, { className: "size-3.5 shrink-0 @max-[26.375rem]/pinned:size-4" }), _jsx("span", { className: "@max-[26.375rem]/pinned:sr-only", children: unpinLabel }), _jsx("span", { className: "sr-only", children: ` ${item.name}` })] })) : null, item.liveHref !== undefined ? (
72
158
  // The Home card's open (its glyph, its wash, its tooltip), round and
73
159
  // on white because it sits on a picture, as the chip does. Beside the
74
160
  // item's link, never in it.
75
- _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { "aria-describedby": undefined, render: _jsx("a", { href: item.liveHref, target: "_blank", rel: "noopener noreferrer", "data-slot": "pinned-live", "aria-label": `${liveLabel} ${item.name}`, className: cn("absolute top-1.5 left-1.5 inline-flex size-6 cursor-pointer items-center justify-center rounded-pill bg-(--cg-neutral-0) text-on-accent no-underline shadow-mark outline-none", PIN_CONTROL_REVEAL, WASH, "focus-line") }), children: _jsx(OpenLiveIcon, { className: "size-5" }) }), _jsx(TooltipContent, { children: liveLabel })] })) : null] }));
161
+ _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { "aria-describedby": undefined, render: _jsx("a", { href: item.liveHref, target: "_blank", rel: "noopener noreferrer", "data-slot": "pinned-live", "aria-label": `${liveLabel} ${item.name}`, className: cn("absolute top-2 left-2 inline-flex size-6 cursor-pointer items-center justify-center rounded-pill bg-(--cg-neutral-0) text-on-accent no-underline shadow-mark outline-none", PIN_CONTROL_REVEAL, WASH, "focus-line") }), children: _jsx(OpenLiveIcon, { className: "size-5" }) }), _jsx(TooltipContent, { children: liveLabel })] })) : null] }));
76
162
  }
77
- /** A soft slot where a pinned creation would go. */
78
- function PinnedSlot({ label }) {
79
- return (_jsxs("li", { "data-slot": "pinned-slot", className: "grid min-w-0 gap-2.25", children: [_jsx("span", { "data-slot": "pinned-slot-art", "aria-hidden": "true", className: "flex aspect-[216/98] w-full items-center justify-center rounded-xs bg-page text-faint in-data-[cg-surface=panel]:bg-(--cg-hover) in-data-[cg-surface=ink]:bg-(--cg-hover)", children: _jsx(PinIcon, { className: "size-7.5" }) }), _jsxs("span", { "data-slot": "pinned-slot-label", className: "flex min-w-0 items-center gap-1.5 text-caption text-faint-strong", children: [_jsx(PinIcon, { className: "size-3.75 shrink-0 text-faint" }), _jsx("span", { className: "min-w-0 truncate", children: label })] })] }));
163
+ const SLOT_ART = "flex aspect-[159/92] w-full items-center justify-center rounded-xs bg-page text-faint in-data-[cg-surface=panel]:bg-(--cg-hover) in-data-[cg-surface=ink]:bg-(--cg-hover)";
164
+ /** The art takes the hover wash, over its own ground, while its button is hovered. */
165
+ const SLOT_ART_WASH = "group-hover/add:[background-image:linear-gradient(var(--cg-hover),var(--cg-hover))]";
166
+ /**
167
+ * A soft slot where a pinned creation would go, a card's size (ui#591): the
168
+ * card's frame with its line clear, the art in the picture's box, the label in
169
+ * the card's text block. With `onAdd` (ui#587) the frame is one button that
170
+ * calls it; without it, a picture and a label.
171
+ */
172
+ function PinnedSlot({ label, onAdd }) {
173
+ const parts = (_jsxs(_Fragment, { children: [_jsx("span", { "data-slot": "pinned-slot-art", "aria-hidden": "true", className: onAdd ? `${SLOT_ART} ${SLOT_ART_WASH}` : SLOT_ART, children: _jsx(PinIcon, { className: "size-7.5" }) }), _jsx("span", { "data-slot": "pinned-slot-text", className: PINNED_TEXT, children: _jsxs("span", { "data-slot": "pinned-slot-label", className: "flex h-5 min-w-0 items-center gap-1.5 text-caption text-faint-strong", children: [_jsx(PinIcon, { className: "size-3.75 shrink-0 text-faint" }), _jsx("span", { className: "min-w-0 truncate", children: label })] }) })] }));
174
+ if (!onAdd) {
175
+ return (_jsx("li", { "data-slot": "pinned-slot", className: "grid min-w-0", children: _jsx("div", { "data-slot": "pinned-slot-frame", className: `${PINNED_FRAME} border-transparent`, children: parts }) }));
176
+ }
177
+ return (_jsx("li", { "data-slot": "pinned-slot", className: "grid min-w-0", children: _jsx("button", { type: "button", "data-slot": "pinned-add", onClick: () => onAdd(), className: cn(PINNED_FRAME, "group/add cursor-pointer border-transparent text-start outline-none focus-line"), children: parts }) }));
80
178
  }
81
- function PinnedCreations({ items, onUnpin, onOpen, linkComponent, emptyLabel = "Pin a creation", unpinLabel = "Unpin", liveLabel = "Open live app", nextLabel = "Next pinned creations", className, ...props }) {
179
+ function PinnedCreations({ items, onUnpin, onOpen, linkComponent, emptyLabel = "Pin a creation", unpinLabel = "Unpin", liveLabel = "Open live app", nextLabel = "Next pinned creations", prevLabel = "Previous pinned creations", onAddPin, className, ...props }) {
82
180
  const root = React.useRef(null);
83
- // Three a page until measured (the server, the first render); the CSS has
84
- // already drawn two under the line, so measuring changes no painted column.
85
- const perPage = useBand(root, pinnedPerPage) ?? PINNED_THREE_PER_PAGE;
181
+ // Four a page until measured (the server, the first render); the CSS has
182
+ // already drawn three or two under the lines, so measuring changes no
183
+ // painted column.
184
+ const perPage = useBand(root, pinnedPerPage) ?? PINNED_FOUR_PER_PAGE;
86
185
  const [page, setPage] = React.useState(0);
87
- const pages = Math.max(1, Math.ceil(items.length / perPage));
88
186
  // A list that shrank under the current page shows its last page, not nothing.
89
- const current = Math.min(page, pages - 1);
187
+ const pager = pinnedPager(items.length, page, perPage);
188
+ const current = pager.page;
90
189
  const shown = items.slice(current * perPage, (current + 1) * perPage);
91
190
  const empty = items.length === 0;
92
191
  const slots = empty ? perPage : perPage - shown.length;
93
- return (_jsxs("div", { ref: root, "data-slot": "pinned-creations", className: cn("@container/pinned flex min-w-0 items-center gap-2 text-ink", className), ...props, children: [_jsxs("ul", { "data-slot": "pinned-list", className: cn(PINNED_COLUMNS, empty ? "gap-6" : "gap-2"), children: [shown.map((item) => (_jsx(PinnedItem, { item: item, onUnpin: onUnpin, onOpen: onOpen, linkComponent: linkComponent, unpinLabel: unpinLabel, liveLabel: liveLabel }, item.id))), Array.from({ length: slots }, (_, i) => (_jsx(PinnedSlot, { label: emptyLabel }, `slot-${i}`)))] }), items.length > 2 ? (_jsx("button", { type: "button", "data-slot": "pinned-next", "aria-label": nextLabel, onClick: () => setPage((current + 1) % pages), className: cn("inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-pill text-cyan-dark outline-none", items.length <= PINNED_THREE_PER_PAGE && "@min-[25.125rem]/pinned:hidden", WASH, "focus-line"), children: _jsx(ChevronRightIcon, { className: "size-6" }) })) : null, _jsx(TouchHover, { scope: PIN_SCOPE })] }));
192
+ // A press that takes its own arrow away hands keyboard focus to the other
193
+ // arrow, never to the page. Only when the pressed arrow held focus: a click
194
+ // in a browser that does not focus buttons moves nothing.
195
+ const prevArrow = React.useRef(null);
196
+ const nextArrow = React.useRef(null);
197
+ const handoff = React.useRef(null);
198
+ React.useEffect(() => {
199
+ const pending = handoff.current;
200
+ handoff.current = null;
201
+ if (pending && !pending.from.isConnected)
202
+ pending.to.current?.focus();
203
+ }, [current]);
204
+ const turn = (event, to, other) => {
205
+ const from = event.currentTarget;
206
+ handoff.current = from.ownerDocument.activeElement === from ? { from, to: other } : null;
207
+ setPage(to);
208
+ };
209
+ return (_jsxs("div", { ref: root, "data-slot": "pinned-creations", className: cn("@container/pinned flex min-w-0 items-center gap-2 text-ink", className), ...props, children: [pager.prev ? (_jsx("button", { ref: prevArrow, type: "button", "data-slot": "pinned-previous", "aria-label": prevLabel, onClick: (event) => turn(event, current - 1, nextArrow), className: cn(PINNED_ARROW, WASH, "focus-line"), children: _jsx(ChevronLeftIcon, { className: "size-6" }) })) : null, _jsxs("ul", { "data-slot": "pinned-list", className: PINNED_COLUMNS, children: [shown.map((item) => (_jsx(PinnedItem, { item: item, onUnpin: onUnpin, onOpen: onOpen, linkComponent: linkComponent, unpinLabel: unpinLabel, liveLabel: liveLabel }, item.id))), Array.from({ length: slots }, (_, i) => (_jsx(PinnedSlot, { label: emptyLabel, onAdd: onAddPin }, `slot-${i}`)))] }), pager.next ? (_jsx("button", { ref: nextArrow, type: "button", "data-slot": "pinned-next", "aria-label": nextLabel, onClick: (event) => turn(event, current + 1, prevArrow), className: cn(PINNED_ARROW, pager.nextNarrowOnly === 3 && "@min-[34.75rem]/pinned:hidden", pager.nextNarrowOnly === 2 && "@min-[26.375rem]/pinned:hidden", WASH, "focus-line"), children: _jsx(ChevronRightIcon, { className: "size-6" }) })) : null, _jsx(TouchHover, { scope: PIN_SCOPE })] }));
94
210
  }
95
211
  /** A Continue row's picture: 48 by 30 at radius 8. */
96
212
  const RECENT_THUMBNAIL = "block h-7.5 w-12 shrink-0 overflow-hidden rounded-xs bg-raised";
@@ -98,15 +214,15 @@ function RecentlyOpened({ items, onOpen, linkComponent, emptyLabel = "Your recen
98
214
  if (items.length === 0) {
99
215
  return (_jsx("p", { "data-slot": "recently-opened-empty", className: cn("m-0 text-body-sm text-faint-strong", className), children: emptyLabel }));
100
216
  }
101
- return (_jsx("ul", { "data-slot": "recently-opened", className: cn("m-0 grid min-w-0 list-none gap-1.5 p-0 text-ink", className), ...props, children: items.map((item) => (_jsx("li", { "data-slot": "recently-opened-row", className: "flex min-w-0", children: _jsxs(Opener, { item: item, onOpen: onOpen, linkComponent: linkComponent, slot: "recently-opened-link", className: "flex h-10 min-w-0 flex-1 items-center gap-3 rounded-xs outline-none hover:bg-(--cg-hover) focus-line", children: [_jsxs("span", { "data-slot": "recently-opened-thumbnail", className: item.seed === undefined ? RECENT_THUMBNAIL : `${RECENT_THUMBNAIL} ${THUMBNAIL_WITH_IDENTITY}`, children: [item.seed !== undefined ? _jsx(ThumbnailIdentity, { seed: item.seed, name: item.name, size: "thumb" }) : null, item.thumbnailSrc !== undefined && item.seed !== undefined ? (_jsx(PictureOverIdentity, { src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, className: "block size-full object-cover" })) : item.thumbnailSrc !== undefined ? (_jsx("img", { src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, className: "block size-full object-cover" })) : null] }), _jsx("span", { "data-slot": "recently-opened-name", className: "min-w-0 truncate text-caption font-medium text-ink", children: item.name }), _jsx("span", { "data-slot": "recently-opened-time", className: "ms-auto shrink-0 text-caption text-faint-strong", children: item.opened })] }) }, item.id))) }));
217
+ return (_jsx("ul", { "data-slot": "recently-opened", className: cn("m-0 grid min-w-0 list-none gap-1.5 p-0 text-ink", className), ...props, children: items.map((item) => (_jsx("li", { "data-slot": "recently-opened-row", className: "flex min-w-0", children: _jsxs(Opener, { item: item, onOpen: onOpen, linkComponent: linkComponent, slot: "recently-opened-link", className: "flex h-10 min-w-0 flex-1 items-center gap-3 rounded-xs outline-none hover:bg-(--cg-hover) focus-line", children: [_jsxs("span", { "data-slot": "recently-opened-thumbnail", className: item.seed === undefined ? RECENT_THUMBNAIL : `${RECENT_THUMBNAIL} ${THUMBNAIL_WITH_IDENTITY}`, children: [item.seed !== undefined ? _jsx(ThumbnailIdentity, { seed: item.seed, name: item.name, size: "thumb" }) : null, item.thumbnailSrc !== undefined && item.seed !== undefined ? (_jsx(PictureOverIdentity, { src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, className: "block size-full object-cover object-top" })) : item.thumbnailSrc !== undefined ? (_jsx("img", { src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, className: "block size-full object-cover object-top" })) : null] }), _jsx("span", { "data-slot": "recently-opened-name", className: "min-w-0 truncate text-caption font-medium text-ink", children: item.name }), _jsx("span", { "data-slot": "recently-opened-time", className: "ms-auto shrink-0 text-caption text-faint-strong", children: item.opened })] }) }, item.id))) }));
102
218
  }
103
219
  /**
104
220
  * The Home's left card: "Pinned", a hairline, "Continue where you left off".
105
221
  * The card shell is #533's `BentoCard`, its children 14 apart as the design
106
222
  * draws this card.
107
223
  */
108
- function PinnedCard({ pinned, recent, onUnpin, onOpen, linkComponent, title = "Pinned", continueTitle = "Continue where you left off", className, ...props }) {
109
- return (_jsxs(BentoCard, { title: title, className: cn("gap-3.5", className), ...props, children: [_jsx(PinnedCreations, { items: pinned, onUnpin: onUnpin, onOpen: onOpen, linkComponent: linkComponent }), _jsx("hr", { "data-slot": "pinned-card-divider", className: "m-0 h-px border-0 bg-hairline" }), _jsx("h3", { "data-slot": "pinned-card-continue", className: "m-0 text-heading-sm leading-(--cg-body-line) font-bold text-ink", children: continueTitle }), _jsx(RecentlyOpened, { items: recent, onOpen: onOpen, linkComponent: linkComponent })] }));
224
+ function PinnedCard({ pinned, recent, onUnpin, onOpen, onAddPin, linkComponent, title = "Pinned", continueTitle = "Continue where you left off", className, ...props }) {
225
+ return (_jsxs(BentoCard, { title: title, className: cn("gap-3.5", className), ...props, children: [_jsx(PinnedCreations, { items: pinned, onUnpin: onUnpin, onOpen: onOpen, onAddPin: onAddPin, linkComponent: linkComponent }), _jsx("hr", { "data-slot": "pinned-card-divider", className: "m-0 h-px border-0 bg-hairline" }), _jsx("h3", { "data-slot": "pinned-card-continue", className: "m-0 text-heading-sm leading-(--cg-body-line) font-bold text-ink", children: continueTitle }), _jsx(RecentlyOpened, { items: recent, onOpen: onOpen, linkComponent: linkComponent })] }));
110
226
  }
111
227
  export { PinnedCard, PinnedCreations, RecentlyOpened };
112
228
  //# sourceMappingURL=home-pinned.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"home-pinned.js","sourceRoot":"","sources":["../../src/blocks/home-pinned.tsx"],"names":[],"mapp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AgB,sBAAsB,EAAC,SAAS,EAAC,oDAAoD,YAClG,IAAI,CAAC,IAAI,GACL,EACP,4BAAgB,sBAAsB,EAAC,SAAS,EAAC,iDAAiD,YAC/F,IAAI,CAAC,MAAM,GACP,IACA,IAzBF,IAAI,CAAC,EAAE,CA0BX,CACN,CAAC,GACC,CACN,CAAA;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,UAAU,CAAC,EAClB,MAAM,EACN,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR,aAAa,EACb,KAAK,GAAG,QAAQ,EAChB,aAAa,GAAG,6BAA6B,EAC7C,SAAS,EACT,GAAG,KAAK,EAWT;IACC,OAAO,CACL,MAAC,SAAS,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,KAAM,KAAK,aACrE,KAAC,eAAe,IAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,GAAI,EACtH,0BAAc,qBAAqB,EAAC,SAAS,EAAC,+BAA+B,GAAG,EAChF,0BAAc,sBAAsB,EAAC,SAAS,EAAC,iEAAiE,YAC7G,aAAa,GACX,EACL,KAAC,cAAc,IAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAI,IACrE,CACb,CAAA;AACH,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,CAAA"}
@@ -8,9 +8,10 @@ import { type ToolMarkName } from "./tool-marks.js";
8
8
  * <InspirationCards ideas={ideas} /> // the card on Home, pages of 3
9
9
  * <InspirationCard {...idea} /> // one idea alone
10
10
  *
11
- * The card "Your grid starts with your creations.", its subtitle "Need
12
- * inspiration? Pick an idea and make it yours.", a pager at the top right, and
13
- * the ideas in pages of three. Every idea is the caller's: the picture, the
11
+ * The card "Need inspiration to start? Pick an idea and make it yours.", one
12
+ * line and nothing under it (ui#587, Tamir's review in console#1170; it was
13
+ * "Your grid starts with your creations." over a subtitle), a pager at the top
14
+ * right, and the ideas in pages of three. Every idea is the caller's: the picture, the
14
15
  * category, the title, the description and the prompt. The library holds the
15
16
  * words around them and the category tags, and no idea of its own.
16
17
  *
@@ -66,7 +67,8 @@ import { type ToolMarkName } from "./tool-marks.js";
66
67
  * ## The card of cards
67
68
  *
68
69
  * White, radius 12, padding 24, 20 between the heading row and the cards. The
69
- * heading (an h2, bold 20) over the subtitle (13), 4 apart; the pager at the
70
+ * heading (an h2, bold 20), with no line under it unless the caller passes a
71
+ * `subtitle` (13, 4 under); the pager at the
70
72
  * right of the row: previous, "1 / 2", next, 8 apart, each arrow a 28 by 30
71
73
  * ghost button with an 18px chevron. At either end its arrow is dimmed to 30%
72
74
  * and does nothing, and stays focusable, as `Pager` does (`aria-disabled`).
@@ -77,11 +79,16 @@ import { type ToolMarkName } from "./tool-marks.js";
77
79
  * (the Home at 1440), two across below that and one under another on a phone
78
80
  * (below), by container queries, so they follow the column, not the window,
79
81
  * and the server's page is the one the script hydrates. The pager shares the
80
- * heading's row, top right, whenever the two fit side by side (the title and
81
- * the subtitle at their own width, 339, + 16 + the pager, 99: an inside of 453
82
- * or more, so on the Home always from 1024 wide); under that, a phone, the
83
- * row wraps and the pager goes under the heading, still at the right, so the
84
- * heading is never squeezed (ui#546; it used to wrap under 640).
82
+ * heading's row, top right, whenever the two fit side by side (the heading's
83
+ * least width, 339, + 16 + the pager, 99: an inside of 453 or more, so on the
84
+ * Home always from 1024 wide); under that, a phone, the row wraps and the
85
+ * pager goes under the heading, still at the right, so the heading is never
86
+ * squeezed (ui#546; it used to wrap under 640). 339 was the old title and
87
+ * subtitle at their own width; #587's one-line title is 534 at its own width,
88
+ * so the heading's basis is 339 (21.1875rem) and it grows into the rest of the
89
+ * row: where the title does not fit beside the pager it wraps there, its lines
90
+ * balanced (no word left alone on the second), the pager level with its first
91
+ * line, and the pager leaves the row at the same width as before.
85
92
  *
86
93
  * Two across between the two-per-row minimum and the three-per-row one
87
94
  * (ui#546, Asaf's option A: a narrow laptop, the Home from 1024 up to just
@@ -148,6 +155,19 @@ import { type ToolMarkName } from "./tool-marks.js";
148
155
  * it is polite again. The card says which (`data-auto-advance`, "running" or
149
156
  * "held"). Without `autoAdvance` nothing here is in the markup.
150
157
  *
158
+ * ## The pictures load at once (ui#598)
159
+ *
160
+ * Every cover is asked for as the card renders, never lazily: the shown
161
+ * page's with high priority (`fetchpriority="high"`), the rows a fill layout
162
+ * keeps under the first at the browser's own (lazy, in a box with no height,
163
+ * they never started). Once the page has loaded and the browser is idle the
164
+ * next page's covers are asked for quietly, at low priority
165
+ * (`inspirationNextCovers`; the first page's after the last, where
166
+ * `autoAdvance` loops), so Next or a turn by itself shows them at once. Each
167
+ * cover has the design's 208 by 120, so its box is there before it, and fades
168
+ * in over the grey box once loaded, in 150ms on the library's ease; under
169
+ * reduced motion it is there at once.
170
+ *
151
171
  * ## Specimens
152
172
  *
153
173
  * `specimen` pins one face of Pick it up for the gallery and for screenshots
@@ -162,8 +182,7 @@ export declare const INSPIRATION_CATEGORIES: Readonly<Record<InspirationCategory
162
182
  }>>;
163
183
  /** The words around the ideas. */
164
184
  export declare const INSPIRATION_COPY: Readonly<{
165
- title: "Your grid starts with your creations.";
166
- subtitle: "Need inspiration? Pick an idea and make it yours.";
185
+ title: "Need inspiration to start? Pick an idea and make it yours.";
167
186
  copy: "Pick it up";
168
187
  copied: "Picked up";
169
188
  blocked: "Couldn't pick it up";
@@ -203,12 +222,17 @@ export declare const PASTE_IN_TURNS: readonly ToolMarkName[];
203
222
  * rest mark; every other count is a turn.
204
223
  */
205
224
  export declare function pasteInMarkAt(step: number, place?: number): ToolMarkName;
206
- declare function InspirationCard({ image, category, title, description, prompt, place, specimen, className, }: InspirationIdea & {
225
+ declare function InspirationCard({ image, category, title, description, prompt, place, priority, specimen, className, }: InspirationIdea & {
207
226
  /**
208
227
  * The card's place among the cards shown with it, from 0: its Paste in mark
209
228
  * is that many turns ahead (ui#574). `InspirationCards` sets it.
210
229
  */
211
230
  place?: number;
231
+ /**
232
+ * Ask for the picture first (`fetchpriority="high"`): the cards a page shows
233
+ * when it opens (ui#598). `InspirationCards` sets it.
234
+ */
235
+ priority?: boolean;
212
236
  /** Pins one face of Pick it up and holds the agent still, for the gallery. Leave it out in product code. */
213
237
  specimen?: Specimen;
214
238
  className?: string;
@@ -257,6 +281,12 @@ export declare function inspirationPerPage({ pageSize, columns, secondRow }: {
257
281
  }): number;
258
282
  /** The page, from 0, that holds idea `first` when pages hold `perPage`. */
259
283
  export declare function inspirationPageOf(first: number, perPage: number): number;
284
+ /**
285
+ * The covers to ask for in the background while page `page` (from 0) is shown
286
+ * (ui#598): the next page's, or the first page's after the last, where
287
+ * `autoAdvance` loops. None with one page.
288
+ */
289
+ export declare function inspirationNextCovers(ideas: readonly InspirationIdea[], page: number, perPage: number): string[];
260
290
  /** How often `autoAdvance` turns the page, by default: 30s (ui#575). */
261
291
  export declare const INSPIRATION_AUTO_ADVANCE_MS = 30000;
262
292
  /** The interval `autoAdvance` asks for, in ms; 0 when it is off. */
@@ -266,7 +296,7 @@ declare function InspirationCards({ ideas, title, subtitle, pageSize, layout, pa
266
296
  ideas: readonly InspirationIdea[];
267
297
  /** The heading. Defaults to the design's words. */
268
298
  title?: React.ReactNode;
269
- /** The line under it. Defaults to the design's words. */
299
+ /** A line under it. None by default (ui#587): the heading says it all. */
270
300
  subtitle?: React.ReactNode;
271
301
  /** Ideas per page. The design's is 3. */
272
302
  pageSize?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"inspiration-cards.d.ts","sourceRoot":"","sources":["../../src/blocks/inspiration-cards.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,OAAO,EAIL,KAAK,OAAO,EACb,MAAM,sCAAsC,CAAA;AAE7C,OAAO,EAAc,KAAK,YAAY,E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