@ilo-org/twig 0.2.12 → 0.2.14
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/.eslintrc.js +37 -49
- package/.stylelintrc +2 -6
- package/.turbo/turbo-build:lib.log +4 -3
- package/CHANGELOG.md +19 -0
- package/apps/storybook/assets.js +5 -0
- package/apps/storybook/config/prefix.yml +1 -0
- package/apps/storybook/main.js +18 -8
- package/apps/storybook/manager-head.html +63 -1
- package/apps/storybook/manager.js +2 -2
- package/apps/storybook/patterns/colors.stories.mdx +9 -4
- package/apps/storybook/patterns/intro.stories.mdx +47 -42
- package/apps/storybook/patterns/typeset.stories.mdx +10 -6
- package/apps/storybook/patterns/welcome.stories.mdx +21 -37
- package/apps/storybook/preview-body.html +1 -1
- package/apps/storybook/preview.js +16 -16
- package/apps/storybook/styles.scss +25 -1
- package/apps/storybook/theme.js +41 -6
- package/babel.config.js +3 -3
- package/images/hero.jpg +0 -0
- package/images/ilo-dg.jpg +0 -0
- package/images/ilo-headquarters.jpg +0 -0
- package/images/large.jpg +0 -0
- package/images/media-file-poster.jpg +0 -0
- package/images/medium.jpg +0 -0
- package/images/small.jpg +0 -0
- package/images/video-example.mp4 +0 -0
- package/images/youtube-video-poster.avif +0 -0
- package/importprefix.js +5 -5
- package/importsvgs.js +3 -3
- package/jest.config.js +8 -8
- package/outputtwigs.js +16 -13
- package/package.json +47 -56
- package/postcss.config.js +2 -2
- package/src/namespaces.js +5 -5
- package/src/patterns/components/accordion/accordion-item.wingsuit.yml +1 -1
- package/src/patterns/components/accordion/accordion.behavior.js +2 -2
- package/src/patterns/components/accordion/accordion.js +31 -21
- package/src/patterns/components/accordion/accordion.stories.jsx +4 -2
- package/src/patterns/components/accordion/accordion.wingsuit.yml +4 -3
- package/src/patterns/components/accordion/index.js +3 -3
- package/src/patterns/components/breadcrumb/breadcrumb.behavior.js +2 -2
- package/src/patterns/components/breadcrumb/breadcrumb.js +14 -12
- package/src/patterns/components/breadcrumb/breadcrumb.stories.jsx +4 -2
- package/src/patterns/components/breadcrumb/breadcrumb.wingsuit.yml +1 -1
- package/src/patterns/components/breadcrumb/index.js +3 -3
- package/src/patterns/components/button/button.stories.jsx +4 -2
- package/src/patterns/components/button/button.wingsuit.yml +12 -12
- package/src/patterns/components/button/index.js +2 -2
- package/src/patterns/components/callout/callout.behavior.js +2 -2
- package/src/patterns/components/callout/callout.js +18 -13
- package/src/patterns/components/callout/callout.stories.jsx +4 -2
- package/src/patterns/components/callout/callout.wingsuit.yml +2 -2
- package/src/patterns/components/callout/index.js +3 -3
- package/src/patterns/components/card/card.stories.jsx +4 -2
- package/src/patterns/components/card/card.wingsuit.yml +73 -65
- package/src/patterns/components/card/index.js +2 -2
- package/src/patterns/components/cardgroup/cardgroup.stories.jsx +4 -2
- package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +61 -61
- package/src/patterns/components/cardgroup/index.js +2 -2
- package/src/patterns/components/contextmenu/contextmenu.stories.jsx +4 -2
- package/src/patterns/components/contextmenu/contextmenu.wingsuit.yml +7 -7
- package/src/patterns/components/contextmenu/index.js +2 -2
- package/src/patterns/components/dropdown/dropdown.stories.jsx +4 -2
- package/src/patterns/components/dropdown/dropdown.wingsuit.yml +4 -4
- package/src/patterns/components/dropdown/index.js +2 -2
- package/src/patterns/components/footer/footer.stories.jsx +4 -2
- package/src/patterns/components/footer/footer.wingsuit.yml +1 -1
- package/src/patterns/components/footer/index.js +2 -2
- package/src/patterns/components/form/fileupload.behavior.js +2 -2
- package/src/patterns/components/form/fileupload.js +6 -5
- package/src/patterns/components/form/form.stories.jsx +4 -2
- package/src/patterns/components/form/form.wingsuit.yml +92 -92
- package/src/patterns/components/form/index.js +3 -3
- package/src/patterns/components/hero/hero.stories.jsx +4 -2
- package/src/patterns/components/hero/hero.wingsuit.yml +8 -8
- package/src/patterns/components/hero/index.js +2 -2
- package/src/patterns/components/herocard/herocard.stories.jsx +4 -2
- package/src/patterns/components/herocard/herocard.wingsuit.yml +5 -5
- package/src/patterns/components/herocard/index.js +2 -2
- package/src/patterns/components/icon/index.js +2 -2
- package/src/patterns/components/image/image.stories.jsx +4 -2
- package/src/patterns/components/image/image.wingsuit.yml +9 -9
- package/src/patterns/components/image/index.js +2 -2
- package/src/patterns/components/link/index.js +2 -2
- package/src/patterns/components/link/link.stories.jsx +4 -2
- package/src/patterns/components/link/link.wingsuit.yml +3 -3
- package/src/patterns/components/linklist/index.js +2 -2
- package/src/patterns/components/linklist/linklist.stories.jsx +4 -2
- package/src/patterns/components/linklist/linklist.wingsuit.yml +15 -15
- package/src/patterns/components/list/index.js +2 -2
- package/src/patterns/components/list/list-item.wingsuit.yml +1 -1
- package/src/patterns/components/list/list.stories.jsx +4 -2
- package/src/patterns/components/list/list.wingsuit.yml +4 -4
- package/src/patterns/components/loading/index.js +3 -3
- package/src/patterns/components/loading/loading.behavior.js +2 -2
- package/src/patterns/components/loading/loading.js +2 -2
- package/src/patterns/components/loading/loading.stories.jsx +4 -2
- package/src/patterns/components/loading/loading.wingsuit.yml +5 -5
- package/src/patterns/components/localnav/index.js +3 -3
- package/src/patterns/components/localnav/localnav.stories.jsx +4 -2
- package/src/patterns/components/localnav/localnav.twig +3 -1
- package/src/patterns/components/localnav/localnav.wingsuit.yml +17 -19
- package/src/patterns/components/modal/index.js +3 -3
- package/src/patterns/components/modal/modal.behavior.js +2 -2
- package/src/patterns/components/modal/modal.js +9 -7
- package/src/patterns/components/modal/modal.stories.jsx +5 -2
- package/src/patterns/components/modal/modal.wingsuit.yml +20 -20
- package/src/patterns/components/navigation/index.js +3 -3
- package/src/patterns/components/navigation/navigation.behavior.js +2 -2
- package/src/patterns/components/navigation/navigation.js +110 -37
- package/src/patterns/components/navigation/navigation.stories.jsx +5 -2
- package/src/patterns/components/navigation/navigation.wingsuit.yml +21 -21
- package/src/patterns/components/notification/index.js +3 -3
- package/src/patterns/components/notification/notification.behavior.js +3 -3
- package/src/patterns/components/notification/notification.js +4 -2
- package/src/patterns/components/notification/notification.stories.jsx +5 -2
- package/src/patterns/components/notification/notification.wingsuit.yml +7 -7
- package/src/patterns/components/pagination/Pagination.stories.jsx +4 -2
- package/src/patterns/components/pagination/index.js +2 -2
- package/src/patterns/components/pagination/pagination.wingsuit.yml +12 -12
- package/src/patterns/components/polyfill/index.js +2 -2
- package/src/patterns/components/profile/index.js +2 -2
- package/src/patterns/components/profile/profile.stories.jsx +5 -2
- package/src/patterns/components/profile/profile.wingsuit.yml +7 -7
- package/src/patterns/components/readmore/index.js +3 -3
- package/src/patterns/components/readmore/readmore.behavior.js +2 -2
- package/src/patterns/components/readmore/readmore.js +4 -2
- package/src/patterns/components/readmore/readmore.stories.jsx +5 -2
- package/src/patterns/components/readmore/readmore.wingsuit.yml +4 -4
- package/src/patterns/components/richtext/index.js +2 -2
- package/src/patterns/components/richtext/richtext.stories.jsx +5 -2
- package/src/patterns/components/richtext/richtext.wingsuit.yml +2 -2
- package/src/patterns/components/searchfield/index.js +2 -2
- package/src/patterns/components/searchfield/searchfield.stories.jsx +5 -2
- package/src/patterns/components/searchfield/searchfield.wingsuit.yml +1 -1
- package/src/patterns/components/table/index.js +3 -3
- package/src/patterns/components/table/table.behavior.js +2 -2
- package/src/patterns/components/table/table.js +66 -44
- package/src/patterns/components/table/table.stories.jsx +5 -2
- package/src/patterns/components/table/table.wingsuit.yml +11 -21
- package/src/patterns/components/tableofcontents/index.js +3 -3
- package/src/patterns/components/tableofcontents/tableofcontents.behavior.js +2 -2
- package/src/patterns/components/tableofcontents/tableofcontents.js +27 -19
- package/src/patterns/components/tableofcontents/tableofcontents.stories.jsx +5 -2
- package/src/patterns/components/tableofcontents/tableofcontents.wingsuit.yml +14 -14
- package/src/patterns/components/tabs/index.js +3 -3
- package/src/patterns/components/tabs/tabs.behavior.js +4 -4
- package/src/patterns/components/tabs/tabs.js +12 -8
- package/src/patterns/components/tabs/tabs.stories.jsx +5 -2
- package/src/patterns/components/tabs/tabs.wingsuit.yml +121 -121
- package/src/patterns/components/tags/index.js +3 -3
- package/src/patterns/components/tags/tag.behavior.js +2 -2
- package/src/patterns/components/tags/tag.js +12 -12
- package/src/patterns/components/tags/tag.stories.jsx +5 -2
- package/src/patterns/components/tags/tag.wingsuit.yml +3 -3
- package/src/patterns/components/tags/tags.wingsuit.yml +1 -1
- package/src/patterns/components/tooltip/index.js +3 -3
- package/src/patterns/components/tooltip/tooltip.behavior.js +2 -2
- package/src/patterns/components/tooltip/tooltip.js +35 -25
- package/src/patterns/components/tooltip/tooltip.stories.jsx +5 -2
- package/src/patterns/components/tooltip/tooltip.wingsuit.yml +4 -4
- package/src/patterns/components/video/index.js +3 -3
- package/src/patterns/components/video/video.behavior.js +2 -2
- package/src/patterns/components/video/video.js +6 -5
- package/src/patterns/components/video/video.stories.jsx +5 -2
- package/src/patterns/components/video/video.wingsuit.yml +12 -12
- package/src/vendorjs/lib.vendor.js +1 -1
- package/wingsuit.config.js +14 -13
- package/.editorconfig +0 -12
- package/.eslintignore +0 -11
- package/.prettierignore +0 -16
- package/.prettierrc.js +0 -13
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {};
|
|
4
|
+
const patternDefinition = require("./button.wingsuit.yml");
|
|
4
5
|
|
|
6
|
+
/* eslint-disable-next-line */
|
|
5
7
|
export const wingsuit = {
|
|
6
8
|
patternDefinition,
|
|
7
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
button:
|
|
2
|
-
use:
|
|
2
|
+
use: "@components/button/button.twig"
|
|
3
3
|
label: Button
|
|
4
4
|
description: A button or a link styled like a button.
|
|
5
5
|
fields:
|
|
@@ -7,19 +7,19 @@ button:
|
|
|
7
7
|
type: string
|
|
8
8
|
label: Label
|
|
9
9
|
description: The label for the button
|
|
10
|
-
preview:
|
|
10
|
+
preview: "Button"
|
|
11
11
|
required: true
|
|
12
12
|
url:
|
|
13
13
|
type: string
|
|
14
14
|
label: url
|
|
15
15
|
description: The url for the button if it's a link
|
|
16
|
-
preview:
|
|
16
|
+
preview: ""
|
|
17
17
|
required: false
|
|
18
18
|
target:
|
|
19
19
|
type: string
|
|
20
20
|
label: target
|
|
21
21
|
description: Should the button open in a new tab? If so, include the name of the tab. Only evaluated if the url field is populated.
|
|
22
|
-
preview:
|
|
22
|
+
preview: "true"
|
|
23
23
|
required: false
|
|
24
24
|
icon:
|
|
25
25
|
type: string
|
|
@@ -31,7 +31,7 @@ button:
|
|
|
31
31
|
type: string
|
|
32
32
|
label: Class name
|
|
33
33
|
description: optional class name
|
|
34
|
-
preview:
|
|
34
|
+
preview: "optionalclass"
|
|
35
35
|
required: false
|
|
36
36
|
settings:
|
|
37
37
|
size:
|
|
@@ -43,7 +43,7 @@ button:
|
|
|
43
43
|
small: Small
|
|
44
44
|
medium: Medium
|
|
45
45
|
large: Large
|
|
46
|
-
preview:
|
|
46
|
+
preview: "large"
|
|
47
47
|
type:
|
|
48
48
|
type: select
|
|
49
49
|
label: Type
|
|
@@ -55,16 +55,16 @@ button:
|
|
|
55
55
|
tertiary: Tertiary
|
|
56
56
|
alert: Alert
|
|
57
57
|
icononly: Icon Only
|
|
58
|
-
preview:
|
|
58
|
+
preview: "primary"
|
|
59
59
|
disabled:
|
|
60
60
|
type: select
|
|
61
61
|
label: Disabled
|
|
62
62
|
description: The disabled state of the button.
|
|
63
63
|
required: false
|
|
64
64
|
options:
|
|
65
|
-
true:
|
|
65
|
+
true: "true"
|
|
66
66
|
false: false
|
|
67
|
-
preview:
|
|
67
|
+
preview: "false"
|
|
68
68
|
kind:
|
|
69
69
|
type: select
|
|
70
70
|
label: Kind
|
|
@@ -74,7 +74,7 @@ button:
|
|
|
74
74
|
button: button
|
|
75
75
|
reset: reset
|
|
76
76
|
submit: submit
|
|
77
|
-
preview:
|
|
77
|
+
preview: "button"
|
|
78
78
|
iconPosition:
|
|
79
79
|
type: select
|
|
80
80
|
label: Icon Position
|
|
@@ -89,7 +89,7 @@ button:
|
|
|
89
89
|
label: Icon Only
|
|
90
90
|
description: Is this an icon-only button?
|
|
91
91
|
options:
|
|
92
|
-
true:
|
|
92
|
+
true: "true"
|
|
93
93
|
false: false
|
|
94
94
|
preview: false
|
|
95
95
|
required: false
|
|
@@ -98,7 +98,7 @@ button:
|
|
|
98
98
|
label: Opens Modal
|
|
99
99
|
description: Does this button trigger open a modal?
|
|
100
100
|
options:
|
|
101
|
-
true:
|
|
101
|
+
true: "true"
|
|
102
102
|
false: false
|
|
103
103
|
preview: false
|
|
104
104
|
required: false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Callout from
|
|
1
|
+
import Callout from "./callout";
|
|
2
2
|
|
|
3
3
|
Drupal.behaviors.callout = {
|
|
4
4
|
attach() {
|
|
@@ -6,7 +6,7 @@ Drupal.behaviors.callout = {
|
|
|
6
6
|
document.querySelectorAll(`[data-loadcomponent="Callout"]`),
|
|
7
7
|
(element) => {
|
|
8
8
|
// eslint-disable-next-line no-console
|
|
9
|
-
console.log(
|
|
9
|
+
console.log("loading Callout component....");
|
|
10
10
|
new Callout(element);
|
|
11
11
|
}
|
|
12
12
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EVENTS } from
|
|
1
|
+
import { EVENTS } from "@ilo-org/utils";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The Callout module which handles rendering field labels inline on a form.
|
|
@@ -18,7 +18,7 @@ export default class Callout {
|
|
|
18
18
|
* @property {Object}
|
|
19
19
|
*/
|
|
20
20
|
this.element = element;
|
|
21
|
-
this.toggleLabel =
|
|
21
|
+
this.toggleLabel = "";
|
|
22
22
|
|
|
23
23
|
// Initialize the view
|
|
24
24
|
this.init();
|
|
@@ -52,15 +52,18 @@ export default class Callout {
|
|
|
52
52
|
* The field that a user interacts with on a form
|
|
53
53
|
* @type {Object}
|
|
54
54
|
*/
|
|
55
|
-
this.toggle = this.element.querySelector(
|
|
56
|
-
this.toggleOpen = this.element.classList.value.includes(
|
|
57
|
-
this.toggleCollapsible =
|
|
55
|
+
this.toggle = this.element.querySelector(".ilo--callout--toggle");
|
|
56
|
+
this.toggleOpen = this.element.classList.value.includes("callout--open");
|
|
57
|
+
this.toggleCollapsible =
|
|
58
|
+
this.element.classList.value.includes("callout--collapse");
|
|
58
59
|
if (this.toggle) {
|
|
59
|
-
this.toggleLabel = this.toggle.querySelector(
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
this.toggleLabel = this.toggle.querySelector(
|
|
61
|
+
".ilo--callout--button-text"
|
|
62
|
+
);
|
|
63
|
+
this.toggleLabelOpen = this.toggle.getAttribute("data-open");
|
|
64
|
+
this.toggleLabelClosed = this.toggle.getAttribute("data-closed");
|
|
62
65
|
}
|
|
63
|
-
this.button = this.element.querySelector(
|
|
66
|
+
this.button = this.element.querySelector(".ilo--button");
|
|
64
67
|
|
|
65
68
|
return this;
|
|
66
69
|
}
|
|
@@ -116,9 +119,9 @@ export default class Callout {
|
|
|
116
119
|
* @return {Object} Callout A reference to the instance of the class
|
|
117
120
|
* @chainable
|
|
118
121
|
*/
|
|
119
|
-
handleClick(
|
|
122
|
+
handleClick() {
|
|
120
123
|
// callback of sorts
|
|
121
|
-
console.log(
|
|
124
|
+
console.log("button clicked");
|
|
122
125
|
|
|
123
126
|
return this;
|
|
124
127
|
}
|
|
@@ -136,9 +139,11 @@ export default class Callout {
|
|
|
136
139
|
e.preventDefault();
|
|
137
140
|
this.toggleOpen = !this.toggleOpen;
|
|
138
141
|
|
|
139
|
-
const label = this.toggleOpen
|
|
142
|
+
const label = this.toggleOpen
|
|
143
|
+
? this.toggleLabelOpen
|
|
144
|
+
: this.toggleLabelClosed;
|
|
140
145
|
|
|
141
|
-
this.element.classList.toggle(
|
|
146
|
+
this.element.classList.toggle("ilo--callout--open");
|
|
142
147
|
this.toggleLabel.innerText = label;
|
|
143
148
|
|
|
144
149
|
return this;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {};
|
|
4
|
+
const patternDefinition = require("./callout.wingsuit.yml");
|
|
4
5
|
|
|
6
|
+
/* eslint-disable-next-line */
|
|
5
7
|
export const wingsuit = {
|
|
6
8
|
patternDefinition,
|
|
7
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
callout:
|
|
2
|
-
use:
|
|
2
|
+
use: "@components/callout/callout.twig"
|
|
3
3
|
label: Callout
|
|
4
4
|
description: A callout alert section with a few different types
|
|
5
5
|
fields:
|
|
@@ -44,7 +44,7 @@ callout:
|
|
|
44
44
|
error: Error
|
|
45
45
|
success: Success
|
|
46
46
|
warning: Warning
|
|
47
|
-
preview:
|
|
47
|
+
preview: "info"
|
|
48
48
|
isCollapsible:
|
|
49
49
|
type: select
|
|
50
50
|
label: Is Collapsible?
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {};
|
|
4
|
+
const patternDefinition = require("./card.wingsuit.yml");
|
|
4
5
|
|
|
6
|
+
/* eslint-disable-next-line */
|
|
5
7
|
export const wingsuit = {
|
|
6
8
|
patternDefinition,
|
|
7
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
card:
|
|
2
|
-
use:
|
|
2
|
+
use: "@components/card/card.twig"
|
|
3
3
|
label: Card
|
|
4
|
-
description:
|
|
4
|
+
description: Cards display prominent content of a page layout, with information and actions about a single subject, they typically contain a link to a new page or downloadable content.
|
|
5
5
|
fields:
|
|
6
6
|
title:
|
|
7
7
|
type: string
|
|
@@ -12,7 +12,7 @@ card:
|
|
|
12
12
|
type: string
|
|
13
13
|
label: Intro
|
|
14
14
|
description: Intro copy text
|
|
15
|
-
preview: "
|
|
15
|
+
preview: "A toxic combination of mutually-reinforcing crises – inflation, debt, food and fuel price rises, geopolitical tensions and conflict, climate change – are threatening to increase poverty, inequality and discrimination worldwide."
|
|
16
16
|
eyebrow:
|
|
17
17
|
type: string
|
|
18
18
|
label: Eyebrow
|
|
@@ -44,7 +44,7 @@ card:
|
|
|
44
44
|
type: string
|
|
45
45
|
label: Link
|
|
46
46
|
description: Link for clickable cards. Do no use on `Multilink`, `Factlist`, `Data`, or `Stat` cards.
|
|
47
|
-
preview: "https://www.
|
|
47
|
+
preview: "https://www.ilo.org/"
|
|
48
48
|
cta:
|
|
49
49
|
type: object
|
|
50
50
|
label: CTA
|
|
@@ -80,13 +80,13 @@ card:
|
|
|
80
80
|
green: green
|
|
81
81
|
yellow: yellow
|
|
82
82
|
blue: blue
|
|
83
|
-
preview:
|
|
83
|
+
preview: "blue"
|
|
84
84
|
theme:
|
|
85
85
|
type: select
|
|
86
86
|
label: Theme
|
|
87
87
|
description: The theme type for the card. Theme choice doesn't apply to these card types - `Multilink`, `Data`, `Stat` and `Detail`
|
|
88
88
|
required: false
|
|
89
|
-
preview:
|
|
89
|
+
preview: "light"
|
|
90
90
|
options:
|
|
91
91
|
dark: Dark
|
|
92
92
|
light: Light
|
|
@@ -94,7 +94,7 @@ card:
|
|
|
94
94
|
type: select
|
|
95
95
|
label: Size
|
|
96
96
|
description: Size of the cards (usually reduces padding). `Wide` on Multilink and Feature cause a two column structure above a desktop breakpoint.
|
|
97
|
-
preview:
|
|
97
|
+
preview: "standard"
|
|
98
98
|
options:
|
|
99
99
|
wide: Wide
|
|
100
100
|
standard: Standard
|
|
@@ -128,21 +128,21 @@ card:
|
|
|
128
128
|
label: Graphic Text Card
|
|
129
129
|
description: The graphic Card
|
|
130
130
|
fields:
|
|
131
|
-
title: "
|
|
132
|
-
eyebrow:
|
|
131
|
+
title: "Why we need greater social justice"
|
|
132
|
+
eyebrow: Podcast
|
|
133
133
|
date:
|
|
134
134
|
human: 20 September 2022
|
|
135
135
|
unix: 1670389200
|
|
136
136
|
image: ""
|
|
137
|
-
link: "https
|
|
137
|
+
link: "https:/www.ilo.org"
|
|
138
138
|
profile:
|
|
139
|
-
avatar: "
|
|
140
|
-
description: "
|
|
139
|
+
avatar: "/images/ilo-dg.jpg"
|
|
140
|
+
description: "Gilbert Houngbo is the Director-General of the International Labour Organization"
|
|
141
141
|
link:
|
|
142
142
|
- label: "Optional Link"
|
|
143
|
-
url: "https://www.
|
|
144
|
-
name: "
|
|
145
|
-
role: "
|
|
143
|
+
url: "https://www.ilo.org"
|
|
144
|
+
name: "Gilbert Houngbo"
|
|
145
|
+
role: "ILO Director-General"
|
|
146
146
|
stat:
|
|
147
147
|
label: Stat Card
|
|
148
148
|
description: The stat Card
|
|
@@ -150,116 +150,124 @@ card:
|
|
|
150
150
|
theme: light
|
|
151
151
|
cornercut: cornercut
|
|
152
152
|
fields:
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
eyebrow: "Report"
|
|
154
|
+
title: "Global employment growth down by half in 2023"
|
|
155
|
+
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.
|
|
155
156
|
source:
|
|
156
|
-
label: "
|
|
157
|
-
url: "https://www.
|
|
157
|
+
label: "World Employment and Social Outlook: Trends 2023"
|
|
158
|
+
url: "https://www.ilo.org/global/research/global-reports/weso/WCMS_865332/lang--en/index.htm"
|
|
158
159
|
multilink:
|
|
159
160
|
label: Multilink Card
|
|
160
161
|
description: The multilink Card
|
|
161
162
|
settings:
|
|
162
163
|
theme: light
|
|
163
164
|
fields:
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
eyebrow: High-level meeting
|
|
166
|
+
title: "ILO welcomes G7 call to make a just transition to a green economy happen"
|
|
167
|
+
image: "/images/hero.jpg"
|
|
168
|
+
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."
|
|
167
169
|
linklist:
|
|
168
170
|
linkgroup:
|
|
169
171
|
- links:
|
|
170
|
-
- label:
|
|
171
|
-
url:
|
|
172
|
-
- label:
|
|
173
|
-
url:
|
|
174
|
-
- label:
|
|
175
|
-
url:
|
|
172
|
+
- label: Read the press release
|
|
173
|
+
url: "https://www.ilo.org"
|
|
174
|
+
- label: See the statement
|
|
175
|
+
url: "https://www.ilo.org"
|
|
176
|
+
- label: Remarks to G7 Openening Session
|
|
177
|
+
url: "https://www.ilo.org"
|
|
176
178
|
graphicpromo:
|
|
177
179
|
label: Graphic Promo Card
|
|
178
180
|
description: The graphic promo Card
|
|
179
181
|
fields:
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
eyebrow: High-level meetings
|
|
183
|
+
title: "ILO welcomes G7 call to make a just transition to a green economy happen"
|
|
184
|
+
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."
|
|
185
|
+
link: "https://www.ilo.org"
|
|
183
186
|
cta:
|
|
184
|
-
label: "
|
|
185
|
-
url: "https://www.
|
|
187
|
+
label: "Read the press release"
|
|
188
|
+
url: "https://www.ilo.org"
|
|
186
189
|
feature:
|
|
187
190
|
label: Feature Card
|
|
188
191
|
description: The Feature Card
|
|
189
192
|
fields:
|
|
190
|
-
title: "
|
|
191
|
-
eyebrow:
|
|
193
|
+
title: "ILO welcomes G7 call to make a just transition to a green economy happen"
|
|
194
|
+
eyebrow: High-level meeting
|
|
192
195
|
date:
|
|
193
|
-
human:
|
|
196
|
+
human: 17 March 2022
|
|
194
197
|
unix: 1670389200
|
|
195
|
-
link: "https://www.
|
|
196
|
-
image: "
|
|
198
|
+
link: "https://www.ilo.org/search?q=graphic"
|
|
199
|
+
image: "/images/hero.jpg"
|
|
197
200
|
linklist:
|
|
198
201
|
headline: ""
|
|
199
202
|
linkgroup:
|
|
200
203
|
- headline: ""
|
|
201
204
|
links:
|
|
202
|
-
- label:
|
|
203
|
-
url:
|
|
205
|
+
- label: Read the press release
|
|
206
|
+
url: "https://www.ilo.org"
|
|
204
207
|
detail:
|
|
205
208
|
label: Detail Card
|
|
206
209
|
description: The Detail Card
|
|
207
210
|
fields:
|
|
208
|
-
title: "
|
|
209
|
-
intro: "
|
|
210
|
-
eyebrow:
|
|
211
|
+
title: "Technical meeting on digitalization in the construction sector"
|
|
212
|
+
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."
|
|
213
|
+
eyebrow: Meeting
|
|
211
214
|
date:
|
|
212
|
-
human:
|
|
215
|
+
human: 17 March 2022
|
|
213
216
|
unix: 1670389200
|
|
214
|
-
link: "https://www.
|
|
215
|
-
image: "
|
|
217
|
+
link: "https://www.ilo.org"
|
|
218
|
+
image: "/images/medium.jpg"
|
|
216
219
|
profile:
|
|
217
|
-
eventdetails: "8
|
|
220
|
+
eventdetails: "8:30 - 12:00 CET | Geneva"
|
|
218
221
|
factlist:
|
|
219
222
|
label: Fact List Card
|
|
220
223
|
description: The Fact List Card
|
|
221
224
|
fields:
|
|
222
|
-
|
|
225
|
+
eyebrow: Report
|
|
226
|
+
title: "Economic slowdown likely to force workers to accept lower quality jobs"
|
|
223
227
|
image: ""
|
|
224
228
|
list:
|
|
225
229
|
settings:
|
|
226
230
|
- ordered: unordered
|
|
227
231
|
- alignment: default
|
|
228
232
|
items:
|
|
229
|
-
- content: "
|
|
233
|
+
- content: "Global employment growth will be only 1.0 per cent in 2023, less than half the level in 2022."
|
|
230
234
|
id: "list1"
|
|
231
|
-
- content: "
|
|
235
|
+
- content: "The labour market deterioration is mainly due to emerging geopolitical tensions and the Ukraine conflict."
|
|
232
236
|
id: "list2"
|
|
237
|
+
- content: "The current slowdown means that many workers will have to accept lower quality jobs, often at very low pay."
|
|
238
|
+
id: "list3"
|
|
233
239
|
data:
|
|
234
240
|
label: Data Card
|
|
235
241
|
description: The Data Card
|
|
236
242
|
fields:
|
|
237
|
-
|
|
243
|
+
title: Technical meeting on digitalization in the construction sector
|
|
244
|
+
eyebrow: "Meeting"
|
|
245
|
+
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.
|
|
238
246
|
dataset:
|
|
239
247
|
content:
|
|
240
248
|
items:
|
|
241
249
|
- label: Date
|
|
242
|
-
copy:
|
|
250
|
+
copy: 17 March 2022
|
|
243
251
|
- label: Event type
|
|
244
|
-
copy:
|
|
252
|
+
copy: Technical meeting of experts
|
|
245
253
|
files:
|
|
246
254
|
headline: Files
|
|
247
255
|
items:
|
|
248
|
-
- label:
|
|
249
|
-
url: "https://www.
|
|
250
|
-
- label:
|
|
251
|
-
url: "https://www.
|
|
252
|
-
- label:
|
|
253
|
-
url: "https://www.
|
|
256
|
+
- label: Meeting agenda
|
|
257
|
+
url: "https://www.ilo.org"
|
|
258
|
+
- label: Briefing notes
|
|
259
|
+
url: "https://www.ilo.org"
|
|
260
|
+
- label: Practical info
|
|
261
|
+
url: "https://www.ilo.org"
|
|
254
262
|
links:
|
|
255
263
|
headline: Languages
|
|
256
264
|
items:
|
|
257
|
-
- label:
|
|
258
|
-
url: "https://www.
|
|
259
|
-
- label:
|
|
260
|
-
url: "https://www.
|
|
261
|
-
- label:
|
|
262
|
-
url: "https://www.
|
|
265
|
+
- label: English
|
|
266
|
+
url: "https://www.ilo.org/search?q=link"
|
|
267
|
+
- label: Español
|
|
268
|
+
url: "https://www.ilo.org/search?q=hyperlink"
|
|
269
|
+
- label: Français
|
|
270
|
+
url: "https://www.ilo.org/search?q=url"
|
|
263
271
|
settings:
|
|
264
272
|
theme: light
|
|
265
273
|
visibility: storybook
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {};
|
|
4
|
+
const patternDefinition = require("./cardgroup.wingsuit.yml");
|
|
4
5
|
|
|
6
|
+
/* eslint-disable-next-line */
|
|
5
7
|
export const wingsuit = {
|
|
6
8
|
patternDefinition,
|
|
7
9
|
};
|