62 lines
1.4 KiB
TypeScript
62 lines
1.4 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { SettingsView, SettingsViewSkeleton } from './settings-view';
|
|
|
|
/**
|
|
* SettingsView - Vue principale des paramètres
|
|
*
|
|
* Interface à onglets pour naviguer entre les différentes
|
|
* sections de paramètres (profil, compte, apparence, sécurité, etc.)
|
|
*/
|
|
const meta: Meta<typeof SettingsView> = {
|
|
title: 'Components/Features/Views/SettingsView',
|
|
component: SettingsView,
|
|
parameters: {
|
|
layout: 'fullscreen',
|
|
docs: {
|
|
description: {
|
|
component:
|
|
'Vue avec navigation par onglets vers toutes les sections de paramètres.',
|
|
},
|
|
},
|
|
},
|
|
tags: ['autodocs'],
|
|
argTypes: {
|
|
initialTab: {
|
|
control: 'select',
|
|
options: [
|
|
'profile',
|
|
'account',
|
|
'appearance',
|
|
'accessibility',
|
|
'security',
|
|
'integrations',
|
|
'cloud',
|
|
'backups',
|
|
'data',
|
|
'audio',
|
|
'notifications',
|
|
],
|
|
description: 'Onglet à afficher par défaut',
|
|
},
|
|
},
|
|
decorators: [
|
|
(Story) => (
|
|
<div className="bg-background min-h-layout-page p-4">
|
|
<Story />
|
|
</div>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Loading: Story = {
|
|
name: 'Loading',
|
|
render: () => <SettingsViewSkeleton />,
|
|
};
|
|
|
|
export const Default: Story = {
|
|
name: 'Par défaut (Profile)',
|
|
args: { initialTab: 'profile' },
|
|
};
|