// @flow import * as React from 'react'; import { select, withKnobs } from '@storybook/addon-knobs'; import Button from './button'; import styled from 'styled-components'; import SvgIcon, { IconEnum } from './svg-icon'; export default { title: '1st Party | Button', decorators: [withKnobs], }; const Wrapper: React.ComponentType = styled.div` display: flex; & > * { margin-right: 0.5rem; margin-top: 0.8rem; } `; Wrapper.displayName = '...'; const Padded: React.ComponentType = styled.div` margin: 2rem auto; `; Padded.displayName = '...'; const sizes = { Default: 'default', Small: 'small', }; const variants = { Outlined: 'outlined', Contained: 'contained', Text: 'text', }; const themeColors = { Default: null, Surprise: 'surprise', Info: 'info', Success: 'success', Notice: 'notice', Warning: 'warning', Danger: 'danger', }; export const outlined = () => ( ); export const text = () => ( ); export const contained = () => ( ); export const disabled = () => ( ); export const withIcon = () => ( ); export const reference = () => ( {['default', 'small'].map(s => (

size={s}

))}
);