Skip to content

Commit

Permalink
update storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
celineung committed Nov 20, 2024
1 parent 2452c10 commit 03199fc
Show file tree
Hide file tree
Showing 3 changed files with 1,939 additions and 3,248 deletions.
15 changes: 10 additions & 5 deletions libs/react-design-system/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { dirname, join } from "path";
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
getAbsolutePath("@storybook/addon-links"),
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@storybook/addon-interactions"),
{
name: "@storybook/addon-styling",
options: {
Expand All @@ -12,14 +13,18 @@ module.exports = {
},
},
},
"@storybook/addon-mdx-gfm",
getAbsolutePath("@storybook/addon-mdx-gfm"),
],
framework: {
name: "@storybook/react-vite",
name: getAbsolutePath("@storybook/react-vite"),
options: {},
},
docs: {
autodocs: true,
},
staticDirs: ["../public"],
};

function getAbsolutePath(value) {
return dirname(require.resolve(join(value, "package.json")));
}
18 changes: 9 additions & 9 deletions libs/react-design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"@emotion/styled": "^11.10.5",
"@mui/icons-material": "^5.8.0",
"@mui/material": "^5.11.8",
"@storybook/addon-actions": "^7.0.0",
"@storybook/addon-essentials": "^7.0.0",
"@storybook/addon-interactions": "^7.0.0",
"@storybook/addon-links": "^7.0.0",
"@storybook/addon-mdx-gfm": "^7.0.0",
"@storybook/cli": "^7.0.7",
"@storybook/react": "^7.0.0",
"@storybook/react-vite": "^7.0.0",
"@storybook/addon-actions": "7.6.20",
"@storybook/addon-essentials": "7.6.20",
"@storybook/addon-interactions": "7.6.20",
"@storybook/addon-links": "7.6.20",
"@storybook/addon-mdx-gfm": "7.6.20",
"@storybook/cli": "7.6.20",
"@storybook/react": "7.6.20",
"@storybook/react-vite": "7.6.20",
"@storybook/testing-library": "^0.1.0",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.10",
Expand All @@ -45,7 +45,7 @@
"react-player": "^2.11.0",
"require-from-string": "^2.0.2",
"scss-mapper": "workspace:*",
"storybook": "^7.0.0",
"storybook": "7.6.20",
"tss-react": "^4.5.2",
"type-route": "^1.0.0",
"typescript": "^5.6.2"
Expand Down
Loading

0 comments on commit 03199fc

Please sign in to comment.