mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-10-13 23:29:24 -06:00
PR-500824updating packages.
This commit is contained in:
@@ -6,5 +6,24 @@ export const parameters = {
|
||||
date: /Date$/,
|
||||
},
|
||||
},
|
||||
docs: {
|
||||
extractArgTypes: (component) => {
|
||||
// Filter out Symbol values to prevent serialization errors
|
||||
const argTypes = {};
|
||||
if (component && component.propTypes) {
|
||||
Object.keys(component.propTypes).forEach(key => {
|
||||
const propType = component.propTypes[key];
|
||||
// Only include non-Symbol values
|
||||
if (typeof propType !== 'symbol') {
|
||||
argTypes[key] = propType;
|
||||
}
|
||||
});
|
||||
}
|
||||
return argTypes;
|
||||
},
|
||||
source: {
|
||||
excludeDecorators: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
export const tags = ["autodocs"];
|
||||
export const tags = ["autodocs"];
|
||||
|
Reference in New Issue
Block a user