Merge in feat/SW-214-USP-grid-card (pull request #603)

Feat/SW-214 USP grid card
This commit is contained in:
Pontus Dreij
2024-09-25 17:48:09 +00:00
22 changed files with 457 additions and 57 deletions

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"]

View File

@@ -54,6 +54,7 @@ export enum IconName {
Search = "Search",
Service = "Service",
Shopping = "Shopping",
Snowflake = "Snowflake",
StarFilled = "StarFilled",
Train = "Train",
Tripadvisor = "Tripadvisor",

View File

@@ -6,5 +6,6 @@ export namespace BlocksEnums {
Shortcuts = "Shortcuts",
TextCols = "TextCols",
TextContent = "TextContent",
UspGrid = "UspGrid",
}
}

View File

@@ -6,6 +6,7 @@ export namespace ContentPageEnum {
DynamicContent = "ContentPageBlocksDynamicContent",
Shortcuts = "ContentPageBlocksShortcuts",
TextCols = "ContentPageBlocksTextCols",
UspGrid = "ContentPageBlocksUspGrid",
}
export const enum sidebar {

10
types/enums/uspGrid.ts Normal file
View File

@@ -0,0 +1,10 @@
import { z } from "zod"
import { IconName } from "../components/icon"
export namespace UspGridEnum {
export const enum icons {
Snowflake = IconName.Snowflake,
}
export const uspIcons = z.enum([icons.Snowflake])
}

View File

@@ -5,6 +5,7 @@ export enum EmbedEnum {
LoyaltyPage = "LoyaltyPage",
AccountPage = "AccountPage",
ContentPage = "ContentPage",
HotelPage = "HotelPage",
}
export type Embed = keyof typeof EmbedEnum

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> {}

View File

@@ -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>