veza/apps/web/src/components/views/AuthView.stories.tsx
senke 3ddf813275 style(views): elevate AuthView to SaaS Premium standards
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-07 09:39:51 +01:00

45 lines
1,009 B
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 { AuthView, AuthViewSkeleton } from './auth-view';
const meta: Meta<typeof AuthView> = {
title: 'Components/Features/Views/AuthView',
component: AuthView,
parameters: { layout: 'fullscreen' },
tags: ['autodocs'],
decorators: [
(Story) => (
<div className="bg-background min-h-layout-page p-4">
<Story />
</div>
),
],
argTypes: {
initialStep: {
control: 'select',
options: ['LOGIN', 'REGISTER', 'VERIFY_EMAIL', 'FORGOT_PASSWORD', 'RESET_PASSWORD'],
description: 'Étape dauth initiale',
},
},
};
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
name: 'Par défaut (Login)',
args: {
initialStep: 'LOGIN',
},
};
export const Loading: Story = {
render: () => <AuthViewSkeleton />,
name: 'Chargement',
};
export const RegisterStep: Story = {
name: 'Étape Inscription',
args: {
initialStep: 'REGISTER',
},
};