@sarimarcus/content-sites-tourism 0.31.5 → 0.31.7

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,14 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.31.7 (2026-10-09)
6
+
7
+ - `./cards` `NeighborhoodCard`: the CTA arrow draws through ui `ArrowGlyph` (the svg loses its scoped `data-astro-cid-*` attributes) and the monuments glyph is ui `Icon` `building`. `MonumentCard`/`MuseumCard`: the highlight star is ui `Icon` `star` filled, Lucide's rounded star. `./sections` `NeighborhoodCategory`: the historic and modern header glyphs are ui `Icon` `landmark` (the arcade becomes a temple) and `newspaper`. Pages: `index`, `monuments`, `monuments/type/*`, `neighborhoods` and the `neighborhood/` pages with starred monument cards on both tourism sites, svg only (SLA-3024).
8
+
9
+ ## 0.31.6 (2026-10-08)
10
+
11
+ - No changes; lockstep release with core (SLA-3023).
12
+
5
13
  ## 0.31.5 (2026-10-08)
6
14
 
7
15
  - No changes; lockstep release with core (SLA-2998).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-tourism",
3
- "version": "0.31.5",
3
+ "version": "0.31.7",
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.31.5",
40
- "@sarimarcus/content-sites-ui": "0.31.5"
39
+ "@sarimarcus/content-sites-core": "0.31.7",
40
+ "@sarimarcus/content-sites-ui": "0.31.7"
41
41
  }
42
42
  }
@@ -55,9 +55,7 @@ const {
55
55
  <div class="absolute top-3 left-3 flex flex-wrap gap-2">
56
56
  {highlightBadge && (
57
57
  <Badge tone="custom" toneClass="bg-accent-strong text-overlay-foreground" size="lg" lines={1} class="max-sm:text-xs">
58
- <svg class="w-3 h-3 inline-block align-[-1px] mr-1" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
59
- <path d="M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z" />
60
- </svg>{highlightBadge}
58
+ <Icon name="star" filled class="w-3 h-3 inline-block align-[-1px] mr-1" />{highlightBadge}
61
59
  </Badge>
62
60
  )}
63
61
  {badge && (
@@ -6,7 +6,7 @@
6
6
  * Layers: image 0, gradient 10, title and meta 20, badge 30, attractions 40.
7
7
  */
8
8
  import type { ImageMetadata } from 'astro';
9
- import { Badge, Icon, ResponsivePicture } from '@sarimarcus/content-sites-ui/primitives';
9
+ import { ArrowGlyph, Badge, Icon, ResponsivePicture } from '@sarimarcus/content-sites-ui/primitives';
10
10
  import type { BrandTone } from '@sarimarcus/content-sites-ui/types';
11
11
 
12
12
  export type NeighborhoodBadgeTone = BrandTone | 'overlay';
@@ -145,11 +145,7 @@ const cardHeight = 'h-72 sm:h-80';
145
145
  <div class="flex flex-wrap items-center gap-3 mb-3">
146
146
  {counts.monuments && (
147
147
  <span class="inline-flex items-center gap-1.5 text-xs text-overlay-foreground/80">
148
- <svg class="w-3.5 h-3.5 text-primary" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
149
- <rect width="16" height="20" x="4" y="2" rx="2" ry="2" />
150
- <path d="M9 22v-4h6v4" />
151
- <path d="M8 6h.01M16 6h.01M12 6h.01M12 10h.01M12 14h.01M16 10h.01M16 14h.01M8 10h.01M8 14h.01" />
152
- </svg>
148
+ <Icon name="building" class="w-3.5 h-3.5 text-primary" />
153
149
  {counts.monuments}
154
150
  </span>
155
151
  )}
@@ -173,10 +169,7 @@ const cardHeight = 'h-72 sm:h-80';
173
169
 
174
170
  <div class="flex items-center gap-2 text-overlay-foreground/90 group-hover:text-accent transition-colors">
175
171
  <span class="text-sm font-medium">{ctaLabel}</span>
176
- <svg class="w-4 h-4 transition-transform group-hover:translate-x-1" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
177
- <path d="M5 12h14" />
178
- <path d="m12 5 7 7-7 7" />
179
- </svg>
172
+ <ArrowGlyph class="w-4 h-4 transition-transform group-hover:translate-x-1" />
180
173
  </div>
181
174
  </div>
182
175
  </div>
@@ -27,29 +27,28 @@ const {
27
27
  } = Astro.props;
28
28
 
29
29
  const categoryConfig: Record<NeighborhoodCategoryType, {
30
+ icon: string;
30
31
  accentColor: string;
31
32
  iconBg: string;
32
33
  }> = {
33
34
  'historic': {
35
+ icon: 'landmark',
34
36
  accentColor: 'text-primary',
35
37
  iconBg: 'bg-primary/10',
36
38
  },
37
39
  'authentic': {
40
+ icon: 'map-pin',
38
41
  accentColor: 'text-secondary',
39
42
  iconBg: 'bg-secondary/10',
40
43
  },
41
44
  'modern': {
45
+ icon: 'newspaper',
42
46
  accentColor: 'text-accent-strong',
43
47
  iconBg: 'bg-accent/10',
44
48
  },
45
49
  };
46
50
 
47
51
  const config = categoryConfig[category];
48
-
49
- const categoryIcons: Record<Exclude<NeighborhoodCategoryType, 'authentic'>, string> = {
50
- 'historic': 'M3 21h18M3 7v1a3 3 0 0 0 6 0V7m0 1a3 3 0 0 0 6 0V7m0 1a3 3 0 0 0 6 0V7M6 21V7m6 0v14m6-14v14M4 7h16M4 21h16',
51
- 'modern': 'M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2 M18 14h-8M15 18h-5',
52
- };
53
52
  ---
54
53
 
55
54
  <section
@@ -60,13 +59,7 @@ const categoryIcons: Record<Exclude<NeighborhoodCategoryType, 'authentic'>, stri
60
59
  <div class="mb-8 pb-6">
61
60
  <div class="flex items-start gap-4 mb-3">
62
61
  <div class:list={['flex-shrink-0 w-10 h-10 rounded-lg flex items-center justify-center', config.iconBg]}>
63
- {category === 'authentic' ? (
64
- <Icon name="map-pin" class={`w-5 h-5 ${config.accentColor}`} />
65
- ) : (
66
- <svg class:list={['w-5 h-5', config.accentColor]} viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
67
- <path d={categoryIcons[category]} />
68
- </svg>
69
- )}
62
+ <Icon name={config.icon} class={`w-5 h-5 ${config.accentColor}`} />
70
63
  </div>
71
64
 
72
65
  <div class="flex-1 min-w-0">