@contentrain/astro-kit 0.44.0 → 0.44.2

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/catalog.json CHANGED
@@ -5552,7 +5552,7 @@
5552
5552
  "type": "string",
5553
5553
  "default": "Most popular",
5554
5554
  "content": false,
5555
- "description": "Badge text on featured plans."
5555
+ "description": "Badge text on featured plans (ui-strings pricing.featured)."
5556
5556
  },
5557
5557
  "id": {
5558
5558
  "type": "string",
@@ -5569,13 +5569,13 @@
5569
5569
  "type": "string",
5570
5570
  "default": "Included",
5571
5571
  "content": false,
5572
- "description": "Table cell text for readers where a plan has the feature."
5572
+ "description": "Table cell text for readers where a plan has the feature (ui-strings pricing.included)."
5573
5573
  },
5574
5574
  "notIncludedLabel": {
5575
5575
  "type": "string",
5576
5576
  "default": "Not included",
5577
5577
  "content": false,
5578
- "description": "Table cell text for readers where a plan lacks the feature."
5578
+ "description": "Table cell text for readers where a plan lacks the feature (ui-strings pricing.not_included)."
5579
5579
  },
5580
5580
  "measured": {
5581
5581
  "type": "object",
@@ -5691,19 +5691,19 @@
5691
5691
  "type": "string",
5692
5692
  "default": "Monthly",
5693
5693
  "content": false,
5694
- "description": "First option of the billing toggle."
5694
+ "description": "First option of the billing toggle (ui-strings pricing.billing_main)."
5695
5695
  },
5696
5696
  "billingAltLabel": {
5697
5697
  "type": "string",
5698
5698
  "default": "Yearly",
5699
5699
  "content": false,
5700
- "description": "Second option of the billing toggle (the plans' priceAlt)."
5700
+ "description": "Second option of the billing toggle, the plans' priceAlt (ui-strings pricing.billing_alt)."
5701
5701
  },
5702
5702
  "billingLegend": {
5703
5703
  "type": "string",
5704
5704
  "default": "Billing period",
5705
5705
  "content": false,
5706
- "description": "Legend of the toggle, read to screen readers."
5706
+ "description": "Legend of the toggle, read to screen readers (ui-strings pricing.billing_legend)."
5707
5707
  },
5708
5708
  "billingAltNote": {
5709
5709
  "type": "string",
@@ -5714,7 +5714,7 @@
5714
5714
  "type": "string",
5715
5715
  "default": "Was",
5716
5716
  "content": false,
5717
- "description": "Read before a struck original price by screen readers, which do not announce the strike. 'Was' is only the kit default: the writer passes it in the site's language."
5717
+ "description": "Read before a struck original price by screen readers, which do not announce the strike. 'Was' is only the kit default: the writer passes it in the site's language (ui-strings pricing.was)."
5718
5718
  }
5719
5719
  },
5720
5720
  "slots": {},
@@ -16,7 +16,7 @@ const header = tv({
16
16
  slots: {
17
17
  root: 'z-40 w-full',
18
18
  inner: 'container-page flex items-center gap-6 py-4',
19
- brand: 'flex shrink-0 items-center gap-3 text-lg font-semibold tracking-tight text-current no-underline',
19
+ brand: 'flex min-w-0 items-center gap-3 text-lg font-semibold tracking-tight text-current no-underline',
20
20
  },
21
21
  variants: {
22
22
  layout: {
@@ -94,16 +94,16 @@ const wrap = search ? 'flex-wrap lg:flex-nowrap' : tagline ? 'flex-wrap md:flex-
94
94
  ? (
95
95
  <div class="flex min-w-0 basis-full flex-col gap-1 md:basis-auto">
96
96
  <a href={safeHref(homeHref)} class={brand()} aria-label={showName ? undefined : siteName} style={brandStyle} data-kit-brand>
97
- {logo && <KitImage image={logo} priority class="h-8 w-auto" sizes="160px" />}
98
- {showName && <span>{siteName}</span>}
97
+ {logo && <KitImage image={logo} priority class="h-8 w-auto min-w-0 max-w-full object-contain" sizes="160px" />}
98
+ {showName && <span class="min-w-[3ch] shrink-[8] truncate">{siteName}</span>}
99
99
  </a>
100
100
  <p class={muted} data-kit-tagline>{tagline}</p>
101
101
  </div>
102
102
  )
103
103
  : (
104
104
  <a href={safeHref(homeHref)} class={brand()} aria-label={showName ? undefined : siteName} style={brandStyle} data-kit-brand>
105
- {logo && <KitImage image={logo} priority class="h-8 w-auto" sizes="160px" />}
106
- {showName && <span>{siteName}</span>}
105
+ {logo && <KitImage image={logo} priority class="h-8 w-auto min-w-0 max-w-full object-contain" sizes="160px" />}
106
+ {showName && <span class="min-w-[3ch] shrink-[8] truncate">{siteName}</span>}
107
107
  </a>
108
108
  )}
109
109
  {search && (
@@ -211,5 +211,31 @@
211
211
  }
212
212
  },
213
213
  { "name": "search", "props": { "siteName": "Northwind Journal", "items": [{ "label": "Journal", "href": "/" }, { "label": "About", "href": "/about/" }], "search": { "label": "Search", "placeholder": "Search this site", "submitLabel": "Search" } } },
214
- {"name": "mega-menu-search", "props": {"siteName": "Northwind", "menu": "mega", "items": [{"label": "Hakkımızda", "href": "/hakkimizda/"}, {"label": "Ürünlerimiz", "href": "#", "children": [{"label": "Aracım İçin", "href": "#", "children": [{"label": "Trafik Sigortası", "href": "/urunlerimiz/trafik-sigortasi/"}, {"label": "Kasko", "href": "/urunlerimiz/kasko/"}]}, {"label": "Evim İçin", "href": "#", "children": [{"label": "Dask", "href": "/urunlerimiz/dask/"}, {"label": "Konut Sigortası", "href": "/urunlerimiz/konut-sigortasi/"}]}, {"label": "Sağlığım İçin", "href": "#", "children": [{"label": "Sağlık Sigortası", "href": "/urunlerimiz/saglik-sigortasi/"}, {"label": "Tamamlayıcı Sağlık", "href": "/urunlerimiz/tamamlayici-saglik/"}]}, {"label": "Diğer", "href": "#", "children": [{"label": "İş Yeri Sigortası", "href": "/urunlerimiz/is-yeri-sigortasi/"}, {"label": "Seyahat Sigortası", "href": "/urunlerimiz/seyahat-sigortasi/"}]}]}, {"label": "Anlaşmalı Sigorta Şirketleri", "href": "/anlasmali-sigorta-sirketleri/"}, {"label": "İletişim", "href": "/iletisim/"}], "action": {"label": "Get a quote", "href": "/contact/"}, "search": {"label": "Search", "placeholder": "Ara", "submitLabel": "Ara"}}}
214
+ {"name": "mega-menu-search", "props": {"siteName": "Northwind", "menu": "mega", "items": [{"label": "Hakkımızda", "href": "/hakkimizda/"}, {"label": "Ürünlerimiz", "href": "#", "children": [{"label": "Aracım İçin", "href": "#", "children": [{"label": "Trafik Sigortası", "href": "/urunlerimiz/trafik-sigortasi/"}, {"label": "Kasko", "href": "/urunlerimiz/kasko/"}]}, {"label": "Evim İçin", "href": "#", "children": [{"label": "Dask", "href": "/urunlerimiz/dask/"}, {"label": "Konut Sigortası", "href": "/urunlerimiz/konut-sigortasi/"}]}, {"label": "Sağlığım İçin", "href": "#", "children": [{"label": "Sağlık Sigortası", "href": "/urunlerimiz/saglik-sigortasi/"}, {"label": "Tamamlayıcı Sağlık", "href": "/urunlerimiz/tamamlayici-saglik/"}]}, {"label": "Diğer", "href": "#", "children": [{"label": "İş Yeri Sigortası", "href": "/urunlerimiz/is-yeri-sigortasi/"}, {"label": "Seyahat Sigortası", "href": "/urunlerimiz/seyahat-sigortasi/"}]}]}, {"label": "Anlaşmalı Sigorta Şirketleri", "href": "/anlasmali-sigorta-sirketleri/"}, {"label": "İletişim", "href": "/iletisim/"}], "action": {"label": "Get a quote", "href": "/contact/"}, "search": {"label": "Search", "placeholder": "Ara", "submitLabel": "Ara"}}},
215
+ {
216
+ "name": "wide-logo-long-name",
217
+ "props": {
218
+ "siteName": "Northwind Journal of Coastal Gardens",
219
+ "logo": {
220
+ "src": "/kit-fixtures/logo-wide.svg",
221
+ "alt": "",
222
+ "width": 230,
223
+ "height": 32
224
+ },
225
+ "items": [
226
+ {
227
+ "label": "Journal",
228
+ "href": "/"
229
+ },
230
+ {
231
+ "label": "About",
232
+ "href": "/about/"
233
+ },
234
+ {
235
+ "label": "Contact",
236
+ "href": "/contact/"
237
+ }
238
+ ]
239
+ }
240
+ }
215
241
  ]
@@ -172,7 +172,7 @@
172
172
  "type": "string",
173
173
  "default": "Most popular",
174
174
  "content": false,
175
- "description": "Badge text on featured plans."
175
+ "description": "Badge text on featured plans (ui-strings pricing.featured)."
176
176
  },
177
177
  "id": {
178
178
  "type": "string",
@@ -189,13 +189,13 @@
189
189
  "type": "string",
190
190
  "default": "Included",
191
191
  "content": false,
192
- "description": "Table cell text for readers where a plan has the feature."
192
+ "description": "Table cell text for readers where a plan has the feature (ui-strings pricing.included)."
193
193
  },
194
194
  "notIncludedLabel": {
195
195
  "type": "string",
196
196
  "default": "Not included",
197
197
  "content": false,
198
- "description": "Table cell text for readers where a plan lacks the feature."
198
+ "description": "Table cell text for readers where a plan lacks the feature (ui-strings pricing.not_included)."
199
199
  },
200
200
  "measured": {
201
201
  "type": "object",
@@ -311,19 +311,19 @@
311
311
  "type": "string",
312
312
  "default": "Monthly",
313
313
  "content": false,
314
- "description": "First option of the billing toggle."
314
+ "description": "First option of the billing toggle (ui-strings pricing.billing_main)."
315
315
  },
316
316
  "billingAltLabel": {
317
317
  "type": "string",
318
318
  "default": "Yearly",
319
319
  "content": false,
320
- "description": "Second option of the billing toggle (the plans' priceAlt)."
320
+ "description": "Second option of the billing toggle, the plans' priceAlt (ui-strings pricing.billing_alt)."
321
321
  },
322
322
  "billingLegend": {
323
323
  "type": "string",
324
324
  "default": "Billing period",
325
325
  "content": false,
326
- "description": "Legend of the toggle, read to screen readers."
326
+ "description": "Legend of the toggle, read to screen readers (ui-strings pricing.billing_legend)."
327
327
  },
328
328
  "billingAltNote": {
329
329
  "type": "string",
@@ -334,7 +334,7 @@
334
334
  "type": "string",
335
335
  "default": "Was",
336
336
  "content": false,
337
- "description": "Read before a struck original price by screen readers, which do not announce the strike. 'Was' is only the kit default: the writer passes it in the site's language."
337
+ "description": "Read before a struck original price by screen readers, which do not announce the strike. 'Was' is only the kit default: the writer passes it in the site's language (ui-strings pricing.was)."
338
338
  }
339
339
  },
340
340
  "slots": {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentrain/astro-kit",
3
- "version": "0.44.0",
3
+ "version": "0.44.2",
4
4
  "license": "MIT",
5
5
  "description": "Copy-in Astro components for Contentrain sites (shadcn model): typed props, tailwind-variants, zero JavaScript by default — with a machine-readable catalog",
6
6
  "type": "module",