Skip to content

Commit 063327c

Browse files
chore(.storybook): remove anything connected to chakra
1 parent 0584324 commit 063327c

File tree

2 files changed

+0
-87
lines changed

2 files changed

+0
-87
lines changed

.storybook/ChakraDecorator.tsx

Lines changed: 0 additions & 64 deletions
This file was deleted.

.storybook/main.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin"
2-
import { propNames } from "@chakra-ui/react"
32
import type { StorybookConfig } from "@storybook/nextjs"
43

54
/**
@@ -41,11 +40,6 @@ const config: StorybookConfig = {
4140
docs: {
4241
autodocs: "tag",
4342
},
44-
refs: {
45-
"@chakra-ui/react": {
46-
disable: true,
47-
},
48-
},
4943
webpackFinal: async (config) => {
5044
config.module = config.module || {}
5145
config.module.rules = config.module.rules || []
@@ -79,23 +73,6 @@ const config: StorybookConfig = {
7973
typescript: {
8074
reactDocgenTypescriptOptions: {
8175
shouldExtractLiteralValuesFromEnum: true,
82-
/**
83-
* For handling bloated controls table of Chakra Props
84-
*
85-
* https://github.com/chakra-ui/chakra-ui/issues/2009#issuecomment-852793946
86-
*/
87-
propFilter: (prop) => {
88-
const excludedPropNames = propNames.concat([
89-
"as",
90-
"apply",
91-
"sx",
92-
"__css",
93-
])
94-
const isStyledSystemProp = excludedPropNames.includes(prop.name)
95-
const isHTMLElementProp =
96-
prop.parent?.fileName.includes("node_modules") ?? false
97-
return !(isStyledSystemProp || isHTMLElementProp)
98-
},
9976
},
10077

10178
reactDocgen: "react-docgen-typescript",

0 commit comments

Comments
 (0)