refactor: use storybook v7 (#951)

This commit is contained in:
Himself65 authored and GitHub committed 2023-02-14 11:18:43 +08:00
1 parent 2fdbb1909d
commit a47b612a2c
16 files changed
+1895 -5565

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import React from 'react';
import { getLightTheme, ThemeProvider } from '../src';
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};
const lightTheme = getLightTheme('page');
export const decorators = [
(Story: React.ComponentType) => {
return (
<ThemeProvider theme={lightTheme}>
<Story />
</ThemeProvider>
);
},
];