feat(WEB-304): remaning UI from design system primitives

This commit is contained in:
Simon Emanuelsson
2024-06-07 10:36:23 +02:00
parent 6737970f54
commit 7c4b8401e9
228 changed files with 3516 additions and 3237 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { NavigationItem } from "@/server/routers/contentstack/config/output"
import { NavigationItem } from "@/server/routers/contentstack/base/output"
export type FooterNavigationProps = {
linkGroups: NavigationItem[]
+7 -4
View File
@@ -1,4 +1,7 @@
export type IconProps = {
height?: number
width?: number
}
import { VariantProps } from "class-variance-authority"
import { iconVariants } from "@/components/Icons/variants"
export interface IconProps
extends Omit<React.SVGAttributes<HTMLOrSVGElement>, "color">,
VariantProps<typeof iconVariants> {}
+1
View File
@@ -17,6 +17,7 @@ export type BlocksProps = {
export type DynamicContentProps = {
dynamicContent: DynamicContent["dynamic_content"]
firstItem: boolean
}
export type DynamicComponentProps = {
+5 -3
View File
@@ -1,14 +1,16 @@
import { ContactFields } from "@/server/routers/contentstack/config/output"
import { ContactFields } from "@/server/routers/contentstack/base/output"
import {
JoinLoyaltyContact,
Sidebar,
} from "@/server/routers/contentstack/loyaltyPage/output"
export type SidebarProps = {
import { LangParams } from "@/types/params"
export type SidebarProps = LangParams & {
blocks: Sidebar[]
}
export type JoinLoyaltyContactProps = {
export type JoinLoyaltyContactProps = LangParams & {
block: JoinLoyaltyContact["join_loyalty_contact"]
}
@@ -1,5 +1,8 @@
export type HeaderProps = {
link?: { href: string; text: string }
link?: {
href: string
text: string
}
subtitle: string | null
title: string | null
topTitle?: boolean
@@ -1,4 +1,5 @@
export type ShortcutsProps = {
firstItem?: boolean
openInNewTab?: boolean
shortcuts: {
url: string