71 lines
1.5 KiB
TypeScript
71 lines
1.5 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { fn } from '@storybook/test';
|
|
import { FullPlayer } from './FullPlayer';
|
|
|
|
/**
|
|
* FullPlayer - Lecteur plein écran
|
|
*
|
|
* Vue immersive du lecteur avec artwork, waveform,
|
|
* paroles et contrôles avancés.
|
|
*/
|
|
const meta: Meta<typeof FullPlayer> = {
|
|
title: 'Components/Features/Player/FullPlayer',
|
|
component: FullPlayer,
|
|
parameters: {
|
|
layout: 'fullscreen',
|
|
docs: {
|
|
description: {
|
|
component: 'Lecteur audio plein écran avec artwork et waveform.',
|
|
},
|
|
},
|
|
},
|
|
tags: ['autodocs'],
|
|
args: {
|
|
onClose: fn(),
|
|
},
|
|
decorators: [
|
|
(Story) => (
|
|
<div className="bg-background min-h-screen">
|
|
<Story />
|
|
</div>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
/**
|
|
* État par défaut.
|
|
*/
|
|
export const Default: Story = {
|
|
name: 'Par défaut',
|
|
};
|
|
|
|
/**
|
|
* Avec panneau de queue visible.
|
|
*/
|
|
export const WithQueue: Story = {
|
|
name: 'Avec Queue',
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
story: 'Affiche le panneau de queue à côté du player.',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
/**
|
|
* Avec paroles affichées.
|
|
*/
|
|
export const WithLyrics: Story = {
|
|
name: 'Avec Paroles',
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
story: 'Affiche les paroles synchronisées.',
|
|
},
|
|
},
|
|
},
|
|
};
|