+ ),
+ { info: 'Brand spinner with different sizes (small, medium, large)' }
)
.add(
'Inverse',
- withInfo('Inverse spinner with different sizes (small, medium, large)')(
- () => (
-
-
-
-
-
-
-
-
-
-
+ () => (
+
+
+
+
+
+
+
+
+
- )
- )
+
+ ),
+ { info: 'Inverse spinner with different sizes (small, medium, large)' }
);
diff --git a/stories/TableStories.js b/stories/TableStories.js
index 1740e2ac3..9c4648291 100644
--- a/stories/TableStories.js
+++ b/stories/TableStories.js
@@ -1,6 +1,5 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
-import { withInfo } from '@storybook/addon-info';
import { boolean } from '@storybook/addon-knobs';
import {
Table,
@@ -34,7 +33,7 @@ const records = new Array(6)
storiesOf('Table', module)
.add(
'Controlled with knobs',
- withInfo('Table controlled with knobs')(() => {
+ () => {
const bordered = boolean('bordered');
const sortable = boolean('sortable');
const striped = boolean('striped');
@@ -83,11 +82,12 @@ storiesOf('Table', module)
);
- })
+ },
+ { info: 'Table controlled with knobs' }
)
.add(
'Default',
- withInfo('Default Table component')(() => (
+ () => (
@@ -106,11 +106,12 @@ storiesOf('Table', module)
))}
- ))
+ ),
+ { info: 'Default Table component' }
)
.add(
'With Striped Row',
- withInfo('Table component with striped row')(() => (
+ () => (
@@ -129,11 +130,12 @@ storiesOf('Table', module)
))}
- ))
+ ),
+ { info: 'Table component with striped row' }
)
.add(
'With No Row Hover',
- withInfo('Table component with row hovering highlight is disabled')(() => (
+ () => (
@@ -152,11 +154,12 @@ storiesOf('Table', module)
))}
- ))
+ ),
+ { info: 'Table component with row hovering highlight is disabled' }
)
.add(
'With Vertical Borders',
- withInfo('Table component with vertical borders enabled')(() => (
+ () => (
@@ -175,11 +178,12 @@ storiesOf('Table', module)
))}
- ))
+ ),
+ { info: 'Table component with vertical borders enabled' }
)
.add(
'With Fixed Layout',
- withInfo('Table component with fixed layout')(() => (
+ () => (
@@ -198,13 +202,12 @@ storiesOf('Table', module)
))}
- ))
+ ),
+ { info: 'Table component with fixed layout' }
)
.add(
'With Sort Enabled',
- withInfo(
- 'Table component with sort feature enabled ("Account Name" column is disabled)'
- )(() => (
+ () => (
@@ -225,5 +228,9 @@ storiesOf('Table', module)
))}
- ))
+ ),
+ {
+ info:
+ 'Table component with sort feature enabled ("Account Name" column is disabled)',
+ }
);
diff --git a/stories/TabsStories.js b/stories/TabsStories.js
index 76b249ffd..793858c37 100644
--- a/stories/TabsStories.js
+++ b/stories/TabsStories.js
@@ -1,6 +1,5 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
-import { withInfo } from '@storybook/addon-info';
import { action } from '@storybook/addon-actions';
import { text } from '@storybook/addon-knobs';
import { Tabs, Tab, Icon, MenuItem } from '../src/scripts';
@@ -41,7 +40,7 @@ function CustomTabItemContent(props) {
storiesOf('Tabs', module)
.add(
'Controlled with knobs',
- withInfo('Tabs controlled with knobs')(() => (
+ () => (
- ))
+ ),
+ { info: 'Tabs controlled with knobs' }
)
.add(
'Default',
- withInfo('Default Tabs')(() => (
+ () => (
This is in tab #1
@@ -73,11 +73,12 @@ storiesOf('Tabs', module)
This is in tab #3
- ))
+ ),
+ { info: 'Default Tabs' }
)
.add(
'Scoped',
- withInfo('Scoped Tabs')(() => (
+ () => (
This is in tab #1
@@ -89,11 +90,12 @@ storiesOf('Tabs', module)
This is in tab #3
- ))
+ ),
+ { info: 'Scoped Tabs' }
)
.add(
'With Dropdown (Default)',
- withInfo('Default tabs with dropdown menu')(() => (
+ () => (
This is in tab #1
@@ -105,11 +107,12 @@ storiesOf('Tabs', module)
This is in tab #3
- ))
+ ),
+ { info: 'Default tabs with dropdown menu' }
)
.add(
'With Dropdown (Scoped)',
- withInfo('Scoped tabs with dropdown menu')(() => (
+ () => (
This is in tab #1
@@ -121,11 +124,12 @@ storiesOf('Tabs', module)
This is in tab #3
- ))
+ ),
+ { info: 'Scoped tabs with dropdown menu' }
)
.add(
'Custom Tab Item',
- withInfo('Tab with custom tab item content')(() => (
+ () => (
- ))
+ ),
+ { info: 'Tab with custom tab item content' }
);
diff --git a/stories/TextareaStories.js b/stories/TextareaStories.js
index da59ca9b0..e6f11b8f2 100644
--- a/stories/TextareaStories.js
+++ b/stories/TextareaStories.js
@@ -1,6 +1,5 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
-import { withInfo } from '@storybook/addon-info';
import { action } from '@storybook/addon-actions';
import { text, boolean } from '@storybook/addon-knobs';
import { Textarea } from '../src/scripts';
@@ -8,7 +7,7 @@ import { Textarea } from '../src/scripts';
storiesOf('Textarea', module)
.add(
'Controlled with knobs',
- withInfo('Textarea controlled with knobs')(() => (
+ () => (
- ))
+ ),
+ { info: 'Textarea controlled with knobs' }
)
.add(
'Default',
- withInfo('Default Textarea control')(() => (
-
- ))
+ () =>
,
+ { info: 'Default Textarea control' }
)
.add(
'Required',
- withInfo('Textarea control with required attribute')(() => (
+ () => (
- ))
+ ),
+ { info: 'Textarea control with required attribute' }
)
.add(
'Error',
- withInfo('Textarea control with error message')(() => (
+ () => (
- ))
+ ),
+ { info: 'Textarea control with error message' }
)
.add(
'Disabled',
- withInfo('Textarea control with disabled status')(() => (
+ () => (
- ))
+ ),
+ { info: 'Textarea control with disabled status' }
)
.add(
'Read only',
- withInfo('Textarea control with readOnly status')(() => (
-
- ))
+ () =>
,
+ { info: 'Textarea control with readOnly status' }
)
.add(
'Read only (HTML)',
- withInfo(
- 'Textarea control with readOnly status (passsed to HTML