Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(isolate storybook specific files to copy): moved example storyboo…
…k specific file Now only storybook theme generated example will contain the stories file unlike before when theme generated with patternlab also consisted of stories file.
- Loading branch information
Taher
committed
Nov 12, 2021
1 parent
c7d32a3
commit 1364ad0
Showing
6 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
generators/app/templates/options/storybook/copy/example/button.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import buttonTemplate from './button.twig'; | ||
import buttonData from './button.json'; | ||
import '@atoms/button/button.css'; | ||
|
||
export default { | ||
title: 'Components/Button', | ||
component: buttonTemplate, | ||
} | ||
|
||
export const Primary = () => ( | ||
buttonTemplate({ | ||
button_title: buttonData.button_title, | ||
variant: 'primary', | ||
}) | ||
); | ||
|
||
export const Secondary = () => ( | ||
buttonTemplate({ | ||
button_title: buttonData.button_title, | ||
variant: 'secondary', | ||
}) | ||
); |