feat: Sidebar + SidebarToggle, адаптивность компонентов (0.2.0)

This commit is contained in:
Тимур Городецкий
2026-08-14 10:35:42 +05:00
parent e65805379e
commit c72f93e359
38 changed files with 985 additions and 14 deletions
+19 -11
View File
@@ -1,21 +1,29 @@
import type { Preview } from '@storybook/react-vite'
import type { Preview } from '@storybook/react-vite';
import * as React from 'react';
import { IconSprite } from '../src/Icon/IconSprite';
const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
color: /(background|color)$/i,
date: /Date$/i,
},
},
a11y: {
// 'todo' - show a11y violations in the test UI only
// 'error' - fail CI on a11y violations
// 'off' - skip a11y checks entirely
test: 'todo'
}
a11y: { test: 'todo' },
},
// Спрайт иконок монтируется один раз для ВСЕХ историй — иначе <Icon> пустой.
// Плюс общий отступ и шрифт Inter, как в боевом портале.
decorators: [
(Story) => (
<>
<IconSprite />
<div style={{ padding: 16, fontFamily: "'Inter', -apple-system, 'Segoe UI', sans-serif" }}>
<Story />
</div>
</>
),
],
};
export default preview;
export default preview;