Frontend security / security (push) Successful in 9s
Frontend verify / verify (push) Failing after 37m50s
Frontend security / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Failing after 42m10s
Conventional commits / commits (pull_request) Successful in 29s
Enable every plugin recommended preset and replace Biome with ESLint formatting. Preserve API contracts and JSX whitespace; verify source, tests, builds and tooling.
40 lines
1.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||
|
||
import { Button } from "@mantine/core";
|
||
import { fn } from "storybook/test";
|
||
|
||
import { EntryCard } from "./EntryCard";
|
||
|
||
const meta = {
|
||
args: {
|
||
actions: (
|
||
<Button onClick={fn()} size="compact-sm">
|
||
Открыть пример
|
||
</Button>
|
||
),
|
||
imageSrc: "data:image/png;base64,invalid",
|
||
initial: "У",
|
||
metadata: "22.09.2026 · Синтетические данные",
|
||
title:
|
||
"Учебная запись с очень длинным названием для проверки узкого экрана",
|
||
tone: "negative",
|
||
value: "−1 250,00 ₽",
|
||
valueLabel: "Тестовое значение",
|
||
},
|
||
component: EntryCard,
|
||
parameters: {
|
||
docs: {
|
||
description: {
|
||
component:
|
||
"Готовые строки и slots без финансовых вычислений. Невалидное локальное изображение показывает fallback; действие доступно с клавиатуры и на узком экране. Данные вымышлены.",
|
||
},
|
||
},
|
||
},
|
||
tags: ["autodocs"],
|
||
title: "Design System/Components/EntryCard",
|
||
} satisfies Meta<typeof EntryCard>;
|
||
|
||
export default meta;
|
||
type Story = StoryObj<typeof meta>;
|
||
export const LongContentAndFallback: Story = {};
|