import { Story } from '@storybook/react' import { StyledSystemProps } from './types' import styled, { DefaultTheme, StyledComponentProps } from 'styled-components' import withStyledSystem from './withStyledSystem' const StyledDiv = styled.div` display: flex; justify-content: center; align-items: center; width: 100px; height: 100px; border: 2px solid; ` const Example = withStyledSystem(StyledDiv) Example.displayName = 'Example' type Props = StyledComponentProps<'div', DefaultTheme, StyledSystemProps, never> export default { title: 'Styled System/HOC', args: { children: 'Example' }, } export const Base: Story = (props) => export const Space: Story = (props) => ( ) export const Color: Story = (props) => ( ) export const Typography: Story = (props) => ( ) export const Layout: Story = (props) => ( ) export const Background: Story = (props) => ( ) export const Border: Story = (props) => ( ) export const Position: Story = (props) => ( ) export const Shadow: Story = (props) => ( )