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

StoryUpdates #194

Merged
merged 2 commits into from
Apr 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"parser": "babel-eslint",
"extends": "appfolio-react",
"rules": {
"max-len": 0,
"react/prefer-stateless-function": 0,
"react/prop-types": 1,
"require-jsdoc": 0
Expand Down
1 change: 0 additions & 1 deletion stories/Address.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import Select from '../src/components/Select';
import { boolean, text, select, object } from '@kadira/storybook-addon-knobs';
import { AddressInput } from '../src';
import states from '../src/components/address/USStates.js';
Expand Down
1 change: 0 additions & 1 deletion stories/Card.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { Button } from 'reactstrap';
import { storiesOf } from '@kadira/storybook';
import { text, boolean, select } from '@kadira/storybook-addon-knobs';

Expand Down
2 changes: 1 addition & 1 deletion stories/Datapair.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Button, Card, CardBlock, Container } from 'reactstrap';
import { Button, Card, CardBlock } from 'reactstrap';
import { storiesOf } from '@kadira/storybook';

import { Datapair } from '../src';
Expand Down
190 changes: 0 additions & 190 deletions stories/Demo.js

This file was deleted.

22 changes: 11 additions & 11 deletions stories/FeatureBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { text } from '@kadira/storybook-addon-knobs';

storiesOf('FeatureBanner', module)
.addWithInfo('Live example', () => (
<FeatureBanner
alertText={text('alertText', 'New')}
title={text('title', 'Company-Wide View of Text Messages')}
subtitle={text('subtitle', 'View all text messages sent by your company from this page.')}
>
<Button className="font-weight-bold text-uppercase bg-muted text-primary" outline>
<Icon name="envelope" className="mr-2" />
Feedback
</Button>
</FeatureBanner>
));
<FeatureBanner
alertText={text('alertText', 'New')}
title={text('title', 'Company-Wide View of Text Messages')}
subtitle={text('subtitle', 'View all text messages sent by your company from this page.')}
>
<Button className="font-weight-bold text-uppercase bg-muted text-primary" outline>
<Icon name="envelope" className="mr-2" />
Feedback
</Button>
</FeatureBanner>
));
11 changes: 6 additions & 5 deletions stories/Forms.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Container, Input } from 'reactstrap';
import { Input } from 'reactstrap';
import { storiesOf, action } from '@kadira/storybook';

import { BoundForm, BoundFormRow, FormRow, FormChoice, CurrencyInput, AddressInput } from '../src';
Expand Down Expand Up @@ -35,7 +35,7 @@ storiesOf('Forms', module)
sm: number('sm width', 12, colKnobOptions),
md: number('md width', 12, colKnobOptions),
lg: number('lg width', 12, colKnobOptions),
xl: number('xl width', 12, colKnobOptions )
xl: number('xl width', 12, colKnobOptions)
}}
name="live-input"
>
Expand Down Expand Up @@ -66,7 +66,7 @@ storiesOf('Forms', module)
<FormRow label="DOB" required />
<FormRow label="Disabled Field" disabled />
<FormRow label="Who is Luke's Father?" value="Darth Vader" type="static" />
<FormRow state="warning" placeholder="Labels can be omitted but that may be bad"/>
<FormRow state="warning" placeholder="Labels can be omitted but that may be bad" />
<FormRow type="textarea" label="Notes" />
<FormRow type="select" label="Select Movie" color="success" feedback="Awesome!">
<FormChoice value="override">A New Hope</FormChoice>
Expand Down Expand Up @@ -96,7 +96,8 @@ storiesOf('Forms', module)
<BoundForm
object={formData}
errors={object('errors', { lastName: "can't be blank" })}
onSubmit={action('submit')}>
onSubmit={action('submit')}
>
<BoundFormRow label="First Name" name="firstName" />
<BoundFormRow label="Last Name" name="lastName" required />
<BoundFormRow type={CurrencyInput} label="How much would you pay to meet the cast?" name="amount" />
Expand All @@ -118,7 +119,7 @@ storiesOf('Forms', module)
<FormChoice value="shuttle">Imperial Shuttle</FormChoice>
</BoundFormRow>
<BoundFormRow type={AddressInput} name="address" label="Address" />
<BoundFormRow type="file" label="Death Star Schematics" name="deathStarPlans" multiple/>
<BoundFormRow type="file" label="Death Star Schematics" name="deathStarPlans" multiple />
<button className="btn btn-primary">Submit</button>
</BoundForm>
));
2 changes: 1 addition & 1 deletion stories/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { storiesOf } from '@kadira/storybook';

import { Button, Icon } from '../src';
import { text, boolean, number, object, select } from '@kadira/storybook-addon-knobs';
import { text, boolean, select } from '@kadira/storybook-addon-knobs';

storiesOf('Icon', module)
.addWithInfo('Live example', () => (
Expand Down
2 changes: 1 addition & 1 deletion stories/Layout.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { storiesOf } from '@kadira/storybook';

import { Card, Container, Col, Row } from '../src';
import { Container, Col, Row } from '../src';

storiesOf('Layout', module)
.addWithInfo('Grid', () => (
Expand Down
2 changes: 1 addition & 1 deletion stories/More.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { Alert, Col, Row } from '../src';
import { Alert } from '../src';

storiesOf('and more...', module)
.add('', () => (
Expand Down
2 changes: 1 addition & 1 deletion stories/Note.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ storiesOf('Note', module)
onSave={() => alert('Save')}
onUndelete={n => alert(`onUndelete: ${JSON.stringify(n)}`)}
>
<img src="http://lorempixel.com/200/100/sports/" />
<img src="http://lorempixel.com/200/100/sports/" alt="Sample" />
</Note>
);
});
Loading