@sarimarcus/content-sites-ui 0.60.2 → 0.60.4

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,20 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.60.4 (2026-11-06)
6
+
7
+ Markup and style changes at the end of an article (SLA-3904); no prop is removed or retyped.
8
+
9
+ - `AuthoritativeSources`: the heading, the reference count and the Show/Hide toggle sit on one line inside the `<summary>`; the opened list is a ruled numbered list without per-item boxes, and a quote is plain italic (no side border). The `eyebrow` default is now empty, so the "Further reading" label no longer renders unless a site passes `eyebrow`; `eyebrowClass` styles it when it does.
10
+ - `ArticleTopicPager`: no bordered, rounded box; two columns divided by hairline rules, with a larger heading and link titles.
11
+ - `ArticlePage`: the tag row loses its top rule.
12
+
13
+ ## 0.60.3 (2026-11-06)
14
+
15
+ Markup changes only where `SiteHeader` gets `trendingTags`: the "Trending" sub-bar is now centred on desktop (label and tags keep their order; an overflowing bar still scrolls from the left). The page-rail width tokens for nested article URLs (SLA-3897, already on `main`) ship with it.
16
+
17
+ - `SiteHeader`: the trending bar label gets `ml-auto` and the tag list `mr-auto`, so the group centres without clipping on overflow.
18
+
5
19
  ## 0.60.2 (2026-11-06)
6
20
 
7
21
  Tag hubs can carry blocks around their list. Without the new slots the markup is unchanged: `render-diff` against 0.60.1 is identical (`tests/fixtures/render-diff/sla-3900-tag-page-slots.json`, plus `sla-3887-theming.json`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-ui",
3
- "version": "0.60.2",
3
+ "version": "0.60.4",
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",
@@ -51,6 +51,6 @@
51
51
  "@lucide/astro": "^1.23.0",
52
52
  "astro": "^7.0.6",
53
53
  "tailwindcss": "^4.1.18",
54
- "@sarimarcus/content-sites-core": "0.60.2"
54
+ "@sarimarcus/content-sites-core": "0.60.4"
55
55
  }
56
56
  }
@@ -550,7 +550,7 @@ const resolvedRelatedTitle = relatedProps.title ?? l.relatedTitle;
550
550
  )}
551
551
 
552
552
  {tagLinks.length > 0 && (
553
- <nav aria-label={l.tagsAriaLabel} class="mt-10 pt-6 border-t border-border flex flex-wrap items-center gap-2" data-pagefind-ignore>
553
+ <nav aria-label={l.tagsAriaLabel} class="mt-8 flex flex-wrap items-center gap-2" data-pagefind-ignore>
554
554
  {tagLinks.map((t) => (
555
555
  <Chip href={t.href} size="sm" tone="outlineQuiet">
556
556
  #{t.label}
@@ -44,23 +44,23 @@ const sides = [
44
44
 
45
45
  {sides.length > 0 && (
46
46
  <nav aria-label={heading} class:list={['mt-14 pt-8 border-t border-border', className]} data-pagefind-ignore>
47
- <h2 class="text-xs font-semibold uppercase tracking-wide text-muted-foreground">{heading}</h2>
48
- <div class:list={['mt-4 grid gap-px overflow-hidden rounded-xl border border-border bg-border', sides.length === 2 && 'sm:grid-cols-2']}>
47
+ <h2 class="text-base font-semibold text-foreground">{heading}</h2>
48
+ <div class:list={['mt-3 border-y border-border', sides.length === 2 && 'grid sm:grid-cols-2 sm:divide-x divide-y sm:divide-y-0 divide-border']}>
49
49
  {sides.map(({ link, label, dir }) => (
50
50
  <a
51
51
  href={link.href}
52
52
  class:list={[
53
- 'group flex flex-col gap-1 bg-card p-5 transition-colors hover:bg-muted focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary',
54
- dir === 'older' && sides.length === 2 && 'sm:text-right sm:items-end',
53
+ 'group flex flex-col gap-1 py-4 transition-colors focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary',
54
+ sides.length === 2 && (dir === 'older' ? 'sm:pl-6 sm:text-right sm:items-end' : 'sm:pr-6'),
55
55
  ]}
56
56
  >
57
- <span class="inline-flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-primary">
57
+ <span class="inline-flex items-center gap-1.5 text-sm font-medium text-primary">
58
58
  {dir === 'newer' && <Icon name="arrow-left" class="w-3.5 h-3.5" />}
59
59
  {label}
60
60
  {dir === 'older' && <Icon name="arrow-right" class="w-3.5 h-3.5" />}
61
61
  </span>
62
- <span class="text-base font-semibold leading-snug text-foreground line-clamp-2 transition-colors group-hover:text-primary">{link.title}</span>
63
- {link.date && <span class="text-xs text-muted-foreground">{day(link.date)}</span>}
62
+ <span class="text-lg font-semibold leading-snug text-foreground line-clamp-2 transition-colors group-hover:text-primary">{link.title}</span>
63
+ {link.date && <span class="text-sm text-muted-foreground">{day(link.date)}</span>}
64
64
  </a>
65
65
  ))}
66
66
  </div>
@@ -96,9 +96,9 @@ const xl = desktopBreakpoint === 'xl';
96
96
  </nav>{trendingTags.length > 0 && (
97
97
  <div class="hidden md:block border-t border-border/60 bg-muted/40">
98
98
  <Container class="flex items-center gap-3 h-9 overflow-x-auto text-xs">
99
- <span class="font-semibold uppercase tracking-widest text-primary shrink-0">{trendingLabel}</span>
99
+ <span class="font-semibold uppercase tracking-widest text-primary shrink-0 ml-auto">{trendingLabel}</span>
100
100
  <span class="text-border shrink-0" aria-hidden="true">|</span>
101
- <ul class="flex items-center gap-4 shrink-0">
101
+ <ul class="flex items-center gap-4 shrink-0 mr-auto">
102
102
  {trendingTags.map((tag) => (
103
103
  <li>
104
104
  <a href={tag.href} class="text-muted-foreground hover:text-foreground transition-colors font-medium whitespace-nowrap">
@@ -25,6 +25,7 @@ interface Props {
25
25
  lang?: string;
26
26
  title?: string;
27
27
  class?: string;
28
+ /** Opt-in label above the heading; renders nothing by default (the default label was dropped in the article-end cleanup). */
28
29
  eyebrow?: string;
29
30
  eyebrowClass?: string;
30
31
  domainLabels?: Record<string, string>;
@@ -45,7 +46,7 @@ const {
45
46
  lang = Astro.currentLocale ?? 'en',
46
47
  title = getLabels(lang).authoritativeSources.title,
47
48
  class: className = '',
48
- eyebrow = getLabels(lang).authoritativeSources.eyebrow,
49
+ eyebrow = '',
49
50
  eyebrowClass = 'text-xs font-semibold uppercase tracking-[0.18em] text-primary',
50
51
  domainLabels = {},
51
52
  domainClass = {},
@@ -117,60 +118,49 @@ if (disambiguate) {
117
118
  ---
118
119
 
119
120
  <section class:list={["mt-12 pt-8 border-t border-border", className]} aria-labelledby="sources-heading">
120
- <p class:list={[eyebrowClass, 'mb-2']}>{eyebrow}</p>
121
- <h2 id="sources-heading" class="text-xl sm:text-2xl font-normal font-display text-foreground mb-3 tracking-tight">{title}</h2>
122
121
  <details data-sources class="group">
123
- <summary class="flex min-h-11 cursor-pointer list-none items-center justify-between gap-4 rounded-lg border border-border bg-muted/30 px-4 py-2.5 text-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary marker:content-none">
124
- <span class="text-muted-foreground">{normalized.length} {countLabel}</span>
125
- <span class:list={[toggleSizeClass, 'font-medium text-primary group-open:hidden']}>{showLabel}</span>
126
- <span class:list={['hidden', toggleSizeClass, 'font-medium text-primary group-open:inline']}>{hideLabel}</span>
122
+ <summary class="flex min-h-11 cursor-pointer list-none flex-wrap items-baseline gap-x-3 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-primary marker:content-none [&::-webkit-details-marker]:hidden">
123
+ {eyebrow && <span class:list={[eyebrowClass, 'basis-full']}>{eyebrow}</span>}
124
+ <h2 id="sources-heading" class="text-xl sm:text-2xl font-normal font-display text-foreground tracking-tight">{title}</h2>
125
+ <span class="text-sm text-muted-foreground tabular-nums">{normalized.length} {countLabel}</span>
126
+ <span class:list={[toggleSizeClass, 'ml-auto font-medium text-primary underline underline-offset-4 decoration-primary/40 group-hover:decoration-primary group-open:hidden']}>{showLabel}</span>
127
+ <span class:list={['hidden ml-auto', toggleSizeClass, 'font-medium text-primary underline underline-offset-4 decoration-primary/40 group-hover:decoration-primary group-open:inline']}>{hideLabel}</span>
127
128
  </summary>
128
129
 
129
- <ol class="mt-5 space-y-2 list-none" role="list">
130
- {normalized.map((source, i) => (
131
- <li
132
- id={`fn-${i + 1}`}
133
- class="flex items-baseline gap-3 p-3 bg-muted/30 rounded-lg border border-border hover:border-primary/50 transition-colors scroll-mt-28"
134
- >
135
- <span class="font-mono text-sm text-primary min-w-[2rem] shrink-0 select-none" aria-hidden="true">
136
- [{i + 1}]
137
- </span>
138
- <div class="flex-1 min-w-0">
139
- {source.linkRel === null ? (
140
- <span class="inline-flex items-baseline gap-1.5 font-medium text-sm text-foreground break-words">
141
- <span>{source.name}</span>
142
- </span>
143
- ) : (
144
- <a
145
- href={source.url}
146
- target="_blank"
147
- rel={source.linkRel}
148
- class="inline-flex items-baseline gap-1.5 font-medium text-sm text-foreground hover:text-primary transition-colors break-words"
149
- >
150
- <span>{source.name}</span>
151
- <svg class="w-3.5 h-3.5 self-center text-muted-foreground shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
152
- <path d="M7 7h10v10" />
153
- <path d="M7 17 17 7" />
154
- </svg>
155
- <span class="sr-only">{newTabLabel}</span>
156
- </a>
157
- )}
158
- {source.description && (
159
- <p class="text-sm text-muted-foreground mt-1 leading-relaxed">{source.description}</p>
160
- )}
161
- {source.quote && (isItalian ? (
162
- <p lang={source.lang && source.lang !== lang ? source.lang : undefined} class="text-sm text-muted-foreground mt-1.5 leading-relaxed italic border-l-2 border-primary/30 pl-3">
163
- «{source.quote}»
164
- </p>
165
- ) : (
166
- <p lang={source.lang && source.lang !== lang ? source.lang : undefined} class="text-sm text-muted-foreground mt-1.5 leading-relaxed italic border-l-2 border-primary/30 pl-3">
167
- &ldquo;{source.quote}&rdquo;
168
- </p>
169
- ))}
170
- </div>
171
- </li>
172
- ))}
173
- </ol>
130
+ <ol class="mt-3 list-none border-t border-border" role="list">
131
+ {normalized.map((source, i) => (
132
+ <li id={`fn-${i + 1}`} class="flex items-baseline gap-4 border-b border-border py-3 scroll-mt-28">
133
+ <span class="w-7 shrink-0 text-right text-sm tabular-nums text-muted-foreground select-none" aria-hidden="true">{i + 1}</span>
134
+ <div class="flex-1 min-w-0">
135
+ {source.linkRel === null ? (
136
+ <span class="inline-flex items-baseline gap-1.5 font-medium text-sm text-foreground break-words"><span>{source.name}</span></span>
137
+ ) : (
138
+ <a
139
+ href={source.url}
140
+ target="_blank"
141
+ rel={source.linkRel}
142
+ class="inline-flex items-baseline gap-1.5 font-medium text-sm text-foreground underline underline-offset-4 decoration-border hover:text-primary hover:decoration-primary transition-colors break-words focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"
143
+ >
144
+ <span>{source.name}</span>
145
+ <svg class="w-3.5 h-3.5 self-center text-muted-foreground shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
146
+ <path d="M7 7h10v10" />
147
+ <path d="M7 17 17 7" />
148
+ </svg>
149
+ <span class="sr-only">{newTabLabel}</span>
150
+ </a>
151
+ )}
152
+ {source.description && (
153
+ <p class="text-sm text-muted-foreground mt-1 leading-relaxed">{source.description}</p>
154
+ )}
155
+ {source.quote && (
156
+ <p lang={source.lang && source.lang !== lang ? source.lang : undefined} class="text-sm text-muted-foreground mt-1.5 leading-relaxed italic">
157
+ {isItalian ? `«${source.quote}»` : `\u201C${source.quote}\u201D`}
158
+ </p>
159
+ )}
160
+ </div>
161
+ </li>
162
+ ))}
163
+ </ol>
174
164
  </details>
175
165
  </section>
176
166