2025-11-19 22:15:25 +03:00
|
|
|
import type { Preview } from '@storybook/react'
|
2025-11-20 09:26:01 +03:00
|
|
|
import { StyleDecorator } from './StyleDecorator.tsx'
|
2025-11-19 22:15:25 +03:00
|
|
|
|
|
|
|
|
const preview: Preview = {
|
2025-11-20 09:26:01 +03:00
|
|
|
decorators: [StyleDecorator],
|
2025-11-19 22:15:25 +03:00
|
|
|
parameters: {
|
|
|
|
|
controls: {
|
|
|
|
|
matchers: {
|
|
|
|
|
color: /(background|color)$/i,
|
|
|
|
|
date: /Date$/i,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
backgrounds: {
|
|
|
|
|
default: 'light',
|
|
|
|
|
values: [
|
|
|
|
|
{
|
|
|
|
|
name: 'light',
|
2025-11-20 09:26:01 +03:00
|
|
|
value: '#F4F5F9',
|
2025-11-19 22:15:25 +03:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'dark',
|
|
|
|
|
value: '#1a1a1a',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default preview
|