File tree Expand file tree Collapse file tree 2 files changed +0
-87
lines changed Expand file tree Collapse file tree 2 files changed +0
-87
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin"
2
- import { propNames } from "@chakra-ui/react"
3
2
import type { StorybookConfig } from "@storybook/nextjs"
4
3
5
4
/**
@@ -41,11 +40,6 @@ const config: StorybookConfig = {
41
40
docs : {
42
41
autodocs : "tag" ,
43
42
} ,
44
- refs : {
45
- "@chakra-ui/react" : {
46
- disable : true ,
47
- } ,
48
- } ,
49
43
webpackFinal : async ( config ) => {
50
44
config . module = config . module || { }
51
45
config . module . rules = config . module . rules || [ ]
@@ -79,23 +73,6 @@ const config: StorybookConfig = {
79
73
typescript : {
80
74
reactDocgenTypescriptOptions : {
81
75
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
- } ,
99
76
} ,
100
77
101
78
reactDocgen : "react-docgen-typescript" ,
You can’t perform that action at this time.
0 commit comments