Skip to content

Commit

Permalink
chore: 🤖 update storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonEck committed Apr 30, 2024
1 parent bbb6b37 commit 4a9fb83
Show file tree
Hide file tree
Showing 7 changed files with 1,831 additions and 4,921 deletions.
16 changes: 10 additions & 6 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
module.exports = {
stories: [
'../stories/**/*.stories.mdx',
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
/** @type { import('@storybook/html-vite').StorybookConfig } */
const config = {
stories: ['../stories/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-webpack5-compiler-swc',
'@storybook/addon-links',
'@storybook/addon-essentials',
],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
framework: {
name: '@storybook/html-webpack5',
options: {},
},
docs: {
autodocs: true,
autodocs: 'tag',
},
};

export default config;
5 changes: 1 addition & 4 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
/*
* Hide stories
* Inspired by: https://github.com/storybookjs/storybook/issues/9209#issuecomment-1169497410
*
* Can be changed to `div:has(> #demos-mountain-selection--demo)` when has
* becomes available in all browsers
*/
#demos-mountain-selection--demo {
div:has(> #demos-mountain-selection--demo) {
display: none !important;
}
</style>
11 changes: 8 additions & 3 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
export const parameters = {
controls: {
expanded: true,
/** @type { import('@storybook/html').Preview } */
const preview = {
parameters: {
controls: {
expanded: true,
},
},
};

export default preview;
Loading

0 comments on commit 4a9fb83

Please sign in to comment.