Files
web/packages/design-system/lib/components/TextLink/variants.ts
Anton Gunnarsson f79ff9b570 Merged in chore/cleanup-unused (pull request #3461)
chore: Cleanup unused vars, exports, types

* Cleanup some unused exports

* Remove more

* Readd CampaignPageIncludedHotelsRef

* Add alias comment to procedure exports

* Remove unused exports


Approved-by: Linus Flood
2026-01-22 12:34:07 +00:00

35 lines
742 B
TypeScript

import { cva } from "class-variance-authority"
import {
config as typographyConfig,
withTypography,
} from "../Typography/variants"
import styles from "./textLink.module.css"
export const config = {
variants: {
theme: {
Primary: styles["theme-primary"],
Inverted: styles["theme-inverted"],
InteractiveDefault: styles["theme-interactive-default"],
},
},
defaultVariants: {
theme: "Primary",
},
} as const
const textLinkConfig = {
variants: {
...config.variants,
typography: typographyConfig.variants.variant,
},
defaultVariants: {
...config.defaultVariants,
typography: "Link/md",
},
} as const
export const variants = cva(styles.textLink, withTypography(textLinkConfig))