@sarimarcus/content-sites-tourism 0.28.1 → 0.29.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.
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.0 (2026-10-06)
6
+
7
+ - `./sections`: `TourismNavigation` renders its Articles menu through ui `ArticlesNavMenu`. `articles.latest` items accept optional `eyebrow`, `date`, `image` and `imageAlt`; the first item becomes the feature card when it has an image. `TourismNavHubLink` is now an alias of ui `NavHubLink`. Props are otherwise unchanged (SLA-2993).
8
+
5
9
  ## 0.28.1 (2026-10-06)
6
10
 
7
11
  - `./schema` touristTrip stop URLs resolve through the RouteMap (`ctx.route`), and the monument and museum builders inherit core's stricter free-entry rule (SLA-2983).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-tourism",
3
- "version": "0.28.1",
3
+ "version": "0.29.0",
4
4
  "description": "City-tourism vertical: city-entity components, pages templates and utilities for the tourism sites.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "peerDependencies": {
37
37
  "astro": "^7.0.6",
38
38
  "tailwindcss": "^4.1.18",
39
- "@sarimarcus/content-sites-core": "0.28.1",
40
- "@sarimarcus/content-sites-ui": "0.28.1"
39
+ "@sarimarcus/content-sites-core": "0.29.0",
40
+ "@sarimarcus/content-sites-ui": "0.29.0"
41
41
  }
42
42
  }
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { normalizePagePath } from '@sarimarcus/content-sites-core/url';
9
9
  import { Chip, Icon } from '@sarimarcus/content-sites-ui/primitives';
10
- import { SiteHeader, NavDropdown, MobileNavSection, NavMenuLink, MobileNavLink, isActivePath, type NavLink } from '@sarimarcus/content-sites-ui/navigation';
10
+ import { SiteHeader, NavDropdown, MobileNavSection, NavMenuLink, MobileNavLink, ArticlesNavMenu, isActivePath, type NavLink } from '@sarimarcus/content-sites-ui/navigation';
11
11
  import type { TourismNavigationProps } from './tourismNavigation.ts';
12
12
 
13
13
  type Props = TourismNavigationProps;
@@ -20,7 +20,6 @@ const here = (href: string) => normalizePagePath(href) === currentPath;
20
20
  const anyOn = (links: NavLink[]) => links.some((l) => on(l.href));
21
21
 
22
22
  const exploreActive = anyOn(explore.links) || on(explore.allGuides.href) || on(explore.bestOf.href);
23
- const articlesActive = on(articles.all.href);
24
23
  const eatDrinkActive = anyOn(eatDrink.links);
25
24
  const planActive = anyOn(plan.links) || on(plan.hub.href);
26
25
  const itinerariesActive = itineraries.durations.some((d) => on(d.href)) || anyOn(itineraries.connections) || on(itineraries.all.href);
@@ -52,23 +51,7 @@ const monthTone = (m: { current?: boolean; peak?: boolean }, hover: boolean) =>
52
51
  </div>
53
52
  </NavDropdown>
54
53
 
55
- <NavDropdown id="nav-articles-menu" label={articles.label} icon={articles.icon} tone="primary" active={articlesActive} align="left">
56
- <div class={`w-[34rem] ${panel}`}>
57
- <div class="grid grid-cols-2">
58
- <div class="p-2 border-r border-border">
59
- <div class={`px-3 pt-2 pb-1 ${heading}`}>{articles.topicsHeading}</div>
60
- {articles.topics.map((link) => <NavMenuLink link={link} size="sm" active={on(link.href)} />)}
61
- </div>
62
- <div class="p-2 flex flex-col">
63
- <div class={`px-3 pt-2 pb-1 ${heading}`}>{articles.latestHeading}</div>
64
- {articles.latest.map((link) => <NavMenuLink link={link} active={on(link.href)} />)}
65
- <div class="mt-auto border-t border-border pt-2">
66
- <NavMenuLink link={articles.all} align="center" emphasis active={here(articles.all.href)} />
67
- </div>
68
- </div>
69
- </div>
70
- </div>
71
- </NavDropdown>
54
+ <ArticlesNavMenu variant="desktop" label={articles.label} icon={articles.icon} topicsHeading={articles.topicsHeading} topics={articles.topics} latestHeading={articles.latestHeading} latest={articles.latest} all={articles.all} />
72
55
 
73
56
  <NavDropdown id="nav-eat-drink-menu" label={eatDrink.label} icon={eatDrink.icon} tone="primary" active={eatDrinkActive} align="left">
74
57
  <div class={`w-56 ${panel}`}>
@@ -194,11 +177,7 @@ const monthTone = (m: { current?: boolean; peak?: boolean }, hover: boolean) =>
194
177
  <MobileNavLink link={explore.bestOf} iconStrong active={here(explore.bestOf.href)} />
195
178
  </MobileNavSection>
196
179
 
197
- <MobileNavSection label={articles.label} icon={articles.icon} class="border-t border-border">
198
- <MobileNavLink link={{ ...articles.all, label: articles.all.mobileLabel ?? articles.all.label }} emphasis="semibold" active={here(articles.all.href)} />
199
- <div class={`px-4 pt-2 pb-1 ${heading}`}>{articles.topicsHeading}</div>
200
- {articles.topics.map((link) => <MobileNavLink link={link} active={on(link.href)} />)}
201
- </MobileNavSection>
180
+ <ArticlesNavMenu variant="mobile" label={articles.label} icon={articles.icon} topicsHeading={articles.topicsHeading} topics={articles.topics} all={articles.all} class="border-t border-border" />
202
181
 
203
182
  <MobileNavSection label={eatDrink.label} icon={eatDrink.icon} class="border-t border-border">
204
183
  {eatDrink.links.map((link) => <MobileNavLink link={link} active={on(link.href)} />)}
@@ -1,9 +1,7 @@
1
- import type { NavLink } from '@sarimarcus/content-sites-ui/navigation';
1
+ import type { ArticleNavItem, NavHubLink, NavLink } from '@sarimarcus/content-sites-ui/navigation';
2
2
 
3
3
  /** A link the panel shows with a different label in the mobile menu. */
4
- export interface TourismNavHubLink extends NavLink {
5
- mobileLabel?: string;
6
- }
4
+ export type TourismNavHubLink = NavHubLink;
7
5
 
8
6
  export interface TourismNavMonth {
9
7
  label: string;
@@ -31,7 +29,7 @@ interface Group {
31
29
  */
32
30
  export interface TourismNavigationProps {
33
31
  explore: Group & { links: NavLink[]; allGuides: NavLink; bestOf: NavLink };
34
- articles: Group & { topicsHeading: string; topics: NavLink[]; latestHeading: string; latest: NavLink[]; all: TourismNavHubLink };
32
+ articles: Group & { topicsHeading: string; topics: NavLink[]; latestHeading: string; latest: ArticleNavItem[]; all: TourismNavHubLink };
35
33
  eatDrink: Group & { links: NavLink[] };
36
34
  plan: Group & { links: NavLink[]; hub: NavLink; monthsHeading: string; months: TourismNavMonth[] };
37
35
  itineraries: Group & {