@r2digisolutions/components 0.25.8 → 0.25.9

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.
@@ -41,6 +41,9 @@
41
41
  imageUrl?: string | null;
42
42
  /** Fallback when `imageUrl` fails (e.g. thumb → full original). */
43
43
  imageFallbackUrl?: string | null;
44
+ /** Portrait flyer for flyer view; falls back to `imageUrl`. */
45
+ flyerImageUrl?: string | null;
46
+ flyerImageFallbackUrl?: string | null;
44
47
  href?: string;
45
48
  badge?: string;
46
49
  chip?: string;
@@ -636,13 +639,18 @@
636
639
  onclick={() => selectItem(item)}
637
640
  >
638
641
  {#if listView === 'flyer'}
642
+ {@const flyerSrc = item.flyerImageUrl ?? item.imageUrl}
643
+ {@const flyerFallback =
644
+ item.flyerImageUrl != null
645
+ ? (item.flyerImageFallbackUrl ?? item.imageUrl)
646
+ : item.imageFallbackUrl}
639
647
  <div
640
- class="bg-surface-overlay relative aspect-[3/1] w-full overflow-hidden"
648
+ class="bg-surface-overlay relative aspect-[3/4] w-full overflow-hidden"
641
649
  >
642
- {#if item.imageUrl}
650
+ {#if flyerSrc}
643
651
  <Image
644
- src={item.imageUrl}
645
- fallbackSrc={item.imageFallbackUrl ?? undefined}
652
+ src={flyerSrc}
653
+ fallbackSrc={flyerFallback ?? undefined}
646
654
  alt={item.title}
647
655
  class="inset-0 absolute h-full w-full"
648
656
  objectFit="contain"
@@ -17,6 +17,9 @@ export type MapExplorerItem = {
17
17
  imageUrl?: string | null;
18
18
  /** Fallback when `imageUrl` fails (e.g. thumb → full original). */
19
19
  imageFallbackUrl?: string | null;
20
+ /** Portrait flyer for flyer view; falls back to `imageUrl`. */
21
+ flyerImageUrl?: string | null;
22
+ flyerImageFallbackUrl?: string | null;
20
23
  href?: string;
21
24
  badge?: string;
22
25
  chip?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2digisolutions/components",
3
- "version": "0.25.8",
3
+ "version": "0.25.9",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",