diff --git a/src/components/Carousel.vue b/src/components/Carousel.vue new file mode 100644 index 00000000..a6f496a9 --- /dev/null +++ b/src/components/Carousel.vue @@ -0,0 +1,281 @@ + + + + + + diff --git a/src/main.ts b/src/main.ts index 41999665..9633275c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,6 +12,7 @@ export { default as AmountInput } from './components/AmountInput.vue'; export { default as AmountWithDetails } from './components/AmountWithDetails.vue'; export { default as AmountWithFee } from './components/AmountWithFee.vue'; export { default as BottomOverlay } from './components/BottomOverlay.vue'; +export { default as Carousel } from './components/Carousel.vue'; export { default as CircleSpinner } from './components/CircleSpinner.vue'; export { default as CloseButton } from './components/CloseButton.vue'; export { default as Contact } from './components/Contact.vue'; diff --git a/src/stories/index.stories.js b/src/stories/index.stories.js index 4133c90e..3ee8d082 100644 --- a/src/stories/index.stories.js +++ b/src/stories/index.stories.js @@ -16,6 +16,7 @@ import AmountInput from '../components/AmountInput.vue'; import AmountWithDetails from '../components/AmountWithDetails.vue'; import AmountWithFee from '../components/AmountWithFee.vue'; import BottomOverlay from '../components/BottomOverlay.vue'; +import Carousel from '../components/Carousel.vue'; import CircleSpinner from '../components/CircleSpinner.vue'; import CloseButton from '../components/CloseButton.vue'; import Contact from '../components/Contact.vue'; @@ -570,6 +571,46 @@ storiesOf('Components', module) `, } }) + .add('Carousel', () => { + return { + components: {Carousel, SmallPage}, + data: () => ({ + entryCount: 3, + hideBackgroundEntries: false, + disabled: false, + selected: 'Card-1', + }), + computed: { + entries() { + return new Array(parseInt(this.entryCount)).fill('Card-').map((v, i) => `${v}${i}`); + } + }, + template: ` +
+ + + +
+ + + +
+ Selected: +
+
+
+ `, + }; + }) .add('CloseButton', () => { return { components: {CloseButton},