import { Controls, Canvas, Meta, Source } from "@storybook/blocks";
import * as HeaderBarStories from "./HeaderBar.stories";

<Meta of={HeaderBarStories} />

<div className="header">
  <h1>HeaderBar</h1>
</div>

<Canvas of={HeaderBarStories.Default} />

Pour voir l'utilisation du menu, veuillez consulter le composant `HeaderBurgerMenu` dans le menu de gauche.

## API

<Controls of={HeaderBarStories.Default} />

## Les slots

### Prepend

Le slot `prepend` permet d'ajouter du contenu en haut du header, il suivra le comportement du header au scroll.
Il est possible de récupérer le status du Menu de header en utilisant la prop `menuOpen` du slot `prepend`. (Fonctionne uniquement pour les menus s'enregistrant via la fonction injectée `registerHeaderMenu`, ce qui est le cas pour le composant `HeaderBurgerMenu`).
Le contenu du slot prend tout l'espace disponible en largeur. Pour que le contenu soit de même dimension que le header, il faut lui appliquer une largeur maximale de `1712px`.

<Source
  dark
  code={`
<template>
	<HeaderBar>
		<template #menu>
			<HeaderBurgerMenu>
				...
			</HeaderBurgerMenu>
		</template>
		<template #prepend="{ menuOpen }">
			<div class="header-prepend-content">
				<div v-if="menuOpen">
					Menu ouvert
				</div>
				<div v-else>
					Menu fermé
				</div>
			</div>
		</template>
	</HeaderBar>
</template>

<style lang="scss" scoped>
.header-prepend-content {
	width: 100%;
	max-width: 1712px;
	margin: 0 auto;
}
</style>
`}
/>

<Canvas
	of={HeaderBarStories.PrependSlot}
	source={{
language: 'html',
code:`
<template>
	<HeaderBar>
		<template #prepend>
			<div style="max-width: 1712px; margin: 0 auto; height: 26px; background-color: #0c419a;" class="pl-md-14 pl-4 text-white">
				<div>
					Contenu
				</div>
			</div>
		</template>
	</HeaderBar>
</template>
	`}}
/>

### Append

Le slot `append` permet d'ajouter du contenu en bas du header, il suivra le comportement du header au scroll.
Il est également possible de récupérer le status du Menu de header en utilisant la prop `menuOpen` du slot `append`.
Le contenu du slot prend tout l'espace disponible en largeur. Pour que le contenu soit de même dimension que le header, il faut lui appliquer une largeur maximale de `1712px`.

<Source
	dark
	code={`
<template>
  <HeaderBar>
	<template #append="{ menuOpen }">
	  <div v-if="menuOpen">Menu ouvert</div>
	  <div v-else>Menu fermé</div>
	</template>
  </HeaderBar>
</template>

<style lang="scss" scoped>
.header-append-content {
	width: 100%;
	max-width: 1712px;
	margin: 0 auto;
}
</style>
`}
/>

<Canvas
	of={HeaderBarStories.AppendSlot}
	source={{
		language: 'html',
		code:`
<template>
	<HeaderBar>
		<template #append>
			<div style="max-width: 1712px; margin: 0 auto; height: 26px; background-color: #0c419a;" class="pl-md-14 pl-4 text-white">
				<div>contenu</div>
			</div>
		</template>
	</HeaderBar>
</template>
	`}}
/>

### Menu

Le slot `menu` permet d'ajouter un menu au header. Il est recommandé d'utiliser le composant `HeaderBurgerMenu` du design system.

<Source
  dark
  code={`
<template>
  <HeaderBar>
	<template #menu>
	  <HeaderBurgerMenu>
		...
	  </HeaderBurgerMenu>
	</template>
  </HeaderBar>
</template>
`}
/>

Voir le composant `HeaderBurgerMenu` pour un exemple d'usage..

### Logo

Le slot `logo` permet d’écraser le logo par défaut du header. Il est déconseillé de l'utiliser. Si cela n'est pas possible l'intégration d'un nouveau logo doit se faire en respectant les guidelines de la charte graphique.

<Source
  dark
  code={`
<template>
  <HeaderBar>
	<template #logo>
	  <img src="https://via.placeholder.com/150" alt="Logo" />
	</template>
  </HeaderBar>
</template>
`}
/>

<Canvas
	of={HeaderBarStories.CustomLogo}
		source={{
language: 'html',
code:`
<template>
	<HeaderBar>
		<template #logo-brand-content="{ menuOpen }">
			<svg data-v-7f5c1754="" width="22" height="64" fill="#0c419a" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 64" class="vd-divider"><path data-v-7f5c1754="" d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z"></path></svg>
			<img
				src="/ameli.svg"
				alt="Logo de ameli.fr"
			>
		</template>
	</HeaderBar>
	<br>
	<HeaderBar>
		<template #logo-brand-content="{ menuOpen }">
			<svg data-v-7f5c1754="" width="22" height="64" fill="#0c419a" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 64" class="vd-divider"><path data-v-7f5c1754="" d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z"></path></svg>
			<img
				src="/ameli-pro.svg"
				alt="Logo de ameli-pro"
			>
		</template>
	</HeaderBar>
	<br>
	<HeaderBar>
		<template #logo-brand-content="{ menuOpen }">
			<svg data-v-7f5c1754="" width="22" height="64" fill="#0c419a" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 64" class="vd-divider"><path data-v-7f5c1754="" d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z"></path></svg>
			<img
				src="/cnam.svg"
				alt="Logo de la CPAM"
			>
		</template>
	</HeaderBar>
	<br>
	<HeaderBar>
		<template #logo-brand-content="{ menuOpen }">
			<svg data-v-7f5c1754="" width="22" height="64" fill="#006386" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 64" class="vd-divider"><path data-v-7f5c1754="" d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z"></path></svg>
			<img
				src="/compte-ameli.svg"
				alt="Logo du compte ameli"
			>
		</template>
	</HeaderBar>
	<br>
	<HeaderBar>
		<template #logo="{ menuOpen }">
			<svg data-v-7f5c1754="" fill="#0c419a" aria-label="l’Assurance Maladie: Risques Professionnels" width="211" height="64" viewBox="0 0 211 64" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" aria-hidden="false" class=""><path fill="#cd545b" d="M68 55.8h2.8a3 3 0 0 1 2 .6c.5.4.8 1 .8 1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-.8-.4-1.6.3-2 .7-.5 1.5-.2 2 .6s.3 1.6-.4 2c-.6.5-1.4.2-2-.6Zm1.7-1c-.3-.6-.7-.7-1-.5-.4.2-.5.6-.1 1.1.3.6.7.8 1 .6.4-.3.4-.7.1-1.2Z"></path><path d="M18.7 5c-.5-1 0-1.8.6-2.1.4-.2.7-.1 1 0l-.2.5h-.6c-.3.2-.5.7-.2 1.2.2.6.7.8 1 .6.3-.1.4-.3.5-.5l.5.2c-.1.4-.3.7-.7.8-.7.3-1.5.1-2-.8Z"></path><path d="m21.4 2.1.6-.2 1 2.8-.6.2-1-2.8Z"></path><path d="M24 1.2 25 1l1.7 2.7-.7.1-.8-1.3-.4-1v2.7l-.7.2V1.2Zm.2 1.8 1.4-.4.2.5-1.4.4-.2-.5Z"></path><path d="m26.9.5.7-.1.3 2.4 1.2-.2v.6l-1.8.3-.4-3Z"></path><path d="m29.8.1 2-.1v.6h-1.2v.7l1-.1v.6h-1v.7H32V3l-1.9.1-.2-3Z"></path></g><g><path d="M100.1 45V30.6h3.8v14.6c0 .8.4 1 .7 1h.5l.5 2.9a5 5 0 0 1-2 .3c-2.6 0-3.5-1.7-3.5-4.4Z"></path><path d="m75.7 40.4 3.8-8.5h4V49h-3.6V38.4l-3 7.8h-2.4l-3-7.8v10.7H68V32h4l3.8 8.5Z"></path><path d="M107.1 45.5c0-2.8 2.3-4.3 7.4-4.9 0-1.1-.8-1.8-2.2-1.8-1 0-2.1.4-3.4 1.2l-1.3-2.6c1.6-1 3.5-1.7 5.5-1.7 3.3 0 5 1.9 5 5.9V49h-3.5v-1.3s-1.5 1.6-3.6 1.6c-2.4 0-3.9-1.7-3.9-4Zm7.4-.3V43c-2.7.3-3.7 1.2-3.7 2.2 0 .8.5 1.2 1.5 1.2.8 0 1.5-.5 2.2-1.2Z"></path><path d="M86.1 45.5c0-2.8 2.3-4.3 7.4-4.9 0-1.1-.8-1.8-2.2-1.8-1 0-2.1.4-3.4 1.2l-1.3-2.6c1.6-1 3.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 0 .5 0 .2.4-.1.2-1.6.9-2 1-1 .4-3.6 4.6-4.3 5-.7.3-1 .6-1.3.8-1 .6-2.1 1.4-2.7 1.4-.7 0-1.4.3-1.9 1.5-.1.3 0 .5.3.5 0 .1.2.3.4.3.2.2.5 0 .7 0l1-.7c.5-.2 4-1.5 4.7-2.1 1.2-.6 3.5-3 4-3s1.6 1 1.2 3c0 .7-1 2-1.4 2.6-1 1.5-.2 2.7-.4 3-1 1.6-2.2 3.7-4.2 5.5-.8.6-2.4.7-3.3 1-2 .5-4.2 2-5.7 2.8-.5.3-1-.3-1.6-.4-.7 0-.7 1-1 1.8l-.7 1.5c-.1.4-.7 1.7-.1 2.2.4.7 1.5-1.4 2.4-2.3.4-.5.7-.7 1.7-1 .6 0 5.6-1.4 8.8-2.2h.3c4.2-1.1 8.6-6.6 8.7-6.6l7.2 3.5c.7.4.7 1.8 1.5 3.4a22 22 0 0 0 4.4 4.9c.4.4 0 1 .2 1.6.2.6.6.6 1.1.6l1.6-.2c.7 0 .5 0 1.3.2.4 0 1.3.1 2-.5 1-1.2-1.2-.6-2.3-1.1Z"></path><path d="M44 51.7a.4.4 0 0 0-.6-.2 22.2 22.2 0 0 1-21-.6.5.5 0 0 0-.6.2c-.1.2 0 .4.1.6a23 23 0 0 0 21.9.5c.2 0 .3-.3.2-.5Z"></path><path d="M12.9 22.9h-.2c-.2-.2-.3-.4-.2-.6 2-4.4 5.2-8 9.3-10.4.2-.1.5 0 .6.2.2.2 0 .4-.1.6-4 2.3-7.1 5.7-9 10l-.4.2Z"></path><path d="M50.3 17.3c-.1 0-.3 0-.3-.2A22 22 0 0 0 36.5 10c-.2 0-.4-.3-.3-.5 0-.3.2-.4.5-.4a23 23 0 0 1 14 7.5v.7h-.4Z"></path></svg>
		</template>
	</HeaderBar>
</template>
	`}}
/>

### CustomBrand

Le slot `custom-brand` permet d'ajouter un contenu personnalisé à la place du logo. Il est possible d'ajouter plusieurs éléments dans ce slot.

<Canvas
	of={HeaderBarStories.CustomBrand}
	source={{
		language: 'html',
		format: 'dedent',
		code:`
			<template>
				<HeaderBar>
					<template #logo-brand-content>
						<svg data-v-a3ce97de="" width="22" height="64" fill="#0c419a" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 64" class="vd-divider"><path data-v-a3ce97de="" d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z"></path></svg>
						<div>
							<div>
								<div style="font-size: 1.15rem;">Brand <span style="color: red">custom</span></div>
								<div style="font-size: 0.75rem;">un service de l'assurance maladie</div>
							</div>
						</div>
					</template>
				</HeaderBar>
			</template>
			`}}
/>

### HeaderSide

Le slot `header-side` permet d'ajouter du contenu à droite du header. Il est possible d'ajouter plusieurs éléments dans ce slot.
Il sera principalement utilisé pour ajouter un bouton de connexion, d'accès à un compte ou de recherche.
Il est nécessaire de faire attention à la place que prendront les éléments en mode mobile et de prévoir un mode réduit ou bien de les déporter dans le menu burger.

<Canvas
	of={HeaderBarStories.WithRightMenu}
	source={{
		language: 'html',
		format: 'dedent',
		code:`
	<script setup lang="ts">
		import { mdiMagnify, mdiAccountCircleOutline } from '@mdi/js'
	</script>
import '../../stories/styles/shared.css';

	<template>
		<HeaderBar>
			<template #header-side>
			<div class="d-flex justify-center h-100 ga-4 pr-4">
				<VBtn
					variant="text"
					:prepend-icon="mdiMagnify"
					color="primary"
				>
					Rechercher
				</VBtn>
				<VBtn
					color="primary"
					:prepend-icon="mdiAccountCircleOutline"
				>
					Login
				</VBtn>
			</div>
			</template>
		</HeaderBar>
	</template>
	`}}
/>
