@cloudgrid-io/ui 0.64.0 → 0.65.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 (112) hide show
  1. package/dist/blocks/add-tile.d.ts +16 -1
  2. package/dist/blocks/add-tile.d.ts.map +1 -1
  3. package/dist/blocks/add-tile.js +20 -3
  4. package/dist/blocks/add-tile.js.map +1 -1
  5. package/dist/blocks/bento-card-hint.d.ts +16 -0
  6. package/dist/blocks/bento-card-hint.d.ts.map +1 -0
  7. package/dist/blocks/bento-card-hint.js +23 -0
  8. package/dist/blocks/bento-card-hint.js.map +1 -0
  9. package/dist/blocks/bento-card.d.ts +59 -0
  10. package/dist/blocks/bento-card.d.ts.map +1 -0
  11. package/dist/blocks/bento-card.js +59 -0
  12. package/dist/blocks/bento-card.js.map +1 -0
  13. package/dist/blocks/coming-soon-hint.d.ts.map +1 -1
  14. package/dist/blocks/coming-soon-hint.js +110 -7
  15. package/dist/blocks/coming-soon-hint.js.map +1 -1
  16. package/dist/blocks/creation-search.d.ts +147 -0
  17. package/dist/blocks/creation-search.d.ts.map +1 -0
  18. package/dist/blocks/creation-search.js +239 -0
  19. package/dist/blocks/creation-search.js.map +1 -0
  20. package/dist/blocks/entity-card.d.ts +80 -2
  21. package/dist/blocks/entity-card.d.ts.map +1 -1
  22. package/dist/blocks/entity-card.js +162 -17
  23. package/dist/blocks/entity-card.js.map +1 -1
  24. package/dist/blocks/from-your-grid.d.ts +66 -0
  25. package/dist/blocks/from-your-grid.d.ts.map +1 -0
  26. package/dist/blocks/from-your-grid.js +63 -0
  27. package/dist/blocks/from-your-grid.js.map +1 -0
  28. package/dist/blocks/grid-profile.d.ts +10 -1
  29. package/dist/blocks/grid-profile.d.ts.map +1 -1
  30. package/dist/blocks/grid-profile.js +57 -6
  31. package/dist/blocks/grid-profile.js.map +1 -1
  32. package/dist/blocks/home-bento.d.ts +86 -0
  33. package/dist/blocks/home-bento.d.ts.map +1 -0
  34. package/dist/blocks/home-bento.js +87 -0
  35. package/dist/blocks/home-bento.js.map +1 -0
  36. package/dist/blocks/home-empty-illustrations.d.ts +37 -0
  37. package/dist/blocks/home-empty-illustrations.d.ts.map +1 -0
  38. package/dist/blocks/home-empty-illustrations.js +47 -0
  39. package/dist/blocks/home-empty-illustrations.js.map +1 -0
  40. package/dist/blocks/home-pinned.d.ts +120 -0
  41. package/dist/blocks/home-pinned.d.ts.map +1 -0
  42. package/dist/blocks/home-pinned.js +58 -0
  43. package/dist/blocks/home-pinned.js.map +1 -0
  44. package/dist/blocks/icons.d.ts +33 -0
  45. package/dist/blocks/icons.d.ts.map +1 -1
  46. package/dist/blocks/icons.js +33 -0
  47. package/dist/blocks/icons.js.map +1 -1
  48. package/dist/blocks/inspiration-cards.d.ts +241 -0
  49. package/dist/blocks/inspiration-cards.d.ts.map +1 -0
  50. package/dist/blocks/inspiration-cards.js +234 -0
  51. package/dist/blocks/inspiration-cards.js.map +1 -0
  52. package/dist/blocks/liquid-glass.d.ts +106 -0
  53. package/dist/blocks/liquid-glass.d.ts.map +1 -0
  54. package/dist/blocks/liquid-glass.js +283 -0
  55. package/dist/blocks/liquid-glass.js.map +1 -0
  56. package/dist/blocks/meter.d.ts +5 -2
  57. package/dist/blocks/meter.d.ts.map +1 -1
  58. package/dist/blocks/meter.js +4 -0
  59. package/dist/blocks/meter.js.map +1 -1
  60. package/dist/blocks/motion.d.ts +46 -0
  61. package/dist/blocks/motion.d.ts.map +1 -0
  62. package/dist/blocks/motion.js +144 -0
  63. package/dist/blocks/motion.js.map +1 -0
  64. package/dist/blocks/needs-attention.d.ts +78 -0
  65. package/dist/blocks/needs-attention.d.ts.map +1 -0
  66. package/dist/blocks/needs-attention.js +29 -0
  67. package/dist/blocks/needs-attention.js.map +1 -0
  68. package/dist/blocks/phosphor-marks.d.ts +12 -0
  69. package/dist/blocks/phosphor-marks.d.ts.map +1 -1
  70. package/dist/blocks/phosphor-marks.js +18 -0
  71. package/dist/blocks/phosphor-marks.js.map +1 -1
  72. package/dist/blocks/ranked-list.d.ts +7 -1
  73. package/dist/blocks/ranked-list.d.ts.map +1 -1
  74. package/dist/blocks/ranked-list.js +8 -6
  75. package/dist/blocks/ranked-list.js.map +1 -1
  76. package/dist/blocks/recent-plugs.d.ts +66 -0
  77. package/dist/blocks/recent-plugs.d.ts.map +1 -0
  78. package/dist/blocks/recent-plugs.js +20 -0
  79. package/dist/blocks/recent-plugs.js.map +1 -0
  80. package/dist/blocks/shared-grid-illustration.d.ts +55 -0
  81. package/dist/blocks/shared-grid-illustration.d.ts.map +1 -0
  82. package/dist/blocks/shared-grid-illustration.js +81 -0
  83. package/dist/blocks/shared-grid-illustration.js.map +1 -0
  84. package/dist/blocks/shelf-strip.d.ts +36 -0
  85. package/dist/blocks/shelf-strip.d.ts.map +1 -0
  86. package/dist/blocks/shelf-strip.js +32 -0
  87. package/dist/blocks/shelf-strip.js.map +1 -0
  88. package/dist/blocks/stat-tile.d.ts +17 -1
  89. package/dist/blocks/stat-tile.d.ts.map +1 -1
  90. package/dist/blocks/stat-tile.js +4 -1
  91. package/dist/blocks/stat-tile.js.map +1 -1
  92. package/dist/blocks/top-creations.d.ts +76 -0
  93. package/dist/blocks/top-creations.d.ts.map +1 -0
  94. package/dist/blocks/top-creations.js +54 -0
  95. package/dist/blocks/top-creations.js.map +1 -0
  96. package/dist/index.d.ts +15 -0
  97. package/dist/index.d.ts.map +1 -1
  98. package/dist/index.js +15 -0
  99. package/dist/index.js.map +1 -1
  100. package/dist/lib/fit.d.ts +39 -0
  101. package/dist/lib/fit.d.ts.map +1 -0
  102. package/dist/lib/fit.js +92 -0
  103. package/dist/lib/fit.js.map +1 -0
  104. package/dist/lib/motion.d.ts +126 -0
  105. package/dist/lib/motion.d.ts.map +1 -0
  106. package/dist/lib/motion.js +132 -0
  107. package/dist/lib/motion.js.map +1 -0
  108. package/dist/ui/dialog.d.ts +7 -1
  109. package/dist/ui/dialog.d.ts.map +1 -1
  110. package/dist/ui/dialog.js +2 -2
  111. package/dist/ui/dialog.js.map +1 -1
  112. package/package.json +2 -1
@@ -0,0 +1,147 @@
1
+ import * as React from "react";
2
+ import { DialogContent } from "../ui/dialog.js";
3
+ import { type EntityKind } from "./entity-card.js";
4
+ /**
5
+ * THE CREATION SEARCH WINDOW FOR HOME (ui#531, Asaf's design, 2026-11-20).
6
+ *
7
+ * Opened from the search button beside the Space menu on Home: a centred
8
+ * dialog over the page's scrim, the library's modal `Dialog`. It fetches
9
+ * nothing. The caller owns the query, the rows and which of the four states
10
+ * shows, and hears every action through a handler.
11
+ *
12
+ * ```
13
+ * .------------------------------------------------- 680 ---.
14
+ * | [ (o) Search creations ] [x] | 20 top, field 48
15
+ * | ------------------------------------------------------ | hairline
16
+ * | Recently opened (or "N creations") | SemiBold 14, steel-strong
17
+ * | [thumb 96x56] demo-shop [type] | rows 80, 3 tall (240),
18
+ * | You · Everyone | the list scrolls past 3
19
+ * | ------------------------------------------------------ |
20
+ * | Search creations across your Grid | 13, steel-strong
21
+ * '----------------------------------------------------------' 24 bottom; 28 aside
22
+ * ```
23
+ *
24
+ * ## The four states (`state`)
25
+ *
26
+ * recent "Recently opened" over `rows`; the footer invites a search
27
+ * results "N creations" over `rows`; the footer says the keys
28
+ * no-match the stacked-rows drawing, "No matching creations" and a hint
29
+ * empty-grid the creations strip with its dashed + tile, two lines and
30
+ * "Add a creation +" (`onAddCreation`)
31
+ *
32
+ * The no-match and empty-grid bodies are 316 tall with no footer, as drawn.
33
+ *
34
+ * ## The row, hover and the active row
35
+ *
36
+ * Thumbnail, name (SemiBold 17), "Owner · Space" (14) and the type icon on
37
+ * its tint at the right. The pointer over a row, or the arrow keys, make it
38
+ * the ACTIVE row: one at a time, and it is the row Enter opens. The active
39
+ * row takes the light cyan highlight; the type icon glides left as the
40
+ * actions (open live, pin, "...") ease in beside it; the gaps close from 16
41
+ * to 12, as the hovered row is drawn. One short transition (the library's
42
+ * `--cg-duration`, 180ms, ease-out) and none under reduced motion.
43
+ *
44
+ * A click anywhere on the row except its actions calls `onOpen(row)`: the
45
+ * row's open control is one button whose hit area covers the row. The arrow
46
+ * calls `onOpenLive(row)` (the live creation in a new tab), the pin
47
+ * `onTogglePin(row)` (`aria-pressed` from `row.pinned`), and "..." opens a
48
+ * menu of `renderMenu(row)`'s items, the same items the creation card's menu
49
+ * has. A row's actions are `inert` until it is active, so only that row's
50
+ * are in the tab order; a row whose actions hold focus stays shown when the
51
+ * pointer moves on.
52
+ *
53
+ * ## A phone
54
+ *
55
+ * The design draws the desktop only. Under 30rem of card (a container query,
56
+ * so a phone's 343) the thumbnail is 64 wide, and the active row's type icon
57
+ * folds away while its actions show, so the name keeps room beside them. The
58
+ * empty grid's strip drops its outer pair under 360 of room.
59
+ *
60
+ * ## Keys
61
+ *
62
+ * Focus starts in the field. Down and up move the active row and wrap at the
63
+ * ends; Enter opens the active row, or the first when none is active yet;
64
+ * Escape closes, through the Dialog. The field is a `combobox` whose popup is
65
+ * the `grid` of rows; `aria-activedescendant` names the active row's open
66
+ * cell, so a screen reader follows the arrows while focus stays in the field.
67
+ *
68
+ * ## Surfaces
69
+ *
70
+ * An overlay: it portals to the body, out of any `data-cg-surface` scope, and
71
+ * draws the same white card over a page on the card, the panel or ink. The
72
+ * cyan highlight, the type tint and the steel lines are `:root` tokens.
73
+ *
74
+ * ## Tokens, and where the design has none
75
+ *
76
+ * field hairline line, radius 10 (`rounded-sm`), 48 tall, 17 text
77
+ * card radius 20 (`rounded-container`), `shadow-float`
78
+ * highlight `--cg-cyan-200` at half, which is the drawn #effdfd on white
79
+ * type tint the app tint is `--cg-primary-20` as drawn
80
+ * 23px titles no 23 rung: `text-heading-lg`, 22
81
+ * add button the library's default Button (40, radius 16, Bold 15), not
82
+ * the drawn 42 / radius 8 / SemiBold
83
+ */
84
+ /** Every line the window writes, as the design writes it. */
85
+ export declare const CREATION_SEARCH_COPY: {
86
+ readonly placeholder: "Search creations";
87
+ readonly close: "Close search";
88
+ readonly recentHeading: "Recently opened";
89
+ readonly recentFooter: "Search creations across your Grid";
90
+ readonly resultsFooter: "Arrow keys to navigate · Enter to open · Esc to close";
91
+ readonly noMatchTitle: "No matching creations";
92
+ readonly noMatchLine: "Try another name or a shorter search.";
93
+ readonly emptyTitle: "Your Grid starts with a creation.";
94
+ readonly emptyLine: "Once you add creations, you can find them here.";
95
+ readonly addCreation: "Add a creation";
96
+ };
97
+ /** The line above the results: "2 creations", "1 creation". */
98
+ export declare function creationCountLabel(count: number): string;
99
+ export type CreationSearchState = "recent" | "results" | "no-match" | "empty-grid";
100
+ export type CreationSearchRow = {
101
+ /** Stable id; React's key. */
102
+ id: string;
103
+ name: string;
104
+ /** "You", or the owner's first name. */
105
+ owner: string;
106
+ /** The Space it lives in. */
107
+ space: string;
108
+ kind: EntityKind;
109
+ /** The thumbnail's URL. Absent or broken, the kind mark on the page ground. */
110
+ thumbnail?: string;
111
+ /** Whether it is pinned: the pin is pressed and filled. */
112
+ pinned?: boolean;
113
+ };
114
+ export type CreationSearchDialogProps = {
115
+ open: boolean;
116
+ onOpenChange: (open: boolean) => void;
117
+ query: string;
118
+ onQueryChange: (query: string) => void;
119
+ /** The recent rows, or the results. Ignored in `no-match` and `empty-grid`. */
120
+ rows: readonly CreationSearchRow[];
121
+ state: CreationSearchState;
122
+ /** A click on the row, or Enter: the creation's page in the grid. */
123
+ onOpen: (row: CreationSearchRow) => void;
124
+ /** The arrow: the live creation in a new tab. Absent, no arrow. */
125
+ onOpenLive?: (row: CreationSearchRow) => void;
126
+ /** The pin. Absent, no pin. */
127
+ onTogglePin?: (row: CreationSearchRow) => void;
128
+ /** The "..." menu's items (`DropdownMenuItem`s). Absent, no "...". */
129
+ renderMenu?: (row: CreationSearchRow) => React.ReactNode;
130
+ /** "Add a creation", in the empty-grid state. Absent, no button. */
131
+ onAddCreation?: () => void;
132
+ /** Modal over the scrim (default). A gallery frame passes `false`. */
133
+ modal?: boolean;
134
+ /** Focus the field on open (default). */
135
+ initialFocus?: boolean;
136
+ /**
137
+ * The row that starts active, as if the pointer were on it: a specimen of
138
+ * the hovered row. Absent, none. A new list starts with none either way.
139
+ */
140
+ defaultActiveIndex?: number;
141
+ /** Where the scrim and the card portal. Absent, the body. */
142
+ container?: React.ComponentProps<typeof DialogContent>["container"];
143
+ className?: string;
144
+ };
145
+ declare function CreationSearchDialog({ open, onOpenChange, query, onQueryChange, rows, state, onOpen, onOpenLive, onTogglePin, renderMenu, onAddCreation, modal, initialFocus, defaultActiveIndex, container, className, }: CreationSearchDialogProps): React.JSX.Element;
146
+ export { CreationSearchDialog };
147
+ //# sourceMappingURL=creation-search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creation-search.d.ts","sourceRoot":"","sources":["../../src/blocks/creation-search.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,EAAuB,aAAa,EAAe,MAAM,sBAAsB,CAAA;AAGtF,OAAO,EAAuC,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAahG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAWvB,CAAA;AAEV,+DAA+D;AAC/D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,YAAY,CAAA;AAElF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,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aAAa,EACb,KAAY,EACZ,YAAmB,EACnB,kBAAuB,EACvB,SAAS,EACT,SAAS,GACV,EAAE,yBAAyB,qBA2J3B;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
@@ -0,0 +1,239 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { cn } from "../lib/cloudgrid-cn.js";
5
+ import { Button } from "../ui/button.js";
6
+ import { DASHED_LINE_CLASS } from "./dashed-line.js";
7
+ import { Dialog, DialogClose, DialogContent, DialogTitle } from "../ui/dialog.js";
8
+ import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from "../ui/dropdown-menu.js";
9
+ import { EMPTY_CREATIONS_PREVIEWS } from "./empty-creations-previews.js";
10
+ import { ENTITY_KIND_ICON, ENTITY_KIND_LABEL } from "./entity-card.js";
11
+ import { CloseIcon, MoreActionsIcon, OpenLiveIcon, PinIcon, PlusIcon, SaveFilledIcon, SearchIcon, } from "./icons.js";
12
+ import { Input } from "../ui/input.js";
13
+ import { Separator } from "../ui/separator.js";
14
+ /**
15
+ * THE CREATION SEARCH WINDOW FOR HOME (ui#531, Asaf's design, 2026-11-20).
16
+ *
17
+ * Opened from the search button beside the Space menu on Home: a centred
18
+ * dialog over the page's scrim, the library's modal `Dialog`. It fetches
19
+ * nothing. The caller owns the query, the rows and which of the four states
20
+ * shows, and hears every action through a handler.
21
+ *
22
+ * ```
23
+ * .------------------------------------------------- 680 ---.
24
+ * | [ (o) Search creations ] [x] | 20 top, field 48
25
+ * | ------------------------------------------------------ | hairline
26
+ * | Recently opened (or "N creations") | SemiBold 14, steel-strong
27
+ * | [thumb 96x56] demo-shop [type] | rows 80, 3 tall (240),
28
+ * | You · Everyone | the list scrolls past 3
29
+ * | ------------------------------------------------------ |
30
+ * | Search creations across your Grid | 13, steel-strong
31
+ * '----------------------------------------------------------' 24 bottom; 28 aside
32
+ * ```
33
+ *
34
+ * ## The four states (`state`)
35
+ *
36
+ * recent "Recently opened" over `rows`; the footer invites a search
37
+ * results "N creations" over `rows`; the footer says the keys
38
+ * no-match the stacked-rows drawing, "No matching creations" and a hint
39
+ * empty-grid the creations strip with its dashed + tile, two lines and
40
+ * "Add a creation +" (`onAddCreation`)
41
+ *
42
+ * The no-match and empty-grid bodies are 316 tall with no footer, as drawn.
43
+ *
44
+ * ## The row, hover and the active row
45
+ *
46
+ * Thumbnail, name (SemiBold 17), "Owner · Space" (14) and the type icon on
47
+ * its tint at the right. The pointer over a row, or the arrow keys, make it
48
+ * the ACTIVE row: one at a time, and it is the row Enter opens. The active
49
+ * row takes the light cyan highlight; the type icon glides left as the
50
+ * actions (open live, pin, "...") ease in beside it; the gaps close from 16
51
+ * to 12, as the hovered row is drawn. One short transition (the library's
52
+ * `--cg-duration`, 180ms, ease-out) and none under reduced motion.
53
+ *
54
+ * A click anywhere on the row except its actions calls `onOpen(row)`: the
55
+ * row's open control is one button whose hit area covers the row. The arrow
56
+ * calls `onOpenLive(row)` (the live creation in a new tab), the pin
57
+ * `onTogglePin(row)` (`aria-pressed` from `row.pinned`), and "..." opens a
58
+ * menu of `renderMenu(row)`'s items, the same items the creation card's menu
59
+ * has. A row's actions are `inert` until it is active, so only that row's
60
+ * are in the tab order; a row whose actions hold focus stays shown when the
61
+ * pointer moves on.
62
+ *
63
+ * ## A phone
64
+ *
65
+ * The design draws the desktop only. Under 30rem of card (a container query,
66
+ * so a phone's 343) the thumbnail is 64 wide, and the active row's type icon
67
+ * folds away while its actions show, so the name keeps room beside them. The
68
+ * empty grid's strip drops its outer pair under 360 of room.
69
+ *
70
+ * ## Keys
71
+ *
72
+ * Focus starts in the field. Down and up move the active row and wrap at the
73
+ * ends; Enter opens the active row, or the first when none is active yet;
74
+ * Escape closes, through the Dialog. The field is a `combobox` whose popup is
75
+ * the `grid` of rows; `aria-activedescendant` names the active row's open
76
+ * cell, so a screen reader follows the arrows while focus stays in the field.
77
+ *
78
+ * ## Surfaces
79
+ *
80
+ * An overlay: it portals to the body, out of any `data-cg-surface` scope, and
81
+ * draws the same white card over a page on the card, the panel or ink. The
82
+ * cyan highlight, the type tint and the steel lines are `:root` tokens.
83
+ *
84
+ * ## Tokens, and where the design has none
85
+ *
86
+ * field hairline line, radius 10 (`rounded-sm`), 48 tall, 17 text
87
+ * card radius 20 (`rounded-container`), `shadow-float`
88
+ * highlight `--cg-cyan-200` at half, which is the drawn #effdfd on white
89
+ * type tint the app tint is `--cg-primary-20` as drawn
90
+ * 23px titles no 23 rung: `text-heading-lg`, 22
91
+ * add button the library's default Button (40, radius 16, Bold 15), not
92
+ * the drawn 42 / radius 8 / SemiBold
93
+ */
94
+ /** Every line the window writes, as the design writes it. */
95
+ export const CREATION_SEARCH_COPY = {
96
+ placeholder: "Search creations",
97
+ close: "Close search",
98
+ recentHeading: "Recently opened",
99
+ recentFooter: "Search creations across your Grid",
100
+ resultsFooter: "Arrow keys to navigate · Enter to open · Esc to close",
101
+ noMatchTitle: "No matching creations",
102
+ noMatchLine: "Try another name or a shorter search.",
103
+ emptyTitle: "Your Grid starts with a creation.",
104
+ emptyLine: "Once you add creations, you can find them here.",
105
+ addCreation: "Add a creation",
106
+ };
107
+ /** The line above the results: "2 creations", "1 creation". */
108
+ export function creationCountLabel(count) {
109
+ return `${count} ${count === 1 ? "creation" : "creations"}`;
110
+ }
111
+ /** The kind's tint behind the type icon. The app tint is the drawn --cg-primary-20. */
112
+ const TYPE_TINT = {
113
+ app: "bg-brand-20",
114
+ inspiration: "bg-kind-inspiration",
115
+ agent: "bg-kind-agent",
116
+ };
117
+ /** One short motion for every moving part of a row. */
118
+ const ROW_MOTION = "duration-(--cg-duration) ease-out motion-reduce:transition-none";
119
+ /**
120
+ * The actions cell's open width: 12 to the type icon, then 32 per action, 4
121
+ * apart. Closed, it is 0 wide, so the type icon sits at the row's edge.
122
+ */
123
+ const ACTIONS_WIDTH = { 1: "w-11", 2: "w-20", 3: "w-29" };
124
+ /**
125
+ * The type icon. On a phone's narrow card the active row has no room for it
126
+ * beside the actions, so there it folds away while they show, and the actions
127
+ * take its place.
128
+ */
129
+ function TypeIcon({ kind, folded }) {
130
+ const Icon = ENTITY_KIND_ICON[kind];
131
+ return (_jsxs("span", { "data-slot": "creation-search-type", "data-kind": kind, className: cn("relative flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-xs text-stone transition-[width,opacity]", ROW_MOTION, TYPE_TINT[kind],
132
+ // Under 30rem of card (a phone's), written out whole for Tailwind's scan.
133
+ folded && "@max-[30rem]/creation-search:w-0 @max-[30rem]/creation-search:opacity-0"), children: [_jsx(Icon, { className: "size-5.5" }), _jsx("span", { className: "sr-only", children: ENTITY_KIND_LABEL[kind] })] }));
134
+ }
135
+ function Thumbnail({ row }) {
136
+ const [failed, setFailed] = React.useState(false);
137
+ const Mark = ENTITY_KIND_ICON[row.kind];
138
+ return (_jsx("span", { "data-slot": "creation-search-thumbnail", className: "flex h-14 w-24 shrink-0 items-center justify-center overflow-hidden rounded-xs bg-page @max-[30rem]/creation-search:h-9.5 @max-[30rem]/creation-search:w-16", children: row.thumbnail && !failed ? (_jsx("img", { src: row.thumbnail, alt: "", decoding: "async", draggable: false, onError: () => setFailed(true), className: "size-full object-cover object-top" })) : (_jsx(Mark, { className: "size-6 text-steel" })) }));
139
+ }
140
+ /** A 32px square action: ghost, radius 8, a 20px glyph in stone. */
141
+ const ACTION_CLASS = "size-8 rounded-xs text-stone hover:bg-(--cg-hover) hover:text-ink aria-expanded:bg-(--cg-hover)";
142
+ function Row({ row, index, cellId, shown, onActivate, onOpen, onOpenLive, onTogglePin, renderMenu, onActionsFocus, }) {
143
+ const actions = (onOpenLive ? 1 : 0) + (onTogglePin ? 1 : 0) + (renderMenu ? 1 : 0);
144
+ return (_jsxs("div", { role: "row", "data-slot": "creation-search-row", "data-active": shown ? "" : undefined, onPointerMove: () => onActivate(index), className: cn("relative flex h-20 shrink-0 items-center rounded-xs px-3 transition-[background-color]", ROW_MOTION, shown && "bg-cyan-tint/50"), children: [_jsx("div", { role: "gridcell", id: cellId, "aria-selected": shown, className: "flex h-full min-w-0 flex-1 items-center", children: _jsxs("button", { type: "button", tabIndex: -1, "data-slot": "creation-search-open", onClick: () => onOpen(row), className: cn("after:absolute after:inset-0 after:rounded-xs after:content-['']", "flex min-w-0 flex-1 cursor-pointer items-center gap-4 text-start outline-none transition-[gap]", ROW_MOTION, shown && "gap-3"), children: [_jsx(Thumbnail, { row: row }), _jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [_jsx("span", { "data-slot": "creation-search-name", className: "truncate font-ui text-heading-sm leading-body font-semibold text-ink", children: row.name }), _jsxs("span", { "data-slot": "creation-search-meta", className: "truncate font-ui text-[length:var(--cg-body-14)] leading-body text-steel-strong", children: [row.owner, " \u00B7 ", row.space] })] }), _jsx(TypeIcon, { kind: row.kind, folded: shown && actions > 0 })] }) }), actions > 0 ? (_jsx("div", { role: "gridcell", "data-slot": "creation-search-actions", inert: !shown, onFocus: () => onActionsFocus(row, true), onBlur: (event) => {
145
+ if (!event.currentTarget.contains(event.relatedTarget))
146
+ onActionsFocus(row, false);
147
+ }, className: cn("relative z-10 flex h-8 shrink-0 justify-end overflow-hidden transition-[width,opacity]", ROW_MOTION, shown ? cn(ACTIONS_WIDTH[actions], "opacity-100") : "w-0 opacity-0"), children: _jsxs("div", { className: "flex shrink-0 gap-1 ps-3", children: [onOpenLive ? (_jsx(Button, { variant: "ghost", size: "icon", "data-slot": "creation-search-open-live", "aria-label": `Open ${row.name} live in a new tab`, onClick: () => onOpenLive(row), className: ACTION_CLASS, children: _jsx(OpenLiveIcon, { className: "size-5" }) })) : null, onTogglePin ? (_jsx(Button, { variant: "ghost", size: "icon", "data-slot": "creation-search-pin", "aria-label": `Pin ${row.name}`, "aria-pressed": Boolean(row.pinned), onClick: () => onTogglePin(row), className: ACTION_CLASS, children: row.pinned ? _jsx(SaveFilledIcon, { className: "size-5" }) : _jsx(PinIcon, { className: "size-5" }) })) : null, renderMenu ? (_jsxs(DropdownMenu, { children: [_jsxs(DropdownMenuTrigger, { "data-slot": "creation-search-menu", render: _jsx(Button, { variant: "ghost", size: "icon", className: ACTION_CLASS }), children: [_jsx(MoreActionsIcon, { className: "size-5" }), _jsxs("span", { className: "sr-only", children: ["More actions for ", row.name] })] }), _jsx(DropdownMenuContent, { align: "end", className: "w-48", children: renderMenu(row) })] })) : null] }) })) : null] }));
148
+ }
149
+ /** The no-match drawing: three empty result tiles, the middle one larger. */
150
+ function EmptyResultTile({ large = false }) {
151
+ return (_jsxs("span", { className: cn("flex shrink-0 items-center gap-2.5 rounded-xs bg-card px-2.5 ring-[1.5px] ring-brand-100 ring-inset", large ? "h-9.5 w-51" : "h-7.5 w-41.5 opacity-40"), children: [_jsx("span", { className: "size-5.5 shrink-0 rounded-2xs bg-brand-100" }), _jsxs("span", { className: "flex flex-col gap-1.25", children: [_jsx("span", { className: "block h-1 w-21.25 rounded-pill bg-brand-100" }), _jsx("span", { className: "block h-1 w-13 rounded-pill bg-brand-100" })] })] }));
152
+ }
153
+ const STATE_BODY = "flex min-h-79 flex-col items-center justify-center gap-4 text-center";
154
+ const STATE_TITLE = "m-0 font-ui text-heading-lg leading-body font-bold text-balance text-ink";
155
+ const STATE_LINE = "m-0 font-ui text-body-sm leading-body text-pretty text-steel-strong";
156
+ function NoMatch() {
157
+ return (_jsxs("div", { "data-slot": "creation-search-no-match", className: STATE_BODY, children: [_jsxs("div", { "aria-hidden": "true", className: "flex h-27.5 w-56 flex-col items-center justify-center gap-1.5", children: [_jsx(EmptyResultTile, {}), _jsx(EmptyResultTile, { large: true }), _jsx(EmptyResultTile, {})] }), _jsx("h3", { className: STATE_TITLE, children: CREATION_SEARCH_COPY.noMatchTitle }), _jsx("p", { className: STATE_LINE, children: CREATION_SEARCH_COPY.noMatchLine })] }));
158
+ }
159
+ /**
160
+ * The empty grid's creations strip: the Home strip's fan at the size this
161
+ * window draws it, 360 wide. Two pictures each side of the dashed + tile,
162
+ * overlapping by 23, stacked towards the middle. Under 360 of room the outer
163
+ * pair drops, as `EmptyCreations` does.
164
+ */
165
+ const FAN_SLOTS = [
166
+ { outer: true, className: "z-10 -me-5.75 h-11 w-19" },
167
+ { outer: false, className: "z-20 -me-5.75 h-13.75 w-23.5" },
168
+ { outer: false, className: "z-20 -ms-5.75 h-13.75 w-23.5" },
169
+ { outer: true, className: "z-10 -ms-5.75 h-11 w-19" },
170
+ ];
171
+ function EmptyGrid({ onAddCreation }) {
172
+ const picture = (index) => {
173
+ const slot = FAN_SLOTS[index];
174
+ return (_jsx("span", { "data-slot": "creation-search-fan-picture", "data-outer": slot.outer ? "" : undefined, className: cn("relative block shrink-0 overflow-hidden rounded-md bg-raised shadow-card", slot.className, slot.outer && "@max-[22.5rem]/creation-search-empty:hidden"), children: _jsx("img", { src: EMPTY_CREATIONS_PREVIEWS[index % EMPTY_CREATIONS_PREVIEWS.length], alt: "", decoding: "async", draggable: false, className: "block size-full object-cover" }) }, index));
175
+ };
176
+ return (_jsxs("div", { "data-slot": "creation-search-empty-grid", className: cn("@container/creation-search-empty", STATE_BODY), children: [_jsxs("div", { "data-slot": "creation-search-fan", "aria-hidden": "true", className: "flex h-26 items-center justify-center", children: [picture(0), picture(1), _jsx("span", { "data-slot": "creation-search-fan-add", className: cn("relative z-30 flex h-16.25 w-28 shrink-0 items-center justify-center rounded-lg bg-page shadow-card", DASHED_LINE_CLASS), children: _jsx(PlusIcon, { className: "size-5.75 text-steel" }) }), picture(2), picture(3)] }), _jsx("h3", { className: STATE_TITLE, children: CREATION_SEARCH_COPY.emptyTitle }), _jsx("p", { className: STATE_LINE, children: CREATION_SEARCH_COPY.emptyLine }), onAddCreation ? (_jsxs(Button, { type: "button", "data-slot": "creation-search-add", onClick: () => onAddCreation(), children: [CREATION_SEARCH_COPY.addCreation, _jsx(PlusIcon, {})] })) : null] }));
177
+ }
178
+ function CreationSearchDialog({ open, onOpenChange, query, onQueryChange, rows, state, onOpen, onOpenLive, onTogglePin, renderMenu, onAddCreation, modal = true, initialFocus = true, defaultActiveIndex = -1, container, className, }) {
179
+ const baseId = React.useId();
180
+ const listId = `${baseId}-list`;
181
+ const labelId = `${baseId}-label`;
182
+ const cellId = (index) => `${baseId}-row-${index}`;
183
+ const inputRef = React.useRef(null);
184
+ const listRef = React.useRef(null);
185
+ const listed = state === "recent" || state === "results";
186
+ const count = listed ? rows.length : 0;
187
+ // The active row: -1 until the pointer or a key picks one. A new list (other
188
+ // rows, another state, a reopen) starts with none, so it is reset while
189
+ // rendering when that changes rather than in an effect a frame later.
190
+ const [active, setActive] = React.useState(defaultActiveIndex);
191
+ const listKey = `${open ? 1 : 0}:${state}:${rows.map((row) => row.id).join("\u0000")}`;
192
+ const [seenListKey, setSeenListKey] = React.useState(listKey);
193
+ if (seenListKey !== listKey) {
194
+ setSeenListKey(listKey);
195
+ setActive(-1);
196
+ }
197
+ // A row whose actions hold focus stays shown when the pointer moves on, so
198
+ // the focused control never turns inert under the keyboard. (An open "..."
199
+ // menu needs nothing: it is modal and holds the pointer until it closes.)
200
+ const [focusRow, setFocusRow] = React.useState(null);
201
+ const [scrollTo, setScrollTo] = React.useState(-1);
202
+ React.useEffect(() => {
203
+ if (scrollTo < 0)
204
+ return;
205
+ const row = listRef.current?.children[scrollTo];
206
+ if (row instanceof HTMLElement)
207
+ row.scrollIntoView({ block: "nearest" });
208
+ }, [scrollTo]);
209
+ function moveBy(step) {
210
+ if (count === 0)
211
+ return;
212
+ const next = active < 0 ? (step === 1 ? 0 : count - 1) : (active + step + count) % count;
213
+ setActive(next);
214
+ setScrollTo(next);
215
+ }
216
+ function onKeyDown(event) {
217
+ if (event.nativeEvent.isComposing)
218
+ return;
219
+ if (event.key === "ArrowDown") {
220
+ event.preventDefault();
221
+ moveBy(1);
222
+ }
223
+ else if (event.key === "ArrowUp") {
224
+ event.preventDefault();
225
+ moveBy(-1);
226
+ }
227
+ else if (event.key === "Enter" && count > 0) {
228
+ event.preventDefault();
229
+ onOpen(rows[active >= 0 && active < count ? active : 0]);
230
+ }
231
+ }
232
+ const activeShown = active >= 0 && active < count;
233
+ return (_jsx(Dialog, { open: open, onOpenChange: (next) => onOpenChange(next), modal: modal, children: _jsxs(DialogContent, { showCloseButton: false, container: container, initialFocus: initialFocus ? inputRef : false, "data-slot": "creation-search", "data-state": state, className: cn("@container/creation-search top-[18svh] flex max-h-[calc(82svh-1rem)] translate-y-0 flex-col gap-4 rounded-container border-0 px-4 pt-5 pb-6 font-ui shadow-float sm:max-w-170 sm:px-7", "motion-reduce:animate-none", className), children: [_jsx(DialogTitle, { className: "sr-only", children: CREATION_SEARCH_COPY.placeholder }), _jsxs("div", { "data-slot": "creation-search-header", className: "flex h-12 shrink-0 items-center gap-3", children: [_jsxs("div", { className: "relative min-w-0 flex-1", children: [_jsx(SearchIcon, { className: "pointer-events-none absolute start-4 top-1/2 size-5.5 -translate-y-1/2 text-stone" }), _jsx(Input, { ref: inputRef, type: "text", role: "combobox", "data-slot": "creation-search-field", "aria-label": CREATION_SEARCH_COPY.placeholder, "aria-autocomplete": "list", "aria-haspopup": "grid", "aria-expanded": count > 0, "aria-controls": listed ? listId : undefined, "aria-activedescendant": activeShown ? cellId(active) : undefined, autoComplete: "off", spellCheck: false, placeholder: CREATION_SEARCH_COPY.placeholder, value: query, onChange: (event) => onQueryChange(event.target.value), onKeyDown: onKeyDown, className: "h-12 rounded-sm ps-12.25 pe-4 font-ui text-heading-sm leading-body text-ink placeholder:text-ink md:text-heading-sm" })] }), _jsxs(DialogClose, { "data-slot": "creation-search-close", render: _jsx(Button, { variant: "ghost", size: "icon", className: "size-11 rounded-xs text-stone hover:bg-(--cg-hover) hover:text-ink" }), children: [_jsx(CloseIcon, { className: "size-6" }), _jsx("span", { className: "sr-only", children: CREATION_SEARCH_COPY.close })] })] }), _jsx(Separator, { className: "bg-hairline" }), listed ? (_jsxs(_Fragment, { children: [_jsx("p", { id: labelId, "data-slot": "creation-search-heading", "aria-live": "polite", className: "m-0 text-[length:var(--cg-body-14)] leading-body font-semibold text-steel-strong", children: state === "recent" ? CREATION_SEARCH_COPY.recentHeading : creationCountLabel(count) }), _jsx("div", { ref: listRef, id: listId, role: "grid", "aria-labelledby": labelId, "data-slot": "creation-search-list", className: "flex h-60 shrink-0 flex-col overflow-y-auto", children: rows.map((row, index) => (_jsx(Row, { row: row, index: index, cellId: cellId(index), shown: index === active || row.id === focusRow, onActivate: (i) => {
234
+ if (i !== active)
235
+ setActive(i);
236
+ }, onOpen: onOpen, onOpenLive: onOpenLive, onTogglePin: onTogglePin, renderMenu: renderMenu, onActionsFocus: (r, focused) => setFocusRow((current) => (focused ? r.id : current === r.id ? null : current)) }, row.id))) }), _jsx(Separator, { className: "bg-hairline" }), _jsx("p", { "data-slot": "creation-search-footer", className: "m-0 text-center text-caption leading-body text-steel-strong", children: state === "recent" ? CREATION_SEARCH_COPY.recentFooter : CREATION_SEARCH_COPY.resultsFooter })] })) : state === "no-match" ? (_jsx(NoMatch, {})) : (_jsx(EmptyGrid, { onAddCreation: onAddCreation }))] }) }));
237
+ }
238
+ export { CreationSearchDialog };
239
+ //# sourceMappingURL=creation-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creation-search.js","sourceRoot":"","sources":["../../src/blocks/creation-search.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACtF,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAA;A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AAE,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAZzG,GAAG,CAAC,EAAE,CAaX,CACH,CAAC,GACE,EACN,KAAC,SAAS,IAAC,SAAS,EAAC,aAAa,GAAG,EACrC,yBAAa,wBAAwB,EAAC,SAAS,EAAC,6DAA6D,YAC1G,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC,YAAY,CAAC,CAAC,CAAC,oBAAoB,CAAC,aAAa,GAC1F,IACH,CACJ,CAAC,CAAC,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,CACzB,KAAC,OAAO,KAAG,CACZ,CAAC,CAAC,CAAC,CACF,KAAC,SAAS,IAAC,aAAa,EAAE,aAAa,GAAI,CAC5C,IACa,GACT,CACV,CAAA;AACH,CAAC;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
@@ -461,6 +461,16 @@ export type EntityCardTileSize = (typeof ENTITY_CARD_TILE_SIZE_ORDER)[number];
461
461
  * `AddTile` reads this table, so the dashed Add tile is the same box.
462
462
  */
463
463
  export declare const ENTITY_CARD_TILE_BOX: Record<EntityCardTileSize, string>;
464
+ /**
465
+ * THE HOME CARD'S BOX (#530): 302 x 238, the new Console Home's creation card
466
+ * under "My creations" and "From your grid" (Asaf, 2026-11-20). Four of them
467
+ * and three 24px gaps are the Home's 1280 column.
468
+ *
469
+ * A box of its own rather than a third tile size, for the reason the tiles are
470
+ * not grid sizes: a consumer keeping a `Record<EntityCardTileSize, …>` would
471
+ * stop compiling. `look="home"` reads it, and so does `AddTile look="home"`.
472
+ */
473
+ export declare const ENTITY_CARD_HOME_BOX = "w-75.5 h-59.5";
464
474
  /**
465
475
  * The kind badge on its own, exported because a listing header, a detail page or
466
476
  * a row may want the same mark without a card around it.
@@ -492,11 +502,17 @@ export declare const ENTITY_CARD_TILE_BOX: Record<EntityCardTileSize, string>;
492
502
  * an `sr-only` span, because "agent" is information and a decorative mark is not
493
503
  * a way to convey it.
494
504
  */
495
- declare function EntityKindBadge({ kind, size, className, ...props }: Omit<React.ComponentProps<"span">, "children"> & {
505
+ declare function EntityKindBadge({ kind, size, lifted, className, ...props }: Omit<React.ComponentProps<"span">, "children"> & {
496
506
  kind: EntityKind;
497
507
  size?: "sm" | "md";
508
+ /**
509
+ * The `shadow-mark` lift, which is what separates the tint from a picture
510
+ * under it. On by default; `false` for a badge on a plain ground, as the Home
511
+ * card's name row draws it (#530), where there is nothing to lift it from.
512
+ */
513
+ lifted?: boolean;
498
514
  }): React.JSX.Element;
499
- declare function EntityCard({ title, slug, description, size, titleLines, descriptionLines, status, statusDot, headerActions, stats, restStat, seed, previewUrl, kind, reveal, openDisabledReason, dashboardHref, settingsHref, primaryAction, linkComponent, creator, panelMeta, href, ariaLabel, meta, footer, className, children, ...props }: Omit<React.ComponentProps<"div">, "ref" | "title"> & {
515
+ declare function EntityCard({ title, slug, description, size, titleLines, descriptionLines, status, statusDot, headerActions, stats, restStat, look, comments, views, byline, owner, pinned, onTogglePin, onOpenLive, menu, seed, previewUrl, kind, reveal, openDisabledReason, dashboardHref, settingsHref, primaryAction, linkComponent, creator, panelMeta, href, ariaLabel, meta, footer, className, children, ...props }: Omit<React.ComponentProps<"div">, "ref" | "title"> & {
500
516
  title: string;
501
517
  /** The entity's address, in the mono utility face. */
502
518
  slug?: string;
@@ -566,6 +582,68 @@ declare function EntityCard({ title, slug, description, size, titleLines, descri
566
582
  * keeps `stats`, and a row ignores it.
567
583
  */
568
584
  restStat?: EntityCardStat;
585
+ /**
586
+ * `"home"` is the new Console Home's creation card (#530, Asaf, 2026-11-20),
587
+ * the card under "My creations" and "From your grid". Opt-in: a card that
588
+ * does not pass it renders exactly as it did.
589
+ *
590
+ * What it changes, and nothing else:
591
+ *
592
+ * the box `ENTITY_CARD_HOME_BOX`, 302 x 238, fixed like the tiles, and
593
+ * `size` is not read for it. The hairline and the 12px corner
594
+ * stay; Elevation 1 goes, because the design draws none.
595
+ * the pill `comments` and `views` on the picture's top right, where the
596
+ * kind badge sat. A count shows only above zero.
597
+ * the row the state dot, the name with `byline` (and `owner`) under
598
+ * it, and the kind mark at the right, flat. It replaces the
599
+ * tiles' name row, so `restStat` is not drawn: the views are on
600
+ * the pill. The name is the card's door (the details link,
601
+ * stretched over the card). On hover or focus the mark slides
602
+ * left and open, pin and more ease in to its right
603
+ * (`onOpenLive` or `href`, `onTogglePin` and `pinned`, `menu`).
604
+ * the panel the description alone, sliding up over the picture's bottom
605
+ * (Asaf, 2026-11-20, on PR #534). Today's panel, its two door
606
+ * icons, the creator, `panelMeta`, `headerActions` and the
607
+ * disabled-open reason are not drawn in this look.
608
+ */
609
+ look?: "home";
610
+ /** Comments, on the Home card's pill. Read only with `look="home"`; shown only above zero. */
611
+ comments?: number;
612
+ /** Views, on the Home card's pill. Read only with `look="home"`; shown only above zero. */
613
+ views?: number;
614
+ /**
615
+ * The Home card's line under the name: "By you · 2 days ago" for the
616
+ * builder's own creations, "Shared 2 days ago" in From your grid. A node,
617
+ * because the words and the time are the product's. Read only with
618
+ * `look="home"`.
619
+ */
620
+ byline?: React.ReactNode;
621
+ /**
622
+ * Who made it, at the start of the Home card's line: their avatar (the
623
+ * library's `Avatar` at 18, or the caller's node in its place) and their name,
624
+ * then " · " and `byline`. From your grid passes it ("Sapir L · Plugged 2
625
+ * days ago"); My creations does not ("By you · 2 days ago"). Read only with
626
+ * `look="home"`.
627
+ */
628
+ owner?: {
629
+ name: string;
630
+ avatar?: React.ReactNode;
631
+ };
632
+ /** Whether it is pinned: the Home row's pin is filled, brand purple, and named "Unpin". */
633
+ pinned?: boolean;
634
+ /** Pins or unpins it. Its presence is what draws the Home row's pin. Read only with `look="home"`. */
635
+ onTogglePin?: () => void;
636
+ /**
637
+ * Opens the live creation, in a new tab: the caller's to do. Without it, the
638
+ * Home row's open is a plain new-tab link to `href`. Read only with `look="home"`.
639
+ */
640
+ onOpenLive?: () => void;
641
+ /**
642
+ * The items of the card's menu, the Home row's "more" (the vertical dots):
643
+ * what `headerActions`' menu holds on today's card. Pass `DropdownMenuItem`s.
644
+ * Read only with `look="home"`.
645
+ */
646
+ menu?: React.ReactNode;
569
647
  /**
570
648
  * The entity's stable id. Its presence is what turns the preview region on,
571
649
  * and its value is what picks the identity look. Pass the id, not the title.
@@ -1 +1 @@
1
- {"version":3,"file":"entity-card.d.ts","sourceRoot":"","sources":["../../src/blocks/entity-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAgB9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgXG;AAEH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,0CAA2C,CAAA;AAEzE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,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