import React from 'react';
import {
ALIGN_ITEMS,
COLORS,
DISPLAY,
SIZES,
} from '../../../helpers/constants/design-system';
import { ValidBackgroundColors, ValidBorderColors } from '../../ui/box';
import Box from '../../ui/box/box';
import README from './README.mdx';
import { BaseAvatar } from './base-avatar';
const marginSizeKnobOptions = [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
'auto',
];
export default {
title: 'Components/ComponentLibrary/BaseAvatar',
id: __filename,
component: BaseAvatar,
parameters: {
docs: {
page: README,
},
},
argTypes: {
size: {
control: 'select',
options: Object.values(SIZES),
},
backgroundColor: {
options: ValidBackgroundColors,
control: 'select',
},
borderColor: {
options: ValidBorderColors,
control: 'select',
},
display: {
options: Object.values(DISPLAY),
control: 'select',
defaultValue: DISPLAY.FLEX,
table: { category: 'box props' },
},
marginTop: {
options: marginSizeKnobOptions,
control: 'select',
table: { category: 'box props' },
},
marginRight: {
options: marginSizeKnobOptions,
control: 'select',
table: { category: 'box props' },
},
marginBottom: {
options: marginSizeKnobOptions,
control: 'select',
table: { category: 'box props' },
},
marginLeft: {
options: marginSizeKnobOptions,
control: 'select',
table: { category: 'box props' },
},
},
args: {
size: SIZES.MD,
backgroundColor: COLORS.BACKGROUND_ALTERNATIVE,
borderColor: COLORS.BORDER_DEFAULT,
},
};
export const DefaultStory = (args) => B;
DefaultStory.storyName = 'Default';
export const Size = (args) => (
);
export const Children = (args) => (
A
);
export const BackgroundAndBorderColor = (args) => (
B
K
R
G
R
);