diff --git a/stories/client-deliberation/ArrowIcon.stories.js b/stories/client-deliberation/ArrowIcon.stories.js new file mode 100644 index 0000000..d9a0549 --- /dev/null +++ b/stories/client-deliberation/ArrowIcon.stories.js @@ -0,0 +1,12 @@ +import React from 'react' +import ArrowIcon from '../../polis-UT-HAI/client-deliberation/src/components/ArrowIcon' + +export default { + title: 'Client-Deliberation/ArrowIcon', + component: ArrowIcon, +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = {} diff --git a/stories/client-deliberation/IndividualDeliberation.stories.js b/stories/client-deliberation/IndividualDeliberation.stories.js index d7044a0..65c85d5 100644 --- a/stories/client-deliberation/IndividualDeliberation.stories.js +++ b/stories/client-deliberation/IndividualDeliberation.stories.js @@ -6,9 +6,17 @@ export default { title: 'Client-Deliberation/IndividualDeliberation', component: IndividualDeliberation, decorators: [withDelibThemeUi], + argTypes: { + currentIndex: { + options: [0, 1, 2], + control: { type: 'inline-radio' }, + }, + }, } const Template = (args) => export const Default = Template.bind({}) -Default.args = {} +Default.args = { + currentIndex: 0, +} diff --git a/stories/client-deliberation/IntegrateBox.stories.js b/stories/client-deliberation/IntegrateBox.stories.js new file mode 100644 index 0000000..7e339e1 --- /dev/null +++ b/stories/client-deliberation/IntegrateBox.stories.js @@ -0,0 +1,18 @@ +import React from 'react' +import IntegrateBox from '../../polis-UT-HAI/client-deliberation/src/components/IntegrateBox' +import { withDelibThemeUi } from '../../.storybook/decorators' + +export default { + title: 'Client-Deliberation/IntegrateBox', + component: IntegrateBox, + decorators: [withDelibThemeUi], +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + heading: "Some heading", + description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", + items: ["Some bullet", "Some other bullet", "Yet another bullet"], +} diff --git a/stories/client-deliberation/IntegrateBoxAndConclusion.stories.js b/stories/client-deliberation/IntegrateBoxAndConclusion.stories.js new file mode 100644 index 0000000..b22d620 --- /dev/null +++ b/stories/client-deliberation/IntegrateBoxAndConclusion.stories.js @@ -0,0 +1,18 @@ +import React from 'react' +import IntegrateBoxAndConclusion from '../../polis-UT-HAI/client-deliberation/src/components/IntegrateBoxAndConclusion' +import { withDelibThemeUi } from '../../.storybook/decorators' +import { Default as DefaultIntegrateBoxStory } from './IntegrateBox.stories' + +export default { + title: 'Client-Deliberation/IntegrateBoxAndConclusion', + component: IntegrateBoxAndConclusion, + decorators: [withDelibThemeUi], +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + ...DefaultIntegrateBoxStory.args, + conclusion: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", +} diff --git a/stories/client-deliberation/IntegrateLink.stories.js b/stories/client-deliberation/IntegrateLink.stories.js new file mode 100644 index 0000000..1141c97 --- /dev/null +++ b/stories/client-deliberation/IntegrateLink.stories.js @@ -0,0 +1,16 @@ +import React from 'react' +import IntegrateLink from '../../polis-UT-HAI/client-deliberation/src/components/IntegrateLink' +import { withDelibThemeUi } from '../../.storybook/decorators' + +export default { + title: 'Client-Deliberation/IntegrateLink', + component: IntegrateLink, + decorators: [withDelibThemeUi], +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + link: '', +} diff --git a/stories/client-deliberation/Lock.stories.js b/stories/client-deliberation/Lock.stories.js new file mode 100644 index 0000000..f3f00b6 --- /dev/null +++ b/stories/client-deliberation/Lock.stories.js @@ -0,0 +1,16 @@ +import React from 'react' +import Lock from '../../polis-UT-HAI/client-deliberation/src/components/Lock' + +export default { + title: 'Client-Deliberation/Lock', + component: Lock, +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + style: { + fill: "blue", + }, +} diff --git a/stories/client-deliberation/ObtainLink.stories.js b/stories/client-deliberation/ObtainLink.stories.js new file mode 100644 index 0000000..937578c --- /dev/null +++ b/stories/client-deliberation/ObtainLink.stories.js @@ -0,0 +1,14 @@ +import React from 'react' +import ObtainLink from '../../polis-UT-HAI/client-deliberation/src/components/ObtainLink' +import { withDelibThemeUi } from '../../.storybook/decorators' + +export default { + title: 'Client-Deliberation/ObtainLink', + component: ObtainLink, + decorators: [withDelibThemeUi], +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = {} diff --git a/stories/client-deliberation/PolisButton.stories.js b/stories/client-deliberation/PolisButton.stories.js new file mode 100644 index 0000000..b67482f --- /dev/null +++ b/stories/client-deliberation/PolisButton.stories.js @@ -0,0 +1,18 @@ +import React from 'react' +import PolisButton from '../../polis-UT-HAI/client-deliberation/src/components/PolisButton' +import { action } from '@storybook/addon-actions' +import { withDelibThemeUi } from '../../.storybook/decorators' + +export default { + title: 'Client-Deliberation/PolisButton', + component: PolisButton, + decorators: [withDelibThemeUi], +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + onClick: action("Clicked!"), + buttonText: "Click me", +} diff --git a/stories/client-deliberation/Sidebar.stories.js b/stories/client-deliberation/Sidebar.stories.js new file mode 100644 index 0000000..537bc35 --- /dev/null +++ b/stories/client-deliberation/Sidebar.stories.js @@ -0,0 +1,31 @@ +import React from 'react' +import Sidebar from '../../polis-UT-HAI/client-deliberation/src/components/Sidebar' +import { withDelibThemeUi } from '../../.storybook/decorators' +import { action } from '@storybook/addon-actions' + +export default { + title: 'Client-Deliberation/Sidebar', + component: Sidebar, + decorators: [withDelibThemeUi], +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + onModuleClick: action("Clicked!"), + modules: [ + { + name: "Some module", + progress: 20, // percent + currently_displayed: true, + not_completed: true, + }, + { + name: "Another module", + progress: 50, // percent + currently_displayed: true, + not_completed: true, + }, + ], +} diff --git a/stories/client-deliberation/SidebarModule.stories.js b/stories/client-deliberation/SidebarModule.stories.js new file mode 100644 index 0000000..9cfc34c --- /dev/null +++ b/stories/client-deliberation/SidebarModule.stories.js @@ -0,0 +1,30 @@ +import React from 'react' +import SidebarModule from '../../polis-UT-HAI/client-deliberation/src/components/SidebarModule' +import Sidebar from '../../polis-UT-HAI/client-deliberation/src/components/Sidebar' +import { withDelibThemeUi } from '../../.storybook/decorators' +import { action } from '@storybook/addon-actions' + +export default { + title: 'Client-Deliberation/SidebarModule', + component: SidebarModule, + decorators: [withDelibThemeUi], +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + name: "Some module", + progress: 20, // percent + currently_displayed: true, + not_completed: true, +} diff --git a/stories/client-deliberation/TreeSummary.stories.js b/stories/client-deliberation/TreeSummary.stories.js new file mode 100644 index 0000000..3bd930f --- /dev/null +++ b/stories/client-deliberation/TreeSummary.stories.js @@ -0,0 +1,26 @@ +import React from 'react' +import TreeSummary from '../../polis-UT-HAI/client-deliberation/src/components/TreeSummary' +import { action } from '@storybook/addon-actions' +import { withDelibThemeUi } from '../../.storybook/decorators' + +export default { + title: 'Client-Deliberation/TreeSummary', + component: TreeSummary, + decorators: [withDelibThemeUi], +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + topics: [ + "topic 1", + "topic 2", + ], + onButtonClick: action("Clicked!"), + onBack: action("Go Back!"), + topicsHistory: [ + ["topic 1"], + "topic 2", + ], +} diff --git a/stories/client-deliberation/Tutorial.stories.js b/stories/client-deliberation/Tutorial.stories.js new file mode 100644 index 0000000..06e2100 --- /dev/null +++ b/stories/client-deliberation/Tutorial.stories.js @@ -0,0 +1,28 @@ +import React from 'react' +import Tutorial from '../../polis-UT-HAI/client-deliberation/src/components/Tutorial' +import { action } from '@storybook/addon-actions' +import { withDelibThemeUi } from '../../.storybook/decorators' + +export default { + title: 'Client-Deliberation/Tutorial', + component: Tutorial, + decorators: [withDelibThemeUi], + argTypes: { + currentIndexpage: { + options: [0, 1, 2, 3], + control: { type: 'inline-radio' }, + }, + }, +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + email: null, + currentIndex: 0, + tutorialprogress: 0, + setCurrentIndex: action("Set index!"), + currentIndexpage: 0, + setnextButtonState: () => {}, +} diff --git a/stories/client-deliberation/Tutorials.stories.js b/stories/client-deliberation/Tutorials.stories.js new file mode 100644 index 0000000..3a2bd9f --- /dev/null +++ b/stories/client-deliberation/Tutorials.stories.js @@ -0,0 +1,26 @@ +import React from 'react' +import Tutorials from '../../polis-UT-HAI/client-deliberation/src/components/Tutorials' +import { action } from '@storybook/addon-actions' +import { withDelibThemeUi } from '../../.storybook/decorators' + +export default { + title: 'Client-Deliberation/Tutorials', + component: Tutorials, + decorators: [withDelibThemeUi], + argTypes: { + current_state_index: { + options: [0, 1, 2, 3, 4], + control: { type: 'inline-radio' }, + }, + }, +} + +const Template = (args) => + +export const Default = Template.bind({}) +Default.args = { + email: null, + current_state_index: 0, + setcurrent_state_index: action("Set index!"), + heading: "Some Tutorial", +}