Extract BackdropCard and EmptyState components
The subprocessor list item, commitment card, and empty state each inlined layout and color Tailwind classes on className, against the v2 UI rules that keep look-and-layout in tailwind-variants slots. Move the shared soft-Card frame (a backdrop header faded over a body) into a presentational BackdropCard, and the icon/title/description placeholder into a generic EmptyState, both under components/. Refactor CommitmentCard and SubprocessorListItem onto BackdropCard, and SubprocessorsEmpty onto EmptyState, leaving only component-specific slots in each variants.ts. Subprocessors without a website now show the dotted backdrop behind the fallback icon, matching the commitment card. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -0,0 +1,51 @@
|
|||||||
|
// Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
||||||
|
//
|
||||||
|
// Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
// purpose with or without fee is hereby granted, provided that the above
|
||||||
|
// copyright notice and this permission notice appear in all copies.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||||
|
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
// PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
import { Card } from "@probo/ui/src/v2/Card/Card";
|
||||||
|
import type { ReactNode } from "react";
|
||||||
|
|
||||||
|
import { dotPatternStyle } from "#/components/MediaTile/variants";
|
||||||
|
|
||||||
|
import { backdropCard } from "./variants";
|
||||||
|
|
||||||
|
interface BackdropCardProps {
|
||||||
|
// Centered content shown above the backdrop (an icon or a logo box). The node
|
||||||
|
// owns its own sizing/color; position it above the backdrop with `relative
|
||||||
|
// z-10`.
|
||||||
|
media: ReactNode;
|
||||||
|
// When set, a blurred, magnified copy of this image becomes the backdrop;
|
||||||
|
// otherwise a dotted texture is shown.
|
||||||
|
backdropSrc?: string;
|
||||||
|
// Left-aligned body below the header.
|
||||||
|
children: ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Soft Card frame with a decorative-backdrop header above a body. Purely
|
||||||
|
// presentational, so it doubles as the layout for its consumers' skeletons.
|
||||||
|
export function BackdropCard({ media, backdropSrc, children }: BackdropCardProps) {
|
||||||
|
const slots = backdropCard();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Card variant="soft" size={3} padding="none">
|
||||||
|
<div className={slots.header()}>
|
||||||
|
{backdropSrc != null
|
||||||
|
? <img src={backdropSrc} alt="" aria-hidden className={slots.blurBackdrop()} />
|
||||||
|
: <div className={slots.backdrop()} style={dotPatternStyle} />}
|
||||||
|
<div className={slots.backdropFade()} />
|
||||||
|
{media}
|
||||||
|
</div>
|
||||||
|
<div className={slots.body()}>{children}</div>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
// Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
||||||
|
//
|
||||||
|
// Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
// purpose with or without fee is hereby granted, provided that the above
|
||||||
|
// copyright notice and this permission notice appear in all copies.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||||
|
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
// PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
import { tv } from "tailwind-variants/lite";
|
||||||
|
|
||||||
|
// Soft Card frame shared by the commitment / subprocessor cards: a header with a
|
||||||
|
// decorative backdrop (dotted texture or a blurred, magnified logo) faded toward
|
||||||
|
// the card surface, with centered media on top, above a left-aligned body.
|
||||||
|
export const backdropCard = tv({
|
||||||
|
slots: {
|
||||||
|
header: "relative flex w-full items-center overflow-hidden p-8",
|
||||||
|
blurBackdrop: "pointer-events-none absolute inset-0 size-full scale-150 object-cover opacity-10 blur-lg",
|
||||||
|
backdrop: "pointer-events-none absolute inset-0",
|
||||||
|
backdropFade: "pointer-events-none absolute inset-0 bg-linear-to-b from-sand-1/0 to-sand-1",
|
||||||
|
body: "flex flex-col gap-2 px-8 pb-8",
|
||||||
|
},
|
||||||
|
});
|
||||||
@@ -12,10 +12,9 @@
|
|||||||
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
// PERFORMANCE OF THIS SOFTWARE.
|
// PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
import { Card } from "@probo/ui/src/v2/Card/Card";
|
|
||||||
import type { ReactNode } from "react";
|
import type { ReactNode } from "react";
|
||||||
|
|
||||||
import { dotPatternStyle } from "#/components/MediaTile/variants";
|
import { BackdropCard } from "#/components/BackdropCard/BackdropCard";
|
||||||
|
|
||||||
import { commitmentCard } from "./variants";
|
import { commitmentCard } from "./variants";
|
||||||
|
|
||||||
@@ -30,24 +29,18 @@ export interface CommitmentCardProps {
|
|||||||
description: ReactNode;
|
description: ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Commitment card, composing the soft Card surface. Region props are placed into
|
// Commitment card, composing the shared BackdropCard frame over its dotted
|
||||||
// the layout slots; the consumer supplies typography (Text). Purely
|
// backdrop. Region props are placed into the body; the consumer supplies
|
||||||
// presentational, so it doubles as the layout for its skeleton.
|
// typography (Text). Purely presentational, so it doubles as the layout for its
|
||||||
|
// skeleton.
|
||||||
export function CommitmentCard({ icon, eyebrow, title, description }: CommitmentCardProps) {
|
export function CommitmentCard({ icon, eyebrow, title, description }: CommitmentCardProps) {
|
||||||
const slots = commitmentCard();
|
const { icon: iconSlot } = commitmentCard();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card variant="soft" size={3} padding="none">
|
<BackdropCard media={<div className={iconSlot()}>{icon}</div>}>
|
||||||
<div className={slots.icon()}>
|
|
||||||
<div className={slots.backdrop()} style={dotPatternStyle} />
|
|
||||||
<div className={slots.backdropFade()} />
|
|
||||||
<div className={slots.iconContent()}>{icon}</div>
|
|
||||||
</div>
|
|
||||||
<div className={slots.body()}>
|
|
||||||
{eyebrow}
|
{eyebrow}
|
||||||
{title}
|
{title}
|
||||||
{description}
|
{description}
|
||||||
</div>
|
</BackdropCard>
|
||||||
</Card>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,15 +14,11 @@
|
|||||||
|
|
||||||
import { tv } from "tailwind-variants/lite";
|
import { tv } from "tailwind-variants/lite";
|
||||||
|
|
||||||
// Commitment card (Figma "Commitment Card"): an icon container with the dotted
|
// Commitment card (Figma "Commitment Card"): the leading icon box placed over
|
||||||
// + gradient backdrop above an eyebrow / title / description body, rendered
|
// the BackdropCard header. The card frame and dotted backdrop live in
|
||||||
// inside a soft Card. Slots are shared by the shell and its skeleton.
|
// BackdropCard; this slot only styles the icon container.
|
||||||
export const commitmentCard = tv({
|
export const commitmentCard = tv({
|
||||||
slots: {
|
slots: {
|
||||||
icon: "relative flex w-full items-center overflow-hidden p-8",
|
icon: "relative z-10 flex size-8 items-center justify-center text-gold-9",
|
||||||
backdrop: "pointer-events-none absolute inset-0",
|
|
||||||
backdropFade: "pointer-events-none absolute inset-0 bg-linear-to-b from-sand-1/0 to-sand-1",
|
|
||||||
iconContent: "relative z-10 flex size-8 items-center justify-center text-gold-9",
|
|
||||||
body: "flex flex-col gap-2 px-8 pb-8",
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
// Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
||||||
|
//
|
||||||
|
// Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
// purpose with or without fee is hereby granted, provided that the above
|
||||||
|
// copyright notice and this permission notice appear in all copies.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||||
|
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
// PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
import { Text } from "@probo/ui/src/v2/typography/Text";
|
||||||
|
import type { ReactNode } from "react";
|
||||||
|
|
||||||
|
import { emptyState } from "./variants";
|
||||||
|
|
||||||
|
interface EmptyStateProps {
|
||||||
|
// Leading phosphor icon, toned and sized by the icon slot.
|
||||||
|
icon: ReactNode;
|
||||||
|
title: ReactNode;
|
||||||
|
description?: ReactNode;
|
||||||
|
// Optional call to action (e.g. a Button) below the copy.
|
||||||
|
action?: ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generic empty-state placeholder shared across list/collection regions: a
|
||||||
|
// faint icon, a title, optional guidance, and an optional call to action.
|
||||||
|
// Purely presentational; consumers supply their own copy and action.
|
||||||
|
export function EmptyState({ icon, title, description, action }: EmptyStateProps) {
|
||||||
|
const slots = emptyState();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={slots.root()}>
|
||||||
|
<span className={slots.icon()}>{icon}</span>
|
||||||
|
<div className={slots.body()}>
|
||||||
|
<Text size={2} weight="medium" color="faint">
|
||||||
|
{title}
|
||||||
|
</Text>
|
||||||
|
{description != null && (
|
||||||
|
<Text size={2} color="faint">
|
||||||
|
{description}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
{action}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
26
apps/compliance-portal/src/components/EmptyState/variants.ts
Normal file
26
apps/compliance-portal/src/components/EmptyState/variants.ts
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
// Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
||||||
|
//
|
||||||
|
// Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
// purpose with or without fee is hereby granted, provided that the above
|
||||||
|
// copyright notice and this permission notice appear in all copies.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||||
|
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
// PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
import { tv } from "tailwind-variants/lite";
|
||||||
|
|
||||||
|
// Empty-state placeholder: a faint icon above a centered title / description
|
||||||
|
// and an optional call to action. The icon slot tones and sizes any phosphor
|
||||||
|
// icon passed in, so consumers hand in a bare icon element.
|
||||||
|
export const emptyState = tv({
|
||||||
|
slots: {
|
||||||
|
root: "flex flex-col items-center gap-5 py-8 text-center",
|
||||||
|
icon: "text-sand-a8 [&_svg]:size-6",
|
||||||
|
body: "flex max-w-xs flex-col items-center gap-2",
|
||||||
|
},
|
||||||
|
});
|
||||||
@@ -14,13 +14,15 @@
|
|||||||
|
|
||||||
import { BuildingsIcon, MapPinSimpleIcon } from "@phosphor-icons/react";
|
import { BuildingsIcon, MapPinSimpleIcon } from "@phosphor-icons/react";
|
||||||
import { faviconUrl } from "@probo/helpers";
|
import { faviconUrl } from "@probo/helpers";
|
||||||
import { Card } from "@probo/ui/src/v2/Card/Card";
|
|
||||||
import { Text } from "@probo/ui/src/v2/typography/Text";
|
import { Text } from "@probo/ui/src/v2/typography/Text";
|
||||||
import { graphql, useFragment } from "react-relay";
|
import { graphql, useFragment } from "react-relay";
|
||||||
|
|
||||||
|
import { BackdropCard } from "#/components/BackdropCard/BackdropCard";
|
||||||
|
|
||||||
import { useCountryLabel } from "../_lib/useCountryLabel";
|
import { useCountryLabel } from "../_lib/useCountryLabel";
|
||||||
|
|
||||||
import type { SubprocessorListItem_subprocessor$key } from "./__generated__/SubprocessorListItem_subprocessor.graphql";
|
import type { SubprocessorListItem_subprocessor$key } from "./__generated__/SubprocessorListItem_subprocessor.graphql";
|
||||||
|
import { subprocessorListItem } from "./variants";
|
||||||
|
|
||||||
const subprocessorListItemFragment = graphql`
|
const subprocessorListItemFragment = graphql`
|
||||||
fragment SubprocessorListItem_subprocessor on Subprocessor {
|
fragment SubprocessorListItem_subprocessor on Subprocessor {
|
||||||
@@ -42,26 +44,19 @@ export function SubprocessorListItem({ subprocessorKey }: SubprocessorListItemPr
|
|||||||
const countryLabel = useCountryLabel();
|
const countryLabel = useCountryLabel();
|
||||||
const logoUrl = faviconUrl(subprocessor.websiteUrl);
|
const logoUrl = faviconUrl(subprocessor.websiteUrl);
|
||||||
const countries = subprocessor.countries.map(countryLabel).join(", ");
|
const countries = subprocessor.countries.map(countryLabel).join(", ");
|
||||||
|
const slots = subprocessorListItem();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card variant="soft" size={3} padding="none">
|
<BackdropCard
|
||||||
<div className="relative flex items-center overflow-hidden p-8">
|
backdropSrc={logoUrl ?? undefined}
|
||||||
{logoUrl != null && (
|
media={(
|
||||||
<img
|
<div className={slots.logo()}>
|
||||||
src={logoUrl}
|
|
||||||
alt=""
|
|
||||||
aria-hidden
|
|
||||||
className="pointer-events-none absolute inset-0 size-full scale-150 object-cover opacity-10 blur-lg"
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<div className="pointer-events-none absolute inset-0 bg-linear-to-b from-sand-1/0 to-sand-1" />
|
|
||||||
<div className="relative z-10 flex size-10 items-center justify-center overflow-hidden rounded-2 bg-sand-1">
|
|
||||||
{logoUrl != null
|
{logoUrl != null
|
||||||
? <img src={logoUrl} alt="" className="size-full object-cover" />
|
? <img src={logoUrl} alt="" className={slots.logoImage()} />
|
||||||
: <BuildingsIcon size={24} weight="duotone" className="text-sand-9" />}
|
: <BuildingsIcon size={24} weight="duotone" className={slots.logoFallbackIcon()} />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
<div className="flex flex-col gap-2 px-8 pb-8">
|
>
|
||||||
<Text size={4} weight="medium" color="neutral" highContrast>
|
<Text size={4} weight="medium" color="neutral" highContrast>
|
||||||
{subprocessor.name}
|
{subprocessor.name}
|
||||||
</Text>
|
</Text>
|
||||||
@@ -71,14 +66,13 @@ export function SubprocessorListItem({ subprocessorKey }: SubprocessorListItemPr
|
|||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
{countries !== "" && (
|
{countries !== "" && (
|
||||||
<div className="flex items-start gap-1">
|
<div className={slots.region()}>
|
||||||
<MapPinSimpleIcon className="mt-0.5 size-4 shrink-0 text-gold-11" />
|
<MapPinSimpleIcon className={slots.regionIcon()} />
|
||||||
<Text size={1} color="gold">
|
<Text size={1} color="gold">
|
||||||
{countries}
|
{countries}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</BackdropCard>
|
||||||
</Card>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,9 +14,10 @@
|
|||||||
|
|
||||||
import { ArrowCounterClockwiseIcon, MagnifyingGlassIcon } from "@phosphor-icons/react";
|
import { ArrowCounterClockwiseIcon, MagnifyingGlassIcon } from "@phosphor-icons/react";
|
||||||
import { Button } from "@probo/ui/src/v2/Button/Button";
|
import { Button } from "@probo/ui/src/v2/Button/Button";
|
||||||
import { Text } from "@probo/ui/src/v2/typography/Text";
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
|
import { EmptyState } from "#/components/EmptyState/EmptyState";
|
||||||
|
|
||||||
import { useSubprocessorFilters } from "../_lib/useSubprocessorFilters";
|
import { useSubprocessorFilters } from "../_lib/useSubprocessorFilters";
|
||||||
|
|
||||||
// Empty state for the subprocessor list. When filters are active it offers to
|
// Empty state for the subprocessor list. When filters are active it offers to
|
||||||
@@ -26,17 +27,11 @@ export function SubprocessorsEmpty() {
|
|||||||
const { hasActiveFilters, clear } = useSubprocessorFilters();
|
const { hasActiveFilters, clear } = useSubprocessorFilters();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center gap-5 py-8 text-center">
|
<EmptyState
|
||||||
<MagnifyingGlassIcon className="size-6 text-sand-a8" />
|
icon={<MagnifyingGlassIcon />}
|
||||||
<div className="flex max-w-xs flex-col items-center gap-2">
|
title={hasActiveFilters ? t("empty.filteredTitle") : t("empty.title")}
|
||||||
<Text size={2} weight="medium" color="faint">
|
description={hasActiveFilters ? t("empty.filteredDescription") : t("empty.description")}
|
||||||
{hasActiveFilters ? t("empty.filteredTitle") : t("empty.title")}
|
action={hasActiveFilters && (
|
||||||
</Text>
|
|
||||||
<Text size={2} color="faint">
|
|
||||||
{hasActiveFilters ? t("empty.filteredDescription") : t("empty.description")}
|
|
||||||
</Text>
|
|
||||||
</div>
|
|
||||||
{hasActiveFilters && (
|
|
||||||
<Button
|
<Button
|
||||||
variant="soft"
|
variant="soft"
|
||||||
color="neutral"
|
color="neutral"
|
||||||
@@ -46,6 +41,6 @@ export function SubprocessorsEmpty() {
|
|||||||
{t("empty.clearFilters")}
|
{t("empty.clearFilters")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
// Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
||||||
|
//
|
||||||
|
// Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
// purpose with or without fee is hereby granted, provided that the above
|
||||||
|
// copyright notice and this permission notice appear in all copies.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
// AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||||
|
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
// PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
import { tv } from "tailwind-variants/lite";
|
||||||
|
|
||||||
|
// Subprocessor card: the logo box placed over the BackdropCard header (backed by
|
||||||
|
// a blurred, magnified copy of the logo) and the hosting-regions row shown in
|
||||||
|
// the body. The card frame and backdrop live in BackdropCard.
|
||||||
|
export const subprocessorListItem = tv({
|
||||||
|
slots: {
|
||||||
|
logo: "relative z-10 flex size-10 items-center justify-center overflow-hidden rounded-2 bg-sand-1",
|
||||||
|
logoImage: "size-full object-cover",
|
||||||
|
logoFallbackIcon: "text-sand-9",
|
||||||
|
region: "flex items-start gap-1",
|
||||||
|
regionIcon: "mt-0.5 size-4 shrink-0 text-gold-11",
|
||||||
|
},
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user