-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from etchteam/fix/storybook-v7
Storybook v7 support
- Loading branch information
Showing
9 changed files
with
12,229 additions
and
19,994 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
module.exports = { | ||
"stories": [ | ||
"../stories/**/*.stories.mdx", | ||
"../stories/**/*.stories.@(js|jsx|ts|tsx)" | ||
], | ||
"addons": [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"../src/preset" | ||
] | ||
} | ||
"stories": ["../stories/**/*.stories.mdx", "../stories/**/*.stories.@(js|jsx|ts|tsx)"], | ||
"addons": ["@storybook/addon-links", "@storybook/addon-essentials", "../src/preset"], | ||
framework: { | ||
name: "@storybook/react-webpack5", | ||
options: {} | ||
}, | ||
docs: { | ||
autodocs: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
import { addDecorator } from '@storybook/react'; | ||
import withMarker from '../src/with-marker'; | ||
|
||
addDecorator(withMarker); | ||
|
||
export const parameters = { | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
const preview = { | ||
parameters: { | ||
marker: { | ||
destination: '60f162459a86003bf9d741b3', | ||
mode: 'advanced' | ||
} | ||
}, | ||
marker: { | ||
destination: '60f162459a86003bf9d741b3', | ||
mode: 'advanced' | ||
} | ||
} | ||
decorators: [ | ||
withMarker, | ||
], | ||
}; | ||
|
||
export default preview; |
Oops, something went wrong.