Skip to content

Commit

Permalink
chore(storybook): fix args table (#4981)
Browse files Browse the repository at this point in the history
* chore(deps): remove SB onboarding

* chore(sb): use react-docgen-typescript
  • Loading branch information
HeartSquared authored Aug 29, 2024
1 parent 5519b0d commit 694a081
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 37 deletions.
2 changes: 2 additions & 0 deletions .changeset/tricky-lies-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
21 changes: 16 additions & 5 deletions docs/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,32 @@ const config: StorybookConfig = {
addons: [
getAbsolutePath("@storybook/addon-a11y"),
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@storybook/addon-onboarding"),
getAbsolutePath("@storybook/addon-interactions"),
getAbsolutePath("@storybook/addon-links"),
"storybook-addon-pseudo-states",
],
framework: {
name: getAbsolutePath("@storybook/react-vite"),
options: {},
},
framework: "@storybook/react-vite",
staticDirs: [
{
from: "../assets",
to: "/static/media",
},
],
typescript: {
reactDocgen: "react-docgen-typescript",
reactDocgenTypescriptOptions: {
include: ["../packages/**/*.tsx"],
skipChildrenPropWithoutDoc: false,
shouldExtractLiteralValuesFromEnum: true,
shouldRemoveUndefinedFromOptional: true,
propFilter: (prop): boolean => {
if (prop.name === "className") return true
const isHTMLElementProp =
prop.parent?.fileName.includes("node_modules/@types/react") ?? false
return !isHTMLElementProp
},
},
},
viteFinal: viteConfig => ({
...viteConfig,
resolve: {
Expand Down
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@kaizen/design-tokens": "workspace:*",
"@kaizen/tailwind": "workspace:*",
"@rollup/plugin-alias": "^5.1.0",
"@storybook/addon-onboarding": "^8.2.9",
"@storybook/manager-api": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
"@storybook/test-runner": "^0.19.1",
Expand Down
31 changes: 0 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 694a081

Please sign in to comment.