import React from 'react'; import { Size, DISPLAY, AlignItems, BackgroundColor, IconColor, Color, } from '../../../helpers/constants/design-system'; import Box from '../../ui/box/box'; import { IconName } from '..'; import README from './README.mdx'; import { AvatarIcon, AVATAR_ICON_SIZES } from '.'; const marginSizeControlOptions = [ undefined, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 'auto', ]; export default { title: 'Components/ComponentLibrary/AvatarIcon', component: AvatarIcon, parameters: { docs: { page: README, }, }, argTypes: { iconName: { options: Object.values(IconName), control: 'select', }, size: { control: 'select', options: Object.values(AVATAR_ICON_SIZES), }, backgroundColor: { control: 'select', options: Object.values(BackgroundColor), }, color: { control: 'select', options: Object.values(Color), }, className: { control: 'text', }, marginTop: { options: marginSizeControlOptions, control: 'select', table: { category: 'box props' }, }, marginRight: { options: marginSizeControlOptions, control: 'select', table: { category: 'box props' }, }, marginBottom: { options: marginSizeControlOptions, control: 'select', table: { category: 'box props' }, }, marginLeft: { options: marginSizeControlOptions, control: 'select', table: { category: 'box props' }, }, }, args: { size: Size.MD, }, }; const Template = (args) => { return ; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const SizeStory = (args) => ( ); SizeStory.storyName = 'Size'; SizeStory.args = { iconName: IconName.Confirmation, }; export const IconNameStory = (args) => ( ); IconNameStory.storyName = 'Icon Name'; export const ColorAndBackgroundColor = (args) => ( );