Merged in feat/sw-3231-move-lightbox-to-design-system (pull request #2619)

feat(SW-3231): Move Lightbox to design-system

* Move Lightbox to design-system

* Fix self-referencing imports

* Fix broken import


Approved-by: Matilda Landström
This commit is contained in:
Anton Gunnarsson
2025-08-13 11:02:59 +00:00
parent 5397437628
commit 29292fd157
11 changed files with 83 additions and 80 deletions

View File

@@ -1,28 +0,0 @@
import type { GalleryImage } from "../imageGallery"
export interface LightboxProps {
images: GalleryImage[]
dialogTitle: string /* Accessible title for dialog screen readers */
onClose: () => void
activeIndex?: number
hideLabel?: boolean
}
export interface GalleryProps {
images: GalleryImage[]
onClose: () => void
onSelectImage: (image: GalleryImage) => void
onImageClick: () => void
selectedImage: GalleryImage | null
hideLabel?: boolean
}
export interface FullViewProps {
image: GalleryImage
onClose: () => void
onNext: () => void
onPrev: () => void
currentIndex: number
totalImages: number
hideLabel?: boolean
}