@sproutsocial/seeds-react-narrative-kit 0.1.0 → 0.2.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 (46) hide show
  1. package/.turbo/turbo-build.log +11 -11
  2. package/CHANGELOG.md +9 -0
  3. package/dist/esm/index.js +296 -2
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/eyebrow-token.css +37 -0
  6. package/dist/index.d.mts +205 -1
  7. package/dist/index.d.ts +205 -1
  8. package/dist/index.js +303 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/metric-highlight.css +178 -0
  11. package/dist/narrative-container.css +1 -1
  12. package/dist/narrative-headline.css +125 -0
  13. package/dist/pull-quote.css +89 -0
  14. package/package.json +9 -3
  15. package/src/EyebrowToken/EyebrowToken.stories.tsx +25 -0
  16. package/src/EyebrowToken/EyebrowToken.tsx +29 -0
  17. package/src/EyebrowToken/EyebrowTokenTypes.ts +7 -0
  18. package/src/EyebrowToken/__tests__/EyebrowToken.test.tsx +35 -0
  19. package/src/EyebrowToken/index.ts +2 -0
  20. package/src/MetricHighlight/MetricHighlight.stories.tsx +87 -0
  21. package/src/MetricHighlight/MetricHighlight.tsx +196 -0
  22. package/src/MetricHighlight/MetricHighlightTypes.ts +61 -0
  23. package/src/MetricHighlight/__tests__/MetricHighlight.test.tsx +151 -0
  24. package/src/MetricHighlight/index.ts +5 -0
  25. package/src/NarrativeContainer/NarrativeContainer.stories.tsx +3 -3
  26. package/src/NarrativeContainer/NarrativeContainer.tsx +1 -23
  27. package/src/NarrativeHeadline/NarrativeHeadline.stories.tsx +68 -0
  28. package/src/NarrativeHeadline/NarrativeHeadline.tsx +36 -0
  29. package/src/NarrativeHeadline/NarrativeHeadlineHighlight.tsx +31 -0
  30. package/src/NarrativeHeadline/NarrativeHeadlineRoll.tsx +100 -0
  31. package/src/NarrativeHeadline/NarrativeHeadlineTypes.ts +54 -0
  32. package/src/NarrativeHeadline/__tests__/NarrativeHeadline.test.tsx +138 -0
  33. package/src/NarrativeHeadline/index.ts +9 -0
  34. package/src/Playground/Playground.stories.tsx +113 -0
  35. package/src/PullQuote/PullQuote.stories.tsx +43 -0
  36. package/src/PullQuote/PullQuote.tsx +42 -0
  37. package/src/PullQuote/PullQuoteTypes.ts +19 -0
  38. package/src/PullQuote/__tests__/PullQuote.test.tsx +48 -0
  39. package/src/PullQuote/index.ts +2 -0
  40. package/src/_internal/cn.ts +22 -0
  41. package/src/eyebrow-token.css +37 -0
  42. package/src/index.ts +20 -0
  43. package/src/metric-highlight.css +178 -0
  44. package/src/narrative-container.css +1 -1
  45. package/src/narrative-headline.css +125 -0
  46. package/src/pull-quote.css +89 -0
@@ -1,5 +1,5 @@
1
1
  yarn run v1.22.22
2
- $ tsup --dts && cp src/narrative-container.css dist/narrative-container.css
2
+ $ tsup --dts && cp src/narrative-container.css dist/narrative-container.css && cp src/narrative-headline.css dist/narrative-headline.css && cp src/pull-quote.css dist/pull-quote.css && cp src/metric-highlight.css dist/metric-highlight.css && cp src/eyebrow-token.css dist/eyebrow-token.css
3
3
  CLI Building entry: src/index.ts
4
4
  CLI Using tsconfig: tsconfig.json
5
5
  CLI tsup v8.5.0
@@ -8,14 +8,14 @@ $ tsup --dts && cp src/narrative-container.css dist/narrative-container.css
8
8
  CLI Cleaning output folder
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 2.65 KB
12
- CJS dist/index.js.map 2.72 KB
13
- CJS ⚡️ Build success in 93ms
14
- ESM dist/esm/index.js 1.03 KB
15
- ESM dist/esm/index.js.map 2.35 KB
16
- ESM ⚡️ Build success in 93ms
11
+ CJS dist/index.js 12.80 KB
12
+ CJS dist/index.js.map 23.24 KB
13
+ CJS ⚡️ Build success in 22ms
14
+ ESM dist/esm/index.js 10.40 KB
15
+ ESM dist/esm/index.js.map 22.42 KB
16
+ ESM ⚡️ Build success in 23ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 4507ms
19
- DTS dist/index.d.ts 1.45 KB
20
- DTS dist/index.d.mts 1.45 KB
21
- Done in 6.42s.
18
+ DTS ⚡️ Build success in 3112ms
19
+ DTS dist/index.d.ts 10.04 KB
20
+ DTS dist/index.d.mts 10.04 KB
21
+ Done in 4.67s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @sproutsocial/seeds-react-narrative-kit
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7ce52ce: Add narrative primitives to `seeds-react-narrative-kit`: `MetricHighlight` for
8
+ emphasizing key figures, `NarrativeHeadline` (with highlight and roll variants) for
9
+ section headers, and `PullQuote` for callout quotations. All are exported through
10
+ `@sproutsocial/racine`.
11
+
3
12
  ## 0.1.0
4
13
 
5
14
  ### Minor Changes
package/dist/esm/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // src/NarrativeContainer/NarrativeContainer.tsx
2
2
  import * as React from "react";
3
- import { jsx } from "react/jsx-runtime";
3
+
4
+ // src/_internal/cn.ts
4
5
  function cn(...inputs) {
5
6
  const classes = [];
6
7
  for (const input of inputs) {
@@ -17,6 +18,9 @@ function cn(...inputs) {
17
18
  }
18
19
  return classes.join(" ");
19
20
  }
21
+
22
+ // src/NarrativeContainer/NarrativeContainer.tsx
23
+ import { jsx } from "react/jsx-runtime";
20
24
  var NarrativeContainer = React.forwardRef(({ children, accent = true, className, ...props }, ref) => {
21
25
  return /* @__PURE__ */ jsx(
22
26
  "div",
@@ -34,7 +38,297 @@ var NarrativeContainer = React.forwardRef(({ children, accent = true, className,
34
38
  });
35
39
  NarrativeContainer.displayName = "NarrativeContainer";
36
40
  var NarrativeContainer_default = NarrativeContainer;
41
+
42
+ // src/NarrativeHeadline/NarrativeHeadline.tsx
43
+ import * as React2 from "react";
44
+ import { jsx as jsx2 } from "react/jsx-runtime";
45
+ var NarrativeHeadline = React2.forwardRef(({ children, headingLevel = 2, className, ...props }, ref) => {
46
+ const Heading = `h${headingLevel}`;
47
+ return /* @__PURE__ */ jsx2(
48
+ Heading,
49
+ {
50
+ ref,
51
+ className: cn("seeds-narrative-headline", className),
52
+ ...props,
53
+ children
54
+ }
55
+ );
56
+ });
57
+ NarrativeHeadline.displayName = "NarrativeHeadline";
58
+ var NarrativeHeadline_default = NarrativeHeadline;
59
+
60
+ // src/NarrativeHeadline/NarrativeHeadlineHighlight.tsx
61
+ import * as React3 from "react";
62
+ import { jsx as jsx3 } from "react/jsx-runtime";
63
+ var NarrativeHeadlineHighlight = React3.forwardRef(({ children, className, ...props }, ref) => {
64
+ return /* @__PURE__ */ jsx3(
65
+ "span",
66
+ {
67
+ ref,
68
+ className: cn("seeds-narrative-headline-highlight", className),
69
+ ...props,
70
+ children
71
+ }
72
+ );
73
+ });
74
+ NarrativeHeadlineHighlight.displayName = "NarrativeHeadlineHighlight";
75
+ var NarrativeHeadlineHighlight_default = NarrativeHeadlineHighlight;
76
+
77
+ // src/NarrativeHeadline/NarrativeHeadlineRoll.tsx
78
+ import * as React4 from "react";
79
+ import { jsx as jsx4, jsxs } from "react/jsx-runtime";
80
+ var NarrativeHeadlineRoll = React4.forwardRef(
81
+ ({
82
+ words,
83
+ intervalMs = 2200,
84
+ transitionMs = 500,
85
+ direction = "up",
86
+ gradient = true,
87
+ className,
88
+ style,
89
+ ...rest
90
+ }, ref) => {
91
+ const [i, setI] = React4.useState(0);
92
+ React4.useEffect(() => {
93
+ if (words.length <= 1) return;
94
+ const reduced = typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
95
+ if (reduced) return;
96
+ const t = setInterval(
97
+ () => setI((j) => (j + 1) % words.length),
98
+ intervalMs
99
+ );
100
+ return () => clearInterval(t);
101
+ }, [intervalMs, words.length]);
102
+ const merged = {
103
+ ...style,
104
+ // Consumed by the transition timing in narrative-headline.css.
105
+ ["--seeds-narrative-headline-roll-ms"]: `${transitionMs}ms`
106
+ };
107
+ const prev = words.length ? (i - 1 + words.length) % words.length : 0;
108
+ return /* @__PURE__ */ jsxs(
109
+ "span",
110
+ {
111
+ ref,
112
+ className: cn(
113
+ "seeds-narrative-headline-roll",
114
+ { "seeds-narrative-headline-roll-down": direction === "down" },
115
+ { "seeds-narrative-headline-roll-gradient": gradient },
116
+ className
117
+ ),
118
+ style: merged,
119
+ ...rest,
120
+ children: [
121
+ /* @__PURE__ */ jsx4("span", { className: "seeds-narrative-headline-roll-sizer", "aria-hidden": "true", children: words[i] }),
122
+ words.map((w, idx) => /* @__PURE__ */ jsx4(
123
+ "span",
124
+ {
125
+ className: cn("seeds-narrative-headline-roll-word", {
126
+ "seeds-narrative-headline-roll-word-active": idx === i,
127
+ "seeds-narrative-headline-roll-word-past": idx === prev && i !== prev
128
+ }),
129
+ "aria-hidden": idx === i ? void 0 : "true",
130
+ children: w
131
+ },
132
+ idx
133
+ ))
134
+ ]
135
+ }
136
+ );
137
+ }
138
+ );
139
+ NarrativeHeadlineRoll.displayName = "NarrativeHeadlineRoll";
140
+ var NarrativeHeadlineRoll_default = NarrativeHeadlineRoll;
141
+
142
+ // src/PullQuote/PullQuote.tsx
143
+ import * as React5 from "react";
144
+ import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
145
+ var PullQuote = React5.forwardRef(
146
+ ({ quote, attribution, appearance = "subtle", className, ...props }, ref) => {
147
+ return /* @__PURE__ */ jsx5(
148
+ "figure",
149
+ {
150
+ ref,
151
+ className: cn(
152
+ "seeds-pull-quote",
153
+ { "seeds-pull-quote-vivid": appearance === "vivid" },
154
+ className
155
+ ),
156
+ ...props,
157
+ children: /* @__PURE__ */ jsxs2("div", { className: "seeds-pull-quote-bar", children: [
158
+ /* @__PURE__ */ jsx5("blockquote", { className: "seeds-pull-quote-text", children: quote }),
159
+ attribution != null && /* @__PURE__ */ jsx5("figcaption", { className: "seeds-pull-quote-attribution", children: attribution })
160
+ ] })
161
+ }
162
+ );
163
+ }
164
+ );
165
+ PullQuote.displayName = "PullQuote";
166
+ var PullQuote_default = PullQuote;
167
+
168
+ // src/EyebrowToken/EyebrowToken.tsx
169
+ import * as React6 from "react";
170
+ import { jsx as jsx6 } from "react/jsx-runtime";
171
+ var EyebrowToken = React6.forwardRef(
172
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx6(
173
+ "span",
174
+ {
175
+ ref,
176
+ className: cn("seeds-eyebrow-token", className),
177
+ ...props,
178
+ children
179
+ }
180
+ )
181
+ );
182
+ EyebrowToken.displayName = "EyebrowToken";
183
+ var EyebrowToken_default = EyebrowToken;
184
+
185
+ // src/MetricHighlight/MetricHighlight.tsx
186
+ import * as React7 from "react";
187
+ import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
188
+ var SPARK_VIEWBOX_WIDTH = 100;
189
+ var SPARK_VIEWBOX_HEIGHT = 32;
190
+ var SPARK_PADDING = 2;
191
+ var DEFAULT_SPARK = [6, 10, 8, 13, 11, 16];
192
+ var smoothPath = (points) => {
193
+ if (points.length < 2) {
194
+ const p = points[0];
195
+ return p ? `M ${p.x},${p.y}` : "";
196
+ }
197
+ let d = `M ${points[0].x.toFixed(2)},${points[0].y.toFixed(2)}`;
198
+ for (let i = 0; i < points.length - 1; i++) {
199
+ const p1 = points[i];
200
+ const p2 = points[i + 1];
201
+ const p0 = points[i - 1] ?? p1;
202
+ const p3 = points[i + 2] ?? p2;
203
+ const cp1x = p1.x + (p2.x - p0.x) / 6;
204
+ const cp1y = p1.y + (p2.y - p0.y) / 6;
205
+ const cp2x = p2.x - (p3.x - p1.x) / 6;
206
+ const cp2y = p2.y - (p3.y - p1.y) / 6;
207
+ d += ` C ${cp1x.toFixed(2)},${cp1y.toFixed(2)} ${cp2x.toFixed(
208
+ 2
209
+ )},${cp2y.toFixed(2)} ${p2.x.toFixed(2)},${p2.y.toFixed(2)}`;
210
+ }
211
+ return d;
212
+ };
213
+ var Sparkline = ({
214
+ data,
215
+ negative
216
+ }) => {
217
+ const min = Math.min(...data);
218
+ const max = Math.max(...data);
219
+ const range = max - min || 1;
220
+ const usableHeight = SPARK_VIEWBOX_HEIGHT - SPARK_PADDING * 2;
221
+ const points = data.map((value, i) => ({
222
+ x: data.length === 1 ? SPARK_VIEWBOX_WIDTH / 2 : i / (data.length - 1) * SPARK_VIEWBOX_WIDTH,
223
+ // Invert y so larger values sit higher in the chart.
224
+ y: SPARK_PADDING + (1 - (value - min) / range) * usableHeight
225
+ }));
226
+ return /* @__PURE__ */ jsx7(
227
+ "svg",
228
+ {
229
+ className: cn("seeds-metric-highlight-spark", {
230
+ "seeds-metric-highlight-spark-negative": Boolean(negative)
231
+ }),
232
+ viewBox: `0 0 ${SPARK_VIEWBOX_WIDTH} ${SPARK_VIEWBOX_HEIGHT}`,
233
+ preserveAspectRatio: "none",
234
+ "aria-hidden": true,
235
+ focusable: false,
236
+ children: /* @__PURE__ */ jsx7("path", { d: smoothPath(points), fill: "none", strokeLinecap: "round" })
237
+ }
238
+ );
239
+ };
240
+ var TrendArrow = ({ direction }) => /* @__PURE__ */ jsx7(
241
+ "svg",
242
+ {
243
+ className: "seeds-metric-highlight-trend-arrow",
244
+ viewBox: "0 0 16 16",
245
+ "aria-hidden": true,
246
+ focusable: false,
247
+ children: direction === "up" ? /* @__PURE__ */ jsx7(
248
+ "path",
249
+ {
250
+ d: "M4.5 11.5 11.5 4.5M11.5 4.5H5.5M11.5 4.5V10.5",
251
+ fill: "none",
252
+ strokeLinecap: "round",
253
+ strokeLinejoin: "round"
254
+ }
255
+ ) : /* @__PURE__ */ jsx7(
256
+ "path",
257
+ {
258
+ d: "M4.5 4.5 11.5 11.5M11.5 11.5H5.5M11.5 11.5V5.5",
259
+ fill: "none",
260
+ strokeLinecap: "round",
261
+ strokeLinejoin: "round"
262
+ }
263
+ )
264
+ }
265
+ );
266
+ var TrendBadge = ({ direction = "up", value, ...rest }) => /* @__PURE__ */ jsxs3(
267
+ "span",
268
+ {
269
+ className: cn("seeds-metric-highlight-trend", {
270
+ "seeds-metric-highlight-trend-down": direction === "down"
271
+ }),
272
+ ...rest,
273
+ children: [
274
+ /* @__PURE__ */ jsx7(TrendArrow, { direction }),
275
+ value != null && /* @__PURE__ */ jsx7("span", { className: "seeds-metric-highlight-trend-value", children: value })
276
+ ]
277
+ }
278
+ );
279
+ var MetricHighlight = React7.forwardRef(
280
+ ({
281
+ label,
282
+ value,
283
+ trend,
284
+ data,
285
+ chart = true,
286
+ appearance = "horizontal",
287
+ size = "default",
288
+ container = true,
289
+ className,
290
+ ...props
291
+ }, ref) => {
292
+ const isDown = trend?.direction === "down";
293
+ const resolvedData = data ?? (isDown ? [...DEFAULT_SPARK].reverse() : DEFAULT_SPARK);
294
+ const showChart = chart && resolvedData.length > 0;
295
+ return /* @__PURE__ */ jsxs3(
296
+ "div",
297
+ {
298
+ ref,
299
+ className: cn(
300
+ "seeds-metric-highlight",
301
+ {
302
+ "seeds-metric-highlight-vertical": appearance === "vertical",
303
+ "seeds-metric-highlight-small": size === "small",
304
+ "seeds-metric-highlight-bare": !container
305
+ },
306
+ className
307
+ ),
308
+ ...props,
309
+ children: [
310
+ /* @__PURE__ */ jsxs3("div", { className: "seeds-metric-highlight-metric", children: [
311
+ /* @__PURE__ */ jsx7("p", { className: "seeds-metric-highlight-label", children: label }),
312
+ /* @__PURE__ */ jsxs3("div", { className: "seeds-metric-highlight-value-row", children: [
313
+ /* @__PURE__ */ jsx7("p", { className: "seeds-metric-highlight-value", children: value }),
314
+ trend != null && /* @__PURE__ */ jsx7(TrendBadge, { ...trend })
315
+ ] })
316
+ ] }),
317
+ showChart && /* @__PURE__ */ jsx7(Sparkline, { data: resolvedData, negative: isDown })
318
+ ]
319
+ }
320
+ );
321
+ }
322
+ );
323
+ MetricHighlight.displayName = "MetricHighlight";
324
+ var MetricHighlight_default = MetricHighlight;
37
325
  export {
38
- NarrativeContainer_default as NarrativeContainer
326
+ EyebrowToken_default as EyebrowToken,
327
+ MetricHighlight_default as MetricHighlight,
328
+ NarrativeContainer_default as NarrativeContainer,
329
+ NarrativeHeadline_default as NarrativeHeadline,
330
+ NarrativeHeadlineHighlight_default as NarrativeHeadlineHighlight,
331
+ NarrativeHeadlineRoll_default as NarrativeHeadlineRoll,
332
+ PullQuote_default as PullQuote
39
333
  };
40
334
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/NarrativeContainer/NarrativeContainer.tsx"],"sourcesContent":["import * as React from \"react\";\nimport type { TypeNarrativeContainerProps } from \"./NarrativeContainerTypes\";\n\n/** Merge class names, supporting `{ \"class\": boolean }` toggles. */\nfunction cn(\n ...inputs: (string | undefined | null | false | Record<string, boolean>)[]\n): string {\n const classes: string[] = [];\n\n for (const input of inputs) {\n if (!input) continue;\n\n if (typeof input === \"string\") {\n classes.push(input);\n } else if (typeof input === \"object\") {\n for (const [key, value] of Object.entries(input)) {\n if (value) {\n classes.push(key);\n }\n }\n }\n }\n\n return classes.join(\" \");\n}\n\n/**\n * NarrativeContainer — the foundational surface that narrative primitives are\n * composed inside. A padded, rounded, elevated card with a content slot and an\n * optional decorative gradient accent that wraps the top-left corner.\n *\n * Styled via `narrative-container.css` (Seeds CSS custom properties). Consumers\n * import the classes through `@sproutsocial/racine/css/components`. Surface\n * overrides are done with standard `className` / `style`.\n */\nconst NarrativeContainer = React.forwardRef<\n HTMLDivElement,\n TypeNarrativeContainerProps\n>(({ children, accent = true, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n \"seeds-narrative-container\",\n { \"seeds-narrative-container-accent\": accent },\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n});\n\nNarrativeContainer.displayName = \"NarrativeContainer\";\n\nexport default NarrativeContainer;\n"],"mappings":";AAAA,YAAY,WAAW;AAwCnB;AApCJ,SAAS,MACJ,QACK;AACR,QAAM,UAAoB,CAAC;AAE3B,aAAW,SAAS,QAAQ;AAC1B,QAAI,CAAC,MAAO;AAEZ,QAAI,OAAO,UAAU,UAAU;AAC7B,cAAQ,KAAK,KAAK;AAAA,IACpB,WAAW,OAAO,UAAU,UAAU;AACpC,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AAChD,YAAI,OAAO;AACT,kBAAQ,KAAK,GAAG;AAAA,QAClB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,SAAO,QAAQ,KAAK,GAAG;AACzB;AAWA,IAAM,qBAA2B,iBAG/B,CAAC,EAAE,UAAU,SAAS,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ;AAC3D,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA,EAAE,oCAAoC,OAAO;AAAA,QAC7C;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ,CAAC;AAED,mBAAmB,cAAc;AAEjC,IAAO,6BAAQ;","names":[]}
1
+ {"version":3,"sources":["../../src/NarrativeContainer/NarrativeContainer.tsx","../../src/_internal/cn.ts","../../src/NarrativeHeadline/NarrativeHeadline.tsx","../../src/NarrativeHeadline/NarrativeHeadlineHighlight.tsx","../../src/NarrativeHeadline/NarrativeHeadlineRoll.tsx","../../src/PullQuote/PullQuote.tsx","../../src/EyebrowToken/EyebrowToken.tsx","../../src/MetricHighlight/MetricHighlight.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type { TypeNarrativeContainerProps } from \"./NarrativeContainerTypes\";\n\n/**\n * NarrativeContainer — the foundational surface that narrative primitives are\n * composed inside. A padded, rounded, elevated card with a content slot and an\n * optional decorative gradient accent that wraps the top-left corner.\n *\n * Styled via `narrative-container.css` (Seeds CSS custom properties). Consumers\n * import the classes through `@sproutsocial/racine/css/components`. Surface\n * overrides are done with standard `className` / `style`.\n */\nconst NarrativeContainer = React.forwardRef<\n HTMLDivElement,\n TypeNarrativeContainerProps\n>(({ children, accent = true, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n \"seeds-narrative-container\",\n { \"seeds-narrative-container-accent\": accent },\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n});\n\nNarrativeContainer.displayName = \"NarrativeContainer\";\n\nexport default NarrativeContainer;\n","/** Merge class names, supporting `{ \"class\": boolean }` toggles. */\nexport function cn(\n ...inputs: (string | undefined | null | false | Record<string, boolean>)[]\n): string {\n const classes: string[] = [];\n\n for (const input of inputs) {\n if (!input) continue;\n\n if (typeof input === \"string\") {\n classes.push(input);\n } else if (typeof input === \"object\") {\n for (const [key, value] of Object.entries(input)) {\n if (value) {\n classes.push(key);\n }\n }\n }\n }\n\n return classes.join(\" \");\n}\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type { TypeNarrativeHeadlineProps } from \"./NarrativeHeadlineTypes\";\n\n/**\n * NarrativeHeadline — the titling primitive for a narrative block. A single\n * heading element, nothing more: supporting copy and tags/tokens belong to\n * sibling primitives that compose alongside it, not baked into the title.\n *\n * Wrap part of the headline in `<NarrativeHeadlineHighlight>` for a static\n * gradient accent, or `<NarrativeHeadlineRoll>` for the rolling \"roll\" variant.\n *\n * Styled via `narrative-headline.css` (Seeds CSS custom properties). Consumers\n * import the classes through `@sproutsocial/racine/css/components`. Overrides\n * are done with standard `className` / `style`.\n */\nconst NarrativeHeadline = React.forwardRef<\n HTMLHeadingElement,\n TypeNarrativeHeadlineProps\n>(({ children, headingLevel = 2, className, ...props }, ref) => {\n const Heading = `h${headingLevel}` as const;\n\n return (\n <Heading\n ref={ref}\n className={cn(\"seeds-narrative-headline\", className)}\n {...props}\n >\n {children}\n </Heading>\n );\n});\n\nNarrativeHeadline.displayName = \"NarrativeHeadline\";\n\nexport default NarrativeHeadline;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type { TypeNarrativeHeadlineHighlightProps } from \"./NarrativeHeadlineTypes\";\n\n/**\n * NarrativeHeadlineHighlight — paints a span of headline text with the AI\n * brand gradient (the \"highlighted word\" treatment). Drop it inline inside a\n * `<NarrativeHeadline>`:\n *\n * <NarrativeHeadline>\n * Headline with a <NarrativeHeadlineHighlight>highlighted</NarrativeHeadlineHighlight> word\n * </NarrativeHeadline>\n */\nconst NarrativeHeadlineHighlight = React.forwardRef<\n HTMLSpanElement,\n TypeNarrativeHeadlineHighlightProps\n>(({ children, className, ...props }, ref) => {\n return (\n <span\n ref={ref}\n className={cn(\"seeds-narrative-headline-highlight\", className)}\n {...props}\n >\n {children}\n </span>\n );\n});\n\nNarrativeHeadlineHighlight.displayName = \"NarrativeHeadlineHighlight\";\n\nexport default NarrativeHeadlineHighlight;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type { TypeNarrativeHeadlineRollProps } from \"./NarrativeHeadlineTypes\";\n\n/**\n * NarrativeHeadlineRoll — the \"roll\" variant: a vertical word roll for the\n * highlighted slot of a headline. The active word slides into view while the\n * previous one rolls out (no typing). Inspired by the performative-ui WordRoll.\n *\n * <NarrativeHeadline>\n * Built for{\" \"}\n * <NarrativeHeadlineRoll words={[\"marketers\", \"agencies\", \"teams\"]} />\n * </NarrativeHeadline>\n *\n * The container width follows the active word so it sits naturally inline.\n * Gradient-painted by default; honors `prefers-reduced-motion` by holding the\n * first word static.\n */\nconst NarrativeHeadlineRoll = React.forwardRef<\n HTMLSpanElement,\n TypeNarrativeHeadlineRollProps\n>(\n (\n {\n words,\n intervalMs = 2200,\n transitionMs = 500,\n direction = \"up\",\n gradient = true,\n className,\n style,\n ...rest\n },\n ref\n ) => {\n const [i, setI] = React.useState(0);\n\n React.useEffect(() => {\n if (words.length <= 1) return;\n\n // Respect reduced-motion: hold the first word, skip the cycle entirely.\n const reduced =\n typeof window !== \"undefined\" &&\n typeof window.matchMedia === \"function\" &&\n window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n if (reduced) return;\n\n const t = setInterval(\n () => setI((j) => (j + 1) % words.length),\n intervalMs\n );\n return () => clearInterval(t);\n }, [intervalMs, words.length]);\n\n const merged: React.CSSProperties = {\n ...style,\n // Consumed by the transition timing in narrative-headline.css.\n [\"--seeds-narrative-headline-roll-ms\" as string]: `${transitionMs}ms`,\n };\n\n const prev = words.length ? (i - 1 + words.length) % words.length : 0;\n\n return (\n <span\n ref={ref}\n className={cn(\n \"seeds-narrative-headline-roll\",\n { \"seeds-narrative-headline-roll-down\": direction === \"down\" },\n { \"seeds-narrative-headline-roll-gradient\": gradient },\n className\n )}\n style={merged}\n {...rest}\n >\n {/* Sizer keeps the container width matched to the active word — without\n it the absolutely-positioned words would collapse the box. */}\n <span className=\"seeds-narrative-headline-roll-sizer\" aria-hidden=\"true\">\n {words[i]}\n </span>\n {words.map((w, idx) => (\n <span\n key={idx}\n className={cn(\"seeds-narrative-headline-roll-word\", {\n \"seeds-narrative-headline-roll-word-active\": idx === i,\n \"seeds-narrative-headline-roll-word-past\":\n idx === prev && i !== prev,\n })}\n aria-hidden={idx === i ? undefined : \"true\"}\n >\n {w}\n </span>\n ))}\n </span>\n );\n }\n);\n\nNarrativeHeadlineRoll.displayName = \"NarrativeHeadlineRoll\";\n\nexport default NarrativeHeadlineRoll;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type { TypePullQuoteProps } from \"./PullQuoteTypes\";\n\n/**\n * PullQuote — a narrative primitive that spotlights a quotation on an AI\n * gradient surface. The quote sits behind an accented vertical bar with an\n * optional attribution row (author name, avatar, network).\n *\n * Rendered as semantic `<figure>` / `<blockquote>` / `<figcaption>` markup.\n * Styled via `pull-quote.css` (Seeds CSS custom properties); consumers import\n * the classes through `@sproutsocial/racine/css/components`. Surface overrides\n * are done with standard `className` / `style`.\n */\nconst PullQuote = React.forwardRef<HTMLElement, TypePullQuoteProps>(\n ({ quote, attribution, appearance = \"subtle\", className, ...props }, ref) => {\n return (\n <figure\n ref={ref}\n className={cn(\n \"seeds-pull-quote\",\n { \"seeds-pull-quote-vivid\": appearance === \"vivid\" },\n className\n )}\n {...props}\n >\n <div className=\"seeds-pull-quote-bar\">\n <blockquote className=\"seeds-pull-quote-text\">{quote}</blockquote>\n {attribution != null && (\n <figcaption className=\"seeds-pull-quote-attribution\">\n {attribution}\n </figcaption>\n )}\n </div>\n </figure>\n );\n }\n);\n\nPullQuote.displayName = \"PullQuote\";\n\nexport default PullQuote;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type { TypeEyebrowTokenProps } from \"./EyebrowTokenTypes\";\n\n/**\n * EyebrowToken — a small gray pill that sits above a headline to carry a short\n * bit of context: a date (e.g. \"May 31, 2026\"), category, or kicker.\n *\n * A faithful match of the Figma \"Token / Non Clickable / Default\" design — a\n * solid `#dee1e1` fill with a matching border, 6px radius, and small body text.\n * Styled via `eyebrow-token.css` (Seeds CSS custom properties); consumers import\n * the classes through `@sproutsocial/racine/css/components`. Overrides come via\n * standard `className` / `style`.\n */\nconst EyebrowToken = React.forwardRef<HTMLSpanElement, TypeEyebrowTokenProps>(\n ({ children, className, ...props }, ref) => (\n <span\n ref={ref}\n className={cn(\"seeds-eyebrow-token\", className)}\n {...props}\n >\n {children}\n </span>\n )\n);\n\nEyebrowToken.displayName = \"EyebrowToken\";\n\nexport default EyebrowToken;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type {\n TypeMetricHighlightProps,\n TypeMetricHighlightTrend,\n} from \"./MetricHighlightTypes\";\n\n/** Fixed viewBox the sparkline normalizes into; CSS stretches it to fit. */\nconst SPARK_VIEWBOX_WIDTH = 100;\nconst SPARK_VIEWBOX_HEIGHT = 32;\n/** Inset so the stroke at the min/max points isn't clipped by the viewBox edge. */\nconst SPARK_PADDING = 2;\n\n/**\n * Default sparkline series used when the consumer doesn't pass `data` — a gently\n * rising wave. It's reversed for a downward trend so the line slopes to match.\n */\nconst DEFAULT_SPARK = [6, 10, 8, 13, 11, 16];\n\n/**\n * Build a smooth SVG path through `points` using a Catmull-Rom spline converted\n * to cubic béziers. Each segment's control points are derived from its\n * neighbors, so the curve passes through every data point with soft, rounded\n * transitions (matching the design) rather than sharp polyline corners.\n */\nconst smoothPath = (points: { x: number; y: number }[]) => {\n if (points.length < 2) {\n const p = points[0];\n return p ? `M ${p.x},${p.y}` : \"\";\n }\n\n let d = `M ${points[0]!.x.toFixed(2)},${points[0]!.y.toFixed(2)}`;\n for (let i = 0; i < points.length - 1; i++) {\n // The loop bound guarantees p1 and p2; p0/p3 clamp to the endpoints.\n const p1 = points[i]!;\n const p2 = points[i + 1]!;\n const p0 = points[i - 1] ?? p1;\n const p3 = points[i + 2] ?? p2;\n // Catmull-Rom → bézier control points (tension 1/6).\n const cp1x = p1.x + (p2.x - p0.x) / 6;\n const cp1y = p1.y + (p2.y - p0.y) / 6;\n const cp2x = p2.x - (p3.x - p1.x) / 6;\n const cp2y = p2.y - (p3.y - p1.y) / 6;\n d += ` C ${cp1x.toFixed(2)},${cp1y.toFixed(2)} ${cp2x.toFixed(\n 2\n )},${cp2y.toFixed(2)} ${p2.x.toFixed(2)},${p2.y.toFixed(2)}`;\n }\n return d;\n};\n\n/**\n * Sparkline — an inline SVG path normalized from `data` into a fixed viewBox and\n * smoothed into a soft curve. `preserveAspectRatio=\"none\"` plus a non-scaling\n * stroke (set in CSS) lets a single path stretch to any width/height while\n * keeping a crisp line.\n */\nconst Sparkline = ({\n data,\n negative,\n}: {\n data: number[];\n negative?: boolean;\n}) => {\n const min = Math.min(...data);\n const max = Math.max(...data);\n const range = max - min || 1;\n const usableHeight = SPARK_VIEWBOX_HEIGHT - SPARK_PADDING * 2;\n\n const points = data.map((value, i) => ({\n x:\n data.length === 1\n ? SPARK_VIEWBOX_WIDTH / 2\n : (i / (data.length - 1)) * SPARK_VIEWBOX_WIDTH,\n // Invert y so larger values sit higher in the chart.\n y: SPARK_PADDING + (1 - (value - min) / range) * usableHeight,\n }));\n\n return (\n <svg\n className={cn(\"seeds-metric-highlight-spark\", {\n \"seeds-metric-highlight-spark-negative\": Boolean(negative),\n })}\n viewBox={`0 0 ${SPARK_VIEWBOX_WIDTH} ${SPARK_VIEWBOX_HEIGHT}`}\n preserveAspectRatio=\"none\"\n aria-hidden\n focusable={false}\n >\n <path d={smoothPath(points)} fill=\"none\" strokeLinecap=\"round\" />\n </svg>\n );\n};\n\n/** Directional arrow glyph for the trend badge (decorative; `aria-hidden`). */\nconst TrendArrow = ({ direction }: { direction: \"up\" | \"down\" }) => (\n <svg\n className=\"seeds-metric-highlight-trend-arrow\"\n viewBox=\"0 0 16 16\"\n aria-hidden\n focusable={false}\n >\n {direction === \"up\" ? (\n <path\n d=\"M4.5 11.5 11.5 4.5M11.5 4.5H5.5M11.5 4.5V10.5\"\n fill=\"none\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n ) : (\n <path\n d=\"M4.5 4.5 11.5 11.5M11.5 11.5H5.5M11.5 11.5V5.5\"\n fill=\"none\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n )}\n </svg>\n);\n\nconst TrendBadge = ({ direction = \"up\", value, ...rest }: TypeMetricHighlightTrend) => (\n <span\n className={cn(\"seeds-metric-highlight-trend\", {\n \"seeds-metric-highlight-trend-down\": direction === \"down\",\n })}\n {...rest}\n >\n <TrendArrow direction={direction} />\n {value != null && (\n <span className=\"seeds-metric-highlight-trend-value\">{value}</span>\n )}\n </span>\n);\n\n/**\n * MetricHighlight — a narrative primitive that spotlights a single metric: a\n * label, a large monospace value, an optional trend badge (a directional arrow\n * plus an optional number such as \"240%\"), and an optional sparkline.\n *\n * Styled via `metric-highlight.css` (Seeds CSS custom properties); consumers\n * import the classes through `@sproutsocial/racine/css/components`. Layout flexes\n * across `appearance` (horizontal/vertical) and `size` (default/small); surface\n * overrides are done with standard `className` / `style`.\n */\nconst MetricHighlight = React.forwardRef<HTMLDivElement, TypeMetricHighlightProps>(\n (\n {\n label,\n value,\n trend,\n data,\n chart = true,\n appearance = \"horizontal\",\n size = \"default\",\n container = true,\n className,\n ...props\n },\n ref\n ) => {\n const isDown = trend?.direction === \"down\";\n // Fall back to a sensible default series, sloped to match the trend, so the\n // chart renders without the consumer wiring up data. An explicit `data`\n // (including an empty array to opt out) always wins.\n const resolvedData =\n data ?? (isDown ? [...DEFAULT_SPARK].reverse() : DEFAULT_SPARK);\n const showChart = chart && resolvedData.length > 0;\n\n return (\n <div\n ref={ref}\n className={cn(\n \"seeds-metric-highlight\",\n {\n \"seeds-metric-highlight-vertical\": appearance === \"vertical\",\n \"seeds-metric-highlight-small\": size === \"small\",\n \"seeds-metric-highlight-bare\": !container,\n },\n className\n )}\n {...props}\n >\n <div className=\"seeds-metric-highlight-metric\">\n <p className=\"seeds-metric-highlight-label\">{label}</p>\n <div className=\"seeds-metric-highlight-value-row\">\n <p className=\"seeds-metric-highlight-value\">{value}</p>\n {trend != null && <TrendBadge {...trend} />}\n </div>\n </div>\n {showChart && <Sparkline data={resolvedData} negative={isDown} />}\n </div>\n );\n }\n);\n\nMetricHighlight.displayName = \"MetricHighlight\";\n\nexport default MetricHighlight;\n"],"mappings":";AAAA,YAAY,WAAW;;;ACChB,SAAS,MACX,QACK;AACR,QAAM,UAAoB,CAAC;AAE3B,aAAW,SAAS,QAAQ;AAC1B,QAAI,CAAC,MAAO;AAEZ,QAAI,OAAO,UAAU,UAAU;AAC7B,cAAQ,KAAK,KAAK;AAAA,IACpB,WAAW,OAAO,UAAU,UAAU;AACpC,iBAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,KAAK,GAAG;AAChD,YAAI,OAAO;AACT,kBAAQ,KAAK,GAAG;AAAA,QAClB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,SAAO,QAAQ,KAAK,GAAG;AACzB;;;ADHI;AALJ,IAAM,qBAA2B,iBAG/B,CAAC,EAAE,UAAU,SAAS,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ;AAC3D,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA,EAAE,oCAAoC,OAAO;AAAA,QAC7C;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ,CAAC;AAED,mBAAmB,cAAc;AAEjC,IAA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AAI,WAAU,iCACb;AAAA,4BAAAD,KAAC,OAAE,WAAU,gCAAgC,iBAAM;AAAA,YACnD,gBAAAC,MAAC,SAAI,WAAU,oCACb;AAAA,8BAAAD,KAAC,OAAE,WAAU,gCAAgC,iBAAM;AAAA,cAClD,SAAS,QAAQ,gBAAAA,KAAC,cAAY,GAAG,OAAO;AAAA,eAC3C;AAAA,aACF;AAAA,UACC,aAAa,gBAAAA,KAAC,aAAU,MAAM,cAAc,UAAU,QAAQ;AAAA;AAAA;AAAA,IACjE;AAAA,EAEJ;AACF;AAEA,gBAAgB,cAAc;AAE9B,IAAO,0BAAQ;","names":["React","jsx","React","jsx","React","jsx","React","jsx","jsxs","React","jsx","React","jsx","jsxs"]}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Seeds EyebrowToken component classes.
3
+ * Use these instead of writing out individual Tailwind utility classes.
4
+ *
5
+ * Requires @sproutsocial/seeds-react-theme/dist/theme-all.css imported for
6
+ * CSS variable definitions and dark mode support.
7
+ *
8
+ * Usage:
9
+ * <span class="seeds-eyebrow-token">May 31, 2026</span>
10
+ */
11
+
12
+ @layer components {
13
+
14
+ /* A solid gray pill matching the design: background and border are both the
15
+ #dee1e1 container-border-base token, which also tracks dark mode. The two
16
+ pixel literals below have no exact theme token — the --space scale skips 6px
17
+ (4px→8px) and the --font-size scale skips 12px (11px→13px) — so the design's
18
+ values are kept verbatim. All colors use tokens. */
19
+ .seeds-eyebrow-token {
20
+ box-sizing: border-box;
21
+ display: inline-flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ gap: var(--space-100); /* 2px */
25
+ padding: var(--space-100) var(--space-300); /* 2px / 8px */
26
+ border: 1px solid var(--color-container-border-base); /* #dee1e1 */
27
+ border-radius: var(--radius-500); /* 6px */
28
+ background-color: var(--color-container-border-base); /* #dee1e1 */
29
+ font-family: var(--font-family);
30
+ font-size: 12px; /* text-sm */
31
+ line-height: 20px;
32
+ font-weight: var(--font-weight-normal);
33
+ color: var(--color-text-body);
34
+ white-space: nowrap;
35
+ }
36
+
37
+ }