@sproutsocial/seeds-react-narrative-kit 0.2.0 → 0.4.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 (65) hide show
  1. package/.turbo/turbo-build.log +11 -11
  2. package/CHANGELOG.md +46 -0
  3. package/dist/ai-container.css +39 -0
  4. package/dist/esm/index.js +217 -91
  5. package/dist/esm/index.js.map +1 -1
  6. package/dist/index.d.mts +232 -14
  7. package/dist/index.d.ts +232 -14
  8. package/dist/index.js +224 -93
  9. package/dist/index.js.map +1 -1
  10. package/dist/metric-highlight.css +17 -27
  11. package/dist/narrative-data-callout.css +103 -0
  12. package/dist/narrative-divider.css +27 -0
  13. package/dist/narrative-headline.css +7 -0
  14. package/dist/narrative-ordered-list.css +112 -0
  15. package/dist/narrative-summary.css +126 -0
  16. package/dist/pull-quote.css +4 -25
  17. package/package.json +12 -5
  18. package/src/AIContainer/AIContainer.stories.tsx +54 -0
  19. package/src/AIContainer/AIContainer.tsx +35 -0
  20. package/src/AIContainer/AIContainerTypes.ts +14 -0
  21. package/src/AIContainer/__tests__/AIContainer.test.tsx +61 -0
  22. package/src/AIContainer/index.ts +2 -0
  23. package/src/EyebrowToken/EyebrowToken.tsx +1 -5
  24. package/src/MetricHighlight/MetricHighlight.stories.tsx +37 -14
  25. package/src/MetricHighlight/MetricHighlight.tsx +19 -99
  26. package/src/MetricHighlight/MetricHighlightTypes.ts +6 -9
  27. package/src/MetricHighlight/__tests__/MetricHighlight.test.tsx +13 -48
  28. package/src/NarrativeDataCallout/NarrativeDataCallout.stories.tsx +71 -0
  29. package/src/NarrativeDataCallout/NarrativeDataCallout.tsx +50 -0
  30. package/src/NarrativeDataCallout/NarrativeDataCalloutTypes.ts +18 -0
  31. package/src/NarrativeDataCallout/__tests__/NarrativeDataCallout.test.tsx +69 -0
  32. package/src/NarrativeDataCallout/index.ts +2 -0
  33. package/src/NarrativeDivider/NarrativeDivider.stories.tsx +33 -0
  34. package/src/NarrativeDivider/NarrativeDivider.tsx +30 -0
  35. package/src/NarrativeDivider/NarrativeDividerTypes.ts +4 -0
  36. package/src/NarrativeDivider/__tests__/NarrativeDivider.test.tsx +35 -0
  37. package/src/NarrativeDivider/index.ts +2 -0
  38. package/src/NarrativeHeadline/NarrativeHeadline.tsx +21 -12
  39. package/src/NarrativeHeadline/NarrativeHeadlineRoll.tsx +4 -1
  40. package/src/NarrativeHeadline/NarrativeHeadlineTypes.ts +9 -0
  41. package/src/NarrativeHeadline/__tests__/NarrativeHeadline.test.tsx +2 -7
  42. package/src/NarrativeHeadline/index.ts +1 -0
  43. package/src/NarrativeOrderedList/NarrativeOrderedList.stories.tsx +69 -0
  44. package/src/NarrativeOrderedList/NarrativeOrderedList.tsx +74 -0
  45. package/src/NarrativeOrderedList/NarrativeOrderedListTypes.ts +39 -0
  46. package/src/NarrativeOrderedList/__tests__/NarrativeOrderedList.test.tsx +89 -0
  47. package/src/NarrativeOrderedList/index.ts +6 -0
  48. package/src/NarrativeSummary/NarrativeSummary.stories.tsx +79 -0
  49. package/src/NarrativeSummary/NarrativeSummary.tsx +98 -0
  50. package/src/NarrativeSummary/NarrativeSummaryTypes.ts +59 -0
  51. package/src/NarrativeSummary/__tests__/NarrativeSummary.test.tsx +99 -0
  52. package/src/NarrativeSummary/index.ts +5 -0
  53. package/src/Playground/Playground.stories.tsx +174 -36
  54. package/src/PullQuote/PullQuote.stories.tsx +4 -1
  55. package/src/PullQuote/PullQuote.tsx +6 -3
  56. package/src/PullQuote/PullQuoteTypes.ts +1 -2
  57. package/src/ai-container.css +39 -0
  58. package/src/index.ts +25 -0
  59. package/src/metric-highlight.css +17 -27
  60. package/src/narrative-data-callout.css +103 -0
  61. package/src/narrative-divider.css +27 -0
  62. package/src/narrative-headline.css +7 -0
  63. package/src/narrative-ordered-list.css +112 -0
  64. package/src/narrative-summary.css +126 -0
  65. package/src/pull-quote.css +4 -25
package/dist/index.js CHANGED
@@ -30,12 +30,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ AIContainer: () => AIContainer_default,
33
34
  EyebrowToken: () => EyebrowToken_default,
34
35
  MetricHighlight: () => MetricHighlight_default,
35
36
  NarrativeContainer: () => NarrativeContainer_default,
37
+ NarrativeDataCallout: () => NarrativeDataCallout_default,
38
+ NarrativeDivider: () => NarrativeDivider_default,
36
39
  NarrativeHeadline: () => NarrativeHeadline_default,
37
40
  NarrativeHeadlineHighlight: () => NarrativeHeadlineHighlight_default,
38
41
  NarrativeHeadlineRoll: () => NarrativeHeadlineRoll_default,
42
+ NarrativeOrderedList: () => NarrativeOrderedList_default,
43
+ NarrativeSummary: () => NarrativeSummary_default,
39
44
  PullQuote: () => PullQuote_default
40
45
  });
41
46
  module.exports = __toCommonJS(index_exports);
@@ -84,18 +89,24 @@ var NarrativeContainer_default = NarrativeContainer;
84
89
  // src/NarrativeHeadline/NarrativeHeadline.tsx
85
90
  var React2 = __toESM(require("react"));
86
91
  var import_jsx_runtime2 = require("react/jsx-runtime");
87
- var NarrativeHeadline = React2.forwardRef(({ children, headingLevel = 2, className, ...props }, ref) => {
88
- const Heading = `h${headingLevel}`;
89
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
90
- Heading,
91
- {
92
- ref,
93
- className: cn("seeds-narrative-headline", className),
94
- ...props,
95
- children
96
- }
97
- );
98
- });
92
+ var NarrativeHeadline = React2.forwardRef(
93
+ ({ children, headingLevel = 2, size = "default", className, ...props }, ref) => {
94
+ const Heading = `h${headingLevel}`;
95
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
96
+ Heading,
97
+ {
98
+ ref,
99
+ className: cn(
100
+ "seeds-narrative-headline",
101
+ { "seeds-narrative-headline-small": size === "small" },
102
+ className
103
+ ),
104
+ ...props,
105
+ children
106
+ }
107
+ );
108
+ }
109
+ );
99
110
  NarrativeHeadline.displayName = "NarrativeHeadline";
100
111
  var NarrativeHeadline_default = NarrativeHeadline;
101
112
 
@@ -160,7 +171,14 @@ var NarrativeHeadlineRoll = React4.forwardRef(
160
171
  style: merged,
161
172
  ...rest,
162
173
  children: [
163
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "seeds-narrative-headline-roll-sizer", "aria-hidden": "true", children: words[i] }),
174
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
175
+ "span",
176
+ {
177
+ className: "seeds-narrative-headline-roll-sizer",
178
+ "aria-hidden": "true",
179
+ children: words[i]
180
+ }
181
+ ),
164
182
  words.map((w, idx) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
165
183
  "span",
166
184
  {
@@ -192,6 +210,8 @@ var PullQuote = React5.forwardRef(
192
210
  ref,
193
211
  className: cn(
194
212
  "seeds-pull-quote",
213
+ "seeds-ai-container",
214
+ { "seeds-ai-container-vivid": appearance === "vivid" },
195
215
  { "seeds-pull-quote-vivid": appearance === "vivid" },
196
216
  className
197
217
  ),
@@ -211,82 +231,36 @@ var PullQuote_default = PullQuote;
211
231
  var React6 = __toESM(require("react"));
212
232
  var import_jsx_runtime6 = require("react/jsx-runtime");
213
233
  var EyebrowToken = React6.forwardRef(
214
- ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
215
- "span",
216
- {
217
- ref,
218
- className: cn("seeds-eyebrow-token", className),
219
- ...props,
220
- children
221
- }
222
- )
234
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { ref, className: cn("seeds-eyebrow-token", className), ...props, children })
223
235
  );
224
236
  EyebrowToken.displayName = "EyebrowToken";
225
237
  var EyebrowToken_default = EyebrowToken;
226
238
 
227
- // src/MetricHighlight/MetricHighlight.tsx
239
+ // src/NarrativeDivider/NarrativeDivider.tsx
228
240
  var React7 = __toESM(require("react"));
229
241
  var import_jsx_runtime7 = require("react/jsx-runtime");
230
- var SPARK_VIEWBOX_WIDTH = 100;
231
- var SPARK_VIEWBOX_HEIGHT = 32;
232
- var SPARK_PADDING = 2;
233
- var DEFAULT_SPARK = [6, 10, 8, 13, 11, 16];
234
- var smoothPath = (points) => {
235
- if (points.length < 2) {
236
- const p = points[0];
237
- return p ? `M ${p.x},${p.y}` : "";
238
- }
239
- let d = `M ${points[0].x.toFixed(2)},${points[0].y.toFixed(2)}`;
240
- for (let i = 0; i < points.length - 1; i++) {
241
- const p1 = points[i];
242
- const p2 = points[i + 1];
243
- const p0 = points[i - 1] ?? p1;
244
- const p3 = points[i + 2] ?? p2;
245
- const cp1x = p1.x + (p2.x - p0.x) / 6;
246
- const cp1y = p1.y + (p2.y - p0.y) / 6;
247
- const cp2x = p2.x - (p3.x - p1.x) / 6;
248
- const cp2y = p2.y - (p3.y - p1.y) / 6;
249
- d += ` C ${cp1x.toFixed(2)},${cp1y.toFixed(2)} ${cp2x.toFixed(
250
- 2
251
- )},${cp2y.toFixed(2)} ${p2.x.toFixed(2)},${p2.y.toFixed(2)}`;
242
+ var NarrativeDivider = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
243
+ "hr",
244
+ {
245
+ ref,
246
+ className: cn("seeds-narrative-divider", className),
247
+ ...props
252
248
  }
253
- return d;
254
- };
255
- var Sparkline = ({
256
- data,
257
- negative
258
- }) => {
259
- const min = Math.min(...data);
260
- const max = Math.max(...data);
261
- const range = max - min || 1;
262
- const usableHeight = SPARK_VIEWBOX_HEIGHT - SPARK_PADDING * 2;
263
- const points = data.map((value, i) => ({
264
- x: data.length === 1 ? SPARK_VIEWBOX_WIDTH / 2 : i / (data.length - 1) * SPARK_VIEWBOX_WIDTH,
265
- // Invert y so larger values sit higher in the chart.
266
- y: SPARK_PADDING + (1 - (value - min) / range) * usableHeight
267
- }));
268
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
269
- "svg",
270
- {
271
- className: cn("seeds-metric-highlight-spark", {
272
- "seeds-metric-highlight-spark-negative": Boolean(negative)
273
- }),
274
- viewBox: `0 0 ${SPARK_VIEWBOX_WIDTH} ${SPARK_VIEWBOX_HEIGHT}`,
275
- preserveAspectRatio: "none",
276
- "aria-hidden": true,
277
- focusable: false,
278
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: smoothPath(points), fill: "none", strokeLinecap: "round" })
279
- }
280
- );
281
- };
282
- var TrendArrow = ({ direction }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
249
+ ));
250
+ NarrativeDivider.displayName = "NarrativeDivider";
251
+ var NarrativeDivider_default = NarrativeDivider;
252
+
253
+ // src/MetricHighlight/MetricHighlight.tsx
254
+ var React8 = __toESM(require("react"));
255
+ var import_jsx_runtime8 = require("react/jsx-runtime");
256
+ var TrendArrow = ({ direction }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
283
257
  "svg",
284
258
  {
285
259
  className: "seeds-metric-highlight-trend-arrow",
286
260
  viewBox: "0 0 16 16",
287
261
  "aria-hidden": true,
288
262
  focusable: false,
289
- children: direction === "up" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
263
+ children: direction === "up" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
290
264
  "path",
291
265
  {
292
266
  d: "M4.5 11.5 11.5 4.5M11.5 4.5H5.5M11.5 4.5V10.5",
@@ -294,7 +268,7 @@ var TrendArrow = ({ direction }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)
294
268
  strokeLinecap: "round",
295
269
  strokeLinejoin: "round"
296
270
  }
297
- ) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
271
+ ) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
298
272
  "path",
299
273
  {
300
274
  d: "M4.5 4.5 11.5 11.5M11.5 11.5H5.5M11.5 11.5V5.5",
@@ -305,7 +279,11 @@ var TrendArrow = ({ direction }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)
305
279
  )
306
280
  }
307
281
  );
308
- var TrendBadge = ({ direction = "up", value, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
282
+ var TrendBadge = ({
283
+ direction = "up",
284
+ value,
285
+ ...rest
286
+ }) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
309
287
  "span",
310
288
  {
311
289
  className: cn("seeds-metric-highlight-trend", {
@@ -313,28 +291,24 @@ var TrendBadge = ({ direction = "up", value, ...rest }) => /* @__PURE__ */ (0, i
313
291
  }),
314
292
  ...rest,
315
293
  children: [
316
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TrendArrow, { direction }),
317
- value != null && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "seeds-metric-highlight-trend-value", children: value })
294
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TrendArrow, { direction }),
295
+ value != null && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "seeds-metric-highlight-trend-value", children: value })
318
296
  ]
319
297
  }
320
298
  );
321
- var MetricHighlight = React7.forwardRef(
299
+ var MetricHighlight = React8.forwardRef(
322
300
  ({
323
301
  label,
324
302
  value,
325
303
  trend,
326
- data,
327
- chart = true,
304
+ sparkline,
328
305
  appearance = "horizontal",
329
306
  size = "default",
330
307
  container = true,
331
308
  className,
332
309
  ...props
333
310
  }, ref) => {
334
- const isDown = trend?.direction === "down";
335
- const resolvedData = data ?? (isDown ? [...DEFAULT_SPARK].reverse() : DEFAULT_SPARK);
336
- const showChart = chart && resolvedData.length > 0;
337
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
311
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
338
312
  "div",
339
313
  {
340
314
  ref,
@@ -349,14 +323,17 @@ var MetricHighlight = React7.forwardRef(
349
323
  ),
350
324
  ...props,
351
325
  children: [
352
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "seeds-metric-highlight-metric", children: [
353
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "seeds-metric-highlight-label", children: label }),
354
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "seeds-metric-highlight-value-row", children: [
355
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "seeds-metric-highlight-value", children: value }),
356
- trend != null && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TrendBadge, { ...trend })
326
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "seeds-metric-highlight-metric", children: [
327
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "seeds-metric-highlight-label", children: label }),
328
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "seeds-metric-highlight-value-row", children: [
329
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "seeds-metric-highlight-value", children: value }),
330
+ trend != null && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TrendBadge, { ...trend })
357
331
  ] })
358
332
  ] }),
359
- showChart && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Sparkline, { data: resolvedData, negative: isDown })
333
+ sparkline != null && // Layout-only slot (bounded dimensions per horizontal/vertical/small)
334
+ // for a consumer-supplied chart. It controls its own look; the slot
335
+ // only sizes and centers it.
336
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "seeds-metric-highlight-chart", children: sparkline })
360
337
  ]
361
338
  }
362
339
  );
@@ -364,14 +341,168 @@ var MetricHighlight = React7.forwardRef(
364
341
  );
365
342
  MetricHighlight.displayName = "MetricHighlight";
366
343
  var MetricHighlight_default = MetricHighlight;
344
+
345
+ // src/NarrativeSummary/NarrativeSummary.tsx
346
+ var React9 = __toESM(require("react"));
347
+ var import_jsx_runtime9 = require("react/jsx-runtime");
348
+ var NarrativeSummary = React9.forwardRef(
349
+ ({
350
+ eyebrow,
351
+ headline,
352
+ headingLevel = 2,
353
+ action,
354
+ summary,
355
+ summaryLabel = "Summary",
356
+ keyThemes,
357
+ keyThemesLabel = "Key themes",
358
+ layout = "three-column",
359
+ className,
360
+ ...props
361
+ }, ref) => {
362
+ const hasKeyThemes = keyThemes != null && keyThemes.length > 0;
363
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
364
+ "div",
365
+ {
366
+ ref,
367
+ className: cn("seeds-narrative-summary", className),
368
+ ...props,
369
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
370
+ "div",
371
+ {
372
+ className: cn("seeds-narrative-summary-grid", {
373
+ "seeds-narrative-summary-two-column": layout === "two-column"
374
+ }),
375
+ children: [
376
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "seeds-narrative-summary-lead", children: [
377
+ eyebrow != null && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(EyebrowToken_default, { children: eyebrow }),
378
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "seeds-narrative-summary-headline", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(NarrativeHeadline_default, { size: "small", headingLevel, children: headline }) }),
379
+ action != null && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "seeds-narrative-summary-action", children: action })
380
+ ] }),
381
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "seeds-narrative-summary-content", children: [
382
+ summary != null && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("section", { className: "seeds-narrative-summary-section", children: [
383
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "seeds-narrative-summary-label", children: summaryLabel }),
384
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "seeds-narrative-summary-text", children: summary })
385
+ ] }),
386
+ hasKeyThemes && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("section", { className: "seeds-narrative-summary-section", children: [
387
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "seeds-narrative-summary-label", children: keyThemesLabel }),
388
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("ul", { className: "seeds-narrative-summary-list", children: keyThemes.map((theme, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: theme }, i)) })
389
+ ] })
390
+ ] })
391
+ ]
392
+ }
393
+ )
394
+ }
395
+ );
396
+ }
397
+ );
398
+ NarrativeSummary.displayName = "NarrativeSummary";
399
+ var NarrativeSummary_default = NarrativeSummary;
400
+
401
+ // src/NarrativeOrderedList/NarrativeOrderedList.tsx
402
+ var React10 = __toESM(require("react"));
403
+ var import_jsx_runtime10 = require("react/jsx-runtime");
404
+ var NarrativeOrderedList = React10.forwardRef(({ items, orientation = "vertical", className, ...props }, ref) => {
405
+ return (
406
+ // The outer element establishes the query container. The ol inside switches
407
+ // direction based on this element's width — a container query can only style
408
+ // descendants of the container, never the container element itself.
409
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
410
+ "div",
411
+ {
412
+ ref,
413
+ className: cn("seeds-narrative-ordered-list", className),
414
+ ...props,
415
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
416
+ "ol",
417
+ {
418
+ className: cn("seeds-narrative-ordered-list-track", {
419
+ "seeds-narrative-ordered-list-horizontal": orientation === "horizontal"
420
+ }),
421
+ children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("li", { className: "seeds-narrative-ordered-list-item", children: [
422
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
423
+ "span",
424
+ {
425
+ className: "seeds-narrative-ordered-list-number",
426
+ "aria-hidden": "true",
427
+ children: String(i + 1).padStart(2, "0")
428
+ }
429
+ ),
430
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "seeds-narrative-ordered-list-body", children: [
431
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "seeds-narrative-ordered-list-title", children: item.title }),
432
+ item.description != null && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "seeds-narrative-ordered-list-description", children: item.description }),
433
+ item.action != null && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "seeds-narrative-ordered-list-action", children: item.action })
434
+ ] })
435
+ ] }, i))
436
+ }
437
+ )
438
+ }
439
+ )
440
+ );
441
+ });
442
+ NarrativeOrderedList.displayName = "NarrativeOrderedList";
443
+ var NarrativeOrderedList_default = NarrativeOrderedList;
444
+
445
+ // src/NarrativeDataCallout/NarrativeDataCallout.tsx
446
+ var React11 = __toESM(require("react"));
447
+ var import_jsx_runtime11 = require("react/jsx-runtime");
448
+ var NarrativeDataCallout = React11.forwardRef(({ visual, children, visualLabel, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
449
+ "div",
450
+ {
451
+ ref,
452
+ className: cn("seeds-narrative-data-callout", className),
453
+ ...props,
454
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "seeds-narrative-data-callout-row", children: [
455
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
456
+ "div",
457
+ {
458
+ className: "seeds-narrative-data-callout-visual",
459
+ role: visualLabel != null ? "img" : void 0,
460
+ "aria-label": visualLabel,
461
+ children: visual
462
+ }
463
+ ),
464
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "seeds-narrative-data-callout-body", children })
465
+ ] })
466
+ }
467
+ ));
468
+ NarrativeDataCallout.displayName = "NarrativeDataCallout";
469
+ var NarrativeDataCallout_default = NarrativeDataCallout;
470
+
471
+ // src/AIContainer/AIContainer.tsx
472
+ var React12 = __toESM(require("react"));
473
+ var import_jsx_runtime12 = require("react/jsx-runtime");
474
+ var AIContainer = React12.forwardRef(
475
+ ({ children, appearance = "subtle", className, ...props }, ref) => {
476
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
477
+ "div",
478
+ {
479
+ ref,
480
+ className: cn(
481
+ "seeds-ai-container",
482
+ { "seeds-ai-container-vivid": appearance === "vivid" },
483
+ className
484
+ ),
485
+ ...props,
486
+ children
487
+ }
488
+ );
489
+ }
490
+ );
491
+ AIContainer.displayName = "AIContainer";
492
+ var AIContainer_default = AIContainer;
367
493
  // Annotate the CommonJS export names for ESM import in node:
368
494
  0 && (module.exports = {
495
+ AIContainer,
369
496
  EyebrowToken,
370
497
  MetricHighlight,
371
498
  NarrativeContainer,
499
+ NarrativeDataCallout,
500
+ NarrativeDivider,
372
501
  NarrativeHeadline,
373
502
  NarrativeHeadlineHighlight,
374
503
  NarrativeHeadlineRoll,
504
+ NarrativeOrderedList,
505
+ NarrativeSummary,
375
506
  PullQuote
376
507
  });
377
508
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../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":["/* Narrative Kit — composable narrative primitives.\n * Each primitive adds a single line below. No default export — this is a kit. */\nexport {\n NarrativeContainer,\n type TypeNarrativeContainerProps,\n} from \"./NarrativeContainer\";\n\nexport {\n NarrativeHeadline,\n NarrativeHeadlineHighlight,\n NarrativeHeadlineRoll,\n type TypeNarrativeHeadlineProps,\n type TypeNarrativeHeadlineLevel,\n type TypeNarrativeHeadlineHighlightProps,\n type TypeNarrativeHeadlineRollProps,\n} from \"./NarrativeHeadline\";\n\nexport { PullQuote, type TypePullQuoteProps } from \"./PullQuote\";\n\nexport { EyebrowToken, type TypeEyebrowTokenProps } from \"./EyebrowToken\";\n\nexport {\n MetricHighlight,\n type TypeMetricHighlightProps,\n type TypeMetricHighlightTrend,\n} from \"./MetricHighlight\";\n\nexport type { TypeNarrativeTone } from \"./_internal/types\";\n","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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;;;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;AAC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,SAAS,CAAC,GAAG,aAAa,EAAE,QAAQ,IAAI;AACnD,UAAM,YAAY,SAAS,aAAa,SAAS;AAEjD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA;AAAA,YACE,mCAAmC,eAAe;AAAA,YAClD,gCAAgC,SAAS;AAAA,YACzC,+BAA+B,CAAC;AAAA,UAClC;AAAA,UACA;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEJ;AAAA,wDAAC,SAAI,WAAU,iCACb;AAAA,yDAAC,OAAE,WAAU,gCAAgC,iBAAM;AAAA,YACnD,8CAAC,SAAI,WAAU,oCACb;AAAA,2DAAC,OAAE,WAAU,gCAAgC,iBAAM;AAAA,cAClD,SAAS,QAAQ,6CAAC,cAAY,GAAG,OAAO;AAAA,eAC3C;AAAA,aACF;AAAA,UACC,aAAa,6CAAC,aAAU,MAAM,cAAc,UAAU,QAAQ;AAAA;AAAA;AAAA,IACjE;AAAA,EAEJ;AACF;AAEA,gBAAgB,cAAc;AAE9B,IAAO,0BAAQ;","names":["React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime"]}
1
+ {"version":3,"sources":["../src/index.ts","../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/NarrativeDivider/NarrativeDivider.tsx","../src/MetricHighlight/MetricHighlight.tsx","../src/NarrativeSummary/NarrativeSummary.tsx","../src/NarrativeOrderedList/NarrativeOrderedList.tsx","../src/NarrativeDataCallout/NarrativeDataCallout.tsx","../src/AIContainer/AIContainer.tsx"],"sourcesContent":["/* Narrative Kit — composable narrative primitives.\n * Each primitive adds a single line below. No default export — this is a kit. */\nexport {\n NarrativeContainer,\n type TypeNarrativeContainerProps,\n} from \"./NarrativeContainer\";\n\nexport {\n NarrativeHeadline,\n NarrativeHeadlineHighlight,\n NarrativeHeadlineRoll,\n type TypeNarrativeHeadlineProps,\n type TypeNarrativeHeadlineLevel,\n type TypeNarrativeHeadlineHighlightProps,\n type TypeNarrativeHeadlineRollProps,\n} from \"./NarrativeHeadline\";\n\nexport { PullQuote, type TypePullQuoteProps } from \"./PullQuote\";\n\nexport { EyebrowToken, type TypeEyebrowTokenProps } from \"./EyebrowToken\";\n\nexport {\n NarrativeDivider,\n type TypeNarrativeDividerProps,\n} from \"./NarrativeDivider\";\n\nexport {\n MetricHighlight,\n type TypeMetricHighlightProps,\n type TypeMetricHighlightTrend,\n} from \"./MetricHighlight\";\n\nexport {\n NarrativeSummary,\n type TypeNarrativeSummaryProps,\n type TypeNarrativeSummaryLayout,\n} from \"./NarrativeSummary\";\n\nexport {\n NarrativeOrderedList,\n type TypeNarrativeOrderedListProps,\n type TypeNarrativeOrderedListItem,\n type TypeNarrativeOrderedListOrientation,\n} from \"./NarrativeOrderedList\";\n\nexport {\n NarrativeDataCallout,\n type TypeNarrativeDataCalloutProps,\n} from \"./NarrativeDataCallout\";\n\nexport { AIContainer, type TypeAIContainerProps } from \"./AIContainer\";\n\nexport type { TypeNarrativeTone } from \"./_internal/types\";\n","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>(\n (\n { children, headingLevel = 2, size = \"default\", className, ...props },\n ref\n ) => {\n const Heading = `h${headingLevel}` as const;\n\n return (\n <Heading\n ref={ref}\n className={cn(\n \"seeds-narrative-headline\",\n { \"seeds-narrative-headline-small\": size === \"small\" },\n className\n )}\n {...props}\n >\n {children}\n </Heading>\n );\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\n className=\"seeds-narrative-headline-roll-sizer\"\n aria-hidden=\"true\"\n >\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` and `ai-container.css` (Seeds CSS custom\n * properties); consumers import the classes through\n * `@sproutsocial/racine/css/components`. Surface overrides are done with\n * 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-ai-container\",\n { \"seeds-ai-container-vivid\": appearance === \"vivid\" },\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 ref={ref} className={cn(\"seeds-eyebrow-token\", className)} {...props}>\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 { TypeNarrativeDividerProps } from \"./NarrativeDividerTypes\";\n\n/**\n * NarrativeDivider — a full-width, 1px horizontal rule that separates sections\n * within a narrative brief (e.g. a row of metrics from the headline/summary\n * block below it).\n *\n * Renders a semantic <hr> stripped of its user-agent margins and borders, then\n * draws a single 1px line with the container-border-base token (#dee1e1, which\n * also tracks dark mode). Styled via narrative-divider.css (Seeds CSS custom\n * properties); consumers import the classes through\n * @sproutsocial/racine/css/components. Overrides come via standard className /\n * style.\n */\nconst NarrativeDivider = React.forwardRef<\n HTMLHRElement,\n TypeNarrativeDividerProps\n>(({ className, ...props }, ref) => (\n <hr\n ref={ref}\n className={cn(\"seeds-narrative-divider\", className)}\n {...props}\n />\n));\n\nNarrativeDivider.displayName = \"NarrativeDivider\";\n\nexport default NarrativeDivider;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type {\n TypeMetricHighlightProps,\n TypeMetricHighlightTrend,\n} from \"./MetricHighlightTypes\";\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 = ({\n direction = \"up\",\n value,\n ...rest\n}: 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 chart supplied via\n * the `sparkline` slot (e.g. a `<SparklineChart />` from\n * `@sproutsocial/seeds-react-data-viz/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<\n HTMLDivElement,\n TypeMetricHighlightProps\n>(\n (\n {\n label,\n value,\n trend,\n sparkline,\n appearance = \"horizontal\",\n size = \"default\",\n container = true,\n className,\n ...props\n },\n ref\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 {sparkline != null && (\n // Layout-only slot (bounded dimensions per horizontal/vertical/small)\n // for a consumer-supplied chart. It controls its own look; the slot\n // only sizes and centers it.\n <div className=\"seeds-metric-highlight-chart\">{sparkline}</div>\n )}\n </div>\n );\n }\n);\n\nMetricHighlight.displayName = \"MetricHighlight\";\n\nexport default MetricHighlight;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport EyebrowToken from \"../EyebrowToken/EyebrowToken\";\nimport NarrativeHeadline from \"../NarrativeHeadline/NarrativeHeadline\";\nimport type { TypeNarrativeSummaryProps } from \"./NarrativeSummaryTypes\";\n\n/**\n * NarrativeSummary — a composed narrative block that pairs a lead column\n * (eyebrow + headline + optional action) with a Summary section and a Key\n * themes list.\n *\n * Renders inner content only — it carries no surface, shadow, or accent of its\n * own. Drop it into a `NarrativeContainer` (see the stories / playground).\n *\n * Layout is CSS Grid driven by container queries, so the columns collapse based\n * on the width the component is actually given, not the viewport:\n * - `\"three-column\"` → lead | Summary | Key themes.\n * - `\"two-column\"` → a 1/3 | 2/3 split with Summary and Key themes stacked in\n * the wider column.\n *\n * Styled via `narrative-summary.css` (Seeds CSS custom properties); consumers\n * import the classes through `@sproutsocial/racine/css/components`. Overrides\n * come via standard `className` / `style`.\n */\nconst NarrativeSummary = React.forwardRef<\n HTMLDivElement,\n TypeNarrativeSummaryProps\n>(\n (\n {\n eyebrow,\n headline,\n headingLevel = 2,\n action,\n summary,\n summaryLabel = \"Summary\",\n keyThemes,\n keyThemesLabel = \"Key themes\",\n layout = \"three-column\",\n className,\n ...props\n },\n ref\n ) => {\n const hasKeyThemes = keyThemes != null && keyThemes.length > 0;\n\n return (\n <div\n ref={ref}\n className={cn(\"seeds-narrative-summary\", className)}\n {...props}\n >\n <div\n className={cn(\"seeds-narrative-summary-grid\", {\n \"seeds-narrative-summary-two-column\": layout === \"two-column\",\n })}\n >\n <div className=\"seeds-narrative-summary-lead\">\n {eyebrow != null && <EyebrowToken>{eyebrow}</EyebrowToken>}\n <div className=\"seeds-narrative-summary-headline\">\n <NarrativeHeadline size=\"small\" headingLevel={headingLevel}>\n {headline}\n </NarrativeHeadline>\n </div>\n {action != null && (\n <div className=\"seeds-narrative-summary-action\">{action}</div>\n )}\n </div>\n\n <div className=\"seeds-narrative-summary-content\">\n {summary != null && (\n <section className=\"seeds-narrative-summary-section\">\n <p className=\"seeds-narrative-summary-label\">{summaryLabel}</p>\n <p className=\"seeds-narrative-summary-text\">{summary}</p>\n </section>\n )}\n {hasKeyThemes && (\n <section className=\"seeds-narrative-summary-section\">\n <p className=\"seeds-narrative-summary-label\">\n {keyThemesLabel}\n </p>\n <ul className=\"seeds-narrative-summary-list\">\n {keyThemes.map((theme, i) => (\n <li key={i}>{theme}</li>\n ))}\n </ul>\n </section>\n )}\n </div>\n </div>\n </div>\n );\n }\n);\n\nNarrativeSummary.displayName = \"NarrativeSummary\";\n\nexport default NarrativeSummary;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type { TypeNarrativeOrderedListProps } from \"./NarrativeOrderedListTypes\";\n\n/**\n * NarrativeOrderedList — a numbered list of action items. Each item pairs a\n * large ordinal (01, 02, …) with a title, an optional description, and an\n * optional call-to-action slot.\n *\n * Renders inner content only — it carries no surface, shadow, or accent of its\n * own. Drop it into a `NarrativeContainer` (see the stories / playground).\n *\n * Layout is driven by container queries, so it responds to the width the\n * component is actually given, not the viewport:\n * - `\"vertical\"` (default) → items stacked full-width, one per row.\n * - `\"horizontal\"` → items laid out as a row of equal columns once there is\n * room, collapsing back to a stack when the container is narrow.\n *\n * Styled via `narrative-ordered-list.css` (Seeds CSS custom properties);\n * consumers import the classes through `@sproutsocial/racine/css/components`.\n * Overrides come via standard `className` / `style`.\n */\nconst NarrativeOrderedList = React.forwardRef<\n HTMLDivElement,\n TypeNarrativeOrderedListProps\n>(({ items, orientation = \"vertical\", className, ...props }, ref) => {\n return (\n // The outer element establishes the query container. The ol inside switches\n // direction based on this element's width — a container query can only style\n // descendants of the container, never the container element itself.\n <div\n ref={ref}\n className={cn(\"seeds-narrative-ordered-list\", className)}\n {...props}\n >\n <ol\n className={cn(\"seeds-narrative-ordered-list-track\", {\n \"seeds-narrative-ordered-list-horizontal\":\n orientation === \"horizontal\",\n })}\n >\n {items.map((item, i) => (\n <li key={i} className=\"seeds-narrative-ordered-list-item\">\n {/* Decorative — the ol/li already convey order to assistive tech, so\n hide the visible ordinal from it to avoid double-announcing. */}\n <span\n className=\"seeds-narrative-ordered-list-number\"\n aria-hidden=\"true\"\n >\n {String(i + 1).padStart(2, \"0\")}\n </span>\n <div className=\"seeds-narrative-ordered-list-body\">\n <p className=\"seeds-narrative-ordered-list-title\">{item.title}</p>\n {item.description != null && (\n <p className=\"seeds-narrative-ordered-list-description\">\n {item.description}\n </p>\n )}\n {item.action != null && (\n <div className=\"seeds-narrative-ordered-list-action\">\n {item.action}\n </div>\n )}\n </div>\n </li>\n ))}\n </ol>\n </div>\n );\n});\n\nNarrativeOrderedList.displayName = \"NarrativeOrderedList\";\n\nexport default NarrativeOrderedList;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type { TypeNarrativeDataCalloutProps } from \"./NarrativeDataCalloutTypes\";\n\n/**\n * NarrativeDataCallout — a horizontally oriented callout that pairs an injected\n * data-viz visual (left, ~1/3 width) with a block of body copy (right, ~2/3).\n *\n * The kit ships no chart of its own; the `visual` slot accepts any node — the\n * stories drop in a v2 `DonutChart` from `@sproutsocial/seeds-react-data-viz`.\n * narrative-kit takes no runtime dependency on data-viz (mirrors MetricHighlight's\n * `sparkline` slot).\n *\n * Renders inner content only — it carries no surface, shadow, or accent of its\n * own. Drop it into a `NarrativeContainer` (see the stories) to reproduce the\n * card look.\n *\n * Layout is a flex row driven by a container query, so it collapses to a stacked\n * column (visual on top, text below) based on the width the component is actually\n * given, not the viewport.\n *\n * Styled via `narrative-data-callout.css` (Seeds CSS custom properties); consumers\n * import the classes through `@sproutsocial/racine/css/components`. Overrides come\n * via standard `className` / `style`.\n */\nconst NarrativeDataCallout = React.forwardRef<\n HTMLDivElement,\n TypeNarrativeDataCalloutProps\n>(({ visual, children, visualLabel, className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"seeds-narrative-data-callout\", className)}\n {...props}\n >\n <div className=\"seeds-narrative-data-callout-row\">\n <div\n className=\"seeds-narrative-data-callout-visual\"\n role={visualLabel != null ? \"img\" : undefined}\n aria-label={visualLabel}\n >\n {visual}\n </div>\n <div className=\"seeds-narrative-data-callout-body\">{children}</div>\n </div>\n </div>\n));\n\nNarrativeDataCallout.displayName = \"NarrativeDataCallout\";\n\nexport default NarrativeDataCallout;\n","import * as React from \"react\";\nimport { cn } from \"../_internal/cn\";\nimport type { TypeAIContainerProps } from \"./AIContainerTypes\";\n\n/**\n * AIContainer — a rounded surface primitive with the AI gradient background.\n * Provides the outer shell (border-radius, shadow, overflow, gradient) without\n * any padding. Used by PullQuote and available as a standalone container.\n *\n * - `subtle` — a light 20% gradient tint over the base surface with adaptive text color.\n * - `vivid` — the full-saturation AI gradient with white text (always white).\n *\n * Styled via `ai-container.css` (Seeds CSS custom properties).\n */\nconst AIContainer = React.forwardRef<HTMLDivElement, TypeAIContainerProps>(\n ({ children, appearance = \"subtle\", className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n \"seeds-ai-container\",\n { \"seeds-ai-container-vivid\": appearance === \"vivid\" },\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n }\n);\n\nAIContainer.displayName = \"AIContainer\";\n\nexport default AIContainer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;;;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,IAAO,6BAAQ;;;AElCf,IAAAA,SAAuB;AA2BjB,IAAAC,sBAAA;AAXN,IAAM,oBAA0B;AAAA,EAI9B,CACE,EAAE,UAAU,eAAe,GAAG,OAAO,WAAW,WAAW,GAAG,MAAM,GACpE,QACG;AACH,UA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,MAAM,GAAG,QAAQ;AACjE,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA,EAAE,4BAA4B,eAAe,QAAQ;AAAA,UACrD;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEH;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,YAAY,cAAc;AAE1B,IAAO,sBAAQ;","names":["React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime","React","import_jsx_runtime"]}
@@ -131,47 +131,37 @@
131
131
  stroke-width: 1.5;
132
132
  }
133
133
 
134
- /* Sparkline a single normalized polyline stretched to fit. The non-scaling
135
- stroke keeps a crisp 2px line at any aspect ratio. */
136
- .seeds-metric-highlight-spark {
137
- display: block;
134
+ /* Slot for an injected chart (e.g. a data-viz SparklineChart). Layout only — no
135
+ stroke/background styling, so the injected chart controls its own look. Heights
136
+ are explicit (never percentage/stretch) so a Highcharts chart always measures a
137
+ concrete container instead of falling back to its 400px default. */
138
+ .seeds-metric-highlight-chart {
139
+ box-sizing: border-box;
138
140
  flex: 0 0 auto;
139
- /* Matches the design's Data Viz / Categorical 01 line color (#0b968f). */
140
- stroke: var(--color-teal-700);
141
- }
142
-
143
- /* Downward trend: the red analog at the same scale step (#db3e3e). */
144
- .seeds-metric-highlight-spark-negative {
145
- stroke: var(--color-red-700);
146
- }
147
-
148
- .seeds-metric-highlight-spark path {
149
- stroke: inherit;
150
- stroke-width: 2;
151
- vector-effect: non-scaling-stroke;
141
+ align-self: center;
142
+ /* Center the injected chart as a flex item — an inline/inline-block child
143
+ (e.g. the data-viz SparklineChart) otherwise sits on the text baseline with
144
+ descender space below it, reading as vertically off-center in the slot. */
145
+ display: flex;
146
+ align-items: center;
152
147
  }
153
148
 
154
- /* Horizontal: a compact fixed-width chart beside the metric, matched to the
155
- metric block's height. */
156
- .seeds-metric-highlight:not(.seeds-metric-highlight-vertical) .seeds-metric-highlight-spark {
149
+ .seeds-metric-highlight:not(.seeds-metric-highlight-vertical) .seeds-metric-highlight-chart {
157
150
  width: 104px;
158
- align-self: stretch;
159
- min-height: 40px;
151
+ height: 48px;
160
152
  }
161
153
 
162
- .seeds-metric-highlight-small:not(.seeds-metric-highlight-vertical) .seeds-metric-highlight-spark {
154
+ .seeds-metric-highlight-small:not(.seeds-metric-highlight-vertical) .seeds-metric-highlight-chart {
163
155
  width: 88px;
164
156
  height: 40px;
165
- align-self: center;
166
157
  }
167
158
 
168
- /* Vertical: a full-width chart stacked beneath the metric. */
169
- .seeds-metric-highlight-vertical .seeds-metric-highlight-spark {
159
+ .seeds-metric-highlight-vertical .seeds-metric-highlight-chart {
170
160
  width: 100%;
171
161
  height: 96px;
172
162
  }
173
163
 
174
- .seeds-metric-highlight-vertical.seeds-metric-highlight-small .seeds-metric-highlight-spark {
164
+ .seeds-metric-highlight-vertical.seeds-metric-highlight-small .seeds-metric-highlight-chart {
175
165
  height: 56px;
176
166
  }
177
167