generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
297 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,26 @@ import { Meta, StoryObj } from '@storybook/react'; | |
import '@nl-design-system-unstable/voorbeeld-design-tokens/dist/index.css'; | ||
import '@gemeente-denhaag/design-tokens-components/dist/theme/index.css'; | ||
import './index.css'; | ||
import { IconArrowLeft } from '@tabler/icons-react'; | ||
import { Heading1, Heading2, Icon, Link, PreHeading } from '@utrecht/component-library-react/dist/css-module'; | ||
import { IconArrowLeft, IconPencil } from '@tabler/icons-react'; | ||
import { | ||
Button, | ||
ButtonGroup, | ||
DataList, | ||
DataListItem, | ||
DataListKey, | ||
DataListValue, | ||
Heading1, | ||
Heading2, | ||
Heading3, | ||
HeadingGroup, | ||
Icon, | ||
Link, | ||
LinkButton, | ||
MultilineData, | ||
PreHeading, | ||
PreserveData, | ||
URLData, | ||
} from '@utrecht/component-library-react/dist/css-module'; | ||
import { ReactElement } from 'react'; | ||
import { Layout } from './components/Layout'; | ||
import { DenHaagLogo, PageHeaderLogo } from './components/Logo'; | ||
|
@@ -30,8 +48,94 @@ const TemplatePage = ({ logo, theme }: { logo: ReactElement; theme: string }) => | |
Terug | ||
</Link> | ||
<Heading1>Vraag aan de gemeente</Heading1> | ||
<PreHeading>Stap 3 van 4</PreHeading> | ||
<Heading2>Controleer uw gegevens</Heading2> | ||
<HeadingGroup> | ||
<PreHeading>Stap 3 van 4</PreHeading> | ||
<Heading2>Controleer uw gegevens</Heading2> | ||
</HeadingGroup> | ||
<> | ||
<Heading3>Uw vraag</Heading3> | ||
<Link href="/#" className="voorbeeld-back-link"> | ||
<Icon> | ||
<IconPencil /> | ||
</Icon> | ||
Aanpassen | ||
</Link> | ||
<DataList> | ||
<DataListItem className="voorbeeld-data-list-item"> | ||
<DataListKey>Uw vraag</DataListKey> | ||
<DataListValue> | ||
<MultilineData> | ||
Beste meneer of mevrouw, Ik heb 4 weken geleden een aanvraag voor bijstandsuitkering aangevraagd maar ik | ||
heb nog steeds niets gehoord. Ik wil graag dat u dit oplost. Met vriendelijke groet, Jeroen van Drouwen | ||
</MultilineData> | ||
</DataListValue> | ||
</DataListItem> | ||
</DataList> | ||
</> | ||
<> | ||
<h3>Uw gegevens</h3> | ||
<Link href="/#" className="voorbeeld-back-link"> | ||
<Icon> | ||
<IconPencil /> | ||
</Icon> | ||
Aanpassen | ||
</Link> | ||
<DataList className="voorbeeld-datalist-style"> | ||
<DataListItem className="voorbeeld-data-list-item"> | ||
<DataListKey>Naam</DataListKey> | ||
<DataListValue> | ||
<PreserveData>Jeroen van Drouwen</PreserveData> | ||
</DataListValue> | ||
</DataListItem> | ||
<DataListItem className="voorbeeld-data-list-item"> | ||
<DataListKey>Straat</DataListKey> | ||
<DataListValue> | ||
<PreserveData>Laan der Voorbeelden</PreserveData> | ||
</DataListValue> | ||
</DataListItem> | ||
<DataListItem className="voorbeeld-data-list-item"> | ||
<DataListKey>Huisnummer</DataListKey> | ||
<DataListValue> | ||
<PreserveData>99</PreserveData> | ||
</DataListValue> | ||
</DataListItem> | ||
<DataListItem className="voorbeeld-data-list-item"> | ||
<DataListKey>Postcode</DataListKey> | ||
<DataListValue> | ||
<PreserveData>1024 VP</PreserveData> | ||
</DataListValue> | ||
</DataListItem> | ||
<DataListItem className="voorbeeld-data-list-item"> | ||
<DataListKey>Woonplaats</DataListKey> | ||
<DataListValue> | ||
<PreserveData>Voorbeeld</PreserveData> | ||
</DataListValue> | ||
</DataListItem> | ||
<DataListItem className="voorbeeld-data-list-item"> | ||
<DataListKey>E-mailadres</DataListKey> | ||
<DataListValue> | ||
<URLData>[email protected]</URLData> | ||
</DataListValue> | ||
</DataListItem> | ||
<DataListItem className="voorbeeld-data-list-item"> | ||
<DataListKey>Telefoonnummer</DataListKey> | ||
<DataListValue> | ||
<PreserveData>0650618346</PreserveData> | ||
</DataListValue> | ||
</DataListItem> | ||
</DataList> | ||
</> | ||
<ButtonGroup direction="column"> | ||
<Button type="submit" className="voorbeeld-button-spacing" appearance="primary-action-button"> | ||
Volgende stap | ||
</Button> | ||
<LinkButton inline className="voorbeeld-button-link"> | ||
Opslaan en later verder | ||
</LinkButton> | ||
<LinkButton inline className="voorbeeld-button-link"> | ||
Stoppen met formulier | ||
</LinkButton> | ||
</ButtonGroup> | ||
</Layout> | ||
</> | ||
); | ||
|
84 changes: 84 additions & 0 deletions
84
packages/storybook/src/templates/form-wmebv/wmebv-4-succes.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import '@nl-design-system-unstable/voorbeeld-design-tokens/dist/index.css'; | ||
import '@gemeente-denhaag/design-tokens-components/dist/theme/index.css'; | ||
import './index.css'; | ||
import { IconCircleCheck, IconFileText, IconPrinter } from '@tabler/icons-react'; | ||
import { | ||
Alert, | ||
ButtonGroup, | ||
Heading1, | ||
Heading2, | ||
Icon, | ||
Link, | ||
Paragraph, | ||
Strong, | ||
UnorderedList, | ||
UnorderedListItem, | ||
URLData, | ||
} from '@utrecht/component-library-react/dist/css-module'; | ||
import { ReactElement } from 'react'; | ||
import { Layout } from './components/Layout'; | ||
import { DenHaagLogo, PageHeaderLogo } from './components/Logo'; | ||
|
||
const meta = { | ||
title: 'Templates/Meerstappenformulier/WMEBV Contactformulier/6 - Succes', | ||
id: 'wmebv-success', | ||
parameters: { | ||
layout: 'fullscreen', | ||
}, | ||
} satisfies Meta; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
const TemplatePage = ({ logo, theme }: { logo: ReactElement; theme: string }) => ( | ||
<> | ||
<Layout logo={logo} className={theme}> | ||
<Alert type="ok"> | ||
<Heading1> | ||
<Icon> | ||
<IconCircleCheck size={32} /> | ||
</Icon> | ||
Uw aanvraag is met succes verstuurd | ||
</Heading1> | ||
<Paragraph>Zaaknummer: 2bf9-cne2-9910</Paragraph> | ||
</Alert> | ||
<Heading2>Wat gaat er nu gebeuren?</Heading2> | ||
<UnorderedList> | ||
<UnorderedListItem> | ||
U ontvangt een bevestigingsmail op{' '} | ||
<Strong> | ||
<URLData>[email protected]</URLData> | ||
</Strong> | ||
</UnorderedListItem> | ||
<UnorderedListItem>De afdeling Vraagbaak gaat met uw vraag aan de slag.</UnorderedListItem> | ||
</UnorderedList> | ||
<ButtonGroup direction="column"> | ||
<Link href="#"> | ||
<Icon> | ||
<IconPrinter /> | ||
</Icon> | ||
Print uw vraag | ||
</Link> | ||
<Link href="/" download="vraag.pdf"> | ||
<Icon> | ||
<IconFileText /> | ||
</Icon> | ||
Download uw vraag als PDF | ||
</Link> | ||
<Link href="/#"> | ||
Terug naar <URLData>gemeentevoorbeeld.nl</URLData> | ||
</Link> | ||
</ButtonGroup> | ||
</Layout> | ||
</> | ||
); | ||
|
||
export const Default: Story = { | ||
render: () => <TemplatePage logo={<PageHeaderLogo />} theme={'voorbeeld-theme'} />, | ||
}; | ||
|
||
export const DenHaagTheme: Story = { | ||
render: () => <TemplatePage logo={<DenHaagLogo />} theme={'denhaag-theme'} />, | ||
}; |