@cloudgrid-io/ui 0.66.0 → 0.68.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.
Files changed (47) hide show
  1. package/dist/badge/owner.js +1 -1
  2. package/dist/badge/owner.js.map +1 -1
  3. package/dist/blocks/add-tile.d.ts +34 -1
  4. package/dist/blocks/add-tile.d.ts.map +1 -1
  5. package/dist/blocks/add-tile.js +34 -1
  6. package/dist/blocks/add-tile.js.map +1 -1
  7. package/dist/blocks/creation-search.d.ts +10 -1
  8. package/dist/blocks/creation-search.d.ts.map +1 -1
  9. package/dist/blocks/creation-search.js +5 -1
  10. package/dist/blocks/creation-search.js.map +1 -1
  11. package/dist/blocks/entity-card.d.ts.map +1 -1
  12. package/dist/blocks/entity-card.js +2 -2
  13. package/dist/blocks/entity-card.js.map +1 -1
  14. package/dist/blocks/entity-identity.d.ts +24 -1
  15. package/dist/blocks/entity-identity.d.ts.map +1 -1
  16. package/dist/blocks/entity-identity.js +19 -0
  17. package/dist/blocks/entity-identity.js.map +1 -1
  18. package/dist/blocks/header-menu.d.ts +6 -3
  19. package/dist/blocks/header-menu.d.ts.map +1 -1
  20. package/dist/blocks/header-menu.js +18 -11
  21. package/dist/blocks/header-menu.js.map +1 -1
  22. package/dist/blocks/home-bento.d.ts +1 -1
  23. package/dist/blocks/home-bento.js +1 -1
  24. package/dist/blocks/home-pinned.d.ts +144 -42
  25. package/dist/blocks/home-pinned.d.ts.map +1 -1
  26. package/dist/blocks/home-pinned.js +149 -28
  27. package/dist/blocks/home-pinned.js.map +1 -1
  28. package/dist/blocks/image-adjust-dialog.d.ts.map +1 -1
  29. package/dist/blocks/image-adjust-dialog.js +1 -1
  30. package/dist/blocks/image-adjust-dialog.js.map +1 -1
  31. package/dist/blocks/inspiration-cards.d.ts +98 -36
  32. package/dist/blocks/inspiration-cards.d.ts.map +1 -1
  33. package/dist/blocks/inspiration-cards.js +146 -27
  34. package/dist/blocks/inspiration-cards.js.map +1 -1
  35. package/dist/blocks/recent-plugs.d.ts +12 -0
  36. package/dist/blocks/recent-plugs.d.ts.map +1 -1
  37. package/dist/blocks/recent-plugs.js +4 -1
  38. package/dist/blocks/recent-plugs.js.map +1 -1
  39. package/dist/blocks/top-creations.d.ts +10 -0
  40. package/dist/blocks/top-creations.d.ts.map +1 -1
  41. package/dist/blocks/top-creations.js +6 -1
  42. package/dist/blocks/top-creations.js.map +1 -1
  43. package/dist/lib/thumbnail-identity.d.ts +47 -0
  44. package/dist/lib/thumbnail-identity.d.ts.map +1 -0
  45. package/dist/lib/thumbnail-identity.js +59 -0
  46. package/dist/lib/thumbnail-identity.js.map +1 -0
  47. package/package.json +2 -2
@@ -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
  *
@@ -25,13 +26,13 @@ import { type ToolMarkName } from "./tool-marks.js";
25
26
  * word bold ink on the category's tint (`INSPIRATION_CATEGORIES`);
26
27
  * - the title (an h3, bold 15) and, 4 under it, the description, given two
27
28
  * lines of height so the buttons line up across a row;
28
- * - "Copy prompt", the library's filled button (the Style Guide default, cyan
29
- * with an ink label) with the copy icon after the word, 34 tall, 10 aside,
30
- * radius 8. `CopyButton` copies the prompt, exactly, and for 2s the button
31
- * says "Copied" with a check in the icon's place, or "Couldn't copy" when the
32
- * clipboard refuses; the live region says it too. The three faces share one
29
+ * - "Pick it up" (never "Copy prompt": founder rule, ui#579), the library's
30
+ * filled button (the Style Guide default, cyan with an ink label) with the
31
+ * copy icon after the word, 34 tall, 10 aside, radius 8. `CopyButton` copies
32
+ * the prompt, exactly, and for 2s the button says "Picked up" with a check in
33
+ * the icon's place, or "Couldn't pick it up" when the clipboard refuses; the live region says it too. The three faces share one
33
34
  * grid cell, so the button keeps its width whatever it says. The button is
34
- * described by the card's title, so "Copy prompt" is not three identical
35
+ * described by the card's title, so "Pick it up" is not three identical
35
36
  * buttons to a screen reader.
36
37
  * - "Paste in" and one 20px agent mark, at the right of the button's row.
37
38
  *
@@ -44,15 +45,30 @@ import { type ToolMarkName } from "./tool-marks.js";
44
45
  * place, so it shows the mark the pill's last slot to cross turned to
45
46
  * (`pasteInMark`). At rest that is slot 1's first mark, Claude Code; then,
46
47
  * 2s in and every 2.6s after, Codex, Claude, Antigravity, Claude Code, Cursor,
47
- * and the colour Gemini, and round again. Each turn is the pill's 600ms
48
- * ease-in-out crossfade. Under reduced motion no timer starts and Claude Code
49
- * stays; while the tab is hidden it pauses. The marks are `aria-hidden`;
50
- * "Paste in" ends, for a screen reader only, "your AI coding tool".
48
+ * and the colour Gemini, and round again (`PASTE_IN_TURNS`). Each turn is the
49
+ * pill's 600ms ease-in-out crossfade. Under reduced motion no timer starts and
50
+ * the rest mark stays; while the tab is hidden it pauses. The marks are
51
+ * `aria-hidden`; "Paste in" ends, for a screen reader only, "your AI coding
52
+ * tool".
53
+ *
54
+ * Each card on a page shows a different agent at the same moment (ui#574):
55
+ * the cards share one clock, the card of cards', and each is offset in it by
56
+ * its place on the page (`place`, from 0), so the card at place p shows what
57
+ * place 0 shows p turns later (`pasteInMarkAt`). Three to a row that is Claude
58
+ * Code, Codex and Claude at rest, then Codex, Claude and Antigravity, and so
59
+ * on, all turning together; two to a row the first two; on page 2 the places
60
+ * count from its own first card, on the same clock. Under reduced motion each
61
+ * card holds its own place's rest mark, so they differ still. With every page
62
+ * shown at once (`layout="fill"`) the rows under the first go on counting, so
63
+ * six cards are six agents while they turn; at rest places 0 and 4 are both
64
+ * Claude Code, the rest mark and the fourth turn. A lone `InspirationCard`
65
+ * runs its own clock, at place 0 unless given its place.
51
66
  *
52
67
  * ## The card of cards
53
68
  *
54
69
  * White, radius 12, padding 24, 20 between the heading row and the cards. The
55
- * 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
56
72
  * right of the row: previous, "1 / 2", next, 8 apart, each arrow a 28 by 30
57
73
  * ghost button with an 18px chevron. At either end its arrow is dimmed to 30%
58
74
  * and does nothing, and stays focusable, as `Pager` does (`aria-disabled`).
@@ -63,17 +79,22 @@ import { type ToolMarkName } from "./tool-marks.js";
63
79
  * (the Home at 1440), two across below that and one under another on a phone
64
80
  * (below), by container queries, so they follow the column, not the window,
65
81
  * and the server's page is the one the script hydrates. The pager shares the
66
- * heading's row, top right, whenever the two fit side by side (the title and
67
- * the subtitle at their own width, 339, + 16 + the pager, 99: an inside of 453
68
- * or more, so on the Home always from 1024 wide); under that, a phone, the
69
- * row wraps and the pager goes under the heading, still at the right, so the
70
- * 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.
71
92
  *
72
93
  * Two across between the two-per-row minimum and the three-per-row one
73
94
  * (ui#546, Asaf's option A: a narrow laptop, the Home from 1024 up to just
74
95
  * under 1440 wide), where three do not fit their action rows on one line and
75
96
  * one under another makes a very tall card; tighter there, 12 between the
76
- * idea cards and 20 inside, so each idea card keeps Copy prompt and Paste in
97
+ * idea cards and 20 inside, so each idea card keeps Pick it up and Paste in
77
98
  * on one line (`INSPIRATION_COLUMNS`). The rows are CSS (`PAGE_COLUMNS`,
78
99
  * `TWO_INSET`); the paging is the script's: it measures the card (`useBand`,
79
100
  * read once in the commit that mounts it, then one ResizeObserver) and steps
@@ -106,7 +127,7 @@ import { type ToolMarkName } from "./tool-marks.js";
106
127
  * it shows every page at once, one row each, 16 apart, and the pager goes:
107
128
  * everything is visible. With less room it is one row and the pager, as
108
129
  * `layout="paged"` (the default) always is. The cards are the same cards in
109
- * both: size, words, Copy prompt and Copied, and Paste in with its turning
130
+ * both: size, words, Pick it up and Picked up, and Paste in with its turning
110
131
  * agent mark.
111
132
  *
112
133
  * The other pages wait under the first in a place that only ever has the room
@@ -118,9 +139,25 @@ import { type ToolMarkName } from "./tool-marks.js";
118
139
  * Shown all at once the card is a plain region, not a carousel; when the
119
140
  * room goes, it is back on page 1, the row that was at the top.
120
141
  *
142
+ * ## Advancing by itself (ui#575)
143
+ *
144
+ * `autoAdvance` (off unless given) moves the card to its next page every 30s
145
+ * (`INSPIRATION_AUTO_ADVANCE_MS`), or every `autoAdvance` ms when it is a
146
+ * number, as the Next arrow does, and from the last page back to the first.
147
+ * It holds while the person is on the card: a pointer over it (a mouse, a pen
148
+ * or a finger on a touch screen) or keyboard focus inside it (focus from a
149
+ * click does not hold it once the pointer leaves). It holds while the card is
150
+ * off screen (an IntersectionObserver) and while the tab is hidden, and never
151
+ * runs under reduced motion. Any hold, a page turned by hand, and every
152
+ * advance start the interval again from the beginning. While it runs the page
153
+ * is not a live region (`aria-live="off"`, the WAI carousel's rule for a
154
+ * rotating carousel), so a screen reader is not interrupted every 30s; held,
155
+ * it is polite again. The card says which (`data-auto-advance`, "running" or
156
+ * "held"). Without `autoAdvance` nothing here is in the markup.
157
+ *
121
158
  * ## Specimens
122
159
  *
123
- * `specimen` pins one face of Copy prompt for the gallery and for screenshots
160
+ * `specimen` pins one face of Pick it up for the gallery and for screenshots
124
161
  * (hover, focus, copied, blocked) and holds the agent mark still. Product code
125
162
  * leaves it out.
126
163
  */
@@ -132,12 +169,12 @@ export declare const INSPIRATION_CATEGORIES: Readonly<Record<InspirationCategory
132
169
  }>>;
133
170
  /** The words around the ideas. */
134
171
  export declare const INSPIRATION_COPY: Readonly<{
135
- title: "Your grid starts with your creations.";
136
- subtitle: "Need inspiration? Pick an idea and make it yours.";
137
- copy: "Copy prompt";
138
- copied: "Copied";
139
- blocked: "Couldn't copy";
140
- announceCopied: "Prompt copied. Paste it into your AI coding tool.";
172
+ title: "Need inspiration to start? Pick an idea and make it yours.";
173
+ copy: "Pick it up";
174
+ copied: "Picked up";
175
+ blocked: "Couldn't pick it up";
176
+ announceCopied: "Picked up. Paste it into your AI coding tool.";
177
+ announceBlocked: "Couldn't pick it up. Try again.";
141
178
  pasteIn: "Paste in";
142
179
  /** Read after "Paste in" by a screen reader only: the mark beside it is hidden. */
143
180
  pasteInEnd: "your AI coding tool";
@@ -152,7 +189,7 @@ export type InspirationIdea = {
152
189
  title: string;
153
190
  /** One line, two at most. */
154
191
  description: string;
155
- /** What Copy prompt copies, exactly. */
192
+ /** What Pick it up copies, exactly. */
156
193
  prompt: string;
157
194
  };
158
195
  type Specimen = "hover" | "focus" | "copied" | "blocked";
@@ -164,8 +201,21 @@ export declare const PASTE_IN_MARKS: readonly ToolMarkName[];
164
201
  * the rest mark, slot 1's A.
165
202
  */
166
203
  export declare function pasteInMark(prev: readonly LogoSet[], next: readonly LogoSet[]): ToolMarkName;
167
- declare function InspirationCard({ image, category, title, description, prompt, specimen, className, }: InspirationIdea & {
168
- /** Pins one face of Copy prompt and holds the agent still, for the gallery. Leave it out in product code. */
204
+ /** The marks the Paste in slot turns to after the rest mark, in order: the pill's cycle, one crossing at a time. */
205
+ export declare const PASTE_IN_TURNS: readonly ToolMarkName[];
206
+ /**
207
+ * The mark the card at `place` on its page (from 0) shows `step` turns into
208
+ * the cycle: what place 0 shows `place` turns later. Place 0 at step 0 is the
209
+ * rest mark; every other count is a turn.
210
+ */
211
+ export declare function pasteInMarkAt(step: number, place?: number): ToolMarkName;
212
+ declare function InspirationCard({ image, category, title, description, prompt, place, specimen, className, }: InspirationIdea & {
213
+ /**
214
+ * The card's place among the cards shown with it, from 0: its Paste in mark
215
+ * is that many turns ahead (ui#574). `InspirationCards` sets it.
216
+ */
217
+ place?: number;
218
+ /** Pins one face of Pick it up and holds the agent still, for the gallery. Leave it out in product code. */
169
219
  specimen?: Specimen;
170
220
  className?: string;
171
221
  }): React.JSX.Element;
@@ -176,8 +226,9 @@ declare function InspirationCard({ image, category, title, description, prompt,
176
226
  * 12 between the idea cards and 20 inside the card, against 16 and 24.
177
227
  *
178
228
  * The widths are the card's OUTER width, so the band does not move when two
179
- * to a row changes the padding. An idea card's action row is Copy prompt
180
- * (126.4) + 4 + Paste in with its mark (72.5) = 202.9 here; CI's Linux
229
+ * to a row changes the padding. An idea card's action row is the button
230
+ * (126.4, measured when it said "Copy prompt"; ui#579) + 4 + Paste in with
231
+ * its mark (72.5) = 202.9 here; CI's Linux
181
232
  * Chromium sets it 3.1 wider, 206.0. An idea card adds 12 each side (11
182
233
  * padding, the 1px edge).
183
234
  *
@@ -212,12 +263,16 @@ export declare function inspirationPerPage({ pageSize, columns, secondRow }: {
212
263
  }): number;
213
264
  /** The page, from 0, that holds idea `first` when pages hold `perPage`. */
214
265
  export declare function inspirationPageOf(first: number, perPage: number): number;
215
- declare function InspirationCards({ ideas, title, subtitle, pageSize, layout, page: pageProp, defaultPage, onPageChange, specimen, className, ...props }: Omit<React.ComponentProps<"section">, "children" | "title"> & {
266
+ /** How often `autoAdvance` turns the page, by default: 30s (ui#575). */
267
+ export declare const INSPIRATION_AUTO_ADVANCE_MS = 30000;
268
+ /** The interval `autoAdvance` asks for, in ms; 0 when it is off. */
269
+ export declare function inspirationAutoAdvanceMs(autoAdvance: boolean | number | undefined): number;
270
+ declare function InspirationCards({ ideas, title, subtitle, pageSize, layout, page: pageProp, defaultPage, onPageChange, autoAdvance, specimen, className, onPointerEnter, onPointerLeave, onFocus, onBlur, ...props }: Omit<React.ComponentProps<"section">, "children" | "title"> & {
216
271
  /** Every idea, in order. Shown `pageSize` at a time. */
217
272
  ideas: readonly InspirationIdea[];
218
273
  /** The heading. Defaults to the design's words. */
219
274
  title?: React.ReactNode;
220
- /** The line under it. Defaults to the design's words. */
275
+ /** A line under it. None by default (ui#587): the heading says it all. */
221
276
  subtitle?: React.ReactNode;
222
277
  /** Ideas per page. The design's is 3. */
223
278
  pageSize?: number;
@@ -232,8 +287,15 @@ declare function InspirationCards({ ideas, title, subtitle, pageSize, layout, pa
232
287
  page?: number;
233
288
  /** The first page shown, from 0, when the card keeps its own place. */
234
289
  defaultPage?: number;
235
- /** Called with the new page when previous or next is pressed. */
290
+ /** Called with the new page when previous or next is pressed, or the card advances by itself. */
236
291
  onPageChange?: (page: number) => void;
292
+ /**
293
+ * Advance to the next page by itself, looping from the last to the first
294
+ * (ui#575): `true` every 30s, a number every that many ms. Held while the
295
+ * person is on the card, while it is off screen or the tab is hidden, and
296
+ * always under reduced motion. Off when left out.
297
+ */
298
+ autoAdvance?: boolean | number;
237
299
  /** Passed to every card on the page: the gallery's pinned faces. */
238
300
  specimen?: Specimen;
239
301
  }): React.JSX.Element;
@@ -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,EAAE,MAAM,0BAA0B,CAAA;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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xE,eAAO,MAAM,2BAA2B,QAAS,CAAA;AAEjD,oEAAoE;AACpE,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAI1F;AA8CD,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,KAA8B,EAC9B,QAAQ,EACR,QAAY,EACZ,MAAgB,EAChB,IAAI,EAAE,QAAQ,EACd,WAAe,EACf,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,SAAS,EACT,cAAc,EACd,cAAc,EACd,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG;IAC/D,wDAAwD;IACxD,KAAK,EAAE,SAAS,eAAe,EAAE,CAAA;IACjC,mDAAmD;IACnD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iGAAiG;IACjG,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC9B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB,qBAmOA;AAED,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,CAAA"}
@@ -19,12 +19,12 @@ export const INSPIRATION_CATEGORIES = Object.freeze({
19
19
  });
20
20
  /** The words around the ideas. */
21
21
  export const INSPIRATION_COPY = Object.freeze({
22
- title: "Your grid starts with your creations.",
23
- subtitle: "Need inspiration? Pick an idea and make it yours.",
24
- copy: "Copy prompt",
25
- copied: "Copied",
26
- blocked: "Couldn't copy",
27
- announceCopied: "Prompt copied. Paste it into your AI coding tool.",
22
+ title: "Need inspiration to start? Pick an idea and make it yours.",
23
+ copy: "Pick it up",
24
+ copied: "Picked up",
25
+ blocked: "Couldn't pick it up",
26
+ announceCopied: "Picked up. Paste it into your AI coding tool.",
27
+ announceBlocked: "Couldn't pick it up. Try again.",
28
28
  pasteIn: "Paste in",
29
29
  /** Read after "Paste in" by a screen reader only: the mark beside it is hidden. */
30
30
  pasteInEnd: "your AI coding tool",
@@ -46,31 +46,56 @@ export function pasteInMark(prev, next) {
46
46
  const slot = ONBOARD_WIDGET_SLOTS[i];
47
47
  return next[i] === "a" ? slot.a : slot.b;
48
48
  }
49
- /** The mark shown now, turned by the pill's cycle unless held still. */
50
- function useAgentMark(still) {
51
- const [mark, setMark] = React.useState(REST_MARK);
49
+ /** The marks the Paste in slot turns to after the rest mark, in order: the pill's cycle, one crossing at a time. */
50
+ export const PASTE_IN_TURNS = (() => {
51
+ let sets = ONBOARD_WIDGET_SLOTS.map(() => "a");
52
+ const turns = [];
53
+ for (const target of ["b", "a"]) {
54
+ ONBOARD_WIDGET_SLOTS.forEach((_, i) => {
55
+ const next = sets.map((set, j) => (j === i ? target : set));
56
+ turns.push(pasteInMark(sets, next));
57
+ sets = next;
58
+ });
59
+ }
60
+ return Object.freeze(turns);
61
+ })();
62
+ /**
63
+ * The mark the card at `place` on its page (from 0) shows `step` turns into
64
+ * the cycle: what place 0 shows `place` turns later. Place 0 at step 0 is the
65
+ * rest mark; every other count is a turn.
66
+ */
67
+ export function pasteInMarkAt(step, place = 0) {
68
+ const n = Math.max(0, Math.floor(step)) + Math.max(0, Math.floor(place));
69
+ return n === 0 ? REST_MARK : PASTE_IN_TURNS[(n - 1) % PASTE_IN_TURNS.length];
70
+ }
71
+ /** The turns the cycle has made, 0 at rest; counted round one loop, 1 to 6 once it has started. */
72
+ function useAgentStep(run) {
73
+ const [step, setStep] = React.useState(0);
52
74
  React.useEffect(() => {
53
- if (still || typeof window === "undefined" || typeof window.matchMedia !== "function")
75
+ if (!run || typeof window === "undefined" || typeof window.matchMedia !== "function")
54
76
  return;
55
77
  const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)");
56
- let prev = ONBOARD_WIDGET_SLOTS.map(() => "a");
57
78
  const cycle = createLogoCycle({
58
79
  onChange: (next) => {
59
80
  // Reduced motion switched on mid-loop: `bindLogoCycle` stops the cycle
60
- // and resets it to every slot's A, which is the rest mark, whichever
61
- // slot that reset happened to move.
81
+ // and resets it to every slot's A, which is the rest, whichever slot
82
+ // that reset happened to move.
62
83
  const reset = reducedMotion.matches && next.every((set) => set === "a");
63
- setMark(reset ? REST_MARK : pasteInMark(prev, next));
64
- prev = [...next];
84
+ setStep((s) => (reset ? 0 : (s % PASTE_IN_TURNS.length) + 1));
65
85
  },
66
86
  });
67
87
  return bindLogoCycle(cycle, { document, reducedMotion });
68
- }, [still]);
69
- return still ? REST_MARK : mark;
88
+ }, [run]);
89
+ return run ? step : 0;
70
90
  }
91
+ /** The card of cards' clock, which its cards share; null outside one. */
92
+ const AgentStepContext = React.createContext(null);
71
93
  /** One 20px place, every mark stacked, the shown one at full opacity. */
72
- function AgentMark({ still }) {
73
- const shown = useAgentMark(still);
94
+ function AgentMark({ still, place }) {
95
+ const shared = React.useContext(AgentStepContext);
96
+ // A lone card runs its own clock; a card in a card of cards keeps to theirs.
97
+ const own = useAgentStep(!still && shared === null);
98
+ const shown = pasteInMarkAt(still ? 0 : (shared ?? own), place);
74
99
  return (_jsx("span", { "data-slot": "inspiration-card-agent", "data-agent-shown": shown, "aria-hidden": "true", className: "relative size-5 shrink-0", children: PASTE_IN_MARKS.map((name) => {
75
100
  const { Mark, hex } = TOOL_MARKS[name];
76
101
  const colour = ONBOARD_WIDGET_SLOTS.some((s) => s.a === name && s.aColour);
@@ -80,9 +105,9 @@ function AgentMark({ still }) {
80
105
  }) }));
81
106
  }
82
107
  /** The button's three faces in one cell: the shown one visible, the others keep the width. */
83
- function Face({ face, shown, children }) {
108
+ function Face({ face, shown, className, children }) {
84
109
  const on = face === shown;
85
- return (_jsx("span", { "data-face": face, "aria-hidden": on ? undefined : true, className: cn("col-start-1 row-start-1 inline-flex items-center justify-center gap-1.5", on ? "visible" : "invisible"), children: children }));
110
+ return (_jsx("span", { "data-face": face, "aria-hidden": on ? undefined : true, className: cn("col-start-1 row-start-1 inline-flex items-center justify-center gap-1.5", className, on ? "visible" : "invisible"), children: children }));
86
111
  }
87
112
  /**
88
113
  * Paper on every surface. `data-theme="default"` puts every --cg- token back to
@@ -102,12 +127,12 @@ const SPECIMEN_CLASS = {
102
127
  // focus-line's look, drawn without the focus.
103
128
  focus: "outline-1 outline-solid outline-offset-2 outline-(--ring)",
104
129
  };
105
- function InspirationCard({ image, category, title, description, prompt, specimen, className, }) {
130
+ function InspirationCard({ image, category, title, description, prompt, place = 0, specimen, className, }) {
106
131
  const titleId = React.useId();
107
132
  const tag = INSPIRATION_CATEGORIES[category];
108
133
  const [state, setState] = React.useState("idle");
109
134
  const face = specimen === "copied" ? "copied" : specimen === "blocked" ? "blocked" : state;
110
- return (_jsxs("article", { "data-slot": "inspiration-card", "data-theme": "default", className: cn("flex h-full min-w-0 flex-col gap-2.5 rounded-md border border-hairline bg-(--cg-surface-card) p-2.75 font-ui text-ink", LIGHT_SCOPE, className), children: [_jsx("img", { "data-slot": "inspiration-card-picture", src: image, alt: "", loading: "lazy", decoding: "async", className: "block aspect-[26/15] w-full rounded-xs bg-page object-cover" }), _jsx(Badge, { "data-slot": "inspiration-card-tag", "data-category": category, className: cn("h-5.5 rounded-full px-2.5 py-0 text-caption font-bold leading-none text-ink", tag.className), children: tag.label }), _jsxs("div", { className: "flex min-w-0 flex-col gap-1", children: [_jsx("h3", { id: titleId, "data-slot": "inspiration-card-title", className: "m-0 text-body-sm font-bold text-ink", children: title }), _jsx("p", { "data-slot": "inspiration-card-description", className: "m-0 min-h-[2lh] text-caption text-ink", children: description })] }), _jsxs("div", { "data-slot": "inspiration-card-actions", className: "mt-auto flex flex-wrap items-center justify-between gap-x-1 gap-y-2", children: [_jsx(CopyButton, { value: prompt, copiedLabel: INSPIRATION_COPY.copied, blockedLabel: INSPIRATION_COPY.blocked, announceCopied: INSPIRATION_COPY.announceCopied, onStateChange: setState, render: _jsx(Button, { "data-slot": "inspiration-card-copy", "data-face": face, "aria-describedby": titleId, size: "sm", className: cn(COPY_BUTTON_CLASS, specimen && SPECIMEN_CLASS[specimen]) }), children: () => (_jsxs("span", { className: "inline-grid", children: [_jsxs(Face, { face: "idle", shown: face, children: [INSPIRATION_COPY.copy, _jsx("span", { "data-slot": "inspiration-card-copy-icon", className: "inline-flex size-4.5", children: _jsx(CopyIcon, { className: "size-full" }) })] }), _jsxs(Face, { face: "copied", shown: face, children: [INSPIRATION_COPY.copied, _jsx("span", { "data-slot": "inspiration-card-check", className: "inline-flex size-4.5", children: _jsx(CheckIcon, { className: "size-full" }) })] }), _jsx(Face, { face: "blocked", shown: face, children: INSPIRATION_COPY.blocked })] })) }), _jsxs("span", { "data-slot": "inspiration-card-paste-in", className: "ml-auto inline-flex shrink-0 items-center gap-1.25 text-caption text-faint-strong", children: [_jsxs("span", { children: [INSPIRATION_COPY.pasteIn, _jsxs("span", { className: "sr-only", children: [" ", INSPIRATION_COPY.pasteInEnd] })] }), _jsx(AgentMark, { still: specimen !== undefined })] })] })] }));
135
+ return (_jsxs("article", { "data-slot": "inspiration-card", "data-theme": "default", className: cn("flex h-full min-w-0 flex-col gap-2.5 rounded-md border border-hairline bg-(--cg-surface-card) p-2.75 font-ui text-ink", LIGHT_SCOPE, className), children: [_jsx("img", { "data-slot": "inspiration-card-picture", src: image, alt: "", loading: "lazy", decoding: "async", className: "block aspect-[26/15] w-full rounded-xs bg-page object-cover" }), _jsx(Badge, { "data-slot": "inspiration-card-tag", "data-category": category, className: cn("h-5.5 rounded-full px-2.5 py-0 text-caption font-bold leading-none text-ink", tag.className), children: tag.label }), _jsxs("div", { className: "flex min-w-0 flex-col gap-1", children: [_jsx("h3", { id: titleId, "data-slot": "inspiration-card-title", className: "m-0 text-body-sm font-bold text-ink", children: title }), _jsx("p", { "data-slot": "inspiration-card-description", className: "m-0 min-h-[2lh] text-caption text-ink", children: description })] }), _jsxs("div", { "data-slot": "inspiration-card-actions", className: "mt-auto flex flex-wrap items-center justify-between gap-x-1 gap-y-2", children: [_jsx(CopyButton, { value: prompt, copiedLabel: INSPIRATION_COPY.copied, blockedLabel: INSPIRATION_COPY.blocked, announceCopied: INSPIRATION_COPY.announceCopied, announceBlocked: INSPIRATION_COPY.announceBlocked, onStateChange: setState, render: _jsx(Button, { "data-slot": "inspiration-card-copy", "data-face": face, "aria-describedby": titleId, size: "sm", className: cn(COPY_BUTTON_CLASS, specimen && SPECIMEN_CLASS[specimen]) }), children: () => (_jsxs("span", { className: "inline-grid", children: [_jsxs(Face, { face: "idle", shown: face, children: [INSPIRATION_COPY.copy, _jsx("span", { "data-slot": "inspiration-card-copy-icon", className: "inline-flex size-4.5", children: _jsx(CopyIcon, { className: "size-full" }) })] }), _jsxs(Face, { face: "copied", shown: face, children: [INSPIRATION_COPY.copied, _jsx("span", { "data-slot": "inspiration-card-check", className: "inline-flex size-4.5", children: _jsx(CheckIcon, { className: "size-full" }) })] }), _jsx(Face, { face: "blocked", shown: face, className: "-mx-1", children: INSPIRATION_COPY.blocked })] })) }), _jsxs("span", { "data-slot": "inspiration-card-paste-in", className: "ml-auto inline-flex shrink-0 items-center gap-1.25 text-caption text-faint-strong", children: [_jsxs("span", { children: [INSPIRATION_COPY.pasteIn, _jsxs("span", { className: "sr-only", children: [" ", INSPIRATION_COPY.pasteInEnd] })] }), _jsx(AgentMark, { still: specimen !== undefined, place: place })] })] })] }));
111
136
  }
112
137
  /**
113
138
  * The rows, in CSS, so the server's page is the hydrated one (nothing moves
@@ -130,8 +155,9 @@ const TWO_INSET = "@min-[468px]/inspiration-cards:@max-[728px]/inspiration-cards
130
155
  * 12 between the idea cards and 20 inside the card, against 16 and 24.
131
156
  *
132
157
  * The widths are the card's OUTER width, so the band does not move when two
133
- * to a row changes the padding. An idea card's action row is Copy prompt
134
- * (126.4) + 4 + Paste in with its mark (72.5) = 202.9 here; CI's Linux
158
+ * to a row changes the padding. An idea card's action row is the button
159
+ * (126.4, measured when it said "Copy prompt"; ui#579) + 4 + Paste in with
160
+ * its mark (72.5) = 202.9 here; CI's Linux
135
161
  * Chromium sets it 3.1 wider, 206.0. An idea card adds 12 each side (11
136
162
  * padding, the 1px edge).
137
163
  *
@@ -170,9 +196,60 @@ export function inspirationPerPage({ pageSize, columns, secondRow }) {
170
196
  export function inspirationPageOf(first, perPage) {
171
197
  return Math.floor(Math.max(0, first) / Math.max(1, perPage));
172
198
  }
199
+ /** How often `autoAdvance` turns the page, by default: 30s (ui#575). */
200
+ export const INSPIRATION_AUTO_ADVANCE_MS = 30_000;
201
+ /** The interval `autoAdvance` asks for, in ms; 0 when it is off. */
202
+ export function inspirationAutoAdvanceMs(autoAdvance) {
203
+ if (autoAdvance === true)
204
+ return INSPIRATION_AUTO_ADVANCE_MS;
205
+ if (typeof autoAdvance === "number" && Number.isFinite(autoAdvance) && autoAdvance > 0)
206
+ return autoAdvance;
207
+ return 0;
208
+ }
209
+ /**
210
+ * Whether the card may advance by itself: on screen, in a shown tab, and not
211
+ * under reduced motion. False until measured, and always false when not `on`.
212
+ */
213
+ function useMayAdvance(ref, on) {
214
+ const [onScreen, setOnScreen] = React.useState(false);
215
+ const [tabShown, setTabShown] = React.useState(true);
216
+ const [reduced, setReduced] = React.useState(false);
217
+ React.useEffect(() => {
218
+ const el = ref.current;
219
+ if (!on || !el || typeof window === "undefined" || typeof IntersectionObserver !== "function")
220
+ return;
221
+ const motion = typeof window.matchMedia === "function" ? window.matchMedia("(prefers-reduced-motion: reduce)") : null;
222
+ const sync = () => {
223
+ setTabShown(document.visibilityState !== "hidden");
224
+ setReduced(motion?.matches ?? false);
225
+ };
226
+ sync();
227
+ document.addEventListener("visibilitychange", sync);
228
+ motion?.addEventListener("change", sync);
229
+ const io = new IntersectionObserver((entries) => setOnScreen(entries[entries.length - 1].isIntersecting));
230
+ io.observe(el);
231
+ return () => {
232
+ document.removeEventListener("visibilitychange", sync);
233
+ motion?.removeEventListener("change", sync);
234
+ io.disconnect();
235
+ };
236
+ }, [ref, on]);
237
+ return on && onScreen && tabShown && !reduced;
238
+ }
239
+ /** Keyboard focus, not focus from a click: `:focus-visible`, where the browser knows it. */
240
+ function keyboardFocus(el) {
241
+ if (!(el instanceof Element))
242
+ return false;
243
+ try {
244
+ return el.matches(":focus-visible");
245
+ }
246
+ catch {
247
+ return true;
248
+ }
249
+ }
173
250
  /** The pager's arrow: a 28 by 30 ghost button, an 18px chevron, dimmed at the end. */
174
251
  const ARROW_CLASS = "h-7.5 w-7 text-ink hover:bg-(--cg-hover) hover:text-ink aria-disabled:cursor-default aria-disabled:opacity-30 aria-disabled:hover:bg-transparent [&_svg]:size-4.5";
175
- function InspirationCards({ ideas, title = INSPIRATION_COPY.title, subtitle = INSPIRATION_COPY.subtitle, pageSize = 3, layout = "paged", page: pageProp, defaultPage = 0, onPageChange, specimen, className, ...props }) {
252
+ function InspirationCards({ ideas, title = INSPIRATION_COPY.title, subtitle, pageSize = 3, layout = "paged", page: pageProp, defaultPage = 0, onPageChange, autoAdvance, specimen, className, onPointerEnter, onPointerLeave, onFocus, onBlur, ...props }) {
176
253
  const headingId = React.useId();
177
254
  const size = Math.max(1, Math.floor(pageSize));
178
255
  // Two to a row only once measured: the server and the first render are the
@@ -211,6 +288,8 @@ function InspirationCards({ ideas, title = INSPIRATION_COPY.title, subtitle = IN
211
288
  const start = allShown ? 0 : page * perPage;
212
289
  const shown = ideas.slice(start, start + rowSize);
213
290
  const paged = pages > 1 && !allShown;
291
+ // One clock for every card shown, so they turn together, each offset by its place.
292
+ const step = useAgentStep(specimen === undefined);
214
293
  const go = (next) => {
215
294
  if (next < 0 || next >= pages || next === page)
216
295
  return;
@@ -218,6 +297,46 @@ function InspirationCards({ ideas, title = INSPIRATION_COPY.title, subtitle = IN
218
297
  setAnchor(next * perPage);
219
298
  onPageChange?.(next);
220
299
  };
300
+ // Advancing by itself: only with a pager to turn, never for a specimen.
301
+ const interval = specimen === undefined ? inspirationAutoAdvanceMs(autoAdvance) : 0;
302
+ const auto = interval > 0;
303
+ const mayAdvance = useMayAdvance(section, auto && paged);
304
+ const [pointerOn, setPointerOn] = React.useState(false);
305
+ const [focusOn, setFocusOn] = React.useState(false);
306
+ const running = mayAdvance && !pointerOn && !focusOn;
307
+ // The latest turn, for the timer: the next page, or the first after the last.
308
+ const advance = React.useRef(() => { });
309
+ React.useEffect(() => {
310
+ advance.current = () => go(page === pages - 1 ? 0 : page + 1);
311
+ });
312
+ // A whole interval from each start: a hold, a page turned, an advance.
313
+ React.useEffect(() => {
314
+ if (!running)
315
+ return;
316
+ const timer = setTimeout(() => advance.current(), interval);
317
+ return () => clearTimeout(timer);
318
+ }, [running, interval, page]);
319
+ const holdHandlers = auto
320
+ ? {
321
+ onPointerEnter: (event) => {
322
+ onPointerEnter?.(event);
323
+ setPointerOn(true);
324
+ },
325
+ onPointerLeave: (event) => {
326
+ onPointerLeave?.(event);
327
+ setPointerOn(false);
328
+ },
329
+ onFocus: (event) => {
330
+ onFocus?.(event);
331
+ setFocusOn(keyboardFocus(event.target));
332
+ },
333
+ onBlur: (event) => {
334
+ onBlur?.(event);
335
+ if (!(event.relatedTarget instanceof Node && event.currentTarget.contains(event.relatedTarget)))
336
+ setFocusOn(false);
337
+ },
338
+ }
339
+ : { onPointerEnter, onPointerLeave, onFocus, onBlur };
221
340
  const onKeyDown = (event) => {
222
341
  if (event.key === "ArrowLeft") {
223
342
  event.preventDefault();
@@ -228,7 +347,7 @@ function InspirationCards({ ideas, title = INSPIRATION_COPY.title, subtitle = IN
228
347
  go(page + 1);
229
348
  }
230
349
  };
231
- return (_jsxs("section", { ref: section, "data-slot": "inspiration-cards", "data-theme": "default", ...(layout === "fill" ? { "data-layout": "fill", "data-all-shown": allShown } : {}), ...(two ? { "data-columns": "2" } : {}), ...(fillTwo ? { "data-second-row": secondRow } : {}), "aria-labelledby": headingId, ...(paged ? { "aria-roledescription": "carousel" } : {}), className: cn("@container/inspiration-cards flex w-full min-w-0 flex-col gap-5 rounded-md bg-(--cg-surface-card) p-6 font-ui text-ink", TWO_INSET, LIGHT_SCOPE, className), ...props, children: [_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-x-4 gap-y-3", children: [_jsxs("div", { className: "flex min-w-0 flex-col gap-1", children: [_jsx("h2", { id: headingId, "data-slot": "inspiration-cards-title", className: "m-0 text-body-xl font-bold text-ink", children: title }), _jsx("p", { "data-slot": "inspiration-cards-subtitle", className: "m-0 text-caption text-ink", children: subtitle })] }), paged ? (_jsxs("div", { "data-slot": "inspiration-cards-pager", className: "ml-auto flex shrink-0 items-center gap-2", children: [_jsx(Button, { "data-slot": "inspiration-cards-previous", variant: "ghost", size: "icon-sm", "aria-label": INSPIRATION_COPY.previous, "aria-disabled": page === 0 || undefined, onClick: () => go(page - 1), onKeyDown: onKeyDown, className: ARROW_CLASS, children: _jsx(ChevronLeftIcon, {}) }), _jsxs("span", { "data-slot": "inspiration-cards-position", "aria-hidden": "true", className: "text-caption font-bold text-ink tabular-nums", children: [page + 1, " / ", pages] }), _jsx(Button, { "data-slot": "inspiration-cards-next", variant: "ghost", size: "icon-sm", "aria-label": INSPIRATION_COPY.next, "aria-disabled": page === pages - 1 || undefined, onClick: () => go(page + 1), onKeyDown: onKeyDown, className: ARROW_CLASS, children: _jsx(ChevronRightIcon, {}) })] })) : null] }), _jsx("div", { ref: viewport, "data-slot": "inspiration-cards-viewport", "aria-live": "polite", className: "min-w-0", children: _jsx("ul", { "data-slot": "inspiration-cards-page", ...(paged ? { "aria-roledescription": "slide", "aria-label": `Page ${page + 1} of ${pages}` } : {}), className: PAGE_COLUMNS, children: shown.map((idea, i) => (_jsx("li", { className: "min-w-0", children: _jsx(InspirationCard, { ...idea, specimen: specimen }) }, `${page}-${i}`))) }, page) }), fillAll || fillTwo ? (_jsx("div", { ref: more, "data-slot": "inspiration-cards-more", className: "-mt-5 min-h-0 flex-[1_1_0] overflow-hidden", children: fillTwo ? (_jsx("ul", { "data-slot": "inspiration-cards-second-row", className: cn(PAGE_COLUMNS, "pt-3 transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none", secondRow ? "visible opacity-100" : "invisible opacity-0"), children: ideas.slice(page * perPage + rowSize, page * perPage + 2 * rowSize).map((idea, i) => (_jsx("li", { className: "min-w-0", children: _jsx(InspirationCard, { ...idea, specimen: specimen }) }, `${page}-${i}`))) })) : (_jsx("div", { ref: rows, "data-slot": "inspiration-cards-more-rows", className: cn("grid gap-4 pt-4 transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none", allShown ? "visible opacity-100" : "invisible opacity-0"), children: Array.from({ length: pages - 1 }, (_, p) => (_jsx("ul", { "data-slot": "inspiration-cards-row", "data-page": p + 1, className: PAGE_COLUMNS, children: ideas.slice((p + 1) * size, (p + 2) * size).map((idea, i) => (_jsx("li", { className: "min-w-0", children: _jsx(InspirationCard, { ...idea, specimen: specimen }) }, i))) }, p + 1))) })) })) : null] }));
350
+ return (_jsx(AgentStepContext.Provider, { value: step, children: _jsxs("section", { ref: section, "data-slot": "inspiration-cards", "data-theme": "default", ...(layout === "fill" ? { "data-layout": "fill", "data-all-shown": allShown } : {}), ...(two ? { "data-columns": "2" } : {}), ...(fillTwo ? { "data-second-row": secondRow } : {}), "aria-labelledby": headingId, ...(paged ? { "aria-roledescription": "carousel" } : {}), ...(auto ? { "data-auto-advance": running ? "running" : "held" } : {}), className: cn("@container/inspiration-cards flex w-full min-w-0 flex-col gap-5 rounded-md bg-(--cg-surface-card) p-6 font-ui text-ink", TWO_INSET, LIGHT_SCOPE, className), ...props, ...holdHandlers, children: [_jsxs("div", { className: "flex flex-wrap items-start justify-between gap-x-4 gap-y-3", children: [_jsxs("div", { className: "flex min-w-0 flex-[1_1_21.1875rem] flex-col gap-1", children: [_jsx("h2", { id: headingId, "data-slot": "inspiration-cards-title", className: "m-0 text-body-xl font-bold text-balance text-ink", children: title }), subtitle ? (_jsx("p", { "data-slot": "inspiration-cards-subtitle", className: "m-0 text-caption text-ink", children: subtitle })) : null] }), paged ? (_jsxs("div", { "data-slot": "inspiration-cards-pager", className: "ml-auto flex shrink-0 items-center gap-2", children: [_jsx(Button, { "data-slot": "inspiration-cards-previous", variant: "ghost", size: "icon-sm", "aria-label": INSPIRATION_COPY.previous, "aria-disabled": page === 0 || undefined, onClick: () => go(page - 1), onKeyDown: onKeyDown, className: ARROW_CLASS, children: _jsx(ChevronLeftIcon, {}) }), _jsxs("span", { "data-slot": "inspiration-cards-position", "aria-hidden": "true", className: "text-caption font-bold text-ink tabular-nums", children: [page + 1, " / ", pages] }), _jsx(Button, { "data-slot": "inspiration-cards-next", variant: "ghost", size: "icon-sm", "aria-label": INSPIRATION_COPY.next, "aria-disabled": page === pages - 1 || undefined, onClick: () => go(page + 1), onKeyDown: onKeyDown, className: ARROW_CLASS, children: _jsx(ChevronRightIcon, {}) })] })) : null] }), _jsx("div", { ref: viewport, "data-slot": "inspiration-cards-viewport", "aria-live": running ? "off" : "polite", className: "min-w-0", children: _jsx("ul", { "data-slot": "inspiration-cards-page", ...(paged ? { "aria-roledescription": "slide", "aria-label": `Page ${page + 1} of ${pages}` } : {}), className: PAGE_COLUMNS, children: shown.map((idea, i) => (_jsx("li", { className: "min-w-0", children: _jsx(InspirationCard, { ...idea, place: i, specimen: specimen }) }, `${page}-${i}`))) }, page) }), fillAll || fillTwo ? (_jsx("div", { ref: more, "data-slot": "inspiration-cards-more", className: "-mt-5 min-h-0 flex-[1_1_0] overflow-hidden", children: fillTwo ? (_jsx("ul", { "data-slot": "inspiration-cards-second-row", className: cn(PAGE_COLUMNS, "pt-3 transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none", secondRow ? "visible opacity-100" : "invisible opacity-0"), children: ideas.slice(page * perPage + rowSize, page * perPage + 2 * rowSize).map((idea, i) => (_jsx("li", { className: "min-w-0", children: _jsx(InspirationCard, { ...idea, place: rowSize + i, specimen: specimen }) }, `${page}-${i}`))) })) : (_jsx("div", { ref: rows, "data-slot": "inspiration-cards-more-rows", className: cn("grid gap-4 pt-4 transition-[opacity,visibility] duration-200 ease-out motion-reduce:transition-none", allShown ? "visible opacity-100" : "invisible opacity-0"), children: Array.from({ length: pages - 1 }, (_, p) => (_jsx("ul", { "data-slot": "inspiration-cards-row", "data-page": p + 1, className: PAGE_COLUMNS, children: ideas.slice((p + 1) * size, (p + 2) * size).map((idea, i) => (_jsx("li", { className: "min-w-0", children: _jsx(InspirationCard, { ...idea, place: (p + 1) * size + i, specimen: specimen }) }, i))) }, p + 1))) })) })) : null] }) }));
232
351
  }
233
352
  export { InspirationCard, InspirationCards };
234
353
  //# sourceMappingURL=inspiration-cards.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"inspiration-cards.js","sourceRoot":"","sources":["../../src/blocks/inspiration-cards.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAkB,MAAM,2BAA2B,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EACL,oBAAo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