import * as React from 'react'; import { SharedSignal, SignalField, YouCheckedOutSignal, MalwareDetectedSignal, BlockedSignal, MissingMetadataSignal, WarningSignal, AwaitingApprovalSignal, TrendingSignal, SomeoneCheckedOutSignal, NewSignal, MentionSignal, CommentsSignal, UnseenReplySignal, UnseenEditSignal, EmailedSignal, RecordSignal, ReadOnlySignal, FollowedSignal, NotFollowedSignal, } from '@uifabric/experiments'; import Screener from 'screener-storybook/src/screener'; import { storiesOf } from '@storybook/react'; import { FabricDecorator } from '../utilities'; import { Fabric } from 'office-ui-fabric-react'; interface ISignalExampleProps { name: string; signal: React.ReactNode; } const SignalExample: React.FunctionComponent = ( props: ISignalExampleProps, ): JSX.Element => { return (
{props.name}
); }; storiesOf('Signals', module) .addDecorator(FabricDecorator) .addDecorator(story => ( {story()} )) .addStory('You checked out', () => ( } /> )) .addStory('Malware detected', () => ( } /> )) .addStory('Blocked', () => } />) .addStory('Missing metadata', () => ( } /> )) .addStory('Warning', () => } />) .addStory('Awaiting approval', () => ( } /> )) .addStory('Trending', () => } />) .addStory('Someone checked out', () => ( } /> )) .addStory('New', () => } />) .addStory('New (positioning)', () => } />) .addStory('Mention', () => } />) .addStory('Comments', () => } />) .addStory('Comments (count)', () => ( 2} /> )) .addStory('Unseen reply', () => ( } /> )) .addStory('Unseen edit', () => } />) .addStory('Emailed', () => } />) .addStory('Record', () => } />) .addStory('Read-only', () => } />) .addStory('Shared', () => } />) .addStory('Follow', () => } />) .addStory('NotFollow', () => ( } /> ));