@sarimarcus/content-sites-tourism 0.38.0 → 0.38.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.38.1 (2026-10-15)
|
|
6
|
+
|
|
7
|
+
- `ArticleCardGrid` lays cards out in three columns from the `lg` breakpoint (`grid gap-6 sm:grid-cols-2 lg:grid-cols-3`) and takes an optional `class` to override the grid (SLA-3125).
|
|
8
|
+
|
|
5
9
|
## 0.38.0 (2026-10-15)
|
|
6
10
|
|
|
7
11
|
- `ArticleCardGrid` takes its "Updated" test from core `isUpdatedAfterPublication`; output unchanged (SLA-3120).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarimarcus/content-sites-tourism",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.1",
|
|
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.38.
|
|
40
|
-
"@sarimarcus/content-sites-ui": "0.38.
|
|
39
|
+
"@sarimarcus/content-sites-core": "0.38.1",
|
|
40
|
+
"@sarimarcus/content-sites-ui": "0.38.1"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -30,9 +30,11 @@ interface Props {
|
|
|
30
30
|
updatedLabel?: string;
|
|
31
31
|
/** Overrides of the `articles` route. */
|
|
32
32
|
routes?: SiteRoutes;
|
|
33
|
+
/** Grid classes; defaults to 1/2/3 columns. */
|
|
34
|
+
class?: string;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
const { articles, articleImages, timeZone = 'Europe/Madrid', readLabel = LABELS.articleCardGrid.readLabel, updatedLabel = LABELS.articleCardGrid.updatedLabel, routes } = Astro.props;
|
|
37
|
+
const { articles, articleImages, timeZone = 'Europe/Madrid', readLabel = LABELS.articleCardGrid.readLabel, updatedLabel = LABELS.articleCardGrid.updatedLabel, routes, class: className = 'grid gap-6 sm:grid-cols-2 lg:grid-cols-3' } = Astro.props;
|
|
36
38
|
|
|
37
39
|
function formatCardDate(dateStr: string | undefined): string {
|
|
38
40
|
if (!dateStr) return '';
|
|
@@ -60,4 +62,4 @@ const items = articles.map(({ data: a }) => {
|
|
|
60
62
|
});
|
|
61
63
|
---
|
|
62
64
|
|
|
63
|
-
<ArticleGrid articles={items} readLabel={readLabel} updatedLabel={updatedLabel} />
|
|
65
|
+
<ArticleGrid articles={items} readLabel={readLabel} updatedLabel={updatedLabel} class={className} />
|