Merge branch 'develop' into feat/sw-386-header-fixes

This commit is contained in:
Linus Flood
2024-09-19 11:23:33 +02:00
61 changed files with 1341 additions and 560 deletions

View File

@@ -1,7 +1,10 @@
import type { PointOfInterest } from "@/types/hotel"
import type { Coordinates } from "../../maps/coordinates"
export interface DynamicMapProps {
apiKey: string
hotelName: string
coordinates: Coordinates
pointsOfInterest: PointOfInterest[]
mapId: string
}

View File

@@ -1,6 +0,0 @@
import type { Coordinates } from "../../maps/coordinates"
export interface DynamicMapContentProps {
hotelName: string
coordinates: Coordinates
}

View File

@@ -1,3 +1,6 @@
import type { PointOfInterest } from "@/types/hotel"
export interface MapCardProps {
hotelName: string
pois: PointOfInterest[]
}

View File

@@ -0,0 +1,10 @@
import type { Coordinates } from "@/types/components/maps/coordinates"
import type { PointOfInterest } from "@/types/hotel"
export interface MapContentProps {
coordinates: Coordinates
pointsOfInterest: PointOfInterest[]
activePoi: PointOfInterest["name"] | null
mapId: string
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
}

View File

@@ -0,0 +1,8 @@
import type { PointOfInterest } from "@/types/hotel"
export interface SidebarProps {
hotelName: string
pointsOfInterest: PointOfInterest[]
activePoi: PointOfInterest["name"] | null
onActivePoiChange: (poi: PointOfInterest["name"] | null) => void
}

View File

@@ -1,4 +1,4 @@
import { RoomData } from "@/types/hotel"
import type { RoomData } from "@/types/hotel"
export interface RoomCardProps {
id: string

View File

@@ -25,6 +25,7 @@ export enum IconName {
CloseLarge = "CloseLarge",
Coffee = "Coffee",
Concierge = "Concierge",
Cultural = "Cultural",
DoorOpen = "DoorOpen",
ElectricBike = "ElectricBike",
Email = "Email",
@@ -40,6 +41,7 @@ export enum IconName {
Lock = "Lock",
Map = "Map",
Minus = "Minus",
Museum = "Museum",
Parking = "Parking",
Person = "Person",
People2 = "People2",
@@ -51,6 +53,9 @@ export enum IconName {
Sauna = "Sauna",
Search = "Search",
Service = "Service",
Shopping = "Shopping",
StarFilled = "StarFilled",
Train = "Train",
Tripadvisor = "Tripadvisor",
TshirtWash = "TshirtWash",
Wifi = "Wifi",

View File

@@ -0,0 +1,8 @@
import { poiVariants } from "@/components/Maps/Markers/Poi/variants"
import type { VariantProps } from "class-variance-authority"
export interface PoiMarkerProps extends VariantProps<typeof poiVariants> {
size?: number
className?: string
}

View File

@@ -1,4 +1,4 @@
import { Coordinates } from "./coordinates"
import type { Coordinates } from "./coordinates"
export type StaticMapProps = {
city?: string
@@ -8,4 +8,5 @@ export type StaticMapProps = {
zoomLevel?: number
mapType?: "roadmap" | "satellite" | "terrain" | "hybrid"
altText: string
mapId?: string
}