import type { Meta, StoryObj } from '@storybook/react-vite' import { StampField } from './StampField' const meta = { title: 'Components/Stamp', component: StampField, tags: ['autodocs'], parameters: { layout: 'centered' }, argTypes: { size: { control: 'select', options: ['TINY', 'SMALL', 'MEDIUM', 'LARGE'] }, shape: { control: 'select', options: ['SQUARED', 'SEMI_ROUNDED', 'ROUNDED'] }, align: { control: 'select', options: ['START', 'CENTER', 'END'] }, labelPosition: { control: 'select', options: ['ABOVE', 'ADJACENT', 'COLLAPSED', 'JUSTIFIED'] }, backgroundColor: { control: 'text' }, contentColor: { control: 'text' }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { args: { backgroundColor: 'ACCENT', icon: 'star', contentColor: 'STANDARD', tooltip: 'Favorite', }, } export const SemanticColors: Story = { render: () => (
), } export const TransparentBackground: Story = { render: () => (
), } export const TextStamps: Story = { args: { backgroundColor: 'RED_500', text: '1', align: 'CENTER', }, } export const Sizes: Story = { render: () => (
), } export const Shapes: Story = { render: () => (
), } export const WithLabelAndInstructions: Story = { args: { label: 'Priority Level', instructions: 'Indicates the urgency of this item', labelPosition: 'ABOVE', icon: 'star', text: '7', size: 'LARGE', backgroundColor: 'NEGATIVE', helpTooltip: 'High priority items require immediate attention', }, }