import type { Meta, StoryObj } from '@storybook/react-webpack5'; import { useRtlDiffI18n, withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator'; import Info from '../../Info'; import Label from '..'; export default { component: Label, title: 'Forms/Label/Tests', tags: ['!autodocs', '!manifest'], } satisfies Meta; type Story = StoryObj; export const RTLDiff: Story = { render: () => { const i18n = useRtlDiffI18n(); return ( <> ); }, ...withRTLDiff({ fixedRows: { heights: 'auto' }, i18n: { plain: { en: 'Plain label text', ar: 'نص التسمية العادي' }, optional: { en: 'Label with optional marker', ar: 'تسمية مع علامة اختيارية' }, withInfo: { en: 'Label with info icon', ar: 'تسمية مع أيقونة معلومات' }, optionalWithInfo: { en: 'Label with optional and info icon', ar: 'تسمية مع اختيارية وأيقونة معلومات', }, tooltip: { en: 'Helpful tooltip content', ar: 'محتوى تلميح مفيد' }, moreInfo: { en: 'More information', ar: 'مزيد من المعلومات' }, }, }), };