@ilo-org/twig 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build:lib.log +2 -2
- package/CHANGELOG.md +56 -0
- package/images/fao-logo.svg +195 -0
- package/images/logo_en_horizontal_blue.svg +893 -0
- package/images/unhcr-logo.svg +1 -0
- package/images/unicef-logo.png +0 -0
- package/images/wfp-logo.svg +1 -0
- package/images/who-logo.svg +1 -0
- package/package.json +2 -2
- package/src/patterns/components/accordion/accordion-item.twig +1 -1
- package/src/patterns/components/accordion/accordion.twig +3 -2
- package/src/patterns/components/accordion/accordion.wingsuit.yml +27 -8
- package/src/patterns/components/card/card.twig +18 -119
- package/src/patterns/components/card/card.wingsuit.yml +162 -223
- package/src/patterns/components/card_data/card_data.stories.jsx +9 -0
- package/src/patterns/components/card_data/card_data.twig +49 -0
- package/src/patterns/components/card_data/card_data.wingsuit.yml +73 -0
- package/src/patterns/components/card_data/index.js +9 -0
- package/src/patterns/components/card_detail/card_detail.stories.jsx +9 -0
- package/src/patterns/components/card_detail/card_detail.twig +37 -0
- package/src/patterns/components/card_detail/card_detail.wingsuit.yml +73 -0
- package/src/patterns/components/card_detail/index.js +9 -0
- package/src/patterns/components/card_factlist/card_factlist.stories.jsx +9 -0
- package/src/patterns/components/card_factlist/card_factlist.twig +21 -0
- package/src/patterns/components/card_factlist/card_factlist.wingsuit.yml +49 -0
- package/src/patterns/components/card_factlist/index.js +9 -0
- package/src/patterns/components/card_feature/card_feature.stories.jsx +9 -0
- package/src/patterns/components/card_feature/card_feature.twig +39 -0
- package/src/patterns/components/card_feature/card_feature.wingsuit.yml +82 -0
- package/src/patterns/components/card_feature/index.js +9 -0
- package/src/patterns/components/card_multilink/card_multilink.stories.jsx +9 -0
- package/src/patterns/components/card_multilink/card_multilink.twig +42 -0
- package/src/patterns/components/card_multilink/card_multilink.wingsuit.yml +88 -0
- package/src/patterns/components/card_multilink/index.js +9 -0
- package/src/patterns/components/card_promo/card_promo.stories.jsx +9 -0
- package/src/patterns/components/card_promo/card_promo.twig +35 -0
- package/src/patterns/components/card_promo/card_promo.wingsuit.yml +73 -0
- package/src/patterns/components/card_promo/index.js +9 -0
- package/src/patterns/components/card_stat/card_stat.stories.jsx +9 -0
- package/src/patterns/components/card_stat/card_stat.twig +22 -0
- package/src/patterns/components/card_stat/card_stat.wingsuit.yml +48 -0
- package/src/patterns/components/card_stat/index.js +9 -0
- package/src/patterns/components/card_text/card_text.stories.jsx +9 -0
- package/src/patterns/components/card_text/card_text.twig +35 -0
- package/src/patterns/components/card_text/card_text.wingsuit.yml +59 -0
- package/src/patterns/components/card_text/index.js +9 -0
- package/src/patterns/components/cardgroup/cardgroup.twig +15 -20
- package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +69 -449
- package/src/patterns/components/hero/hero.twig +1 -1
- package/src/patterns/components/logogrid/index.js +6 -0
- package/src/patterns/components/logogrid/logogrid.stories.jsx +9 -0
- package/src/patterns/components/logogrid/logogrid.twig +17 -0
- package/src/patterns/components/logogrid/logogrid.wingsuit.yml +46 -0
- package/src/patterns/components/picture/index.js +6 -0
- package/src/patterns/components/picture/picture.twig +21 -0
- package/src/patterns/components/accordion/accordion-item.wingsuit.yml +0 -30
|
@@ -1,13 +1,76 @@
|
|
|
1
1
|
cardgroup:
|
|
2
2
|
use: "@components/cardgroup/cardgroup.twig"
|
|
3
3
|
label: Card Group
|
|
4
|
-
description:
|
|
4
|
+
description: A group of cards
|
|
5
|
+
visibility: storybook
|
|
6
|
+
settings:
|
|
7
|
+
collapsed:
|
|
8
|
+
type: select
|
|
9
|
+
label: collapsed
|
|
10
|
+
description: Optionally collapses margins between the cards.
|
|
11
|
+
required: false
|
|
12
|
+
preview: false
|
|
13
|
+
options:
|
|
14
|
+
true: True
|
|
15
|
+
false: False
|
|
16
|
+
justify:
|
|
17
|
+
type: select
|
|
18
|
+
label: collapsed
|
|
19
|
+
description: Sets the horizontal justification of the cards. `between` justifies the cards to the left and right edges of the container, and the space between the cards is distributed evenly. `center` is the default.
|
|
20
|
+
required: false
|
|
21
|
+
preview: center
|
|
22
|
+
options:
|
|
23
|
+
start: start
|
|
24
|
+
center: center
|
|
25
|
+
between: between
|
|
26
|
+
size:
|
|
27
|
+
type: select
|
|
28
|
+
label: Size
|
|
29
|
+
description: Sets the size of all of the cards. See the `Card` component for more details on the different sizes.
|
|
30
|
+
required: false
|
|
31
|
+
options:
|
|
32
|
+
standard: standard
|
|
33
|
+
narrow: narrow
|
|
34
|
+
wide: wide
|
|
35
|
+
fluid: fluid
|
|
5
36
|
fields:
|
|
6
37
|
group:
|
|
7
38
|
type: object
|
|
8
39
|
label: Group of cards
|
|
9
|
-
description: The group of cards,
|
|
40
|
+
description: "The group of cards. Each card can be one of the following types: multilink, feature, detail, graphicpromo, stat, graphic, factlist, data. All fields are passed to cards except for size, which is managed by the card group."
|
|
10
41
|
preview:
|
|
42
|
+
- type: text
|
|
43
|
+
eyebrow: "Podcast"
|
|
44
|
+
title: "Can digital technology be an equality machine?"
|
|
45
|
+
link: "https://www.ilo.org/"
|
|
46
|
+
cta:
|
|
47
|
+
label: "Read the press release"
|
|
48
|
+
url: "https://www.ilo.org/global/about-the-ilo/newsroom/news/WCMS_846303/lang--en/index.htm"
|
|
49
|
+
theme: dark
|
|
50
|
+
- type: text
|
|
51
|
+
eyebrow: "Podcast"
|
|
52
|
+
title: "Can digital technology be an equality machine?"
|
|
53
|
+
link: "https://www.ilo.org/"
|
|
54
|
+
cta:
|
|
55
|
+
label: "Read the press release"
|
|
56
|
+
url: "https://www.ilo.org/global/about-the-ilo/newsroom/news/WCMS_846303/lang--en/index.htm"
|
|
57
|
+
theme: dark
|
|
58
|
+
- type: text
|
|
59
|
+
eyebrow: "Podcast"
|
|
60
|
+
title: "Can digital technology be an equality machine?"
|
|
61
|
+
link: "https://www.ilo.org/"
|
|
62
|
+
cta:
|
|
63
|
+
label: "Read the press release"
|
|
64
|
+
url: "https://www.ilo.org/global/about-the-ilo/newsroom/news/WCMS_846303/lang--en/index.htm"
|
|
65
|
+
theme: dark
|
|
66
|
+
- type: text
|
|
67
|
+
eyebrow: "Podcast"
|
|
68
|
+
title: "Can digital technology be an equality machine?"
|
|
69
|
+
link: "https://www.ilo.org/"
|
|
70
|
+
cta:
|
|
71
|
+
label: "Read the press release"
|
|
72
|
+
url: "https://www.ilo.org/global/about-the-ilo/newsroom/news/WCMS_846303/lang--en/index.htm"
|
|
73
|
+
theme: dark
|
|
11
74
|
cta:
|
|
12
75
|
type: object
|
|
13
76
|
label: CTA
|
|
@@ -15,450 +78,7 @@ cardgroup:
|
|
|
15
78
|
preview:
|
|
16
79
|
label: "Discover our unique mission"
|
|
17
80
|
url: "https://www.ilo.org"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
fields:
|
|
23
|
-
group:
|
|
24
|
-
- title: "Multi-link card - first"
|
|
25
|
-
image: "/images/hero.jpg"
|
|
26
|
-
imageAlt: "The alt text of the image"
|
|
27
|
-
loading: lazy
|
|
28
|
-
intro: "Lorem ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas lacus."
|
|
29
|
-
eyebrow: ""
|
|
30
|
-
date: ""
|
|
31
|
-
link: ""
|
|
32
|
-
profile: ""
|
|
33
|
-
eventdetails: ""
|
|
34
|
-
cta: ""
|
|
35
|
-
source: ""
|
|
36
|
-
dataset: ""
|
|
37
|
-
linklist:
|
|
38
|
-
headline: ""
|
|
39
|
-
linkgroup:
|
|
40
|
-
- headline: ""
|
|
41
|
-
links:
|
|
42
|
-
- label: Link One
|
|
43
|
-
url: "http://www.google.com"
|
|
44
|
-
- label: Link Two
|
|
45
|
-
url: "http://www.google.com"
|
|
46
|
-
- label: Link Three
|
|
47
|
-
url: "http://www.google.com"
|
|
48
|
-
- title: "Multi-link card second - right aligned image, wide option"
|
|
49
|
-
image: "/images/medium.jpg"
|
|
50
|
-
imageAlt: "The alt text of the image"
|
|
51
|
-
loading: "lazy"
|
|
52
|
-
intro: "Lorem ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas lacus."
|
|
53
|
-
eyebrow: ""
|
|
54
|
-
date: ""
|
|
55
|
-
link: ""
|
|
56
|
-
profile: ""
|
|
57
|
-
eventdetails: ""
|
|
58
|
-
cta: ""
|
|
59
|
-
source: ""
|
|
60
|
-
linklist:
|
|
61
|
-
headline: ""
|
|
62
|
-
linkgroup:
|
|
63
|
-
- headline: ""
|
|
64
|
-
links:
|
|
65
|
-
- label: Link One
|
|
66
|
-
url: "http://www.google.com"
|
|
67
|
-
- label: Link Two
|
|
68
|
-
url: "http://www.google.com"
|
|
69
|
-
- label: Link Three
|
|
70
|
-
url: "http://www.google.com"
|
|
71
|
-
- title: "Multi-link card - right aligned image, wide option"
|
|
72
|
-
image: "/images/ilo-headquarters.jpg"
|
|
73
|
-
imageAlt: "The alt text of the image"
|
|
74
|
-
loading: "lazy"
|
|
75
|
-
intro: "Lorem ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas lacus."
|
|
76
|
-
eyebrow: ""
|
|
77
|
-
date: ""
|
|
78
|
-
link: ""
|
|
79
|
-
profile: ""
|
|
80
|
-
eventdetails: ""
|
|
81
|
-
cta: ""
|
|
82
|
-
source: ""
|
|
83
|
-
linklist:
|
|
84
|
-
headline: ""
|
|
85
|
-
linkgroup:
|
|
86
|
-
- headline: ""
|
|
87
|
-
links:
|
|
88
|
-
- label: Link One
|
|
89
|
-
url: "http://www.google.com"
|
|
90
|
-
- label: Link Two
|
|
91
|
-
url: "http://www.google.com"
|
|
92
|
-
- label: Link Three
|
|
93
|
-
url: "http://www.google.com"
|
|
94
|
-
settings:
|
|
95
|
-
type: multilink
|
|
96
|
-
feature:
|
|
97
|
-
label: Feature
|
|
98
|
-
description: feature settings
|
|
99
|
-
fields:
|
|
100
|
-
group:
|
|
101
|
-
- title: "Vertical info card descriptive headline text"
|
|
102
|
-
image: "/images/small.jpg"
|
|
103
|
-
imageAlt: "The alt text of the image"
|
|
104
|
-
loading: "lazy"
|
|
105
|
-
intro: ""
|
|
106
|
-
eyebrow: "Eyebrow title"
|
|
107
|
-
date:
|
|
108
|
-
human: "Date"
|
|
109
|
-
unix: 1670389200
|
|
110
|
-
link: "https://www.ilo.org?q=feature"
|
|
111
|
-
profile: ""
|
|
112
|
-
eventdetails: ""
|
|
113
|
-
cta: ""
|
|
114
|
-
source: ""
|
|
115
|
-
list: ""
|
|
116
|
-
dataset: ""
|
|
117
|
-
color: ""
|
|
118
|
-
- title: "Vertical info card descriptive headline text"
|
|
119
|
-
image: "/images/hero.jpg"
|
|
120
|
-
imageAlt: "The alt text of the image"
|
|
121
|
-
loading: "lazy"
|
|
122
|
-
intro: ""
|
|
123
|
-
eyebrow: "Eyebrow title"
|
|
124
|
-
date:
|
|
125
|
-
human: "Date"
|
|
126
|
-
unix: 1670389200
|
|
127
|
-
link: "https://www.ilo.org?q=feature"
|
|
128
|
-
profile: ""
|
|
129
|
-
eventdetails: ""
|
|
130
|
-
cta: ""
|
|
131
|
-
source: ""
|
|
132
|
-
list: ""
|
|
133
|
-
dataset: ""
|
|
134
|
-
color: ""
|
|
135
|
-
- title: "Vertical info card descriptive headline text Vertical info card descriptive headline text Vertical info card descriptive headline text"
|
|
136
|
-
image: "images/ilo-headquarters.jpg"
|
|
137
|
-
imageAlt: "The alt text of the image"
|
|
138
|
-
loading: "lazy"
|
|
139
|
-
intro: ""
|
|
140
|
-
eyebrow: "Eyebrow title"
|
|
141
|
-
date:
|
|
142
|
-
human: "Date"
|
|
143
|
-
unix: 1670389200
|
|
144
|
-
link: "https://www.ilo.org?q=feature"
|
|
145
|
-
profile: ""
|
|
146
|
-
eventdetails: ""
|
|
147
|
-
cta: ""
|
|
148
|
-
source: ""
|
|
149
|
-
list: ""
|
|
150
|
-
dataset: ""
|
|
151
|
-
color: ""
|
|
152
|
-
- title: "Vertical info card descriptive headline text"
|
|
153
|
-
image: "/images/youtube-video-poster.avif"
|
|
154
|
-
imageAlt: "The alt text of the image"
|
|
155
|
-
loading: "lazy"
|
|
156
|
-
intro: ""
|
|
157
|
-
eyebrow: "Eyebrow title"
|
|
158
|
-
date:
|
|
159
|
-
human: "Date"
|
|
160
|
-
unix: 1670389200
|
|
161
|
-
link: "https://www.ilo.org?q=feature"
|
|
162
|
-
profile: ""
|
|
163
|
-
eventdetails: ""
|
|
164
|
-
cta: ""
|
|
165
|
-
source: ""
|
|
166
|
-
list: ""
|
|
167
|
-
dataset: ""
|
|
168
|
-
color: ""
|
|
169
|
-
settings:
|
|
170
|
-
type: feature
|
|
171
|
-
detail:
|
|
172
|
-
label: Detail
|
|
173
|
-
description: detail settings
|
|
174
|
-
fields:
|
|
175
|
-
group:
|
|
176
|
-
- title: "Horizontal info card descriptive headline text"
|
|
177
|
-
image: "/images/ilo-headquarters.jpg"
|
|
178
|
-
imageAlt: "The alt text of the image"
|
|
179
|
-
loading: "lazy"
|
|
180
|
-
intro: "This ILO flagship report details the effects of the COVID-19 crisis on the world of work. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum eu auctor tusrpis, this is 200 characters."
|
|
181
|
-
eyebrow: "Eyebrow title"
|
|
182
|
-
date:
|
|
183
|
-
human: "00 month 0000"
|
|
184
|
-
unix: 1670389200
|
|
185
|
-
link: "https://www.ilo.org?q=detail"
|
|
186
|
-
profile: ""
|
|
187
|
-
eventdetails: "8 - 9 February 2022, 8:30 - 12:00 CET | Egypt"
|
|
188
|
-
cta: ""
|
|
189
|
-
source: ""
|
|
190
|
-
linklist: ""
|
|
191
|
-
list: ""
|
|
192
|
-
dataset: ""
|
|
193
|
-
color: ""
|
|
194
|
-
- title: "Horizontal info card descriptive headline text"
|
|
195
|
-
image: "/images/small.jpg"
|
|
196
|
-
imageAlt: "The alt text of the image"
|
|
197
|
-
loading: "lazy"
|
|
198
|
-
intro: "This ILO flagship report details the effects of the COVID-19 crisis on the world of work. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum eu auctor tusrpis, this is 200 characters."
|
|
199
|
-
eyebrow: "Eyebrow title"
|
|
200
|
-
date:
|
|
201
|
-
human: "00 month 0000"
|
|
202
|
-
unix: 1670389200
|
|
203
|
-
link: "https://www.ilo.org?q=detail"
|
|
204
|
-
profile: ""
|
|
205
|
-
eventdetails: "8 - 9 February 2022, 8:30 - 12:00 CET | Egypt"
|
|
206
|
-
cta: ""
|
|
207
|
-
source: ""
|
|
208
|
-
linklist: ""
|
|
209
|
-
list: ""
|
|
210
|
-
dataset: ""
|
|
211
|
-
color: ""
|
|
212
|
-
settings:
|
|
213
|
-
type: detail
|
|
214
|
-
theme: light
|
|
215
|
-
graphicpromo:
|
|
216
|
-
label: Graphic Promo
|
|
217
|
-
description: graphic promo settings
|
|
218
|
-
fields:
|
|
219
|
-
group:
|
|
220
|
-
- title: "Brief title text - ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod"
|
|
221
|
-
image: ""
|
|
222
|
-
intro: "We advance social justice and promote decent work by setting labour standards, developing policies and devising programmes."
|
|
223
|
-
eyebrow: ""
|
|
224
|
-
date: ""
|
|
225
|
-
link: "https://www.ilo.org"
|
|
226
|
-
profile: ""
|
|
227
|
-
eventdetails: ""
|
|
228
|
-
cta:
|
|
229
|
-
label: "Discover our unique mission"
|
|
230
|
-
url: "https://www.ilo.org?q=button"
|
|
231
|
-
source: ""
|
|
232
|
-
linklist: ""
|
|
233
|
-
list: ""
|
|
234
|
-
dataset: ""
|
|
235
|
-
settings:
|
|
236
|
-
type: graphicpromo
|
|
237
|
-
stat:
|
|
238
|
-
label: Stat cards
|
|
239
|
-
description: Stat settings
|
|
240
|
-
fields:
|
|
241
|
-
group:
|
|
242
|
-
- title: "Date headline"
|
|
243
|
-
image: ""
|
|
244
|
-
intro: "Data title - Lorem ipsum dolor sit amet consectetur"
|
|
245
|
-
eyebrow: ""
|
|
246
|
-
date: ""
|
|
247
|
-
link: ""
|
|
248
|
-
profile: ""
|
|
249
|
-
eventdetails: ""
|
|
250
|
-
cta: ""
|
|
251
|
-
list: ""
|
|
252
|
-
source:
|
|
253
|
-
label: "Source: lorem ipsum dolor sit amet, 2020"
|
|
254
|
-
url: "https://www.ilo.org?q=stat"
|
|
255
|
-
color: blue
|
|
256
|
-
- title: "Date headline"
|
|
257
|
-
image: ""
|
|
258
|
-
intro: "Data title - Lorem ipsum dolor sit amet consectetur"
|
|
259
|
-
eyebrow: ""
|
|
260
|
-
date: ""
|
|
261
|
-
link: ""
|
|
262
|
-
profile: ""
|
|
263
|
-
eventdetails: ""
|
|
264
|
-
cta: ""
|
|
265
|
-
list: ""
|
|
266
|
-
source:
|
|
267
|
-
label: "Source: lorem ipsum dolor sit amet, 2020"
|
|
268
|
-
url: "https://www.ilo.org?q=stat"
|
|
269
|
-
color: green
|
|
270
|
-
- title: "Date headline"
|
|
271
|
-
image: ""
|
|
272
|
-
intro: "Data title - Lorem ipsum dolor sit amet consectetur"
|
|
273
|
-
eyebrow: ""
|
|
274
|
-
date: ""
|
|
275
|
-
link: ""
|
|
276
|
-
profile: ""
|
|
277
|
-
eventdetails: ""
|
|
278
|
-
cta: ""
|
|
279
|
-
list: ""
|
|
280
|
-
source:
|
|
281
|
-
label: "Source: lorem ipsum dolor sit amet, 2020"
|
|
282
|
-
url: "https://www.ilo.org?q=stat"
|
|
283
|
-
color: yellow
|
|
284
|
-
- title: "Date headline"
|
|
285
|
-
image: ""
|
|
286
|
-
intro: "Data title - Lorem ipsum dolor sit amet consectetur"
|
|
287
|
-
eyebrow: ""
|
|
288
|
-
date: ""
|
|
289
|
-
link: ""
|
|
290
|
-
profile: ""
|
|
291
|
-
eventdetails: ""
|
|
292
|
-
cta: ""
|
|
293
|
-
list: ""
|
|
294
|
-
source:
|
|
295
|
-
label: "Source: lorem ipsum dolor sit amet, 2020"
|
|
296
|
-
url: "https://www.ilo.org?q=stat"
|
|
297
|
-
color: turquoise
|
|
298
|
-
settings:
|
|
299
|
-
type: stat
|
|
300
|
-
theme: light
|
|
301
|
-
graphic:
|
|
302
|
-
label: Graphic Text
|
|
303
|
-
description: graphic settings
|
|
304
|
-
fields:
|
|
305
|
-
group:
|
|
306
|
-
- title: "Brief title text - ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod"
|
|
307
|
-
image: ""
|
|
308
|
-
intro: ""
|
|
309
|
-
eyebrow: "Eyebrow title"
|
|
310
|
-
date:
|
|
311
|
-
human: "date"
|
|
312
|
-
unix: 1670389200
|
|
313
|
-
link: "https://www.ilo.org?q=graphic"
|
|
314
|
-
profile: ""
|
|
315
|
-
eventdetails: ""
|
|
316
|
-
cta: ""
|
|
317
|
-
source: ""
|
|
318
|
-
linklist: ""
|
|
319
|
-
list: ""
|
|
320
|
-
dataset: ""
|
|
321
|
-
settings:
|
|
322
|
-
type: graphic
|
|
323
|
-
factlist:
|
|
324
|
-
label: Factlist
|
|
325
|
-
description: Factlist settings
|
|
326
|
-
fields:
|
|
327
|
-
group:
|
|
328
|
-
- title: "Title of fast fact list"
|
|
329
|
-
intro: ""
|
|
330
|
-
eyebrow: ""
|
|
331
|
-
date: ""
|
|
332
|
-
link: ""
|
|
333
|
-
image: ""
|
|
334
|
-
profile: ""
|
|
335
|
-
eventdetails: ""
|
|
336
|
-
cta: ""
|
|
337
|
-
list:
|
|
338
|
-
title: ""
|
|
339
|
-
settings:
|
|
340
|
-
- ordered: unordered
|
|
341
|
-
- alignment: default
|
|
342
|
-
items:
|
|
343
|
-
- content: "Wipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor."
|
|
344
|
-
id: "list1"
|
|
345
|
-
- content: "Nut labore et dolore magna sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
|
346
|
-
id: "list2"
|
|
347
|
-
settings:
|
|
348
|
-
type: factlist
|
|
349
|
-
data:
|
|
350
|
-
label: Data
|
|
351
|
-
description: Data settings
|
|
352
|
-
fields:
|
|
353
|
-
group:
|
|
354
|
-
- title: ""
|
|
355
|
-
image: "/images/small.jpg"
|
|
356
|
-
imageAlt: "The alt text of the image"
|
|
357
|
-
loading: "lazy"
|
|
358
|
-
intro: ""
|
|
359
|
-
eyebrow: "Event details"
|
|
360
|
-
date: ""
|
|
361
|
-
link: ""
|
|
362
|
-
profile: ""
|
|
363
|
-
eventdetails: ""
|
|
364
|
-
cta: ""
|
|
365
|
-
dataset:
|
|
366
|
-
content:
|
|
367
|
-
items:
|
|
368
|
-
- label: Date
|
|
369
|
-
copy: Publication date
|
|
370
|
-
- label: Event type
|
|
371
|
-
copy: Event location
|
|
372
|
-
files:
|
|
373
|
-
headline: Files
|
|
374
|
-
items:
|
|
375
|
-
- label: File/size MB 1
|
|
376
|
-
url: "https://www.ilo.org?q=file1"
|
|
377
|
-
- label: File/size MB 2
|
|
378
|
-
url: "https://www.ilo.org?q=file2"
|
|
379
|
-
- label: File/size MB 3
|
|
380
|
-
url: "https://www.ilo.org?q=file3"
|
|
381
|
-
links:
|
|
382
|
-
headline: Languages
|
|
383
|
-
items:
|
|
384
|
-
- label: Language link 1
|
|
385
|
-
url: "https://www.ilo.org?q=link"
|
|
386
|
-
- label: Language link 2
|
|
387
|
-
url: "https://www.ilo.org?q=hyperlink"
|
|
388
|
-
- label: Language link 3
|
|
389
|
-
url: "https://www.ilo.org?q=url"
|
|
390
|
-
settings:
|
|
391
|
-
type: data
|
|
392
|
-
theme: light
|
|
393
|
-
settings:
|
|
394
|
-
size:
|
|
395
|
-
type: select
|
|
396
|
-
label: Size
|
|
397
|
-
description: Size of the cards (usually reduces padding)
|
|
398
|
-
preview: "standard"
|
|
399
|
-
options:
|
|
400
|
-
wide: wide
|
|
401
|
-
standard: Standard
|
|
402
|
-
narrow: Narrow
|
|
403
|
-
color:
|
|
404
|
-
type: select
|
|
405
|
-
label: Color
|
|
406
|
-
description: Color of the stat cards, options are turquoise, green, yellow, or blue
|
|
407
|
-
preview: "blue"
|
|
408
|
-
options:
|
|
409
|
-
blue: Blue
|
|
410
|
-
turquoise: Turquoise
|
|
411
|
-
green: Green
|
|
412
|
-
yellow: Yellow
|
|
413
|
-
type:
|
|
414
|
-
type: select
|
|
415
|
-
label: Card Count
|
|
416
|
-
description: Number of cards within a group
|
|
417
|
-
required: true
|
|
418
|
-
preview: "detail"
|
|
419
|
-
options:
|
|
420
|
-
data: Data
|
|
421
|
-
detail: Detail
|
|
422
|
-
factlist: Factlist
|
|
423
|
-
feature: Feature
|
|
424
|
-
graphic: Graphic
|
|
425
|
-
graphicpromo: Graphic Promo
|
|
426
|
-
multilink: Multilink
|
|
427
|
-
stat: Stat
|
|
428
|
-
cardcount:
|
|
429
|
-
type: select
|
|
430
|
-
label: Card Count
|
|
431
|
-
description: Number of cards within a group
|
|
432
|
-
required: true
|
|
433
|
-
preview: "two"
|
|
434
|
-
options:
|
|
435
|
-
one: One
|
|
436
|
-
two: Two
|
|
437
|
-
three: Three
|
|
438
|
-
four: Four
|
|
439
|
-
theme:
|
|
440
|
-
type: select
|
|
441
|
-
label: Theme
|
|
442
|
-
description: The theme type for the hero
|
|
443
|
-
required: false
|
|
444
|
-
preview: "dark"
|
|
445
|
-
options:
|
|
446
|
-
dark: Dark
|
|
447
|
-
light: Light
|
|
448
|
-
cornercut:
|
|
449
|
-
type: select
|
|
450
|
-
label: Corner cut
|
|
451
|
-
description: Setting for whether the card has a cut corner
|
|
452
|
-
preview: cornercut
|
|
453
|
-
options:
|
|
454
|
-
cornercut: Corner cut
|
|
455
|
-
corner: Corner
|
|
456
|
-
alignment:
|
|
457
|
-
type: select
|
|
458
|
-
label: Alignment
|
|
459
|
-
description: Set whether card (multilink) image is right aligned or left aligned
|
|
460
|
-
preview: left
|
|
461
|
-
options:
|
|
462
|
-
left: Left
|
|
463
|
-
right: right
|
|
464
|
-
visibility: storybook
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<div class="{{prefix}}--logo-grid {{prefix}}--logo-grid__theme__{{ theme }}">
|
|
2
|
+
<div class="{{prefix}}--logo-grid--logos">
|
|
3
|
+
{% for logo in logos %}
|
|
4
|
+
{% if logo.url %}
|
|
5
|
+
<a href="{{ logo.url }}" class="{{prefix}}--logo-grid--item {{prefix}}--logo-grid--link">
|
|
6
|
+
{% else %}
|
|
7
|
+
<div class="{{prefix}}--logo-grid--item">
|
|
8
|
+
{% endif %}
|
|
9
|
+
<img src="{{ logo.src }}" alt="{{ logo.label }}" class="{{prefix}}--logo-grid--logo__image">
|
|
10
|
+
{% if logo.url %}
|
|
11
|
+
</a>
|
|
12
|
+
{% else %}
|
|
13
|
+
</div>
|
|
14
|
+
{% endif %}
|
|
15
|
+
{% endfor %}
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
logogrid:
|
|
2
|
+
use: "@components/logogrid/logogrid.twig"
|
|
3
|
+
label: Logo Grid
|
|
4
|
+
description: The Logo Grid component renders a series of logos representing a group of organizations. It can be shown on a light or dark background.
|
|
5
|
+
settings:
|
|
6
|
+
theme:
|
|
7
|
+
type: select
|
|
8
|
+
label: Theme
|
|
9
|
+
description: The theme of the component
|
|
10
|
+
default: light
|
|
11
|
+
options:
|
|
12
|
+
light: Light
|
|
13
|
+
dark: Dark
|
|
14
|
+
preview: "light"
|
|
15
|
+
fields:
|
|
16
|
+
logos:
|
|
17
|
+
type: object
|
|
18
|
+
label: Logos
|
|
19
|
+
description: Logos to display
|
|
20
|
+
required: true
|
|
21
|
+
preview:
|
|
22
|
+
- label: "International Labour Organization"
|
|
23
|
+
src: "/images/logo_en_horizontal_blue.svg"
|
|
24
|
+
url: "https://www.ilo.org/"
|
|
25
|
+
|
|
26
|
+
- label: "Food and Agriculture Organization"
|
|
27
|
+
src: "/images/fao-logo.svg"
|
|
28
|
+
url: "https://www.fao.org"
|
|
29
|
+
|
|
30
|
+
- label: "World Health Organization"
|
|
31
|
+
src: "/images/who-logo.svg"
|
|
32
|
+
url: "https://www.who.int/"
|
|
33
|
+
|
|
34
|
+
- label: "World Food Programme"
|
|
35
|
+
src: "/images/wfp-logo.svg"
|
|
36
|
+
url: "https://www.wfp.org/"
|
|
37
|
+
|
|
38
|
+
- label: "UNICEF"
|
|
39
|
+
src: "/images/unicef-logo.png"
|
|
40
|
+
url: "https://www.unicef.org/"
|
|
41
|
+
|
|
42
|
+
- label: "UN Refugees"
|
|
43
|
+
src: "/images/unhcr-logo.svg"
|
|
44
|
+
url: "https://www.unhcr.org/"
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{#
|
|
2
|
+
PICTURE COMPONENT
|
|
3
|
+
#}
|
|
4
|
+
{% if image.url is iterable %}
|
|
5
|
+
<picture>
|
|
6
|
+
{% for img in image.url|reverse %}
|
|
7
|
+
{% if loop.last == false %}
|
|
8
|
+
{% if img.breakpoint matches '/^\\d+$/' %}
|
|
9
|
+
<source srcset="{{img.src}}" media="(min-width: {{img.breakpoint}}px)">
|
|
10
|
+
{% else %}
|
|
11
|
+
<source srcset="{{img.src}}" media="{{img.breakpoint}}">
|
|
12
|
+
{% endif %}
|
|
13
|
+
{% endif %}
|
|
14
|
+
{% endfor %}
|
|
15
|
+
<img class="{{prefix}}--{{class}}--picture" src="{{image|reverse|last.src}}" alt="{{image.alt}}" {% if image.loading %} loading="{{ image.loading }}" {% endif %}>
|
|
16
|
+
</picture>
|
|
17
|
+
{% else %}
|
|
18
|
+
<picture>
|
|
19
|
+
<img class="{{prefix}}--{{class}}--picture" src="{{image.url}}" alt="{{image.alt}}" {% if image.loading %} loading="{{ image.loading }}" {% endif %}>
|
|
20
|
+
</picture>
|
|
21
|
+
{% endif %}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
accordion:
|
|
2
|
-
use: "@components/accordion/accordion-item.twig"
|
|
3
|
-
label: Accordion Item
|
|
4
|
-
description: A collapsible accordion item.
|
|
5
|
-
fields:
|
|
6
|
-
label:
|
|
7
|
-
type: text
|
|
8
|
-
label: Label
|
|
9
|
-
description: The accordion item's heading.
|
|
10
|
-
preview:
|
|
11
|
-
faker: lorem.word
|
|
12
|
-
content:
|
|
13
|
-
type: text
|
|
14
|
-
label: Content
|
|
15
|
-
description: The accordion item's collapsed content.
|
|
16
|
-
preview:
|
|
17
|
-
faker: lorem.word
|
|
18
|
-
id:
|
|
19
|
-
type: text
|
|
20
|
-
label: ID
|
|
21
|
-
description: The accordion item's id.
|
|
22
|
-
preview:
|
|
23
|
-
faker: lorem.word
|
|
24
|
-
defaultExpanded:
|
|
25
|
-
type: text
|
|
26
|
-
label: Default Expanded
|
|
27
|
-
description: The accordion item loads in default expanded state.
|
|
28
|
-
preview:
|
|
29
|
-
faker: lorem.word
|
|
30
|
-
visibility: storybook
|