import React from 'react';
import styled from '@emotion/styled';
import { storiesOf } from '@storybook/react';
import { boolean } from '@storybook/addon-knobs';
import AlertIcon from 'components/Icon/icons/alert/alert';
import CloseIcon from 'components/Icon/icons/content/close';
import StarIcon from 'components/Icon/icons/toggle/star';
import StarFilledIcon from 'components/Icon/icons/toggle/starFilled';
import Button, { ButtonWithComponent, IconButton, CloseButton } from './index';
import BaseApp from '../BaseApp';
const Container = styled.div`
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
`;
const CustomComponent = ButtonWithComponent('a');
storiesOf('Components/Button', module)
.add('Solid', () => (
Small
Default
Medium
Large
Extra Large
Block
Loading
Disabled
With Icon
} variant="link" solid>
With Icon
} solid>
With Icon
} variant="primary" solid>
With Icon
} variant="secondary" solid>
With Icon
} variant="danger" solid>
With Icon
With Icon before the label
}
iconPosition="before"
variant="link"
solid
>
With Icon
} iconPosition="before" solid>
With Icon
}
iconPosition="before"
variant="primary"
solid
>
With Icon
}
iconPosition="before"
variant="secondary"
solid
>
With Icon
}
iconPosition="before"
variant="danger"
solid
>
With Icon
With Icon and loading
} variant="link" isLoading solid>
With Icon
} isLoading solid>
With Icon
} variant="primary" isLoading solid>
With Icon
} variant="secondary" isLoading solid>
With Icon
} variant="danger" isLoading solid>
With Icon
WithComponent
{'Button with tag'}
))
.add('Subtle', () => (
Small
Default
Medium
Large
Extra Large
Block
Loading
Disabled
With Icon
} variant="link">
With Icon
}>With Icon
} variant="primary">
With Icon
} variant="secondary">
With Icon
} variant="danger">
With Icon
With Icon and loading
} variant="link" isLoading>
With Icon
} isLoading>
With Icon
} variant="primary" isLoading>
With Icon
} variant="secondary" isLoading>
With Icon
} variant="danger" isLoading>
With Icon
With Icon before the label
}
iconPosition="before"
variant="link"
solid
>
With Icon
} iconPosition="before" solid>
With Icon
}
iconPosition="before"
variant="primary"
solid
>
With Icon
}
iconPosition="before"
variant="secondary"
solid
>
With Icon
}
iconPosition="before"
variant="danger"
solid
>
With Icon