import React from 'react'; import { boolean, optionsKnob, text, withKnobs } from '@storybook/addon-knobs'; import { Description, Icon, MediaProvider, Title } from '../../..'; import { cn } from '../../util/bem'; import { sizes, textColors } from '../../util/global-props'; import { OptionsKnobRecord } from '../../util/knobs'; import { Wrapper, WrapperPropsType } from './wrapper.component'; export default { title: 'GEENEE-UI/Wrapper', component: Wrapper, decorators: [ withKnobs ] }; // @ts-ignore const wrapperAlign: OptionsKnobRecord = { default: undefined, center: 'center', right: 'right', left: 'left', stretch: 'stretch' }; const wrapperColor: OptionsKnobRecord = { default: undefined, ...textColors }; // @ts-ignore const wrapperFrame: OptionsKnobRecord = { default: undefined, 'solid-grey': 'solid-grey', 'solid-grey-1': 'solid-grey-1', 'solid-bg': 'solid-bg', 'solid-key': 'solid-key', 'solid-white': 'solid-white', 'solid-key-translucent': 'solid-key-translucent', 'solid-red-translucent': 'solid-red-translucent', 'solid-green-translucent': 'solid-green-translucent', 'solid-dark': 'solid-dark', 'border-gray': 'border-gray', 'border-2-gray': 'border-2-gray', 'border-key': 'border-key', 'border-2-key': 'border-2-key', 'solid-shadow-xl': 'solid-shadow-xl' }; const wrapperMaxWidth: OptionsKnobRecord = { default: undefined, '50%': '50%', '500px': '500px' }; const wrapperPadding: OptionsKnobRecord = { default: undefined, ...sizes }; const titleDefault = 'Hassle-free time tracking'; // eslint-disable-next-line max-len const descriptionDefault = 'Toggl makes time tracking so simple you’ll actually use it. But even if you forget, our tracking reminders and idle detection have your back'; const className = cn('test-component'); export const Playground = () => ( { text('Title text', titleDefault) } { text('Description Text', descriptionDefault) } { text('Title text', titleDefault) } { text('Description Text', descriptionDefault) } ); export const Playground2 = () => ( { text('Title text', titleDefault) } { text('Description Text', descriptionDefault) } Lock open ); export const Usecases = () => ( Redgular vertical { text('Title text', titleDefault) } { text('Description Text', descriptionDefault) } Callout grey { text('Title text', titleDefault) } { text('Description Text', descriptionDefault) } );