@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.
Files changed (172) hide show
  1. package/.eslintrc.js +37 -49
  2. package/.stylelintrc +2 -6
  3. package/.turbo/turbo-build:lib.log +4 -3
  4. package/CHANGELOG.md +19 -0
  5. package/apps/storybook/assets.js +5 -0
  6. package/apps/storybook/config/prefix.yml +1 -0
  7. package/apps/storybook/main.js +18 -8
  8. package/apps/storybook/manager-head.html +63 -1
  9. package/apps/storybook/manager.js +2 -2
  10. package/apps/storybook/patterns/colors.stories.mdx +9 -4
  11. package/apps/storybook/patterns/intro.stories.mdx +47 -42
  12. package/apps/storybook/patterns/typeset.stories.mdx +10 -6
  13. package/apps/storybook/patterns/welcome.stories.mdx +21 -37
  14. package/apps/storybook/preview-body.html +1 -1
  15. package/apps/storybook/preview.js +16 -16
  16. package/apps/storybook/styles.scss +25 -1
  17. package/apps/storybook/theme.js +41 -6
  18. package/babel.config.js +3 -3
  19. package/images/hero.jpg +0 -0
  20. package/images/ilo-dg.jpg +0 -0
  21. package/images/ilo-headquarters.jpg +0 -0
  22. package/images/large.jpg +0 -0
  23. package/images/media-file-poster.jpg +0 -0
  24. package/images/medium.jpg +0 -0
  25. package/images/small.jpg +0 -0
  26. package/images/video-example.mp4 +0 -0
  27. package/images/youtube-video-poster.avif +0 -0
  28. package/importprefix.js +5 -5
  29. package/importsvgs.js +3 -3
  30. package/jest.config.js +8 -8
  31. package/outputtwigs.js +16 -13
  32. package/package.json +47 -56
  33. package/postcss.config.js +2 -2
  34. package/src/namespaces.js +5 -5
  35. package/src/patterns/components/accordion/accordion-item.wingsuit.yml +1 -1
  36. package/src/patterns/components/accordion/accordion.behavior.js +2 -2
  37. package/src/patterns/components/accordion/accordion.js +31 -21
  38. package/src/patterns/components/accordion/accordion.stories.jsx +4 -2
  39. package/src/patterns/components/accordion/accordion.wingsuit.yml +4 -3
  40. package/src/patterns/components/accordion/index.js +3 -3
  41. package/src/patterns/components/breadcrumb/breadcrumb.behavior.js +2 -2
  42. package/src/patterns/components/breadcrumb/breadcrumb.js +14 -12
  43. package/src/patterns/components/breadcrumb/breadcrumb.stories.jsx +4 -2
  44. package/src/patterns/components/breadcrumb/breadcrumb.wingsuit.yml +1 -1
  45. package/src/patterns/components/breadcrumb/index.js +3 -3
  46. package/src/patterns/components/button/button.stories.jsx +4 -2
  47. package/src/patterns/components/button/button.wingsuit.yml +12 -12
  48. package/src/patterns/components/button/index.js +2 -2
  49. package/src/patterns/components/callout/callout.behavior.js +2 -2
  50. package/src/patterns/components/callout/callout.js +18 -13
  51. package/src/patterns/components/callout/callout.stories.jsx +4 -2
  52. package/src/patterns/components/callout/callout.wingsuit.yml +2 -2
  53. package/src/patterns/components/callout/index.js +3 -3
  54. package/src/patterns/components/card/card.stories.jsx +4 -2
  55. package/src/patterns/components/card/card.wingsuit.yml +73 -65
  56. package/src/patterns/components/card/index.js +2 -2
  57. package/src/patterns/components/cardgroup/cardgroup.stories.jsx +4 -2
  58. package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +61 -61
  59. package/src/patterns/components/cardgroup/index.js +2 -2
  60. package/src/patterns/components/contextmenu/contextmenu.stories.jsx +4 -2
  61. package/src/patterns/components/contextmenu/contextmenu.wingsuit.yml +7 -7
  62. package/src/patterns/components/contextmenu/index.js +2 -2
  63. package/src/patterns/components/dropdown/dropdown.stories.jsx +4 -2
  64. package/src/patterns/components/dropdown/dropdown.wingsuit.yml +4 -4
  65. package/src/patterns/components/dropdown/index.js +2 -2
  66. package/src/patterns/components/footer/footer.stories.jsx +4 -2
  67. package/src/patterns/components/footer/footer.wingsuit.yml +1 -1
  68. package/src/patterns/components/footer/index.js +2 -2
  69. package/src/patterns/components/form/fileupload.behavior.js +2 -2
  70. package/src/patterns/components/form/fileupload.js +6 -5
  71. package/src/patterns/components/form/form.stories.jsx +4 -2
  72. package/src/patterns/components/form/form.wingsuit.yml +92 -92
  73. package/src/patterns/components/form/index.js +3 -3
  74. package/src/patterns/components/hero/hero.stories.jsx +4 -2
  75. package/src/patterns/components/hero/hero.wingsuit.yml +8 -8
  76. package/src/patterns/components/hero/index.js +2 -2
  77. package/src/patterns/components/herocard/herocard.stories.jsx +4 -2
  78. package/src/patterns/components/herocard/herocard.wingsuit.yml +5 -5
  79. package/src/patterns/components/herocard/index.js +2 -2
  80. package/src/patterns/components/icon/index.js +2 -2
  81. package/src/patterns/components/image/image.stories.jsx +4 -2
  82. package/src/patterns/components/image/image.wingsuit.yml +9 -9
  83. package/src/patterns/components/image/index.js +2 -2
  84. package/src/patterns/components/link/index.js +2 -2
  85. package/src/patterns/components/link/link.stories.jsx +4 -2
  86. package/src/patterns/components/link/link.wingsuit.yml +3 -3
  87. package/src/patterns/components/linklist/index.js +2 -2
  88. package/src/patterns/components/linklist/linklist.stories.jsx +4 -2
  89. package/src/patterns/components/linklist/linklist.wingsuit.yml +15 -15
  90. package/src/patterns/components/list/index.js +2 -2
  91. package/src/patterns/components/list/list-item.wingsuit.yml +1 -1
  92. package/src/patterns/components/list/list.stories.jsx +4 -2
  93. package/src/patterns/components/list/list.wingsuit.yml +4 -4
  94. package/src/patterns/components/loading/index.js +3 -3
  95. package/src/patterns/components/loading/loading.behavior.js +2 -2
  96. package/src/patterns/components/loading/loading.js +2 -2
  97. package/src/patterns/components/loading/loading.stories.jsx +4 -2
  98. package/src/patterns/components/loading/loading.wingsuit.yml +5 -5
  99. package/src/patterns/components/localnav/index.js +3 -3
  100. package/src/patterns/components/localnav/localnav.stories.jsx +4 -2
  101. package/src/patterns/components/localnav/localnav.twig +3 -1
  102. package/src/patterns/components/localnav/localnav.wingsuit.yml +17 -19
  103. package/src/patterns/components/modal/index.js +3 -3
  104. package/src/patterns/components/modal/modal.behavior.js +2 -2
  105. package/src/patterns/components/modal/modal.js +9 -7
  106. package/src/patterns/components/modal/modal.stories.jsx +5 -2
  107. package/src/patterns/components/modal/modal.wingsuit.yml +20 -20
  108. package/src/patterns/components/navigation/index.js +3 -3
  109. package/src/patterns/components/navigation/navigation.behavior.js +2 -2
  110. package/src/patterns/components/navigation/navigation.js +110 -37
  111. package/src/patterns/components/navigation/navigation.stories.jsx +5 -2
  112. package/src/patterns/components/navigation/navigation.wingsuit.yml +21 -21
  113. package/src/patterns/components/notification/index.js +3 -3
  114. package/src/patterns/components/notification/notification.behavior.js +3 -3
  115. package/src/patterns/components/notification/notification.js +4 -2
  116. package/src/patterns/components/notification/notification.stories.jsx +5 -2
  117. package/src/patterns/components/notification/notification.wingsuit.yml +7 -7
  118. package/src/patterns/components/pagination/Pagination.stories.jsx +4 -2
  119. package/src/patterns/components/pagination/index.js +2 -2
  120. package/src/patterns/components/pagination/pagination.wingsuit.yml +12 -12
  121. package/src/patterns/components/polyfill/index.js +2 -2
  122. package/src/patterns/components/profile/index.js +2 -2
  123. package/src/patterns/components/profile/profile.stories.jsx +5 -2
  124. package/src/patterns/components/profile/profile.wingsuit.yml +7 -7
  125. package/src/patterns/components/readmore/index.js +3 -3
  126. package/src/patterns/components/readmore/readmore.behavior.js +2 -2
  127. package/src/patterns/components/readmore/readmore.js +4 -2
  128. package/src/patterns/components/readmore/readmore.stories.jsx +5 -2
  129. package/src/patterns/components/readmore/readmore.wingsuit.yml +4 -4
  130. package/src/patterns/components/richtext/index.js +2 -2
  131. package/src/patterns/components/richtext/richtext.stories.jsx +5 -2
  132. package/src/patterns/components/richtext/richtext.wingsuit.yml +2 -2
  133. package/src/patterns/components/searchfield/index.js +2 -2
  134. package/src/patterns/components/searchfield/searchfield.stories.jsx +5 -2
  135. package/src/patterns/components/searchfield/searchfield.wingsuit.yml +1 -1
  136. package/src/patterns/components/table/index.js +3 -3
  137. package/src/patterns/components/table/table.behavior.js +2 -2
  138. package/src/patterns/components/table/table.js +66 -44
  139. package/src/patterns/components/table/table.stories.jsx +5 -2
  140. package/src/patterns/components/table/table.wingsuit.yml +11 -21
  141. package/src/patterns/components/tableofcontents/index.js +3 -3
  142. package/src/patterns/components/tableofcontents/tableofcontents.behavior.js +2 -2
  143. package/src/patterns/components/tableofcontents/tableofcontents.js +27 -19
  144. package/src/patterns/components/tableofcontents/tableofcontents.stories.jsx +5 -2
  145. package/src/patterns/components/tableofcontents/tableofcontents.wingsuit.yml +14 -14
  146. package/src/patterns/components/tabs/index.js +3 -3
  147. package/src/patterns/components/tabs/tabs.behavior.js +4 -4
  148. package/src/patterns/components/tabs/tabs.js +12 -8
  149. package/src/patterns/components/tabs/tabs.stories.jsx +5 -2
  150. package/src/patterns/components/tabs/tabs.wingsuit.yml +121 -121
  151. package/src/patterns/components/tags/index.js +3 -3
  152. package/src/patterns/components/tags/tag.behavior.js +2 -2
  153. package/src/patterns/components/tags/tag.js +12 -12
  154. package/src/patterns/components/tags/tag.stories.jsx +5 -2
  155. package/src/patterns/components/tags/tag.wingsuit.yml +3 -3
  156. package/src/patterns/components/tags/tags.wingsuit.yml +1 -1
  157. package/src/patterns/components/tooltip/index.js +3 -3
  158. package/src/patterns/components/tooltip/tooltip.behavior.js +2 -2
  159. package/src/patterns/components/tooltip/tooltip.js +35 -25
  160. package/src/patterns/components/tooltip/tooltip.stories.jsx +5 -2
  161. package/src/patterns/components/tooltip/tooltip.wingsuit.yml +4 -4
  162. package/src/patterns/components/video/index.js +3 -3
  163. package/src/patterns/components/video/video.behavior.js +2 -2
  164. package/src/patterns/components/video/video.js +6 -5
  165. package/src/patterns/components/video/video.stories.jsx +5 -2
  166. package/src/patterns/components/video/video.wingsuit.yml +12 -12
  167. package/src/vendorjs/lib.vendor.js +1 -1
  168. package/wingsuit.config.js +14 -13
  169. package/.editorconfig +0 -12
  170. package/.eslintignore +0 -11
  171. package/.prettierignore +0 -16
  172. package/.prettierrc.js +0 -13
@@ -1,5 +1,5 @@
1
1
  breadcrumb:
2
- use: '@components/breadcrumb/breadcrumb.twig'
2
+ use: "@components/breadcrumb/breadcrumb.twig"
3
3
  label: Breadcrumb
4
4
  description: A component for displaying links in a "breadcrumb" ux
5
5
  fields:
@@ -2,6 +2,6 @@
2
2
  * breadcrumb
3
3
  */
4
4
  // Module template
5
- import './breadcrumb.twig';
6
- import './breadcrumb.wingsuit.yml';
7
- import './breadcrumb.behavior';
5
+ import "./breadcrumb.twig";
6
+ import "./breadcrumb.wingsuit.yml";
7
+ import "./breadcrumb.behavior";
@@ -1,7 +1,9 @@
1
- import './index';
1
+ import "./index";
2
2
 
3
- const patternDefinition = require('./button.wingsuit.yml');
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: '@components/button/button.twig'
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: 'Button'
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: 'true'
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: 'optionalclass'
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: 'large'
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: 'primary'
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: 'true'
65
+ true: "true"
66
66
  false: false
67
- preview: 'false'
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: 'button'
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: '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: 'true'
101
+ true: "true"
102
102
  false: false
103
103
  preview: false
104
104
  required: false
@@ -2,5 +2,5 @@
2
2
  * button
3
3
  */
4
4
  // Module template
5
- import './button.twig';
6
- import './button.wingsuit.yml';
5
+ import "./button.twig";
6
+ import "./button.wingsuit.yml";
@@ -1,4 +1,4 @@
1
- import Callout from './callout';
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('loading Callout component....');
9
+ console.log("loading Callout component....");
10
10
  new Callout(element);
11
11
  }
12
12
  );
@@ -1,4 +1,4 @@
1
- import { EVENTS } from '@ilo-org/utils';
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('.ilo--callout--toggle');
56
- this.toggleOpen = this.element.classList.value.includes('callout--open');
57
- this.toggleCollapsible = this.element.classList.value.includes('callout--collapse');
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('.ilo--callout--button-text');
60
- this.toggleLabelOpen = this.toggle.getAttribute('data-open');
61
- this.toggleLabelClosed = this.toggle.getAttribute('data-closed');
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('.ilo--button');
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(e) {
122
+ handleClick() {
120
123
  // callback of sorts
121
- console.log('button clicked');
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 ? this.toggleLabelOpen : this.toggleLabelClosed;
142
+ const label = this.toggleOpen
143
+ ? this.toggleLabelOpen
144
+ : this.toggleLabelClosed;
140
145
 
141
- this.element.classList.toggle('ilo--callout--open');
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 './index';
1
+ import "./index";
2
2
 
3
- const patternDefinition = require('./callout.wingsuit.yml');
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: '@components/callout/callout.twig'
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: 'info'
47
+ preview: "info"
48
48
  isCollapsible:
49
49
  type: select
50
50
  label: Is Collapsible?
@@ -2,6 +2,6 @@
2
2
  * callout
3
3
  */
4
4
  // Module template
5
- import './callout.twig';
6
- import './callout.wingsuit.yml';
7
- import './callout.behavior';
5
+ import "./callout.twig";
6
+ import "./callout.wingsuit.yml";
7
+ import "./callout.behavior";
@@ -1,7 +1,9 @@
1
- import './index';
1
+ import "./index";
2
2
 
3
- const patternDefinition = require('./card.wingsuit.yml');
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: '@components/card/card.twig'
2
+ use: "@components/card/card.twig"
3
3
  label: Card
4
- description: The Card presents an image banner.
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: "Brief intro text - ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
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.google.com/"
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: 'blue'
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: 'light'
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: 'standard'
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: "Brief title text - ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod"
132
- eyebrow: Eyebrow title
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://www.google.com/search?q=graphic"
137
+ link: "https:/www.ilo.org"
138
138
  profile:
139
- avatar: "https://placekitten.com/128/128"
140
- description: "Firstname Lastname is the Senior Media Strategist. He has been with ILO for eight years."
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.google.com"
144
- name: "Firstname Lastname"
145
- role: "Senior Media Strategist"
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
- title: "Date headline"
154
- intro: "Data title - Lorem ipsum dolor sit amet consectetur"
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: "Source: lorem ipsum dolor sit amet, 2020"
157
- url: "https://www.google.com/search?q=stat"
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
- title: "Multi-link card - right aligned image, wide option"
165
- image: "https://placekitten.com/475/267"
166
- intro: "Lorem ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas ipsum dolor sit amet consectetur adipiscing elit. Lobortis egestas lacus."
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: Link One
171
- url: 'http://www.google.com'
172
- - label: Link Two
173
- url: 'http://www.google.com'
174
- - label: Link Three
175
- url: 'http://www.google.com'
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
- title: "Brief title text - ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod"
181
- intro: "We advance social justice and promote decent work by setting labour standards, developing policies and devising programmes."
182
- link: "https://www.google.com/search?q=graphic-promo"
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: "Discover our unique mission"
185
- url: "https://www.google.com/search?q=button"
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: "Vertical info card descriptive headline text"
191
- eyebrow: Eyebrow title
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: Date
196
+ human: 17 March 2022
194
197
  unix: 1670389200
195
- link: "https://www.google.com/search?q=graphic"
196
- image: "https://placekitten.com/412/232"
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: Link One
203
- url: 'http://www.google.com'
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: "Horizontal info card descriptive headline text"
209
- intro: "This ILO flagship report details the effects of the COVID-19 crisis on the world of work. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum eu auctor tusrpis, this is 200 characters."
210
- eyebrow: Eyebrow title
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: 00 month 0000
215
+ human: 17 March 2022
213
216
  unix: 1670389200
214
- link: "https://www.google.com/search?q=detail"
215
- image: "https://www.ilo.org/wcmsp5/groups/public/---dgreports/---dcomm/documents/image/wcms_856513.jpg"
217
+ link: "https://www.ilo.org"
218
+ image: "/images/medium.jpg"
216
219
  profile:
217
- eventdetails: "8 - 9 February 2022, 8:30 - 12:00 CET | Egypt"
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
- title: "Title of fast fact list"
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: "Wipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor."
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: "Nut labore et dolore magna sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
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
- eyebrow: "Event details"
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: Publication date
250
+ copy: 17 March 2022
243
251
  - label: Event type
244
- copy: Event location
252
+ copy: Technical meeting of experts
245
253
  files:
246
254
  headline: Files
247
255
  items:
248
- - label: File/size MB 1
249
- url: "https://www.google.com/search?q=file1"
250
- - label: File/size MB 2
251
- url: "https://www.google.com/search?q=file2"
252
- - label: File/size MB 3
253
- url: "https://www.google.com/search?q=file3"
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: Language link 1
258
- url: "https://www.google.com/search?q=link"
259
- - label: Language link 2
260
- url: "https://www.google.com/search?q=hyperlink"
261
- - label: Language link 3
262
- url: "https://www.google.com/search?q=url"
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
@@ -2,5 +2,5 @@
2
2
  * card
3
3
  */
4
4
  // Module template
5
- import './card.twig';
6
- import './card.wingsuit.yml';
5
+ import "./card.twig";
6
+ import "./card.wingsuit.yml";
@@ -1,7 +1,9 @@
1
- import './index';
1
+ import "./index";
2
2
 
3
- const patternDefinition = require('./cardgroup.wingsuit.yml');
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
  };