import { BNBChainIcon, CaretDownIcon } from '@bnb-chain/icons'; import { ButtonProps, Flex, FlexProps, StackProps, VStack } from '@chakra-ui/react'; import { Meta } from '@storybook/react'; import { theme } from '../../modules/theme'; import { COLOR_SCHEMES } from '../../modules/theme/components/button'; import { IconButton } from '../IconButton'; import { Space } from '..'; import { Button, ButtonRightAddon } from '.'; const BUTTON_VARIANTS = ['solid', 'subtle', 'ghost', 'outline', 'text'] as const; const BUTTON_SIZES = ['xs', 'sm', 'md', 'lg', 'xl', '2xl'] as const; const BUTTON_COLOR_SCHEMES = COLOR_SCHEMES; export default { title: 'Components/Atoms/Button', component: Button, } as Meta; const Stack = (props: StackProps) => { return ( ); }; const ColorSchemeGrid = (props: FlexProps) => { return ( ); }; export const Default = (props: ButtonProps) => { return ( {BUTTON_COLOR_SCHEMES.map((colorScheme) => { return ( {BUTTON_VARIANTS.map((it) => { return ( ); })} ); })} ); }; export const Sizes = (props: ButtonProps) => { return ( {BUTTON_SIZES.map((it) => { return ( ); })} ); }; export const Disabled = () => { return ; }; export const Loading = () => { return ( <> ); }; export const Icon = () => { return ( {BUTTON_COLOR_SCHEMES.map((colorScheme) => { return ( {BUTTON_VARIANTS.map((it) => { return ( } aria-label="BNB Chain" /> ); })} ); })} {BUTTON_SIZES.map((it) => { return ( } aria-label="BNB Chain"> {it} ); })} ); }; export const WithLeftIcon = () => { return ( {BUTTON_COLOR_SCHEMES.map((colorScheme) => { return ( {BUTTON_VARIANTS.map((it) => { return ( ); })} ); })} {BUTTON_SIZES.map((it) => { return ( ); })} ); }; export const WithRightAddon = () => { return ( {BUTTON_COLOR_SCHEMES.map((colorScheme) => { return ( {BUTTON_VARIANTS.map((it) => { return ( ); })} ); })} {BUTTON_SIZES.map((it) => { return ( ); })} ); };