-
Notifications
You must be signed in to change notification settings - Fork 2
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
3 changed files
with
52 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
...-frontend-react/src/__stories__/patterns/HelpUsersDecideWhenAndWhereToGetCare.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,21 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { NonUrgentCareCard, UrgentCareCard, EmergencyCareCard } from '@/components/navigation/card/Card.stories'; | ||
|
||
/** | ||
* Care cards help users identify and understand the care they need, who to contact and how quickly. | ||
* | ||
* https://service-manual.nhs.uk/design-system/patterns/help-users-decide-when-and-where-to-get-care | ||
*/ | ||
const meta: Meta = { | ||
title: 'Patterns/Tasks/Help users decide when and where to get care', | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const NonUrgent: Story = NonUrgentCareCard; | ||
|
||
export const Urgent: Story = UrgentCareCard; | ||
|
||
export const Emergency: Story = EmergencyCareCard; |
25 changes: 25 additions & 0 deletions
25
...hsuk-frontend-react/src/__stories__/patterns/ReassureUsersThatAPageIsUpToDate.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,25 @@ | ||
import React from 'react'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { Paragraph } from '@/components/styles/typography/paragraph/Paragraph'; | ||
|
||
/** | ||
* Use review dates to let users know when a page was last checked and will be checked again. | ||
* | ||
* https://service-manual.nhs.uk/design-system/patterns/reassure-users-that-a-page-is-up-to-date | ||
*/ | ||
const meta: Meta = { | ||
title: 'Patterns/Tasks/Reassure users that a page is up to date', | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const ReassureUsersThatAPageIsUpToDate: Story = { | ||
render: (args) => ( | ||
<Paragraph {...args} variant="small" className="nhsuk-u-secondary-text-color nhsuk-u-margin-top-7 nhsuk-u-margin-bottom-0"> | ||
Page last reviewed: 15 March 2021<br /> | ||
Next review due: 15 March 2024 | ||
</Paragraph> | ||
), | ||
}; |