diff --git a/ui/components/component-library/text/text.stories.tsx b/ui/components/component-library/text/text.stories.tsx index a12965c56..3ece16787 100644 --- a/ui/components/component-library/text/text.stories.tsx +++ b/ui/components/component-library/text/text.stories.tsx @@ -4,12 +4,12 @@ import { DISPLAY, BackgroundColor, BorderColor, - FONT_WEIGHT, - FONT_STYLE, + FontWeight, + FontStyle, TextColor, - TEXT_ALIGN, - OVERFLOW_WRAP, - TEXT_TRANSFORM, + TextAlign, + OverflowWrap, + TextTransform, FRACTIONS, FLEX_DIRECTION, TextVariant, @@ -113,9 +113,9 @@ export const ColorStory: ComponentStory = (args) => { }; ColorStory.storyName = 'Color'; -export const FontWeight: ComponentStory = (args) => ( +export const FontWeightStory: ComponentStory = (args) => ( <> - {Object.values(FONT_WEIGHT).map((weight) => ( + {Object.values(FontWeight).map((weight) => ( {weight} @@ -123,9 +123,11 @@ export const FontWeight: ComponentStory = (args) => ( ); -export const FontStyle: ComponentStory = (args) => ( +FontWeightStory.storyName = 'Font Weight'; + +export const FontStyleStory: ComponentStory = (args) => ( <> - {Object.values(FONT_STYLE).map((style) => ( + {Object.values(FontStyle).map((style) => ( {style} @@ -133,9 +135,11 @@ export const FontStyle: ComponentStory = (args) => ( ); -export const TextTransform: ComponentStory = (args) => ( +FontStyleStory.storyName = 'Font Style'; + +export const TextTransformStory: ComponentStory = (args) => ( <> - {Object.values(TEXT_TRANSFORM).map((transform) => ( + {Object.values(TextTransform).map((transform) => ( {transform} @@ -143,9 +147,11 @@ export const TextTransform: ComponentStory = (args) => ( ); -export const TextAlign: ComponentStory = (args) => ( +TextTransformStory.storyName = 'Text Transform'; + +export const TextAlignStory: ComponentStory = (args) => ( <> - {Object.values(TEXT_ALIGN).map((align) => ( + {Object.values(TextAlign).map((align) => ( {align} @@ -153,21 +159,25 @@ export const TextAlign: ComponentStory = (args) => ( ); -export const OverflowWrap: ComponentStory = (args) => ( +TextAlignStory.storyName = 'Text Align'; + +export const OverflowWrapStory: ComponentStory = (args) => ( - - {OVERFLOW_WRAP.NORMAL}: 0x39013f961c378f02c2b82a6e1d31e9812786fd9d + + {OverflowWrap.Normal}: 0x39013f961c378f02c2b82a6e1d31e9812786fd9d - - {OVERFLOW_WRAP.BREAK_WORD}: 0x39013f961c378f02c2b82a6e1d31e9812786fd9d + + {OverflowWrap.BreakWord}: 0x39013f961c378f02c2b82a6e1d31e9812786fd9d ); +OverflowWrapStory.storyName = 'Overflow Wrap'; + export const Ellipsis: ComponentStory = (args) => (