@r2digisolutions/components 0.25.8 → 0.25.10

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.
@@ -181,10 +181,10 @@
181
181
  </div>
182
182
  {/if}
183
183
 
184
- <!-- Scroll outer, center inner (min-h-full): one scrollbar when tall -->
184
+ <!-- Scroll outer, center inner. min-h-dvh so the card stays centered even when a parent only has min-height. -->
185
185
  <div class="min-h-0 flex h-full flex-1 flex-col overflow-y-auto">
186
186
  <div
187
- class="px-5 py-8 sm:px-8 sm:py-10 flex min-h-full flex-1 flex-col items-center justify-center"
187
+ class="px-5 py-8 sm:px-8 sm:py-10 flex min-h-dvh flex-1 flex-col items-center justify-center"
188
188
  >
189
189
  <div class="max-w-md mx-auto w-full shrink-0">
190
190
  {#if children}
@@ -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.10",
4
4
  "private": false,
5
5
  "description": "R2DigiSolutions Svelte 5 component library — Atomic Design, Tailwind 4, Light/Dark mode",
6
6
  "license": "MIT",