Skip to content

Commit

Permalink
Rename stories files (#328)
Browse files Browse the repository at this point in the history
* Rename stories files

* Add title property to stories
  • Loading branch information
willeastcott authored Sep 3, 2023
1 parent bdc4dee commit c2e1a60
Show file tree
Hide file tree
Showing 28 changed files with 49 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/ArrayInput',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/BooleanInput',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/Button',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as React from 'react';
import CanvasComponent from './component';

export default {
title: 'Components/Canvas',
component: CanvasComponent
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Component from './component';
import '../../scss/index.js';

export default {
title: 'Components/Code',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as React from 'react';
import ColorPickerComponent from './component';

export default {
title: 'Components/ColorPicker',
component: ColorPickerComponent
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Container from './component';
import Label from '../Label/component';

export default {
title: 'Components/Container',
component: Container
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Component from './component';
import '../../scss/index.js';

export default {
title: 'Components/Divider',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const defaultValue = {
};

export default {
title: 'Components/GradientPicker',
component: GradientPickerComponent
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import GridView from './component';
import GridViewItem from '../GridViewItem/component';

export default {
title: 'Components/GridView',
component: GridView
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Component from './component';
import '../../scss/index.js';

export default {
title: 'Components/InfoBox',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Component from './component';
import '../../scss/index.js';

export default {
title: 'Components/Label',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '../../scss/index.js';
import TextInput from '../TextInput/component';

export default {
title: 'Components/LabelGroup',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Menu from '../Menu';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/Menu',
component: Component
};

Expand Down
12 changes: 12 additions & 0 deletions src/components/NumericInput/component.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as React from 'react';

import Component from './component';
import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/NumericInput',
component: Component
};

export const Main = args => <Component onChange={action('value-change')} {...args} />;
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Component from './component';
import '../../scss/index.js';

export default {
title: 'Components/Overlay',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '../../scss/index.js';
import Label from '../Label/component';

export default {
title: 'Components/Panel',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Component from './component';
import '../../scss/index.js';

export default {
title: 'Components/Progress',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/RadioButton',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/SelectInput',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/SliderInput',
component: Component
};

Expand Down
10 changes: 0 additions & 10 deletions src/components/SliderInput/index.stories.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import * as React from 'react';

import SpinnerComponent from './component';

export default {
title: 'Components/Spinner',
component: SpinnerComponent
};

Expand Down
12 changes: 12 additions & 0 deletions src/components/TextAreaInput/component.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as React from 'react';

import Component from './component';
import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/TextAreaInput',
component: Component
};

export const Main = args => <Component onChange={action('value-change')} {...args} />;
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/TextInput',
component: Component
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import TreeView from './component';
import TreeViewItem from '../TreeViewItem/component';

export default {
title: 'Components/TreeView',
component: TreeView
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import '../../scss/index.js';
import { action } from '@storybook/addon-actions';

export default {
title: 'Components/VectorInput',
component: Component
};

Expand Down
11 changes: 0 additions & 11 deletions src/components/VectorInput/index.stories.tsx

This file was deleted.

0 comments on commit c2e1a60

Please sign in to comment.