Merged in feat/sw-1493-revised-comparison-block (pull request #1236)

feat(SW-1493): Revised SAS comparison block

* Base of new TierDetails for SAS tier comparison

* Add backgrounds and content to TierDetails

* Implement new cms schema for SasTierComparison

* Override gap in jsontohtml styling to 0

* Add animations to comparison details

* Redesign again

* Update content model to new design

* Add border to bottom item in tier match list

* Wrap interpolate-size in @supports to be safe

* Merge branch 'master' into feat/sw-1493-revised-comparison-block


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-02-03 08:42:16 +00:00
parent f9d1736195
commit fc866c0e4d
28 changed files with 450 additions and 351 deletions

View File

@@ -4,14 +4,14 @@ import type { Hotel, Room } from "@/types/hotel"
import type { bookingConfirmationSchema } from "@/server/routers/booking/output"
export interface BookingConfirmationSchema
extends z.output<typeof bookingConfirmationSchema> { }
extends z.output<typeof bookingConfirmationSchema> {}
export interface BookingConfirmation {
booking: BookingConfirmationSchema
hotel: Hotel
room:
| (Room & {
bedType: Room["roomTypes"][number]
})
| null
| (Room & {
bedType: Room["roomTypes"][number]
})
| null
}

View File

@@ -6,7 +6,7 @@ import type {
locationsSchema,
} from "@/server/routers/hotels/output"
export interface LocationSchema extends z.output<typeof locationsSchema> { }
export interface LocationSchema extends z.output<typeof locationsSchema> {}
export type Locations = LocationSchema["data"]
export type Location = Locations[number]
@@ -20,7 +20,7 @@ export function isHotelLocation(
return location?.type === "hotels"
}
export interface CitiesByCountry
extends z.output<typeof citiesByCountrySchema> { }
extends z.output<typeof citiesByCountrySchema> {}
export type CitiesGroupedByCountry = Record<string, CitiesByCountry["data"]>
export interface Countries extends z.output<typeof countriesSchema> { }
export interface Countries extends z.output<typeof countriesSchema> {}