import React from 'react'; import { action } from '@storybook/addon-actions'; import { boolean, text, withKnobs } from '@storybook/addon-knobs'; import { Description, Divider, Wrapper } from '../../..'; import { formSizes, formSizesPixels, fromSizesMap } from '../../util/global-props'; import { Select } from './select.component'; export default { title: 'GEENEE-UI/Form', component: Select, decorators: [ withKnobs ] }; const data = (length: number) => ( Array.from({ length }, (item, index) => ({ value: `test${ index }`, label: `test${ index }` })) ); export const _Select = () => ( { fromSizesMap.map((size, key) => ( <> { size } { ' - ' } { formSizesPixels[ size ] }