@cloudgrid-io/ui 0.68.0 → 0.70.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 (95) hide show
  1. package/dist/badge/marks.d.ts +2 -0
  2. package/dist/badge/marks.d.ts.map +1 -1
  3. package/dist/badge/marks.js +5 -0
  4. package/dist/badge/marks.js.map +1 -1
  5. package/dist/badge/watermark.js +2 -2
  6. package/dist/badge/watermark.js.map +1 -1
  7. package/dist/blocks/browse-categories.d.ts +80 -0
  8. package/dist/blocks/browse-categories.d.ts.map +1 -0
  9. package/dist/blocks/browse-categories.js +106 -0
  10. package/dist/blocks/browse-categories.js.map +1 -0
  11. package/dist/blocks/creation-search.d.ts +145 -102
  12. package/dist/blocks/creation-search.d.ts.map +1 -1
  13. package/dist/blocks/creation-search.js +502 -125
  14. package/dist/blocks/creation-search.js.map +1 -1
  15. package/dist/blocks/entity-card.d.ts +23 -8
  16. package/dist/blocks/entity-card.d.ts.map +1 -1
  17. package/dist/blocks/entity-card.js +25 -47
  18. package/dist/blocks/entity-card.js.map +1 -1
  19. package/dist/blocks/feed-row.d.ts +92 -0
  20. package/dist/blocks/feed-row.d.ts.map +1 -0
  21. package/dist/blocks/feed-row.js +30 -0
  22. package/dist/blocks/feed-row.js.map +1 -0
  23. package/dist/blocks/filter-tabs.d.ts +12 -1
  24. package/dist/blocks/filter-tabs.d.ts.map +1 -1
  25. package/dist/blocks/filter-tabs.js +11 -2
  26. package/dist/blocks/filter-tabs.js.map +1 -1
  27. package/dist/blocks/greeting.d.ts +42 -0
  28. package/dist/blocks/greeting.d.ts.map +1 -0
  29. package/dist/blocks/greeting.js +38 -0
  30. package/dist/blocks/greeting.js.map +1 -0
  31. package/dist/blocks/header-menu.d.ts +35 -2
  32. package/dist/blocks/header-menu.d.ts.map +1 -1
  33. package/dist/blocks/header-menu.js +67 -3
  34. package/dist/blocks/header-menu.js.map +1 -1
  35. package/dist/blocks/help-menu.d.ts +18 -3
  36. package/dist/blocks/help-menu.d.ts.map +1 -1
  37. package/dist/blocks/help-menu.js +59 -6
  38. package/dist/blocks/help-menu.js.map +1 -1
  39. package/dist/blocks/home-bento.d.ts +11 -4
  40. package/dist/blocks/home-bento.d.ts.map +1 -1
  41. package/dist/blocks/home-bento.js +22 -6
  42. package/dist/blocks/home-bento.js.map +1 -1
  43. package/dist/blocks/home-pinned.d.ts +87 -3
  44. package/dist/blocks/home-pinned.d.ts.map +1 -1
  45. package/dist/blocks/home-pinned.js +205 -12
  46. package/dist/blocks/home-pinned.js.map +1 -1
  47. package/dist/blocks/icons.d.ts +54 -6
  48. package/dist/blocks/icons.d.ts.map +1 -1
  49. package/dist/blocks/icons.js +67 -6
  50. package/dist/blocks/icons.js.map +1 -1
  51. package/dist/blocks/impact-card.d.ts +105 -0
  52. package/dist/blocks/impact-card.d.ts.map +1 -0
  53. package/dist/blocks/impact-card.js +57 -0
  54. package/dist/blocks/impact-card.js.map +1 -0
  55. package/dist/blocks/inspiration-cards.d.ts +251 -5
  56. package/dist/blocks/inspiration-cards.d.ts.map +1 -1
  57. package/dist/blocks/inspiration-cards.js +348 -8
  58. package/dist/blocks/inspiration-cards.js.map +1 -1
  59. package/dist/blocks/jump-back-in.d.ts +249 -0
  60. package/dist/blocks/jump-back-in.d.ts.map +1 -0
  61. package/dist/blocks/jump-back-in.js +272 -0
  62. package/dist/blocks/jump-back-in.js.map +1 -0
  63. package/dist/blocks/load-more-grid.d.ts +125 -0
  64. package/dist/blocks/load-more-grid.d.ts.map +1 -0
  65. package/dist/blocks/load-more-grid.js +157 -0
  66. package/dist/blocks/load-more-grid.js.map +1 -0
  67. package/dist/blocks/menu-trigger.d.ts +7 -2
  68. package/dist/blocks/menu-trigger.d.ts.map +1 -1
  69. package/dist/blocks/menu-trigger.js +2 -0
  70. package/dist/blocks/menu-trigger.js.map +1 -1
  71. package/dist/blocks/phosphor-marks.d.ts +17 -1
  72. package/dist/blocks/phosphor-marks.d.ts.map +1 -1
  73. package/dist/blocks/phosphor-marks.js +25 -1
  74. package/dist/blocks/phosphor-marks.js.map +1 -1
  75. package/dist/blocks/recent-plugs.js +1 -1
  76. package/dist/blocks/recent-plugs.js.map +1 -1
  77. package/dist/blocks/start-card.d.ts +76 -0
  78. package/dist/blocks/start-card.d.ts.map +1 -0
  79. package/dist/blocks/start-card.js +82 -0
  80. package/dist/blocks/start-card.js.map +1 -0
  81. package/dist/blocks/top-creations.js +1 -1
  82. package/dist/blocks/top-creations.js.map +1 -1
  83. package/dist/index.d.ts +7 -0
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +7 -0
  86. package/dist/index.js.map +1 -1
  87. package/dist/lib/fade-in-picture.d.ts +37 -0
  88. package/dist/lib/fade-in-picture.d.ts.map +1 -0
  89. package/dist/lib/fade-in-picture.js +72 -0
  90. package/dist/lib/fade-in-picture.js.map +1 -0
  91. package/dist/lib/motion.d.ts +14 -0
  92. package/dist/lib/motion.d.ts.map +1 -1
  93. package/dist/lib/motion.js +4 -0
  94. package/dist/lib/motion.js.map +1 -1
  95. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { DialogContent } from "../ui/dialog.js";
2
3
  import { type LogoSet } from "./onboard-widget-content.js";
3
4
  import { type ToolMarkName } from "./tool-marks.js";
4
5
  /**
@@ -155,11 +156,105 @@ import { type ToolMarkName } from "./tool-marks.js";
155
156
  * it is polite again. The card says which (`data-auto-advance`, "running" or
156
157
  * "held"). Without `autoAdvance` nothing here is in the markup.
157
158
  *
159
+ * ## The pictures load at once (ui#598)
160
+ *
161
+ * Every cover is asked for as the card renders, never lazily: the shown
162
+ * page's with high priority (`fetchpriority="high"`), the rows a fill layout
163
+ * keeps under the first at the browser's own (lazy, in a box with no height,
164
+ * they never started). Once the page has loaded and the browser is idle the
165
+ * next page's covers are asked for quietly, at low priority
166
+ * (`inspirationNextCovers`; the first page's after the last, where
167
+ * `autoAdvance` loops), so Next or a turn by itself shows them at once. Each
168
+ * cover has the design's 208 by 120, so its box is there before it, and fades
169
+ * in over the grey box once loaded, in 150ms on the library's ease; under
170
+ * reduced motion it is there at once.
171
+ *
172
+ * ## Pick it up opens an overlay (ui#609), with the opt-in
173
+ *
174
+ * Asaf's design of 2026-11-25/26, for the ideas card on an empty grid. Given
175
+ * `pickUp` (on `InspirationCard` or `InspirationCards`), the card has one
176
+ * button, "Pick it up": the library's cyan button, full width, the git-fork
177
+ * mark (`PickupsIcon`) before the word. It opens the overlay
178
+ * (`InspirationPickUpDialog`) and copies nothing; "Paste in" leaves the card for
179
+ * the overlay. Without `pickUp`, the card is what it was, byte for byte
180
+ * (test/inspiration-pick-up-609.test.mjs holds it to 0.69.0's markup).
181
+ *
182
+ * <InspirationCards
183
+ * ideas={ideas}
184
+ * pickUp={{
185
+ * onPickUp: (idea) => api.pickUp(idea.id), // resolves { ok: true } once live
186
+ * canPickUp: (idea) => idea.ready, // false: Build it yourself only
187
+ * onSeeOnGrid: (idea) => router.push("/"), // "See it on your grid"
188
+ * }}
189
+ * />
190
+ *
191
+ * The overlay is the library `Dialog` on the Style Guide purple wash. At the
192
+ * top, the idea's cover as a band that fades into white, the category tag on
193
+ * it and a round close X; under it the title (the dialog's name) and the
194
+ * card's line, then "Two ways to make it yours:" (the description; "Make it
195
+ * yours:" when Build it yourself is the only way, Asaf 2026-11-26). Two
196
+ * sections side by side, a quiet "or" on a thin line between them:
197
+ *
198
+ * - **Pick it up** (left, the main one: a purple-to-cyan tint, a purple edge).
199
+ * A small My creations row where the idea's cover drops into an empty slot,
200
+ * marked "<title> · just now": once, as the overlay opens (`MOTION.land`,
201
+ * 0.6s, eased out), and a still picture under reduced motion. The cyan Pick
202
+ * it up button at the bottom, as tall as Copy, sized to its words and
203
+ * centred under the landing (overlay v2, Asaf 2026-11-26). Pressed, it calls `onPickUp(idea)` and shows
204
+ * "Picking it up" with the spinner; a second press does nothing, a click on
205
+ * the scrim does not close the overlay (Escape and the X still do). `{ ok:
206
+ * true }` turns the overlay into Picked up; `{ ok: false }`, a rejection or
207
+ * a throw (`pickUpIdea`) puts a short line over the button, and the button
208
+ * says "Try again". Build it yourself stays usable throughout.
209
+ * - **Build it yourself** (right, light grey). The first lines of the prompt in
210
+ * the mono font, fading out: the idea's `promptPreview` when the caller gives
211
+ * one (its own part, without the opening every prompt shares, so each box
212
+ * differs), the `prompt` otherwise; Copy (the cyan button) copies the whole prompt,
213
+ * exactly, and says "Copied" with a check for 2s, or "Couldn't copy" when the
214
+ * clipboard refuses, as `CopyButton` does everywhere; beside it "Paste in"
215
+ * and the turning agent mark, the card's own mark on the card's own clock.
216
+ * Both at the right of their row.
217
+ *
218
+ * Without `onPickUp`, or when `canPickUp(idea)` is false, only Build it
219
+ * yourself shows, full width, with no "or": nothing disabled, nothing "coming
220
+ * soon".
221
+ *
222
+ * **Picked up**: the check in a circle of the tag's tint (lime for For work,
223
+ * light purple for Everyday, cyan for Just for fun: `INSPIRATION_PICKED_UP_CHECKS`),
224
+ * an ink check, a soft ring of the same hue, and a small burst of eight dots
225
+ * (`MOTION.burst`; none under reduced motion). "Picked up", "<title> is live on
226
+ * your grid. You'll find it in My creations.", and one cyan button, "See it on
227
+ * your grid", which closes the overlay and calls `onSeeOnGrid(idea)`.
228
+ *
229
+ * On a phone (under 640) the sections stack, the "or" between them on a line
230
+ * across, and the cover band is shorter (112 against 170).
231
+ *
232
+ * Focus goes to the first action on open (Pick it up, or Copy when it is the
233
+ * only way; See it on your grid once picked up) and back to the card's button
234
+ * on close. A polite live region says "Picking it up", "Picked up" and the
235
+ * failure; Copy's own says Copied. Every clickable has the hand cursor; a
236
+ * busy button keeps the arrow. The keyboard frame is the library's
237
+ * `focus-line`: after Tab, never after a click.
238
+ *
239
+ * Closing resets the overlay unless a pick-up is still on its way: its outcome
240
+ * is kept for the next open, and said in the card's own polite live region if
241
+ * it lands while the overlay is closed. Picked up sticks (Asaf, 2026-11-26):
242
+ * within the page's life the card remembers a successful pick-up (by `id` when
243
+ * given; a card of cards keeps the memory, so a card that leaves the page and
244
+ * comes back knows) and its overlay opens straight on Picked up, with no second
245
+ * call; `isPickedUp(idea)` tells it after a reload. A failure does not stick.
246
+ * With `autoAdvance`, an open overlay, or a pick-up on its way, holds the card
247
+ * of cards, so the page never turns under it (Nataly's review of PR #618). An
248
+ * `onPickUp` that never settles keeps "Picking it up" (a follow-up). The words
249
+ * are `INSPIRATION_PICK_UP_COPY`.
250
+ *
158
251
  * ## Specimens
159
252
  *
160
253
  * `specimen` pins one face of Pick it up for the gallery and for screenshots
161
254
  * (hover, focus, copied, blocked) and holds the agent mark still. Product code
162
- * leaves it out.
255
+ * leaves it out. The overlay has its own (`InspirationPickUpDialog`'s
256
+ * `specimen`: picking, picked, failed, copied, blocked), which also holds its
257
+ * motion still.
163
258
  */
164
259
  export type InspirationCategory = "work" | "everyday" | "fun";
165
260
  /** The tags: the word and the tint, per category. */
@@ -181,8 +276,58 @@ export declare const INSPIRATION_COPY: Readonly<{
181
276
  previous: "Previous page";
182
277
  next: "Next page";
183
278
  }>;
184
- /** One idea, all of it the caller's. */
279
+ /**
280
+ * The Pick it up overlay's words (ui#609): Asaf's approved copy. Canon: pick it
281
+ * up and picked up, live, the grid; no em dashes; never "Copy prompt".
282
+ */
283
+ export declare const INSPIRATION_PICK_UP_COPY: Readonly<{
284
+ twoWays: "Two ways to make it yours:";
285
+ /** With Build it yourself only: one way (Asaf, 2026-11-26). */
286
+ oneWay: "Make it yours:";
287
+ pickUpTitle: "Pick it up";
288
+ /** The middle part is set in bold. */
289
+ pickUpText: readonly ["A ready copy goes live on your grid. It lands in ", "My creations", ", and it's yours to change any time."];
290
+ pickUp: "Pick it up";
291
+ pickingUp: "Picking it up";
292
+ failed: "Couldn't pick it up. Try again.";
293
+ tryAgain: "Try again";
294
+ or: "or";
295
+ buildTitle: "Build it yourself";
296
+ /** Never "prompt" in what the person reads (Gilad; Asaf approved this line, 2026-11-26). */
297
+ buildText: "Copy it into your AI tool and build your own version, your way.";
298
+ copy: "Copy";
299
+ copied: "Copied";
300
+ blocked: "Couldn't copy";
301
+ announceCopied: "Copied. Paste it into your AI coding tool.";
302
+ announceBlocked: "Couldn't copy. The browser blocked the clipboard.";
303
+ pasteIn: "Paste in";
304
+ /** Read after "Paste in" by a screen reader only: the mark beside it is hidden. */
305
+ pasteInEnd: "your AI coding tool";
306
+ myCreations: "My creations";
307
+ /** The label under the slot the cover lands in. */
308
+ landed: (title: string) => string;
309
+ pickedUp: "Picked up";
310
+ pickedUpLine: (title: string) => string;
311
+ seeIt: "See it on your grid";
312
+ close: "Close";
313
+ }>;
314
+ /**
315
+ * The Picked up check, per category (ui#609): the circle is the tag's own tint,
316
+ * the check ink, the ring a soft 10px of the same hue.
317
+ */
318
+ export declare const INSPIRATION_PICKED_UP_CHECKS: Readonly<Record<InspirationCategory, string>>;
319
+ /**
320
+ * One idea, all of it the caller's. With `pickUp`, every callback is handed the
321
+ * caller's own idea object, this very one (from `InspirationCards`), or for a
322
+ * lone `InspirationCard` an object with every field the card was given: `id`
323
+ * and any field of the caller's come back unchanged (ui#609).
324
+ */
185
325
  export type InspirationIdea = {
326
+ /**
327
+ * The caller's own key for the idea, never shown. Handed back unchanged to
328
+ * every `pickUp` callback, so the caller matches its ideas by id, not by title.
329
+ */
330
+ id?: string;
186
331
  /** The picture's URL. Decorative: the title names the card. */
187
332
  image: string;
188
333
  category: InspirationCategory;
@@ -191,8 +336,54 @@ export type InspirationIdea = {
191
336
  description: string;
192
337
  /** What Pick it up copies, exactly. */
193
338
  prompt: string;
339
+ /**
340
+ * The first lines the overlay's prompt box shows (overlay v2, Asaf
341
+ * 2026-11-26): the idea's own part, so each idea's box differs. The shared
342
+ * opening every prompt starts with stays only in `prompt`, which is what
343
+ * Copy copies, in full. Absent: the box shows `prompt`. Never on the card.
344
+ */
345
+ promptPreview?: string;
194
346
  };
195
347
  type Specimen = "hover" | "focus" | "copied" | "blocked";
348
+ /** What the caller's pick-up action resolves: `{ ok: true }` once a ready copy is live on the grid. */
349
+ export type InspirationPickUpResult = {
350
+ ok: boolean;
351
+ };
352
+ /**
353
+ * The opt-in (ui#609): given, the card's one button, Pick it up, opens the
354
+ * overlay. Every part is optional; `{}` is Build it yourself only, for every
355
+ * idea.
356
+ */
357
+ export type InspirationPickUp = {
358
+ /**
359
+ * Makes a ready copy of `idea` live on the grid. Resolve `{ ok: true }` once
360
+ * it is; `{ ok: false }`, a rejection or a throw shows the failure. Absent:
361
+ * Build it yourself only.
362
+ */
363
+ onPickUp?: (idea: InspirationIdea) => Promise<InspirationPickUpResult>;
364
+ /** Whether `idea` has a ready creation to copy. Default: every idea, once `onPickUp` is given. */
365
+ canPickUp?: (idea: InspirationIdea) => boolean;
366
+ /**
367
+ * Whether `idea` is already picked up, as the caller knows it (from the
368
+ * server, after a reload): its overlay opens on Picked up, with "See it on
369
+ * your grid". Default: no. Within the page's life the card remembers a
370
+ * pick-up of its own without it (Asaf, 2026-11-26).
371
+ */
372
+ isPickedUp?: (idea: InspirationIdea) => boolean;
373
+ /** "See it on your grid" was pressed. The overlay closes either way. */
374
+ onSeeOnGrid?: (idea: InspirationIdea) => void;
375
+ /** The overlay opened or closed. */
376
+ onOpenChange?: (open: boolean, idea: InspirationIdea) => void;
377
+ };
378
+ /** Where the overlay's Pick it up is: before, on its way, done, or failed. */
379
+ export type InspirationPickUpState = "idle" | "picking" | "picked" | "failed";
380
+ /** The overlay's faces pinned for the gallery: one pick-up state, or Copy's. */
381
+ export type InspirationPickUpSpecimen = Exclude<InspirationPickUpState, "idle"> | "copied" | "blocked";
382
+ /**
383
+ * Runs the caller's pick-up for `idea`: "picked" for `{ ok: true }`, "failed"
384
+ * for anything else, a rejection or a throw included. Never throws.
385
+ */
386
+ export declare function pickUpIdea(onPickUp: (idea: InspirationIdea) => Promise<InspirationPickUpResult>, idea: InspirationIdea): Promise<"picked" | "failed">;
196
387
  /** The agent marks the Paste in slot shows: the pill's, slot by slot, A then B. */
197
388
  export declare const PASTE_IN_MARKS: readonly ToolMarkName[];
198
389
  /**
@@ -209,14 +400,61 @@ export declare const PASTE_IN_TURNS: readonly ToolMarkName[];
209
400
  * rest mark; every other count is a turn.
210
401
  */
211
402
  export declare function pasteInMarkAt(step: number, place?: number): ToolMarkName;
212
- declare function InspirationCard({ image, category, title, description, prompt, place, specimen, className, }: InspirationIdea & {
403
+ /**
404
+ * The Pick it up overlay (ui#609): two ways to make an idea yours. Controlled:
405
+ * the card opens it from its button; a caller with its own trigger can render
406
+ * it alone. See the file's notes, "Pick it up opens an overlay".
407
+ */
408
+ declare function InspirationPickUpDialog({ idea, open, onOpenChange, onPickUp, onSeeOnGrid, finalFocus, place, pickedUp, onStateChange, specimen, container, className, }: {
409
+ /** The idea: its cover, tag, title, line and prompt. */
410
+ idea: InspirationIdea;
411
+ open: boolean;
412
+ onOpenChange: (open: boolean) => void;
413
+ /** Makes a ready copy live on the grid. Absent: Build it yourself only. */
414
+ onPickUp?: (idea: InspirationIdea) => Promise<InspirationPickUpResult>;
415
+ /** "See it on your grid" was pressed; the overlay closes too. */
416
+ onSeeOnGrid?: (idea: InspirationIdea) => void;
417
+ /** Where focus goes on close: the button that opened it. */
418
+ finalFocus?: React.RefObject<HTMLElement | null>;
419
+ /** The card's place among its cards, for the Paste in mark (as the card's). */
420
+ place?: number;
421
+ /**
422
+ * Already picked up: it opens on Picked up, with "See it on your grid", and
423
+ * offers no second pick-up (Asaf, 2026-11-26). The card sets it from its
424
+ * own memory and the caller's `isPickedUp`.
425
+ */
426
+ pickedUp?: boolean;
427
+ /**
428
+ * Each change of the pick-up's state, and whether the overlay was open when
429
+ * it came: the card holds its carousel while one is on its way, and says an
430
+ * outcome that lands while the overlay is closed.
431
+ */
432
+ onStateChange?: (state: InspirationPickUpState, open: boolean) => void;
433
+ /** Pins one state for the gallery and holds the motion still. Leave it out in product code. */
434
+ specimen?: InspirationPickUpSpecimen;
435
+ /** Where the scrim and the card portal; the document body when absent. */
436
+ container?: React.ComponentProps<typeof DialogContent>["container"];
437
+ className?: string;
438
+ }): React.JSX.Element;
439
+ declare function InspirationCard({ place, priority, specimen, pickUp, className, ...given }: InspirationIdea & {
213
440
  /**
214
441
  * The card's place among the cards shown with it, from 0: its Paste in mark
215
442
  * is that many turns ahead (ui#574). `InspirationCards` sets it.
216
443
  */
217
444
  place?: number;
445
+ /**
446
+ * Ask for the picture first (`fetchpriority="high"`): the cards a page shows
447
+ * when it opens (ui#598). `InspirationCards` sets it.
448
+ */
449
+ priority?: boolean;
218
450
  /** Pins one face of Pick it up and holds the agent still, for the gallery. Leave it out in product code. */
219
451
  specimen?: Specimen;
452
+ /**
453
+ * The opt-in (ui#609): Pick it up opens the overlay, with two ways to make
454
+ * the idea yours, and "Paste in" leaves the card. Without it, the card is as
455
+ * it was.
456
+ */
457
+ pickUp?: InspirationPickUp;
220
458
  className?: string;
221
459
  }): React.JSX.Element;
222
460
  /**
@@ -263,11 +501,17 @@ export declare function inspirationPerPage({ pageSize, columns, secondRow }: {
263
501
  }): number;
264
502
  /** The page, from 0, that holds idea `first` when pages hold `perPage`. */
265
503
  export declare function inspirationPageOf(first: number, perPage: number): number;
504
+ /**
505
+ * The covers to ask for in the background while page `page` (from 0) is shown
506
+ * (ui#598): the next page's, or the first page's after the last, where
507
+ * `autoAdvance` loops. None with one page.
508
+ */
509
+ export declare function inspirationNextCovers(ideas: readonly InspirationIdea[], page: number, perPage: number): string[];
266
510
  /** How often `autoAdvance` turns the page, by default: 30s (ui#575). */
267
511
  export declare const INSPIRATION_AUTO_ADVANCE_MS = 30000;
268
512
  /** The interval `autoAdvance` asks for, in ms; 0 when it is off. */
269
513
  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"> & {
514
+ declare function InspirationCards({ ideas, title, subtitle, pageSize, layout, page: pageProp, defaultPage, onPageChange, autoAdvance, specimen, pickUp, className, onPointerEnter, onPointerLeave, onFocus, onBlur, ...props }: Omit<React.ComponentProps<"section">, "children" | "title"> & {
271
515
  /** Every idea, in order. Shown `pageSize` at a time. */
272
516
  ideas: readonly InspirationIdea[];
273
517
  /** The heading. Defaults to the design's words. */
@@ -298,6 +542,8 @@ declare function InspirationCards({ ideas, title, subtitle, pageSize, layout, pa
298
542
  autoAdvance?: boolean | number;
299
543
  /** Passed to every card on the page: the gallery's pinned faces. */
300
544
  specimen?: Specimen;
545
+ /** The opt-in (ui#609), passed to every card: Pick it up opens the overlay. Without it, the cards are as they were. */
546
+ pickUp?: InspirationPickUp;
301
547
  }): React.JSX.Element;
302
- export { InspirationCard, InspirationCards };
548
+ export { InspirationCard, InspirationCards, InspirationPickUpDialog };
303
549
  //# sourceMappingURL=inspiration-cards.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+JG;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,CAAA;AAE7D,qDAAqD;AACrD,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,mBAAmB,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA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