[core][xs]: minor storybook setup adjstmnts

This commit is contained in:
Ola Rubaj 2023-10-04 17:47:13 +02:00
parent 56cb6e7912
commit 3ae685253b
4 changed files with 1573 additions and 9 deletions

1568
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@ const config: StorybookConfig = {
addons: [
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@nrwl/react/plugins/storybook',
'storybook-tailwind-dark-mode'
],
@ -12,6 +13,9 @@ const config: StorybookConfig = {
name: '@storybook/react-webpack5',
options: {},
},
docs: {
autodocs: 'tag',
},
};
export default config;

View File

@ -1,6 +1,9 @@
import './tailwind-imports.css';
const preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
},
globalTypes: {
darkMode: {
defaultValue: false, // Enable dark mode by default on all stories

View File

@ -46,10 +46,13 @@
"prop-types": "^15.8.1"
},
"peerDependencies": {
"mdx-mermaid": "2.0.0-rc7",
"next": "^13.2.1",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"mdx-mermaid": "2.0.0-rc7"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@storybook/addon-a11y": "^7.4.6"
}
}