From d58c77493af6ce20dbd38308f4644bfcfb9fd149 Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Wed, 2 Oct 2024 15:36:58 +0200 Subject: [PATCH] feat(SW-350): Update design for booking widget --- app/[lang]/(live)/@bookingwidget/page.tsx | 2 +- app/[lang]/(live)/layout.tsx | 1 + app/[lang]/(live-current)/layout.tsx | 2 +- components/BookingWidget/Client.tsx | 4 +- .../MobileToggleButton/button.module.css | 8 ++- .../BookingWidget/bookingWidget.module.css | 24 +++++++-- components/BookingWidget/index.tsx | 10 +++- components/DatePicker/Screen/Desktop.tsx | 1 + components/DatePicker/date-picker.module.css | 3 +- .../FormContent/Search/search.module.css | 5 ++ .../FormContent/formContent.module.css | 51 ++++++++++++++++--- .../Forms/BookingWidget/FormContent/index.tsx | 36 +++++++++---- .../Forms/BookingWidget/form.module.css | 14 ++++- components/Forms/BookingWidget/index.tsx | 10 ++-- components/Forms/BookingWidget/variants.ts | 15 ++++++ .../Text/Caption/caption.module.css | 4 ++ .../TempDesignSystem/Text/Caption/variants.ts | 1 + types/components/bookingWidget/index.ts | 3 ++ types/components/form/bookingwidget.ts | 1 + 19 files changed, 162 insertions(+), 33 deletions(-) create mode 100644 components/Forms/BookingWidget/variants.ts diff --git a/app/[lang]/(live)/@bookingwidget/page.tsx b/app/[lang]/(live)/@bookingwidget/page.tsx index 13a414cba..b2dd7e1b6 100644 --- a/app/[lang]/(live)/@bookingwidget/page.tsx +++ b/app/[lang]/(live)/@bookingwidget/page.tsx @@ -13,5 +13,5 @@ export default async function BookingWidgetPage() { return null } - return + return } diff --git a/app/[lang]/(live)/layout.tsx b/app/[lang]/(live)/layout.tsx index 3704178c4..fffe0a0b0 100644 --- a/app/[lang]/(live)/layout.tsx +++ b/app/[lang]/(live)/layout.tsx @@ -2,6 +2,7 @@ import "@/app/globals.css" import "@scandic-hotels/design-system/style.css" import Script from "next/script" +import React from "react" import { env } from "@/env/server" import TrpcProvider from "@/lib/trpc/Provider" diff --git a/app/[lang]/(live-current)/layout.tsx b/app/[lang]/(live-current)/layout.tsx index ec3be8b3c..ac6deaf17 100644 --- a/app/[lang]/(live-current)/layout.tsx +++ b/app/[lang]/(live-current)/layout.tsx @@ -65,7 +65,7 @@ export default async function RootLayout({ {header} - + {children}