Add cards, operations, refunds, categories and monthly summaries with Mantine date controls. Derive banking types from runtime OpenAPI. Cover recovery and session isolation.
46 lines
1.0 KiB
TypeScript
46 lines
1.0 KiB
TypeScript
import "@mantine/core/styles.css";
|
|
import "@mantine/charts/styles.css";
|
|
import "@mantine/dates/styles.css";
|
|
import "dayjs/locale/ru";
|
|
import "../src/shared/i18n";
|
|
import { MantineProvider } from "@mantine/core";
|
|
import { DatesProvider } from "@mantine/dates";
|
|
import type { Preview } from "@storybook/react-vite";
|
|
import { cssVariablesResolver, theme } from "@/shared/theme";
|
|
|
|
const colorSchemeManager = {
|
|
get: () => "light" as const,
|
|
set: () => {},
|
|
clear: () => {},
|
|
subscribe: () => {},
|
|
unsubscribe: () => {},
|
|
};
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
layout: "padded",
|
|
options: {
|
|
storySort: {
|
|
order: ["Design System", ["Foundations", "Components"], "Product"],
|
|
},
|
|
},
|
|
controls: { expanded: true },
|
|
},
|
|
decorators: [
|
|
(Story) => (
|
|
<MantineProvider
|
|
cssVariablesResolver={cssVariablesResolver}
|
|
theme={theme}
|
|
forceColorScheme="light"
|
|
colorSchemeManager={colorSchemeManager}
|
|
>
|
|
<DatesProvider settings={{ locale: "ru" }}>
|
|
<Story />
|
|
</DatesProvider>
|
|
</MantineProvider>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default preview;
|