@ilo-org/twig 0.17.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/components/{accordion-item → accordion}/accordion-item.twig +2 -2
  2. package/dist/components/checkbox/checkbox.twig +1 -1
  3. package/dist/components/checkbox/checkbox.wingsuit.yml +1 -0
  4. package/dist/components/datepicker/datepicker.twig +2 -2
  5. package/dist/components/dropdown/dropdown.twig +1 -1
  6. package/dist/components/dropdown/dropdown.wingsuit.yml +2 -1
  7. package/dist/components/fileupload/fileupload.twig +1 -1
  8. package/dist/components/fileupload/fileupload.wingsuit.yml +1 -0
  9. package/dist/components/{fieldset → form}/fieldset.twig +1 -1
  10. package/dist/components/form/form.twig +1 -1
  11. package/dist/components/{formcontrol → form}/formcontrol.twig +1 -1
  12. package/dist/components/{input → form}/input.twig +1 -1
  13. package/dist/components/list/list-item.twig +6 -0
  14. package/dist/components/list/list.twig +2 -2
  15. package/dist/components/list/list.wingsuit.yml +11 -11
  16. package/dist/components/list-item/list-item.wingsuit.yml +1 -1
  17. package/dist/components/navigation/navigation.wingsuit.yml +1 -0
  18. package/dist/components/numberpicker/numberpicker.twig +2 -2
  19. package/dist/components/numberpicker/numberpicker.wingsuit.yml +1 -0
  20. package/dist/components/radio/radio.twig +1 -1
  21. package/dist/components/radio/radio.wingsuit.yml +1 -0
  22. package/dist/components/search/search.twig +3 -3
  23. package/dist/components/search/search.wingsuit.yml +1 -0
  24. package/dist/components/tag/tag.wingsuit.yml +4 -3
  25. package/dist/components/{tag → tags}/tag.twig +4 -4
  26. package/dist/components/tags/tags.twig +1 -1
  27. package/dist/components/tags/tags.wingsuit.yml +3 -3
  28. package/dist/components/textarea/textarea.twig +1 -1
  29. package/dist/components/textarea/textarea.wingsuit.yml +1 -0
  30. package/dist/components/textinput/textinput.twig +1 -1
  31. package/dist/components/textinput/textinput.wingsuit.yml +1 -0
  32. package/dist/components/toggle/toggle.twig +1 -1
  33. package/dist/components/toggle/toggle.wingsuit.yml +1 -0
  34. package/package.json +2 -2
  35. package/src/patterns/components/checkbox/checkbox.wingsuit.yml +1 -0
  36. package/src/patterns/components/dropdown/dropdown.wingsuit.yml +2 -1
  37. package/src/patterns/components/fileupload/fileupload.wingsuit.yml +1 -0
  38. package/src/patterns/components/list/list-item.twig +1 -1
  39. package/src/patterns/components/list/list-item.wingsuit.yml +1 -1
  40. package/src/patterns/components/list/list.twig +2 -2
  41. package/src/patterns/components/list/list.wingsuit.yml +11 -11
  42. package/src/patterns/components/navigation/navigation.wingsuit.yml +1 -0
  43. package/src/patterns/components/numberpicker/numberpicker.wingsuit.yml +1 -0
  44. package/src/patterns/components/radio/radio.wingsuit.yml +1 -0
  45. package/src/patterns/components/search/search.wingsuit.yml +1 -0
  46. package/src/patterns/components/tags/tag.twig +4 -4
  47. package/src/patterns/components/tags/tag.wingsuit.yml +4 -3
  48. package/src/patterns/components/tags/tags.twig +1 -1
  49. package/src/patterns/components/tags/tags.wingsuit.yml +3 -3
  50. package/src/patterns/components/textarea/textarea.wingsuit.yml +1 -0
  51. package/src/patterns/components/textinput/textinput.wingsuit.yml +1 -0
  52. package/src/patterns/components/toggle/toggle.wingsuit.yml +1 -0
  53. package/dist/components/list-item/list-item.twig +0 -6
  54. /package/dist/components/{videoplayer → video}/videoplayer.twig +0 -0
@@ -5,8 +5,8 @@
5
5
  {% set accordion_id = id ~ uid %}
6
6
  {% set button_id = 'button-' ~ accordion_id %}
7
7
  {% set panel_id = 'panel-' ~ accordion_id %}
8
- {% set expanded_class = defaultExpanded ? prefix ~ '--accordion--panel--open' : '' %}
9
- {% set scroll_class = scroll ? prefix ~ '--accordion--panel__scroll' : '' %}
8
+ {% set expanded_class = defaultExpanded ? 'ilo' ~ '--accordion--panel--open' : '' %}
9
+ {% set scroll_class = scroll ? 'ilo' ~ '--accordion--panel__scroll' : '' %}
10
10
 
11
11
  <li class="ilo--accordion--item" id="{{ accordion_id }}">
12
12
  <div class="ilo--h3">
@@ -3,7 +3,7 @@
3
3
  {% extends "@components/form/formcontrol.twig" %}
4
4
 
5
5
  {% set disabled = disabled|default(false) %}
6
- {% set baseClass = prefix ~ '--checkbox' %}
6
+ {% set baseClass = 'ilo' ~ '--checkbox' %}
7
7
  {% set errorClass = baseClass ~ '__error' %}
8
8
  {% set CheckboxClasses = [baseClass] %}
9
9
 
@@ -14,6 +14,7 @@ checkbox:
14
14
  preview: "Do you agree to these terms?"
15
15
  tooltip:
16
16
  type: string
17
+ label: Tooltip
17
18
  description: The tooltip for the form element.
18
19
  helper:
19
20
  type: text
@@ -5,8 +5,8 @@
5
5
 
6
6
  {# Default values and input preparation #}
7
7
  {% set disabled = disabled|default(false) %}
8
- {% set inputClass = prefix ~ '--input' %}
9
- {% set baseClass = prefix ~ '--datepicker' %}
8
+ {% set inputClass = 'ilo' ~ '--input' %}
9
+ {% set baseClass = 'ilo' ~ '--datepicker' %}
10
10
  {% set datePickerClasses = [inputClass, baseClass] %}
11
11
 
12
12
  {% if error %}
@@ -3,7 +3,7 @@
3
3
  {% extends "@components/form/formcontrol.twig" %}
4
4
 
5
5
  {% set disabled = disabled|default(false) %}
6
- {% set baseClass = prefix ~ '--dropdown' %}
6
+ {% set baseClass = 'ilo' ~ '--dropdown' %}
7
7
  {% set dropdownClasses = [baseClass, class] %}
8
8
  {% if error %}
9
9
  {% set dropdownClasses = dropdownClasses|merge(['error']) %}
@@ -1,5 +1,5 @@
1
1
  dropdown:
2
- namespace: components/Forms
2
+ namespace: Components/Forms
3
3
  use: "@components/dropdown/dropdown.twig"
4
4
  label: Dropdown
5
5
  description: The Dropdown displays a select element with options, and is most
@@ -13,6 +13,7 @@ dropdown:
13
13
  preview: "Select a country"
14
14
  tooltip:
15
15
  type: string
16
+ label: Tooltip
16
17
  description: The tooltip for the form element.
17
18
  helper:
18
19
  type: text
@@ -2,7 +2,7 @@
2
2
 
3
3
  {% extends "@components/form/formcontrol.twig" %}
4
4
 
5
- {% set baseClass = prefix ~ '--file-upload' %}
5
+ {% set baseClass = 'ilo' ~ '--file-upload' %}
6
6
  {% set fileUploadClasses = [baseClass] %}
7
7
  {% set inputClass = baseClass ~ '--input' %}
8
8
 
@@ -14,6 +14,7 @@ fileupload:
14
14
  preview: Upload your files here
15
15
  tooltip:
16
16
  type: string
17
+ label: Tooltip
17
18
  description: The tooltip for the form element.
18
19
  helper:
19
20
  type: text
@@ -1,6 +1,6 @@
1
1
  {# fieldset.twig #}
2
2
 
3
- {% set baseClass = prefix ~ "--fieldset" %}
3
+ {% set baseClass = 'ilo' ~ "--fieldset" %}
4
4
  {% set wrapClass = baseClass ~ "--wrap__" ~ wrap %}
5
5
  {% set directionClass = baseClass ~ "--direction__" ~ direction %}
6
6
  {% set helperClass = baseClass ~ "--helper" %}
@@ -1,6 +1,6 @@
1
1
  {# form.twig #}
2
2
 
3
- {% set baseClass = prefix ~ "--form" %}
3
+ {% set baseClass = 'ilo' ~ "--form" %}
4
4
 
5
5
  {% set formControlClass = [baseClass, class] %}
6
6
 
@@ -1,6 +1,6 @@
1
1
  {# formcontrol.twig #}
2
2
 
3
- {% set baseClass = prefix ~ "--form-control" %}
3
+ {% set baseClass = 'ilo' ~ "--form-control" %}
4
4
 
5
5
  {# Initialize ariaDescribedBy #}
6
6
  {% set ariaDescribedBy = [] %}
@@ -1,7 +1,7 @@
1
1
  {# text-input.twig #}
2
2
  {% extends "@components/form/formcontrol.twig" %}
3
3
 
4
- {% set baseClass = prefix ~ "--text-input" %}
4
+ {% set baseClass = 'ilo' ~ "--text-input" %}
5
5
  {% set inputClass = [baseClass] %}
6
6
  {% if error %}
7
7
  {% set inputClass = inputClass|merge([baseClass ~ "__error"]) %}
@@ -0,0 +1,6 @@
1
+ {#
2
+ ACCORDION ITEM COMPONENT
3
+ #}
4
+ <li class="{{ prefix }}--list--item" id="{{ elementId }}">
5
+ {{content}}
6
+ </li>
@@ -16,7 +16,7 @@
16
16
  prefix: prefix,
17
17
  label: item.label,
18
18
  content: item.content,
19
- id: item.id,
19
+ elementId: item.id,
20
20
  } only %}
21
21
  {% endfor %}
22
22
  </ol>
@@ -27,7 +27,7 @@
27
27
  prefix: prefix,
28
28
  label: item.label,
29
29
  content: item.content,
30
- id: item.id,
30
+ elementId: item.id,
31
31
  } only %}
32
32
  {% endfor %}
33
33
  </ul>
@@ -16,27 +16,27 @@ list:
16
16
  required: true
17
17
  preview:
18
18
  - content: The International Labour Organization (ILO) was founded in 1919 as part of the League of Nations to promote workers' rights, encourage decent employment opportunities, and enhance social protection.
19
- id: item1
19
+ elementId: item1
20
20
  - content: The ILO aims to promote rights at work, encourage decent job opportunities, enhance social protection, and strengthen dialogue on work-related issues.
21
- id: item2
21
+ elementId: item2
22
22
  - content: The ILO advocates for social justice and internationally recognized human and labor rights.
23
- id: item3
23
+ elementId: item3
24
24
  - content: The ILO develops international labor standards in the form of conventions and recommendations to improve working conditions and labor rights.
25
- id: item4
25
+ elementId: item4
26
26
  - content: The ILO is unique in its tripartite structure that includes representatives from government, employer, and worker organizations.
27
- id: item5
27
+ elementId: item5
28
28
  - content: The ILO works to eradicate child labor, targeting the worst forms of child labor through conventions and action programs.
29
- id: item6
29
+ elementId: item6
30
30
  - content: The ILO promotes gender equality and empowers women through targeted policies and programs.
31
- id: item7
31
+ elementId: item7
32
32
  - content: The ILO’s Decent Work agenda aims to secure fair income, safety at work, social protection, and respect for workers' rights.
33
- id: item8
33
+ elementId: item8
34
34
  - content: The ILO provides research and data on global employment trends and labor market issues to inform policy development.
35
- id: item9
35
+ elementId: item9
36
36
  - content: The ILO offers training and education programs to improve occupational skills and competencies.
37
- id: item10
37
+ elementId: item10
38
38
  - content: The annual International Labor Conference is where ILO members convene to discuss and create labor standards.
39
- id: item11
39
+ elementId: item11
40
40
  settings:
41
41
  ordered:
42
42
  type: select
@@ -10,7 +10,7 @@ list:
10
10
  description: The list item's collapsed content.
11
11
  preview:
12
12
  faker: lorem.word
13
- id:
13
+ elementId:
14
14
  type: text
15
15
  label: ID
16
16
  description: The list item's id.
@@ -1,4 +1,5 @@
1
1
  navigation:
2
+ namespace: Components/Navigation
2
3
  use: "@components/navigation/navigation.twig"
3
4
  label: Navigation
4
5
  description: The Navigation component
@@ -2,8 +2,8 @@
2
2
 
3
3
  {% extends "@components/form/formcontrol.twig" %}
4
4
 
5
- {% set inputClass = prefix ~ '--input' %}
6
- {% set baseClass = prefix ~ '--numberpicker' %}
5
+ {% set inputClass = 'ilo' ~ '--input' %}
6
+ {% set baseClass = 'ilo' ~ '--numberpicker' %}
7
7
  {% set hasError = not disabled and error %}
8
8
  {% set numberPickerClasses = [inputClass, baseClass] %}
9
9
 
@@ -12,6 +12,7 @@ numberpicker:
12
12
  preview: "Pick a number"
13
13
  tooltip:
14
14
  type: string
15
+ label: Tooltip
15
16
  description: The tooltip for the form element.
16
17
  helper:
17
18
  type: text
@@ -2,7 +2,7 @@
2
2
 
3
3
  {% extends "@components/form/formcontrol.twig" %}
4
4
 
5
- {% set baseClass = (prefix is defined ? prefix ~ "--radio" : "--radio") %}
5
+ {% set baseClass = (prefix is defined ? 'ilo' ~ "--radio" : "--radio") %}
6
6
  {% set controlClass = baseClass ~ "--control" %}
7
7
 
8
8
  {% set errorClass = baseClass ~ "__error" %}
@@ -14,6 +14,7 @@ radio:
14
14
  preview: "Do you agree to these terms?"
15
15
  tooltip:
16
16
  type: string
17
+ label: Tooltip
17
18
  description: The tooltip for the form element.
18
19
  helper:
19
20
  type: text
@@ -2,11 +2,11 @@
2
2
 
3
3
  {% extends "@components/form/formcontrol.twig" %}
4
4
 
5
- {% set baseClass = prefix ~ "--searchfield" %}
5
+ {% set baseClass = 'ilo' ~ "--searchfield" %}
6
6
  {% set searchClass = [baseClass, class] %}
7
- {% set inputClass = prefix ~ "--input" %}
7
+ {% set inputClass = 'ilo' ~ "--input" %}
8
8
  {% set buttonClass = baseClass ~ "--button" %}
9
- {% set fieldSetClass = prefix ~ "--fieldset" %}
9
+ {% set fieldSetClass = 'ilo' ~ "--fieldset" %}
10
10
  {% set clearButtonClass = baseClass ~ "--clear-button" %}
11
11
 
12
12
  {% if error %}
@@ -11,6 +11,7 @@ searchfield:
11
11
  description: The label for the form element.
12
12
  tooltip:
13
13
  type: string
14
+ label: Tooltip
14
15
  description: The tooltip for the form element.
15
16
  helper:
16
17
  type: text
@@ -1,7 +1,8 @@
1
1
  tag:
2
+ namespace: Components/Navigation
2
3
  use: "@components/tags/tag.twig"
3
4
  label: Tag
4
- description: A display or interactable tag
5
+ description: A display an interactive tag
5
6
  fields:
6
7
  content:
7
8
  type: text
@@ -9,7 +10,7 @@ tag:
9
10
  description: The tag text content.
10
11
  preview:
11
12
  faker: lorem.word
12
- id:
13
+ elementId:
13
14
  type: text
14
15
  label: ID
15
16
  description: The tag's id.
@@ -32,7 +33,7 @@ tag:
32
33
  preview: "false"
33
34
  required: false
34
35
  tagType:
35
- type: type
36
+ type: select
36
37
  label: Tag Type
37
38
  description: The type of tag. Anchor and button have potential user interactions where display is static.
38
39
  options:
@@ -3,26 +3,26 @@
3
3
  #}
4
4
  {% if tagType == "button" and defaultActive %}
5
5
  <li class="ilo--tags__item">
6
- <button class="ilo--tag ilo--tag--button ilo--tag--active icon__position--right" id="{{ id }}" data-active={{ defaultActive }} type="button">
6
+ <button class="ilo--tag ilo--tag--button ilo--tag--active icon__position--right" id="{{ elementId }}" data-active={{ defaultActive }} type="button">
7
7
  {{content}}
8
8
  <span class="ilo--icon" title="Remove"></span>
9
9
  </button>
10
10
  </li>
11
11
  {% elseif tagType == "reset" %}
12
12
  <li class="ilo--tags__item">
13
- <button class="ilo--tag ilo--tag--reset ilo--tag--active" id="{{ id }}" data-active={{ defaultActive }} type="button">
13
+ <button class="ilo--tag ilo--tag--reset ilo--tag--active" id="{{ elementId }}" data-active={{ defaultActive }} type="button">
14
14
  {{content}}
15
15
  </button>
16
16
  </li>
17
17
  {% elseif tagType == "anchor" %}
18
18
  <li class="ilo--tags__item">
19
- <a class="ilo--tag ilo--tag--anchor {% if defaultActive %} ilo--tag--active{% endif %}" href="{{ url }}" id="{{ id }}" data-active={{ defaultActive }}>
19
+ <a class="ilo--tag ilo--tag--anchor {% if defaultActive %} ilo--tag--active{% endif %}" href="{{ url }}" id="{{ elementId }}" data-active={{ defaultActive }}>
20
20
  {{content}}
21
21
  </a>
22
22
  </li>
23
23
  {% elseif tagType == "display" %}
24
24
  <li class="ilo--tags__item">
25
- <span class="ilo--tag {% if defaultActive %} ilo--tag--active{% endif %}" id="{{ id }}" data-active={{ defaultActive }}>
25
+ <span class="ilo--tag {% if defaultActive %} ilo--tag--active{% endif %}" id="{{ elementId }}" data-active={{ defaultActive }}>
26
26
  {{content}}
27
27
  </span>
28
28
  </li>
@@ -6,7 +6,7 @@
6
6
  {% include "@components/tags/tag.twig" with {
7
7
  content: item.content,
8
8
  defaultActive: item.defaultActive,
9
- id: item.id,
9
+ id: item.elementId,
10
10
  prefix: prefix,
11
11
  tagType: tagType,
12
12
  url: item.url|default(null),
@@ -11,15 +11,15 @@ tags:
11
11
  required: true
12
12
  preview:
13
13
  - content: content 1
14
- id: tag1
14
+ elementId: tag1
15
15
  defaultActive: true
16
16
  url: https://www.google.com/
17
17
  - content: content 2
18
- id: tag2
18
+ elementId: tag2
19
19
  defaultActive: true
20
20
  url: https://www.google.com/
21
21
  - content: content 3
22
- id: tag3
22
+ elementId: tag3
23
23
  defaultActive: false
24
24
  settings:
25
25
  allowMultipleActive:
@@ -2,7 +2,7 @@
2
2
 
3
3
  {% extends "@components/form/formcontrol.twig" %}
4
4
 
5
- {% set baseClass = prefix ~ '--textarea' %}
5
+ {% set baseClass = 'ilo' ~ '--textarea' %}
6
6
  {% set textAreaClass = [baseClass] %}
7
7
  {% if error %}
8
8
  {% set textAreaClass = textAreaClass|merge([baseClass ~ "__error"]) %}
@@ -12,6 +12,7 @@ textarea:
12
12
  preview: "Insert your name here"
13
13
  tooltip:
14
14
  type: string
15
+ label: Tooltip
15
16
  description: The tooltip for the form element.
16
17
  preview: "This is a tooltip"
17
18
  helper:
@@ -2,7 +2,7 @@
2
2
 
3
3
  {% extends "@components/form/formcontrol.twig" %}
4
4
 
5
- {% set baseClass = prefix ~ "--text-input" %}
5
+ {% set baseClass = 'ilo' ~ "--text-input" %}
6
6
  {% set inputClass = [baseClass] %}
7
7
  {% if error %}
8
8
  {% set inputClass = inputClass|merge([baseClass ~ "__error"]) %}
@@ -12,6 +12,7 @@ textinput:
12
12
  preview: "Insert your name here"
13
13
  tooltip:
14
14
  type: string
15
+ label: Tooltip
15
16
  description: The tooltip for the form element.
16
17
  preview: "This is a tooltip"
17
18
  helper:
@@ -13,7 +13,7 @@
13
13
  {% set ariaDescribedBy = ariaDescribedBy|default("") %}
14
14
 
15
15
  {# Calculate dynamic classes based on the passed values. #}
16
- {% set baseClass = prefix ~ "--input--toggle" %}
16
+ {% set baseClass = 'ilo' ~ "--input--toggle" %}
17
17
  {% set sliderClass = baseClass ~ "--slider" %}
18
18
  {% set toggleClass = [baseClass, class, baseClass ~ "__size__" ~ size] %}
19
19
 
@@ -14,6 +14,7 @@ toggle:
14
14
  preview: Accept cookies
15
15
  tooltip:
16
16
  type: string
17
+ label: Tooltip
17
18
  description: The tooltip for the form element.
18
19
  helper:
19
20
  type: text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/twig",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Twig components for the ILO's Design System",
6
6
  "publishConfig": {
@@ -50,9 +50,9 @@
50
50
  "videojs-youtube": "^3.0.1",
51
51
  "@ilo-org/brand-assets": "0.5.1",
52
52
  "@ilo-org/fonts": "0.2.1",
53
- "@ilo-org/icons": "0.3.1",
54
53
  "@ilo-org/styles": "0.16.1",
55
54
  "@ilo-org/themes": "0.8.1",
55
+ "@ilo-org/icons": "0.3.1",
56
56
  "@ilo-org/utils": "0.1.1"
57
57
  },
58
58
  "devDependencies": {
@@ -14,6 +14,7 @@ checkbox:
14
14
  preview: "Do you agree to these terms?"
15
15
  tooltip:
16
16
  type: string
17
+ label: Tooltip
17
18
  description: The tooltip for the form element.
18
19
  helper:
19
20
  type: text
@@ -1,5 +1,5 @@
1
1
  dropdown:
2
- namespace: components/Forms
2
+ namespace: Components/Forms
3
3
  use: "@components/dropdown/dropdown.twig"
4
4
  label: Dropdown
5
5
  description: The Dropdown displays a select element with options, and is most
@@ -13,6 +13,7 @@ dropdown:
13
13
  preview: "Select a country"
14
14
  tooltip:
15
15
  type: string
16
+ label: Tooltip
16
17
  description: The tooltip for the form element.
17
18
  helper:
18
19
  type: text
@@ -14,6 +14,7 @@ fileupload:
14
14
  preview: Upload your files here
15
15
  tooltip:
16
16
  type: string
17
+ label: Tooltip
17
18
  description: The tooltip for the form element.
18
19
  helper:
19
20
  type: text
@@ -1,6 +1,6 @@
1
1
  {#
2
2
  ACCORDION ITEM COMPONENT
3
3
  #}
4
- <li class="{{ prefix }}--list--item" id="{{ id }}">
4
+ <li class="{{ prefix }}--list--item" id="{{ elementId }}">
5
5
  {{content}}
6
6
  </li>
@@ -10,7 +10,7 @@ list:
10
10
  description: The list item's collapsed content.
11
11
  preview:
12
12
  faker: lorem.word
13
- id:
13
+ elementId:
14
14
  type: text
15
15
  label: ID
16
16
  description: The list item's id.
@@ -16,7 +16,7 @@
16
16
  prefix: prefix,
17
17
  label: item.label,
18
18
  content: item.content,
19
- id: item.id,
19
+ elementId: item.id,
20
20
  } only %}
21
21
  {% endfor %}
22
22
  </ol>
@@ -27,7 +27,7 @@
27
27
  prefix: prefix,
28
28
  label: item.label,
29
29
  content: item.content,
30
- id: item.id,
30
+ elementId: item.id,
31
31
  } only %}
32
32
  {% endfor %}
33
33
  </ul>
@@ -16,27 +16,27 @@ list:
16
16
  required: true
17
17
  preview:
18
18
  - content: The International Labour Organization (ILO) was founded in 1919 as part of the League of Nations to promote workers' rights, encourage decent employment opportunities, and enhance social protection.
19
- id: item1
19
+ elementId: item1
20
20
  - content: The ILO aims to promote rights at work, encourage decent job opportunities, enhance social protection, and strengthen dialogue on work-related issues.
21
- id: item2
21
+ elementId: item2
22
22
  - content: The ILO advocates for social justice and internationally recognized human and labor rights.
23
- id: item3
23
+ elementId: item3
24
24
  - content: The ILO develops international labor standards in the form of conventions and recommendations to improve working conditions and labor rights.
25
- id: item4
25
+ elementId: item4
26
26
  - content: The ILO is unique in its tripartite structure that includes representatives from government, employer, and worker organizations.
27
- id: item5
27
+ elementId: item5
28
28
  - content: The ILO works to eradicate child labor, targeting the worst forms of child labor through conventions and action programs.
29
- id: item6
29
+ elementId: item6
30
30
  - content: The ILO promotes gender equality and empowers women through targeted policies and programs.
31
- id: item7
31
+ elementId: item7
32
32
  - content: The ILO’s Decent Work agenda aims to secure fair income, safety at work, social protection, and respect for workers' rights.
33
- id: item8
33
+ elementId: item8
34
34
  - content: The ILO provides research and data on global employment trends and labor market issues to inform policy development.
35
- id: item9
35
+ elementId: item9
36
36
  - content: The ILO offers training and education programs to improve occupational skills and competencies.
37
- id: item10
37
+ elementId: item10
38
38
  - content: The annual International Labor Conference is where ILO members convene to discuss and create labor standards.
39
- id: item11
39
+ elementId: item11
40
40
  settings:
41
41
  ordered:
42
42
  type: select
@@ -1,4 +1,5 @@
1
1
  navigation:
2
+ namespace: Components/Navigation
2
3
  use: "@components/navigation/navigation.twig"
3
4
  label: Navigation
4
5
  description: The Navigation component
@@ -12,6 +12,7 @@ numberpicker:
12
12
  preview: "Pick a number"
13
13
  tooltip:
14
14
  type: string
15
+ label: Tooltip
15
16
  description: The tooltip for the form element.
16
17
  helper:
17
18
  type: text
@@ -14,6 +14,7 @@ radio:
14
14
  preview: "Do you agree to these terms?"
15
15
  tooltip:
16
16
  type: string
17
+ label: Tooltip
17
18
  description: The tooltip for the form element.
18
19
  helper:
19
20
  type: text
@@ -11,6 +11,7 @@ searchfield:
11
11
  description: The label for the form element.
12
12
  tooltip:
13
13
  type: string
14
+ label: Tooltip
14
15
  description: The tooltip for the form element.
15
16
  helper:
16
17
  type: text
@@ -3,26 +3,26 @@
3
3
  #}
4
4
  {% if tagType == "button" and defaultActive %}
5
5
  <li class="{{prefix}}--tags__item">
6
- <button class="{{prefix}}--tag {{prefix}}--tag--button {{prefix}}--tag--active icon__position--right" id="{{ id }}" data-active={{ defaultActive }} type="button">
6
+ <button class="{{prefix}}--tag {{prefix}}--tag--button {{prefix}}--tag--active icon__position--right" id="{{ elementId }}" data-active={{ defaultActive }} type="button">
7
7
  {{content}}
8
8
  <span class="ilo--icon" title="Remove"></span>
9
9
  </button>
10
10
  </li>
11
11
  {% elseif tagType == "reset" %}
12
12
  <li class="{{prefix}}--tags__item">
13
- <button class="{{prefix}}--tag {{prefix}}--tag--reset {{prefix}}--tag--active" id="{{ id }}" data-active={{ defaultActive }} type="button">
13
+ <button class="{{prefix}}--tag {{prefix}}--tag--reset {{prefix}}--tag--active" id="{{ elementId }}" data-active={{ defaultActive }} type="button">
14
14
  {{content}}
15
15
  </button>
16
16
  </li>
17
17
  {% elseif tagType == "anchor" %}
18
18
  <li class="{{prefix}}--tags__item">
19
- <a class="{{prefix}}--tag {{prefix}}--tag--anchor {% if defaultActive %} {{prefix}}--tag--active{% endif %}" href="{{ url }}" id="{{ id }}" data-active={{ defaultActive }}>
19
+ <a class="{{prefix}}--tag {{prefix}}--tag--anchor {% if defaultActive %} {{prefix}}--tag--active{% endif %}" href="{{ url }}" id="{{ elementId }}" data-active={{ defaultActive }}>
20
20
  {{content}}
21
21
  </a>
22
22
  </li>
23
23
  {% elseif tagType == "display" %}
24
24
  <li class="{{prefix}}--tags__item">
25
- <span class="{{prefix}}--tag {% if defaultActive %} {{prefix}}--tag--active{% endif %}" id="{{ id }}" data-active={{ defaultActive }}>
25
+ <span class="{{prefix}}--tag {% if defaultActive %} {{prefix}}--tag--active{% endif %}" id="{{ elementId }}" data-active={{ defaultActive }}>
26
26
  {{content}}
27
27
  </span>
28
28
  </li>
@@ -1,7 +1,8 @@
1
1
  tag:
2
+ namespace: Components/Navigation
2
3
  use: "@components/tags/tag.twig"
3
4
  label: Tag
4
- description: A display or interactable tag
5
+ description: A display an interactive tag
5
6
  fields:
6
7
  content:
7
8
  type: text
@@ -9,7 +10,7 @@ tag:
9
10
  description: The tag text content.
10
11
  preview:
11
12
  faker: lorem.word
12
- id:
13
+ elementId:
13
14
  type: text
14
15
  label: ID
15
16
  description: The tag's id.
@@ -32,7 +33,7 @@ tag:
32
33
  preview: "false"
33
34
  required: false
34
35
  tagType:
35
- type: type
36
+ type: select
36
37
  label: Tag Type
37
38
  description: The type of tag. Anchor and button have potential user interactions where display is static.
38
39
  options:
@@ -6,7 +6,7 @@
6
6
  {% include "@components/tags/tag.twig" with {
7
7
  content: item.content,
8
8
  defaultActive: item.defaultActive,
9
- id: item.id,
9
+ id: item.elementId,
10
10
  prefix: prefix,
11
11
  tagType: tagType,
12
12
  url: item.url|default(null),
@@ -11,15 +11,15 @@ tags:
11
11
  required: true
12
12
  preview:
13
13
  - content: content 1
14
- id: tag1
14
+ elementId: tag1
15
15
  defaultActive: true
16
16
  url: https://www.google.com/
17
17
  - content: content 2
18
- id: tag2
18
+ elementId: tag2
19
19
  defaultActive: true
20
20
  url: https://www.google.com/
21
21
  - content: content 3
22
- id: tag3
22
+ elementId: tag3
23
23
  defaultActive: false
24
24
  settings:
25
25
  allowMultipleActive:
@@ -12,6 +12,7 @@ textarea:
12
12
  preview: "Insert your name here"
13
13
  tooltip:
14
14
  type: string
15
+ label: Tooltip
15
16
  description: The tooltip for the form element.
16
17
  preview: "This is a tooltip"
17
18
  helper:
@@ -12,6 +12,7 @@ textinput:
12
12
  preview: "Insert your name here"
13
13
  tooltip:
14
14
  type: string
15
+ label: Tooltip
15
16
  description: The tooltip for the form element.
16
17
  preview: "This is a tooltip"
17
18
  helper:
@@ -14,6 +14,7 @@ toggle:
14
14
  preview: Accept cookies
15
15
  tooltip:
16
16
  type: string
17
+ label: Tooltip
17
18
  description: The tooltip for the form element.
18
19
  helper:
19
20
  type: text
@@ -1,6 +0,0 @@
1
- {#
2
- ACCORDION ITEM COMPONENT
3
- #}
4
- <li class="{{ prefix }}--list--item" id="{{ id }}">
5
- {{content}}
6
- </li>