Merge in feat/SW-214-USP-grid-card (pull request #603)
Feat/SW-214 USP grid card
This commit is contained in:
4
types/components/blocks/uspGrid.ts
Normal file
4
types/components/blocks/uspGrid.ts
Normal 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"]
|
||||
@@ -54,6 +54,7 @@ export enum IconName {
|
||||
Search = "Search",
|
||||
Service = "Service",
|
||||
Shopping = "Shopping",
|
||||
Snowflake = "Snowflake",
|
||||
StarFilled = "StarFilled",
|
||||
Train = "Train",
|
||||
Tripadvisor = "Tripadvisor",
|
||||
|
||||
@@ -6,5 +6,6 @@ export namespace BlocksEnums {
|
||||
Shortcuts = "Shortcuts",
|
||||
TextCols = "TextCols",
|
||||
TextContent = "TextContent",
|
||||
UspGrid = "UspGrid",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
10
types/enums/uspGrid.ts
Normal 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])
|
||||
}
|
||||
@@ -5,6 +5,7 @@ export enum EmbedEnum {
|
||||
LoyaltyPage = "LoyaltyPage",
|
||||
AccountPage = "AccountPage",
|
||||
ContentPage = "ContentPage",
|
||||
HotelPage = "HotelPage",
|
||||
}
|
||||
|
||||
export type Embed = keyof typeof EmbedEnum
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user