@ilo-org/react 0.11.0 → 0.13.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.
Files changed (162) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/lib/cjs/components/Cards/CardGroup/CardGroup.js +42 -0
  3. package/lib/cjs/components/Cards/CardGroup/index.js +759 -0
  4. package/lib/cjs/components/Cards/DataCard/DataCard.js +27 -0
  5. package/lib/cjs/components/Cards/DataCard/index.js +81 -0
  6. package/lib/cjs/components/Cards/DetailCard/DetailCard.js +20 -0
  7. package/lib/cjs/components/Cards/DetailCard/index.js +25 -0
  8. package/lib/cjs/components/Cards/FactlistCard/FactListCard.js +23 -0
  9. package/lib/cjs/components/Cards/FactlistCard/index.js +25 -0
  10. package/lib/cjs/components/Cards/FeatureCard/FeatureCard.js +24 -0
  11. package/lib/cjs/components/Cards/FeatureCard/index.js +39 -0
  12. package/lib/cjs/components/Cards/MultilinkCard/MultiLinkCard.js +24 -0
  13. package/lib/cjs/components/Cards/MultilinkCard/index.js +43 -0
  14. package/lib/cjs/components/Cards/PromoCard/PromoCard.js +23 -0
  15. package/lib/cjs/components/Cards/PromoCard/index.js +26 -0
  16. package/lib/cjs/components/Cards/StatCard/StatCard.js +21 -0
  17. package/lib/cjs/components/Cards/StatCard/index.js +23 -0
  18. package/lib/cjs/components/Cards/TextCard/TextCard.js +23 -0
  19. package/lib/cjs/components/Cards/TextCard/index.js +30 -0
  20. package/lib/cjs/components/Footer/Footer.js +1 -1
  21. package/lib/cjs/components/LinkList/LinkList.js +1 -1
  22. package/lib/cjs/components/Navigation/Navigation.js +3 -3
  23. package/lib/cjs/components/Pagination/Pagination.js +1 -1
  24. package/lib/cjs/components/index.js +10 -4
  25. package/lib/cjs/index.js +10 -4
  26. package/lib/esm/components/Cards/CardGroup/CardGroup.js +40 -0
  27. package/lib/esm/components/Cards/CardGroup/index.js +756 -0
  28. package/lib/esm/components/Cards/DataCard/DataCard.js +25 -0
  29. package/lib/esm/components/Cards/DataCard/index.js +78 -0
  30. package/lib/esm/components/Cards/DetailCard/DetailCard.js +18 -0
  31. package/lib/esm/components/Cards/DetailCard/index.js +22 -0
  32. package/lib/esm/components/Cards/FactlistCard/FactListCard.js +21 -0
  33. package/lib/esm/components/Cards/FactlistCard/index.js +22 -0
  34. package/lib/esm/components/Cards/FeatureCard/FeatureCard.js +22 -0
  35. package/lib/esm/components/Cards/FeatureCard/index.js +36 -0
  36. package/lib/esm/components/Cards/MultilinkCard/MultiLinkCard.js +22 -0
  37. package/lib/esm/components/Cards/MultilinkCard/index.js +40 -0
  38. package/lib/esm/components/Cards/PromoCard/PromoCard.js +21 -0
  39. package/lib/esm/components/Cards/PromoCard/index.js +23 -0
  40. package/lib/esm/components/Cards/StatCard/StatCard.js +19 -0
  41. package/lib/esm/components/Cards/StatCard/index.js +20 -0
  42. package/lib/esm/components/Cards/TextCard/TextCard.js +21 -0
  43. package/lib/esm/components/Cards/TextCard/index.js +27 -0
  44. package/lib/esm/components/Footer/Footer.js +1 -1
  45. package/lib/esm/components/LinkList/LinkList.js +1 -1
  46. package/lib/esm/components/Navigation/Navigation.js +3 -3
  47. package/lib/esm/components/Pagination/Pagination.js +1 -1
  48. package/lib/esm/components/index.js +9 -2
  49. package/lib/esm/index.js +9 -2
  50. package/lib/types/react/src/components/Cards/CardGroup/CardGroup.args.d.ts +13 -0
  51. package/lib/types/react/src/components/Cards/CardGroup/CardGroup.props.d.ts +58 -0
  52. package/lib/types/react/src/components/Cards/CardGroup/index.d.ts +3 -0
  53. package/lib/types/react/src/components/Cards/DataCard/DataCard.args.d.ts +2 -0
  54. package/lib/types/react/src/components/Cards/DataCard/DataCard.d.ts +4 -0
  55. package/lib/types/react/src/components/Cards/DataCard/DataCard.props.d.ts +50 -0
  56. package/lib/types/react/src/components/Cards/DataCard/index.d.ts +3 -0
  57. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.args.d.ts +3 -0
  58. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.d.ts +4 -0
  59. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.props.d.ts +35 -0
  60. package/lib/types/react/src/components/Cards/DetailCard/index.d.ts +3 -0
  61. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.args.d.ts +3 -0
  62. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.d.ts +4 -0
  63. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.props.d.ts +16 -0
  64. package/lib/types/react/src/components/Cards/FactlistCard/index.d.ts +3 -0
  65. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.args.d.ts +3 -0
  66. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.d.ts +4 -0
  67. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.props.d.ts +31 -0
  68. package/lib/types/react/src/components/Cards/FeatureCard/index.d.ts +3 -0
  69. package/lib/types/react/src/components/Cards/MultilinkCard/MultiLinkCard.d.ts +4 -0
  70. package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.args.d.ts +2 -0
  71. package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +25 -0
  72. package/lib/types/react/src/components/Cards/MultilinkCard/index.d.ts +3 -0
  73. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.args.d.ts +3 -0
  74. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.d.ts +4 -0
  75. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.props.d.ts +30 -0
  76. package/lib/types/react/src/components/Cards/PromoCard/index.d.ts +3 -0
  77. package/lib/types/react/src/components/Cards/StatCard/StatCard.args.d.ts +3 -0
  78. package/lib/types/react/src/components/Cards/StatCard/StatCard.d.ts +4 -0
  79. package/lib/types/react/src/components/Cards/StatCard/StatCard.props.d.ts +18 -0
  80. package/lib/types/react/src/components/Cards/StatCard/index.d.ts +3 -0
  81. package/lib/types/react/src/components/Cards/TextCard/TextCard.args.d.ts +3 -0
  82. package/lib/types/react/src/components/Cards/TextCard/TextCard.d.ts +4 -0
  83. package/lib/types/react/src/components/Cards/TextCard/TextCard.props.d.ts +26 -0
  84. package/lib/types/react/src/components/Cards/TextCard/index.d.ts +3 -0
  85. package/lib/types/react/src/components/index.d.ts +1 -1
  86. package/lib/types/react/src/types/index.d.ts +7 -3
  87. package/package.json +2 -2
  88. package/src/components/{Card → Cards/CardGroup}/CardGroup.args.ts +199 -376
  89. package/src/components/Cards/CardGroup/CardGroup.props.ts +78 -0
  90. package/src/components/Cards/CardGroup/CardGroup.tsx +54 -0
  91. package/src/components/Cards/CardGroup/index.tsx +3 -0
  92. package/src/components/Cards/DataCard/DataCard.args.ts +69 -0
  93. package/src/components/Cards/DataCard/DataCard.props.ts +60 -0
  94. package/src/components/Cards/DataCard/DataCard.tsx +107 -0
  95. package/src/components/Cards/DataCard/index.tsx +3 -0
  96. package/src/components/Cards/DetailCard/DetailCard.args.ts +17 -0
  97. package/src/components/Cards/DetailCard/DetailCard.props.ts +43 -0
  98. package/src/components/Cards/DetailCard/DetailCard.tsx +62 -0
  99. package/src/components/Cards/DetailCard/index.tsx +3 -0
  100. package/src/components/Cards/FactlistCard/FactListCard.args.ts +14 -0
  101. package/src/components/Cards/FactlistCard/FactListCard.props.ts +19 -0
  102. package/src/components/Cards/FactlistCard/FactListCard.tsx +42 -0
  103. package/src/components/Cards/FactlistCard/index.tsx +3 -0
  104. package/src/components/Cards/FeatureCard/FeatureCard.args.ts +30 -0
  105. package/src/components/Cards/FeatureCard/FeatureCard.props.ts +38 -0
  106. package/src/components/Cards/FeatureCard/FeatureCard.tsx +69 -0
  107. package/src/components/Cards/FeatureCard/index.tsx +3 -0
  108. package/src/components/Cards/MultilinkCard/MultiLinkCard.tsx +76 -0
  109. package/src/components/Cards/MultilinkCard/MultilinkCard.args.ts +33 -0
  110. package/src/components/Cards/MultilinkCard/MultilinkCard.props.ts +30 -0
  111. package/src/components/Cards/MultilinkCard/index.tsx +3 -0
  112. package/src/components/Cards/PromoCard/PromoCard.args.ts +19 -0
  113. package/src/components/Cards/PromoCard/PromoCard.props.ts +36 -0
  114. package/src/components/Cards/PromoCard/PromoCard.tsx +60 -0
  115. package/src/components/Cards/PromoCard/index.tsx +3 -0
  116. package/src/components/Cards/StatCard/StatCard.args.ts +14 -0
  117. package/src/components/Cards/StatCard/StatCard.props.ts +21 -0
  118. package/src/components/Cards/StatCard/StatCard.tsx +36 -0
  119. package/src/components/Cards/StatCard/index.tsx +3 -0
  120. package/src/components/Cards/TextCard/TextCard.args.ts +21 -0
  121. package/src/components/Cards/TextCard/TextCard.props.ts +32 -0
  122. package/src/components/Cards/TextCard/TextCard.tsx +62 -0
  123. package/src/components/Cards/TextCard/index.tsx +3 -0
  124. package/src/components/Footer/Footer.args.ts +4 -16
  125. package/src/components/Footer/Footer.tsx +41 -37
  126. package/src/components/LinkList/LinkList.tsx +1 -1
  127. package/src/components/Navigation/Navigation.tsx +5 -5
  128. package/src/components/Pagination/Pagination.tsx +2 -1
  129. package/src/components/index.ts +1 -1
  130. package/src/types/index.ts +10 -4
  131. package/lib/cjs/components/Card/Card.js +0 -43
  132. package/lib/cjs/components/Card/CardGroup.js +0 -25
  133. package/lib/cjs/components/Card/index.js +0 -21
  134. package/lib/esm/components/Card/Card.js +0 -41
  135. package/lib/esm/components/Card/CardGroup.js +0 -23
  136. package/lib/esm/components/Card/index.js +0 -14
  137. package/lib/types/react/src/components/Card/Card.d.ts +0 -4
  138. package/lib/types/react/src/components/Card/Card.props.d.ts +0 -110
  139. package/lib/types/react/src/components/Card/CardGroup.props.d.ts +0 -16
  140. package/lib/types/react/src/components/Card/index.d.ts +0 -2
  141. package/public/fao-logo.svg +0 -195
  142. package/public/favicon.ico +0 -0
  143. package/public/hero.jpg +0 -0
  144. package/public/ilo-dg.jpg +0 -0
  145. package/public/ilo-headquarters.jpg +0 -0
  146. package/public/large.jpg +0 -0
  147. package/public/media-file-poster.jpg +0 -0
  148. package/public/medium.jpg +0 -0
  149. package/public/small.jpg +0 -0
  150. package/public/unhcr-logo.svg +0 -1
  151. package/public/unicef-logo.png +0 -0
  152. package/public/video-example.mp4 +0 -0
  153. package/public/wfp-logo.svg +0 -1
  154. package/public/who-logo.svg +0 -1
  155. package/public/youtube-video-poster.avif +0 -0
  156. package/src/components/Card/Card.args.ts +0 -215
  157. package/src/components/Card/Card.props.ts +0 -142
  158. package/src/components/Card/Card.tsx +0 -183
  159. package/src/components/Card/CardGroup.props.ts +0 -19
  160. package/src/components/Card/CardGroup.tsx +0 -55
  161. package/src/components/Card/index.ts +0 -2
  162. /package/lib/types/react/src/components/{Card → Cards/CardGroup}/CardGroup.d.ts +0 -0
@@ -1,19 +1,33 @@
1
1
  import { CardGroupProps } from "./CardGroup.props";
2
2
 
3
- const graphicCardGroup: CardGroupProps = {
3
+ export const textCardGroup: CardGroupProps = {
4
4
  cards: [
5
5
  {
6
- variant: "graphic",
7
6
  title: "Why we need greater social justice",
8
7
  eyebrow: "Podcast",
9
8
  date: {
10
9
  human: "20 September 2022",
11
10
  unix: "1670389200",
12
11
  },
13
- theme: "dark",
12
+ theme: "light",
13
+ link: "https:/www.ilo.org",
14
+ profile: {
15
+ avatar: "/ilo-dg.jpg",
16
+ description:
17
+ "Gilbert Houngbo is the Director-General of the International Labour Organization",
18
+ name: "Gilbert Houngbo",
19
+ role: "ILO Director-General",
20
+ },
21
+ },
22
+ {
23
+ title: "Why we need greater social justice",
24
+ eyebrow: "Podcast",
25
+ date: {
26
+ human: "20 September 2022",
27
+ unix: "1670389200",
28
+ },
29
+ theme: "light",
14
30
  link: "https:/www.ilo.org",
15
- intro:
16
- "A toxic combination of mutually-reinforcing crises – inflation, debt, food and fuel price rises, geopolitical tensions and conflict, climate change – are threatening to increase poverty, inequality and discrimination worldwide.",
17
31
  profile: {
18
32
  avatar: "/ilo-dg.jpg",
19
33
  description:
@@ -21,21 +35,10 @@ const graphicCardGroup: CardGroupProps = {
21
35
  name: "Gilbert Houngbo",
22
36
  role: "ILO Director-General",
23
37
  },
24
- isvideo: false,
25
- size: "standard",
26
- color: "blue",
27
- cornercut: "cornercut",
28
- alignment: "left",
29
- eventdetails: "",
30
- listitems: [],
31
- linklist: {},
32
- cta: {},
33
- dataset: {},
34
- source: {},
35
- image: "",
36
38
  },
37
39
  ],
38
- cardcount: "one",
40
+ cardCount: "two",
41
+ type: "text",
39
42
  cta: {
40
43
  label: "Discover our unique mission",
41
44
  url: "https://www.ilo.org",
@@ -45,87 +48,37 @@ const graphicCardGroup: CardGroupProps = {
45
48
  const statCardGroup: CardGroupProps = {
46
49
  cards: [
47
50
  {
48
- variant: "stat",
49
51
  title: "Global employment growth down by half in 2023",
50
- eyebrow: "Report",
51
52
  intro:
52
53
  "The current global economic slowdown is likely to force more workers to accept lower quality, poorly paid jobs which lack job security and social protection, so accentuating inequalities exacerbated by the COVID-19 crisis.",
53
- color: "blue",
54
+ color: "turquoise",
54
55
  source: {
55
56
  label: "World Employment and Social Outlook: Trends 2023",
56
57
  url: "https://www.ilo.org",
57
58
  },
58
- isvideo: false,
59
- size: "standard",
60
- cornercut: "cornercut",
61
- alignment: "left",
62
- eventdetails: "",
63
- listitems: [],
64
- linklist: {},
65
- cta: {},
66
- dataset: {},
67
- image: "",
68
- link: "",
69
- profile: {},
70
- theme: "light",
71
- date: {},
72
59
  },
73
60
  {
74
- variant: "stat",
75
61
  title: "Global employment growth down by half in 2023",
76
- eyebrow: "Report",
77
62
  intro:
78
63
  "The current global economic slowdown is likely to force more workers to accept lower quality, poorly paid jobs which lack job security and social protection, so accentuating inequalities exacerbated by the COVID-19 crisis.",
79
- color: "yellow",
64
+ color: "turquoise",
80
65
  source: {
81
66
  label: "World Employment and Social Outlook: Trends 2023",
82
67
  url: "https://www.ilo.org",
83
68
  },
84
- isvideo: false,
85
- size: "standard",
86
- cornercut: "cornercut",
87
- alignment: "left",
88
- eventdetails: "",
89
- listitems: [],
90
- linklist: {},
91
- cta: {},
92
- dataset: {},
93
- image: "",
94
- link: "",
95
- profile: {},
96
- theme: "light",
97
- date: {},
98
69
  },
99
70
  {
100
- variant: "stat",
101
71
  title: "Global employment growth down by half in 2023",
102
- eyebrow: "Report",
103
72
  intro:
104
73
  "The current global economic slowdown is likely to force more workers to accept lower quality, poorly paid jobs which lack job security and social protection, so accentuating inequalities exacerbated by the COVID-19 crisis.",
105
- color: "green",
74
+ color: "turquoise",
106
75
  source: {
107
76
  label: "World Employment and Social Outlook: Trends 2023",
108
77
  url: "https://www.ilo.org",
109
78
  },
110
- isvideo: false,
111
- size: "standard",
112
- cornercut: "cornercut",
113
- alignment: "left",
114
- eventdetails: "",
115
- listitems: [],
116
- linklist: {},
117
- cta: {},
118
- dataset: {},
119
- image: "",
120
- link: "",
121
- profile: {},
122
- theme: "light",
123
- date: {},
124
79
  },
125
80
  {
126
- variant: "stat",
127
81
  title: "Global employment growth down by half in 2023",
128
- eyebrow: "Report",
129
82
  intro:
130
83
  "The current global economic slowdown is likely to force more workers to accept lower quality, poorly paid jobs which lack job security and social protection, so accentuating inequalities exacerbated by the COVID-19 crisis.",
131
84
  color: "turquoise",
@@ -133,23 +86,10 @@ const statCardGroup: CardGroupProps = {
133
86
  label: "World Employment and Social Outlook: Trends 2023",
134
87
  url: "https://www.ilo.org",
135
88
  },
136
- isvideo: false,
137
- size: "standard",
138
- cornercut: "cornercut",
139
- alignment: "left",
140
- eventdetails: "",
141
- listitems: [],
142
- linklist: {},
143
- cta: {},
144
- dataset: {},
145
- image: "",
146
- link: "",
147
- profile: {},
148
- theme: "light",
149
- date: {},
150
89
  },
151
90
  ],
152
- cardcount: "four",
91
+ cardCount: "four",
92
+ type: "stat",
153
93
  cta: {
154
94
  label: "Discover our unique mission",
155
95
  url: "https://www.ilo.org",
@@ -159,7 +99,6 @@ const statCardGroup: CardGroupProps = {
159
99
  const multilinkCardGroup: CardGroupProps = {
160
100
  cards: [
161
101
  {
162
- variant: "multilink",
163
102
  title:
164
103
  "ILO welcomes G7 call to make a just transition to a green economy happen",
165
104
  eyebrow: "High-level meeting",
@@ -167,10 +106,7 @@ const multilinkCardGroup: CardGroupProps = {
167
106
  "At the end of their meeting the G7 Labour Ministers highlighted the urgent need to greater focus on rights and occupational safety and health.",
168
107
  image: "/hero.jpg",
169
108
  alignment: "left",
170
- date: {
171
- human: "6 September 2023",
172
- unix: "1670389200",
173
- },
109
+ link: "https:/www.ilo.org",
174
110
  linklist: {
175
111
  headline: "",
176
112
  linkgroup: [
@@ -192,21 +128,8 @@ const multilinkCardGroup: CardGroupProps = {
192
128
  },
193
129
  ],
194
130
  },
195
- isvideo: false,
196
- size: "standard",
197
- color: "blue",
198
- cornercut: "corner",
199
- eventdetails: "",
200
- listitems: [],
201
- cta: {},
202
- dataset: {},
203
- source: {},
204
- theme: "light",
205
- profile: {},
206
- link: "",
207
131
  },
208
132
  {
209
- variant: "multilink",
210
133
  title:
211
134
  "ILO welcomes G7 call to make a just transition to a green economy happen",
212
135
  eyebrow: "High-level meeting",
@@ -214,10 +137,7 @@ const multilinkCardGroup: CardGroupProps = {
214
137
  "At the end of their meeting the G7 Labour Ministers highlighted the urgent need to greater focus on rights and occupational safety and health.",
215
138
  image: "/hero.jpg",
216
139
  alignment: "left",
217
- date: {
218
- human: "16 September 2023",
219
- unix: "1670389200",
220
- },
140
+ link: "https:/www.ilo.org",
221
141
  linklist: {
222
142
  headline: "",
223
143
  linkgroup: [
@@ -239,36 +159,25 @@ const multilinkCardGroup: CardGroupProps = {
239
159
  },
240
160
  ],
241
161
  },
242
- isvideo: false,
243
- size: "standard",
244
- color: "blue",
245
- cornercut: "corner",
246
- eventdetails: "",
247
- listitems: [],
248
- cta: {},
249
- dataset: {},
250
- source: {},
251
- theme: "light",
252
- profile: {},
253
- link: "",
254
162
  },
255
163
  ],
256
- cardcount: "two",
164
+ type: "multilink",
165
+ cardCount: "two",
257
166
  cta: {
258
167
  label: "Discover our unique mission",
259
168
  url: "https://www.ilo.org",
260
169
  },
261
170
  };
262
171
 
263
- const graphicPromoCardGroup: CardGroupProps = {
172
+ const promoCardGroup: CardGroupProps = {
264
173
  cards: [
265
174
  {
266
- variant: "graphicpromo",
175
+ size: "standard",
267
176
  title:
268
177
  "ILO welcomes G7 call to make a just transition to a green economy happen",
269
178
  eyebrow: "High-level meeting",
270
- theme: "light",
271
- cornercut: "cornercut",
179
+ theme: "dark",
180
+ cornercut: true,
272
181
  intro:
273
182
  "At the end of their meeting the G7 Labour Ministers highlighted the urgent need to greater focus on rights and occupational safety and health.",
274
183
  link: "https:/www.ilo.org",
@@ -276,26 +185,14 @@ const graphicPromoCardGroup: CardGroupProps = {
276
185
  label: "Read the press release",
277
186
  url: "https://www.ilo.org",
278
187
  },
279
- isvideo: false,
280
- size: "standard",
281
- color: "blue",
282
- alignment: "left",
283
- eventdetails: "",
284
- listitems: [],
285
- linklist: {},
286
- dataset: {},
287
- source: {},
288
- image: "",
289
- profile: {},
290
- date: {},
291
188
  },
292
189
  {
293
- variant: "graphicpromo",
190
+ size: "standard",
294
191
  title:
295
192
  "ILO welcomes G7 call to make a just transition to a green economy happen",
296
193
  eyebrow: "High-level meeting",
297
194
  theme: "dark",
298
- cornercut: "cornercut",
195
+ cornercut: true,
299
196
  intro:
300
197
  "At the end of their meeting the G7 Labour Ministers highlighted the urgent need to greater focus on rights and occupational safety and health.",
301
198
  link: "https:/www.ilo.org",
@@ -303,26 +200,14 @@ const graphicPromoCardGroup: CardGroupProps = {
303
200
  label: "Read the press release",
304
201
  url: "https://www.ilo.org",
305
202
  },
306
- isvideo: false,
307
- size: "standard",
308
- color: "blue",
309
- alignment: "left",
310
- eventdetails: "",
311
- listitems: [],
312
- linklist: {},
313
- dataset: {},
314
- source: {},
315
- image: "",
316
- profile: {},
317
- date: {},
318
203
  },
319
204
  {
320
- variant: "graphicpromo",
205
+ size: "standard",
321
206
  title:
322
207
  "ILO welcomes G7 call to make a just transition to a green economy happen",
323
208
  eyebrow: "High-level meeting",
324
- theme: "light",
325
- cornercut: "cornercut",
209
+ theme: "dark",
210
+ cornercut: true,
326
211
  intro:
327
212
  "At the end of their meeting the G7 Labour Ministers highlighted the urgent need to greater focus on rights and occupational safety and health.",
328
213
  link: "https:/www.ilo.org",
@@ -330,21 +215,10 @@ const graphicPromoCardGroup: CardGroupProps = {
330
215
  label: "Read the press release",
331
216
  url: "https://www.ilo.org",
332
217
  },
333
- isvideo: false,
334
- size: "standard",
335
- color: "green",
336
- alignment: "left",
337
- eventdetails: "",
338
- listitems: [],
339
- linklist: {},
340
- dataset: {},
341
- source: {},
342
- image: "",
343
- profile: {},
344
- date: {},
345
218
  },
346
219
  ],
347
- cardcount: "three",
220
+ type: "promo",
221
+ cardCount: "two",
348
222
  cta: {
349
223
  label: "Discover our unique mission",
350
224
  url: "https://www.ilo.org",
@@ -354,17 +228,16 @@ const graphicPromoCardGroup: CardGroupProps = {
354
228
  const featureCardGroup: CardGroupProps = {
355
229
  cards: [
356
230
  {
357
- variant: "feature",
358
231
  isvideo: false,
359
232
  title:
360
233
  "ILO welcomes G7 call to make a just transition to a green economy happen",
361
234
  eyebrow: "High-level meeting",
362
- theme: "light",
235
+ theme: "dark",
363
236
  date: {
364
237
  human: "18 March 2023",
365
238
  unix: "1670389200",
366
239
  },
367
- image: "/hero.jpg",
240
+ image: "/small.jpg",
368
241
  link: "https:/www.ilo.org",
369
242
  linklist: {
370
243
  headline: "",
@@ -379,30 +252,18 @@ const featureCardGroup: CardGroupProps = {
379
252
  },
380
253
  ],
381
254
  },
382
- profile: {},
383
- size: "standard",
384
- color: "blue",
385
- cornercut: "cornercut",
386
- alignment: "left",
387
- intro: "",
388
- eventdetails: "",
389
- listitems: [],
390
- cta: {},
391
- dataset: {},
392
- source: {},
393
255
  },
394
256
  {
395
- variant: "feature",
396
- isvideo: true,
257
+ isvideo: false,
397
258
  title:
398
259
  "ILO welcomes G7 call to make a just transition to a green economy happen",
399
260
  eyebrow: "High-level meeting",
400
261
  theme: "dark",
401
262
  date: {
402
- human: "19 March 2023",
263
+ human: "18 March 2023",
403
264
  unix: "1670389200",
404
265
  },
405
- image: "/hero.jpg",
266
+ image: "/small.jpg",
406
267
  link: "https:/www.ilo.org",
407
268
  linklist: {
408
269
  headline: "",
@@ -417,30 +278,18 @@ const featureCardGroup: CardGroupProps = {
417
278
  },
418
279
  ],
419
280
  },
420
- profile: {},
421
- size: "standard",
422
- color: "blue",
423
- cornercut: "cornercut",
424
- alignment: "left",
425
- intro: "",
426
- eventdetails: "",
427
- listitems: [],
428
- cta: {},
429
- dataset: {},
430
- source: {},
431
281
  },
432
282
  {
433
- variant: "feature",
434
283
  isvideo: false,
435
284
  title:
436
285
  "ILO welcomes G7 call to make a just transition to a green economy happen",
437
286
  eyebrow: "High-level meeting",
438
- theme: "light",
287
+ theme: "dark",
439
288
  date: {
440
- human: "20 March 2023",
289
+ human: "18 March 2023",
441
290
  unix: "1670389200",
442
291
  },
443
- image: "/hero.jpg",
292
+ image: "/small.jpg",
444
293
  link: "https:/www.ilo.org",
445
294
  linklist: {
446
295
  headline: "",
@@ -455,30 +304,18 @@ const featureCardGroup: CardGroupProps = {
455
304
  },
456
305
  ],
457
306
  },
458
- profile: {},
459
- size: "standard",
460
- color: "blue",
461
- cornercut: "cornercut",
462
- alignment: "left",
463
- intro: "",
464
- eventdetails: "",
465
- listitems: [],
466
- cta: {},
467
- dataset: {},
468
- source: {},
469
307
  },
470
308
  {
471
- variant: "feature",
472
309
  isvideo: false,
473
310
  title:
474
311
  "ILO welcomes G7 call to make a just transition to a green economy happen",
475
312
  eyebrow: "High-level meeting",
476
313
  theme: "dark",
477
314
  date: {
478
- human: "22 March 2023",
315
+ human: "18 March 2023",
479
316
  unix: "1670389200",
480
317
  },
481
- image: "/hero.jpg",
318
+ image: "/small.jpg",
482
319
  link: "https:/www.ilo.org",
483
320
  linklist: {
484
321
  headline: "",
@@ -493,20 +330,10 @@ const featureCardGroup: CardGroupProps = {
493
330
  },
494
331
  ],
495
332
  },
496
- profile: {},
497
- size: "standard",
498
- color: "yellow",
499
- cornercut: "corner",
500
- alignment: "left",
501
- intro: "",
502
- eventdetails: "",
503
- listitems: [],
504
- cta: {},
505
- dataset: {},
506
- source: {},
507
333
  },
508
334
  ],
509
- cardcount: "four",
335
+ cardCount: "three",
336
+ type: "feature",
510
337
  cta: {
511
338
  label: "Discover our unique mission",
512
339
  url: "https://www.ilo.org",
@@ -516,7 +343,6 @@ const featureCardGroup: CardGroupProps = {
516
343
  const detailCardGroup: CardGroupProps = {
517
344
  cards: [
518
345
  {
519
- variant: "detail",
520
346
  title: "Technical meeting on digitalization in the construction sector",
521
347
  eyebrow: "Meeting",
522
348
  intro:
@@ -528,47 +354,23 @@ const detailCardGroup: CardGroupProps = {
528
354
  image: "/medium.jpg",
529
355
  link: "https:/www.ilo.org",
530
356
  eventdetails: "8:30 - 12:00 CET | Geneva",
531
- theme: "light",
532
- profile: {},
533
- isvideo: false,
534
- size: "standard",
535
- color: "blue",
536
- cornercut: "cornercut",
537
- alignment: "left",
538
- listitems: [],
539
- linklist: {},
540
- cta: {},
541
- dataset: {},
542
- source: {},
543
357
  },
544
358
  {
545
- variant: "detail",
546
359
  title: "Technical meeting on digitalization in the construction sector",
547
360
  eyebrow: "Meeting",
548
361
  intro:
549
362
  "The purpose of the meeting will be to discuss opportunities and challenges for the future of work in the construction industry as a vehicle to ensure a human-centred economic recovery.",
550
363
  date: {
551
- human: "20 March 2023",
364
+ human: "18 March 2023",
552
365
  unix: "1670389200",
553
366
  },
554
367
  image: "/medium.jpg",
555
368
  link: "https:/www.ilo.org",
556
369
  eventdetails: "8:30 - 12:00 CET | Geneva",
557
- theme: "dark",
558
- profile: {},
559
- isvideo: false,
560
- size: "standard",
561
- color: "green",
562
- cornercut: "corner",
563
- alignment: "left",
564
- listitems: [],
565
- linklist: {},
566
- cta: {},
567
- dataset: {},
568
- source: {},
569
370
  },
570
371
  ],
571
- cardcount: "two",
372
+ type: "detail",
373
+ cardCount: "two",
572
374
  cta: {
573
375
  label: "Discover our unique mission",
574
376
  url: "https://www.ilo.org",
@@ -578,63 +380,28 @@ const detailCardGroup: CardGroupProps = {
578
380
  const factListCardGroup: CardGroupProps = {
579
381
  cards: [
580
382
  {
581
- variant: "factlist",
582
383
  title:
583
384
  "Economic slowdown likely to force workers to accept lower quality jobs",
584
- eyebrow: "Report",
585
385
  theme: "light",
586
- cornercut: "cornercut",
587
- intro:
588
- "A toxic combination of mutually-reinforcing crises – inflation, debt, food and fuel price rises, geopolitical tensions and conflict, climate change – are threatening to increase poverty, inequality and discrimination worldwide.",
589
- listitems: [
386
+ list: [
590
387
  "Global employment growth will be only 1.0 per cent in 2023, less than half the level in 2022.",
591
388
  "The labour market deterioration is mainly due to emerging geopolitical tensions and the Ukraine conflict.",
592
389
  "The current slowdown means that many workers will have to accept lower quality jobs, often at very low pay.",
593
390
  ],
594
- link: "https:/www.ilo.org",
595
- profile: {},
596
- date: {},
597
- isvideo: false,
598
- size: "standard",
599
- color: "blue",
600
- alignment: "left",
601
- eventdetails: "",
602
- linklist: {},
603
- cta: {},
604
- dataset: {},
605
- source: {},
606
- image: "",
607
391
  },
608
392
  {
609
- variant: "factlist",
610
393
  title:
611
394
  "Economic slowdown likely to force workers to accept lower quality jobs",
612
- eyebrow: "Report",
613
- theme: "dark",
614
- cornercut: "cornercut",
615
- intro:
616
- "A toxic combination of mutually-reinforcing crises – inflation, debt, food and fuel price rises, geopolitical tensions and conflict, climate change – are threatening to increase poverty, inequality and discrimination worldwide.",
617
- listitems: [
395
+ theme: "light",
396
+ list: [
618
397
  "Global employment growth will be only 1.0 per cent in 2023, less than half the level in 2022.",
619
398
  "The labour market deterioration is mainly due to emerging geopolitical tensions and the Ukraine conflict.",
620
399
  "The current slowdown means that many workers will have to accept lower quality jobs, often at very low pay.",
621
400
  ],
622
- link: "https:/www.ilo.org",
623
- profile: {},
624
- date: {},
625
- isvideo: false,
626
- size: "standard",
627
- color: "blue",
628
- alignment: "left",
629
- eventdetails: "",
630
- linklist: {},
631
- cta: {},
632
- dataset: {},
633
- source: {},
634
- image: "",
635
401
  },
636
402
  ],
637
- cardcount: "two",
403
+ type: "factlist",
404
+ cardCount: "two",
638
405
  cta: {
639
406
  label: "Discover our unique mission",
640
407
  url: "https://www.ilo.org",
@@ -644,11 +411,10 @@ const factListCardGroup: CardGroupProps = {
644
411
  const dataCardGroup: CardGroupProps = {
645
412
  cards: [
646
413
  {
647
- variant: "data",
648
- title: "Technical meeting on digitalization in the construction sector",
414
+ size: "wide",
649
415
  eyebrow: "Meeting",
650
- eventdetails:
651
- "The purpose of the meeting will be to discuss opportunities and challenges for the future of work in the construction industry as a vehicle to ensure a human-centred economic recovery.",
416
+ image: "/small.jpg",
417
+ columns: "two",
652
418
  dataset: {
653
419
  content: {
654
420
  items: [
@@ -679,6 +445,19 @@ const dataCardGroup: CardGroupProps = {
679
445
  },
680
446
  ],
681
447
  },
448
+ cta: {
449
+ headline: "Read online",
450
+ items: [
451
+ {
452
+ label: "HTML Version",
453
+ url: "https://www.ilo.org",
454
+ },
455
+ {
456
+ label: "InfoStories",
457
+ url: "https://www.ilo.org/infostories/en-GB",
458
+ },
459
+ ],
460
+ },
682
461
  links: {
683
462
  headline: "Languages",
684
463
  items: [
@@ -697,34 +476,18 @@ const dataCardGroup: CardGroupProps = {
697
476
  ],
698
477
  },
699
478
  },
700
- date: {},
701
- theme: "light",
702
- link: "",
703
- profile: {},
704
- isvideo: false,
705
- size: "standard",
706
- color: "blue",
707
- cornercut: "cornercut",
708
- alignment: "left",
709
- intro: "",
710
- listitems: [],
711
- linklist: {},
712
- cta: {},
713
- source: {},
714
- image: "",
715
479
  },
716
480
  {
717
- variant: "data",
718
- title: "Technical meeting on digitalization in the construction sector",
481
+ size: "wide",
719
482
  eyebrow: "Meeting",
720
- eventdetails:
721
- "The purpose of the meeting will be to discuss opportunities and challenges for the future of work in the construction industry as a vehicle to ensure a human-centred economic recovery.",
483
+ image: "/small.jpg",
484
+ columns: "two",
722
485
  dataset: {
723
486
  content: {
724
487
  items: [
725
488
  {
726
489
  label: "Date",
727
- copy: "19 March 2023",
490
+ copy: "18 March 2023",
728
491
  },
729
492
  {
730
493
  label: "Event type",
@@ -749,6 +512,19 @@ const dataCardGroup: CardGroupProps = {
749
512
  },
750
513
  ],
751
514
  },
515
+ cta: {
516
+ headline: "Read online",
517
+ items: [
518
+ {
519
+ label: "HTML Version",
520
+ url: "https://www.ilo.org",
521
+ },
522
+ {
523
+ label: "InfoStories",
524
+ url: "https://www.ilo.org/infostories/en-GB",
525
+ },
526
+ ],
527
+ },
752
528
  links: {
753
529
  headline: "Languages",
754
530
  items: [
@@ -767,34 +543,18 @@ const dataCardGroup: CardGroupProps = {
767
543
  ],
768
544
  },
769
545
  },
770
- date: {},
771
- theme: "light",
772
- link: "",
773
- profile: {},
774
- isvideo: false,
775
- size: "standard",
776
- color: "blue",
777
- cornercut: "cornercut",
778
- alignment: "left",
779
- intro: "",
780
- listitems: [],
781
- linklist: {},
782
- cta: {},
783
- source: {},
784
- image: "",
785
546
  },
786
547
  {
787
- variant: "data",
788
- title: "Technical meeting on digitalization in the construction sector",
548
+ size: "wide",
789
549
  eyebrow: "Meeting",
790
- eventdetails:
791
- "The purpose of the meeting will be to discuss opportunities and challenges for the future of work in the construction industry as a vehicle to ensure a human-centred economic recovery.",
550
+ image: "/small.jpg",
551
+ columns: "two",
792
552
  dataset: {
793
553
  content: {
794
554
  items: [
795
555
  {
796
556
  label: "Date",
797
- copy: "21 March 2023",
557
+ copy: "18 March 2023",
798
558
  },
799
559
  {
800
560
  label: "Event type",
@@ -819,6 +579,19 @@ const dataCardGroup: CardGroupProps = {
819
579
  },
820
580
  ],
821
581
  },
582
+ cta: {
583
+ headline: "Read online",
584
+ items: [
585
+ {
586
+ label: "HTML Version",
587
+ url: "https://www.ilo.org",
588
+ },
589
+ {
590
+ label: "InfoStories",
591
+ url: "https://www.ilo.org/infostories/en-GB",
592
+ },
593
+ ],
594
+ },
822
595
  links: {
823
596
  headline: "Languages",
824
597
  items: [
@@ -837,34 +610,18 @@ const dataCardGroup: CardGroupProps = {
837
610
  ],
838
611
  },
839
612
  },
840
- date: {},
841
- theme: "light",
842
- link: "",
843
- profile: {},
844
- isvideo: false,
845
- size: "standard",
846
- color: "blue",
847
- cornercut: "cornercut",
848
- alignment: "left",
849
- intro: "",
850
- listitems: [],
851
- linklist: {},
852
- cta: {},
853
- source: {},
854
- image: "",
855
613
  },
856
614
  {
857
- variant: "data",
858
- title: "Technical meeting on digitalization in the construction sector",
615
+ size: "wide",
859
616
  eyebrow: "Meeting",
860
- eventdetails:
861
- "The purpose of the meeting will be to discuss opportunities and challenges for the future of work in the construction industry as a vehicle to ensure a human-centred economic recovery.",
617
+ image: "/small.jpg",
618
+ columns: "two",
862
619
  dataset: {
863
620
  content: {
864
621
  items: [
865
622
  {
866
623
  label: "Date",
867
- copy: "22 March 2023",
624
+ copy: "18 March 2023",
868
625
  },
869
626
  {
870
627
  label: "Event type",
@@ -889,6 +646,86 @@ const dataCardGroup: CardGroupProps = {
889
646
  },
890
647
  ],
891
648
  },
649
+ cta: {
650
+ headline: "Read online",
651
+ items: [
652
+ {
653
+ label: "HTML Version",
654
+ url: "https://www.ilo.org",
655
+ },
656
+ {
657
+ label: "InfoStories",
658
+ url: "https://www.ilo.org/infostories/en-GB",
659
+ },
660
+ ],
661
+ },
662
+ links: {
663
+ headline: "Languages",
664
+ items: [
665
+ {
666
+ label: "English",
667
+ url: "https://www.ilo.org",
668
+ },
669
+ {
670
+ label: "Español",
671
+ url: "https://www.ilo.org",
672
+ },
673
+ {
674
+ label: "Français",
675
+ url: "https://www.ilo.org",
676
+ },
677
+ ],
678
+ },
679
+ },
680
+ },
681
+ {
682
+ size: "wide",
683
+ eyebrow: "Meeting",
684
+ image: "/small.jpg",
685
+ columns: "two",
686
+ dataset: {
687
+ content: {
688
+ items: [
689
+ {
690
+ label: "Date",
691
+ copy: "18 March 2023",
692
+ },
693
+ {
694
+ label: "Event type",
695
+ copy: "Technical meeting of experts",
696
+ },
697
+ ],
698
+ },
699
+ files: {
700
+ headline: "Files",
701
+ items: [
702
+ {
703
+ label: "Meeting agenda",
704
+ url: "https://www.ilo.org",
705
+ },
706
+ {
707
+ label: "Briefing notes",
708
+ url: "https://www.ilo.org",
709
+ },
710
+ {
711
+ label: "Practical info",
712
+ url: "https://www.ilo.org",
713
+ },
714
+ ],
715
+ },
716
+ cta: {
717
+ headline: "Read online",
718
+ items: [
719
+ {
720
+ label: "HTML Version",
721
+ url: "https://www.ilo.org",
722
+ },
723
+ {
724
+ label: "InfoStories",
725
+ url: "https://www.ilo.org/infostories/en-GB",
726
+ },
727
+ ],
728
+ },
892
729
  links: {
893
730
  headline: "Languages",
894
731
  items: [
@@ -907,24 +744,10 @@ const dataCardGroup: CardGroupProps = {
907
744
  ],
908
745
  },
909
746
  },
910
- date: {},
911
- theme: "light",
912
- link: "",
913
- profile: {},
914
- isvideo: false,
915
- size: "standard",
916
- color: "blue",
917
- cornercut: "cornercut",
918
- alignment: "left",
919
- intro: "",
920
- listitems: [],
921
- linklist: {},
922
- cta: {},
923
- source: {},
924
- image: "",
925
747
  },
926
748
  ],
927
- cardcount: "four",
749
+ cardCount: "four",
750
+ type: "data",
928
751
  cta: {
929
752
  label: "Discover our unique mission",
930
753
  url: "https://www.ilo.org",
@@ -932,10 +755,10 @@ const dataCardGroup: CardGroupProps = {
932
755
  };
933
756
 
934
757
  const CardGroupArgs = {
935
- graphicCardGroup,
758
+ textCardGroup,
936
759
  statCardGroup,
937
760
  multilinkCardGroup,
938
- graphicPromoCardGroup,
761
+ promoCardGroup,
939
762
  featureCardGroup,
940
763
  detailCardGroup,
941
764
  factListCardGroup,