diff --git a/packages/ia-components/.storybook/config.js b/packages/ia-components/.storybook/config.js index 50f78e596..addddd8f4 100644 --- a/packages/ia-components/.storybook/config.js +++ b/packages/ia-components/.storybook/config.js @@ -6,6 +6,7 @@ import { withTests } from '@storybook/addon-jest'; import results from '../jest-test-utils/jest-test-results.json'; import style from './archive-cf7f2eh.less' +import styles from './theatre-styling.less' /** * pick all *.stories.js files within the ia-components directory diff --git a/packages/ia-components/sandbox/theatres/with-youtube-spotify/utils/data-for-stories/theatre-styling.less b/packages/ia-components/.storybook/theatre-styling.less similarity index 100% rename from packages/ia-components/sandbox/theatres/with-youtube-spotify/utils/data-for-stories/theatre-styling.less rename to packages/ia-components/.storybook/theatre-styling.less diff --git a/packages/ia-components/index.js b/packages/ia-components/index.js index f62a67687..bb05a148a 100644 --- a/packages/ia-components/index.js +++ b/packages/ia-components/index.js @@ -9,8 +9,8 @@ export { default as IAUXExampleComponent } from './live/example-react-component/ export { default as HorizontalRadioGroup } from './sandbox/selectors/horizontal-radio-group/horizontal-radio-group'; export { default as FlexboxPagination } from './sandbox/pagination/pagination-with-flexbox'; -export { default as TheatreTrackList } from './sandbox/theatres/components/track-list/track-list'; -export { default as TheatreAudioPlayer } from './sandbox/theatres/components/audio-player/audio-player-main'; +export { default as TheatreTrackList } from './sandbox/track-lists/track-list'; +export { default as TheatreAudioPlayer } from './sandbox/audio-players/audio-player-main'; export { default as AudioPlayerWithYoutubeSpotify } from './sandbox/theatres/with-youtube-spotify/audio-with-youtube-spotify-main'; export { default as AnchorDetails } from './sandbox/AnchorDetails'; // sandbox tiles @@ -24,4 +24,4 @@ export { default as DetailsActionButtons } from './sandbox/details/DetailsAction export { default as DetailsDownloadOptions } from './sandbox/details/DetailsDownloadOptions'; export { default as DetailsFlags } from './sandbox/details/DetailsFlags'; export { AnchorModalGo, ButtonModalGo } from './sandbox/details/ModalGo'; -export { default as Tabby} from './sandbox/details/Tabby'; +export { default as Tabby } from './sandbox/details/Tabby'; diff --git a/packages/ia-components/index.less b/packages/ia-components/index.less index 5b86f7a42..de1e35fca 100644 --- a/packages/ia-components/index.less +++ b/packages/ia-components/index.less @@ -3,7 +3,7 @@ @import './live/example-react-component/styles.less'; @import './sandbox/theatres/with-youtube-spotify/audio-with-youtube-spotify.less'; -@import './sandbox/theatres/components/track-list/track-list.less'; -@import './sandbox/theatres/components/audio-player/audio-player.less'; +@import './sandbox/track-lists/track-list.less'; +@import './sandbox/audio-players/audio-player.less'; @import './sandbox/selectors/horizontal-radio-group/horizontal-radio-group.less'; -@import './sandbox/pagination/pagination.less'; \ No newline at end of file +@import './sandbox/pagination/pagination.less'; diff --git a/packages/ia-components/sandbox/theatres/components/audio-player/players_by_type/archive-audio-jwplayer-wrapper.jsx b/packages/ia-components/sandbox/audio-players/archive-audio-jwplayer-wrapper.jsx similarity index 100% rename from packages/ia-components/sandbox/theatres/components/audio-player/players_by_type/archive-audio-jwplayer-wrapper.jsx rename to packages/ia-components/sandbox/audio-players/archive-audio-jwplayer-wrapper.jsx diff --git a/packages/ia-components/sandbox/theatres/components/audio-player/audio-player-main.jsx b/packages/ia-components/sandbox/audio-players/audio-player-main.jsx similarity index 94% rename from packages/ia-components/sandbox/theatres/components/audio-player/audio-player-main.jsx rename to packages/ia-components/sandbox/audio-players/audio-player-main.jsx index 067cdbfea..e7c8089f2 100644 --- a/packages/ia-components/sandbox/theatres/components/audio-player/audio-player-main.jsx +++ b/packages/ia-components/sandbox/audio-players/audio-player-main.jsx @@ -1,9 +1,9 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import ArchiveAudioPlayer from './players_by_type/archive-audio-jwplayer-wrapper'; -import ThirdPartyEmbeddedPlayer from './players_by_type/third-party-embed'; -import { HorizontalRadioGroup } from '../../../../index'; -import BookReaderWrapper from '../../../bookreader-component/bookreader-wrapper-main'; +import ArchiveAudioPlayer from './archive-audio-jwplayer-wrapper'; +import ThirdPartyEmbeddedPlayer from './third-party-embed'; +import { HorizontalRadioGroup } from '../../index'; +import BookReaderWrapper from '../bookreader-component/bookreader-wrapper-main'; /** * Draw background photo @@ -124,7 +124,7 @@ export default class TheatreAudioPlayer extends Component { options.push({ value: 'liner-notes', label: customSourceLabels.linerNotes, - });; + }); } return ( { +storiesOf('Theatres', module) + .addWithJSX('Track List', () => { const tracks = [ { source: 'derivative', @@ -29,11 +29,14 @@ import TrackList from './track-list'; trackNumber: 1 } ]; - - return {alert('track clicked')}}/> + + return ( + { alert('Track clicked'); }} + /> + ); }) diff --git a/packages/ia-components/sandbox/theatres/components/track-list/track-list.test.js b/packages/ia-components/sandbox/track-lists/track-list.test.js similarity index 100% rename from packages/ia-components/sandbox/theatres/components/track-list/track-list.test.js rename to packages/ia-components/sandbox/track-lists/track-list.test.js