import React from 'react';
import { typography, colors } from '@moda/tokens';
import { States } from '../../utilities';
import { Text, TextProps, TextTreatment, TextColor, TextFontFamily } from './Text';
export default { title: 'Components/Text' };
const TREATMENTS = Object.keys(typography['text-treatments']).map(treatment => ({
treatment
})) as { treatment: TextTreatment }[];
const COLORS = Object.keys(colors.all).map(color => ({ color })) as { color: TextColor }[];
const FAMILIES = Object.keys(typography.fonts).map(family => ({ family })) as {
family: TextFontFamily;
}[];
export const Treatments = () => (
states={TREATMENTS}>
Moda Operandi
);
export const Colors = () => (
> states={COLORS}>
Moda Operandi
);
export const Families = () => (
> states={FAMILIES}>
Moda Operandi
);
export const Complex = () => (
Moda Operandi
{' — '}
Happy Holidays
);