import React from 'react'; import { action } from 'storybook/actions'; import { States } from '../../utilities'; import { Stack } from '../Stack'; import { ColorSwatch, ColorSwatchProps, SKU_COLORS } from '.'; export default { title: 'Components/ColorSwatch' }; const STATES = [ {}, { hover: true }, { focus: true }, { selected: true }, { onSale: true }, { soldOut: true }, { onSale: true, soldOut: true }, { selected: true, onSale: true, soldOut: true }, { disabled: true, soldOut: true } ]; export const Default = () => ( > states={STATES}> ); export const Small = () => ( > states={STATES}> ); export const White = () => ( > states={STATES}> ); export const Swatches = () => ( > ); export const Constrained = () => ( {Object.keys(SKU_COLORS).map(color => ( ))} );