import { Meta, StoryObj } from '@storybook/react'; import React from 'react'; import { Button } from '.'; import { SendIcon } from './SendIcon'; export default { argTypes: {}, component: Button, title: 'Components/Button', } as Meta; export const Default: StoryObj = { args: { backgroundColorToken: 'white100', borderColorToken: 'white900', children: 'Default', typographyColorToken: 'white950', }, }; export const Rounded: StoryObj = { args: { backgroundColorToken: 'white100', borderColorToken: 'white900', children: 'Default', rounded: true, typographyColorToken: 'white950', }, }; export const WithHover: StoryObj = { args: { backgroundColorToken: 'black100', borderColorToken: 'primary500', children: 'Default', hoverBackgroundColorToken: 'white100', hoverBorderColorToken: 'error500', hoverTypographyColorToken: 'error500', rounded: true, typographyColorToken: 'primary500', }, }; export const WithLoading: StoryObj = { args: { backgroundColorToken: 'white100', borderColorToken: 'white900', bottomLeftText: 'Bottom left text!', children: 'Default', loading: true, }, }; export const WithBottomLeftText: StoryObj = { args: { backgroundColorToken: 'white100', borderColorToken: 'white900', bottomLeftText: 'Bottom left text!', children: 'Default', }, }; export const WithCustomTypography: StoryObj = { args: { backgroundColorToken: 'white100', borderColorToken: 'white900', children: 'Default', typographyColorToken: 'error500', typographyToken: 'bodySmallMedium', }, }; export const WithBottomLeftTextAsError: StoryObj = { args: { backgroundColorToken: 'error900', borderColorToken: 'error700', bottomLeftText: 'Bottom left text!', bottomLeftTextColorToken: 'error500', bottomLeftTextTypographyToken: 'bodySmallBold', children: 'Default', typographyColorToken: 'error500', typographyToken: 'bodySmallMedium', }, }; export const Disabled: StoryObj = { args: { backgroundColorToken: 'white100', borderColorToken: 'white900', children: 'Default', disabled: true, typographyColorToken: 'white950', }, }; export const WithIcon: StoryObj = { args: { backgroundColorToken: 'black700', borderColorToken: 'white900', children: 'Default', hoverTypographyColorToken: 'primary500', iconLeft: , iconRight: , rounded: true, typographyColorToken: 'white100', typographyToken: 'bodyMediumMedium', }, }; export const WithCustomColorTokenIcon: StoryObj = { args: { backgroundColorToken: 'black700', borderColorToken: 'white900', children: 'Default', hoverIconColorToken: 'error700', hoverTypographyColorToken: 'primary500', iconColorToken: 'error500', iconLeft: , iconRight: , rounded: true, typographyColorToken: 'white100', typographyToken: 'bodyMediumMedium', }, };