import React from 'react'; import { storiesOf } from '@storybook/react'; import { Addon, Checkbox, LibraryItemList, MetaItem, ShareAddon, UserPanel } from 'stremio-common'; import Stream from '../src/routes/Detail/StreamsList/Stream'; import Video from '../src/routes/Detail/VideosList/Video'; import VideosList from '../src/routes/Detail/VideosList'; import StreamsList from '../src/routes/Detail/StreamsList'; import colors from 'stremio-colors'; import appStyles from '../src/app/styles'; import styles from './styles'; const storyStyle = { padding: '10px', overflow: 'auto', minHeight: 'initial' }; const videosListStyle = { position: 'absolute', height: '100%', padding: '10px', minHeight: 'initial', background: colors.backgroundlighter } const streamsListStyle = { position: 'absolute', height: '100%', padding: '10px', minHeight: 'initial', background: colors.backgroundlighter } storiesOf('Addon', module) .add('not-installed', () => (
)) .add('installed', () => (
)) .add('long-description', () => (
)) .add('long-urls', () => (
)); storiesOf('Checkbox', module) .add('checked-disabled', () => (
)) .add('not-checked-disabled', () => (
)) .add('not-checked', () => (
)) .add('checked', () => (
)) storiesOf('LibraryItemList', module) .add('library item list', () => (
)); storiesOf('MetaItem', module) .add('poster', () => (
)) .add('with-title', () => (
)) .add('with-progress', () => (
)) .add('landscape-shape', () => (
)); storiesOf('ShareAddon', module) .add('share addon', () => (
)); storiesOf('Stream', module) .add('no-logo-title', () => (
)) .add('no-logo-subtitle', () => (
)) .add('logo-progress', () => (
)) .add('long-source-name', () => (
)) .add('long-title-subtitle', () => (
)); storiesOf('UserPanel', module) .add('anonymous', () => (
)) .add('without avatar', () => (
)) .add('with avatar', () => (
)); storiesOf('Video', module) .add('poster-upcoming-watched-long-title', () => (
)) .add('poster-watched', () => (
)) .add('no-poster-progress', () => (
)) .add('poster-progress', () => (
)) .add('no-poster-upcoming', () => (
)); storiesOf('VideosList', module) .add('list of videos', () => (
)); storiesOf('StreamsList', module) .add('short list of streams', () => (
)) .add('long list of streams', () => (
));