import type { Meta, StoryObj } from '@storybook/react-vite' import { RichTextDisplayField } from './RichTextDisplayField' import { TextItem } from './TextItem' import { Icon } from './Icon' const meta = { title: 'Components/RichText', component: RichTextDisplayField, tags: ['autodocs'], parameters: { layout: 'padded' }, argTypes: { align: { control: 'select', options: ['LEFT', 'CENTER', 'RIGHT'] }, labelPosition: { control: 'select', options: ['ABOVE', 'ADJACENT', 'COLLAPSED', 'JUSTIFIED'] }, marginAbove: { control: 'select', options: ['NONE', 'EVEN_LESS', 'LESS', 'STANDARD', 'MORE', 'EVEN_MORE'] }, marginBelow: { control: 'select', options: ['NONE', 'EVEN_LESS', 'LESS', 'STANDARD', 'MORE', 'EVEN_MORE'] }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { args: { labelPosition: 'COLLAPSED', value: [ , , ], }, } export const UserProfileWithIcons: Story = { args: { labelPosition: 'COLLAPSED', value: [ , ' Xavier Jones']} size="MEDIUM" style="STRONG" />, '\n', , ' (555) 123-4567']} color="SECONDARY" />, '\n', , ' Reston, VA']} color="SECONDARY" />, ], }, } export const TextStyles: Story = { args: { labelPosition: 'COLLAPSED', value: [ , , , , , , , ], }, } export const InteractiveLinks: Story = { args: { value: [ 'In addition to a personal statement, candidates may submit up to three ', , ' Fine Art']} link={() => alert('Fine Art clicked!')} />, ', ', , ' Audio']} link={() => alert('Audio clicked!')} />, ', or ', , ' Video']} link={() => alert('Video clicked!')} />, ' media samples.', ], }, } export const StandaloneNavigationLinks: Story = { args: { value: [ , ' Home']} link={() => alert('Home clicked!')} linkStyle="STANDALONE" />, '\n', , ' My Open Requests']} link={() => alert('Requests clicked!')} linkStyle="STANDALONE" />, '\n', , ' My Documents']} link={() => alert('Documents clicked!')} linkStyle="INLINE" />, ], }, } export const ColorVariations: Story = { args: { value: [ , , , , , '\n', , , , ], }, } export const TextAlignment: Story = { render: () => (
]} /> ]} /> ]} />
), }