@cloudgrid-io/ui 0.64.0 → 0.66.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 (167) hide show
  1. package/README.md +1 -1
  2. package/dist/blocks/add-tile.d.ts +16 -1
  3. package/dist/blocks/add-tile.d.ts.map +1 -1
  4. package/dist/blocks/add-tile.js +20 -3
  5. package/dist/blocks/add-tile.js.map +1 -1
  6. package/dist/blocks/avatar-picker.d.ts +50 -4
  7. package/dist/blocks/avatar-picker.d.ts.map +1 -1
  8. package/dist/blocks/avatar-picker.js +56 -10
  9. package/dist/blocks/avatar-picker.js.map +1 -1
  10. package/dist/blocks/bento-card-hint.d.ts +16 -0
  11. package/dist/blocks/bento-card-hint.d.ts.map +1 -0
  12. package/dist/blocks/bento-card-hint.js +23 -0
  13. package/dist/blocks/bento-card-hint.js.map +1 -0
  14. package/dist/blocks/bento-card.d.ts +59 -0
  15. package/dist/blocks/bento-card.d.ts.map +1 -0
  16. package/dist/blocks/bento-card.js +59 -0
  17. package/dist/blocks/bento-card.js.map +1 -0
  18. package/dist/blocks/coming-soon-hint.d.ts.map +1 -1
  19. package/dist/blocks/coming-soon-hint.js +110 -7
  20. package/dist/blocks/coming-soon-hint.js.map +1 -1
  21. package/dist/blocks/creation-search.d.ts +147 -0
  22. package/dist/blocks/creation-search.d.ts.map +1 -0
  23. package/dist/blocks/creation-search.js +239 -0
  24. package/dist/blocks/creation-search.js.map +1 -0
  25. package/dist/blocks/entity-card.d.ts +82 -2
  26. package/dist/blocks/entity-card.d.ts.map +1 -1
  27. package/dist/blocks/entity-card.js +176 -17
  28. package/dist/blocks/entity-card.js.map +1 -1
  29. package/dist/blocks/from-your-grid.d.ts +66 -0
  30. package/dist/blocks/from-your-grid.d.ts.map +1 -0
  31. package/dist/blocks/from-your-grid.js +63 -0
  32. package/dist/blocks/from-your-grid.js.map +1 -0
  33. package/dist/blocks/grid-profile.d.ts +25 -4
  34. package/dist/blocks/grid-profile.d.ts.map +1 -1
  35. package/dist/blocks/grid-profile.js +69 -7
  36. package/dist/blocks/grid-profile.js.map +1 -1
  37. package/dist/blocks/help-menu.d.ts +58 -0
  38. package/dist/blocks/help-menu.d.ts.map +1 -0
  39. package/dist/blocks/help-menu.js +64 -0
  40. package/dist/blocks/help-menu.js.map +1 -0
  41. package/dist/blocks/home-bento.d.ts +86 -0
  42. package/dist/blocks/home-bento.d.ts.map +1 -0
  43. package/dist/blocks/home-bento.js +87 -0
  44. package/dist/blocks/home-bento.js.map +1 -0
  45. package/dist/blocks/home-empty-illustrations.d.ts +37 -0
  46. package/dist/blocks/home-empty-illustrations.d.ts.map +1 -0
  47. package/dist/blocks/home-empty-illustrations.js +47 -0
  48. package/dist/blocks/home-empty-illustrations.js.map +1 -0
  49. package/dist/blocks/home-pinned.d.ts +168 -0
  50. package/dist/blocks/home-pinned.d.ts.map +1 -0
  51. package/dist/blocks/home-pinned.js +100 -0
  52. package/dist/blocks/home-pinned.js.map +1 -0
  53. package/dist/blocks/icons.d.ts +46 -0
  54. package/dist/blocks/icons.d.ts.map +1 -1
  55. package/dist/blocks/icons.js +46 -0
  56. package/dist/blocks/icons.js.map +1 -1
  57. package/dist/blocks/image-adjust-dialog.d.ts +68 -11
  58. package/dist/blocks/image-adjust-dialog.d.ts.map +1 -1
  59. package/dist/blocks/image-adjust-dialog.js +68 -16
  60. package/dist/blocks/image-adjust-dialog.js.map +1 -1
  61. package/dist/blocks/inspiration-cards.d.ts +241 -0
  62. package/dist/blocks/inspiration-cards.d.ts.map +1 -0
  63. package/dist/blocks/inspiration-cards.js +234 -0
  64. package/dist/blocks/inspiration-cards.js.map +1 -0
  65. package/dist/blocks/invite-popup.d.ts +63 -5
  66. package/dist/blocks/invite-popup.d.ts.map +1 -1
  67. package/dist/blocks/invite-popup.js +60 -20
  68. package/dist/blocks/invite-popup.js.map +1 -1
  69. package/dist/blocks/liquid-glass.d.ts +106 -0
  70. package/dist/blocks/liquid-glass.d.ts.map +1 -0
  71. package/dist/blocks/liquid-glass.js +283 -0
  72. package/dist/blocks/liquid-glass.js.map +1 -0
  73. package/dist/blocks/meter.d.ts +5 -2
  74. package/dist/blocks/meter.d.ts.map +1 -1
  75. package/dist/blocks/meter.js +4 -0
  76. package/dist/blocks/meter.js.map +1 -1
  77. package/dist/blocks/motion.d.ts +48 -0
  78. package/dist/blocks/motion.d.ts.map +1 -0
  79. package/dist/blocks/motion.js +148 -0
  80. package/dist/blocks/motion.js.map +1 -0
  81. package/dist/blocks/need-help-line.d.ts +21 -0
  82. package/dist/blocks/need-help-line.d.ts.map +1 -0
  83. package/dist/blocks/need-help-line.js +24 -0
  84. package/dist/blocks/need-help-line.js.map +1 -0
  85. package/dist/blocks/needs-attention.d.ts +89 -0
  86. package/dist/blocks/needs-attention.d.ts.map +1 -0
  87. package/dist/blocks/needs-attention.js +32 -0
  88. package/dist/blocks/needs-attention.js.map +1 -0
  89. package/dist/blocks/phosphor-marks.d.ts +16 -0
  90. package/dist/blocks/phosphor-marks.d.ts.map +1 -1
  91. package/dist/blocks/phosphor-marks.js +24 -0
  92. package/dist/blocks/phosphor-marks.js.map +1 -1
  93. package/dist/blocks/picture-menu.d.ts +26 -0
  94. package/dist/blocks/picture-menu.d.ts.map +1 -0
  95. package/dist/blocks/picture-menu.js +22 -0
  96. package/dist/blocks/picture-menu.js.map +1 -0
  97. package/dist/blocks/ranked-list.d.ts +7 -1
  98. package/dist/blocks/ranked-list.d.ts.map +1 -1
  99. package/dist/blocks/ranked-list.js +8 -6
  100. package/dist/blocks/ranked-list.js.map +1 -1
  101. package/dist/blocks/recent-plugs.d.ts +74 -0
  102. package/dist/blocks/recent-plugs.d.ts.map +1 -0
  103. package/dist/blocks/recent-plugs.js +20 -0
  104. package/dist/blocks/recent-plugs.js.map +1 -0
  105. package/dist/blocks/shared-grid-illustration.d.ts +55 -0
  106. package/dist/blocks/shared-grid-illustration.d.ts.map +1 -0
  107. package/dist/blocks/shared-grid-illustration.js +81 -0
  108. package/dist/blocks/shared-grid-illustration.js.map +1 -0
  109. package/dist/blocks/shelf-strip.d.ts +36 -0
  110. package/dist/blocks/shelf-strip.d.ts.map +1 -0
  111. package/dist/blocks/shelf-strip.js +32 -0
  112. package/dist/blocks/shelf-strip.js.map +1 -0
  113. package/dist/blocks/stat-tile.d.ts +17 -1
  114. package/dist/blocks/stat-tile.d.ts.map +1 -1
  115. package/dist/blocks/stat-tile.js +4 -1
  116. package/dist/blocks/stat-tile.js.map +1 -1
  117. package/dist/blocks/top-creations.d.ts +76 -0
  118. package/dist/blocks/top-creations.d.ts.map +1 -0
  119. package/dist/blocks/top-creations.js +54 -0
  120. package/dist/blocks/top-creations.js.map +1 -0
  121. package/dist/brand/email/headline-1-invitation-left.png +0 -0
  122. package/dist/brand/email/headline-2-invitations-left.png +0 -0
  123. package/dist/brand/email/headline-3-invitations-left.png +0 -0
  124. package/dist/brand/email/headline-4-invitations-left.png +0 -0
  125. package/dist/brand/email/headline-5-invitations-left.png +0 -0
  126. package/dist/brand/email/headline-6-invitations-left.png +0 -0
  127. package/dist/brand/email/headline-7-invitations-left.png +0 -0
  128. package/dist/brand/email/headline-8-invitations-left.png +0 -0
  129. package/dist/brand/email/headline-9-invitations-left.png +0 -0
  130. package/dist/brand/email/headline-you-have-1-invitation.png +0 -0
  131. package/dist/brand/email/headline-you-have-2-invitations.png +0 -0
  132. package/dist/brand/email/headline-you-have-3-invitations.png +0 -0
  133. package/dist/brand/email/headline-you-have-4-invitations.png +0 -0
  134. package/dist/brand/email/headline-you-have-5-invitations.png +0 -0
  135. package/dist/brand/email/headline-you-have-6-invitations.png +0 -0
  136. package/dist/brand/email/headline-you-have-7-invitations.png +0 -0
  137. package/dist/brand/email/headline-you-have-8-invitations.png +0 -0
  138. package/dist/brand/email/headline-you-have-9-invitations.png +0 -0
  139. package/dist/email/assets.d.ts +108 -0
  140. package/dist/email/assets.d.ts.map +1 -1
  141. package/dist/email/assets.js +18 -0
  142. package/dist/email/assets.js.map +1 -1
  143. package/dist/email/index.d.ts +71 -0
  144. package/dist/email/index.d.ts.map +1 -1
  145. package/dist/email/index.js +110 -5
  146. package/dist/email/index.js.map +1 -1
  147. package/dist/index.d.ts +20 -0
  148. package/dist/index.d.ts.map +1 -1
  149. package/dist/index.js +23 -0
  150. package/dist/index.js.map +1 -1
  151. package/dist/lib/fit.d.ts +39 -0
  152. package/dist/lib/fit.d.ts.map +1 -0
  153. package/dist/lib/fit.js +92 -0
  154. package/dist/lib/fit.js.map +1 -0
  155. package/dist/lib/motion.d.ts +165 -0
  156. package/dist/lib/motion.d.ts.map +1 -0
  157. package/dist/lib/motion.js +196 -0
  158. package/dist/lib/motion.js.map +1 -0
  159. package/dist/lib/touch-hover.d.ts +63 -0
  160. package/dist/lib/touch-hover.d.ts.map +1 -0
  161. package/dist/lib/touch-hover.js +164 -0
  162. package/dist/lib/touch-hover.js.map +1 -0
  163. package/dist/ui/dialog.d.ts +7 -1
  164. package/dist/ui/dialog.d.ts.map +1 -1
  165. package/dist/ui/dialog.js +2 -2
  166. package/dist/ui/dialog.js.map +1 -1
  167. package/package.json +2 -1
@@ -0,0 +1,76 @@
1
+ import * as React from "react";
2
+ /**
3
+ * The Home's "My top creations" (ui#539): the reader's creations ranked by
4
+ * views, each row a thumbnail, the name, the count at the right and a bar under
5
+ * them. Asaf's design, 2026-11-20.
6
+ *
7
+ * Presentational: the rows are the caller's, in the caller's order (the
8
+ * ranking is the server's, and is never re-sorted here), and the period
9
+ * dropdown is the caller's, in `TopCreationsCard`'s `period` slot.
10
+ *
11
+ * ## Motion
12
+ *
13
+ * By default each count counts up from 0 and its bar fills with it, together,
14
+ * when the list mounts: #533's `AnimatedNumber` and `MeterFill`, which show the
15
+ * end state at once under reduced motion. `animated={false}` draws them still.
16
+ *
17
+ * ## The values
18
+ *
19
+ * row 52 tall (`min-h-13`), items centred, 12 apart
20
+ * thumbnail 48 by 34 at radius 8 (`rounded-xs`), on `bg-raised`
21
+ * text the name in Small Medium, the count in Small, both ink; the
22
+ * bar 6 under them
23
+ * bar 4 tall, a pill: the lime (`bg-lime`) on the soft violet track
24
+ * (`bg-brand-100`), `Meter tone="home"`; the scale is the
25
+ * largest count unless `max` says otherwise
26
+ * empty the picture (224 by 157: three small creations, each with a
27
+ * ranked bar), 24, then the line in Body, `text-faint-strong`
28
+ *
29
+ * The meters are `aria-hidden`, as in `RankedList`: the count is printed
30
+ * beside the name, and the list is an `<ol>`, so the rank is its position.
31
+ */
32
+ /** A row: a creation and its count. */
33
+ export type TopCreation = {
34
+ /** A stable id, for the key. Defaults to the name. */
35
+ id?: string;
36
+ name: string;
37
+ /** Views, or whatever the caller ranks by. */
38
+ count: number;
39
+ /** Its picture. Decorative: the name is beside it. */
40
+ thumbnailSrc?: string;
41
+ /** Where the row goes. */
42
+ href?: string;
43
+ };
44
+ /** Three small creations, each with a ranked bar: the empty My top creations. */
45
+ declare function TopCreationsIllustration({ className, ...props }: Omit<React.ComponentProps<"div">, "children">): React.JSX.Element;
46
+ declare function TopCreationsList({ items, max, formatCount, animated, linkComponent, emptyLabel, className, ...props }: Omit<React.ComponentProps<"ol">, "children"> & {
47
+ /** The rows, in rank order. Rendered as given. */
48
+ items: readonly TopCreation[];
49
+ /** The bars' full scale. Defaults to the largest count. */
50
+ max?: number;
51
+ /** Formats each count. Defaults to grouped digits. */
52
+ formatCount?: (value: number) => string;
53
+ /** Count up and fill when the list mounts (#533). On by default. */
54
+ animated?: boolean;
55
+ /** The element a row's link renders through, for a router's own link. */
56
+ linkComponent?: React.ElementType;
57
+ /** Beside the picture when there are no rows. */
58
+ emptyLabel?: React.ReactNode;
59
+ }): React.JSX.Element;
60
+ /**
61
+ * "My top creations" in #533's `BentoCard`, with the caller's period dropdown
62
+ * at the title's right. The empty card's children sit 12 apart, as drawn.
63
+ */
64
+ declare function TopCreationsCard({ items, period, title, max, formatCount, animated, linkComponent, emptyLabel, className, ...props }: Omit<React.ComponentProps<"section">, "title" | "children"> & {
65
+ items: readonly TopCreation[];
66
+ /** The period dropdown, the caller's. */
67
+ period?: React.ReactNode;
68
+ title?: React.ReactNode;
69
+ max?: number;
70
+ formatCount?: (value: number) => string;
71
+ animated?: boolean;
72
+ linkComponent?: React.ElementType;
73
+ emptyLabel?: React.ReactNode;
74
+ }): React.JSX.Element;
75
+ export { TopCreationsCard, TopCreationsIllustration, TopCreationsList };
76
+ //# sourceMappingURL=top-creations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-creations.d.ts","sourceRoot":"","sources":["../../src/blocks/top-creations.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,uCAAuC;AACvC,MAAM,MAAM,WAAW,GAAG;IACxB,sDAAsD;IACtD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAgBD,iFAAiF;AACjF,iBAAS,wBAAwB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,qBA0DvG;AA4DD,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,GAAG,EACH,WAA+B,EAC/B,QAAe,EACf,aAAa,EACb,UAAkE,EAClE,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC,GAAG;IAChD,kDAAkD;IAClD,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;IAC7B,2DAA2D;IAC3D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,sDAAsD;IACtD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACvC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yEAAyE;IACzE,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACjC,iDAAiD;IACjD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC7B,qBAgCA;AAED;;;GAGG;AACH,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,MAAM,EACN,KAA0B,EAC1B,GAAG,EACH,WAAW,EACX,QAAQ,EACR,aAAa,EACb,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IAC/D,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;IAC7B,yCAAyC;IACzC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACjC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC7B,qBAaA;AAED,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,54 @@
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 { BentoCard } from "./bento-card.js";
6
+ import { chartValue, formatChartNumber } from "./chart-parts.js";
7
+ import { EMPTY_CREATIONS_PREVIEWS } from "./empty-creations-previews.js";
8
+ import { Meter } from "./meter.js";
9
+ import { AnimatedNumber, MeterFill } from "./motion.js";
10
+ /** The empty picture's three creations: the covers, top to bottom. */
11
+ const EMPTY_PICTURES = [EMPTY_CREATIONS_PREVIEWS[2], EMPTY_CREATIONS_PREVIEWS[0], EMPTY_CREATIONS_PREVIEWS[1]];
12
+ /** The empty picture, on its 224 by 156.8 box, as the design draws it. */
13
+ const MINI = { x: 11.2, w: 58.8, h: 42.467, r: 6.533, edge: 0.817 };
14
+ const MINI_COVER = { inset: 2.45, w: 52.267, h: 27.767, r: 4.083 };
15
+ const MINI_HINT = { x: 5.72, y: 34.3, w: 24.5, h: 2.45 };
16
+ const RANK = { x: 84, w: 123.2, h: 7 };
17
+ const RANKS = [
18
+ { y: 5.6, track: 23.8, fill: 109.2 },
19
+ { y: 54.6, track: 72.8, fill: 77 },
20
+ { y: 103.6, track: 121.8, fill: 44.8 },
21
+ ];
22
+ /** Three small creations, each with a ranked bar: the empty My top creations. */
23
+ function TopCreationsIllustration({ className, ...props }) {
24
+ const clip = `cg-top-creations-${React.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`;
25
+ return (_jsx("div", { "data-slot": "top-creations-illustration", "aria-hidden": "true", className: cn("w-56 max-w-full shrink-0", className), ...props, children: _jsxs("svg", { viewBox: "0 0 224 156.8", className: "block h-auto w-full", focusable: "false", children: [_jsx("defs", { children: RANKS.map((r, i) => (_jsx("clipPath", { id: `${clip}-${i}`, children: _jsx("rect", { x: MINI.x + MINI_COVER.inset, y: r.y + MINI_COVER.inset, width: MINI_COVER.w, height: MINI_COVER.h, rx: MINI_COVER.r }) }, i))) }), RANKS.map((r, i) => (_jsxs("g", { "data-part": "creation", children: [_jsx("rect", { x: MINI.x + MINI.edge / 2, y: r.y + MINI.edge / 2, width: MINI.w - MINI.edge, height: MINI.h - MINI.edge, rx: MINI.r - MINI.edge / 2, strokeWidth: MINI.edge, className: "fill-(--cg-neutral-0) stroke-brand-100" }), _jsx("image", { href: EMPTY_PICTURES[i], x: MINI.x + MINI_COVER.inset, y: r.y + MINI_COVER.inset, width: MINI_COVER.w, height: MINI_COVER.h, preserveAspectRatio: "xMidYMid slice", clipPath: `url(#${clip}-${i})` }), _jsx("rect", { x: MINI.x + MINI_HINT.x, y: r.y + MINI_HINT.y, width: MINI_HINT.w, height: MINI_HINT.h, rx: MINI_HINT.h / 2, className: "fill-brand-100" }), _jsx("rect", { "data-part": "track", x: RANK.x, y: r.track, width: RANK.w, height: RANK.h, rx: RANK.h / 2, className: "fill-brand-100" }), _jsx("rect", { "data-part": "fill", x: RANK.x, y: r.track, width: r.fill, height: RANK.h, rx: RANK.h / 2, className: "fill-lime" })] }, i)))] }) }));
26
+ }
27
+ function TopCreationsRow({ item, max, formatCount, animated, linkComponent, }) {
28
+ const count = chartValue(item.count);
29
+ const bar = _jsx(Meter, { "aria-hidden": "true", size: "sm", tone: "home", value: count, max: max });
30
+ const content = (_jsxs(_Fragment, { children: [_jsx("span", { "data-slot": "top-creations-thumbnail", className: "block h-8.5 w-12 shrink-0 overflow-hidden rounded-xs bg-raised", children: item.thumbnailSrc !== undefined ? (_jsx("img", { src: item.thumbnailSrc, alt: "", decoding: "async", draggable: false, className: "block size-full object-cover" })) : null }), _jsxs("span", { "data-slot": "top-creations-text", className: "grid min-w-0 flex-1 gap-1.5", children: [_jsxs("span", { className: "flex min-w-0 items-center justify-between gap-3 text-caption", children: [_jsx("span", { "data-slot": "top-creations-name", className: "min-w-0 truncate text-caption font-medium", children: item.name }), _jsx("span", { "data-slot": "top-creations-count", className: "shrink-0 text-end text-caption tabular-nums", children: animated ? _jsx(AnimatedNumber, { value: formatCount(count) }) : formatCount(count) })] }), animated ? _jsx(MeterFill, { children: bar }) : bar] })] }));
31
+ const row = "flex min-h-13 min-w-0 items-center gap-3";
32
+ if (item.href === undefined) {
33
+ return (_jsx("li", { "data-slot": "top-creations-row", className: row, children: content }));
34
+ }
35
+ const Link = linkComponent ?? "a";
36
+ return (_jsx("li", { "data-slot": "top-creations-row", className: row, children: _jsx(Link, { href: item.href, "data-slot": "top-creations-link", className: "flex min-h-13 min-w-0 flex-1 items-center gap-3 rounded-xs text-ink no-underline outline-none hover:bg-(--cg-hover) focus-line", children: content }) }));
37
+ }
38
+ function TopCreationsList({ items, max, formatCount = formatChartNumber, animated = true, linkComponent, emptyLabel = "Views will appear when people visit your creations.", className, ...props }) {
39
+ if (items.length === 0) {
40
+ return (_jsxs("div", { "data-slot": "top-creations-empty", className: cn("flex min-w-0 flex-wrap items-center gap-6 text-ink", className), children: [_jsx(TopCreationsIllustration, {}), _jsx("p", { "data-slot": "top-creations-empty-label", className: "m-0 min-w-0 flex-1 basis-48 text-body-sm text-faint-strong", children: emptyLabel })] }));
41
+ }
42
+ const counts = items.map((it) => chartValue(it.count));
43
+ const scale = max && max > 0 ? max : Math.max(1, ...counts);
44
+ return (_jsx("ol", { "data-slot": "top-creations", "data-animated": animated ? "" : undefined, className: cn("m-0 grid min-w-0 list-none p-0 text-ink", className), ...props, children: items.map((item, i) => (_jsx(TopCreationsRow, { item: item, max: scale, formatCount: formatCount, animated: animated, linkComponent: linkComponent }, item.id ?? `${item.name}-${i}`))) }));
45
+ }
46
+ /**
47
+ * "My top creations" in #533's `BentoCard`, with the caller's period dropdown
48
+ * at the title's right. The empty card's children sit 12 apart, as drawn.
49
+ */
50
+ function TopCreationsCard({ items, period, title = "My top creations", max, formatCount, animated, linkComponent, emptyLabel, className, ...props }) {
51
+ return (_jsx(BentoCard, { title: title, action: period, className: cn(items.length === 0 && "gap-3", className), ...props, children: _jsx(TopCreationsList, { items: items, max: max, formatCount: formatCount, animated: animated, linkComponent: linkComponent, emptyLabel: emptyLabel }) }));
52
+ }
53
+ export { TopCreationsCard, TopCreationsIllustration, TopCreationsList };
54
+ //# sourceMappingURL=top-creations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-creations.js","sourceRoot":"","sources":["../../src/blocks/top-creations.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,K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AE,CAAC,yCAAyC,EAAE,SAAS,CAAC,KAC/D,KAAK,YAER,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,KAAC,eAAe,IAEd,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,KAAK,EACV,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,aAAa,IALvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC,EAAE,CAMnC,CACH,CAAC,GACC,CACN,CAAA;AACH,CAAC;AAED;;;GAGG;AACH,SAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,MAAM,EACN,KAAK,GAAG,kBAAkB,EAC1B,GAAG,EACH,WAAW,EACX,QAAQ,EACR,aAAa,EACb,UAAU,EACV,SAAS,EACT,GAAG,KAAK,EAWT;IACC,OAAO,CACL,KAAC,SAAS,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,EAAE,SAAS,CAAC,KAAM,KAAK,YACzG,KAAC,gBAAgB,IACf,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,UAAU,GACtB,GACQ,CACb,CAAA;AACH,CAAC;AAED,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,CAAA"}
@@ -99,6 +99,114 @@ export declare const EMAIL_HEADLINES: {
99
99
  readonly width: 300;
100
100
  readonly height: 47;
101
101
  };
102
+ readonly "you-have-1-invitation": {
103
+ readonly text: "YOU HAVE 1 INVITATION";
104
+ readonly file: "headline-you-have-1-invitation.png";
105
+ readonly width: 343;
106
+ readonly height: 47;
107
+ };
108
+ readonly "you-have-2-invitations": {
109
+ readonly text: "YOU HAVE 2 INVITATIONS";
110
+ readonly file: "headline-you-have-2-invitations.png";
111
+ readonly width: 368;
112
+ readonly height: 47;
113
+ };
114
+ readonly "you-have-3-invitations": {
115
+ readonly text: "YOU HAVE 3 INVITATIONS";
116
+ readonly file: "headline-you-have-3-invitations.png";
117
+ readonly width: 369;
118
+ readonly height: 47;
119
+ };
120
+ readonly "you-have-4-invitations": {
121
+ readonly text: "YOU HAVE 4 INVITATIONS";
122
+ readonly file: "headline-you-have-4-invitations.png";
123
+ readonly width: 370;
124
+ readonly height: 47;
125
+ };
126
+ readonly "you-have-5-invitations": {
127
+ readonly text: "YOU HAVE 5 INVITATIONS";
128
+ readonly file: "headline-you-have-5-invitations.png";
129
+ readonly width: 370;
130
+ readonly height: 47;
131
+ };
132
+ readonly "you-have-6-invitations": {
133
+ readonly text: "YOU HAVE 6 INVITATIONS";
134
+ readonly file: "headline-you-have-6-invitations.png";
135
+ readonly width: 370;
136
+ readonly height: 47;
137
+ };
138
+ readonly "you-have-7-invitations": {
139
+ readonly text: "YOU HAVE 7 INVITATIONS";
140
+ readonly file: "headline-you-have-7-invitations.png";
141
+ readonly width: 367;
142
+ readonly height: 47;
143
+ };
144
+ readonly "you-have-8-invitations": {
145
+ readonly text: "YOU HAVE 8 INVITATIONS";
146
+ readonly file: "headline-you-have-8-invitations.png";
147
+ readonly width: 370;
148
+ readonly height: 47;
149
+ };
150
+ readonly "you-have-9-invitations": {
151
+ readonly text: "YOU HAVE 9 INVITATIONS";
152
+ readonly file: "headline-you-have-9-invitations.png";
153
+ readonly width: 370;
154
+ readonly height: 47;
155
+ };
156
+ readonly "1-invitation-left": {
157
+ readonly text: "1 INVITATION LEFT";
158
+ readonly file: "headline-1-invitation-left.png";
159
+ readonly width: 267;
160
+ readonly height: 47;
161
+ };
162
+ readonly "2-invitations-left": {
163
+ readonly text: "2 INVITATIONS LEFT";
164
+ readonly file: "headline-2-invitations-left.png";
165
+ readonly width: 292;
166
+ readonly height: 47;
167
+ };
168
+ readonly "3-invitations-left": {
169
+ readonly text: "3 INVITATIONS LEFT";
170
+ readonly file: "headline-3-invitations-left.png";
171
+ readonly width: 293;
172
+ readonly height: 47;
173
+ };
174
+ readonly "4-invitations-left": {
175
+ readonly text: "4 INVITATIONS LEFT";
176
+ readonly file: "headline-4-invitations-left.png";
177
+ readonly width: 294;
178
+ readonly height: 47;
179
+ };
180
+ readonly "5-invitations-left": {
181
+ readonly text: "5 INVITATIONS LEFT";
182
+ readonly file: "headline-5-invitations-left.png";
183
+ readonly width: 293;
184
+ readonly height: 47;
185
+ };
186
+ readonly "6-invitations-left": {
187
+ readonly text: "6 INVITATIONS LEFT";
188
+ readonly file: "headline-6-invitations-left.png";
189
+ readonly width: 294;
190
+ readonly height: 47;
191
+ };
192
+ readonly "7-invitations-left": {
193
+ readonly text: "7 INVITATIONS LEFT";
194
+ readonly file: "headline-7-invitations-left.png";
195
+ readonly width: 291;
196
+ readonly height: 47;
197
+ };
198
+ readonly "8-invitations-left": {
199
+ readonly text: "8 INVITATIONS LEFT";
200
+ readonly file: "headline-8-invitations-left.png";
201
+ readonly width: 294;
202
+ readonly height: 47;
203
+ };
204
+ readonly "9-invitations-left": {
205
+ readonly text: "9 INVITATIONS LEFT";
206
+ readonly file: "headline-9-invitations-left.png";
207
+ readonly width: 294;
208
+ readonly height: 47;
209
+ };
102
210
  };
103
211
  export type EmailHeadline = keyof typeof EMAIL_HEADLINES;
104
212
  //# sourceMappingURL=assets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/email/assets.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;CAA8E,CAAA;AAEzG,eAAO,MAAM,UAAU;;;CAA0C,CAAA;AAEjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBlB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,eAAe,CAAA"}
1
+ {"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/email/assets.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;CAA8E,CAAA;AAEzG,eAAO,MAAM,UAAU;;;CAA0C,CAAA;AAEjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkClB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,eAAe,CAAA"}
@@ -21,5 +21,23 @@ export const EMAIL_HEADLINES = {
21
21
  "approval-needed": { text: "APPROVAL NEEDED", file: "headline-approval-needed.png", width: 283, height: 47 },
22
22
  "request-approved": { text: "REQUEST APPROVED", file: "headline-request-approved.png", width: 303, height: 47 },
23
23
  "new-address": { text: "NEW GRID ADDRESS", file: "headline-new-address.png", width: 300, height: 47 },
24
+ "you-have-1-invitation": { text: "YOU HAVE 1 INVITATION", file: "headline-you-have-1-invitation.png", width: 343, height: 47 },
25
+ "you-have-2-invitations": { text: "YOU HAVE 2 INVITATIONS", file: "headline-you-have-2-invitations.png", width: 368, height: 47 },
26
+ "you-have-3-invitations": { text: "YOU HAVE 3 INVITATIONS", file: "headline-you-have-3-invitations.png", width: 369, height: 47 },
27
+ "you-have-4-invitations": { text: "YOU HAVE 4 INVITATIONS", file: "headline-you-have-4-invitations.png", width: 370, height: 47 },
28
+ "you-have-5-invitations": { text: "YOU HAVE 5 INVITATIONS", file: "headline-you-have-5-invitations.png", width: 370, height: 47 },
29
+ "you-have-6-invitations": { text: "YOU HAVE 6 INVITATIONS", file: "headline-you-have-6-invitations.png", width: 370, height: 47 },
30
+ "you-have-7-invitations": { text: "YOU HAVE 7 INVITATIONS", file: "headline-you-have-7-invitations.png", width: 367, height: 47 },
31
+ "you-have-8-invitations": { text: "YOU HAVE 8 INVITATIONS", file: "headline-you-have-8-invitations.png", width: 370, height: 47 },
32
+ "you-have-9-invitations": { text: "YOU HAVE 9 INVITATIONS", file: "headline-you-have-9-invitations.png", width: 370, height: 47 },
33
+ "1-invitation-left": { text: "1 INVITATION LEFT", file: "headline-1-invitation-left.png", width: 267, height: 47 },
34
+ "2-invitations-left": { text: "2 INVITATIONS LEFT", file: "headline-2-invitations-left.png", width: 292, height: 47 },
35
+ "3-invitations-left": { text: "3 INVITATIONS LEFT", file: "headline-3-invitations-left.png", width: 293, height: 47 },
36
+ "4-invitations-left": { text: "4 INVITATIONS LEFT", file: "headline-4-invitations-left.png", width: 294, height: 47 },
37
+ "5-invitations-left": { text: "5 INVITATIONS LEFT", file: "headline-5-invitations-left.png", width: 293, height: 47 },
38
+ "6-invitations-left": { text: "6 INVITATIONS LEFT", file: "headline-6-invitations-left.png", width: 294, height: 47 },
39
+ "7-invitations-left": { text: "7 INVITATIONS LEFT", file: "headline-7-invitations-left.png", width: 291, height: 47 },
40
+ "8-invitations-left": { text: "8 INVITATIONS LEFT", file: "headline-8-invitations-left.png", width: 294, height: 47 },
41
+ "9-invitations-left": { text: "9 INVITATIONS LEFT", file: "headline-9-invitations-left.png", width: 294, height: 47 },
24
42
  };
25
43
  //# sourceMappingURL=assets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assets.js","sourceRoot":"","sources":["../../src/email/assets.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,EAAE;AACF,kEAAkE;AAClE,iFAAiF;AACjF,0DAA0D;AAE1D,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,WAAW,EA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AE,oBAAoB,EAAE,IAAI,EAAE,iCAAiC,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;IACrH,oBAAoB,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,iCAAiC,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;IACrH,oBAAoB,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,iCAAiC,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;IACrH,oBAAoB,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,iCAAiC,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;CAC7G,CAAA"}
@@ -166,11 +166,18 @@ export type EmailFact = {
166
166
  * (`EmailLine`), a section heading (`{ heading }`, bold, the reader's
167
167
  * signpost), or a facts box (`{ facts }`) placed where it is read, so an email
168
168
  * can go heading, box, line, heading, box, line.
169
+ *
170
+ * `{ address }` (ui#517) is an address the reader copies, a personal invite
171
+ * link say: shown whole in the mono face on the raised ground, without its
172
+ * `https://`, and linked by nobody (an inert anchor, as an example address in
173
+ * a line). The text part carries it exactly as passed.
169
174
  */
170
175
  export type EmailBlock = EmailLine | {
171
176
  heading: string;
172
177
  } | {
173
178
  facts: EmailFact[];
179
+ } | {
180
+ address: string;
174
181
  };
175
182
  export interface EmailItem {
176
183
  /** "Pricing Grid" */
@@ -201,6 +208,13 @@ export interface EmailContent {
201
208
  preheader?: string;
202
209
  /** The Tanker display line, from the fixed set. A pre-made image; its words are the alt text. */
203
210
  headline?: EmailHeadline;
211
+ /**
212
+ * A display line with no picture in the set (ui#517: "YOU HAVE 12
213
+ * INVITATIONS", past the counts that have one). Set as the live-text
214
+ * headline for every client, the treatment Outlook and an image-free email
215
+ * get, uppercase by style. `headline` wins when both are set.
216
+ */
217
+ headlineText?: string;
204
218
  /**
205
219
  * The first body line, under the headline: "Pricing Grid expires in 5 days."
206
220
  * Without a headline it is the email's heading. Also a good default subject.
@@ -299,6 +313,13 @@ export declare function safeUrl(url: string): string;
299
313
  * words, inside the same fixed box (cloudgrid#6037).
300
314
  */
301
315
  export declare const ALT_ICON_ROOM = 24;
316
+ /**
317
+ * The smallest a blocked headline's alt text is set. 14 since ui#517, whose
318
+ * "YOU HAVE 3 INVITATIONS" (22 letters, drawn 301 wide) is the first headline
319
+ * long enough to need it; every earlier headline computes 16 or more, the old
320
+ * floor, and is drawn exactly as it was.
321
+ */
322
+ export declare const ALT_MIN_SIZE = 14;
302
323
  /**
303
324
  * The width an item's picture is drawn at: the 560 column, less the container's
304
325
  * 1px border and 40px padding a side, less the card's own 1px border.
@@ -321,4 +342,54 @@ export declare function headlineSize(h: {
321
342
  };
322
343
  /** Render one email. Pure: the same content always gives the same strings (within a year). */
323
344
  export declare function renderEmail(content: EmailContent): RenderedEmail;
345
+ /**
346
+ * The highest count with a headline picture in the set, for both emails
347
+ * ("YOU HAVE 9 INVITATIONS", "9 INVITATIONS LEFT"). Past it the headline is
348
+ * live text (`headlineText`): the launch gives 3, and only a staff top-up goes
349
+ * higher.
350
+ */
351
+ export declare const REFERRAL_HEADLINE_MAX = 9;
352
+ export type ReferralEmailKind = "day-1" | "weekly";
353
+ export interface ReferralEmailInput {
354
+ /**
355
+ * `day-1`: the day after sign-up, and once on launch day to accounts made
356
+ * before it ("You have 3 invitations"). `weekly`: the weekly reminder, in the
357
+ * same week as the bell item ("2 invitations left").
358
+ */
359
+ kind: ReferralEmailKind;
360
+ /**
361
+ * day-1: how many the person has; weekly: how many are left. A whole number,
362
+ * 1 or more: at 0 no reminder is sent (#6645, "At 0"), so 0 throws.
363
+ */
364
+ invitations: number;
365
+ /** The person's own invite link, shown in the address box for them to copy. */
366
+ link: string;
367
+ /** Where "Refer a friend" goes. */
368
+ actionUrl: string;
369
+ /** The one-click "Turn off launch emails" link (cloudgrid#5479). */
370
+ unsubscribeUrl: string;
371
+ /** weekly: the most weeks the reminder runs, the staff setting. Default 6. */
372
+ weeks?: number;
373
+ }
374
+ export interface ReferralEmail {
375
+ /** The subject line, singular or plural with the count. */
376
+ subject: string;
377
+ /** For `renderEmail`; add `assetBaseUrl` and `webFontsUrl` as for any email. */
378
+ content: EmailContent;
379
+ }
380
+ /**
381
+ * The content of the two Refer a friend emails, in CloudGrid's voice (no
382
+ * exclamation marks, no marketing adjectives, "who would" and never "who'd"),
383
+ * singular for one:
384
+ *
385
+ * ```ts
386
+ * const { subject, content } = referralEmail({ kind: "weekly", invitations: 2, link, actionUrl, unsubscribeUrl })
387
+ * const { html, text } = renderEmail({ ...content, assetBaseUrl })
388
+ * ```
389
+ *
390
+ * When to send, and skipping at 0, with the offer off, in a hidden grid or
391
+ * after the launch-email unsubscribe, are the platform's (#6645, "Skipped
392
+ * when"). The library only writes the words.
393
+ */
394
+ export declare function referralEmail(input: ReferralEmailInput): ReferralEmail;
324
395
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/email/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqHG;AAEH,OAAO,EAAE,eAAe,EAA8B,KAAK,aAAa,EAAE,MAAM,aAAa,CAAA;AAG7F,YAAY,EAAE,aAAa,EAAE,CAAA;AAC7B,OAAO,EAAE,eAAe,EAAE,CAAA;AAE1B,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAA;AAEhD,MAAM,MAAM,SAAS,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtD,iEAAiE;AACjE,MAAM,MAAM,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,C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