/* eslint-disable deprecate/import */ import React from "react"; import { Meta } from "@storybook/react"; import { css } from "@emotion/react"; import { Text as LegacyText, TextProps as LegacyTextProps, } from "@arizeai/components"; import { Flex, Text, TextProps } from "@phoenix/components"; import { GLOBAL_COLORS } from "./constants/colorConstants"; const meta: Meta = { title: "Text", component: Text, parameters: { controls: { expanded: true }, }, }; export default meta; const sizes: TextProps["size"][] = ["XS", "S", "M", "L"]; const legacySizes: LegacyTextProps["textSize"][] = [ "small", "medium", "large", "xlarge", ]; const colors: TextProps["color"][] = [ "text-900", "text-700", "text-300", "success", "danger", "warning", ...GLOBAL_COLORS, ]; /** * A gallery of all the variants */ export const Gallery = () => { return ( ); }; function GalleryComponent() { return (

{sizes.map((size) => { return ( {`I will not waste chalk`} ); })}

{sizes.map((size) => { return ( {`I will not waste chalk`} ); })}

{colors.map((color) => { return ( {`I will not waste chalk`} ); })}

); } function LegacyGalleryComponent() { const Text = LegacyText; return (

{legacySizes.map((size) => { return ( {`I will not waste chalk`} ); })}

{legacySizes.map((size) => { return ( {`I will not waste chalk`} ); })}

{colors.map((color) => { return ( {`I will not waste chalk`} ); })}

{colors.map((color) => { return ( {`I will not waste chalk`} ); })}

); }