Skip to content

Commit

Permalink
Migrate stories to new storybook format
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Nov 21, 2023
1 parent 4fe897f commit f9b8b55
Show file tree
Hide file tree
Showing 126 changed files with 627 additions and 499 deletions.
9 changes: 5 additions & 4 deletions lib/ActionToggle/ActionToggle.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ActionToggle } from './ActionToggle';

storiesOf('ActionToggle', module).add('ActionToggle', () => (
<StoryWrapper attributes={attributes} component={ActionToggle} />
));
export default { title: 'ActionToggle' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ActionToggle} />;
}
9 changes: 5 additions & 4 deletions lib/ActionsGrid/ActionsGrid.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ActionsGrid } from './ActionsGrid';

storiesOf('ActionsGrid', module).add('ActionsGrid', () => (
<StoryWrapper attributes={attributes} component={ActionsGrid} />
));
export default { title: 'ActionsGrid' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ActionsGrid} />;
}
9 changes: 5 additions & 4 deletions lib/ArticleCard/ArticleCard.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ArticleCard } from './ArticleCard';

storiesOf('ArticleCard', module).add('ArticleCard', () => (
<StoryWrapper attributes={attributes} component={ArticleCard} />
));
export default { title: 'ArticleCard' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ArticleCard} />;
}
9 changes: 5 additions & 4 deletions lib/ArticleCardFooter/ArticleCardFooter.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ArticleCardFooter } from './ArticleCardFooter';

storiesOf('ArticleCardFooter', module).add('ArticleCardFooter', () => (
<StoryWrapper attributes={attributes} component={ArticleCardFooter} />
));
export default { title: 'ArticleCardFooter' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ArticleCardFooter} />;
}
9 changes: 5 additions & 4 deletions lib/ArticleCardImage/ArticleCardImage.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ArticleCardImage } from './ArticleCardImage';

storiesOf('ArticleCardImage', module).add('ArticleCardImage', () => (
<StoryWrapper attributes={attributes} component={ArticleCardImage} />
));
export default { title: 'ArticleCardImage' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ArticleCardImage} />;
}
9 changes: 5 additions & 4 deletions lib/ArticleCardVertical/ArticleCardVertical.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ArticleCardVertical } from './ArticleCardVertical';

storiesOf('ArticleCardVertical', module).add('ArticleCardVertical', () => (
<StoryWrapper attributes={attributes} component={ArticleCardVertical} />
));
export default { title: 'ArticleCardVertical' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ArticleCardVertical} />;
}
9 changes: 5 additions & 4 deletions lib/ArticlesCardsGrid/ArticlesCardsGrid.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ArticlesCardsGrid } from './ArticlesCardsGrid';

storiesOf('ArticlesCardsGrid', module).add('ArticlesCardsGrid', () => (
<StoryWrapper attributes={attributes} component={ArticlesCardsGrid} />
));
export default { title: 'ArticlesCardsGrid' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ArticlesCardsGrid} />;
}
9 changes: 5 additions & 4 deletions lib/AuthenticationForm/AuthenticationForm.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { AuthenticationForm } from './AuthenticationForm';

storiesOf('AuthenticationForm', module).add('AuthenticationForm', () => (
<StoryWrapper attributes={attributes} component={AuthenticationForm} />
));
export default { title: 'AuthenticationForm' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={AuthenticationForm} />;
}
9 changes: 5 additions & 4 deletions lib/AuthenticationImage/AuthenticationImage.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { AuthenticationImage } from './AuthenticationImage';

storiesOf('AuthenticationImage', module).add('AuthenticationImage', () => (
<StoryWrapper attributes={attributes} component={AuthenticationImage} />
));
export default { title: 'AuthenticationImage' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={AuthenticationImage} />;
}
9 changes: 5 additions & 4 deletions lib/AuthenticationTitle/AuthenticationTitle.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { AuthenticationTitle } from './AuthenticationTitle';

storiesOf('AuthenticationTitle', module).add('AuthenticationTitle', () => (
<StoryWrapper attributes={attributes} component={AuthenticationTitle} />
));
export default { title: 'AuthenticationTitle' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={AuthenticationTitle} />;
}
9 changes: 5 additions & 4 deletions lib/AutocompleteLoading/AutocompleteLoading.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { AutocompleteLoading } from './AutocompleteLoading';

storiesOf('AutocompleteLoading', module).add('AutocompleteLoading', () => (
<StoryWrapper attributes={attributes} component={AutocompleteLoading} />
));
export default { title: 'AutocompleteLoading' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={AutocompleteLoading} />;
}
9 changes: 5 additions & 4 deletions lib/BadgeCard/BadgeCard.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { BadgeCard } from './BadgeCard';

storiesOf('BadgeCard', module).add('BadgeCard', () => (
<StoryWrapper attributes={attributes} component={BadgeCard} />
));
export default { title: 'BadgeCard' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={BadgeCard} />;
}
9 changes: 5 additions & 4 deletions lib/ButtonCopy/ButtonCopy.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ButtonCopy } from './ButtonCopy';

storiesOf('ButtonCopy', module).add('ButtonCopy', () => (
<StoryWrapper attributes={attributes} component={ButtonCopy} />
));
export default { title: 'ButtonCopy' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ButtonCopy} />;
}
9 changes: 5 additions & 4 deletions lib/ButtonMenu/ButtonMenu.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ButtonMenu } from './ButtonMenu';

storiesOf('ButtonMenu', module).add('ButtonMenu', () => (
<StoryWrapper attributes={attributes} component={ButtonMenu} />
));
export default { title: 'ButtonMenu' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ButtonMenu} />;
}
9 changes: 5 additions & 4 deletions lib/ButtonProgress/ButtonProgress.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ButtonProgress } from './ButtonProgress';

storiesOf('ButtonProgress', module).add('ButtonProgress', () => (
<StoryWrapper attributes={attributes} component={ButtonProgress} />
));
export default { title: 'ButtonProgress' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ButtonProgress} />;
}
9 changes: 5 additions & 4 deletions lib/CardGradient/CardGradient.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CardGradient } from './CardGradient';

storiesOf('CardGradient', module).add('CardGradient', () => (
<StoryWrapper attributes={attributes} component={CardGradient} />
));
export default { title: 'CardGradient' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CardGradient} />;
}
9 changes: 5 additions & 4 deletions lib/CardWithStats/CardWithStats.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CardWithStats } from './CardWithStats';

storiesOf('CardWithStats', module).add('CardWithStats', () => (
<StoryWrapper attributes={attributes} component={CardWithStats} />
));
export default { title: 'CardWithStats' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CardWithStats} />;
}
9 changes: 5 additions & 4 deletions lib/CardsCarousel/CardsCarousel.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CardsCarousel } from './CardsCarousel';

storiesOf('CardsCarousel', module).add('CardsCarousel', () => (
<StoryWrapper attributes={attributes} component={CardsCarousel} />
));
export default { title: 'CardsCarousel' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CardsCarousel} />;
}
9 changes: 5 additions & 4 deletions lib/CarouselCard/CarouselCard.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CarouselCard } from './CarouselCard';

storiesOf('CarouselCard', module).add('CarouselCard', () => (
<StoryWrapper attributes={attributes} component={CarouselCard} />
));
export default { title: 'CarouselCard' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CarouselCard} />;
}
9 changes: 5 additions & 4 deletions lib/CheckboxCard/CheckboxCard.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CheckboxCard } from './CheckboxCard';

storiesOf('CheckboxCard', module).add('CheckboxCard', () => (
<StoryWrapper attributes={attributes} component={CheckboxCard} />
));
export default { title: 'CheckboxCard' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CheckboxCard} />;
}
9 changes: 5 additions & 4 deletions lib/CommentHtml/CommentHtml.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CommentHtml } from './CommentHtml';

storiesOf('CommentHtml', module).add('CommentHtml', () => (
<StoryWrapper attributes={attributes} component={CommentHtml} />
));
export default { title: 'CommentHtml' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CommentHtml} />;
}
9 changes: 5 additions & 4 deletions lib/CommentSimple/CommentSimple.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CommentSimple } from './CommentSimple';

storiesOf('CommentSimple', module).add('CommentSimple', () => (
<StoryWrapper attributes={attributes} component={CommentSimple} />
));
export default { title: 'CommentSimple' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CommentSimple} />;
}
9 changes: 5 additions & 4 deletions lib/ContactUs/ContactUs.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ContactUs } from './ContactUs';

storiesOf('ContactUs', module).add('ContactUs', () => (
<StoryWrapper attributes={attributes} component={ContactUs} />
));
export default { title: 'ContactUs' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ContactUs} />;
}
9 changes: 5 additions & 4 deletions lib/ContainedInputs/ContainedInputs.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { ContainedInputs } from './ContainedInputs';

storiesOf('ContainedInputs', module).add('ContainedInputs', () => (
<StoryWrapper attributes={attributes} component={ContainedInputs} />
));
export default { title: 'ContainedInputs' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={ContainedInputs} />;
}
9 changes: 5 additions & 4 deletions lib/CookiesBanner/CookiesBanner.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CookiesBanner } from './CookiesBanner';

storiesOf('CookiesBanner', module).add('CookiesBanner', () => (
<StoryWrapper attributes={attributes} component={CookiesBanner} />
));
export default { title: 'CookiesBanner' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CookiesBanner} />;
}
9 changes: 5 additions & 4 deletions lib/CurrencyInput/CurrencyInput.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CurrencyInput } from './CurrencyInput';

storiesOf('CurrencyInput', module).add('CurrencyInput', () => (
<StoryWrapper attributes={attributes} component={CurrencyInput} />
));
export default { title: 'CurrencyInput' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CurrencyInput} />;
}
9 changes: 5 additions & 4 deletions lib/CustomSwitch/CustomSwitch.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { CustomSwitch } from './CustomSwitch';

storiesOf('CustomSwitch', module).add('CustomSwitch', () => (
<StoryWrapper attributes={attributes} component={CustomSwitch} />
));
export default { title: 'CustomSwitch' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={CustomSwitch} />;
}
9 changes: 5 additions & 4 deletions lib/DndList/DndList.story.tsx
Original file line number Diff line number Diff line change
@@ -1,8 1,9 @@
import { storiesOf } from '@storybook/react';
import attributes from './attributes.json';
import { StoryWrapper } from '../../components/StoryWrapper/StoryWrapper';
import { DndList } from './DndList';

storiesOf('DndList', module).add('DndList', () => (
<StoryWrapper attributes={attributes} component={DndList} />
));
export default { title: 'DndList' };

export function Usage() {
return <StoryWrapper attributes={attributes} component={DndList} />;
}
Loading

0 comments on commit f9b8b55

Please sign in to comment.