import type { Meta, StoryObj } from '@storybook/vue3' import LogoBrandSection from './LogoBrandSection.vue' const meta = { title: 'Composants/Données/LogoBrandSection', component: LogoBrandSection, argTypes: { 'headingLevelTitle': { control: { type: 'select', }, options: [1, 2, 3, 4, 5, 6], description: 'Le niveau de titre pour le serviceTitle.', }, 'headingLevelSubtitle': { control: { type: 'select', }, options: [1, 2, 3, 4, 5, 6], description: 'Le niveau de titre pour le serviceSubTitle.', }, 'theme': { description: 'Applique un preset de style à la section.', control: { type: 'select', }, options: [ 'ameli', 'ameli-pro', 'cnam', 'compte-ameli', 'compte-entreprise', 'default', 'risque-pro', ], }, 'serviceTitle': { description: 'Le titre du service (titre de niveau 1).', }, 'serviceSubTitle': { description: 'Le sous-titre du service (titre de niveau 2).', }, 'mobileVersion': { control: { type: 'boolean', }, description: 'Affiche la version mobile.', }, 'reduceLogo': { control: { type: 'boolean', }, description: 'Affiche la version Avatar du logo de l’Assurance Maladie s’il y a une marque secondaire. Sinon, masque la signature.
Déprécié, la ronde seule ne devrait plus être utilisée.', }, 'homeLink': { description: 'Le lien vers la page d’accueil.
La valeur `false` permet de désactiver le lien..', table: { type: { summary: '{ href?: string, to?: RouteLocationRaw, ariaLabel?: string }', }, defaultValue: { summary: `{ href: '/'}` }, }, }, 'default': { control: { type: 'text', }, description: 'Slot pour remplacer le contenu et afficher une marque partenaire.', table: { type: { summary: '{}', }, }, }, 'brand-content': { control: { type: 'text', }, description: 'Slot pour personnaliser le contenu de la marque.', table: { type: { summary: '{}', }, }, }, }, args: { theme: 'default', headingLevelSubtitle: 2, headingLevelTitle: 1, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { args: { headingLevelSubtitle: 2, headingLevelTitle: 1, serviceTitle: 'Synapse', serviceSubTitle: 'Documentation du Design System', }, parameters: { sourceCode: [ { name: 'Template', code: ` `, }, { name: 'Script', code: ` `, }, ], }, } export const WithBrand: Story = { args: { serviceTitle: 'Synapse', serviceSubTitle: ' Documentation du Design System', headingLevelTitle: 1, headingLevelSubtitle: 2, }, render: (args) => { return { components: { LogoBrandSection }, setup() { return { args } }, template: ` MSA, sécurité sociale agricole : santé, famille, retraite, services `, } }, parameters: { sourceCode: [ { name: 'Template', code: ` `, }, { name: 'Script', code: ` `, }, ], }, }