import React from 'react'; import { COLORS, SIZES, DISPLAY, ALIGN_ITEMS, TEXT_COLORS, BACKGROUND_COLORS, BORDER_COLORS, } from '../../../helpers/constants/design-system'; import Box from '../../ui/box/box'; import README from './README.mdx'; import { AvatarToken } from './avatar-token'; export default { title: 'Components/ComponentLibrary/AvatarToken', id: __filename, component: AvatarToken, parameters: { docs: { page: README, }, }, argTypes: { size: { control: 'select', options: Object.values(SIZES), }, color: { options: Object.values(TEXT_COLORS), control: 'select', }, backgroundColor: { options: Object.values(BACKGROUND_COLORS), control: 'select', }, borderColor: { options: Object.values(BORDER_COLORS), control: 'select', }, tokenName: { control: 'text', }, tokenImageUrl: { control: 'text', }, showHalo: { control: 'boolean', }, }, args: { tokenName: 'ast', tokenImageUrl: './AST.png', size: SIZES.MD, showHalo: false, }, }; const Template = (args) => { return ; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const Size = (args) => ( ); export const tokenName = Template.bind({}); tokenName.args = { tokenImageUrl: '', }; export const tokenImageUrl = Template.bind({}); export const showHalo = Template.bind({}); showHalo.args = { showHalo: true, }; export const ColorBackgroundColorAndBorderColor = (args) => ( ); ColorBackgroundColorAndBorderColor.args = { tokenImageUrl: '', };