@press2ai/theme-specialist-glossy 0.4.3 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@press2ai/theme-specialist-glossy",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Classless, AI-first theme inspired by Stripe. Framework-agnostic templates (Hono, Astro, raw HTML). Semantic HTML, Schema.org microdata, JSON-LD — built for LLM crawlers.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -121,6 +121,7 @@ form[role="search"] button {
121
121
  form[role="search"] button:hover { background: var(--ink); }
122
122
 
123
123
  /* Stats */
124
+ section[aria-label] > p { text-align: center; font-size: var(--t-sm); color: var(--ink-2); margin: 0 auto var(--g3); max-width: var(--measure); }
124
125
  section:has(> dl) { margin-bottom: 0; }
125
126
  section > dl {
126
127
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: var(--g3);
@@ -24,9 +24,10 @@ ${search}
24
24
  </hgroup>`;
25
25
  }
26
26
 
27
- export function statBar(items: { value: string; label: string }[]): string {
27
+ export function statBar(items: { value: string; label: string }[], summary?: string): string {
28
28
  const divs = items.map(i => `<div><dt>${esc(i.value)}</dt><dd>${esc(i.label)}</dd></div>`).join('\n');
29
- return `<section><dl>\n${divs}\n</dl></section>`;
29
+ const summaryP = summary ? `<p>${esc(summary)}</p>` : '';
30
+ return `<section aria-label="Statystyki">${summaryP}<dl>\n${divs}\n</dl></section>`;
30
31
  }
31
32
 
32
33
  export function categoryNav(items: { href: string; label: string }[], ariaLabel = 'Kategorie'): string {