Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency semantic-ui-react to v0.72.0 #49

Merged
merged 11 commits into from
Aug 28, 2017
1 change: 0 additions & 1 deletion .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -2,5 +2,4 @@

import '@storybook/addon-actions/register'
import '@storybook/addon-links/register'
import '@storybook/addon-knobs/register'
import 'storybook-addon-intl/register'
4 changes: 0 additions & 4 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -2,9 +2,6 @@

import { addDecorator, configure } from '@storybook/react'

// integrate storybook-addon-knobs
import { withKnobs } from '@storybook/addon-knobs'

// integrate storybook-addon-intl for react-intl
import { setIntlConfig, withIntl } from 'storybook-addon-intl'
import { addLocaleData } from 'react-intl'
@@ -23,7 +20,6 @@ setIntlConfig({
})

// add global decorators
addDecorator(withKnobs)
addDecorator(withIntl)

// dynamically load stories from the components directory
1 change: 0 additions & 1 deletion .storybook/test/addons.js
Original file line number Diff line number Diff line change
@@ -2,4 +2,3 @@

import '@storybook/addon-actions/register'
import '@storybook/addon-links/register'

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -36,13 +36,12 @@
"recharts": "1.0.0-alpha.4",
"redux": "3.7.2",
"redux-form": "7.0.3",
"semantic-ui-react": "0.71.4",
"semantic-ui-react": "0.72.0",
"validator": "8.1.0"
},
"devDependencies": {
"@storybook/addon-actions": "3.2.6",
"@storybook/addon-info": "3.2.9",
"@storybook/addon-knobs": "3.2.8",
"@storybook/addon-links": "3.2.6",
"@storybook/addon-storyshots": "3.2.8",
"@storybook/react": "3.2.8",
16 changes: 16 additions & 0 deletions src/components/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ exports[`Storyshots ActionButton default 1`] = `
className="ui large circular icon primary button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
@@ -393,6 +394,7 @@ exports[`Storyshots FeedbackChannel isActive 1`] = `
className="ui basic fluid icon button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
@@ -432,6 +434,7 @@ exports[`Storyshots FeedbackChannel isActive 1`] = `
className="ui basic fluid icon button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
@@ -539,6 +542,7 @@ exports[`Storyshots FeedbackChannel isPublic 1`] = `
className="ui basic fluid icon button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
@@ -578,6 +582,7 @@ exports[`Storyshots FeedbackChannel isPublic 1`] = `
className="ui basic fluid icon button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
@@ -1271,6 +1276,7 @@ exports[`Storyshots Session default 1`] = `
className="ui icon left labeled button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
@@ -1328,6 +1334,7 @@ exports[`Storyshots SessionTimeline default 1`] = `
className="ui large icon left labeled button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
@@ -1340,6 +1347,7 @@ exports[`Storyshots SessionTimeline default 1`] = `
className="ui large icon primary right labeled button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
@@ -1365,6 +1373,7 @@ exports[`Storyshots SingleChoiceOptions default 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
answer2
@@ -1378,6 +1387,7 @@ exports[`Storyshots SingleChoiceOptions default 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
antwort 2
@@ -1391,6 +1401,7 @@ exports[`Storyshots SingleChoiceOptions default 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
option 3
@@ -1404,6 +1415,7 @@ exports[`Storyshots SingleChoiceOptions default 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
tschege
@@ -1425,6 +1437,7 @@ exports[`Storyshots SingleChoiceOptions withActiveOption 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
answer2
@@ -1438,6 +1451,7 @@ exports[`Storyshots SingleChoiceOptions withActiveOption 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
antwort 2
@@ -1451,6 +1465,7 @@ exports[`Storyshots SingleChoiceOptions withActiveOption 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
option 3
@@ -1464,6 +1479,7 @@ exports[`Storyshots SingleChoiceOptions withActiveOption 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
tschege
3 changes: 1 addition & 2 deletions src/components/questionTypes/SingleChoiceOptions.stories.js
Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@
import React, { Component } from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import { number } from '@storybook/addon-knobs'

import SingleChoiceOptions from './SingleChoiceOptions'

@@ -40,7 +39,7 @@ storiesOf('SingleChoiceOptions', module)
.add('default', () => <Wrapper options={options} />)
.add('withActiveOption', () =>
(<SingleChoiceOptions
activeOption={number('activeOption', 1)}
activeOption={1}
options={options}
handleOptionClick={index => () => action(`option ${index} clicked`)}
/>),
11 changes: 3 additions & 8 deletions src/components/questions/QuestionBlock.stories.js
Original file line number Diff line number Diff line change
@@ -7,24 +7,19 @@

import React from 'react'
import { storiesOf } from '@storybook/react'
import { boolean, number } from '@storybook/addon-knobs'

import QuestionBlock from './QuestionBlock'
import fixtures from '../../../.storybook/fixtures'

storiesOf('QuestionBlock', module)
.add('default', () =>
(<QuestionBlock
{...fixtures.questionBlock}
showSolutions={boolean('showSolutions', false)}
timeLimit={number('timeLimit', 60)}
/>),
<QuestionBlock {...fixtures.questionBlock} showSolutions={false} timeLimit={60} />,
)
.add('empty', () =>
(<QuestionBlock
{...fixtures.questionBlock}
questions={[]}
showSolutions={boolean('showSolutions', false)}
timeLimit={number('timeLimit', 60)}
showSolutions={false}
timeLimit={60}
/>),
)
1 change: 1 addition & 0 deletions src/pages/questions/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -217,6 +217,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui huge circular icon primary button actionButton"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
7 changes: 7 additions & 0 deletions src/pages/student/__snapshots__/session.test.js.snap
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui basic icon button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
@@ -129,6 +130,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
answer1
@@ -142,6 +144,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
antwort 2
@@ -155,6 +158,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
option 3
@@ -168,6 +172,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui basic fluid button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
tschege
@@ -183,6 +188,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui primary button submitButton"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<span>
@@ -415,6 +421,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui large circular icon primary button"
disabled={undefined}
onClick={[Function]}
role="button"
tabIndex={undefined}
>
<i
1 change: 1 addition & 0 deletions src/pages/user/__snapshots__/login.test.js.snap
Original file line number Diff line number Diff line change
@@ -76,6 +76,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui primary disabled button semanticButton"
disabled={true}
onClick={[Function]}
role="button"
tabIndex={-1}
type="submit"
>
1 change: 1 addition & 0 deletions src/pages/user/__snapshots__/registration.test.js.snap
Original file line number Diff line number Diff line change
@@ -193,6 +193,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui primary disabled right floated button"
disabled={true}
onClick={[Function]}
role="button"
tabIndex={-1}
type="submit"
>
1 change: 1 addition & 0 deletions src/pages/user/__snapshots__/resetPassword.test.js.snap
Original file line number Diff line number Diff line change
@@ -54,6 +54,7 @@ exports[`Snapshot-Testing Works 1`] = `
className="ui primary disabled button semanticButton"
disabled={true}
onClick={[Function]}
role="button"
tabIndex={-1}
type="submit"
>
Loading