Sergey Krylov 53659a36b1 feat(design-system): add data components, form/page-state patterns, and frontend integration
- Inputs: TextField, Select, Checkbox
- Surfaces: Surface, Card, Chip, Badge
- Feedback: Alert, Dialog, Skeleton, Progress
- Financial data: DataTable, Metric, Money, PriceChange
- Form & page-state: FormField, FilterBar, EmptyState, ErrorState, LoadingState
- MUI CssVarsProvider -> ThemeProvider deprecation fix
- Inter font bundled via @fontsource/inter
- ESLint no-restricted-imports (warn) for gradual migration
- storybook-static gitignored

All 268 tests pass (157 design-system + 111 frontend)
2026-06-21 09:49:18 +03:00

53 lines
1.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { Meta, StoryObj } from '@storybook/react';
import { Surface } from './Surface';
const meta: Meta<typeof Surface> = {
title: 'Surfaces/Surface',
component: Surface,
argTypes: {
padding: {
control: 'select',
options: ['none', 'sm', 'md', 'lg'],
},
elevation: {
control: 'select',
options: ['none', 'sm', 'md'],
},
},
};
export default meta;
type Story = StoryObj<typeof Surface>;
export const Default: Story = {
args: {
padding: 'md',
elevation: 'none',
children: 'Содержимое поверхности',
},
};
export const Elevated: Story = {
args: {
padding: 'md',
elevation: 'md',
children: 'Поверхность с тенью',
},
};
export const NoPadding: Story = {
args: {
padding: 'none',
elevation: 'sm',
children: 'Поверхность без отступов',
},
};
export const LargePadding: Story = {
args: {
padding: 'lg',
elevation: 'sm',
children: 'Поверхность с большими отступами',
},
};