/*! Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. */ import * as React from 'react'; import Screener from 'screener-storybook/src/screener'; import { storiesOf } from '@storybook/react'; import { FabricDecorator } from '../utilities'; import { Facepile, PersonaInitialsColor, PersonaSize, OverflowButtonType, IFacepileProps, } from 'office-ui-fabric-react'; import { TestImages } from '@uifabric/example-data'; const facepilePersonas = [ { imageUrl: TestImages.personaFemale, personaName: 'Annie Lindqvist', data: '50%', }, { imageUrl: TestImages.personaFemale, personaName: 'Aaron Reid', data: '$1,000', }, { personaName: 'Alex Lundberg', data: '75%', }, { personaName: 'Roko Kolar', data: '4 hrs', }, { imageInitials: 'CB', personaName: 'Christian Bergqvist', initialsColor: PersonaInitialsColor.green, data: '25%', }, { imageUrl: TestImages.personaFemale, imageInitials: 'VL', personaName: 'Valentina Lovric', initialsColor: PersonaInitialsColor.lightBlue, data: 'Emp1234', }, ]; const facepileProps: IFacepileProps = { personas: facepilePersonas, ariaDescription: 'To move through the items use left and right arrow keys.', }; storiesOf('Facepile', module) .addDecorator(FabricDecorator) .addDecorator(story => // prettier-ignore {story()} , ) .addStory('Root', () => , { rtl: true }) .addStory('Extra extra small', () => ( )) .addStory('Overflow', () => ( )) .addStory('Add face', () => ) .addStory('Custom button styles', () => ( ));