import type { Meta, StoryObj } from '@storybook/react'; import { List } from './list'; import { ListItem } from './list-item'; const meta = { component: List, title: 'Atoms/Lists/List', } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { children: [ Item 1, Item 2, Item 3, ], }, }; export const OrderedList: Story = { args: { ...Default.args, isOrdered: true, }, }; export const UnorderedList: Story = { args: { ...Default.args, isOrdered: false, }, }; export const Nested: Story = { args: { ...Default.args, children: [ Item 1, Item 2 Nested item 1 Nested item 2 Nested item 3 Deeper item 1 Deeper item 2 Deeper item 3 , Item 3, ], isOrdered: false, }, }; export const HierarchicalList: Story = { args: { ...OrderedList.args, children: [ Item 1 Subitem 1 Subitem 2 , Item 2 Subitem 1 Subitem 2 Nested item 1 Nested item 2 Subitem 3 , Item 3, ], isHierarchical: true, }, }; export const WithMarker: Story = { args: { ...Default.args, hideMarker: false, }, }; export const WithoutMarker: Story = { args: { ...Default.args, hideMarker: true, }, }; export const InlineList: Story = { args: { ...Default.args, children: [ Item 1, {'>'}, Item 2, {'>'}, Item 3, ], hideMarker: true, isInline: true, spacing: 'xs', }, }; export const ListInInlineList: Story = { args: { ...InlineList.args, children: [ Item 1, Item 2 Nested item 1 Nested item 2 , Item 3, ], }, };