import React from "react"; import type { Meta, StoryObj } from "@storybook/react"; import { SummaryList, SummaryListActions, SummaryListItem, SummaryListKey, SummaryListValue, SummaryListCard, SummaryListCardAction, Typography, } from "../../.."; const meta: Meta = { title: "SummaryList", component: SummaryList, }; export default meta; type Story = StoryObj; const primary: Story = { name: "default", render: (_args) => ( Name Sarah Philips Change Date of birth 5 January 1978 Change Address 72 Guild Street
London
SE23 6FH
Change
Contact details 07700 900457 sarah.phillips@example.com Change
), }; const visuallyHidden: Story = { name: "visually hidden text", render: (_args) => ( Name Sarah Philips Change name Date of birth 5 January 1978 Change date of birth Address 72 Guild Street
London
SE23 6FH
Change address
Contact details 07700 900457 sarah.phillips@example.com Change contact details
), }; const noAction: Story = { name: "no actions", render: (_args) => ( Name Sarah Philips Date of birth 5 January 1978 Address 72 Guild Street
London
SE23 6FH
Contact details 07700 900457 sarah.phillips@example.com
), }; const rowNoAction: Story = { name: "row no actions", render: (_args) => ( Name Sarah Philips Date of birth 5 January 1978 Change Address 72 Guild Street
London
SE23 6FH
Change
Contact details 07700 900457 sarah.phillips@example.com Change
), }; const noBorders: Story = { name: "no borders", render: (_args) => ( Name Sarah Philips Date of birth 5 January 1978 Address 72 Guild Street
London
SE23 6FH
Contact details 07700 900457 sarah.phillips@example.com
), }; const summaryCards: Story = { name: "summary cards", render: (_args) => ( <> Age 38 Change Nationality UK national resident in UK Change Working situation Part time – less than 30 hours a week Change Details known Yes Change Relationship to lead tenant Partner Change Age 42 Change Working situation Unable to work because of long-term sickness or disability Change Details known Yes Change Relationship to lead tenant Child Change Age 7 Change Working situation Child under 16 Change ), }; const summaryCardsWithActions: Story = { name: "summary cards with actions", render: (_args) => ( <> Delete choice Withdraw Course English (3DMD)
PGCE with QTS full time
Location School name
Road, City, SW1 1AA
Delete choice Withdraw Course English (Q3X1)
PGCE with QTS full time
Location School name
Road, City, SW2 1AA
), }; export { primary, visuallyHidden, noAction, noBorders, rowNoAction, summaryCards, summaryCardsWithActions, };