@sarimarcus/content-sites-ui 0.29.0 → 0.29.1

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.29.1 (2026-10-06)
6
+
7
+ - `./editorial`: `ArticleTopicPage` takes `proseClass`, the overview's prose theme modifier added to `prose` (default `prose-lg`, as before), so a dark site can render the overview in its own prose colours (SLA-2994).
8
+
5
9
  ## 0.29.0 (2026-10-06)
6
10
 
7
11
  - `./navigation`: `ArticlesNavMenu`, the header's Articles menu (desktop dropdown via `variant="desktop"`, mobile accordion section via `variant="mobile"`): a topics column, and with `latest` a second column where the newest article is a feature card (16:9 image, topic, date), the next ones are dated rows, then the archive link. Without `latest` it renders the single-column menu. Types `ArticleNavItem`, `ArticlesNavProps`, `NavHubLink` (SLA-2993).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-ui",
3
- "version": "0.29.0",
3
+ "version": "0.29.1",
4
4
  "description": "Universal Astro UI components, layout shell and design tokens shared by the content sites.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -49,6 +49,6 @@
49
49
  "@lucide/astro": "^1.23.0",
50
50
  "astro": "^7.0.6",
51
51
  "tailwindcss": "^4.1.18",
52
- "@sarimarcus/content-sites-core": "0.29.0"
52
+ "@sarimarcus/content-sites-core": "0.29.1"
53
53
  }
54
54
  }
@@ -35,9 +35,11 @@ interface Props {
35
35
  listHeading?: string;
36
36
  overview?: { heading: string; html: TrustedHtml; guide?: { title: string; lead: string; href: string; linkLabel: string } };
37
37
  authors?: { heading: string; items: TopicAuthorCard[] };
38
+ /** The site's prose theme modifier for the overview, added to `prose` (a dark site needs its own body colour). */
39
+ proseClass?: string;
38
40
  }
39
41
 
40
- const { eyebrow, heading, lede, articles, categories, category, currentPage, listHeading, overview, authors } = Astro.props;
42
+ const { eyebrow, heading, lede, articles, categories, category, currentPage, listHeading, overview, authors, proseClass = 'prose-lg' } = Astro.props;
41
43
  const hub = currentPage === 1;
42
44
  // Astro.slots.has() is true for a slotted expression that evaluated to false, so test what it rendered.
43
45
  const faqHtml = hub && Astro.slots.has('faq') ? (await Astro.slots.render('faq')).trim() : '';
@@ -56,7 +58,7 @@ const faqHtml = hub && Astro.slots.has('faq') ? (await Astro.slots.render('faq')
56
58
  <Container size="measure">
57
59
  <h2 class="text-2xl sm:text-3xl font-normal font-display text-foreground mb-4">{overview.heading}</h2>
58
60
  <slot name="overview-byline" />
59
- <div class="prose prose-lg max-w-none mt-6" set:html={overview.html} />
61
+ <div class:list={['prose', proseClass, 'max-w-none mt-6']} set:html={overview.html} />
60
62
  {overview.guide && (
61
63
  <Callout type="tip" title={overview.guide.title} class="mt-8">
62
64
  {overview.guide.lead}<a href={overview.guide.href} class="font-medium text-primary hover:underline">{overview.guide.linkLabel}</a>