@ilo-org/react 0.12.0 → 0.14.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/.storybook/main.ts +41 -0
- package/.storybook/manager-head.html +92 -0
- package/.storybook/manager.ts +6 -0
- package/.storybook/preview-head.html +5 -0
- package/.storybook/preview.tsx +81 -0
- package/.storybook/styles.scss +25 -0
- package/.storybook/theme.ts +46 -0
- package/.turbo/turbo-build:lib.log +15 -0
- package/CHANGELOG.md +43 -0
- package/lib/cjs/components/Cards/CardGroup/CardGroup.js +41 -0
- package/lib/cjs/components/Cards/CardGroup/index.js +796 -0
- package/lib/cjs/components/Cards/DataCard/DataCard.js +27 -0
- package/lib/cjs/components/Cards/DataCard/index.js +73 -19
- package/lib/cjs/components/Cards/DetailCard/DetailCard.js +20 -0
- package/lib/cjs/components/Cards/DetailCard/index.js +17 -12
- package/lib/cjs/components/Cards/FactlistCard/FactListCard.js +22 -0
- package/lib/cjs/components/Cards/FactlistCard/index.js +16 -15
- package/lib/cjs/components/Cards/FeatureCard/FeatureCard.js +24 -0
- package/lib/cjs/components/Cards/FeatureCard/index.js +31 -16
- package/lib/cjs/components/Cards/MultilinkCard/MultiLinkCard.js +24 -0
- package/lib/cjs/components/Cards/MultilinkCard/index.js +35 -16
- package/lib/cjs/components/Cards/PromoCard/PromoCard.js +23 -0
- package/lib/cjs/components/Cards/PromoCard/index.js +18 -15
- package/lib/cjs/components/Cards/StatCard/StatCard.js +21 -0
- package/lib/cjs/components/Cards/StatCard/index.js +15 -13
- package/lib/cjs/components/Cards/TextCard/TextCard.js +23 -0
- package/lib/cjs/components/Cards/TextCard/index.js +22 -17
- package/lib/cjs/components/Footer/Footer.js +1 -1
- package/lib/cjs/components/List/List.js +9 -11
- package/lib/cjs/components/List/ListItem.js +4 -7
- package/lib/cjs/components/List/index.js +1 -2
- package/lib/cjs/components/Navigation/Navigation.js +3 -3
- package/lib/cjs/components/Pagination/Pagination.js +1 -1
- package/lib/cjs/components/index.js +10 -13
- package/lib/cjs/index.js +10 -13
- package/lib/esm/components/Cards/CardGroup/CardGroup.js +39 -0
- package/lib/esm/components/Cards/CardGroup/index.js +793 -0
- package/lib/esm/components/Cards/DataCard/DataCard.js +25 -0
- package/lib/esm/components/Cards/DataCard/index.js +72 -19
- package/lib/esm/components/Cards/DetailCard/DetailCard.js +18 -0
- package/lib/esm/components/Cards/DetailCard/index.js +16 -12
- package/lib/esm/components/Cards/FactlistCard/FactListCard.js +20 -0
- package/lib/esm/components/Cards/FactlistCard/index.js +15 -15
- package/lib/esm/components/Cards/FeatureCard/FeatureCard.js +22 -0
- package/lib/esm/components/Cards/FeatureCard/index.js +30 -16
- package/lib/esm/components/Cards/MultilinkCard/MultiLinkCard.js +22 -0
- package/lib/esm/components/Cards/MultilinkCard/index.js +34 -16
- package/lib/esm/components/Cards/PromoCard/PromoCard.js +21 -0
- package/lib/esm/components/Cards/PromoCard/index.js +17 -15
- package/lib/esm/components/Cards/StatCard/StatCard.js +19 -0
- package/lib/esm/components/Cards/StatCard/index.js +14 -13
- package/lib/esm/components/Cards/TextCard/TextCard.js +21 -0
- package/lib/esm/components/Cards/TextCard/index.js +21 -17
- package/lib/esm/components/Footer/Footer.js +1 -1
- package/lib/esm/components/List/List.js +10 -12
- package/lib/esm/components/List/ListItem.js +4 -7
- package/lib/esm/components/List/index.js +1 -2
- package/lib/esm/components/Navigation/Navigation.js +3 -3
- package/lib/esm/components/Pagination/Pagination.js +1 -1
- package/lib/esm/components/index.js +9 -11
- package/lib/esm/index.js +9 -11
- package/lib/types/react/src/components/Cards/CardGroup/CardGroup.args.d.ts +13 -0
- package/lib/types/react/src/components/Cards/CardGroup/CardGroup.props.d.ts +58 -0
- package/lib/types/react/src/components/Cards/CardGroup/index.d.ts +3 -0
- package/lib/types/react/src/components/Cards/DataCard/DataCard.args.d.ts +2 -0
- package/lib/types/react/src/components/Cards/DataCard/DataCard.d.ts +4 -0
- package/lib/types/react/src/components/Cards/DataCard/DataCard.props.d.ts +50 -0
- package/lib/types/react/src/components/Cards/DataCard/index.d.ts +3 -4
- package/lib/types/react/src/components/Cards/DetailCard/DetailCard.args.d.ts +3 -0
- package/lib/types/react/src/components/Cards/DetailCard/DetailCard.d.ts +4 -0
- package/lib/types/react/src/components/Cards/DetailCard/DetailCard.props.d.ts +35 -0
- package/lib/types/react/src/components/Cards/DetailCard/index.d.ts +3 -4
- package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.args.d.ts +3 -0
- package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.d.ts +4 -0
- package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.props.d.ts +16 -0
- package/lib/types/react/src/components/Cards/FactlistCard/index.d.ts +3 -4
- package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.args.d.ts +3 -0
- package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.d.ts +4 -0
- package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.props.d.ts +31 -0
- package/lib/types/react/src/components/Cards/FeatureCard/index.d.ts +3 -4
- package/lib/types/react/src/components/Cards/MultilinkCard/MultiLinkCard.d.ts +4 -0
- package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.args.d.ts +2 -0
- package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +25 -0
- package/lib/types/react/src/components/Cards/MultilinkCard/index.d.ts +3 -4
- package/lib/types/react/src/components/Cards/PromoCard/PromoCard.args.d.ts +3 -0
- package/lib/types/react/src/components/Cards/PromoCard/PromoCard.d.ts +4 -0
- package/lib/types/react/src/components/Cards/PromoCard/PromoCard.props.d.ts +30 -0
- package/lib/types/react/src/components/Cards/PromoCard/index.d.ts +3 -4
- package/lib/types/react/src/components/Cards/StatCard/StatCard.args.d.ts +3 -0
- package/lib/types/react/src/components/Cards/StatCard/StatCard.d.ts +4 -0
- package/lib/types/react/src/components/Cards/StatCard/StatCard.props.d.ts +18 -0
- package/lib/types/react/src/components/Cards/StatCard/index.d.ts +3 -4
- package/lib/types/react/src/components/Cards/TextCard/TextCard.args.d.ts +3 -0
- package/lib/types/react/src/components/Cards/TextCard/TextCard.d.ts +4 -0
- package/lib/types/react/src/components/Cards/TextCard/TextCard.props.d.ts +26 -0
- package/lib/types/react/src/components/Cards/TextCard/index.d.ts +3 -4
- package/lib/types/react/src/components/List/List.props.d.ts +2 -9
- package/lib/types/react/src/components/List/ListItem.props.d.ts +0 -6
- package/lib/types/react/src/components/index.d.ts +1 -1
- package/lib/types/react/src/types/index.d.ts +4 -2
- package/package.json +32 -12
- package/public/react.svg +8 -0
- package/rollup.config.mjs +2 -0
- package/src/__tests__/Accordion.test.tsx +16 -0
- package/src/__tests__/Button.test.tsx +60 -0
- package/src/__tests__/Callout.test.tsx +43 -0
- package/src/__tests__/ContextMenu.test.tsx +19 -0
- package/src/__tests__/Dropdown.test.tsx +38 -0
- package/src/__tests__/Heading.test.tsx +51 -0
- package/src/__tests__/Image.test.tsx +21 -0
- package/src/__tests__/LinkList.test.tsx +17 -0
- package/src/__tests__/List.test.tsx +25 -0
- package/src/__tests__/Loading.test.tsx +33 -0
- package/src/__tests__/Notification.test.tsx +39 -0
- package/src/__tests__/Pagination.test.tsx +58 -0
- package/src/__tests__/Profile.test.tsx +48 -0
- package/src/__tests__/ReadMore.test.tsx +43 -0
- package/src/__tests__/RichText.test.tsx +16 -0
- package/src/__tests__/SearchField.test.tsx +35 -0
- package/src/__tests__/TableOfContents.test.tsx +12 -0
- package/src/__tests__/Tag.test.tsx +10 -0
- package/src/components/Cards/{CardGroup.args.ts → CardGroup/CardGroup.args.ts} +299 -437
- package/src/components/Cards/CardGroup/CardGroup.props.ts +78 -0
- package/src/components/Cards/CardGroup/CardGroup.tsx +54 -0
- package/src/components/Cards/CardGroup/index.tsx +3 -0
- package/src/components/Cards/DataCard/DataCard.args.ts +69 -0
- package/src/components/Cards/DataCard/DataCard.props.ts +60 -0
- package/src/components/Cards/DataCard/DataCard.tsx +107 -0
- package/src/components/Cards/DataCard/index.tsx +3 -107
- package/src/components/Cards/DetailCard/DetailCard.args.ts +17 -0
- package/src/components/Cards/DetailCard/DetailCard.props.ts +43 -0
- package/src/components/Cards/DetailCard/DetailCard.tsx +62 -0
- package/src/components/Cards/DetailCard/index.tsx +3 -62
- package/src/components/Cards/FactlistCard/FactListCard.args.ts +14 -0
- package/src/components/Cards/FactlistCard/FactListCard.props.ts +19 -0
- package/src/components/Cards/FactlistCard/FactListCard.tsx +42 -0
- package/src/components/Cards/FactlistCard/index.tsx +3 -42
- package/src/components/Cards/FeatureCard/FeatureCard.args.ts +30 -0
- package/src/components/Cards/FeatureCard/FeatureCard.props.ts +38 -0
- package/src/components/Cards/FeatureCard/FeatureCard.tsx +69 -0
- package/src/components/Cards/FeatureCard/index.tsx +3 -69
- package/src/components/Cards/MultilinkCard/MultiLinkCard.tsx +76 -0
- package/src/components/Cards/MultilinkCard/MultilinkCard.args.ts +33 -0
- package/src/components/Cards/MultilinkCard/MultilinkCard.props.ts +30 -0
- package/src/components/Cards/MultilinkCard/index.tsx +3 -76
- package/src/components/Cards/PromoCard/PromoCard.args.ts +19 -0
- package/src/components/Cards/PromoCard/PromoCard.props.ts +36 -0
- package/src/components/Cards/PromoCard/PromoCard.tsx +60 -0
- package/src/components/Cards/PromoCard/index.tsx +3 -60
- package/src/components/Cards/StatCard/StatCard.args.ts +14 -0
- package/src/components/Cards/StatCard/StatCard.props.ts +21 -0
- package/src/components/Cards/StatCard/StatCard.tsx +36 -0
- package/src/components/Cards/StatCard/index.tsx +3 -36
- package/src/components/Cards/TextCard/TextCard.args.ts +21 -0
- package/src/components/Cards/TextCard/TextCard.props.ts +32 -0
- package/src/components/Cards/TextCard/TextCard.tsx +62 -0
- package/src/components/Cards/TextCard/index.tsx +3 -63
- package/src/components/Footer/Footer.args.ts +4 -16
- package/src/components/Footer/Footer.tsx +41 -37
- package/src/components/List/List.props.ts +2 -10
- package/src/components/List/List.tsx +17 -22
- package/src/components/List/ListItem.props.ts +0 -7
- package/src/components/List/ListItem.tsx +6 -11
- package/src/components/Navigation/Navigation.tsx +5 -5
- package/src/components/Pagination/Pagination.tsx +2 -1
- package/src/components/index.ts +1 -1
- package/src/setup.ts +6 -0
- package/src/stories/Accordion/Accordion.stories.tsx +145 -0
- package/src/stories/Breadcrumb/Breadcrumb.mdx +17 -0
- package/src/stories/Breadcrumb/Breadcrumb.stories.tsx +20 -0
- package/src/stories/Button/Button.mdx +94 -0
- package/src/stories/Button/Button.stories.tsx +68 -0
- package/src/stories/Callout/Callout.mdx +35 -0
- package/src/stories/Callout/Callout.stories.tsx +43 -0
- package/src/stories/Card/DataCard.stories.tsx +45 -0
- package/src/stories/Card/DetailCard.stories.tsx +41 -0
- package/src/stories/Card/FactlistCard.stories.tsx +48 -0
- package/src/stories/Card/FeatureCard.stories.tsx +56 -0
- package/src/stories/Card/MultilinkCard.stories.tsx +48 -0
- package/src/stories/Card/PromoCard.stories.tsx +48 -0
- package/src/stories/Card/StatCard.stories.tsx +45 -0
- package/src/stories/Card/TextCard.stories.tsx +45 -0
- package/src/stories/CardGroup/CardGroup.mdx +17 -0
- package/src/stories/CardGroup/CardGroup.stories.tsx +50 -0
- package/src/stories/Checkbox/Checkbox.stories.tsx +118 -0
- package/src/stories/ContextMenu/ContextMenu.stories.tsx +83 -0
- package/src/stories/DatePicker/DatePicker.stories.tsx +110 -0
- package/src/stories/Dropdown/Dropdown.stories.tsx +145 -0
- package/src/stories/Empty/Empty.stories.tsx +53 -0
- package/src/stories/Fieldset/Fieldset.stories.tsx +167 -0
- package/src/stories/FileUpload/FileUpload.stories.tsx +103 -0
- package/src/stories/Footer/Footer.mdx +17 -0
- package/src/stories/Footer/Footer.stories.tsx +15 -0
- package/src/stories/Form/Form.mdx +58 -0
- package/src/stories/Form/Form.stories.tsx +162 -0
- package/src/stories/GetStarted.mdx +57 -0
- package/src/stories/Heading/Heading.stories.tsx +193 -0
- package/src/stories/Hero/Hero.stories.tsx +68 -0
- package/src/stories/Image/Image.stories.tsx +50 -0
- package/src/stories/Link/Link.stories.tsx +81 -0
- package/src/stories/LinkList/LinkList.args.ts +190 -0
- package/src/stories/LinkList/LinkList.stories.tsx +60 -0
- package/src/stories/List/List.stories.tsx +167 -0
- package/src/stories/Loading/Loading.stories.tsx +97 -0
- package/src/stories/LocalNav/LocalNav.mdx +17 -0
- package/src/stories/LocalNav/LocalNav.stories.tsx +15 -0
- package/src/stories/Logo/Logo.stories.tsx +172 -0
- package/src/stories/LogoGrid/LogoGrid.stories.tsx +59 -0
- package/src/stories/Navigation/Navigation.mdx +17 -0
- package/src/stories/Navigation/Navigation.stories.tsx +15 -0
- package/src/stories/Notification/Notification.stories.tsx +187 -0
- package/src/stories/NumberPicker/NumberPicker.stories.tsx +69 -0
- package/src/stories/Pagination/Pagination.stories.tsx +86 -0
- package/src/stories/Profile/Profile.stories.tsx +64 -0
- package/src/stories/Radio/Radio.stories.tsx +232 -0
- package/src/stories/ReadMore/ReadMore.stories.tsx +59 -0
- package/src/stories/RichText/RichText.stories.tsx +63 -0
- package/src/stories/SearchField/SearchField.stories.tsx +91 -0
- package/src/stories/SocialMedia/SocialMedia.stories.tsx +60 -0
- package/src/stories/TableOfContents/TableOfContents.stories.tsx +55 -0
- package/src/stories/Tabs/Tabs.mdx +17 -0
- package/src/stories/Tabs/Tabs.stories.tsx +25 -0
- package/src/stories/Tag/Tag.stories.tsx +130 -0
- package/src/stories/TextInput/TextInput.stories.tsx +100 -0
- package/src/stories/Textarea/Textarea.stories.tsx +147 -0
- package/src/stories/Toggle/Toggle.stories.tsx +99 -0
- package/src/stories/Tooltip/Tooltip.stories.tsx +82 -0
- package/src/stories/Video/Video.stories.tsx +71 -0
- package/src/stories/Welcome.stories.mdx +37 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/stories/welcome.scss +133 -0
- package/src/types/index.ts +6 -2
- package/lib/cjs/ListCtx-14aa546f.js +0 -9
- package/lib/cjs/components/Cards/Card.js +0 -40
- package/lib/cjs/components/Cards/CardGroup.js +0 -33
- package/lib/cjs/components/Cards/index.js +0 -37
- package/lib/esm/ListCtx-da435fdf.js +0 -6
- package/lib/esm/components/Cards/Card.js +0 -38
- package/lib/esm/components/Cards/CardGroup.js +0 -31
- package/lib/esm/components/Cards/index.js +0 -22
- package/lib/types/react/src/components/Cards/Card.d.ts +0 -4
- package/lib/types/react/src/components/Cards/Card.props.d.ts +0 -307
- package/lib/types/react/src/components/Cards/CardGroup.props.d.ts +0 -16
- package/lib/types/react/src/components/Cards/index.d.ts +0 -11
- package/lib/types/react/src/components/List/ListCtx.d.ts +0 -4
- package/src/components/Cards/Card.args.ts +0 -220
- package/src/components/Cards/Card.props.ts +0 -382
- package/src/components/Cards/Card.tsx +0 -36
- package/src/components/Cards/CardGroup.props.ts +0 -19
- package/src/components/Cards/CardGroup.tsx +0 -54
- package/src/components/Cards/index.ts +0 -22
- package/src/components/List/ListCtx.ts +0 -7
- /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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
24
|
+
exports.DetailCard = components_Cards_DetailCard_DetailCard;
|
|
25
|
+
exports.DetailCardArgs = DetailCardArgs;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
|
|
12
|
+
const FactlistCard = ({ title, theme = "narrow", size, list, }) => {
|
|
13
|
+
const { prefix } = hooks_useGlobalSettings();
|
|
14
|
+
const baseClass = `${prefix}--card`;
|
|
15
|
+
const cardClasses = classNames(baseClass, `${baseClass}__type__factlist`, {
|
|
16
|
+
[`${baseClass}__size__${size}`]: size,
|
|
17
|
+
[`${baseClass}__theme__${theme}`]: theme,
|
|
18
|
+
});
|
|
19
|
+
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 }) })))) })))] })) })) })));
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
module.exports = FactlistCard;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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');
|
|
11
|
-
require('
|
|
10
|
+
require('../../List/List.js');
|
|
11
|
+
require('../../List/ListItem.js');
|
|
12
12
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
const FactlistCardArgs = {
|
|
14
|
+
title: "Economic slowdown likely to force workers to accept lower quality jobs",
|
|
15
|
+
theme: "light",
|
|
16
|
+
list: [
|
|
17
|
+
"Global employment growth will be only 1.0 per cent in 2023, less than half the level in 2022.",
|
|
18
|
+
"The labour market deterioration is mainly due to emerging geopolitical tensions and the Ukraine conflict.",
|
|
19
|
+
"The current slowdown means that many workers will have to accept lower quality jobs, often at very low pay.",
|
|
20
|
+
],
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
exports.FactlistCard = components_Cards_FactlistCard_FactListCard;
|
|
24
|
+
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
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__theme__${theme}` }))] })) }))] })) })));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
module.exports = TextCard;
|