mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:41:46 +08:00
Updating template and snapshot version
Signed-off-by: Carlos Vega <clmvega@gmail.com>
This commit is contained in:
parent
64b7d3daff
commit
a554bc9080
@ -1,10 +1,12 @@
|
|||||||
import { storiesOf } from '@storybook/angular';
|
import { storiesOf } from '@storybook/angular';
|
||||||
import { addonNotes } from '@storybook/addon-notes';
|
import { withNotes } from '@storybook/addon-notes';
|
||||||
import { action } from '@storybook/addon-actions'
|
import { action } from '@storybook/addon-actions'
|
||||||
import { linkTo } from '@storybook/addon-links'
|
import { linkTo } from '@storybook/addon-links'
|
||||||
|
|
||||||
import { Welcome, Button } from '@storybook/angular/demo';
|
import { Welcome, Button } from '@storybook/angular/demo';
|
||||||
|
|
||||||
|
declare let module;
|
||||||
|
|
||||||
storiesOf('Welcome', module)
|
storiesOf('Welcome', module)
|
||||||
.add('to Storybook', () => ({
|
.add('to Storybook', () => ({
|
||||||
component: Welcome,
|
component: Welcome,
|
||||||
@ -18,13 +20,13 @@ storiesOf('Button', module)
|
|||||||
text: 'Hello Button'
|
text: 'Hello Button'
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
.add('with some emoji', addonNotes({ notes: 'My notes on a button with emojis' })(() => ({
|
.add('with some emoji', withNotes({ notes: 'My notes on a button with emojis' })(() => ({
|
||||||
component: Button,
|
component: Button,
|
||||||
props: {
|
props: {
|
||||||
text: '😀 😎 👍 💯'
|
text: '😀 😎 👍 💯'
|
||||||
}
|
}
|
||||||
})))
|
})))
|
||||||
.add('with some emoji and action', addonNotes({ notes: 'My notes on a button with emojis' })(() => ({
|
.add('with some emoji and action', withNotes({ notes: 'My notes on a button with emojis' })(() => ({
|
||||||
component: Button,
|
component: Button,
|
||||||
props: {
|
props: {
|
||||||
text: '😀 😎 👍 💯',
|
text: '😀 😎 👍 💯',
|
||||||
@ -39,4 +41,4 @@ storiesOf('Another Button', module)
|
|||||||
text: 'Go to Welcome Story',
|
text: 'Go to Welcome Story',
|
||||||
onClick: linkTo('Welcome')
|
onClick: linkTo('Welcome')
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
@ -44,6 +44,6 @@
|
|||||||
"ts-node": "1.2.1",
|
"ts-node": "1.2.1",
|
||||||
"tslint": "^4.3.0",
|
"tslint": "^4.3.0",
|
||||||
"typescript": "~2.4.0",
|
"typescript": "~2.4.0",
|
||||||
"@storybook/angular": "^3.3.0-alpha.0"
|
"@storybook/angular": "3.3.0-alpha.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user