275f66fb8f
- Kopfleiste zusammengefasst: Suche-Pill + Themenfilter-Icon + Heute-Chip - Monats-Grid neutralisiert: weisser Grund, Punkt-Marker statt Zahl-Badge - Terminliste als Karten statt Zebra-Rows; Urgency in getönte Datums-Kachel - Aktionsleiste ans Card-Ende verschoben, ruhige Text+Icon-Links Enthält zusätzlich bestehende lokale Änderungen (Card, Header, ContactCard, InfoCard, PostCardCompact, FilesBlock, app.css, Storybook-Fixtures). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/sveltekit';
|
|
import FilesBlock from './FilesBlock.svelte';
|
|
|
|
const meta = {
|
|
title: 'CMS-Blocks/Files',
|
|
component: FilesBlock,
|
|
tags: ['autodocs'],
|
|
argTypes: { block: { control: 'object' } },
|
|
} satisfies Meta<typeof FilesBlock>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Standard: Story = {
|
|
// addon-a11y's Live-Scan crasht in Docs-Mode bei echten fokussierbaren
|
|
// <a>-Elementen (react-aria Cross-Iframe-Bug, Storybook 10). Files ist die
|
|
// einzige Story mit echten Links → hier deaktivieren.
|
|
parameters: { a11y: { test: 'off' } },
|
|
args: {
|
|
block: {
|
|
number: '08',
|
|
kicker: 'Downloads',
|
|
headline: 'Dokumente',
|
|
action: { url: '/downloads', linkName: 'Alle Downloads' },
|
|
description: 'Downloads zum Verfahren',
|
|
items: [
|
|
{
|
|
src: 'https://cms.pm86.de/api/assets/files/beispiel.pdf?_environment=windwiderstand',
|
|
title: 'Einwendung Vorlage',
|
|
description: 'Zum Ausfüllen und Einreichen beim zuständigen Landratsamt',
|
|
mime: 'application/pdf',
|
|
size: 248000,
|
|
filename: 'einwendung-vorlage.pdf',
|
|
},
|
|
{
|
|
src: 'https://cms.pm86.de/api/assets/files/karte.pdf?_environment=windwiderstand',
|
|
title: 'Übersichtskarte',
|
|
mime: 'application/pdf',
|
|
size: 1240000,
|
|
filename: 'uebersichtskarte.pdf',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
};
|