import type { Meta, StoryObj } from '@storybook/react-webpack5'; import { FastFlag as FastFlagIcon } from '@transferwise/icons'; import { useRtlDiffI18n, withRTLDiff } from '../../../../.storybook/decorators/RtlDiffDecorator'; import Card from '..'; export default { component: Card, title: 'Layouts/Card/Tests', tags: ['!autodocs', '!manifest', 'deprecated'], } satisfies Meta; type Story = StoryObj; export const RTLDiff: Story = { render: () => { const i18n = useRtlDiffI18n(); return ( <> } /> } isExpanded > {i18n.expandedWithIconContent} {i18n.expandedNoIconContent} ); }, ...withRTLDiff({ i18n: { basicTitle: { en: 'Basic card', ar: 'بطاقة أساسية' }, basicDetails: { en: 'Some details about this card', ar: 'بعض التفاصيل عن هذه البطاقة' }, withIconTitle: { en: 'Card with icon', ar: 'بطاقة مع أيقونة' }, withIconDetails: { en: 'Details with an icon on the side', ar: 'تفاصيل مع أيقونة على الجانب', }, expandedWithIconTitle: { en: 'Expanded card with icon', ar: 'بطاقة موسّعة مع أيقونة' }, expandedWithIconDetails: { en: 'Expanded card showing content area', ar: 'بطاقة موسّعة تُظهر منطقة المحتوى', }, expandedWithIconContent: { en: 'Expanded content with padding affected by icon presence.', ar: 'محتوى موسّع بمساحة داخلية تتأثر بوجود الأيقونة.', }, expandedNoIconTitle: { en: 'Expanded card without icon', ar: 'بطاقة موسّعة بدون أيقونة' }, expandedNoIconDetails: { en: 'No icon variant', ar: 'نسخة بدون أيقونة' }, expandedNoIconContent: { en: 'Expanded content without icon padding.', ar: 'محتوى موسّع بدون مساحة داخلية للأيقونة.', }, }, }), };