Skip to content

Commit

Permalink
Fixed story component names in stories.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jun 15, 2024
1 parent 40ec61a commit cc2b545
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AboutCivicThemeExample from './about-civictheme.stories.twig';
import AboutCivicThemeStoryTemplate from './about-civictheme.stories.twig';

export default {
title: 'About CivicTheme',
Expand All @@ -9,7 +9,7 @@ export default {
},
};

export const AboutCivicTheme = () => AboutCivicThemeExample({
export const AboutCivicTheme = () => AboutCivicThemeStoryTemplate({
logos: {
primary: {
mobile: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{#
/**
* @file
* About CivicTheme story template.
*/
#}

<div class="story-about-civictheme ct-vertical-spacing-inset--both">
<div class="container">
<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions components/00-base/collapsible/collapsible.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CivicThemeCollapsible from './collapsible.stories.twig';
import CollapsibleStoryTemplate from './collapsible.stories.twig';
import './collapsible';

export default {
Expand All @@ -8,4 +8,4 @@ export default {
},
};

export const Collapsible = CivicThemeCollapsible;
export const Collapsible = CollapsibleStoryTemplate;
6 changes: 3 additions & 3 deletions components/00-base/collapsible/collapsible.stories.twig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{#
/**
* @file
* Collapsible component story.
*/
* @file
* Collapsible story template.
*/
#}

<style>
Expand Down
4 changes: 2 additions & 2 deletions components/00-base/colors/colors.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CivicThemeColors from './colors.stories.twig';
import ColorsStoryTemplate from './colors.stories.twig';
import { getThemes } from '../base.utils';

export default {
Expand Down Expand Up @@ -115,7 +115,7 @@ export const Colors = () => {
}
}

return CivicThemeColors({
return ColorsStoryTemplate({
sections,
});
};
6 changes: 3 additions & 3 deletions components/00-base/colors/colors.stories.twig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{#
/**
* @file
* Colors component story.
*/
* @file
* Colors story template.
*/
#}

<div class="story-container story-container--columns story-container--columns--2">
Expand Down
4 changes: 2 additions & 2 deletions components/00-base/flyout/flyout.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './flyout';
import CivicThemeFlyout from './flyout.stories.twig';
import FlyoutStoryTemplate from './flyout.stories.twig';
import { knobBoolean, knobNumber, knobRadios, shouldRender } from '../base.utils';

export default {
Expand Down Expand Up @@ -27,5 +27,5 @@ export const Flyout = (parentKnobs = {}) => {
duration: knobNumber('Duration (ms)', 500, undefined, parentKnobs.duration, parentKnobs.knobTab),
};

return shouldRender(parentKnobs) ? CivicThemeFlyout(knobs) : knobs;
return shouldRender(parentKnobs) ? FlyoutStoryTemplate(knobs) : knobs;
};
2 changes: 1 addition & 1 deletion components/00-base/flyout/flyout.stories.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{#
/**
* @file
* Flyout component stories.
* Flyout story template.
*/
#}

Expand Down
4 changes: 2 additions & 2 deletions components/00-base/responsive/responsive.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CivicThemeResponsive from './responsive.stories.twig';
import ResponsiveStoryTemplate from './responsive.stories.twig';
import './responsive';
import '../collapsible/collapsible';

Expand All @@ -12,4 +12,4 @@ export default {
},
};

export const Responsive = () => CivicThemeResponsive();
export const Responsive = () => ResponsiveStoryTemplate();
2 changes: 1 addition & 1 deletion components/00-base/responsive/responsive.stories.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{#
/**
* @file
* Responsive component story.
* Responsive story template.
*/
#}

Expand Down
4 changes: 2 additions & 2 deletions components/00-base/typography/typography.stories.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CivicThemeTypography from './typography.stories.twig';
import TypographyStoryTemplate from './typography.stories.twig';

export default {
title: 'Base/Typography',
Expand All @@ -9,4 +9,4 @@ export default {
},
};

export const Typography = () => CivicThemeTypography();
export const Typography = () => TypographyStoryTemplate();
2 changes: 1 addition & 1 deletion components/00-base/typography/typography.stories.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{#
/**
* @file
* Typography.
* Typography story template.
*/
#}

Expand Down
4 changes: 2 additions & 2 deletions components/00-base/welcome/welcome.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './welcome.stories.scss';
import WelcomeExample from './welcome.stories.twig';
import WelcomeStoryTemplate from './welcome.stories.twig';

export default {
title: 'Welcome',
Expand All @@ -10,7 +10,7 @@ export default {
},
};

export const Welcome = () => WelcomeExample({
export const Welcome = () => WelcomeStoryTemplate({
logos: {
primary: {
mobile: {
Expand Down
7 changes: 7 additions & 0 deletions components/00-base/welcome/welcome.stories.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{#
/**
* @file
* Welcome story template.
*/
#}

<div class="story-welcome">
<div class="story-welcome__inner">
{% include '@molecules/logo/logo.twig' with {
Expand Down

0 comments on commit cc2b545

Please sign in to comment.