Skip to content

Commit c03a475

Browse files
joaltorocJohn Toro
andauthored
Upgrade Storybook (#24)
Co-authored-by: John Toro <john.toro@arreglatech.com>
1 parent 4a39555 commit c03a475

9 files changed

Lines changed: 8217 additions & 13612 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ build-storybook.log
55
coverage
66
coverage.txt
77
junit.xml
8+
**/storybook-static
9+
**/migration-storybook.log
10+
**/storybook.log

.storybook/main.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ const config: StorybookConfig = {
99
'@storybook/addon-essentials',
1010
'@storybook/addon-interactions',
1111
'@storybook/addon-links',
12-
'@storybook/addon-mdx-gfm',
13-
'storybook-addon-themes'
12+
'@storybook/addon-webpack5-compiler-swc',
13+
'@chromatic-com/storybook'
1414
],
1515
framework: {
1616
name: '@storybook/react-webpack5',
1717
options: {
18-
builder: {
19-
useSWC: true
20-
}
18+
builder: {}
2119
}
2220
},
2321
webpackFinal: async (config, _options) => {
@@ -40,7 +38,6 @@ const config: StorybookConfig = {
4038
return config;
4139
},
4240
docs: {
43-
autodocs: true,
4441
docsMode: true
4542
},
4643
typescript: {

.storybook/preview.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import '../lib/theme/main.css';
99

1010
const preview: Preview = {
1111
parameters: {
12-
actions: { argTypesRegex: '^on[A-Z].*' },
1312
controls: {
1413
matchers: {
1514
color: /(background|color)$/i,
@@ -20,13 +19,16 @@ const preview: Preview = {
2019
theme: themes.light
2120
}
2221
},
22+
2323
decorators: [
2424
(Story) => (
2525
<CreativeCodeUIProvider>
2626
<Story />
2727
</CreativeCodeUIProvider>
2828
)
29-
]
29+
],
30+
31+
tags: ['autodocs', 'autodocs']
3032
};
3133

3234
export default preview;

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"cSpell.words": [
33
"autodocs",
44
"creativecode",
5+
"creativecodeco",
56
"cssnano",
67
"daisyui",
78
"docgen",

Changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
<!-- markdownlint-configure-file { "MD024": false } -->
22
# Changelog
33

4+
## v0.6.2 - Upgrade storybook
5+
6+
### ☝🏻 Upgrade
7+
8+
- Upgrade storybook
9+
410
## v0.6.1 - Upgrade lib versions
511

6-
### 👾 Fix
12+
### ☝🏻 Upgrade
713

814
- Upgrade lib versions
915

0 commit comments

Comments
 (0)