AAE-40269 Add storybook v10 (#11401)

This commit is contained in:
Wojciech Duda
2026-01-09 18:17:43 +00:00
committed by GitHub
parent f0c6cc0ff7
commit 5f9de1fde8
119 changed files with 11010 additions and 753 deletions
+34
View File
@@ -0,0 +1,34 @@
import { type Preview, type AngularRenderer, moduleMetadata } from '@storybook/angular';
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
import { withThemeByClassName } from '@storybook/addon-themes';
const preview: Preview = {
parameters: {
docs: { inlineStories: true },
controls: { expanded: true },
layout: 'centered'
},
decorators: [
moduleMetadata({
providers: [
{
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
useValue: {
appearance: 'outline'
}
}
]
}),
withThemeByClassName<AngularRenderer>({
themes: {
light: 'adf-storybook-light-theme',
dark: 'adf-storybook-dark-theme'
},
defaultTheme: 'light',
parentSelector: 'html'
})
],
tags: ['autodocs']
};
export default preview;