@cloudgrid-io/ui 0.69.0 → 0.71.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 (99) 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/add-tile.d.ts +17 -12
  8. package/dist/blocks/add-tile.d.ts.map +1 -1
  9. package/dist/blocks/add-tile.js +26 -14
  10. package/dist/blocks/add-tile.js.map +1 -1
  11. package/dist/blocks/browse-categories.d.ts +80 -0
  12. package/dist/blocks/browse-categories.d.ts.map +1 -0
  13. package/dist/blocks/browse-categories.js +106 -0
  14. package/dist/blocks/browse-categories.js.map +1 -0
  15. package/dist/blocks/creation-search.d.ts +145 -102
  16. package/dist/blocks/creation-search.d.ts.map +1 -1
  17. package/dist/blocks/creation-search.js +503 -125
  18. package/dist/blocks/creation-search.js.map +1 -1
  19. package/dist/blocks/empty-creations.d.ts +29 -2
  20. package/dist/blocks/empty-creations.d.ts.map +1 -1
  21. package/dist/blocks/empty-creations.js +38 -14
  22. package/dist/blocks/empty-creations.js.map +1 -1
  23. package/dist/blocks/entity-card.d.ts +5 -1
  24. package/dist/blocks/entity-card.d.ts.map +1 -1
  25. package/dist/blocks/entity-card.js +3 -2
  26. package/dist/blocks/entity-card.js.map +1 -1
  27. package/dist/blocks/feed-row.d.ts +92 -0
  28. package/dist/blocks/feed-row.d.ts.map +1 -0
  29. package/dist/blocks/feed-row.js +30 -0
  30. package/dist/blocks/feed-row.js.map +1 -0
  31. package/dist/blocks/filter-tabs.d.ts +12 -1
  32. package/dist/blocks/filter-tabs.d.ts.map +1 -1
  33. package/dist/blocks/filter-tabs.js +11 -2
  34. package/dist/blocks/filter-tabs.js.map +1 -1
  35. package/dist/blocks/greeting.d.ts +42 -0
  36. package/dist/blocks/greeting.d.ts.map +1 -0
  37. package/dist/blocks/greeting.js +38 -0
  38. package/dist/blocks/greeting.js.map +1 -0
  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 +137 -24
  44. package/dist/blocks/home-pinned.d.ts.map +1 -1
  45. package/dist/blocks/home-pinned.js +285 -38
  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 +114 -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 +234 -5
  56. package/dist/blocks/inspiration-cards.d.ts.map +1 -1
  57. package/dist/blocks/inspiration-cards.js +289 -8
  58. package/dist/blocks/inspiration-cards.js.map +1 -1
  59. package/dist/blocks/inspiration-gallery.d.ts +139 -0
  60. package/dist/blocks/inspiration-gallery.d.ts.map +1 -0
  61. package/dist/blocks/inspiration-gallery.js +189 -0
  62. package/dist/blocks/inspiration-gallery.js.map +1 -0
  63. package/dist/blocks/jump-back-in.d.ts +251 -0
  64. package/dist/blocks/jump-back-in.d.ts.map +1 -0
  65. package/dist/blocks/jump-back-in.js +275 -0
  66. package/dist/blocks/jump-back-in.js.map +1 -0
  67. package/dist/blocks/load-more-grid.d.ts +125 -0
  68. package/dist/blocks/load-more-grid.d.ts.map +1 -0
  69. package/dist/blocks/load-more-grid.js +157 -0
  70. package/dist/blocks/load-more-grid.js.map +1 -0
  71. package/dist/blocks/menu-trigger.d.ts +7 -2
  72. package/dist/blocks/menu-trigger.d.ts.map +1 -1
  73. package/dist/blocks/menu-trigger.js +2 -0
  74. package/dist/blocks/menu-trigger.js.map +1 -1
  75. package/dist/blocks/phosphor-marks.d.ts +17 -1
  76. package/dist/blocks/phosphor-marks.d.ts.map +1 -1
  77. package/dist/blocks/phosphor-marks.js +25 -1
  78. package/dist/blocks/phosphor-marks.js.map +1 -1
  79. package/dist/blocks/pin-mark.d.ts +40 -0
  80. package/dist/blocks/pin-mark.d.ts.map +1 -0
  81. package/dist/blocks/pin-mark.js +40 -0
  82. package/dist/blocks/pin-mark.js.map +1 -0
  83. package/dist/blocks/start-card.d.ts +76 -0
  84. package/dist/blocks/start-card.d.ts.map +1 -0
  85. package/dist/blocks/start-card.js +82 -0
  86. package/dist/blocks/start-card.js.map +1 -0
  87. package/dist/blocks/stat-tile.d.ts +20 -19
  88. package/dist/blocks/stat-tile.d.ts.map +1 -1
  89. package/dist/blocks/stat-tile.js +32 -3
  90. package/dist/blocks/stat-tile.js.map +1 -1
  91. package/dist/index.d.ts +9 -0
  92. package/dist/index.d.ts.map +1 -1
  93. package/dist/index.js +9 -0
  94. package/dist/index.js.map +1 -1
  95. package/dist/lib/motion.d.ts +14 -0
  96. package/dist/lib/motion.d.ts.map +1 -1
  97. package/dist/lib/motion.js +4 -0
  98. package/dist/lib/motion.js.map +1 -1
  99. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { cn } from "../lib/cloudgrid-cn.js";
4
+ import { ACTION_LINK_CLASS, ActionLink } from "./action-link.js";
5
+ import { Avatar } from "./avatar.js";
6
+ import { CommentsIcon, PickupsIcon, PlugIcon, ReactionsIcon } from "./icons.js";
7
+ const KIND_ICON = {
8
+ reaction: ReactionsIcon,
9
+ comment: CommentsIcon,
10
+ pickup: PickupsIcon,
11
+ plug: PlugIcon,
12
+ };
13
+ const BODY_CLASS = "flex min-h-14 min-w-0 flex-1 items-center gap-3";
14
+ // Every clickable shows the hand (Asaf's standing rule); a row that is not a
15
+ // link does not, so it keeps the arrow.
16
+ const ACTION_CLASS = "shrink-0 cursor-pointer font-bold";
17
+ function FeedRow({ time, timePlacement = "below", person, kind, href, action, className, children, ...props }) {
18
+ const textId = React.useId();
19
+ const Icon = kind !== undefined ? KIND_ICON[kind] : undefined;
20
+ const linked = href !== undefined;
21
+ const timeNode = (_jsx("span", { "data-slot": "feed-row-time", "data-placement": timePlacement, className: cn("text-caption text-faint-strong", timePlacement === "end" && "ms-auto shrink-0"), children: time }));
22
+ const content = (_jsxs(_Fragment, { children: [person !== undefined ? (_jsx("span", { "data-slot": "feed-row-leading", className: "flex shrink-0", children: _jsx(Avatar, { name: person.name, seed: person.seed, src: person.src, size: 32 }) })) : Icon !== undefined ? (_jsx("span", { "data-slot": "feed-row-leading", className: "flex shrink-0", children: _jsx("span", { "data-slot": "feed-row-icon", "aria-hidden": "true", className: "flex size-8 items-center justify-center rounded-sm bg-brand-100 text-stone", children: _jsx(Icon, { className: "size-4.5" }) }) })) : null, _jsxs("span", { "data-slot": "feed-row-lines", className: "grid min-w-0 gap-0.5", children: [_jsx("span", { id: textId, "data-slot": "feed-row-text", className: cn("text-body-sm text-ink", linked && "group-hover/feed-row:underline"), children: children }), timePlacement === "below" ? timeNode : null] }), timePlacement === "end" ? timeNode : null] }));
23
+ return (_jsxs("li", { "data-slot": "feed-row", "data-kind": person === undefined ? kind : undefined, className: cn("flex min-w-0 items-center gap-3", className), ...props, children: [linked ? (_jsx("a", { "data-slot": "feed-row-body", href: href, className: cn(BODY_CLASS, "group/feed-row cursor-pointer rounded-xs text-inherit no-underline underline-offset-4 outline-none focus-line"), children: content })) : (_jsx("div", { "data-slot": "feed-row-body", className: BODY_CLASS, children: content })), action !== undefined ? (action.href !== undefined ? (_jsx(ActionLink, { "data-slot": "feed-row-action", weight: "bold", href: action.href, "aria-describedby": textId, className: ACTION_CLASS, children: action.label })) : (_jsx("button", { type: "button", "data-slot": "feed-row-action", "aria-describedby": textId, onClick: action.onClick, className: cn(ACTION_LINK_CLASS, ACTION_CLASS, "border-0 bg-transparent p-0"), children: action.label }))) : null] }));
24
+ }
25
+ /** The feed: a real list, its rows 8 apart. */
26
+ function FeedList({ className, ...props }) {
27
+ return _jsx("ul", { "data-slot": "feed-list", className: cn("m-0 grid min-w-0 list-none gap-2 p-0", className), ...props });
28
+ }
29
+ export { FeedList, FeedRow };
30
+ //# sourceMappingURL=feed-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feed-row.js","sourceRoot":"","sources":["../../src/blocks/feed-row.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAuExF,MAAM,SAAS,GAAqE;IAClF,QAAQ,EAAE,aAAa;IACvB,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,WAAW;IACnB,IAAI,EAAE,QAAQ;CACf,CAAA;AAED,MAAM,UAAU,GAAG,iDAAiD,CAAA;AACpE,6EAA6E;AAC7E,wCAAwC;AACxC,MAAM,YAAY,GAAG,mCAAmC,CAAA;AAExD,SAAS,OAAO,CAAC,EACf,IAAI,EACJ,aAAa,GAAG,OAAO,EACvB,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EAeT;IACC,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,EAAE,CAAA;IAC5B,MAAM,IAAI,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC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AE,EAAE,CAAC,iCAAiC,EAAE,SAAS,CAAC,KACvD,KAAK,aAER,MAAM,CAAC,CAAC,CAAC,CACR,yBACY,eAAe,EACzB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE,CACX,UAAU,EACV,+GAA+G,CAChH,YAEA,OAAO,GACN,CACL,CAAC,CAAC,CAAC,CACF,2BAAe,eAAe,EAAC,SAAS,EAAE,UAAU,YACjD,OAAO,GACJ,CACP,EACA,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CACtB,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAC1B,KAAC,UAAU,iBACC,iBAAiB,EAC3B,MAAM,EAAC,MAAM,EACb,IAAI,EAAE,MAAM,CAAC,IAAI,sBACC,MAAM,EACxB,SAAS,EAAE,YAAY,YAEtB,MAAM,CAAC,KAAK,GACF,CACd,CAAC,CAAC,CAAC,CACF,iBACE,IAAI,EAAC,QAAQ,eACH,iBAAiB,sBACT,MAAM,EACxB,OAAO,EAAE,MAAM,CAAC,OAAO,EACvB,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,YAAY,EAAE,6BAA6B,CAAC,YAE5E,MAAM,CAAC,KAAK,GACN,CACV,CACF,CAAC,CAAC,CAAC,IAAI,IACL,CACN,CAAA;AACH,CAAC;AAED,+CAA+C;AAC/C,SAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA8B;IACnE,OAAO,0BAAc,WAAW,EAAC,SAAS,EAAE,EAAE,CAAC,sCAAsC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAA;AAClH,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAA"}
@@ -98,13 +98,24 @@ declare function FilterTabs({ value, onValueChange, label, className, ...props }
98
98
  * a screen reader and an sr-only " or more" is read in its place, so a label
99
99
  * that is not text, which keeps its content name, is read the same way.
100
100
  * Without `count` it does nothing.
101
+ *
102
+ * ## An icon before the label (ui#607)
103
+ *
104
+ * `icon` draws the caller's 16px mark 6 before the label, as the Grid page's
105
+ * Browse pills do ("Internal tools 6" after a wrench). It is decoration: hidden
106
+ * from a screen reader, so the tab is still named by its label and count. It
107
+ * takes the label's colour (`currentColor`), so it follows the pressed chip,
108
+ * the hover and the surface with it. Without `icon` the tab is the markup of
109
+ * before, byte for byte.
101
110
  */
102
- declare function FilterTab({ className, count, countMore, children, ...props }: Omit<Toggle.Props, "value"> & {
111
+ declare function FilterTab({ className, count, countMore, icon, children, ...props }: Omit<Toggle.Props, "value"> & {
103
112
  value: string;
104
113
  /** What the tab holds, drawn after the label. Omit while it is unknown. */
105
114
  count?: number;
106
115
  /** The count is a floor: drawn "1,234+", read "1,234 or more" (ui#475). */
107
116
  countMore?: boolean;
117
+ /** A 16px mark before the label, decoration only (ui#607). The caller's. */
118
+ icon?: React.ReactNode;
108
119
  }): React.JSX.Element;
109
120
  export { FilterTab, FilterTabs };
110
121
  //# sourceMappingURL=filter-tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filter-tabs.d.ts","sourceRoot":"","sources":["../../src/blocks/filter-tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAKzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,aAAa,EACb,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,GAAG,eAAe,GAAG,UAAU,CAAC,GAAG;IACpF,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CA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jB,SAAS,EACT,KAAK,EACL,SAAiB,EACjB,IAAI,EACJ,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2EAA2E;IAC3E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB,qBAmDA;AAED,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA"}
@@ -102,8 +102,17 @@ function FilterTabs({ value, onValueChange, label, className, ...props }) {
102
102
  * a screen reader and an sr-only " or more" is read in its place, so a label
103
103
  * that is not text, which keeps its content name, is read the same way.
104
104
  * Without `count` it does nothing.
105
+ *
106
+ * ## An icon before the label (ui#607)
107
+ *
108
+ * `icon` draws the caller's 16px mark 6 before the label, as the Grid page's
109
+ * Browse pills do ("Internal tools 6" after a wrench). It is decoration: hidden
110
+ * from a screen reader, so the tab is still named by its label and count. It
111
+ * takes the label's colour (`currentColor`), so it follows the pressed chip,
112
+ * the hover and the surface with it. Without `icon` the tab is the markup of
113
+ * before, byte for byte.
105
114
  */
106
- function FilterTab({ className, count, countMore = false, children, ...props }) {
115
+ function FilterTab({ className, count, countMore = false, icon, children, ...props }) {
107
116
  const number = count === undefined ? undefined : formatChartNumber(count);
108
117
  // A text label is named outright, "Everything, 3"; a caller's own aria-label
109
118
  // (in props, spread after) still wins.
@@ -118,7 +127,7 @@ function FilterTab({ className, count, countMore = false, children, ...props })
118
127
  // A 0-count tab's label: the readable muted rung, a step lighter than
119
128
  // Body on every surface (cn replaces Body and the panel's Ink). Pressed
120
129
  // still wins.
121
- count === 0 && "text-faint-strong in-data-[cg-surface=panel]:text-faint-strong", className), ...props, children: [children, count !== undefined && (_jsxs("span", { "data-slot": "filter-tab-count", className: "ms-1 text-faint-strong tabular-nums in-data-[pressed]:text-brand-press", children: [number, countMore ? (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": "true", children: "+" }), _jsx("span", { className: "sr-only", children: " or more" })] })) : null] }))] }));
130
+ count === 0 && "text-faint-strong in-data-[cg-surface=panel]:text-faint-strong", className), ...props, children: [icon !== undefined && icon !== null && icon !== false ? (_jsx("span", { "data-slot": "filter-tab-icon", "aria-hidden": "true", className: "me-1.5 inline-flex size-4 shrink-0 items-center justify-center [&>svg]:size-4", children: icon })) : null, children, count !== undefined && (_jsxs("span", { "data-slot": "filter-tab-count", className: "ms-1 text-faint-strong tabular-nums in-data-[pressed]:text-brand-press", children: [number, countMore ? (_jsxs(_Fragment, { children: [_jsx("span", { "aria-hidden": "true", children: "+" }), _jsx("span", { className: "sr-only", children: " or more" })] })) : null] }))] }));
122
131
  }
123
132
  export { FilterTab, FilterTabs };
124
133
  //# sourceMappingURL=filter-tabs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"filter-tabs.js","sourceRoot":"","sources":["../../src/blocks/filter-tabs.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAEzD,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,SAAS,UAAU,CAAC,EAClB,KAAK,EACL,aAAa,EACb,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EAQT;IACC,OAAO,CACL,KAAC,WAAW,iBACA,aAAa,gBACX,KAAK,EACjB,KAAK,EAAE,CAAC,KAAK,CAAC,EACd,aAAa,EAAE,CAAC,IAAI,EAAE,E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S,IAAI,CACtB,6BAAgB,kBAAkB,EAAC,SAAS,EAAC,wEAAwE,aAClH,MAAM,EACN,SAAS,CAAC,CAAC,CAAC,CACX,8BACE,8BAAkB,MAAM,kBAAS,EACjC,eAAM,SAAS,EAAC,SAAS,yBAAgB,IACxC,CACJ,CAAC,CAAC,CAAC,IAAI,IACH,CACR,IACM,CACV,CAAA;AACH,CAAC;AAED,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * The greeting at the top of the Grid page (ui#607, Asaf, 2026-11-25,
3
+ * cloudgrid-console#1183): "Good afternoon, Asaf", centred, with one line
4
+ * under it ("3 new creations on Atomic Labs this week.").
5
+ *
6
+ * ## A sibling of PageHeading, not a change to it
7
+ *
8
+ * `PageHeading` writes its title in the display face and in capitals, by
9
+ * design. A greeting is a sentence to a person, so it is the UI face in
10
+ * sentence case; it is its own small block rather than a mode of that one.
11
+ *
12
+ * ## The look
13
+ *
14
+ * title the page's large title: the UI face, Medium, 40 on a desktop
15
+ * (`text-title-lg`) and the page title's 32 on a phone
16
+ * (`text-title-32`, the Settings page's title rung), on the heading
17
+ * leading, in Ink, balanced when it wraps
18
+ * name the brand purple, `--cg-text-accent`: purple on the page, white on
19
+ * the panel, lime on ink, so it reads on every surface (the same token
20
+ * as PageHeading's title, for the same reason, #120)
21
+ * line Body (`text-body`, the secondary tone), 12 under the title. The
22
+ * design draws it at 17; the library has no 17, so it is the nearest
23
+ * body rung under a page title, 16 (`text-body-md`), as the Settings
24
+ * page's line is
25
+ *
26
+ * The greeting word is the caller's ("Good morning", "Good afternoon", "Good
27
+ * evening"): the time of day is the reader's, and only the page knows it. So
28
+ * are the name and the line. With no name the title is the greeting alone,
29
+ * with no comma; with no line there is no paragraph.
30
+ */
31
+ declare function Greeting({ greeting, name, line, level, className, ...props }: Omit<React.ComponentProps<"header">, "children"> & {
32
+ /** "Good afternoon": the caller's, for the reader's time of day. */
33
+ greeting: string;
34
+ /** The reader's first name, in the brand purple. */
35
+ name?: string;
36
+ /** The one line under it. */
37
+ line?: React.ReactNode;
38
+ /** Render as an `<h2>` when the page already has its `<h1>`. */
39
+ level?: 1 | 2;
40
+ }): import("react").JSX.Element;
41
+ export { Greeting };
42
+ //# sourceMappingURL=greeting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"greeting.d.ts","sourceRoot":"","sources":["../../src/blocks/greeting.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,iBAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,KAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG;IACpD,oEAAoE;IACpE,QAAQ,EAAE,MAAM,CAAA;IAChB,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6BAA6B;IAC7B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,gEAAgE;IAChE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;CACd,+BAyBA;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "../lib/cloudgrid-cn.js";
3
+ /**
4
+ * The greeting at the top of the Grid page (ui#607, Asaf, 2026-11-25,
5
+ * cloudgrid-console#1183): "Good afternoon, Asaf", centred, with one line
6
+ * under it ("3 new creations on Atomic Labs this week.").
7
+ *
8
+ * ## A sibling of PageHeading, not a change to it
9
+ *
10
+ * `PageHeading` writes its title in the display face and in capitals, by
11
+ * design. A greeting is a sentence to a person, so it is the UI face in
12
+ * sentence case; it is its own small block rather than a mode of that one.
13
+ *
14
+ * ## The look
15
+ *
16
+ * title the page's large title: the UI face, Medium, 40 on a desktop
17
+ * (`text-title-lg`) and the page title's 32 on a phone
18
+ * (`text-title-32`, the Settings page's title rung), on the heading
19
+ * leading, in Ink, balanced when it wraps
20
+ * name the brand purple, `--cg-text-accent`: purple on the page, white on
21
+ * the panel, lime on ink, so it reads on every surface (the same token
22
+ * as PageHeading's title, for the same reason, #120)
23
+ * line Body (`text-body`, the secondary tone), 12 under the title. The
24
+ * design draws it at 17; the library has no 17, so it is the nearest
25
+ * body rung under a page title, 16 (`text-body-md`), as the Settings
26
+ * page's line is
27
+ *
28
+ * The greeting word is the caller's ("Good morning", "Good afternoon", "Good
29
+ * evening"): the time of day is the reader's, and only the page knows it. So
30
+ * are the name and the line. With no name the title is the greeting alone,
31
+ * with no comma; with no line there is no paragraph.
32
+ */
33
+ function Greeting({ greeting, name, line, level = 1, className, ...props }) {
34
+ const Heading = level === 1 ? "h1" : "h2";
35
+ return (_jsxs("header", { "data-slot": "greeting", className: cn("flex flex-col items-center gap-3 text-center", className), ...props, children: [_jsxs(Heading, { "data-slot": "greeting-title", className: "m-0 font-ui text-title-32 leading-heading font-medium tracking-normal text-balance text-ink md:text-title-lg", children: [greeting, name ? (_jsxs(_Fragment, { children: [", ", _jsx("span", { "data-slot": "greeting-name", className: "text-(--cg-text-accent)", children: name })] })) : null] }), line !== undefined && line !== null && line !== false ? (_jsx("p", { "data-slot": "greeting-line", className: "m-0 text-body-md text-body", children: line })) : null] }));
36
+ }
37
+ export { Greeting };
38
+ //# sourceMappingURL=greeting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"greeting.js","sourceRoot":"","sources":["../../src/blocks/greeting.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,KAAK,GAAG,CAAC,EACT,SAAS,EACT,GAAG,KAAK,EAUT;IACC,MAAM,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;IACzC,OAAO,CACL,+BAAkB,UAAU,EAAC,SAAS,EAAE,EAAE,CAAC,8CAA8C,EAAE,SAAS,CAAC,KAAM,KAAK,aAC9G,MAAC,OAAO,iBACI,gBAAgB,EAC1B,SAAS,EAAC,8GAA8G,aAEvH,QAAQ,EACR,IAAI,CAAC,CAAC,CAAC,CACN,8BACG,IAAI,EACL,4BAAgB,eAAe,EAAC,SAAS,EAAC,yBAAyB,YAChE,IAAI,GACA,IACN,CACJ,CAAC,CAAC,CAAC,IAAI,IACA,EACT,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CACvD,yBAAa,eAAe,EAAC,SAAS,EAAC,4BAA4B,YAChE,IAAI,GACH,CACL,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAA;AACH,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -63,9 +63,16 @@ export declare const STRETCH_HINT_COPY: Readonly<{
63
63
  * `BentoCard`'s `hint`; the card shows it only when there is room, under a
64
64
  * hairline.
65
65
  *
66
- * mark a 40 round soft brand tint (`bg-brand-100`, violet-100) with the
67
- * caller's icon, 20, in the brand purple (`text-brand`); the plug by
68
- * default. Decorative: the line says it all.
66
+ * place the centre of the card's spare room, across as well as down
67
+ * (Asaf, 2026-11-26, ui#611): the card's hint place centres it down,
68
+ * and the mark and the line, side by side, are centred across.
69
+ * mark a 40 round soft brand tint (`bg-brand-100`, violet-100). By
70
+ * default the CloudGrid socket, the "o" of the wordmark
71
+ * (`SOCKET_GLYPH_PATH`, ui#611), in the brand purple (`fill-brand`):
72
+ * LogoMark's box and offset, so the glyph sits centred in its box,
73
+ * drawn at 32, where the glyph is about 20. A caller's own `icon`
74
+ * is drawn at 20 in the brand purple (`text-brand`), as before.
75
+ * Decorative: the line says it all.
69
76
  * line one quiet grey line, 12 to the right of the mark and centred on
70
77
  * it (Asaf, 2026-11-20: side by side, one layout at every width):
71
78
  * Body (`text-body-sm`) in `text-faint-strong`, the card's
@@ -75,7 +82,7 @@ export declare const STRETCH_HINT_COPY: Readonly<{
75
82
  * so with the hairline and the 16 under it, it needs about 58 of room.
76
83
  */
77
84
  declare function StretchHint({ icon: Icon, children, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
78
- /** The mark in the round. The plug by default. */
85
+ /** The mark in the round, drawn at 20. The CloudGrid socket by default. */
79
86
  icon?: React.ComponentType<{
80
87
  className?: string;
81
88
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"home-bento.d.ts","sourceRoot":"","sources":["../../src/blocks/home-bento.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,iBAAS,SAAS,CAAC,EACjB,IAAI,EACJ,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjD,qFAAqF;IACrF,IAAI,EAAE,SAAS,KAAK,CAAC,SAAS,EAAE,CAAA;IAChC,sFAAsF;IACtF,KAAK,EAAE,SAAS,KAAK,CAAC,SAAS,EAAE,CAAA;CAClC,qBAOA;AAsBD,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB;;EAE5B,CAAA;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,iBAAS,WAAW,CAAC,EACnB,IAAI,EAAE,IAAe,EACrB,QAAkC,EAClC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACjD,kDAAkD;IAClD,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa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import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { cn } from "../lib/cloudgrid-cn.js";
4
- import { PlugIcon } from "./icons.js";
4
+ import { SOCKET_GLYPH_PATH } from "./logo.js";
5
5
  /**
6
6
  * THE HOME BENTO (ui#546), Asaf's layout B for the Console's Home, approved
7
7
  * from mockups on 2026-11-20.
@@ -69,9 +69,16 @@ export const STRETCH_HINT_COPY = Object.freeze({
69
69
  * `BentoCard`'s `hint`; the card shows it only when there is room, under a
70
70
  * hairline.
71
71
  *
72
- * mark a 40 round soft brand tint (`bg-brand-100`, violet-100) with the
73
- * caller's icon, 20, in the brand purple (`text-brand`); the plug by
74
- * default. Decorative: the line says it all.
72
+ * place the centre of the card's spare room, across as well as down
73
+ * (Asaf, 2026-11-26, ui#611): the card's hint place centres it down,
74
+ * and the mark and the line, side by side, are centred across.
75
+ * mark a 40 round soft brand tint (`bg-brand-100`, violet-100). By
76
+ * default the CloudGrid socket, the "o" of the wordmark
77
+ * (`SOCKET_GLYPH_PATH`, ui#611), in the brand purple (`fill-brand`):
78
+ * LogoMark's box and offset, so the glyph sits centred in its box,
79
+ * drawn at 32, where the glyph is about 20. A caller's own `icon`
80
+ * is drawn at 20 in the brand purple (`text-brand`), as before.
81
+ * Decorative: the line says it all.
75
82
  * line one quiet grey line, 12 to the right of the mark and centred on
76
83
  * it (Asaf, 2026-11-20: side by side, one layout at every width):
77
84
  * Body (`text-body-sm`) in `text-faint-strong`, the card's
@@ -80,8 +87,17 @@ export const STRETCH_HINT_COPY = Object.freeze({
80
87
  * Side by side the hint is as tall as the taller of the round and the line,
81
88
  * so with the hairline and the 16 under it, it needs about 58 of room.
82
89
  */
83
- function StretchHint({ icon: Icon = PlugIcon, children = STRETCH_HINT_COPY.plugs, className, ...props }) {
84
- return (_jsxs("div", { "data-slot": "stretch-hint", className: cn("flex flex-row items-center gap-3 text-left", className), ...props, children: [_jsx("span", { "data-slot": "stretch-hint-icon", "aria-hidden": "true", className: "flex size-10 shrink-0 items-center justify-center rounded-full bg-brand-100 text-brand", children: _jsx(Icon, { className: "size-5" }) }), _jsx("p", { "data-slot": "stretch-hint-line", className: "m-0 text-body-sm text-faint-strong", children: children })] }));
90
+ function StretchHint({ icon: Icon, children = STRETCH_HINT_COPY.plugs, className, ...props }) {
91
+ return (_jsxs("div", { "data-slot": "stretch-hint", className: cn("flex flex-row items-center justify-center gap-3 text-left", className), ...props, children: [_jsx("span", { "data-slot": "stretch-hint-icon", "aria-hidden": "true", className: "flex size-10 shrink-0 items-center justify-center rounded-full bg-brand-100 text-brand", children: Icon ? _jsx(Icon, { className: "size-5" }) : _jsx(Socket, {}) }), _jsx("p", { "data-slot": "stretch-hint-line", className: "m-0 text-body-sm text-faint-strong", children: children })] }));
92
+ }
93
+ /**
94
+ * The socket the hint draws by default: the wordmark's "o" from the one
95
+ * constant `Logo` and `LogoMark` draw it from, never a copy. The box is
96
+ * LogoMark's 64, moved by its offset (`translate(-41.58 -3.28)`), so the glyph
97
+ * sits centred in it as it does in the sign.
98
+ */
99
+ function Socket() {
100
+ return (_jsx("svg", { "data-slot": "stretch-hint-socket", viewBox: "41.58 3.28 64 64", "aria-hidden": "true", focusable: "false", className: "size-8 shrink-0 fill-brand", children: _jsx("path", { d: SOCKET_GLYPH_PATH }) }));
85
101
  }
86
102
  export { HomeBento, StretchHint };
87
103
  //# sourceMappingURL=home-bento.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"home-bento.js","sourceRoot":"","sources":["../../src/blocks/home-bento.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,SAAS,SAAS,CAAC,EACjB,IAAI,EACJ,KAAK,E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AC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EACrC,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,IAAI,IAAI,aAAa,CAAC,YAE9C,IAAI,IALA,CAAC,CAMF,CACP,CAAA;QACH,CAAC,CAAC,GACE,CACP,CAAA;AACH,CAAC;AAED,4EAA4E;AAC5E,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,yDAAyD;CACjE,CAAC,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAS,WAAW,CAAC,EACnB,IAAI,EAAE,IAAI,EACV,QAAQ,GAAG,iBAAiB,CAAC,KAAK,EAClC,SAAS,EACT,GAAG,KAAK,EAMT;IACC,OAAO,CACL,4BAAe,cAAc,EAAC,SAAS,EAAE,EAAE,CAAC,2DAA2D,EAAE,SAAS,CAAC,KAAM,KAAK,aAC5H,4BACY,mBAAmB,iBACjB,MAAM,EAClB,SAAS,EAAC,wFAAwF,YAEjG,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,KAAC,MAAM,KAAG,GAC3C,EACP,yBAAa,mBAAmB,EAAC,SAAS,EAAC,oCAAoC,YAC5E,QAAQ,GACP,IACA,CACP,CAAA;AACH,CAAC;AAED;;;;;GAKG;AACH,SAAS,MAAM;IACb,OAAO,CACL,2BACY,qBAAqB,EAC/B,OAAO,EAAC,kBAAkB,iBACd,MAAM,EAClB,SAAS,EAAC,OAAO,EACjB,SAAS,EAAC,4BAA4B,YAEtC,eAAM,CAAC,EAAE,iBAAiB,GAAI,GAC1B,CACP,CAAA;AACH,CAAC;AAED,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAA"}
@@ -15,7 +15,7 @@ import { type EntityKind } from "./entity-card.js";
15
15
  * console#1170, 2026-11-24): the Home card (`EntityCard look="home"`), smaller.
16
16
  * The picture, with the views count at its top right (`views`: the Home card's
17
17
  * views, in the Home card's materials, on one line: the eye, then the number);
18
- * under it the filled pin, in the brand purple, before
18
+ * under it the filled pin, upright, in the brand purple (`PinMark`, ui#622), before
19
19
  * the name, which truncates; the type at the right of the name line; and the
20
20
  * caller's `byline` ("By you · 2 days ago", or the owner's name and the time)
21
21
  * under that. The whole card is the item's link. With more than four, an arrow
@@ -23,18 +23,21 @@ import { type EntityKind } from "./entity-card.js";
23
23
  * pages back (ui#587, Tamir's review in console#1170): the previous arrow is
24
24
  * not there on the first page and the next arrow is not there on the last, so
25
25
  * neither wraps around. When a press takes its own arrow away, keyboard focus
26
- * goes to the other arrow rather than to the page. With fewer than four the
27
- * rest of the row is the empty state's soft slots, each the size of a card, so
28
- * a pinned creation is the same size whether it has company or not.
26
+ * goes to the other arrow rather than to the page. With fewer than four, one
27
+ * empty slot follows the last card and the rest of the row stays empty
28
+ * (ui#622): the cards keep their column's width, so a pinned creation is the
29
+ * same size whether it has company or not.
29
30
  *
30
- * Hover an item and its picture dims a little while an "Unpin" chip eases in
31
+ * Hover an item and its picture dims a little while the pin chip (`PinChip`,
32
+ * ui#622: the filled upright pin, opening to "Unpin" on its own hover) eases in
31
33
  * at the picture's top right, where the views count was: the count gives way
32
34
  * as the chip arrives (ui#591). The chip is its own button, beside the item's
33
35
  * link rather than in it (no nested interactive), laid over the picture: a
34
36
  * click on the chip calls `onUnpin`, a click anywhere else on the item opens
35
37
  * the creation. The chip is out of reach of the pointer until it shows, so a
36
38
  * tap never unpins by surprise; Tab reaches it, and it shows while it, or the
37
- * item, holds focus. The chip and the arrow take the library's hover wash,
39
+ * item, holds keyboard focus (never after a click once the pointer leaves,
40
+ * ui#622). The chip and the arrow take the library's hover wash,
38
41
  * laid over their own ground. Under reduced motion nothing eases.
39
42
  *
40
43
  * An item with a `liveHref` (Asaf, 2026-11-22, ui#559) also gets the open live
@@ -76,14 +79,18 @@ import { type EntityKind } from "./entity-card.js";
76
79
  * 34.75rem, where four fit without it; with three, the pager two a page
77
80
  * needs, hidden from 26.375rem.
78
81
  *
79
- * Empty: four soft slots, an outline pin in each, "Pin a creation" under. A
80
- * slot is a card's size (ui#591): the card's frame with its line clear, the
81
- * picture's box, and the card's text block, of a fixed height.
82
- * With `onAddPin` (ui#587) each slot, the art and the label, is one button
83
- * that calls it (the Console opens its search window, where every result has
84
- * a pin): the hand cursor, the library's hover wash over the art's own
85
- * ground, the keyboard line, and the label as its name. Without it the slot is
86
- * a picture and a label, as it always was.
82
+ * One slot at a time (ui#622, Asaf, 2026-11-29): exactly one empty slot,
83
+ * right after the last pinned card, while fewer than a page's most are pinned
84
+ * (four here, six small) and the page has a column free; none at the most.
85
+ * Empty, that one slot with a muted line beside it (`emptyHint`, by default
86
+ * `PINNED_EMPTY_HINT`). A slot is a card's size (ui#591): the card's frame,
87
+ * the picture's box, and the card's text block, of a fixed height, with an
88
+ * outline pin and "Pin a creation". It is grey at rest. With `onAddPin`
89
+ * (ui#587) the slot, the art and the label, is one button that calls it (the
90
+ * Console opens its search window, where every result has a pin): the hand
91
+ * cursor; on hover the art turns cyan, the pin stands up and the dashed edge
92
+ * takes a soft cyan; the keyboard line; and the label as its name. Without it
93
+ * the slot is a picture and a label, grey and still.
87
94
  *
88
95
  * ## No picture: the identity (ui#573)
89
96
  *
@@ -116,11 +123,12 @@ import { type EntityKind } from "./entity-card.js";
116
123
  * blur and the mark's lift, so it does not flip with the surface
117
124
  * phone at two a page, the name line alone: no byline, no type mark,
118
125
  * the text 42 tall; the Unpin chip the glyph alone in a 24
119
- * circle, as the live arrow is (Asaf, 2026-11-24)
126
+ * circle, as the live arrow is (Asaf, 2026-11-24), which since
127
+ * ui#622 is the chip at rest at every width
120
128
  * text 62 tall, whatever it holds: 10 above, 12 aside and under. The
121
129
  * name line, 20: the 15 filled pin in the accent role
122
130
  * (`--cg-text-accent`: the brand purple on the page, white on the
123
- * panel, lime on ink), 6, the name in Small Medium (`text-caption
131
+ * panel, lime on ink), upright (`PinMark pinned`), 6, the name in Small Medium (`text-caption
124
132
  * font-medium`), and the 16 type mark at the right. 4 under it
125
133
  * the byline in Small, the Home card's muted line
126
134
  * on hover the chip and the live arrow 6 in from the picture's corners
@@ -132,7 +140,11 @@ import { type EntityKind } from "./entity-card.js";
132
140
  * at radius 8 (the page grey; the hover wash on the panel and
133
141
  * ink, where the page grey would be a light slab), a 30 outline
134
142
  * pin in the middle, and the card's text block with
135
- * "Pin a creation" in Small, `text-faint-strong`
143
+ * "Pin a creation" in Small, `text-faint-strong`. On hover
144
+ * (ui#622) the art in `bg-cyan`, the pin upright in the
145
+ * on-accent ink, the dashed edge in `border-cyan`
146
+ * hint beside the one slot at zero pins (ui#622), from its column to
147
+ * the row's end, centred on it: Body Small, `text-faint-strong`
136
148
  * continue rows 40 tall, 6 apart: a 48 by 30 thumbnail at radius 8, 12,
137
149
  * the name in Small Medium, and the time at the right in Small
138
150
  * card `BentoCard`, its children 14 apart, a hairline between Pinned
@@ -184,8 +196,15 @@ export type HomeCreation = {
184
196
  };
185
197
  /** A creation the reader opened lately, and when, in the caller's words. */
186
198
  export type RecentlyOpenedCreation = HomeCreation & {
187
- /** "Opened 10m ago". */
199
+ /** "Opened 10m ago"; on a tile, the time alone: "12 min ago". */
188
200
  opened: React.ReactNode;
201
+ /**
202
+ * Whether the reader has pinned it (ui#605). On a tile it sets the pin
203
+ * chip (ui#622): not pinned, the outline pin opening to "Pin it" (with an
204
+ * `onPin`); pinned, the filled upright pin opening to "Unpin" (with an
205
+ * `onUnpin`). The list layout does not read it.
206
+ */
207
+ pinned?: boolean;
189
208
  };
190
209
  /**
191
210
  * The least width of Pinned (its row and the pager) that shows four a page
@@ -221,7 +240,55 @@ export declare function pinnedPager(count: number, page: number, perPage: 2 | 3
221
240
  };
222
241
  /** How many pinned creations a page shows at `width` px of Pinned, the root font at `rem` px. */
223
242
  export declare function pinnedPerPage(width: number, rem: number): 2 | 3 | 4;
224
- declare function PinnedCreations({ items, onUnpin, onOpen, linkComponent, emptyLabel, unpinLabel, liveLabel, nextLabel, prevLabel, onAddPin, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
243
+ /**
244
+ * Pinned at its small size (`size="small"`, ui#605, Asaf, 2026-11-26): the
245
+ * least width of a card or a "Pin a creation" slot, in px at a 16px root.
246
+ * Inside Jump back in Pinned spans the whole card; small, it shows as many
247
+ * columns as fit at 192 or more (up to six), and they share the row evenly,
248
+ * so the row always reaches the card's edge or the arrow: five of about 206
249
+ * at the Console's 1440.
250
+ */
251
+ export declare const PINNED_SMALL_CARD = 192;
252
+ /**
253
+ * How many empty slots a page of Pinned shows (ui#622, Asaf, 2026-11-29):
254
+ * exactly one, right after the last pinned card, while fewer than `most` are
255
+ * pinned (six small, four on Home) and the page has a column free; otherwise
256
+ * none. `count` is every pin, `shown` the pins on this page, `perPage` the
257
+ * columns it shows. With no pins, the one slot.
258
+ */
259
+ export declare function pinnedSlots(count: number, shown: number, perPage: number, most: number): 0 | 1;
260
+ /** The muted line beside the one slot when nothing is pinned yet (ui#622). */
261
+ export declare const PINNED_EMPTY_HINT = "Pin what you come back to. It stays here, at the top of your home.";
262
+ /**
263
+ * The least width of Pinned, small, that shows `columns` a page, in px at a
264
+ * 16px root: the columns at 192, their 12 gaps and, `withArrows`, both
265
+ * arrows with their 8 (2 x 32). The arrows' room is kept only where there are
266
+ * more pins than columns (a pager), and then for both, so a middle page,
267
+ * which shows both, keeps its columns.
268
+ */
269
+ export declare function pinnedSmallLine(columns: number, withArrows: boolean): number;
270
+ /**
271
+ * How many pinned creations a page shows, small, at `width` px of Pinned, the
272
+ * root font at `rem` px, with `count` pinned: the most columns, two to six,
273
+ * whose line the width reaches.
274
+ */
275
+ export declare function pinnedSmallPerPage(width: number, rem: number, count: number): 2 | 3 | 4 | 5 | 6;
276
+ /**
277
+ * `pinnedPager` for the small size: the same arrows and no wrap around. The
278
+ * server's page is six and the CSS shows fewer under the lines, so where the
279
+ * page's pins all fit only from some line, the next arrow is there for the
280
+ * narrower rows and hidden from that line: `nextUntil` is how many pins the
281
+ * page holds (3 to 6), or false when the arrow is needed everywhere, or not
282
+ * at all.
283
+ */
284
+ export declare function pinnedSmallPager(count: number, page: number, perPage: 2 | 3 | 4 | 5 | 6): {
285
+ page: number;
286
+ pages: number;
287
+ prev: boolean;
288
+ next: boolean;
289
+ nextUntil: false | 3 | 4 | 5 | 6;
290
+ };
291
+ declare function PinnedCreations({ items, onUnpin, onOpen, linkComponent, emptyLabel, unpinLabel, liveLabel, nextLabel, prevLabel, onAddPin, emptyHint, size, className, ...props }: Omit<React.ComponentProps<"div">, "children"> & {
225
292
  /** The pinned creations, in the caller's order. */
226
293
  items: readonly HomeCreation[];
227
294
  /** The reader pressed Unpin on one. No chip without it. */
@@ -230,9 +297,14 @@ declare function PinnedCreations({ items, onUnpin, onOpen, linkComponent, emptyL
230
297
  onOpen?: (item: HomeCreation) => void;
231
298
  /** The element a link renders through, for a router's own link. */
232
299
  linkComponent?: React.ElementType;
233
- /** Under each empty slot. */
300
+ /** The empty slot's words: under it on Home, its name for a screen reader when small. */
234
301
  emptyLabel?: React.ReactNode;
235
- /** The chip's word. A screen reader hears the creation's name after it. */
302
+ /**
303
+ * The muted line beside the one slot when nothing is pinned (ui#622).
304
+ * Defaults to `PINNED_EMPTY_HINT`; `null` draws none.
305
+ */
306
+ emptyHint?: React.ReactNode;
307
+ /** The chip's word, "Unpin". A screen reader hears the creation's name after it. */
236
308
  unpinLabel?: string;
237
309
  /** The open live arrow's name and tooltip. A screen reader hears the creation's name after it. */
238
310
  liveLabel?: string;
@@ -241,12 +313,34 @@ declare function PinnedCreations({ items, onUnpin, onOpen, linkComponent, emptyL
241
313
  /** The previous arrow's accessible name (ui#587). */
242
314
  prevLabel?: string;
243
315
  /**
244
- * The reader pressed an empty slot, "Pin a creation" (ui#587): each slot is
245
- * a button that calls this. Without it the slots are pictures, as before.
316
+ * The reader pressed the empty slot, "Pin a creation" (ui#587): the slot is
317
+ * a button that calls this. Without it the slot is a picture, as before.
246
318
  */
247
319
  onAddPin?: () => void;
320
+ /**
321
+ * `fill` (the default): four a page, each card a quarter of the row, as
322
+ * on Home. `small` (ui#605, Jump back in): as many columns as fit at 192
323
+ * or more (`pinnedSmallPerPage`, up to six), sharing the row evenly, with
324
+ * room for the arrows only when the pins outnumber the columns: five of
325
+ * about 206 at the Console's 1440, six without a pager at 1680, down to
326
+ * two on a phone. The card itself is the same card. Either size shows
327
+ * exactly one empty slot after the last pin (ui#622): `pinnedSlots`.
328
+ */
329
+ size?: "fill" | "small";
248
330
  }): React.JSX.Element;
249
- declare function RecentlyOpened({ items, onOpen, linkComponent, emptyLabel, className, ...props }: Omit<React.ComponentProps<"ul">, "children"> & {
331
+ /**
332
+ * The least width of the tiles' row (its own, not the screen's) that shows
333
+ * four a row (ui#605, Asaf's phone option, 2026-11-25), in px at a 16px root:
334
+ * four tiles of about 182 (the 64 picture, 12, about 80 of words, 12 in a
335
+ * side and the hairline) and three 16 gaps.
336
+ */
337
+ export declare const RECENT_TILES_FOUR_MIN = 776;
338
+ /**
339
+ * The least width of the tiles' row that shows two a row (ui#605). Narrower
340
+ * (a phone), one a row, so the name and the time line have room.
341
+ */
342
+ export declare const RECENT_TILES_TWO_MIN = 600;
343
+ declare function RecentlyOpened({ items, onOpen, linkComponent, emptyLabel, layout, onPin, onUnpin, continueLabel: _continueLabel, pinLabel, unpinLabel, className, ...props }: Omit<React.ComponentProps<"ul">, "children"> & {
250
344
  /** The creations, most recent first, as the caller orders them. */
251
345
  items: readonly RecentlyOpenedCreation[];
252
346
  /** Opens a creation that has no `href`. */
@@ -255,6 +349,25 @@ declare function RecentlyOpened({ items, onOpen, linkComponent, emptyLabel, clas
255
349
  linkComponent?: React.ElementType;
256
350
  /** Said when there is nothing yet. */
257
351
  emptyLabel?: React.ReactNode;
352
+ /**
353
+ * `list` (the default): the Continue rows, as before. `tiles` (ui#605):
354
+ * four tiles in a row, two where four do not fit, one on a phone, for Jump
355
+ * back in.
356
+ */
357
+ layout?: "list" | "tiles";
358
+ /** Tiles only: the pin chip on a tile that is not `pinned` calls this. No chip there without it. */
359
+ onPin?: (item: RecentlyOpenedCreation) => void;
360
+ /** Tiles only (ui#622): the pin chip on a `pinned` tile calls this. No chip there without it. */
361
+ onUnpin?: (item: RecentlyOpenedCreation) => void;
362
+ /**
363
+ * @deprecated ui#622: the newest tile no longer says "Continue". Accepted
364
+ * so a caller that passes it still compiles; it draws nothing.
365
+ */
366
+ continueLabel?: React.ReactNode;
367
+ /** Tiles only: the chip's word on a tile that is not pinned, "Pin it". A screen reader hears the creation's name after it. */
368
+ pinLabel?: string;
369
+ /** Tiles only (ui#622): the chip's word on a pinned tile, "Unpin". A screen reader hears the creation's name after it. */
370
+ unpinLabel?: string;
258
371
  }): React.JSX.Element;
259
372
  /**
260
373
  * The Home's left card: "Pinned", a hairline, "Continue where you left off".
@@ -1 +1 @@
1
- {"version":3,"file":"home-pinned.d.ts","sourceRoot":"","sources":["../../src/blocks/home-pinned.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAQ5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8IG;AAEH,sCAAsC;AACtC,MAAM,MAAM,YAAY,GAAG;IACzB,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAA;IACV,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;;;OAIG;IACH,QAAQ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