Skip to content

Commit 400cd0d

Browse files
authored
Merge pull request #95 from yoching/storybook-8
Update storybook to 8
2 parents 78ba490 + 81d9150 commit 400cd0d

File tree

4 files changed

+2916
-9292
lines changed

4 files changed

+2916
-9292
lines changed

storybook/.storybook/main.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ const postcssPresetEnv = require("postcss-preset-env");
22
const UI_CORE_SRC = "../src";
33

44
module.exports = {
5-
stories: [
6-
"../stories/**/*.stories.mdx",
7-
"../stories/**/*.stories.@(js|jsx|ts|tsx)",
8-
],
5+
stories: ["../stories/**/*.mdx", "../stories/**/*.stories.@(js|jsx|ts|tsx)"],
96

107
addons: [
118
"@storybook/addon-links",
@@ -46,6 +43,8 @@ module.exports = {
4643
},
4744
},
4845
},
46+
"@storybook/addon-webpack5-compiler-babel",
47+
"@chromatic-com/storybook",
4948
],
5049

5150
framework: {
@@ -55,7 +54,5 @@ module.exports = {
5554

5655
staticDirs: ["../static"],
5756

58-
docs: {
59-
autodocs: true,
60-
},
57+
docs: {},
6158
};

storybook/.storybook/preview.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import "../../src/css/themes/unison-light.css";
66
import "../stories/Helpers/style.css";
77

88
export const parameters = {
9-
actions: { argTypesRegex: "^on[A-Z].*" },
109
controls: {
1110
matchers: {
1211
color: /(background|color)$/i,
1312
date: /Date$/,
1413
},
1514
},
1615
};
16+
export const tags = ["autodocs"];

0 commit comments

Comments
 (0)