@@ -500,110 +500,124 @@ export const HeaderWithQuickAccessItemsNavItemsAndSearchEngine = getStory(
500
500
}
501
501
) ;
502
502
503
- export const HeaderWithVerticalOperatorLogo = getStory (
504
- {
505
- "id" : "fr-header-header-with-vertical-operator-logo" ,
506
- "brandTop" : (
507
- < >
508
- INTITULE
509
- < br />
510
- OFFICIEL
511
- </ >
512
- ) ,
513
- "homeLinkProps" : {
514
- "href" : "/" ,
515
- "title" :
516
- "Accueil - [À MODIFIER - texte alternatif de l’image : nom de l'opérateur ou du site serviciel] - République Française"
517
- } ,
518
- "onSearchButtonClick" : text => alert ( `TODO: implement search with text: ${ text } ` ) ,
519
- "operatorLogo" : {
520
- "orientation" : "vertical" ,
521
- "imgUrl" : placeholder_9x16ImgUrl ,
522
- "alt" : "[À MODIFIER - texte alternatif de l’image]"
523
- }
503
+ export const HeaderWithVerticalOperatorLogo = getStory ( {
504
+ "id" : "fr-header-header-with-vertical-operator-logo" ,
505
+ "brandTop" : (
506
+ < >
507
+ INTITULE
508
+ < br />
509
+ OFFICIEL
510
+ </ >
511
+ ) ,
512
+ "homeLinkProps" : {
513
+ "href" : "/" ,
514
+ "title" :
515
+ "Accueil - [À MODIFIER - texte alternatif de l’image : nom de l'opérateur ou du site serviciel] - République Française"
524
516
} ,
525
-
526
- {
527
- "description" : `
528
-
529
- \`\`\`tsx
530
-
531
- <Header
532
- //...
533
- renderSearchInput={({ className, id, placeholder, type }) =>
534
- <input className={className} id={id} placeholder={placeholder} type={type} />
517
+ "onSearchButtonClick" : text => alert ( `TODO: implement search with text: ${ text } ` ) ,
518
+ "operatorLogo" : {
519
+ "orientation" : "vertical" ,
520
+ "imgUrl" : placeholder_9x16ImgUrl ,
521
+ "alt" : "[À MODIFIER - texte alternatif de l’image]"
535
522
}
536
- />
537
-
538
- \`\`\`
539
-
540
- `
541
- }
542
- ) ;
523
+ } ) ;
543
524
544
- export const WithHorizontalOperatorLogo = getStory (
545
- {
546
- "id" : "fr-header-with-horizontal-operator-logo" ,
547
- "brandTop" : (
548
- < >
549
- INTITULE
550
- < br />
551
- OFFICIEL
552
- </ >
553
- ) ,
554
- "homeLinkProps" : {
555
- "href" : "/" ,
556
- "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
525
+ export const WithHorizontalOperatorLogo = getStory ( {
526
+ "id" : "fr-header-with-horizontal-operator-logo" ,
527
+ "brandTop" : (
528
+ < >
529
+ INTITULE
530
+ < br />
531
+ OFFICIEL
532
+ </ >
533
+ ) ,
534
+ "homeLinkProps" : {
535
+ "href" : "/" ,
536
+ "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
537
+ } ,
538
+ "serviceTitle" : "Nom du site / service" ,
539
+ "serviceTagline" : "baseline - précisions sur l'organisation" ,
540
+ "quickAccessItems" : [
541
+ {
542
+ "iconId" : "fr-icon-add-circle-line" ,
543
+ "text" : "Créer un espace" ,
544
+ "linkProps" : {
545
+ "href" : "#"
546
+ }
557
547
} ,
558
- "serviceTitle" : "Nom du site / service" ,
559
- "serviceTagline" : "baseline - précisions sur l'organisation" ,
560
- "quickAccessItems" : [
561
- {
562
- "iconId" : "fr-icon-add-circle-line" ,
563
- "text" : "Créer un espace" ,
564
- "linkProps" : {
565
- "href" : "#"
566
- }
567
- } ,
568
- {
569
- "iconId" : "fr-icon-lock-line" ,
570
- "text" : "Se connecter" ,
571
- "linkProps" : {
572
- "href" : "#"
573
- }
574
- } ,
575
- {
576
- "iconId" : "fr-icon-account-line" ,
577
- "text" : "S’enregistrer" ,
578
- "linkProps" : {
579
- "href" : "#"
580
- }
548
+ {
549
+ "iconId" : "fr-icon-lock-line" ,
550
+ "text" : "Se connecter" ,
551
+ "linkProps" : {
552
+ "href" : "#"
553
+ }
554
+ } ,
555
+ {
556
+ "iconId" : "fr-icon-account-line" ,
557
+ "text" : "S’enregistrer" ,
558
+ "linkProps" : {
559
+ "href" : "#"
581
560
}
582
- ] ,
583
- "onSearchButtonClick" : text => alert ( `TODO: implement search with text: ${ text } ` ) ,
584
- "operatorLogo" : {
585
- "orientation" : "horizontal" ,
586
- "imgUrl" : placeholder_16x9ImgUrl ,
587
- "alt" : "[À MODIFIER - texte alternatif de l’image]"
588
561
}
589
- } ,
590
- {
591
- "description" : `
592
-
593
- \`\`\`tsx
594
-
595
- <Header
596
- //...
597
- renderSearchInput={({ className, id, name, placeholder, type }) =>
598
- <input className={className} id={id} name={name} placeholder={placeholder} type={type} />
562
+ ] ,
563
+ "onSearchButtonClick" : text => alert ( `TODO: implement search with text: ${ text } ` ) ,
564
+ "operatorLogo" : {
565
+ "orientation" : "horizontal" ,
566
+ "imgUrl" : placeholder_16x9ImgUrl ,
567
+ "alt" : "[À MODIFIER - texte alternatif de l’image]"
599
568
}
600
- />
601
-
602
- \`\`\`
603
-
604
- `
569
+ } ) ;
570
+
571
+ export const WithOperatorLogoWithLink = getStory ( {
572
+ "id" : "fr-header-with-operator-logo-with-link" ,
573
+ "brandTop" : (
574
+ < >
575
+ INTITULE
576
+ < br />
577
+ OFFICIEL
578
+ </ >
579
+ ) ,
580
+ "homeLinkProps" : {
581
+ "href" : "/" ,
582
+ "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
583
+ } ,
584
+ "serviceTitle" : "Nom du site / service" ,
585
+ "serviceTagline" : "baseline - précisions sur l'organisation" ,
586
+ "quickAccessItems" : [
587
+ {
588
+ "iconId" : "fr-icon-add-circle-line" ,
589
+ "text" : "Créer un espace" ,
590
+ "linkProps" : {
591
+ "href" : "#"
592
+ }
593
+ } ,
594
+ {
595
+ "iconId" : "fr-icon-lock-line" ,
596
+ "text" : "Se connecter" ,
597
+ "linkProps" : {
598
+ "href" : "#"
599
+ }
600
+ } ,
601
+ {
602
+ "iconId" : "fr-icon-account-line" ,
603
+ "text" : "S’enregistrer" ,
604
+ "linkProps" : {
605
+ "href" : "#"
606
+ }
607
+ }
608
+ ] ,
609
+ "onSearchButtonClick" : text => alert ( `TODO: implement search with text: ${ text } ` ) ,
610
+ "operatorLogo" : {
611
+ "orientation" : "horizontal" ,
612
+ "imgUrl" : placeholder_16x9ImgUrl ,
613
+ "alt" : "[À MODIFIER - texte alternatif de l’image]" ,
614
+ "linkProps" : {
615
+ "href" : "#" ,
616
+ "title" :
617
+ "Accueil - [À MODIFIER - texte alternatif de l’image : nom de l'opérateur ou du site serviciel] - République Française"
618
+ }
605
619
}
606
- ) ;
620
+ } ) ;
607
621
608
622
export const NavigationAsCustomNode = getStory (
609
623
{
0 commit comments