@@ -6,6 +6,19 @@ import { assert } from "tsafe/assert";
66import type { Equals } from "tsafe" ;
77import placeholder_9x16ImgUrl from "./assets/placeholder.9x16.png" ;
88import placeholder_16x9ImgUrl from "./assets/placeholder.16x9.png" ;
9+ import { setBrandTopAndHomeLinkProps } from "../dist/zz_internal/brandTopAndHomeLinkProps" ;
10+
11+ setBrandTopAndHomeLinkProps ( {
12+ "brandTop" : < >
13+ INTITULE
14+ < br />
15+ OFFICIEL
16+ </ > ,
17+ "homeLinkProps" : {
18+ "href" : "/" ,
19+ "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
20+ }
21+ } ) ;
922
1023const { meta, getStory } = getStoryFactory ( {
1124 sectionName,
@@ -14,9 +27,6 @@ const { meta, getStory } = getStoryFactory({
1427- [See DSFR documentation](https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/pied-de-page)
1528- [See source code](https://github.com/codegouvfr/react-dsfr/blob/main/src/Footer.tsx)` ,
1629 "argTypes" : {
17- "brandTop" : {
18- "control" : { "type" : null }
19- } ,
2030 "accessibility" : {
2131 "options" : ( ( ) => {
2232 const accessibility = [
@@ -46,9 +56,6 @@ const { meta, getStory } = getStoryFactory({
4656 "cookiesManagementLinkProps" : {
4757 "control" : { "type" : null }
4858 } ,
49- "homeLinkProps" : {
50- "control" : { "type" : null }
51- } ,
5259 "bottomItems" : {
5360 "description" :
5461 "To integrate the Dark mode switch head over to the documentation of the [Display component](https://react-dsfr-components.etalab.studio/?path=/docs/components-display)"
@@ -66,13 +73,6 @@ const { meta, getStory } = getStoryFactory({
6673export default meta ;
6774
6875export const Default = getStory ( {
69- "brandTop" : (
70- < >
71- INTITULE
72- < br />
73- OFFICIEL
74- </ >
75- ) ,
7676 "accessibility" : "fully compliant" ,
7777 "contentDescription" : `
7878 Ce message est à remplacer par les informations de votre site.
@@ -94,20 +94,9 @@ export const Default = getStory({
9494 "cookiesManagementLinkProps" : {
9595 "href" : "#"
9696 } ,
97- "homeLinkProps" : {
98- "href" : "/" ,
99- "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
100- }
10197} ) ;
10298
10399export const FooterWithVerticalOperatorLogo = getStory ( {
104- "brandTop" : (
105- < >
106- INTITULE
107- < br />
108- OFFICIEL
109- </ >
110- ) ,
111100 "accessibility" : "fully compliant" ,
112101 "contentDescription" : `
113102 Ce message est à remplacer par les informations de votre site.
@@ -117,10 +106,6 @@ export const FooterWithVerticalOperatorLogo = getStory({
117106 Retrouvez toutes les informations et démarches administratives nécessaires à la création,
118107 à la gestion et au développement de votre entreprise.
119108 ` ,
120- "homeLinkProps" : {
121- "href" : "/" ,
122- "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
123- } ,
124109 "operatorLogo" : {
125110 "orientation" : "vertical" ,
126111 "imgUrl" : placeholder_9x16ImgUrl ,
@@ -129,13 +114,6 @@ export const FooterWithVerticalOperatorLogo = getStory({
129114} ) ;
130115
131116export const FooterWithHorizontalOperatorLogo = getStory ( {
132- "brandTop" : (
133- < >
134- INTITULE
135- < br />
136- OFFICIEL
137- </ >
138- ) ,
139117 "accessibility" : "fully compliant" ,
140118 "contentDescription" : `
141119 Ce message est à remplacer par les informations de votre site.
@@ -145,10 +123,6 @@ export const FooterWithHorizontalOperatorLogo = getStory({
145123 Retrouvez toutes les informations et démarches administratives nécessaires à la création,
146124 à la gestion et au développement de votre entreprise.
147125 ` ,
148- "homeLinkProps" : {
149- "href" : "/" ,
150- "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
151- } ,
152126 "operatorLogo" : {
153127 "orientation" : "horizontal" ,
154128 "imgUrl" : placeholder_16x9ImgUrl ,
@@ -157,13 +131,6 @@ export const FooterWithHorizontalOperatorLogo = getStory({
157131} ) ;
158132
159133export const WithCustomLicense = getStory ( {
160- "brandTop" : (
161- < >
162- INTITULE
163- < br />
164- OFFICIEL
165- </ >
166- ) ,
167134 "accessibility" : "fully compliant" ,
168135 "contentDescription" : `
169136 Ce message est à remplacer par les informations de votre site.
@@ -173,10 +140,6 @@ export const WithCustomLicense = getStory({
173140 Retrouvez toutes les informations et démarches administratives nécessaires à la création,
174141 à la gestion et au développement de votre entreprise.
175142 ` ,
176- "homeLinkProps" : {
177- "href" : "/" ,
178- "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
179- } ,
180143 "license" : (
181144 < >
182145 Unless stated otherwise all content of this website are under{ " " }
@@ -188,13 +151,6 @@ export const WithCustomLicense = getStory({
188151} ) ;
189152
190153export const WithPartners = getStory ( {
191- "brandTop" : (
192- < >
193- INTITULE
194- < br />
195- OFFICIEL
196- </ >
197- ) ,
198154 "accessibility" : "fully compliant" ,
199155 "contentDescription" : `
200156 Ce message est à remplacer par les informations de votre site.
@@ -204,10 +160,6 @@ export const WithPartners = getStory({
204160 Retrouvez toutes les informations et démarches administratives nécessaires à la création,
205161 à la gestion et au développement de votre entreprise.
206162 ` ,
207- "homeLinkProps" : {
208- "href" : "/" ,
209- "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
210- } ,
211163 "partnersLogos" : {
212164 "main" : {
213165 "href" : "#" ,
@@ -230,13 +182,6 @@ export const WithPartners = getStory({
230182} ) ;
231183
232184export const WithMainPartnerOnly = getStory ( {
233- "brandTop" : (
234- < >
235- INTITULE
236- < br />
237- OFFICIEL
238- </ >
239- ) ,
240185 "accessibility" : "fully compliant" ,
241186 "contentDescription" : `
242187 Ce message est à remplacer par les informations de votre site.
@@ -246,10 +191,6 @@ export const WithMainPartnerOnly = getStory({
246191 Retrouvez toutes les informations et démarches administratives nécessaires à la création,
247192 à la gestion et au développement de votre entreprise.
248193 ` ,
249- "homeLinkProps" : {
250- "href" : "/" ,
251- "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
252- } ,
253194 "partnersLogos" : {
254195 "main" : {
255196 "href" : "#" ,
@@ -260,13 +201,6 @@ export const WithMainPartnerOnly = getStory({
260201} ) ;
261202
262203export const WithSubPartnersOnly = getStory ( {
263- "brandTop" : (
264- < >
265- INTITULE
266- < br />
267- OFFICIEL
268- </ >
269- ) ,
270204 "accessibility" : "fully compliant" ,
271205 "contentDescription" : `
272206 Ce message est à remplacer par les informations de votre site.
@@ -276,10 +210,6 @@ export const WithSubPartnersOnly = getStory({
276210 Retrouvez toutes les informations et démarches administratives nécessaires à la création,
277211 à la gestion et au développement de votre entreprise.
278212 ` ,
279- "homeLinkProps" : {
280- "href" : "/" ,
281- "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
282- } ,
283213 "partnersLogos" : {
284214 "sub" : [
285215 {
@@ -306,13 +236,6 @@ const linkList = new Array(6).fill({
306236} ) as FooterProps . LinkList . List ;
307237
308238export const WithLinkList = getStory ( {
309- "brandTop" : (
310- < >
311- INTITULE
312- < br />
313- OFFICIEL
314- </ >
315- ) ,
316239 "accessibility" : "fully compliant" ,
317240 "contentDescription" : `
318241 Ce message est à remplacer par les informations de votre site.
@@ -322,9 +245,5 @@ export const WithLinkList = getStory({
322245 Retrouvez toutes les informations et démarches administratives nécessaires à la création,
323246 à la gestion et au développement de votre entreprise.
324247 ` ,
325- "homeLinkProps" : {
326- "href" : "/" ,
327- "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
328- } ,
329248 linkList
330249} ) ;
0 commit comments