feat(SW-214): Implement usp component

This commit is contained in:
Pontus Dreij
2024-09-25 13:31:13 +02:00
parent ca162651c5
commit 717a5ef307
17 changed files with 286 additions and 59 deletions
+4
View File
@@ -0,0 +1,4 @@
import type { UspGrid } from "@/types/trpc/routers/contentstack/blocks"
export interface UspGridProps extends Pick<UspGrid, "usp_grid"> {}
export type UspIcon = UspGrid["usp_grid"]["usp_card"][number]["icon"]
+1
View File
@@ -54,6 +54,7 @@ export enum IconName {
Search = "Search",
Service = "Service",
Shopping = "Shopping",
Snowflake = "Snowflake",
StarFilled = "StarFilled",
Train = "Train",
Tripadvisor = "Tripadvisor",
+1
View File
@@ -5,6 +5,7 @@ export enum EmbedEnum {
LoyaltyPage = "LoyaltyPage",
AccountPage = "AccountPage",
ContentPage = "ContentPage",
HotelPage = "HotelPage",
}
export type Embed = keyof typeof EmbedEnum
+7 -7
View File
@@ -4,13 +4,13 @@ import { cardsGridSchema } from "@/server/routers/contentstack/schemas/blocks/ca
import { contentSchema } from "@/server/routers/contentstack/schemas/blocks/content"
import { dynamicContentSchema } from "@/server/routers/contentstack/schemas/blocks/dynamicContent"
import { shortcutsSchema } from "@/server/routers/contentstack/schemas/blocks/shortcuts"
import { textColsSchema } from "@/server/routers/contentstack/schemas/blocks/textCols"
import { uspGridSchema } from "@/server/routers/contentstack/schemas/blocks/uspGrid"
export interface CardsGrid extends z.output<typeof cardsGridSchema> { }
export interface Content extends z.output<typeof contentSchema> { }
export interface DynamicContent extends z.output<typeof dynamicContentSchema> { }
export interface Shortcuts extends z.output<typeof shortcutsSchema> { }
export interface CardsGrid extends z.output<typeof cardsGridSchema> {}
export interface Content extends z.output<typeof contentSchema> {}
export interface DynamicContent extends z.output<typeof dynamicContentSchema> {}
export interface Shortcuts extends z.output<typeof shortcutsSchema> {}
export type Shortcut = Shortcuts["shortcuts"]
export interface TextCols extends z.output<typeof textColsSchema> { }
export interface TextCols extends z.output<typeof textColsSchema> {}
export interface UspGrid extends z.output<typeof uspGridSchema> {}
@@ -8,15 +8,15 @@ import {
} from "@/server/routers/contentstack/contentPage/output"
export interface GetContentPageRefsSchema
extends z.input<typeof contentPageRefsSchema> { }
extends z.input<typeof contentPageRefsSchema> {}
export interface ContentPageRefs
extends z.output<typeof contentPageRefsSchema> { }
extends z.output<typeof contentPageRefsSchema> {}
export interface GetContentPageSchema
extends z.input<typeof contentPageSchema> { }
extends z.input<typeof contentPageSchema> {}
export interface ContentPage extends z.output<typeof contentPageSchema> { }
export interface ContentPage extends z.output<typeof contentPageSchema> {}
export type Block = z.output<typeof blocksSchema>