import React from 'react'; import { SIZES, DISPLAY, ALIGN_ITEMS, COLORS, BACKGROUND_COLORS, } from '../../../helpers/constants/design-system'; import Box from '../../ui/box/box'; import { ICON_NAMES } 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(ICON_NAMES), control: 'select', }, size: { control: 'select', options: Object.values(AVATAR_ICON_SIZES), }, backgroundColor: { control: 'select', options: Object.values(BACKGROUND_COLORS), }, color: { control: 'select', options: Object.values(COLORS), }, 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: SIZES.MD, }, }; const Template = (args) => { return ; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const Size = (args) => ( ); Size.args = { iconName: ICON_NAMES.CHECK_CIRCLE_ON_FILLED, }; export const IconName = (args) => ( ); export const ColorAndBackgroundColor = (args) => ( );