Merged in refactor/design-system-divider (pull request #2354)
refactor: move divider to design system Approved-by: Arvid Norlin
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import ExpiringPoints from "./ExpiringPoints"
|
import ExpiringPoints from "./ExpiringPoints"
|
||||||
import Points from "./Points"
|
import Points from "./Points"
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import { env } from "@/env/server"
|
import { env } from "@/env/server"
|
||||||
import { getProfile } from "@/lib/trpc/memoizedRequests"
|
import { getProfile } from "@/lib/trpc/memoizedRequests"
|
||||||
|
|
||||||
@@ -6,7 +8,6 @@ import DigitalTeamMemberCardAlert from "@/components/MyPages/DigitalTeamMemberCa
|
|||||||
import SectionContainer from "@/components/Section/Container"
|
import SectionContainer from "@/components/Section/Container"
|
||||||
import SectionHeader from "@/components/Section/Header"
|
import SectionHeader from "@/components/Section/Header"
|
||||||
import SectionLink from "@/components/Section/Link"
|
import SectionLink from "@/components/Section/Link"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import Hero from "./Friend/Hero"
|
import Hero from "./Friend/Hero"
|
||||||
import MembershipNumber from "./Friend/MembershipNumber"
|
import MembershipNumber from "./Friend/MembershipNumber"
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import { getProfile } from "@/lib/trpc/memoizedRequests"
|
import { getProfile } from "@/lib/trpc/memoizedRequests"
|
||||||
|
|
||||||
import SectionContainer from "@/components/Section/Container"
|
import SectionContainer from "@/components/Section/Container"
|
||||||
import SectionHeader from "@/components/Section/Header"
|
import SectionHeader from "@/components/Section/Header"
|
||||||
import SectionLink from "@/components/Section/Link"
|
import SectionLink from "@/components/Section/Link"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import Friend from "../../Overview/Friend"
|
import Friend from "../../Overview/Friend"
|
||||||
import Hero from "../../Overview/Friend/Hero"
|
import Hero from "../../Overview/Friend/Hero"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import HotelLogoIcon from "@scandic-hotels/design-system/Icons/HotelLogoIcon"
|
import HotelLogoIcon from "@scandic-hotels/design-system/Icons/HotelLogoIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import ButtonLink from "@/components/ButtonLink"
|
import ButtonLink from "@/components/ButtonLink"
|
||||||
import Image from "@/components/Image"
|
import Image from "@/components/Image"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { getSingleDecimal } from "@/utils/numberFormatting"
|
import { getSingleDecimal } from "@/utils/numberFormatting"
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ export default async function HotelListingItem({
|
|||||||
<Typography variant="Body/Supporting text (caption)/smRegular">
|
<Typography variant="Body/Supporting text (caption)/smRegular">
|
||||||
<div className={styles.captions}>
|
<div className={styles.captions}>
|
||||||
<span>{hotel.address.streetAddress}</span>
|
<span>{hotel.address.streetAddress}</span>
|
||||||
<Divider variant="vertical" color="Border/Divider/Default" />
|
<Divider variant="vertical" />
|
||||||
<span>
|
<span>
|
||||||
{intl.formatMessage(
|
{intl.formatMessage(
|
||||||
{
|
{
|
||||||
@@ -71,8 +71,7 @@ export default async function HotelListingItem({
|
|||||||
<>
|
<>
|
||||||
<Divider
|
<Divider
|
||||||
className={styles.ctaDivider}
|
className={styles.ctaDivider}
|
||||||
variant="horizontal"
|
color="Border/Divider/Subtle"
|
||||||
color="borderDividerSubtle"
|
|
||||||
/>
|
/>
|
||||||
<ButtonLink
|
<ButtonLink
|
||||||
variant="Primary"
|
variant="Primary"
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ import { Button } from "react-aria-components"
|
|||||||
import { useWatch } from "react-hook-form"
|
import { useWatch } from "react-hook-form"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
|
|
||||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import useLang from "@/hooks/useLang"
|
import useLang from "@/hooks/useLang"
|
||||||
|
|
||||||
import styles from "./button.module.css"
|
import styles from "./button.module.css"
|
||||||
@@ -112,8 +112,8 @@ export default function MobileToggleButton({
|
|||||||
</span>
|
</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
</span>
|
</span>
|
||||||
{/* Divider can't be a div */}
|
{/* Button can't contain HR elements */}
|
||||||
<Divider color="baseSurfaceSubtleNormal" variant="vertical" />
|
<Divider color="Border/Divider/Subtle" variant="vertical" />
|
||||||
<span className={styles.block}>
|
<span className={styles.block}>
|
||||||
<Typography variant={"Body/Supporting text (caption)/smBold"}>
|
<Typography variant={"Body/Supporting text (caption)/smBold"}>
|
||||||
<span className={styles.blockLabel}>{totalNightsMsg}</span>
|
<span className={styles.blockLabel}>{totalNightsMsg}</span>
|
||||||
@@ -185,7 +185,7 @@ export function MobileToggleButtonSkeleton() {
|
|||||||
</Typography>
|
</Typography>
|
||||||
<SkeletonShimmer display={"block"} height="20px" width="11ch" />
|
<SkeletonShimmer display={"block"} height="20px" width="11ch" />
|
||||||
</span>
|
</span>
|
||||||
<Divider color="baseSurfaceSubtleNormal" variant="vertical" />
|
<Divider color="Border/Divider/Subtle" variant="vertical" />
|
||||||
<span className={styles.block}>
|
<span className={styles.block}>
|
||||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||||
<span className={styles.blockLabel}>
|
<span className={styles.blockLabel}>
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import ExperienceListSkeleton from "../../ExperienceList/ExperienceListSkeleton"
|
import ExperienceListSkeleton from "../../ExperienceList/ExperienceListSkeleton"
|
||||||
|
|
||||||
@@ -23,7 +24,7 @@ export default function CityListingItemSkeleton() {
|
|||||||
<SkeletonShimmer height="20px" width="40%" />
|
<SkeletonShimmer height="20px" width="40%" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Divider variant="horizontal" color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
|
|
||||||
<div className={styles.ctaWrapper}>
|
<div className={styles.ctaWrapper}>
|
||||||
<SkeletonShimmer height="45px" width="100px" />
|
<SkeletonShimmer height="45px" width="100px" />
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import ImageGallery from "@/components/ImageGallery"
|
import ImageGallery from "@/components/ImageGallery"
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
import { mapImageVaultImagesToGalleryImages } from "@/utils/imageGallery"
|
import { mapImageVaultImagesToGalleryImages } from "@/utils/imageGallery"
|
||||||
@@ -47,7 +48,7 @@ export default function CityListingItem({ city }: CityListingItemProps) {
|
|||||||
) : null}
|
) : null}
|
||||||
<Body>{city.preamble}</Body>
|
<Body>{city.preamble}</Body>
|
||||||
|
|
||||||
<Divider variant="horizontal" color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
|
|
||||||
<div className={styles.ctaWrapper}>
|
<div className={styles.ctaWrapper}>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { useCallback, useEffect, useRef } from "react"
|
|||||||
import { Button as ButtonRAC } from "react-aria-components"
|
import { Button as ButtonRAC } from "react-aria-components"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import HotelLogoIcon from "@scandic-hotels/design-system/Icons/HotelLogoIcon"
|
import HotelLogoIcon from "@scandic-hotels/design-system/Icons/HotelLogoIcon"
|
||||||
import TripadvisorIcon from "@scandic-hotels/design-system/Icons/TripadvisorIcon"
|
import TripadvisorIcon from "@scandic-hotels/design-system/Icons/TripadvisorIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
@@ -13,7 +14,6 @@ import { useDestinationPageHotelsMapStore } from "@/stores/destination-page-hote
|
|||||||
import ButtonLink from "@/components/ButtonLink"
|
import ButtonLink from "@/components/ButtonLink"
|
||||||
import { FacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
import { FacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
||||||
import ImageGallery from "@/components/ImageGallery"
|
import ImageGallery from "@/components/ImageGallery"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { mapApiImagesToGalleryImages } from "@/utils/imageGallery"
|
import { mapApiImagesToGalleryImages } from "@/utils/imageGallery"
|
||||||
import { getSingleDecimal } from "@/utils/numberFormatting"
|
import { getSingleDecimal } from "@/utils/numberFormatting"
|
||||||
|
|
||||||
@@ -102,11 +102,7 @@ export default function HotelListItem(data: DestinationPagesHotelData) {
|
|||||||
</ButtonRAC>
|
</ButtonRAC>
|
||||||
</Typography>
|
</Typography>
|
||||||
<span>
|
<span>
|
||||||
<Divider
|
<Divider variant="vertical" />
|
||||||
className={styles.divider}
|
|
||||||
variant="vertical"
|
|
||||||
color="Border/Divider/Default"
|
|
||||||
/>
|
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
{intl.formatMessage(
|
{intl.formatMessage(
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import Accordion from "@/components/TempDesignSystem/Accordion"
|
import Accordion from "@/components/TempDesignSystem/Accordion"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import Destination from "./Destination"
|
import Destination from "./Destination"
|
||||||
|
|
||||||
@@ -27,7 +28,7 @@ export function DestinationsList({ destinations }: DestinationsListProps) {
|
|||||||
) : null
|
) : null
|
||||||
)}
|
)}
|
||||||
</Accordion>
|
</Accordion>
|
||||||
<Divider color="subtle" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
<Accordion className={styles.accordion}>
|
<Accordion className={styles.accordion}>
|
||||||
{accordionRight.map((data) =>
|
{accordionRight.map((data) =>
|
||||||
data.numberOfHotels > 0 ? (
|
data.numberOfHotels > 0 ? (
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import styles from "./hotelListingItem.module.css"
|
import styles from "./hotelListingItem.module.css"
|
||||||
|
|
||||||
@@ -31,7 +32,7 @@ export default function HotelListingItemSkeleton() {
|
|||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
<SkeletonShimmer height="40px" width="100px" />
|
<SkeletonShimmer height="40px" width="100px" />
|
||||||
<Divider variant="horizontal" color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
<div className={styles.ctaWrapper}>
|
<div className={styles.ctaWrapper}>
|
||||||
<SkeletonShimmer height="45px" width="150px" />
|
<SkeletonShimmer height="45px" width="150px" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { useParams } from "next/navigation"
|
|||||||
import { useEffect, useState } from "react"
|
import { useEffect, useState } from "react"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import HotelLogoIcon from "@scandic-hotels/design-system/Icons/HotelLogoIcon"
|
import HotelLogoIcon from "@scandic-hotels/design-system/Icons/HotelLogoIcon"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import TripadvisorIcon from "@scandic-hotels/design-system/Icons/TripadvisorIcon"
|
import TripadvisorIcon from "@scandic-hotels/design-system/Icons/TripadvisorIcon"
|
||||||
@@ -15,7 +16,6 @@ import { useDestinationPageHotelsMapStore } from "@/stores/destination-page-hote
|
|||||||
import ButtonLink from "@/components/ButtonLink"
|
import ButtonLink from "@/components/ButtonLink"
|
||||||
import { FacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
import { FacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
||||||
import ImageGallery from "@/components/ImageGallery"
|
import ImageGallery from "@/components/ImageGallery"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { mapApiImagesToGalleryImages } from "@/utils/imageGallery"
|
import { mapApiImagesToGalleryImages } from "@/utils/imageGallery"
|
||||||
import { getSingleDecimal } from "@/utils/numberFormatting"
|
import { getSingleDecimal } from "@/utils/numberFormatting"
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ export default function HotelListingItem(data: DestinationPagesHotelData) {
|
|||||||
{address}
|
{address}
|
||||||
</NextLink>
|
</NextLink>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider variant="vertical" color="beige" />
|
<Divider variant="vertical" />
|
||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
<p>
|
<p>
|
||||||
@@ -143,7 +143,7 @@ export default function HotelListingItem(data: DestinationPagesHotelData) {
|
|||||||
)}
|
)}
|
||||||
{url && (
|
{url && (
|
||||||
<>
|
<>
|
||||||
<Divider variant="horizontal" color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
|
|
||||||
<div className={styles.ctaWrapper}>
|
<div className={styles.ctaWrapper}>
|
||||||
<ButtonLink
|
<ButtonLink
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import SidePeek from "@/components/TempDesignSystem/SidePeek"
|
import SidePeek from "@/components/TempDesignSystem/SidePeek"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ export default async function AboutTheHotelSidePeek({
|
|||||||
socials={socials}
|
socials={socials}
|
||||||
ecoLabels={ecoLabels}
|
ecoLabels={ecoLabels}
|
||||||
/>
|
/>
|
||||||
<Divider color="baseSurfaceSubtleHover" />
|
<Divider />
|
||||||
|
|
||||||
{descriptions.descriptions ? (
|
{descriptions.descriptions ? (
|
||||||
<Typography variant="Body/Lead text">
|
<Typography variant="Body/Lead text">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
import HeroHeader from "../HeroHeader"
|
import HeroHeader from "../HeroHeader"
|
||||||
@@ -48,7 +48,7 @@ export default async function AccessibilitySubpage({
|
|||||||
</h1>
|
</h1>
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Divider color="baseSurfaceSubtleHover" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
|
|
||||||
<main className={styles.mainContent}>
|
<main className={styles.mainContent}>
|
||||||
{elevatorPitch ? (
|
{elevatorPitch ? (
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { safeTry } from "@scandic-hotels/common/utils/safeTry"
|
import { safeTry } from "@scandic-hotels/common/utils/safeTry"
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { getMeetingRooms } from "@/lib/trpc/memoizedRequests"
|
import { getMeetingRooms } from "@/lib/trpc/memoizedRequests"
|
||||||
|
|
||||||
import { meetingPackageDestinationByHotelId } from "@/components/MeetingPackageWidget/utils"
|
import { meetingPackageDestinationByHotelId } from "@/components/MeetingPackageWidget/utils"
|
||||||
import StickyMeetingPackageWidget from "@/components/StickyMeetingPackageWidget"
|
import StickyMeetingPackageWidget from "@/components/StickyMeetingPackageWidget"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { getLang } from "@/i18n/serverContext"
|
import { getLang } from "@/i18n/serverContext"
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ export default async function MeetingsSubpage({
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
</aside>
|
</aside>
|
||||||
<Divider color="baseSurfaceSubtleHover" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
<main className={styles.mainContent}>
|
<main className={styles.mainContent}>
|
||||||
{elevatorPitch ? (
|
{elevatorPitch ? (
|
||||||
<div className={styles.intro}>
|
<div className={styles.intro}>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import ParkingInformation from "@/components/ParkingInformation"
|
import ParkingInformation from "@/components/ParkingInformation"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
import HeroHeader from "../HeroHeader"
|
import HeroHeader from "../HeroHeader"
|
||||||
@@ -44,7 +44,7 @@ export default async function ParkingSubpage({
|
|||||||
contactInformation={hotel.contactInformation}
|
contactInformation={hotel.contactInformation}
|
||||||
/>
|
/>
|
||||||
</aside>
|
</aside>
|
||||||
<Divider color="baseSurfaceSubtleHover" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
<main className={styles.mainContent}>
|
<main className={styles.mainContent}>
|
||||||
{elevatorPitch ? (
|
{elevatorPitch ? (
|
||||||
<div className={styles.intro}>
|
<div className={styles.intro}>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import ButtonLink from "@/components/ButtonLink"
|
import ButtonLink from "@/components/ButtonLink"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
import HeroHeader from "../HeroHeader"
|
import HeroHeader from "../HeroHeader"
|
||||||
@@ -41,7 +41,7 @@ export default async function RestaurantSubpage({
|
|||||||
hotelAddress={hotelAddress}
|
hotelAddress={hotelAddress}
|
||||||
/>
|
/>
|
||||||
</aside>
|
</aside>
|
||||||
<Divider color="baseSurfaceSubtleHover" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
<main className={styles.mainContent}>
|
<main className={styles.mainContent}>
|
||||||
{elevatorPitch ? (
|
{elevatorPitch ? (
|
||||||
<div className={styles.intro}>
|
<div className={styles.intro}>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
import HeroHeader from "../HeroHeader"
|
import HeroHeader from "../HeroHeader"
|
||||||
@@ -46,7 +46,7 @@ export default async function WellnessSubpage({
|
|||||||
healthFacilities={hotel.healthFacilities}
|
healthFacilities={hotel.healthFacilities}
|
||||||
/>
|
/>
|
||||||
</aside>
|
</aside>
|
||||||
<Divider color="baseSurfaceSubtleHover" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
<main className={styles.mainContent}>
|
<main className={styles.mainContent}>
|
||||||
{elevatorPitch ? (
|
{elevatorPitch ? (
|
||||||
<div className={styles.intro}>
|
<div className={styles.intro}>
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import { logout } from "@/constants/routes/handleAuth"
|
import { logout } from "@/constants/routes/handleAuth"
|
||||||
import { trpc } from "@/lib/trpc/client"
|
import { trpc } from "@/lib/trpc/client"
|
||||||
import useDropdownStore from "@/stores/main-menu"
|
import useDropdownStore from "@/stores/main-menu"
|
||||||
|
|
||||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||||
import useLang from "@/hooks/useLang"
|
import useLang from "@/hooks/useLang"
|
||||||
@@ -50,7 +51,7 @@ function List({ children }: { children: ReactNode }) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={styles.dividerWrapper}>
|
<div className={styles.dividerWrapper}>
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
</div>
|
</div>
|
||||||
<ul className={styles.dropdownWrapper}>
|
<ul className={styles.dropdownWrapper}>
|
||||||
<ul className={styles.dropdownLinks}>{children}</ul>
|
<ul className={styles.dropdownLinks}>{children}</ul>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { useState } from "react"
|
|||||||
import { DayPicker } from "react-day-picker"
|
import { DayPicker } from "react-day-picker"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
@@ -11,7 +12,6 @@ import { Lang } from "@/constants/languages"
|
|||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
|
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import useLang from "@/hooks/useLang"
|
import useLang from "@/hooks/useLang"
|
||||||
|
|
||||||
@@ -100,7 +100,10 @@ export default function DatePickerRangeDesktop({
|
|||||||
Footer(props) {
|
Footer(props) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Divider className={styles.divider} color="primaryLightSubtle" />
|
<Divider
|
||||||
|
className={styles.divider}
|
||||||
|
color="Border/Divider/Subtle"
|
||||||
|
/>
|
||||||
<footer className={props.className}>
|
<footer className={props.className}>
|
||||||
<Button
|
<Button
|
||||||
intent="tertiary"
|
intent="tertiary"
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ import { useState } from "react"
|
|||||||
import { DayPicker } from "react-day-picker"
|
import { DayPicker } from "react-day-picker"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import { Lang } from "@/constants/languages"
|
import { Lang } from "@/constants/languages"
|
||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
|
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
import useLang from "@/hooks/useLang"
|
import useLang from "@/hooks/useLang"
|
||||||
@@ -101,7 +101,10 @@ export default function DatePickerSingleDesktop({
|
|||||||
Footer(props) {
|
Footer(props) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Divider className={styles.divider} color="primaryLightSubtle" />
|
<Divider
|
||||||
|
className={styles.divider}
|
||||||
|
color="Border/Divider/Subtle"
|
||||||
|
/>
|
||||||
<footer className={props.className}>
|
<footer className={props.className}>
|
||||||
<Button
|
<Button
|
||||||
intent="tertiary"
|
intent="tertiary"
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import Image from "@/components/Image"
|
import Image from "@/components/Image"
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import { insertResponseToImageVaultAsset } from "@/utils/imageVault"
|
import { insertResponseToImageVaultAsset } from "@/utils/imageVault"
|
||||||
import { removeMultipleSlashes } from "@/utils/url"
|
import { removeMultipleSlashes } from "@/utils/url"
|
||||||
|
|
||||||
import ImageContainer from "../ImageContainer"
|
import ImageContainer from "../ImageContainer"
|
||||||
import Divider from "../TempDesignSystem/Divider"
|
|
||||||
import Table from "../TempDesignSystem/Table"
|
import Table from "../TempDesignSystem/Table"
|
||||||
import BiroScript from "../TempDesignSystem/Text/BiroScript"
|
import BiroScript from "../TempDesignSystem/Text/BiroScript"
|
||||||
import Body from "../TempDesignSystem/Text/Body"
|
import Body from "../TempDesignSystem/Text/Body"
|
||||||
@@ -204,7 +205,7 @@ export const renderOptions: RenderOptions = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
[RTETypeEnum.hr]: () => {
|
[RTETypeEnum.hr]: () => {
|
||||||
return <Divider />
|
return <Divider color="burgundy" />
|
||||||
},
|
},
|
||||||
|
|
||||||
[RTETypeEnum.li]: (
|
[RTETypeEnum.li]: (
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ import {
|
|||||||
} from "react-aria-components"
|
} from "react-aria-components"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import { useDestinationDataStore } from "@/stores/destination-data"
|
import { useDestinationDataStore } from "@/stores/destination-data"
|
||||||
|
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
|
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
|
|
||||||
@@ -165,7 +165,7 @@ export default function DestinationFilterAndSort({
|
|||||||
</header>
|
</header>
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
<Sort sortItems={sortItems} />
|
<Sort sortItems={sortItems} />
|
||||||
<Divider color="subtle" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
<Filter filters={filters} />
|
<Filter filters={filters} />
|
||||||
</div>
|
</div>
|
||||||
{pendingCount === 0 && (
|
{pendingCount === 0 && (
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import { useFormContext } from "react-hook-form"
|
|||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
import { useDebounceValue } from "usehooks-ts"
|
import { useDebounceValue } from "usehooks-ts"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import { trpc } from "@/lib/trpc/client"
|
import { trpc } from "@/lib/trpc/client"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
|
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
|
||||||
@@ -166,7 +166,7 @@ export default function SearchList({
|
|||||||
</Body>
|
</Body>
|
||||||
{typeFilteredSearchHistory && typeFilteredSearchHistory.length > 0 && (
|
{typeFilteredSearchHistory && typeFilteredSearchHistory.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<Divider className={styles.noResultsDivider} color="beige" />
|
<Divider className={styles.noResultsDivider} />
|
||||||
<Footnote
|
<Footnote
|
||||||
className={styles.text}
|
className={styles.text}
|
||||||
color="uiTextPlaceholder"
|
color="uiTextPlaceholder"
|
||||||
@@ -182,7 +182,7 @@ export default function SearchList({
|
|||||||
locations={typeFilteredSearchHistory}
|
locations={typeFilteredSearchHistory}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Divider className={styles.divider} color="beige" />
|
<Divider className={styles.divider} />
|
||||||
<ClearSearchButton
|
<ClearSearchButton
|
||||||
getItemProps={getItemProps}
|
getItemProps={getItemProps}
|
||||||
handleClearSearchHistory={handleClearSearchHistory}
|
handleClearSearchHistory={handleClearSearchHistory}
|
||||||
@@ -210,7 +210,7 @@ export default function SearchList({
|
|||||||
highlightedIndex={highlightedIndex}
|
highlightedIndex={highlightedIndex}
|
||||||
locations={typeFilteredSearchHistory}
|
locations={typeFilteredSearchHistory}
|
||||||
/>
|
/>
|
||||||
<Divider className={styles.divider} color="beige" />
|
<Divider className={styles.divider} />
|
||||||
<ClearSearchButton
|
<ClearSearchButton
|
||||||
getItemProps={getItemProps}
|
getItemProps={getItemProps}
|
||||||
handleClearSearchHistory={handleClearSearchHistory}
|
handleClearSearchHistory={handleClearSearchHistory}
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Select } from "@scandic-hotels/design-system/Select"
|
import { Select } from "@scandic-hotels/design-system/Select"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { getLocalizedLanguageOptions } from "@/constants/languages"
|
import { getLocalizedLanguageOptions } from "@/constants/languages"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import CountrySelect from "@/components/TempDesignSystem/Form/Country"
|
import CountrySelect from "@/components/TempDesignSystem/Form/Country"
|
||||||
import DateSelect from "@/components/TempDesignSystem/Form/Date"
|
import DateSelect from "@/components/TempDesignSystem/Form/Date"
|
||||||
import Input from "@/components/TempDesignSystem/Form/Input"
|
import Input from "@/components/TempDesignSystem/Form/Input"
|
||||||
@@ -91,7 +91,7 @@ export default function FormContent() {
|
|||||||
name="language"
|
name="language"
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
<Divider className={styles.divider} color="subtle" />
|
<Divider className={styles.divider} />
|
||||||
<section className={styles.password}>
|
<section className={styles.password}>
|
||||||
<header>
|
<header>
|
||||||
<Typography variant="Body/Paragraph/mdBold">
|
<Typography variant="Body/Paragraph/mdBold">
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
|
|
||||||
import AdultSelector from "../AdultSelector"
|
import AdultSelector from "../AdultSelector"
|
||||||
@@ -72,7 +72,7 @@ export function GuestsRoom({
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</section>
|
</section>
|
||||||
<Divider color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
import FocusLock from "react-focus-lock"
|
import FocusLock from "react-focus-lock"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import { logout } from "@/constants/routes/handleAuth"
|
import { logout } from "@/constants/routes/handleAuth"
|
||||||
import { trpc } from "@/lib/trpc/client"
|
import { trpc } from "@/lib/trpc/client"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
@@ -71,11 +71,11 @@ export default function MyPagesMenuContent({
|
|||||||
|
|
||||||
<ul className={styles.groups}>
|
<ul className={styles.groups}>
|
||||||
<li>
|
<li>
|
||||||
<Divider color="subtle" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
|
|
||||||
<PrimaryLinks toggleOpenStateFn={toggleOpenStateFn} />
|
<PrimaryLinks toggleOpenStateFn={toggleOpenStateFn} />
|
||||||
|
|
||||||
<Divider color="subtle" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
<SecondaryLinks toggleOpenStateFn={toggleOpenStateFn} />
|
<SecondaryLinks toggleOpenStateFn={toggleOpenStateFn} />
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { useBookingConfirmationStore } from "@/stores/booking-confirmation"
|
import { useBookingConfirmationStore } from "@/stores/booking-confirmation"
|
||||||
|
|
||||||
import BookingCodeChip from "@/components/BookingCodeChip"
|
import BookingCodeChip from "@/components/BookingCodeChip"
|
||||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import PriceDetails from "../../PriceDetails"
|
import PriceDetails from "../../PriceDetails"
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ export default function TotalPrice() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Divider color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
<div className={styles.price}>
|
<div className={styles.price}>
|
||||||
<div className={styles.entry}>
|
<div className={styles.entry}>
|
||||||
<Typography variant="Body/Paragraph/mdBold">
|
<Typography variant="Body/Paragraph/mdBold">
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { notFound } from "next/navigation"
|
import { notFound } from "next/navigation"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import { getBookingConfirmation } from "@/lib/trpc/memoizedRequests"
|
import { getBookingConfirmation } from "@/lib/trpc/memoizedRequests"
|
||||||
|
|
||||||
import HotelDetails from "@/components/HotelReservation/BookingConfirmation/HotelDetails"
|
import HotelDetails from "@/components/HotelReservation/BookingConfirmation/HotelDetails"
|
||||||
@@ -9,7 +11,6 @@ import Receipt from "@/components/HotelReservation/BookingConfirmation/Receipt"
|
|||||||
import Rooms from "@/components/HotelReservation/BookingConfirmation/Rooms"
|
import Rooms from "@/components/HotelReservation/BookingConfirmation/Rooms"
|
||||||
import SidePanel from "@/components/HotelReservation/SidePanel"
|
import SidePanel from "@/components/HotelReservation/SidePanel"
|
||||||
import Alert from "@/components/TempDesignSystem/Alert"
|
import Alert from "@/components/TempDesignSystem/Alert"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import BookingConfirmationProvider from "@/providers/BookingConfirmationProvider"
|
import BookingConfirmationProvider from "@/providers/BookingConfirmationProvider"
|
||||||
|
|
||||||
@@ -74,7 +75,7 @@ export default async function BookingConfirmation({
|
|||||||
mainRoom={room}
|
mainRoom={room}
|
||||||
/>
|
/>
|
||||||
<PaymentDetails />
|
<PaymentDetails />
|
||||||
<Divider color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
<HotelDetails hotel={hotel} />
|
<HotelDetails hotel={hotel} />
|
||||||
{hotel.specialAlerts.map((alert) => (
|
{hotel.specialAlerts.map((alert) => (
|
||||||
<div key={alert.id}>
|
<div key={alert.id}>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { useFormContext } from "react-hook-form"
|
|||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
import { Button } from "@scandic-hotels/design-system/Button"
|
import { Button } from "@scandic-hotels/design-system/Button"
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
@@ -13,7 +14,6 @@ import { PaymentMethodEnum } from "@/constants/booking"
|
|||||||
import MySavedCards from "@/components/HotelReservation/MySavedCards"
|
import MySavedCards from "@/components/HotelReservation/MySavedCards"
|
||||||
import PaymentOption from "@/components/HotelReservation/PaymentOption"
|
import PaymentOption from "@/components/HotelReservation/PaymentOption"
|
||||||
import Modal from "@/components/Modal"
|
import Modal from "@/components/Modal"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Checkbox from "@/components/TempDesignSystem/Form/Checkbox"
|
import Checkbox from "@/components/TempDesignSystem/Form/Checkbox"
|
||||||
|
|
||||||
import PaymentOptionsGroup from "../Payment/PaymentOptionsGroup"
|
import PaymentOptionsGroup from "../Payment/PaymentOptionsGroup"
|
||||||
@@ -102,7 +102,7 @@ export default function ConfirmBooking({
|
|||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
<Typography variant="Body/Supporting text (caption)/smRegular">
|
<Typography variant="Body/Supporting text (caption)/smRegular">
|
||||||
<p>
|
<p>
|
||||||
{intl.formatMessage({
|
{intl.formatMessage({
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import {
|
|||||||
} from "react-aria-components"
|
} from "react-aria-components"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
@@ -168,7 +168,7 @@ export default function PriceChangeSummary({
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<Divider color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { useIntl } from "react-intl"
|
|||||||
import { useMediaQuery } from "usehooks-ts"
|
import { useMediaQuery } from "usehooks-ts"
|
||||||
|
|
||||||
import { Button } from "@scandic-hotels/design-system/Button"
|
import { Button } from "@scandic-hotels/design-system/Button"
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
@@ -13,7 +14,6 @@ import BookingCodeChip from "@/components/BookingCodeChip"
|
|||||||
import PriceDetailsModal from "@/components/HotelReservation/PriceDetailsModal"
|
import PriceDetailsModal from "@/components/HotelReservation/PriceDetailsModal"
|
||||||
import SignupPromoDesktop from "@/components/HotelReservation/SignupPromo/Desktop"
|
import SignupPromoDesktop from "@/components/HotelReservation/SignupPromo/Desktop"
|
||||||
import Modal from "@/components/Modal"
|
import Modal from "@/components/Modal"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
@@ -126,7 +126,7 @@ export default function SummaryUI({
|
|||||||
color="CurrentColor"
|
color="CurrentColor"
|
||||||
/>
|
/>
|
||||||
</header>
|
</header>
|
||||||
<Divider color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
{rooms.map(({ room }, idx) => {
|
{rooms.map(({ room }, idx) => {
|
||||||
const roomNumber = idx + 1
|
const roomNumber = idx + 1
|
||||||
const adults = room.adults
|
const adults = room.adults
|
||||||
@@ -353,7 +353,7 @@ export default function SummaryUI({
|
|||||||
nights={nights}
|
nights={nights}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Divider color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
@@ -422,7 +422,10 @@ export default function SummaryUI({
|
|||||||
isBreakfastIncluded={isAllBreakfastIncluded}
|
isBreakfastIncluded={isAllBreakfastIncluded}
|
||||||
alignCenter
|
alignCenter
|
||||||
/>
|
/>
|
||||||
<Divider className={styles.bottomDivider} color="primaryLightSubtle" />
|
<Divider
|
||||||
|
className={styles.bottomDivider}
|
||||||
|
color="Border/Divider/Subtle"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{showSignupPromo && roomOneMemberPrice && !isMember ? (
|
{showSignupPromo && roomOneMemberPrice && !isMember ? (
|
||||||
<SignupPromoDesktop
|
<SignupPromoDesktop
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { cx } from "class-variance-authority"
|
import { cx } from "class-variance-authority"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
@@ -103,7 +104,7 @@ export default function HotelPriceCard({
|
|||||||
// Handle undefined scenarios
|
// Handle undefined scenarios
|
||||||
productTypePrices.localPrice.pricePerNight && (
|
productTypePrices.localPrice.pricePerNight && (
|
||||||
<>
|
<>
|
||||||
<Divider color="subtle" className={styles.divider} />
|
<Divider className={styles.divider} />
|
||||||
<div className={styles.priceRow}>
|
<div className={styles.priceRow}>
|
||||||
<dt>
|
<dt>
|
||||||
<Caption color="uiTextMediumContrast">
|
<Caption color="uiTextMediumContrast">
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import {
|
|||||||
import { memo } from "react"
|
import { memo } from "react"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import HotelLogoIcon from "@scandic-hotels/design-system/Icons/HotelLogoIcon"
|
import HotelLogoIcon from "@scandic-hotels/design-system/Icons/HotelLogoIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
@@ -19,7 +20,6 @@ import { useHotelsMapStore } from "@/stores/hotels-map"
|
|||||||
import BookingCodeChip from "@/components/BookingCodeChip"
|
import BookingCodeChip from "@/components/BookingCodeChip"
|
||||||
import { FacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
import { FacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
||||||
import ImageGallery from "@/components/ImageGallery"
|
import ImageGallery from "@/components/ImageGallery"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import { Tooltip } from "@/components/TempDesignSystem/Tooltip"
|
import { Tooltip } from "@/components/TempDesignSystem/Tooltip"
|
||||||
@@ -137,7 +137,7 @@ function HotelCard({
|
|||||||
</address>
|
</address>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<Divider variant="vertical" color="subtle" />
|
<Divider variant="vertical" />
|
||||||
</div>
|
</div>
|
||||||
<Typography variant="Body/Supporting text (caption)/smRegular">
|
<Typography variant="Body/Supporting text (caption)/smRegular">
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Fragment } from "react"
|
import { Fragment } from "react"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { formatPrice } from "@/utils/numberFormatting"
|
import { formatPrice } from "@/utils/numberFormatting"
|
||||||
|
|
||||||
import PriceRow from "./PriceRow"
|
import PriceRow from "./PriceRow"
|
||||||
@@ -42,7 +42,7 @@ export default function PriceSummary({
|
|||||||
})}
|
})}
|
||||||
</h2>
|
</h2>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
|
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
<Fragment key={item.title}>
|
<Fragment key={item.title}>
|
||||||
@@ -68,7 +68,7 @@ export default function PriceSummary({
|
|||||||
})}`}
|
})}`}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { useWatch } from "react-hook-form"
|
import { useWatch } from "react-hook-form"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -9,7 +10,6 @@ import {
|
|||||||
useAddAncillaryStore,
|
useAddAncillaryStore,
|
||||||
} from "@/stores/my-stay/add-ancillary-flow"
|
} from "@/stores/my-stay/add-ancillary-flow"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { formatPrice } from "@/utils/numberFormatting"
|
import { formatPrice } from "@/utils/numberFormatting"
|
||||||
|
|
||||||
import PriceSummary from "./PriceSummary"
|
import PriceSummary from "./PriceSummary"
|
||||||
@@ -210,7 +210,7 @@ export default function PriceDetails({
|
|||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider variant="vertical" color="subtle" />
|
<Divider variant="vertical" />
|
||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
{hasTotalPrice && (
|
{hasTotalPrice && (
|
||||||
@@ -224,13 +224,11 @@ export default function PriceDetails({
|
|||||||
</p>
|
</p>
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
{hasTotalPoints && hasTotalPrice && (
|
{hasTotalPoints && hasTotalPrice && <Divider variant="vertical" />}
|
||||||
<Divider variant="vertical" color="subtle" />
|
|
||||||
)}
|
|
||||||
{hasTotalPoints && (
|
{hasTotalPoints && (
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<Divider variant="vertical" color="subtle" />
|
<Divider variant="vertical" />
|
||||||
</div>
|
</div>
|
||||||
<Typography variant="Body/Paragraph/mdBold">
|
<Typography variant="Body/Paragraph/mdBold">
|
||||||
<p>
|
<p>
|
||||||
@@ -248,7 +246,7 @@ export default function PriceDetails({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
{isPriceDetailsOpen && currentStep === AncillaryStepEnum.confirmation && (
|
{isPriceDetailsOpen && currentStep === AncillaryStepEnum.confirmation && (
|
||||||
<PriceSummary
|
<PriceSummary
|
||||||
totalPrice={totalPrice}
|
totalPrice={totalPrice}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { useEffect, useState } from "react"
|
|||||||
import { FormProvider, useForm } from "react-hook-form"
|
import { FormProvider, useForm } from "react-hook-form"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { PaymentMethodEnum } from "@/constants/booking"
|
import { PaymentMethodEnum } from "@/constants/booking"
|
||||||
@@ -28,7 +29,6 @@ import {
|
|||||||
} from "@/components/HotelReservation/MyStay/utils/ancillaries"
|
} from "@/components/HotelReservation/MyStay/utils/ancillaries"
|
||||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||||
import Modal from "@/components/Modal"
|
import Modal from "@/components/Modal"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { toast } from "@/components/TempDesignSystem/Toasts"
|
import { toast } from "@/components/TempDesignSystem/Toasts"
|
||||||
import { useGuaranteeBooking } from "@/hooks/booking/useGuaranteeBooking"
|
import { useGuaranteeBooking } from "@/hooks/booking/useGuaranteeBooking"
|
||||||
import useLang from "@/hooks/useLang"
|
import useLang from "@/hooks/useLang"
|
||||||
@@ -385,7 +385,7 @@ export default function AddAncillaryFlowModal({
|
|||||||
</Typography>
|
</Typography>
|
||||||
{selectedAncillary.points && (
|
{selectedAncillary.points && (
|
||||||
<div className={styles.pointsDivider}>
|
<div className={styles.pointsDivider}>
|
||||||
<Divider variant="vertical" color="subtle" />
|
<Divider variant="vertical" />
|
||||||
<Typography variant="Body/Paragraph/mdBold">
|
<Typography variant="Body/Paragraph/mdBold">
|
||||||
<p>
|
<p>
|
||||||
{intl.formatMessage(
|
{intl.formatMessage(
|
||||||
@@ -471,7 +471,7 @@ function BreakfastPriceList() {
|
|||||||
{breakfastData.nrOfPayingChildren > 0 && (
|
{breakfastData.nrOfPayingChildren > 0 && (
|
||||||
<>
|
<>
|
||||||
<div className={styles.divider}>
|
<div className={styles.divider}>
|
||||||
<Divider variant="vertical" color="baseSurfaceSubtleNormal" />
|
<Divider variant="vertical" color="Border/Divider/Subtle" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Typography variant="Body/Paragraph/mdBold">
|
<Typography variant="Body/Paragraph/mdBold">
|
||||||
@@ -492,7 +492,7 @@ function BreakfastPriceList() {
|
|||||||
{breakfastData.nrOfFreeChildren > 0 && (
|
{breakfastData.nrOfFreeChildren > 0 && (
|
||||||
<>
|
<>
|
||||||
<div className={styles.divider}>
|
<div className={styles.divider}>
|
||||||
<Divider variant="vertical" color="baseSurfaceSubtleNormal" />
|
<Divider variant="vertical" color="Border/Divider/Subtle" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Typography variant="Body/Paragraph/mdBold">
|
<Typography variant="Body/Paragraph/mdBold">
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { Fragment } from "react"
|
import { Fragment } from "react"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import Accordion from "@/components/TempDesignSystem/Accordion"
|
import Accordion from "@/components/TempDesignSystem/Accordion"
|
||||||
import AccordionItem from "@/components/TempDesignSystem/Accordion/AccordionItem"
|
import AccordionItem from "@/components/TempDesignSystem/Accordion/AccordionItem"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
import { formatPrice } from "@/utils/numberFormatting"
|
import { formatPrice } from "@/utils/numberFormatting"
|
||||||
@@ -174,7 +174,7 @@ export function AddedAncillaries({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Divider color="baseSurfaceSubtleHover" />
|
<Divider />
|
||||||
|
|
||||||
<div className={styles.footer}>
|
<div className={styles.footer}>
|
||||||
<div className={styles.comment}>
|
<div className={styles.comment}>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
import styles from "./specification.module.css"
|
import styles from "./specification.module.css"
|
||||||
@@ -146,7 +146,7 @@ export default async function Specification({
|
|||||||
{/****** Ancillaries ********/}
|
{/****** Ancillaries ********/}
|
||||||
{booking.ancillaries.map((ancillary) => (
|
{booking.ancillaries.map((ancillary) => (
|
||||||
<>
|
<>
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
<div>
|
<div>
|
||||||
<div className={styles.quantifyingHeader}>
|
<div className={styles.quantifyingHeader}>
|
||||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||||
@@ -197,7 +197,7 @@ export default async function Specification({
|
|||||||
{/****** Breakfast ********/}
|
{/****** Breakfast ********/}
|
||||||
{displayBreakfastPrice && (
|
{displayBreakfastPrice && (
|
||||||
<>
|
<>
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
<div>
|
<div>
|
||||||
<div className={styles.quantifyingHeader}>
|
<div className={styles.quantifyingHeader}>
|
||||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
|
|
||||||
import styles from "./total.module.css"
|
import styles from "./total.module.css"
|
||||||
@@ -48,7 +48,7 @@ export default async function Total({ booking, currency }: TotalProps) {
|
|||||||
</div>
|
</div>
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
<dl className={styles.dl}>
|
<dl className={styles.dl}>
|
||||||
<Typography>
|
<Typography>
|
||||||
<dt>
|
<dt>
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
"use client"
|
"use client"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
import { trpc } from "@/lib/trpc/client"
|
import { trpc } from "@/lib/trpc/client"
|
||||||
import { useMyStayStore } from "@/stores/my-stay"
|
import { useMyStayStore } from "@/stores/my-stay"
|
||||||
|
|
||||||
import Modal from "@/components/HotelReservation/MyStay/Modal"
|
import Modal from "@/components/HotelReservation/MyStay/Modal"
|
||||||
import PriceContainer from "@/components/HotelReservation/MyStay/ReferenceCard/PriceContainer"
|
import PriceContainer from "@/components/HotelReservation/MyStay/ReferenceCard/PriceContainer"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { toast } from "@/components/TempDesignSystem/Toasts"
|
import { toast } from "@/components/TempDesignSystem/Toasts"
|
||||||
import useLang from "@/hooks/useLang"
|
import useLang from "@/hooks/useLang"
|
||||||
|
|
||||||
@@ -148,7 +149,7 @@ export default function Confirmation({
|
|||||||
striked
|
striked
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Divider color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
|
|
||||||
<PriceAndDate
|
<PriceAndDate
|
||||||
checkInDate={newCheckIn}
|
checkInDate={newCheckIn}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { zodResolver } from "@hookform/resolvers/zod"
|
|||||||
import { FormProvider, useForm } from "react-hook-form"
|
import { FormProvider, useForm } from "react-hook-form"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { PaymentMethodEnum } from "@/constants/booking"
|
import { PaymentMethodEnum } from "@/constants/booking"
|
||||||
@@ -16,7 +17,6 @@ import PaymentOptionsGroup from "@/components/HotelReservation/EnterDetails/Paym
|
|||||||
import MySavedCards from "@/components/HotelReservation/MySavedCards"
|
import MySavedCards from "@/components/HotelReservation/MySavedCards"
|
||||||
import PaymentOption from "@/components/HotelReservation/PaymentOption"
|
import PaymentOption from "@/components/HotelReservation/PaymentOption"
|
||||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Checkbox from "@/components/TempDesignSystem/Form/Checkbox"
|
import Checkbox from "@/components/TempDesignSystem/Form/Checkbox"
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import { toast } from "@/components/TempDesignSystem/Toasts"
|
import { toast } from "@/components/TempDesignSystem/Toasts"
|
||||||
@@ -182,7 +182,7 @@ export default function Form() {
|
|||||||
</span>
|
</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
<Divider variant="vertical" color="subtle" />
|
<Divider variant="vertical" />
|
||||||
<Typography variant="Title/Subtitle/md">
|
<Typography variant="Title/Subtitle/md">
|
||||||
<span className={styles.baseTextHighContrast}>
|
<span className={styles.baseTextHighContrast}>
|
||||||
{formatPrice(intl, 0, currencyCode)}
|
{formatPrice(intl, 0, currencyCode)}
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
"use client"
|
"use client"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { useMyStayStore } from "@/stores/my-stay"
|
import { useMyStayStore } from "@/stores/my-stay"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import styles from "./reference.module.css"
|
import styles from "./reference.module.css"
|
||||||
|
|
||||||
export default function Reference() {
|
export default function Reference() {
|
||||||
@@ -43,7 +42,7 @@ export default function Reference() {
|
|||||||
</p>
|
</p>
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
"use client"
|
"use client"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { useGuaranteePaymentFailedToast } from "@/hooks/booking/useGuaranteePaymentFailedToast"
|
import { useGuaranteePaymentFailedToast } from "@/hooks/booking/useGuaranteePaymentFailedToast"
|
||||||
|
|
||||||
import TotalPrice from "../Rooms/TotalPrice"
|
import TotalPrice from "../Rooms/TotalPrice"
|
||||||
@@ -29,7 +29,7 @@ export function ReferenceCard() {
|
|||||||
<Room />
|
<Room />
|
||||||
<Cancellations />
|
<Cancellations />
|
||||||
<GuaranteeInfo />
|
<GuaranteeInfo />
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
|
|
||||||
<div className={styles.row}>
|
<div className={styles.row}>
|
||||||
<Typography variant="Body/Lead text">
|
<Typography variant="Body/Lead text">
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
"use client"
|
"use client"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { IconButton } from "@scandic-hotels/design-system/IconButton"
|
import { IconButton } from "@scandic-hotels/design-system/IconButton"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
@@ -11,7 +12,6 @@ import { dt } from "@/lib/dt"
|
|||||||
import { IconForFeatureCode } from "@/components/HotelReservation/utils"
|
import { IconForFeatureCode } from "@/components/HotelReservation/utils"
|
||||||
import Image from "@/components/Image"
|
import Image from "@/components/Image"
|
||||||
import Modal from "@/components/Modal"
|
import Modal from "@/components/Modal"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import IconChip from "@/components/TempDesignSystem/IconChip"
|
import IconChip from "@/components/TempDesignSystem/IconChip"
|
||||||
import useRateTitles from "@/hooks/booking/useRateTitles"
|
import useRateTitles from "@/hooks/booking/useRateTitles"
|
||||||
import useLang from "@/hooks/useLang"
|
import useLang from "@/hooks/useLang"
|
||||||
@@ -315,7 +315,7 @@ export default function Room({ booking, roomNr, user }: RoomProps) {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
<div className={styles.row}>
|
<div className={styles.row}>
|
||||||
<Typography variant="Body/Lead text">
|
<Typography variant="Body/Lead text">
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ import {
|
|||||||
} from "react-aria-components"
|
} from "react-aria-components"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import { useHotelFilterStore } from "@/stores/hotel-filters"
|
import { useHotelFilterStore } from "@/stores/hotel-filters"
|
||||||
|
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Select from "@/components/TempDesignSystem/Select"
|
import Select from "@/components/TempDesignSystem/Select"
|
||||||
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
|
import Footnote from "@/components/TempDesignSystem/Text/Footnote"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
@@ -181,7 +181,7 @@ export default function FilterAndSortModal({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.divider}>
|
<div className={styles.divider}>
|
||||||
<Divider color="subtle" />
|
<Divider />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.filters}>
|
<div className={styles.filters}>
|
||||||
<FilterContent
|
<FilterContent
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { FacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
import { FacilityToIcon } from "@/components/ContentType/HotelPage/data"
|
||||||
import ImageGallery from "@/components/ImageGallery"
|
import ImageGallery from "@/components/ImageGallery"
|
||||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||||
import Alert from "@/components/TempDesignSystem/Alert"
|
import Alert from "@/components/TempDesignSystem/Alert"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { mapApiImagesToGalleryImages } from "@/utils/imageGallery"
|
import { mapApiImagesToGalleryImages } from "@/utils/imageGallery"
|
||||||
import { getSingleDecimal } from "@/utils/numberFormatting"
|
import { getSingleDecimal } from "@/utils/numberFormatting"
|
||||||
@@ -71,7 +71,7 @@ export default async function HotelInfoCard({ hotel }: HotelInfoCardProps) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Divider color="subtle" variant="vertical" />
|
<Divider variant="vertical" />
|
||||||
<div className={styles.facilities}>
|
<div className={styles.facilities}>
|
||||||
<div className={styles.facilityList}>
|
<div className={styles.facilityList}>
|
||||||
{sortedFacilities?.map((facility) => (
|
{sortedFacilities?.map((facility) => (
|
||||||
@@ -131,7 +131,7 @@ export function HotelInfoCardSkeleton() {
|
|||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Divider color="subtle" variant="vertical" />
|
<Divider variant="vertical" />
|
||||||
<div className={styles.facilities}>
|
<div className={styles.facilities}>
|
||||||
<div className={styles.facilityList}>
|
<div className={styles.facilityList}>
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { Button as ButtonRAC } from "react-aria-components"
|
|||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
import { Button } from "@scandic-hotels/design-system/Button"
|
import { Button } from "@scandic-hotels/design-system/Button"
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
@@ -12,7 +13,6 @@ import { useRatesStore } from "@/stores/select-rate"
|
|||||||
import PriceDetailsModal from "@/components/HotelReservation/PriceDetailsModal"
|
import PriceDetailsModal from "@/components/HotelReservation/PriceDetailsModal"
|
||||||
import SignupPromoDesktop from "@/components/HotelReservation/SignupPromo/Desktop"
|
import SignupPromoDesktop from "@/components/HotelReservation/SignupPromo/Desktop"
|
||||||
import Modal from "@/components/Modal"
|
import Modal from "@/components/Modal"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
@@ -101,7 +101,7 @@ export default function Summary({
|
|||||||
/>
|
/>
|
||||||
</ButtonRAC>
|
</ButtonRAC>
|
||||||
</header>
|
</header>
|
||||||
<Divider color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
{rooms.map((room, idx) => {
|
{rooms.map((room, idx) => {
|
||||||
if (!room) {
|
if (!room) {
|
||||||
return null
|
return null
|
||||||
@@ -287,7 +287,7 @@ export default function Summary({
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<Divider color="primaryLightSubtle" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
@@ -355,7 +355,10 @@ export default function Summary({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Divider className={styles.bottomDivider} color="primaryLightSubtle" />
|
<Divider
|
||||||
|
className={styles.bottomDivider}
|
||||||
|
color="Border/Divider/Subtle"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{!isMember && memberPrice ? (
|
{!isMember && memberPrice ? (
|
||||||
<SignupPromoDesktop memberPrice={memberPrice} badgeContent={"✌️"} />
|
<SignupPromoDesktop memberPrice={memberPrice} badgeContent={"✌️"} />
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import { FormProvider, useForm } from "react-hook-form"
|
|||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
import { Button } from "@scandic-hotels/design-system/Button"
|
import { Button } from "@scandic-hotels/design-system/Button"
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { trpc } from "@/lib/trpc/client"
|
import { trpc } from "@/lib/trpc/client"
|
||||||
import { useRatesStore } from "@/stores/select-rate"
|
import { useRatesStore } from "@/stores/select-rate"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { useRoomContext } from "@/contexts/SelectRate/Room"
|
import { useRoomContext } from "@/contexts/SelectRate/Room"
|
||||||
import useLang from "@/hooks/useLang"
|
import useLang from "@/hooks/useLang"
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ export default function Form({ close }: { close: () => void }) {
|
|||||||
<form onSubmit={methods.handleSubmit(onSubmit)}>
|
<form onSubmit={methods.handleSubmit(onSubmit)}>
|
||||||
<Checkboxes />
|
<Checkboxes />
|
||||||
<div className={styles.footer}>
|
<div className={styles.footer}>
|
||||||
<Divider color="borderDividerSubtle" className={styles.divider} />
|
<Divider color="Border/Divider/Subtle" className={styles.divider} />
|
||||||
<div className={styles.buttonContainer}>
|
<div className={styles.buttonContainer}>
|
||||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||||
<Button variant="Tertiary" size="Small" type="submit">
|
<Button variant="Tertiary" size="Small" type="submit">
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
import { useSession } from "next-auth/react"
|
import { useSession } from "next-auth/react"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { useRatesStore } from "@/stores/select-rate"
|
import { useRatesStore } from "@/stores/select-rate"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { useRoomContext } from "@/contexts/SelectRate/Room"
|
import { useRoomContext } from "@/contexts/SelectRate/Room"
|
||||||
import { isValidClientSession } from "@/utils/clientSession"
|
import { isValidClientSession } from "@/utils/clientSession"
|
||||||
|
|
||||||
@@ -66,14 +66,14 @@ export default function BreakfastMessage({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.message}>
|
<div className={styles.message}>
|
||||||
<Divider className={styles.divider} color="borderDividerSubtle" />
|
<Divider className={styles.divider} color="Border/Divider/Subtle" />
|
||||||
<Typography
|
<Typography
|
||||||
variant={"Body/Supporting text (caption)/smRegular"}
|
variant={"Body/Supporting text (caption)/smRegular"}
|
||||||
className={styles.breakfastMessage}
|
className={styles.breakfastMessage}
|
||||||
>
|
>
|
||||||
<p>{breakfastMessage}</p>
|
<p>{breakfastMessage}</p>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider className={styles.divider} color="borderDividerSubtle" />
|
<Divider className={styles.divider} color="Border/Divider/Subtle" />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
import { useSession } from "next-auth/react"
|
import { useSession } from "next-auth/react"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
import { useRatesStore } from "@/stores/select-rate"
|
import { useRatesStore } from "@/stores/select-rate"
|
||||||
|
|
||||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { useRoomContext } from "@/contexts/SelectRate/Room"
|
import { useRoomContext } from "@/contexts/SelectRate/Room"
|
||||||
import { isValidClientSession } from "@/utils/clientSession"
|
import { isValidClientSession } from "@/utils/clientSession"
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ export default function Rates({
|
|||||||
<Code {...sharedProps} code={code} />
|
<Code {...sharedProps} code={code} />
|
||||||
<Campaign {...sharedProps} campaign={campaign} />
|
<Campaign {...sharedProps} campaign={campaign} />
|
||||||
<Redemptions {...sharedProps} redemptions={redemptions} />
|
<Redemptions {...sharedProps} redemptions={redemptions} />
|
||||||
{showDivider ? <Divider color="borderDividerSubtle" /> : null}
|
{showDivider ? <Divider color="Border/Divider/Subtle" /> : null}
|
||||||
{isFetchingAdditionalRate ? (
|
{isFetchingAdditionalRate ? (
|
||||||
<>
|
<>
|
||||||
<SkeletonShimmer height="100px" />
|
<SkeletonShimmer height="100px" />
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { cx } from "class-variance-authority"
|
import { cx } from "class-variance-authority"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
@@ -8,7 +9,6 @@ import Link from "@/components/TempDesignSystem/Link"
|
|||||||
import { insertResponseToImageVaultAsset } from "@/utils/imageVault"
|
import { insertResponseToImageVaultAsset } from "@/utils/imageVault"
|
||||||
|
|
||||||
import ImageContainer from "../ImageContainer"
|
import ImageContainer from "../ImageContainer"
|
||||||
import Divider from "../TempDesignSystem/Divider"
|
|
||||||
import Table from "../TempDesignSystem/Table"
|
import Table from "../TempDesignSystem/Table"
|
||||||
import {
|
import {
|
||||||
hasAvailableParagraphFormat,
|
hasAvailableParagraphFormat,
|
||||||
@@ -87,7 +87,7 @@ export const renderOptions: RenderOptions = {
|
|||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
key={node.uid}
|
key={node.uid}
|
||||||
className={cx(styles.link, className)}
|
className={className}
|
||||||
{...props}
|
{...props}
|
||||||
href={node.attrs.url}
|
href={node.attrs.url}
|
||||||
target={node.attrs.target ?? "_blank"}
|
target={node.attrs.target ?? "_blank"}
|
||||||
@@ -244,7 +244,7 @@ export const renderOptions: RenderOptions = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
[RTETypeEnum.hr]: () => {
|
[RTETypeEnum.hr]: () => {
|
||||||
return <Divider className={styles.divider} />
|
return <Divider className={styles.divider} color="burgundy" />
|
||||||
},
|
},
|
||||||
|
|
||||||
[RTETypeEnum.li]: (
|
[RTETypeEnum.li]: (
|
||||||
@@ -348,7 +348,7 @@ export const renderOptions: RenderOptions = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span className={cx(styles.span, propsClassName)} {...props}>
|
<span className={propsClassName} {...props}>
|
||||||
{next(node.children, embeds, fullRenderOptions)}
|
{next(node.children, embeds, fullRenderOptions)}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
@@ -416,7 +416,7 @@ export const renderOptions: RenderOptions = {
|
|||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
key={node.uid}
|
key={node.uid}
|
||||||
className={cx(styles.link, className)}
|
className={className}
|
||||||
href={node.attrs.href}
|
href={node.attrs.href}
|
||||||
textDecoration="underline"
|
textDecoration="underline"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -466,7 +466,7 @@ export const renderOptions: RenderOptions = {
|
|||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
key={node.uid}
|
key={node.uid}
|
||||||
className={cx(styles.link, className)}
|
className={className}
|
||||||
{...props}
|
{...props}
|
||||||
href={entry.node.url}
|
href={entry.node.url}
|
||||||
textDecoration="underline"
|
textDecoration="underline"
|
||||||
@@ -818,7 +818,7 @@ export const renderOptions: RenderOptions = {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Typography key={id} variant="Body/Paragraph/mdRegular">
|
<Typography key={id} variant="Body/Paragraph/mdRegular">
|
||||||
<span className={cx(styles.span, propsClassName)} {...props}>
|
<span className={propsClassName} {...props}>
|
||||||
{children}
|
{children}
|
||||||
</span>
|
</span>
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
@@ -10,7 +11,6 @@ import ButtonLink from "@/components/ButtonLink"
|
|||||||
import CommunicationSlot from "@/components/MyPages/Profile/Communication"
|
import CommunicationSlot from "@/components/MyPages/Profile/Communication"
|
||||||
import CreditCardSlot from "@/components/MyPages/Profile/CreditCards"
|
import CreditCardSlot from "@/components/MyPages/Profile/CreditCards"
|
||||||
import Header from "@/components/Profile/Header"
|
import Header from "@/components/Profile/Header"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { getLang } from "@/i18n/serverContext"
|
import { getLang } from "@/i18n/serverContext"
|
||||||
import { isValidCountry } from "@/utils/countries"
|
import { isValidCountry } from "@/utils/countries"
|
||||||
@@ -178,7 +178,7 @@ export default async function Profile() {
|
|||||||
|
|
||||||
<ChangeNameDisclaimer />
|
<ChangeNameDisclaimer />
|
||||||
|
|
||||||
<Divider color="burgundy" opacity={8} />
|
<Divider />
|
||||||
<CreditCardSlot />
|
<CreditCardSlot />
|
||||||
{/* <MembershipCardSlot /> */}
|
{/* <MembershipCardSlot /> */}
|
||||||
<CommunicationSlot />
|
<CommunicationSlot />
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Fragment } from "react"
|
import { Fragment } from "react"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
import SkeletonShimmer from "@/components/SkeletonShimmer"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
|
|
||||||
import styles from "./sidebar.module.css"
|
import styles from "./sidebar.module.css"
|
||||||
@@ -16,11 +16,11 @@ export default function SidebarNavigationSkeleton() {
|
|||||||
<Typography variant="Title/Subtitle/md">
|
<Typography variant="Title/Subtitle/md">
|
||||||
<SkeletonShimmer width="10ch" />
|
<SkeletonShimmer width="10ch" />
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider color="beige" />
|
<Divider />
|
||||||
<ul className={styles.list}>
|
<ul className={styles.list}>
|
||||||
{skeletonWidths.map((width, index) => (
|
{skeletonWidths.map((width, index) => (
|
||||||
<Fragment key={index}>
|
<Fragment key={index}>
|
||||||
{index === 4 && <Divider color="beige" />}
|
{index === 4 && <Divider />}
|
||||||
<li>
|
<li>
|
||||||
<Link href="" size="regular" variant="sidebar">
|
<Link href="" size="regular" variant="sidebar">
|
||||||
<SkeletonShimmer width={width} />
|
<SkeletonShimmer width={width} />
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { logout } from "@/constants/routes/handleAuth"
|
import { logout } from "@/constants/routes/handleAuth"
|
||||||
@@ -5,7 +6,6 @@ import { getProfileSafely } from "@/lib/trpc/memoizedRequests"
|
|||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
import { SASLevelUpgradeCheck } from "@/components/MyPages/SASLevelUpgradeCheck"
|
import { SASLevelUpgradeCheck } from "@/components/MyPages/SASLevelUpgradeCheck"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { getLang } from "@/i18n/serverContext"
|
import { getLang } from "@/i18n/serverContext"
|
||||||
@@ -45,7 +45,7 @@ async function PrimaryLinks() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Divider color="beige" />
|
<Divider />
|
||||||
<ul className={styles.list}>
|
<ul className={styles.list}>
|
||||||
{nav?.primaryLinks.map((link) => (
|
{nav?.primaryLinks.map((link) => (
|
||||||
<li key={link.href}>
|
<li key={link.href}>
|
||||||
@@ -74,7 +74,7 @@ async function SecondaryLinks() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Divider color="beige" />
|
<Divider />
|
||||||
<ul className={styles.list}>
|
<ul className={styles.list}>
|
||||||
{nav?.secondaryLinks.map((link) => (
|
{nav?.secondaryLinks.map((link) => (
|
||||||
<li key={link.href}>
|
<li key={link.href}>
|
||||||
|
|||||||
@@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import { getGroupedOpeningHours } from "../utils"
|
import { getGroupedOpeningHours } from "../utils"
|
||||||
|
|
||||||
import styles from "../openingHours.module.css"
|
import styles from "../openingHours.module.css"
|
||||||
@@ -35,7 +34,7 @@ export default function AlternateOpeningHours({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Divider color="Border/Divider/Default" />
|
<Divider />
|
||||||
<Typography variant="Body/Paragraph/mdBold">
|
<Typography variant="Body/Paragraph/mdBold">
|
||||||
<h5 className={styles.heading}>
|
<h5 className={styles.heading}>
|
||||||
{intl.formatMessage(
|
{intl.formatMessage(
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "../TempDesignSystem/Divider"
|
|
||||||
import AlternateOpeningHours from "./AlternateOpeningHours"
|
import AlternateOpeningHours from "./AlternateOpeningHours"
|
||||||
import { getGroupedOpeningHours } from "./utils"
|
import { getGroupedOpeningHours } from "./utils"
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ export default function OpeningHours({
|
|||||||
<Typography variant="Title/Overline/sm">
|
<Typography variant="Title/Overline/sm">
|
||||||
<h5 className={styles.heading}>{heading ?? openingHours.name}</h5>
|
<h5 className={styles.heading}>{heading ?? openingHours.name}</h5>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider color="Border/Divider/Default" />
|
<Divider />
|
||||||
|
|
||||||
<Typography variant="Body/Paragraph/mdRegular">
|
<Typography variant="Body/Paragraph/mdRegular">
|
||||||
<div className={styles.text}>
|
<div className={styles.text}>
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import ButtonLink from "@/components/ButtonLink"
|
import ButtonLink from "@/components/ButtonLink"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import ParkingList from "./ParkingList"
|
import ParkingList from "./ParkingList"
|
||||||
import ParkingPrices from "./ParkingPrices"
|
import ParkingPrices from "./ParkingPrices"
|
||||||
@@ -53,7 +53,7 @@ export default function ParkingInformation({
|
|||||||
{intl.formatMessage({ defaultMessage: "Weekday prices" })}
|
{intl.formatMessage({ defaultMessage: "Weekday prices" })}
|
||||||
</h6>
|
</h6>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider color="baseSurfaceSubtleHover" />
|
<Divider />
|
||||||
{parking.pricing.localCurrency ? (
|
{parking.pricing.localCurrency ? (
|
||||||
<ParkingPrices
|
<ParkingPrices
|
||||||
currency={parking.pricing.localCurrency.currency}
|
currency={parking.pricing.localCurrency.currency}
|
||||||
@@ -68,7 +68,7 @@ export default function ParkingInformation({
|
|||||||
{intl.formatMessage({ defaultMessage: "Weekend prices" })}
|
{intl.formatMessage({ defaultMessage: "Weekend prices" })}
|
||||||
</h6>
|
</h6>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider color="baseSurfaceSubtleHover" />
|
<Divider />
|
||||||
{parking.pricing.localCurrency ? (
|
{parking.pricing.localCurrency ? (
|
||||||
<ParkingPrices
|
<ParkingPrices
|
||||||
currency={parking.pricing.localCurrency.currency}
|
currency={parking.pricing.localCurrency.currency}
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import { IconName } from "@/components/Icons/iconName"
|
import { IconName } from "@/components/Icons/iconName"
|
||||||
import AccordionItem from "@/components/TempDesignSystem/Accordion/AccordionItem"
|
import AccordionItem from "@/components/TempDesignSystem/Accordion/AccordionItem"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import styles from "./sidePeekAccordion.module.css"
|
import styles from "./sidePeekAccordion.module.css"
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ export default function CheckInCheckOutAccordionItem({
|
|||||||
{intl.formatMessage({ defaultMessage: "Hours" })}
|
{intl.formatMessage({ defaultMessage: "Hours" })}
|
||||||
</h4>
|
</h4>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Divider color="Border/Divider/Default" />
|
<Divider />
|
||||||
<Typography variant="Body/Paragraph/mdRegular">
|
<Typography variant="Body/Paragraph/mdRegular">
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
|
|
||||||
import Image from "@/components/Image"
|
import Image from "@/components/Image"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||||
import { formatPrice } from "@/utils/numberFormatting"
|
import { formatPrice } from "@/utils/numberFormatting"
|
||||||
@@ -46,7 +47,7 @@ export function AncillaryCard({ ancillary }: AncillaryCardProps) {
|
|||||||
{ancillary.points && (
|
{ancillary.points && (
|
||||||
<>
|
<>
|
||||||
<div>
|
<div>
|
||||||
<Divider variant="vertical" color="subtle" />
|
<Divider variant="vertical" />
|
||||||
</div>
|
</div>
|
||||||
<Body textAlign="right" color="uiTextHighContrast">
|
<Body textAlign="right" color="uiTextHighContrast">
|
||||||
{intl.formatMessage(
|
{intl.formatMessage(
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
import type { VariantProps } from "class-variance-authority"
|
|
||||||
|
|
||||||
import type { dividerVariants } from "./variants"
|
|
||||||
|
|
||||||
export interface DividerProps
|
|
||||||
extends Omit<React.HTMLAttributes<HTMLDivElement>, "color">,
|
|
||||||
VariantProps<typeof dividerVariants> {}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
import { dividerVariants } from "./variants"
|
|
||||||
|
|
||||||
import type { DividerProps } from "./divider"
|
|
||||||
|
|
||||||
export default function Divider({
|
|
||||||
className,
|
|
||||||
color,
|
|
||||||
opacity,
|
|
||||||
variant,
|
|
||||||
}: DividerProps) {
|
|
||||||
const classNames = dividerVariants({ className, color, opacity, variant })
|
|
||||||
return <hr className={classNames} />
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
import { cva } from "class-variance-authority"
|
|
||||||
|
|
||||||
import styles from "./divider.module.css"
|
|
||||||
|
|
||||||
export const dividerVariants = cva(styles.divider, {
|
|
||||||
variants: {
|
|
||||||
color: {
|
|
||||||
baseSurfaceSubtleNormal: styles.baseSurfaceSubtleNormal,
|
|
||||||
beige: styles.beige,
|
|
||||||
burgundy: styles.burgundy,
|
|
||||||
pale: styles.pale,
|
|
||||||
peach: styles.peach,
|
|
||||||
primaryLightSubtle: styles.primaryLightSubtle,
|
|
||||||
subtle: styles.subtle,
|
|
||||||
white: styles.white,
|
|
||||||
baseSurfaceSubtleHover: styles.baseSurfaceSubtleHover,
|
|
||||||
"Border/Divider/Default": styles["Border-Divider-Default"],
|
|
||||||
borderDividerSubtle: styles.borderDividerSubtle,
|
|
||||||
},
|
|
||||||
opacity: {
|
|
||||||
100: styles.opacity100,
|
|
||||||
8: styles.opacity8,
|
|
||||||
},
|
|
||||||
variant: {
|
|
||||||
horizontal: styles.horizontal,
|
|
||||||
vertical: styles.vertical,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
defaultVariants: {
|
|
||||||
color: "burgundy",
|
|
||||||
opacity: 100,
|
|
||||||
variant: "horizontal",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
@@ -3,11 +3,10 @@
|
|||||||
import { cx } from "class-variance-authority"
|
import { cx } from "class-variance-authority"
|
||||||
import { useFormContext } from "react-hook-form"
|
import { useFormContext } from "react-hook-form"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||||
|
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
|
||||||
|
|
||||||
import styles from "./radioCard.module.css"
|
import styles from "./radioCard.module.css"
|
||||||
|
|
||||||
import type { RadioCardProps } from "./types"
|
import type { RadioCardProps } from "./types"
|
||||||
@@ -76,11 +75,7 @@ export default function RadioCard({
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
{description || descriptionSecondary ? (
|
{description || descriptionSecondary ? (
|
||||||
<Divider
|
<Divider className={styles.divider} />
|
||||||
className={styles.divider}
|
|
||||||
variant="horizontal"
|
|
||||||
color="subtle"
|
|
||||||
/>
|
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{description ? (
|
{description ? (
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
import { useState } from "react"
|
import { useState } from "react"
|
||||||
import { useIntl } from "react-intl"
|
import { useIntl } from "react-intl"
|
||||||
|
|
||||||
|
import { Divider } from "@scandic-hotels/design-system/Divider"
|
||||||
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||||
|
|
||||||
import Image from "@/components/Image"
|
import Image from "@/components/Image"
|
||||||
|
|
||||||
import Divider from "../Divider"
|
|
||||||
import ShowMoreButton from "../ShowMoreButton"
|
import ShowMoreButton from "../ShowMoreButton"
|
||||||
import Body from "../Text/Body"
|
import Body from "../Text/Body"
|
||||||
import Caption from "../Text/Caption"
|
import Caption from "../Text/Caption"
|
||||||
@@ -102,7 +102,7 @@ export default function MeetingRoomCard({ room }: MeetingRoomCardProps) {
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<Divider color="baseSurfaceSubtleNormal" />
|
<Divider color="Border/Divider/Subtle" />
|
||||||
<div className={styles.rowItem}>
|
<div className={styles.rowItem}>
|
||||||
<div className={styles.capacity}>
|
<div className={styles.capacity}>
|
||||||
<Caption color="uiTextMediumContrast">
|
<Caption color="uiTextMediumContrast">
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
|
import { Divider } from './Divider'
|
||||||
|
|
||||||
|
const meta: Meta<typeof Divider> = {
|
||||||
|
title: 'Components/Divider',
|
||||||
|
component: Divider,
|
||||||
|
argTypes: {},
|
||||||
|
}
|
||||||
|
|
||||||
|
export default meta
|
||||||
|
|
||||||
|
type Story = StoryObj<typeof Divider>
|
||||||
|
|
||||||
|
export const Default: Story = {
|
||||||
|
args: {},
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import { dividerVariants } from './variants'
|
||||||
|
|
||||||
|
import type { DividerProps } from './types'
|
||||||
|
|
||||||
|
export function Divider({ className, color, variant }: DividerProps) {
|
||||||
|
const classNames = dividerVariants({ className, color, variant })
|
||||||
|
return <hr className={classNames} />
|
||||||
|
}
|
||||||
@@ -25,42 +25,14 @@
|
|||||||
background-color: var(--Primary-Light-On-Surface-Divider);
|
background-color: var(--Primary-Light-On-Surface-Divider);
|
||||||
}
|
}
|
||||||
|
|
||||||
.beige {
|
|
||||||
background-color: var(--Scandic-Beige-20);
|
|
||||||
}
|
|
||||||
|
|
||||||
.white {
|
.white {
|
||||||
background-color: var(--UI-Opacity-White-100);
|
background-color: var(--UI-Opacity-White-100);
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtle {
|
.Border-Divider-Subtle {
|
||||||
background-color: var(--Base-Border-Subtle);
|
|
||||||
}
|
|
||||||
|
|
||||||
.primaryLightSubtle {
|
|
||||||
background-color: var(--Primary-Light-On-Surface-Divider-subtle);
|
|
||||||
}
|
|
||||||
|
|
||||||
.baseSurfaceSubtleNormal {
|
|
||||||
background-color: var(--Base-Surface-Subtle-Normal);
|
|
||||||
}
|
|
||||||
|
|
||||||
.borderDividerSubtle {
|
|
||||||
background-color: var(--Border-Divider-Subtle);
|
background-color: var(--Border-Divider-Subtle);
|
||||||
}
|
}
|
||||||
|
|
||||||
.opacity100 {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.opacity8 {
|
|
||||||
opacity: 0.08;
|
|
||||||
}
|
|
||||||
|
|
||||||
.baseSurfaceSubtleHover {
|
|
||||||
background-color: var(--Base-Surface-Subtle-Hover);
|
|
||||||
}
|
|
||||||
|
|
||||||
.Border-Divider-Default {
|
.Border-Divider-Default {
|
||||||
background-color: var(--Border-Divider-Default);
|
background-color: var(--Border-Divider-Default);
|
||||||
}
|
}
|
||||||
1
packages/design-system/lib/components/Divider/index.ts
Normal file
1
packages/design-system/lib/components/Divider/index.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export { Divider } from './Divider'
|
||||||
7
packages/design-system/lib/components/Divider/types.ts
Normal file
7
packages/design-system/lib/components/Divider/types.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import type { VariantProps } from 'class-variance-authority'
|
||||||
|
|
||||||
|
import type { dividerVariants } from './variants'
|
||||||
|
|
||||||
|
export interface DividerProps
|
||||||
|
extends Omit<React.HTMLAttributes<HTMLHRElement>, 'color'>,
|
||||||
|
VariantProps<typeof dividerVariants> {}
|
||||||
24
packages/design-system/lib/components/Divider/variants.ts
Normal file
24
packages/design-system/lib/components/Divider/variants.ts
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import { cva } from 'class-variance-authority'
|
||||||
|
|
||||||
|
import styles from './divider.module.css'
|
||||||
|
|
||||||
|
export const dividerVariants = cva(styles.divider, {
|
||||||
|
variants: {
|
||||||
|
color: {
|
||||||
|
burgundy: styles.burgundy,
|
||||||
|
pale: styles.pale,
|
||||||
|
peach: styles.peach,
|
||||||
|
white: styles.white,
|
||||||
|
'Border/Divider/Default': styles['Border-Divider-Default'],
|
||||||
|
'Border/Divider/Subtle': styles['Border-Divider-Subtle'],
|
||||||
|
},
|
||||||
|
variant: {
|
||||||
|
horizontal: styles.horizontal,
|
||||||
|
vertical: styles.vertical,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
defaultVariants: {
|
||||||
|
color: 'Border/Divider/Default',
|
||||||
|
variant: 'horizontal',
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
"./ChipButton": "./dist/components/ChipButton/index.js",
|
"./ChipButton": "./dist/components/ChipButton/index.js",
|
||||||
"./ChipLink": "./dist/components/ChipLink/index.js",
|
"./ChipLink": "./dist/components/ChipLink/index.js",
|
||||||
"./Chips": "./dist/components/Chips/index.js",
|
"./Chips": "./dist/components/Chips/index.js",
|
||||||
|
"./Divider": "./dist/components/Divider/index.js",
|
||||||
"./Select": "./dist/components/Select/index.js",
|
"./Select": "./dist/components/Select/index.js",
|
||||||
"./Typography": "./dist/components/Typography/index.js",
|
"./Typography": "./dist/components/Typography/index.js",
|
||||||
"./RegularRateCard": "./dist/components/RateCard/Regular/index.js",
|
"./RegularRateCard": "./dist/components/RateCard/Regular/index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user