@ilo-org/react 0.12.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 (159) hide show
  1. package/CHANGELOG.md +17 -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 +73 -19
  6. package/lib/cjs/components/Cards/DetailCard/DetailCard.js +20 -0
  7. package/lib/cjs/components/Cards/DetailCard/index.js +17 -12
  8. package/lib/cjs/components/Cards/FactlistCard/FactListCard.js +23 -0
  9. package/lib/cjs/components/Cards/FactlistCard/index.js +16 -14
  10. package/lib/cjs/components/Cards/FeatureCard/FeatureCard.js +24 -0
  11. package/lib/cjs/components/Cards/FeatureCard/index.js +31 -16
  12. package/lib/cjs/components/Cards/MultilinkCard/MultiLinkCard.js +24 -0
  13. package/lib/cjs/components/Cards/MultilinkCard/index.js +35 -16
  14. package/lib/cjs/components/Cards/PromoCard/PromoCard.js +23 -0
  15. package/lib/cjs/components/Cards/PromoCard/index.js +18 -15
  16. package/lib/cjs/components/Cards/StatCard/StatCard.js +21 -0
  17. package/lib/cjs/components/Cards/StatCard/index.js +15 -13
  18. package/lib/cjs/components/Cards/TextCard/TextCard.js +23 -0
  19. package/lib/cjs/components/Cards/TextCard/index.js +22 -17
  20. package/lib/cjs/components/Footer/Footer.js +1 -1
  21. package/lib/cjs/components/Navigation/Navigation.js +3 -3
  22. package/lib/cjs/components/Pagination/Pagination.js +1 -1
  23. package/lib/cjs/components/index.js +10 -12
  24. package/lib/cjs/index.js +10 -12
  25. package/lib/esm/components/Cards/CardGroup/CardGroup.js +40 -0
  26. package/lib/esm/components/Cards/CardGroup/index.js +756 -0
  27. package/lib/esm/components/Cards/DataCard/DataCard.js +25 -0
  28. package/lib/esm/components/Cards/DataCard/index.js +72 -19
  29. package/lib/esm/components/Cards/DetailCard/DetailCard.js +18 -0
  30. package/lib/esm/components/Cards/DetailCard/index.js +16 -12
  31. package/lib/esm/components/Cards/FactlistCard/FactListCard.js +21 -0
  32. package/lib/esm/components/Cards/FactlistCard/index.js +15 -14
  33. package/lib/esm/components/Cards/FeatureCard/FeatureCard.js +22 -0
  34. package/lib/esm/components/Cards/FeatureCard/index.js +30 -16
  35. package/lib/esm/components/Cards/MultilinkCard/MultiLinkCard.js +22 -0
  36. package/lib/esm/components/Cards/MultilinkCard/index.js +34 -16
  37. package/lib/esm/components/Cards/PromoCard/PromoCard.js +21 -0
  38. package/lib/esm/components/Cards/PromoCard/index.js +17 -15
  39. package/lib/esm/components/Cards/StatCard/StatCard.js +19 -0
  40. package/lib/esm/components/Cards/StatCard/index.js +14 -13
  41. package/lib/esm/components/Cards/TextCard/TextCard.js +21 -0
  42. package/lib/esm/components/Cards/TextCard/index.js +21 -17
  43. package/lib/esm/components/Footer/Footer.js +1 -1
  44. package/lib/esm/components/Navigation/Navigation.js +3 -3
  45. package/lib/esm/components/Pagination/Pagination.js +1 -1
  46. package/lib/esm/components/index.js +9 -10
  47. package/lib/esm/index.js +9 -10
  48. package/lib/types/react/src/components/Cards/CardGroup/CardGroup.args.d.ts +13 -0
  49. package/lib/types/react/src/components/Cards/CardGroup/CardGroup.props.d.ts +58 -0
  50. package/lib/types/react/src/components/Cards/CardGroup/index.d.ts +3 -0
  51. package/lib/types/react/src/components/Cards/DataCard/DataCard.args.d.ts +2 -0
  52. package/lib/types/react/src/components/Cards/DataCard/DataCard.d.ts +4 -0
  53. package/lib/types/react/src/components/Cards/DataCard/DataCard.props.d.ts +50 -0
  54. package/lib/types/react/src/components/Cards/DataCard/index.d.ts +3 -4
  55. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.args.d.ts +3 -0
  56. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.d.ts +4 -0
  57. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.props.d.ts +35 -0
  58. package/lib/types/react/src/components/Cards/DetailCard/index.d.ts +3 -4
  59. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.args.d.ts +3 -0
  60. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.d.ts +4 -0
  61. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.props.d.ts +16 -0
  62. package/lib/types/react/src/components/Cards/FactlistCard/index.d.ts +3 -4
  63. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.args.d.ts +3 -0
  64. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.d.ts +4 -0
  65. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.props.d.ts +31 -0
  66. package/lib/types/react/src/components/Cards/FeatureCard/index.d.ts +3 -4
  67. package/lib/types/react/src/components/Cards/MultilinkCard/MultiLinkCard.d.ts +4 -0
  68. package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.args.d.ts +2 -0
  69. package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +25 -0
  70. package/lib/types/react/src/components/Cards/MultilinkCard/index.d.ts +3 -4
  71. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.args.d.ts +3 -0
  72. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.d.ts +4 -0
  73. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.props.d.ts +30 -0
  74. package/lib/types/react/src/components/Cards/PromoCard/index.d.ts +3 -4
  75. package/lib/types/react/src/components/Cards/StatCard/StatCard.args.d.ts +3 -0
  76. package/lib/types/react/src/components/Cards/StatCard/StatCard.d.ts +4 -0
  77. package/lib/types/react/src/components/Cards/StatCard/StatCard.props.d.ts +18 -0
  78. package/lib/types/react/src/components/Cards/StatCard/index.d.ts +3 -4
  79. package/lib/types/react/src/components/Cards/TextCard/TextCard.args.d.ts +3 -0
  80. package/lib/types/react/src/components/Cards/TextCard/TextCard.d.ts +4 -0
  81. package/lib/types/react/src/components/Cards/TextCard/TextCard.props.d.ts +26 -0
  82. package/lib/types/react/src/components/Cards/TextCard/index.d.ts +3 -4
  83. package/lib/types/react/src/components/index.d.ts +1 -1
  84. package/lib/types/react/src/types/index.d.ts +4 -0
  85. package/package.json +2 -2
  86. package/src/components/Cards/{CardGroup.args.ts → CardGroup/CardGroup.args.ts} +196 -373
  87. package/src/components/Cards/CardGroup/CardGroup.props.ts +78 -0
  88. package/src/components/Cards/CardGroup/CardGroup.tsx +54 -0
  89. package/src/components/Cards/CardGroup/index.tsx +3 -0
  90. package/src/components/Cards/DataCard/DataCard.args.ts +69 -0
  91. package/src/components/Cards/DataCard/DataCard.props.ts +60 -0
  92. package/src/components/Cards/DataCard/DataCard.tsx +107 -0
  93. package/src/components/Cards/DataCard/index.tsx +3 -107
  94. package/src/components/Cards/DetailCard/DetailCard.args.ts +17 -0
  95. package/src/components/Cards/DetailCard/DetailCard.props.ts +43 -0
  96. package/src/components/Cards/DetailCard/DetailCard.tsx +62 -0
  97. package/src/components/Cards/DetailCard/index.tsx +3 -62
  98. package/src/components/Cards/FactlistCard/FactListCard.args.ts +14 -0
  99. package/src/components/Cards/FactlistCard/FactListCard.props.ts +19 -0
  100. package/src/components/Cards/FactlistCard/FactListCard.tsx +42 -0
  101. package/src/components/Cards/FactlistCard/index.tsx +3 -42
  102. package/src/components/Cards/FeatureCard/FeatureCard.args.ts +30 -0
  103. package/src/components/Cards/FeatureCard/FeatureCard.props.ts +38 -0
  104. package/src/components/Cards/FeatureCard/FeatureCard.tsx +69 -0
  105. package/src/components/Cards/FeatureCard/index.tsx +3 -69
  106. package/src/components/Cards/MultilinkCard/MultiLinkCard.tsx +76 -0
  107. package/src/components/Cards/MultilinkCard/MultilinkCard.args.ts +33 -0
  108. package/src/components/Cards/MultilinkCard/MultilinkCard.props.ts +30 -0
  109. package/src/components/Cards/MultilinkCard/index.tsx +3 -76
  110. package/src/components/Cards/PromoCard/PromoCard.args.ts +19 -0
  111. package/src/components/Cards/PromoCard/PromoCard.props.ts +36 -0
  112. package/src/components/Cards/PromoCard/PromoCard.tsx +60 -0
  113. package/src/components/Cards/PromoCard/index.tsx +3 -60
  114. package/src/components/Cards/StatCard/StatCard.args.ts +14 -0
  115. package/src/components/Cards/StatCard/StatCard.props.ts +21 -0
  116. package/src/components/Cards/StatCard/StatCard.tsx +36 -0
  117. package/src/components/Cards/StatCard/index.tsx +3 -36
  118. package/src/components/Cards/TextCard/TextCard.args.ts +21 -0
  119. package/src/components/Cards/TextCard/TextCard.props.ts +32 -0
  120. package/src/components/Cards/TextCard/TextCard.tsx +62 -0
  121. package/src/components/Cards/TextCard/index.tsx +3 -63
  122. package/src/components/Footer/Footer.args.ts +4 -16
  123. package/src/components/Footer/Footer.tsx +41 -37
  124. package/src/components/Navigation/Navigation.tsx +5 -5
  125. package/src/components/Pagination/Pagination.tsx +2 -1
  126. package/src/components/index.ts +1 -1
  127. package/src/types/index.ts +6 -0
  128. package/lib/cjs/components/Cards/Card.js +0 -40
  129. package/lib/cjs/components/Cards/CardGroup.js +0 -33
  130. package/lib/cjs/components/Cards/index.js +0 -37
  131. package/lib/esm/components/Cards/Card.js +0 -38
  132. package/lib/esm/components/Cards/CardGroup.js +0 -31
  133. package/lib/esm/components/Cards/index.js +0 -22
  134. package/lib/types/react/src/components/Cards/Card.d.ts +0 -4
  135. package/lib/types/react/src/components/Cards/Card.props.d.ts +0 -307
  136. package/lib/types/react/src/components/Cards/CardGroup.props.d.ts +0 -16
  137. package/lib/types/react/src/components/Cards/index.d.ts +0 -11
  138. package/public/fao-logo.svg +0 -195
  139. package/public/favicon.ico +0 -0
  140. package/public/hero.jpg +0 -0
  141. package/public/ilo-dg.jpg +0 -0
  142. package/public/ilo-headquarters.jpg +0 -0
  143. package/public/large.jpg +0 -0
  144. package/public/media-file-poster.jpg +0 -0
  145. package/public/medium.jpg +0 -0
  146. package/public/small.jpg +0 -0
  147. package/public/unhcr-logo.svg +0 -1
  148. package/public/unicef-logo.png +0 -0
  149. package/public/video-example.mp4 +0 -0
  150. package/public/wfp-logo.svg +0 -1
  151. package/public/who-logo.svg +0 -1
  152. package/public/youtube-video-poster.avif +0 -0
  153. package/src/components/Cards/Card.args.ts +0 -220
  154. package/src/components/Cards/Card.props.ts +0 -382
  155. package/src/components/Cards/Card.tsx +0 -36
  156. package/src/components/Cards/CardGroup.props.ts +0 -19
  157. package/src/components/Cards/CardGroup.tsx +0 -54
  158. package/src/components/Cards/index.ts +0 -22
  159. /package/lib/types/react/src/components/Cards/{CardGroup.d.ts → CardGroup/CardGroup.d.ts} +0 -0
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var classNames = require('classnames');
5
+ var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
+ var components_Link_Link = require('../../Link/Link.js');
7
+ require('tslib');
8
+ require('react');
9
+ require('../../../GlobalCtx-10114bdd.js');
10
+
11
+ const DataCard = ({ eyebrow, size = "narrow", image, dataset, columns = "one", }) => {
12
+ const { prefix } = hooks_useGlobalSettings();
13
+ const baseClass = `${prefix}--card`;
14
+ const cardClasses = classNames(baseClass, `${baseClass}__type__data`, {
15
+ [`${baseClass}__size__${size}`]: size,
16
+ [`${baseClass}__type__data__columns__${columns}`]: columns,
17
+ });
18
+ return (jsxRuntime.jsx("div", Object.assign({ className: cardClasses }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--wrap` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: eyebrow }) }) }))), dataset &&
19
+ dataset.content &&
20
+ dataset.content.items &&
21
+ dataset.content.items.map((item) => (jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--area--content` }, { children: [jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-label` }, { children: item.label })), jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-copy` }, { children: item.copy }))] })))), dataset && dataset.files && (jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--data--content-files` }, { children: [jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-label` }, { children: dataset.files.headline })), dataset.files.items &&
22
+ dataset.files.items.map((item) => (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--data--file ${prefix}--button ${prefix}--button--primary ${prefix}--button--small`, href: item.url, download: true }, { children: jsxRuntime.jsx("span", Object.assign({ className: "button__label" }, { children: item.label })) }))))] }))), dataset && dataset.cta && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--area--cta` }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--data--content-cta` }, { children: [jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-label` }, { children: dataset.cta.headline })), dataset.cta.items &&
23
+ dataset.cta.items.map((item) => (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--cta ${prefix}--button ${prefix}--button--medium ${prefix}--button--secondary`, href: item.url }, { children: jsxRuntime.jsx("span", Object.assign({ className: "link__label" }, { children: item.label })) }))))] })) }))), dataset && dataset.links && (jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--data--content-links` }, { children: [jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-label` }, { children: dataset.links.headline })), dataset.links.items &&
24
+ dataset.links.items.map((item) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(components_Link_Link, Object.assign({ url: item.url }, { children: item.label })), jsxRuntime.jsx("span", { children: "\u00A0\u00A0" })] })))] })))] }))] })) })));
25
+ };
26
+
27
+ module.exports = DataCard;
@@ -1,27 +1,81 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var classNames = require('classnames');
5
- var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
- var components_Link_Link = require('../../Link/Link.js');
3
+ var components_Cards_DataCard_DataCard = require('./DataCard.js');
4
+ require('react/jsx-runtime');
5
+ require('classnames');
6
+ require('../../../hooks/useGlobalSettings.js');
7
7
  require('tslib');
8
8
  require('react');
9
9
  require('../../../GlobalCtx-10114bdd.js');
10
+ require('../../Link/Link.js');
10
11
 
11
- const DataCard = ({ eyebrow, size = "narrow", image, dataset, columns = "one", }) => {
12
- const { prefix } = hooks_useGlobalSettings();
13
- const baseClass = `${prefix}--card`;
14
- const cardClasses = classNames(baseClass, `${baseClass}__type__data`, {
15
- [`${baseClass}__size__${size}`]: size,
16
- [`${baseClass}__type__data__columns__${columns}`]: columns,
17
- });
18
- return (jsxRuntime.jsx("div", Object.assign({ className: cardClasses }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--wrap` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: eyebrow }) }) }))), dataset &&
19
- dataset.content &&
20
- dataset.content.items &&
21
- dataset.content.items.map((item) => (jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--area--content` }, { children: [jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-label` }, { children: item.label })), jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-copy` }, { children: item.copy }))] })))), dataset && dataset.files && (jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--data--content-files` }, { children: [jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-label` }, { children: dataset.files.headline })), dataset.files.items &&
22
- dataset.files.items.map((item) => (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--data--file ${prefix}--button ${prefix}--button--primary ${prefix}--button--small`, href: item.url, download: true }, { children: jsxRuntime.jsx("span", Object.assign({ className: "button__label" }, { children: item.label })) }))))] }))), dataset && dataset.cta && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--area--cta` }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--data--content-cta` }, { children: [jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-label` }, { children: dataset.cta.headline })), dataset.cta.items &&
23
- dataset.cta.items.map((item) => (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--cta ${prefix}--button ${prefix}--button--medium ${prefix}--button--secondary`, href: item.url }, { children: jsxRuntime.jsx("span", Object.assign({ className: "link__label" }, { children: item.label })) }))))] })) }))), dataset && dataset.links && (jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--data--content-links` }, { children: [jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}__type__data--content-label` }, { children: dataset.links.headline })), dataset.links.items &&
24
- dataset.links.items.map((item) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(components_Link_Link, Object.assign({ url: item.url }, { children: item.label })), jsxRuntime.jsx("span", { children: "\u00A0\u00A0" })] })))] })))] }))] })) })));
12
+ const DataCardArgs = {
13
+ size: "wide",
14
+ eyebrow: "Meeting",
15
+ image: "/small.jpg",
16
+ columns: "two",
17
+ dataset: {
18
+ content: {
19
+ items: [
20
+ {
21
+ label: "Date",
22
+ copy: "18 March 2023",
23
+ },
24
+ {
25
+ label: "Event type",
26
+ copy: "Technical meeting of experts",
27
+ },
28
+ ],
29
+ },
30
+ files: {
31
+ headline: "Files",
32
+ items: [
33
+ {
34
+ label: "Meeting agenda",
35
+ url: "https://www.ilo.org",
36
+ },
37
+ {
38
+ label: "Briefing notes",
39
+ url: "https://www.ilo.org",
40
+ },
41
+ {
42
+ label: "Practical info",
43
+ url: "https://www.ilo.org",
44
+ },
45
+ ],
46
+ },
47
+ cta: {
48
+ headline: "Read online",
49
+ items: [
50
+ {
51
+ label: "HTML Version",
52
+ url: "https://www.ilo.org",
53
+ },
54
+ {
55
+ label: "InfoStories",
56
+ url: "https://www.ilo.org/infostories/en-GB",
57
+ },
58
+ ],
59
+ },
60
+ links: {
61
+ headline: "Languages",
62
+ items: [
63
+ {
64
+ label: "English",
65
+ url: "https://www.ilo.org",
66
+ },
67
+ {
68
+ label: "Español",
69
+ url: "https://www.ilo.org",
70
+ },
71
+ {
72
+ label: "Français",
73
+ url: "https://www.ilo.org",
74
+ },
75
+ ],
76
+ },
77
+ },
25
78
  };
26
79
 
27
- module.exports = DataCard;
80
+ exports.DataCard = components_Cards_DataCard_DataCard;
81
+ exports.DataCardArgs = DataCardArgs;
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var classNames = require('classnames');
5
+ var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
+ require('tslib');
7
+ require('react');
8
+ require('../../../GlobalCtx-10114bdd.js');
9
+
10
+ const DetailCard = ({ eyebrow, title, size = "narrow", intro, date, eventdetails, link, image, }) => {
11
+ const { prefix } = hooks_useGlobalSettings();
12
+ const baseClass = `${prefix}--card`;
13
+ const cardClasses = classNames(baseClass, `${baseClass}__type__detail`, {
14
+ [`${baseClass}__action`]: link,
15
+ [`${baseClass}__size__${size}`]: size,
16
+ });
17
+ return (jsxRuntime.jsxs("div", Object.assign({ className: cardClasses }, { children: [link && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--link`, href: link, title: title }, { children: jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--link--text` }, { children: title })) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--wrap` }, { children: [image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: title }) }) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), intro && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--intro` }, { children: intro })), date && (jsxRuntime.jsx("time", Object.assign({ className: `${baseClass}--date`, dateTime: date.unix }, { children: date.human }))), eventdetails && (jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--date-extra` }, { children: eventdetails })))] }))] }))] })));
18
+ };
19
+
20
+ module.exports = DetailCard;
@@ -1,20 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var classNames = require('classnames');
5
- var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
3
+ var components_Cards_DetailCard_DetailCard = require('./DetailCard.js');
4
+ require('react/jsx-runtime');
5
+ require('classnames');
6
+ require('../../../hooks/useGlobalSettings.js');
6
7
  require('tslib');
7
8
  require('react');
8
9
  require('../../../GlobalCtx-10114bdd.js');
9
10
 
10
- const DetailCard = ({ eyebrow, title, size = "narrow", intro, date, eventdetails, link, image, }) => {
11
- const { prefix } = hooks_useGlobalSettings();
12
- const baseClass = `${prefix}--card`;
13
- const cardClasses = classNames(baseClass, `${baseClass}__type__detail`, {
14
- [`${baseClass}__action`]: link,
15
- [`${baseClass}__size__${size}`]: size,
16
- });
17
- return (jsxRuntime.jsxs("div", Object.assign({ className: cardClasses }, { children: [link && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--link`, href: link, title: title }, { children: jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--link--text` }, { children: title })) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--wrap` }, { children: [image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: title }) }) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), intro && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--intro` }, { children: intro })), date && (jsxRuntime.jsx("time", Object.assign({ className: `${baseClass}--date`, dateTime: date.unix }, { children: date.human }))), eventdetails && (jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--date-extra` }, { children: eventdetails })))] }))] }))] })));
11
+ const DetailCardArgs = {
12
+ title: "Technical meeting on digitalization in the construction sector",
13
+ eyebrow: "Meeting",
14
+ intro: "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.",
15
+ date: {
16
+ human: "18 March 2023",
17
+ unix: "1670389200",
18
+ },
19
+ image: "/medium.jpg",
20
+ link: "https:/www.ilo.org",
21
+ eventdetails: "8:30 - 12:00 CET | Geneva",
18
22
  };
19
23
 
20
- module.exports = DetailCard;
24
+ exports.DetailCard = components_Cards_DetailCard_DetailCard;
25
+ exports.DetailCardArgs = DetailCardArgs;
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var classNames = require('classnames');
5
+ var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
+ var components_List_List = require('../../List/List.js');
7
+ var components_List_ListItem = require('../../List/ListItem.js');
8
+ require('tslib');
9
+ require('react');
10
+ require('../../../GlobalCtx-10114bdd.js');
11
+ require('../../../ListCtx-14aa546f.js');
12
+
13
+ const FactlistCard = ({ title, theme = "narrow", size, list, }) => {
14
+ const { prefix } = hooks_useGlobalSettings();
15
+ const baseClass = `${prefix}--card`;
16
+ const cardClasses = classNames(baseClass, `${baseClass}__type__factlist`, {
17
+ [`${baseClass}__size__${size}`]: size,
18
+ [`${baseClass}__theme__${theme}`]: theme,
19
+ });
20
+ return (jsxRuntime.jsx("div", Object.assign({ className: cardClasses }, { children: jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--wrap` }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), list && (jsxRuntime.jsx(components_List_List, Object.assign({ alignment: "default", ordered: "unordered" }, { children: list.map((item, index) => (jsxRuntime.jsx(components_List_ListItem, Object.assign({ id: `list${index}` }, { children: jsxRuntime.jsx("p", { children: item }) })))) })))] })) })) })));
21
+ };
22
+
23
+ module.exports = FactlistCard;
@@ -1,23 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var classNames = require('classnames');
5
- var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
- var components_List_List = require('../../List/List.js');
7
- var components_List_ListItem = require('../../List/ListItem.js');
3
+ var components_Cards_FactlistCard_FactListCard = require('./FactListCard.js');
4
+ require('react/jsx-runtime');
5
+ require('classnames');
6
+ require('../../../hooks/useGlobalSettings.js');
8
7
  require('tslib');
9
8
  require('react');
10
9
  require('../../../GlobalCtx-10114bdd.js');
10
+ require('../../List/List.js');
11
11
  require('../../../ListCtx-14aa546f.js');
12
+ require('../../List/ListItem.js');
12
13
 
13
- const FactlistCard = ({ title, theme = "narrow", size, list, }) => {
14
- const { prefix } = hooks_useGlobalSettings();
15
- const baseClass = `${prefix}--card`;
16
- const cardClasses = classNames(baseClass, `${baseClass}__type__factlist`, {
17
- [`${baseClass}__size__${size}`]: size,
18
- [`${baseClass}__theme__${theme}`]: theme,
19
- });
20
- return (jsxRuntime.jsx("div", Object.assign({ className: cardClasses }, { children: jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--wrap` }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), list && (jsxRuntime.jsx(components_List_List, Object.assign({ alignment: "default", ordered: "unordered" }, { children: list.map((item, index) => (jsxRuntime.jsx(components_List_ListItem, Object.assign({ id: `list${index}` }, { children: jsxRuntime.jsx("p", { children: item }) })))) })))] })) })) })));
14
+ const FactlistCardArgs = {
15
+ title: "Economic slowdown likely to force workers to accept lower quality jobs",
16
+ theme: "light",
17
+ list: [
18
+ "Global employment growth will be only 1.0 per cent in 2023, less than half the level in 2022.",
19
+ "The labour market deterioration is mainly due to emerging geopolitical tensions and the Ukraine conflict.",
20
+ "The current slowdown means that many workers will have to accept lower quality jobs, often at very low pay.",
21
+ ],
21
22
  };
22
23
 
23
- module.exports = FactlistCard;
24
+ exports.FactlistCard = components_Cards_FactlistCard_FactListCard;
25
+ exports.FactlistCardArgs = FactlistCardArgs;
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var classNames = require('classnames');
5
+ var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
+ var components_LinkList_LinkList = require('../../LinkList/LinkList.js');
7
+ require('tslib');
8
+ require('react');
9
+ require('../../../GlobalCtx-10114bdd.js');
10
+
11
+ const FeatureCard = ({ isvideo, eyebrow, title, theme, size = "narrow", date, link, linklist, image, }) => {
12
+ const { prefix } = hooks_useGlobalSettings();
13
+ const baseClass = `${prefix}--card`;
14
+ const cardClasses = classNames(baseClass, `${baseClass}__type__feature`, {
15
+ [`${baseClass}__action`]: link,
16
+ [`${baseClass}__size__${size}`]: size,
17
+ [`${baseClass}__isvideo`]: isvideo,
18
+ [`${baseClass}__linklist`]: linklist,
19
+ [`${baseClass}__theme__${theme}`]: theme,
20
+ });
21
+ return (jsxRuntime.jsxs("div", Object.assign({ className: cardClasses }, { children: [link && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--link`, href: link, title: title }, { children: jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--link--text` }, { children: title })) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--wrap` }, { children: [image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: title }) }) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), date && (jsxRuntime.jsx("time", Object.assign({ className: `${baseClass}--date`, dateTime: date.unix }, { children: date.human }))), linklist && (jsxRuntime.jsx(components_LinkList_LinkList, { headline: linklist.headline, linkgroup: linklist.linkgroup }))] }))] }))] })));
22
+ };
23
+
24
+ module.exports = FeatureCard;
@@ -1,24 +1,39 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var classNames = require('classnames');
5
- var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
- var components_LinkList_LinkList = require('../../LinkList/LinkList.js');
3
+ var components_Cards_FeatureCard_FeatureCard = require('./FeatureCard.js');
4
+ require('react/jsx-runtime');
5
+ require('classnames');
6
+ require('../../../hooks/useGlobalSettings.js');
7
7
  require('tslib');
8
8
  require('react');
9
9
  require('../../../GlobalCtx-10114bdd.js');
10
+ require('../../LinkList/LinkList.js');
10
11
 
11
- const FeatureCard = ({ isvideo, eyebrow, title, theme, size = "narrow", date, link, linklist, image, }) => {
12
- const { prefix } = hooks_useGlobalSettings();
13
- const baseClass = `${prefix}--card`;
14
- const cardClasses = classNames(baseClass, `${baseClass}__type__feature`, {
15
- [`${baseClass}__action`]: link,
16
- [`${baseClass}__size__${size}`]: size,
17
- [`${baseClass}__isvideo`]: isvideo,
18
- [`${baseClass}__linklist`]: linklist,
19
- [`${baseClass}__theme__${theme}`]: theme,
20
- });
21
- return (jsxRuntime.jsxs("div", Object.assign({ className: cardClasses }, { children: [link && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--link`, href: link, title: title }, { children: jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--link--text` }, { children: title })) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--wrap` }, { children: [image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: title }) }) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), date && (jsxRuntime.jsx("time", Object.assign({ className: `${baseClass}--date`, dateTime: date.unix }, { children: date.human }))), linklist && (jsxRuntime.jsx(components_LinkList_LinkList, { headline: linklist.headline, linkgroup: linklist.linkgroup }))] }))] }))] })));
12
+ const FeatureCardArgs = {
13
+ isvideo: false,
14
+ title: "ILO welcomes G7 call to make a just transition to a green economy happen",
15
+ eyebrow: "High-level meeting",
16
+ theme: "light",
17
+ date: {
18
+ human: "18 March 2023",
19
+ unix: "1670389200",
20
+ },
21
+ image: "/hero.jpg",
22
+ link: "https:/www.ilo.org",
23
+ linklist: {
24
+ headline: "",
25
+ linkgroup: [
26
+ {
27
+ links: [
28
+ {
29
+ label: "Read the press release",
30
+ url: "http://www.google.com",
31
+ },
32
+ ],
33
+ },
34
+ ],
35
+ },
22
36
  };
23
37
 
24
- module.exports = FeatureCard;
38
+ exports.FeatureCard = components_Cards_FeatureCard_FeatureCard;
39
+ exports.FeatureCardArgs = FeatureCardArgs;
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var classNames = require('classnames');
5
+ var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
+ var components_LinkList_LinkList = require('../../LinkList/LinkList.js');
7
+ require('tslib');
8
+ require('react');
9
+ require('../../../GlobalCtx-10114bdd.js');
10
+
11
+ const MultilinkCard = ({ isvideo, eyebrow, title, size = "narrow", alignment, intro, link, linklist, image, }) => {
12
+ const { prefix } = hooks_useGlobalSettings();
13
+ const baseClass = `${prefix}--card`;
14
+ const cardClasses = classNames(baseClass, `${baseClass}__type__multilink`, {
15
+ [`${baseClass}__align__${alignment}`]: alignment,
16
+ [`${baseClass}__action`]: link,
17
+ [`${baseClass}__size__${size}`]: size,
18
+ [`${baseClass}__isvideo`]: isvideo,
19
+ [`${baseClass}__linklist`]: linklist,
20
+ });
21
+ return (jsxRuntime.jsxs("div", Object.assign({ className: cardClasses }, { children: [link && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--link`, href: link, title: title }, { children: jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--link--text` }, { children: title })) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--wrap` }, { children: [image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: title }) }) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: title }) }) }))), intro && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--intro` }, { children: intro })), linklist && (jsxRuntime.jsx(components_LinkList_LinkList, { headline: linklist.headline, linkgroup: linklist.linkgroup }))] }))] }))] })));
22
+ };
23
+
24
+ module.exports = MultilinkCard;
@@ -1,24 +1,43 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var classNames = require('classnames');
5
- var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
- var components_LinkList_LinkList = require('../../LinkList/LinkList.js');
3
+ var components_Cards_MultilinkCard_MultiLinkCard = require('./MultiLinkCard.js');
4
+ require('react/jsx-runtime');
5
+ require('classnames');
6
+ require('../../../hooks/useGlobalSettings.js');
7
7
  require('tslib');
8
8
  require('react');
9
9
  require('../../../GlobalCtx-10114bdd.js');
10
+ require('../../LinkList/LinkList.js');
10
11
 
11
- const MultilinkCard = ({ isvideo, eyebrow, title, size = "narrow", alignment, intro, link, linklist, image, }) => {
12
- const { prefix } = hooks_useGlobalSettings();
13
- const baseClass = `${prefix}--card`;
14
- const cardClasses = classNames(baseClass, `${baseClass}__type__multilink`, {
15
- [`${baseClass}__align__${alignment}`]: alignment,
16
- [`${baseClass}__action`]: link,
17
- [`${baseClass}__size__${size}`]: size,
18
- [`${baseClass}__isvideo`]: isvideo,
19
- [`${baseClass}__linklist`]: linklist,
20
- });
21
- return (jsxRuntime.jsxs("div", Object.assign({ className: cardClasses }, { children: [link && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--link`, href: link, title: title }, { children: jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--link--text` }, { children: title })) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--wrap` }, { children: [image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: title }) }) }))), jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), image && (jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--image--wrapper` }, { children: jsxRuntime.jsx("picture", { children: jsxRuntime.jsx("img", { className: `${baseClass}--picture`, src: image, alt: title }) }) }))), intro && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--intro` }, { children: intro })), linklist && (jsxRuntime.jsx(components_LinkList_LinkList, { headline: linklist.headline, linkgroup: linklist.linkgroup }))] }))] }))] })));
12
+ const MultilinkCardArgs = {
13
+ title: "ILO welcomes G7 call to make a just transition to a green economy happen",
14
+ eyebrow: "High-level meeting",
15
+ intro: "At the end of their meeting the G7 Labour Ministers highlighted the urgent need to greater focus on rights and occupational safety and health.",
16
+ image: "/hero.jpg",
17
+ alignment: "left",
18
+ link: "https:/www.ilo.org",
19
+ linklist: {
20
+ headline: "",
21
+ linkgroup: [
22
+ {
23
+ links: [
24
+ {
25
+ label: "Read the press release",
26
+ url: "https://www.ilo.org",
27
+ },
28
+ {
29
+ label: "See the statement",
30
+ url: "https://www.ilo.org",
31
+ },
32
+ {
33
+ label: "Remarks to G7 Openening Session",
34
+ url: "https://www.ilo.org",
35
+ },
36
+ ],
37
+ },
38
+ ],
39
+ },
22
40
  };
23
41
 
24
- module.exports = MultilinkCard;
42
+ exports.MultilinkCard = components_Cards_MultilinkCard_MultiLinkCard;
43
+ exports.MultilinkCardArgs = MultilinkCardArgs;
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var classNames = require('classnames');
5
+ var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
+ require('tslib');
7
+ require('react');
8
+ require('../../../GlobalCtx-10114bdd.js');
9
+
10
+ const PromoCard = ({ eyebrow, title, theme, size = "narrow", cornercut, intro, link, cta, }) => {
11
+ const { prefix } = hooks_useGlobalSettings();
12
+ const baseClass = `${prefix}--card`;
13
+ const wrapperClass = classNames(`${baseClass}--wrapper`, `${baseClass}--wrapper__type__promo ${baseClass}--wrapper__type__promo__size__${size}`);
14
+ const cardClasses = classNames(baseClass, `${baseClass}__type__promo`, {
15
+ [`${baseClass}__cornercut`]: cornercut,
16
+ [`${baseClass}__action`]: link,
17
+ [`${baseClass}__size__${size}`]: size,
18
+ [`${baseClass}__theme__${theme}`]: theme,
19
+ });
20
+ return (jsxRuntime.jsx("div", Object.assign({ className: wrapperClass }, { children: jsxRuntime.jsxs("div", Object.assign({ className: cardClasses }, { children: [link && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--link`, href: link, title: title }, { children: jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--link--text` }, { children: title })) }))), jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--wrap` }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), intro && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--intro` }, { children: intro })), cta && cta.label && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--cta ${prefix}--button ${prefix}--button--medium ${prefix}--button--primary`, href: cta.url }, { children: jsxRuntime.jsx("span", Object.assign({ className: "link__label" }, { children: cta.label })) })))] })) }))] })) })));
21
+ };
22
+
23
+ module.exports = PromoCard;
@@ -1,23 +1,26 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var classNames = require('classnames');
5
- var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
3
+ var components_Cards_PromoCard_PromoCard = require('./PromoCard.js');
4
+ require('react/jsx-runtime');
5
+ require('classnames');
6
+ require('../../../hooks/useGlobalSettings.js');
6
7
  require('tslib');
7
8
  require('react');
8
9
  require('../../../GlobalCtx-10114bdd.js');
9
10
 
10
- const PromoCard = ({ eyebrow, title, theme, size = "narrow", cornercut, intro, link, cta, }) => {
11
- const { prefix } = hooks_useGlobalSettings();
12
- const baseClass = `${prefix}--card`;
13
- const wrapperClass = classNames(`${baseClass}--wrapper`, `${baseClass}--wrapper__type__promo ${baseClass}--wrapper__type__promo__size__${size}`);
14
- const cardClasses = classNames(baseClass, `${baseClass}__type__promo`, {
15
- [`${baseClass}__cornercut`]: cornercut,
16
- [`${baseClass}__action`]: link,
17
- [`${baseClass}__size__${size}`]: size,
18
- [`${baseClass}__theme__${theme}`]: theme,
19
- });
20
- return (jsxRuntime.jsx("div", Object.assign({ className: wrapperClass }, { children: jsxRuntime.jsxs("div", Object.assign({ className: cardClasses }, { children: [link && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--link`, href: link, title: title }, { children: jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--link--text` }, { children: title })) }))), jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--wrap` }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), intro && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--intro` }, { children: intro })), cta && cta.label && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--cta ${prefix}--button ${prefix}--button--medium ${prefix}--button--primary`, href: cta.url }, { children: jsxRuntime.jsx("span", Object.assign({ className: "link__label" }, { children: cta.label })) })))] })) }))] })) })));
11
+ const PromoCardArgs = {
12
+ size: "standard",
13
+ title: "ILO welcomes G7 call to make a just transition to a green economy happen",
14
+ eyebrow: "High-level meeting",
15
+ theme: "dark",
16
+ cornercut: true,
17
+ intro: "At the end of their meeting the G7 Labour Ministers highlighted the urgent need to greater focus on rights and occupational safety and health.",
18
+ link: "https:/www.ilo.org",
19
+ cta: {
20
+ label: "Read the press release",
21
+ url: "https://www.ilo.org",
22
+ },
21
23
  };
22
24
 
23
- module.exports = PromoCard;
25
+ exports.PromoCard = components_Cards_PromoCard_PromoCard;
26
+ exports.PromoCardArgs = PromoCardArgs;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var classNames = require('classnames');
5
+ var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
+ var components_Link_Link = require('../../Link/Link.js');
7
+ require('tslib');
8
+ require('react');
9
+ require('../../../GlobalCtx-10114bdd.js');
10
+
11
+ const StatCard = ({ title, color, size = "standard", intro, source, }) => {
12
+ const { prefix } = hooks_useGlobalSettings();
13
+ const baseClass = `${prefix}--card`;
14
+ const cardClasses = classNames(baseClass, `${baseClass}__type__stat`, {
15
+ [`${baseClass}__color__${color}`]: color,
16
+ [`${baseClass}__size__${size}`]: size,
17
+ });
18
+ return (jsxRuntime.jsx("div", Object.assign({ className: cardClasses }, { children: jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--wrap` }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), intro && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--intro` }, { children: intro })), source && jsxRuntime.jsx(components_Link_Link, Object.assign({ url: source.url }, { children: source.label }))] })) })) })));
19
+ };
20
+
21
+ module.exports = StatCard;
@@ -1,21 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
4
- var classNames = require('classnames');
5
- var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
- var components_Link_Link = require('../../Link/Link.js');
3
+ var components_Cards_StatCard_StatCard = require('./StatCard.js');
4
+ require('react/jsx-runtime');
5
+ require('classnames');
6
+ require('../../../hooks/useGlobalSettings.js');
7
7
  require('tslib');
8
8
  require('react');
9
9
  require('../../../GlobalCtx-10114bdd.js');
10
+ require('../../Link/Link.js');
10
11
 
11
- const StatCard = ({ title, color, size = "standard", intro, source, }) => {
12
- const { prefix } = hooks_useGlobalSettings();
13
- const baseClass = `${prefix}--card`;
14
- const cardClasses = classNames(baseClass, `${baseClass}__type__stat`, {
15
- [`${baseClass}__color__${color}`]: color,
16
- [`${baseClass}__size__${size}`]: size,
17
- });
18
- return (jsxRuntime.jsx("div", Object.assign({ className: cardClasses }, { children: jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--wrap` }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), intro && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--intro` }, { children: intro })), source && jsxRuntime.jsx(components_Link_Link, Object.assign({ url: source.url }, { children: source.label }))] })) })) })));
12
+ const StatCardArgs = {
13
+ title: "Global employment growth down by half in 2023",
14
+ intro: "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.",
15
+ color: "turquoise",
16
+ source: {
17
+ label: "World Employment and Social Outlook: Trends 2023",
18
+ url: "https://www.ilo.org",
19
+ },
19
20
  };
20
21
 
21
- module.exports = StatCard;
22
+ exports.StatCard = components_Cards_StatCard_StatCard;
23
+ exports.StatCardArgs = StatCardArgs;
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var classNames = require('classnames');
5
+ var hooks_useGlobalSettings = require('../../../hooks/useGlobalSettings.js');
6
+ var components_Profile_Profile = require('../../Profile/Profile.js');
7
+ require('tslib');
8
+ require('react');
9
+ require('../../../GlobalCtx-10114bdd.js');
10
+
11
+ const TextCard = ({ eyebrow, title, theme, size, date, profile, link, }) => {
12
+ const { prefix } = hooks_useGlobalSettings();
13
+ const baseClass = `${prefix}--card`;
14
+ const wrapperClass = classNames(`${baseClass}--wrapper`);
15
+ const cardClasses = classNames(baseClass, `${baseClass}__type__text`, {
16
+ [`${baseClass}__action`]: link,
17
+ [`${baseClass}__size__${size}`]: size,
18
+ [`${baseClass}__theme__${theme}`]: theme,
19
+ });
20
+ return (jsxRuntime.jsx("div", Object.assign({ className: wrapperClass }, { children: jsxRuntime.jsxs("div", Object.assign({ className: cardClasses }, { children: [link && (jsxRuntime.jsx("a", Object.assign({ className: `${baseClass}--link`, href: link, title: title }, { children: jsxRuntime.jsx("span", Object.assign({ className: `${baseClass}--link--text` }, { children: title })) }))), jsxRuntime.jsx("div", Object.assign({ className: `${baseClass}--wrap` }, { children: jsxRuntime.jsxs("div", Object.assign({ className: `${baseClass}--content` }, { children: [eyebrow && jsxRuntime.jsx("p", Object.assign({ className: `${baseClass}--eyebrow` }, { children: eyebrow })), title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}--title` }, { children: title })), date && (jsxRuntime.jsx("time", Object.assign({ className: `${baseClass}--date`, dateTime: date.unix }, { children: date.human }))), profile && profile.avatar && (jsxRuntime.jsx(components_Profile_Profile, { avatar: profile.avatar, description: profile.description, link: profile.link, name: profile.name, role: profile.role, className: `${prefix}--profile--contents--${theme}` }))] })) }))] })) })));
21
+ };
22
+
23
+ module.exports = TextCard;