diff --git a/apps/vr-tests/package.json b/apps/vr-tests/package.json index 4b96272ef03545..553d1d678df922 100644 --- a/apps/vr-tests/package.json +++ b/apps/vr-tests/package.json @@ -34,6 +34,7 @@ "@fluentui/react-make-styles": "^9.0.0-alpha.54", "@fluentui/react-provider": "^9.0.0-alpha.61", "@fluentui/react-tabs": "^1.0.0-beta.138", + "@fluentui/react-text": "^9.0.0-alpha.0", "@fluentui/react-theme": "^9.0.0-alpha.20", "@fluentui/scripts": "^1.0.0", "@fluentui/storybook": "^1.0.0", diff --git a/apps/vr-tests/src/stories/TextConverged.stories.tsx b/apps/vr-tests/src/stories/TextConverged.stories.tsx new file mode 100644 index 00000000000000..aa63f0cd62161c --- /dev/null +++ b/apps/vr-tests/src/stories/TextConverged.stories.tsx @@ -0,0 +1,155 @@ +import * as React from 'react'; +import { storiesOf } from '@storybook/react'; +import Screener from 'screener-storybook/src/screener'; +import { + Body, + Caption, + Display, + Headline, + LargeTitle, + Subheadline, + Text, + Title1, + Title2, + Title3, +} from '@fluentui/react-text'; +import { FluentProviderDecorator } from '../utilities/index'; + +const ScreenerWrapper = (story: () => React.ReactNode) => ( + +
+ {story()} +
+
+); + +storiesOf('react-text Text', module) + .addDecorator(ScreenerWrapper) + .addDecorator(FluentProviderDecorator) + .addStory('Default', () => ( + <> +

+ Default + Lorem ipsum dolor sit amet, nullam rhoncus tristique tellus in Portucale. +

+

+ No wrapping + + Lorem ipsum dolor sit amet, nullam rhoncus tristique tellus in Portucale. + +

+

+ Truncate + + Lorem ipsum dolor sit amet, nullam rhoncus tristique tellus in Portucale. + +

+

+ Italic + + Hello, world + +

+

+ Underline + + Hello, world + +

+

+ Strikethrough + + Hello, world + +

+

+ Sizes + + 100 + + + 200 + + + 300 + + + 400 + + + 500 + + + 600 + + + 700 + + + 800 + + + 900 + + + 1000 + +

+

+ Fonts + + Base + + + Monospace + + + Numeric + +

+

+ Weights + + Regular + + + Medium + + + Semibold + +

+

+ Alignments + + Start + + + Center + + + End + + + Justified lorem ipsum dolor sit amet, nullam rhoncus tristique tellus in Portucale. + +

+ + )); + +storiesOf('react-text Typography wrappers', module) + .addDecorator(ScreenerWrapper) + .addDecorator(FluentProviderDecorator) + .addStory('Display', () => ( + <> + Display + LargeTitle + Title1 + Title2 + Title3 + Headline + Subheadline + Body + Caption + + ));