Skip to content

Commit

Permalink
Upgrade Storybook (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: John Toro <john.toro@arreglatech.com>
  • Loading branch information
joaltoroc and John Toro authored Aug 8, 2024
1 parent 4a39555 commit c03a475
Show file tree
Hide file tree
Showing 9 changed files with 8,217 additions and 13,612 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ build-storybook.log
coverage
coverage.txt
junit.xml
**/storybook-static
**/migration-storybook.log
**/storybook.log
9 changes: 3 additions & 6 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ const config: StorybookConfig = {
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-links',
'@storybook/addon-mdx-gfm',
'storybook-addon-themes'
'@storybook/addon-webpack5-compiler-swc',
'@chromatic-com/storybook'
],
framework: {
name: '@storybook/react-webpack5',
options: {
builder: {
useSWC: true
}
builder: {}
}
},
webpackFinal: async (config, _options) => {
Expand All @@ -40,7 +38,6 @@ const config: StorybookConfig = {
return config;
},
docs: {
autodocs: true,
docsMode: true
},
typescript: {
Expand Down
6 changes: 4 additions & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import '../lib/theme/main.css';

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
Expand All @@ -20,13 +19,16 @@ const preview: Preview = {
theme: themes.light
}
},

decorators: [
(Story) => (
<CreativeCodeUIProvider>
<Story />
</CreativeCodeUIProvider>
)
]
],

tags: ['autodocs', 'autodocs']
};

export default preview;
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"cSpell.words": [
"autodocs",
"creativecode",
"creativecodeco",
"cssnano",
"daisyui",
"docgen",
Expand Down
8 changes: 7 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<!-- markdownlint-configure-file { "MD024": false } -->
# Changelog

## v0.6.2 - Upgrade storybook

### ☝🏻 Upgrade

- Upgrade storybook

## v0.6.1 - Upgrade lib versions

### 👾 Fix
### ☝🏻 Upgrade

- Upgrade lib versions

Expand Down
Loading

0 comments on commit c03a475

Please sign in to comment.