feat(SW-2264): Added campaign overview page

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-06-19 15:19:56 +00:00
parent 3c4ff0a792
commit 891108791c
42 changed files with 743 additions and 86 deletions

View File

@@ -26,7 +26,6 @@
background-color: var(--Surface-Primary-Hover);
}
.Outlined:focus,
.Outlined:active {
border-color: var(--Border-Interactive-Selected);
}

View File

@@ -1,10 +1,10 @@
import type { Meta, StoryObj } from '@storybook/react'
import { ChipLink } from './ChipLink.tsx'
import { MaterialIcon } from '../Icons/MaterialIcon'
import { ChipLink } from './ChipLink.tsx'
const meta: Meta<typeof ChipLink> = {
title: 'Components/Chip/ChipLInk 🚧',
title: 'Components/Chip/ChipLink',
component: ChipLink,
}
@@ -15,7 +15,7 @@ type Story = StoryObj<typeof ChipLink>
export const Default: Story = {
args: {
href: '/',
onClick: (e) => e.preventDefault(),
onPress: (e) => console.log(e),
children: (
<>
Link Chip

View File

@@ -1,19 +1,24 @@
import { cx } from 'class-variance-authority'
import { Typography } from '../Typography'
import styles from './chip-link.module.css'
import type { PropsWithChildren } from 'react'
import {
Link as LinkRAC,
LinkProps as LinkRACProps,
} from 'react-aria-components'
export function ChipLink({
children,
className,
...props
}: PropsWithChildren<React.AnchorHTMLAttributes<HTMLAnchorElement>>) {
}: PropsWithChildren<LinkRACProps>) {
return (
<Typography variant="Body/Supporting text (caption)/smBold">
<a {...props} className={[styles.chip, className].join(' ')}>
<LinkRAC {...props} className={cx(styles.chip, className)}>
{children}
</a>
</LinkRAC>
</Typography>
)
}

View File

@@ -1,18 +1,21 @@
.chip {
background-color: var(--Component-Button-Inverted-Fill-Default);
border-color: var(--Component-Button-Inverted-Border-Default);
border-style: solid;
border-width: 1px;
border: 1px solid var(--Component-Button-Inverted-Border-Default);
border-radius: var(--Corner-radius-sm);
padding: var(--Space-x1) var(--Space-x15);
color: var(--Text-Interactive-Default);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
gap: var(--Space-x05);
}
.chip:hover {
/* TODO: change to proper Component-variable once it is available */
background-color: var(--Scandic-Peach-10);
/* TODO: change to proper Component-variable once it is available */
color: var(--Scandic-Red-100);
background-color: var(--Surface-Primary-Hover-Accent);
}
.chip:focus {
outline-offset: 4px;
outline-color: var(--Border-Interactive-Focus);
}